e.top?1:0}function i(t){return t.indexOf("px")>0?parseInt(t,10):0}function o(t){return t>0?t+"px":""}n.d(e,"a",function(){return h});var a=n(0),s=(n(2),n(10),n(8)),u=n(33),c=n(4),l=(n(25),n(20),n(5),n(297)),d=(n(6),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.subscribe=function(e,n,r){return this.onSubscribe(),t.prototype.subscribe.call(this,e,n,r)},e}(a.EventEmitter),h=function(t){function e(e,n,r,i,o,a,s,c,d,h){var f=t.call(this,e,i,o,"content")||this;f._plt=n,f._dom=r,f._app=a,f._keyboard=s,f._zone=c,f._scrollPadding=0,f._inputPolling=!1,f._hasRefresher=!1,f._imgs=[],f._scrollDownOnLoad=!1,f.ionScrollStart=new p,f.ionScroll=new p,f.ionScrollEnd=new p;var _=function(){return f._scroll.enableEvents()};for(f.ionScroll.onSubscribe=_,f.ionScrollStart.onSubscribe=_,f.ionScrollEnd.onSubscribe=_,f.statusbarPadding=e.getBoolean("statusbarPadding",!1),f._imgReqBfr=e.getNumber("imgRequestBuffer",1400),f._imgRndBfr=e.getNumber("imgRenderBuffer",400),f._imgVelMax=e.getNumber("imgVelocityMax",3),f._scroll=new l.a(a,n,r);h;){if(Object(u.m)(h)){f._tabs=h;break}h=h.parent}return d?(f._viewCtrl=d,d._setIONContent(f),d._setIONContentRef(i),f._viewCtrlReadSub=d.readReady.subscribe(function(){f._viewCtrlReadSub.unsubscribe(),f._readDimensions()}),f._viewCtrlWriteSub=d.writeReady.subscribe(function(){f._viewCtrlWriteSub.unsubscribe(),f._writeDimensions()})):(r.read(f._readDimensions.bind(f)),r.write(f._writeDimensions.bind(f))),f}return d(e,t),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this._scroll.ev.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentWidth",{get:function(){return this._scroll.ev.contentWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this._scroll.ev.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollWidth",{get:function(){return this._scroll.ev.scrollWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this._scroll.ev.scrollTop},set:function(t){this._scroll.setTop(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollLeft",{get:function(){return this._scroll.ev.scrollLeft},set:function(t){this._scroll.setLeft(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isScrolling",{get:function(){return this._scroll.isScrolling},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directionY",{get:function(){return this._scroll.ev.directionY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directionX",{get:function(){return this._scroll.ev.directionX},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var t=this,e=this._scroll;e.ev.fixedElement=this.getFixedElement(),e.ev.scrollElement=this.getScrollElement(),e.onScrollStart=function(e){t.ionScrollStart.emit(e)},e.onScroll=function(e){t.ionScroll.emit(e),t.imgsUpdate()},e.onScrollEnd=function(e){t.ionScrollEnd.emit(e),t.imgsUpdate()}},e.prototype.enableJsScroll=function(){this._scroll.enableJsScroll(this._cTop,this._cBottom)},e.prototype.ngOnDestroy=function(){this._scLsn&&this._scLsn(),this._viewCtrlReadSub&&this._viewCtrlReadSub.unsubscribe(),this._viewCtrlWriteSub&&this._viewCtrlWriteSub.unsubscribe(),this._viewCtrlReadSub=this._viewCtrlWriteSub=null,this._scroll&&this._scroll.destroy(),this._footerEle=this._scLsn=this._scroll=null},e.prototype.getScrollElement=function(){return this._scrollContent.nativeElement},e.prototype.getFixedElement=function(){return this._fixedContent.nativeElement},e.prototype.onScrollElementTransitionEnd=function(t){this._plt.transitionEnd(this.getScrollElement(),t)},e.prototype.scrollTo=function(t,e,n,r){return void 0===n&&(n=300),this._scroll.scrollTo(t,e,n,r)},e.prototype.scrollToTop=function(t){return void 0===t&&(t=300),this._scroll.scrollToTop(t)},e.prototype.scrollToBottom=function(t){return void 0===t&&(t=300),this._scroll.scrollToBottom(t)},Object.defineProperty(e.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(t){this._fullscreen=Object(c.o)(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollDownOnLoad",{get:function(){return this._scrollDownOnLoad},set:function(t){this._scrollDownOnLoad=Object(c.o)(t)},enumerable:!0,configurable:!0}),e.prototype.addImg=function(t){this._imgs.push(t)},e.prototype.removeImg=function(t){Object(c.q)(this._imgs,t)},e.prototype.setScrollElementStyle=function(t,e){var n=this.getScrollElement();n&&this._dom.write(function(){n.style[t]=e})},e.prototype.getContentDimensions=function(){var t=this.getScrollElement(),e=t.parentElement;return{contentHeight:e.offsetHeight-this._cTop-this._cBottom,contentTop:this._cTop,contentBottom:this._cBottom,contentWidth:e.offsetWidth,contentLeft:e.offsetLeft,scrollHeight:t.scrollHeight,scrollTop:t.scrollTop,scrollWidth:t.scrollWidth,scrollLeft:t.scrollLeft}},e.prototype.addScrollPadding=function(t){if(0===t&&(this._inputPolling=!1,this._scrollPadding=-1),t>this._scrollPadding){this._scrollPadding=t;var e=this.getScrollElement();e&&this._dom.write(function(){e.style.paddingBottom=t>0?t+"px":""})}},e.prototype.clearScrollPaddingFocusOut=function(){var t=this;this._inputPolling||(this._inputPolling=!0,this._keyboard.onClose(function(){t.addScrollPadding(0)},200,3e3))},e.prototype.resize=function(){this._dom.read(this._readDimensions.bind(this)),this._dom.write(this._writeDimensions.bind(this))},e.prototype._readDimensions=function(){var t,e=this._pTop,n=this._pRight,r=this._pBottom,o=this._pLeft,a=this._hdrHeight,s=this._ftrHeight,u=this._tabsPlacement,c=0;if(this._pTop=0,this._pRight=0,this._pBottom=0,this._pLeft=0,this._hdrHeight=0,this._ftrHeight=0,this._tabsPlacement=null,this._tTop=0,this._fTop=0,this._fBottom=0,this._scroll){t=this._scroll.ev;var l=this.getNativeElement();if(l){for(var d,p,h=l.parentElement,f=h.children,_=f.length-1;_>=0;_--)"ION-CONTENT"===(p=(l=f[_]).tagName)?(t.contentElement=l,this._fullscreen&&(d=getComputedStyle(l),this._pTop=i(d.paddingTop),this._pBottom=i(d.paddingBottom),this._pRight=i(d.paddingRight),this._pLeft=i(d.paddingLeft))):"ION-HEADER"===p?(t.headerElement=l,this._hdrHeight=l.clientHeight):"ION-FOOTER"===p&&(t.footerElement=l,this._ftrHeight=l.clientHeight,this._footerEle=l);l=h;for(;l&&"ION-MODAL"!==l.tagName&&!l.classList.contains("tab-subpage");)"ION-TABS"===l.tagName&&(this._tabbarHeight=l.firstElementChild.clientHeight,null===this._tabsPlacement&&(this._tabsPlacement=l.getAttribute("tabsplacement"))),l=l.parentElement;this._tabs&&"top"===this._tabsPlacement&&(this._tTop=this._hdrHeight,c=this._tabs._top),this._cTop=this._hdrHeight,this._cBottom=this._ftrHeight,"top"===this._tabsPlacement?this._cTop+=this._tabbarHeight:"bottom"===this._tabsPlacement&&(this._cBottom+=this._tabbarHeight),this._hasRefresher&&(this._cTop-=1),this._fTop=this._cTop,this._fBottom=this._cBottom,this._fullscreen&&(this._cTop+=this._pTop,this._cBottom+=this._pBottom);var m=this.getContentDimensions();t.scrollHeight=m.scrollHeight,t.scrollWidth=m.scrollWidth,t.contentHeight=m.contentHeight,t.contentWidth=m.contentWidth,t.contentTop=m.contentTop,t.contentBottom=m.contentBottom,this._dirty=e!==this._pTop||r!==this._pBottom||o!==this._pLeft||n!==this._pRight||a!==this._hdrHeight||s!==this._ftrHeight||u!==this._tabsPlacement||c!==this._tTop||this._cTop!==this.contentTop||this._cBottom!==this.contentBottom,this._scroll.init(this.getScrollElement(),this._cTop,this._cBottom),this.imgsUpdate()}}},e.prototype._writeDimensions=function(){if(this._dirty){var t=this.getScrollElement();if(t){var e=this.getFixedElement();if(e){if("bottom"===this._tabsPlacement&&this._cBottom>0&&this._footerEle){this._footerEle.style.bottom=o(this._cBottom-this._ftrHeight)}var n="marginTop",r="marginBottom",i=this._fTop,a=this._fBottom;this._fullscreen&&(n="paddingTop",r="paddingBottom"),this._cTop!==this.contentTop&&(t.style[n]=o(this._cTop),e.style.marginTop=o(i),this.contentTop=this._cTop),this._cBottom!==this.contentBottom&&(t.style[r]=o(this._cBottom),e.style.marginBottom=o(a),this.contentBottom=this._cBottom),null!==this._tabsPlacement&&this._tabs&&("top"===this._tabsPlacement?this._tabs.setTabbarPosition(this._tTop,-1):this._tabs.setTabbarPosition(-1,0)),this._scrollDownOnLoad&&(this.scrollToBottom(0),this._scrollDownOnLoad=!1)}}}},e.prototype.imgsUpdate=function(){this._scroll.initialized&&this._imgs.length&&this.isImgsUpdatable()&&function(t,e,n,i,o,a){for(var s,u=e+n,c=[],l=[],d=0,p=t.length;de-a){s.canRequest=s.canRender=!0,c.push(s);continue}if(s.bottom<=e&&s.bottom>e-o){s.canRequest=!0,s.canRender=!1,l.push(s);continue}if(s.top>=u&&s.tope&&s.top=u&&s.tope-a){s.canRequest=s.canRender=!1;continue}}s.canRequest=s.canRender=!1,s.reset()}c.sort(r).forEach(function(t){return t.update()}),"up"===i?l.sort(r).reverse().forEach(function(t){return t.update()}):l.sort(r).forEach(function(t){return t.update()})}(this._imgs,this.scrollTop,this.contentHeight,this.directionY,this._imgReqBfr,this._imgRndBfr)},e.prototype.isImgsUpdatable=function(){return Math.abs(this._scroll.ev.velocityY)n?i._plt.timeout(function(){i._zone.run(function(){t()})},400):i._plt.timeout(r,e),o++}void 0===e&&(e=s),void 0===n&&(n=u);var i=this,o=0,a=null;return t||(a=new Promise(function(e){t=e})),i._plt.timeout(r,e),a},t.prototype.close=function(){var t=this;this._dom.read(function(){t.isOpen()&&t._dom.write(function(){t._plt.focusOutActiveElement()})})},t.prototype.focusOutline=function(t){function e(){s._dom.write(function(){u.doc().body.classList[l?"add":"remove"]("focus-outline")})}function n(){l=!1,r()}function r(){e(),i&&i(),a&&a(),l&&(i=u.registerListener(c,"mousedown",n,d),a=u.registerListener(c,"touchstart",n,d))}var i,a,s=this,u=s._plt,c=u.doc(),l=!1,d={passive:!0,zone:!1};if(!0===t)return l=!0,e();!1!==t&&u.registerListener(u.doc(),"keydown",function(t){l||t.keyCode!==o.g||(l=!0,r())},d)},t.prototype.hasFocusedTextInput=function(){var t=this._plt.getActiveElement();return!!Object(i.e)(t)&&t.parentElement.querySelector(":focus")===t},t.prototype.hideFormAccessoryBar=function(t){var e=this._plt.win();e&&e.Keyboard&&e.Keyboard.hideFormAccessoryBar&&e.Keyboard.hideFormAccessoryBar(t)},t}()),s=150,u=100},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"h",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return l});var r=37,i=38,o=39,a=40,s=13,u=27,c=32,l=9},function(t,e,n){"use strict";function r(t){return function(t){return t}}function i(t,e,n){return setTimeout(u(t,n),e)}function o(t,e,n){return!!Array.isArray(t)&&(a(t,n[e],n),!0)}function a(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r-1}function _(t){return t.trim().split(/\s+/g)}function m(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]?1:0}):r.sort()),r}function v(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=O(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=L(r);e.timeStamp=Fe(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=k(s,u),e.distance=j(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Ue&&o.eventType!==qe||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=S(e.deltaX,e.deltaY);var c=T(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=Ne(c.x)>Ne(c.y)?c.x:c.y,e.scale=a?function(t,e){return j(e[0],e[1],on)/j(t[0],t[1],on)}(a.pointers,r):1,e.rotation=a?function(t,e){return k(e[1],e[0],on)+k(t[1],t[0],on)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=Xe&&(s>Be||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=T(s,u,c);r=l.x,i=l.y,n=Ne(l.x)>Ne(l.y)?l.x:l.y,o=S(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var l=t.element;h(e.srcEvent.target,l)&&(l=e.srcEvent.target);e.target=l}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function O(t){for(var e=[],n=0;n=Ne(e)?t<0?Je:$e:e<0?Ke:Qe}function j(t,e,n){n||(n=rn);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function k(t,e,n){n||(n=rn);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function D(t,e){this.evEl=sn,this.evWin=un,this.allow=!0,this.pressed=!1,w.apply(this,arguments)}function E(){this.evEl=dn,this.evWin=pn,w.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function C(){this.evTarget=fn,this.evWin=_n,this.started=!1,w.apply(this,arguments)}function Y(t,e){this.evTarget=yn,this.targetIds={},w.apply(this,arguments)}function x(){w.apply(this,arguments);var t=u(this.handler,this);this.touch=new Y(this.manager,t),this.mouse=new D(this.manager,t)}function P(t,e){this.manager=t,this.set(e)}function A(t){this.options=Object.assign({},this.defaults,t||{}),this.id=He++,this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=Tn,this.simultaneous={},this.requireFail=[]}function I(t){return t&En?"cancel":t&kn?"end":t&jn?"move":t&Sn?"start":""}function R(t){return t==Qe?"down":t==Ke?"up":t==Je?"left":t==$e?"right":""}function N(t,e){var n=e.manager;return n?n.get(t):t}function F(){A.apply(this,arguments)}function H(){F.apply(this,arguments),this.pX=null,this.pY=null}function V(){F.apply(this,arguments)}function z(){A.apply(this,arguments),this._timer=null,this._input=null}function W(){F.apply(this,arguments)}function B(){F.apply(this,arguments)}function U(){A.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function G(t,e){return e=e||{},e.recognizers=l(e.recognizers,Cn.preset),new q(t,e)}function q(t,e){this.options=Object.assign({},Cn,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(ze?E:We?Y:Ve?x:D))(t,M)}(this),this.touchAction=new P(this,this.options.touchAction),X(this,!0),a(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function X(t,e){var n=t.element;n.style&&a(t.options.cssProps,function(t,r){n.style[v(n.style,r)]=e?t:""})}var Z=n(53),J=n(23),$=n(99),K=n(87),Q=n(64),tt=n(100),et=n(82),nt=n(65),rt=n(9),it=n(140),ot=n(24),at=n(146),st=n(21),ut=n(132),ct=n(137),lt=n(142),dt=(n(293),n(294),n(299),n(22)),pt=(n(300),n(59)),ht=n(138),ft=n(88),_t=n(80),mt=n(157),yt=n(81),gt=n(8),vt=n(41),bt=(n(302),n(101),n(303),n(133)),wt=n(17),Mt=n(58),Ot=(n(305),n(306),n(89)),Lt=n(43),Tt=n(143),St=n(68),jt=n(49),kt=n(48),Dt=n(83),Et=n(307),Ct=n(84),Yt=n(69),xt=n(70),Pt=n(102),At=n(130),It=n(18),Rt=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nt=function(){function t(t){this.ani=new It.a(t),this.ani.easing("cubic-bezier(0.0, 0.0, 0.2, 1)").easingReverse("cubic-bezier(0.4, 0.0, 0.6, 1)").duration(280)}return t.prototype.setOpen=function(t,e,n){var r=this.ani.onFinish(n,!0,!0).reverse(!t);e?r.play():r.syncPlay()},t.prototype.setProgressStart=function(t){this.isOpening=!t,this.ani.reverse(t).progressStart()},t.prototype.setProgessStep=function(t){this.ani.progressStep(t)},t.prototype.setProgressEnd=function(t,e,n,r){var i=this,o=this.isOpening&&t;this.isOpening||t||(o=!0);var a=this.ani;a.onFinish(function(){i.isOpening=!1,r(o)},!0);var s=1-Math.min(Math.abs(n)/4,.7),u=a.getDuration()*s;a.progressEnd(t,e,u)},t.prototype.destroy=function(){this.ani.destroy(),this.ani=null},t}();J.a.registerType("reveal",function(t){function e(e,n){var r=t.call(this,n)||this,i=e.width()*(e.isRightSide?-1:1)+"px",o=new It.a(n,e.getContentElement());return o.fromTo("translateX","0px",i),r.ani.add(o),r}return Rt(e,t),e}(Nt));J.a.registerType("push",function(t){function e(e,n){var r,i,o,a=t.call(this,n)||this,s=e.width();e.isRightSide?(r=-s+"px",i=s+"px",o="0px"):(r=s+"px",o="0px",i=-s+"px");var u=new It.a(n,e.getMenuElement());u.fromTo("translateX",i,o),a.ani.add(u);var c=new It.a(n,e.getContentElement());return c.fromTo("translateX","0px",r),a.ani.add(c),a}return Rt(e,t),e}(Nt));J.a.registerType("overlay",function(t){function e(e,n){var r,i,o=t.call(this,n)||this,a=e.width();e.isRightSide?(r=8+a+"px",i="0px"):(r=-(8+a)+"px",i="0px");var s=new It.a(n,e.getMenuElement());s.fromTo("translateX",r,i),o.ani.add(s);var u=new It.a(n,e.getBackdropElement());return u.fromTo("opacity",.01,.35),o.ani.add(u),o}return Rt(e,t),e}(Nt));var Ft=n(309),Ht=n(71),Vt=n(85),zt=n(50),Wt=(n(109),n(314),n(110),n(315),n(145)),Bt=n(91),Ut=n(301),Gt=n(67),qt=n(56),Xt=n(66),Zt=n(112),Jt=n(73),$t=n(111),Kt=n(61),Qt=n(51),te=(n(316),n(317),n(113),n(318),n(319),n(320),n(321),n(114),n(147)),ee=n(74),ne=(n(322),n(115)),re=(n(323),n(128)),ie=n(79),oe=n(72),ae=n(31),se=(n(324),n(325),n(117),n(116),n(326)),ue=n(75),ce=n(118),le=n(144),de=n(141),pe=n(78),he=n(38),fe=n(129),_e=n(57),me=n(37),ye=n(148),ge=n(158),ve=(n(119),n(120),n(121),n(327),n(2)),be=n(10),we=n(5),Me=n(28),Oe=n(16),Le=n(20),Te=n(62),Se=n(11),je=(n(33),n(107)),ke=n(55),De=n(6),Ee=n(63),Ce=n(4),Ye=window,xe=document,Pe=["","webkit","Moz","MS","ms","o"],Ae=xe.createElement("div"),Ie="function",Re=Math.round,Ne=Math.abs,Fe=Date.now,He=1,Ve="ontouchstart"in window,ze=void 0!==v(window,"PointerEvent"),We=Ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Be=25,Ue=1,Ge=2,qe=4,Xe=8,Ze=1,Je=2,$e=4,Ke=8,Qe=16,tn=Je|$e,en=Ke|Qe,nn=tn|en,rn=["x","y"],on=["clientX","clientY"];w.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(b(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(b(this.element),this.evWin,this.domHandler)}};var an={mousedown:Ue,mousemove:Ge,mouseup:qe},sn="mousedown",un="mousemove mouseup";s(D,w,{handler:function(t){var e=an[t.type];e&Ue&&0===t.button&&(this.pressed=!0),e&Ge&&1!==t.which&&(e=qe),this.pressed&&this.allow&&(e&qe&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var cn={pointerdown:Ue,pointermove:Ge,pointerup:qe,pointercancel:Xe,pointerout:Xe},ln={2:"touch",3:"pen",4:"mouse",5:"kinect"},dn="pointerdown",pn="pointermove pointerup pointercancel";Ye.MSPointerEvent&&!Ye.PointerEvent&&(dn="MSPointerDown",pn="MSPointerMove MSPointerUp MSPointerCancel"),s(E,w,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=cn[r],o=ln[t.pointerType]||t.pointerType,a="touch"==o,s=m(e,t.pointerId,"pointerId");i&Ue&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(qe|Xe)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var hn={touchstart:Ue,touchmove:Ge,touchend:qe,touchcancel:Xe},fn="touchstart",_n="touchstart touchmove touchend touchcancel";s(C,w,{handler:function(t){var e=hn[t.type];if(e===Ue&&(this.started=!0),this.started){var n=function(t,e){var n=y(t.touches),r=y(t.changedTouches);return e&(qe|Xe)&&(n=g(n.concat(r),"identifier",!0)),[n,r]}.call(this,t,e);e&(qe|Xe)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var mn={touchstart:Ue,touchmove:Ge,touchend:qe,touchcancel:Xe},yn="touchstart touchmove touchend touchcancel";s(Y,w,{handler:function(t){var e=mn[t.type],n=function(t,e){var n=y(t.touches),r=this.targetIds;if(e&(Ue|Ge)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=y(t.changedTouches),s=[],u=this.target;if(o=n.filter(function(t){return h(t.target,u)}),e===Ue)for(i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;r=kn&&e(n.options.event+I(r))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return F.prototype.attrTest.call(this,t)&&(this.state&Sn||!(this.state&Sn)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=R(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),s(V,F,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Mn]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Sn)},emit:function(t){if(1!==t.scale){t.additionalEvent=this.options.event+(t.scale<1?"in":"out")}this._super.emit.call(this,t)}}),s(z,A,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[bn]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||t.eventType&(qe|Xe)&&!o)this.reset();else if(t.eventType&Ue)this.reset(),this._timer=i(function(){this.state=Dn,this.tryEmit()},e.time,this);else if(t.eventType&qe)return Dn;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Dn&&(t&&t.eventType&qe?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Fe(),this.manager.emit(this.options.event,this._input)))}}),s(W,F,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Mn]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Sn)}}),s(B,F,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:tn|en,pointers:1},getTouchAction:function(){return H.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(tn|en)?e=t.overallVelocity:n&tn?e=t.overallVelocityX:n&en&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&Ne(e)>this.options.velocity&&t.eventType&qe},emit:function(t){var e=R(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),s(U,A,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[wn]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance/g,">")}function m(t){gt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||gt.removeAttribute(t,n)});for(var e=0,n=gt.childNodesAsList(t);e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[o]=[]);var u=ot(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:i});else{for(var c=!1,l=0;l-1},e}(z),pt=["alt","control","meta","shift"],ht={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},ft=function(t){function e(e){return t.call(this,e)||this}return Object(w.__extends)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),a=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,a)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(pt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),pt.forEach(function(r){if(r!=n){(0,ht[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(z),_t=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,yt=null,gt=null,vt=p("area,br,col,hr,img,wbr"),bt=p("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wt=p("rp,rt"),Mt=h(wt,bt),Ot=h(vt,h(bt,p("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),h(wt,p("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Mt),Lt=p("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Tt=p("srcset"),St=h(Lt,Tt,p("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),jt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(gt.isElementNode(e)?this.startElement(e):gt.isTextNode(e)?this.chars(gt.nodeValue(e)):this.sanitizedSomething=!0,gt.firstChild(e))e=gt.firstChild(e);else for(;e;){gt.isElementNode(e)&&this.endElement(e);var n=f(e,gt.nextSibling(e));if(n){e=n;break}e=f(e,gt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=gt.nodeName(t).toLowerCase();Ot.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),gt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();St.hasOwnProperty(r)?(Lt[r]&&(t=d(t)),Tt[r]&&(t=function(t){return(t=String(t)).split(",").map(function(t){return d(t.trim())}).join(", ")}(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(_(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=gt.nodeName(t).toLowerCase();Ot.hasOwnProperty(e)&&!vt.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(_(t))},t}(),kt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Dt=/([^\#-~ |!])/g,Et=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ct=/^url\(([^)]+)\)$/,Yt=function(){return function(){}}(),xt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(w.__extends)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case b.SecurityContext.NONE:return e;case b.SecurityContext.HTML:return e instanceof At?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),y(this._doc,String(e)));case b.SecurityContext.STYLE:return e instanceof It?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Ct);return e&&d(e[1])===e[1]||t.match(Et)&&function(t){for(var e=!0,n=!0,r=0;r0)},e.prototype.focusNext=function(){this._form&&this._form.tabFocus(this)},e.prototype.ngOnDestroy=function(){var t=this._form;t&&t.deregister(this),this._init=!1},e.prototype.ngAfterContentInit=function(){this._initialize()},e.prototype.initFocus=function(){var t=this._elementRef.nativeElement.querySelector("button");t&&t.focus()},e.prototype._inputNormalize=function(t){return t},e.prototype._inputShouldChange=function(t){return this._value!==t},e.prototype._inputChangeEvent=function(){return this},e.prototype._inputNgModelEvent=function(){return this._value},e.prototype._inputUpdated=function(){var t=this._item;if(t){!function(t,e){e&&(t.setElementClass("ng-untouched",e.untouched),t.setElementClass("ng-touched",e.touched),t.setElementClass("ng-pristine",e.pristine),t.setElementClass("ng-dirty",e.dirty),t.setElementClass("ng-valid",e.valid),t.setElementClass("ng-invalid",!e.valid))}(t,this._ngControl);var e=this.hasValue();t.setElementClass("input-has-value",e),t.setElementClass("item-input-has-value",e)}},e}(o.a)},function(t,e,n){"use strict";function r(t,e,n){var r,i,o;return"string"==typeof t?r=t:(r=t.constructor.getPluginRef(),n=t.constructor.getPluginName(),o=t.constructor.getPluginInstallName()),!(!(i=M(r))||e&&void 0===i[e])||(window.cordova?(O(n,o,e),j):(L(n,e),S))}function i(t,e){return t._objectInstance&&(!e||void 0!==t._objectInstance[e])}function o(t,e,n,r){if(void 0===e&&(e={}),e.sync)return t;if("reverse"===e.callbackOrder)t.unshift(r),t.unshift(n);else if("node"===e.callbackStyle)t.push(function(t,e){t?r(t):n(e)});else if("object"===e.callbackStyle&&e.successName&&e.errorName){var i={};i[e.successName]=n,i[e.errorName]=r,t.push(i)}else if(void 0!==e.successIndex||void 0!==e.errorIndex){var o=function(){e.successIndex>t.length?t[e.successIndex]=n:t.splice(e.successIndex,0,n)},a=function(){e.errorIndex>t.length?t[e.errorIndex]=r:t.splice(e.errorIndex,0,r)};e.successIndex>e.errorIndex?(a(),o()):(o(),a())}else t.push(n),t.push(r);return t}function a(t,e,n,i,a,s){void 0===i&&(i={}),n=o(n,i,a,s);var u=r(t,e);if(!0===u){var c=M(t.constructor.getPluginRef());return c[e].apply(c,n)}return u}function s(t,e,n,r,a,s){if(void 0===r&&(r={}),n=o(n,r,a,s),i(t,e))return t._objectInstance[e].apply(t._objectInstance,n)}function u(t,e){return void 0===e&&(e=window),T.Observable.fromEvent(e,t)}function c(t,e,n,i){return void 0===i&&(i={}),new T.Observable(function(n){var i=r(t,e);if(!0===i){var o=M(t.constructor.getPluginRef());return o[e]=n.next.bind(n),function(){return o[e]=function(){}}}n.error(i),n.complete()})}function l(t,e,n){return void 0===n&&(n={}),function(){for(var r=[],i=0;i30){var s=this.itemForCoord(n);if(s){var u=Object(o.b)(s);if(void 0!==u&&(u!==this.lastToIndex||this.emptyZone)){var c=Object(o.b)(e);this.lastToIndex=u,this.lastYcoord=r,this.emptyZone=!1,this.reorderList._reorderMove(c,u,this.selectedItemHeight)}}else this.emptyZone=!0}var l=Math.round(r-this.offset.y+i);e.style[this.plt.Css.transform]="translateY("+l+"px)"}},t.prototype.onDragEnd=function(t){var e=this,n=this.selectedItemEle;if(n){t&&(t.preventDefault(),t.stopPropagation());var r=this.lastToIndex,i=Object(o.b)(n),a=function(){e.selectedItemEle.style.transition="",e.selectedItemEle.classList.remove(d),e.selectedItemEle=null};r===i?(n.style.transition="transform 200ms ease-in-out",setTimeout(a,200)):a(),this.reorderList._reorderEmit(i,r)}},t.prototype.itemForCoord=function(t){var e=this.plt.getElementFromPoint(this.offset.x+(this.reorderList._isStart===this.plt.isRTL?-100:100),t.y);return Object(o.a)(e,this.reorderList.getNativeElement())},t.prototype.scroll=function(t){return tthis.windowHeight&&(this.lastScrollPosition=this.reorderList._scrollContent(l)),this.lastScrollPosition},t.prototype.destroy=function(){this.onDragEnd(null),this.events.destroy(),this.events=null,this.reorderList=null},t}(),c=60,l=10,d="reorder-active";n(5);n.d(e,"a",function(){return h});var p=function(){function t(t,e){this.from=t,this.to=e}return t.prototype.applyTo=function(t){Object(i.r)(t,this)},t}(),h=function(){function t(t,e,n,i,o,a){this._plt=t,this._dom=e,this._rendered=i,this._zone=o,this._content=a,this._enableReorder=!1,this._visibleReorder=!1,this._isStart=!1,this._lastToIndex=-1,this.ionItemReorder=new r.EventEmitter,this._element=n.nativeElement}return Object.defineProperty(t.prototype,"side",{set:function(t){this._isStart="start"===t},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._element=null,this._reorderGesture&&this._reorderGesture.destroy()},Object.defineProperty(t.prototype,"reorder",{get:function(){return this._enableReorder},set:function(t){var e=this,n=Object(i.o)(t);!n&&this._reorderGesture?(this._reorderGesture.destroy(),this._reorderGesture=null,this._visibleReorder=!1,setTimeout(function(){return e._enableReorder=!1},400)):n&&!this._reorderGesture&&(this._reorderGesture=new u(this._plt,this),this._enableReorder=!0,this._dom.write(function(){e._zone.run(function(){e._visibleReorder=!0})},16))},enumerable:!0,configurable:!0}),t.prototype._reorderPrepare=function(){for(var t=this._element,e=t.children,n=0,r=e.length;n=r)for(a=r;a<=e;a++)a!==t&&(i[a].style[o]=a>t?"translateY("+-n+"px)":"");if(e<=r)for(var a=e;a<=r;a++)a!==t&&(i[a].style[o]=abutton")})(t)||this.closeOpened()},e.prototype.closeOpened=function(){return this.selectedContainer=null,!!this.openContainer&&(this.openContainer.close(),this.openContainer=null,!0)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.closeOpened(),this.list=null,this.preSelectedContainer=null,this.selectedContainer=null,this.openContainer=null},e}(a.a);n(5);n.d(e,"a",function(){return d});var l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,n,r,"list")||this;return s._plt=i,s._gestureCtrl=o,s._domCtrl=a,s._enableSliding=!0,s._containsSlidingItems=!1,s}return l(e,t),Object.defineProperty(e.prototype,"sliding",{get:function(){return this._enableSliding},set:function(t){this._enableSliding=Object(o.o)(t),this._updateSlidingState()},enumerable:!0,configurable:!0}),e.prototype.containsSlidingItem=function(t){this._containsSlidingItems=t,this._updateSlidingState()},e.prototype._updateSlidingState=function(){this._enableSliding&&this._containsSlidingItems?this._slidingGesture||(this._slidingGesture=new c(this._plt,this,this._gestureCtrl,this._domCtrl),this._slidingGesture.listen()):(this._slidingGesture&&this._slidingGesture.destroy(),this._slidingGesture=null)},e.prototype.closeSlidingItems=function(){this._slidingGesture&&this._slidingGesture.closeOpened()},e.prototype.destroy=function(){this._slidingGesture&&this._slidingGesture.destroy()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});n(2);var r=n(8),i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e,n,r,i,o,a,s){var u=t.call(this,e,n,r,"label")||this;return u.type=""===i?"floating":""===o?"stacked":""===a?"fixed":""===s?"inset":null,u}return i(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t,t&&this.setElementAttribute("id",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.getNativeElement().textContent||""},enumerable:!0,configurable:!0}),e}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});n(2),n(16),n(10),n(7),n(20);var r=n(62),i=(n(5),n(30),n(6),n(31),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),o=function(t){function e(e,n,r,i,o,a,s,u,c,l,d,p,h,f){var _=t.call(this,n,r,i,o,a,s,u,c,l,d,p,h,f)||this;return _._hasInit=!1,e&&e._setContent(_),n?n.registerChildNav(_):e&&e.getNav()?(_.parent=e.getNav(),_.parent.registerChildNav(_)):r&&!r.getRootNavById(_.id)&&r.registerRootNav(_),_}return i(e,t),Object.defineProperty(e.prototype,"_vp",{set:function(t){this.setViewport(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var t=this;this._hasInit=!0;var e=this._linker.getSegmentByNavIdOrName(this.id,this.name);if(e&&(e.component||e.loadChildren))return this._linker.initViews(e).then(function(e){return t.setPages(e,null,null)});if(this._root){var n=!e;return this.push(this._root,this.rootParams,{isNavRoot:this._app.getRootNavById(this.id)===this,updateUrl:n},null)}},Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(t){this._root=t,this._hasInit&&this.setRoot(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroy()},e.prototype.initPane=function(){return this._elementRef.nativeElement.hasAttribute("main")},e.prototype.paneChanged=function(t){t&&this.resize()},e.prototype.goToRoot=function(t){return this.setRoot(this._root,this.rootParams,t,null)},e.prototype.getType=function(){return"nav"},e.prototype.getSecondaryIdentifier=function(){return null},e}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=(n(83),n(4)),o=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._cd=n,this._disabled=!1,this._btns=[],this._ids=-1,this._init=!1,this.ionChange=new r.EventEmitter,this.id=++a}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Object(i.o)(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this._btns.find(function(t){return t.checked});t&&this._setActive(t)},t.prototype.writeValue=function(t){this.value=t,this._init&&(this._update(),this.onTouched(),this.ionChange.emit(t)),this._init=!0},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(n){t(n),e.value=n,e._update(),e.onTouched(),e.ionChange.emit(n)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype._update=function(){var t=this,e=!1;this._btns.forEach(function(n){n.checked=Object(i.g)(t.value,n.value)&&!e,n.checked&&(t._setActive(n),e=!0)})},t.prototype._setActive=function(t){this._renderer.setElementAttribute(this._elementRef.nativeElement,"aria-activedescendant",t.id)},t.prototype.add=function(t){var e=this;return this._btns.push(t),t.ionSelect.subscribe(function(t){e.onChange(t)}),this.id+"-"+ ++this._ids},t.prototype.remove=function(t){var e=this._btns.indexOf(t);e>-1&&(t.value===this.value&&(this.value=null),this._btns.splice(e,1))},Object.defineProperty(t.prototype,"_header",{set:function(t){t&&(t.id||(t.id="rg-hdr-"+this.id),this._renderer.setElementAttribute(this._elementRef.nativeElement,"aria-describedby",t.id))},enumerable:!0,configurable:!0}),t.prototype.onChange=function(t){this.value=t,this._update(),this.onTouched(),this.ionChange.emit(t),this._cd.detectChanges()},t.prototype.onTouched=function(){},t.prototype.setDisabledState=function(t){this.disabled=t},t}(),a=-1},function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=n(160),o=n(161),a=n(92),s=n(162),u=n(93),c=n(361);e.Subscription=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,l=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=l?l.length:0;n;)n.remove(this),n=++h0,r=t.length()>0;if(!n&&!r)return null;if(n&&r){return t.getActive().getZIndex()>e.getActive().getZIndex()?t:e}return n?e:r?t:void 0},e.prototype._disableScroll=function(t){var e=this;if(t)this.stopScroll().then(function(){e._tmr=e._plt.timeout(function(){e.setElementClass("disable-scroll",!0)},32)});else{var n=this._stopScrollPlugin;n&&n.cancel&&n.cancel(),clearTimeout(this._tmr),this.setElementClass("disable-scroll",!1)}},e.prototype.stopScroll=function(){var t=this;return this._stopScrollPlugin?new Promise(function(e){t._stopScrollPlugin.stop(function(){return e(!0)})}):Promise.resolve(!1)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"d",function(){return a});var r=1,i=2,o=3,a=4},function(t,e,n){"use strict";function r(t,e){return t.segmentPartsLen>e.segmentPartsLen?-1:t.segmentPartsLene.staticLen?-1:t.staticLene.dataLen?1:0}function i(t,e,n){return function(t,e){for(var n=[],r=0;r1))break;n.push(o(u,i[i.length-1])),i=i[i.length-1].getActiveChildNavs()}}return n}(t,function(t,e){return function(t,e){for(var n=[],r=new Set,i=0,o=t;i=0;d--){for(var p=!1,h=0;h=n[o]&&(i.push(a.join("/")),a=[],o++),a.push(e[r]);return i.push(a.join("/")),i}(t)),e)}(e,n))}function o(t,e){var n=Object.assign({},t);return n.type=e.getType(),n.navId=e.name||e.id,n.secondaryId=t.secondaryId,n}n.d(e,"b",function(){return u}),e.c=function(t){for(t=(t=t.replace(h,"-")).charAt(0).toLowerCase()+t.substring(1).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});t.indexOf("--")>-1;)t=t.replace("--","-");return"-"===t.charAt(0)&&(t=t.substring(1)),"-"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),encodeURIComponent(t)},n.d(e,"a",function(){return f}),e.d=function(t,e){return new u(t,e)};var a=n(0),s=n(4),u=function(){function t(t,e){this._app=t,this.links=e&&Object(s.e)(e.links)?p(e.links):[]}return t.prototype.parse=function(t){return"/"===t.charAt(0)&&(t=t.substr(1)),t=t.split("?")[0].split("#")[0],i(this._app,t,this.links)},t.prototype.createSegmentFromName=function(t,e){var n=this.getLinkFromName(e);return n?this._createSegment(this._app,t,n,null):null},t.prototype.getLinkFromName=function(t){return this.links.find(function(e){return e.component===t||e.name===t})},t.prototype.serialize=function(t){if(!t||!t.length)return"/";return t.map(function(t){return"tabs"===t.type?t.requiresExplicitNavPrefix?"/"+t.type+"/"+t.navId+"/"+t.secondaryId+"/"+t.id:"/"+t.secondaryId+"/"+t.id:t.requiresExplicitNavPrefix?"/"+t.type+"/"+t.navId+"/"+t.id:"/"+t.id}).join("")},t.prototype.serializeComponent=function(t,e,n){if(e){var r=d(this.links,e,n);if(r)return this._createSegment(this._app,t,r,n)}return null},t.prototype._createSegment=function(t,e,n,r){var i=n.segmentParts;if(Object(s.l)(r)){i=i.slice();var o=Object.keys(r),a=o.length;if(a)for(var u=0;u1:t.getRootNavById(e.id)&&t.getRootNavs().length>1,{id:i.join("/"),name:n.name,component:n.component,loadChildren:n.loadChildren,data:r,defaultHistory:n.defaultHistory,navId:e.name||e.id,type:e.getType(),secondaryId:e.getSecondaryIdentifier(),requiresExplicitNavPrefix:l}},t}(),c=function(t,e){return!(!Object(s.l)(t)||!Object(s.l)(e))&&(":"===e.charAt(0)||t===e)},l=function(t,e){for(var n=null,r=0;r=i&&(r=a,i=u)}}return r},p=function(t){for(var e=0,n=t.length;e|<|;|:|@|&|=/g,f=new a.InjectionToken("USERLINKS")},function(t,e,n){"use strict";var r=n(0),i=n(4),o=(n(2),n(10),n(28),n(5),n(14)),a=n(34);n.d(e,"a",function(){return s});var s=function(){function t(t,e,n,i,o,s,u){this._plt=e,this.elementRef=n,this._zone=i,this._haptic=o,this.y=0,this.pos=[],this.startY=null,this.ionChange=new r.EventEmitter,this.events=new a.a(s),this.rotateFactor=t.getNumber("pickerRotateFactor",0),this.scaleFactor=t.getNumber("pickerScaleFactor",1),this.decelerateFunc=this.decelerate.bind(this),this.debouncer=u.debouncer()}return t.prototype.ngAfterViewInit=function(){var t=this.colEle.nativeElement;this.colHeight=t.clientHeight,this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0,this.events.pointerEvents({element:this.elementRef.nativeElement,pointerDown:this.pointerStart.bind(this),pointerMove:this.pointerMove.bind(this),pointerUp:this.pointerEnd.bind(this),capture:!0,zone:!1})},t.prototype.ngOnDestroy=function(){this._plt.cancelRaf(this.rafId),this.events.destroy()},t.prototype.pointerStart=function(t){this._haptic.gestureSelectionStart(),t.preventDefault(),this._plt.cancelRaf(this.rafId),this.startY=Object(o.f)(t).y,this.velocity=0,this.pos.length=0,this.pos.push(this.startY,Date.now());for(var e=this.col.options,n=e.length-1,r=0,i=0;ie.minY?(t=Math.pow(t,.8),e.bounceFrom=t):t0)this.update(this.minY,100,!0,!0);else if(this.bounceFrom<0)this.update(this.maxY,100,!0,!0);else{var e=Object(o.f)(t).y;this.pos.push(e,Date.now());for(var n=this.pos.length-1,r=n,a=Date.now()-100,s=n;s>0&&this.pos[s]>a;s-=2)r=s;if(r!==n){var u=(this.pos[r-1]-this.pos[n-1])/(this.pos[n]-this.pos[r])*(1e3/60);this.velocity=Object(i.a)(-60,u,60)}if(Math.abs(e-this.startY)>3){this.update(this.y+(e-this.startY),0,!0,!0)}this.startY=null,this.decelerate()}},t.prototype.decelerate=function(){var t=0;if(isNaN(this.y)||!this.optHeight)this.update(t,0,!0,!0),this._haptic.gestureSelectionEnd();else if(Math.abs(this.velocity)>0){this.velocity*=.97,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1),(t=Math.round(this.y-this.velocity))>this.minY?(t=this.minY,this.velocity=0):t1;this.update(t,0,!0,!e),e&&(this.rafId=this._plt.raf(this.decelerateFunc))}else if(this.y%this.optHeight!=0){var n=Math.abs(this.y%this.optHeight);this.velocity=n>this.optHeight/2?1:-1,this._haptic.gestureSelectionEnd(),this.decelerate()}var r=Math.max(Math.abs(Math.round(t/this.optHeight)),0);r!==this.lastTempIndex&&this._haptic.gestureSelectionChanged(),this.lastTempIndex=r},t.prototype.optClick=function(t,e){this.velocity||(t.preventDefault(),t.stopPropagation(),this.setSelected(e,150))},t.prototype.setSelected=function(t,e){var n=t>-1?t*this.optHeight*-1:0;this._plt.cancelRaf(this.rafId),this.velocity=0,this.update(n,e,!0,!0)},t.prototype.update=function(t,e,n,r){t=Math.round(t);var i,o,a,s,u,c,l,d,p,h,f=this.colEle.nativeElement.children,_=f.length,m=this.col.selectedIndex=Math.min(Math.max(Math.round(-t/this.optHeight),0),_-1),y=0===e?null:e+"ms",g="scale("+this.scaleFactor+")";for(i=0;i<_;i++)o=f[i],a=this.col.options[i],s=i*this.optHeight+t,u=!0,p="",0!==this.rotateFactor?(d=s*this.rotateFactor,Math.abs(d)>90?u=!1:(0,c=0,l=90,p="rotateX("+d+"deg) ")):(0,l=0,c=s,Math.abs(c)>170&&(u=!1)),h=m===i,u?(p+="translate3d(0px,"+c+"px,"+l+"px) ",1===this.scaleFactor||h||(p+=g)):p="translate3d(-9999px,0px,0px)",e!==a._dur&&(a._dur=e,o.style[this._plt.Css.transitionDuration]=y),p!==a._trans&&(a._trans=p,o.style[this._plt.Css.transform]=p),h!==a._selected&&(a._selected=h,h?o.classList.add("picker-opt-selected"):o.classList.remove("picker-opt-selected"));if(this.col.prevSelected=m,n&&(this.y=t),r)if(void 0===this.lastIndex)this.lastIndex=this.col.selectedIndex;else if(this.lastIndex!==this.col.selectedIndex){this.lastIndex=this.col.selectedIndex;var v=this.ionChange;v.observers.length>0&&this._zone.run(v.emit.bind(v,this.col.options[this.col.selectedIndex]))}},t.prototype.refresh=function(){for(var t=this.col.options.length-1,e=0,n=this.col.options,r=0;r.4,s=Math.abs(t.delta)<.5*Math.abs(t.max),u=!Object(o.t)(i,a,s);this._nav.swipeBackEnd(u,r,n)},e}(d.a);n.d(e,"a",function(){return _});var f=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(t){function e(e,n,i,o,a,s,u,c,l,d,p,h,f){var _=t.call(this,i,a,u)||this;return _.parent=e,_._app=n,_.config=i,_.plt=o,_._zone=s,_._cfr=c,_._gestureCtrl=l,_._trnsCtrl=d,_._linker=p,_._domCtrl=h,_._errHandler=f,_._ids=-1,_._init=!1,_._queue=[],_._trnsId=null,_._trnsTm=!1,_._views=[],_._zIndexOffset=0,_.viewDidLoad=new r.EventEmitter,_.viewWillEnter=new r.EventEmitter,_.viewDidEnter=new r.EventEmitter,_.viewWillLeave=new r.EventEmitter,_.viewDidLeave=new r.EventEmitter,_.viewWillUnload=new r.EventEmitter,_._sbEnabled=i.getBoolean("swipeBackEnabled"),_._children=[],_.id="n"+ ++m,_._destroyed=!1,_}return f(e,t),Object.defineProperty(e.prototype,"swipeBackEnabled",{get:function(){return this._sbEnabled},set:function(t){this._sbEnabled=Object(o.o)(t),this._swipeBackCheck()},enumerable:!0,configurable:!0}),e.prototype.push=function(t,e,n,r){return this._queueTrns({insertStart:-1,insertViews:[{page:t,params:e}],opts:n},r)},e.prototype.insert=function(t,e,n,r,i){return this._queueTrns({insertStart:t,insertViews:[{page:e,params:n}],opts:r},i)},e.prototype.insertPages=function(t,e,n,r){return this._queueTrns({insertStart:t,insertViews:e,opts:n},r)},e.prototype.pop=function(t,e){return this._queueTrns({removeStart:-1,removeCount:1,opts:t},e)},e.prototype.popTo=function(t,e,n){var r={removeStart:-1,removeCount:-1,opts:e};return Object(a.b)(t)?(r.removeView=t,r.removeStart=1):Object(o.j)(t)&&(r.removeStart=t+1),this._queueTrns(r,n)},e.prototype.popToRoot=function(t,e){return this._queueTrns({removeStart:1,removeCount:-1,opts:t},e)},e.prototype.popAll=function(){for(var t=[],e=this._views.length-1;e>=0;e--)t.push(this.pop(null));return Promise.all(t)},e.prototype.remove=function(t,e,n,r){return void 0===e&&(e=1),this._queueTrns({removeStart:t,removeCount:e,opts:n},r)},e.prototype.removeView=function(t,e,n){return this._queueTrns({removeView:t,removeStart:0,removeCount:1,opts:e},n)},e.prototype.setRoot=function(t,e,n,r){return this.setPages([{page:t,params:e}],n,r)},e.prototype.setPages=function(t,e,n){return Object(o.f)(e)&&(e={}),!0!==e.animate&&(e.animate=!1),this._queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:e},n)},e.prototype._queueTrns=function(t,e){var n=new Promise(function(e,n){t.resolve=e,t.reject=n});return t.done=e,t.insertViews&&0===t.insertViews.length&&(t.insertViews=void 0),this._queue.push(t),this._nextTrns(),n},e.prototype._success=function(t,e){null!==this._queue?(this._init=!0,this._trnsId=null,this.setTransitioning(!1),this._swipeBackCheck(),this._nextTrns(),e.done&&e.done(t.hasCompleted,t.requiresTransition,t.enteringName,t.leavingName,t.direction),e.resolve(t.hasCompleted)):this._fireError("nav controller was destroyed",e)},e.prototype._failed=function(t,e){null!==this._queue?(this._trnsId=null,this._queue.length=0,this.setTransitioning(!1),this._swipeBackCheck(),this._nextTrns(),this._fireError(t,e)):this._fireError("nav controller was destroyed",e)},e.prototype._fireError=function(t,e){e.done&&e.done(!1,!1,t),e.reject&&!this._destroyed?e.reject(t):e.resolve(!1)},e.prototype._nextTrns=function(){var t=this;if(this.isTransitioning())return!1;var e=this._queue.shift();if(!e)return!1;var n,r;return this._startTI(e).then(function(){return t._loadLazyLoading(e)}).then(function(){if(r=t.getActive(),n=t._getEnteringView(e,r),!r&&!n)throw"no views in the stack to be removed";n&&n._state===i.h&&t._viewInit(n),e.requiresTransition=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&n!==r}).then(function(){return t._viewTest(n,r,e)}).then(function(){return t._postViewInit(n,r,e)}).then(function(){return t._transition(n,r,e)}).then(function(n){return t._success(n,e)}).catch(function(n){return t._failed(n,e)}),!0},e.prototype._startTI=function(t){var e=this._views.length;if(Object(o.l)(t.removeView)){var n=this.indexOf(t.removeView);if(n<0)return Promise.reject("removeView was not found");t.removeStart+=n}return Object(o.l)(t.removeStart)&&(t.removeStart<0&&(t.removeStart=e-1),t.removeCount<0&&(t.removeCount=e-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===e),t.insertViews&&((t.insertStart<0||t.insertStart>e)&&(t.insertStart=e),t.enteringRequiresTransition=t.insertStart===e),this.setTransitioning(!0),Promise.resolve()},e.prototype._loadLazyLoading=function(t){var e=this,n=t.insertViews;return n?Object(i.i)(this._linker,n).then(function(n){if(0===(n=n.filter(function(t){return null!==t})).length)throw"invalid views to insert";for(var r=0;r=0;i--)if(a=s[i],(i=u)&&a!==e)return a}return null},e.prototype._postViewInit=function(t,e,n){var r,a,s,u=this,c=n.opts||{},l=n.insertViews,d=n.removeStart,p=n.removeCount;if(Object(o.l)(d)){for(s=[],a=0;a0)for(this._zone.run(function(){for(a=0;ay&&!1!==r.disableApp&&this._app.setEnabled(!1,u+v,r.minClickBlockDuration),r.progressAnimation?t.progressStart():t.play()),c.then(function(){return o._zone.run(function(){return o._transitionFinish(t,r)})})},e.prototype._transitionFinish=function(t,e){var n,r,i=t.hasCompleted,o=t.enteringView,a=t.leavingView;return i?(o&&(n=o.name,this._didEnter(o)),a&&(r=a.name,this._didLeave(a)),this._cleanup(o)):this._cleanup(a),t.isRoot()&&(this._trnsCtrl.destroy(t.trnsId),this._app.setEnabled(!0),this.setTransitioning(!1),this.hasChildren()||!1===e.updateUrl||this._linker.navChange(e.direction),!1!==e.keyboardClose&&this.plt.focusOutActiveElement()),{hasCompleted:i,requiresTransition:!0,enteringName:n,leavingName:r,direction:e.direction}},e.prototype._viewsWillLifecycles=function(t,e){var n=this;(t||e)&&this._zone.run(function(){if(e){n._willLeave(e,!t||e.index>t.index)}t&&n._willEnter(t)})},e.prototype._insertViewAt=function(t,e){var n=this._views.indexOf(t);n>-1?this._views.splice(e,0,this._views.splice(n,1)[0]):(t._setNav(this),this._ids++,t.id||(t.id=this.id+"-"+this._ids),this._views.splice(e,0,t))},e.prototype._removeView=function(t){var e=this._views,n=e.indexOf(t);n>=0&&e.splice(n,1)},e.prototype._destroyView=function(t){t._destroy(this._renderer),this._removeView(t)},e.prototype._cleanup=function(t){if(!this._destroyed){var e=this._views.indexOf(t),n=this._views,r=!1,o=void 0,a=void 0;for(a=n.length-1;a>=0;a--)o=n[a],a>e?(this._willUnload(o),this._destroyView(o)):a0},e.prototype.getActiveChildNavs=function(){return this._children},e.prototype.getAllChildNavs=function(){return this._children},e.prototype.registerChildNav=function(t){this._children.push(t)},e.prototype.unregisterChildNav=function(t){this._children=this._children.filter(function(e){return e!==t})},e.prototype.destroy=function(){for(var t,e=this._views,n=0;n0)){this._queueTrns({removeStart:-1,removeCount:1,opts:{direction:i.a,progressAnimation:!0}},null)}},e.prototype.swipeBackProgress=function(t){this._sbTrns&&this._sbGesture&&(this._app.setEnabled(!1,g),this.setTransitioning(!0),this._sbTrns.progressStep(t))},e.prototype.swipeBackEnd=function(t,e,n){if(this._sbTrns&&this._sbGesture){var r=this._sbTrns.getDuration()/(Math.abs(n)+1);this._sbTrns.progressEnd(t,e,r)}},e.prototype._swipeBackCheck=function(){this.canSwipeBack()?(this._sbGesture||(this._sbGesture=new h(this.plt,this,this._gestureCtrl,this._domCtrl)),this._sbGesture.listen()):this._sbGesture&&this._sbGesture.unlisten()},e.prototype.canSwipeBack=function(){return this._sbEnabled&&!this._isPortal&&!this._children.length&&!this.isTransitioning()&&this._app.isEnabled()&&this.canGoBack()},e.prototype.canGoBack=function(){var t=this.getActive();return!(!t||!t.enableBack())},e.prototype.isTransitioning=function(){return this._trnsTm},e.prototype.setTransitioning=function(t){this._trnsTm=t},e.prototype.getActive=function(){return this._views[this._views.length-1]},e.prototype.isActive=function(t){return t===this.getActive()},e.prototype.getByIndex=function(t){return this._views[t]},e.prototype.getPrevious=function(t){t||(t=this.getActive());var e=this._views,n=e.indexOf(t);return n>0?e[n-1]:null},e.prototype.first=function(){return this._views[0]},e.prototype.last=function(){var t=this._views;return t[t.length-1]},e.prototype.indexOf=function(t){return this._views.indexOf(t)},e.prototype.length=function(){return this._views.length},e.prototype.getViews=function(){return this._views},e.prototype.getViewById=function(t){for(var e=0,n=this._views;e=this.threshold){var r=Math.atan2(n,e),i="y"===this.direction?Math.sin(r):Math.cos(r);return this._angle=r,this._isPan=i>this.maxCosine?1:i<-this.maxCosine?-1:0,this.dirty=!1,!0}return!1},t.prototype.angle=function(){return this._angle},t.prototype.pan=function(){return this._isPan},t}(),o=n(14),a=n(34);n.d(e,"a",function(){return s});var s=function(){function t(t,e,n){void 0===n&&(n={}),this.plt=t,this.element=e,Object(r.d)(n,{threshold:20,maxAngle:40,direction:"x",zone:!0,capture:!1,passive:!1}),this.events=new a.a(t),n.domController&&(this.debouncer=n.domController.debouncer()),this.gestute=n.gesture,this.direction=n.direction,this.eventsConfig={element:this.element,pointerDown:this.pointerDown.bind(this),pointerMove:this.pointerMove.bind(this),pointerUp:this.pointerUp.bind(this),zone:n.zone,capture:n.capture,passive:n.passive},n.threshold>0&&(this.detector=new i(n.direction,n.threshold,n.maxAngle))}return t.prototype.listen=function(){this.isListening||(this.pointerEvents=this.events.pointerEvents(this.eventsConfig),this.isListening=!0)},t.prototype.unlisten=function(){this.isListening&&(this.gestute&&this.gestute.release(),this.events.unlistenAll(),this.isListening=!1)},t.prototype.destroy=function(){this.gestute&&this.gestute.destroy(),this.gestute=null,this.unlisten(),this.events.destroy(),this.events=this.element=this.gestute=null},t.prototype.pointerDown=function(t){if(!this.started){if(!this.canStart(t))return!1;if(this.gestute&&(this.gestute.release(),!this.gestute.start()))return!1;this.started=!0,this.captured=!1;var e=Object(o.f)(t);if(this.detector)this.detector.start(e);else if(!this.tryToCapture(t))return this.started=!1,this.captured=!1,this.gestute.release(),!1;return!0}},t.prototype.pointerMove=function(t){var e=this;if(this.captured)this.debouncer.write(function(){e.onDragMove(t)});else{var n=Object(o.f)(t);this.detector.detect(n)&&0!==this.detector.pan()&&(this.tryToCapture(t)||this.abort(t))}},t.prototype.pointerUp=function(t){this.debouncer.cancel(),this.gestute&&this.gestute.release(),this.captured?this.onDragEnd(t):this.notCaptured(t),this.captured=!1,this.started=!1},t.prototype.tryToCapture=function(t){return!(this.gestute&&!this.gestute.capture())&&(this.onDragStart(t),this.captured=!0,!0)},t.prototype.abort=function(t){this.started=!1,this.captured=!1,this.gestute.release(),this.pointerEvents.stop(),this.notCaptured(t)},t.prototype.getNativeElement=function(){return this.element},t.prototype.canStart=function(t){return!0},t.prototype.onDragStart=function(t){},t.prototype.onDragMove=function(t){},t.prototype.onDragEnd=function(t){},t.prototype.notCaptured=function(t){},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(7),i=(n(2),n(26)),o=(n(11),n(6),function(){function t(t,e,n,i,o,s){this._viewCtrl=t,this._elementRef=n,this.gestureBlocker=i.createBlocker(r.a),this.d=o.data,this.mode=e.get("mode"),s.setElementClass(n.nativeElement,"action-sheet-"+this.mode,!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&s.setElementClass(n.nativeElement,t,!0)}),this.id=++a,this.d.title&&(this.hdrId="acst-hdr-"+this.id),this.d.subTitle&&(this.descId="acst-subhdr-"+this.id)}return t.prototype.ionViewDidLoad=function(){var t=this;this.d.buttons=this.d.buttons.map(function(e){switch("string"==typeof e&&(e={text:e}),e.cssClass||(e.cssClass=""),e.role){case"cancel":return t.cancelButton=e,null;case"destructive":e.cssClass=(e.cssClass+" "||"")+"action-sheet-destructive";break;case"selected":e.cssClass=(e.cssClass+" "||"")+"action-sheet-selected"}return e}).filter(function(t){return null!==t})},t.prototype.ionViewWillEnter=function(){this.gestureBlocker.block()},t.prototype.ionViewDidLeave=function(){this.gestureBlocker.unblock()},t.prototype.ionViewDidEnter=function(){var t=this._elementRef.nativeElement.querySelector("button");t&&t.focus(),this.enabled=!0},t.prototype.keyUp=function(t){this.enabled&&t.keyCode===i.c&&this._viewCtrl.isLast()&&this.bdClick()},t.prototype.click=function(t){if(this.enabled){var e=!0;t.handler&&!1===t.handler()&&(e=!1),e&&this.dismiss(t.role)}},t.prototype.bdClick=function(){this.enabled&&this.d.enableBackdropDismiss&&(this.cancelButton?this.click(this.cancelButton):this.dismiss("backdrop"))},t.prototype.dismiss=function(t){return this._viewCtrl.dismiss(null,t,{minClickBlockDuration:400})},t.prototype.ngOnDestroy=function(){this.d=this.cancelButton=null,this.gestureBlocker.destroy()},t}()),a=-1},function(t,e,n){"use strict";n.d(e,"a",function(){return s});n(2);var r=n(14),i=n(7),o=n(4),a=n(26),s=(n(11),n(5),n(6),function(){function t(t,e,n,r,o,a,s){this._viewCtrl=t,this._elementRef=e,this._renderer=a,this._plt=s,this.gestureBlocker=r.createBlocker(i.a),this.d=o.data,this.mode=this.d.mode||n.get("mode"),this.keyboardResizes=n.getBoolean("keyboardResizes",!1),a.setElementClass(e.nativeElement,"alert-"+this.mode,!0),this.d.cssClass&&this.d.cssClass.split(" ").forEach(function(t){""!==t.trim()&&a.setElementClass(e.nativeElement,t,!0)}),this.id=++u,this.descId="",this.hdrId="alert-hdr-"+this.id,this.subHdrId="alert-subhdr-"+this.id,this.msgId="alert-msg-"+this.id,this.activeId="",this.lastClick=0,this.d.message?this.descId=this.msgId:this.d.subTitle&&(this.descId=this.subHdrId),this.d.message||(this.d.message="")}return t.prototype.ionViewDidLoad=function(){var t=this,e=this.d;e.buttons=e.buttons.map(function(t){return"string"==typeof t?{text:t}:t}),e.inputs=e.inputs.map(function(e,n){return{type:e.type||"text",name:Object(o.l)(e.name)?e.name:n+"",placeholder:Object(o.l)(e.placeholder)?e.placeholder:"",value:Object(o.l)(e.value)?e.value:"",label:e.label,checked:!!e.checked,disabled:!!e.disabled,id:Object(o.l)(e.id)?e.id:"alert-input-"+t.id+"-"+n,handler:Object(o.l)(e.handler)?e.handler:null,min:Object(o.l)(e.min)?e.min:null,max:Object(o.l)(e.max)?e.max:null}});var n=[];e.inputs.forEach(function(t){n.indexOf(t.type)<0&&n.push(t.type)}),n.length>1&&(n.indexOf("checkbox")>-1||n.indexOf("radio")>-1)&&console.warn("Alert cannot mix input types: "+n.join("/")+". Please see alert docs for more info."),this.inputType=n.length?n[0]:null;var i=this.d.inputs.find(function(t){return t.checked});i&&(this.activeId=i.id);var a=this.d.inputs.length&&this.d.inputs.some(function(t){return!r.a.test(t.type)});!this.keyboardResizes&&a&&this._plt.is("mobile")&&this._renderer.setElementClass(this._elementRef.nativeElement,"alert-top",!0)},t.prototype.ionViewWillEnter=function(){this.gestureBlocker.block()},t.prototype.ionViewDidLeave=function(){this.gestureBlocker.unblock()},t.prototype.ionViewDidEnter=function(){var t=this._elementRef.nativeElement.querySelector("input,button");t&&setTimeout(function(){return t.focus()}),this.enabled=!0},t.prototype.keyUp=function(t){if(this.enabled&&this._viewCtrl.isLast())if(t.keyCode===a.b){if(this.lastClick+1e3=0&&(r>.2||t.delta>e),n,r)},e.prototype.getElementStartPos=function(t){var e=this.menu;return e.isRightSide!==this.plt.isRTL?e.isOpen?t.min:t.max:e.isOpen?t.max:t.min},e.prototype.getSlideBoundaries=function(){var t=this.menu;return t.isRightSide!==this.plt.isRTL?{min:-t.width(),max:0}:{min:0,max:t.width()}},e}(a.a),c=n(23),l=(n(50),n(5),n(34));n(31);n.d(e,"a",function(){return d});var d=function(){function t(t,e,n,o,a,s,u,c,d){this._menuCtrl=t,this._elementRef=e,this._config=n,this._plt=o,this._renderer=a,this._keyboard=s,this._gestureCtrl=u,this._domCtrl=c,this._app=d,this._isSwipeEnabled=!0,this._isAnimating=!1,this._isPersistent=!1,this._init=!1,this._isPane=!1,this.isOpen=!1,this.isRightSide=!1,this.ionDrag=new r.EventEmitter,this.ionOpen=new r.EventEmitter,this.ionClose=new r.EventEmitter,this._events=new l.a(o),this._gestureBlocker=u.createBlocker({disable:[i.b]}),this.side="start"}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._isEnabled},set:function(t){var e=Object(o.o)(t);this.enable(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"side",{get:function(){return this._side},set:function(t){this.isRightSide=Object(o.m)(t,this._plt.isRTL),this._side=this.isRightSide?"right":"left"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeEnabled",{get:function(){return this._isSwipeEnabled},set:function(t){var e=Object(o.o)(t);this.swipeEnable(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"persistent",{get:function(){return this._isPersistent},set:function(t){this._isPersistent=Object(o.o)(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._init=!0;var e=this.content;if(this._cntEle=e instanceof Node?e:e&&e.getNativeElement&&e.getNativeElement(),!this._cntEle)return console.error('Menu: must have a [content] element to listen for drag events on. Example:\n\n\n\n');this.setElementAttribute("side",this._side),this.type||(this.type=this._config.get("menuType")),this.setElementAttribute("type",this.type),this._gesture=new u(this._plt,this,this._gestureCtrl,this._domCtrl),this._cntEle.classList.add("menu-content"),this._cntEle.classList.add("menu-content-"+this.type);var n=this._isEnabled;!0!==n&&void 0!==n||(n=!this._menuCtrl.getMenus().some(function(e){return e.side===t.side&&e.enabled})),this._menuCtrl._register(this),this.enable(n)},t.prototype.onBackdropClick=function(t){t.preventDefault(),t.stopPropagation(),this._menuCtrl.close()},t.prototype._getType=function(){return this._type||(this._type=c.a.create(this.type,this,this._plt),!1===this._config.get("animate")&&this._type.ani.duration(0)),this._type},t.prototype.setOpen=function(t,e){var n=this;return void 0===e&&(e=!0),t===this.isOpen||!this._canOpen()||this._isAnimating?Promise.resolve(this.isOpen):new Promise(function(r){n._before(),n._getType().setOpen(t,e,function(){n._after(t),r(n.isOpen)})})},t.prototype._forceClosing=function(){var t=this;this._isAnimating=!0,this._getType().setOpen(!1,!1,function(){t._after(!1)})},t.prototype.canSwipe=function(){return this._isSwipeEnabled&&!this._isAnimating&&this._canOpen()&&this._app.isEnabled()},t.prototype.isAnimating=function(){return this._isAnimating},t.prototype._swipeBeforeStart=function(){this.canSwipe()&&this._before()},t.prototype._swipeStart=function(){this._isAnimating&&this._getType().setProgressStart(this.isOpen)},t.prototype._swipeProgress=function(t){if(this._isAnimating){this._getType().setProgessStep(t);var e=this.ionDrag;e.observers.length>0&&e.emit(t)}},t.prototype._swipeEnd=function(t,e,n,r){var i=this;if(this._isAnimating){var o=this.isRightSide,a=this._plt.isRTL,s=!this.isOpen?o!==a?t:e:o!==a?e:t;this._getType().setProgressEnd(s,n,r,function(t){i._after(t)})}},t.prototype._before=function(){this.setElementClass("show-menu",!0),this.backdrop.setElementClass("show-backdrop",!0),this.resize(),this._keyboard.close(),this._isAnimating=!0},t.prototype._after=function(t){if(this._app.setEnabled(!1,100),this.isOpen=t,this._isAnimating=!1,this._events.unlistenAll(),t){this._gestureBlocker.block(),this._cntEle.classList.add("menu-content-open");var e=this.onBackdropClick.bind(this);this._events.listen(this._cntEle,"click",e,{capture:!0}),this._events.listen(this.backdrop.getNativeElement(),"click",e,{capture:!0}),this.ionOpen.emit(!0)}else this._gestureBlocker.unblock(),this._cntEle.classList.remove("menu-content-open"),this.setElementClass("show-menu",!1),this.backdrop.setElementClass("show-menu",!1),this.ionClose.emit(!0)},t.prototype.open=function(){return this.setOpen(!0)},t.prototype.close=function(){return this.setOpen(!1)},t.prototype.resize=function(){var t=this.menuContent?this.menuContent:this.menuNav;t&&t.resize()},t.prototype.toggle=function(){return this.setOpen(!this.isOpen)},t.prototype._canOpen=function(){return this._isEnabled&&!this._isPane},t.prototype._updateState=function(){var t=this._canOpen();if(!t&&this.isOpen&&this._forceClosing(),this._isEnabled&&this._menuCtrl&&this._menuCtrl._setActiveMenu(this),this._init){var e=this._gesture;t&&this._isSwipeEnabled&&!e.isListening?e.listen():!e.isListening||t&&this._isSwipeEnabled||e.unlisten(),(this.isOpen||this._isPane&&this._isEnabled)&&this.resize()}},t.prototype.enable=function(t){return this._isEnabled=t,this.setElementClass("menu-enabled",t),this._updateState(),this},t.prototype.initPane=function(){return!1},t.prototype.paneChanged=function(t){this._isPane=t,this._updateState()},t.prototype.swipeEnable=function(t){return this._isSwipeEnabled=t,this._updateState(),this},t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t.prototype.getMenuElement=function(){return this.getNativeElement().querySelector(".menu-inner")},t.prototype.getContentElement=function(){return this._cntEle},t.prototype.getBackdropElement=function(){return this.backdrop.getNativeElement()},t.prototype.width=function(){return this.getMenuElement().offsetWidth},t.prototype.getMenuController=function(){return this._menuCtrl},t.prototype.setElementClass=function(t,e){this._renderer.setElementClass(this._elementRef.nativeElement,t,e)},t.prototype.setElementAttribute=function(t,e){this._renderer.setElementAttribute(this._elementRef.nativeElement,t,e)},t.prototype.getElementRef=function(){return this._elementRef},t.prototype.ngOnDestroy=function(){this._menuCtrl._unregister(this),this._events.destroy(),this._gesture&&this._gesture.destroy(),this._type&&this._type.destroy(),this._gesture=null,this._type=null,this._cntEle=null},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(26),i=(n(11),n(6),n(7)),o=(n(42),function(){function t(t,e,n,r,o,a,s){this._cfr=t,this._renderer=e,this._elementRef=n,this._navParams=r,this._viewCtrl=o,this.moduleLoader=s;var u=r.get("opts");this._gestureBlocker=a.createBlocker({disable:[i.d,i.b]}),this._bdDismiss=u.enableBackdropDismiss,u.cssClass&&u.cssClass.split(" ").forEach(function(t){""!==t.trim()&&e.setElementClass(n.nativeElement,t,!0)})}return t.prototype.ionViewPreLoad=function(){var t=this._navParams.data.component;if(t){var e=this.moduleLoader.getComponentFactoryResolver(t);e||(e=this._cfr);var n=e.resolveComponentFactory(t),r=this._viewport.createComponent(n,this._viewport.length,this._viewport.parentInjector,[]);this._setCssClass(r,"ion-page"),this._setCssClass(r,"show-page"),this._viewCtrl._setInstance(r.instance),this._viewCtrl.willEnter.subscribe(this._viewWillEnter.bind(this)),this._viewCtrl.didLeave.subscribe(this._viewDidLeave.bind(this)),this._enabled=!0}else console.warn("modal's page was not defined")},t.prototype._viewWillEnter=function(){this._gestureBlocker.block()},t.prototype._viewDidLeave=function(){this._gestureBlocker.unblock()},t.prototype._setCssClass=function(t,e){this._renderer.setElementClass(t.location.nativeElement,e,!0)},t.prototype._bdClick=function(){if(this._enabled&&this._bdDismiss){return this._viewCtrl.dismiss(null,"backdrop",{minClickBlockDuration:400})}},t.prototype._keyUp=function(t){this._enabled&&this._viewCtrl.isLast()&&t.keyCode===r.c&&this._bdClick()},t.prototype.ngOnDestroy=function(){this._gestureBlocker.destroy()},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return a});n(2);var r=n(8),i=n(4),o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(e,n,r){var i=t.call(this,e,n,r,"spinner")||this;return i._dur=null,i._paused=!1,i}return o(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this.load()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._dur},set:function(t){this._dur=t,this.load()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=Object(i.o)(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._init=!0,this.load()},e.prototype.load=function(){if(this._init){this._l=[],this._c=[];var t=this._name||this._config.get("spinner","ios"),e=s[t];if(e){if(e.lines)for(var n=0,r=e.lines;n-1}function y(t){return-t._snapGrid[0]}function g(t){return-t._snapGrid[t._snapGrid.length-1]}function v(t,e,n){var r,i,o,a=t._rtl?-1:1;r=e.getAttribute("data-swiper-parallax")||"0",i=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y"),i||o?(i=i||"0",o=o||"0"):_(t)?(i=r,o="0"):(o=r,i="0"),l(e,"translate3d("+(i=i.indexOf("%")>=0?parseInt(i,10)*n*a+"%":i*n*a+"px")+", "+(o=o.indexOf("%")>=0?parseInt(o,10)*n+"%":o*n+"px")+",0px)")}function b(t){c(t.container,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]",function(e){v(t,e,t.progress)});for(var e=0;e=1),t._zone.run(function(){t._isBeginning&&!r&&t.ionSlideReachStart.emit(),t._isEnd&&!i&&t.ionSlideReachEnd.emit(),t.watchSlidesProgress&&function(t,e){void 0===e&&(e=t._translate||0);if(0===t._slides.length)return;void 0===t._slides[0].swiperSlideOffset&&f(t);var n=-e;t._rtl&&(n=e);a(t._slides,bt.slideVisible);for(var r=0;r=0&&s0&&u<=t._renderedSize||s<=0&&u>=t._renderedSize)&&t._slides[r].classList.add(bt.slideVisible)}i.progress=t._rtl?-o:o}}(t,e),t.ionSlideProgress.emit(t.progress)})}function M(t,e){e?t.setAttribute("aria-disabled","true"):t.hasAttribute("aria-disabled")&&t.removeAttribute("aria-disabled")}function O(t,e){e?t.setAttribute("aria-hidden","true"):t.hasAttribute("aria-hidden")&&t.removeAttribute("aria-hidden")}function L(t){if(t.paginationType&&t._paginationContainer){var e="";if("bullets"===t.paginationType)for(var n=t.loop?Math.ceil((t._slides.length-2*t.loopedSlides)/t.slidesPerGroup):t._snapGrid.length,r=0;r';else"fraction"===t.paginationType?e=' / ':"progress"===t.paginationType&&(e='');t._paginationContainer.innerHTML=e,t._bullets=t._paginationContainer.querySelectorAll("."+bt.bullet)}}function T(t){a(t._slides,[bt.slideActive,bt.slideNext,bt.slidePrev,bt.slideDuplicateActive,bt.slideDuplicateNext,bt.slideDuplicatePrev]);for(var e=0;et._slides.length-1-2*t.loopedSlides&&(e-=t._slides.length-2*t.loopedSlides),e>n-1&&(e-=n),e<0&&"bullets"!==t.paginationType&&(e=n+e)):e=void 0!==t._snapIndex?t._snapIndex:t._activeIndex||0,"bullets"===t.paginationType&&t._bullets)for(var r=e+(e<0?t._bullets.length:0),i=0;i=t._slidesGrid[n]&&i=t._slidesGrid[n]&&i=t._slidesGrid[n]&&(e=n);(r=Math.floor(e/t.slidesPerGroup))>=t._snapGrid.length&&(r=t._snapGrid.length-1),e!==t._activeIndex&&(t._snapIndex=r,t._previousIndex=t._activeIndex,t._activeIndex=e,T(t),j(t))}function j(t){var e=t._slides[t._activeIndex];e&&(t.realIndex=parseInt(e.getAttribute("data-swiper-slide-index")||t._activeIndex,10))}function k(t,e,n,i,o){var a=0,s=0;_(t)?a=t._rtl?-n:n:s=n,t.roundLengths&&(a=r(a),s=r(s)),t.virtualTranslate||l(t._wrapper,"translate3d("+a+"px, "+s+"px, 0px)"),t._translate=_(t)?a:s;var u=g(t)-y(t);(0===u?0:(n-y(t))/u)!==t.progress&&w(t,n),i&&S(t),"slide"!==t.effect&&Ot[t.effect]&&Ot[t.effect].setTranslate(t,e),t.parallax&&b(t),t.control&&wt.setTranslate(t,e,t._translate,o,k)}function D(t,e,n,r){var i,o,a,s,u=e.win();return void 0===r&&(r="x"),t.virtualTranslate?t._rtl?-t._translate:t._translate:(a=e.getElementComputedStyle(n),u.WebKitCSSMatrix?((o=a.transform||a.webkitTransform).split(",").length>6&&(o=o.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),s=new u.WebKitCSSMatrix("none"===o?"":o)):i=(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===r&&(o=u.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===r&&(o=u.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),t._rtl&&o&&(o=-o),o||0)}function E(t,e,n,r){d(t._wrapper,n),"slide"!==t.effect&&Ot[t.effect]&&Ot[t.effect].setTransition(t,e,n),t.parallax&&function(t,e){void 0===e&&(e=t.speed),c(t.container,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]",function(t){var n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),d(t,n)})}(t,n),t.control&&wt.setTransition(t,e,n,r,E)}function C(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,r=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-e,2)+Math.pow(i-n,2))}function Y(t,e,n){var r=t._zoom;if(t.originalEvent=n,!t._supportGestures){if("touchstart"!==n.type||"touchstart"===n.type&&n.targetTouches.length<2)return;r.gesture.scaleStart=C(n)}if(!r.gesture.slide&&(n.currentTarget&&n.currentTarget.classList.contains(bt.slide)&&(r.gesture.slide=n.currentTarget),r.gesture.slide||(r.gesture.slide=t._slides[t._activeIndex]),r.gesture.image=r.gesture.slide.querySelector("img, svg, canvas, ion-img"),r.gesture.image)){if(r.gesture.imageWrap=r.gesture.image.closest("."+bt.zoomContainer),!r.gesture.imageWrap)return void(r.gesture.image=void 0);r.gesture.zoomMax=parseInt(r.gesture.imageWrap.getAttribute("data-swiper-zoom")||t.zoomMax,10)}d(r.gesture.image,0),r.isScaling=!0}function x(t,e,n){var r=t._zoom;if(t.originalEvent=n,!t._supportGestures){if("touchmove"!==n.type||"touchmove"===n.type&&n.targetTouches.length<2)return;r.gesture.scaleMove=C(n)}r.gesture.image&&(r.scale=t._supportGestures?n.scale*r.currentScale:r.gesture.scaleMove/r.gesture.scaleStart*r.currentScale,r.scale>r.gesture.zoomMax&&(r.scale=r.gesture.zoomMax-1+Math.pow(r.scale-r.gesture.zoomMax+1,.5)),r.scaler.image.touchesStart.x)return void(r.image.isTouched=!1);if(!_(t)&&Math.floor(r.image.minY)===Math.floor(r.image.startY)&&r.image.touchesCurrent.yr.image.touchesStart.y)return void(r.image.isTouched=!1)}n.preventDefault(),n.stopPropagation(),r.image.isMoved=!0,r.image.currentX=r.image.touchesCurrent.x-r.image.touchesStart.x+r.image.startX,r.image.currentY=r.image.touchesCurrent.y-r.image.touchesStart.y+r.image.startY,r.image.currentXr.image.maxX&&(r.image.currentX=r.image.maxX-1+Math.pow(r.image.currentX-r.image.maxX+1,.8)),r.image.currentYr.image.maxY&&(r.image.currentY=r.image.maxY-1+Math.pow(r.image.currentY-r.image.maxY+1,.8)),r.velocity.prevPositionX||(r.velocity.prevPositionX=r.image.touchesCurrent.x),r.velocity.prevPositionY||(r.velocity.prevPositionY=r.image.touchesCurrent.y),r.velocity.prevTime||(r.velocity.prevTime=Date.now()),r.velocity.x=(r.image.touchesCurrent.x-r.velocity.prevPositionX)/(Date.now()-r.velocity.prevTime)/2,r.velocity.y=(r.image.touchesCurrent.y-r.velocity.prevPositionY)/(Date.now()-r.velocity.prevTime)/2,Math.abs(r.image.touchesCurrent.x-r.velocity.prevPositionX)<2&&(r.velocity.x=0),Math.abs(r.image.touchesCurrent.y-r.velocity.prevPositionY)<2&&(r.velocity.y=0),r.velocity.prevPositionX=r.image.touchesCurrent.x,r.velocity.prevPositionY=r.image.touchesCurrent.y,r.velocity.prevTime=Date.now(),l(r.gesture.imageWrap,"translate3d("+r.image.currentX+"px, "+r.image.currentY+"px,0)")}}}function I(t,e){R(t);var n,r=t._zoom.unRegs,i={passive:"touchstart"===t._touchEvents.start,zone:!1},o=t._slides;if(t._supportGestures)for(s=0;sy&&(u=y),cg&&(c=g)}else u=0,c=0;d(n.gesture.imageWrap,300),l(n.gesture.imageWrap,"translate3d("+u+"px, "+c+"px,0)"),d(n.gesture.image,300),l(n.gesture.image,"translate3d(0,0,0) scale("+n.scale+")")}}}(t,e)});r.push(function(){p.unsubscribe()})}}function R(t){t._zoom.unRegs.forEach(function(t){t()}),t._zoom.unRegs.length=0}function N(t,e){if(t._classNames=[],t.container){t.container.swiper=t;var n=bt.containerModifier;t._classNames.push(n+t.direction),t.freeMode&&t._classNames.push(n+"free-mode"),t.autoHeight&&t._classNames.push(n+"autoheight"),(t.parallax||t.watchSlidesVisibility)&&(t.watchSlidesProgress=!0),t.touchReleaseOnEdges&&(t.resistanceRatio=0);var r=t.effect;["cube","coverflow","flip"].indexOf(r)>=0&&(t.watchSlidesProgress=!0,t._classNames.push(n+"3d")),"slide"!==r&&t._classNames.push(n+r),"cube"===r&&(t.resistanceRatio=0,t.slidesPerView=1,t.slidesPerColumn=1,t.slidesPerGroup=1,t.centeredSlides=!1,t.spaceBetween=0,t.virtualTranslate=!0,t.setWrapperSize=!1),"fade"!==r&&"flip"!==r||(t.slidesPerView=1,t.slidesPerColumn=1,t.slidesPerGroup=1,t.watchSlidesProgress=!0,t.spaceBetween=0,t.setWrapperSize=!1,t.virtualTranslate=!0),t._wrapper=t.container.querySelector("."+bt.wrapper),t.paginationType&&(t._paginationContainer=t.container.querySelector(".swiper-pagination"),"bullets"===t.paginationType&&t._paginationContainer.classList.add(bt.paginationModifier+"clickable"),t._paginationContainer.classList.add(bt.paginationModifier+t.paginationType)),t._rtl=_(t)&&("rtl"===t.container.dir.toLowerCase()||"rtl"===t.container.style.direction),t._rtl&&t._classNames.push(n+"rtl"),t.slidesPerColumn>1&&t._classNames.push(n+"multirow"),e.is("android")&&t._classNames.push(n+"android"),t._classNames.forEach(function(e){t.container.classList.add(e)}),t._translate=0,t.progress=0,t.velocity=0,t._autoplayTimeoutId=void 0,t._autoplaying=!1,t._autoplayPaused=!1,t._allowClick=!0,t._animating=!1,t._touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},t.loop&&function(t){c(t._wrapper,"."+bt.slide+"."+bt.slideDuplicate,function(t){t.parentElement.removeChild(t)});var e=t._wrapper.querySelectorAll("."+bt.slide);"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=e.length);t.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),t.loopedSlides=t.loopedSlides+t.loopAdditionalSlides,t.loopedSlides>e.length&&(t.loopedSlides=e.length);for(var n=[],r=[],i=0;i=e.length-t.loopedSlides&&n.push(a),a.setAttribute("data-swiper-slide-index",i)}for(i=0;i=0;i--){var u=n[i].cloneNode(!0);o(u,bt.slideDuplicate),t._wrapper.insertBefore(u,t._wrapper.firstElementChild)}}(t),B(t,e),U(t,e),L(t),"slide"!==r&&Ot[r]&&(t.loop||w(t),Ot[r].setTranslate(t,e)),t.loop?q(t,e,t.initialSlide+t.loopedSlides,0,t.runCallbacksOnInit):(q(t,e,t.initialSlide,0,t.runCallbacksOnInit),0===t.initialSlide&&b(t)),t.autoplay&&H(t,e)}}function F(t,e){var n=t.autoplay,r=t._slides[t._activeIndex];r.hasAttribute("data-swiper-autoplay")&&(n=r.getAttribute("data-swiper-autoplay")||t.autoplay),t._autoplayTimeoutId=e.timeout(function(){t._zone.run(function(){t.loop?(G(t,e),J(t,e,!0,void 0,!0),t.ionSlideAutoplay.emit(t)):t._isEnd?t.autoplayStopOnLast?V(t):(q(t,e,0),t.ionSlideAutoplay.emit(t)):(J(t,e,!0,void 0,!0),t.ionSlideAutoplay.emit(t))})},n)}function H(t,e){return void 0===t._autoplayTimeoutId&&(!(!t.autoplay||t._autoplaying)&&(t._autoplaying=!0,t._zone.run(function(){t.ionSlideAutoplayStart.emit(t)}),void F(t,e)))}function V(t){t._autoplayTimeoutId&&(t._autoplayTimeoutId&&clearTimeout(t._autoplayTimeoutId),t._autoplaying=!1,t._autoplayTimeoutId=void 0,t._zone.run(function(){t.ionSlideAutoplayStop.emit(t)}))}function z(t,e,n){t._autoplayPaused||(t._autoplayTimeoutId&&clearTimeout(t._autoplayTimeoutId),t._autoplayPaused=!0,0===n?(t._autoplayPaused=!1,F(t,e)):e.transitionEnd(t._wrapper,function(){t&&(t._autoplayPaused=!1,t._autoplaying?F(t,e):V(t))}))}function W(t){var e,n=[],r=0;if("auto"!==t.slidesPerView&&t.slidesPerView>1)for(e=0;et._slides.length)break;n.push(t._slides[i])}else n.push(t._slides[t._activeIndex]);for(e=0;er?o:r}r&&(t._wrapper.style.height=r+"px")}function B(t,e){var n,r,i=t.container;if(n=void 0!==t.width?t.width:i.clientWidth,r=void 0!==t.renderedHeight?t.renderedHeight:i.clientHeight,!(0===n&&_(t)||0===r&&!_(t))){var o=e.getElementComputedStyle(i);n=n-parseInt(o.paddingLeft,10)-parseInt(o.paddingRight,10),r=r-parseInt(o.paddingTop,10)-parseInt(o.paddingBottom,10),t.renderedWidth=n,t.renderedHeight=r,t._renderedSize=_(t)?n:r}}function U(t,e){t._slides=t._wrapper.querySelectorAll("."+bt.slide),t._snapGrid=[],t._slidesGrid=[],t._slidesSizesGrid=[];var n,o=t.spaceBetween,a=-t.slidesOffsetBefore,s=0,u=0;if(void 0!==t._renderedSize){"string"==typeof o&&o.indexOf("%")>=0&&(o=parseFloat(o.replace("%",""))/100*t._renderedSize),t._virtualSize=-o,t._rtl?i(t._slides,{marginLeft:"",marginTop:""}):i(t._slides,{marginRight:"",marginBottom:""});var c;t.slidesPerColumn>1&&(c=Math.floor(t._slides.length/t.slidesPerColumn)===t._slides.length/t.slidesPerColumn?t._slides.length:Math.ceil(t._slides.length/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(c=Math.max(c,t.slidesPerView*t.slidesPerColumn)));var l,d=t.slidesPerColumn,p=c/d,h=p-(t.slidesPerColumn*p-t._slides.length);for(n=0;n1){var y,g,v;"column"===t.slidesPerColumnFill?(v=n-(g=Math.floor(n/d))*d,(g>h||g===h&&v===d-1)&&++v>=d&&(v=0,g++),i(m,{"-webkit-box-ordinal-group":y=g+v*c/d,"-moz-box-ordinal-group":y,"-ms-flex-order":y,"-webkit-order":y,order:y})):g=n-(v=Math.floor(n/p))*p;var b=0!==v&&t.spaceBetween&&t.spaceBetween+"px",w={};_(t)?w.marginTop=b:w.marginLeft=b,i(m,w),m.setAttribute("data-swiper-column",g),m.setAttribute("data-swiper-row",v)}if("none"!==m.style.display){if("auto"===t.slidesPerView){var M=e.getElementComputedStyle(m);l=_(t)?m.offsetWidth+parseFloat(M.marginRight)+parseFloat(M.marginLeft):m.offsetHeight+parseFloat(M.marginTop)+parseFloat(M.marginBottom),t.roundLengths&&(l=r(l))}else l=(t._renderedSize-(t.slidesPerView-1)*o)/t.slidesPerView,t.roundLengths&&(l=r(l)),_(t)?t._slides[n].style.width=l+"px":t._slides[n].style.height=l+"px";t._slides[n].swiperSlideSize=l,t._slidesSizesGrid.push(l),t.centeredSlides?(a=a+l/2+s/2+o,0===n&&(a=a-t._renderedSize/2-o),Math.abs(a)<.001&&(a=0),u%t.slidesPerGroup==0&&t._snapGrid.push(a),t._slidesGrid.push(a)):(u%t.slidesPerGroup==0&&t._snapGrid.push(a),t._slidesGrid.push(a),a=a+l+o),t._virtualSize+=l+o,s=l,u++}}t._virtualSize=Math.max(t._virtualSize,t._renderedSize)+t.slidesOffsetAfter;var O;if(!t._rtl||"slide"!==t.effect&&"coverflow"!==t.effect||i(t._wrapper,{width:t._virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(_(t)?i(t._wrapper,{width:t._virtualSize+t.spaceBetween+"px"}):i(t._wrapper,{height:t._virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(t._virtualSize=(l+t.spaceBetween)*c,t._virtualSize=Math.ceil(t._virtualSize/t.slidesPerColumn)-t.spaceBetween,_(t)?i(t._wrapper,{width:t._virtualSize+t.spaceBetween+"px"}):i(t._wrapper,{height:t._virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){for(O=[],n=0;n1&&t._snapGrid.push(t._virtualSize-t._renderedSize)}0===t._snapGrid.length&&(t._snapGrid=[0]),0!==t.spaceBetween&&(_(t)?t._rtl?i(t._slides,{marginLeft:o+"px"}):i(t._slides,{marginRight:o+"px"}):i(t._slides,{marginBottom:o+"px"})),t.watchSlidesProgress&&f(t)}}function G(t,e){var n;t._activeIndex=2*t.loopedSlides||t._activeIndex>t._slides.length-2*t.slidesPerView)&&(n=-t._slides.length+t._activeIndex+t.loopedSlides,q(t,e,n+=t.loopedSlides,0,!1,!0))}function q(t,e,n,r,i,o){void 0===i&&(i=!0),void 0===n&&(n=0),n<0&&(n=0),t._snapIndex=Math.floor(n/t.slidesPerGroup),t._snapIndex>=t._snapGrid.length&&(t._snapIndex=t._snapGrid.length-1);var a=-t._snapGrid[t._snapIndex];return t.autoplay&&t._autoplaying&&(o||!t.autoplayDisableOnInteraction?z(t,e,r):V(t)),w(t,a),!(!t._allowSwipeToNext&&at._translate&&a>g(t)&&(t._activeIndex||0)!==n)&&(void 0===r&&(r=t.speed),t._previousIndex=t._activeIndex||0,t._activeIndex=n,j(t),t._rtl&&-a===t._translate||!t._rtl&&a===t._translate?(t.autoHeight&&W(t),T(t),"slide"!==t.effect&&k(t,e,a),!1):(T(t),X(t,i),0===r?(k(t,e,a),E(t,e,0),Z(t,e,i)):(k(t,e,a),E(t,e,r),t._animating||(t._animating=!0,e.transitionEnd(t._wrapper,function(){t&&Z(t,e,i)}))),!0)))}function X(t,e){void 0===e&&(e=!0),t.autoHeight&&W(t),e&&t._zone.run(function(){t.ionSlideTransitionStart.emit(t),t._activeIndex!==t._previousIndex&&(t.ionSlideWillChange.emit(t),t._activeIndex>t._previousIndex?t.ionSlideNextStart.emit(t):t.ionSlidePrevStart.emit(t))})}function Z(t,e,n){void 0===n&&(n=!0),t._animating=!1,E(t,e,0),n&&t._zone.run(function(){t.ionSlideTransitionEnd.emit(t),t._activeIndex!==t._previousIndex&&(t.ionSlideDidChange.emit(t),t._activeIndex>t._previousIndex?t.ionSlideNextEnd.emit(t):t.ionSlidePrevEnd.emit(t))})}function J(t,e,n,r,i){if(t.loop)return!t._animating&&(G(t,e),q(t,e,t._activeIndex+t.slidesPerGroup,r,n,i));var o=t._activeIndex+t.slidesPerGroup;return o=0&&q(t,e,t._activeIndex-1,r,n,i)}function K(t){V(t),t.loop&&function(t){if(c(t._wrapper,"."+bt.slide+"."+bt.slideDuplicate,function(t){t.parentElement.removeChild(t)}),t._slides)for(var e=0;e=s.left&&f[0]<=s.left+u&&f[1]>=s.top&&f[1]<=s.top+c&&(a=!0)}if(!a)return}_(t)?(37!==i&&39!==i||(n.preventDefault?n.preventDefault():n.returnValue=!1),(39===i&&!t._rtl||37===i&&t._rtl)&&J(t,e),(37===i&&!t._rtl||39===i&&t._rtl)&&$(t,e)):(38!==i&&40!==i||(n.preventDefault?n.preventDefault():n.returnValue=!1),40===i&&J(t,e),38===i&&$(t,e))}}}(t,e,n)},{zone:!1}):!n&&t._keyboardUnReg&&t._keyboardUnReg()}function tt(t,e){var n=e.win(),r=e.doc();t._supportTouch=!!("ontouchstart"in n||n.DocumentTouch&&r instanceof n.DocumentTouch),t._touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},n.navigator.pointerEnabled?t._touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:n.navigator.msPointerEnabled&&(t._touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),t._touchEvents={start:t._supportTouch||!t.simulateTouch?"touchstart":t._touchEventsDesktop.start,move:t._supportTouch||!t.simulateTouch?"touchmove":t._touchEventsDesktop.move,end:t._supportTouch||!t.simulateTouch?"touchend":t._touchEventsDesktop.end},(n.navigator.pointerEnabled||n.navigator.msPointerEnabled)&&("container"===t.touchEventsTarget?t.container:t._wrapper).classList.add("swiper-wp8-"+t.direction);var i=[],o="container"===t.touchEventsTarget?t.container:t._wrapper;t._supportTouch&&(e.registerListener(o,t._touchEvents.start,function(n){nt(t,e,n)},{passive:!0,zone:!1},i),e.registerListener(o,t._touchEvents.move,function(n){rt(t,e,n)},{zone:!1},i),e.registerListener(o,t._touchEvents.end,function(n){it(t,e,n)},{passive:!0,zone:!1},i)),(t.simulateTouch&&!e.is("ios")&&!e.is("android")||t.simulateTouch&&!t._supportTouch&&e.is("ios")||e.getQueryParam("ionicPlatform"))&&(e.registerListener(o,"mousedown",function(n){nt(t,e,n)},{zone:!1},i),e.registerListener(o,"mousemove",function(n){rt(t,e,n)},{zone:!1},i),e.registerListener(o,"mouseup",function(n){it(t,e,n)},{zone:!1},i));var a=e.resize.subscribe(function(){return function(t,e,n){yt&&(e.cancelTimeout(yt),yt=null);yt=e.timeout(function(){return function(t,e,n){yt=null;var r=t._allowSwipeToPrev,i=t._allowSwipeToNext;t._allowSwipeToPrev=t._allowSwipeToNext=!0,B(t,e),U(t,e),("auto"===t.slidesPerView||t.freeMode||n)&&L(t);t._spline&&(t._spline=void 0);if(t.freeMode){var o=Math.min(Math.max(t._translate,g(t)),y(t));k(t,e,o),S(t),T(t),t.autoHeight&&W(t)}else T(t),("auto"===t.slidesPerView||t.slidesPerView>1)&&t._isEnd&&!t.centeredSlides?q(t,e,t._slides.length-1,0,!1,!0):q(t,e,t._activeIndex,0,!1,!0);t._allowSwipeToPrev=r,t._allowSwipeToNext=i}(t,e,n)},200)}(t,e,!1)});return t.nextButton&&e.registerListener(t.nextButton,"click",function(n){!function(t,e,n){if(n.preventDefault(),t._isEnd&&!t.loop)return;J(t,e)}(t,e,n)},{zone:!1},i),t.prevButton&&e.registerListener(t.prevButton,"click",function(n){!function(t,e,n){if(n.preventDefault(),t._isBeginning&&!t.loop)return;$(t,e)}(t,e,n)},{zone:!1},i),t.paginationType&&e.registerListener(t._paginationContainer,"click",function(n){!function(t,e,n){var r=n.target.getAttribute("data-slide-index");if(r){var i=parseInt(r,10);n.preventDefault(),t.loop&&(i+=t.loopedSlides),q(t,e,i)}}(t,e,n)},{zone:!1},i),(t.preventClicks||t.preventClicksPropagation)&&e.registerListener(o,"click",function(e){!function(t,e){t._allowClick||(t.preventClicks&&e.preventDefault(),t.preventClicksPropagation&&t._animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}(t,e)},{zone:!1,capture:!0},i),function(){a.unsubscribe(),i.forEach(function(t){t()}),i=null}}function et(t,e){var n=t.target;if(!n.matches(e))if("string"==typeof e)n=n.closest(e);else if(e.nodeType){for(var r=n.parentElement;r;)if(r===e)return e;return}return n}function nt(t,e,n){if(n.originalEvent&&(n=n.originalEvent),t.originalEvent=n,(_t="touchstart"===n.type)||!("which"in n)||3!==n.which)if(t.noSwiping&&et(n,"."+bt.noSwiping))t._allowClick=!0;else if(!t.swipeHandler||et(n,t.swipeHandler)){var r=t._touches.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,i=t._touches.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;if(!(e.is("ios")&&t.iOSEdgeSwipeDetection&&r<=t.iOSEdgeSwipeThreshold)){if(ot=!0,at=!1,st=!0,ct=void 0,mt=void 0,t._touches.startX=r,t._touches.startY=i,ut=Date.now(),t._allowClick=!0,B(t,e),t.swipeDirection=void 0,t.threshold>0&&(pt=!1),"touchstart"!==n.type){var o=!0;m(n.target)&&(o=!1),e.focusOutActiveElement(),o&&n.preventDefault()}t.ionSlideTouchStart.emit(n)}}}function rt(t,e,n){if(n.originalEvent&&(n=n.originalEvent),t.originalEvent=n,!_t||"mousemove"!==n.type){if(n.preventedByNestedSwiper)return t._touches.startX="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,void(t._touches.startY="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY);if(t.onlyExternal)return t._allowClick=!1,void(ot&&(t._touches.startX=t._touches.currentX="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,t._touches.startY=t._touches.currentY="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY,ut=Date.now()));if(_t&&t.touchReleaseOnEdges&&!t.loop)if(_(t)){if(t._touches.currentXt._touches.startX&&t._translate>=y(t))return}else if(t._touches.currentYt._touches.startY&&t._translate>=y(t))return;var r=e.getActiveElement();if(_t&&r&&n.target===r&&m(n.target))return at=!0,void(t._allowClick=!1);if(!(n.targetTouches&&n.targetTouches.length>1)){if(t._touches.currentX="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,t._touches.currentY="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY,void 0===ct){var i;_(t)&&t._touches.currentY===t._touches.startY||!_(t)&&t._touches.currentX===t._touches.startX?ct=!1:(i=180*Math.atan2(Math.abs(t._touches.currentY-t._touches.startY),Math.abs(t._touches.currentX-t._touches.startX))/Math.PI,ct=_(t)?i>t.touchAngle:90-i>t.touchAngle)}if(ot)if(ct)ot=!1;else{t._allowClick=!1,t.ionSlideDrag.emit(t),n.preventDefault(),t.touchMoveStopPropagation&&n.stopPropagation(),at||(t.loop&&G(t,e),dt=function(t,e,n){return void 0===n&&(n=_(t)?"x":"y"),D(t,e,t._wrapper,n)}(t,e),E(t,e,0),t._animating&&p(e,t._wrapper),t.autoplay&&t._autoplaying&&(t.autoplayDisableOnInteraction?V(t):z(t,e)),ft=!1),at=!0;var o=t._touches.diff=_(t)?t._touches.currentX-t._touches.startX:t._touches.currentY-t._touches.startY;o*=t.touchRatio,t._rtl&&(o=-o),t.swipeDirection=o>0?"prev":"next",lt=o+dt;var a=!0;if(o>0&<>y(t)?(a=!1,t.resistance&&(lt=y(t)-1+Math.pow(-y(t)+dt+o,t.resistanceRatio))):o<0&<