onsenui
Version:
HTML5 Mobile Framework & UI Components
2 lines • 297 kB
JavaScript
/* onsenui v2.12.8 - 2022-12-27 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ons=e()}(this,function(){"use strict";function B(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,j(i.key),i)}}function c(t,e,n){return e&&R(t.prototype,e),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function H(t,e,n){return(e=j(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function q(t,e){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function z(t,e){if(null==t)return{};var n,i=function(t,e){if(null==t)return{};for(var n,i={},o=Object.keys(t),a=0;a<o.length;a++)n=o[a],0<=e.indexOf(n)||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(t),a=0;a<o.length;a++)n=o[a],0<=e.indexOf(n)||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n]);return i}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=h(n),e=(t=i?(t=h(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),this);if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(i)return(i=Object.getOwnPropertyDescriptor(i,e)).get?i.get.call(arguments.length<3?t:n):i.value}).apply(this,arguments)}function m(t){return function(t){if(Array.isArray(t))return F(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){var n;if(t)return"string"==typeof t?F(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(t,e):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function j(t){t=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=typeof(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:String(t)}var V,W,X,U,Y,$,G,K,J,n,Q,Z,tt,et,nt,it,ot,at,rt,st=window.HTMLElement,r=new(function(){function t(){l(this,t),this._selectedPlatform=null,this._ignorePlatformSelect=!1}return c(t,[{key:"select",value:function(t){"string"==typeof t&&(this._selectedPlatform=t.trim().toLowerCase())}},{key:"_getSelectedPlatform",value:function(){return this._ignorePlatformSelect?null:this._selectedPlatform}},{key:"_runOnActualPlatform",value:function(t){this._ignorePlatformSelect=!0;t=t();return this._ignorePlatformSelect=!1,t}},{key:"isWebView",value:function(){if("loading"===document.readyState||"uninitialized"==document.readyState)throw new Error("isWebView() method is available after dom contents loaded.");return!!(window.cordova||window.phonegap||window.PhoneGap)}},{key:"isIPhone",value:function(){return/iPhone/i.test(navigator.userAgent)}},{key:"isIPhoneX",value:function(){return this.isIPhone()&&(375===window.screen.width&&812===window.screen.height||812===window.screen.width&&375===window.screen.height||414===window.screen.width&&896===window.screen.height||896===window.screen.width&&414===window.screen.height||390===window.screen.width&&844===window.screen.height||844===window.screen.width&&390===window.screen.height||428===window.screen.width&&926===window.screen.height||926===window.screen.width&&428===window.screen.height||430===window.screen.width&&932===window.screen.height||932===window.screen.width&&430===window.screen.height||393===window.screen.width&&852===window.screen.height||852===window.screen.width&&393===window.screen.height)}},{key:"isIPad",value:function(){return/iPad/i.test(navigator.userAgent)||this.isIPadOS()}},{key:"isIPod",value:function(){return/iPod/i.test(navigator.userAgent)}},{key:"isIOS",value:function(t){return!t&&this._getSelectedPlatform()?"ios"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":o(device))||/browser/i.test(device.platform)?/iPhone|iPad|iPod/i.test(navigator.userAgent)||this.isIPadOS():/iOS/i.test(device.platform)}},{key:"isIOS7above",value:function(){var t;return"object"!==("undefined"==typeof device?"undefined":o(device))||/browser/i.test(device.platform)?!!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&(t=(navigator.userAgent.match(/\b[0-9]+_[0-9]+(?:_[0-9]+)?\b/)||[""])[0].replace(/_/g,"."),7<=parseInt(t.split(".")[0])):/iOS/i.test(device.platform)&&7<=parseInt(device.version.split(".")[0])}},{key:"isIPadOS",value:function(){return!(!/Macintosh/i.test(navigator.userAgent)||!navigator.maxTouchPoints||5!==navigator.maxTouchPoints)}},{key:"isIOSSafari",value:function(){var t=window.navigator,e=t.userAgent;return!(!this.isIOS()||-1===e.indexOf("Safari")||-1===e.indexOf("Version")||t.standalone)}},{key:"isWKWebView",value:function(){var t=/constructor/i.test(st);return!(!(this.isIOS()&&window.webkit&&window.webkit.messageHandlers&&window.indexedDB)||t)}},{key:"isAndroidPhone",value:function(){return/Android/i.test(navigator.userAgent)&&/Mobile/i.test(navigator.userAgent)}},{key:"isAndroidTablet",value:function(){return/Android/i.test(navigator.userAgent)&&!/Mobile/i.test(navigator.userAgent)}},{key:"isAndroid",value:function(t){return!t&&this._getSelectedPlatform()?"android"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":o(device))||/browser/i.test(device.platform)?/Android/i.test(navigator.userAgent):/Android/i.test(device.platform)}},{key:"isWP",value:function(t){return!t&&this._getSelectedPlatform()?"wp"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":o(device))||/browser/i.test(device.platform)?/Windows Phone|IEMobile|WPDesktop/i.test(navigator.userAgent):/Win32NT|WinCE/i.test(device.platform)}},{key:"isBlackBerry",value:function(t){return!t&&this._getSelectedPlatform()?"blackberry"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":o(device))||/browser/i.test(device.platform)?/BlackBerry|RIM Tablet OS|BB10/i.test(navigator.userAgent):/BlackBerry/i.test(device.platform)}},{key:"isOpera",value:function(t){return!t&&this._getSelectedPlatform()?"opera"===this._getSelectedPlatform():!!window.opera||0<=navigator.userAgent.indexOf(" OPR/")}},{key:"isFirefox",value:function(t){return!t&&this._getSelectedPlatform()?"firefox"===this._getSelectedPlatform():"undefined"!=typeof InstallTrigger}},{key:"isSafari",value:function(t){return!t&&this._getSelectedPlatform()?"safari"===this._getSelectedPlatform():0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||"[object SafariRemoteNotification]"===(!window.safari||safari.pushNotification).toString()}},{key:"isChrome",value:function(t){return!t&&this._getSelectedPlatform()?"chrome"===this._getSelectedPlatform():!(!window.chrome||window.opera||0<=navigator.userAgent.indexOf(" OPR/")||0<=navigator.userAgent.indexOf(" Edge/"))}},{key:"isIE",value:function(t){return!t&&this._getSelectedPlatform()?"ie"===this._getSelectedPlatform():!!document.documentMode}},{key:"isEdge",value:function(t){return!t&&this._getSelectedPlatform()?"edge"===this._getSelectedPlatform():0<=navigator.userAgent.indexOf(" Edge/")}},{key:"getMobileOS",value:function(){return this.isAndroid()?"android":this.isIOS()?"ios":this.isWP()?"wp":"other"}},{key:"getIOSDevice",value:function(){return this.isIPhone()?"iphone":this.isIPad()?"ipad":this.isIPod()?"ipod":"na"}}]),t}());function lt(){Y=!1;var t=$,i=($=[],t.sort(function(t,e){return t.uid_-e.uid_}),!1);t.forEach(function(t){var e,n=t.takeRecords();(e=t).nodes_.forEach(function(t){t=V.get(t);t&&t.forEach(function(t){t.observer===e&&t.removeTransientObservers()})}),n.length&&(t.callback_(n,t),i=!0)}),i&<()}function ct(t,e){for(var n=t;n;n=n.parentNode){var i=V.get(n);if(i)for(var o=0;o<i.length;o++){var a=i[o],r=a.options;(n===t||r.subtree)&&(r=e(r))&&a.enqueue(r)}}}function ut(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++G}function dt(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function ht(t,e){return K=new dt(t,e)}function ft(t){var e,n;return J||((n=new dt((e=K).type,e.target)).addedNodes=e.addedNodes.slice(),n.removedNodes=e.removedNodes.slice(),n.previousSibling=e.previousSibling,n.nextSibling=e.nextSibling,n.attributeName=e.attributeName,n.attributeNamespace=e.attributeNamespace,n.oldValue=e.oldValue,(J=n).oldValue=t),J}function pt(t,e){return t===e?t:!J||(e=t)!==J&&e!==K?null:J}function mt(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}function gt(t){return tt[Z]=vt.apply(Q,t),Z++}function vt(t){var e=[].slice.call(arguments,1);return function(){"function"==typeof t?t.apply(Q,e):new Function(""+t)()}}function _t(t){if(et)setTimeout(vt(_t,t),0);else{var e=tt[t];if(e){et=!0;try{e()}finally{bt(t),et=!1}}}}function bt(t){delete tt[t]}function yt(){function t(t){t.source===n&&"string"==typeof t.data&&0===t.data.indexOf(e)&&_t(+t.data.slice(e.length))}var e="setImmediate$"+Math.random()+"$";n.addEventListener?n.addEventListener("message",t,!1):n.attachEvent("onmessage",t),it=function(){var t=gt(arguments);return n.postMessage(e+t,"*"),t}}window.customElements&&(window.customElements.forcePolyfill=!0),function(){var o=new function(){},B=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function u(t){var e=B.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function s(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function r(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function l(t,e,n){n=n||new Set;for(var i=t;i;){if(i.nodeType===Node.ELEMENT_NODE){var o=i,a=(e(o),o.localName);if("link"===a&&"import"===o.getAttribute("rel")){if((i=o.import)instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)l(i,e,n);i=r(t,o);continue}if("template"===a){i=r(t,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)l(o,e,n)}i=i.firstChild||r(t,i)}}function c(t,e,n){t[e]=n}function t(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function d(t,e){t.b=!0,t.c.push(e)}function h(e,t){e.b&&l(t,function(t){return a(e,t)})}function a(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e)}}function f(t,e){var n=[];for(l(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state?s(i)&&t.connectedCallback(i):g(t,i)}}function p(t,e){var n=[];for(l(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state&&t.disconnectedCallback(i)}}function m(n,t,i){i=i||new Set;var o=[];if(l(t,function(e){var t;"link"===e.localName&&"import"===e.getAttribute("rel")?(t=e.import)instanceof Node&&"complete"===t.readyState?(t.__CE_isImportDocument=!0,t.__CE_hasRegistry=!0):e.addEventListener("load",function(){var t=e.import;t.__CE_documentLoadHandled||(t.__CE_documentLoadHandled=!0,t.__CE_isImportDocument=!0,t.__CE_hasRegistry=!0,i.delete(t),m(n,t,i))}):o.push(e)},i),n.b)for(t=0;t<o.length;t++)a(n,o[t]);for(t=0;t<o.length;t++)g(n,o[t])}function g(t,e){if(void 0===e.__CE_state){var n=t.a.get(e.localName);if(n){n.constructionStack.push(e);var i=n.constructor;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,(e.__CE_definition=n).attributeChangedCallback)for(n=n.observedAttributes,i=0;i<n.length;i++){var o=n[i],a=e.getAttribute(o);null!==a&&t.attributeChangedCallback(e,o,null,a,null)}s(e)&&t.connectedCallback(e)}}}function e(t,e){this.c=t,this.a=e,this.b=void 0,m(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function v(t){t.b&&t.b.disconnect()}function R(){var e=this;this.b=this.a=void 0,this.c=new Promise(function(t){e.b=t,e.a&&t(e.a)})}function _(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function n(t){this.f=!1,this.a=t,this.h=new Map,this.g=function(t){return t()},this.b=!1,this.c=[],this.l=new e(t,document)}t.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t),t.i=!0},t.prototype.disconnectedCallback=function(t){t.i||this.connectedCallback(t);var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t),t.i=void 0},t.prototype.attributeChangedCallback=function(t,e,n,i,o){var a=t.__CE_definition;a.attributeChangedCallback&&-1<a.observedAttributes.indexOf(e)&&a.attributeChangedCallback.call(t,e,n,i,o)},e.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||v(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,i=0;i<n.length;i++)m(this.c,n[i])},n.prototype.m=function(t,e){var n,i,o,a,r,s=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!u(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.f)throw Error("A custom element is already being defined.");this.f=!0;try{var l=function(t){var e=c[t];if(void 0===e||e instanceof Function)return e;throw Error("The '"+t+"' callback must be a function.")},c=e.prototype;if(!(c instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");n=l("connectedCallback"),i=l("disconnectedCallback"),o=l("adoptedCallback"),a=l("attributeChangedCallback"),r=e.observedAttributes||[]}catch(t){return}finally{this.f=!1}l=this.a,e={localName:t,constructor:e,connectedCallback:n,disconnectedCallback:i,adoptedCallback:o,attributeChangedCallback:a,observedAttributes:r,constructionStack:[]},l.a.set(t,e),l.f.set(e.constructor,e),this.c.push(t),this.b||(this.b=!0,this.g(function(){if(!1!==s.b)for(s.b=!1,m(s.a,document);0<s.c.length;){var t=s.c.shift();(t=s.h.get(t))&&_(t)}}))},n.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructor},n.prototype.s=function(t){var e;return u(t)?((e=this.h.get(t))||(e=new R,this.h.set(t,e),this.a.a.get(t)&&-1===this.c.indexOf(t)&&_(e)),e.c):Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."))},n.prototype.o=function(e){v(this.l);var n=this.g;this.g=function(t){return e(function(){return n(t)})}},(window.CustomElementRegistry=n).prototype.define=n.prototype.m,n.prototype.whenDefined=n.prototype.s,n.prototype.polyfillWrapFlushCallback=n.prototype.o;var b=window.Document.prototype.createElement,H=window.Document.prototype.createElementNS,q=window.Document.prototype.importNode,z=window.Document.prototype.prepend,F=window.Document.prototype.append,y=window.Node.prototype.cloneNode,k=window.Node.prototype.appendChild,i=window.Node.prototype.insertBefore,w=window.Node.prototype.removeChild,E=window.Node.prototype.replaceChild,C=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),A=window.Element.prototype.attachShadow,S=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),x=window.Element.prototype.getAttribute,P=window.Element.prototype.setAttribute,j=window.Element.prototype.removeAttribute,L=window.Element.prototype.getAttributeNS,V=window.Element.prototype.setAttributeNS,W=window.Element.prototype.removeAttributeNS,X=window.Element.prototype.insertAdjacentElement,U=window.Element.prototype.prepend,Y=window.Element.prototype.append,$=window.Element.prototype.before,G=window.Element.prototype.after,K=window.Element.prototype.replaceWith,J=window.Element.prototype.remove,Q=window.HTMLElement,O=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement;function tt(o,t,a){t.prepend=function(t){for(var e=[],n=0;n<arguments.length;++n)e[+n]=arguments[n];n=e.filter(function(t){return t instanceof Node&&s(t)}),a.j.apply(this,e);for(var i=0;i<n.length;i++)p(o,n[i]);if(s(this))for(n=0;n<e.length;n++)(i=e[n])instanceof Element&&f(o,i)},t.append=function(t){for(var e=[],n=0;n<arguments.length;++n)e[+n]=arguments[n];n=e.filter(function(t){return t instanceof Node&&s(t)}),a.append.apply(this,e);for(var i=0;i<n.length;i++)p(o,n[i]);if(s(this))for(n=0;n<e.length;n++)(i=e[n])instanceof Element&&f(o,i)}}function et(){var n,a,t,r=M;function e(t,a){Object.defineProperty(t,"innerHTML",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(t){var e=this,n=void 0;if(s(this)&&(n=[],l(this,function(t){t!==e&&n.push(t)})),a.set.call(this,t),n)for(var i=0;i<n.length;i++){var o=n[i];1===o.__CE_state&&r.disconnectedCallback(o)}return(this.ownerDocument.__CE_hasRegistry?m:h)(r,this),t}})}function i(t,i){c(t,"insertAdjacentElement",function(t,e){var n=s(e);return t=i.call(this,t,e),n&&p(r,e),s(t)&&f(r,e),t})}A?c(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=A.call(this,t)}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),S&&S.get?e(Element.prototype,S):O&&O.get?e(HTMLElement.prototype,O):(n=b.call(document,"div"),d(r,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return y.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(n.innerHTML=t;0<e.childNodes.length;)w.call(e,e.childNodes[0]);for(;0<n.childNodes.length;)k.call(e,n.childNodes[0])}})})),c(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return P.call(this,t,e);var n=x.call(this,t);P.call(this,t,e),e=x.call(this,t),r.attributeChangedCallback(this,t,n,e,null)}),c(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return V.call(this,t,e,n);var i=L.call(this,t,e);V.call(this,t,e,n),n=L.call(this,t,e),r.attributeChangedCallback(this,e,i,n,t)}),c(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return j.call(this,t);var e=x.call(this,t);j.call(this,t),null!==e&&r.attributeChangedCallback(this,t,e,null,null)}),c(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return W.call(this,t,e);var n=L.call(this,t,e),i=(W.call(this,t,e),L.call(this,t,e));n!==i&&r.attributeChangedCallback(this,e,n,i,t)}),Z?i(HTMLElement.prototype,Z):X?i(Element.prototype,X):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),tt(r,Element.prototype,{j:U,append:Y}),a=r,(t=Element.prototype).before=function(t){for(var e=[],n=0;n<arguments.length;++n)e[+n]=arguments[n];n=e.filter(function(t){return t instanceof Node&&s(t)}),$.apply(this,e);for(var i=0;i<n.length;i++)p(a,n[i]);if(s(this))for(n=0;n<e.length;n++)(i=e[n])instanceof Element&&f(a,i)},t.after=function(t){for(var e=[],n=0;n<arguments.length;++n)e[+n]=arguments[n];n=e.filter(function(t){return t instanceof Node&&s(t)}),G.apply(this,e);for(var i=0;i<n.length;i++)p(a,n[i]);if(s(this))for(n=0;n<e.length;n++)(i=e[n])instanceof Element&&f(a,i)},t.replaceWith=function(t){for(var e=[],n=0;n<arguments.length;++n)e[+n]=arguments[n];var n=e.filter(function(t){return t instanceof Node&&s(t)}),i=s(this);K.apply(this,e);for(var o=0;o<n.length;o++)p(a,n[o]);if(i)for(p(a,this),n=0;n<e.length;n++)(i=e[n])instanceof Element&&f(a,i)},t.remove=function(){var t=s(this);J.call(this),t&&p(a,this)}}var M,T,I,D,N=window.customElements;function nt(t,a){Object.defineProperty(t,"textContent",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)a.set.call(this,t);else{var e=void 0;if(this.firstChild){var n=this.childNodes,i=n.length;if(0<i&&s(this))for(var e=Array(i),o=0;o<i;o++)e[o]=n[o]}if(a.set.call(this,t),e)for(t=0;t<e.length;t++)p(T,e[t])}}})}function it(){var t=this.constructor,e=D.f.get(t);if(!e)throw Error("The custom element being constructed was not registered with `customElements`.");var n=e.constructionStack;if(!n.length)return n=b.call(document,e.localName),Object.setPrototypeOf(n,t.prototype),n.__CE_state=1,n.__CE_definition=e,a(D,n),n;var i=n[e=n.length-1];if(i===o)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[e]=o,Object.setPrototypeOf(i,t.prototype),a(D,i),i}N&&!N.forcePolyfill&&"function"==typeof N.define&&"function"==typeof N.get||(M=new t,D=M,window.HTMLElement=(it.prototype=Q.prototype,it),I=M,c(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var e=I.a.get(t);if(e)return new e.constructor}return t=b.call(this,t),a(I,t),t}),c(Document.prototype,"importNode",function(t,e){return t=q.call(this,t,e),(this.__CE_hasRegistry?m:h)(I,t),t}),c(Document.prototype,"createElementNS",function(t,e){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var n=I.a.get(e);if(n)return new n.constructor}return t=H.call(this,t,e),a(I,t),t}),tt(I,Document.prototype,{j:z,append:F}),T=M,c(Node.prototype,"insertBefore",function(t,e){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=i.call(this,t,e),s(this))for(e=0;e<n.length;e++)f(T,n[e]);return t}return n=s(t),e=i.call(this,t,e),n&&p(T,t),s(this)&&f(T,t),e}),c(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var e=Array.prototype.slice.apply(t.childNodes);if(t=k.call(this,t),s(this))for(var n=0;n<e.length;n++)f(T,e[n]);return t}return e=s(t),n=k.call(this,t),e&&p(T,t),s(this)&&f(T,t),n}),c(Node.prototype,"cloneNode",function(t){return t=y.call(this,t),(this.ownerDocument.__CE_hasRegistry?m:h)(T,t),t}),c(Node.prototype,"removeChild",function(t){var e=s(t),n=w.call(this,t);return e&&p(T,t),n}),c(Node.prototype,"replaceChild",function(t,e){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=E.call(this,t,e),s(this))for(p(T,e),e=0;e<n.length;e++)f(T,n[e]);return t}var n=s(t),i=E.call(this,t,e),o=s(this);return o&&p(T,e),n&&p(T,t),o&&f(T,t),i}),C&&C.get?nt(Node.prototype,C):d(T,function(t){nt(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)w.call(this,this.firstChild);k.call(this,document.createTextNode(t))}})}),et(),document.__CE_hasRegistry=!0,N=new n(M),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:N}))}.call(self),(t=self).JsMutationObserver||(V=new WeakMap,U=/Trident|Edge/.test(navigator.userAgent)?setTimeout:window.setImmediate||(W=[],X=String(Math.random()),window.addEventListener("message",function(t){t.data===X&&(t=W,W=[],t.forEach(function(t){t()}))}),function(t){W.push(t),window.postMessage(X,"*")}),Y=!1,$=[],G=0,ut.prototype={observe:function(t,e){var n;if(n=t,t=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(n)||n,!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var i,o=V.get(t);o||V.set(t,o=[]);for(var a=0;a<o.length;a++)if(o[a].observer===this){(i=o[a]).removeListeners(),i.options=e;break}i||(i=new mt(this,t,e),o.push(i),this.nodes_.push(t)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=V.get(t),n=0;n<e.length;n++){var i=e[n];if(i.observer===this){i.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},mt.prototype={enqueue:function(t){var e=this.observer.records_,n=e.length;if(0<e.length){var i=pt(e[n-1],t);if(i)return void(e[n-1]=i)}else i=this.observer,$.push(i),Y||(Y=!0,U(lt));e[n]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){var e;t!==this.target&&(this.addListeners_(t),this.transientObservedNodes.push(t),(e=V.get(t))||V.set(t,e=[]),e.push(this))},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=V.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,i=t.target,o=((a=new ht("attributes",i)).attributeName=e,a.attributeNamespace=n,t.attrChange===MutationEvent.ADDITION?null:t.prevValue);ct(i,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?ft(o):a});break;case"DOMCharacterDataModified":var a=ht("characterData",i=t.target),o=t.prevValue;ct(i,function(t){if(t.characterData)return t.characterDataOldValue?ft(o):a});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var r,i=t.target,s="DOMNodeInserted"===t.type?(r=[i],[]):(r=[],[i]),l=i.previousSibling,i=i.nextSibling;(a=ht("childList",t.target.parentNode)).addedNodes=r,a.removedNodes=s,a.previousSibling=l,a.nextSibling=i,ct(t.relatedNode,function(t){if(t.childList)return a})}K=J=void 0}},t.JsMutationObserver=ut,t.MutationObserver)||((t.MutationObserver=ut)._isPolyfilled=!0),(n=self).setImmediate||(Z=1,et=!(tt={}),nt=n.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(n))&&t.setTimeout?t:n,"[object process]"==={}.toString.call(n.process)?it=function(){var t=gt(arguments);return process.nextTick(vt(_t,t)),t}:!function(){var t,e;if(n.postMessage&&!n.importScripts)return t=!0,e=n.onmessage,n.onmessage=function(){t=!1},n.postMessage("","*"),n.onmessage=e,t}()?it=n.MessageChannel?((at=new MessageChannel).port1.onmessage=function(t){_t(t.data)},function(){var t=gt(arguments);return at.port2.postMessage(t),t}):nt&&"onreadystatechange"in nt.createElement("script")?(ot=nt.documentElement,function(){var t=gt(arguments),e=nt.createElement("script");return e.onreadystatechange=function(){_t(t),e.onreadystatechange=null,ot.removeChild(e),e=null},ot.appendChild(e),t}):function(){var t=gt(arguments);return setTimeout(vt(_t,t),0),t}:yt(),t.setImmediate=it,t.clearImmediate=bt),rt={ensureViewportElement:function(){var t=document.querySelector("meta[name=viewport]");return t||((t=document.createElement("meta")).name="viewport",document.head.appendChild(t)),t},setup:function(){var t=rt.ensureViewportElement();t&&!t.hasAttribute("content")&&t.setAttribute("content","width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no")}},window.Viewport=rt;function kt(){}function u(e,n){return Object.keys(n).forEach(function(t){t in e.style?e.style[t]=n[t]:Lt(t)in e.style?e.style[Lt(t)]=n[t]:b.warn("No such style property: "+t)}),e}function wt(t,e){if(Ot&&!t.hasAttribute("disable-auto-styling")){t=r.getMobileOS();if(Object.prototype.hasOwnProperty.call(Tt,t)&&(Object.prototype.hasOwnProperty.call(It,t)||e))return t}return null}function Et(t,e,n){return wt(e,n)?t.split(/\s+/).map(function(t){return Object.prototype.hasOwnProperty.call(Mt,t)?Mt[t]:t}).join(" "):t}function Ct(t){return Dt(t,"{")&&Nt(t,"}")}function At(t){return Dt(t,"[")&&Nt(t,"]")}function St(t){for(var e,n,i,o,a=t=t.trim(),r={},s=!0;0<t.length;)if(n=i,i=zt(t),t=t.slice(i.length,t.length).trim(),":"===i&&(!s||!n||","===n)||","===i&&s||":"!==i&&","!==i&&n&&","!==n&&":"!==n)Ht(i,t,a);else if(":"===i&&s&&n){if(n=Rt(n)?Bt(n):n,o=n,!/^[A-Z_$][A-Z0-9_$]*$/i.test(o))throw new Error("Invalid key token '"+n+"' at position 0 in string: '"+a+"'");e=n,s=!1}else","===i&&!s&&n&&(r[e]=qt(n,t,a),s=!0);return i&&(r[e]=qt(i,t,a)),r}function xt(t){for(var e,n,i=t=t.trim(),o=[];0<t.length;)e=n,n=zt(t),t=t.slice(n.length,t.length).trim(),","!==n||e&&","!==e?","===n&&o.push(qt(e,t,i)):Ht(n,t,i);return n&&(","!==n?o.push(qt(n,t,i)):Ht(n,t,i)),o}kt.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},once:function(e,n){var i=this;this.on(e,function t(){return i.off(e,t),n.apply(null,arguments)})},off:function(t,e){this._events=this._events||{},t in this._events!=!1&&(this._events[t]=this._events[t].filter(function(t){return!!e&&e!==t}))},emit:function(t){if(this._events=this._events||{},t in this._events!=!1)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},kt.mixin=function(t){for(var e=["on","once","off","emit"],n=0;n<e.length;n++)"function"==typeof t?t.prototype[e[n]]=kt.prototype[e[n]]:t[e[n]]=kt.prototype[e[n]]},window.MicroEvent=kt;var Pt,i={},Lt=(t=window.getComputedStyle(document.documentElement,""),Pt=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1],function(t){return"-"+Pt+"-"+b.hyphenate(t)}),Ot=(u.clear=function(n){for(var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"").split(/\s+/).reduce(function(t,e){return t.concat([b.hyphenate(e),Lt(e)])},[]),i=[],o=n.style.length-1;0<=o;o--)!function(){var e=n.style[o];0!==t.length&&!t.some(function(t){return 0===e.indexOf(t)})||i.push(e)}();i.forEach(function(t){return n.style[t]=""}),""===n.getAttribute("style")&&n.removeAttribute("style")},!0),Mt={quiet:"material--flat",light:"material--flat",outline:"material--flat",cta:"","large--quiet":"material--flat large","large--cta":"large",noborder:"",tappable:""},Tt={android:function(t){var e,n=t.tagName.toLowerCase();b.hasModifier(t,"material")||((e=(t.getAttribute("modifier")||"").trim().split(/\s+/).map(function(t){return Object.prototype.hasOwnProperty.call(Mt,t)?Mt[t]:t})).unshift("material"),t.setAttribute("modifier",e.join(" ").trim()));-1===["ons-alert-dialog-button","ons-toolbar-button","ons-back-button","ons-button","ons-list-item","ons-fab","ons-speed-dial","ons-speed-dial-item","ons-tab"].indexOf(n)||t.hasAttribute("ripple")||t.querySelector("ons-ripple")||("ons-list-item"===n?t.hasAttribute("tappable")&&(t.setAttribute("ripple",""),t.removeAttribute("tappable")):t.setAttribute("ripple",""))},ios:function(t){b.removeModifier(t,"material")&&(b.removeModifier(t,"material--flat")&&b.addModifier(t,b.removeModifier(t,"large")?"large--quiet":"quiet"),t.getAttribute("modifier")||t.removeAttribute("modifier")),t.hasAttribute("ripple")&&("ons-list-item"===t.tagName.toLowerCase()&&t.setAttribute("tappable",""),t.removeAttribute("ripple"))}},It={android:!0},g={isEnabled:function(){return Ot},enable:function(){return Ot=!0},disable:function(){return Ot=!1},prepare:function(t,e){e=wt(t,e);e&&Tt[e](t)},mapModifier:Et,getPlatform:wt,restoreModifier:function(t){if("android"===wt(t)){var e=t.getAttribute("modifier")||"",n=Et(e,t);if((n=/(^|\s+)material($|\s+)/i.test(e)?n:"material "+n)!==e)return t.setAttribute("modifier",n.trim()),!0}return!1}},v=function(){function r(){l(this,r)}return c(r,null,[{key:"diff",value:function(n,i){n=e((""+n).trim()),i=e((""+i).trim());var t=Object.keys(n).reduce(function(t,e){return i[e]||t.push(e),t},[]);return{added:Object.keys(i).reduce(function(t,e){return n[e]||t.push(e),t},[]),removed:t};function e(t){var e={};return r.split(t).forEach(function(t){return e[t]=t}),e}}},{key:"applyDiffToClassList",value:function(t,e,n){t.added.map(function(t){return n.replace(/\*/g,t)}).forEach(function(t){return t.split(/\s+/).forEach(function(t){return e.add(t)})}),t.removed.map(function(t){return n.replace(/\*/g,t)}).forEach(function(t){return t.split(/\s+/).forEach(function(t){return e.remove(t)})})}},{key:"applyDiffToElement",value:function(i,o,a){Object.keys(a).forEach(function(t){for(var e=!t||b.match(o,t)?[o]:Array.prototype.filter.call(o.querySelectorAll(t),function(t){return!b.findParent(t,o.tagName,function(t){return t===o})}),n=0;n<e.length;n++)r.applyDiffToClassList(i,e[n].classList,a[t])})}},{key:"onModifierChanged",value:function(t,e,n,i){r.applyDiffToElement(r.diff(t,e),n,i),g.restoreModifier(n)}},{key:"refresh",value:function(t,e){r.applyDiffToElement(r.diff("",t.getAttribute("modifier")||""),t,e)}},{key:"initModifier",value:function(t,e){var n=t.getAttribute("modifier");"string"==typeof n&&r.applyDiffToElement({removed:[],added:r.split(n)},t,e)}},{key:"split",value:function(t){return"string"!=typeof t?[]:t.trim().split(/ +/).filter(function(t){return""!==t})}},{key:"addModifier",value:function(t,e){var n;t.hasAttribute("modifier")?-1==(n=r.split(t.getAttribute("modifier"))).indexOf(e)&&(n.push(e),t.setAttribute("modifier",n.join(" "))):t.setAttribute("modifier",e)}},{key:"removeModifier",value:function(t,e){var n;t.hasAttribute("modifier")&&-1!==(e=(n=r.split(t.getAttribute("modifier"))).indexOf(e))&&(n.splice(e,1),t.setAttribute("modifier",n.join(" ")))}}]),r}(),Dt=function(t,e){return t.substr(0,e.length)===e},Nt=function(t,e){return t.substr(t.length-e.length,e.length)===e},Bt=function(t){return t.slice(1,-1)},Rt=function(t){return Dt(t,"'")&&Nt(t,"'")||Dt(t,'"')&&Nt(t,'"')},Ht=function(t,e,n){throw new Error("Unexpected token '"+t+"' at position "+(n.length-e.length-1)+" in string: '"+n+"'")},qt=function(t,e,n){return"true"===t||"false"===t?"true"===t:Rt(t)?Bt(t):isNaN(t)?Ct(t)?St(Bt(t)):At(t)?xt(Bt(t)):void Ht(t,e,n):+t},zt=function(t){var e=(t=t.trim()).length;if(":"===t[0]||","===t[0])e=1;else if("{"===t[0]||"["===t[0]){for(var n=t.charCodeAt(0),i=1,o=1;o<t.length;o++)if(t.charCodeAt(o)===n)i++;else if(t.charCodeAt(o)===n+2&&0===--i){e=o+1;break}}else if("'"===t[0]||'"'===t[0]){for(var a=1;a<t.length;a++)if(t[a]===t[0]){e=a+1;break}}else for(var r=1;r<t.length;r++)if(-1!==[" ",",",":"].indexOf(t[r])){e=r;break}return t.slice(0,e)},_={},Ft="[Onsen UI]";_.globals={fabOffset:0,errorPrefix:Ft,supportsPassive:!1},r._runOnActualPlatform(function(){_.globals.actualMobileOS=r.getMobileOS(),_.globals.isWKWebView=r.isWKWebView()});try{var jt=Object.defineProperty({},"passive",{get:function(){_.globals.supportsPassive=!0}});window.addEventListener("testPassive",null,jt),window.removeEventListener("testPassive",null,jt)}catch(t){}_.addEventListener=function(t,e,n,i,o){t.addEventListener(e,n,_.globals.supportsPassive?i:(i||{}).capture)},_.removeEventListener=function(t,e,n,i,o){t.removeEventListener(e,n,_.globals.supportsPassive?i:(i||{}).capture)},_.prepareQuery=function(e){return e instanceof Function?e:function(t){return _.match(t,e)}},_.match=function(t,e){return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector).call(t,e)},_.findChild=function(t,e){for(var n=_.prepareQuery(e),i=0;i<t.childNodes.length;i++){var o=t.childNodes[i];if(o.nodeType===Node.ELEMENT_NODE&&n(o))return o}return null},_.findParent=function(t,e,n){for(var i=_.prepareQuery(e),o=t.parentNode;;){if(!o||o===document||o instanceof DocumentFragment||n&&n(o))return null;if(i(o))return o;o=o.parentNode}},_.isAttached=function(t){return document.body.contains(t)},_.hasAnyComponentAsParent=function(t){for(;t&&document.documentElement!==t;)if((t=t.parentNode)&&t.nodeName.toLowerCase().match(/(ons-navigator|ons-tabbar|ons-modal)/))return!0;return!1},_.getAllChildNodes=function(t){var e;return(e=[t]).concat.apply(e,m(Array.from(t.children).map(function(t){return _.getAllChildNodes(t)})))},_.isPageControl=function(t){return t.nodeName.match(/^ons-(navigator|splitter|tabbar|page)$/i)},_.propagateAction=function(t,e){for(var n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];i[e]instanceof Function?i[e]():_.propagateAction(i,e)}},_.camelize=function(t){return t.toLowerCase().replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})},_.hyphenate=function(t){return t.replace(/([a-zA-Z])([A-Z])/g,"$1-$2").toLowerCase()},_.create=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=t.split("."),n=document.createElement(t.shift()||"div");return t.length&&(n.className=t.join(" ")),u(n,e),n},_.createElement=function(t){var e=document.createElement("div"),t=(t instanceof DocumentFragment?e.appendChild(document.importNode(t,!0)):e.innerHTML=t.trim(),1<e.children.length&&_.throw("HTML template must contain a single root element"),e.children[0]);return e.children[0].remove(),t},_.createFragment=function(t){var e=document.createElement("template");return e.innerHTML=t,document.importNode(e.content,!0)},_.extend=function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var o=0;o<n.length;o++)if(n[o])for(var a=Object.keys(n[o]),r=0;r<a.length;r++){var s=a[r];t[s]=n[o][s]}return t},_.arrayFrom=function(t){return Array.prototype.slice.apply(t)},_.parseJSONObjectSafely=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};try{var n=JSON.parse(""+t);if("object"===o(n)&&null!==n)return n}catch(t){}return e},_.findFromPath=function(t){t=t.split(".");for(var e,n=window;e=t.shift();)n=n[e];return n},_.getTopPage=function(t){return t&&("ons-page"===t.tagName.toLowerCase()?t:t.topPage)||null},_.findToolbarPage=function(t){var e=_.getTopPage(t);if(e){if(e._canAnimateToolbar())return e;for(var n=0;n<e._contentElement.children.length;n++){var i=_.getTopPage(e._contentElement.children[n]);if(i&&!/ons-tabbar/i.test(e._contentElement.children[n].tagName))return _.findToolbarPage(i)}}return null},_.triggerElementEvent=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});return Object.keys(n).forEach(function(t){i[t]=n[t]}),t.dispatchEvent(i),i},_.hasModifier=function(t,e){return!!t.hasAttribute("modifier")&&RegExp("(^|\\s+)".concat(e,"($|\\s+)"),"i").test(t.getAttribute("modifier"))},_.addModifier=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return n.autoStyle&&(e=g.mapModifier(e,t,n.forceAutoStyle)),!_.hasModifier(t,e)&&(t.setAttribute("modifier",((t.getAttribute("modifier")||"")+" "+e).trim()),!0)},_.removeModifier=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return n.autoStyle&&(e=g.mapModifier(e,t,n.forceAutoStyle)),!(!t.getAttribute("modifier")||!_.hasModifier(t,e)||((n=t.getAttribute("modifier").split(/\s+/).filter(function(t){return t&&t!==e})).length?t.setAttribute("modifier",n.join(" ")):t.removeAttribute("modifier"),0))},_.toggleModifier=function(){var t=2<arguments.length?arguments.length<=2?void 0:arguments[2]:{},t="boolean"==typeof t?t:t.force;(("boolean"==typeof t?t:!_.hasModifier.apply(_,arguments))?_.addModifier:_.removeModifier).apply(_,arguments)},_.restoreClass=function(e,t,n){t.split(/\s+/).forEach(function(t){return""!==t&&!e.classList.contains(t)&&e.classList.add(t)}),e.hasAttribute("modifier")&&v.refresh(e,n)},_.updateParentPosition=function(t){!t._parentUpdated&&t.parentElement&&("static"===window.getComputedStyle(t.parentElement).getPropertyValue("position")&&(t.parentElement.style.position="relative"),t._parentUpdated=!0)},_.toggleAttribute=function(t,e,n){n?t.setAttribute(e,"boolean"==typeof n?"":n):t.removeAttribute(e)},_.bindListeners=function(n,t){t.forEach(function(t){var e=t.replace(/^_[a-z]/,"_bound"+t[1].toUpperCase());n[e]=n[e]||n[t].bind(n)})},_.each=function(e,n){return Object.keys(e).forEach(function(t){return n(t,e[t])})},_.updateRipple=function(t,e){var n,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=(void 0===e&&(e=t.hasAttribute("ripple")),_.findChild(t,"ons-ripple"));e?o||(n=document.createElement("ons-ripple"),Object.keys(i).forEach(function(t){return n.setAttribute(t,i[t])}),t.insertBefore(n,t.firstChild)):o&&o.remove()},_.animationOptionsParse=function(t){if(t=t.trim(),Ct(t))return St(Bt(t));if(At(t))return xt(Bt(t));throw new Error("Provided string must be object or array like: "+t)},_.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},_.defer=function(){var n={};return n.promise=new Promise(function(t,e){n.resolve=t,n.reject=e}),n},_.warn=function(){if(!k.config.warningsDisabled){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];(t=console).warn.apply(t,[Ft].concat(n))}},_.throw=function(t){throw new Error("".concat(Ft," ").concat(t))},_.throwAbstract=function(){return _.throw("Cannot instantiate abstract class")},_.throwMember=function(){return _.throw("Class member must be implemented")},_.throwPageLoader=function(){return _.throw("First parameter should be an instance of PageLoader")},_.throwAnimator=function(t){return _.throw('"Animator" param must inherit '.concat(t,"Animator"))};function Vt(t){return t.cancelable&&t.preventDefault()}function Wt(t){b.throw("In PageAttributeExpression: ".concat(t))}_.iosPreventScroll=function(n){var t;"ios"===_.globals.actualMobileOS&&(t=function t(e){n.off("touchmove",Vt),n.off("dragend",t)},n.on("touchmove",Vt),n.on("dragend",t))},_.iosPageScrollFix=function(t){"ios"===_.globals.actualMobileOS&&(document.body.classList.toggle("ons-ios-scroll",t),document.body.classList.toggle("ons-ios-scroll-fix",t))},_.isValidGesture=function(t){return void 0!==t.gesture&&(t.gesture.distance<=15||t.gesture.deltaTime<=100)},_.checkMissingImport=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t){i[t]||_.throw("Ons".concat(t," is required but was not imported (Custom Elements)"))})},_.defineBooleanProperties=function(n,t){t.forEach(function(e){var t=_.camelize(e);Object.defineProperty(n.prototype,t,{get:function(){return this.hasAttribute(e)},set:function(t){t?this.setAttribute(e,""):this.removeAttribute(e)},configurable:!0})})},_.defineStringProperties=function(n,t){t.forEach(function(e){var t=_.camelize(e);Object.defineProperty(n.prototype,t,{get:function(){return this.getAttribute(e)},set:function(t){null==t?this.removeAttribute(e):this.setAttribute(e,t)},configurable:!0})})},_.defineListenerProperty=function(e,n){var i,t=_.camelize(n),o="on"+t.charAt(0).toUpperCase()+t.slice(1);return Object.defineProperty(e,o,{get:function(){return i},set:function(t){e.isConnected&&(i&&e.removeEventListener(n,i),e.addEventListener(n,t)),i=t},configurable:!0}),{onConnected:function(){e[o]&&e.addEventListener(n,e[o])},onDisconnected:function(){e[o]&&e.removeEventListener(n,e[o])}}};var Xt,b=_,Ut={_variables:{},defineVariable:function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];"string"!=typeof t?Wt("Variable name must be a string"):"string"!=typeof e&&"function"!=typeof e?Wt("Variable value must be a string or a function"):Object.prototype.hasOwnProperty.call(this._variables,t)&&!n&&Wt('"'.concat(t,'" is already defined')),this._variables[t]=e},getVariable:function(t){return Object.prototype.hasOwnProperty.call(this._variables,t)?this._variables[t]:null},removeVariable:function(t){delete this._variables[t]},getAllVariables:function(){return this._variables},_parsePart:function(t){var e=!1,n=0,i=[];0===t.length&&Wt("Unable to parse empty string");for(var o,a=0;a<t.length;a++)"$"===(o=t.charAt(a))&&"{"===t.charAt(a+1)?(e&&Wt("Nested interpolation not supported"),0<t.substring(n,a).length&&i.push(t.substring(n,a)),n=a,e=!0):"}"===o&&(e||Wt("} must be preceeded by ${"),0<t.substring(n,a+1).length&&i.push(t.substring(n,a+1)),n=a+1,e=!1);return e&&Wt("Unterminated interpolation"),i.push(t.substring(n,t.length)),i},_replaceToken:function(t){var e,n=t.match(/^\${(.*?)}$/);return n?(n=n[1].trim(),null!==(e=this.getVariable(n))?"string"==typeof e?e:("string"!=typeof(e=e())&&Wt("Must return a string"),e):void Wt('Variable "'.concat(n,'" does not exist'))):t},_replaceTokens:function(t){return t.map(this._replaceToken.bind(this))},_parseExpression:function(t){return t.split(",").map(function(t){return t.trim()}).map(this._parsePart.bind(this)).map(this._replaceTokens.bind(this)).map(function(t){return t.join("")})},evaluate:function(t){return t?this._parseExpression(t):[]}},y=(Ut.defineVariable("mobileOS",r.getMobileOS()),Ut.defineVariable("iOSDevice",r.getIOSDevice()),Ut.defineVariable("runtime",function(){return r.isWebView()?"cordova":"browser"}),{}),k=(y.config={autoStatusBarFill:!0,animationsDisabled:!1,warningsDisabled:!1},y.nullElement=window.document.createElement("div"),y.isEnabledAutoStatusBarFill=function(){return!!y.config.autoStatusBarFill},y.normalizePageHTML=function(t){return(""+t).trim()},y.waitDOMContentLoaded=function(e){"loading"===window.document.readyState||"uninitialized"==window.document.readyState?window.document.addEventListener("DOMContentLoaded",function t(){e(),window.document.removeEventListener("DOMContentLoaded",t)}):setImmediate(e)},y.autoStatusBarFill=function(t){function e(){y.shouldFillStatusBar()&&t(),document.removeEventListener("deviceready",e)}"object"===("undefined"==typeof device?"undefined":o(device))?document.addEventListener("deviceready",e):-1===["complete","interactive"].indexOf(document.readyState)?y.waitDOMContentLoaded(e):e()},y.shouldFillStatusBar=function(){return y.isEnabledAutoStatusBarFill()&&(r.isWebView()&&(r.isIOS7above()||r.isIPadOS())&&!r.isIPhoneX()||document.body.querySelector(".ons-status-bar-mock.ios"))},y.templateStore={_storage:{},get:function(t){return y.templateStore._storage[t]||null},set:function(t,e){y.templateStore._storage[t]=e}},y.getTemplateHTMLAsync=function(o){return new Promise(function(n,i){y.waitDOMContentLoaded(function(){var e,t=y.templateStore.get(o);return t?t instanceof DocumentFragment?n(t):(t="string"==typeof t?t:t[1],n(y.normalizePageHTML(t))):(t=window.document.getElementById(o))?(t=t.textContent||t.content,n(t)):((e=new XMLHttpRequest).open("GET",o,!0),e.onload=function(){var t=e.responseText;400<=e.status&&e.status<600?404===e.status?i(404):i(t):(t=b.createFragment(t),b.arrayFrom(t.querySelectorAll("script")).forEach(function(t){var e=document.createElement("script");e.type=t.type||"text/javascript",e.appendChild(document.createTextNode(t.text||t.textContent||t.innerHTML)),t.parentNode.replaceChild(e,t)}),y.templateStore.set(o,t),n(t))},e.onerror=function(){b.throw("Page template not found: ".concat(o))},void e.send(null))})})},y.getPageHTMLAsync=function(t){var n=Ut.evaluate(t);return function e(t){return"string"!=typeof t?Promise.reject("Must specify a page."):y.getTemplateHTMLAsync(t).catch(function(t){return 0===n.length?Promise.reject(t):e(n.shift())})}(n.shift())},y),w=function(){function e(t){l(this,e),this._animators=t.animators,this._baseClass=t.baseClass,this._baseClassName=t.baseClassName||t.baseClass.name,this._animation=t.defaultAnimation||"default",this._animationOptions=t.defaultAnimationOptions||{},this._animators[this._animation]||b.throw("No such animation: "+this._animation)}return c(e,[{key:"setAnimationOptions",value:function(t){this._animationOptions=t}},{key:"newAnimator",value:function(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arg