/*! For license information please see 8.35cf9831.chunk.js.LICENSE.txt */ (this.webpackJsonpVendorSignUp=this.webpackJsonpVendorSignUp||[]).push([[8],[function(e,t,r){"use strict";e.exports=r(138)},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return T})),r.d(t,"b",(function(){return M})),r.d(t,"c",(function(){return O})),r.d(t,"d",(function(){return B})),r.d(t,"e",(function(){return U})),r.d(t,"f",(function(){return G})),r.d(t,"g",(function(){return F})),r.d(t,"h",(function(){return V})),r.d(t,"i",(function(){return j})),r.d(t,"j",(function(){return z})),r.d(t,"k",(function(){return K})),r.d(t,"l",(function(){return W})),r.d(t,"m",(function(){return H})),r.d(t,"n",(function(){return N})),r.d(t,"o",(function(){return ie})),r.d(t,"p",(function(){return se})),r.d(t,"q",(function(){return $})),r.d(t,"r",(function(){return Q})),r.d(t,"s",(function(){return J})),r.d(t,"t",(function(){return Z})),r.d(t,"u",(function(){return X})),r.d(t,"v",(function(){return Y})),r.d(t,"w",(function(){return C})),r.d(t,"x",(function(){return w}));var i=r(29),n=r(8),o=r.n(n),a=r(22),s=r(11),u=r(16),p=r(14),c=r(15),m=r(9),l=r(10),d=r(0),y=r.n(d),h=r(134),b=r(144),f=r(26),g=r(17),S=r(5),I=r(51),v=r.n(I),N=y.a.createContext({onIonViewWillEnter:function(){},ionViewWillEnter:function(){},onIonViewDidEnter:function(){},ionViewDidEnter:function(){},onIonViewWillLeave:function(){},ionViewWillLeave:function(){},onIonViewDidLeave:function(){},ionViewDidLeave:function(){}}),T=function(){function e(){Object(m.a)(this,e),this.ionViewWillEnterCallbacks=[],this.ionViewDidEnterCallbacks=[],this.ionViewWillLeaveCallbacks=[],this.ionViewDidLeaveCallbacks=[]}return Object(l.a)(e,[{key:"onIonViewWillEnter",value:function(e){if(e.id){var t=this.ionViewWillEnterCallbacks.findIndex((function(t){return t.id===e.id}));t>-1?this.ionViewWillEnterCallbacks[t]=e:this.ionViewWillEnterCallbacks.push(e)}else this.ionViewWillEnterCallbacks.push(e)}},{key:"ionViewWillEnter",value:function(){this.ionViewWillEnterCallbacks.forEach((function(e){return e()}))}},{key:"onIonViewDidEnter",value:function(e){if(e.id){var t=this.ionViewDidEnterCallbacks.findIndex((function(t){return t.id===e.id}));t>-1?this.ionViewDidEnterCallbacks[t]=e:this.ionViewDidEnterCallbacks.push(e)}else this.ionViewDidEnterCallbacks.push(e)}},{key:"ionViewDidEnter",value:function(){this.ionViewDidEnterCallbacks.forEach((function(e){return e()}))}},{key:"onIonViewWillLeave",value:function(e){if(e.id){var t=this.ionViewWillLeaveCallbacks.findIndex((function(t){return t.id===e.id}));t>-1?this.ionViewWillLeaveCallbacks[t]=e:this.ionViewWillLeaveCallbacks.push(e)}else this.ionViewWillLeaveCallbacks.push(e)}},{key:"ionViewWillLeave",value:function(){this.ionViewWillLeaveCallbacks.forEach((function(e){return e()}))}},{key:"onIonViewDidLeave",value:function(e){if(e.id){var t=this.ionViewDidLeaveCallbacks.findIndex((function(t){return t.id===e.id}));t>-1?this.ionViewDidLeaveCallbacks[t]=e:this.ionViewDidLeaveCallbacks.push(e)}else this.ionViewDidLeaveCallbacks.push(e)}},{key:"ionViewDidLeave",value:function(){this.ionViewDidLeaveCallbacks.forEach((function(e){return e()})),this.componentCanBeDestroyed()}},{key:"onComponentCanBeDestroyed",value:function(e){this.componentCanBeDestroyedCallback=e}},{key:"componentCanBeDestroyed",value:function(){this.componentCanBeDestroyedCallback&&this.componentCanBeDestroyedCallback()}}]),e}(),C=y.a.createContext({getPageManager:function(){},getStackManager:function(){},goBack:function(e){void 0!==e?window.location.pathname=e:window.history.back()},navigate:function(e){window.location.pathname=e},hasIonicRouter:function(){return!1},registerIonPage:function(){},currentPath:void 0}),k=function(e){return e.toLowerCase().split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")},A=function(e){return e.replace(/([A-Z])/g,(function(e){return"-".concat(e[0].toLowerCase())}))},D=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Element){var i=R(e.classList,t,r);""!==i&&(e.className=i),Object.keys(t).forEach((function(r){if("children"!==r&&"style"!==r&&"ref"!==r&&"class"!==r&&"className"!==r&&"forwardedRef"!==r)if(0===r.indexOf("on")&&r[2]===r[2].toUpperCase()){var i=r.substring(2),n=i[0].toLowerCase()+i.substring(1);P(n)||E(e,n,t[r])}else{e[r]=t[r],"string"===typeof t[r]?e.setAttribute(A(r),t[r]):e[r]=t[r]}}))}},R=function(e,t,r){var i=t.className||t.class,n=r.className||r.class,o=x(e),a=x(i?i.split(" "):[]),s=x(n?n.split(" "):[]),u=[];return o.forEach((function(e){a.has(e)?(u.push(e),a.delete(e)):s.has(e)||u.push(e)})),a.forEach((function(e){return u.push(e)})),u.join(" ")},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r="on"+e,i=r in t;if(!i){var n=t.createElement("div");n.setAttribute(r,"return;"),i="function"===typeof n[r]}return i},E=function(e,t,r){var i=e.__events||(e.__events={}),n=i[t];n&&e.removeEventListener(t,n),e.addEventListener(t,i[t]=function(e){r&&r.call(this,e)})},x=function(e){var t=new Map;return e.forEach((function(e){return t.set(e,e)})),t},q=function(e,t){var r=function(t,r){return y.a.createElement(e,Object.assign({},t,{forwardedRef:r}))};return r.displayName=t,y.a.forwardRef(r)},w=function(){if("undefined"!==typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=k(e),i=function(i){function n(e){var t;return Object(m.a)(this,n),(t=Object(u.a)(this,Object(p.a)(n).call(this,e))).handleClick=function(e){var r=t.props,i=r.routerLink,n=r.routerDirection;void 0!==i&&(e.preventDefault(),t.context.navigate(i,n))},t}return Object(c.a)(n,i),Object(l.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){var t=v.a.findDOMNode(this);D(t,this.props,e)}},{key:"render",value:function(){var r=this,i=this.props,n=i.children,o=i.forwardedRef,a=i.style,s=(i.className,i.ref,Object(S.__rest)(i,["children","forwardedRef","style","className","ref"])),u=Object.keys(s).reduce((function(e,t){if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){var r=t.substring(2).toLowerCase();P(r)&&(e[t]=s[t])}return e}),{}),p=Object.assign(Object.assign({},u),{ref:o,style:a});if(t)if(this.props.routerLink&&!this.props.href&&(p.href=this.props.routerLink),p.onClick){var c=p.onClick;p.onClick=function(e){c(e),e.defaultPrevented||r.handleClick(e)}}else p.onClick=this.handleClick;return y.a.createElement(e,p,n)}}],[{key:"displayName",get:function(){return r}},{key:"contextType",get:function(){return C}}]),n}(y.a.Component);return q(i,r)},M=_("ion-app"),L=_("ion-tab-button"),O=_("ion-button",!0),B=_("ion-checkbox"),U=_("ion-col"),G=_("ion-content"),F=_("ion-datetime"),V=_("ion-grid"),j=_("ion-header"),z=_("ion-input"),K=_("ion-item",!0),W=_("ion-item-group"),H=_("ion-label"),$=_("ion-row"),Q=_("ion-select"),J=_("ion-select-option"),Z=_("ion-spinner"),X=_("ion-text"),Y=_("ion-toolbar"),ee=function(e,t){var r="on".concat(e,"DidDismiss"),n="on".concat(e,"DidPresent"),d="on".concat(e,"WillDismiss"),h="on".concat(e,"WillPresent"),b=function(y){function b(e){var t;return Object(m.a)(this,b),(t=Object(u.a)(this,Object(p.a)(b).call(this,e))).isUnmounted=!1,t.handleDismiss=t.handleDismiss.bind(Object(s.a)(t)),t}return Object(c.a)(b,y),Object(l.a)(b,[{key:"componentDidMount",value:function(){var e=Object(a.a)(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.props.isOpen&&this.present();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.isUnmounted=!0,this.overlay&&this.overlay.dismiss()}},{key:"componentDidUpdate",value:function(){var e=Object(a.a)(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isOpen!==this.props.isOpen&&!0===this.props.isOpen&&this.present(t),!this.overlay||t.isOpen===this.props.isOpen||!1!==this.props.isOpen){e.next=4;break}return e.next=4,this.overlay.dismiss();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"handleDismiss",value:function(e){this.props.onDidDismiss&&this.props.onDidDismiss(e),this.props.forwardedRef&&(this.props.forwardedRef.current=void 0)}},{key:"present",value:function(){var e=Object(a.a)(o.a.mark((function e(a){var s,u,p,c=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=this.props,p=Object(S.__rest)(u,["isOpen","onDidDismiss","onDidPresent","onWillDismiss","onWillPresent"]),e.next=3,t.create(Object.assign({},p));case 3:if(this.overlay=e.sent,D(this.overlay,(s={},Object(i.a)(s,r,this.handleDismiss),Object(i.a)(s,n,(function(e){return c.props.onDidPresent&&c.props.onDidPresent(e)})),Object(i.a)(s,d,(function(e){return c.props.onWillDismiss&&c.props.onWillDismiss(e)})),Object(i.a)(s,h,(function(e){return c.props.onWillPresent&&c.props.onWillPresent(e)})),s),a),!0!==this.props.isOpen||!1!==this.isUnmounted){e.next=9;break}return this.props.forwardedRef&&(this.props.forwardedRef.current=this.overlay),e.next=9,this.overlay.present();case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){return null}}],[{key:"displayName",get:function(){return e}}]),b}(y.a.Component);return y.a.forwardRef((function(e,t){return y.a.createElement(b,Object.assign({},e,{forwardedRef:t}))}))},te=(g.b,g.f,g.h,function(e,t){var r="on".concat(e,"DidDismiss"),n="on".concat(e,"DidPresent"),d="on".concat(e,"WillDismiss"),h="on".concat(e,"WillPresent"),b=function(y){function b(e){var t;return Object(m.a)(this,b),(t=Object(u.a)(this,Object(p.a)(b).call(this,e))).el=document.createElement("div"),t.handleDismiss=t.handleDismiss.bind(Object(s.a)(t)),t}return Object(c.a)(b,y),Object(l.a)(b,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.present()}},{key:"componentWillUnmount",value:function(){this.overlay&&this.overlay.dismiss()}},{key:"handleDismiss",value:function(e){this.props.onDidDismiss&&this.props.onDidDismiss(e),this.props.forwardedRef&&(this.props.forwardedRef.current=void 0)}},{key:"componentDidUpdate",value:function(){var e=Object(a.a)(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.overlay&&D(this.overlay,this.props,t),t.isOpen!==this.props.isOpen&&!0===this.props.isOpen&&this.present(t),!this.overlay||t.isOpen===this.props.isOpen||!1!==this.props.isOpen){e.next=5;break}return e.next=5,this.overlay.dismiss();case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"present",value:function(){var e=Object(a.a)(o.a.mark((function e(a){var s,u,p,c,m=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=this.props,p=Object(S.__rest)(u,["children","isOpen","onDidDismiss","onDidPresent","onWillDismiss","onWillPresent"]),c=Object.assign(Object.assign({},p),(s={ref:this.props.forwardedRef},Object(i.a)(s,r,this.handleDismiss),Object(i.a)(s,n,(function(e){return m.props.onDidPresent&&m.props.onDidPresent(e)})),Object(i.a)(s,d,(function(e){return m.props.onWillDismiss&&m.props.onWillDismiss(e)})),Object(i.a)(s,h,(function(e){return m.props.onWillPresent&&m.props.onWillPresent(e)})),s)),e.next=4,t.create(Object.assign(Object.assign({},c),{component:this.el,componentProps:{}}));case 4:return this.overlay=e.sent,this.props.forwardedRef&&(this.props.forwardedRef.current=this.overlay),D(this.overlay,c,a),e.next=9,this.overlay.present();case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){return v.a.createPortal(this.props.isOpen?this.props.children:null,this.el)}}],[{key:"displayName",get:function(){return e}}]),b}(y.a.Component);return y.a.forwardRef((function(e,t){return y.a.createElement(b,Object.assign({},e,{forwardedRef:t}))}))}),re=(g.g,g.i,function(e){function t(e){var r;return Object(m.a)(this,t),(r=Object(u.a)(this,Object(p.a)(t).call(this,e))).ref=r.props.forwardedRef||y.a.createRef(),r}return Object(c.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.context&&this.ref&&this.ref.current&&this.context.hasIonicRouter()&&this.context.registerIonPage(this.ref.current)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.children,i=(e.forwardedRef,Object(S.__rest)(e,["className","children","forwardedRef"]));return y.a.createElement("div",Object.assign({className:t?"ion-page ".concat(t):"ion-page",ref:this.ref},i),r)}}],[{key:"displayName",get:function(){return"IonPage"}},{key:"contextType",get:function(){return C}}]),t}(y.a.Component)),ie=q(re,"IonPage"),ne=_("ion-tab-bar"),oe=_("ion-router-outlet"),ae=_("ion-icon"),se=q(function(){return function(e){function t(){return Object(m.a)(this,t),Object(u.a)(this,Object(p.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this.context.getStackManager();return this.context.hasIonicRouter()?y.a.createElement(e,null,y.a.createElement(oe,Object.assign({ref:this.props.forwardedRef},this.props),this.props.children)):y.a.createElement(oe,Object.assign({ref:this.props.forwardedRef},this.props),this.props.children)}}],[{key:"contextType",get:function(){return C}}]),t}(y.a.Component)}(),"IonRouterOutlet"),ue=function(e){function t(e){var r;Object(m.a)(this,t),r=Object(u.a)(this,Object(p.a)(t).call(this,e));var i={};return y.a.Children.forEach(e.children,(function(e){null!=e&&"object"===typeof e&&e.props&&e.type===L&&(i[e.props.tab]={originalHref:e.props.href,currentHref:e.props.href})})),r.state={activeTab:void 0,tabs:i},r.onTabButtonClick=r.onTabButtonClick.bind(Object(s.a)(r)),r.renderTabButton=r.renderTabButton.bind(Object(s.a)(r)),r}return Object(c.a)(t,e),Object(l.a)(t,[{key:"onTabButtonClick",value:function(e){var t=this.state.tabs[e.detail.tab].originalHref,r=e.detail.href;this.state.activeTab===e.detail.tab?t===r?this.context.navigate(t,"none"):this.context.navigate(t,"back","pop"):(this.props.onIonTabsWillChange&&this.props.onIonTabsWillChange(new CustomEvent("ionTabWillChange",{detail:{tab:e.detail.tab}})),this.props.onIonTabsDidChange&&this.props.onIonTabsDidChange(new CustomEvent("ionTabDidChange",{detail:{tab:e.detail.tab}})),this.context.navigate(r,"none"))}},{key:"renderTabButton",value:function(e){var t=this;return function(r){if(null!=r&&r.props&&r.type===L){var i=r.props.tab===e?t.props.currentPath:t.state.tabs[r.props.tab].currentHref;return y.a.cloneElement(r,{href:i,onIonTabButtonClick:t.onTabButtonClick})}return null}}},{key:"render",value:function(){var e=this.state.activeTab;return y.a.createElement(ne,Object.assign({},this.props,{selectedTab:e}),y.a.Children.map(this.props.children,this.renderTabButton(e)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=Object.assign({},t.tabs),i=Object.keys(t.tabs).find((function(r){var i=t.tabs[r].originalHref;return e.currentPath.startsWith(i)}));return y.a.Children.forEach(e.children,(function(e){null!=e&&"object"===typeof e&&e.props&&e.type===L&&(r[e.props.tab].originalHref!==e.props.href&&(r[e.props.tab]={originalHref:e.props.href,currentHref:e.props.href}))})),void 0===i||i===t.activeTab&&t.tabs[i].currentHref===e.currentPath||(r[i]={originalHref:r[i].originalHref,currentHref:e.currentPath}),{activeTab:i,tabs:r}}},{key:"contextType",get:function(){return C}}]),t}(y.a.PureComponent),pe=y.a.memo((function(e){var t=Object(d.useContext)(C);return y.a.createElement(ue,Object.assign({},e,{currentPath:e.currentPath||t.currentPath}),e.children)})),ce={display:"flex",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",flexDirection:"column",width:"100%",height:"100%",contain:"layout size style"},me={position:"relative",flex:1,contain:"layout size style"},le=(y.a.Component,function(t,r){e&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}),0}),de=function(e){function t(e){var r;return Object(m.a)(this,t),(r=Object(u.a)(this,Object(p.a)(t).call(this,e))).props.name&&le(),r}return Object(c.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e,t,r,i,n=this.props,o=n.icon,a=n.ios,s=n.md,u=Object(S.__rest)(n,["icon","ios","md"]);return a||s?(i="ios",r=Object(g.e)(window,i)?null!==(e=null!==a&&void 0!==a?a:s)&&void 0!==e?e:o:null!==(t=null!==s&&void 0!==s?s:a)&&void 0!==t?t:o):r=o,y.a.createElement(ae,Object.assign({ref:this.props.forwardedRef,icon:r},u),this.props.children)}}],[{key:"contextType",get:function(){return C}}]),t}(y.a.PureComponent),ye=(q(de,"IonIcon"),y.a.PureComponent,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=["children","progressStart","progressStep","progressEnd","pause","stop","destroy","play","from","to","fromTo","onFinish"];for(var n in t)t.hasOwnProperty(n)&&!i.includes(n)&&t[n]!==r[n]&&e[n](t[n]);var o=t.from;if(o&&o!==r.from){var a=Array.isArray(o)?o:[o];a.forEach((function(t){return e.from(t.property,t.value)}))}var s=t.to;if(s&&s!==r.to){var u=Array.isArray(s)?s:[s];u.forEach((function(t){return e.to(t.property,t.value)}))}var p=t.fromTo;if(p&&p!==r.fromTo){var c=Array.isArray(p)?p:[p];c.forEach((function(t){return e.fromTo(t.property,t.fromValue,t.toValue)}))}var m=t.onFinish;if(m&&m!==r.onFinish){var l=Array.isArray(m)?m:[m];l.forEach((function(t){return e.onFinish(t.callback,t.opts)}))}}),he=function(e){var t,r,i,n,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=a.progressStart,p=a.progressStep,c=a.progressEnd;!u||(null===(t=s.progressStart)||void 0===t?void 0:t.forceLinearEasing)===(null===u||void 0===u?void 0:u.forceLinearEasing)&&(null===(r=s.progressStart)||void 0===r?void 0:r.step)===(null===u||void 0===u?void 0:u.step)||e.progressStart(u.forceLinearEasing,u.step),p&&(null===(i=s.progressStep)||void 0===i?void 0:i.step)!==(null===p||void 0===p?void 0:p.step)&&e.progressStep(p.step),!c||(null===(n=s.progressEnd)||void 0===n?void 0:n.playTo)===(null===c||void 0===c?void 0:c.playTo)&&(null===(o=s.progressEnd)||void 0===o?void 0:o.step)===(null===c||void 0===c?void 0:c.step)&&(null===s||void 0===s?void 0:s.dur)===(null===c||void 0===c?void 0:c.dur)||e.progressEnd(c.playTo,c.step,c.dur)},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!r.play&&t.play&&e.play(),!r.pause&&t.pause&&e.pause(),!r.stop&&t.stop&&e.stop(),!r.destroy&&t.destroy&&e.destroy()};Object(b.a)({"arrow-back-sharp":f.a,"caret-back-sharp":f.b,"chevron-back":f.c,"chevron-forward":f.d,close:f.e,"close-circle":f.f,"close-sharp":f.g,"menu-outline":f.h,"menu-sharp":f.i,"reorder-two-sharp":f.k,"reorder-three-outline":f.j,"search-outline":f.l,"search-sharp":f.m}),Object(h.a)(window)}).call(this,r(35))},function(e,t,r){"use strict";var i=r(88),n=function(){for(var e=0,t=0,r=arguments.length;t=a){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 p="["+t+"] "+this._ts()+" "+this.name;if(1===r.length&&"string"===typeof r[0])u(p+" - "+r[0]);else if(1===r.length)u(p,r[0]);else if("string"===typeof r[0]){var c=r.slice(1);1===c.length&&(c=c[0]),u(p+" - "+r[0],c)}else u(p,r)}},e.prototype.log=function(){for(var e=[],t=0;t-1)&&(i===h||y.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var n={channel:e,payload:l({},t),source:r,patternInfo:[]};try{this._toListeners(n)}catch(o){y.error(o)}},e.prototype.listen=function(e,t,r){var i;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."),i=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");i=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:i});else{var n=this.listeners[e];n||(n=[],this.listeners[e]=n),n.push({name:r,callback:i})}},e.prototype._toListeners=function(e){var t=e.channel,r=e.payload,i=this.listeners[t];if(i&&i.forEach((function(i){y.debug("Dispatching to "+t+" with ",r);try{i.callback(e)}catch(n){y.error(n)}})),this.patterns.length>0){if(!r.message)return void y.warn("Cannot perform pattern matching without a message key");var n=r.message;this.patterns.forEach((function(t){var r=n.match(t.pattern);if(r){var i=r.slice(1),o=l(l({},e),{patternInfo:i});try{t.callback(o)}catch(a){y.error(a)}}}))}},e}())("__default__"),f=new a("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),f.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,i=this.getByLanguage(e,r);return i||(r.indexOf("-")>0&&(i=this.getByLanguage(e,r.split("-")[0])),i||("undefined"!==typeof t?t:e))},e.prototype.getByLanguage=function(e,t,r){if(void 0===r&&(r=null),!t)return r;var i=this._dict[t];return i?i[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 a("I18n"),I=null,v=null,N=function(){function e(){}return e.configure=function(t){return S.debug("configure I18n"),t?(I=Object.assign({},I,t.I18n||t),e.createInstance(),I):I},e.getModuleName=function(){return"I18n"},e.createInstance=function(){S.debug("create I18n instance"),v||(v=new g(I))},e.setLanguage=function(t){return e.checkConfig(),v.setLanguage(t)},e.get=function(t,r){return e.checkConfig()?v.get(t,r):"undefined"===typeof r?t:r},e.putVocabulariesForLanguage=function(t,r){return e.checkConfig(),v.putVocabulariesForLanguage(t,r)},e.putVocabularies=function(t){return e.checkConfig(),v.putVocabularies(t)},e.checkConfig=function(){return v||(v=new g(I)),!0},e}();u.register(N);var T=N,C=r(25),k=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),A=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},D=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]e)&&r}}(r))},x=(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(i){throw t(),i}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(33)),q=(function(){function e(){}e.prototype.networkMonitor=function(){return new x((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)}}))}}(),{clockOffset:0,getDateWithClockOffset:function(){return q.clockOffset?new Date((new Date).getTime()+q.clockOffset):new Date},getClockOffset:function(){return q.clockOffset},setClockOffset:function(e){q.clockOffset=e}}),w=function(){return(w=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1](new Date).getTime()?(ye.debug("token not expired"),this._setCredentialsFromFederation({provider:r,token:n,user:i,identity_id:a,expires_at:o})):s._refreshHandlers[r]&&"function"===typeof s._refreshHandlers[r]?(ye.debug("getting refreshed jwt token from federation provider"),s._refreshHandlers[r]().then((function(e){return ye.debug("refresh federated token sucessfully",e),n=e.token,a=e.identity_id,o=e.expires_at,s._setCredentialsFromFederation({provider:r,token:n,user:i,identity_id:a,expires_at:o})})).catch((function(e){return ye.debug("refresh federated token failed",e),t.clear(),Promise.reject("refreshing federation token failed: "+e)}))):(ye.debug("no refresh handler for provider:",r),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._isExpired=function(e){if(!e)return ye.debug("no credentials for expiration check"),!0;ye.debug("is this credentials expired?",e);var t=(new Date).getTime(),r=e.expired,i=e.expireTime;return!(!r&&i>t+6e5&&t=0;s--)(n=e[s])&&(a=(o<3?n(a):o>3?n(t,r,a):n(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,i){t(r,i,e)}}function p(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))}function m(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=n[e](t)).value instanceof f?Promise.resolve(r.value.v).then(u,p):c(o[0][2],r)}catch(i){c(o[0][3],i)}var r}function u(e){s("next",e)}function p(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:f(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function I(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={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function v(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 T(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},function(e,t,r){"use strict";(function(e){var i=r(188),n=r(189),o=r(190);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return G(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var i=!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 P(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function f(e,t,r,i,n){if(0===e.length)return-1;if("string"===typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var o,a=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function p(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var m=!0,l=0;ln&&(i=n):i=n;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function k(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:p>223?3:p>191?2:1;if(n+m<=r)switch(m){case 1:p<128&&(c=p);break;case 2:128===(192&(o=e[n+1]))&&(u=(31&p)<<6|63&o)>127&&(c=u);break;case 3:o=e[n+1],a=e[n+2],128===(192&o)&&128===(192&a)&&(u=(15&p)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&p)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,m=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=m}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,i,n){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===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),p=this.slice(i,n),c=e.slice(t,r),m=0;mn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return I(this,e,t,r);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return N(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,r,i,n,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function w(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function _(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function M(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,i,o){return o||M(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function O(e,t,r,i,o){return o||M(e,0,r,8),n.write(e,t,r,i,52,8),r+8}u.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},u.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||x(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||x(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||x(e,t,this.length);for(var i=this[e],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||x(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||x(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||x(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||x(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||x(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),n.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||q(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||q(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||q(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);q(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);q(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||q(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||q(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||q(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):_(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 O(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return O(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function V(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(41))},function(e,t,r){"use strict";function i(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=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(u){n=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(t,"a",(function(){return i}))},function(e,t,r){e.exports=r(142)},function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";function i(e,t){for(var r=0;r390&&i<520&&n>620&&n<800},tablet:function(e){var t=e.innerWidth,r=e.innerHeight,i=Math.min(t,r),n=Math.max(t,r);return s(e)||function(e){return u(e)&&!d(e,/mobile/i)}(e)||i>460&&i<820&&n>780&&n<1400},cordova:m,capacitor:l,electron:function(e){return d(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:p,mobileweb:function(e){return p(e)&&!c(e)},desktop:function(e){return!p(e)},hybrid:c},b=new(function(){function e(){this.m=new Map}return e.prototype.reset=function(e){this.m=new Map(Object.entries(e))},e.prototype.get=function(e,t){var r=this.m.get(e);return void 0!==r?r:t},e.prototype.getBoolean=function(e,t){void 0===t&&(t=!1);var r=this.m.get(e);return void 0===r?t:"string"===typeof r?"true"===r:!!r},e.prototype.getNumber=function(e,t){var r=parseFloat(this.m.get(e));return isNaN(r)?void 0!==t?t:NaN:r},e.prototype.set=function(e,t){this.m.set(e,t)},e}()),f=function(e){try{var t=e.sessionStorage.getItem(N);return null!==t?JSON.parse(t):{}}catch(r){return{}}},g=function(e,t){try{e.sessionStorage.setItem(N,JSON.stringify(t))}catch(r){return}},S=function(e){var t={};return e.location.search.slice(1).split("&").map((function(e){return e.split("=")})).map((function(e){var t=e[0],r=e[1];return[decodeURIComponent(t),decodeURIComponent(r)]})).filter((function(e){var t=e[0];return I(t,v)})).map((function(e){var t=e[0],r=e[1];return[t.slice(v.length),r]})).forEach((function(e){var r=e[0],i=e[1];t[r]=i})),t},I=function(e,t){return e.substr(0,t.length)===t},v="ionic:",N="ionic-persist-config"},function(e,t,r){(function(t,i){var n,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!==typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).AWS_EXECUTION_ENV&&(e+=" exec-env/"+Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(3).VERSION;return"nodejs"===e&&(t+=" "+o.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 o.arrayEach(e.split("/"),(function(e){t.push(o.uriEscape(e))})),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,i=Object.keys(e).sort();return o.arrayEach(i,(function(i){var n=e[i],a=r(i),s=a+"=";if(Array.isArray(n)){var u=[];o.arrayEach(n,(function(e){u.push(r(e))})),s=a+"="+u.sort().join("&"+a+"=")}else void 0!==n&&null!==n&&(s=a+"="+r(n));t.push(s)})),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(69).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"===typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null===e||"undefined"===typeof e?e:o.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"===typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null===e||"undefined"===typeof e?e:o.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"===typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,t):new o.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 o.Buffer.alloc)return o.Buffer.alloc(e,t,r);var i=new o.Buffer(e);return void 0!==t&&"function"===typeof i.fill&&i.fill(t,void 0,void 0,r),i},toStream:function(e){o.Buffer.isBuffer(e)||(e=o.buffer.toBuffer(e));var t=new o.stream.Readable,r=0;return t._read=function(i){if(r>=e.length)return t.push(null);var n=r+i;n>e.length&&(n=e.length),t.push(e.slice(r,n)),r=n},t},concat:function(e){var t,r,i=0,n=0;for(r=0;r>>8^t[255&(r^e.readUInt8(i))]}return(-1^r)>>>0},hmac:function(e,t,r,i){return r||(r="binary"),"buffer"===r&&(r=void 0),i||(i="sha256"),"string"===typeof t&&(t=o.buffer.toBuffer(t)),o.crypto.lib.createHmac(i,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,i){var n=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"===typeof t&&(t=o.buffer.toBuffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),i&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",(function(e){n.update(e)})),t.on("error",(function(e){i(e)})),t.on("end",(function(){i(null,n.digest(r))}));else{if(!i||!a||s||"undefined"===typeof FileReader){o.isBrowser()&&"object"===typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=n.update(t).digest(r);return i&&i(null,u),u}var p=0,c=new FileReader;c.onerror=function(){i(new Error("Failed to read data."))},c.onload=function(){var e=new o.Buffer(new Uint8Array(c.result));n.update(e),p+=e.length,c._continueReading()},c._continueReading=function(){if(p>=t.size)i(null,n.digest(r));else{var e=p+524288;e>t.size&&(e=t.size),c.readAsArrayBuffer(a.call(t,p,e))}},c._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!==typeof Promise&&(t=Promise),"function"!==typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i=500||429===i});n&&a.retryable&&(a.retryAfter=n),u(a)}}))}),u)};n.util.defer(p)},uuid:{v4:function(){return r(183).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,i=t.service.api.operations[r].output||{};i.payload&&e.data[i.payload]&&(e.data[i.payload]=e.data[i.payload].toString())},defer:function(e){"object"===typeof t&&"function"===typeof t.nextTick?t.nextTick(e):"function"===typeof i?i(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={},i={};if(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})[o.configOptInEnv])i=e.loadFrom({isConfig:!0,filename:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})[o.sharedConfigFileEnv]});for(var n=e.loadFrom({filename:t||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})[o.configOptInEnv]&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})[o.sharedCredentialsFileEnv]}),a=0,s=Object.keys(i);a"']/g,B=RegExp(L.source),U=RegExp(O.source),G=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,H=RegExp(W.source),$=/^\s+|\s+$/g,Q=/^\s+/,J=/\s+$/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ie=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,me=/['\n\r\u2028\u2029\\]/g,le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\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",ye="[\\ud800-\\udfff]",he="["+de+"]",be="["+le+"]",fe="\\d+",ge="[\\u2700-\\u27bf]",Se="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ie="[^\\ud800-\\udfff"+de+fe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ve="\\ud83c[\\udffb-\\udfff]",Ne="[^\\ud800-\\udfff]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ae="(?:"+Se+"|"+Ie+")",De="(?:"+ke+"|"+Ie+")",Re="(?:"+be+"|"+ve+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Re+("(?:\\u200d(?:"+[Ne,Te,Ce].join("|")+")[\\ufe0e\\ufe0f]?"+Re+")*"),Ee="(?:"+[ge,Te,Ce].join("|")+")"+Pe,xe="(?:"+[Ne+be+"?",be,Te,Ce,ye].join("|")+")",qe=RegExp("['\u2019]","g"),we=RegExp(be,"g"),_e=RegExp(ve+"(?="+ve+")|"+xe+Pe,"g"),Me=RegExp([ke+"?"+Se+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[he,ke,"$"].join("|")+")",De+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[he,ke+Ae,"$"].join("|")+")",ke+"?"+Ae+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['\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_])",fe,Ee].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+le+"\\ufe0e\\ufe0f]"),Oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["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"],Ue=-1,Ge={};Ge[k]=Ge[A]=Ge[D]=Ge[R]=Ge[P]=Ge[E]=Ge["[object Uint8ClampedArray]"]=Ge[x]=Ge[q]=!0,Ge[u]=Ge[p]=Ge[T]=Ge[c]=Ge[C]=Ge[m]=Ge[l]=Ge[d]=Ge[h]=Ge[b]=Ge[f]=Ge[g]=Ge[S]=Ge[I]=Ge[N]=!1;var Fe={};Fe[u]=Fe[p]=Fe[T]=Fe[C]=Fe[c]=Fe[m]=Fe[k]=Fe[A]=Fe[D]=Fe[R]=Fe[P]=Fe[h]=Fe[b]=Fe[f]=Fe[g]=Fe[S]=Fe[I]=Fe[v]=Fe[E]=Fe["[object Uint8ClampedArray]"]=Fe[x]=Fe[q]=!0,Fe[l]=Fe[d]=Fe[N]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},je=parseFloat,ze=parseInt,Ke="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,He=Ke||We||Function("return this")(),$e=t&&!t.nodeType&&t,Qe=$e&&"object"==typeof i&&i&&!i.nodeType&&i,Je=Qe&&Qe.exports===$e,Ze=Je&&Ke.process,Xe=function(){try{var e=Qe&&Qe.require&&Qe.require("util").types;return e||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}(),Ye=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,rt=Xe&&Xe.isRegExp,it=Xe&&Xe.isSet,nt=Xe&&Xe.isTypedArray;function ot(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 at(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n-1}function lt(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function _t(e,t){for(var r=e.length;r--&&vt(t,e[r],0)>-1;);return r}function Mt(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}var Lt=At({"\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"}),Ot=At({"&":"&","<":"<",">":">",'"':""","'":"'"});function Bt(e){return"\\"+Ve[e]}function Ut(e){return Le.test(e)}function Gt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function Ft(e,t){return function(r){return e(t(r))}}function Vt(e,t){for(var r=-1,i=e.length,n=0,o=[];++r",""":'"',"'":"'"});var $t=function e(t){var r=(t=null==t?He:$t.defaults(He.Object(),t,$t.pick(He,Be))).Array,i=t.Date,n=t.Error,le=t.Function,de=t.Math,ye=t.Object,he=t.RegExp,be=t.String,fe=t.TypeError,ge=r.prototype,Se=le.prototype,Ie=ye.prototype,ve=t["__core-js_shared__"],Ne=Se.toString,Te=Ie.hasOwnProperty,Ce=0,ke=function(){var e=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ae=Ie.toString,De=Ne.call(ye),Re=He._,Pe=he("^"+Ne.call(Te).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=Je?t.Buffer:void 0,xe=t.Symbol,_e=t.Uint8Array,Le=Ee?Ee.allocUnsafe:void 0,Ve=Ft(ye.getPrototypeOf,ye),Ke=ye.create,We=Ie.propertyIsEnumerable,$e=ge.splice,Qe=xe?xe.isConcatSpreadable:void 0,Ze=xe?xe.iterator:void 0,Xe=xe?xe.toStringTag:void 0,gt=function(){try{var e=Xn(ye,"defineProperty");return e({},"",{}),e}catch(t){}}(),At=t.clearTimeout!==He.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==He.Date.now&&i.now,Jt=t.setTimeout!==He.setTimeout&&t.setTimeout,Zt=de.ceil,Xt=de.floor,Yt=ye.getOwnPropertySymbols,er=Ee?Ee.isBuffer:void 0,tr=t.isFinite,rr=ge.join,ir=Ft(ye.keys,ye),nr=de.max,or=de.min,ar=i.now,sr=t.parseInt,ur=de.random,pr=ge.reverse,cr=Xn(t,"DataView"),mr=Xn(t,"Map"),lr=Xn(t,"Promise"),dr=Xn(t,"Set"),yr=Xn(t,"WeakMap"),hr=Xn(ye,"create"),br=yr&&new yr,fr={},gr=Ao(cr),Sr=Ao(mr),Ir=Ao(lr),vr=Ao(dr),Nr=Ao(yr),Tr=xe?xe.prototype:void 0,Cr=Tr?Tr.valueOf:void 0,kr=Tr?Tr.toString:void 0;function Ar(e){if(ja(e)&&!qa(e)&&!(e instanceof Er)){if(e instanceof Pr)return e;if(Te.call(e,"__wrapped__"))return Do(e)}return new Pr(e)}var Dr=function(){function e(){}return function(t){if(!Va(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Rr(){}function Pr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function $r(e,t,r,i,n,o){var a,s=1&t,p=2&t,l=4&t;if(r&&(a=n?r(e,i,n,o):r(e)),void 0!==a)return a;if(!Va(e))return e;var N=qa(e);if(N){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return bn(e,a)}else{var w=to(e),_=w==d||w==y;if(La(e))return cn(e,s);if(w==f||w==u||_&&!n){if(a=p||_?{}:io(e),!s)return p?function(e,t){return fn(e,eo(e),t)}(e,function(e,t){return e&&fn(t,Is(t),e)}(a,e)):function(e,t){return fn(e,Yn(e),t)}(e,zr(a,e))}else{if(!Fe[w])return n?e:{};a=function(e,t,r){var i=e.constructor;switch(t){case T:return mn(e);case c:case m:return new i(+e);case C:return function(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case k:case A:case D:case R:case P:case E:case"[object Uint8ClampedArray]":case x:case q:return ln(e,r);case h:return new i;case b:case I:return new i(e);case g:return function(e){var t=new e.constructor(e.source,ie.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new i;case v:return n=e,Cr?ye(Cr.call(n)):{}}var n}(e,w,s)}}o||(o=new Mr);var M=o.get(e);if(M)return M;o.set(e,a),$a(e)?e.forEach((function(i){a.add($r(i,t,r,i,e,o))})):za(e)&&e.forEach((function(i,n){a.set(n,$r(i,t,r,n,e,o))}));var L=N?void 0:(l?p?Kn:zn:p?Is:Ss)(e);return st(L||e,(function(i,n){L&&(i=e[n=i]),Fr(a,n,$r(i,t,r,n,e,o))})),a}function Qr(e,t,r){var i=r.length;if(null==e)return!i;for(e=ye(e);i--;){var n=r[i],o=t[n],a=e[n];if(void 0===a&&!(n in e)||!o(a))return!1}return!0}function Jr(e,t,r){if("function"!=typeof e)throw new fe(o);return So((function(){e.apply(void 0,r)}),t)}function Zr(e,t,r,i){var n=-1,o=mt,a=!0,s=e.length,u=[],p=t.length;if(!s)return u;r&&(t=dt(t,Et(r))),i?(o=lt,a=!1):t.length>=200&&(o=qt,a=!1,t=new _r(t));e:for(;++n-1},qr.prototype.set=function(e,t){var r=this.__data__,i=Vr(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new xr,map:new(mr||qr),string:new xr}},wr.prototype.delete=function(e){var t=Jn(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Jn(this,e).get(e)},wr.prototype.has=function(e){return Jn(this,e).has(e)},wr.prototype.set=function(e,t){var r=Jn(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_r.prototype.add=_r.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_r.prototype.has=function(e){return this.__data__.has(e)},Mr.prototype.clear=function(){this.__data__=new qr,this.size=0},Mr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Mr.prototype.get=function(e){return this.__data__.get(e)},Mr.prototype.has=function(e){return this.__data__.has(e)},Mr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var i=r.__data__;if(!mr||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new wr(i)}return r.set(e,t),this.size=r.size,this};var Xr=In(ai),Yr=In(si,!0);function ei(e,t){var r=!0;return Xr(e,(function(e,i,n){return r=!!t(e,i,n)})),r}function ti(e,t,r){for(var i=-1,n=e.length;++i0&&r(s)?t>1?ii(s,t-1,r,i,n):yt(n,s):i||(n[n.length]=s)}return n}var ni=vn(),oi=vn(!0);function ai(e,t){return e&&ni(e,t,Ss)}function si(e,t){return e&&oi(e,t,Ss)}function ui(e,t){return ct(t,(function(t){return Ua(e[t])}))}function pi(e,t){for(var r=0,i=(t=an(t,e)).length;null!=e&&rt}function di(e,t){return null!=e&&Te.call(e,t)}function yi(e,t){return null!=e&&t in ye(e)}function hi(e,t,i){for(var n=i?lt:mt,o=e[0].length,a=e.length,s=a,u=r(a),p=1/0,c=[];s--;){var m=e[s];s&&t&&(m=dt(m,Et(t))),p=or(m.length,p),u[s]=!i&&(t||o>=120&&m.length>=120)?new _r(s&&m):void 0}m=e[0];var l=-1,d=u[0];e:for(;++l=s)return u;var p=r[i];return u*("desc"==p?-1:1)}}return e.index-t.index}(e,t,r)}))}function xi(e,t,r){for(var i=-1,n=t.length,o={};++i-1;)s!==e&&$e.call(s,u,1),$e.call(e,u,1);return e}function wi(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;oo(n)?$e.call(e,n,1):Zi(e,n)}}return e}function _i(e,t){return e+Xt(ur()*(t-e+1))}function Mi(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Xt(t/2))&&(e+=e)}while(t);return r}function Li(e,t){return Io(yo(e,t,Ks),e+"")}function Oi(e){return Or(Rs(e))}function Bi(e,t){var r=Rs(e);return To(r,Hr(t,0,r.length))}function Ui(e,t,r,i){if(!Va(e))return e;for(var n=-1,o=(t=an(t,e)).length,a=o-1,s=e;null!=s&&++no?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var a=r(o);++n>>1,a=e[o];null!==a&&!Ja(a)&&(r?a<=t:a=200){var p=t?null:Ln(e);if(p)return jt(p);a=!1,n=qt,u=new _r}else u=t?[]:s;e:for(;++i=i?e:ji(e,t,r)}var pn=At||function(e){return He.clearTimeout(e)};function cn(e,t){if(t)return e.slice();var r=e.length,i=Le?Le(r):new e.constructor(r);return e.copy(i),i}function mn(e){var t=new e.constructor(e.byteLength);return new _e(t).set(new _e(e)),t}function ln(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function dn(e,t){if(e!==t){var r=void 0!==e,i=null===e,n=e===e,o=Ja(e),a=void 0!==t,s=null===t,u=t===t,p=Ja(t);if(!s&&!p&&!o&&e>t||o&&a&&u&&!s&&!p||i&&a&&u||!r&&u||!n)return 1;if(!i&&!o&&!p&&e1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,a&&ao(r[0],r[1],a)&&(o=n<3?void 0:o,n=1),t=ye(t);++i-1?n[o?t[a]:a]:void 0}}function An(e){return jn((function(t){var r=t.length,i=r,n=Pr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new fe(o);if(n&&!s&&"wrapper"==Hn(a))var s=new Pr([],!0)}for(i=s?i:r;++i1&&S.reverse(),m&&ps))return!1;var p=o.get(e);if(p&&o.get(t))return p==t;var c=-1,m=!0,l=2&r?new _r:void 0;for(o.set(e,t),o.set(t,e);++c-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return st(s,(function(r){var i="_."+r[0];t&r[1]&&!mt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Y):[]}(i),r)))}function No(e){var t=0,r=0;return function(){var i=ar(),n=16-(i-r);if(r=i,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function To(e,t){var r=-1,i=e.length,n=i-1;for(t=void 0===t?i:t;++r1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Ho(e,r)}));function ea(e){var t=Ar(e);return t.__chain__=!0,t}function ta(e,t){return t(e)}var ra=jn((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Wr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Er&&oo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:ta,args:[n],thisArg:void 0}),new Pr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(n)}));var ia=gn((function(e,t,r){Te.call(e,r)?++e[r]:Kr(e,r,1)}));var na=kn(xo),oa=kn(qo);function aa(e,t){return(qa(e)?st:Xr)(e,Qn(t,3))}function sa(e,t){return(qa(e)?ut:Yr)(e,Qn(t,3))}var ua=gn((function(e,t,r){Te.call(e,r)?e[r].push(t):Kr(e,r,[t])}));var pa=Li((function(e,t,i){var n=-1,o="function"==typeof t,a=_a(e)?r(e.length):[];return Xr(e,(function(e){a[++n]=o?ot(t,e,i):bi(e,t,i)})),a})),ca=gn((function(e,t,r){Kr(e,r,t)}));function ma(e,t){return(qa(e)?dt:ki)(e,Qn(t,3))}var la=gn((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var da=Li((function(e,t){if(null==e)return[];var r=t.length;return r>1&&ao(e,t[0],t[1])?t=[]:r>2&&ao(t[0],t[1],t[2])&&(t=[t[0]]),Ei(e,ii(t,1),[])})),ya=Qt||function(){return He.Date.now()};function ha(e,t,r){return t=r?void 0:t,Bn(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var r;if("function"!=typeof t)throw new fe(o);return e=rs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var fa=Li((function(e,t,r){var i=1;if(r.length){var n=Vt(r,$n(fa));i|=32}return Bn(e,i,t,r,n)})),ga=Li((function(e,t,r){var i=3;if(r.length){var n=Vt(r,$n(ga));i|=32}return Bn(t,i,e,r,n)}));function Sa(e,t,r){var i,n,a,s,u,p,c=0,m=!1,l=!1,d=!0;if("function"!=typeof e)throw new fe(o);function y(t){var r=i,o=n;return i=n=void 0,c=t,s=e.apply(o,r)}function h(e){return c=e,u=So(f,t),m?y(e):s}function b(e){var r=e-p;return void 0===p||r>=t||r<0||l&&e-c>=a}function f(){var e=ya();if(b(e))return g(e);u=So(f,function(e){var r=t-(e-p);return l?or(r,a-(e-c)):r}(e))}function g(e){return u=void 0,d&&i?y(e):(i=n=void 0,s)}function S(){var e=ya(),r=b(e);if(i=arguments,n=this,p=e,r){if(void 0===u)return h(p);if(l)return pn(u),u=So(f,t),y(p)}return void 0===u&&(u=So(f,t)),s}return t=ns(t)||0,Va(r)&&(m=!!r.leading,a=(l="maxWait"in r)?nr(ns(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d),S.cancel=function(){void 0!==u&&pn(u),c=0,i=p=n=u=void 0},S.flush=function(){return void 0===u?s:g(ya())},S}var Ia=Li((function(e,t){return Jr(e,1,t)})),va=Li((function(e,t,r){return Jr(e,ns(t)||0,r)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new fe(o);var r=function r(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(Na.Cache||wr),r}function Ta(e){if("function"!=typeof e)throw new fe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=wr;var Ca=sn((function(e,t){var r=(t=1==t.length&&qa(t[0])?dt(t[0],Et(Qn())):dt(ii(t,1),Et(Qn()))).length;return Li((function(i){for(var n=-1,o=or(i.length,r);++n=t})),xa=fi(function(){return arguments}())?fi:function(e){return ja(e)&&Te.call(e,"callee")&&!We.call(e,"callee")},qa=r.isArray,wa=Ye?Et(Ye):function(e){return ja(e)&&mi(e)==T};function _a(e){return null!=e&&Fa(e.length)&&!Ua(e)}function Ma(e){return ja(e)&&_a(e)}var La=er||nu,Oa=et?Et(et):function(e){return ja(e)&&mi(e)==m};function Ba(e){if(!ja(e))return!1;var t=mi(e);return t==l||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function Ua(e){if(!Va(e))return!1;var t=mi(e);return t==d||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ga(e){return"number"==typeof e&&e==rs(e)}function Fa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Va(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ja(e){return null!=e&&"object"==typeof e}var za=tt?Et(tt):function(e){return ja(e)&&to(e)==h};function Ka(e){return"number"==typeof e||ja(e)&&mi(e)==b}function Wa(e){if(!ja(e)||mi(e)!=f)return!1;var t=Ve(e);if(null===t)return!0;var r=Te.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ne.call(r)==De}var Ha=rt?Et(rt):function(e){return ja(e)&&mi(e)==g};var $a=it?Et(it):function(e){return ja(e)&&to(e)==S};function Qa(e){return"string"==typeof e||!qa(e)&&ja(e)&&mi(e)==I}function Ja(e){return"symbol"==typeof e||ja(e)&&mi(e)==v}var Za=nt?Et(nt):function(e){return ja(e)&&Fa(e.length)&&!!Ge[mi(e)]};var Xa=wn(Ci),Ya=wn((function(e,t){return e<=t}));function es(e){if(!e)return[];if(_a(e))return Qa(e)?Wt(e):bn(e);if(Ze&&e[Ze])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ze]());var t=to(e);return(t==h?Gt:t==S?jt:Rs)(e)}function ts(e){return e?(e=ns(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function rs(e){var t=ts(e),r=t%1;return t===t?r?t-r:t:0}function is(e){return e?Hr(rs(e),0,4294967295):0}function ns(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Va(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Va(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($,"");var r=oe.test(e);return r||se.test(e)?ze(e.slice(2),r?2:8):ne.test(e)?NaN:+e}function os(e){return fn(e,Is(e))}function as(e){return null==e?"":Qi(e)}var ss=Sn((function(e,t){if(co(t)||_a(t))fn(t,Ss(t),e);else for(var r in t)Te.call(t,r)&&Fr(e,r,t[r])})),us=Sn((function(e,t){fn(t,Is(t),e)})),ps=Sn((function(e,t,r,i){fn(t,Is(t),e,i)})),cs=Sn((function(e,t,r,i){fn(t,Ss(t),e,i)})),ms=jn(Wr);var ls=Li((function(e,t){e=ye(e);var r=-1,i=t.length,n=i>2?t[2]:void 0;for(n&&ao(t[0],t[1],n)&&(i=1);++r1),t})),fn(e,Kn(e),r),i&&(r=$r(r,7,Fn));for(var n=t.length;n--;)Zi(r,t[n]);return r}));var Cs=jn((function(e,t){return null==e?{}:function(e,t){return xi(e,t,(function(t,r){return hs(e,r)}))}(e,t)}));function ks(e,t){if(null==e)return{};var r=dt(Kn(e),(function(e){return[e]}));return t=Qn(t),xi(e,r,(function(e,r){return t(e,r[0])}))}var As=On(Ss),Ds=On(Is);function Rs(e){return null==e?[]:xt(e,Ss(e))}var Ps=Tn((function(e,t,r){return t=t.toLowerCase(),e+(r?Es(t):t)}));function Es(e){return Bs(as(e).toLowerCase())}function xs(e){return(e=as(e))&&e.replace(pe,Lt).replace(we,"")}var qs=Tn((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),ws=Tn((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),_s=Nn("toLowerCase");var Ms=Tn((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ls=Tn((function(e,t,r){return e+(r?" ":"")+Bs(t)}));var Os=Tn((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Bs=Nn("toUpperCase");function Us(e,t,r){return e=as(e),void 0===(t=r?void 0:t)?function(e){return Oe.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Gs=Li((function(e,t){try{return ot(e,void 0,t)}catch(r){return Ba(r)?r:new n(r)}})),Fs=jn((function(e,t){return st(t,(function(t){t=ko(t),Kr(e,t,fa(e[t],e))})),e}));function Vs(e){return function(){return e}}var js=An(),zs=An(!0);function Ks(e){return e}function Ws(e){return vi("function"==typeof e?e:$r(e,1))}var Hs=Li((function(e,t){return function(r){return bi(r,e,t)}})),$s=Li((function(e,t){return function(r){return bi(e,r,t)}}));function Qs(e,t,r){var i=Ss(t),n=ui(t,i);null!=r||Va(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=ui(t,Ss(t)));var o=!(Va(r)&&"chain"in r)||!!r.chain,a=Ua(e);return st(n,(function(r){var i=t[r];e[r]=i,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),n=r.__actions__=bn(this.__actions__);return n.push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,yt([this.value()],arguments))})})),e}function Js(){}var Zs=En(dt),Xs=En(pt),Ys=En(ft);function eu(e){return so(e)?kt(ko(e)):function(e){return function(t){return pi(t,e)}}(e)}var tu=qn(),ru=qn(!0);function iu(){return[]}function nu(){return!1}var ou=Pn((function(e,t){return e+t}),0),au=Mn("ceil"),su=Pn((function(e,t){return e/t}),1),uu=Mn("floor");var pu=Pn((function(e,t){return e*t}),1),cu=Mn("round"),mu=Pn((function(e,t){return e-t}),0);return Ar.after=function(e,t){if("function"!=typeof t)throw new fe(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ar.ary=ha,Ar.assign=ss,Ar.assignIn=us,Ar.assignInWith=ps,Ar.assignWith=cs,Ar.at=ms,Ar.before=ba,Ar.bind=fa,Ar.bindAll=Fs,Ar.bindKey=ga,Ar.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Ar.chain=ea,Ar.chunk=function(e,t,i){t=(i?ao(e,t,i):void 0===t)?1:nr(rs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var o=0,a=0,s=r(Zt(n/t));on?0:n+r),(i=void 0===i||i>n?n:rs(i))<0&&(i+=n),i=r>i?0:is(i);r>>0)?(e=as(e))&&("string"==typeof t||null!=t&&!Ha(t))&&!(t=Qi(t))&&Ut(e)?un(Wt(e),0,r):e.split(t,r):[]},Ar.spread=function(e,t){if("function"!=typeof e)throw new fe(o);return t=null==t?0:nr(rs(t),0),Li((function(r){var i=r[t],n=un(r,0,t);return i&&yt(n,i),ot(e,this,n)}))},Ar.tail=function(e){var t=null==e?0:e.length;return t?ji(e,1,t):[]},Ar.take=function(e,t,r){return e&&e.length?ji(e,0,(t=r||void 0===t?1:rs(t))<0?0:t):[]},Ar.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,(t=i-(t=r||void 0===t?1:rs(t)))<0?0:t,i):[]},Ar.takeRightWhile=function(e,t){return e&&e.length?Yi(e,Qn(t,3),!1,!0):[]},Ar.takeWhile=function(e,t){return e&&e.length?Yi(e,Qn(t,3)):[]},Ar.tap=function(e,t){return t(e),e},Ar.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new fe(o);return Va(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),Sa(e,t,{leading:i,maxWait:t,trailing:n})},Ar.thru=ta,Ar.toArray=es,Ar.toPairs=As,Ar.toPairsIn=Ds,Ar.toPath=function(e){return qa(e)?dt(e,ko):Ja(e)?[e]:bn(Co(as(e)))},Ar.toPlainObject=os,Ar.transform=function(e,t,r){var i=qa(e),n=i||La(e)||Za(e);if(t=Qn(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:Va(e)&&Ua(o)?Dr(Ve(e)):{}}return(n?st:ai)(e,(function(e,i,n){return t(r,e,i,n)})),r},Ar.unary=function(e){return ha(e,1)},Ar.union=jo,Ar.unionBy=zo,Ar.unionWith=Ko,Ar.uniq=function(e){return e&&e.length?Ji(e):[]},Ar.uniqBy=function(e,t){return e&&e.length?Ji(e,Qn(t,2)):[]},Ar.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Ji(e,void 0,t):[]},Ar.unset=function(e,t){return null==e||Zi(e,t)},Ar.unzip=Wo,Ar.unzipWith=Ho,Ar.update=function(e,t,r){return null==e?e:Xi(e,t,on(r))},Ar.updateWith=function(e,t,r,i){return i="function"==typeof i?i:void 0,null==e?e:Xi(e,t,on(r),i)},Ar.values=Rs,Ar.valuesIn=function(e){return null==e?[]:xt(e,Is(e))},Ar.without=$o,Ar.words=Us,Ar.wrap=function(e,t){return ka(on(t),e)},Ar.xor=Qo,Ar.xorBy=Jo,Ar.xorWith=Zo,Ar.zip=Xo,Ar.zipObject=function(e,t){return rn(e||[],t||[],Fr)},Ar.zipObjectDeep=function(e,t){return rn(e||[],t||[],Ui)},Ar.zipWith=Yo,Ar.entries=As,Ar.entriesIn=Ds,Ar.extend=us,Ar.extendWith=ps,Qs(Ar,Ar),Ar.add=ou,Ar.attempt=Gs,Ar.camelCase=Ps,Ar.capitalize=Es,Ar.ceil=au,Ar.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=ns(r))===r?r:0),void 0!==t&&(t=(t=ns(t))===t?t:0),Hr(ns(e),t,r)},Ar.clone=function(e){return $r(e,4)},Ar.cloneDeep=function(e){return $r(e,5)},Ar.cloneDeepWith=function(e,t){return $r(e,5,t="function"==typeof t?t:void 0)},Ar.cloneWith=function(e,t){return $r(e,4,t="function"==typeof t?t:void 0)},Ar.conformsTo=function(e,t){return null==t||Qr(e,t,Ss(t))},Ar.deburr=xs,Ar.defaultTo=function(e,t){return null==e||e!==e?t:e},Ar.divide=su,Ar.endsWith=function(e,t,r){e=as(e),t=Qi(t);var i=e.length,n=r=void 0===r?i:Hr(rs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},Ar.eq=Ra,Ar.escape=function(e){return(e=as(e))&&U.test(e)?e.replace(O,Ot):e},Ar.escapeRegExp=function(e){return(e=as(e))&&H.test(e)?e.replace(W,"\\$&"):e},Ar.every=function(e,t,r){var i=qa(e)?pt:ei;return r&&ao(e,t,r)&&(t=void 0),i(e,Qn(t,3))},Ar.find=na,Ar.findIndex=xo,Ar.findKey=function(e,t){return St(e,Qn(t,3),ai)},Ar.findLast=oa,Ar.findLastIndex=qo,Ar.findLastKey=function(e,t){return St(e,Qn(t,3),si)},Ar.floor=uu,Ar.forEach=aa,Ar.forEachRight=sa,Ar.forIn=function(e,t){return null==e?e:ni(e,Qn(t,3),Is)},Ar.forInRight=function(e,t){return null==e?e:oi(e,Qn(t,3),Is)},Ar.forOwn=function(e,t){return e&&ai(e,Qn(t,3))},Ar.forOwnRight=function(e,t){return e&&si(e,Qn(t,3))},Ar.get=ys,Ar.gt=Pa,Ar.gte=Ea,Ar.has=function(e,t){return null!=e&&ro(e,t,di)},Ar.hasIn=hs,Ar.head=_o,Ar.identity=Ks,Ar.includes=function(e,t,r,i){e=_a(e)?e:Rs(e),r=r&&!i?rs(r):0;var n=e.length;return r<0&&(r=nr(n+r,0)),Qa(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&vt(e,t,r)>-1},Ar.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:rs(r);return n<0&&(n=nr(i+n,0)),vt(e,t,n)},Ar.inRange=function(e,t,r){return t=ts(t),void 0===r?(r=t,t=0):r=ts(r),function(e,t,r){return e>=or(t,r)&&e=-9007199254740991&&e<=9007199254740991},Ar.isSet=$a,Ar.isString=Qa,Ar.isSymbol=Ja,Ar.isTypedArray=Za,Ar.isUndefined=function(e){return void 0===e},Ar.isWeakMap=function(e){return ja(e)&&to(e)==N},Ar.isWeakSet=function(e){return ja(e)&&"[object WeakSet]"==mi(e)},Ar.join=function(e,t){return null==e?"":rr.call(e,t)},Ar.kebabCase=qs,Ar.last=Bo,Ar.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return void 0!==r&&(n=(n=rs(r))<0?nr(i+n,0):or(n,i-1)),t===t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):It(e,Tt,n,!0)},Ar.lowerCase=ws,Ar.lowerFirst=_s,Ar.lt=Xa,Ar.lte=Ya,Ar.max=function(e){return e&&e.length?ti(e,Ks,li):void 0},Ar.maxBy=function(e,t){return e&&e.length?ti(e,Qn(t,2),li):void 0},Ar.mean=function(e){return Ct(e,Ks)},Ar.meanBy=function(e,t){return Ct(e,Qn(t,2))},Ar.min=function(e){return e&&e.length?ti(e,Ks,Ci):void 0},Ar.minBy=function(e,t){return e&&e.length?ti(e,Qn(t,2),Ci):void 0},Ar.stubArray=iu,Ar.stubFalse=nu,Ar.stubObject=function(){return{}},Ar.stubString=function(){return""},Ar.stubTrue=function(){return!0},Ar.multiply=pu,Ar.nth=function(e,t){return e&&e.length?Pi(e,rs(t)):void 0},Ar.noConflict=function(){return He._===this&&(He._=Re),this},Ar.noop=Js,Ar.now=ya,Ar.pad=function(e,t,r){e=as(e);var i=(t=rs(t))?Kt(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return xn(Xt(n),r)+e+xn(Zt(n),r)},Ar.padEnd=function(e,t,r){e=as(e);var i=(t=rs(t))?Kt(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=ur();return or(e+n*(t-e+je("1e-"+((n+"").length-1))),t)}return _i(e,t)},Ar.reduce=function(e,t,r){var i=qa(e)?ht:Dt,n=arguments.length<3;return i(e,Qn(t,4),r,n,Xr)},Ar.reduceRight=function(e,t,r){var i=qa(e)?bt:Dt,n=arguments.length<3;return i(e,Qn(t,4),r,n,Yr)},Ar.repeat=function(e,t,r){return t=(r?ao(e,t,r):void 0===t)?1:rs(t),Mi(as(e),t)},Ar.replace=function(){var e=arguments,t=as(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ar.result=function(e,t,r){var i=-1,n=(t=an(t,e)).length;for(n||(n=1,e=void 0);++i9007199254740991)return[];var r=4294967295,i=or(e,4294967295);e-=4294967295;for(var n=Pt(i,t=Qn(t));++r=o)return e;var s=r-Kt(i);if(s<1)return i;var u=a?un(a,0,s).join(""):e.slice(0,s);if(void 0===n)return u+i;if(a&&(s+=u.length-s),Ha(n)){if(e.slice(s).search(n)){var p,c=u;for(n.global||(n=he(n.source,as(ie.exec(n))+"g")),n.lastIndex=0;p=n.exec(c);)var m=p.index;u=u.slice(0,void 0===m?s:m)}}else if(e.indexOf(Qi(n),s)!=s){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},Ar.unescape=function(e){return(e=as(e))&&B.test(e)?e.replace(L,Ht):e},Ar.uniqueId=function(e){var t=++Ce;return as(e)+t},Ar.upperCase=Os,Ar.upperFirst=Bs,Ar.each=aa,Ar.eachRight=sa,Ar.first=_o,Qs(Ar,function(){var e={};return ai(Ar,(function(t,r){Te.call(Ar.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),Ar.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ar[e].placeholder=Ar})),st(["drop","take"],(function(e,t){Er.prototype[e]=function(r){r=void 0===r?1:nr(rs(r),0);var i=this.__filtered__&&!t?new Er(this):this.clone();return i.__filtered__?i.__takeCount__=or(r,i.__takeCount__):i.__views__.push({size:or(r,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var r=t+1,i=1==r||3==r;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qn(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}})),st(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Er.prototype[e]=function(){return this[r](1).value()[0]}})),st(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[r](1)}})),Er.prototype.compact=function(){return this.filter(Ks)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=Li((function(e,t){return"function"==typeof e?new Er(this):this.map((function(r){return bi(r,e,t)}))})),Er.prototype.reject=function(e){return this.filter(Ta(Qn(e)))},Er.prototype.slice=function(e,t){e=rs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Er(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=rs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(4294967295)},ai(Er.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=Ar[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);n&&(Ar.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,s=t instanceof Er,u=a[0],p=s||qa(t),c=function(e){var t=n.apply(Ar,yt([e],a));return i&&m?t[0]:t};p&&r&&"function"==typeof u&&1!=u.length&&(s=p=!1);var m=this.__chain__,l=!!this.__actions__.length,d=o&&!m,y=s&&!l;if(!o&&p){t=y?t:new Er(this);var h=e.apply(t,a);return h.__actions__.push({func:ta,args:[c],thisArg:void 0}),new Pr(h,m)}return d&&y?e.apply(this,a):(h=this.thru(c),d?i?h.value()[0]:h.value():h)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ge[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Ar.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(qa(n)?n:[],e)}return this[r]((function(r){return t.apply(qa(r)?r:[],e)}))}})),ai(Er.prototype,(function(e,t){var r=Ar[t];if(r){var i=r.name+"";Te.call(fr,i)||(fr[i]=[]),fr[i].push({name:t,func:r})}})),fr[Dn(void 0,2).name]=[{name:"wrapper",func:void 0}],Er.prototype.clone=function(){var e=new Er(this.__wrapped__);return e.__actions__=bn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bn(this.__views__),e},Er.prototype.reverse=function(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Er.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qa(e),i=t<0,n=r?e.length:0,o=function(e,t,r){var i=-1,n=r.length;for(;++i=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Ar.prototype.plant=function(e){for(var t,r=this;r instanceof Rr;){var i=Do(r);i.__index__=0,i.__values__=void 0,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},Ar.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),(t=t.reverse()).__actions__.push({func:ta,args:[Vo],thisArg:void 0}),new Pr(t,this.__chain__)}return this.thru(Vo)},Ar.prototype.toJSON=Ar.prototype.valueOf=Ar.prototype.value=function(){return en(this.__wrapped__,this.__actions__)},Ar.prototype.first=Ar.prototype.head,Ze&&(Ar.prototype[Ze]=function(){return this}),Ar}();He._=$t,void 0===(n=function(){return $t}.call(t,r,t,i))||(i.exports=n)}).call(this)}).call(this,r(41),r(105)(e))},function(e,t,r){"use strict";var i=r(31);r.d(t,"a",(function(){return i.a})),r.d(t,"b",(function(){return i.b})),r.d(t,"c",(function(){return i.c})),r.d(t,"d",(function(){return i.d})),r.d(t,"e",(function(){return i.f})),r.d(t,"f",(function(){return i.k}))},function(e,t,r){var i=r(222),n=r(223),o=n;o.v1=i,o.v4=n,e.exports=o},function(e,t,r){"use strict";function i(e,t,r,i,n,o,a){try{var s=e[o](a),u=s.value}catch(p){return void r(p)}s.done?t(u):Promise.resolve(u).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}}r.d(t,"a",(function(){return n}))},function(e,t,r){e.exports=function(){var e=e||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},n=i.lib={},o=n.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=n.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,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=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){t=t;var r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(r,t/2)}},p=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,o=this.blockSize,s=n/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,p=e.min(4*u,n);if(u){for(var c=0;co?1*i: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 i=e.toLowerCase(),n=r.filter((function(e){return i.endsWith("."+e.ext)}));return n.length>0?n[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,i=!1,n=e.then((function(e){return i=!0,t=!1,e}),(function(e){throw r=!0,t=!1,e}));return n.isFullfilled=function(){return i},n.isPending=function(){return t},n.isRejected=function(){return r},n},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,i){if(void 0===r&&(r=[]),void 0===i&&(i=[]),!t.isStrictObject(e))return e;var n={};for(var o in e){if(e.hasOwnProperty(o))n[r.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=i.includes(o)?e[o]:t.transferKeyToLowerCase(e[o],r,i)}return n},t.transferKeyToUpperCase=function(e,r,i){if(void 0===r&&(r=[]),void 0===i&&(i=[]),!t.isStrictObject(e))return e;var n={};for(var o in e){if(e.hasOwnProperty(o))n[r.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=i.includes(o)?e[o]:t.transferKeyToUpperCase(e[o],r,i)}return n},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=i}).call(this,r(35))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"f",(function(){return u})),r.d(t,"g",(function(){return p})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return m})),r.d(t,"j",(function(){return l})),r.d(t,"k",(function(){return d})),r.d(t,"l",(function(){return y})),r.d(t,"m",(function(){return h}));var i="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",a="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",p="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",y="data:image/svg+xml;utf8,",h="data:image/svg+xml;utf8,"},function(e,t,r){"use strict";var i=r(111),n=Object.prototype.toString;function o(e){return"[object Array]"===n.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===n.call(e)}function p(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,i=e.length;r",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(p),m=["%","/","?",";","#"].concat(c),l=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(106);function S(e,t,r){if(e&&n.isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,r),i}o.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?w+="x":w+=q[_];if(!w.match(d)){var L=E.slice(0,D),O=E.slice(D+1),B=q.match(y);B&&(L.push(B[1]),O.unshift(B[2])),O.length&&(S="/"+O.join(".")+S),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.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=c.length;D0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=T.slice(-1)[0],A=(r.host||e.host||T.length>1)&&("."===k||".."===k)||""===k,D=0,R=T.length;R>=0;R--)"."===(k=T[R])?T.splice(R,1):".."===k?(T.splice(R,1),D++):D&&(T.splice(R,1),D--);if(!v&&!N)for(;D--;D)T.unshift("..");!v||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),A&&"/"!==T.join("/").substr(-1)&&T.push("");var P,E=""===T[0]||T[0]&&"/"===T[0].charAt(0);C&&(r.hostname=r.host=E?"":T.length?T.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(v=v||r.host&&T.length)&&!E&&T.unshift(""),T.length?r.pathname=T.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=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";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,r){"use strict";var i;function n(e){return e&&(e.hasOwnProperty("collection")||e.hasOwnProperty("collectionId"))}function o(e){return e&&e.hasOwnProperty("celebrityDetection")}function a(e){return e&&e.hasOwnProperty("translateText")}function s(e){return e&&e.hasOwnProperty("textToSpeech")}function u(e){return e&&e.hasOwnProperty("transcription")}function p(e){return e&&e.hasOwnProperty("key")}function c(e){return e&&e.hasOwnProperty("file")}function m(e){return e&&e.hasOwnProperty("bytes")}function l(e){return e&&e.hasOwnProperty("text")}function d(e){return e&&e.hasOwnProperty("labels")}function y(e){return e&&e.hasOwnProperty("entities")}function h(e){return e&&e.hasOwnProperty("text")}r.d(t,"a",(function(){return i})),r.d(t,"f",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"m",(function(){return a})),r.d(t,"l",(function(){return s})),r.d(t,"j",(function(){return u})),r.d(t,"k",(function(){return p})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return m})),r.d(t,"h",(function(){return l})),r.d(t,"g",(function(){return d})),r.d(t,"e",(function(){return y})),r.d(t,"i",(function(){return h})),function(e){e.ALL="ALL",e.LANGUAGE="LANGUAGE",e.ENTITIES="ENTITIES",e.SENTIMENT="SENTIMENT",e.SYNTAX="SYNTAX",e.KEY_PHRASES="KEY_PHRASES"}(i||(i={}))},function(e,t,r){"use strict";var i=r(18);function n(e){return"/"===e.charAt(0)}function o(e,t){for(var r=t,i=r+1,n=e.length;i=0;l--){var d=a[l];"."===d?o(a,l):".."===d?(o(a,l),m++):m&&(o(a,l),m--)}if(!p)for(;m--;m)a.unshift("..");!p||""===a[0]||a[0]&&n(a[0])||a.unshift("");var y=a.join("/");return r&&"/"!==y.substr(-1)&&(y+="/"),y};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,i){return e(t,r[i])}));if("object"===typeof t||"object"===typeof r){var i=s(t),n=s(r);return i!==t||n!==r?e(i,n):Object.keys(Object.assign({},t,r)).every((function(i){return e(t[i],r[i])}))}return!1},p=r(30);function c(e){return"/"===e.charAt(0)?e:"/"+e}function m(e){return"/"===e.charAt(0)?e.substr(1):e}function l(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 d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function y(e){var t=e.pathname,r=e.search,i=e.hash,n=t||"/";return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function h(e,t,r,n){var o;"string"===typeof e?(o=function(e){var t=e||"/",r="",i="",n=t.indexOf("#");-1!==n&&(i=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(r=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===r?"":r,hash:"#"===i?"":i}}(e)).state=t:(void 0===(o=Object(i.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return r&&(o.key=r),n?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o}function b(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function f(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,i,n){if(null!=e){var o="function"===typeof e?e(t,r):e;"string"===typeof o?"function"===typeof i?i(o,n):n(!0):n(!1!==o)}else n(!0)},appendListener:function(e){var r=!0;function i(){r&&e.apply(void 0,arguments)}return t.push(i),function(){r=!1,t=t.filter((function(e){return e!==i}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),i=0;it?r.splice(t,r.length-t,i):r.push(i),m({action:"PUSH",location:i,index:t,entries:r})}}))},replace:function(e,t){var i=h(e,t,l(),I.location);c.confirmTransitionTo(i,"REPLACE",r,(function(e){e&&(I.entries[I.index]=i,m({action:"REPLACE",location:i}))}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},canGo:function(e){var t=I.index+e;return t>=0&&t0){var n=function(e){return void 0===e&&(e=[]),e.map((function(e){var t=e.offset,r=[];for(var i in e)e.hasOwnProperty(i)&&"offset"!==i&&r.push(i+": "+e[i]+";");return 100*t+"% { "+r.join(" ")+" }"})).join(" ")}(r),a=function(e,t,r){var i=function(e){var t=e.getRootNode();return t.head||t}(r),n=s(r),o=i.querySelector("#"+e);if(o)return o;var a=(r.ownerDocument||document).createElement("style");return a.id=e,a.textContent="@"+n+"keyframes "+e+" { "+t+" } @"+n+"keyframes "+e+"-alt { "+t+" }",i.appendChild(a),a}(I=void 0!==e?e:function(e){var t=c.indexOf(e);return t<0&&(t=c.push(e)-1),"ion-animation-"+t}(n),n,i);F.push(a),u(i,"animation-duration",ie()+"ms"),u(i,"animation-timing-function",re()),u(i,"animation-delay",oe()+"ms"),u(i,"animation-fill-mode",ee()),u(i,"animation-direction",te());var p=ne()===1/0?"infinite":ne().toString();u(i,"animation-iteration-count",p),u(i,"animation-play-state","paused"),t&&u(i,"animation-name",a.id+"-alt"),Object(o.k)((function(){u(i,"animation-name",a.id||null)}))}}))},ue=function(e){void 0===e&&(e=!0),function(){V.forEach((function(e){return e()})),j.forEach((function(e){return e()}));var e=T,t=C,r=A;U.forEach((function(i){var n=i.classList;for(var o in e.forEach((function(e){return n.add(e)})),t.forEach((function(e){return n.remove(e)})),r)r.hasOwnProperty(o)&&u(i,o,r[o])}))}(),N.length>0&&($?(U.forEach((function(e){var t=e.animate(N,{id:L,delay:oe(),duration:ie(),easing:re(),iterations:ne(),fill:ee(),direction:te()});t.pause(),W.push(t)})),W.length>0&&(W[0].onfinish=function(){ae()})):se(e)),k=!0},pe=function(e){if(e=Math.min(Math.max(e,0),.9999),$)W.forEach((function(t){t.currentTime=t.effect.getComputedTiming().delay+ie()*e,t.pause()}));else{var t="-"+ie()*e+"ms";U.forEach((function(e){N.length>0&&(u(e,"animation-delay",t),u(e,"animation-play-state","paused"))}))}},ce=function(e){W.forEach((function(e){e.effect.updateTiming({delay:oe(),duration:ie(),easing:re(),iterations:ne(),fill:ee(),direction:te()})})),void 0!==e&&pe(e)},me=function(e,t){void 0===e&&(e=!0),Object(o.k)((function(){U.forEach((function(r){u(r,"animation-name",I||null),u(r,"animation-duration",ie()+"ms"),u(r,"animation-timing-function",re()),u(r,"animation-delay",void 0!==t?"-"+t*ie()+"ms":oe()+"ms"),u(r,"animation-fill-mode",ee()||null),u(r,"animation-direction",te()||null);var i=ne()===1/0?"infinite":ne().toString();u(r,"animation-iteration-count",i),e&&u(r,"animation-name",I+"-alt"),Object(o.k)((function(){u(r,"animation-name",I||null)}))}))}))},le=function(e,t,r){return void 0===e&&(e=!1),void 0===t&&(t=!0),e&&G.forEach((function(i){i.update(e,t,r)})),$?ce(r):me(t,r),v},de=function(){k&&($?W.forEach((function(e){e.pause()})):U.forEach((function(e){u(e,"animation-play-state","paused")})))},ye=function(){b=void 0,ae()},he=function(){b&&clearTimeout(b)},be=function(){U.forEach((function(e){p(e,"animation-duration"),p(e,"animation-delay"),p(e,"animation-play-state")}))},fe=function(e){return new Promise((function(t){e&&e.sync&&(q=!0,J((function(){return q=!1}),{oneTimeCallback:!0})),k||ue(),_&&($?(pe(0),ce()):me(),_=!1),M&&(E=G.length+1,M=!1),J((function(){return t()}),{oneTimeCallback:!0}),G.forEach((function(e){e.play()})),$?(W.forEach((function(e){e.play()})),0!==N.length&&0!==U.length||ae()):function(){if(he(),Object(o.k)((function(){U.forEach((function(e){N.length>0&&u(e,"animation-play-state","running")}))})),0===N.length||0===U.length)ae();else{var e=oe()||0,t=ie()||0,r=ne()||1;isFinite(r)&&(b=setTimeout(ye,e+t*r+100)),function(e,t){var r,i={passive:!0},n=function(){r&&r()},o=function(r){e===r.target&&(n(),t(r))};e&&(e.addEventListener("webkitAnimationEnd",o,i),e.addEventListener("animationend",o,i),r=function(){e.removeEventListener("webkitAnimationEnd",o,i),e.removeEventListener("animationend",o,i)})}(U[0],(function(){he(),Object(o.k)((function(){be(),Object(o.k)(ae)}))}))}}()}))},ge=function(e,t){var r,i=N[0];return void 0===i||void 0!==i.offset&&0!==i.offset?N=Object(n.__spreadArrays)([(r={offset:0},r[e]=t,r)],N):i[e]=t,v};return v={parentAnimation:h,elements:U,childAnimations:G,id:L,animationFinish:ae,from:ge,to:function(e,t){var r,i=N[N.length-1];return void 0===i||void 0!==i.offset&&1!==i.offset?N=Object(n.__spreadArrays)(N,[(r={offset:1},r[e]=t,r)]):i[e]=t,v},fromTo:function(e,t,r){return ge(e,t).to(e,r)},parent:function(e){return h=e,v},play:fe,pause:function(){return G.forEach((function(e){e.pause()})),de(),v},stop:function(){G.forEach((function(e){e.stop()})),k&&(X(),k=!1),x=!1,q=!1,M=!0,f=void 0,g=void 0,S=void 0,E=0,_=!1,w=!0},destroy:function(){return G.forEach((function(e){e.destroy()})),Q(),U.length=0,G.length=0,N.length=0,Z(),k=!1,M=!0,v},keyframes:function(e){return N=e,v},addAnimation:function(e){if(null!=e)if(Array.isArray(e))for(var t=0,r=e;t=0)for(var t=0;t1)for(var r=1;r0){var r=t[0];return{x:r.clientX,y:r.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},l=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'+e+'" is not a valid value for [side]. Use "start" or "end" instead.')}},d=function(e,t){var r=e._original||e;return{_original:e,emit:y(r.emit.bind(r),t)}},y=function(e,t){var r;return void 0===t&&(t=0),function(){for(var n=[],o=0;o0}))}(e,t);return void 0===r?i[i.length-1]:i.find((function(e){return e.id===r}))},v=function(e,t,r,o,a){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var s;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return e.presented?[2]:(e.presented=!0,e.willPresent.emit(),s=e.enterAnimation?e.enterAnimation:n.b.get(t,"ios"===e.mode?r:o),[4,C(e,s,e.el,a)]);case 1:return i.sent()&&e.didPresent.emit(),[2]}}))}))},N=function(e,t,r,o,a,u,p){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var c,m;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:if(!e.presented)return[2,!1];e.presented=!1,i.label=1;case 1:return i.trys.push([1,4,,5]),e.willDismiss.emit({data:t,role:r}),c=e.leaveAnimation?e.leaveAnimation:n.b.get(o,"ios"===e.mode?a:u),"gesture"===r?[3,3]:[4,C(e,c,e.el,p)];case 2:i.sent(),i.label=3;case 3:return e.didDismiss.emit({data:t,role:r}),s.delete(e),[3,5];case 4:return m=i.sent(),console.error(m),[3,5];case 5:return e.el.remove(),[2,!0]}}))}))},T=function(e){return e.querySelector("ion-app")||e.body},C=function(e,t,r,o){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var a,u,p;return Object(i.__generator)(this,(function(c){switch(c.label){case 0:return r.classList.remove("overlay-hidden"),a=r.shadowRoot||e.el,u=t(a,o),e.animated&&n.b.getBoolean("animated",!0)||u.duration(0),e.keyboardClose&&u.beforeAddWrite((function(){var e=r.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()})),p=s.get(e)||[],s.set(e,Object(i.__spreadArrays)(p,[u])),[4,u.play()];case 1:return c.sent(),[2,!0]}}))}))},k=function(e,t){var r,i=new Promise((function(e){return r=e}));return A(e,t,(function(e){r(e.detail)})),i},A=function(e,t,r){e.addEventListener(t,(function i(n){e.removeEventListener(t,i),r(n)}))},D=function(e){return"cancel"===e||e===x},R=function(e,t){for(;t;){if(t===e)return!0;t=t.parentElement}return!1},P=function(e){return e()},E=function(e,t){if("function"===typeof e)return n.b.get("_zoneGate",P)((function(){try{return e(t)}catch(r){console.error(r)}}))},x="backdrop"},function(e,t,r){"use strict";function i(e,t){if(t.length1?"s":" required, but only "+t.length+" present")}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";var i=r(2),n=new i.c("Amplify"),o=function(){function e(){}return e.prototype.configure=function(e){return n.debug("configure AbstractPredictionsProvider",{config:e}),this._config=e,e},e}(),a=(r(58),r(31)),s=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),u=new i.k("AbstractIdentifyPredictionsProvider"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getCategory=function(){return"Identify"},t.prototype.identify=function(e){return Object(a.h)(e)?(u.debug("identifyText"),this.identifyText(e)):Object(a.g)(e)?(u.debug("identifyLabels"),this.identifyLabels(e)):Object(a.e)(e)?(u.debug("identifyEntities"),this.identifyEntities(e)):void 0},t.prototype.identifyText=function(e){throw new Error("identifyText is not implemented by this provider.")},t.prototype.identifyLabels=function(e){throw new Error("identifyLabels is not implemented by this provider")},t.prototype.identifyEntities=function(e){throw new Error("identifyEntities is not implemented by this provider")},t}(o),c=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getCategory=function(){return"Interpret"},t.prototype.interpret=function(e){if(Object(a.i)(e))return this.interpretText(e)},t.prototype.interpretText=function(e){throw new Error("interpretText is not implement by this provider")},t}(o);r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return m}))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(i){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function i(e,t){if(null==e)return{};var r,i,n={},o=Object.keys(e);for(i=0;i=0||(n[r]=e[r]);return n}r.d(t,"a",(function(){return i}))},function(e,t,r){var i,n;!function(o){if(void 0===(n="function"===typeof(i=o)?i.call(t,r,t,e):i)||(e.exports=n),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e0){var n,a=Number.MIN_SAFE_INTEGER;r.forEach((function(e){var t=e.priority,r=e.handler;t>=a&&(a=t,n=r)})),t=!0,o(n).then((function(){return t=!1}))}}}))},o=function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var t,r;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),e?null==(t=e())?[3,2]:[4,t]:[3,2];case 1:i.sent(),i.label=2;case 2:return[3,4];case 3:return r=i.sent(),console.error(r),[3,4];case 4:return[2]}}))}))},a=100,s=99},function(e,t,r){var i=r(90),n=r(13);function o(e,t,r){null!==r&&void 0!==r&&n.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||n.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function p(e,t){var r=this,n=null,p=!this.isShape;u.apply(this,arguments),p&&(o(this,"defaultValue",(function(){return{}})),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",(function(){return!1}))),e.members&&(o(this,"members",new i(e.members,t,(function(e,r){return s.create(r,t,e)}))),a(this,"memberNames",(function(){return e.xmlOrder||Object.keys(e.members)})),e.event&&(a(this,"eventPayloadMemberName",(function(){for(var e=r.members,t=r.memberNames,i=0,n=t.length;i-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=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&"function"===typeof n.Buffer.alloc){var r=n.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=n.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:p,list:c,map:m,boolean:h,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"===typeof e.toUTCString?e:"string"===typeof e||"number"===typeof e?n.date.parseTimestamp(e):null},this.toWireFormat=function(e){return n.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:l,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 i=s.resolve(e,t);if(i){var n=Object.keys(e);t.documentation||(n=n.filter((function(e){return!e.match(/documentation/)})));var o=function(){i.constructor.call(this,e,t,r)};return o.prototype=i,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=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: "+a)},s.shapes={StructureShape:p,ListShape:c,MapShape:m,StringShape:l,BooleanShape:h,Base64Shape:y},e.exports=s},function(e,t,r){e.exports=r(146)()},function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=r(139)},function(e,t,r){r(4);var i=r(3),n=i.Service,o=i.apiLoader;o.services.rekognition={},i.Rekognition=n.defineService("rekognition",["2016-06-27"]),Object.defineProperty(o.services.rekognition,"2016-06-27",{get:function(){var e=r(266);return e.paginators=r(267).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Rekognition},function(e,t,r){"use strict";var i=r(2),n=r(129),o={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new i.q).getStorage()};function a(e){var t=0;t=e.length;for(var r=e.length;r>=0;r-=1){var i=e.charCodeAt(r);i>127&&i<=2047?t+=1:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&(r-=1)}return t}function s(){return(new Date).getTime()}function u(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var p={},c=function(){function e(){}return e.clear=function(){p={}},e.getItem=function(e){return p[e]||null},e.setItem=function(e,t){p[e]=t},e.removeItem=function(e){delete p[e]},e}(),m=function(e){this.key=e||"",this.prevNode=null,this.nextNode=null},l=function(){function e(){this.head=new m,this.tail=new m,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 m(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&&(d.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=o.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(d.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=o.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(d.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=o.warningThreshold);this.config.capacityInBytes>5242880&&(d.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=o.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,r){var i={key:e,data:t,timestamp:s(),visitedTime:s(),priority:r.priority,expires:r.expires,type:typeof t,byteSize:0};return i.byteSize=a(JSON.stringify(i)),i.byteSize=a(JSON.stringify(i)),i},e.prototype.configure=function(e){return e?(e.keyPrefix&&d.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),h=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),b=new i.c("Cache"),f=new(function(e){function t(t){var r=this,i=t?Object.assign({},o,t):o;return(r=e.call(this,i)||this).config.storage=i.storage,r.getItem=r.getItem.bind(r),r.setItem=r.setItem.bind(r),r.removeItem=r.removeItem.bind(r),r}return h(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=s(),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 s()>=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),b.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)b.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(i,t,n);if(o.byteSize>this.config.itemMaxSize)b.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var a=this.config.storage.getItem(i);if(a&&this._removeItem(i,JSON.parse(a).byteSize),this._isCacheFull(o.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var p=this._sizeToPop(o.byteSize);this._popOutItems(u,p)}}this._setItem(i,o)}catch(c){b.warn("setItem failed! "+c)}}}else b.warn("The value of item should not be undefined!");else b.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){b.log("Get item: key is "+e+" with options "+t);var r=null,i=this.config.keyPrefix+e;if(i===this.config.keyPrefix||i===this.cacheCurSizeKey)return b.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(r=this.config.storage.getItem(i))){if(!this._isExpired(i)){var n=JSON.parse(r);return(n=this._refreshItem(n,i)).data}this._removeItem(i,JSON.parse(r).byteSize),r=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return b.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){b.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(i){b.warn("removeItem failed! "+i)}},t.prototype.clear=function(){b.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)S.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(i,t,n);if(o.byteSize>this.config.itemMaxSize)S.warn("Item with key: "+e+" you are trying to put into is too big!");else{var a=this.containsKey(e);-1!==a&&this._removeItem(i,a-1);for(var u=this.maxPriority-1;this._isCacheFull(o.byteSize)&&u>=0;)if(this.cacheList[u].isEmpty())u-=1;else{var p=this.cacheList[u].getLastItem();this._removeItem(p,u)}this._setItem(i,o,Number(o.priority)-1)}}}else S.warn("The value of item should not be undefined!");else S.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){var r=null,i=this.config.keyPrefix+e;if(i===this.config.keyPrefix||i===this.cacheCurSizeKey)return S.warn("Invalid key: should not be empty or 'CurSize'"),null;var n=this.containsKey(e);if(-1!==n){if(!this._isExpired(i)){r=c.getItem(i);var o=JSON.parse(r);return this.cacheList[o.priority-1].refresh(i),o.data}this._removeItem(i,n-1)}if(t&&void 0!==t.callback){var a=t.callback();return null!==a&&this.setItem(e,a,t),a}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;e0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[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),i=this._buffer.splice(0,r);this._putEvents(i)}},e.prototype._putEvents=function(e){return N(this,void 0,void 0,(function(){var t,r,i,n;return T(this,(function(o){switch(o.label){case 0:t=this._bufferToMap(e),r=this._generateBatchEventParams(t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._client.putEvents(r).promise()];case 2:return i=o.sent(),this._processPutEventsSuccessResponse(i,t),[3,4];case 3:return n=o.sent(),[2,this._handlePutEventsFailure(n,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,i=r.event,n=r.timestamp,o=r.config,a=i.name,s=i.attributes,u=i.metrics,p=i.eventId,c=i.session,m=o.appId,l=o.endpointId,d=t.EventsRequest.BatchItem;t.ApplicationId=t.ApplicationId||m,d[l]||(d[l]={Endpoint:{},Events:{}}),d[l].Events[p]={EventType:a,Timestamp:new Date(n).toISOString(),Attributes:s,Metrics:u,Session:c}})),t},e.prototype._handlePutEventsFailure=function(e,t){C.debug("_putEvents Failed:",e);var r=e.statusCode;if(k.includes(r)){var i=Object.values(t);this._retry(i)}else;},e.prototype._processPutEventsSuccessResponse=function(e,t){var r=e.EventsResponse.Results,i=[];Object.entries(r).forEach((function(e){var r=e[0],n=e[1].EventsItemResponse;Object.entries(n).forEach((function(e){var n,o,a=e[0],s=e[1],u=s.StatusCode,p=s.Message,c=t[a],m={EventsResponse:{Results:(n={},n[r]={EventsItemResponse:(o={},o[a]={StatusCode:u,Message:p},o)},n)}};if(A.includes(u))c.handlers.resolve(m);else{if(!k.includes(u)){var l=c.params.event.name;return C.error("event "+a+" : "+l+" failed with error: "+p),c.handlers.reject(m)}i.push(c)}}))})),i.length&&this._retry(i)},e.prototype._retry=function(e){var t,r=[];e.forEach((function(e){var t,i=e.params,n=i.event,o=n.eventId,a=n.name;if(i.resendLimit-- >0)return C.debug("resending event "+o+" : "+a+" with "+i.resendLimit+" retry attempts remaining"),void r.push((t={},t[o]=e,t));C.debug("no retry attempts remaining for event "+o+" : "+a)})),(t=this._buffer).unshift.apply(t,r)},e.prototype._bufferToMap=function(e){return e.reduce((function(e,t){var r=Object.entries(t)[0],i=r[0],n=r[1];return e[i]=n,e}),{})},e}(),R=function(){return(R=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0?(_.debug("resending event "+e.eventName+" with "+e.resendLimit+" retry times left"),this._pinpointPutEvents(e,t)):_.debug("retry times used up for event "+e.eventName)},e.prototype._updateEndpoint=function(e){return P(this,void 0,void 0,(function(){var t,r,n,o,a,s,u,p,c,m,l;return E(this,(function(d){switch(d.label){case 0:t=e.params,r=e.handlers,n=t.config,o=t.event,a=n.appId,s=n.endpointId,u=this._endpointRequest(n,i.j.transferKeyToLowerCase(o,[],["attributes","userAttributes","Attributes","UserAttributes"])),p={ApplicationId:a,EndpointId:s,EndpointRequest:u},d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.pinpointClient.updateEndpoint(p).promise()];case 2:return c=d.sent(),_.debug("updateEndpoint success",c),this._endpointGenerating=!1,this._resumeBuffer(),r.resolve(c),[2];case 3:return m=d.sent(),l={err:m,update_params:p,endpointObject:e},[2,this._handleEndpointUpdateFailure(l)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateFailure=function(e){return P(this,void 0,void 0,(function(){var t,r,i;return E(this,(function(n){switch(t=e.err,r=e.endpointObject,i=t.statusCode,_.debug("updateEndpoint failed",t),i){case 400:return[2,this._handleEndpointUpdateBadRequest(e)];case 403:return[2,this._handleEndpointUpdateForbidden(e)];default:if(M.includes(i))return!0,[2,this._retryEndpointUpdate(r,!0)];r.handlers.reject(t)}return[2]}))}))},e.prototype._handleEndpointUpdateBadRequest=function(e){return P(this,void 0,void 0,(function(){var t,r,i,n,o,a,s;return E(this,(function(u){switch(u.label){case 0:if(t=e.err,r=e.update_params,i=e.endpointObject,n=t.message,o=r.ApplicationId,a=r.EndpointRequest,!String(n).startsWith("Exceeded maximum endpoint per user count"))return[2,i.handlers.reject(t)];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._removeUnusedEndpoints(o,a.User.UserId)];case 2:return u.sent(),_.debug("Removed unused endpoints successfully"),this._retryEndpointUpdate(i),[3,4];case 3:return s=u.sent(),_.warn("Failed to remove unused endpoints with error: "+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,i.handlers.reject(s)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateForbidden=function(e){var t=e.err,r=e.endpointObject,i=t.code,n=t.retryable;if("ExpiredTokenException"!==i&&!n)return r.handlers.reject(t);this._retryEndpointUpdate(r)},e.prototype._retryEndpointUpdate=function(e,t){void 0===t&&(t=!1),_.debug("_retryEndpointUpdate",e);var r=e.params,i=r.config.resendLimit;if(r.resendLimit="number"===typeof r.resendLimit?r.resendLimit:i,r.resendLimit-- >0)return _.debug("resending endpoint update "+r.event.eventId+" with "+r.resendLimit+" retry attempts remaining"),void(this._endpointBuffer.length?this._endpointBuffer.unshift(e):this._updateEndpoint(e));_.warn("resending endpoint update "+r.event.eventId+" failed after "+r.config.resendLimit+" attempts"),this._endpointGenerating&&_.error("Initial endpoint update failed. ")},e.prototype._removeUnusedEndpoints=function(e,t){return P(this,void 0,void 0,(function(){var r=this;return E(this,(function(i){return[2,new Promise((function(i,n){r.pinpointClient.getUserEndpoints({ApplicationId:e,UserId:t},(function(o,a){if(o)return _.debug("Failed to get endpoints associated with the userId: "+t+" with error",o),n(o);var s=a.EndpointsResponse.Item;_.debug("get endpoints associated with the userId: "+t+" with data",s);for(var u=s[0],p=1;p0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0},e}(),ve=r(70),Ne=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},Te=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&this._config.flushSize<=10?this._config.flushSize:5,this._config.flushInterval=this._config.flushInterval||5e3,this._sessionManager=new xe,Object(Ee.isEmpty)(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._isBrowser=i.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 we(this,void 0,void 0,(function(){var t,r,i,n,o;return _e(this,(function(a){switch(a.label){case 0:return[4,this._getCredentials()];case 1:return(t=a.sent())?(Object.assign(e,{config:this._config,credentials:t,sentAt:(new Date).getTime()/1e3}),r=e.event,i=r.eventType,n=r.properties,"Identify"===i?(this._sessionManager.updateSessionInfo(n&&n.userId?n.userId:"",this._sessionInfo),[2]):(Object(Ee.isEmpty)(e.event.userId)||this._sessionManager.updateSessionInfo(e.event.userId,this._sessionInfo),o=this.generateRequestParams(e,this._sessionInfo),"MediaAutoTrack"!==i?[3,7]:this._isBrowser?Object(Ee.isEmpty)(Object(Ee.get)(o,"eventData.properties.domElementId",null))?[3,3]:[4,this.isElementFullyLoaded(this.loadElement,o.eventData.properties.domElementId,500,5)]:[3,5])):[2,Promise.resolve(!1)];case 2:return a.sent()?new qe(o,this):Me.debug("Cannot find the media element."),[3,4];case 3:Me.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type."),a.label=4;case 4:return[3,6];case 5:Me.debug("MediaAutoTrack only for browser"),a.label=6;case 6:return[2];case 7:return[2,this.putToBuffer(o)]}}))}))},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,i){var n=this;return new Promise((function(o,a){return e(t).then(o).catch((function(s){return i-1>0?(u=r,new Promise((function(e){return setTimeout(e,u)}))).then(n.isElementFullyLoaded.bind(null,e,t,r,i-1)).then(o).catch(a):a(s);var u}))}))},e.prototype.getCategory=function(){return"Analytics"},e.prototype.getProviderName=function(){return"AmazonPersonalize"},e.prototype.configure=function(e){Me.debug("configure Analytics",e);var t=e||{};return this._config=Object.assign({},this._config,t),Object(Ee.isEmpty)(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._setupTimer(),this._config},e.prototype.generateRequestParams=function(e,t){var r={},i=e.event,n=i.eventType,o=i.properties;return r.eventData={eventType:n,properties:o},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],i=r.config,n=r.credentials,o=r.sessionInfo;if(!this._init(i,n))return!1;if(t>0){for(var a=[],s=0;s0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]>15;--o>=0;){var u=32767&this[e],p=this[e++]>>15,c=s*u+p*a;n=((u=a*u+((32767&c)<<15)+r[i]+(1073741823&n))>>>30)+(c>>>15)+s*p+(n>>>30),r[i++]=1073741823&u}return n},et=30):lt&&"Netscape"!=navigator.appName?(ct.prototype.am=function(e,t,r,i,n,o){for(;--o>=0;){var a=t*this[e++]+r[i]+n;n=Math.floor(a/67108864),r[i++]=67108863&a}return n},et=26):(ct.prototype.am=function(e,t,r,i,n,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],p=this[e++]>>14,c=s*u+p*a;n=((u=a*u+((16383&c)<<14)+r[i]+n)>>28)+(c>>14)+s*p,r[i++]=268435455&u}return n},et=28),ct.prototype.DB=et,ct.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 It(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},It.prototype.revert=function(e){var t=mt();return e.copyTo(t),this.reduce(t),t},It.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,i,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)},It.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},It.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},ct.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},ct.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},ct.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 i=e.length,n=!1,o=0;--i>=0;){var a=ft(e,i);a<0?"-"==e.charAt(i)&&(n=!0):(n=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),n&&ct.ZERO.subTo(this,this)},ct.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},ct.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},ct.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+a+1]=this[r]>>n|s,s=(this[r]&o)<=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},ct.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 i=e%this.DB,n=this.DB-i,o=(1<>i;for(var a=r+1;a>i;i>0&&(t[this.t-r-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},ct.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),n=r.t;for(t.t=n+i.t;--n>=0;)t[n]=0;for(n=0;n=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()},ct.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var n=this.abs();if(n.t0?(i.lShiftTo(u,o),n.lShiftTo(u,r)):(i.copyTo(o),n.copyTo(r));var p=o.t,c=o[p-1];if(0!=c){var m=c*(1<1?o[p-2]>>this.F2:0),l=this.FV/m,d=(1<=0&&(r[r.t++]=1,r.subTo(f,r)),ct.ONE.dlShiftTo(p,f),f.subTo(o,o);o.t=0;){var g=r[--h]==c?this.DM:Math.floor(r[h]*l+(r[h-1]+y)*d);if((r[h]+=o.am(0,g,r,b,0,p))0&&r.rShiftTo(u,r),a<0&&ct.ZERO.subTo(r,r)}}},ct.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},ct.prototype.addTo=function(e,t){for(var r=0,i=0,n=Math.min(e.t,this.t);r>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},ct.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,i=(1<0)for(s>s)>0&&(n=!0,o=bt(r));a>=0;)s>(s+=this.DB-t)):(r=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),r>0&&(n=!0),n&&(o+=bt(r));return n?o:"0"},ct.prototype.negate=function(){var e=mt();return ct.ZERO.subTo(this,e),e},ct.prototype.abs=function(){return this.s<0?this.negate():this},ct.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},ct.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+St(this[this.t-1]^this.s&this.DM)},ct.prototype.mod=function(e){var t=mt();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(ct.ZERO)>0&&e.subTo(t,t),t},ct.prototype.equals=function(e){return 0==this.compareTo(e)},ct.prototype.add=function(e){var t=mt();return this.addTo(e,t),t},ct.prototype.subtract=function(e){var t=mt();return this.subTo(e,t),t},ct.prototype.multiply=function(e){var t=mt();return this.multiplyTo(e,t),t},ct.prototype.divide=function(e){var t=mt();return this.divRemTo(e,t,null),t},ct.prototype.modPow=function(e,t,r){var i,n=e.bitLength(),o=gt(1),a=new It(t);if(n<=0)return o;i=n<18?1:n<48?3:n<144?4:n<768?5:6;var s=new Array,u=3,p=i-1,c=(1<1){var m=mt();for(a.sqrTo(s[1],m);u<=c;)s[u]=mt(),a.mulTo(m,s[u-2],s[u]),u+=2}var l,d,y=e.t-1,h=!0,b=mt();for(n=St(e[y])-1;y>=0;){for(n>=p?l=e[y]>>n-p&c:(l=(e[y]&(1<0&&(l|=e[y-1]>>this.DB+n-p)),u=i;0==(1&l);)l>>=1,--u;if((n-=u)<0&&(n+=this.DB,--y),h)s[l].copyTo(o),h=!1;else{for(;u>1;)a.sqrTo(o,b),a.sqrTo(b,o),u-=2;u>0?a.sqrTo(o,b):(d=o,o=b,b=d),a.mulTo(b,s[l],o)}for(;y>=0&&0==(e[y]&1<0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0;--r)t+=i[Math.round(Math.random()*(i.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(Zt(e))},e.prototype._base64URL=function(e){return e.toString(Xt).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&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]2&&void 0!==arguments[2]?arguments[2]:Fr,i=void 0,n=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,p=void 0,c=void 0,m=[],l=[],d=e;do{var y=++a===o.length,h=y&&0!==s.length;if(y){if(p=0===l.length?void 0:m[m.length-1],u=c,c=l.pop(),h){if(n)u=u.slice();else{var b={};for(var f in u)u.hasOwnProperty(f)&&(b[f]=u[f]);u=b}for(var g=0,S=0;S0||ei(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||ei(0,"column in locationOffset is 1-indexed and must be positive")};function ni(e,t,r){return new Gr("Syntax Error: ".concat(r),void 0,e,[t])}function oi(e){for(var t=e.split(/\r\n|[\n\r]/g),r=null,i=1;i0&&si(t[0]);)t.shift();for(;t.length>0&&si(t[t.length-1]);)t.pop();return t.join("\n")}function ai(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 li(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var di=String.prototype.charCodeAt,yi=String.prototype.slice;function hi(e,t,r,i,n,o,a){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=a,this.prev=o,this.next=null}function bi(e){return isNaN(e)?mi.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function fi(e,t){var r=e.source,i=r.body,n=i.length,o=function(e,t,r){var i=e.length,n=t;for(;n=n)return new hi(mi.EOF,n,n,a,s,t);var u=di.call(i,o);switch(u){case 33:return new hi(mi.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,i,n){var o,a=e.body,s=t;do{o=di.call(a,++s)}while(null!==o&&(o>31||9===o));return new hi(mi.COMMENT,t,s,r,i,n,yi.call(a,t+1,s))}(r,o,a,s,t);case 36:return new hi(mi.DOLLAR,o,o+1,a,s,t);case 38:return new hi(mi.AMP,o,o+1,a,s,t);case 40:return new hi(mi.PAREN_L,o,o+1,a,s,t);case 41:return new hi(mi.PAREN_R,o,o+1,a,s,t);case 46:if(46===di.call(i,o+1)&&46===di.call(i,o+2))return new hi(mi.SPREAD,o,o+3,a,s,t);break;case 58:return new hi(mi.COLON,o,o+1,a,s,t);case 61:return new hi(mi.EQUALS,o,o+1,a,s,t);case 64:return new hi(mi.AT,o,o+1,a,s,t);case 91:return new hi(mi.BRACKET_L,o,o+1,a,s,t);case 93:return new hi(mi.BRACKET_R,o,o+1,a,s,t);case 123:return new hi(mi.BRACE_L,o,o+1,a,s,t);case 124:return new hi(mi.PIPE,o,o+1,a,s,t);case 125:return new hi(mi.BRACE_R,o,o+1,a,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,i,n){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&null!==(u=di.call(o,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new hi(mi.NAME,t,s,r,i,n,yi.call(o,t,s))}(r,o,a,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,i,n,o){var a=e.body,s=r,u=t,p=!1;45===s&&(s=di.call(a,++u));if(48===s){if((s=di.call(a,++u))>=48&&s<=57)throw ni(e,u,"Invalid number, unexpected digit after 0: ".concat(bi(s),"."))}else u=gi(e,u,s),s=di.call(a,u);46===s&&(p=!0,s=di.call(a,++u),u=gi(e,u,s),s=di.call(a,u));69!==s&&101!==s||(p=!0,43!==(s=di.call(a,++u))&&45!==s||(s=di.call(a,++u)),u=gi(e,u,s));return new hi(p?mi.FLOAT:mi.INT,t,u,i,n,o,yi.call(a,t,u))}(r,o,u,a,s,t);case 34:return 34===di.call(i,o+1)&&34===di.call(i,o+2)?function(e,t,r,i,n){var o=e.body,a=t+3,s=a,u=0,p="";for(;a=48&&o<=57){do{o=di.call(i,++n)}while(o>=48&&o<=57);return n}throw ni(e,n,"Invalid number, expected digit but got: ".concat(bi(o),"."))}function Si(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}hi.prototype.toJSON=hi.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};var Ii=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"}),vi=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 Ni(e,t){var r="string"===typeof e?new ii(e):e;if(!(r instanceof ii))throw new TypeError("Must provide Source. Received: ".concat(Yr(r)));return function(e){var t=e.token;return{kind:Ii.DOCUMENT,definitions:hn(e,mi.SOF,Ci,mi.EOF),loc:sn(e,t)}}(ui(r,t||{}))}function Ti(e){var t=mn(e,mi.NAME);return{kind:Ii.NAME,value:t.value,loc:sn(e,t)}}function Ci(e){if(pn(e,mi.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return ki(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return Wi(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===mi.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ln(e,"extend"),ln(e,"schema");var r=Vi(e,!0),i=pn(e,mi.BRACE_L)?hn(e,mi.BRACE_L,Qi,mi.BRACE_R):[];if(0===r.length&&0===i.length)throw dn(e);return{kind:Ii.SCHEMA_EXTENSION,directives:r,operationTypes:i,loc:sn(e,t)}}(e);case"scalar":return function(e){var t=e.token;ln(e,"extend"),ln(e,"scalar");var r=Ti(e),i=Vi(e,!0);if(0===i.length)throw dn(e);return{kind:Ii.SCALAR_TYPE_EXTENSION,name:r,directives:i,loc:sn(e,t)}}(e);case"type":return function(e){var t=e.token;ln(e,"extend"),ln(e,"type");var r=Ti(e),i=Ji(e),n=Vi(e,!0),o=Zi(e);if(0===i.length&&0===n.length&&0===o.length)throw dn(e);return{kind:Ii.OBJECT_TYPE_EXTENSION,name:r,interfaces:i,directives:n,fields:o,loc:sn(e,t)}}(e);case"interface":return function(e){var t=e.token;ln(e,"extend"),ln(e,"interface");var r=Ti(e),i=Vi(e,!0),n=Zi(e);if(0===i.length&&0===n.length)throw dn(e);return{kind:Ii.INTERFACE_TYPE_EXTENSION,name:r,directives:i,fields:n,loc:sn(e,t)}}(e);case"union":return function(e){var t=e.token;ln(e,"extend"),ln(e,"union");var r=Ti(e),i=Vi(e,!0),n=tn(e);if(0===i.length&&0===n.length)throw dn(e);return{kind:Ii.UNION_TYPE_EXTENSION,name:r,directives:i,types:n,loc:sn(e,t)}}(e);case"enum":return function(e){var t=e.token;ln(e,"extend"),ln(e,"enum");var r=Ti(e),i=Vi(e,!0),n=rn(e);if(0===i.length&&0===n.length)throw dn(e);return{kind:Ii.ENUM_TYPE_EXTENSION,name:r,directives:i,values:n,loc:sn(e,t)}}(e);case"input":return function(e){var t=e.token;ln(e,"extend"),ln(e,"input");var r=Ti(e),i=Vi(e,!0),n=on(e);if(0===i.length&&0===n.length)throw dn(e);return{kind:Ii.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:i,fields:n,loc:sn(e,t)}}(e)}throw dn(e,t)}(e)}else{if(pn(e,mi.BRACE_L))return ki(e);if(Hi(e))return Wi(e)}throw dn(e)}function ki(e){if(pn(e,mi.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return Ai(e);case"fragment":return function(e){var t=e.token;if(ln(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:Ii.FRAGMENT_DEFINITION,name:Li(e),variableDefinitions:Ri(e),typeCondition:(ln(e,"on"),Ki(e)),directives:Vi(e,!1),selectionSet:xi(e),loc:sn(e,t)};return{kind:Ii.FRAGMENT_DEFINITION,name:Li(e),typeCondition:(ln(e,"on"),Ki(e)),directives:Vi(e,!1),selectionSet:xi(e),loc:sn(e,t)}}(e)}else if(pn(e,mi.BRACE_L))return Ai(e);throw dn(e)}function Ai(e){var t=e.token;if(pn(e,mi.BRACE_L))return{kind:Ii.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:xi(e),loc:sn(e,t)};var r,i=Di(e);return pn(e,mi.NAME)&&(r=Ti(e)),{kind:Ii.OPERATION_DEFINITION,operation:i,name:r,variableDefinitions:Ri(e),directives:Vi(e,!1),selectionSet:xi(e),loc:sn(e,t)}}function Di(e){var t=mn(e,mi.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw dn(e,t)}function Ri(e){return pn(e,mi.PAREN_L)?hn(e,mi.PAREN_L,Pi,mi.PAREN_R):[]}function Pi(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:Ii.VARIABLE_DEFINITION,variable:Ei(e),type:(mn(e,mi.COLON),zi(e)),defaultValue:cn(e,mi.EQUALS)?Oi(e,!0):void 0,directives:Vi(e,!0),loc:sn(e,t)}:{kind:Ii.VARIABLE_DEFINITION,variable:Ei(e),type:(mn(e,mi.COLON),zi(e)),defaultValue:cn(e,mi.EQUALS)?Oi(e,!0):void 0,loc:sn(e,t)}}function Ei(e){var t=e.token;return mn(e,mi.DOLLAR),{kind:Ii.VARIABLE,name:Ti(e),loc:sn(e,t)}}function xi(e){var t=e.token;return{kind:Ii.SELECTION_SET,selections:hn(e,mi.BRACE_L,qi,mi.BRACE_R),loc:sn(e,t)}}function qi(e){return pn(e,mi.SPREAD)?function(e){var t,r=e.token;if(mn(e,mi.SPREAD),pn(e,mi.NAME)&&"on"!==e.token.value)return{kind:Ii.FRAGMENT_SPREAD,name:Li(e),directives:Vi(e,!1),loc:sn(e,r)};"on"===e.token.value&&(e.advance(),t=Ki(e));return{kind:Ii.INLINE_FRAGMENT,typeCondition:t,directives:Vi(e,!1),selectionSet:xi(e),loc:sn(e,r)}}(e):function(e){var t,r,i=e.token,n=Ti(e);cn(e,mi.COLON)?(t=n,r=Ti(e)):r=n;return{kind:Ii.FIELD,alias:t,name:r,arguments:wi(e,!1),directives:Vi(e,!1),selectionSet:pn(e,mi.BRACE_L)?xi(e):void 0,loc:sn(e,i)}}(e)}function wi(e,t){var r=t?Mi:_i;return pn(e,mi.PAREN_L)?hn(e,mi.PAREN_L,r,mi.PAREN_R):[]}function _i(e){var t=e.token;return{kind:Ii.ARGUMENT,name:Ti(e),value:(mn(e,mi.COLON),Oi(e,!1)),loc:sn(e,t)}}function Mi(e){var t=e.token;return{kind:Ii.ARGUMENT,name:Ti(e),value:(mn(e,mi.COLON),Ui(e)),loc:sn(e,t)}}function Li(e){if("on"===e.token.value)throw dn(e);return Ti(e)}function Oi(e,t){var r=e.token;switch(r.kind){case mi.BRACKET_L:return function(e,t){var r=e.token,i=t?Ui:Gi;return{kind:Ii.LIST,values:yn(e,mi.BRACKET_L,i,mi.BRACKET_R),loc:sn(e,r)}}(e,t);case mi.BRACE_L:return function(e,t){var r=e.token;mn(e,mi.BRACE_L);var i=[];for(;!cn(e,mi.BRACE_R);)i.push(Fi(e,t));return{kind:Ii.OBJECT,fields:i,loc:sn(e,r)}}(e,t);case mi.INT:return e.advance(),{kind:Ii.INT,value:r.value,loc:sn(e,r)};case mi.FLOAT:return e.advance(),{kind:Ii.FLOAT,value:r.value,loc:sn(e,r)};case mi.STRING:case mi.BLOCK_STRING:return Bi(e);case mi.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:Ii.BOOLEAN,value:"true"===r.value,loc:sn(e,r)}):"null"===r.value?(e.advance(),{kind:Ii.NULL,loc:sn(e,r)}):(e.advance(),{kind:Ii.ENUM,value:r.value,loc:sn(e,r)});case mi.DOLLAR:if(!t)return Ei(e)}throw dn(e)}function Bi(e){var t=e.token;return e.advance(),{kind:Ii.STRING,value:t.value,block:t.kind===mi.BLOCK_STRING,loc:sn(e,t)}}function Ui(e){return Oi(e,!0)}function Gi(e){return Oi(e,!1)}function Fi(e,t){var r=e.token;return{kind:Ii.OBJECT_FIELD,name:Ti(e),value:(mn(e,mi.COLON),Oi(e,t)),loc:sn(e,r)}}function Vi(e,t){for(var r=[];pn(e,mi.AT);)r.push(ji(e,t));return r}function ji(e,t){var r=e.token;return mn(e,mi.AT),{kind:Ii.DIRECTIVE,name:Ti(e),arguments:wi(e,t),loc:sn(e,r)}}function zi(e){var t,r=e.token;return cn(e,mi.BRACKET_L)?(t=zi(e),mn(e,mi.BRACKET_R),t={kind:Ii.LIST_TYPE,type:t,loc:sn(e,r)}):t=Ki(e),cn(e,mi.BANG)?{kind:Ii.NON_NULL_TYPE,type:t,loc:sn(e,r)}:t}function Ki(e){var t=e.token;return{kind:Ii.NAMED_TYPE,name:Ti(e),loc:sn(e,t)}}function Wi(e){var t=Hi(e)?e.lookahead():e.token;if(t.kind===mi.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ln(e,"schema");var r=Vi(e,!0),i=hn(e,mi.BRACE_L,Qi,mi.BRACE_R);return{kind:Ii.SCHEMA_DEFINITION,directives:r,operationTypes:i,loc:sn(e,t)}}(e);case"scalar":return function(e){var t=e.token,r=$i(e);ln(e,"scalar");var i=Ti(e),n=Vi(e,!0);return{kind:Ii.SCALAR_TYPE_DEFINITION,description:r,name:i,directives:n,loc:sn(e,t)}}(e);case"type":return function(e){var t=e.token,r=$i(e);ln(e,"type");var i=Ti(e),n=Ji(e),o=Vi(e,!0),a=Zi(e);return{kind:Ii.OBJECT_TYPE_DEFINITION,description:r,name:i,interfaces:n,directives:o,fields:a,loc:sn(e,t)}}(e);case"interface":return function(e){var t=e.token,r=$i(e);ln(e,"interface");var i=Ti(e),n=Vi(e,!0),o=Zi(e);return{kind:Ii.INTERFACE_TYPE_DEFINITION,description:r,name:i,directives:n,fields:o,loc:sn(e,t)}}(e);case"union":return function(e){var t=e.token,r=$i(e);ln(e,"union");var i=Ti(e),n=Vi(e,!0),o=tn(e);return{kind:Ii.UNION_TYPE_DEFINITION,description:r,name:i,directives:n,types:o,loc:sn(e,t)}}(e);case"enum":return function(e){var t=e.token,r=$i(e);ln(e,"enum");var i=Ti(e),n=Vi(e,!0),o=rn(e);return{kind:Ii.ENUM_TYPE_DEFINITION,description:r,name:i,directives:n,values:o,loc:sn(e,t)}}(e);case"input":return function(e){var t=e.token,r=$i(e);ln(e,"input");var i=Ti(e),n=Vi(e,!0),o=on(e);return{kind:Ii.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:i,directives:n,fields:o,loc:sn(e,t)}}(e);case"directive":return function(e){var t=e.token,r=$i(e);ln(e,"directive"),mn(e,mi.AT);var i=Ti(e),n=Yi(e);ln(e,"on");var o=function(e){cn(e,mi.PIPE);var t=[];do{t.push(an(e))}while(cn(e,mi.PIPE));return t}(e);return{kind:Ii.DIRECTIVE_DEFINITION,description:r,name:i,arguments:n,locations:o,loc:sn(e,t)}}(e)}throw dn(e,t)}function Hi(e){return pn(e,mi.STRING)||pn(e,mi.BLOCK_STRING)}function $i(e){if(Hi(e))return Bi(e)}function Qi(e){var t=e.token,r=Di(e);mn(e,mi.COLON);var i=Ki(e);return{kind:Ii.OPERATION_TYPE_DEFINITION,operation:r,type:i,loc:sn(e,t)}}function Ji(e){var t=[];if("implements"===e.token.value){e.advance(),cn(e,mi.AMP);do{t.push(Ki(e))}while(cn(e,mi.AMP)||e.options.allowLegacySDLImplementsInterfaces&&pn(e,mi.NAME))}return t}function Zi(e){return e.options.allowLegacySDLEmptyFields&&pn(e,mi.BRACE_L)&&e.lookahead().kind===mi.BRACE_R?(e.advance(),e.advance(),[]):pn(e,mi.BRACE_L)?hn(e,mi.BRACE_L,Xi,mi.BRACE_R):[]}function Xi(e){var t=e.token,r=$i(e),i=Ti(e),n=Yi(e);mn(e,mi.COLON);var o=zi(e),a=Vi(e,!0);return{kind:Ii.FIELD_DEFINITION,description:r,name:i,arguments:n,type:o,directives:a,loc:sn(e,t)}}function Yi(e){return pn(e,mi.PAREN_L)?hn(e,mi.PAREN_L,en,mi.PAREN_R):[]}function en(e){var t=e.token,r=$i(e),i=Ti(e);mn(e,mi.COLON);var n,o=zi(e);cn(e,mi.EQUALS)&&(n=Ui(e));var a=Vi(e,!0);return{kind:Ii.INPUT_VALUE_DEFINITION,description:r,name:i,type:o,defaultValue:n,directives:a,loc:sn(e,t)}}function tn(e){var t=[];if(cn(e,mi.EQUALS)){cn(e,mi.PIPE);do{t.push(Ki(e))}while(cn(e,mi.PIPE))}return t}function rn(e){return pn(e,mi.BRACE_L)?hn(e,mi.BRACE_L,nn,mi.BRACE_R):[]}function nn(e){var t=e.token,r=$i(e),i=Ti(e),n=Vi(e,!0);return{kind:Ii.ENUM_VALUE_DEFINITION,description:r,name:i,directives:n,loc:sn(e,t)}}function on(e){return pn(e,mi.BRACE_L)?hn(e,mi.BRACE_L,en,mi.BRACE_R):[]}function an(e){var t=e.token,r=Ti(e);if(vi.hasOwnProperty(r.value))return r;throw dn(e,t)}function sn(e,t){if(!e.options.noLocation)return new un(t,e.lastToken,e.source)}function un(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function pn(e,t){return e.token.kind===t}function cn(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function mn(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw ni(e.source,r.start,"Expected ".concat(t,", found ").concat(li(r)))}function ln(e,t){var r=e.token;if(r.kind===mi.NAME&&r.value===t)return e.advance(),r;throw ni(e.source,r.start,'Expected "'.concat(t,'", found ').concat(li(r)))}function dn(e,t){var r=t||e.token;return ni(e.source,r.start,"Unexpected ".concat(li(r)))}function yn(e,t,r,i){mn(e,t);for(var n=[];!cn(e,i);)n.push(r(e));return n}function hn(e,t,r,i){mn(e,t);for(var n=[r(e)];!cn(e,i);)n.push(r(e));return n}un.prototype.toJSON=un.prototype.inspect=function(){return{start:this.start,end:this.end}};var bn,fn=r(79),gn=r.n(fn),Sn=function(){return(Sn=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=i;if("+"!==a&&a!==s)return!1}return i===n.length})(i,e)&&r.push(t)}));var i=JSON.parse(t);"object"===typeof i&&(i[Zn]=e),r.forEach((function(e){e.forEach((function(e){return e.next(i)}))}))}catch(n){Wn.warn("Error handling message",n,t)}},t.prototype.subscribe=function(e,t){var r=this;void 0===t&&(t={});var i=[].concat(e);return Wn.debug("Subscribing to topic(s)",i.join(",")),new Ln((function(e){var n;i.forEach((function(t){var i=r._topicObservers.get(t);i||(i=new Set,r._topicObservers.set(t,i)),i.add(e)}));var o=t.clientId,a=void 0===o?r.clientId:o,s=r._clientIdObservers.get(a);return s||(s=new Set),s.add(e),r._clientIdObservers.set(a,s),jn(r,void 0,void 0,(function(){var r,o,s,u;return zn(this,(function(p){switch(p.label){case 0:return void 0!==(r=t.url)?[3,2]:[4,this.endpoint];case 1:return s=p.sent(),[3,3];case 2:s=r,p.label=3;case 3:o=s,p.label=4;case 4:return p.trys.push([4,6,,7]),[4,this.connect(a,{url:o})];case 5:return n=p.sent(),i.forEach((function(e){n.subscribe(e)})),[3,7];case 6:return u=p.sent(),e.error(u),[3,7];case 7:return[2]}}))})),function(){return Wn.debug("Unsubscribing from topic(s)",i.join(",")),n&&(r._clientIdObservers.get(a).delete(e),0===r._clientIdObservers.get(a).size&&(r.disconnect(a),r._clientIdObservers.delete(a)),i.forEach((function(t){var i=r._topicObservers.get(t)||new Set;i.delete(e),0===i.size&&(r._topicObservers.delete(t),n.isConnected()&&n.unsubscribe(t))}))),null}}))},t}(Un),Yn=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),eo=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},to=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]-1}));if(i){var n=i.client,o=i.url;e[n]||(e[n]={url:o,topics:new Set}),e[n].topics.add(t)}return e}),{})),[4,Promise.all(s.map((function(e){var t=e[0],r=e[1],n=r.url,o=r.topics;return eo(u,void 0,void 0,(function(){var e,r,a=this;return to(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:n})];case 2:return e=s.sent(),[3,4];case 3:return r=s.sent(),i.error({message:"Failed to connect",error:r}),i.complete(),[2,void 0];case 4:return o.forEach((function(t){e.isConnected()&&(e.subscribe(t),a._topicClient.set(t,e))})),[2,e]}}))}))})))];case 1:return p.sent(),[2]}}))})),function(){no.debug("Unsubscribing from topic(s)",n.join(",")),n.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 Ln.from(i).map((function(e){var t=r.getTopicForValue(e),i=r._topicAlias.get(t);return e.data=Object.entries(e.data).reduce((function(e,t){var r=t[0],n=t[1];return e[i||r]=n,e}),{}),e}))},t}(Xn),ao=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),so=function(){return(so=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0||(this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketIfRequired.bind(this),1e3):(co.debug("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=Qn.CLOSED):this.socketStatus=Qn.CLOSED)},t.prototype._handleIncomingSubscriptionMessage=function(e){co.debug("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),r=t.id,n=void 0===r?"":r,o=t.payload,a=t.type,s=this.subscriptionObserverMap.get(n)||{},u=s.observer,p=void 0===u?null:u,c=s.query,m=void 0===c?"":c,l=s.variables,d=void 0===l?{}:l,y=s.startAckTimeoutId,h=s.subscriptionReadyCallback,b=s.subscriptionFailedCallback;if(co.debug({id:n,observer:p,query:m,variables:d}),a===Hn.GQL_DATA&&o&&o.data)p?p.next(o):co.debug("observer not found for id: "+n);else if(a!==Hn.GQL_START_ACK){if(a===Hn.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,"Timeout disconnect"),this.keepAliveTimeout));if(a===Hn.GQL_ERROR){f=$n.FAILED;this.subscriptionObserverMap.set(n,{observer:p,query:m,variables:d,startAckTimeoutId:y,subscriptionReadyCallback:h,subscriptionFailedCallback:b,subscriptionState:f}),p.error({errors:[so({},new Gr("Connection failed: "+JSON.stringify(o)))]}),clearTimeout(y),p.complete(),"function"===typeof b&&b()}}else{co.debug("subscription ready for "+JSON.stringify({query:m,variables:d})),"function"===typeof h&&h(),clearTimeout(y),function(e,t,r){i.f.dispatch("api",{event:e,data:t,message:r},"PubSub",mo)}("connected",{query:m,variables:d},"Connection established for subscription");var f=$n.CONNECTED;this.subscriptionObserverMap.set(n,{observer:p,query:m,variables:d,startAckTimeoutId:null,subscriptionState:f,subscriptionReadyCallback:h,subscriptionFailedCallback:b})}},t.prototype._errorDisconnect=function(e){this.subscriptionObserverMap.forEach((function(t){var r=t.observer;r.closed||r.error({errors:[so({},new Gr(e))]})})),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=Qn.CLOSED},t.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},r=t.observer,i=t.query,n=t.variables;r&&(this.subscriptionObserverMap.set(e,{observer:r,query:i,variables:n,subscriptionState:$n.FAILED}),r&&!r.closed&&(r.error({errors:[so({},new Gr("Subscription timeout "+JSON.stringify({query:i,variables:n})))]}),r.complete()),co.debug("timeoutStartSubscription",JSON.stringify({query:i,variables:n})))},t.prototype._initializeWebSocketConnection=function(e){var t=this,r=e.appSyncGraphqlEndpoint,i=e.authenticationType,n=e.apiKey,o=e.region;if(this.socketStatus!==Qn.READY)return new Promise((function(e,a){return uo(t,void 0,void 0,(function(){var t,s,u,p,c,m,l,d,y;return po(this,(function(h){switch(h.label){case 0:if(this.promiseArray.push({res:e,rej:a}),this.socketStatus!==Qn.CLOSED)return[3,5];h.label=1;case 1:return h.trys.push([1,4,,5]),this.socketStatus=Qn.CONNECTING,t=r.replace("https://","wss://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),s="{}",c=(p=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:i,payload:s,canonicalUri:"/connect",apiKey:n,appSyncGraphqlEndpoint:r,region:o})];case 2:return u=c.apply(p,[h.sent()]),m=rt.Buffer.from(u).toString("base64"),l=rt.Buffer.from(s).toString("base64"),d=t+"?header="+m+"&payload="+l,[4,this._initializeRetryableHandshake({awsRealTimeUrl:d})];case 3:return h.sent(),this.promiseArray.forEach((function(e){var t=e.res;co.debug("Notifying connection successful"),t()})),this.socketStatus=Qn.READY,this.promiseArray=[],[3,5];case 4:return y=h.sent(),this.promiseArray.forEach((function(e){return(0,e.rej)(y)})),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=Qn.CLOSED,[3,5];case 5:return[2]}}))}))}))},t.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return uo(this,void 0,void 0,(function(){return po(this,(function(e){switch(e.label){case 0:return co.debug("Initializaling retryable Handshake"),[4,Object(i.t)(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}],5e3)];case 1:return e.sent(),[2]}}))}))},t.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return uo(this,void 0,void 0,(function(){var e,r,n,o=this;return po(this,(function(a){switch(a.label){case 0:co.debug("Initializing handshake "+t),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,new Promise((function(e,r){var i=new WebSocket(t,"graphql-ws");i.onerror=function(){co.debug("WebSocket connection error")},i.onclose=function(){r(new Error("Connection handshake error"))},i.onopen=function(){return o.awsRealTimeSocket=i,e()}}))];case 2:return a.sent(),[4,new Promise((function(e,t){var r=!1;o.awsRealTimeSocket.onerror=function(e){co.debug("WebSocket closed "+JSON.stringify(e))},o.awsRealTimeSocket.onclose=function(e){co.debug("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},o.awsRealTimeSocket.onmessage=function(i){co.debug("subscription message from AWS AppSyncRealTime: "+i.data+" ");var n=JSON.parse(i.data),a=n.type,s=n.payload,u=(void 0===s?{}:s).connectionTimeoutMs,p=void 0===u?3e5:u;if(a===Hn.GQL_CONNECTION_ACK)return r=!0,o.keepAliveTimeout=p,o.awsRealTimeSocket.onmessage=o._handleIncomingSubscriptionMessage.bind(o),o.awsRealTimeSocket.onerror=function(e){co.debug(e),o._errorDisconnect("Connection closed")},void e("Cool, connected to AWS AppSyncRealTime");if(a===Hn.GQL_CONNECTION_ERROR){var c=n.payload,m=(void 0===c?{}:c).errors,l=(void 0===m?[]:m)[0],d=void 0===l?{}:l,y=d.errorType,h=void 0===y?"":y,b=d.errorCode;t({errorType:h,errorCode:void 0===b?0:b})}};var i={type:Hn.GQL_CONNECTION_INIT};o.awsRealTimeSocket.send(JSON.stringify(i)),setTimeout(function(){r||t(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(o),15e3)}))];case 3:return a.sent(),[3,5];case 4:throw e=a.sent(),r=e.errorType,n=e.errorCode,lo.includes(n)?new i.l(r):r?new Error(r):e;case 5:return[2]}}))}))},t.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,r=e.payload,i=e.canonicalUri,n=e.appSyncGraphqlEndpoint,o=e.apiKey,a=e.region;return uo(this,void 0,void 0,(function(){var e,s,u;return po(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])?(co.debug("Authentication type "+t+" not supported"),[2,""]):(u=Wt.parse(n).host,[4,s({payload:r,canonicalUri:i,appSyncGraphqlEndpoint:n,apiKey:o,region:a,host:u})]);case 1:return[2,p.sent()]}}))}))},t.prototype._awsRealTimeCUPHeader=function(e){var t=e.host;return uo(this,void 0,void 0,(function(){return po(this,(function(e){switch(e.label){case 0:return[4,fr.currentSession()];case 1:return[2,{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}}))}))},t.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host;return uo(this,void 0,void 0,(function(){var e;return po(this,(function(r){switch(r.label){case 0:return[4,I.getItem("federatedInfo")];case 1:if(!(e=r.sent())||!e.token)throw new Error("No federated jwt");return[2,{Authorization:e.token,host:t}]}}))}))},t.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,r=e.host;return uo(this,void 0,void 0,(function(){var e,i;return po(this,(function(n){return e=new Date,i=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:r,"x-amz-date":i,"x-api-key":t}]}))}))},t.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,r=e.canonicalUri,n=e.appSyncGraphqlEndpoint,o=e.region;return uo(this,void 0,void 0,(function(){var e,a,s;return po(this,(function(u){switch(u.label){case 0:return e={region:o,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!u.sent())throw new Error("No credentials");return[4,i.e.get().then((function(e){return{secret_key:e.secretAccessKey,access_key:e.accessKeyId,session_token:e.sessionToken}}))];case 2:return a=u.sent(),s={url:""+n+r,data:t,method:"POST",headers:so({},yo)},[2,i.p.sign(s,a,e).headers]}}))}))},t.prototype._ensureCredentials=function(){return i.e.get().then((function(e){if(!e)return!1;var t=i.e.shear(e);return co.debug("set credentials for AWSAppSyncRealTimeProvider",t),!0})).catch((function(e){return co.warn("ensure credentials error",e),!1}))},t}(Un),bo=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),fo=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},go=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[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=fa(fa({},r),e),this._options=Object.assign({},this._options,r),Sa.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 ga(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 ga(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}(),va=r(119),Na=r(40),Ta=r(52),Ca=r(20),ka=r(132);function Aa(e,t){if(e){var r={};return(t||Object.keys(e)).forEach((function(t){var i;if(e.hasOwnProperty(t)){var n=t.charAt(0).toLowerCase()+t.substr(1);Object.assign(r,((i={})[n]=e[t],i))}})),r}}function Da(e,t){if(e)return e.map((function(e){return Aa(e,t)}))}function Ra(e){return new Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(e){r(e)};try{i.readAsArrayBuffer(e)}catch(n){r(n)}}))}function Pa(e){if(e)return Aa(e.BoundingBox)}function Ea(e){if(e)return Da(e.Polygon)}function xa(e){var t={text:{fullText:"",words:[],lines:[],linesDetailed:[]}};if(0===e.length)return t;var r=Array(),i=Array(),n={};if(e.forEach((function(e){switch(e.BlockType){case"LINE":t.text.lines.push(e.Text),t.text.linesDetailed.push({text:e.Text,polygon:Ea(e.Geometry),boundingBox:Pa(e.Geometry),page:e.Page});break;case"WORD":t.text.fullText+=e.Text+" ",t.text.words.push({text:e.Text,polygon:Ea(e.Geometry),boundingBox:Pa(e.Geometry)}),n[e.Id]=e;break;case"SELECTION_ELEMENT":var o="SELECTED"===e.SelectionStatus;t.text.selections||(t.text.selections=[]),t.text.selections.push({selected:o,polygon:Ea(e.Geometry),boundingBox:Pa(e.Geometry)}),n[e.Id]=e;break;case"TABLE":r.push(e);break;case"KEY_VALUE_SET":i.push(e),n[e.Id]=e;break;default:n[e.Id]=e}})),t.text.fullText=t.text.fullText.substr(0,t.text.fullText.length-1),0!==r.length){var o=Array();r.forEach((function(e){o.push(function(e,t){var r;r=[],e.Relationships.forEach((function(e){e.Ids.forEach((function(e){var i=t[e],n=i.RowIndex-1,o=i.ColumnIndex-1,a=qa(i,t),s={text:a.text,boundingBox:Pa(i.Geometry),polygon:Ea(i.Geometry),selected:a.selected,rowSpan:i.RowSpan,columnSpan:i.ColumnSpan};r[n]||(r[n]=[]),r[n][o]=s}))}));var i=r.length,n=r[0].length;return{size:{rows:i,columns:n},table:r,boundingBox:Pa(e.Geometry),polygon:Ea(e.Geometry)}}(e,n))})),t.text.tables=o}if(0!==i.length){var a=Array();i.forEach((function(e){-1!==e.EntityTypes.indexOf("KEY")&&a.push(function(e,t){var r,i="",n="";return e.Relationships.forEach((function(o){if("CHILD"===o.Type){var a=qa(e,t);i=a.text}else"VALUE"===o.Type&&o.Ids.forEach((function(e){var i=qa(t[e],t);n=i.text,null!=i.selected&&(r=i.selected)}))})),{key:i,value:{text:n,selected:r},polygon:Ea(e.Geometry),boundingBox:Pa(e.Geometry)}}(e,n))})),t.text.keyValues=a}return t}function qa(e,t){var r,i="";return e.Relationships?(e.Relationships.forEach((function(e){e.Ids.forEach((function(e){var n=t[e];"WORD"===n.BlockType?i+=n.Text+" ":"SELECTION_ELEMENT"===n.BlockType&&(r="SELECTED"===n.SelectionStatus)}))})),{text:i=i.substr(0,i.length-1),selected:r}):{text:"",selected:void 0}}var wa=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),_a=function(){return(_a=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]o.Blocks.length?r(i):r(xa(o.Blocks))}))}))):(f={Document:l,FeatureTypes:y},this.textract.analyzeDocument(f,(function(e,t){if(e)return n(e);var i=t.Blocks;r(xa(i))}))),[2]}}))}))}))},t.prototype.identifyLabels=function(e){var t=this;return new Promise((function(r,n){return Ma(t,void 0,void 0,(function(){var t,o,a,s,u,p,c,m,l,d,y,h;return La(this,(function(b){switch(b.label){case 0:return[4,i.e.get()];case 1:return(t=b.sent())?(o=this._config.identifyLabels,s=(a=void 0===o?{}:o).region,u=void 0===s?"":s,p=a.defaults,c=(void 0===p?{}:p).type,m=void 0===c?"LABELS":c,this.rekognition=new Ta({region:u,credentials:t}),[4,this.configureSource(e.labels.source).then((function(e){l=e})).catch((function(e){return n(e)}))]):[2,n("No credentials")];case 2:return b.sent(),d={Image:l},y=[],"LABELS"!==(h=e.labels.type||m)&&"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=_a(_a({},t),e)})),r(t)})).catch((function(e){return n(e)})),[2]}}))}))}))},t.prototype.detectLabels=function(e){var t=this;return new Promise((function(r,i){t.rekognition.detectLabels(e,(function(e,t){if(e)return i(e);if(!t.Labels)return r({labels:null});var n=t.Labels.map((function(e){var t=e.Instances?e.Instances.map((function(e){return Aa(e.BoundingBox)})):void 0;return{name:e.Name,boundingBoxes:t,metadata:{confidence:e.Confidence,parents:Da(e.Parents)}}}));return r({labels:n})}))}))},t.prototype.detectModerationLabels=function(e){var t=this;return new Promise((function(r,i){t.rekognition.detectModerationLabels(e,(function(e,t){return e?i(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 Ma(t,void 0,void 0,(function(){var t,o,a,s,u,p,c,m,l,d,y,h,b,f,g,S,I,v,N,T,C,k=this;return La(this,(function(A){switch(A.label){case 0:return[4,i.e.get()];case 1:return(t=A.sent())?(o=this._config.identifyEntities,s=(a=void 0===o?{}:o).region,u=void 0===s?"":s,p=a.celebrityDetectionEnabled,c=void 0!==p&&p,m=a.defaults,d=(l=void 0===m?{}:m).collectionId,y=void 0===d?"":d,h=l.maxEntities,b=void 0===h?50:h,this.rekognition=new Ta({region:u,credentials:t}),[4,this.configureSource(e.entities.source).then((function(e){return f=e})).catch((function(e){return n(e)}))]):[2,n("No credentials")];case 2:if(A.sent(),g={Image:f},Object(Ca.d)(e.entities)&&e.entities.celebrityDetection){if(!c)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:Aa(e.Face.BoundingBox),landmarks:Da(e.Face.Landmarks),metadata:_a(_a({},Aa(e,["Id","Name","Urls"])),{pose:Aa(e.Face.Pose)})}}));r({entities:i})}))}else Object(Ca.e)(e.entities)&&e.entities.collection?(S=e.entities,I=S.collectionId,v=void 0===I?y:I,N=S.maxEntities,T=void 0===N?b:N,C=_a(_a({},g),{CollectionId:v,MaxFaces:T}),this.rekognition.searchFacesByImage(C,(function(e,t){if(e)return n(e);var i=t.FaceMatches.map((function(e){return{boundingBox:Aa(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=Aa(e,t);return e.Emotions&&(r.emotions=e.Emotions.map((function(e){return e.Type}))),{boundingBox:Aa(e.BoundingBox),landmarks:Da(e.Landmarks),ageRange:Aa(e.AgeRange),attributes:Aa(e,t),metadata:{confidence:e.Confidence,pose:Aa(e.Pose)}}}));r({entities:i})}));return[2]}}))}))}))},t.prototype.decodeExternalImageId=function(e){return(""+e).replace(/::/g,"/")},t}(Na.a),Ba=r(133),Ua=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ga=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},Fa=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]-1}(),I=function(e){return Promise.resolve(e)},v=function(){try{return new CSSStyleSheet,!0}catch(e){}return!1}(),N=new WeakMap,T=function(e){return N.get(e)},C=function(e,t){return N.set(t.$lazyInstance$=e,t)},k=function(e,t){return t in e},A=function(e){return console.error(e)},D=new Map,R=new Map,P=[],E=[],x=[],q=function(e,t){return function(r){e.push(r),c||(c=!0,t&&4&g.$flags$?M(_):g.raf(_))}},w=function(e,t){for(var r=0,i=0;r0&&(x.push.apply(x,E),E.length=0),(c=P.length+E.length+x.length>0)?g.raf(e):p=0},M=function(e){return I().then(e)},L=q(P,!1),O=q(E,!0),B={},U=function(e){return"object"===(e=typeof e)||"function"===e},G=function(){return b&&b.supports&&b.supports("color","var(--c)")?I():r.e(29).then(r.t.bind(null,557,7)).then((function(){return(g.$cssShim$=h.__cssshim)?g.$cssShim$.i():0}))},F="http://www.w3.org/1999/xlink",V=function(e,t){return void 0===t&&(t=""),function(){}},j=new WeakMap,z=function(e,t,r){var i=R.get(e);v&&r?(i=i||new CSSStyleSheet).replace(t):i=t,R.set(e,i)},K=function(e,t,r,i){var n=W(t.$tagName$,r),o=R.get(n);if(e=11===e.nodeType?e:f,o||(n=W(t.$tagName$),o=R.get(n)),o)if("string"===typeof o){e=e.head||e;var a=j.get(e),u=void 0;if(a||j.set(e,a=new Set),!a.has(n)){if(e.host&&(u=e.querySelector('[sty-id="'+n+'"]')))u.innerHTML=o;else{if(g.$cssShim$){var p=(u=g.$cssShim$.createHostStyle(i,n,o,!!(10&t.$flags$)))["s-sc"];p&&(n=p,a=null)}else(u=f.createElement("style")).innerHTML=o;e.insertBefore(u,e.querySelector("link"))}a&&a.add(n)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=Object(s.__spreadArrays)(e.adoptedStyleSheets,[o]));return n},W=function(e,t){return"sc-"+(t?e+"-"+t:e)},H=function(e,t){for(var r=[],i=2;i0&&(l.$children$=p),l.$key$=o,l.$name$=a,l},$=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return r},Q={},J={forEach:function(e,t){return e.map(Z).forEach(t)},map:function(e,t){return e.map(Z).map(t).map(X)}},Z=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},X=function(e){var t=$(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Y=function(e,t,r,i,n,o){if(r!==i){var a=k(e,t),s=t.toLowerCase();if("class"===t){var u=e.classList,p=te(r),c=te(i);u.remove.apply(u,p.filter((function(e){return e&&!c.includes(e)}))),u.add.apply(u,c.filter((function(e){return e&&!p.includes(e)})))}else if("style"===t){for(var m in r)i&&null!=i[m]||(m.includes("-")?e.style.removeProperty(m):e.style[m]="");for(var m in i)r&&i[m]===r[m]||(m.includes("-")?e.style.setProperty(m,i[m]):e.style[m]=i[m])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){var l=U(i);if((a||l&&null!==i)&&!n)try{if(e.tagName.includes("-"))e[t]=i;else{var d=null==i?"":i;"list"===t?a=!1:null!=r&&e[t]==d||(e[t]=d)}}catch(b){}var y=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,y=!0),null==i||!1===i?y?e.removeAttributeNS(F,t):e.removeAttribute(t):(!a||4&o||n)&&!l&&(i=!0===i?"":i,y?e.setAttributeNS(F,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):k(h,s)?s.slice(2):s[2]+t.slice(3),r&&g.rel(e,t,r,!1),i&&g.ael(e,t,i,!1)}},ee=/\s/,te=function(e){return e?e.split(ee):[]},re=function(e,t,r,i){var n=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||B,a=t.$attrs$||B;for(i in o)i in a||Y(n,i,o[i],void 0,r,t.$flags$);for(i in a)Y(n,i,o[i],a[i],r,t.$flags$)},ie=function e(t,r,a,s){var u,p,c,l=r.$children$[a],h=0;if(m||(d=!0,"slot"===l.$tag$&&(i&&s.classList.add(i+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)u=l.$elm$=f.createTextNode(l.$text$);else if(1&l.$flags$)u=l.$elm$=f.createTextNode("");else{if(y||(y="svg"===l.$tag$),u=l.$elm$=f.createElementNS(y?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&l.$flags$?"slot-fb":l.$tag$),y&&"foreignObject"===l.$tag$&&(y=!1),re(null,l,y),null!=i&&u["s-si"]!==i&&u.classList.add(u["s-si"]=i),l.$children$)for(h=0;h=0;n--){var a=i[n];a["s-hn"]!==o&&a["s-ol"]&&(ce(a).insertBefore(a,pe(a)),a["s-ol"].remove(),a["s-ol"]=void 0,d=!0),r&&e(a,r)}g.$flags$&=-2},oe=function(e,t,r,i,n,a){var s,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===o&&(u=u.shadowRoot);n<=a;++n)i[n]&&(s=ie(null,r,n,e))&&(i[n].$elm$=s,u.insertBefore(s,pe(t)))},ae=function(e,t,r,i,n){for(;t<=r;++t)(i=e[t])&&(n=i.$elm$,ye(i),l=!0,n["s-ol"]?n["s-ol"].remove():ne(n,!0),n.remove())},se=function(e,t,r,i){for(var n,o,a=0,s=0,u=0,p=0,c=t.length-1,m=t[0],l=t[c],d=i.length-1,y=i[0],h=i[d];a<=c&&s<=d;)if(null==m)m=t[++a];else if(null==l)l=t[--c];else if(null==y)y=i[++s];else if(null==h)h=i[--d];else if(ue(m,y))me(m,y),m=t[++a],y=i[++s];else if(ue(l,h))me(l,h),l=t[--c],h=i[--d];else if(ue(m,h))"slot"!==m.$tag$&&"slot"!==h.$tag$||ne(m.$elm$.parentNode,!1),me(m,h),e.insertBefore(m.$elm$,l.$elm$.nextSibling),m=t[++a],h=i[--d];else if(ue(l,y))"slot"!==m.$tag$&&"slot"!==h.$tag$||ne(l.$elm$.parentNode,!1),me(l,y),e.insertBefore(l.$elm$,m.$elm$),l=t[--c],y=i[++s];else{for(u=-1,p=a;p<=c;++p)if(t[p]&&null!==t[p].$key$&&t[p].$key$===y.$key$){u=p;break}u>=0?((o=t[u]).$tag$!==y.$tag$?n=ie(t&&t[s],r,u,e):(me(o,y),t[u]=void 0,n=o.$elm$),y=i[++s]):(n=ie(t&&t[s],r,s,e),y=i[++s]),n&&ce(m.$elm$).insertBefore(n,pe(m.$elm$))}a>c?oe(e,null==i[d+1]?null:i[d+1].$elm$,r,i,s,d):s>d&&ae(t,a,c)},ue=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},pe=function(e){return e&&e["s-ol"]||e},ce=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},me=function(e,t){var r,i=t.$elm$=e.$elm$,n=e.$children$,o=t.$children$,a=t.$tag$,s=t.$text$;null===s?(y="svg"===a||"foreignObject"!==a&&y,"slot"===a||re(e,t,y),null!==n&&null!==o?se(i,n,t,o):null!==o?(null!==e.$text$&&(i.textContent=""),oe(i,null,t,o,0,o.length-1)):null!==n&&ae(n,0,n.length-1),y&&"svg"===a&&(y=!1)):(r=i["s-cr"])?r.parentNode.textContent=s:e.$text$!==s&&(i.data=s)},le=[],de=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},ye=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.forEach(e)},he=function(e,t,r,a){o=e.tagName;var s,u=t.$vnode$||$(null,null),p=(s=a)&&s.$tag$===Q?a:H(null,null,a);if(r.$attrsToReflect$&&(p.$attrs$=p.$attrs$||{},r.$attrsToReflect$.forEach((function(t){var r=t[0],i=t[1];return p.$attrs$[i]=e[r]}))),p.$tag$=null,p.$flags$|=4,t.$vnode$=p,p.$elm$=u.$elm$=e.shadowRoot||e,i=e["s-sc"],n=e["s-cr"],m=S&&0!==(1&r.$flags$),l=!1,me(u,p),d){!function e(t){for(var r,i,n,o,a,s,u=0,p=t.childNodes,c=p.length;u=0;s--)(i=n[s])["s-cn"]||i["s-nr"]||i["s-hn"]===r["s-hn"]||(de(i,o)?(a=le.find((function(e){return e.$nodeToRelocate$===i})),l=!0,i["s-sn"]=i["s-sn"]||o,a?a.$slotRefNode$=r:le.push({$slotRefNode$:r,$nodeToRelocate$:i}),i["s-sr"]&&le.forEach((function(e){de(e.$nodeToRelocate$,i["s-sn"])&&(a=le.find((function(e){return e.$nodeToRelocate$===i})))&&(e.$slotRefNode$=a.$slotRefNode$)}))):le.some((function(e){return e.$nodeToRelocate$===i}))||le.push({$nodeToRelocate$:i}));1===r.nodeType&&e(r)}}(p.$elm$);for(var c=void 0,y=void 0,h=void 0,b=void 0,I=void 0,v=void 0,N=0;N=0;m--)e(t,r,i,n,o,a.childNodes[m],s);if(a.shadowRoot)for(m=a.shadowRoot.childNodes.length-1;m>=0;m--)e(t,r,i,n,o,a.shadowRoot.childNodes[m],s)}else if(8===a.nodeType)(p=a.nodeValue.split("."))[1]!==s&&"0"!==p[1]||(u=p[0],c={$flags$:0,$hostId$:p[1],$nodeId$:p[2],$depth$:p[3],$index$:p[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===u?(c.$elm$=a.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,r.push(c),a.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,n&&"0"===c.$depth$&&(n[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===u?(c.$tag$="slot",p[5]?a["s-sn"]=c.$name$=p[5]:a["s-sn"]="",a["s-sr"]=!0,n&&(c.$elm$=f.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),a.parentNode.insertBefore(c.$elm$,a),a.remove(),"0"===c.$depth$&&(n[c.$index$]=c.$elm$)),i.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===u&&(n?a.remove():(o["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var l=$(null,a.textContent);l.$elm$=a,l.$index$="0",t.$children$=[l]}},Pe=function e(t,r){if(1===t.nodeType){for(var i=0;i0?m.forEach((function(e){return e.connectedCallback()})):g.jmp((function(){return r=setTimeout(ve,30)})),i()},Be=function(e,t,r){var i=Ge(e);return{emit:function(e){var n=new CustomEvent(t,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:e});return i.dispatchEvent(n),n}}},Ue=function(e){var t=new URL(e,g.$resourcesUrl$);return t.origin!==h.location.origin?t.href:t.pathname},Ge=function(e){return T(e).$hostElement$},Fe=function(e){return e&&function(e){return T(e).$modeName$}(e)||a},Ve=function(){var e=document,t=window,r=t.Ionic=t.Ionic||{};Object(u.g)(t);var i,n=Object.assign(Object.assign(Object.assign(Object.assign({},Object(u.c)(t)),{persistConfig:!1}),r.config),Object(u.a)(t));u.b.reset(n),u.b.getBoolean("persistConfig")&&Object(u.d)(t,n),r.config=u.b,r.mode=a=u.b.get("mode",e.documentElement.getAttribute("mode")||(Object(u.f)(t,"ios")?"ios":"md")),u.b.set("mode",a),e.documentElement.setAttribute("mode",a),e.documentElement.classList.add(a),u.b.getBoolean("_testing")&&u.b.set("animated",!1),i=function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t)return t;e=e.parentElement}return a},qe.push(i)},je=function(){Ve()}},function(e,t,r){var i=r(13),n=r(67).populateHostPrefix;function o(e,t,r,n){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(i.each(r.members,(function(e,t){var r=n[e];if(null!==r&&void 0!==r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,(function(e,t){return(t?i.uriEscapePath:i.uriEscape)(String(r))}))}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map((function(e){return i.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?i.each(r,(function(e,t){Array.isArray(t)?a[e]=t.map((function(e){return i.uriEscape(String(e))})):a[e]=i.uriEscape(String(t))})):a[t.name]=i.uriEscape(t.toWireFormat(r).toString()))})),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];i.arrayEach(Object.keys(a).sort(),(function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var n=["[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 i(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){!function(t,i){var n;e.exports=(n=r(23),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var i=2,n=0;n<64;)t(i)&&(n<8&&(s[n]=r(e.pow(i,.5))),u[n]=r(e.pow(i,1/3)),n++),i++}();var p=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],a=r[3],s=r[4],c=r[5],m=r[6],l=r[7],d=0;d<64;d++){if(d<16)p[d]=0|e[t+d];else{var y=p[d-15],h=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,b=p[d-2],f=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;p[d]=h+p[d-7]+f+p[d-16]}var g=i&n^i&o^n&o,S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),I=l+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&m)+u[d]+p[d];l=m,m=c,c=s,s=a+I|0,a=o,o=n,n=i,i=I+(S+g)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+m|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(31),n=r(40),o=r(2),a=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=new o.c("AbstractConvertPredictionsProvider"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCategory=function(){return"Convert"},t.prototype.convert=function(e){return Object(i.m)(e)?(s.debug("translateText"),this.translateText(e)):Object(i.l)(e)?(s.debug("textToSpeech"),this.convertTextToSpeech(e)):Object(i.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}(n.c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return l}));var i=r(24),n=r(36),o=r(0),a=r.n(o),s=r(32),u=(r(50),r(18)),p=r(42),c=r(30),m=function(e){function t(){for(var t,r=arguments.length,i=new Array(r),n=0;n>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=i.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},parse:function(e){var r=e.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o>>6-a%4*2;n[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(n,o)}(e,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}()},function(e,t,r){r(4);var i=r(3),n=i.Service,o=i.apiLoader;o.services.lexruntime={},i.LexRuntime=n.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(o.services.lexruntime,"2016-11-28",{get:function(){var e=r(253);return e.paginators=r(254).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.LexRuntime},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0)try{var n=JSON.parse(r.body.toString());(n.__type||n.code)&&(t.code=(n.__type||n.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch(n){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=i.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||{},i=new o;e.data=i.parse(t,r)}}}},function(e,t,r){var i=r(13);function n(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return i.each(e,(function(e,i){var n=t.members[e];if(n){if("body"!==n.location)return;var a=n.isLocationName?n.name:e,s=o(i,n);void 0!==s&&(r[a]=s)}})),r}(e,t);case"map":return function(e,t){var r={};return i.each(e,(function(e,i){var n=o(i,t.value);void 0!==n&&(r[e]=n)})),r}(e,t);case"list":return function(e,t){var r=[];return i.arrayEach(e,(function(e){var i=o(e,t.member);void 0!==i&&r.push(i)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}n.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=n},function(e,t,r){var i=r(13);function n(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},n=t.members;return i.each(n,(function(t,i){var n=i.isLocationName?i.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var a=o(e[n],i);void 0!==a&&(r[t]=a)}})),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return i.each(e,(function(e,i){var n=o(i,t.value);r[e]=void 0===n?null:n})),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return i.arrayEach(e,(function(e){var i=o(e,t.member);void 0===i?r.push(null):r.push(i)})),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}n.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=n},function(e,t,r){var i=r(13),n=r(3);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],n=t.endpointOperation&&t.endpointOperation===i.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===n}(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=function(e,t,r){return i.each(r.members,(function(r,n){if(!0===n.hostLabel){if("string"!==typeof t[r]||""===t[r])throw i.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var o=new RegExp("\\{"+r+"\\}","g");e=e.replace(o,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]$/;i.arrayEach(t,(function(e){if(!e.length||e.length<1||e.length>63)throw i.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw n.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 i(e,n){if(e===n)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(n))return!1;if(!0===t(e)){if(e.length!==n.length)return!1;for(var o=0;o":!0,"=":!0,"!":!0},c={" ":!0,"\t":!0,"\n":!0};function m(e){return e>="0"&&e<="9"||"-"===e}function l(){}l.prototype={tokenize:function(e){var t,r,i,n,o=[];for(this._current=0;this._current="a"&&n<="z"||n>="A"&&n<="Z"||"_"===n)t=this._current,r=this._consumeUnquotedIdentifier(e),o.push({type:"UnquotedIdentifier",value:r,start:t});else if(void 0!==u[e[this._current]])o.push({type:u[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(m(e[this._current]))i=this._consumeNumber(e),o.push(i);else if("["===e[this._current])i=this._consumeLBracket(e),o.push(i);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),o.push({type:"QuotedIdentifier",value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),o.push({type:"Literal",value:r,start:t});else if("`"===e[this._current]){t=this._current;var a=this._consumeLiteral(e);o.push({type:"Literal",value:a,start:t})}else if(void 0!==p[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==c[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:"And",value:"&&",start:t})):o.push({type:"Expref",value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,o.push({type:"Or",value:"||",start:t})):o.push({type:"Pipe",value:"|",start:t})}return o},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current="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,i=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 d={};function y(){}function h(e){this.runtime=e}function b(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[s,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[s,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[s]},{types:[s]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[s]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}d.EOF=0,d.UnquotedIdentifier=0,d.QuotedIdentifier=0,d.Rbracket=0,d.Rparen=0,d.Comma=0,d.Rbrace=0,d.Number=0,d.Current=0,d.Expref=0,d.Pipe=1,d.Or=2,d.And=3,d.EQ=5,d.GT=5,d.LT=5,d.GTE=5,d.LTE=5,d.NE=5,d.Flatten=9,d.Star=20,d.Filter=21,d.Dot=40,d.Not=45,d.Lbrace=50,d.Lbracket=55,d.Lparen=60,y.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),i=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw i.name="ParserError",i}return t},_loadTokens:function(e){var t=(new l).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),i=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(d[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),i=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw i.name="ParserError",i}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,i=[],n=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),n.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)},i.push(r),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},h.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,s,u,p,c,m,l,d,y;switch(e.type){case"Field":return null===o?null:r(o)?void 0===(m=o[e.name])?null:m:null;case"Subexpression":for(u=this.visit(e.children[0],o),y=1;y0)for(y=g;yS;y+=I)u.push(o[y]);return u;case"Projection":var v=this.visit(e.children[0],o);if(!t(v))return null;for(d=[],y=0;yc;break;case"GTE":u=p>=c;break;case"LT":u=p=e&&(t=r<0?e-1:e),t}},b.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 i,n,o,a;if(r[r.length-1].variadic){if(t.length=0;i--)r+=t[i];return r}var n=e[0].slice(0);return n.reverse(),n},_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],i=0;i=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,i=e[0],n=e[1],o=0;o0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;i0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;is?1:au&&(u=r,t=n[p]);return t},_functionMinBy:function(e){for(var t,r,i=e[1],n=e[0],o=this.createKeyFunction(i,[a,s]),u=1/0,p=0;p0},e.prototype.isDisabled=function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)},e.prototype.newID=function(){return this.gestureId++,this.gestureId},e}(),o=function(){function e(e,t,r,i,n){this.id=t,this.name=r,this.disableScroll=n,this.priority=1e6*i+t,this.ctrl=e}return e.prototype.canStart=function(){return!!this.ctrl&&this.ctrl.canStart(this.name)},e.prototype.start=function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)},e.prototype.capture=function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e},e.prototype.release=function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))},e.prototype.destroy=function(){this.release(),this.ctrl=void 0},e}(),a=function(){function e(e,t,r,i){this.id=t,this.disable=r,this.disableScroll=i,this.ctrl=e}return e.prototype.block=function(){if(this.ctrl){if(this.disable)for(var e=0,t=this.disable;eo?1:d<-o?-1:0,p=!1,!0},isGesture:function(){return 0!==c},getDirection:function(){return c}}}(o.direction,o.threshold,o.maxAngle),v=u.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),N=function(){t&&(n=!1,f&&f(S))},T=function(){return!(v&&!v.capture())&&(t=!0,i=!1,S.startX=S.currentX,S.startY=S.currentY,S.startTime=S.currentTime,s?s(S).then(C):C(),!0)},C=function(){c&&c(S),i=!0},k=function(){t=!1,r=!1,n=!1,i=!0,v.release()},A=function(e){var r=t,n=i;k(),n&&(d(S,e),r?l&&l(S):b&&b(S))},D=function(e,t,r,i,n){var o,a,s,u,c,l,d,y=0,h=function(i){y=Date.now()+2e3,t(i)&&(!a&&r&&(a=p(e,"touchmove",r,n)),s||(s=p(e,"touchend",f,n)),u||(u=p(e,"touchcancel",f,n)))},b=function(i){y>Date.now()||t(i)&&(!l&&r&&(l=p(m(e),"mousemove",r,n)),d||(d=p(m(e),"mouseup",g,n)))},f=function(e){S(),i&&i(e)},g=function(e){I(),i&&i(e)},S=function(){a&&a(),s&&s(),u&&u(),a=s=u=void 0},I=function(){l&&l(),d&&d(),l=d=void 0},v=function(){S(),I()},N=function(t){void 0===t&&(t=!0),t?(o||(o=p(e,"touchstart",h,n)),c||(c=p(e,"mousedown",b,n))):(o&&o(),c&&c(),o=c=void 0,v())};return{enable:N,stop:v,destroy:function(){N(!1),i=r=t=void 0}}}(o.el,(function(e){var t=h(e);return!(r||!i)&&(y(e,S),S.startX=S.currentX,S.startY=S.currentY,S.startTime=S.currentTime=t,S.velocityX=S.velocityY=S.deltaX=S.deltaY=0,S.event=e,(!a||!1!==a(S))&&(v.release(),!!v.start()&&(r=!0,0===g?T():(I.start(S.startX,S.startY),!0))))}),(function(e){t?!n&&i&&(n=!0,d(S,e),requestAnimationFrame(N)):(d(S,e),I.detect(S.currentX,S.currentY)&&(I.isGesture()&&T()||R()))}),A,{capture:!1}),R=function(){k(),D.stop(),b&&b(S)};return{enable:function(e){void 0===e&&(e=!0),e||(t&&A(void 0),k()),D.enable(e)},destroy:function(){v.destroy(),D.destroy()}}},d=function(e,t){if(t){var r=e.currentX,i=e.currentY,n=e.currentTime;y(t,e);var o=e.currentX,a=e.currentY,s=(e.currentTime=h(t))-n;if(s>0&&s<100){var u=(o-r)/s,p=(a-i)/s;e.velocityX=.7*u+.3*e.velocityX,e.velocityY=.7*p+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t}},y=function(e,t){var r=0,i=0;if(e){var n=e.changedTouches;if(n&&n.length>0){var o=n[0];r=o.clientX,i=o.clientY}else void 0!==e.pageX&&(r=e.pageX,i=e.pageY)}t.currentX=r,t.currentY=i},h=function(e){return e.timeStamp||Date.now()}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var i=function(e,t,r,i,a){return o(e[1],t[1],r[1],i[1],a).map((function(o){return n(e[0],t[0],r[0],i[0],o)}))},n=function(e,t,r,i,n){return n*(3*t*Math.pow(n-1,2)+n*(-3*r*n+3*r+i*n))-e*Math.pow(n-1,3)},o=function(e,t,r,i,n){return a((i-=n)-3*(r-=n)+3*(t-=n)-(e-=n),3*r-6*t+3*e,3*t-3*e,e).filter((function(e){return e>=0&&e<=1}))},a=function(e,t,r,i){if(0===e)return function(e,t,r){var i=t*t-4*e*r;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]}(t,r,i);var n=(3*(r/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*r+27*(i/=e))/27;if(0===n)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-n),-Math.sqrt(-n)];var a=Math.pow(o/2,2)+Math.pow(n/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-o/2+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];var s=Math.sqrt(Math.pow(-n/3,3)),u=Math.acos(-o/(2*Math.sqrt(Math.pow(-n/3,3)))),p=2*Math.pow(s,1/3);return[p*Math.cos(u/3)-t/3,p*Math.cos((u+2*Math.PI)/3)-t/3,p*Math.cos((u+4*Math.PI)/3)-t/3]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(5),n=r(34),o=r(48),a=function(e){return Object(n.a)().duration(e?400:300)},s=function(e){var t,r,i=e.width+8,o=Object(n.a)(),s=Object(n.a)();e.isEndSide?(t=i+"px",r="0px"):(t=-i+"px",r="0px"),o.addElement(e.menuInnerEl).fromTo("transform","translateX("+t+")","translateX("+r+")");var u="ios"===e.mode,p=u?.2:.25;return s.addElement(e.backdropEl).fromTo("opacity",.01,p),a(u).addAnimation([o,s])},u=function(e){var t,r,i=e.width;e.isEndSide?(t=-i+"px",r=i+"px"):(t=i+"px",r=-i+"px");var o=Object(n.a)().addElement(e.menuInnerEl).fromTo("transform","translateX("+r+")","translateX(0px)"),s=Object(n.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX("+t+")"),u=Object(n.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a("ios"===e.mode).addAnimation([o,s,u])},p=function(e){var t=e.width*(e.isEndSide?-1:1)+"px",r=Object(n.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX("+t+")");return a("ios"===e.mode).addAnimation(r)},c=function(){var e=new Map,t=[],r=function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var r,n;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,h()];case 1:return i.sent(),"start"===e||"end"===e?(r=y((function(t){return t.side===e&&!t.disabled})))?[2,r]:[2,y((function(t){return t.side===e}))]:null!=e?[2,y((function(t){return t.menuId===e}))]:(n=y((function(e){return!e.disabled})))?[2,n]:[2,t.length>0?t[0].el:void 0]}}))}))},n=function(){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){return Object(i.__generator)(this,(function(e){switch(e.label){case 0:return[4,h()];case 1:return e.sent(),[2,m()]}}))}))},a=function(t,r){e.set(t,r)},c=function(e){var r=e.side;t.filter((function(t){return t.side===r&&t!==e})).forEach((function(e){return e.disabled=!0}))},m=function(){return y((function(e){return e._isOpen}))},l=function(){return t.map((function(e){return e.el}))},d=function(){return t.some((function(e){return e.isAnimating}))},y=function(e){var r=t.find(e);if(void 0!==r)return r.el},h=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((function(e){return e.componentOnReady()})))};return a("reveal",p),a("push",u),a("overlay",s),"undefined"!==typeof document&&document.addEventListener("ionBackButton",(function(e){var t=m();t&&e.detail.register(o.MENU_BACK_BUTTON_PRIORITY,(function(){return t.close()}))})),{registerAnimation:a,get:r,getMenus:function(){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){return Object(i.__generator)(this,(function(e){switch(e.label){case 0:return[4,h()];case 1:return e.sent(),[2,l()]}}))}))},getOpen:n,isEnabled:function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,r(e)];case 1:return(t=i.sent())?[2,!t.disabled]:[2,!1]}}))}))},swipeGesture:function(e,t){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var n;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,r(t)];case 1:return(n=i.sent())&&(n.swipeGesture=e),[2,n]}}))}))},isAnimating:function(){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){return Object(i.__generator)(this,(function(e){switch(e.label){case 0:return[4,h()];case 1:return e.sent(),[2,d()]}}))}))},isOpen:function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return null==e?[3,2]:[4,r(e)];case 1:return[2,void 0!==(t=i.sent())&&t.isOpen()];case 2:return[4,n()];case 3:return[2,void 0!==(t=i.sent())]}}))}))},enable:function(e,t){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var n;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,r(t)];case 1:return(n=i.sent())&&(n.disabled=!e),[2,n]}}))}))},toggle:function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,r(e)];case 1:return(t=i.sent())?[2,t.toggle()]:[2,!1]}}))}))},close:function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,void 0!==e?r(e):n()];case 1:return void 0!==(t=i.sent())?[2,t.close()]:[2,!1]}}))}))},open:function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return[4,r(e)];case 1:return(t=i.sent())?[2,t.open()]:[2,!1]}}))}))},_getOpenSync:m,_createAnimation:function(t,r){var i=e.get(t);if(!i)throw new Error("animation not registered");return i(r)},_register:function(e){t.indexOf(e)<0&&(e.disabled||c(e),t.push(e))},_unregister:function(e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},_setOpen:function(e,t,r){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var o;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return d()?[2,!1]:t?[4,n()]:[3,3];case 1:return(o=i.sent())&&e.el!==o?[4,o.setOpen(!1,!1)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2,e._setOpen(t,r)]}}))}))},_setActiveMenu:c}}()},function(e,t,r){"use strict";var i=r(12);r.d(t,"d",(function(){return i.e})),r.d(t,"e",(function(){return i.f}));r(37);var n=r(34);r.d(t,"c",(function(){return n.a}));r(82),r(81),r(44),r(48),r(83);var o=r(38);r.d(t,"a",(function(){return o.c})),r.d(t,"b",(function(){return o.b})),r.d(t,"f",(function(){return o.k})),r.d(t,"g",(function(){return o.l})),r.d(t,"h",(function(){return o.m})),r.d(t,"i",(function(){return o.d})),r.d(t,"j",(function(){return o.o}))},function(e,t,r){"use strict";var i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},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 i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(n){return!1}}()?Object.assign:function(e,t){for(var r,s,u=a(e),p=1;p0&&(l.$children$=s),l}),c=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null};return r},m={},l=function(e){var t=new URL(e,n.$resourcesUrl$);return t.origin!==i.location.origin?t.href:t.pathname},d=function(e){return a(e).$hostElement$}},function(e,t,r){"use strict";e.exports=r(149)},function(e,t,r){r(4);var i=r(3);"undefined"!==typeof window&&(window.AWS=i),e.exports=i,"undefined"!==typeof self&&(self.AWS=i)},function(e,t,r){var i=r(3),n=r(13),o=r(153),a=r(49),s=r(67).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,(function(e,t){r.params[e]=t})),r.body=n.queryParamsToString(r.params),s(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("0){var m=(t=new i.XML.Parser).parse(a.toString(),u);n.update(e.data,m)}}}},function(e,t,r){var i=r(90),n=r(94),o=r(49),a=r(95),s=r(96),u=r(13),p=u.property,c=u.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{},p(this,"isApi",!0,!1),p(this,"apiVersion",e.metadata.apiVersion),p(this,"endpointPrefix",e.metadata.endpointPrefix),p(this,"signingName",e.metadata.signingName),p(this,"globalEndpoint",e.metadata.globalEndpoint),p(this,"signatureVersion",e.metadata.signatureVersion),p(this,"jsonVersion",e.metadata.jsonVersion),p(this,"targetPrefix",e.metadata.targetPrefix),p(this,"protocol",e.metadata.protocol),p(this,"timestampFormat",e.metadata.timestampFormat),p(this,"xmlNamespaceUri",e.metadata.xmlNamespace),p(this,"abbreviation",e.metadata.serviceAbbreviation),p(this,"fullName",e.metadata.serviceFullName),p(this,"serviceId",e.metadata.serviceId),c(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})),p(this,"operations",new i(e.operations,t,(function(e,r){return new n(e,r,t)}),u.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&p(r,"endpointOperation",u.string.lowerFirst(e))}))),p(this,"shapes",new i(e.shapes,t,(function(e,r){return o.create(r,t)}))),p(this,"paginators",new i(e.paginators,t,(function(e,r){return new a(e,r,t)}))),p(this,"waiters",new i(e.waiters,t,(function(e,r){return new s(e,r,t)}),u.string.lowerFirst)),t.documentation&&(p(this,"documentation",e.documentation),p(this,"documentationUrl",e.documentationUrl))}},function(e,t,r){var i=r(49),n=r(13),o=n.property,a=n.memoizedProperty;e.exports=function(e,t,r){var n=this;r=r||{},o(this,"name",t.name||e),o(this,"api",r.api,!1),t.http=t.http||{},o(this,"endpoint",t.endpoint),o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),a(this,"input",(function(){return t.input?i.create(t.input,r):new i.create({type:"structure"},r)})),a(this,"output",(function(){return t.output?i.create(t.output,r):new i.create({type:"structure"},r)})),a(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var n=0;n-1&&r.splice(n,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var i=this.listeners(e),n=i.length;return this.callListeners(i,t,r),n>0},callListeners:function(e,t,r,n){var o=this,a=n||null;function s(n){if(n&&(a=i.util.error(a||new Error,n),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(p){a=i.util.error(a||new Error,p)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),i.util.each(e,(function(e,r){"function"===typeof r&&(r=[r]),i.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,i){return this[e]=r,this.addListener(t,r,i),this},addNamedAsyncListener:function(e,t,r,i){return r._isAsync=!0,this.addNamedListener(e,t,r,i)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on,e.exports=i.SequentialExecutor},function(e,t,r){var i=r(3);i.Credentials=i.util.inherit({constructor:function(){if(i.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=i.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){i.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):i.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),i.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=i.util.promisifyMethod("get",e),this.prototype.refreshPromise=i.util.promisifyMethod("refresh",e)},i.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},i.util.addPromises(i.Credentials)},function(e,t,r){var i=r(3);i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function(e){this.providers=e||i.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,n=t.providers.slice(0);!function e(o,a){if(!o&&a||r===n.length)return i.util.arrayEach(t.resolveCallbacks,(function(e){e(o,a)})),void(t.resolveCallbacks.length=0);var s=n[r++];(a="function"===typeof s?s.call():s).get?a.get((function(t){e(t,t?null:a)})):e(null,a)}()}return t}}),i.CredentialProviderChain.defaultProviders=[],i.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=i.util.promisifyMethod("resolve",e)},i.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},i.util.addPromises(i.CredentialProviderChain)},function(e,t,r){var i=r(3),n=i.util.inherit;i.Endpoint=n({constructor:function(e,t){if(i.util.hideProperties(this,["slashes","auth","hash","search","query"]),"undefined"===typeof e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!==typeof e)return i.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:i.config.sslEnabled)?"https":"http")+"://"+e);i.util.update(this,i.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),i.HttpRequest=n({constructor:function(e,t){e=new i.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()]=i.util.userAgent()},getUserAgentHeaderName:function(){return(i.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=i.util.queryStringParse(e),i.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new i.Endpoint(e);this.endpoint=t,this.path=t.path||"/"}}),i.HttpResponse=n({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}}),i.HttpClient=n({}),i.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var i=r(3),n=i.util.inherit;i.Signers.V3=n(i.Signers.RequestSigner,{addAuthorization:function(e,t){var r=i.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 i.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return i.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 i.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 i.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),i.util.crypto.sha256(e.join("\n"))}}),e.exports=i.Signers.V3},function(e,t,r){var i=r(3),n={},o=[],a="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function(e,t,r,s,u){var p=[i.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&p in n)return n[p];var c=i.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),m=i.util.crypto.hmac(c,r,"buffer"),l=i.util.crypto.hmac(m,s,"buffer"),d=i.util.crypto.hmac(l,a,"buffer");return u&&(n[p]=d,o.push(p),o.length>50&&delete n[o.shift()]),d},emptyCache:function(){n={},o=[]}}},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 i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},function(e,t){for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,n=r;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},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){"use strict";t.decode=t.parse=r(196),t.encode=t.stringify=r(197)},function(e,t,r){r(4);var i=r(3),n=i.Service,o=i.apiLoader;o.services.cognitoidentity={},i.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]),r(212),Object.defineProperty(o.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(213);return e.paginators=r(214).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.CognitoIdentity},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 i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},function(e,t){for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,n=r;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},function(e,t,r){!function(t,i){var n;e.exports=(n=r(23),function(){if("function"==typeof ArrayBuffer){var e=n.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,i=[],n=0;n>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)}()},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),i=0;i=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){s.headers[e]=i.merge(o)})),e.exports=s}).call(this,r(35))},function(e,t,r){"use strict";var i=r(27),n=r(243),o=r(112),a=r(245),s=r(248),u=r(249),p=r(116);e.exports=function(e){return new Promise((function(t,c){var m=e.data,l=e.headers;i.isFormData(m)&&delete l["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",h=e.auth.password||"";l.Authorization="Basic "+btoa(y+":"+h)}var b=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),o(b,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};n(t,c,i),d=null}},d.onabort=function(){d&&(c(p("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(p("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(p(t,e,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var f=r(250),g=(e.withCredentials||u(b))&&e.xsrfCookieName?f.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&i.forEach(l,(function(e,t){"undefined"===typeof m&&"content-type"===t.toLowerCase()?delete l[t]:d.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(S){if("json"!==e.responseType)throw S}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),c(e),d=null)})),void 0===m&&(m=null),d.send(m)}))}},function(e,t,r){"use strict";var i=r(244);e.exports=function(e,t,r,n,o){var a=new Error(e);return i(a,t,r,n,o)}},function(e,t,r){"use strict";var i=r(27);e.exports=function(e,t){t=t||{};var r={},n=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(n,(function(e){"undefined"!==typeof t[e]&&(r[e]=t[e])})),i.forEach(o,(function(n){i.isObject(t[n])?r[n]=i.deepMerge(e[n],t[n]):"undefined"!==typeof t[n]?r[n]=t[n]:i.isObject(e[n])?r[n]=i.deepMerge(e[n]):"undefined"!==typeof e[n]&&(r[n]=e[n])})),i.forEach(a,(function(i){"undefined"!==typeof t[i]?r[i]=t[i]:"undefined"!==typeof e[i]&&(r[i]=e[i])}));var s=n.concat(o).concat(a),u=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return i.forEach(u,(function(i){"undefined"!==typeof t[i]?r[i]=t[i]:"undefined"!==typeof e[i]&&(r[i]=e[i])})),r}},function(e,t,r){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},function(e,t,r){"use strict";(function(e){var i=r(58),n=r(75),o=r(76),a=r(20),s=r(2),u=r(131),p=r(80),c=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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),m=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},l=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&n.Transcript.Results[0].Alternatives.length>0&&n.Transcript.Results[0].Alternatives[0].Transcript.length>0&&(!1===n.Transcript.Results[0].IsPartial?(r=n.Transcript.Results[0].Alternatives[0].Transcript+"\n",d.debug({decodedMessage:r})):d.debug({transcript:n.Transcript.Results[0].Alternatives[0]})),r},r.prototype.sendDataToTranscribe=function(t){var i=this,n=t.connection,o=t.raw;return new Promise((function(t,a){var s="";if(n.onmessage=function(e){try{var t=r.serializeDataFromTranscribe(e);t&&(s+=t+" ")}catch(i){d.debug(i),a(i.message)}},n.onerror=function(e){d.debug({errorEvent:e}),a("failed to transcribe, network error")},n.onclose=function(e){return d.debug({closeEvent:e}),t(s.trim())},d.debug({raw:o}),Array.isArray(o))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),i=7,n=Math.abs(Math.round(t));i>-1&&n>0;i--,n/=256)r[i]=n;return t<0&&o(r),new e(r)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&o(e),parseInt(i.toHex(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function o(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}t.Int64=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(5);t.crc32=function(e){return(new n).update(e).digest()};var n=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=i.__values(e),a=n.next();!a.done;a=n.next()){var s=a.value;this.checksum=this.checksum>>>8^o[255&(this.checksum^s)]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=n;var o=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 i=r(3).util;function n(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(i.isNode()){var r=i.stream.Stream;if(i.Buffer.isBuffer(e)||e instanceof r)return!0}for(var n=0;n25&&this.locationHistory.splice(0,10)}},{key:"pop",value:function(){this.locationHistory.pop()}},{key:"replace",value:function(e){this.locationHistory.pop(),this.locationHistory.push(e)}},{key:"clear",value:function(){this.locationHistory=[]}},{key:"findLastLocationByUrl",value:function(e){for(var t=this.locationHistory.length-1;t>=0;t--){var r=this.locationHistory[t];if(r.pathname.toLocaleLowerCase()===e.toLocaleLowerCase())return r}}},{key:"previous",value:function(){return this.locationHistory[this.locationHistory.length-2]}},{key:"current",value:function(){return this.locationHistory[this.locationHistory.length-1]}}]),e}(),N=function(){function e(){Object(c.a)(this,e),this.viewStacks={}}return Object(m.a)(e,[{key:"get",value:function(e){return this.viewStacks[e]}},{key:"set",value:function(e,t){this.viewStacks[e]=t}},{key:"getKeys",value:function(){return Object.keys(this.viewStacks)}},{key:"delete",value:function(e){delete this.viewStacks[e]}},{key:"findViewInfoByLocation",value:function(e,t){var r,i,n;return(n=this.viewStacks[t])&&(n.views.some((function(t){var n={exact:t.routeData.childProps.exact,path:t.routeData.childProps.path||t.routeData.childProps.from,component:t.routeData.childProps.component},o=Object(h.f)(e.pathname,n);if(o)return r=t,i=o,!0;return!1})),r||n.views.some((function(t){return!t.routeData.childProps.path&&!t.routeData.childProps.from&&(i={path:e.pathname,url:e.pathname,isExact:!0,params:{}},r=t,!0)}))),{view:r,viewStack:n,match:i}}},{key:"findViewInfoById",value:function(){var e,t,r=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.getKeys();return n.some((function(n){var o=r.viewStacks[n];return!!(e=o.views.find((function(e){return e.id===i})))&&(t=o,!0)})),{view:e,viewStack:t}}}]),e}(),T=y.a.createContext({viewStacks:new N,syncView:function(){C()},syncRoute:function(){C()},hideView:function(){C()},setupIonRouter:function(){return Promise.reject(C())},removeViewStack:function(){C()},getRoute:function(){C()}});function C(){console.error("IonReactRouter not found, did you add it to the app?")}var k,A=function(e){function t(){return Object(c.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.view,r=e.route;(r.type===h.b||r.props.render&&!t.isIonRoute&&r.props.render().type===h.b)&&this.props.onHideView(t.id)}},{key:"componentWillUnmount",value:function(){this.ionPage&&(this.ionPage.removeEventListener("ionViewWillEnter",this.ionViewWillEnterHandler.bind(this)),this.ionPage.removeEventListener("ionViewDidEnter",this.ionViewDidEnterHandler.bind(this)),this.ionPage.removeEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler.bind(this)),this.ionPage.removeEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler.bind(this)))}},{key:"ionViewWillEnterHandler",value:function(){this.context.ionViewWillEnter()}},{key:"ionViewDidEnterHandler",value:function(){this.context.ionViewDidEnter()}},{key:"ionViewWillLeaveHandler",value:function(){this.context.ionViewWillLeave()}},{key:"ionViewDidLeaveHandler",value:function(){this.context.ionViewDidLeave()}},{key:"registerIonPage",value:function(e){this.ionPage=e,this.ionPage.addEventListener("ionViewWillEnter",this.ionViewWillEnterHandler.bind(this)),this.ionPage.addEventListener("ionViewDidEnter",this.ionViewDidEnterHandler.bind(this)),this.ionPage.addEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler.bind(this)),this.ionPage.addEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler.bind(this)),this.ionPage.classList.add("ion-page-invisible"),I()&&this.ionPage.setAttribute("data-view-id",this.props.view.id),this.props.onViewSync(e,this.props.view.id)}},{key:"render",value:function(){var e=this;return y.a.createElement(f.w.Consumer,null,(function(t){var r=Object.assign(Object.assign({},t),{registerIonPage:e.registerIonPage.bind(e)});return y.a.createElement(f.w.Provider,{value:r},e.props.children)}))}}],[{key:"contextType",get:function(){return f.n}}]),t}(y.a.Component),D=function(e){function t(e){var r;return Object(c.a)(this,t),(r=Object(s.a)(this,Object(u.a)(t).call(this,e))).ionLifeCycleContext=new f.a,r._isMounted=!1,r.state={show:!0},r.ionLifeCycleContext.onComponentCanBeDestroyed((function(){r.props.mount||r._isMounted&&r.setState({show:!1},(function(){r.context.hideView(r.props.id)}))})),r}return Object(p.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this.state.show;return y.a.createElement(f.n.Provider,{value:this.ionLifeCycleContext},e&&this.props.children)}}],[{key:"contextType",get:function(){return T}}]),t}(y.a.Component),R=function(e){function t(e){var r;return Object(c.a)(this,t),(r=Object(s.a)(this,Object(u.a)(t).call(this,e))).routerOutletEl=y.a.createRef(),r.id=r.props.id||S(),r.handleViewSync=r.handleViewSync.bind(Object(a.a)(r)),r.handleHideView=r.handleHideView.bind(Object(a.a)(r)),r.state={},r}return Object(p.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){this.props.routeManager.setupIonRouter(this.id,this.props.children,this.routerOutletEl.current)}},{key:"componentWillUnmount",value:function(){this.props.routeManager.removeViewStack(this.id)}},{key:"handleViewSync",value:function(e,t){this.props.routeManager.syncView(e,t)}},{key:"handleHideView",value:function(e){this.props.routeManager.hideView(e)}},{key:"renderChild",value:function(e,t){return y.a.cloneElement(t,{computedMatch:e.routeData.match})}},{key:"render",value:function(){var e=this,t=this.props.routeManager,r=(t.viewStacks.get(this.id)||{views:[]}).views.filter((function(e){return e.show})),i=y.a.Children.only(this.props.children),n=r.map((function(r){var i=t.getRoute(r.routeId);return y.a.createElement(D,{id:r.id,key:r.key,mount:r.mount},y.a.createElement(A,{onViewSync:e.handleViewSync,onHideView:e.handleHideView,view:r,route:i},e.renderChild(r,i)))})),o={ref:this.routerOutletEl};return i.props.forwardedRef&&(i.props.forwardedRef.current=this.routerOutletEl),I()&&(o["data-stack-id"]=this.id),y.a.cloneElement(i,o,n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.routeManager.syncRoute(e.children),t}}]),t}(y.a.Component),P=(k=R,function(e){return y.a.createElement(T.Consumer,null,(function(t){return y.a.createElement(k,Object.assign({},e,{routeManager:t}))}))}),E=function(e){function t(e){var r;return Object(c.a)(this,t),(r=Object(s.a)(this,Object(u.a)(t).call(this,e))).state={goBack:r.goBack.bind(Object(a.a)(r)),hasIonicRouter:function(){return!0},navigate:r.navigate.bind(Object(a.a)(r)),getStackManager:r.getStackManager.bind(Object(a.a)(r)),getPageManager:r.getPageManager.bind(Object(a.a)(r)),currentPath:r.props.location.pathname,registerIonPage:function(){}},r.listenUnregisterCallback=r.props.history.listen((function(e){r.setState({currentPath:e.pathname})})),document&&document.addEventListener("ionBackButton",(function(e){e.detail.register(0,(function(){r.props.history.goBack()}))})),r}return Object(p.a)(t,e),Object(m.a)(t,[{key:"componentWillUnmount",value:function(){this.listenUnregisterCallback&&this.listenUnregisterCallback()}},{key:"goBack",value:function(e){this.props.onNavigateBack(e)}},{key:"navigate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"push";this.props.onNavigate(r,e,t)}},{key:"getPageManager",value:function(){return function(e){return e}}},{key:"getStackManager",value:function(){return P}},{key:"render",value:function(){return y.a.createElement(f.w.Provider,{value:this.state},this.props.children)}}]),t}(y.a.Component),x=function(e){function t(e){var r;return Object(c.a)(this,t),(r=Object(s.a)(this,Object(u.a)(t).call(this,e))).locationHistory=new v,r.routes={},r.ionPageElements={},r.routerOutlets={},r.firstRender=!0,r.listenUnregisterCallback=r.props.history.listen(r.historyChange.bind(Object(a.a)(r))),r.handleNavigate=r.handleNavigate.bind(Object(a.a)(r)),r.navigateBack=r.navigateBack.bind(Object(a.a)(r)),r.state={viewStacks:new N,hideView:r.hideView.bind(Object(a.a)(r)),setupIonRouter:r.setupIonRouter.bind(Object(a.a)(r)),removeViewStack:r.removeViewStack.bind(Object(a.a)(r)),syncView:r.syncView.bind(Object(a.a)(r)),syncRoute:r.syncRoute.bind(Object(a.a)(r)),getRoute:r.getRoute.bind(Object(a.a)(r))},r.locationHistory.add({hash:window.location.hash,key:S(),pathname:window.location.pathname,search:window.location.search,state:{}}),r}return Object(p.a)(t,e),Object(m.a)(t,[{key:"componentDidUpdate",value:function(e,t){if(this.state.location&&t.location!==this.state.location||t.action!==this.state.action){var r=Object.assign(new N,this.state.viewStacks);this.setActiveView(this.state.location,this.state.action,r)}}},{key:"componentWillUnmount",value:function(){this.listenUnregisterCallback&&this.listenUnregisterCallback()}},{key:"getRoute",value:function(e){return this.routes[e]}},{key:"hideView",value:function(e){var t=Object.assign(new N,this.state.viewStacks),r=t.findViewInfoById(e).view;r&&(r.show=!1,r.isIonRoute=!1,r.prevId=void 0,r.key=S(),delete this.ionPageElements[r.id],this.setState({viewStacks:t}))}},{key:"historyChange",value:function(e,t){var r="pop"===this.currentIonRouteAction?"pop":t.toLowerCase(),i=this.currentRouteDirection;"push"===r?this.locationHistory.add(e):"pop"===r?(this.locationHistory.pop(),i=i||"back"):"replace"===r&&(this.locationHistory.replace(e),i="none"),"root"===i&&(this.locationHistory.clear(),this.locationHistory.add(e)),e.state=e.state||{direction:i},this.setState({location:e,action:r}),this.currentRouteDirection=void 0,this.currentIonRouteAction=void 0}},{key:"setActiveView",value:function(e,t,r){var i,n,o=this,a=e.state&&e.state.direction||"forward",s=r.getKeys(),u=!1;s.forEach((function(s){var p=r.findViewInfoByLocation(e,s),c=p.view,m=p.viewStack,l=p.match;c&&m&&(i=r.findViewInfoById(o.activeIonPageId).view,c.isIonRoute?(c.show=!0,c.mount=!0,c.routeData.match=l,u=!0,o.activeIonPageId=c.id,i?("push"===t&&"forward"===a?c.prevId=i.id:"none"!==a&&(i.mount=!1,o.removeOrphanedViews(c,m)),n=c.id===i.id?o.ionPageElements[i.id].outerHTML:void 0):a=void 0):(c.show=!0,c.mount=!0,c.routeData.match=l))})),i&&(i.isIonRoute||(i.mount=!1,i.show=!1)),this.setState({viewStacks:r},(function(){if(u){var t=o.state.viewStacks.findViewInfoById(o.activeIonPageId),r=t.view,s=t.viewStack;if(r&&s){var p=o.ionPageElements[r.id],c=i&&o.ionPageElements[i.id];if(p){var m;m=c&&""===c.innerHTML||"none"===a||"root"===a?void 0:a;var l=!!r.prevId,d=o.routerOutlets[s.id];o.commitView(p,c,d,m,l,n)}else c&&(c.classList.add("ion-page-hidden"),c.setAttribute("aria-hidden","true"))}I()&&r&&r.routeData.match.url!==e.pathname&&setTimeout((function(){o.state.viewStacks.findViewInfoById(o.activeIonPageId).view.routeData.match.url!==e.pathname&&console.warn("No IonPage was found to render. Make sure you wrap your page with an IonPage component.")}),100)}}))}},{key:"removeOrphanedViews",value:function(e,t){var r=this;t.views.filter((function(t){return t.prevId===e.id})).forEach((function(e){e.id!==r.activeIonPageId&&(r.removeOrphanedViews(e,t),r.ionPageElements[e.id].classList.contains("ion-page-hidden")&&(e.show=!1,e.isIonRoute=!1,e.prevId=void 0,e.key=S(),delete r.ionPageElements[e.id]),e.mount=!1)}))}},{key:"setupIonRouter",value:function(e,t,r){var i,n=this,o=[],a=y.a.Children.only(t),s=!1;if(y.a.Children.forEach(a.props.children,(function(e){var t=S();n.routes[t]=e,o.push(function(e,t,r){var n=S(),o=S(),a={exact:e.props.exact,path:e.props.path||e.props.from,component:e.props.component},u=Object(h.f)(r.pathname,a),p={id:n,key:o,routeData:{match:u,childProps:e.props},routeId:t,mount:!0,show:!!u,isIonRoute:!1};u&&p.isIonRoute&&(i=n);!s&&u&&(s=!0);return p}(e,t,n.props.history.location))})),!s){var u=o.find((function(e){return!e.routeData.childProps.path&&!e.routeData.childProps.from}));u&&(u.show=!0)}this.registerViewStack(e,i,o,r,this.props.location)}},{key:"registerViewStack",value:function(e,t,r,i,n){var o=this;this.setState((function(n){var a=Object.assign(new N,n.viewStacks),s={id:e,views:r};return o.routerOutlets[e]=i,t&&(o.activeIonPageId=t),a.set(e,s),{viewStacks:a}}),(function(){o.setupRouterOutlet(i)}))}},{key:"setupRouterOutlet",value:function(){var e=Object(o.a)(n.a.mark((function e(t){var r,i,o=this;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=function(){var e=Object(f.x)();if(e&&e.get("swipeBackEnabled","ios"===t.mode)){var r=o.state.viewStacks.findViewInfoById(o.activeIonPageId).view;return!(!r||!r.prevId)}return!1},i=function(){o.navigateBack()},t.swipeHandler={canStart:r,onStart:i,onEnd:function(e){return!0}};case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"removeViewStack",value:function(e){var t=Object.assign(new N,this.state.viewStacks);t.delete(e),this.setState({viewStacks:t})}},{key:"syncView",value:function(e,t){var r=Object.assign(new N,this.state.viewStacks),i=r.findViewInfoById(t).view;i&&(i.isIonRoute=!0,this.ionPageElements[i.id]=e,this.setActiveView(this.state.location||this.props.location,this.state.action,r))}},{key:"syncRoute",value:function(e){var t=this,r=y.a.Children.only(e);y.a.Children.forEach(r.props.children,(function(e){for(var r in t.routes){var i=t.routes[r];(i.props.path||i.props.from)===(e.props.path||e.props.from)&&i.props.exact===e.props.exact&&i.props.to===e.props.to&&(t.routes[r]=e)}}))}},{key:"commitView",value:function(){var e=Object(o.a)(n.a.mark((function e(t,r,i,o,a,s){var u;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.firstRender){e.next=17;break}if("componentOnReady"in i){e.next=4;break}return e.next=4,w(i);case 4:if(t!==r||!o||!s){e.next=12;break}return u=q(s),i.appendChild(u),e.next=9,i.commit(t,u,{deepWait:!0,duration:void 0===o?0:void 0,direction:o,showGoBack:a,progressAnimation:!1});case 9:i.removeChild(u),e.next=14;break;case 12:return e.next=14,i.commit(t,r,{deepWait:!0,duration:void 0===o?0:void 0,direction:o,showGoBack:a,progressAnimation:!1});case 14:r&&t!==r&&(r.classList.add("ion-page-hidden"),r.setAttribute("aria-hidden","true")),e.next=22;break;case 17:t.classList.remove("ion-page-invisible"),t.style.zIndex="101",t.dispatchEvent(new Event("ionViewWillEnter")),t.dispatchEvent(new Event("ionViewDidEnter")),this.firstRender=!1;case 22:case"end":return e.stop()}}),e,this)})));return function(t,r,i,n,o,a){return e.apply(this,arguments)}}()},{key:"handleNavigate",value:function(e,t,r){switch(this.currentIonRouteAction=e,e){case"push":this.currentRouteDirection=r,this.props.history.push(t);break;case"pop":this.currentRouteDirection=r||"back",this.props.history.replace(t);break;case"replace":this.currentRouteDirection="none",this.props.history.replace(t)}}},{key:"navigateBack",value:function(e){var t=this.state.viewStacks.findViewInfoById(this.activeIonPageId).view;if(t)if(t.id===t.prevId){var r=this.locationHistory.previous();r?this.handleNavigate("pop",r.pathname+r.search):e&&this.handleNavigate("pop",e)}else{var i=this.state.viewStacks.findViewInfoById(t.prevId).view;if(i){var n=this.locationHistory.findLastLocationByUrl(i.routeData.match.url);n?this.handleNavigate("pop",n.pathname+n.search):this.handleNavigate("pop",i.routeData.match.url)}else{var o=this.locationHistory.previous();o?this.handleNavigate("pop",o.pathname+o.search):e&&this.handleNavigate("pop",e)}}else e&&this.handleNavigate("replace",e,"back")}},{key:"render",value:function(){return y.a.createElement(T.Provider,{value:this.state},y.a.createElement(E,Object.assign({},this.props,{onNavigateBack:this.navigateBack,onNavigate:this.handleNavigate}),this.props.children))}}]),t}(y.a.Component);function q(e){var t=document.createElement("div");t.innerHTML=e,t.classList.add("ion-page-hidden"),t.style.zIndex="";var r=t.getElementsByTagName("ion-back-button");return r[0]&&(r[0].innerHTML=""),t.firstChild}function w(e){return _.apply(this,arguments)}function _(){return(_=Object(o.a)(n.a.mark((function e(t){return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("componentOnReady"in t)){e.next=4;break}return e.abrupt("return");case 4:setTimeout((function(){w(t)}),0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var M=Object(h.g)(x);M.displayName="RouteManager";var L=function(e){function t(){return Object(c.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(m.a)(t,[{key:"render",value:function(){var e=this.props,t=e.children,r=Object(l.__rest)(e,["children"]);return y.a.createElement(b.a,Object.assign({},r),y.a.createElement(M,null,t))}}]),t}(y.a.Component);y.a.Component,y.a.Component}).call(this,r(35))},function(e,t,r){"use strict";(function(t){var r="__global_unique_id__";e.exports=function(){return t[r]=(t[r]||0)+1}}).call(this,r(41))},function(e,t,r){"use strict";var i=r(87),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return i.isMemo(e)?a:s[e.$$typeof]||n}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var p=Object.defineProperty,c=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,i){if("string"!==typeof r){if(y){var n=d(r);n&&n!==y&&e(t,n,i)}var a=c(r);m&&(a=a.concat(m(r)));for(var s=u(t),h=u(r),b=0;b0){var a=r.substring(0,n),s=r.substring(n+i.length);r=a+t[o]+s}return r},v=[0,6,77,81,73,115,100,112,3],N=[0,4,77,81,84,84,4],T=function(e,t){for(var r in this.type=e,t)t.hasOwnProperty(r)&&(this[r]=t[r])};function C(e,t){var r,p=t,m=e[t],d=m>>4,y=m&=15;t+=1;var h=0,b=1;do{if(t==e.length)return[null,p];h+=(127&(r=e[t++]))*b,b*=128}while(0!==(128&r));var f=t+h;if(f>e.length)return[null,p];var g=new T(d);switch(d){case i:1&e[t++]&&(g.sessionPresent=!0),g.returnCode=e[t++];break;case n:var S=y>>1&3,I=D(e,t),v=E(e,t+=2,I);t+=I,S>0&&(g.messageIdentifier=D(e,t),t+=2);var N=new _(e.subarray(t,f));1==(1&y)&&(N.retained=!0),8==(8&y)&&(N.duplicate=!0),N.qos=S,N.destinationName=v,g.payloadMessage=N;break;case o:case a:case s:case u:case l:g.messageIdentifier=D(e,t);break;case c:g.messageIdentifier=D(e,t),t+=2,g.returnCode=e.subarray(t,f)}return[g,f]}function k(e,t,r){return t[r++]=e>>8,t[r++]=e%256,r}function A(e,t,r,i){return P(e,r,i=k(t,r,i)),i+t}function D(e,t){return 256*e[t]+e[t+1]}function R(e){for(var t=0,r=0;r2047?(55296<=i&&i<=56319&&(r++,t++),t+=3):i>127?t+=2:t++}return t}function P(e,t,r){for(var i=r,n=0;n>6&31|192,t[i++]=63&o|128):o<=65535?(t[i++]=o>>12&15|224,t[i++]=o>>6&63|128,t[i++]=63&o|128):(t[i++]=o>>18&7|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=63&o|128)}return t}function E(e,t,r){for(var i,n="",o=t;o65535&&(i-=65536,n+=String.fromCharCode(55296+(i>>10)),i=56320+(1023&i)),n+=String.fromCharCode(i)}return n}T.prototype.encode=function(){var e,t=(15&this.type)<<4,i=0,o=[],a=0;switch(void 0!==this.messageIdentifier&&(i+=2),this.type){case r:switch(this.mqttVersion){case 3:i+=v.length+3;break;case 4:i+=N.length+3}i+=R(this.clientId)+2,void 0!==this.willMessage&&(i+=R(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(c)),i+=e.byteLength+2),void 0!==this.userName&&(i+=R(this.userName)+2),void 0!==this.password&&(i+=R(this.password)+2);break;case p:t|=2;for(var u=0;u>=7)>0&&(i|=128),t[r++]=i}while(e>0&&r<4);return t}(i),d=l.length+1,y=new ArrayBuffer(i+d),h=new Uint8Array(y);if(h[0]=t,h.set(l,1),this.type==n)d=A(this.payloadMessage.destinationName,a,h,d);else if(this.type==r){switch(this.mqttVersion){case 3:h.set(v,d),d+=v.length;break;case 4:h.set(N,d),d+=N.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),h[d++]=b,d=k(this.keepAliveInterval,h,d)}switch(void 0!==this.messageIdentifier&&(d=k(this.messageIdentifier,h,d)),this.type){case r:d=A(this.clientId,R(this.clientId),h,d),void 0!==this.willMessage&&(d=A(this.willMessage.destinationName,R(this.willMessage.destinationName),h,d),d=k(e.byteLength,h,d),h.set(e,d),d+=e.byteLength),void 0!==this.userName&&(d=A(this.userName,R(this.userName),h,d)),void 0!==this.password&&(d=A(this.password,R(this.password),h,d));break;case n:h.set(c,d);break;case p:for(u=0;u0&&(this.timeout=setTimeout(i(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},q=function(e,t,r,i){t||(t=30),this.timeout=setTimeout(function(e,t,r){return function(){return e.apply(t,r)}}(r,e,i),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},w=function(r,i,n,o,a){if(!("WebSocket"in e&&null!==e.WebSocket))throw new Error(I(g.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e&&null!==e.ArrayBuffer))throw new Error(I(g.UNSUPPORTED,["ArrayBuffer"]));for(var s in this._trace("Paho.Client",r,i,n,o,a),this.host=i,this.port=n,this.path=o,this.uri=r,this.clientId=a,this._wsuri=null,this._localKey=i+":"+n+("/mqtt"!=o?":"+o:"")+":"+a+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,t)0!==s.indexOf("Sent:"+this._localKey)&&0!==s.indexOf("Received:"+this._localKey)||this.restore(s)};w.prototype.host=null,w.prototype.port=null,w.prototype.path=null,w.prototype.uri=null,w.prototype.clientId=null,w.prototype.socket=null,w.prototype.connected=!1,w.prototype.maxMessageIdentifier=65536,w.prototype.connectOptions=null,w.prototype.hostIndex=null,w.prototype.onConnected=null,w.prototype.onConnectionLost=null,w.prototype.onMessageDelivered=null,w.prototype.onMessageArrived=null,w.prototype.traceFunction=null,w.prototype._msg_queue=null,w.prototype._buffered_msg_queue=null,w.prototype._connectTimeout=null,w.prototype.sendPinger=null,w.prototype.receivePinger=null,w.prototype._reconnectInterval=1,w.prototype._reconnecting=!1,w.prototype._reconnectTimeout=null,w.prototype.disconnectedPublishing=!1,w.prototype.disconnectedBufferSize=5e3,w.prototype.receiveBuffer=null,w.prototype._traceBuffer=null,w.prototype._MAX_TRACE_ENTRIES=100,w.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(I(g.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(I(g.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)},w.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(I(g.INVALID_STATE,["not connected"]));var r=new T(p);r.topics=e.constructor===Array?e:[e],void 0===t.qos&&(t.qos=0),r.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(I(g.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(I(g.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},w.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(I(g.INVALID_STATE,["not connecting or connected"]));var e=new T(h);this._notify_msg_sent[e]=f(this._disconnected,this),this._schedule_message(e)},w.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}},w.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},w.prototype.stopTrace=function(){delete this._traceBuffer},w.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=f(this._on_socket_open,this),this.socket.onmessage=f(this._on_socket_message,this),this.socket.onerror=f(this._on_socket_error,this),this.socket.onclose=f(this._on_socket_close,this),this.sendPinger=new x(this,this.connectOptions.keepAliveInterval),this.receivePinger=new x(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new q(this,this.connectOptions.timeout,this._disconnected,[g.CONNECT_TIMEOUT.code,I(g.CONNECT_TIMEOUT)])},w.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},w.prototype.store=function(e,r){var i={type:r.type,messageIdentifier:r.messageIdentifier,version:1};switch(r.type){case n:r.pubRecReceived&&(i.pubRecReceived=!0),i.payloadMessage={};for(var o="",a=r.payloadMessage.payloadBytes,s=0;s=2;){var c=parseInt(a.substring(0,2),16);a=a.substring(2,a.length),u[p++]=c}var m=new _(u);m.qos=i.payloadMessage.qos,m.destinationName=i.payloadMessage.destinationName,i.payloadMessage.duplicate&&(m.duplicate=!0),i.payloadMessage.retained&&(m.retained=!0),o.payloadMessage=m;break;default:throw Error(I(g.INVALID_STORED_DATA,[e,r]))}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)},w.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])},w.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===n&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},w.prototype._on_socket_open=function(){var e=new T(r,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},w.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 f=null;f=this._buffered_msg_queue.pop();)d.push(f),this.onMessageDelivered&&(this._notify_msg_sent[f]=this.onMessageDelivered(f.payloadMessage));d=d.sort((function(e,t){return e.sequence-t.sequence}));for(var v=0,N=d.length;v65535)throw new Error(I(g.INVALID_ARGUMENT,[i,"clientId"]));var c=new w(n,e,t,r,i);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},path:{get:function(){return r},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},uri:{get:function(){return n},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return c.clientId},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return c.onConnected},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onConnected"]));c.onConnected=e}},disconnectedPublishing:{get:function(){return c.disconnectedPublishing},set:function(e){c.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return c.disconnectedBufferSize},set:function(e){c.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return c.onConnectionLost},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onConnectionLost"]));c.onConnectionLost=e}},onMessageDelivered:{get:function(){return c.onMessageDelivered},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onMessageDelivered"]));c.onMessageDelivered=e}},onMessageArrived:{get:function(){return c.onMessageArrived},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onMessageArrived"]));c.onMessageArrived=e}},trace:{get:function(){return c.traceFunction},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onTrace"]));c.traceFunction=e}}}),this.connect=function(e){if(b(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(I(g.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(I(g.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof _))throw new Error(I(g.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,"undefined"===typeof e.willMessage.destinationName)throw new Error(I(g.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(I(g.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(I(g.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,i=0;i=3&&(n.qos=r),arguments.length>=4&&(n.retained=i),c.send(n)},this.publish=function(e,t,r,i){var n;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof _)&&"string"!==typeof e)throw new Error("Invalid argument:"+typeof e);if("undefined"===typeof(n=e).destinationName)throw new Error(I(g.INVALID_ARGUMENT,[n.destinationName,"Message.destinationName"]));c.send(n)}else(n=new _(t)).destinationName=e,arguments.length>=3&&(n.qos=r),arguments.length>=4&&(n.retained=i),c.send(n)},this.disconnect=function(){c.disconnect()},this.getTraceLog=function(){return c.getTraceLog()},this.startTrace=function(){c.startTrace()},this.stopTrace=function(){c.stopTrace()},this.isConnected=function(){return c.connected}},Message:_}}("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},e.exports=r()}).call(this,r(41))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(5);i.__exportStar(r(261),t),i.__exportStar(r(121),t)},function(e,t,r){r(4);var i=r(3),n=i.Service,o=i.apiLoader;o.services.textract={},i.Textract=n.defineService("textract",["2018-06-27"]),Object.defineProperty(o.services.textract,"2018-06-27",{get:function(){var e=r(268);return e.paginators=r(269).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Textract},function(e,t,r){r(4);var i=r(3);"undefined"!==typeof window&&(window.AWS=i),e.exports=i,"undefined"!==typeof self&&(self.AWS=i),r(270)},function(e,t,r){"use strict";var i=r(54),n=(r(12),function(e,t){return Object(i.b)().then((function(){Object(i.h)(),Object(i.c)(JSON.parse('[[{"ios":"ion-select_3-ios","md":"ion-select_3-md"},[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[1,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],[{"ios":"ion-menu_3-ios","md":"ion-menu_3-md"},[[1,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]],[1,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[32,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]]]],[{"ios":"ion-action-sheet-ios","md":"ion-action-sheet-md"},[[2,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-fab_3-ios","md":"ion-fab_3-md"},[[1,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],[{"ios":"ion-refresher_2-ios","md":"ion-refresher_2-md"},[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[0,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],[{"ios":"ion-back-button-ios","md":"ion-back-button-md"},[[1,"ion-back-button",{"color":[1],"defaultHref":[1,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1]}]]],[{"ios":"ion-backdrop-ios","md":"ion-backdrop-md"},[[1,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"touchstart","onTouchStart"],[2,"click","onMouseDown"],[2,"mousedown","onMouseDown"]]]]],[{"ios":"ion-alert-ios","md":"ion-alert-md"},[[2,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-loading-ios","md":"ion-loading-md"},[[2,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-toast-ios","md":"ion-toast-md"},[[1,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-card_5-ios","md":"ion-card_5-md"},[[1,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}],[0,"ion-card-content"],[1,"ion-card-header",{"color":[1],"translucent":[4]}],[1,"ion-card-subtitle",{"color":[1]}],[1,"ion-card-title",{"color":[1]}]]],[{"ios":"ion-item-option_3-ios","md":"ion-item-option_3-md"},[[1,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[0,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],[{"ios":"ion-infinite-scroll_2-ios","md":"ion-infinite-scroll_2-md"},[[0,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],[{"ios":"ion-reorder_2-ios","md":"ion-reorder_2-md"},[[1,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],[{"ios":"ion-segment_2-ios","md":"ion-segment_2-md"},[[1,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[1,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025],"activated":[32]}]]],[{"ios":"ion-tab-bar_2-ios","md":"ion-tab-bar_2-md"},[[1,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[16,"ionTabBarChanged","onTabBarChanged"]]],[1,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],[{"ios":"ion-chip-ios","md":"ion-chip-md"},[[1,"ion-chip",{"color":[1],"outline":[4]}]]],[{"ios":"ion-modal-ios","md":"ion-modal-md"},[[2,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-popover-ios","md":"ion-popover-md"},[[2,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],[{"ios":"ion-searchbar-ios","md":"ion-searchbar-md"},[[2,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-app_8-ios","md":"ion-app_8-md"},[[0,"ion-app"],[2,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[2,"click","onClick"]]],[4,"ion-footer",{"translucent":[4]}],[4,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[1,"ion-title",{"color":[1],"size":[1]}],[1,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"target":[1]}]]],[{"ios":"ion-avatar_3-ios","md":"ion-avatar_3-md"},[[1,"ion-avatar"],[1,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"]}]]],[{"ios":"ion-slide_2-ios","md":"ion-slide_2-md"},[[0,"ion-slide"],[4,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],[{"ios":"ion-checkbox-ios","md":"ion-checkbox-md"},[[1,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],[{"ios":"ion-input-ios","md":"ion-input-md"},[[2,"ion-input",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-progress-bar-ios","md":"ion-progress-bar-md"},[[1,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],[{"ios":"ion-range-ios","md":"ion-range-md"},[[1,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],[{"ios":"ion-split-pane-ios","md":"ion-split-pane-md"},[[1,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],[{"ios":"ion-textarea-ios","md":"ion-textarea-md"},[[2,"ion-textarea",{"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],[{"ios":"ion-toggle-ios","md":"ion-toggle-md"},[[1,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],[{"ios":"ion-datetime_3-ios","md":"ion-datetime_3-md"},[[2,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[1,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[0,"ion-picker-column",{"col":[16]}]]],[{"ios":"ion-radio_2-ios","md":"ion-radio_2-md"},[[1,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],[{"ios":"ion-button_2-ios","md":"ion-button_2-md"},[[1,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}]]],[{"ios":"ion-item_8-ios","md":"ion-item_8-md"},[[1,"ion-item-divider",{"color":[1],"sticky":[4]}],[0,"ion-item-group"],[1,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[1,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionStyle","itemStyle"]]],[2,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[0,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[1,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),t)}))});r.d(t,"a",(function(){return n})),function(){if(void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}()},,,,function(e,t,r){"use strict";var i=r(85),n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,p=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,m=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rE.length&&E.push(e)}function w(e,t,r){return null==e?0:function e(t,r,i,n){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 o:case a:u=!0}}if(u)return i(n,t,""===r?"."+_(t,0):r),1;if(u=0,r=""===r?".":r+":",Array.isArray(t))for(var p=0;p