UNPKG

ionic-framework

Version:

An advanced HTML5 mobile app framework built on Angular2

4 lines 305 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(7)),i(n(24)),i(n(86)),i(n(87)),i(n(88)),i(n(8)),i(n(92)),i(n(6)),i(n(11)),i(n(16)),i(n(13)),i(n(47)),i(n(46)),i(n(23)),i(n(96)),n(97),n(98),n(99),n(100),n(101)},function(t,e,n){function i(t){void 0===t&&(t={});var e=new y.Platform,n=new g.NavRegistry(t.pages),i=t.config;i instanceof p.Config||(i=new p.Config(i)),e.setUrl(window.location.href),e.setUserAgent(window.navigator.userAgent),e.setNavigatorPlatform(window.navigator.platform),e.load(),i.setPlatform(e);var _=new c.ClickBlock,b=new u.Events,E=new h.FeatureDetect;return o(window,document,i,e,_,E),r(window,document,e,b),e.prepareReady(i),[f.IonicApp,s.provide(c.ClickBlock,{useValue:_}),s.provide(p.Config,{useValue:i}),s.provide(y.Platform,{useValue:e}),s.provide(h.FeatureDetect,{useValue:E}),s.provide(u.Events,{useValue:b}),s.provide(g.NavRegistry,{useValue:n}),w.TapClick,d.Form,m.Keyboard,v.MenuController,T.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 p=c.getAttribute(l);c.removeAttribute(l),c.href=p}s.classList.add(a),i.setDir(e.documentElement.dir,!1),i.setLang(e.documentElement.lang,!1);var u=i.versions();i.platforms().forEach(function(t){var e="platform-"+t;s.classList.add(e);var n=u[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=_.closest(i,"scroll-content");if(o){var r=new b.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),p=n(7),u=n(11),h=n(12),d=n(13),f=n(14),m=n(16),v=n(17),g=n(18),y=n(8),_=n(10),b=n(19),w=n(20),T=n(23);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){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(){this._enabled=!1}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=n(8),o=n(9),r=function(){function t(t){this._c={},this._s={},this._s=t&&o.isObject(t)&&!o.isArray(t)?t:{}}return t.prototype.get=function(e,n){if(void 0===n&&(n=null),!o.isDefined(this._c[e])){if(!o.isDefined(e))throw"config key is not defined";var r=void 0,s=this._s[e],a=void 0,l=void 0,c=void 0,p=void 0,u=null;if(this.platform){var h=this.platform.query("ionic"+e.toLowerCase());if(o.isDefined(h))return this._c[e]="true"===h?!0:"false"===h?!1:h;for(var d=this.platform.platforms(),f=0,m=d.length;m>f;f++)this._s.platforms&&(u=this._s.platforms[d[f]],u&&(o.isDefined(u[e])&&(r=u[e]),u=t.getModeConfig(u.mode),u&&o.isDefined(u[e])&&(a=u[e]))),u=i.Platform.get(d[f]),u&&u.settings&&(o.isDefined(u.settings[e])&&(c=u.settings[e]),u=t.getModeConfig(u.settings.mode),u&&o.isDefined(u[e])&&(p=u[e]))}u=t.getModeConfig(this._s.mode),u&&o.isDefined(u[e])&&(l=u[e]),this._c[e]=o.isDefined(r)?r:o.isDefined(s)?s:o.isDefined(a)?a:o.isDefined(l)?l:o.isDefined(c)?c:o.isDefined(p)?p:null}var v;return v=o.isFunction(this._c[e])?this._c[e](this.platform):this._c[e],null!==v?v:n},t.prototype.getBoolean=function(t){var e=this.get(t);return!(!e&&"true"!==e)},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.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.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(9),r=n(10),s=function(){function t(t){var e=this;void 0===t&&(t=[]),this._versions={},this._onResizes=[],this._platforms=t,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.setUrl=function(t){this._url=t,this._qs=o.getQuerystring(t)},t.prototype.url=function(){return this._url},t.prototype.query=function(t){return(this._qs||{})[t]},t.prototype.setUserAgent=function(t){this._ua=t},t.prototype.userAgent=function(){return this._ua||""},t.prototype.setNavigatorPlatform=function(t){this._bPlt=t},t.prototype.navigatorPlatform=function(){return 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._resizeTm),t._resizeTm=setTimeout(function(){r.flushDimensionCache();for(var e=0;e<t._onResizes.length;e++)try{t._onResizes[e]()}catch(n){}},200)},t.prototype.onResize=function(t){var e=this;return e._onResizes.push(t),function(){var n=e._onResizes.indexOf(t);n>-1&&e._onResizes.splice(n,1)}},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 p=n.methods();p._engineReady=p.ready,delete p.ready,o.assign(this,p)}for(var u=e;u;)i(u),u=u.child;for(u=e.parent;u;)e=u,u=u.parent;for(u=e;u;)this._platforms.push(u.name()),this._versions[u.name()]=u.version(this),u=u.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);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.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(t,e,n){return Math.max(t,Math.min(e,n))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return"function"!=typeof Object.assign?r(t[0],[].slice.call(t,1),!1):Object.assign.apply(null,t)}function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return r(t,[].slice.call(arguments,1),!0)}function r(t,n,i){for(var o=0,s=n.length;s>o;++o){var a=n[o];if(a&&(e.isObject(a)||e.isFunction(a)))for(var l=Object.keys(a),c=0,p=l.length;p>c;c++){var u=l[c],h=a[u];i&&e.isObject(h)?(e.isObject(t[u])||(t[u]=e.isArray(h)?[]:{}),r(t[u],[h],!0)):t[u]=h}}return t}function s(t,e,n){void 0===n&&(n=!1);var i,o,r,s,a;return function(){r=this,o=arguments,s=Date.now();var l=function(){var c=Date.now()-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 a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=arguments.length-1;i>=1;i--){var o=arguments[i]||{};for(var r in o)o.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=o[r])}return t}function l(t){return void 0===t&&(t=""),t.charAt(0).toLowerCase()+t.substring(1).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}function c(){return++h}function p(t){var e={};if(t){var n=t.indexOf("?");if(-1!==n){var i=t.slice(n+1).split("&");i.forEach(function(t){var n=t.split("=");e[n[0].toLowerCase()]=n[1].split("#")[0]})}}return e}function u(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 p=e-(c-a);return i=this,o=arguments,0>=p?(clearTimeout(s),s=null,a=c,r=t.apply(i,o)):s||n.trailing===!1||(s=setTimeout(l,p)),r}}e.clamp=n,e.assign=i,e.merge=o,e.debounce=s,e.defaults=a,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"string"==typeof t?(t=t.toLowerCase().trim(),"true"===t||"on"===t||""===t):!!t},e.pascalCaseToDashCase=l;var h=0;e.nextUid=c,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=u},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,n){function i(){e.CSS.transitionEnd.split(" ").forEach(function(e){t.removeEventListener(e,o)})}function o(e){t===e.target&&(i(),n(e))}return t?(e.CSS.transitionEnd.split(" ").forEach(function(e){t.addEventListener(e,o)}),i):void 0}function o(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 r(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 s(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 a(t,e,n){return e&&n&&(Math.abs(e.x-n.x)>t||Math.abs(e.y-n.y)>t)}function l(t){return!(!t||document.activeElement!==t)}function c(t){return l(t)&&t.parentElement.querySelector(":focus")===t}function p(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 u(){var t=document.activeElement;return p(t)?t.parentElement.querySelector(":focus")===t:!1}function h(t,e){for(var n=t.attributes,i=0;i<n.length;i++){var o=n[i];y.test(o.name)||e.setAttribute(o.name,o.value)}}function d(t,e,n){if(t&&_)for(t=n?t:t.parentElement;null!==t;){if(t[_](e))return t;t=t.parentElement}return null}function f(t,e){var n=w[e];if(!n){if(!t.offsetWidth||!t.offsetHeight)return{width:0,height:0,left:0,top:0};n=w[e]={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop}}return n}function m(t){delete w[t]}function v(){if(!w.win){if(!window.innerWidth||!window.innerHeight)return{width:0,height:0};w.win={width:window.innerWidth,height:window.innerHeight}}return w.win}function g(){w={}}/*! @author Paul Irish */ /*! @source https://gist.github.com/paulirish/1579671 */ !function(){var t=0,e=window;e.requestAnimationFrame||(e.requestAnimationFrame=function(e,n){var i=Date.now(),o=Math.max(0,16-(i-t)),r=window.setTimeout(function(){e(i+o)},o);return t=i+o,r}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(t){clearTimeout(t)})}(),e.raf=window.requestAnimationFrame.bind(window),e.cancelRaf=window.cancelAnimationFrame.bind(window),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.transitionDuration=(i?"-webkit-":"")+"transition-duration",e.CSS.transitionTimingFn=(i?"-webkit-":"")+"transition-timing-function",e.CSS.transitionDelay=(i?"-webkit-":"")+"transition-delay",e.CSS.transitionEnd=(i?"webkitTransitionEnd ":"")+"transitionend"}(),e.transitionEnd=i,e.ready=o,e.windowLoad=r,e.pointerCoord=s,e.hasPointerMoved=a,e.isActive=l,e.hasFocus=c,e.isTextInput=p,e.hasFocusedTextInput=u;var y=/^(value|checked|disabled|type|class|style|id|autofocus|autocomplete|autocorrect)$/i;e.copyInputAttributes=h;var _,b=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"];b.some(function(t){return"function"==typeof document.documentElement[t]?(_=t,!0):void 0}),e.closest=d,e.getDimensions=f,e.clearDimensions=m,e.windowDimensions=v,e.flushDimensionCache=g;var w={}},function(t,e){var n=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}();e.Events=n},function(t,e){var n=function(){function t(){this._results={}}return t.prototype.run=function(t,e){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){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._focused=null,this._ids=-1,this._inputs=[],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(){var t=document.activeElement;t&&t.blur(),this._blur.focus()},t.prototype.setAsFocused=function(t){this._focused=t},t.prototype.tabFocus=function(t){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(15),a=n(7),l=n(6),c=function(){function t(t,e,n){this._config=t,this._clickBlock=e,this._zone=n,this._cmps={},this._disTime=0,this._scrollTime=0,this._title="",this._titleSrv=new s.Title,this._isProd=!1}return t.prototype.setTitle=function(t){t!==this._title&&(this._title=t,this._titleSrv.setTitle(t))},t.prototype.isProd=function(){return this._isProd},t.prototype.setProd=function(t){this._isProd=!!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._cmps[t]=e},t.prototype.unregister=function(t){delete this._cmps[t]},t.prototype.getRegisteredComponent=function(t){for(var e in this._cmps){var n=this._cmps[e];if(n instanceof t)return n}},t.prototype.getComponent=function(t){return/menu/i.test(t),this._cmps[t]},t=i([r.Injectable(),o("design:paramtypes",[a.Config,l.ClickBlock,r.NgZone])],t)}();e.IonicApp=c},function(t,e){t.exports=require("angular2").platform.browser},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(13),l=n(10),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=p);var n=this,i=0,o=null;return t||(o=new Promise(function(e){t=e})),n._zone.runOutsideAngular(function(){function o(){!n.isOpen()||i>100?l.rafFrames(30,function(){n._zone.run(function(){t()})}):setTimeout(o,e),i++}setTimeout(o,e)}),o},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",[s.Config,a.Form,r.NgZone])],t)}();e.Keyboard=c;var p=150},function(t,e){var n=function(){function t(){this._menus=[]}return t.prototype.open=function(t){var e=this.get(t);return e?e.open():Promise.resolve(!1)},t.prototype.close=function(t){var e;return e=t?this.get(t):this._menus.find(function(t){return t.isOpen}),e?e.close():Promise.resolve(!1)},t.prototype.toggle=function(t){var e=this.get(t);return e?e.toggle():Promise.resolve(!1)},t.prototype.enable=function(t,e){var n=this.get(e);return n?n.enable(t):void 0},t.prototype.swipeEnable=function(t,e){var n=this.get(e);return n?n.swipeEnable(t):void 0},t.prototype.isOpen=function(t){var e=this.get(t);return e&&e.isOpen||!1},t.prototype.isEnabled=function(t){var e=this.get(t);return e&&e.enabled||!1},t.prototype.get=function(t){var e;return"left"===t||"right"===t?(e=this._menus.find(function(e){return e.side===t&&e.enabled}),e?e:this._menus.find(function(e){return e.side===t})||null):t?this._menus.find(function(e){return e.id===t})||null:(e=this._menus.find(function(t){return t.enabled}),e?e:this._menus.length?this._menus[0]:null)},t.prototype.getMenus=function(){return this._menus},t.prototype.register=function(t){this._menus.push(t)},t.prototype.unregister=function(t){var e=this._menus.indexOf(t);e>-1&&this._menus.splice(e,1)},t.registerType=function(t,e){i[t]=e},t.create=function(t,e){return new i[t](e)},t}();e.MenuController=n;var i={}},function(t,e){var n=function(){function t(t){void 0===t&&(t=[]);var e=t.map(function(t){return[t.name,t]});this._pages=new Map;for(var n=0;n<e.length;n++){var i=e[n];this._pages.set(i[0],i[1])}}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){function i(t){return--t*t*t+1}var o=n(10),r=function(){function t(t){"string"==typeof t&&(t=document.querySelector(t)),t&&(t.nativeElement&&(t=t.nativeElement),1===t.nodeType&&(this._el=t))}return t.prototype.start=function(t,e,n,r){var s=this;if(!s._el)return Promise.resolve();t=t||0,e=e||0,r=r||0;var a=s._el.scrollTop,l=s._el.scrollLeft,c=Math.abs(t-l),p=Math.abs(e-a);return r>=p&&r>=c?(s._el=null,Promise.resolve()):new Promise(function(r,c){function p(){if(!s._el)return r();var h=Math.min(1,(Date.now()-u)/n),d=i(h);a!=e&&(s._el.scrollTop=d*(e-a)+a),l!=t&&(s._el.scrollLeft=Math.round(d*(t-l)+l)),1>h&&s.isPlaying?o.raf(p):s.isPlaying?(s._el=null,r()):(s._el=null,c())}var u;s.isPlaying=!0,o.raf(function(){u=Date.now(),o.raf(p)})})},t.prototype.stop=function(){this.isPlaying=!1},t.prototype.dispose=function(){this.stop(),this._el=null},t}();e.ScrollTo=r},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(v.test(t.tagName))return!0;for(var e=t.attributes,n=0,i=e.length;i>n;n++)if(g.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),p=n(14),u=n(7),h=n(10),d=n(21),f=n(22),m=function(){function t(t,e,n){this.app=e,this.zone=n,this.lastTouch=0,this.disableClick=0,this.lastActivated=0;var i=this;"ripple"==t.get("activator")?i.activator=new f.RippleActivator(e,t,n):"highlight"==t.get("activator")&&(i.activator=new d.Activator(e,t,n)),i.usePolyfill=t.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){h.hasPointerMoved(_,i.startCoord,h.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=h.pointerCoord(t);if(!h.hasPointerMoved(y,this.startCoord,e))if(this.disableClick=this.lastTouch+b,this.app.isScrolling());else{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()?t.stopPropagation():this.lastTouch+b<Date.now()&&this.pointerStart(t)},t.prototype.mouseUp=function(t){this.isDisabledNativeClick()&&(t.preventDefault(),t.stopPropagation()),this.lastTouch+b<Date.now()&&this.pointerEnd(t)},t.prototype.pointerStart=function(t){var e=i(t.target);if(e){this.startCoord=h.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){var e=i(t.target);e&&this.activator&&this.activator.upAction(t,e,this.startCoord.x,this.startCoord.y),this.moveListeners(!1)},t.prototype.pointerCancel=function(t){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&&(t.preventDefault(),t.stopPropagation())},t.prototype.isDisabledNativeClick=function(){return this.disableClick>Date.now()},t=a([c.Injectable(),l("design:paramtypes",[u.Config,p.IonicApp,c.NgZone])],t)}();e.TapClick=m,e.isActivatable=o;var v=/^(A|BUTTON)$/,g=/tappable|button/i,y=4,_=10,b=2500},function(t,e,n){var i=n(10),o=function(){function t(t,e,n){this.app=t,this._zone=n,this._queue=[],this._active=[],this._css=e.get("activatedClass")||"activated"}return t.prototype.downAction=function(t,e,n,o){var r=this;r.disableActivated(t)||(r._queue.push(e),this._zone.runOutsideAngular(function(){i.rafFrames(2,function(){for(var t,e=0;e<r._queue.length;e++)t=r._queue[e],t&&t.parentNode&&(r._active.push(t),t.classList.add(r._css));r._queue=[]})}))},t.prototype.upAction=function(t,e,n,o){function s(){a.clearState()}var a=this;this._zone.runOutsideAngular(function(){i.rafFrames(r,s)})},t.prototype.clearState=function(){var t=this;this.app.isEnabled()?this.deactivate():setTimeout(function(){t.clearState()},600)},t.prototype.deactivate=function(){var t=this;t._queue=[],i.rafFrames(2,function(){for(var e=0;e<t._active.length;e++)t._active[e].classList.remove(t._css);t._active=[]})},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;var r=5},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(21),r=n(10),s=(window,function(t){function e(e,n,i){t.call(this,e,n,i)}return i(e,t),e.prototype.downAction=function(t,e,n,i){var o=this;o.disableActivated(t)||(o._queue.push(e),this._zone.runOutsideAngular(function(){r.raf(function(){var t;for(t=0;t<o._queue.length;t++){var n=o._queue[t];if(n&&n.parentNode){o._active.push(n),n.classList.add(o._css);for(var i=n.childElementCount;i--;){var s=n.children[i];if("ION-BUTTON-EFFECT"===s.tagName){s.style.left="-9999px",s.style.opacity="",s.style[r.CSS.transform]="scale(0.001) translateZ(0px)",s.style[r.CSS.transition]="";var a=e.getBoundingClientRect();s.$top=a.top,s.$left=a.left,s.$width=a.width,s.$height=a.height;break}}}}o._queue=[]})}))},e.prototype.upAction=function(e,n,i,o){for(var s=n.childElementCount;s--;){var l=n.children[s];if("ION-BUTTON-EFFECT"===l.tagName){var c=i-l.$left,p=o-l.$top,u=2*Math.max(Math.abs(l.$width-c),c),h=2*Math.max(Math.abs(l.$height-p),p),d=Math.min(Math.max(Math.sqrt(Math.pow(u,2)+Math.pow(h,2)),64),240);n.hasAttribute("ion-item")&&(d=Math.min(d,140));var f=Math.sqrt(l.$width+l.$height),m=Math.max(1600*Math.sqrt(f/a)+.5,260),v=.7*m,g=m-v;l.style.width=l.style.height=d+"px",l.style.marginTop=l.style.marginLeft=-(d/2)+"px",l.style.left=c+"px",l.style.top=p+"px",l.style.opacity="0",l.style[r.CSS.transform]="scale(1) translateZ(0px)",l.style[r.CSS.transition]="transform "+m+"ms,opacity "+v+"ms "+g+"ms"}}t.prototype.upAction.call(this,e,n,i,o)},e.prototype.deactivate=function(){var t=this;t._queue=[],r.rafFrames(2,function(){for(var e=0;e<t._active.length;e++)t._active[e].classList.remove(t._css);t._active=[]})},e}(o.Activator));e.RippleActivator=s;var a=300},function(t,e){var n=function(){function t(){this._transMap={},this._language={}}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):""},t.prototype._getTranslation=function(t,e){return t&&t[e]||""},t}();e.Translate=n},function(t,e,n){var i=n(25),o=n(26),r=n(27),s=n(36),a=n(48),l=n(49),c=n(42),p=n(50),u=n(51),h=n(52),d=n(53),f=n(54),m=n(56),v=n(57),g=n(58),y=n(60),_=n(62),b=n(64),w=n(66),T=n(68),E=n(41),C=n(40),S=n(55),R=n(69),O=n(70),x=n(72),I=n(73),P=n(74),k=n(67),D=n(77),A=n(78),L=n(79),M=n(80),j=n(81),N=n(82),B=n(83),z=n(39),F=n(84),G=n(85);e.IONIC_DIRECTIVES=[i.CORE_DIRECTIVES,i.FORM_DIRECTIVES,o.OverlayNav,r.Menu,s.MenuToggle,a.MenuClose,l.Badge,c.Button,p.Blur,u.Content,h.Scroll,d.InfiniteScroll,f.InfiniteScrollContent,m.Refresher,v.RefresherContent,b.List,b.ListHeader,w.Item,T.ItemSliding,g.Slides,g.Slide,g.SlideLazy,y.Tabs,_.Tab,E.Toolbar,E.ToolbarTitle,E.ToolbarItem,C.Icon,S.Spinner,M.Searchbar,M.SearchbarInput,D.Segment,D.SegmentButton,R.Checkbox,L.RadioGroup,A.RadioButton,O.Select,x.Option,I.Toggle,P.TextArea,P.TextInput,k.Label,j.Nav,z.NavbarTemplate,z.Navbar,N.NavPush,N.NavPop,B.NavRouter,F.IdRef,G.ShowWhen,G.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(){}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(28),c=n(7),p=n(8),u=n(16),h=n(29),d=n(17),f=n(9),m=function(t){function e(e,n,i,o,r,s,l){t.call(this,n),this._menuCtrl=e,this._elementRef=n,this._config=i,this._platform=o,this._renderer=r,this._keyboard=s,this._zone=l,this._preventTime=0,this._isEnabled=!0,this._isSwipeEnabled=!0,this._isPers=!1,this._init=!1,this.isOpen=!1,this.opening=new a.EventEmitter}return i(e,t),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._isEnabled},set:function(t){this._isEnabled=f.isTrueProperty(t),this._setListeners()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeEnabled",{get:function(){return this._isSwipeEnabled},set:function(t){this._isSwipeEnabled=f.isTrueProperty(t),this._setListeners()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"persistent",{get:function(){return this._isPers},set:function(t){this._isPers=f.isTrueProperty(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;t._init=!0;var e=t.content;if(t._cntEle=e instanceof Node?e:e&&e.getNativeElement&&e.getNativeElement(),t._cntEle){"left"!==t.side&&"right"!==t.side&&(t.side="left"),t._renderer.setElementAttribute(t._elementRef.nativeElement,"side",t.side),t.type||(t.type=t._config.get("menuType")),t._renderer.setElementAttribute(t._elementRef.nativeElement,"type",t.type),t._cntGesture=new h.MenuContentGesture(t,t.getContentElement()),t._menuGesture=new h.MenuTargetGesture(t,t.getNativeElement());var n=t._menuCtrl.getMenus().some(function(e){return e.side===t.side&&e.enabled});n&&(t._isEnabled=!1),t._setListeners(),t.onContentClick=function(e){t._isEnabled&&(e.preventDefault(),e.stopPropagation(),t.close())},t._cntEle.classList.add("menu-content"),t._cntEle.classList.add("menu-content-"+t.type),t._menuCtrl.register(t)}},e.prototype._setListeners=function(){var t=this;t._init&&(t._isEnabled&&t._isSwipeEnabled&&!t._cntGesture.isListening?t._zone.runOutsideAngular(function(){t._cntGesture.listen(),t._menuGesture.listen()}):!t._cntGesture.isListening||t._isEnabled&&t._isSwipeEnabled||(t._cntGesture.unlisten(),t._menuGesture.unlisten()))},e.prototype._getType=function(){return this._type||(this._type=d.MenuController.create(this.type,this),this._config.get("animate")===!1&&this._type.ani.duration(0)),this._type},e.prototype.setOpen=function(t){var e=this;return t&&this.isOpen||this._isPrevented()?Promise.resolve(this.isOpen):(this._before(),new Promise(function(n){e._getType().setOpen(t,function(){e._after(t),n(e.isOpen)})}))},e.prototype.swipeStart=function(){!this._isPrevented()&&this._isEnabled&&this._isSwipeEnabled&&(this._before(),this._getType().setProgressStart(this.isOpen))},e.prototype.swipeProgress=function(t){this._isEnabled&&this._isSwipeEnabled&&(this._prevent(),this._getType().setProgessStep(t),this.opening.next(t))},e.prototype.swipeEnd=function(t,e){var n=this;this._isEnabled&&this._isSwipeEnabled&&(this._prevent(),this._getType().setProgressEnd(t,e,function(t){n._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){var e=this;if(this.enabled=t,!t&&this.isOpen&&this.close(),t){this._menuCtrl.getMenus().filter(function(t){return t.side===e.side&&t!==e}).map(function(t){return t.enabled=!1})}return this},e.prototype.swipeEnable=function(t){return this.swipeEnabled=t,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.prototype.ngOnDestroy=function(){this._menuCtrl.unregister(this),this._cntGesture&&this._cntGesture.destroy(),this._menuGesture&&this._menuGesture.destroy(),this._type&&this._type.destroy(),this._resizeUnreg&&this._resizeUnreg(),this._cntEle=null},o([a.Input(),r("design:type",Object)],e.prototype,"content",void 0),o([a.Input(),r("design:type",String)],e.prototype,"id",void 0),o([a.Input(),r("design:type",String)],e.prototype,"side",void 0),o([a.Input(),r("design:type",String)],e.prototype,"type",void 0),o([a.Input(),r("design:type",Boolean)],e.prototype,"enabled",null),o([a.Input(),r("design:type",Boolean)],e.prototype,"swipeEnabled",null),o([a.Input(),r("design:type",Boolean)],e.prototype,"persistent",null),o([a.Input(),r("design:type",Number)],e.prototype,"maxEdgeStart",void 0),o([a.Output(),r("design:type",a.EventEmitter)],e.prototype,"opening",void 0),e=o([a.Component({selector:"ion-menu",host:{role:"navigation"},template:'<ng-content></ng-content><div tappable disable-activated class="backdrop"></div>',directives:[a.forwardRef(function(){return v})]}),r("design:paramtypes",[d.MenuController,a.ElementRef,c.Config,p.Platform,a.Renderer,u.Keyboard,a.NgZone])],e)}(l.Ion);e.Menu=m;var v=function(){function t(t,e){this._menuCtrl=t,this.elementRef=e,t.backdrop=this}return t.prototype.clicked=function(t){t.preventDefault(),t.stopPropagation(),this._menuCtrl.close()},t=o([a.Directive({selector:".backdrop",host:{"(click)":"clicked($event)"}}),s(0,a.Host()),r("design:paramtypes",[m,a.ElementRef])],t)}();e.MenuBackdrop=v},function(t,e,n){var i=n(10),o=0,r=function(){function t(t){this.elementRef=t,this._id="i"+o++}return t.prototype.getElementRef=function(){return this.elementRef},t.prototype.getNativeElement=function(){return this.elementRef.nativeElement},t.prototype.getDimensions=function(){return i.getDimensions(this.elementRef.nativeElement,this._id)},t.prototype.width=function(){return i.getDimensions(this.elementRef.nativeElement,this._id).width},t.prototype.height=function(){return i.getDimensions(this.elementRef.nativeElement,this._id).height},t.prototype.ngOnDestroy=function(){i.clearDimensions(this._id)},t}();e.Ion=r},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(30),r=n(9),s=function(t){function e(e,n,i){void 0===i&&(i={}),t.call(this,n,r.assign({direction:"x",edge:e.side,threshold:0,maxEdgeStart:e.maxEdgeStart||75},i)),this.menu=e}return i(e,t),e.prototype.canStart=function(e){var n=this.menu;if(!n.enabled||!n.swipeEnabled)return!1;if(e.distance>50)return!1;if("right"===n.side){if(n.isOpen)return!0;if(e.angle>140&&e.angle<=180||e.angle>-140&&e.angle<=-180)return t.prototype.canStart.call(this,e)}else{if(n.isOpen)return!0;if(e.angle>-40&&e.angle<40)return t.prototype.canStart.call(this,e)}return!1},e.prototype.onSlideBeforeStart=function(t,e){this.menu.swipeStart()},e.prototype.onSlide=function(t,e){var n="right"===this.menu.side?t.min:t.max,i=t.distance/n;this.menu.swipeProgress(i)},e.prototype.onSlideEnd=function(t,e){var n="right"===this.menu.side?t.min:t.max,i=Math.abs(e.velocityX)>.2||Math.abs(t.delta)>.5*Math.abs(n),o=t.distance/n;this.menu.swipeEnd(i,o)},e.prototype.getElementStartPos=function(t,e){return"right"===this.menu.side?this.menu.isOpen?t.min:t.max:this.menu.isOpen?t.max:t.min},e.prototype.getSlideBoundaries=function(){return"right"===this.menu.side?{min:-this.menu.width(),max:0}:{min:0,max:this.menu.width()}},e}(o.SlideEdgeGesture);e.MenuContentGesture=s;var a=function(t){function e(e,n){t.call(this,e,n,{maxEdgeStart:0})}return i(e,t),e}(s);e.MenuTargetGesture=a},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(31),r=n(9),s=n(10),a=function(t){function e(e,n){void 0===n&&(n={}),r.defaults(n,{edge:"left",maxEdgeStart:50}),t.call(this,e,n),this.edges=n.edge.split(" "),this.maxEdgeStart=n.maxEdgeStart}return i(e,t),e.prototype.canStart=function(t){var e=this;return this._d=this.getContainerDimensions(),this.edges.every(function(n){return e._checkEdge(n,t.center)})},e.prototype.getContainerDimensions=function(){return{left:0,top:0,width:s.windowDimensions().width,height:s.windowDimensions().height}},e.prototype._checkEdge=function(t,e){switch(t){case"left":return e.x<=this._d.left+this.maxEdgeStart;case"right":return e.x>=this._d.width-this.maxEdgeStart;case"top":return e.y<=this._d.top+this.maxEdgeStart;case"bottom":return e.y>=this._d.height-this.maxEdgeStart}},e}(o.SlideGesture);e.SlideEdgeGesture=a},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(32),r=n(34),s=function(t){function e(e,n){void 0===n&&(n={}),t.call(this,e,n),this.slide=null,this.element=e}return i(e,t),e.prototype.getSlideBoundaries=function(t,e){return{min:0,max:this.element.offsetWidth}},e.prototype.getElementStartPos=function(t,e){return 0},e.prototype.canStart=function(t){return!0},e.prototype.onDragStart=function(t){if(!this.canStart(t))return!1;this.slide={},this.onSlideBeforeStart(this.slide,t);var e=this.getSlideBoundaries(this.slide,t),n=e.min,i=e.max;return this.slide.min=n,this.slide.max=i,this.slide.elementStartPos=this.getElementStartPos(this.slide,t),this.slide.pointerStartPos=t.center[this.direction],this.slide.started=!0,this.onSlideStart(this.slide,t),!0},e.prototype.onDrag=function(t){return this.slide&&this.slide.started?(this.slide.pos=t.center[this.direction],this.slide.distance=r.clamp(this.slide.min,this.slide.pos-this.slide.pointerStartPos+this.slide.elementStartPos,this.slide.max),this.slide.delta=this.slide.pos-this.slide.pointerStartPos,this.onSlide(this.slide,t),!0):!1},e.prototype.onDragEnd=function(t){this.slide&&this.slide.started&&(this.onSlideEnd(this.slide,t),this.slide=null)},e.prototype.onSlideBeforeStart=function(t,e){},e.prototype.onSlideStart=function(t,e){},e.prototype.onSlide=function(t,e){},e.prototype.onSlideEnd=function(t,e){},e}(o.DragGesture);e.SlideGesture=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=n(33),r=n(34),s=function(t){function e(e,n){void 0===n&&(n={}),r.defaults(n,{}),t.call(this,e,n)}return i(e,t),e.prototype.listen=function(){var e=this;t.prototype.listen.call(this),this.on("panstart",function(t){e.onDragStart(t)!==!1&&(e.dragging=!0)}),this.on("panmove",function(t){e.dragging&&e.onDrag(t)===!1&&(e.dragging=!1)}),this.on("panend",function(t){e.dragging&&(e.onDragEnd(t),e.dragging=!1)})},e.prototype.onDrag=function(t){return!0},e.prototype.onDragStart=function(t){return!0},e.prototype.onDragEnd=function(t){},e}(o.Gesture);e.DragGesture=s},function(t,e,n){var i=n(34),o=n(35),r=function(){function t(t,e){void 0===e&&(e={}),this._callbacks={},this.isListening=!1,i.defaults(e,{domEvents:!0}),this.element=t,this.direction=e.direction||"x",e.direction="x"===this.direction?o.DIRECTION_HORIZONTAL:o.DIRECTION_VERTICAL,this._options=e}return t.prototype.options=function(t){i.assign(this._options,t)},t.prototype.on=function(t,e){"pinch"!=t&&"rotate"!=t||this._hammer.get("pinch").set({enable:!0}),this._hammer.on(t,e),(this._callbacks[t]||(this._callbacks[t]=[])).push(e)},t.prototype.off=function(t,e){this._hammer.off(t,this._callbacks[t]?e:null)},t.prototype.listen=function(){this.isListening||(this._hammer=o.Hammer(this.element,this._options)),this.isListening=!0},t.prototype.unlisten=function(){ var t,e;if(this._hammer&&this.isListening){for(t in this._callbacks)for(e=0;e<this._callbacks[t].length;e++)this._hammer.off(t,this._callbacks[t]);this._hammer.destroy()}this._callbacks={},this._hammer=null,this.isListening=!1},t.prototype.destroy=function(){this.unlisten(),this.element=this._options=null},t}();e.Gesture=r},function(t,e,n){function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var o=n(10);e.dom=o,i(n(9))},function(t,e,n){function i(t,e,n){return setTimeout(a(t,n),e)}function o(t,e,n){return Array.isArray(t)?(r(t,n[e],n),!0):!1}function r(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function s(t,e,n){var i,o=e.prototype;i=t.prototype=Object.create(o),i.constructor=t,i._super=o,n&&rt.assign(i,n)}function a(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return typeof t==pt?t.apply(e?e[0]||void 0:void 0,e):t}function c(t,e){return void 0===t?e:t}function p(t,e,n){r(f(e),function(e){t.addEventListener(e,n,!1)})}function u(t,e,n){r(f(e),function(e){t.removeEventListener(e,n,!1)})}function h(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function d(t,e){return t.indexOf(e)>-1}function f(t){return t.trim().split(/\s+/g)}function m(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function v(t){return Array.prototype.slice.call(t,0)}function g(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];m(o,s)<0&&i.push(t[r]),o[r]=s,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]?1:0}):i.sort()),i}function y(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),r=0;r<lt.length;){if(n=lt[r],i=n?n+o:e,i in t)return i;r++}}function _(){return ft++}function b(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function w(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&n.handler(e)},this.init()}function T(t){var e,n=t.options.inputClass;return new(e=n?n:gt?j:yt?z:vt?G:M)(t,E)}function E(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&Ct&&i-o===0,s=e&(Rt|Ot)&&i-o===0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,C(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function C(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=O(e)),o>1&&!n.firstMultiple?n.firstMultiple=O(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=e.center=x(i);e.timeStamp=dt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=D(a,l),e.distance=k(a,l),S(n,e),e.offsetDirection=P(e.deltaX,e.deltaY);var c=I(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=ht(c.x)>ht(c.y)?c.x:c.y,e.scale=s?L(s.pointers,i):1,e.rotation=s?A(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,R(n,e);var p=t.element;h(e.srcEvent.target,p)&&(p=