ionic-framework
Version:
2 lines • 281 kB
JavaScript
module.exports=function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(82)},function(t,e){t.exports=require("angular2").core},function(t,e,n){var i=n(11),o=n(10),r=function(){function t(t){this._s=t&&o.isObject(t)&&!o.isArray(t)?t:{},this._c={}}return t.prototype.settings=function(){var t=arguments;switch(t.length){case 0:return this._s;case 1:this._s=t[0],this._c={};break;case 2:this._s.platforms=this._s.platforms||{},this._s.platforms[t[0]]=t[1],this._c={}}return this},t.prototype.set=function(){var t=arguments,e=t[0],n=t[1];switch(t.length){case 2:this._s[e]=n,delete this._c[e];break;case 3:this._s.platforms=this._s.platforms||{},this._s.platforms[e]=this._s.platforms[e]||{},this._s.platforms[e][n]=t[2],delete this._c[n]}return this},t.prototype.get=function(e){if(!o.isDefined(this._c[e])){var n=void 0,r=this._s[e],s=void 0,a=void 0,l=void 0,c=void 0,u=null;if(this._platform){var p=this._platform.query("ionic"+e.toLowerCase());if(o.isDefined(p))return this._c[e]="true"===p?!0:"false"===p?!1:p;for(var f=this._platform.platforms(),d=0,h=f.length;h>d;d++)this._s.platforms&&(u=this._s.platforms[f[d]],u&&(o.isDefined(u[e])&&(n=u[e]),u=t.getModeConfig(u.mode),u&&o.isDefined(u[e])&&(s=u[e]))),u=i.Platform.get(f[d]),u&&u.settings&&(o.isDefined(u.settings[e])&&(l=u.settings[e]),u=t.getModeConfig(u.settings.mode),u&&o.isDefined(u[e])&&(c=u[e]))}u=t.getModeConfig(this._s.mode),u&&o.isDefined(u[e])&&(a=u[e]),this._c[e]=o.isDefined(n)?n:o.isDefined(r)?r:o.isDefined(s)?s:o.isDefined(a)?a:o.isDefined(l)?l:o.isDefined(c)?c:null}return o.isFunction(this._c[e])?this._c[e](this._platform):this._c[e]},t.prototype.setPlatform=function(t){this._platform=t},t.setModeConfig=function(t,e){s[t]=e},t.getModeConfig=function(t){return s[t]||null},t}();e.Config=r;var s={}},function(t,e){function n(t){O(t)}function i(t,e){t=Math.ceil(t),2>t?n(e):setTimeout(function(){n(e)},17*(t-1))}function o(t){return a(t,e.CSS.transitionEnd)}function r(t,n){return a(t,e.CSS.animationStart,n)}function s(t,n){return a(t,e.CSS.animationEnd,n)}function a(t,e,n){return new Promise(function(i){function o(r){if(r.animationName&&n){if(r.animationName!==n)return}else if(r.target!==t)return;r.stopPropagation(),e.split(" ").forEach(function(e){t.removeEventListener(e,o)}),i(r)}e.split(" ").forEach(function(e){t.addEventListener(e,o)})})}function l(t){function e(){document.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),t()}var n=null;return t||(n=new Promise(function(e){t=e})),"complete"===document.readyState||"interactive"===document.readyState?t():(document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)),n}function c(t){function e(){window.removeEventListener("load",e,!1),t()}var n=null;return t||(n=new Promise(function(e){t=e})),"complete"===document.readyState?t():window.addEventListener("load",e,!1),n}function u(t){var e={x:0,y:0};if(t){var n=t.touches&&t.touches.length?t.touches:[t],i=t.changedTouches&&t.changedTouches[0]||n[0];i&&(e.x=i.clientX||i.pageX||0,e.y=i.clientY||i.pageY||0)}return e}function p(t,e,n){return e&&n&&(Math.abs(e.x-n.x)>t||Math.abs(e.y-n.y)>t)}function f(t){return!(!t||document.activeElement!==t)}function d(t){return f(t)&&t.parentElement.querySelector(":focus")===t}function h(t){return!!t&&("TEXTAREA"==t.tagName||"true"===t.contentEditable||"INPUT"==t.tagName&&!/^(radio|checkbox|range|file|submit|reset|color|image|button)$/i.test(t.type))}function m(){var t=document.activeElement;return h(t)?t.parentElement.querySelector(":focus")===t:!1}function g(t,e,n){if(t&&x)for(t=n?t:t.parentElement;null!==t;){if(t[x](e))return t;t=t.parentElement}return null}function v(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function y(t,e){t._dimId||(t._dimId=++I,t._dimId%1e3===0&&w());var n=P[t._dimId];if(!n){var i=t.getNativeElement();if(!i.offsetWidth||!i.offsetHeight)return{width:0,height:0,left:0,top:0};n=P[t._dimId]={width:i.offsetWidth,height:i.offsetHeight,left:i.offsetLeft,top:i.offsetTop}}return n}function b(){if(!P.win){if(!window.innerWidth||!window.innerHeight)return{width:0,height:0};P.win={width:window.innerWidth,height:window.innerHeight}}return P.win}function w(){P={}}function _(t){return"static"===(t.style.position||"static")}function T(t){for(var e=t.offsetParent||document;e&&e!==document&&_(e);)e=e.offsetParent;return e||document}function C(t){var e=E(t),n={top:0,left:0},i=T(t);i!=document&&(n=E(i),n.top+=i.clientTop-i.scrollTop,n.left+=i.clientLeft-i.scrollLeft);var o=t.getBoundingClientRect();return{width:o.width||t.offsetWidth,height:o.height||t.offsetHeight,top:e.top-n.top,left:e.left-n.left}}function E(t){var e=t.getBoundingClientRect();return{width:e.width||t.offsetWidth,height:e.height||t.offsetHeight,top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}}var R=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,S=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame;e.raf=n;var O=R||function(t){var e,n=(new Date).getTime();return e=Math.max(0,16-(n-timeLast)),timeLast=n+e,setTimeout(function(){t(n+e)},e)};e.rafCancel=R?S:function(t){return window.cancelTimeout(t)},e.rafFrames=i,e.CSS={},function(){var t,n=["webkitTransform","transform","-webkit-transform","webkit-transform","-moz-transform","moz-transform","MozTransform","mozTransform","msTransform"];for(t=0;t<n.length;t++)if(void 0!==document.documentElement.style[n[t]]){e.CSS.transform=n[t];break}for(n=["webkitTransition","mozTransition","msTransition","transition"],t=0;t<n.length;t++)if(void 0!==document.documentElement.style[n[t]]){e.CSS.transition=n[t];break}var i=e.CSS.transition.indexOf("webkit")>-1;e.CSS.prefix=i?"-webkit-":"",e.CSS.transitionDuration=(i?"-webkit-":"")+"transition-duration",e.CSS.transitionEnd=(i?"webkitTransitionEnd ":"")+"transitionend"}(),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(e.CSS.animation="WebkitAnimation",e.CSS.animationStart="webkitAnimationStart animationstart",e.CSS.animationEnd="webkitAnimationEnd animationend"):(e.CSS.animation="animation",e.CSS.animationStart="animationstart",e.CSS.animationEnd="animationend"),e.transitionEnd=o,e.animationStart=r,e.animationEnd=s,e.ready=l,e.windowLoad=c,e.pointerCoord=u,e.hasPointerMoved=p,e.isActive=f,e.hasFocus=d,e.isTextInput=h,e.hasFocusedTextInput=m;var x;["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"].some(function(t){"function"==typeof document.documentElement[t]&&(x=t)}),e.closest=g,e.removeElement=v,e.getDimensions=y,e.windowDimensions=b,e.flushDimensionCache=w;var P={},I=0;e.parentOffsetEl=T,e.position=C,e.offset=E},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(1),s=n(63),a=n(2),l=n(32),c=n(3),u=function(){function t(t,e,n){this._config=t,this._zone=n,this._titleSrv=new s.Title,this._title="",this._disTime=0,this._clickBlock=e,this.components={}}return t.prototype.setTitle=function(t){var e=this;t!==e._title&&(e._title=t,this._zone.runOutsideAngular(function(){function t(){e._titleSrv.setTitle(e._title)}c.rafFrames(4,t)}))},t.prototype.setEnabled=function(t,e){void 0===e&&(e=700),this._disTime=t?0:Date.now()+e,(e>32||t)&&this._clickBlock.show(!t,e+64)},t.prototype.isEnabled=function(){return this._disTime<Date.now()},t.prototype.register=function(t,e){this.components[t]&&this.components[t]!==e,this.components[t]=e},t.prototype.unregister=function(t){delete this.components[t]},t.prototype.getRegisteredComponent=function(t){for(var e=0,n=this.components;e<n.length;e++){var i=n[e];if(i instanceof t)return i}},t.prototype.getComponent=function(t){return this.components[t]},t=i([r.Injectable(),o("design:paramtypes",["function"==typeof(e="undefined"!=typeof a.Config&&a.Config)&&e||Object,"function"==typeof(n="undefined"!=typeof l.ClickBlock&&l.ClickBlock)&&n||Object,"function"==typeof(u="undefined"!=typeof r.NgZone&&r.NgZone)&&u||Object])],t);var e,n,u}();e.IonicApp=u},function(t,e,n){var i=n(3),o=function(){function t(t,e){this.elementRef=t,this.config=e}return t.prototype.ngOnInit=function(){var t=this.constructor;if(t.defaultInputs&&this.config)for(var e in t.defaultInputs)if(!this[e]){var n=this.config.get(e);n?this[e]=n:this[e]=t.defaultInputs[e]}},t.prototype.getElementRef=function(){return this.elementRef},t.prototype.getNativeElement=function(){return this.elementRef.nativeElement},t.prototype.getDimensions=function(){return i.getDimensions(this)},t.prototype.width=function(){return i.getDimensions(this).width},t.prototype.height=function(){return i.getDimensions(this).height},t}();e.Ion=o},function(t,e){t.exports=require("angular2").common},function(t,e,n){function i(t,e,n,i){i.opts=i.opts||{};var o,s,l,c,u,p,f,d=i.opts.increment||.04,h=g[i.name];for(o=d;1-d>=o;o+=d){s={},l=!1;for(c in n)u=n[c],u.tween&&(p=e[c].num,f=u.num-p,s[c]={value:a(h(o,i.opts)*f+p)+u.unit},l=!0);l&&t.push(r(s))}}function o(t){var e,n,i,o,r={};for(o in t)e=t[o],n=e.toString().match(/(^-?\d*\.?\d*)(.*)/),i=parseFloat(n[1]),r[o]={value:e,num:i,unit:n[0]!=n[2]?n[2]:"",tween:!isNaN(i)&&h.indexOf(o)>-1};return r}function r(t){var e,n,i={},o=[];for(n in t)e=t[n].value,d.indexOf(n)>-1?o.push(n+"("+e+")"):i[n]=e;return o.length&&(o.push("translateZ(0px)"),i.transform=o.join(" ")),i}function s(t,e){if(t&&e){var n,i,o=[];for(i in e)n=e[i].value,d.indexOf(i)>-1?o.push(i+"("+n+")"):t.style[i]=n;o.length&&(o.push("translateZ(0px)"),t.style[c.CSS.transform]=o.join(" "))}}function a(t){return Math.round(1e4*t)/1e4}function l(t,e){function n(){o++,o===i&&e&&e()}var i=t.length;if(!i)return void(e&&e());for(var o=0,r=0;i>r;r++)t[r](n)}var c=n(3),u=n(10),p=function(){function t(t,e){void 0===e&&(e={}),this.reset(),this._opts=u.extend({renderDelay:16},e),this.elements(t),document.documentElement.animate||console.error("Web Animations polyfill missing")}return t.prototype.reset=function(){this._el=[],this._chld=[],this._ani=[],this._bfAdd=[],this._bfSty={},this._bfRmv=[],this._afAdd=[],this._afRmv=[],this._readys=[],this._plays=[],this._finishes=[]},t.prototype.elements=function(t){if(t)if("string"==typeof t&&(t=document.querySelectorAll(t)),t.length)for(var e=0;e<t.length;e++)this.addElement(t[e]);else this.addElement(t);return this},t.prototype.addElement=function(t){t&&(t.nativeElement&&(t=t.nativeElement),1===t.nodeType&&this._el.push(t))},t.prototype.parent=function(t){return this._parent=t,this},t.prototype.add=function(t){for(var e=Array.isArray(t)?t:arguments,n=0;n<e.length;n++)e[n].parent(this),this._chld.push(e[n]);return this},t.prototype.duration=function(t){return arguments.length?(this._duration=t,this):this._duration||this._parent&&this._parent.duration()||0},t.prototype.clearDuration=function(){this._duration=null;for(var t=0,e=this._chld.length;e>t;t++)this._chld[t].clearDuration()},t.prototype.easing=function(t,e){return arguments.length?(this._easing={name:t,opts:e},this):this._easing||this._parent&&this._parent.easing()},t.prototype.playbackRate=function(t){if(arguments.length){this._rate=t;var e;for(e=0;e<this._chld.length;e++)this._chld[e].playbackRate(t);for(e=0;e<this._ani.length;e++)this._ani[e].playbackRate(t);return this}return"undefined"!=typeof this._rate?this._rate:this._parent&&this._parent.playbackRate()},t.prototype.reverse=function(){return this.playbackRate(-1)},t.prototype.forward=function(){return this.playbackRate(1)},t.prototype.from=function(t,e){return this._from||(this._from={}),this._from[t]=e,this},t.prototype.to=function(t,e){return this._to||(this._to={}),this._to[t]=e,this},t.prototype.fromTo=function(t,e,n){return this.from(t,e).to(t,n)},t.prototype.fadeIn=function(){return this.fromTo("opacity",.001,1)},t.prototype.fadeOut=function(){return this.fromTo("opacity",.999,0)},Object.defineProperty(t.prototype,"before",{get:function(){var t=this;return{addClass:function(e){return t._bfAdd.push(e),t},removeClass:function(e){return t._bfRmv.push(e),t},setStyles:function(e){return t._bfSty=e,t}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){var t=this;return{addClass:function(e){return t._afAdd.push(e),t},removeClass:function(e){return t._afRmv.push(e),t}}},enumerable:!0,configurable:!0}),t.prototype.play=function(t){function e(t){var e=[];i._chld.forEach(function(t){e.push(function(e){t.play(e)})}),i._ani.forEach(function(t){e.push(function(e){t.play(e)})}),l(e,t)}function n(){i._onPlay(),e(function(){i._onFinish(),t()})}var i=this;if(!i._parent){i.stage();var o;return t||(o=new Promise(function(e){t=e})),i._duration>16&&i._opts.renderDelay>0?c.rafFrames(i._opts.renderDelay/16,n):n(),o}e(t)},t.prototype.stage=function(){if(!this._isStaged){this._isStaged=!0;var t,e,n,i,o,r;for(t=0,n=this._chld.length;n>t;t++)this._chld[t].stage();for(t=0;t<this._el.length;t++){for(o=this._el[t],i=0;i<this._bfAdd.length;i++)o.classList.add(this._bfAdd[i]);for(e in this._bfSty)o.style[e]=this._bfSty[e];for(i=0;i<this._bfRmv.length;i++)o.classList.remove(this._bfRmv[i])}if(this._to)for(t=0;t<this._el.length;t++)r=new f(this._el[t],this._from,this._to,this.duration(),this.easing(),this.playbackRate()),r.shouldAnimate&&this._ani.push(r);for(t=0;t<this._readys.length;t++)this._readys[t](this)}},t.prototype._onPlay=function(){var t;for(this._isFinished=!1,t=0;t<this._chld.length;t++)this._chld[t]._onPlay();for(t=0;t<this._plays.length;t++)this._plays[t](this)},t.prototype._onFinish=function(){if(!this._isFinished&&!this.isProgress){this._isFinished=!0;var t,e,n;for(t=0;t<this._chld.length;t++)this._chld[t]._onFinish();if(this.playbackRate()<0)for(t=0;t<this._el.length;t++){for(n=this._el[t],e=0;e<this._bfAdd.length;e++)n.classList.remove(this._bfAdd[e]);for(e=0;e<this._bfRmv.length;e++)n.classList.add(this._bfRmv[e])}else for(t=0;t<this._el.length;t++){for(n=this._el[t],e=0;e<this._afAdd.length;e++)n.classList.add(this._afAdd[e]);for(e=0;e<this._afRmv.length;e++)n.classList.remove(this._afRmv[e])}for(t=0;t<this._finishes.length;t++)this._finishes[t](this)}},t.prototype.pause=function(){var t;for(t=0;t<this._chld.length;t++)this._chld[t].pause();for(t=0;t<this._ani.length;t++)this._ani[t].pause()},t.prototype.progressStart=function(){this.isProgress=!0;for(var t=0;t<this._chld.length;t++)this._chld[t].progressStart();this.duration(1e3),this.play(),this.pause()},t.prototype.progress=function(t){t=Math.min(1,Math.max(0,t)),this.isProgress=!0;var e;for(e=0;e<this._chld.length;e++)this._chld[e].progress(t);for(e=0;e<this._ani.length;e++)this._ani[e].progress(t)},t.prototype.getCurrentTime=function(){return this._chld.length>0?this._chld[0].getCurrentTime():this._ani.length>0?this._ani[0].getCurrentTime():0},t.prototype.progressEnd=function(t,e){void 0===e&&(e=3);var n=[];this.isProgress=!1;for(var i=0;i<this._chld.length;i++)n.push(this._chld[i].progressEnd(t));return this._ani.forEach(function(i){t?i.playbackRate(e):i.playbackRate(-1*e),n.push(new Promise(function(t){i.play(t)}))}),Promise.all(n)},t.prototype.onReady=function(t,e){return e&&(this._readys=[]),this._readys.push(t),this},t.prototype.onPlay=function(t,e){return e&&(this._plays=[]),this._plays.push(t),this},t.prototype.onFinish=function(t,e){return e&&(this._finishes=[]),this._finishes.push(t),this},t.prototype.clone=function(){function e(n,i){u.extend(n,i),n._isFinished=n._isStaged=n.isProgress=!1,n._chld=[],n._ani=[];for(var o=0;o<i._chld.length;o++)n.add(e(new t,i._chld[o]));return n}return e(new t,this)},t.prototype.dispose=function(t){var e;for(e=0;e<this._chld.length;e++)this._chld[e].dispose(t);for(e=0;e<this._ani.length;e++)this._ani[e].dispose(t);if(t)for(e=0;e<this._el.length;e++)this._el[e].parentNode&&this._el[e].parentNode.removeChild(this._el[e]);this.reset()},t.create=function(e,n){var i=v[n];return i||(i=t),new i(e)},t.createTransition=function(e,n,i){void 0===i&&(i={});var o=i.animation||"ios-transition",r=v[o];return r||(r=t),new r(e,n,i)},t.register=function(t,e){v[t]=e},t}();e.Animation=p;var f=function(){function t(t,e,n,a,l,c){return e?(this.toEffect=o(n),this.shouldAnimate=a>32,this.shouldAnimate?(this.ele=t,this.fromEffect=o(e),s(t,this.fromEffect),this.duration=a,this.rate="undefined"!=typeof c?c:1,this.easing=l&&l.name||"linear",this.effects=[r(this.fromEffect)],this.easing in g?i(this.effects,this.fromEffect,this.toEffect,l):this.easing in m&&(this.easing="cubic-bezier("+m[this.easing]+")"),void this.effects.push(r(this.toEffect))):s(t,this.toEffect)):console.error(t.tagName,"animation fromEffect required, toEffect:",n)}return t.prototype.play=function(t){var e=this;e.ani?e.ani.play():(e.ani=e.ele.animate(e.effects,{duration:e.duration||0,easing:e.easing,playbackRate:e.rate}),e.ani.playbackRate=e.rate),e.ani.onfinish=function(){e.ani&&(s(e.ele,e.rate<0?e.fromEffect:e.toEffect),e.ani=e.ani.onfinish=null,t&&t())}},t.prototype.pause=function(){this.ani&&this.ani.pause()},t.prototype.progress=function(t){this.ani&&("paused"!==this.ani.playState&&this.ani.pause(),t=Math.min(.999,Math.max(.001,t)),this.ani.currentTime=this.duration*t)},t.prototype.getCurrentTime=function(){return this.ani&&this.ani.currentTime||0},t.prototype.playbackRate=function(t){this.rate=t,this.ani&&(this.ani.playbackRate=t)},t.prototype.dispose=function(){this.ele=this.ani=this.effects=this.toEffect=null},t}(),d=["translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","perspective"],h=d.concat("opacity"),m={"ease-in-cubic":"0.55,0.055,0.675,0.19","ease-out-cubic":"0.215,0.61,0.355,1","ease-in-Out-cubic":"0.645,0.045,0.355,1","ease-in-circ":"0.6,0.04,0.98,0.335","ease-out-circ":"0.075,0.82,0.165,1","ease-in-out-circ":"0.785,0.135,0.15,0.86","ease-in-expo":"0.95,0.05,0.795,0.035","ease-out-expo":"0.19,1,0.22,1","ease-in-out-expo":"1,0,0,1","ease-in-quad":"0.55,0.085,0.68,0.53","ease-out-quad":"0.25,0.46,0.45,0.94","ease-in-out-quad":"0.455,0.03,0.515,0.955","ease-in-quart":"0.895,0.03,0.685,0.22","ease-out-quart":"0.165,0.84,0.44,1","ease-in-out-quart":"0.77,0,0.175,1","ease-in-quint":"0.755,0.05,0.855,0.06","ease-out-quint":"0.23,1,0.32,1","ease-in-out-quint":"0.86,0,0.07,1","ease-in-sine":"0.47,0,0.745,0.715","ease-out-sine":"0.39,0.575,0.565,1","ease-in-out-sine":"0.445,0.05,0.55,0.95","ease-in-back":"0.6,-0.28,0.735,0.045","ease-out-back":"0.175,0.885,0.32,1.275","ease-in-out-back":"0.68,-0.55,0.265,1.55"},g={elastic:function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},"swing-from-to":function(t,e){var n=e.s||1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},"swing-from":function(t,e){var n=e.s||1.70158;return t*t*((n+1)*t-n)},"swing-to":function(t,e){var n=e.s||1.70158;return(t-=1)*t*((n+1)*t+n)+1},bounce:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},"bounce-past":function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?2-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},"ease-out-bounce":function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},"ease-from-to":function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},"ease-from":function(t,e){return Math.pow(t,e.s||4)},"ease-to":function(t,e){return Math.pow(t,e.s||.25)},spring:function(t,e){var n=e.damping||4.5,i=e.elasticity||6;return 1-Math.cos(t*n*Math.PI)*Math.exp(-t*i)},sinusoidal:function(t){return-Math.cos(t*Math.PI)/2+.5}},v={}},function(t,e,n){var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(1),r=n(90),s=n(5),a=n(12),l=n(7),c=(n(74),n(10)),u=n(3),p=function(t){function e(n,i,r,s,a,l,c,u,p,f,d){t.call(this,a,r),this.parent=n,this.app=i,this.config=r,this.keyboard=s,this._anchorName=l,this._compiler=c,this._viewManager=u,this._zone=p,this._renderer=f,this._cd=d,this._views=[],this._trnsTime=0,this._trnsDelay=r.get("pageTransitionDelay"),this._sbTrans=null,this._sbEnabled=r.get("swipeBackEnabled")||!1,this._sbThreshold=r.get("swipeBackThreshold")||40,this.initZIndex=10,this.id=++g,this._ids=-1,this.providers=o.Injector.resolve([o.provide(e,{useValue:this})])}return i(e,t),e.prototype.isTransitioning=function(){return this._trnsTime>Date.now()},e.prototype.setTransitioning=function(t,e){void 0===e&&(e=700),this._trnsTime=t?Date.now()+e:0},e.prototype.push=function(t,e,n,i){if(void 0===e&&(e={}),void 0===n&&(n={}),!t){var o="invalid componentType to push";return console.error(o),Promise.reject(o)}if("function"!=typeof t)throw'Loading component must be a component class, not "'+t.toString()+'"';if(this.isTransitioning())return Promise.reject("nav controller actively transitioning");this.setTransitioning(!0,500);var r=null;i||(r=new Promise(function(t){i=t})),this._views.length||n.animateFirst||(n.animate=!1),n.direction=n.direction||"forward";var s=this.getActive()||new a.ViewController;s.shouldCache=c.isBoolean(n.cacheLeavingView)?n.cacheLeavingView:!0,s.shouldDestroy=!s.shouldCache,s.shouldDestroy&&s.willUnload();var l=new a.ViewController(this,t,e);return l.shouldDestroy=!1,l.shouldCache=!1,l.pageType=n.pageType,l.handle=n.handle||null,this._add(l),this.router&&this.router.stateChange("push",l,e),this._transition(l,s,n,i),r},e.prototype.pop=function(t){if(void 0===t&&(t={}),!t.animateFirst&&!this.canGoBack())return Promise.reject("pop cannot go back");if(this.isTransitioning())return Promise.reject("nav controller actively transitioning");this.setTransitioning(!0,500);var e=null,n=new Promise(function(t){e=t});t.direction=t.direction||"back";var i=this.getActive()||new a.ViewController;i.shouldCache=c.isBoolean(t.cacheLeavingView)?t.cacheLeavingView:!1,i.shouldDestroy=!i.shouldCache,i.shouldDestroy&&i.willUnload();var o=this.getPrevious(i);return this.router&&this.router.stateChange("pop",o),this._transition(o,i,t,e),n},e.prototype.popTo=function(t,e){void 0===e&&(e={});var n=this._views.indexOf(t),i=n+1;if(0>n||i>this._views.length-1)return Promise.resolve();this._cachePage(t,!0);var o=null,r=new Promise(function(t){o=t});e.direction=e.direction||"back";var s=this.getActive()||new a.ViewController;if(this._views.length>1)for(var l,c=this._views.slice(i,this._views.length),u=0;u<c.length;u++)l=c[u],l.shouldDestroy=!0,l.shouldCache=!1,l.willUnload(),this._cachePage(l,l===s);return this.router&&this.router.stateChange("pop",t),this._transition(t,s,e,o),r},e.prototype.popToRoot=function(t){return void 0===t&&(t={}),this.popTo(this.first(),t)},e.prototype.insert=function(t,e,n,i){if(void 0===n&&(n={}),void 0===i&&(i={}),!e||0>t)return Promise.reject("invalid insert");if(t>=this._views.length)return this.push(e,n,i);var o=new a.ViewController(this,e,n);return o.state=d,o.shouldDestroy=!1,o.shouldCache=!1,this._incId(o),this._views.splice(t,0,o),this._cleanup(),Promise.resolve()},e.prototype.remove=function(t,e){if(void 0===e&&(e={}),0>t||t>=this._views.length)return Promise.reject("index out of range");var n=this._views[t];return this.isActive(n)?this.pop(e):(n.shouldDestroy=!0,this._cleanup(),Promise.resolve())},e.prototype.setViews=function(t,e){return void 0===e&&(e={}),console.warn("setViews() deprecated, use setPages() instead"),this.setPages(t,e)},e.prototype.setPages=function(t,e){if(void 0===e&&(e={}),!t||!t.length)return Promise.resolve();var n=this.getActive()||new a.ViewController;if(e.animate=e.animate||!1,e.cacheLeavingView=!1,this._views.length>1)for(var i,o=this._views.slice(0,this._views.length-1),r=0;r<o.length;r++)i=o[r],i.shouldDestroy=!0,i.shouldCache=!1,i.willUnload(),e.animate&&this._cachePage(i,i===n);var s=null,l=null,c=null;if(t.length>1)for(var u=t.slice(0,t.length-1),p=0;p<u.length;p++)s=u[p],s&&(l=s.componentType||s,c=new a.ViewController(this,l,s.params),c.state=d,c.shouldDestroy=!1,c.shouldCache=!1,this._add(c));return s=t[t.length-1],l=s.componentType||s,this.push(l,s.params,e)},e.prototype.setRoot=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),this.setPages([{componentType:t,params:e}],n)},e.prototype._transition=function(t,e,n,i){if(t===e)return i(t);n.animation||(n.animation=this.config.get("pageTransition")),this.config.get("animate")===!1&&(n.animate=!1),t||(t=new a.ViewController,t.loaded());var o=r.wtfStartTimeRange("ionic.NavController#_transition "+t.name);this._render(t,e,n,function(){r.wtfEndTimeRange(o),i(t)})},e.prototype._render=function(t,e,n,i){var o=this;t.shouldDestroy?i():t.isLoaded()?this._postRender(t,e,n,i):this.loadPage(t,null,n,function(){t.onReady?t.onReady(function(){t.loaded(),o._postRender(t,e,n,i)}):(t.loaded(),o._postRender(t,e,n,i))})},e.prototype._postRender=function(t,e,n,i){var o=this,s=r.wtfStartTimeRange("ionic.NavController#_postRender "+t.name);t.shouldDestroy?(r.wtfEndTimeRange(s),i()):n.preload?(n.animate=!1,r.wtfEndTimeRange(s),this._beforeTrans(t,e,n,i)):(t.willEnter(),e.willLeave(),this._setZIndex(t,e,n.direction),this._cleanup(t,e,!0),u.raf(function(){r.wtfEndTimeRange(s),o._beforeTrans(t,e,n,i)}))},e.prototype._beforeTrans=function(t,e,n,i){var o=this,s=r.wtfStartTimeRange("ionic.NavController#_beforeTrans "+t.name);this._zone.runOutsideAngular(function(){t.shouldDestroy=!1,t.shouldCache=!1,t.state=h,e.state=m,n.renderDelay=n.transitionDelay||self._trnsDelay;var a=l.Animation.createTransition(t,e,n);n.animate===!1&&(a.clearDuration(),a.duration(0));var c=a.duration(),u=64>c;o.app.setEnabled(u,c),o.setTransitioning(!u,c),n.pageType&&a.before.addClass(n.pageType),r.wtfEndTimeRange(s),a.play(function(){a.dispose(),o._afterTrans(t,e,n,i)})})},e.prototype._afterTrans=function(t,e,n,i){var o=this,s=r.wtfStartTimeRange("ionic.NavController#_afterTrans "+t.name);t.state=f,e.state=d,this._zone.run(function(){n.preload||(t.didEnter(),e.didLeave()),o.keyboard.isOpen()?o.keyboard.onClose(function(){o._transComplete(),r.wtfEndTimeRange(s),i()},32):(o._transComplete(),r.wtfEndTimeRange(s),i())})},e.prototype._transComplete=function(){var t=r.wtfCreateScope("ionic.NavController#_transComplete")();this._views.forEach(function(t){t&&(t.shouldDestroy?t.didUnload():t.state===d&&t.shouldCache&&(t.shouldCache=!1))}),this.app.setEnabled(!0),this.setTransitioning(!1),this._sbComplete(),this._cleanup(),r.wtfLeave(t)},e.prototype.loadPage=function(t,e,n,i){var s=this,l=r.wtfStartTimeRange("ionic.NavController#loadPage "+t.name);this._compiler.compileInHost(t.componentType).then(function(p){var f=r.wtfCreateScope("ionic.NavController#loadPage_After_Compile")(),d=s.providers.concat(o.Injector.resolve([o.provide(a.ViewController,{useValue:t}),o.provide(v,{useValue:t.params})])),h=s.elementRef;s._anchorName&&(h=s._viewManager.getNamedElementInComponentView(h,s._anchorName));var m=s._viewManager.getViewContainer(h),g=m.createHostView(p,m.length,d),y=s._viewManager.getHostElement(g),b=s._viewManager.getComponent(y),w=c.pascalCaseToDashCase(t.componentType.name);s._renderer.setElementClass(y,w,!0),t.addDestroy(function(){s._renderer.setElementAttribute(y,"class",null),s._renderer.setElementAttribute(y,"style",null);var t=m.indexOf(g);-1!==t&&m.remove(t)}),t.setInstance(b),t.setPageRef(y),e||(e=t.getNavbarViewRef());var _=t.getNavbarTemplateRef();if(e&&_){var T=e.createEmbeddedView(_);t.addDestroy(function(){var t=e.indexOf(T);t>-1&&e.remove(t)})}n.postLoad&&n.postLoad(t),1===s._views.length&&s._zone.runOutsideAngular(function(){u.rafFrames(38,function(){s._renderer.setElementClass(s.elementRef,"has-views",!0)})}),r.wtfEndTimeRange(l),r.wtfLeave(f),i(t)})},e.prototype._setZIndex=function(t,e,n){var i=t&&t.pageRef();i&&(e&&e.isLoaded()?"back"===n?t.zIndex=e.zIndex-1:t.zIndex=e.zIndex+1:t.zIndex=this.initZIndex,t.zIndex!==t._zIndex&&(this._renderer.setElementStyle(i,"z-index",t.zIndex),t._zIndex=t.zIndex))},e.prototype._cachePage=function(t,e){if(e&&""===t._hdnAttr||!e&&""!==t._hdnAttr){t._hdnAttr=e?null:"",this._renderer.setElementAttribute(t.pageRef(),"hidden",t._hdnAttr);var n=t.navbarRef();n&&this._renderer.setElementAttribute(n,"hidden",t._hdnAttr)}},e.prototype._cleanup=function(t,e,n){var i=this,o=[];t=t||this.getActive(),e=e||this.getPrevious(t),this._views.forEach(function(r){if(r)if(r.shouldDestroy&&!n)o.push(r);else if(r.isLoaded()){var s=r===t||r===e;i._cachePage(r,s)}}),o.forEach(function(t){i._remove(t),t.destroy()})},e.prototype.swipeBackStart=function(){return},e.prototype.swipeBackProgress=function(t){},e.prototype.swipeBackEnd=function(t,e){},e.prototype._sbComplete=function(){return},e.prototype.isSwipeBackEnabled=function(t){return arguments.length&&(this._sbEnabled=!!t),this._sbEnabled},e.prototype.canSwipeBack=function(){return this._sbEnabled&&this.canGoBack()},e.prototype.canGoBack=function(){var t=this.getActive();return t?t.enableBack():!1},e.prototype.navbarViewContainer=function(t){return t&&(this._nbContainer=t),this._nbContainer?this._nbContainer:this.parent?this.parent.navbarViewContainer():void 0},e.prototype.anchorElementRef=function(){return arguments.length&&(this._anchorER=arguments[0]),this._anchorER},e.prototype._add=function(t){this._incId(t),this._views.push(t)},e.prototype._incId=function(t){t.id=this.id+"-"+ ++this._ids},e.prototype._remove=function(t){c.array.remove(this._views,t)},e.prototype._getStagedEntering=function(){for(var t=0,e=this._views.length;e>t;t++)if(this._views[t].state===h)return this._views[t];return null},e.prototype._getStagedLeaving=function(){for(var t=0,e=this._views.length;e>t;t++)if(this._views[t].state===m)return this._views[t];return null},e.prototype.getActive=function(){for(var t=this._views.length-1;t>=0;t--)if(this._views[t].state===f&&!this._views[t].shouldDestroy)return this._views[t];return null},e.prototype.getByIndex=function(t){return t<this._views.length&&t>-1?this._views[t]:null},e.prototype.getByHandle=function(t){for(var e=0,n=this._views.length;n>e;e++)if(this._views[e].handle===t)return this._views[e];return null},e.prototype.getByType=function(t){for(var e=0,n=this._views.length;n>e;e++)if(this._views[e].pageType===t)return this._views[e];return null},e.prototype.getPrevious=function(t){if(t)for(var e=this._views.indexOf(t),n=e-1;n>=0;n--)if(!this._views[n].shouldDestroy)return this._views[n];return null},e.prototype.first=function(){for(var t=0,e=this._views.length;e>t;t++)if(!this._views[t].shouldDestroy)return this._views[t];return null},e.prototype.last=function(){for(var t=this._views.length-1;t>=0;t--)if(!this._views[t].shouldDestroy)return this._views[t];return null},e.prototype.indexOf=function(t){return this._views.indexOf(t)},e.prototype.length=function(){for(var t=0,e=0,n=this._views.length;n>e;e++)this._views[e].shouldDestroy||t++;return t},e.prototype.isActive=function(t){return!(!t||t.state!==f)},Object.defineProperty(e.prototype,"rootNav",{get:function(){for(var t=this;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),e.prototype.registerRouter=function(t){this.router=t},e}(s.Ion);e.NavController=p;var f=1,d=2,h=3,m=4,g=-1,v=function(){function t(t){this.data=t||{}}return t.prototype.get=function(t){return this.data[t]},t}();e.NavParams=v},function(t,e,n){function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);
}var o=n(3);e.dom=o,i(n(10))},function(t,e){function n(){}function i(t,e,n){return Math.max(t,Math.min(e,n))}function o(t){return s(t,[].slice.call(arguments,1),!1)}function r(t){return s(t,[].slice.call(arguments,1),!0)}function s(t,n,i){for(var o=0,r=n.length;r>o;++o){var a=n[o];if(a&&(e.isObject(a)||e.isFunction(a)))for(var l=Object.keys(a),c=0,u=l.length;u>c;c++){var p=l[c],f=a[p];i&&e.isObject(f)?(e.isObject(t[p])||(t[p]=e.isArray(f)?[]:{}),s(t[p],[f],!0)):t[p]=f}}return t}function a(t,e,n){var i,o,r,s,a;return function(){r=this,o=arguments,s=new Date;var l=function(){var c=new Date-s;e>c?i=setTimeout(l,e-c):(i=null,n||(a=t.apply(r,o)))},c=n&&!i;return i||(i=setTimeout(l,e)),c&&(a=t.apply(r,o)),a}}function l(t){for(var e=arguments.length-1;e>=1;e--){var n=arguments[e]||{};for(var i in n)n.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=n[i])}return t}function c(t){return void 0===t&&(t=""),t.charAt(0).toLowerCase()+t.substring(1).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}function u(){return++d}function p(t,e){var n={};if(t){var i=t.indexOf("?");if(-1!==i){var o=t.slice(i+1).split("&");o.forEach(function(t){var e=t.split("=");n[e[0].toLowerCase()]=e[1].split("#")[0]})}if(e)return n[e]||""}return n}function f(t,e,n){var i,o,r,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:Date.now(),s=null,r=t.apply(i,o)};return function(){var c=Date.now();a||n.leading!==!1||(a=c);var u=e-(c-a);return i=this,o=arguments,0>=u?(clearTimeout(s),s=null,a=c,r=t.apply(i,o)):s||n.trailing===!1||(s=setTimeout(l,u)),r}}e.noop=n,e.clamp=i,e.extend=o,e.merge=r,e.debounce=a,e.defaults=l,e.isBoolean=function(t){return"boolean"==typeof t},e.isString=function(t){return"string"==typeof t},e.isNumber=function(t){return"number"==typeof t},e.isFunction=function(t){return"function"==typeof t},e.isDefined=function(t){return"undefined"!=typeof t},e.isUndefined=function(t){return"undefined"==typeof t},e.isBlank=function(t){return void 0===t||null===t},e.isObject=function(t){return"object"==typeof t},e.isArray=Array.isArray,e.isTrueProperty=function(t){return"undefined"!=typeof t&&"false"!==t},e.pascalCaseToDashCase=c;var d=0;e.nextUid=u,e.array={find:function(t,e){for(var n=0,i=t.length;i>n;n++)if(e(t[n],n))return t[n]},remove:function(t,n){var i=-1;return i=e.isNumber(n)?n:t.indexOf(n),0>i?!1:(t.splice(i,1),!0)}},e.getQuerystring=p,e.throttle=f},function(t,e,n){function i(t){var e=t.superset();if(e){var n=new a(e);n.parent(t.parent()),n.child(t),n.parent()&&n.parent().child(n),t.parent(n)}}var o=n(10),r=n(3),s=function(){function t(t){var e=this;void 0===t&&(t=[]),this._platforms=t,this._versions={},this._onResizes=[],this._readyPromise=new Promise(function(t){e._readyResolve=t})}return t.prototype.is=function(t){return this._platforms.indexOf(t)>-1},t.prototype.platforms=function(){return this._platforms},t.prototype.versions=function(t){return arguments.length?this._versions[t]:this._versions},t.prototype.version=function(){for(var t in this._versions)if(this._versions[t])return this._versions[t];return{}},t.prototype.ready=function(){return this._readyPromise},t.prototype.prepareReady=function(t){function e(){n._readyResolve(t)}var n=this;this._engineReady?this._engineReady(e):r.ready(e)},t.prototype.on=function(){},t.prototype.onHardwareBackButton=function(){},t.prototype.registerBackButtonAction=function(){},t.prototype.exitApp=function(){},t.prototype.fullScreen=function(){},t.prototype.showStatusBar=function(){},t.prototype.url=function(t){return arguments.length&&(this._url=t,this._qs=o.getQuerystring(t)),this._url},t.prototype.query=function(t){return(this._qs||{})[t]},t.prototype.userAgent=function(t){return arguments.length&&(this._ua=t),this._ua||""},t.prototype.navigatorPlatform=function(t){return arguments.length&&(this._bPlt=t),this._bPlt||""},t.prototype.width=function(){return r.windowDimensions().width},t.prototype.height=function(){return r.windowDimensions().height},t.prototype.isPortrait=function(){return this.width()<this.height()},t.prototype.isLandscape=function(){return!this.isPortrait()},t.prototype.windowResize=function(){var t=this;clearTimeout(t._resizeTimer),t._resizeTimer=setTimeout(function(){r.flushDimensionCache();for(var e=0;e<t._onResizes.length;e++)try{t._onResizes[e]()}catch(n){console.error(n)}},500)},t.prototype.onResize=function(t){this._onResizes.push(t)},t.register=function(t){l[t.name]=t},t.registry=function(){return l},t.get=function(t){return l[t]||{}},t.setDefault=function(t){c=t},t.prototype.testQuery=function(t,e){var n=t.toLowerCase().split(";");return n.indexOf(e)>-1},t.prototype.testUserAgent=function(t){var e=new RegExp(t,"i");return e.test(this._ua||"")},t.prototype.testNavigatorPlatform=function(t){if(t&&this._bPlt){var e=new RegExp(t,"i");return e.test(this._bPlt)}},t.prototype.matchUserAgentVersion=function(t){if(this._ua&&t){var e=this._ua.match(t);if(e)return{major:e[1],minor:e[2]}}},t.prototype.isPlatform=function(t,e){e||(e=t);var n=this.query("ionicplatform");return n?this.testQuery(n,t):this.testUserAgent(e)},t.prototype.load=function(t){var e=null,n=null;this.platformOverride=t;var r=null;for(var s in l)r=this.matchPlatform(s),r&&(r.isEngine?n=r:(!e||r.depth>e.depth)&&(e=r));if(e||(e=new a(c)),e){if(n){n.child(e),e.parent(n),e=n;var u=n.methods();u._engineReady=u.ready,delete u.ready,o.extend(this,u)}for(var p=e;p;)i(p),p=p.child();for(p=e.parent();p;)e=p,p=p.parent();for(p=e;p;)this._platforms.push(p.name()),this._versions[p.name()]=p.version(this),p=p.child()}},t.prototype.matchPlatform=function(t){var e=new a(t),n=e.getRoot(this,0);if(n){n.depth=0;for(var i=n.child();i;)n.depth++,i=i.child()}return n},t}();e.Platform=s;var a=function(){function t(t){this.c=s.get(t),this.isEngine=this.c.isEngine}return t.prototype.name=function(){return this.c.name},t.prototype.settings=function(){return this.c.settings||{}},t.prototype.superset=function(){return this.c.superset},t.prototype.methods=function(){return this.c.methods||{}},t.prototype.parent=function(t){return arguments.length&&(this._parent=t),this._parent},t.prototype.child=function(t){return arguments.length&&(this._child=t),this._child},t.prototype.isMatch=function(t){return t.platformOverride&&!this.isEngine?t.platformOverride===this.c.name:this.c.isMatch?this.c.isMatch(t):!1},t.prototype.version=function(t){if(this.c.versionParser){var e=this.c.versionParser(t);if(e){var n=e.major+"."+e.minor;return{str:n,num:parseFloat(n),major:parseInt(e.major,10),minor:parseInt(e.minor,10)}}}},t.prototype.getRoot=function(e){if(this.isMatch(e)){var n=this.getSubsetParents(this.name());if(!n.length)return this;for(var i=null,o=null,r=0;r<n.length;r++)if(i=new t(n[r]),i.child(this),o=i.getRoot(e))return this.parent(i),o}return null},t.prototype.getSubsetParents=function(t){var e=s.registry(),n=[],i=null;for(var o in e)i=e[o],i.subsets&&i.subsets.indexOf(t)>-1&&n.push(o);return n},t}(),l={},c=null},function(t,e,n){function i(t,e){if(t.instance&&t.instance[e])try{t.instance[e]()}catch(n){console.error(e+": "+n.message)}}var o=n(8),r=function(){function t(t,e,n){void 0===n&&(n={}),this.navCtrl=t,this.componentType=e,this.params=new o.NavParams(n),this.instance={},this.state=0,this._destroys=[],this._loaded=!1}return t.prototype.enableBack=function(){if(this.navCtrl){var t=this.navCtrl.getPrevious(this);return!(!t||t.shouldDestroy)}return!1},t.prototype.setInstance=function(t){this.instance=t},Object.defineProperty(t.prototype,"name",{get:function(){return this.componentType?this.componentType.name:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.navCtrl?this.navCtrl.indexOf(this):-1},enumerable:!0,configurable:!0}),t.prototype.isRoot=function(){return 0===this.index},t.prototype.addDestroy=function(t){this._destroys.push(t)},t.prototype.destroy=function(){for(var t=0;t<this._destroys.length;t++)this._destroys[t]();this._destroys=[]},t.prototype.setNavbarTemplateRef=function(t){this._nbTmpRef=t},t.prototype.getNavbarTemplateRef=function(){return this._nbTmpRef},t.prototype.getNavbarViewRef=function(){return this._nbVwRef},t.prototype.setNavbarViewRef=function(t){this._nbVwRef=t},t.prototype.setPageRef=function(t){this._pgRef=t},t.prototype.pageRef=function(){return this._pgRef},t.prototype.setContentRef=function(t){this._cntRef=t},t.prototype.contentRef=function(){return this._cntRef},t.prototype.setContent=function(t){this._cntDir=t},t.prototype.getContent=function(){return this._cntDir},t.prototype.setNavbar=function(t){this._nbDir=t},t.prototype.getNavbar=function(){return this._nbDir},t.prototype.hasNavbar=function(){return!!this.getNavbar()},t.prototype.navbarRef=function(){var t=this.getNavbar();return t&&t.getElementRef()},t.prototype.titleRef=function(){var t=this.getNavbar();return t&&t.getTitleRef()},t.prototype.navbarItemRefs=function(){var t=this.getNavbar();return t&&t.getItemRefs()},t.prototype.backBtnRef=function(){var t=this.getNavbar();return t&&t.getBackButtonRef()},t.prototype.backBtnTextRef=function(){var t=this.getNavbar();return t&&t.getBackButtonTextRef()},t.prototype.navbarBgRef=function(){var t=this.getNavbar();return t&&t.getBackgroundRef()},t.prototype.setBackButtonText=function(t){var e=this.getNavbar();e&&(e.bbText=t)},t.prototype.showBackButton=function(t){var e=this.getNavbar();e&&(e.hideBackButton=!t)},t.prototype.isLoaded=function(){return this._loaded},t.prototype.loaded=function(){this._loaded=!0,this.shouldDestroy||i(this,"onPageLoaded")},t.prototype.willEnter=function(){this.shouldDestroy||i(this,"onPageWillEnter")},t.prototype.didEnter=function(){var t=this.getNavbar();t&&t.didEnter(),i(this,"onPageDidEnter")},t.prototype.willLeave=function(){i(this,"onPageWillLeave")},t.prototype.didLeave=function(){i(this,"onPageDidLeave")},t.prototype.willUnload=function(){i(this,"onPageWillUnload")},t.prototype.didUnload=function(){i(this,"onPageDidUnload")},t}();e.ViewController=r},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(1),s=n(2),a=n(18),l=n(3),c=function(){function t(t,e,n){var i=this;this.form=e,this.zone=n,n.runOutsideAngular(function(){i.focusOutline(t.get("focusOutline"),document)})}return t.prototype.isOpen=function(){return l.hasFocusedTextInput()},t.prototype.onClose=function(t,e){void 0===e&&(e=u);var n=this,i=null;return t||(i=new Promise(function(e){t=e})),n.zone.runOutsideAngular(function(){function i(){n.isOpen()?setTimeout(i,e):l.rafFrames(30,function(){n.zone.run(function(){console.debug("keyboard closed"),t()})})}setTimeout(i,e)}),i},t.prototype.close=function(){var t=this;l.raf(function(){l.hasFocusedTextInput()&&t.form.focusOut()})},t.prototype.focusOutline=function(t,e){function n(){l.raf(function(){e.body.classList[a?"add":"remove"]("focus-outline")})}function i(t){a||9!=t.keyCode||(a=!0,r())}function o(){a=!1,r()}function r(){n(),s.zone.runOutsideAngular(function(){e.removeEventListener("mousedown",o),e.removeEventListener("touchstart",o),a&&(e.addEventListener("mousedown",o),e.addEventListener("touchstart",o))})}var s=this,a=!1;return t===!0?(a=!0,n()):void(t!==!1&&e.addEventListener("keydown",i))},t=i([r.Injectable(),o("design:paramtypes",["function"==typeof(e="undefined"!=typeof s.Config&&s.Config)&&e||Object,"function"==typeof(n="undefined"!=typeof a.Form&&a.Form)&&n||Object,"function"==typeof(c="undefined"!=typeof r.NgZone&&r.NgZone)&&c||Object])],t);var e,n,c}();e.Keyboard=c;var u=150},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(1),s=n(2),a=function(){function t(t,e,n){this.elementRef=t,this.renderer=n,this.config=e,this.mode=e.get("iconMode")}return t.prototype.ngOnInit=function(){var t=this.elementRef.nativeElement;if("ios"==this.mode&&this.ios)this.name=this.ios;else if("md"==this.mode&&this.md)this.name=this.md;else if(!this.name)for(var e=0,n=t.attributes.length;n>e;e++)if(""===t.attributes[e].value&&/_|item-|is-active|large|small|class/.test(t.attributes[e].name)!==!0){this.name=t.attributes[e].name;break}this.name&&(/^ion-/.test(this.name)||(this.name="ion-"+this.mode+"-"+this.name),this.update())},Object.defineProperty(t.prototype,"isActive",{get:function(){return void 0===this._isActive||this._isActive===!0||"true"===this._isActive},set:function(t){this._isActive=t,this.update()},enumerable:!0,configurable:!0}),t.prototype.update=function(){this.name&&"ios"==this.mode&&(this.isActive?/-outline/.test(this.name)&&(this.name=this.name.replace("-outline","")):/-outline/.test(this.name)||(this.name+="-outline")),this._name!==this.name&&(this._name&&this.renderer.setElementClass(this.elementRef,this._name,!1),this._name=this.name,this.renderer.setElementClass(this.elementRef,this.name,!0),this.renderer.setElementAttribute(this.elementRef,"aria-label",this.name.replace("ion-","").replace("ios-","").replace("md-","").replace("-"," ")))},t=i([r.Directive({selector:"icon",inputs:["name","ios","md","isActive"],host:{role:"img"}}),o("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.ElementRef&&r.ElementRef)&&e||Object,"function"==typeof(n="undefined"!=typeof s.Config&&s.Config)&&n||Object,"function"==typeof(a="undefined"!=typeof r.Renderer&&r.Renderer)&&a||Object])],t);var e,n,a}();e.Icon=a},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(1),s=n(2),a=function(){function t(t,e,n){this.elementRef=e,this.renderer=n,this._role="button",this._size=null,this._style="default",this._shape=null,this._display=null,this._colors=[],this._icon=null;var i=e.nativeElement;return t.get("hoverCSS")===!1&&n.setElementClass(e,"disable-hover",!0),i.hasAttribute("ion-item")?void(this._role=null):(this._readAttrs(i),void this._readIcon(i))}return t.prototype.ngAfterContentInit=function(){this._assignCss(!0)},t.prototype.setRole=function(t){this._role=t},t.prototype._readIcon=function(t){for(var e,n=t.childNodes,i=[],o=0,r=n.length;r>o;o++)e=n[o],3===e.nodeType?""!==e.textContent.trim()&&i.push(d):1===e.nodeType&&("ICON"===e.nodeName?i.push(h):i.push(d));i.length>1?i[0]===h&&i[1]===d?this._icon="icon-left":i[0]===d&&i[1]===h&&(this._icon="icon-right"):1===i.length&&i[0]===h&&(this._icon="icon-only")},t.prototype._readAttrs=function(t){for(var e,n=t.attributes,i=0,o=n.length;o>i;i++)""===n[i].value&&(e=n[i].name,c.indexOf(e)>-1?this._style=e:p.indexOf(e)>-1?this._display=e:u.indexOf(e)>-1?this._shape=e:l.indexOf(e)>-1?this._size=e:f.test(e)||this._colors.push(e))},t.prototype._assignCss=function(t){var e=this,n=this._role;if(n){this.renderer.setElementClass(this.elementRef,n,t),this._setClass(this._style,t),this._setClass(this._shape,t),this._setClass(this._display,t),this._setClass(this._size,t),this._setClass(this._icon,t);var i="default"!==this._style?this._style+"-":"";this._colors.forEach(function(n){e._setClass(i+n,t)})}},t.prototype._setClass=function(t,e){t&&this.renderer.setElementClass(this.elementRef,this._role+"-"+t,e)},t.setRoles=function(t,e){var n=t.toArray();n.forEach(function(t){t.setRole(e)})},t=i([r.Directive({selector:"button,[button]"}),o("design:paramtypes",["function"==typeof(e="undefined"!=typeof s.Config&&s.Config)&&e||Object,"function"==typeof(n="undefined"!=typeof r.ElementRef&&r.ElementRef)&&n||Object,"function"==typeof(a="undefined"!=typeof r.Renderer&&r.Renderer)&&a||Object])],t);var e,n,a}();e.Button=a;var l=["large","small"],c=["clear","outline","solid"],u=["round","fab"],p=["block","full"],f=/_ng|button|left|right/,d=1,h=2},function(t,e,n){var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},s=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}},a=n(1),l=n(5),c=n(4),u=n(2),p=n(11),f=n(13),d=n(72),h=function(t){function e(e,n,i,o,r){t.call(this,n,i),this.app=e,this.platform=o,this.keyboard=r,this.opening=new a.EventEmitter("opening"),this.isOpen=!1,this._preventTime=0,this.isEnabled=!0}return i(e,t),e.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this);var e=this,n=e.content;return e._cntEle=n instanceof Node?n:n&&n.getNativeElement&&n.getNativeElement(),e._cntEle?("left"!==e.side&&"right"!==e.side&&(e.side="left"),e.i