UNPKG

ionic-framework

Version:

The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.

2 lines 292 kB
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(1)},function(t,e,n){function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}i(n(2)),i(n(8)),i(n(23)),i(n(54)),i(n(72)),i(n(73)),i(n(74)),i(n(9)),i(n(79)),i(n(12)),i(n(15)),i(n(14)),i(n(22)),i(n(17)),i(n(83)),n(84),n(85),n(86),n(87),n(88)},function(t,e,n){function i(t){void 0===t&&(t={});var e=new p.Platform,n=new m.NavRegistry(t.pages),i=t.config;i instanceof u.Config||(i=new u.Config(i)),e.url(window.location.href),e.userAgent(window.navigator.userAgent),e.navigatorPlatform(window.navigator.platform),e.load(),i.setPlatform(e);var w=new v.ClickBlock(i.get("clickBlock")),_=new h.Events,T=new y.FeatureDetect;return o(window,document,i,e,w,T),r(window,document,e,_),e.prepareReady(i),[c.IonicApp,s.provide(v.ClickBlock,{useValue:w}),s.provide(u.Config,{useValue:i}),s.provide(p.Platform,{useValue:e}),s.provide(y.FeatureDetect,{useValue:T}),s.provide(h.Events,{useValue:_}),s.provide(m.NavRegistry,{useValue:n}),b.TapClick,d.Form,f.Keyboard,g.Translate,a.ROUTER_PROVIDERS,s.provide(a.LocationStrategy,{useClass:a.HashLocationStrategy}),l.HTTP_PROVIDERS]}function o(t,e,n,i,o,r){var s=e.body,a=n.get("mode"),l=a+"-href",c=e.head.querySelector("link["+l+"]");if(c){var u=c.getAttribute(l);c.removeAttribute(l),c.href=u}s.classList.add(a),i.setDir(e.documentElement.dir,!1),i.setLang(e.documentElement.lang,!1);var p=i.versions();i.platforms().forEach(function(t){var e="platform-"+t;s.classList.add(e);var n=p[t];n&&(e+=n.major,s.classList.add(e),s.classList.add(e+"_"+n.minor))}),n.get("hoverCSS")!==!1&&s.classList.add("enable-hover"),n.get("clickBlock")&&o.enable(),r.run(t,e)}function r(t,e,n,i){t.addEventListener("online",function(t){i.publish("app:online",t)},!1),t.addEventListener("offline",function(t){i.publish("app:offline",t)},!1),t.addEventListener("orientationchange",function(t){i.publish("app:rotated",t)}),t.addEventListener("statusTap",function(t){var i=e.elementFromPoint(n.width()/2,n.height()/2);if(i){var o=w.closest(i,"scroll-content");if(o){var r=new ScrollTo(o);r.start(0,0,300,0)}}}),setTimeout(function(){t.addEventListener("resize",function(){n.windowResize()})},2e3)}var s=n(3),a=n(4),l=n(5),c=n(6),u=n(8),p=n(9),d=n(13),f=n(14),h=n(15),m=n(16),g=n(17),v=n(12),y=n(18),b=n(19),w=n(11);e.ionicProviders=i},function(t,e){t.exports=require("angular2").core},function(t,e){t.exports=require("angular2").router},function(t,e){t.exports=require("angular2").http},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(3),s=n(7),a=n(8),l=n(12),c=n(11),u=function(){function t(t,e,n){this._config=t,this._clickBlock=e,this._zone=n,this._titleSrv=new s.Title,this._title="",this._disTime=0,this._scrollTime=0,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.setScrolling=function(){this._scrollTime=Date.now()},t.prototype.isScrolling=function(){return this._scrollTime+64>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){t.exports=require("angular2").platform.browser},function(t,e,n){var i=n(9),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])){if(!o.isDefined(e))throw"config key is not defined";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 d=this.platform.platforms(),f=0,h=d.length;h>f;f++)this._s.platforms&&(u=this._s.platforms[d[f]],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(d[f]),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,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(11),s=function(){function t(t){var e=this;void 0===t&&(t=[]),this._platforms=t,this._versions={},this._dir=null,this._lang=null,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.setDir=function(t,e){this._dir=(t||"").toLowerCase(),e!==!1&&document.documentElement.setAttribute("dir",t)},t.prototype.dir=function(){return this._dir},t.prototype.isRTL=function(){return"rtl"===this._dir},t.prototype.setLang=function(t,e){this._lang=t,e!==!1&&document.documentElement.setAttribute("lang",t)},t.prototype.lang=function(){return this._lang},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)}},250)},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){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()}this._platforms.indexOf("mobile")>-1&&-1===this._platforms.indexOf("cordova")&&this._platforms.push("mobileweb")},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){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],d=a[p];i&&e.isObject(d)?(e.isObject(t[p])||(t[p]=e.isArray(d)?[]:{}),s(t[p],[d],!0)):t[p]=d}}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++f}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 d(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 f=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=d},function(t,e){function n(t,n){t=Math.ceil(t),2>t?e.raf(n):setTimeout(function(){e.raf(n)},17*(t-1))}function i(t){return s(t,e.CSS.transitionEnd)}function o(t,n){return s(t,e.CSS.animationStart,n)}function r(t,n){return s(t,e.CSS.animationEnd,n)}function s(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 a(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 l(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 c(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 u(t,e,n){return e&&n&&(Math.abs(e.x-n.x)>t||Math.abs(e.y-n.y)>t)}function p(t){return!(!t||document.activeElement!==t)}function d(t){return p(t)&&t.parentElement.querySelector(":focus")===t}function f(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 h(){var t=document.activeElement;return f(t)?t.parentElement.querySelector(":focus")===t:!1}function m(t,e,n){if(t&&C)for(t=n?t:t.parentElement;null!==t;){if(t[C](e))return t;t=t.parentElement}return null}function g(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function v(t,e){t._dimId||(t._dimId=++R,t._dimId%1e3===0&&b());var n=O[t._dimId];if(!n){var i=t.getNativeElement();if(!i.offsetWidth||!i.offsetHeight)return{width:0,height:0,left:0,top:0};n=O[t._dimId]={width:i.offsetWidth,height:i.offsetHeight,left:i.offsetLeft,top:i.offsetTop}}return n}function y(){if(!O.win){if(!window.innerWidth||!window.innerHeight)return{width:0,height:0};O.win={width:window.innerWidth,height:window.innerHeight}}return O.win}function b(){O={}}function w(t){return"static"===(t.style.position||"static")}function _(t){for(var e=t.offsetParent||document;e&&e!==document&&w(e);)e=e.offsetParent;return e||document}function T(t){var e=E(t),n={top:0,left:0},i=_(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)}}e.raf=window.requestAnimationFrame,e.rafFrames=n,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=i,e.animationStart=o,e.animationEnd=r,e.ready=a,e.windowLoad=l,e.pointerCoord=c,e.hasPointerMoved=u,e.isActive=p,e.hasFocus=d,e.isTextInput=f,e.hasFocusedTextInput=h;var C;["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"].some(function(t){"function"==typeof document.documentElement[t]&&(C=t)}),e.closest=m,e.removeElement=g,e.getDimensions=v,e.windowDimensions=y,e.flushDimensionCache=b;var O={},R=0;e.parentOffsetEl=_,e.position=T,e.offset=E},function(t,e){function n(t){clearTimeout(r),r=setTimeout(i,t||a),l||(o.classList.add(s),l=!0)}function i(){clearTimeout(r),l&&(o.classList.remove(s),l=!1)}var o,r,s="click-block-active",a=330,l=!1,c=function(){function t(){}return t.prototype.enable=function(){o=document.createElement("click-block"),document.body.appendChild(o),o.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),this._enabled=!0},t.prototype.show=function(t,e){this._enabled&&(t?n(e):i())},t}();e.ClickBlock=c},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(3),s=function(){function t(){this._inputs=[],this._ids=-1,this._focused=null,this.focusCtrl(document)}return t.prototype.register=function(t){this._inputs.push(t)},t.prototype.deregister=function(t){var e=this._inputs.indexOf(t);e>-1&&this._inputs.splice(e,1),t===this._focused&&(this._focused=null)},t.prototype.focusCtrl=function(t){var e=t.createElement("focus-ctrl");e.setAttribute("aria-hidden",!0),this._blur=t.createElement("button"),this._blur.tabIndex=-1,e.appendChild(this._blur),t.body.appendChild(e)},t.prototype.focusOut=function(){console.debug("focusOut"),document.activeElement&&document.activeElement.blur(),this._blur.focus()},t.prototype.setAsFocused=function(t){this._focused=t},t.prototype.focusNext=function(t){console.debug("focusNext");var e=this._inputs.indexOf(t);if(e>-1&&e+1<this._inputs.length){var n=this._inputs[e+1];if(n!==this._focused)return n.initFocus()}if(e=this._inputs.indexOf(this._focused),e>0){var i=this._inputs[e-1];i&&i.initFocus()}},t.prototype.nextId=function(){return++this._ids},t=i([r.Injectable(),o("design:paramtypes",[])],t)}();e.Form=s},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(3),s=n(8),a=n(13),l=n(11),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),console.debug("keyboard onClose");var n=this,i=0,o=null;return t||(o=new Promise(function(e){t=e})),n.zone.runOutsideAngular(function(){function o(){console.debug("keyboard isOpen",n.isOpen(),i),!n.isOpen()||i>100?l.rafFrames(30,function(){n.zone.run(function(){console.debug("keyboard closed"),t()})}):setTimeout(o,e),i++}setTimeout(o,e)}),o},t.prototype.close=function(){var t=this;console.debug("keyboard close()"),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(3),s=function(){function t(){this.channels=[]}return t.prototype.subscribe=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.channels[t]||(this.channels[t]=[]),n.forEach(function(n){e.channels[t].push(n)})},t.prototype.unsubscribe=function(t,e){var n=this.channels[t];if(!n)return!1;if(!e)return delete this.channels[t],!0;var i=n.indexOf(e);return 0>i?!1:(n.splice(i,1),n.length||delete this.channels[t],!0)},t.prototype.publish=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=this.channels[t];if(!i)return null;var o=[];return i.forEach(function(t){o.push(t(e))}),o},t=i([r.Injectable(),o("design:paramtypes",[])],t)}();e.Events=s},function(t,e){var n=function(){function t(t){void 0===t&&(t=[]),this._pages=new Map(t.map(function(t){return[t.name,t]}))}return t.prototype.get=function(t){return this._pages.get(t)},t.prototype.set=function(t){this._pages.set(t.name,t)},t}();e.NavRegistry=n},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(3),s=function(){function t(){this._transMap={}}return t.prototype.translations=function(t,e){this._transMap[t]=e},t.prototype.setLanguage=function(t){this._language=t},t.prototype.getTranslations=function(t){return this._transMap[t]},t.prototype.translate=function(t,e){if(!e&&!this._language)return t;var n=e||this._language,i=this.getTranslations(n);return i?this._getTranslation(i,t):(console.warn("I18N: No translation for key",t,"using language",n),"")},t.prototype._getTranslation=function(t,e){return t&&t[e]||""},t=i([r.Injectable(),o("design:paramtypes",[])],t)}();e.Translate=s},function(t,e){var n=function(){function t(){}return t.prototype.run=function(t,e){this._results={};for(var n in i)this._results[n]=i[n](t,e,e.body)},t.prototype.has=function(t){return!!this._results[t]},t.add=function(t,e){i[t]=e},t}();e.FeatureDetect=n;var i={};n.add("hairlines",function(t,e,n){var i=!1;if(t.devicePixelRatio>=2){var o=e.createElement("div");o.style.border=".5px solid transparent",n.appendChild(o),1===o.offsetHeight&&(n.classList.add("hairlines"),i=!0),n.removeChild(o)}return i})},function(t,e,n){function i(t){for(var e=t,n=0;4>n&&e;n++){if(o(e))return e;e=e.parentElement}return null}function o(t){if(g.test(t.tagName))return!0;for(var e=t.attributes,n=0,i=e.length;i>n;n++)if(v.test(e[n].name))return!0;return!1}function r(t,e,n){document.addEventListener(t,e,n)}function s(t,e){document.removeEventListener(t,e)}var a=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},l=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},c=n(3),u=n(6),p=n(8),d=n(11),f=n(20),h=n(21),m=function(){function t(t,e,n){var i=this;i.app=t,i.zone=n,i.lastTouch=0,i.disableClick=0,i.lastActivated=0,"ripple"==e.get("activator")?i.activator=new h.RippleActivator(t,e,n):"highlight"==e.get("activator")&&(i.activator=new f.Activator(t,e,n)),i.usePolyfill=e.get("tapPolyfill")===!0,n.runOutsideAngular(function(){r("click",i.click.bind(i),!0),r("touchstart",i.touchStart.bind(i)),r("touchend",i.touchEnd.bind(i)),r("touchcancel",i.pointerCancel.bind(i)),r("mousedown",i.mouseDown.bind(i),!0),r("mouseup",i.mouseUp.bind(i),!0)}),i.pointerMove=function(t){d.hasPointerMoved(b,i.startCoord,d.pointerCoord(t))&&i.pointerCancel(t)}}return t.prototype.touchStart=function(t){this.lastTouch=Date.now(),this.pointerStart(t)},t.prototype.touchEnd=function(t){if(this.lastTouch=Date.now(),this.usePolyfill&&this.startCoord&&this.app.isEnabled()){var e=d.pointerCoord(t);if(!d.hasPointerMoved(y,this.startCoord,e))if(this.disableClick=this.lastTouch+w,this.app.isScrolling())console.debug("click from touch prevented by scrolling "+Date.now());else{console.debug("create click from touch "+Date.now());var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,1,0,0,e.x,e.y,!1,!1,!1,!1,0,null),n.isIonicTap=!0,t.target.dispatchEvent(n)}}this.pointerEnd(t)},t.prototype.mouseDown=function(t){this.isDisabledNativeClick()?(console.debug("mouseDown prevent "+t.target.tagName+" "+Date.now()),t.stopPropagation()):this.lastTouch+w<Date.now()&&this.pointerStart(t)},t.prototype.mouseUp=function(t){this.isDisabledNativeClick()&&(console.debug("mouseUp prevent "+t.target.tagName+" "+Date.now()),t.preventDefault(),t.stopPropagation()),this.lastTouch+w<Date.now()&&this.pointerEnd(t)},t.prototype.pointerStart=function(t){var e=i(t.target);if(e){this.startCoord=d.pointerCoord(t);var n=Date.now();this.lastActivated+150<n&&(this.activator&&this.activator.downAction(t,e,this.startCoord.x,this.startCoord.y),this.lastActivated=n),this.moveListeners(!0)}else this.startCoord=null},t.prototype.pointerEnd=function(t){this.moveListeners(!1),this.activator&&this.activator.upAction()},t.prototype.pointerCancel=function(t){console.debug("pointerCancel from "+t.type+" "+Date.now()),this.activator&&this.activator.clearState(),this.moveListeners(!1)},t.prototype.moveListeners=function(t){s(this.usePolyfill?"touchmove":"mousemove",this.pointerMove),t&&r(this.usePolyfill?"touchmove":"mousemove",this.pointerMove)},t.prototype.click=function(t){var e=null;this.app.isEnabled()?!t.isIonicTap&&this.isDisabledNativeClick()&&(e="nativeClick"):e="appDisabled",null!==e&&(console.debug("click prevent "+e+" "+Date.now()),t.preventDefault(),t.stopPropagation())},t.prototype.isDisabledNativeClick=function(){return this.disableClick>Date.now()},t=a([c.Injectable(),l("design:paramtypes",["function"==typeof(e="undefined"!=typeof u.IonicApp&&u.IonicApp)&&e||Object,"function"==typeof(n="undefined"!=typeof p.Config&&p.Config)&&n||Object,"function"==typeof(o="undefined"!=typeof c.NgZone&&c.NgZone)&&o||Object])],t);var e,n,o}();e.TapClick=m,e.isActivatable=o;var g=/^(A|BUTTON)$/,v=/tappable|button/i,y=4,b=10,w=2500},function(t,e,n){var i=n(11),o=function(){function t(t,e,n){this.app=t,this.zone=n,this.queue=[],this.active=[],this.clearStateDefers=5,this.clearAttempt=0,this.activatedClass=e.get("activatedClass")||"activated",this.x=0,this.y=0}return t.prototype.downAction=function(t,e,n,o,r){function s(){for(var t,e=0;e<a.queue.length;e++)t=a.queue[e],t&&t.parentNode&&(a.active.push(t),t.classList.add(a.activatedClass));a.queue=[]}var a=this;return a.disableActivated(t)?!1:(a.x=n,a.y=o,a.queue.push(e),this.zone.runOutsideAngular(function(){i.rafFrames(2,s)}),!0)},t.prototype.upAction=function(){function t(){e.clearState()}var e=this;this.zone.runOutsideAngular(function(){i.rafFrames(e.clearStateDefers,t)})},t.prototype.clearState=function(){var t=this;this.app.isEnabled()?this.deactivate():setTimeout(function(){t.clearState()},600)},t.prototype.deactivate=function(){function t(){for(var t=0;t<e.active.length;t++)e.active[t].classList.remove(e.activatedClass);e.active=[]}var e=this;e.queue=[],i.rafFrames(2,t)},t.prototype.disableActivated=function(t){if(t.defaultPrevented)return!0;for(var e=t.target,n=0;4>n&&e;n++){if(e.hasAttribute("disable-activated"))return!0;e=e.parentElement}return!1},t}();e.Activator=o},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(20),r=n(22),s=n(11),a=function(t){function e(e,n,i){t.call(this,e,n,i),this.expands={},this.fades={},this.expandSpeed=null}return i(e,t),e.prototype.downAction=function(e,n,i,o){var r=this;t.prototype.downAction.call(this,e,n,i,o)&&(this.expandSpeed=c,this.zone.runOutsideAngular(function(){s.raf(function(){var t=n.getBoundingClientRect();s.raf(function(){r.createRipple(n,i,o,t)})})}))},e.prototype.createRipple=function(t,e,n,i){var o=this,a=e-i.left,c=n-i.top,u=2*Math.max(Math.abs(i.width-a),a),d=2*Math.max(Math.abs(i.height-c),c),f=Math.max(Math.sqrt(Math.pow(u,2)+Math.pow(d,2)),64),h=Math.sqrt(i.width+i.height),m=1e3*Math.sqrt(h/l)+.5,g=document.createElement("md-ripple"),v=Date.now(),y=g.style;y.width=y.height=f+"px",y.marginTop=y.marginLeft=-(f/2)+"px",y.left=a+"px",y.top=c+"px",t.appendChild(g),this.fades[v]=new r.Animation(g,{renderDelay:0}),this.fades[v].fadeOut().duration(p).playbackRate(1).onFinish(function(){s.raf(function(){o.fades[v].dispose(!0),delete o.fades[v]})}),this.expands[v]=new r.Animation(g,{renderDelay:0}),this.expands[v].fromTo("scale","0.001","1").duration(m).playbackRate(this.expandSpeed).onFinish(function(){ o.expands[v].dispose(),delete o.expands[v],o.next()}).play()},e.prototype.upAction=function(){var t=this;this.deactivate(),this.expandSpeed=1,this.zone.runOutsideAngular(function(){s.rafFrames(4,function(){t.next()})})},e.prototype.next=function(){var t,e=Date.now();for(t in this.expands)parseInt(t,10)+4e3<e?(this.expands[t].dispose(!0),delete this.expands[t]):this.expands[t].playbackRate()===c&&this.expands[t].playbackRate(u);for(t in this.fades)parseInt(t,10)+4e3<e?(this.fades[t].dispose(!0),delete this.fades[t]):this.fades[t].isPlaying||(this.fades[t].isPlaying=!0,this.fades[t].play())},e.prototype.clearState=function(){this.deactivate(),this.next()},e}(o.Activator);e.RippleActivator=a;var l=512,c=.35,u=3,p=700},function(t,e,n){function i(t,e,n,i){i.opts=i.opts||{};var o,s,l,c,u,p,d,f=i.opts.increment||.04,h=g[i.name];for(o=f;1-f>=o;o+=f){s={},l=!1;for(c in n)u=n[c],u.tween&&(p=e[c].num,d=u.num-p,s[c]={value:a(h(o,i.opts)*d+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,f.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,f.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(11),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 d(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(t,e,n){void 0===n&&(n={});var i=v[n.animation];return i||(i=v["ios-transition"]),new i(t,e,n)},t.register=function(t,e){v[t]=e},t}();e.Animation=p;var d=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}(),f=["translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","perspective"],h=f.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=n(24),o=n(25),r=n(26),s=n(35),a=n(44),l=n(43),c=n(45),u=n(46),p=n(48),d=n(49),f=n(50),h=n(52),m=n(55),g=n(56),v=n(59),y=n(60),b=n(42),w=n(41),_=n(61),T=n(62),E=n(63),C=n(64),O=n(65),R=n(66),S=n(67),x=n(68),I=n(69),P=n(70),k=n(40),A=n(53),D=n(71);e.IONIC_DIRECTIVES=[i.CORE_DIRECTIVES,i.FORM_DIRECTIVES,o.OverlayNav,r.Menu,s.MenuToggle,a.MenuClose,l.Button,c.Blur,u.Content,p.Scroll,d.Refresher,g.List,g.ListHeader,v.Item,y.ItemSliding,f.Slides,f.Slide,f.SlideLazy,h.Tabs,m.Tab,b.Toolbar,b.ToolbarTitle,b.ToolbarItem,w.Icon,S.Searchbar,S.SearchbarInput,O.Segment,O.SegmentButton,_.Checkbox,R.RadioGroup,R.RadioButton,T.Toggle,E.TextInput,E.TextInputElement,C.Label,x.Nav,k.NavbarTemplate,k.Navbar,I.NavPush,I.NavPop,P.NavRouter,A.IdRef,D.ShowWhen,D.HideWhen]},function(t,e){t.exports=require("angular2").common},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(3),s=function(){function t(){console.warn("<ion-overlay> is no longer needed and can be safely removed."),console.warn("https://github.com/driftyco/ionic2/blob/master/CHANGELOG.md#overlay-refactor"),console.warn("See the v2 docs for an update on how overlays work.")}return t=i([r.Directive({selector:"ion-overlay"}),o("design:paramtypes",[])],t)}();e.OverlayNav=s},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(3),l=n(27),c=n(6),u=n(8),p=n(9),d=n(14),f=n(28),h=function(t){function e(e,n,i,o,r,s){t.call(this,e,n),this.app=i,this.platform=o,this.keyboard=r,this.zone=s,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.id||(e.id=e.side+"Menu",e.app.getComponent(e.id)&&(e.id+=++g),e.app.register(e.id,e)),e._initGesture(),e._initType(e.type),e._cntEle.classList.add("menu-content"),e._cntEle.classList.add("menu-content-"+e.type),void(e.onContentClick=function(t){e.isEnabled&&(t.preventDefault(),t.stopPropagation(),e.close())})):console.error('Menu: must have a [content] element to listen for drag events on. Example:\n\n<ion-menu [content]="content"></ion-menu>\n\n<ion-nav #content></ion-nav>')},e.prototype._initGesture=function(){var t=this;this.zone.runOutsideAngular(function(){switch(t.side){case"right":t._gesture=new f.RightMenuGesture(t);break;case"left":t._gesture=new f.LeftMenuGesture(t)}t._targetGesture=new f.TargetGesture(t)})},e.prototype._initType=function(t){t=t&&t.trim().toLowerCase(),t||(t=this.config.get("menuType")),this.type=t},e.prototype._getType=function(){return this._type||(this._type=new m[this.type](this),this.config.get("animate")===!1&&(this._type.open.duration(33),this._type.close.duration(33))),this._type},e.prototype.setOpen=function(t){var e=this;return t===this.isOpen||this._isPrevented()?Promise.resolve():(this._before(),this._getType().setOpen(t).then(function(){e._after(t)}))},e.prototype.setProgressStart=function(){!this._isPrevented()&&this.isEnabled&&(this._before(),this._getType().setProgressStart(this.isOpen))},e.prototype.setProgess=function(t){this.isEnabled&&(this._prevent(),this._getType().setProgess(t),this.opening.next(t))},e.prototype.setProgressEnd=function(t){var e=this;this.isEnabled&&(this._prevent(),this._getType().setProgressEnd(t).then(function(t){e._after(t)}))},e.prototype._before=function(){this.isEnabled&&(this.getNativeElement().classList.add("show-menu"),this.getBackdropElement().classList.add("show-backdrop"),this._prevent(),this.keyboard.close())},e.prototype._after=function(t){(this.isEnabled&&t||!t)&&(this._prevent(),this.isOpen=t,this._cntEle.classList[t?"add":"remove"]("menu-content-open"),this._cntEle.removeEventListener("click",this.onContentClick),t?this._cntEle.addEventListener("click",this.onContentClick):(this.getNativeElement().classList.remove("show-menu"),this.getBackdropElement().classList.remove("show-backdrop")))},e.prototype._prevent=function(){this._preventTime=Date.now()+20},e.prototype._isPrevented=function(){return this._preventTime>Date.now()},e.prototype.open=function(){return this.setOpen(!0)},e.prototype.close=function(){return this.setOpen(!1)},e.prototype.toggle=function(){return this.setOpen(!this.isOpen)},e.prototype.enable=function(t){return this.isEnabled=t,t||this.close(),this},e.prototype.getMenuElement=function(){return this.getNativeElement()},e.prototype.getContentElement=function(){return this._cntEle},e.prototype.getBackdropElement=function(){return this.backdrop.elementRef.nativeElement},e.register=function(t,e){m[t]=e},e.prototype.ngOnDestroy=function(){this.app.unregister(this.id),this._gesture&&this._gesture.destroy(),this._targetGesture&&this._targetGesture.destroy(),this._type&&this._type.ngOnDestroy(),this._cntEle=null},e.getById=function(t,e){var n=null;if(e){if(n=t.getComponent(e),!n)return void console.error('Menu with id "'+e+'" cannot be found for menuToggle')}else if(n=t.getComponent("leftMenu"),n||(n=t.getComponent("rightMenu")),!n)return