1/* onsenui v2.10.1 - 2018-06-08 */ 2!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ons=e()}(this,function(){"use strict";var t,e,i={},r=(t=window.getComputedStyle(document.documentElement,""),e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1],function(t){return"-"+e+"-"+W.hyphenate(t)}),l=function(e,n){return Object.keys(n).forEach(function(t){t in e.style?e.style[t]=n[t]:r(t)in e.style?e.style[r(t)]=n[t]:W.warn("No such style property: "+t)}),e};l.clear=function(n){for(var i=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"").split(/\s+/).reduce(function(t,e){return t.concat([W.hyphenate(e),r(e)])},[]),o=[],t=function(t){var e=n.style[t];(0===i.length||i.some(function(t){return 0===e.indexOf(t)}))&&o.push(e)},e=n.style.length-1;0<=e;e--)t(e);o.forEach(function(t){return n.style[t]=""}),""===n.getAttribute("style")&&n.removeAttribute("style")};var u="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},h=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},d=function(){function i(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,i.key,i)}}return function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}}(),s=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},p=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},g=function(t,e){var n={};for(var i in t)0<=e.indexOf(i)||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},m=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},_=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},n=window.HTMLElement,c=new(function(){function t(){h(this,t),this._selectedPlatform=null,this._ignorePlatformSelect=!1}return d(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;var e=t();return this._ignorePlatformSelect=!1,e}},{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)}},{key:"isIPad",value:function(){return/iPad/i.test(navigator.userAgent)}},{key:"isIPod",value:function(){return/iPod/i.test(navigator.userAgent)}},{key:"isIOS",value:function(){return this._getSelectedPlatform()?"ios"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":u(device))||/browser/i.test(device.platform)?/iPhone|iPad|iPod/i.test(navigator.userAgent):/iOS/i.test(device.platform)}},{key:"isIOS7above",value:function(){if("object"===("undefined"==typeof device?"undefined":u(device))&&!
2/browser/i.test(device.platform))return/iOS/i.test(device.platform)&&7<=parseInt(device.version.split(".")[0]);if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){var t=(navigator.userAgent.match(/\b[0-9]+_[0-9]+(?:_[0-9]+)?\b/)||[""])[0].replace(/_/g,".");return 7<=parseInt(t.split(".")[0])}return!1}},{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(n);return!(!(this.isIOS()&&window.webkit&&window.webkit.messageHandlers&&window.indexedDB)||t)}},{key:"isUIWebView",value:function(){return!(!this.isIOS()||this.isIOSSafari()||this.isWKWebView())}},{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(){return this._getSelectedPlatform()?"android"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":u(device))||/browser/i.test(device.platform)?/Android/i.test(navigator.userAgent):/Android/i.test(device.platform)}},{key:"isWP",value:function(){return this._getSelectedPlatform()?"wp"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":u(device))||/browser/i.test(device.platform)?/Windows Phone|IEMobile|WPDesktop/i.test(navigator.userAgent):/Win32NT|WinCE/i.test(device.platform)}},{key:"isBlackBerry",value:function(){return this._getSelectedPlatform()?"blackberry"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":u(device))||/browser/i.test(device.platform)?/BlackBerry|RIM Tablet OS|BB10/i.test(navigator.userAgent):/BlackBerry/i.test(device.platform)}},{key:"isOpera",value:function(){return this._getSelectedPlatform()?"opera"===this._getSelectedPlatform():!!window.opera||0<=navigator.userAgent.indexOf(" OPR/")}},{key:"isFirefox",value:function(){return this._getSelectedPlatform()?"firefox"===this._getSelectedPlatform():"undefined"!=typeof InstallTrigger}},{key:"isSafari",value:function(){return 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(){return this._getSelectedPlatform()?"chrome"===this._getSelectedPlatform():!(!window.chrome||window.opera||0<=navigator.userAgent.indexOf(" OPR/")||0<=navigator.userAgent.indexOf(" Edge/"))}},{key:"isIE",value:function(){return this._getSelectedPlatform()?"ie"===this._getSelectedPlatform():!!document.documentMode}},{key:"isEdge",value:function(){return 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}()),v=function(t){return W.throw("In PageAttributeExpression: "+t)},o={_variables:{},defineVariable:function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];"string"!=typeof t?v("Variable name must be a string"):"string"!=typeof e&&"function"!=typeof e?v("Variable value must be a string or a function"):this._variables.hasOwnProperty(t)&&!n&&v('"'+t+'" is already defined'),this._variables[t]=e},getVariable:function(t){return this._variables.hasOwnProperty(t)?this._variables[t]:null},removeVariable:function(t){delete this._variables[t]},getAllVariables:function(){return this._variables},_parsePart:function(t){var e=void 0,n=!1,i=0,o=[];0===t.length&&v("Unable to parse empty string");for(var r=0;r<t.length;r++){if("$"===(e=t.charAt(r))&&"{"===t.charAt(r+1))n&&v("Nested interpolation not supported"),0<t.substring(i,r).length&&o.push(t.substring(i,r)),i=r,n=!0;else if("}"===e){n||v("} must be preceeded by ${"),0<t.substring(i,r+1).length&&o.push(t.substring(i,r+1)),i=r+1,n=!1}}return n&&v("Unterminated interpolation"),o.push(t.substring(i,t.length)),o},_replaceToken:function(t){var e=t.match(/^\${(.*?)}$/);if(!e)return t;var n=e[1].trim(),i=this.getVariable(n);if(null!==i){if("string"==typeof i)return i;var o=i();return"string"!=typeof o&&v("Must return a string"),o}v('Variable "'+n+'" does not exist')},_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):[]}};o.defineVariable("mobileOS",c.getMobileOS()),o.defineVariable("iOSDevice",c.getIOSDevice()),o.defineVariable("runtime",function(){return c.isWebView()?"cordova":"browser"});var b={config:{autoStatusBarFill:!0,animationsDisabled:!1,warningsDisabled:!1}};b.nullElement=window.document.createElement("div"),b.isEnabledAutoStatusBarFill=function(){return!!b.config.autoStatusBarFill},b.normalizePageHTML=function(t){return(""+t).trim()},b.waitDOMContentLoaded=function(e){if("loading"===window.document.readyState||"uninitialized"==window.document.readyState){window.document.addEventListener("DOMContentLoaded",function t(){e(),window.document.removeEventListener("DOMContentLoaded",t)})}else setImmediate(e)},b.autoStatusBarFill=function(e){var t=function t(){b.shouldFillStatusBar()&&e(),document.removeEventListener("deviceready",t)};"object"===("undefined"==typeof device?"undefined":u(device))?document.addEventListener("deviceready",t):-1===["complete","
2interactive"].indexOf(document.readyState)?b.waitDOMContentLoaded(t):t()},b.shouldFillStatusBar=function(){return b.isEnabledAutoStatusBarFill()&&(c.isWebView()&&c.isIOS7above()&&!c.isIPhoneX()||document.body.querySelector(".ons-status-bar-mock.ios"))},b.templateStore={_storage:{},get:function(t){return b.templateStore._storage[t]||null},set:function(t,e){b.templateStore._storage[t]=e}},window.document.addEventListener("_templateloaded",function(t){"ons-template"===t.target.nodeName.toLowerCase()&&b.templateStore.set(t.templateId,t.template)},!1),b.waitDOMContentLoaded(function(){function t(t){for(var e=window.document.querySelectorAll(t),n=0;n<e.length;n++)b.templateStore.set(e[n].getAttribute("id"),e[n].textContent||e[n].content)}t('script[type="text/ons-template"]'),t('script[type="text/template"]'),t('script[type="text/ng-template"]'),t("template")}),b.getTemplateHTMLAsync=function(s){return new Promise(function(r,a){b.waitDOMContentLoaded(function(){var t=b.templateStore.get(s);if(t){if(t instanceof DocumentFragment)return r(t);var e="string"==typeof t?t:t[1];return r(b.normalizePageHTML(e))}var n=window.document.getElementById(s);if(n){var i=n.textContent||n.content;return r(i)}var o=new XMLHttpRequest;o.open("GET",s,!0),o.onload=function(){var t=o.responseText;if(400<=o.status&&o.status<600)a(t);else{var e=W.createFragment(t);
2W.arrayFrom(e.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)}),b.templateStore.set(s,e),r(e)}},o.onerror=function(){W.throw("Page template not found: "+s)},o.send(null)})})},b.getPageHTMLAsync=function(t){var n=o.evaluate(t);return function e(t){return"string"!=typeof t?Promise.reject("Must specify a page."):b.getTemplateHTMLAsync(t).catch(function(t){return 0===n.length?Promise.reject(t):e(n.shift())})}(n.shift())};var y=function(){function e(t){h(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]||W.throw("No such animation: "+this._animation)}return d(e,[{key:"setAnimationOptions",value:function(t){this._animationOptions=t}},{key:"newAnimator",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=null;if(t.animation instanceof this._baseClass)return t.animation;var i=null;if("string"==typeof t.animation&&(i=this._animators[t.animation]),!i&&e)n=e;else{i=i||this._animators[this._animation];var o=W.extend({},this._animationOptions,t.animationOptions||{},b.config.animationsDisabled?{duration:0,delay:0}:{});"function"==typeof(n=new i(o))&&(n=new n(o))}return n instanceof this._baseClass||W.throw('"animator" is not an instance of '+this._baseClassName),n}}],[{key:"parseAnimationOptionsString",value:function(e){try{if("string"==typeof e){var t=W.animationOptionsParse(e);if("object"===(void 0===t?"undefined":u(t))&&null!==t)return t;console.error('"animation-options" attribute must be a JSON object string: '+e)}return{}}catch(t){return console.error('"animation-options" attribute must be a JSON object string: '+e),{}}}}]),e}(),k=!0,w={quiet:"material--flat",light:"material--flat",outline:"material--flat",cta:"","large--quiet":"material--flat large","large--cta":"large",noborder:"",tappable:""},E={android:function(t){var e=t.tagName.toLowerCase();if(!W.hasModifier(t,"material")){var n=(t.getAttribute("modifier")||"").trim().split(/\s+/).map(function(t){return w.hasOwnProperty(t)?w[t]:t});n.unshift("material"),t.setAttribute("modifier",n.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(e)||t.hasAttribute("ripple")||t.querySelector("ons-ripple")||("ons-list-item"===e?t.hasAttribute("tappable")&&(t.setAttribute("ripple",""),t.removeAttribute("tappable")):t.setAttribute("ripple",""))},ios:function(t){W.removeModifier(t,"material")&&(W.removeModifier(t,"material--flat")&&W.addModifier(t,W.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"))}},C={android:!0},A=function(t,e){if(k&&!t.hasAttribute("disable-auto-styling")){var n=c.getMobileOS();if(E.hasOwnProperty(n)&&(C.hasOwnProperty(n)||e))return n}return null},S=function(t,e,n){return A(e,n)?t.split(/\s+/).map(function(t){return w.hasOwnProperty(t)?w[t]:t}).join(" "):t},P={isEnabled:function(){return k},enable:function(){return k=!0},disable:function(){return k=!1},prepare:function(t,e){var n=A(t,e);n&&E[n](t)},mapModifier:S,getPlatform:A,restoreModifier:function(t){if("android"===A(t)){var e=t.getAttribute("modifier")||"",n=S(e,t);if(/(^|\s+)material($|\s+)/i.test(e)||(n="material "+n),n!==e)return t.setAttribute("modifier",n.trim()),!0}return!1}},O=function(){function a(){h(this,a)}return d(a,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 a.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)}
vendor: 10,652 bytes, line 2
2).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,r){Object.keys(r).forEach(function(t){for(var e=!t||W.match(o,t)?[o]:Array.prototype.filter.call(o.querySelectorAll(t),function(t){return!W.findParent(t,o.tagName,function(t){return t===o})}),n=0;n<e.length;n++)a.applyDiffToClassList(i,e[n].classList,r[t])})}},{key:"onModifierChanged",value:function(t,e,n,i){a.applyDiffToElement(a.diff(t,e),n,i),P.restoreModifier(n)}},{key:"refresh",value:function(t,e){a.applyDiffToElement(a.diff("",t.getAttribute("modifier")||""),t,e)}},{key:"initModifier",value:function(t,e){var n=t.getAttribute("modifier");"string"==typeof n&&a.applyDiffToElement({removed:[],added:a.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){if(t.hasAttribute("modifier")){var n=a.split(t.getAttribute("modifier"));-1==n.indexOf(e)&&(n.push(e),t.setAttribute("modifier",n.join(" ")))}else t.setAttribute("modifier",e)}},{key:"removeModifier",value:function(t,e){if(t.hasAttribute("modifier")){var n=a.split(t.getAttribute("modifier")),i=n.indexOf(e);-1!==i&&(n.splice(i,1),t.setAttribute("modifier",n.join(" ")))}}}]),a}(),x={_ready:!1,_domContentLoaded:!1,_onDOMContentLoaded:function(){x._domContentLoaded=!0,c.isWebView()?window.document.addEventListener("deviceready",function(){x._ready=!0},!1):x._ready=!0},addBackButtonListener:function(t){if(!this._domContentLoaded)throw new Error("This method is available after DOMContentLoaded");this._ready?window.document.addEventListener("backbutton",t,!1):window.document.addEventListener("deviceready",function(){window.document.addEventListener("backbutton",t,!1)})},removeBackButtonListener:function(t){if(!this._domContentLoaded)throw new Error("This method is available after DOMContentLoaded");this._ready?window.document.removeEventListener("backbutton",t,!1):window.document.addEventListener("deviceready",function(){window.document.removeEventListener("backbutton",t,!1)})}};window.addEventListener("DOMContentLoaded",function(){return x._onDOMContentLoaded()},!1);var T,L={_store:{},_genId:(T=0,function(){return T++}),set:function(t,e){t.dataset.deviceBackButtonHandlerId&&this.remove(t);var n=t.dataset.deviceBackButtonHandlerId=L._genId();this._store[n]=e},remove:function(t){t.dataset.deviceBackButtonHandlerId&&(delete this._store[t.dataset.deviceBackButtonHandlerId],delete t.dataset.deviceBackButtonHandlerId)},get:function(t){if(t.dataset.deviceBackButtonHandlerId){var e=t.dataset.deviceBackButtonHandlerId;if(!this._store[e])throw new Error;return this._store[e]}},has:function(t){if(!t.dataset)return!1;var e=t.dataset.deviceBackButtonHandlerId;return!!this._store[e]}},M=new(function(){function t(){h(this,t),this._isEnabled=!1,this._boundCallback=this._callback.bind(this)}return d(t,[{key:"enable",value:function(){this._isEnabled||(x.addBackButtonListener(this._boundCallback),this._isEnabled=!0)}},{key:"disable",value:function(){this._isEnabled&&(x.removeBackButtonListener(this._boundCallback),this._isEnabled=!1)}},{key:"fireDeviceBackButtonEvent",value:function(){var t=document.createEvent("Event");t.initEvent("backbutton",!0,!0),document.dispatchEvent(t)}},{key:"_callback",value:function(){this._dispatchDeviceBackButtonEvent()}},{key:"createHandler",value:function(t,e){if(!(t instanceof HTMLElement))throw new Error("element must be an instance of HTMLElement");if(!(e instanceof Function))throw new Error("callback must be an instance of Function");var n={_callback:e,_element:t,disable:function(){L.remove(t)},setListener:function(t){this._callback=t},enable:function(){L.set(t,this)},isEnabled:function(){return L.get(t)===this},destroy:function(){L.remove(t),this._callback=this._element=null}};return n.enable(),n}},{key:"_dispatchDeviceBackButtonEvent",value:function(){var t=this._captureTree(),e=this._findHandlerLeafElement(t),n=L.get(e);n._callback(function e(t){return{_element:t,callParentHandler:function(){for(var t=this._element.parentNode;t;){if(n=L.get(t))return n._callback(e(t));t=t.parentNode}}}}(e))}},{key:"_captureTree",value:function(){return function n(t){var e={element:t,children:Array.prototype.concat.apply([],function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e}(t.children).map(function(t){if("none"===t.style.display||!1===t._isShown)return[];if(0===t.children.length&&!L.has(t))return[];var e=n(t);return 0!==e.children.length||L.has(e.element)?[e]:[]}))};if(!L.has(e.element))for(var i=0;i<e.children.length;i++){var o=e.children[i];if(L.has(o.element))return o}return e}(document.body)}},{key:"_findHandlerLeafElement",value:function(t){return function t(e){if(0===e.children.length)return e.element;if(1===e.children.length)return t(e.children[0]);return e.children.map(function(t){return t.element}).reduce(function(t,e){if(!t)return e;var n=parseInt(window.getComputedStyle(t,"").zIndex,10),i=parseInt(window.getComputedStyle(e,"").zIndex,10);if(!isNaN(n)&&!isNaN(i))return i<n?t:e;throw new Error("Capturing backbutton-handler is failure.")},null)}(t)}}]),t}());b.AnimatorFactory=y,b.ModifierUtil=O,b.dbbDispatcher=M;var D=function(t,e){return t.substr(0,e.length)===e},I=function(t,e){return t.substr(t.length-e.length,e.length)===e},N=function(t){return t.slice(1,-1)},B=function(t){return D(t,"{")&&I(t,"}")},j=function(t){return D(t,"[")&&I(t,"]")},H=function(t){return D(t,"'")&&I(t,"'")||D(t,'"')&&I(t,'"')},R=function(t,e,n){throw new Error("Unexpected token '"+t+"' at position "+(n.length-e.length-1)+" in string: '"+n+"'")},F=function(t,e,n){return"true"===t||"false"===t?"true"===t:H(t)?N(t):isNaN(t)?B(t)?z(N(t)):j(t)?V(N(t)):void R(t,e,n):+t},q=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 r=1;r<t.length;r++)if(t[r]===t[0]){e=r+1;break}}else for(var a=1;a<t.length;a++)if(-1!==[" ",",",":"].indexOf(t[a])){e=a;break}return t.slice(0,e)},z=function(t){for(var e=t=t.trim(),n={},i=!0,o=void 0,r=void 0,a=void 0;0<t.length;)if(r=a,a=q(t),t=t.slice(a.length,t.length).trim(),":"===a&&(!i||!r||","===r)||","===a&&i||":"!==a&&","!==a&&r&&","!==r&&":"!==r)R(a,t,e);else if(":"===a&&i&&r){if(r=H(r)?N(r):r,!/^[A-Z_$][A-Z0-9_$]*$/i.test(r))throw new Error("Invalid key token '"+r+"' at position 0 in string: '"+e+"'");o=r,i=!1}else","===a&&!i&&r&&(n[o]=F(r,t,e),i=!0);return a&&(n[o]=F(a,t,e)),n},V=function(t){for(var e=t=t.trim(),n=[],i=void 0,o=void 0;0<t.length;)i=o,o=q(t),t=t.slice(o.length,t.length).trim(),","!==o||i&&","!==i?","===o&&n.push(F(i,t,e)):R(o,t,e);return o&&(","!==o?n.push(F(o,t,e)):R(o,t,e)),n},W={},U="[Onsen UI]";W.globals={fabOffset:0,errorPrefix:U,supportsPassive:!1},c._runOnActualPlatform(function(){W.globals.actualMobileOS=c.getMobileOS(),W.globals.isUIWebView=c.isUIWebView(),W.globals.isWKWebView=c.isWKWebView()});try{var X=Object.defineProperty({},"passive",{get:function(){W.globals.supportsPassive=!0}});window.addEventListener("testPassive",null,X),window.removeEventListener("testPassive",null,X)}catch(t){}W.addEventListener=function(t,e,n,i,o){t.addEventListener(e,n,W.globals.supportsPassive?i:(i||{}).capture)},W.removeEventListener=function(t,e,n,i,o){t.removeEventListener(e,n,W.globals.supportsPassive?i:(i||{}).capture)},W.prepareQuery=function(e){return e instanceof Function?e:function(t){return W.match(t,e)}},W.match=function(t,e){return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector).call(t,e)},W.findChild=function(t,e){for(var n=W.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},W.findParent=function(t,e,n){for(var i=W.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}},W.isAttached=function(t){return document.body.contains(t)},W.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},W.getAllChildNodes=function(t){var e;return(e=[t]).concat.apply(e,_(Array.from(t.children).map(function(t){return W.getAllChildNodes(t)})))},W.isPageControl=function(t){return t.nodeName.match(/^ons-(navigator|splitter|tabbar|page)$/i)},W.propagateAction=function(t,e){for(var n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];i[e]instanceof Function?i[e]():W.propagateAction(i,e)}},W.camelize=function(t){return t.toLowerCase().replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})},W.hyphenate=function(t){return t.replace(/([a-zA-Z])([A-Z])/g,"$1-$2").toLowerCase()},W.create=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.split("."),i=document.createElement(n.shift()||"div");return n.length&&(i.className=n.join(" ")),l(i,e),i},W.createElement=function(t){var e=document.createElement("div");t instanceof DocumentFragment?e.appendChild(document.importNode(t,!0)):e.innerHTML=t.trim(),1<e.children.length&&W.throw("HTML template must contain a single root element");var n=e.children[0];return e.children[0].remove(),n},W.createFragment=function(t){var e=document.createElement("template");return e.innerHTML=t,document.importNode(e.content,!0)},W.extend=function(t){for(var e=arguments.length,n=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 r=Object.keys(n[o]),a=0;a<r.length;a++){var s=r[a];t[s]=n[o][s]}return t},W.arrayFrom=function(t){return Array.prototype.slice.apply(t)},W.parseJSONObjectSafely=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};try{var n=JSON.parse(""+t);if("object"===(void 0===n?"undefined":u(n))&&null!==n)return n}catch(t){return e}return e},W.findFromPath=function(t){t=t.split(".");for(var e,n=window;e=t.shift();)n=n[e];return n},W.getTopPage=function(t){return t&&("ons-page"===t.tagName.toLowerCase()?t:t.topPage)||null},W.findToolbarPage=function(t){var e=W.getTopPage(t);if(e){if(e._canAnimateToolbar())return e;for(var n=0;n<e._contentElement.children.length;n++){var i=W.getTopPage(e._contentElement.children[n]);if(i&&!/ons-tabbar/i.test(e._contentElement.children[n].tagName))return W.f
2indToolbarPage(i)}}return null},W.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},W.hasModifier=function(t,e){return!!t.hasAttribute("modifier")&&RegExp("(^|\\s+)"+e+"($|\\s+)","i").test(t.getAttribute("modifier"))},W.addModifier=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return n.autoStyle&&(e=P.mapModifier(e,t,n.forceAutoStyle)),!W.hasModifier(t,e)&&(t.setAttribute("modifier",((t.getAttribute("modifier")||"")+" "+e).trim()),!0)},W.removeModifier=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(n.autoStyle&&(e=P.mapModifier(e,t,n.forceAutoStyle)),!t.getAttribute("modifier")||!W.hasModifier(t,e))return!1;var i=t.getAttribute("modifier").split(/\s+/).filter(function(t){return t&&t!==e});return i.length?t.setAttribute("modifier",i.join(" ")):t.removeAttribute("modifier"),!0},W.toggleModifier=function(){var t=2<arguments.length?arguments.length<=2?void 0:arguments[2]:{},e="boolean"==typeof t?t:t.force;("boolean"==typeof e?e:!W.hasModifier.apply(W,arguments))?W.addModifier.apply(W,arguments):W.removeModifier.apply(W,arguments)},W.restoreClass=function(e,t,n){t.split(/\s+/).forEach(function(t){return""!==t&&!e.classList.contains(t)&&e.classList.add(t)}),e.hasAttribute("modifier")&&O.refresh(e,n)},W.updateParentPosition=function(t){!t._parentUpdated&&t.parentElement&&("static"===window.getComputedStyle(t.parentElement).getPropertyValue("position")&&(t.parentElement.style.position="relative"),t._parentUpdated=!0)},W.toggleAttribute=function(t,e,n){n?t.setAttribute(e,"boolean"==typeof n?"":n):t.removeAttribute(e)},W.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)})},W.each=function(e,n){return Object.keys(e).forEach(function(t){return n(t,e[t])})},W.updateRipple=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};void 0===e&&(e=t.hasAttribute("ripple"));var i=W.findChild(t,"ons-ripple");if(e){if(!i){var o=document.createElement("ons-ripple");Object.keys(n).forEach(function(t){return o.setAttribute(t,n[t])}),t.insertBefore(o,t.firstChild)}}else i&&i.remove()},W.animationOptionsParse=function(t){if(t=t.trim(),B(t))return z(N(t));if(j(t))return V(N(t));throw new Error("Provided string must be object or array like: "+t)},W.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},W.defer=function(){var n={};return n.promise=new Promise(function(t,e){n.resolve=t,n.reject=e}),n},W.warn=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i;b.config.warningsDisabled||(i=console).warn.apply(i,[U].concat(e))},W.throw=function(t){throw new Error(U+" "+t)},W.throwAbstract=function(){return W.throw("Cannot instantiate abstract class")},W.throwMember=function(){return W.throw("Class member must be implemented")},W.throwPageLoader=function(){return W.throw("First parameter should be an instance of PageLoader")},W.throwAnimator=function(t){return W.throw('"Animator" param must inherit '+t+"Animator")};var Y=function(t){return t.cancelable&&t.preventDefault()};W.iosPreventScroll=function(n){if("ios"===W.globals.actualMobileOS){n.on("touchmove",Y),n.on("dragend",function t(e){n.off("touchmove",Y),n.off("dragend",t)})}},W.iosPageScrollFix=function(t){"ios"===W.globals.actualMobileOS&&(document.body.classList.toggle("ons-ios-scroll",t),W.globals.isUIWebView&&!b.config.forceUIWebViewScrollFix||document.body.classList.toggle("ons-ios-scroll-fix",t))},W.iosMaskScrollFix=function(t,e){W.globals.isUIWebView&&t[(e?"add":"remove")+"EventListener"]("touchmove",Y,!1)},W.isValidGesture=function(t){return void 0!==t.gesture&&(t.gesture.distance<=15||t.gesture.deltaTime<=100)},W.checkMissingImport=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t){i[t]||W.throw("Ons"+t+" is required but was not imported (Custom Elements)")})};
vendor: 5,980 bytes, line 2
2var G,$,K,Q,J={};J.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},J.buildTransitionValue=function(e){return e.property=e.property||"all",e.duration=e.duration||.4,e.timing=e.timing||"linear",e.property.split(/ +/).map(function(t){return t+" "+e.duration+"s "+e.timing}).join(", ")},J.onceOnTransitionEnd=function(e,n){if(!e)return function(){};var i=function(t){e==t.target&&(t.stopPropagation(),o(),n())},o=function(){J._transitionEndEvents.forEach(function(t){e.removeEventListener(t,i,!1)})};return J._transitionEndEvents.forEach(function(t){e.addEventListener(t,i,!1)}),o},J._transitionEndEvents="ontransitionend"in window?["transitionend"]:"onwebkittransitionend"in window?["webkitTransitionEnd"]:"webkit"===J.vendorPrefix||"o"===J.vendorPrefix||"moz"===J.vendorPrefix||"ms"===J.vendorPrefix?[J.vendorPrefix+"TransitionEnd","transitionend"]:[],J._cssPropertyDict=function(){for(var t=window.getComputedStyle(document.documentElement,""),e={},n="A".charCodeAt(0),i="z".charCodeAt(0),o=function(t){return t.substr(1).toUpperCase()},r=0;r<t.length;r++){var a=t[r].replace(/^[-]+/,"").replace(/[-][a-z]/g,o).replace(/^moz/,"Moz");n<=a.charCodeAt(0)&&i>=a.charCodeAt(0)&&"cssText"!==a&&"parentText"!==a&&(e[a]=!0)}return e}(),J.hasCssProperty=function(t){return t in J._cssPropertyDict},J.vendorPrefix=(G=window.getComputedStyle(document.documentElement,""),(Array.prototype.slice.call(G).join("").match(/-(moz|webkit|ms)-/)||""===G.OLink&&["","o"])[1]),J.forceLayoutAtOnce=function(t,e){this.batchImmediate(function(){t.forEach(function(t){t.offsetHeight}),e()})},J.batchImmediate=($=[],function(t){0===$.length&&setImmediate(function(){var t=$.slice(0);$=[],t.forEach(function(t){t()})}),$.push(t)}),J.batchAnimationFrame=(K=[],Q=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},function(t){0===K.length&&Q(function(){var t=K.slice(0);K=[],t.forEach(function(t){t()})}),K.push(t)}),J.transitionPropertyName=function(){if(J.hasCssProperty("transitionDuration"))return"transition";if(J.hasCssProperty(J.vendorPrefix+"TransitionDuration"))return J.vendorPrefix+"Transition";throw new Error("Invalid state")}();var Z,tt,et,nt,it=function t(e,n){if(!(this instanceof t))return new t(e,n);if(e instanceof HTMLElement)this.elements=[e];else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("First argument must be an array or an instance of HTMLElement.");this.elements=e}this.defaults=n,this.transitionQueue=[],this.lastStyleAttributeDict=[]};it.prototype={transitionQueue:void 0,elements:void 0,defaults:void 0,play:function(e){return"function"==typeof e&&this.transitionQueue.push(function(t){e(),t()}),this.startAnimation(),this},default:function(t,e,n){function i(t,e,n){return void 0!==t.duration&&(e=t.duration),void 0!==t.timing&&(n=t.timing),{css:t.css||t,duration:e,timing:n}}return this.saveStyle().queue(i(t,0,this.defaults.timing)).wait(void 0===n?this.defaults.delay:n).queue(i(e,this.defaults.duration,this.defaults.timing)).restoreStyle()},queue:function(t,e){var n=this.transitionQueue;if(t&&e&&(e.css=t,t=new it.Transition(e)),t instanceof Function||t instanceof it.Transition||(t=t.css?new it.Transition(t):new it.Transition({css:t})),t instanceof Function)n.push(t);else{if(!(t instanceof it.Transition))throw new Error("Invalid arguments");n.push(t.build())}return this},wait:function(e){return 0<e&&this.transitionQueue.push(function(t){setTimeout(t,1e3*e)}),this},saveStyle:function(){return this.transitionQueue.push(function(t){this.elements.forEach(function(t,e){for(var n=this.lastStyleAttributeDict[e]={},i=0;i<t.style.length;i++)n[t.style[i]]=t.style[t.style[i]]}.bind(this)),t()}.bind(this)),this},restoreStyle:function(r){var a=this;if((r=r||{}).transition&&!r.duration)throw new Error('"options.duration" is required when "options.transition" is enabled.');var s=J.transitionPropertyName;if(r.transition||r.duration&&0<r.duration){var l=r.transition||"all "+r.duration+"s "+(r.timing||"linear");this.transitionQueue.push(function(t){var e,n=this.elements,i=function(){n.forEach(function(t){t.style[s]=""})},o=J.onceOnTransitionEnd(n[0],function(){clearTimeout(e),i(),t()});e=setTimeout(function(){o(),i(),t()},1e3*r.duration*1.4),n.forEach(function(e,t){var n,i=a.lastStyleAttributeDict[t];if(!i)throw new Error("restoreStyle(): The style is not saved. Invoke saveStyle() before.");a.lastStyleAttributeDict[t]=void 0;for(var o=0,r=e.style.length;o<r;o++)n=e.style[o],void 0===i[n]&&(i[n]="");e.style[s]=l,Object.keys(i).forEach(function(t){t!==s&&(e.style[t]=i[t])}),e.style[s]=l})})}else this.transitionQueue.push(function(t){a.elements.forEach(function(e,t){e.style[s]="none";var n=a.lastStyleAttributeDict[t];if(!n)throw new Error("restoreStyle(): The style is not saved. Invoke saveStyle() before.");a.lastStyleAttributeDict[t]=void 0;for(var i=0;i<e.style.length;i++)e.style[i],void 0===n[e.style[i]]&&(n[e.style[i]]="");Object.keys(n).forEach(function(t){e.style[t]=n[t]})}),t()});return this},startAnimation:function(){return this._dequeueTransition(),this},_dequeueTransition:function(){var t=this.transitionQueue.shift();if(this._currentTransition)throw new Error("Current transition exists.");this._currentTransition=t;var e=this,n=!1;t&&t.call(this,function(){if(n)throw new Error("Invalid state: This callback is called twice.");n=!0,e._currentTransition=void 0,e._dequeueTransition()})}},it.runAll=function(){for(var t=0;t<arguments.length;t++)arguments[t].play()},(it.Transition=function(t){this.options=t||{},this.options.duration=this.options.duration||0,this.options.timing=this.options.timing||"linear",this.options.css=this.options.css||{},this.options.property=this.options.property||"all"}).prototype={build:function(){if(0===Object.keys(this.options.css).length)throw new Error("options.css is required.");var i,o,r=(i=this.options.css,o={}
2,Object.keys(i).forEach(function(t){var e=i[t];if(J.hasCssProperty(t))o[t]=e;else{var n=J.vendorPrefix+J.capitalize(t);J.hasCssProperty(n)?o[n]=e:(o[n]=e,o[t]=e)}}),o);if(0<this.options.duration){var a=J.buildTransitionValue(this.options),s=this;return function(t){var e,n=this.elements,i=1e3*s.options.duration*1.4,o=J.onceOnTransitionEnd(n[0],function(){clearTimeout(e),t()});e=setTimeout(function(){o(),t()},i),n.forEach(function(e){e.style[J.transitionPropertyName]=a,Object.keys(r).forEach(function(t){e.style[t]=r[t]})})}}if(this.options.duration<=0)return function(t){var e=this.elements;e.forEach(function(e){e.style[J.transitionPropertyName]="",Object.keys(r).forEach(function(t){e.style[t]=r[t]})}),0<e.length?J.forceLayoutAtOnce(e,function(){J.batchAnimationFrame(t)}):J.batchAnimationFrame(t)}}};var ot=function t(e,n){return new t.Instance(e,n||{})};ot.defaults={behavior:{touchAction:"pan-y",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ot.DOCUMENT=document,ot.HAS_POINTEREVENTS=navigator.pointerEnabled||navigator.msPointerEnabled,ot.HAS_TOUCHEVENTS="ontouchstart"in window,ot.IS_MOBILE=/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent),ot.NO_MOUSEEVENTS=ot.HAS_TOUCHEVENTS&&ot.IS_MOBILE||ot.HAS_POINTEREVENTS,ot.CALCULATE_INTERVAL=25;var rt,at,st,lt,ut,ct,ht,dt={},ft=ot.DIRECTION_DOWN="down",pt=ot.DIRECTION_LEFT="left",gt=ot.DIRECTION_UP="up",mt=ot.DIRECTION_RIGHT="right",_t=ot.POINTER_MOUSE="mouse",vt=ot.POINTER_TOUCH="touch",bt=ot.POINTER_PEN="pen",yt=ot.EVENT_START="start",kt=ot.EVENT_MOVE="move",wt=ot.EVENT_END="end",Et=ot.EVENT_RELEASE="release",Ct=ot.EVENT_TOUCH="touch";ot.READY=!1,ot.plugins=ot.plugins||{},ot.gestures=ot.gestures||{},tt=ot.utils={extend:function(t,e,n){for(var i in e)!e.hasOwnProperty(i)||void 0!==t[i]&&n||(t[i]=e[i]);return t},on:function(t,e,n,i){W.addEventListener(t,e,n,i,!0)},off:function(t,e,n,i){W.removeEventListener(t,e,n,i,!0)},each:function(t,e,n){var i,o;if("forEach"in t)t.forEach(e,n);else if(void 0!==t.length){for(i=0,o=t.length;i<o;i++)if(!1===e.call(n,t[i],i,t))return}else for(i in t)if(t.hasOwnProperty(i)&&!1===e.call(n,t[i],i,t))return},inStr:function(t,e){return-1<t.indexOf(e)},inArray:function(e,n,t){if(t){for(var i=0,o=e.length;i<o;i++)if(Object.keys(n).every(function(t){return e[i][t]===n[t]}))return i;return-1}if(e.indexOf)return e.indexOf(n);for(i=0,o=e.length;i<o;i++)if(e[i]===n)return i;return-1},toArray:function(t){return Array.prototype.slice.call(t,0)},hasParent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1},getCenter:function(t){var e=[],n=[],i=[],o=[],r=Math.min,a=Math.max;return 1===t.length?{pageX:t[0].pageX,pageY:t[0].pageY,clientX:t[0].clientX,clientY:t[0].clientY}:(tt.each(t,function(t){e.push(t.pageX),n.push(t.pageY),i.push(t.clientX),o.push(t.clientY)}),{pageX:(r.apply(Math,e)+a.apply(Math,e))/2,pageY:(r.apply(Math,n)+a.apply(Math,n))/2,clientX:(r.apply(Math,i)+a.apply(Math,i))/2,clientY:(r.apply(Math,o)+a.apply(Math,o))/2})},getVelocity:function(t,e,n){return{x:Math.abs(e/t)||0,y:Math.abs(n/t)||0}},getAngle:function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return 180*Math.atan2(i,n)/Math.PI},getDirection:function(t,e){var n=Math.abs(t.clientX-e.clientX);return Math.abs(t.clientY-e.clientY)<=n?0<t.clientX-e.clientX?pt:mt:0<t.clientY-e.clientY?gt:ft},getDistance:function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)},getScale:function(t,e){return 2<=t.length&&2<=e.length?this.getDistance(e[0],e[1])/this.getDistance(t[0],t[1]):1},getRotation:function(t,e){return 2<=t.length&&2<=e.length?this.getAngle(e[1],e[0])-this.getAngle(t[1],t[0]):0},isVertical:function(t){return t==gt||t==ft},setPrefixedCss:function(t,e,n,i){var o=["","Webkit","Moz","O","ms"];e=tt.toCamelCase(e);for(var r=0;r<o.length;r++){var a=e;if(o[r]&&(a=o[r]+a.slice(0,1).toUpperCase()+a.slice(1)),a in t.style){t.style[a]=(null===i||i)&&n||"";break}}},toggleBehavior:function(n,t,i){if(t&&n&&n.style){tt.each(t,function(t,e){tt.setPrefixedCss(n,e,t,i)});var e=i&&function(){return!1};"none"==t.userSelect&&(n.onselectstart=e),"none"==t.userDrag&&(n.ondragstart=e)}},toCamelCase:function(t){return t.replace(/[_-]([a-z])/g,function(t){return t[1].toUpperCase()})}},Z=ot.event={preventMouseEvents:!1,started:!1,shouldDetect:!1,on:function(e,t,n,i,o){var r=t.split(" ");tt.each(r,function(t){tt.on(e,t,n,i),o&&o(t)})},off:function(e,t,n,i,o){var r=t.split(" ");tt.each(r,function(t){tt.off(e,t,n,i),o&&o(t)})},onTouch:function(r,a,s,t){var l=this,e=function(t){var e,n=t.type.toLowerCase(),i=ot.HAS_POINTEREVENTS,o=tt.inStr(n,"mouse");o&&l.preventMouseEvents||(o&&a==yt&&0===t.button?(l.preventMouseEvents=!1,l.shouldDetect=!0):i&&a==yt?l.shouldDetect=1===t.buttons||nt.matchType(vt,t):o||a!=yt||(l.preventMouseEvents=!0,l.shouldDetect=!0),i&&a!=wt&&nt.updatePointer(a,t),l.shouldDetect&&(e=l.doDetect.call(l,t,a,r,s)),e==wt&&(l.preventMouseEvents=!1,l.shouldDetect=!1,nt.reset()),i&&a==wt&&nt.updatePointer(a,t))};return this.on(r,dt[a],e,t),e},doDetect:function(t,e,n,i){var o=this.getTouchList(t,e),r=o.length,a=e,s=o.trigger,l=r;e==yt?s=Ct:e==wt&&(s=Et,l=o.length-(t.changedTouches?t.changedTouches.length:1)),0<l&&this.started&&(a=kt),this.started=!0;var u=this.collectEventData(n,a,o,t);return e!=wt&&i.call(et,u),s&&(u.changedLength=l,u.eventType=s,i.call(et,u),u.eventType=a,delete u.changedLength),a==wt&&(i.call(et,u),this.started=!1),a},determineEventTypes:function(){var t;return t=ot.HAS_POINTEREVENTS?window.PointerEvent?["pointerdown","pointermove","pointerup pointercancel lostpointercapture"]:["MSPointerDown","MSPointerMove","MSPointerUp MSPointerCancel MSLostPointerCapture"]:ot.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],dt[yt]=t[0],dt[kt]=t[1],dt[wt]=t[2],dt},getTouchList:function(t,e){if(ot.HAS_POINTEREVENTS)return nt.getTouchList();if(t.touches){if(e==kt)return t.touches;var n=[],i=[].concat(tt.toArray(t.touches),tt.toArray(t.changedTouches)),o=[];return tt.each(i,function(t){-1===tt.inArray(n,t.identifier)&&o.push(t),n.push(t.identifier)}),o}return t.identifier=1,[t]},collectEventData:function(t,e,n,i){var o=vt;return tt.inStr(i.type,"mouse")||nt.matchType(_t,i)?o=_t:nt.matchType(bt,i
vendor: 4,189 bytes, line 2
2)&&(o=bt),{center:tt.getCenter(n),timeStamp:Date.now(),target:i.target,touches:n,eventType:e,pointerType:o,srcEvent:i,preventDefault:function(){var t=this.srcEvent;t.preventManipulation&&t.preventManipulation(),t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return et.stopDetect()}}}},nt=ot.PointerEvent={pointers:{},getTouchList:function(){var e=[];return tt.each(this.pointers,function(t){e.push(t)}),e},updatePointer:function(t,e){t==wt||t!=wt&&1!==e.buttons?delete this.pointers[e.pointerId]:(e.identifier=e.pointerId,this.pointers[e.pointerId]=e)},matchType:function(t,e){if(!e.pointerType)return!1;var n=e.pointerType,i={};return i[_t]=n===(e.MSPOINTER_TYPE_MOUSE||_t),i[vt]=n===(e.MSPOINTER_TYPE_TOUCH||vt),i[bt]=n===(e.MSPOINTER_TYPE_PEN||bt),i[t]},reset:function(){this.pointers={}}},et=ot.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startEvent:tt.extend({},e),lastEvent:!1,lastCalcEvent:!1,futureCalcEvent:!1,lastCalcData:{},name:""},this.detect(e))},detect:function(e){if(this.current&&!this.stopped){e=this.extendEventData(e);var n=this.current.inst,i=n.options;return tt.each(this.gestures,function(t){!this.stopped&&n.enabled&&i[t.name]&&t.handler.call(t,e,n)},this),this.current&&(this.current.lastEvent=e),e.eventType==wt&&this.stopDetect(),e}},stopDetect:function(){this.previous=tt.extend({},this.current),this.current=null,this.stopped=!0},getCalculatedData:function(t,e,n,i,o){var r=this.current,a=!1,s=r.lastCalcEvent,l=r.lastCalcData;s&&t.timeStamp-s.timeStamp>ot.CALCULATE_INTERVAL&&(e=s.center,n=t.timeStamp-s.timeStamp,i=t.center.clientX-s.center.clientX,o=t.center.clientY-s.center.clientY,a=!0),t.eventType!=Ct&&t.eventType!=Et||(r.futureCalcEvent=t),r.lastCalcEvent&&!a||(l.velocity=tt.getVelocity(n,i,o),l.angle=tt.getAngle(e,t.center),l.direction=tt.getDirection(e,t.center),r.lastCalcEvent=r.futureCalcEvent||t,r.futureCalcEvent=t),t.velocityX=l.velocity.x,t.velocityY=l.velocity.y,t.interimAngle=l.angle,t.interimDirection=l.direction},extendEventData:function(t){var e=this.current,n=e.startEvent,i=e.lastEvent||n;t.eventType!=Ct&&t.eventType!=Et||(n.touches=[],tt.each(t.touches,function(t){n.touches.push({clientX:t.clientX,clientY:t.clientY})}));var o=t.timeStamp-n.timeStamp,r=t.center.clientX-n.center.clientX,a=t.center.clientY-n.center.clientY;return this.getCalculatedData(t,i.center,o,r,a),tt.extend(t,{startEvent:n,deltaTime:o,deltaX:r,deltaY:a,distance:tt.getDistance(n.center,t.center),angle:tt.getAngle(n.center,t.center),direction:tt.getDirection(n.center,t.center),scale:tt.getScale(n.touches,t.touches),rotation:tt.getRotation(n.touches,t.touches)}),t},register:function(t){var e=t.defaults||{};return void 0===e[t.name]&&(e[t.name]=!0),tt.extend(ot.defaults,e,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}),this.gestures}},(ot.Instance=function(t,n){var e,i=this,o=n&&n.passive?{passive:!0}:void 0;e=o,ot.READY||(Z.determineEventTypes(),tt.each(ot.gestures,function(t){et.register(t)}),Z.onTouch(ot.DOCUMENT,kt,et.detect,e),Z.onTouch(ot.DOCUMENT,wt,et.detect,e),ot.READY=!0),this.element=t,this.enabled=!0,tt.each(n,function(t,e){delete n[e],n[tt.toCamelCase(e)]=t}),this.options=tt.extend(tt.extend({},ot.defaults),n||{}),this.options.listenerOptions=o,this.options.behavior&&tt.toggleBehavior(this.element,this.options.behavior,!0),this.eventStartHandler=Z.onTouch(t,yt,function(t){i.enabled&&t.eventType==yt?et.startDetect(i,t):t.eventType==Ct&&et.detect(t)},o),this.eventHandlers=[]}).prototype={on:function(t,e,n){var i=this;return Z.on(i.element,t,e,W.extend({},i.options.listenerOptions,n),function(t){i.eventHandlers.push({gesture:t,handler:e})}),i},off:function(t,n,e){var i=this;return Z.off(i.element,t,n,W.extend({},i.options.listenerOptions,e),function(t){var e=tt.inArray(i.eventHandlers,{gesture:t,handler:n},!0);0<=e&&i.eventHandlers.splice(e,1)}),i},trigger:function(t,e){e||(e={});var n=ot.DOCUMENT.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e;var i=this.element;
2return tt.hasParent(e.target,i)&&(i=e.target),i.dispatchEvent(n),this},enable:function(t){return this.enabled=t,this},dispose:function(){var t,e;for(tt.toggleBehavior(this.element,this.options.behavior,!1),t=-1;e=this.eventHandlers[++t];)tt.off(this.element,e.gesture,e.handler);return this.eventHandlers=[],Z.off(this.element,dt[yt],this.eventStartHandler),null}},at=!(rt="drag"),ot.gestures.Drag={name:rt,index:50,handler:function(t,e){var n=et.current;if(!(0<e.options.dragMaxTouches&&t.touches.length>e.options.dragMaxTouches))switch(t.eventType){case yt:at=!1;break;case kt:if(t.distance<e.options.dragMinDistance&&n.name!=rt)return;var i=n.startEvent.center;if(n.name!=rt&&(n.name=rt,e.options.dragDistanceCorrection&&0<t.distance)){var o=Math.abs(e.options.dragMinDistance/t.distance);i.pageX+=t.deltaX*o,i.pageY+=t.deltaY*o,i.clientX+=t.deltaX*o,i.clientY+=t.deltaY*o,t=et.extendEventData(t)}(n.lastEvent.dragLockToAxis||e.options.dragLockToAxis&&e.options.dragLockMinDistance<=t.distance)&&(t.dragLockToAxis=!0);var r=n.lastEvent.direction;t.dragLockToAxis&&r!==t.direction&&(tt.isVertical(r)?t.direction=t.deltaY<0?gt:ft:t.direction=t.deltaX<0?pt:mt),at||(e.trigger(rt+"start",t),at=!0),e.trigger(rt,t),e.trigger(rt+t.direction,t);var a=tt.isVertical(t.direction);(e.options.dragBlockVertical&&a||e.options.dragBlockHorizontal&&!a)&&t.preventDefault();break;case Et:at&&t.changedLength<=e.options.dragMaxTouches&&(e.trigger(rt+"end",t),at=!1);break;case wt:at=!1}},defaults:{dragMinDistance:10,dragDistanceCorrection:!0,dragMaxTouches:1,dragBlockHorizontal:!1,dragBlockVertical:!1,dragLockToAxis:!1,dragLockMinDistance:25}},ot.gestures.Gesture={name:"gesture",index:1337,handler:function(t,e){e.trigger(this.name,t)}},st="hold",ot.gestures.Hold={name:st,index:10,defaults:{holdTimeout:500,holdThreshold:2},handler:function(t,e){var n=e.options,i=et.current;switch(t.eventType){case yt:clearTimeout(lt),i.name=st,lt=setTimeout(function(){i&&i.name==st&&e.trigger(st,t)},n.holdTimeout);break;case kt:t.distance>n.holdThreshold&&clearTimeout(lt);break;case Et:clearTimeout(lt)}}},ot.gestures.Release={name:"release",index:1/0,handler:function(t,e){t.eventType==Et&&e.trigger(this.name,t)}},ot.gestures.Swipe={name:"swipe",index:40,defaults:{swipeMinTouches:1,swipeMaxTouches:1,swipeVelocityX:.6,swipeVelocityY:.6},handler:function(t,e){if(t.eventType==Et){var n=t.touches.length,i=e.options;if(n<i.swipeMinTouches||n>i.swipeMaxTouches)return;(t.velocityX>i.swipeVelocityX||t.velocityY>i.swipeVelocityY)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},ut=!1,ot.gestures.Tap={name:"tap",index:100,handler:function(t,e){var n,i,o=e.options,r=et.current,a=et.previous;switch(t.eventType){case yt:ut=!1;break;case kt:ut=ut||t.distance>o.tapMaxDistance;break;case wt:!tt.inStr(t.srcEvent.type,"cancel")&&t.deltaTime<o.tapMaxTime&&!ut&&(n=a&&a.lastEvent&&t.timeStamp-a.lastEvent.timeStamp,i=!1,a&&"tap"==a.name&&n&&n<o.doubleTapInterval&&t.distance<o.doubleTapDistance&&(e.trigger("doubletap",t),i=!0),i&&!o.tapAlways||(r.name="tap",e.trigger(r.name,t)))}},defaults:{tapMaxTime:250,tapMaxDistance:10,tapAlways:!0,doubleTapDistance:20,doubleTapInterval:300}},ot.gestures.Touch={name:"touch",index:-1/0,defaults:{preventDefault:!1,preventMouse:!1},handler:function(t,e){e.options.preventMouse&&t.pointerType==_t?t.stopDetect():(e.options.preventDefault&&t.preventDefault(),t.eventType==Ct&&e.trigger("touch",t))}},ht=!(ct="transform"),ot.gestures.Transform={name:ct,index:45,defaults:{transformMinScale:.01,transformMinRotation:1},handler:function(t,e){switch(t.eventType){case yt:ht=!1;break;case kt:if(t.touches.length<2)return;var n=Math.abs(1-t.scale),i=Math.abs(t.rotation);if(n<e.options.transformMinScale&&i<e.options.transformMinRotation)return;et.current.name=ct,ht||(e.trigger(ct+"start",t),ht=!0),e.trigger(ct,t),i>e.options.transformMinRotation&&e.trigger("rotate",t),n>e.options.transformMinScale&&(e.trigger("pinch",t),e.trigger("pinch"+(t.scale<1?"in":"out"),t));break;case Et:ht&&t.changedLength<2&&(e.trigger(ct+"end",t),ht=!1)}}};var At=void 0,St=void 0;function Pt(t){At.set(t,!0)}function Ot(t){var e=St.get(t,[])||[];St.delete(t),e.forEach(function(t){return t()})}function xt(e){var t,n,i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){};(void 0===At&&(At=new WeakMap,St=new WeakMap),t=e,n=o,St.has(t)||St.set(t,[]),St.get(t).push(n),0<(i=e).childNodes.length&&Pt(i),At.has(i))?Ot(e):(new MutationObserver(function(t){Pt(e),Ot(e)}).observe(e,{childList:!0,characterData:!0}
2),setImmediate(function(){Pt(e),Ot(e)}))}var Tt=new(function(){function t(){h(this,t),this.queue=[]}return d(t,[{key:"add",value:function(t,e){var n=this;this.queue.push(t),1===this.queue.length&&setImmediate(this.queue[0]),e.then(function(){n.queue.shift(),0<n.queue.length&&setTimeout(n.queue[0],1e3/30)})}}]),t}()),Lt=function(e,n){["id","class","animation"].forEach(function(t){return n.hasOwnProperty(t)&&e.setAttribute(t,n[t])}),n.modifier&&W.addModifier(e,n.modifier)},Mt=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e=f({},e),"string"==typeof t?e.message=t:e=t,e&&(e.message||e.messageHTML)||W.throw("Notifications must contain a message"),(e.hasOwnProperty("buttonLabels")||e.hasOwnProperty("buttonLabel"))&&(e.buttonLabels=e.buttonLabels||e.buttonLabel,Array.isArray(e.buttonLabels)||(e.buttonLabels=[e.buttonLabels||""])),W.extend({compile:function(t){return t},callback:function(t){return t},animation:"default",cancelable:!1,primaryButtonIndex:(e.buttonLabels||n.buttonLabels||[]).length-1},n,e)},Dt={_createAlertDialog:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return new Promise(function(n){var i=Mt.apply(void 0,e);W.checkMissingImport("AlertDialog","AlertDialogButton");var t="";i.isPrompt&&(t='\n <input\n class="text-input text-input--underbar"\n type="'+(i.inputType||"text")+'"\n placeholder="'+(i.placeholder||"")+'"\n value="'+(i.defaultValue||"")+'"\n style="width: 100%; margin-top: 10px;"\n />\n ');var o="";
2i.buttonLabels.forEach(function(t,e){o+='\n <ons-alert-dialog-button\n class="\n '+(e===i.primaryButtonIndex?" alert-dialog-button--primal":"")+"\n "+(i.buttonLabels.length<=2?" alert-dialog-button--rowfooter":"")+'\n "\n style="position: relative;">\n '+t+"\n </ons-alert-dialog-button>\n "});var r={},a=function(){r.dialog.onDialogCancel&&r.dialog.removeEventListener("dialog-cancel",r.dialog.onDialogCancel),Object.keys(r).forEach(function(t){return delete r[t]}),r=null,i.destroy instanceof Function&&i.destroy()};r.dialog=document.createElement("ons-alert-dialog"),r.dialog.innerHTML='\n <div class="alert-dialog-mask"\n style="\n '+(i.maskColor?"background-color: "+i.maskColor:"")+'\n "></div>\n <div class="alert-dialog">\n <div class="alert-dialog-container">\n <div class="alert-dialog-title">\n '+(i.title||"")+'\n </div>\n <div class="alert-dialog-content">\n '+(i.message||i.messageHTML)+"\n "+t+'\n </div>\n <div class="\n alert-dialog-footer\n '+(i.buttonLabels.length<=2?" alert-dialog-footer--rowfooter":"")+'\n ">\n '+o+"\n </div>\n </div>\n </div>\n ",xt(r.dialog),Lt(r.dialog,i),i.isPrompt&&i.submitOnEnter&&(r.input=r.dialog.querySelector(".text-input"),r.input.onkeypress=function(t){13===t.keyCode&&r.dialog.hide().then(function(){if(r){var t=r.input.value;a(),i.callback(t),n(t)}})}),r.footer=r.dialog.querySelector(".alert-dialog-footer"),W.arrayFrom(r.dialog.querySelectorAll(".alert-dialog-button")).forEach(function(t,e){t.onclick=function(){r.dialog.hide().then(function(){if(r){var t=e;i.isPrompt&&(t=e===i.primaryButtonIndex?r.input.value:null),r.dialog.remove(),a(),i.callback(t),n(t)}})},r.footer.appendChild(t)}),i.cancelable&&(r.dialog.cancelable=!0,r.dialog.onDialogCancel=function(){setImmediate(function(){r.dialog.remove(),a()});var t=i.isPrompt?null:-1;i.callback(t),n(t)},r.dialog.addEventListener("dialog-cancel",r.dialog.onDialogCancel,!1)),document.body.appendChild(r.dialog),i.compile(r.dialog),setImmediate(function(){r.dialog.show().then(function(){if(r.input&&i.isPrompt&&i.autofocus){var t=r.input.value.length;r.input.focus(),r.input.setSelectionRange(t,t)}})})})},alert:function(t,e){return Dt._createAlertDialog(t,e,{buttonLabels:["OK"],title:"Alert"})},confirm:function(t,e){return Dt._createAlertDialog(t,e,{buttonLabels:["Cancel","OK"],title:"Confirm"})},prompt:function(t,e){return Dt._createAlertDialog(t,e,{buttonLabels:["OK"],title:"Alert",isPrompt:!0,autofocus:!0,submitOnEnter:!0})},toast:function(o,r){var a=new Promise(function(e){W.checkMissingImport("Toast"),r=Mt(o,r,{timeout:0,force:!1});var n=W.createElement("\n <ons-toast>\n "+r.message+"\n "+(r.buttonLabels?"<button>"+r.buttonLabels[0]+"</button>":"")+"\n </ons-toast>\n ");Lt(n,r);var t=function(t){n&&n.hide().then(function(){n&&(n.remove(),n=null,r.callback(t),e(t))})};r.buttonLabels&&(W.findChild(n._toast,"button").onclick=function(){return t(0)}),document.body.appendChild(n),r.compile(n);var i=function(){n.parentElement&&n.show(r).then(function(){r.timeout&&setTimeout(function(){return t(-1)},r.timeout)})};setImmediate(function(){return r.force?i():Tt.add(i,a)})});return a}},It=function(){};It.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))}},It.mixin=function(t){for(var e=["on","once","off","emit"],n=0;n<e.length;n++)"function"==typeof t?t.prototype[e[n]]=It.prototype[e[n]]:t[e[n]]=It.prototype[e[n]]},window.MicroEvent=It;var Nt,Bt=(Nt={_isPortrait:!1,isPortrait:function(){return this._isPortrait()},isLandscape:function(){return!this.isPortrait()},_init:function(){return document.addEventListener("DOMContentLoaded",this._onDOMContentLoaded.bind(this),!1),"orientation"in window?window.addEventListener("orientationchange",this._onOrientationChange.bind(this),!1):window.addEventListener("resize",this._onResize.bind(this),!1),this._isPortrait=function(){return window.innerHeight>window.innerWidth},this},_onDOMContentLoaded:function(){this._installIsPortraitImplementation(),this.emit
2("change",{isPortrait:this.isPortrait()})},_installIsPortraitImplementation:function(){var t=window.innerWidth<window.innerHeight;"orientation"in window?window.orientation%180==0?this._isPortrait=function(){return 0===Math.abs(window.orientation%180)?t:!t}:this._isPortrait=function(){return 90===Math.abs(window.orientation%180)?t:!t}:this._isPortrait=function(){return window.innerHeight>window.innerWidth}},_onOrientationChange:function(){var n=this,i=this._isPortrait(),o=0,r=setInterval(function(){o++;var t=window.innerWidth,e=window.innerHeight;i&&t<=e||!i&&e<=t?(n.emit("change",{isPortrait:i}),clearInterval(r)):50===o&&(n.emit("change",{isPortrait:i}),clearInterval(r))},20)},_onResize:function(){this.emit("change",{isPortrait:this.isPortrait()})}},It.mixin(Nt),Nt)._init(),jt={add:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(t){return W.addModifier(e,t)})},remove:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(t){return W.removeModifier(e,t)})},contains:W.hasModifier,toggle:W.toggleModifier},Ht=new It;Ht._visible=!1;var Rt=function(){Ht._visible=!0,Ht.emit("show")},Ft=function(){Ht._visible=!1,Ht.emit("hide")},qt=function(){W.warn("ons-keyboard: Cordova Keyboard plugin is not present.")};document.addEventListener("deviceready",function(){("undefined"!=typeof Keyboard?(Keyboard.onshow=Rt,Keyboard.onhide=Ft,Ht.emit("init",{visible:Keyboard.isVisible}),1):void 0!==cordova.plugins&&void 0!==cordova.plugins.Keyboard&&(window.addEventListener("native.keyboardshow",Rt),window.addEventListener("native.keyboardhide",Ft),Ht.emit("init",{visible:cordova.plugins.Keyboard.isVisible}),1))||((document.querySelector("[ons-keyboard-active]")||document.querySelector("[ons-keyboard-inactive]"))&&qt(),Ht.on=qt)});var zt,Vt=(zt=0,function(){return zt++}),Wt=function(){function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._lockList=[],this._waitList=[],this._log=t.log||function(){}}return d(e,[{key:"lock",value:function(){var e=this,t=function t(){e._unlock(t)};return t.id=Vt(),this._lockList.push(t),this._log("lock: "+t.id),t}},{key:"_unlock",value:function(t){var e=this._lockList.indexOf(t);if(-1===e)throw new Error("This function is not registered in the lock list.");this._lockList.splice(e,1),this._log("unlock: "+t.id),this._tryToFreeWaitList()}},{key:"_tryToFreeWaitList",value:function(){for(;!this.isLocked()&&0<this._waitList.length;)this._waitList.shift()()}},{key:"waitUnlock",value:function(t){if(!(t instanceof Function))throw new Error("The callback param must be a function.");this.isLocked()?this._waitList.push(t):t()}},{key:"isLocked",value:function(){return 0<this._lockList.length}}]),e}();function Ut(t,n){var e=t.page,i=t.parent;t.params;b.getPageHTMLAsync(e).then(function(t){var e=W.createElement(t);i.appendChild(e),n(e)})}function Xt(t){t._destroy instanceof Function?t._destroy():t.remove()}var Yt,Gt=function(){function n(t,e){h(this,n),this._loader=t instanceof Function?t:Ut,this._unloader=e instanceof Function?e:Xt}return d(n,[{key:"load",value:function(t,e){var n=t.page,i=t.parent,o=t.params,r=void 0===o?{}:o;this._loader({page:n,parent:i,params:r},function(t){if(!(t instanceof Element))throw Error("pageElement must be an instance of Element.");e(t)})}},{key:"unload",value:function(t){if(!(t instanceof Element))throw Error("pageElement must be an instance of Element.");this._unloader(t)}},{key:"internalLoader",set:function(t){if(!(t instanceof Function))throw Error("First parameter must be an instance of Function");this._loader=t},get:function(){return this._loader}}]),n}(),$t=new Gt,Kt=new Gt(function(t,e){var n=t.page,i=t.parent,o=(t.params,W.createElement(n.trim()));i.appendChild(o),e(o)},Xt),Qt={animit:it,defaultPageLoader:$t,elements:i,GestureDetector:ot,modifier:jt,notification:Dt,orientation:Bt,pageAttributeExpression:o,PageLoader:Gt,platform:c,softwareKeyboard:Ht,_autoStyle:P,_internal:b,_readyLock:new Wt,_util:W};Qt.platform.select((window.location.search.match(/platform=([\w-]+)/)||[])[1]),Yt=Qt._readyLock.lock(),window.addEventListener("DOMContentLoaded",function(){Qt.isWebView()?window.document.addEventListener("deviceready",Yt,!1):Yt()},!1);var Jt=function(t){return W.throw("This method must be called "+(t?"after":"before")+" ons.isReady() is true")};
2Qt.isReady=function(){return!Qt._readyLock.isLocked()},Qt.isWebView=Qt.platform.isWebView,Qt.ready=function(t){Qt.isReady()?t():Qt._readyLock.waitUnlock(t)},Qt.setDefaultDeviceBackButtonListener=function(t){Qt.isReady()||Jt(!0),Qt._defaultDeviceBackButtonHandler.setListener(t)},Qt.disableDeviceBackButtonHandler=function(){Qt.isReady()||Jt(!0),b.dbbDispatcher.disable()},Qt.enableDeviceBackButtonHandler=function(){Qt.isReady()||Jt(!0),b.dbbDispatcher.enable()},Qt.fireDeviceBackButtonEvent=function(){b.dbbDispatcher.fireDeviceBackButtonEvent()},Qt.enableAutoStatusBarFill=function(){Qt.isReady()&&Jt(!1),b.config.autoStatusBarFill=!0},Qt.disableAutoStatusBarFill=function(){Qt.isReady()&&Jt(!1),b.config.autoStatusBarFill=!1},Qt.mockStatusBar=function(){Qt.isReady()&&Jt(!1);var t=function(){if(!document.body.children[0]||!document.body.children[0].classList.contains("ons-status-bar-mock")){var t=c.isAndroid(),e=function(t){return'<i class="'+t.split("-")[0]+" "+t+'"></i>'},n=t?e("zmdi-twitter")+" "+e("zmdi-google-play"):"No SIM "+e("fa-wifi"),i=t?"":"12:28 PM",o=t?e("zmdi-network")+" "+e("zmdi-wifi")+" "+e("zmdi-battery")+" 12:28 PM":"80% "+e("fa-battery-three-quarters");document.body.insertBefore(W.createElement('<div class="ons-status-bar-mock '+(t?"android":"ios")+'"><div>'+n+"</div><div>"+i+"</div><div>"+o+"</div></div>"),document.body.firstChild)}};document.body?t():b.waitDOMContentLoaded(t)},Qt.disableAnimations=function(){b.config.animationsDisabled=!0},Qt.enableAnimations=function(){b.config.animationsDisabled=!1},Qt._disableWarnings=function(){b.config.warningsDisabled=!0},Qt._enableWarnings=function(){b.config.warningsDisabled=!1},Qt.disableAutoStyling=P.disable,Qt.enableAutoStyling=P.enable,Qt.disableIconAutoPrefix=function(){W.checkMissingImport("Icon"),i.Icon.setAutoPrefix(!1)},Qt.forceUIWebViewScrollFix=function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];b.config.forceUIWebViewScrollFix=t},Qt.forcePlatformStyling=function(t){Qt.enableAutoStyling(),Qt.platform.select(t||"ios"),Qt._util.arrayFrom(document.querySelectorAll("*")).forEach(function(t){"ons-if"===t.tagName.toLowerCase()?t._platformUpdate():t.tagName.match(/^ons-/i)&&(P.prepare(t,!0),"ons-tabbar"===t.tagName.toLowerCase()&&t._updatePosition())})},Qt.preload=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return Promise.all((t instanceof Array?t:[t]).map(function(t){return"string"!=typeof t&&W.throw("Expected string arguments but got "+(void 0===t?"undefined":u(t))),b.getTemplateHTMLAsync(t)}))},Qt.createElement=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=function(t){var e=Qt._util.createElement(t);(e.remove(),n.append)&&((n.append instanceof HTMLElement?n.append:document.body).insertBefore(e,n.insertBefore||null),n.link instanceof Function&&n.link(e));return e};return"<"===(t=t.trim()).charAt(0)?e(t):b.getPageHTMLAsync(t).then(e)},Qt.createPopover=Qt.createDialog=Qt.createAlertDialog=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Qt.createElement(t,f({append:!0},e))},Qt.openActionSheet=function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(i){var n,t,e,o,r,a,s,l;W.checkMissingImport("ActionSheet"),n=d,t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"Function";return W.throw('"options.'+t+'" must be an instance of '+e)},o=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Function;return n[t]instanceof e},a="callback",s="compile",l="destroy",(!(e=function(t){return Object.hasOwnProperty.call(n,t)})(r="buttons")||!o(r,Array))&&t(r,"Array"),e(a)&&!o(a)&&t(a),e(s)&&!o(s)&&t(s),e(l)&&!o(l)&&t(l);var u=W.createElement("\n <ons-action-sheet\n "+(d.title?'title="'+d.title+'"':"")+"\n "+(d.cancelable?"cancelable":"")+"\n "+(d.modifier?'modifier="'+d.modifier+'"':"")+"\n "+(d.maskColor?'mask-color="'+d.maskColor+'"':"")+"\n "+(d.id?'id="'+d.id+'"':"")+"\n "+(d.class?'class="'+d.class+'"':"")+'\n >\n <div class="action-sheet"></div>\n </ons-action-sheet>\n '),c=function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1;u&&(d.destroy&&d.destroy(u),u.removeEventListener("dialog-cancel",t,!1),u.remove(),u=null,d.callback&&d.callback(n),i(n))};u.addEventListener("dialog-cancel",c,!1);var h=document.createDocumentFragment();d.buttons.forEach(function(t,e){var n="string"==typeof t?{label:t}:f({},t);d.destructive===e&&(n.modifier=(n.modifier||"")+" destructive");var i=W.createElement("\n <ons-action-sheet-button\n "+(n.icon?'icon="'+n.icon+'"':"")+"\n "+(n.modifier?'modifier="'+n.modifier+'"':"")+"\n >\n "+n.label+"\n </ons-action-sheet-button>\n ");i.onclick=function(t){return u.hide().then(function(){return c(t,e)})},h.appendChild(i)}),W.findChild(u,".action-sheet").appendChild(h),document.body.appendChild(u),d.compile&&d.compile(el.dialog),setImmediate(function(){return u.show({animation:d.animation,animationOptions:d.animationOptions})})})},Qt.resolveLoadingPlaceholder=function(e,n){var t=Qt._util.arrayFrom(window.document.querySelectorAll("[ons-loading-placeholder]"));0===t.length&&W.throw("No ons-loading-placeholder exists"),t.filter(function(t){return!t.getAttribute("page")}
2).forEach(function(t){t.setAttribute("ons-loading-placeholder",e),Qt._resolveLoadingPlaceholder(t,e,n)})},Qt._setupLoadingPlaceHolders=function(){Qt.ready(function(){Qt._util.arrayFrom(window.document.querySelectorAll("[ons-loading-placeholder]")).forEach(function(t){var e=t.getAttribute("ons-loading-placeholder");"string"==typeof e&&Qt._resolveLoadingPlaceholder(t,e)})})},Qt._resolveLoadingPlaceholder=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(t,e){return e()};t&&Qt.createElement(t).then(function(t){t.style.display="none",e.appendChild(t),n(t,function(){for(;e.firstChild&&e.firstChild!==t;)e.removeChild(e.firstChild);t.style.display=""})}).catch(function(t){return Promise.reject("Unabled to resolve placeholder: "+t)})};var Zt="currentScript"in document?function(){return document.currentScript}:function(){return document.scripts[document.scripts.length-1]};function te(t,e){return t(e={exports:{}},e.exports),e.exports}Qt.getScriptPage=function(){return Zt()&&/ons-page/i.test(Zt().parentElement.tagName)&&Zt().parentElement||null};var ee=te(function(n){!function(){function s(o,t){var e;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=o,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!s.notNeeded(o)){for(var n=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],i=0,r=n.length;i<r;i++)this[n[i]]=a(this[n[i]],this);l&&(o.addEventListener("mouseover",this.onMouse,!0),o.addEventListener("mousedown",this.onMouse,!0),o.addEventListener("mouseup",this.onMouse,!0)),o.addEventListener("click",this.onClick,!0),o.addEventListener("touchstart",this.onTouchStart,!1),o.addEventListener("touchmove",this.onTouchMove,!1),o.addEventListener("touchend",this.onTouchEnd,!1),o.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(o.removeEventListener=function(t,e,n){var i=Node.prototype.removeEventListener;"click"===t?i.call(o,t,e.hijacked||e,n):i.call(o,t,e,n)},o.addEventListener=function(t,e,n){var i=Node.prototype.addEventListener;"click"===t?i.call(o,t,e.hijacked||(e.hijacked=function(t){t.propagationStopped||e(t)}),n):i.call(o,t,e,n)}),"function"==typeof o.onclick&&(e=o.onclick,o.addEventListener("click",function(t){e(t)},!1),o.onclick=null)}function a(t,e){return function(){return t.apply(e,arguments)}}}var t=0<=navigator.userAgent.indexOf("Windows Phone"),l=0<navigator.userAgent.indexOf("Android")&&!t,u=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,c=u&&/OS 4_\d(_\d)?/.test(navigator.userAgent),h=u&&/OS [6-7]_\d/.test(navigator.userAgent),o=0<navigator.userAgent.indexOf("BB10"),e=["email","number","password","search","tel","text","url"];s.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(u&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},s.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!l;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},s.prototype.sendClick=function(t,e){var n,i;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),i=e.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(t),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},s.prototype.determineEventType=function(t){return l&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},s.prototype.focus=function(t){var e;u&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type&&"email"!==t.type&&"number"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},s.prototype.updateScrollParent=function(t){var e,n;if(!(e=t.fastClickScrollParent)||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},s.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},s.prototype.isTextField=function(t){return"textarea"===t.tagName.toLowerCase()||-1!==e.indexOf(t.type)},s.prototype.onTouchStart=function(t){var e,n;if(1<t.targetTouches.length)return!0;
2if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],e.isContentEditable)return!0;if(u){if(e===document.activeElement&&this.isTextField(e))return!0;if(!c){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&-1<t.timeStamp-this.lastClickTime&&t.preventDefault(),!0},s.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],n=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n},s.prototype.onTouchMove=function(t){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0},s.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},s.prototype.onTouchEnd=function(t){var e,n,i,o,r,a=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay&&-1<t.timeStamp-this.lastClickTime)return this.cancelNextClick=!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,h&&(r=t.changedTouches[0],(a=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||a).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=a.tagName.toLowerCase())){if(e=this.findControl(a)){if(this.focus(a),l)return!1;a=e}}else if(this.needsFocus(a))return 100<t.timeStamp-n||u&&window.top!==window&&"input"===i?this.targetElement=null:(this.focus(a),this.sendClick(a,t),c&&"select"===i||(this.targetElement=null,t.preventDefault())),!1;return!(!u||c||!(o=a.fastClickScrollParent)||o.fastClickLastScrollTop===o.scrollTop)||(this.needsClick(a)||(t.preventDefault(),this.sendClick(a,t)),!1)},s.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},s.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},s.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===t.target.type&&0===t.detail||((e=this.onMouse(t))||(this.targetElement=null),e)},s.prototype.destroy=function(){var t=this.layer;l&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},s.notNeeded=function(t){var e,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!l)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(31<n&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(o&&10<=(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=i[2]&&(e=document.querySelector("meta[name=viewport]"))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},s.attach=function(t,e){return new s(t,e)},n.exports?(n.exports=s.attach,n.exports.FastClick=s):window.FastClick=s}()}).FastClick;window.customElements&&(window.customElements.forcePolyfill=!0);var ne=te(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),ie=te(function(t){var e=t.exports={version:"2.5.6"};"number"==typeof __e&&(__e=e)}),oe=(ie.version,function(t){return"object"===(void 0===t?"undefined":u(t))?null!==t:"function"==typeof t}),re=function(t){if(!oe(t))throw TypeError(t+" is not an object!");return t},ae=function(t){try{return!!t()}catch(t){return!0}},se=!ae(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),le=ne.document,ue=oe(le)&&oe(le.createElement),ce=function(t){return ue?le.createElement(t):{}},he=!se&&!ae(function(){return 7!=Object.defineProperty(ce("div"),"a",{get:function(){return 7}}).a}),de=function(t,e){if(!oe(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!oe(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!oe(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!oe(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},fe=Object.defineProperty,pe={f:se?Object.defineProperty:function(t,e,n){if(re(t),e=de(e,!0),re(n),he)try{return fe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},ge=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},me=se?function(t,e,n){return pe.f(t,e,ge(1,n))}:function(t,e,n){return t[e]=n,t},_e={}.hasOwnProperty,ve=function(t,e){return _e.call(t,e)},be=0,ye=Math.random(),ke=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++be+ye).toString(36))},we=te(function(t){var r=ke("src"),e="toString",n=Function[e],a=(""+n).split(e);ie.inspectSource=function(t){return n.call(t)},(t.exports=function(t,e,n,i){var o="function"==typeof n;o&&(ve(n,"name")||me(n,"name",e)),t[e]!==n&&(o&&(ve(n,r)||me(n,r,t[e]?""+t[e]:a.join(String(e)))
2),t===ne?t[e]=n:i?t[e]?t[e]=n:me(t,e,n):(delete t[e],me(t,e,n)))})(Function.prototype,e,function(){return"function"==typeof this&&this[r]||n.call(this)})}),Ee=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Ce=function(i,o,t){if(Ee(i),void 0===o)return i;switch(t){case 1:return function(t){return i.call(o,t)};case 2:return function(t,e){return i.call(o,t,e)};case 3:return function(t,e,n){return i.call(o,t,e,n)}}return function(){return i.apply(o,arguments)}},Ae="prototype",Se=function t(e,n,i){var o,r,a,s,l=e&t.F,u=e&t.G,c=e&t.P,h=e&t.B,d=u?ne:e&t.S?ne[n]||(ne[n]={}):(ne[n]||{})[Ae],f=u?ie:ie[n]||(ie[n]={}),p=f[Ae]||(f[Ae]={});for(o in u&&(i=n),i)a=((r=!l&&d&&void 0!==d[o])?d:i)[o],s=h&&r?Ce(a,ne):c&&"function"==typeof a?Ce(Function.call,a):a,d&&we(d,o,a,e&t.U),f[o]!=a&&me(f,o,s),c&&p[o]!=a&&(p[o]=a)};ne.core=ie,Se.F=1,Se.G=2,Se.S=4,Se.P=8,Se.B=16,Se.W=32,Se.U=64,Se.R=128;var Pe=Se,Oe={f:{}.propertyIsEnumerable},xe={}.toString,Te=function(t){return xe.call(t).slice(8,-1)},Le=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==Te(t)?t.split(""):Object(t)},Me=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},De=function(t){return Le(Me(t))},Ie=Object.getOwnPropertyDescriptor,Ne={f:se?Ie:function(t,e){if(t=De(t),e=de(e,!0),he)try{return Ie(t,e)}catch(t){}if(ve(t,e))return ge(!Oe.f.call(t,e),t[e])}},Be=function(t,e){if(re(t),!oe(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},je={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=Ce(Function.call,Ne.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return Be(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:Be};Pe(Pe.S,"Object",{setPrototypeOf:je.set});ie.Object.setPrototypeOf;var He=te(function(t){var e="__core-js_shared__",n=ne[e]||(ne[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:ie.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),Re=te(function(t){var e=He("wks"),n=ne.Symbol,i="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=i&&n[t]||(i?n:ke)("Symbol."+t))}).store=e}),Fe=Re("toStringTag"),qe="Arguments"==Te(function(){return arguments}()),ze=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Fe))?n:qe?Te(e):"Object"==(i=Te(e))&&"function"==typeof e.callee?"Arguments":i},Ve={};Ve[Re("toStringTag")]="z",Ve+""!="[object z]"&&we(Object.prototype,"toString",function(){return"[object "+ze(this)+"]"},!0);var We,Ue=Math.ceil,Xe=Math.floor,Ye=function(t){return isNaN(t=+t)?0:(0<t?Xe:Ue)(t)},Ge={},$e=Math.min,Ke=function(t){return 0<t?$e(Ye(t),9007199254740991):0},Qe=Math.max,Je=Math.min,Ze=He("keys"),tn=function(t){return Ze[t]||(Ze[t]=ke(t))},en=(We=!1,function(t,e,n){var i,o,r,a=De(t),s=Ke(a.length),l=(o=s,(i=Ye(i=n))<0?Qe(i+o,0):Je(i,o));if(We&&e!=e){for(;l<s;)if((r=a[l++])!=r)return!0}else for(;l<s;l++)if((We||l in a)&&a[l]===e)return We||l||0;return!We&&-1}),nn=tn("IE_PROTO"),on="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),rn=Object.keys||function(t){return function(t,e){var n,i=De(t),o=0,r=[];for(n in i)n!=nn&&ve(i,n)&&r.push(n);for(;e.length>o;)ve(i,n=e[o++])&&(~en(r,n)||r.push(n));return r}(t,on)},an=se?Object.defineProperties:function(t,e){re(t);for(var n,i=rn(e),o=i.length,r=0;r<o;)pe.f(t,n=i[r++],e[n]);return t},sn=ne.document,ln=sn&&sn.documentElement,un=tn("IE_PROTO"),cn=function(){},hn="prototype",dn=function(){var t,e=ce("iframe"),n=on.length;for(e.style.display="none",ln.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),dn=t.F;n--;)delete dn[hn][on[n]];return dn()},fn=Object.create||function(t,e){var n;return null!==t?(cn[hn]=re(t),n=new cn,cn[hn]=null,n[un]=t):n=dn(),void 0===e?n:an(n,e)},pn=pe.f,gn=Re("toStringTag"),mn=function(t,e,n){t&&!ve(t=n?t:t.prototype,gn)&&pn(t,gn,{configurable:!0,value:e})},_n={};me(_n,Re("iterator"),function(){return this});var vn,bn=function(t){return Object(Me(t))},yn=tn("IE_PROTO"),kn=Object.prototype,wn=Object.getPrototypeOf||function(t){return t=bn(t),ve(t,yn)?t[yn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?kn:null},En=Re("iterator"),Cn=!([].keys&&"next"in[].keys()),An="values",Sn=function(){return this},Pn=function(t,e,n,i,o,r,a){var s,l,u;l=e,u=i,(s=n).prototype=fn(_n,{next:ge(1,u)}),mn(s,l+" Iterator");var c,h,d,f=function(t){if(!Cn&&t in _)return _[t];switch(t){case"keys":case An:return function(){return new n(this,t)}}return function(){return new n(this,t)}},p=e+" Iterator",g=o==An,m=!1,_=t.prototype,v=_[En]||_["@@iterator"]||o&&_[o],b=v||f(o),y=o?g?f("entries"):b:void 0,k="Array"==e&&_.entries||v;if(k&&(d=wn(k.call(new t)))!==Object.prototype&&d.next&&(mn(d,p,!0),"function"!=typeof d[En]&&me(d,En,Sn)),g&&v&&v.name!==An&&
vendor: 8,614 bytes, line 2
2(m=!0,b=function(){return v.call(this)}),(Cn||m||!_[En])&&me(_,En,b),Ge[e]=b,Ge[p]=Sn,o)if(c={values:g?b:f(An),keys:r?b:f("keys"),entries:y},a)for(h in c)h in _||we(_,h,c[h]);else Pe(Pe.P+Pe.F*(Cn||m),e,c);return c},On=(vn=!0,function(t,e){var n,i,o=String(Me(t)),r=Ye(e),a=o.length;return r<0||a<=r?vn?"":void 0:(n=o.charCodeAt(r))<55296||56319<n||r+1===a||(i=o.charCodeAt(r+1))<56320||57343<i?vn?o.charAt(r):n:vn?o.slice(r,r+2):i-56320+(n-55296<<10)+65536});Pn(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=On(e,n),this._i+=t.length,{value:t,done:!1})});var xn=Re("unscopables"),Tn=Array.prototype;null==Tn[xn]&&me(Tn,xn,{});var Ln=function(t){Tn[xn][t]=!0},Mn=function(t,e){return{value:e,done:!!t}},Dn=Pn(Array,"Array",function(t,e){this._t=De(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,Mn(1)):Mn(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");Ge.Arguments=Ge.Array,Ln("keys"),Ln("values"),Ln("entries");for(var In=Re("iterator"),Nn=Re("toStringTag"),Bn=Ge.Array,jn={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Hn=rn(jn),Rn=0;Rn<Hn.length;Rn++){var Fn,qn=Hn[Rn],zn=jn[qn],Vn=ne[qn],Wn=Vn&&Vn.prototype;if(Wn&&(Wn[In]||me(Wn,In,Bn),Wn[Nn]||me(Wn,Nn,qn),Ge[qn]=Bn,zn))for(Fn in Dn)Wn[Fn]||we(Wn,Fn,Dn[Fn],!0)}var Un=function(t,e,n){for(var i in e)we(t,i,e[i],n);return t},Xn=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t},Yn=function(e,t,n,i){try{return i?t(re(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&re(o.call(e)),t}},Gn=Re("iterator"),$n=Array.prototype,Kn=function(t){return void 0!==t&&(Ge.Array===t||$n[Gn]===t)},Qn=Re("iterator"),Jn=ie.getIteratorMethod=function(t){if(null!=t)return t[Qn]||t["@@iterator"]||Ge[ze(t)]},Zn=te(function(t){var d={},f={},e=t.exports=function(t,e,n,i,o){var r,a,s,l,u=o?function(){return t}:Jn(t),c=Ce(n,i,e?2:1),h=0;if("function"!=typeof u)throw TypeError(t+" is not iterable!");if(Kn(u)){for(r=Ke(t.length);h<r;h++)if((l=e?c(re(a=t[h])[0],a[1]):c(t[h]))===d||l===f)return l}else for(s=u.call(t);!(a=s.next()).done;)if((l=Yn(s,c,a.value,e))===d||l===f)return l};e.BREAK=d,e.RETURN=f}),ti=Re("species"),ei=te(function(t){var n=ke("meta"),e=pe.f,i=0,o=Object.isExtensible||function(){return!0},r=!ae(function(){return o(Object.preventExtensions({}))}),a=function(t){e(t,n,{value:{i:"O"+ ++i,w:{}}})},s=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!oe(t))return"symbol"==(void 0===t?"undefined":u(t))?t:("string"==typeof t?"S":"P")+t;if(!ve(t,n)){if(!o(t))return"F";if(!e)return"E";a(t)}return t[n].i},getWeak:function(t,e){if(!ve(t,n)){if(!o(t))return!0;if(!e)return!1;a(t)}return t[n].w},onFreeze:function(t){return r&&s.NEED&&o(t)&&!ve(t,n)&&a(t),t}}}),ni=(ei.KEY,ei.NEED,ei.fastKey,ei.getWeak,ei.onFreeze,function(t,e){if(!oe(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}),ii=pe.f,oi=ei.fastKey,ri=se?"_s":"size",ai=function(t,e){var n,i=oi(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n},si={getConstructor:function(t,r,n,i){var o=t(function(t,e){Xn(t,o,r,"_i"),t._t=r,t._i=fn(null),t._f=void 0,t._l=void 0,t[ri]=0,null!=e&&Zn(e,n,t[i],t)});return Un(o.prototype,{clear:function(){for(var t=ni(this,r),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[ri]=0},delete:function(t){var e=ni(this,r),n=ai(e,t);if(n){var i=n.n,o=n.p;delete e._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),e._f==n&&(e._f=i),e._l==n&&(e._l=o),e[ri]--}return!!n},forEach:function(t){ni(this,r);for(var e,n=Ce(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!ai(ni(this,r),t)}}),se&&ii(o.prototype,"size",{get:function(){return ni(this,r)[ri]}}),o},def:function(t,e,n){var i,o,r=ai(t,e);return r?r.v=n:(t._l=r={i:o=oi(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=r),i&&(i.n=r),t[ri]++,"F"!==o&&(t._i[o]=r)),t},getEntry:ai,setStrong:function(t,n,e){var i;Pn(t,n,function(t,e){this._t=ni(t,n),this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?Mn(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,Mn(1))},e?"entries":"values",!e,!0),i=ne[n],se&&i&&!i[ti]&&pe.f(i,ti,{configurable:!0,get:function(){return this}})}},li=Re("iterator"),ui=!1;try{[7][li]().return=function(){ui=!0}}catch(t){}var ci=function(t,e){if(!e&&!ui)return!1;var n=!1;try{var i=[7],o=i[li]();o.next=function(){return{done:n=!0}},i[li]=function(){return o},t(i)}catch(t){}return n},hi=je.set,di=function(s,t,e,n,l,i){var u=ne[s],c=u,h=l?"set":"add",o=c&&c.prototype,r={},a=function(t){var n=o[t];we(o,t,"delete"==t?function(t){return!(i&&!oe(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!oe(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return i&&!oe(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof c&&(i||o.forEach&&!ae(function(){(new c).entries().next()}))){var d=new c,f=d[h](i?{}:-0,1)!=d,p=ae(function(){d.has(1)}),g=ci(function(t){new c(t)}),m=!i&&ae(function(){for(var t=new c,e=5;e--;)t[h](e,e);return!t.has(-0)});g||(((c=t(function(t,e){Xn(t,c,s);var n,i,o,r,a=(n=new u,i=c,(r=t.constructor)!==i&&"function"==typeof r&&(o=r.prototype)!==i.prototype&&oe(o)&&hi&&hi(n,o),n);return null!=e&&Zn(e,l,a[h],a),a})).prototype=o).constructor=c),(p||m)&&(a("delete"),a("has"),l&&a("get")),(m||f)&&a(h),i&&o.clear&&delete o.clear}else c=n.getConstructor(t,s,l,h),Un(c.prototype,e),ei.NEED=!0;return mn(c,s),r[s]=c,Pe(Pe.G+Pe.W+Pe.F*(c!=u),r),i||n.setStrong(c,s,l),c},fi=(di("Set",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{add:function(t){return si.def(ni(this,"Set"),t=0===t?0:t,t)}},si),function(n){return function(){if(ze(this)!=n)throw TypeError(n+"#toJSON isn't generic");return Zn(this,!(e=[]),e.push,e,t),e;var t,e}});Pe(Pe.P+Pe.R,"Set",{toJSON:fi("Set")});var pi=function(t){Pe(Pe.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};pi("Set");var gi=function(t){Pe(Pe.S,t,{from:function(t){var e,n,i,o,r=arguments[1];return Ee(this),(e=void 0!==r)&&Ee(r),null==t?new this:(n=[],e?(i=0,o=Ce(r,arguments[2],2),Zn(t,!1,function(t){n.push(o(t,i++))})):Zn(t,!1,n.push,n),new this(n))}})};gi("Set");ie.Set,di("Map",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{get:function(t){var e=si.getEntry(ni(this,"Map"),t);return e&&e.v},set:function(t,e){return si.def(ni(this,"Map"),0===t?0:t,e)}},si,!0);Pe(Pe.P+Pe.R,"Map",{toJSON:fi("Map")}),pi("Map"),gi("Map");ie.Map;var mi=Array.isArray||function(t){return"Array"==Te(t)},_i=Re("species"),vi=function(t,e){return mi(n=t)&&("function"!=typeof(i=n.constructor)||i!==Array&&!mi(i.prototype)||(i=void 0),oe(i)&&null===(i=i[_i])&&(i=void 0)),new(void 0===i?Array:i)(e);var n,i},bi=function(h,t){var d=1==h,f=2==h,p=3==h,g=4==h,m=6==h,_=5==h||m,v=t||vi;return function(t,e,n){for(var i,o,r=bn(t),a=Le(r),s=Ce(e,n,3),l=Ke(a.length),u=0,c=d?v(t,l):f?v(t,0):void 0;u<l;u++)if((_||u in a)&&(o=s(i=a[u],u,r),h))if(d)c[u]=o;else if(o)switch(h){case 3:return!0;case 5:return i;case 6:return u;case 2:c.push(i)}else if(g)return!1;return m?-1:p||g?g:c}},yi={f:Object.getOwnPropertySymbols},ki=Object.assign,wi=!ki||ae(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=ki({},t)[n]||Object.keys(ki({},e)).join("")!=i})?function(t,e){for(var n=bn(t),i=arguments.length,o=1,r=yi.f,a=Oe.f;o<i;)for(var s,l=Le(arguments[o++]),u=r?rn(l).concat(r(l)):rn(l),c=u.length,h=0;h<c;)a.call(l,s=u[h++])&&(n[s]=l[s]);return n}:ki,Ei=ei.getWeak,Ci=bi(5),Ai=bi(6),Si=0,Pi=function(t){return t._l||(t._l=new Oi)},Oi=function(){this.a=[]},xi=function(t,e){return Ci(t.a,function(t){return t[0]===e})};Oi.prototype={get:function(t){var e=xi(this,t);if(e)return e[1]},has:function(t){return!!xi(this,t)}
2,set:function(t,e){var n=xi(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=Ai(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var Ti={getConstructor:function(t,n,i,o){var r=t(function(t,e){Xn(t,r,n,"_i"),t._t=n,t._i=Si++,t._l=void 0,null!=e&&Zn(e,i,t[o],t)});return Un(r.prototype,{delete:function(t){if(!oe(t))return!1;var e=Ei(t);return!0===e?Pi(ni(this,n)).delete(t):e&&ve(e,this._i)&&delete e[this._i]},has:function(t){if(!oe(t))return!1;var e=Ei(t);return!0===e?Pi(ni(this,n)).has(t):e&&ve(e,this._i)}}),r},def:function(t,e,n){var i=Ei(re(e),!0);return!0===i?Pi(t).set(e,n):i[t._i]=n,t},ufstore:Pi};te(function(t){var r,e=bi(0),n="WeakMap",i=ei.getWeak,a=Object.isExtensible,o=Ti.ufstore,s={},l=function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},u={get:function(t){if(oe(t)){var e=i(t);return!0===e?o(ni(this,n)).get(t):e?e[this._i]:void 0}},set:function(t,e){return Ti.def(ni(this,n),t,e)}},c=t.exports=di(n,l,u,Ti,!0,!0);ae(function(){return 7!=(new c).set((Object.freeze||Object)(s),7).get(s)})&&(r=Ti.getConstructor(l,n),wi(r.prototype,u),ei.NEED=!0,e(["delete","has","get","set"],function(i){var t=c.prototype,o=t[i];we(t,i,function(t,e){if(oe(t)&&!a(t)){this._f||(this._f=new r);var n=this._f[i](t,e);return"set"==i?this:n}return o.call(this,t,e)})}))});pi("WeakMap"),gi("WeakMap");ie.WeakMap;var Li=function(t,e,n){e in t?pe.f(t,e,ge(0,n)):t[e]=n};Pe(Pe.S+Pe.F*!ci(function(t){}),"Array",{from:function(t){var e,n,i,o,r=bn(t),a="function"==typeof this?this:Array,s=arguments.length,l=1<s?arguments[1]:void 0,u=void 0!==l,c=0,h=Jn(r);if(u&&(l=Ce(l,2<s?arguments[2]:void 0,2)),null==h||a==Array&&Kn(h))for(n=new a(e=Ke(r.length));c<e;c++)Li(n,c,u?l(r[c],c):r[c]);else for(o=h.call(r),n=new a;!(i=o.next()).done;c++)Li(n,c,u?Yn(o,l,[i.value,c],!0):i.value);return n.length=c,n}});ie.Array.from;var Mi=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Di(t){var e=Mi.has(t),n=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t);return!e&&n}function Ii(t){var e=t.isConnected;if(void 0!==e)return e;for(var n=t;n&&!(n.__CE_isImportDocument||n instanceof Document);)n=n.parentNode||(window.ShadowRoot&&n instanceof ShadowRoot?n.host:void 0);return!(!n||!(n.__CE_isImportDocument||n instanceof Document))}function Ni(t,e){for(var n=e;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function Bi(t,e){for(var n,i,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new Set,r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var s=a.localName;if("link"===s&&"import"===a.getAttribute("rel")){var l=a.import;if(l instanceof Node&&!o.has(l)){o.add(l);for(var u=l.firstChild;u;u=u.nextSibling)Bi(u,e,o)}r=Ni(t,a);continue}if("template"===s){r=Ni(t,a);continue}var c=a.__CE_shadowRoot;if(c)for(var h=c.firstChild;h;h=h.nextSibling)Bi(h,e,o)}n=t,r=(i=r).firstChild?i.firstChild:Ni(n,i)}}function ji(t,e,n){t[e]=n}var Hi=1,Ri=2,Fi=function(){function t(){h(this,t),this._localNameToDefinition=new Map,this._constructorToDefinition=new Map,this._patches=[],this._hasPatches=!1}return d(t,[{key:"setDefinition",value:function(t,e){this._localNameToDefinition.set(t,e),this._constructorToDefinition.set(e.constructor,e)}},{key:"localNameToDefinition",value:function(t){return this._localNameToDefinition.get(t)}},{key:"constructorToDefinition",value:function(t){return this._constructorToDefinition.get(t)}},{key:"addPatch",value:function(t){this._hasPatches=!0,this._patches.push(t)}},{key:"patchTree",value:function(t){var e=this;this._hasPatches&&Bi(t,function(t){return e.patch(t)})}},{key:"patch",value:function(t){if(this._hasPatches&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this._patches.length;e++)this._patches[e](t)}}},{key:"connectTree",value:function(t){var e=[];Bi(t,function(t){return e.push(t)});for(var n=0;n<e.length;n++){var i=e[n];i.__CE_state===Hi?Ii(i)&&this.connectedCallback(i):this.upgradeElement(i)}}},{key:"disconnectTree",value:function(t){var e=[];Bi(t,function(t){return e.push(t)});for(var n=0;n<e.length;n++){var i=e[n];i.__CE_state===Hi&&this.disconnectedCallback(i)}}},{key:"patchAndUpgradeTree",value:function(t){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new Set,o=[];if(Bi(t,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var t=e.import;t instanceof Node&&"complete"===t.readyState?(t.__CE_isImportDocument=!0,t.__
2CE_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),n.patchAndUpgradeTree(t,i))})}else o.push(e)},i),this._hasPatches)for(var e=0;e<o.length;e++)this.patch(o[e]);for(var r=0;r<o.length;r++)this.upgradeElement(o[r])}},{key:"upgradeElement",value:function(e){if(void 0===e.__CE_state){var t=this.localNameToDefinition(e.localName);if(t){t.constructionStack.push(e);var n=t.constructor;try{try{if(new n!==e)throw new Error("The custom element constructor did not produce the element being upgraded.")}finally{t.constructionStack.pop()}}catch(t){throw e.__CE_state=Ri,t}if(e.__CE_state=Hi,(e.__CE_definition=t).attributeChangedCallback)for(var i=t.observedAttributes,o=0;o<i.length;o++){var r=i[o],a=e.getAttribute(r);null!==a&&this.attributeChangedCallback(e,r,null,a,null)}Ii(e)&&this.connectedCallback(e)}}}},{key:"connectedCallback",value:function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t),t.__CE_isConnectedCallbackCalled=!0}},{key:"disconnectedCallback",value:function(t){t.__CE_isConnectedCallbackCalled||this.connectedCallback(t);var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t),t.__CE_isConnectedCallbackCalled=void 0}},{key:"attributeChangedCallback",value:function(t,e,n,i,o){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,i,o)}}]),t}(),qi=function(){function n(t,e){h(this,n),this._internals=t,this._document=e,this._observer=void 0,this._internals.patchAndUpgradeTree(this._document),"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}return d(n,[{key:"disconnect",value:function(){this._observer&&this._observer.disconnect()}},{key:"_handleMutations",value:function(t){var e=this._document.readyState;"interactive"!==e&&"complete"!==e||this.disconnect();for(var n=0;n<t.length;n++)for(var i=t[n].addedNodes,o=0;o<i.length;o++){var r=i[o];this._internals.patchAndUpgradeTree(r)}}}]),n}(),zi=function(){function t(){var e=this;h(this,t),this._value=void 0,this._resolve=void 0,this._promise=new Promise(function(t){e._resolve=t,e._value&&t(e._value)})}return d(t,[{key:"resolve",value:function(t){if(this._value)throw new Error("Already resolved.");this._value=t,this._resolve&&this._resolve(t)}},{key:"toPromise",value:function(){return this._promise}}]),t}(),Vi=function(){function e(t){h(this,e),this._elementDefinitionIsRunning=!1,this._internals=t,this._whenDefinedDeferred=new Map,this._flushCallback=function(t){return t()},this._flushPending=!1,this._unflushedLocalNames=[],this._documentConstructionObserver=new qi(t,document)}return d(e,[{key:"define",value:function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Di(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this._internals.localNameToDefinition(t))throw new Error("A custom element with name '"+t+"' has already been defined.");if(this._elementDefinitionIsRunning)throw new Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var i=void 0,o=void 0,r=void 0,a=void 0,s=void 0;try{var l=function(t){var e=u[t];if(void 0!==e&&!(e instanceof Function))throw new Error("The '"+t+"' callback must be a function.");return e},u=e.prototype;if(!(u instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");i=l("connectedCallback"),o=l("disconnectedCallback"),r=l("adoptedCallback"),a=l("attributeChangedCallback"),s=e.observedAttributes||[]}catch(t){return}finally{this._elementDefinitionIsRunning=!1}var c={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:o,adoptedCallback:r,attributeChangedCallback:a,observedAttributes:s,constructionStack:[]};this._internals.setDefinition(t,c),this._unflushedLocalNames.push(t),this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return n._flush()}))}},{key:"_flush",value:function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var t=this._unflushedLocalNames.shift(),e=this._whenDefinedDeferred.get(t);e&&e.resolve(void 0)}}},{key:"get",value:function(t){var e=this._internals.localNameToDefinition(t);
2if(e)return e.constructor}},{key:"whenDefined",value:function(t){if(!Di(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this._whenDefinedDeferred.get(t);if(e)return e.toPromise();var n=new zi;return this._whenDefinedDeferred.set(t,n),this._internals.localNameToDefinition(t)&&-1===this._unflushedLocalNames.indexOf(t)&&n.resolve(void 0),n.toPromise()}},{key:"polyfillWrapFlushCallback",value:function(e){this._documentConstructionObserver.disconnect();var n=this._flushCallback;this._flushCallback=function(t){return e(function(){return n(t)})}}}]),e}();(window.CustomElementRegistry=Vi).prototype.define=Vi.prototype.define,Vi.prototype.get=Vi.prototype.get,Vi.prototype.whenDefined=Vi.prototype.whenDefined,Vi.prototype.polyfillWrapFlushCallback=Vi.prototype.polyfillWrapFlushCallback;var Wi,Ui,Xi={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement},Yi=new function t(){h(this,t)},Gi=function(s,t,l){t.prepend=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&Ii(t)});l.prepend.apply(this,e);for(var o=0;o<i.length;o++)s.disconnectTree(i[o]);if(Ii(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&s.connectTree(a)}},t.append=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&Ii(t)});l.append.apply(this,e);for(var o=0;o<i.length;o++)s.disconnectTree(i[o]);if(Ii(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&s.connectTree(a)}}},$i=window.customElements;if(!$i||$i.forcePolyfill||"function"!=typeof $i.define||"function"!=typeof $i.get){var Ki=new Fi;Wi=Ki,window.HTMLElement=function(){function t(){var t=this.constructor,e=Wi.constructorToDefinition(t);if(!e)throw new Error("The custom element being constructed was not registered with `customElements`.");var n=e.constructionStack;if(0===n.length){var i=Xi.Document_createElement.call(document,e.localName);return Object.setPrototypeOf(i,t.prototype),i.__CE_state=Hi,i.__CE_definition=e,Wi.patch(i),i}var o=n.length-1,r=n[o];if(r===Yi)throw new Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[o]=Yi,Object.setPrototypeOf(r,t.prototype),Wi.patch(r),r}return t.prototype=Xi.HTMLElement.prototype,t}(),function(o){ji(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var e=o.localNameToDefinition(t);
2if(e)return new e.constructor}var n=Xi.Document_createElement.call(this,t);return o.patch(n),n}),ji(Document.prototype,"importNode",function(t,e){var n=Xi.Document_importNode.call(this,t,e);return this.__CE_hasRegistry?o.patchAndUpgradeTree(n):o.patchTree(n),n});ji(Document.prototype,"createElementNS",function(t,e){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var n=o.localNameToDefinition(e);if(n)return new n.constructor}var i=Xi.Document_createElementNS.call(this,t,e);return o.patch(i),i}),Gi(o,Document.prototype,{prepend:Xi.Document_prepend,append:Xi.Document_append})}(Ki),function(l){function e(t,a){Object.defineProperty(t,"textContent",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(t){if(this.nodeType!==Node.TEXT_NODE){var e=void 0;if(this.firstChild){var n=this.childNodes,i=n.length;if(0<i&&Ii(this)){e=new Array(i);for(var o=0;o<i;o++)e[o]=n[o]}}if(a.set.call(this,t),e)for(var r=0;r<e.length;r++)l.disconnectTree(e[r])}else a.set.call(this,t)}})}ji(Node.prototype,"insertBefore",function(t,e){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes),i=Xi.Node_insertBefore.call(this,t,e);if(Ii(this))for(var o=0;o<n.length;o++)l.connectTree(n[o]);return i}var r=Ii(t),a=Xi.Node_insertBefore.call(this,t,e);return r&&l.disconnectTree(t),Ii(this)&&l.connectTree(t),a}),ji(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var e=Array.prototype.slice.apply(t.childNodes),n=Xi.Node_appendChild.call(this,t);if(Ii(this))for(var i=0;i<e.length;i++)l.connectTree(e[i]);return n}var o=Ii(t),r=Xi.Node_appendChild.call(this,t);return o&&l.disconnectTree(t),Ii(this)&&l.connectTree(t),r}),ji(Node.prototype,"cloneNode",function(t){var e=Xi.Node_cloneNode.call(this,t);return this.ownerDocument.__CE_hasRegistry?l.patchAndUpgradeTree(e):l.patchTree(e),e}),ji(Node.prototype,"removeChild",function(t){var e=Ii(t),n=Xi.Node_removeChild.call(this,t);return e&&l.disconnectTree(t),n}),ji(Node.prototype,"replaceChild",function(t,e){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes),i=Xi.Node_replaceChild.call(this,t,e);if(Ii(this)){l.disconnectTree(e);for(var o=0;o<n.length;o++)l.connectTree(n[o])}return i}var r=Ii(t),a=Xi.Node_replaceChild.call(this,t,e),s=Ii(this);return s&&l.disconnectTree(e),r&&l.disconnectTree(t),s&&l.connectTree(t),a}),Xi.Node_textContent&&Xi.Node_textContent.get?e(Node.prototype,Xi.Node_textContent):l.addPatch(function(t){e(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;)Xi.Node_removeChild.call(this,this.firstChild);Xi.Node_appendChild.call(this,document.createTextNode(t))}})})}(Ki),function(s){function e(t,a){Object.defineProperty(t,"innerHTML",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(t){var e=this,n=Ii(this),i=void 0;if(n&&(i=[],Bi(this,function(t){t!==e&&i.push(t)})),a.set.call(this,t),i)for(var o=0;o<i.length;o++){var r=i[o];r.__CE_state===Hi&&s.disconnectedCallback(r)}return this.ownerDocument.__CE_hasRegistry?s.patchAndUpgradeTree(this):s.patchTree(this),t}})}if(Xi.Element_attachShadow?ji(Element.prototype,"attachShadow",function(t){var e=Xi.Element_attachShadow.call(this,t);return this.__CE_shadowRoot=e}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),Xi.Element_innerHTML&&Xi.Element_innerHTML.get)e(Element.prototype,Xi.Element_innerHTML);else if(Xi.HTMLElement_innerHTML&&Xi.HTMLElement_innerHTML.get)e(HTMLElement.prototype,Xi.HTMLElement_innerHTML);else{var n=Xi.Document_createElement.call(document,"div");s.addPatch(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return Xi.Node_cloneNode.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(n.innerHTML=t;0<e.childNodes.length;)Xi.Node_removeChild.call(e,e.childNodes[0]);for(;0<n.childNodes.length;)Xi.Node_appendChild.call(e,n.childNodes[0])}})})}function t(t,o){ji(t,"insertAdjacentElement",function(t,e){var n=Ii(e),i=o.call(this,t,e);return n&&s.disconnectTree(e),Ii(i)&&s.connectTree(e),i})}var l,i,u;ji(Element.prototype,"setAttribute",function(t,e){if(this.__CE_state!==Hi)return Xi.Element_setAttribute.call(this,t,e);var n=Xi.Element_getAttribute.call(this,t);Xi.Element_setAttribute.call(this,t,e),e=Xi.Element_getAttribute.call(this,t),s.attributeChangedCallback(this,t,n,e,null)}),ji(Element.prototype,"setAttributeNS",function(t,e,n){if(this.__CE_state!==Hi)return Xi.Element_setAttributeNS.call(this,t,e,n);var i=Xi.Element_getAttributeNS.call(this,t,e);Xi.Element_setAttributeNS.call(this,t,e,n),n=Xi.Element_getAttributeNS.call(this,t,e),s.attributeChangedCallback(this,e,i,n,t)}),ji(Element.prototype,"removeAttribute",function(t){if(this.__CE_state!==Hi)return Xi.Element_removeAttribute.call(this,t);var e=Xi.Element_getAttribute.call(this,t);Xi.Element_removeAttribute.call(this,t),null!==e&&s.attributeChangedCallback(this,t,e,null,null)}),ji(Element.prototype,"removeAttributeNS",function(t,e){if(this.__CE_state!==Hi)return Xi.Element_removeAttributeNS.call(this,t,e);var n=Xi.Element_getAttributeNS.call(this,t,e);Xi.Element_removeAttributeNS.call(this,t,e);var i=Xi.Element_getAttributeNS.call(this,t,e);n!==i&&s.attributeChangedCallback(this,e,n,i,t)}),Xi.HTMLElement_insertAdjacentElement?t(HTMLElement.prototype,Xi.HTMLElement_insertAdjacentElement):Xi.Element_insertAdjacentElement?t(Element.prototype,Xi.Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Gi(s,Element.prototype,{prepend:Xi.Element_prepend,append:Xi.Element_append}),l=s,i=Element.prototype,u={before:Xi.Element_before,after:Xi.Element_after,replaceWith:Xi.Element_replaceWith,remove:Xi.Element_remove},i.before=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&Ii(t)});u.before.apply(this,e);for(var o=0;o<i.length;o++)l.disconnectTree(i[o]);if(Ii(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&l.connectTree(a)}},i.after=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&Ii(t)});u.after.apply(this,e);for(var o=0;o<i.length;o++)l.disconnectTree(i[o]);if(Ii(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&l.connectTree(a)}},i.replaceWith=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&Ii(t)}),o=Ii(this);u.replaceWith.apply(this,e);for(var r=0;r<i.length;r++)l.disconnectTree(i[r]);if(o){l.disconnectTree(this);for(var a=0;a<e.length;a++){var s=e[a];s instanceof Element&&l.connectTree(s)}}},i.remove=function(){var t=Ii(this);u.remove.call(this),t&&l.disconnectTree(this)}}(Ki),document.__CE_hasRegistry=!0;var Qi=new Vi(Ki);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Qi})}!function(t){if(!t.JsMutationObserver){var r,l=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))r=setTimeout;else if(window.setImmediate)r=window.setImmediate;else{var n=[],i=String(Math.random());window.addEventListener("message",function(t){if(t.data===i){var e=n;n=[],e.forEach(function(t){t()})}}
2),r=function(t){n.push(t),window.postMessage(i,"*")}}var h,d,a=!1,s=[],e=0;o.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=l.get(t);o||l.set(t,o=[]);for(var r=0;r<o.length;r++)if(o[r].observer===this){(i=o[r]).removeListeners(),i.options=e;break}i||(i=new _(this,t,e),o.push(i),this.nodes_.push(t)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=l.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}},_.prototype={enqueue:function(t){var e,n=this.observer.records_,i=n.length;if(0<n.length){var o=m(n[i-1],t);if(o)return void(n[i-1]=o)}else e=this.observer,s.push(e),a||(a=!0,r(u));n[i]=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){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=l.get(t);e||l.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=l.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;(r=new p("attributes",i)).attributeName=e,r.attributeNamespace=n;var o=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;f(i,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?g(o):r});break;case"DOMCharacterDataModified":var r=p("characterData",i=t.target);o=t.prevValue;f(i,function(t){if(t.characterData)return t.characterDataOldValue?g(o):r});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,s,l=t.target;"DOMNodeInserted"===t.type?(a=[l],s=[]):(a=[],s=[l]);var u=l.previousSibling,c=l.nextSibling;(r=p("childList",t.target.parentNode)).addedNodes=a,r.removedNodes=s,r.previousSibling=u,r.nextSibling=c,f(t.relatedNode,function(t){if(t.childList)return r})}h=d=void 0}},t.JsMutationObserver=o,t.MutationObserver||((t.MutationObserver=o)._isPolyfilled=!0)}function u(){a=!1;var t=s;s=[],t.sort(function(t,e){return t.uid_-e.uid_});var i=!1;t.forEach(function(t){var n,e=t.takeRecords();(n=t).nodes_.forEach(function(t){var e=l.get(t);e&&e.forEach(function(t){t.observer===n&&t.removeTransientObservers()})}),e.length&&(t.callback_(e,t),i=!0)}),i&&u()}function f(t,e){for(var n=t;n;n=n.parentNode){var i=l.get(n);if(i)for(var o=0;o<i.length;o++){var r=i[o],a=r.options;if(n===t||a.subtree){var s=e(a);s&&r.enqueue(s)}}}}function o(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++e}function c(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 p(t,e){return h=new c(t,e)}function g(t){return d||((n=new c((e=h).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,(d=n).oldValue=t,d);var e,n}function m(t,e){return t===e?t:d&&((n=t)===d||n===h)?d:null;var n}function _(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}}
2(self),function(n,i){if(!n.setImmediate){var t,o,e,r,a,s=1,l={},u=!1,c=n.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(n);h=h&&h.setTimeout?h:n,"[object process]"==={}.toString.call(n.process)?t=function(){var t=d(arguments);return process.nextTick(f(p,t)),t}:!function(){if(n.postMessage&&!n.importScripts){var t=!0,e=n.onmessage;return n.onmessage=function(){t=!1},n.postMessage("","*"),n.onmessage=e,t}}()?n.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){p(t.data)},t=function(){var t=d(arguments);return e.port2.postMessage(t),t}):c&&"onreadystatechange"in c.createElement("script")?(o=c.documentElement,t=function(){var t=d(arguments),e=c.createElement("script");return e.onreadystatechange=function(){p(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e),t}):t=function(){var t=d(arguments);return setTimeout(f(p,t),0),t}:(r="setImmediate$"+Math.random()+"$",a=function(t){t.source===n&&"string"==typeof t.data&&0===t.data.indexOf(r)&&p(+t.data.slice(r.length))},n.addEventListener?n.addEventListener("message",a,!1):n.attachEvent("onmessage",a),t=function(){var t=d(arguments);return n.postMessage(r+t,"*"),t}),h.setImmediate=t,h.clearImmediate=g}function d(t){return l[s]=f.apply(i,t),s++}function f(t){var e=[].slice.call(arguments,1);return function(){"function"==typeof t?t.apply(i,e):new Function(""+t)()}}function p(t){if(u)setTimeout(f(p,t),0);else{var e=l[t];if(e){u=!0;try{e()}finally{g(t),u=!1}}}}function g(t){delete l[t]}}(self),Ui={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=Ui.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=Ui;var Ji=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return a(e,t),e}(function(){if("function"!=typeof HTMLElement){var t=function(){};return t.prototype=document.createElement("div"),t}return HTMLElement}()),Zi=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));for(t.template=t.innerHTML;t.firstChild;)t.removeChild(t.firstChild);return t}return a(e,Ji),d(e,[{key:"connectedCallback",value:function(){this.parentNode&&this.parentNode!==document.body&&W.warn("ons-template (id = "+this.getAttribute("id")+") must be located just under document.body"+(this.parentNode.outerHTML?":\n\n"+this.parentNode.outerHTML:"."));var t=new CustomEvent("_templateloaded",{bubbles:!0,cancelable:!0});t.template=this.template,t.templateId=this.getAttribute("id"),this.dispatchEvent(t)}}]),e}();i.Template=Zi,customElements.define("ons-template",Zi);var to=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){if(null!==c._getSelectedPlatform())t._platformUpdate();else if(!t._isAllowedPlatform()){for(;t.childNodes[0];)t.childNodes[0].remove();t._platformUpdate()}}),t._onOrientationChange(),t}return a(e,Ji),d(e,[{key:"connectedCallback",value:function(){Bt.on("change",this._onOrientationChange.bind(this))}},{key:"attributeChangedCallback",value:function(t){"orientation"===t&&this._onOrientationChange()}},{key:"disconnectedCallback",value:function(){Bt.off("change",this._onOrientationChange)}},{key:"_platformUpdate",value:function(){this.style.display=this._isAllowedPlatform()?"":"none"}},{key:"_isAllowedPlatform",value:function(){return!this.getAttribute("platform")||0<=this.getAttribute("platform").split(/\s+/).indexOf(c.getMobileOS())}},{key:"_onOrientationChange",value:function(){if(this.hasAttribute("orientation")&&this._isAllowedPlatform()){var t=this.getAttribute("orientation").toLowerCase(),e=Bt.isPortrait()?"portrait":"landscape";this.style.display=t===e?"":"none"}}}],[{key:"observedAttributes",get:function(){return["orientation"]}}]),e}();i.If=to,customElements.define("ons-if",to);var eo=function(){function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this.timing=t.timing||"linear",this.duration=t.duration||0,this.delay=t.delay||0,this.def={timing:this.timing,duration:this.duration,delay:this.delay}}return d(e,null,[{key:"extend",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this,n=function(){e.apply(this,arguments),W.extend(this,t)};return n.prototype=this.prototype,n}}]),e}(),no={isIPhoneXPortraitPatchActive:function(){return null!=document.documentElement.getAttribute("onsflag-iphonex-portrait")&&window.innerWidth<window.innerHeight},isIPhoneXLandscapePatchActive:function(){return null!=document.documentElement.getAttribute("onsflag-iphonex-landscape")&&window.innerWidth>=window.innerHeight},getSafeAreaLengths:function(){return no.isIPhoneXPortraitPatchActive()?{top:44,right:0,bottom:34,left:0}:no.isIPhoneXLandscapePatchActive()?{top:0,right:44,bottom:21,left
2:44}:{top:0,right:0,bottom:0,left:0}},getSafeAreaDOMRect:function(){var t=void 0;return t=no.isIPhoneXPortraitPatchActive()?{x:0,y:44,width:window.innerWidth,height:window.innerHeight-78}:no.isIPhoneXLandscapePatchActive()?{x:44,y:0,width:window.innerWidth-88,height:window.innerHeight-21}:{x:0,y:0,width:window.innerWidth,height:window.innerHeight},f({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}},io=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),s}(),oo=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.4:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.maskTiming="linear",s.maskDuration=.2,s}return a(l,io),d(l,[{key:"show",value:function(t,e){it.runAll(it(t._mask).queue({opacity:0}
2).wait(this.delay).queue({opacity:1},{duration:this.maskDuration,timing:this.maskTiming}),it(t._sheet,this.def).default({transform:"translate3d(0, 80%, 0)",opacity:0},{transform:"translate3d(0, 0, 0)",opacity:1}).queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){it.runAll(it(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.maskDuration,timing:this.maskTiming}),it(t._sheet,this.def).default({transform:"translate3d(0, 0, 0)",opacity:1},{transform:"translate3d(0, 80%, 0)",opacity:0}).queue(function(t){e&&e(),t()}))}}]),l}(),ro=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.3:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.maskTiming="linear",s.maskDuration=.2,no.isIPhoneXPortraitPatchActive()?s.liftAmount="calc(100% + 48px)":no.isIPhoneXLandscapePatchActive()?s.liftAmount="calc(100% + 33px)":s.liftAmount=document.body.clientHeight/2-1+"px",s}return a(l,io),d(l,[{key:"show",value:function(t,e){it.runAll(it(t._mask).queue({opacity:0}
2).wait(this.delay).queue({opacity:1},{duration:this.maskDuration,timing:this.maskTiming}),it(t._sheet,this.def).default({transform:"translate3d(0, "+this.liftAmount+", 0)"},{transform:"translate3d(0, 0, 0)"}).queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){it.runAll(it(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.maskDuration,timing:this.maskTiming}),it(t._sheet,this.def).default({transform:"translate3d(0, 0, 0)"},{transform:"translate3d(0, "+this.liftAmount+", 0)"}).queue(function(t){e&&e(),t()}))}}]),l}(),ao=function(t){function n(){h(this,n);var e=m(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.constructor===n&&W.throwAbstract(),e._visible=!1,e._doorLock=new Wt,e._cancel=e._cancel.bind(e),e._selfCamelName=W.camelize(e.tagName.slice(4)),e._defaultDBB=function(t){return e.cancelable?e._cancel():t.callParentHandler()},e._animatorFactory=e._updateAnimatorFactory(),e}return a(n,Ji),d(n,[{key:"_updateAnimatorFactory",value:function(){W.throwMember()}},{key:"_toggleStyle",value:function(t){this.style.display=t?"block":"none"}},{key:"_scheme",get:function(){W.throwMember()}}]),d(n,[{key:"_cancel",value:function(){var t=this;this.cancelable&&!this._running&&(this._running=!0,this.hide().then(function(){t._running=!1,W.triggerElementEvent(t,"dialog-cancel")},function(){return t._running=!1}))}},{key:"show",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._setVisible.apply(this,[!0].concat(e))}},{key:"hide",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._setVisible.apply(this,[!1].concat(e))}},{key:"toggle",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._setVisible.apply(this,[!this.visible].concat(e))}},{key:"_setVisible",value:function(i){var t,o=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=i?"show":"hide";(r=f({},r)).animationOptions=W.extend(r.animationOptions||{},y.parseAnimationOptionsString(this.getAttribute("animation-options")));var e=!1;return W.triggerElementEvent(this,"pre"+a,(s(t={},this._selfCamelName,this),s(t,"cancel",function(){return e=!0}),t)),e?Promise.reject("Canceled in pre"+a+" event."):new Promise(function(n){o._doorLock.waitUnlock(function(){var t=o._doorLock.lock(),e=o._animatorFactory.newAnimator(r);i&&o._toggleStyle(!0,r),o._visible=i,W.iosPageScrollFix(i),xt(o,function(){e[a](o,function(){!i&&o._toggleStyle(!1,r),t(),W.propagateAction(o,"_"+a),W.triggerElementEvent(o,"post"+a,s({},o._selfCamelName,o)),r.callback instanceof Function&&r.callback(o),n(o)})})})})}},{key:"_updateMask",value:function(){var t=this;xt(this,function(){t._mask&&t.getAttribute("mask-color")&&(t._mask.style.backgroundColor=t.getAttribute("mask-color"))})}},{key:"connectedCallback",value:function(){var t=this;this.onDeviceBackButton=this._defaultDBB.bind(this),xt(this,function(){t._mask&&(t._mask.addEventListener("click",t._cancel,!1),W.iosMaskScrollFix(t._mask,!0))})}},{key:"disconnectedCallback",value:function(){this._backButtonHandler.destroy(),this._backButtonHandler=null,this._mask&&(this._mask.removeEventListener("click",this._cancel,!1),W.iosMaskScrollFix(this._mask,!1))}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"modifier":O.onModifierChanged(e,n,this,this._scheme);break;case"animation":this._animatorFactory=this._updateAnimatorFactory();break;case"mask-color":this._updateMask()}}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=M.createHandler(this,t)}},{key:"visible",get:function(){return this._visible}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}},{key:"cancelable",set:function(t){return W.toggleAttribute(this,"cancelable",t)},get:function(){return this.hasAttribute("cancelable")}}],[{key:"observedAttributes",get:function(){return["modifier","animation","mask-color"]}},{key:"events",get:function(){return["preshow","postshow","prehide","posthide","dialog-cancel"]}}]),n}(),so={".action-sheet":"action-sheet--*",".action-sheet-mask":"action-sheet-mask--*",".action-sheet-title":"action-sheet-title--*"},lo={default:function(){return c.isAndroid()?oo:ro},none:io},uo=function(t){function i(){h(this,i);var t=m(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return xt(t,function(){return t._compile()}),t}return a(i,ao),d(i,[{key:"_updateAnimatorFactory",value:function(){return new y({animators:lo,baseClass:io,baseClassName:"ActionSheetAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){if(P.prepare(this),this.style.display="none",this.style.zIndex=10001,!this._sheet){var t=document.createElement("div");for(t.classList.add("action-sheet");this.firstChild;)t.appendChild(this.firstChild);this.appendChild(t)}if(!this._title&&this.hasAttribute("title")){var e=document.createElement("div");e.innerHTML=this.getAttribute("title"),e.classList.add("action-sheet-title"),this._sheet.insertBefore(e,this._sheet.firstChild)}if(!this._mask){var n=document.createElement("div");n.classList.add("action-sheet-mask"),this.insertBefore(n,this.firstChild)}this._sheet.style.zIndex=20001,this._mask.style.zIndex=2e4,O.initModifier(this,this._scheme)}},{key:"_updateTitle",value:function(){this._title&&(this._title.innerHTML=this.getAttribute("title"))}},{key:"attributeChangedCallback",value:function(t,e,n){"title"===t?this._updateTitle():p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,t,e,n)}},{key:"_scheme",get:function(){return so}}
2,{key:"_mask",get:function(){return W.findChild(this,".action-sheet-mask")}},{key:"_sheet",get:function(){return W.findChild(this,".action-sheet")}},{key:"_title",get:function(){return this.querySelector(".action-sheet-title")}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof io||W.throwAnimator("ActionSheet"),lo[t]=e}},{key:"observedAttributes",get:function(){return[].concat(_(p(i.__proto__||Object.getPrototypeOf(i),"observedAttributes",this)),["title"])}},{key:"animators",get:function(){return lo}},{key:"ActionSheetAnimator",get:function(){return io}}]),i}();i.ActionSheet=uo,customElements.define("ons-action-sheet",uo);var co=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.constructor===e&&W.throwAbstract(),xt(t,function(){return t._compile()}),t}return a(e,Ji),d(e,[{key:"_scheme",get:function(){W.throwMember()}},{key:"_defaultClassName",get:function(){W.throwMember()}},{key:"_rippleOpt",get:function(){return[this]}}]),d(e,[{key:"_compile",value:function(){if(P.prepare(this),this.classList.add(this._defaultClassName),!this._icon&&this.hasAttribute("icon")){W.checkMissingImport("Icon");var t=W.createElement('<ons-icon icon="'+this.getAttribute("icon")+'"></ons-icon>');t.classList.add(this._defaultClassName.replace("button","icon")),this.insertBefore(t,this.firstChild)}this._updateRipple(),O.initModifier(this,this._scheme)}},{key:"_updateIcon",value:function(){this._icon&&this._icon.setAttribute("icon",this.getAttribute("icon"))}},{key:"_updateRipple",value:function(){this._rippleOpt&&W.updateRipple.apply(W,_(this._rippleOpt))}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,this._defaultClassName,this._scheme);break;case"modifier":O.onModifierChanged(e,n,this,this._scheme);break;case"icon":this._updateIcon();break;case"ripple":this.classList.contains(this._defaultClassName)&&this._updateRipple()}}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}},{key:"_icon",get:function(){return W.findChild(this,"ons-icon")}}],[{key:"observedAttributes",get:function(){return["modifier","class","icon","ripple"]}}]),e}(),ho=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,co),d(e,[{key:"_scheme",get:function(){return{"":"action-sheet-button--*",".action-sheet-icon":"action-sheet-icon--*"}}},{key:"_defaultClassName",get:function(){return"action-sheet-button"}},{key:"_rippleOpt",get:function(){}}]),e}();i.ActionSheetButton=ho,customElements.define("ons-action-sheet-button",ho);var fo=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),s}(),po=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .4, 1)":e,i=t.duration,o=void 0===i?.2:i,r=t.delay,a=void 0===r?0:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{duration:o,timing:n,delay:a}))}return a(s,fo),d(s,[{key:"show",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:0},{opacity:1}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -50%, 0) scale3d(.9, .9, 1)",opacity:0},{transform:"translate3d(-50%, -50%, 0) scale3d(1, 1, 1)",opacity:1}).queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:1},{opacity:0}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -50%, 0) scale3d(1, 1, 1)",opacity:1},{transform:"translate3d(-50%, -50%, 0) scale3d(.9, .9, 1)",opacity:0}).queue(function(t){e(),t()}))}}]),s}(),go=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .4, 1)":e,i=t.duration,o=void 0===i?.2:i,r=t.delay,a=void 0===r?0:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{duration:o,timing:n,delay:a}))}return a(s,fo),d(s,[{key:"show",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:0}
2,{opacity:1}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -50%, 0) scale3d(1.3, 1.3, 1)",opacity:0},{transform:"translate3d(-50%, -50%, 0) scale3d(1, 1, 1)",opacity:1}).queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:1},{opacity:0}),it(t._dialog,this.def).default({opacity:1},{opacity:0}).queue(function(t){e(),t()}))}}]),s}(),mo={".alert-dialog":"alert-dialog--*",".alert-dialog-container":"alert-dialog-container--*",".alert-dialog-title":"alert-dialog-title--*",".alert-dialog-content":"alert-dialog-content--*",".alert-dialog-footer":"alert-dialog-footer--*",".alert-dialog-footer--rowfooter":"alert-dialog-footer--rowfooter--*",".alert-dialog-button--rowfooter":"alert-dialog-button--rowfooter--*",".alert-dialog-button--primal":"alert-dialog-button--primal--*",".alert-dialog-button":"alert-dialog-button--*","ons-alert-dialog-button":"alert-dialog-button--*",".alert-dialog-mask":"alert-dialog-mask--*",".text-input":"text-input--*"},_o={none:fo,default:function(){return c.isAndroid()?po:go},fade:function(){return c.isAndroid()?po:go}},vo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){return t._compile()}),t}return a(e,ao),d(e,[{key:"_updateAnimatorFactory",value:function(){return new y({animators:_o,baseClass:fo,baseClassName:"AlertDialogAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){P.prepare(this),this.style.display="none",this.style.zIndex=10001;var t=document.createDocumentFragment();if(!this._mask&&!this._dialog)for(;this.firstChild;)t.appendChild(this.firstChild);if(!this._mask){var e=document.createElement("div");e.classList.add("alert-dialog-mask"),this.insertBefore(e,this.children[0])}if(!this._dialog){var n=document.createElement("div");n.classList.add("alert-dialog"),this.insertBefore(n,null)}if(!W.findChild(this._dialog,".alert-dialog-container")){var i=document.createElement("div");i.classList.add("alert-dialog-container"),this._dialog.appendChild(i)}this._dialog.children[0].appendChild(t),this._dialog.style.zIndex=20001,this._mask.style.zIndex=2e4,O.initModifier(this,this._scheme)}},{key:"_scheme",get:function(){return mo}},{key:"_mask",get:function(){return W.findChild(this,".alert-dialog-mask")}},{key:"_dialog",get:function(){return W.findChild(this,".alert-dialog")}},{key:"_titleElement",get:function(){return W.findChild(this._dialog.children[0],".alert-dialog-title")}},{key:"_contentElement",get:function(){return W.findChild(this._dialog.children[0],".alert-dialog-content")}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof fo||W.throwAnimator("AlertDialog"),_o[t]=e}},{key:"animators",get:function(){return _o}},{key:"AlertDialogAnimator",get:function(){return fo}}]),e}();i.AlertDialog=vo,customElements.define("ons-alert-dialog",vo);var bo=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,co),d(e,[{key:"_scheme",get:function(){return{"":"alert-dialog-button--*"}}},{key:"_defaultClassName",get:function(){return"alert-dialog-button"}},{key:"_rippleOpt",get:function(){return[this,void 0,{modifier:"light-gray"}]}}]),e}();i.AlertDialogButton=bo,customElements.define("ons-alert-dialog-button",bo);var yo="back-button",ko={"":"back-button--*",".back-button__icon":"back-button--*__icon",".back-button__label":"back-button--*__label"},wo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){t._compile()}),t._options={},t._boundOnClick=t._onClick.bind(t),t}return a(e,Ji),d(e,[{key:"_updateIcon",value:function(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:W.findChild(this,".back-button__icon")).innerHTML="android"===P.getPlatform(this)||W.hasModifier(this,"material")?'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>md-back-button-icon</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="toolbar-back-button" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="android" transform="translate(-32.000000, -32.000000)" fill-rule="nonzero">\n <polygon id="md-back-button-icon" points="48 39 35.83 39 41.42 33.41 40 32 32 40 40 48 41.41 46.59 35.83 41 48 41"></polygon>\n </g>\n </g>\n</svg>\n':'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="13px" height="21px" viewBox="0 0 13 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>ios-back-button-icon</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="toolbar-back-button" stroke="none" stroke-width="1" fill-rule="evenodd">\n <g id="ios" transform="translate(-34.000000, -30.000000)">\n <polygon id="ios-back-button-icon" points="34 40.5 44.5 30 46.5 32 38 40.5 46.5 49 44.5 51"></polygon>\n </g>\n </g>\n</svg>\n'}},{key:"_compile",value:function(){if(P.prepare(this),this.classList.add(yo),!W.findChild(this,".back-button__label")){for(var t=W.create("span.back-button__label");this.childNodes[0];)t.appendChild(this.childNodes[0]);this.appendChild(t)}if(!W.findChild(this,".back-button__icon")){var e=W.create("span.back-button__icon");this._updateIcon(e),this.insertBefore(e,this.children[0])}W.updateRipple(this,void 0,{center:"",size:"contain",background:"transparent"}),O.initModifier(this,ko)}},{key:"_onClick",value:function(){if(this.onClick)this.onClick.apply(this);else{var t=W.findParent(this,"ons-navigator");t&&t.popPage(this.options)}}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick,!1)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,yo,ko);break;case"modifier":O.onModifierChanged(e,n,this,ko)&&this._updateIcon()}}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick,!1)}},{key:"show",value:function(){this.style.display="inline-block"}},{key:"hide",value:function(){this.style.display="none"}},{key:"options",get:function(){return this._options}
2,set:function(t){this._options=t}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.BackButton=wo,customElements.define("ons-back-button",wo);var Eo="bottom-bar",Co={"":"bottom-bar--*"},Ao=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.classList.add(Eo),O.initModifier(t,Co),t}return a(e,Ji),d(e,[{key:"connectedCallback",value:function(){W.match(this.parentNode,"ons-page")&&this.parentNode.classList.add("page-with-bottom-toolbar")}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,Eo,Co);break;case"modifier":O.onModifierChanged(e,n,this,Co)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.BottomToolbar=Ao,customElements.define("ons-bottom-toolbar",Ao);var So=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,co),d(e,[{key:"_scheme",get:function(){return{"":"button--*"}}},{key:"_defaultClassName",get:function(){return"button"}}]),e}();i.Button=So,customElements.define("ons-button",So);var Po={"":"card--*",".card__title":"card--*__title",".card__content":"card--*__content"},Oo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){t._compile()}),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){for(var t=0;t<this.children.length;t++){var e=this.children[t];e.classList.contains("title")?e.classList.add("card__title"):e.classList.contains("content")&&e.classList.add("card__content")}P.prepare(this),this.classList.add("card"),O.initModifier(this,Po)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,"card",Po);break;case"modifier":O.onModifierChanged(e,n,this,Po)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.Card=Oo,customElements.define("ons-card",Oo);var xo={"":"carousel-item--*"},To=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.style.width="100%",O.initModifier(t,xo),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){if("modifier"===t)return O.onModifierChanged(e,n,this,xo)}}],[{key:"observedAttributes",get:function(){return["modifier"]}}]),e}();i.CarouselItem=To,customElements.define("ons-carousel-item",To);var Lo={vertical:{axis:"Y",size:"Height",dir:["up","down"],t3d:["0px, ","px, 0px"]},horizontal:{axis:"X",size:"Width",dir:["left","right"],t3d:["","px, 0px, 0px"]}},Mo=function(){function t(e){var n=this;h(this,t);var i=function(){return!1};"getInitialIndex getBubbleWidth isVertical isOverScrollable isCentered\n isAutoScrollable refreshHook preChangeHook postChangeHook overScrollHook".split(/\s+/).forEach(function(t){return n[t]=e[t]||i}),this.getElement=e.getElement,this.scrollHook=e.scrollHook,this.itemSize=e.itemSize||"100%",this.getAutoScrollRatio=function(){var t=e.getAutoScrollRatio&&e.getAutoScrollRatio.apply(e,arguments);return((t="number"==typeof t&&t==t?t:.5)<0||1<t)&&W.throw("Invalid auto-scroll-ratio "+t+". Must be between 0 and 1"),t},this.shouldBlock="other"===W.globals.actualMobileOS,this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onResize=this.onResize.bind(this),this._shouldFixScroll="ios"===W.globals.actualMobileOS}return d(t,[{key:"init",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=e.swipeable,i=e.autoRefresh;this.initialized=!0,this.target=this.getElement().children[0],this.blocker=this.getElement().children[1],this.target&&this.blocker||W.throw('Expected "target" and "blocker" elements to exist before initializing Swiper'),this.shouldBlock||(this.blocker.style.display="none"),this.getElement().classList.add("ons-swiper"),this.target.classList.add("ons-swiper-target"),this.blocker.classList.add("ons-swiper-blocker"),this._gestureDetector=new ot(this.getElement(),{dragMinDistance:1,dragLockToAxis:!0,passive:!this._shouldFixScroll}),this._mutationObserver=new MutationObserver(function(){return t.refresh()}),this.updateSwipeable(n),this.updateAutoRefresh(i),this._scroll=this._offset=this._lastActiveIndex=0,this._updateLayout(),this._setupInitialIndex(),setImmediate(function(){return t.initialized&&t._setupInitialIndex()}),window===window.parent&&0!==this.offsetHeight||window.requestAnimationFrame(function(){return t.initialized&&t.onResize()})}},{key:"dispose",value:function(){this.initialized=!1,this.updateSwipeable(!1),this.updateAutoRefresh(!1),this._gestureDetector&&this._gestureDetector.dispose(),this.target=this.blocker=this._gestureDetector=this._mutationObserver=null,this.setupResize(!1)}},{key:"onResize",value:function(){var t=this._scroll/this.targetSize;this._reset(),this.setActiveIndex(t),this.refresh()}},{key:"_calculateItemSize",value:function(){var t=this.itemSize.match(/^(\d+)(px|%)/);t||W.throw("Invalid state: swiper's size unit must be '%' or 'px'");var e=parseInt(t[1],10);return"%"===t[2]?Math.round(e/100*this.targetSize):e}},{key:"_setupInitialIndex",value:function(){this._reset(),this._lastActiveIndex=Math.max(Math.min(Number(this.getInitialIndex()),this.itemCount),0),this._scroll=this._offset+this.itemNumSize*this._lastActiveIndex,this._scrollTo(this._scroll)}},{key:"_setSwiping",value:function(t){this.target.classList.toggle("swiping",t)}},{key:"setActiveIndex",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this._setSwiping(!0),t=Math.max(0,Math.min(t,this.itemCount-1));var i,o=Math.max(0,Math.min(this.maxScroll,this._offset+this.itemNumSize*t));if(c.isUIWebView()){var r=(i=W.arrayFrom(this.target.children).map(function(t){return W.arrayFrom(t.children).filter(function(t){return t.classList.contains("page__content")})}),Array.prototype.concat.apply([],i)),a=new Map;return new Promise(function(t){r.forEach(function(t){a.set(t,t.getAttribute("class")),t.classList.add("page__content--suppress-layer-creation")}),requestAnimationFrame(t)}).then(function(){return e._changeTo(o,n)}).then(function(){return new Promise(function(t){r.forEach(function(t){t.setAttribute("class",a.get(t))}),requestAnimationFrame(t)})})}return this._changeTo(o,n)}},{key:"getActiveIndex",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._scroll;t-=this._offset;var e=this.itemCount,n=this.itemNumSize;if(0===this.itemNumSize||!W.isInteger(t))return this._lastActiveIndex;if(t<=0)return 0;for(var i=0;i<e;i++)if(n*i<=t&&t<n*(i+1))return i;return e-1}},{key:"setupResize",value:function(t){window[(t?"add":"remove")+"EventListener"]("resize",this.onResize,!0)}},{key:"show",value:function(){var t=this;this.setupResize(!0),this.onResize(),setTimeout(function(){return t.target&&t.target.classList.add("active")},1e3/60)}},{key:"hide",value:function(){this.setupResize(!1),this.target.classList.remove("active")}},{key:"updateSwipeable",value:function(t){if(this._gestureDetector){var e=t?"on":"off";this._gestureDetector[e]("drag",this.onDrag),this._gestureDetector[e]("dragstart",this.onDragStart),this._gestureDetector[e]("dragend",this.onDragEnd)}}},{key:"updateAutoRefresh",value:function(t){this._mutationObserver&&(t?this._mutationObserver.observe(this.target,{childList:!0}):this._mutationObserver.disconnect())}},{key:"updateItemSize",value:function(t){this.itemSize=t||"100%",this.refresh()}},{key:"toggleBlocker",value:function(t){this.blocker.style.pointerEvents=t?"auto":"none"}},{key:"_canConsumeGesture",value:function(t){var e=t.direction,n=0===this._scroll&&!this.isOverScrollable(),i=this._scroll===this.maxScroll&&!this.isOverScrollable();return this.isVertical()?"down"===e&&!n||"up"===e&&!i:"right"===e&&!n||"left"===e&&!i}},{key:"onDragStart",value:function(t){var e=this;if(this._ignoreDrag=t.consumed||!W.isValidGesture(t),!this._ignoreDrag){var n=t.consume;if(t.consume=function(){n&&n(),e._ignoreDrag=!0},this._canConsumeGesture(t.gesture)){var i=t.gesture.center&&t.gesture.center.clientX||0,o=this.getBubbleWidth()||0,r=function(){n&&n(),t.consumed=!0,e._started=!0,e.shouldBlock&&e.toggleBlocker(!0),e._setSwiping(!0),W.iosPreventScroll(e._gestureDetector)};i<o||i>this.targetSize-o?setImmediate(function(){return!e._ignoreDrag&&r()}):r()}}}},{key:"onDrag",value:function(t){t.gesture&&!this._ignoreDrag&&this._started&&(this._continued=!0,t.stopPropagation(),this._scrollTo(this._scroll-this._getDelta(t),{throttle:!0}))}},{key:"onDragEnd",value:function(t){if(this._started=!1,t.gesture&&!this._ignoreDrag&&this._continued){this._continued=!1,t.stopPropagation();var e=this._scroll-this._getDelta(t),n=this._normalizeScroll(e);e===n?this._startMomentumScroll(e,t):this._killOverScroll(n),this.shouldBlock&&this.toggleBlocker(!1)}else this._ignoreDrag=!0}},{key:"_startMomentumScroll",value:function(t,e){var n=this._getVelocity(e),i=e.gesture.interimDirection===this.dM.dir[this._getDelta(e)<0?0:1],o=this._getAutoScroll(t,n,i),r=Math.abs(o-t)/(n+.01)/1e3;
2r=Math.min(.25,Math.max(.1,r)),this._changeTo(o,{swipe:!0,animationOptions:{duration:r,timing:"cubic-bezier(.4, .7, .5, 1)"}})}},{key:"_killOverScroll",value:function(t){var e=this;this._scroll=t;var n=this.dM.dir[Number(0<t)],i=function(){return e._changeTo(t,{animationOptions:{duration:.4,timing:"cubic-bezier(.1, .4, .1, 1)"}})};this.overScrollHook({direction:n,killOverScroll:i})||i()}},{key:"_changeTo",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i={activeIndex:this.getActiveIndex(t),lastActiveIndex:this._lastActiveIndex,swipe:n.swipe||!1},o=i.activeIndex!==i.lastActiveIndex,r=!!o&&this.preChangeHook(i);return this._scroll=r?this._offset+i.lastActiveIndex*this.itemNumSize:t,this._lastActiveIndex=r?i.lastActiveIndex:i.activeIndex,this._scrollTo(this._scroll,n).then(function(){if(t!==e._scroll||r){if(n.reject)return e._setSwiping(!1),Promise.reject("Canceled")}else e._setSwiping(!1),o&&e.postChangeHook(i)})}},{key:"_scrollTo",value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(t.throttle){if(e<0)e=this.isOverScrollable()?Math.round(.35*e):0;else{var i=this.maxScroll;i<e&&(e=this.isOverScrollable()?i+Math.round(.35*(e-i)):i)}}var o="none"===t.animation?{}:t.animationOptions;return this.scrollHook&&0<this.itemNumSize&&this.scrollHook((e/this.itemNumSize).toFixed(2),t.animationOptions||{}),new Promise(function(t){return it(n.target).queue({transform:n._getTransform(e)},o).play(t)})}},{key:"_getAutoScroll",value:function(n,t,e){var i=this.maxScroll,o=this._offset,r=this.itemNumSize;if(!this.isAutoScrollable())return Math.max(0,Math.min(i,n));for(var a=[],s=o;s<i;s+=r)a.push(s);a.push(i);var l=(a=a.sort(function(t,e){return Math.abs(t-n)-Math.abs(e-n)}).filter(function(t,e){return!e||t!==a[e-1]}))[0],u=this._lastActiveIndex*r+o,c=Math.abs(n-u)/r;return c<=this.getAutoScrollRatio(e,t,r)?l=u:c<1&&a[0]===u&&1<a.length&&(l=a[1]),Math.max(0,Math.min(i,l))}},{key:"_reset",value:function(){this._targetSize=this._itemNumSize=void 0}},{key:"_normalizeScroll",value:function(t){return Math.max(Math.min(t,this.maxScroll),0)}},{key:"refresh",value:function(){if(this._reset(),this._updateLayout(),W.isInteger(this._scroll)){var t=this._normalizeScroll(this._scroll);t!==this._scroll?this._killOverScroll(t):this._changeTo(t)}else this._setupInitialIndex();this.refreshHook()}},{key:"_getDelta",value:function(t){return t.gesture["delta"+this.dM.axis]}},{key:"_getVelocity",value:function(t){return t.gesture["velocity"+this.dM.axis]}},{key:"_getTransform",value:function(t){return"translate3d("+this.dM.t3d[0]+-t+this.dM.t3d[1]+")"}},{key:"_updateLayout",value:function(){this.dM=Lo[this.isVertical()?"vertical":"horizontal"],this.target.classList.toggle("ons-swiper-target--vertical",this.isVertical());for(var t=this.target.children[0];t;t=t.nextElementSibling)t.style[this.dM.size.toLowerCase()]=this.itemSize;this.isCentered()&&(this._offset=(this.targetSize-this.itemNumSize)/-2||0)}},{key:"itemCount",get:function(){return this.target.children.length}},{key:"itemNumSize",get:function(){return"number"==typeof this._itemNumSize&&this._itemNumSize==this._itemNumSize||(this._itemNumSize=this._calculateItemSize()),this._itemNumSize}},{key:"maxScroll",get:function(){var t=this.itemCount*this.itemNumSize-this.targetSize;return Math.ceil(t<0?0:t)}},{key:"targetSize",get:function(){return this._targetSize||(this._targetSize=this.target["offset"+this.dM.size]),this._targetSize}}]),t}(),Do=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){return t._compile()}),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){var t=this.children[0]&&"ONS-CAROUSEL-ITEM"!==this.children[0].tagName&&this.children[0]||document.createElement("div");if(!t.parentNode){for(;this.firstChild;)t.appendChild(this.firstChild);this.appendChild(t)}!this.children[1]&&this.appendChild(document.createElement("div")),this.appendChild=this.appendChild.bind(t),this.insertBefore=this.insertBefore.bind(t)}},{key:"connectedCallback",value:function(){var t=this;this._swiper||(this._swiper=new Mo({getElement:function(){return t},getInitialIndex:function(){return t.getAttribute("initial-index")},getAutoScrollRatio:function(){return t.autoScrollRatio},isVertical:function(){return t.vertical},isOverScrollable:function(){return t.overscrollable},isCentered:function(){return t.centered},isAutoScrollable:function(){return t.autoScroll},itemSize:this.itemSize,overScrollHook:this._onOverScroll.bind(this),preChangeHook:this._onChange.bind(this,"prechange"),postChangeHook:this._onChange.bind(this,"postchange"),refreshHook:this._onRefresh.bind(this),scrollHook:function(){return t._onSwipe&&t._onSwipe.apply(t,arguments)}}),xt(this,function(){return t._swiper.init({swipeable:t.hasAttribute("swipeable"),autoRefresh:t.hasAttribute("auto-refresh")})}))}},{key:"disconnectedCallback",value:function(){this._swiper&&this._swiper.initialized&&(this._swiper.dispose(),this._swiper=null)}},{key:"attributeChangedCallback",value:function(t,e,n){if(this._swiper)switch(t){case"swipeable":this._swiper.updateSwipeable(this.hasAttribute("swipeable"));break;case"auto-refresh":this._swiper.updateAutoRefresh(this.hasAttribute("auto-refresh"));break;case"item-height":this.vertical&&this._swiper.updateItemSize(this.itemSize);break;case"item-width":this.vertical||this._swiper.updateItemSize(this.itemSize);break;case"direction":this._swiper.refresh()}}},{key:"_show",value:function(){this._swiper.show()}},{key:"_hide",value:function(){this._swiper.hide()}},{key:"_onOverScroll",value:function(t){var e=t.direction,n=t.killOverScroll,i=!1;return W.triggerElementEvent(this,"overscroll",{carousel:this,activeIndex:this.getActiveIndex(),direction:e,waitToReturn:function(t){i=!0,t.then(n)}}),i}},{key:"_onChange",value:function(t,e){var n=e.activeIndex,i=e.lastActiveIndex;W.triggerElementEvent(this,t,{carousel:this,activeIndex:n,lastActiveIndex:i})}},{key:"_onRefresh",value:function(){W.triggerElementEvent(this,"refresh",{carousel:this})}},{key:"setActiveIndex",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return n=f({animation:this.getAttribute("animation"),animationOptions:this.hasAttribute("animation-options")?W.animationOptionsParse(this.getAttribute("animation-options")):{duration:.3,timing:"cubic-bezier(.4, .7, .5, 1)"}},n),this._swiper.setActiveIndex(t,n).then(function(){return n.callback instanceof Function&&n.callback(e),Promise.resolve(e)})}},{key:"getActiveIndex",value:function(){return this._swiper.getActiveIndex()}},{key:"next",value:function(t){return this.setActiveIndex(this.getActiveIndex()+1,t)}},{key:"prev",value:function(t){return this.setActiveIndex(this.getActiveIndex()-1,t)}},{key:"first",value:function(t){return this.setActiveIndex(0,t)}},{key:"last",value:function(t){this.setActiveIndex(Math.max(this.itemCount-1,0),t)}},{key:"refresh",value:function(){this._swiper.refresh()}},{key:"itemCount",get:function(){return this._swiper.itemCount}},{key:"swipeable",get:function(){return this.hasAttribute("swipeable")}
2,set:function(t){return W.toggleAttribute(this,"swipeable",t)}},{key:"onSwipe",get:function(){return this._onSwipe},set:function(t){!t||t instanceof Function||W.throw('"onSwipe" must be a function'),this._onSwipe=t}},{key:"autoScroll",get:function(){return this.hasAttribute("auto-scroll")},set:function(t){return W.toggleAttribute(this,"auto-scroll",t)}},{key:"vertical",get:function(){return"vertical"===this.getAttribute("direction")}},{key:"itemSize",get:function(){var t=(this.getAttribute("item-"+(this.vertical?"height":"width"))||"").trim();return t.match(/^\d+(px|%)$/)?t:"100%"}},{key:"autoScrollRatio",get:function(){return parseFloat(this.getAttribute("auto-scroll-ratio"))},set:function(t){this.setAttribute("auto-scroll-ratio",t)}},{key:"disabled",get:function(){return this.hasAttribute("disabled")},set:function(t){return W.toggleAttribute(this,"disabled",t)}},{key:"overscrollable",get:function(){return this.hasAttribute("overscrollable")},set:function(t){return W.toggleAttribute(this,"overscrollable",t)}},{key:"centered",get:function(){return this.hasAttribute("centered")},set:function(t){return W.toggleAttribute(this,"centered",t)}}],[{key:"observedAttributes",get:function(){return["swipeable","auto-refresh","direction","item-height","item-width"]}},{key:"events",get:function(){return["postchange","refresh","overscroll"]}}]),e}();i.Carousel=Do,customElements.define("ons-carousel",Do);var Io=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.getAttribute("width")&&t._updateWidth(),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){"width"===t&&this._updateWidth()}},{key:"_updateWidth",value:function(){var t=this.getAttribute("width");t?(t=t.trim().match(/^\d+$/)?t+"%":t,l(this,{flex:"0 0 "+t,maxWidth:t})):l.clear(this,"flex maxWidth")}}],[{key:"observedAttributes",get:function(){return["width"]}}]),e}();i.Col=Io,customElements.define("ons-col",Io);var No=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),s}(),Bo=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease-in-out":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.3:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,No),d(s,[{key:"show",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:0},{opacity:1}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -60%, 0)",opacity:0},{transform:"translate3d(-50%, -50%, 0)",opacity:1}).queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:1},{opacity:0}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -50%, 0)",opacity:1},{transform:"translate3d(-50%, -60%, 0)",opacity:0}).queue(function(t){e(),t()}))}}]),s}(),jo=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease-in-out":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.bodyHeight=document.body.clientHeight,s}return a(l,No),d(l,[{key:"show",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:0},{opacity:1}),it(t._dialog,this.def).default({transform:"translate3d(-50%, "+(this.bodyHeight/2-1)+"px, 0)"},{transform:"translate3d(-50%, -50%, 0)"}).queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:1},{opacity:0}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -50%, 0)"},{transform:"translate3d(-50%, "+(this.bodyHeight/2-1)+"px, 0)"}).queue(function(t){e(),t()}))}}]),l}(),Ho=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .4, 1)":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.bodyHeight=document.body.clientHeight,s}return a(l,No),d(l,[{key:"show",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:0}
2,{opacity:1}),it(t._dialog,this.def).default({transform:"translate3d(-50%, "+(-this.bodyHeight/2+1-t._dialog.clientHeight)+"px, 0)"},{transform:"translate3d(-50%, -50%, 0)"}).queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e||function(){},it.runAll(it(t._mask,this.def).default({opacity:1},{opacity:0}),it(t._dialog,this.def).default({transform:"translate3d(-50%, -50%, 0)"},{transform:"translate3d(-50%, "+(-this.bodyHeight/2+1-t._dialog.clientHeight)+"px, 0)"}).queue(function(t){e(),t()}))}}]),l}(),Ro={".dialog":"dialog--*",".dialog-container":"dialog-container--*",".dialog-mask":"dialog-mask--*"},Fo={default:function(){return c.isAndroid()?Bo:jo},slide:Ho,none:No},qo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){return t._compile()}),t}return a(e,ao),d(e,[{key:"_updateAnimatorFactory",value:function(){return new y({animators:Fo,baseClass:No,baseClassName:"DialogAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){if(P.prepare(this),this.style.display="none",this.style.zIndex=10001,!this._dialog){var t=document.createElement("div");t.classList.add("dialog");var e=document.createElement("div");for(e.classList.add("dialog-container");this.firstChild;)e.appendChild(this.firstChild);t.appendChild(e),this.appendChild(t)}if(!this._mask){var n=document.createElement("div");n.classList.add("dialog-mask"),this.insertBefore(n,this.firstChild)}this._dialog.style.zIndex=20001,this._mask.style.zIndex=2e4,this.setAttribute("status-bar-fill",""),O.initModifier(this,this._scheme)}},{key:"_scheme",get:function(){return Ro}},{key:"_mask",get:function(){return W.findChild(this,".dialog-mask")}},{key:"_dialog",get:function(){return W.findChild(this,".dialog")}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof No||W.throwAnimator("Dialog"),Fo[t]=e}},{key:"animators",get:function(){return Fo}},{key:"DialogAnimator",get:function(){return No}}]),e}();i.Dialog=qo,customElements.define("ons-dialog",qo);var zo={"":"fab--*",".fab__icon":"fab--*__icon"},Vo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.hide(),t.classList.add("fab"),xt(t,function(){t._compile()}),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){if(P.prepare(this),!W.findChild(this,".fab__icon")){var e=document.createElement("span");e.classList.add("fab__icon"),W.arrayFrom(this.childNodes).forEach(function(t){t.tagName&&"ons-ripple"===t.tagName.toLowerCase()||e.appendChild(t)}),this.appendChild(e)}this._updateRipple(),O.initModifier(this,zo),this._updatePosition()}},{key:"connectedCallback",value:function(){var t=this;setImmediate(function(){return t.show()})}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,"fab",zo);break;case"modifier":O.onModifierChanged(e,n,this,zo);break;case"ripple":this._updateRipple();break;case"position":this._updatePosition()}}},{key:"_show",value:function(){this.show()}},{key:"_hide",value:function(){var t=this;setImmediate(function(){return t.hide()})}},{key:"_updateRipple",value:function(){W.updateRipple(this)}},{key:"_updatePosition",value:function(){var t=this.getAttribute("position");switch(this.classList.remove("fab--top__left","fab--bottom__right","fab--bottom__left","fab--top__right","fab--top__center","fab--bottom__center"),t){case"top right":case"right top":this.classList.add("fab--top__right");break;case"top left":case"left top":this.classList.add("fab--top__left");break;case"bottom right":case"right bottom":this.classList.add("fab--bottom__right");break;case"bottom left":case"left bottom":this.classList.add("fab--bottom__left");break;case"center top":case"top center":this.classList.add("fab--top__center");break;
2case"center bottom":case"bottom center":this.classList.add("fab--bottom__center")}}},{key:"show",value:function(){this.toggle(!0)}},{key:"hide",value:function(){this.toggle(!1)}},{key:"toggle",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!this.visible,e=0<=(this.getAttribute("position")||"").indexOf("bottom")?"translate3d(0px, -"+(W.globals.fabOffset||0)+"px, 0px)":"";l(this,{transform:e+" scale("+Number(t)+")"})}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}},{key:"visible",get:function(){return-1===this.style.transform.indexOf("scale(0)")&&"none"!==this.style.display}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","position","class"]}}]),e}();i.Fab=Vo,customElements.define("ons-fab",Vo);var Wo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._gestureDetector=new ot(t,{passive:!0}),t}return a(e,Ji),e}();i.GestureDetector=Wo,customElements.define("ons-gesture-detector",Wo);var Uo="fa",Xo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){this._cleanClassAttribute("icon"===t?e:this.getAttribute("icon"),"modifier"===t?e:void 0),this._update()}},{key:"_compile",value:function(){P.prepare(this),this._update()}},{key:"_update",value:function(){var e=this,t=this._buildClassAndStyle(this._parseAttr("icon"),this._parseAttr("size")),n=t.classList,i=t.style;W.extend(this.style,i),n.forEach(function(t){return e.classList.add(t)})}},{key:"_parseAttr",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getAttribute("modifier")||"",n=(this.getAttribute(t)||t||"").split(/\s*,\s*/),i=n[0],o=n[1];return o=(o||"").split(/\s*:\s*/),(e&&RegExp("(^|\\s+)"+o[0]+"($|\\s+)","i").test(e)?o[1]:i)||""}},{key:"_cleanClassAttribute",value:function(t,e){var n=this,i=this._prefixIcon(this._parseAttr(t,e)),o=i.className,r=i.prefix,a=new RegExp("^(fa$|fa-|ion-|zmdi$|zmdi-|ons-icon--"+(o!==r?"|"+r+"$|"+r+"-":"|"+o+"$"||"")+")");W.arrayFrom(this.classList).filter(function(t){return a.test(t)}).forEach(function(t){return n.classList.remove(t)})}},{key:"_prefixIcon",value:function(t){var e=Uo+(Uo?"-":"")+t;return{className:e,prefix:e.split("-")[0]}}},{key:"_buildClassAndStyle",value:function(t,e){var n=["ons-icon"],i={};if(0===t.indexOf("ion-"))n.push(t),n.push("ons-icon--ion");else if(0===t.indexOf("fa-"))n.push(t),n.push("fa");else if(0===t.indexOf("md-"))n.push("zmdi"),n.push("zmdi-"+t.split(/-(.+)?/)[1]);else{var o=this._prefixIcon(t),r=o.className,a=o.prefix;a&&n.push(a),r&&n.push(r)}return e.match(/^[1-5]x|lg$/)?(n.push("ons-icon--"+e),this.style.removeProperty("font-size")):i.fontSize=e,{classList:n,style:i}}}],[{key:"setAutoPrefix",value:function(t){Uo=t?"string"==typeof t&&t||"fa":""}},{key:"observedAttributes",get:function(){return["icon","size","modifier","class"]}}]),e}();i.Icon=Xo,customElements.define("ons-icon",Xo);var Yo=function(){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;h(this,n),"object"===(void 0===t?"undefined":u(t))&&null!==t||W.throw('"delegate" parameter must be an object'),this._userDelegate=t,e instanceof Element||null===e||W.throw('"templateElement" parameter must be an instance of Element or null'),this._templateElement=e}return d(n,[{key:"hasRenderFunction",value:function(){return this._userDelegate._render instanceof Function}},{key:"_render",value:function(){this._userDelegate._render.apply(this._userDelegate,arguments)}},{key:"loadItemElement",value:function(t,e){if(this._userDelegate.loadItemElement instanceof Function)this._userDelegate.loadItemElement(t,e);else{var n=this._userDelegate.createItemContent(t,this._templateElement);n instanceof Element||W.throw('"createItemContent" must return an instance of Element'),e({element:n})}}},{key:"countItems",value:function(){var t=this._userDelegate.countItems();return"number"!=typeof t&&W.throw('"countItems" must return a number'),t}},{key:"updateItem",value:function(t,e){this._userDelegate.updateItemContent instanceof Function&&this._userDelegate.updateItemContent(t,e)}},{key:"calculateItemHeight",value:function(t){if(this._userDelegate.calculateItemHeight instanceof Function){var e=this._userDelegate.calculateItemHeight(t);return"number"!=typeof e&&W.throw('"calculateItemHeight" must return a number'),e}return 0}},{key:"destroyItem",value:function(t,e){this._userDelegate.destroyItem instanceof Function&&this._userDelegate.destroyItem(t,e)}},{key:"destroy",value:function(){this._userDelegate.destroy instanceof Function&&this._userDelegate.destroy(),this._userDelegate=this._templateElement=null}},{key:"itemHeight",get:function(){return this._userDelegate.itemHeight}}]),n}(),Go=function(){function n(t,e){h(this,n),e instanceof Yo||W.throw('"delegate" parameter must be an instance of LazyRepeatDelegate'),this._wrapperElement=t,this._delegate=e,this._insertIndex=this._wrapperElement.children[0]&&"ONS-LAZY-REPEAT"===this._wrapperElement.children[0].tagName?1:0,"ons-list"===t.tagName.toLowerCase()&&t.classList.add("lazy-list"),this._pageContent=this._findPageContentElement(t),this._pageContent||W.throw("LazyRepeat must be descendant of a Page element"),this.lastScrollTop=this._pageContent.scrollTop,this.padding=0,this._topPositions=[0],this._renderedItems={},this._delegate.itemHeight||this._delegate.calculateItemHeight(0)||(this._unknownItemHeight=!0),this._addEventListeners(),this._onChange()}return d(n,[{key:"_findPageContentElement",value:function(t){var e=W.findParent(t,".page__content");
vendor: 6,270 bytes, line 2
2if(e)return e;var n=W.findParent(t,"ons-page");if(n){var i=W.findChild(n,".content");if(i)return i}return null}},{key:"_checkItemHeight",value:function(n){var i=this;this._delegate.loadItemElement(0,function(t){i._unknownItemHeight||W.throw("Invalid state"),i._wrapperElement.appendChild(t.element);var e=function(){i._delegate.destroyItem(0,t),t.element&&t.element.remove(),delete i._unknownItemHeight,n()};i._itemHeight=t.element.offsetHeight,0<i._itemHeight?e():(i._wrapperElement.style.visibility="hidden",t.element.style.visibility="hidden",setImmediate(function(){i._itemHeight=t.element.offsetHeight,0==i._itemHeight&&W.throw('Invalid state: "itemHeight" must be greater than zero'),i._wrapperElement.style.visibility="",e()}))})}},{key:"_countItems",value:function(){return this._delegate.countItems()}},{key:"_getItemHeight",value:function(t){return this._renderedItems.hasOwnProperty(t)?(this._renderedItems[t].hasOwnProperty("height")||(this._renderedItems[t].height=this._renderedItems[t].element.offsetHeight),this._renderedItems[t].height):this._topPositions[t+1]&&this._topPositions[t]?this._topPositions[t+1]-this._topPositions[t]:this.staticItemHeight||this._delegate.calculateItemHeight(t)}},{key:"_calculateRenderedHeight",value:function(){var n=this;return Object.keys(this._renderedItems).reduce(function(t,e){return t+n._getItemHeight(+e)},0)}},{key:"_onChange",value:function(){this._render()}},{key:"_lastItemRendered",value:function(){return Math.max.apply(Math,_(Object.keys(this._renderedItems)))}},{key:"_firstItemRendered",value:function(){return Math.min.apply(Math,_(Object.keys(this._renderedItems)))}},{key:"refresh",value:function(){var t={forceScrollDown:!0},e=Math.min(this._lastItemRendered(),this._countItems()-1),n=this._firstItemRendered();W.isInteger(e)&&(t.forceLastIndex=e),W.isInteger(n)&&(this._wrapperElement.style.height=this._topPositions[n]+this._calculateRenderedHeight()+"px",this.padding=this._topPositions[n],t.forceFirstIndex=n),this._removeAllElements(),this._render(t),this._wrapperElement.style.height="inherit"}},{key:"_render",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.forceScrollDown,i=void 0!==n&&n,o=t.forceFirstIndex,r=t.forceLastIndex;if(this._unknownItemHeight)return this._checkItemHeight(this._render.bind(this,arguments[0]));var a=!i&&this.lastScrollTop>this._pageContent.scrollTop;this.lastScrollTop=this._pageContent.scrollTop;for(var s={},l=this._wrapperElement.getBoundingClientRect().top,u=4*window.innerHeight-l,c=this._countItems(),h=o||Math.max(0,this._calculateStartIndex(l)-30),d=h,f=this._topPositions[d];d<c&&f<u;d++)d>=this._topPositions.length&&(this._topPositions.length+=100),this._topPositions[d]=f,f+=this._getItemHeight(d);if(this._delegate.hasRenderFunction&&this._delegate.hasRenderFunction())return this._delegate._render(h,d,function(){e.padding=e._topPositions[h]});if(a)for(var p=d-1;h<=p;p--)s[p]=!0,this._renderElement(p,a);else for(var g=r||Math.max.apply(Math,[d-1].concat(_(Object.keys(this._renderedItems)))),m=h;m<=g;m++)s[m]=!0,this._renderElement(m,a);Object.keys(this._renderedItems).forEach(function(t){return s[t]||e._removeElement(t,a)})}},{key:"_renderElement",value:function(e,n){var i=this,t=this._renderedItems[e];t?this._delegate.updateItem(e,t):this._delegate.loadItemElement(e,function(t){n?(i._wrapperElement.insertBefore(t.element,i._wrapperElement.children[i._insertIndex]),i.padding=i._topPositions[e],t.height=i._topPositions[e+1]-i._topPositions[e]):i._wrapperElement.appendChild(t.element),i._renderedItems[e]=t})}},{key:"_removeElement",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];t=+t;var n=this._renderedItems[t];this._delegate.destroyItem(t,n),e?this._topPositions[t+1]=void 0:this.padding=this.padding+this._getItemHeight(t),n.element.parentElement&&n.element.parentElement.removeChild(n.element),delete this._renderedItems[t]}},{key:"_removeAllElements",value:function(){var e=this;Object.keys(this._renderedItems).forEach(function(t){return e._removeElement(t)})}},{key:"_recalculateTopPositions",value:function(t,e){for(var n=t;n<=e;n++)this._topPositions[n+1]=this._topPositions[n]+this._getItemHeight(n)}},{key:"_calculateStartIndex",value:function(t){var e=this._firstItemRendered(),n=this._lastItemRendered();this._recalculateTopPositions(e,n);for(var i=0,o=this._countItems()-1;;){var r=Math.floor((i+o)/2),a=t+this._topPositions[r];if(o<i)return 0;if(a<=0&&0<a+this._getItemHeight(r))return r;isNaN(a)||0<=a?o=r-1:i=r+1}}},{key:"_debounce",value:function(i,o,r){var a=void 0;return function(){var t=this,e=arguments,n=r&&!a;clearTimeout(a),n?i.apply(this,arguments):a=setTimeout(function(){a=null,i.apply(t,e)},o)}}},{key:"_doubleFireOnTouchend",value:function(){this._render(),this._debounce(this._render.bind(this),100)}},{key:"_addEventListeners",value:function(){W.bindListeners(this,["_onChange","_doubleFireOnTouchend"]),c.isIOS()&&(this._boundOnChange=this._debounce(this._boundOnChange,30)),this._pageContent.addEventListener("scroll",this._boundOnChange,!0),c.isIOS()&&(W.addEventListener(this._pageContent,"touchmove",this._boundOnChange,{capture:!0,passive:!0}),this._pageContent.addEventListener("touchend",this._boundDoubleFireOnTouchend,!0)),window.document.addEventListener("resize",this._boundOnChange,!0)}},{key:"_removeEventListeners",value:function(){this._pageContent.removeEventListener("scroll",this._boundOnChange,!0),c.isIOS()&&(W.removeEventListener(this._pageContent,"touchmove",this._boundOnChange,{capture:!0,passive:!0}),this._pageContent.removeEventListener("touchend",this._boundDoubleFireOnTouchend,!0)),window.document.removeEventListener("resize",this._boundOnChange,!0)}},{key:"destroy",value:function(){this._removeAllElements(),this._delegate.destroy(),this._parentElement=this._delegate=this._renderedItems=null,this._removeEventListeners()}},{key:"padding",get:function(){return parseInt(this._wrapperElement.style.paddingTop,10)},set:function(t){this._wrapperElement.style.paddingTop=t+"px"}},{key:"staticItemHeight",get:function(){return this._delegate.itemHeight||this._itemHeight}}]),n}(),$o=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}
2return a(e,Ji),d(e,[{key:"connectedCallback",value:function(){this.hasAttribute("delegate")&&(this.delegate=window[this.getAttribute("delegate")])}},{key:"refresh",value:function(){this._lazyRepeatProvider&&this._lazyRepeatProvider.refresh()}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"disconnectedCallback",value:function(){this._lazyRepeatProvider&&(this._lazyRepeatProvider.destroy(),this._lazyRepeatProvider=null)}},{key:"delegate",set:function(t){this._lazyRepeatProvider&&this._lazyRepeatProvider.destroy(),!this._templateElement&&this.children[0]&&(this._templateElement=this.removeChild(this.children[0]));var e=new Yo(t,this._templateElement||null);this._lazyRepeatProvider=new Go(this.parentElement,e)},get:function(){W.throw("No delegate getter")}}]),e}();b.LazyRepeatDelegate=Yo,b.LazyRepeatProvider=Go,i.LazyRepeat=$o,customElements.define("ons-lazy-repeat",$o);var Ko="list-header",Qo={"":"list-header--*"},Jo=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){P.prepare(this),this.classList.add(Ko),O.initModifier(this,Qo)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,Ko,Qo);break;case"modifier":O.onModifierChanged(e,n,this,Qo)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.ListHeader=Jo,customElements.define("ons-list-header",Jo);var Zo="list-title",tr={"":"list-title--*"},er=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){P.prepare(this),this.classList.add(Zo),O.initModifier(this,tr)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,Zo,tr);break;case"modifier":O.onModifierChanged(e,n,this,tr)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.ListTitle=er,customElements.define("ons-list-title",er);var nr=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"showExpansion",value:function(t,e){e()}},{key:"hideExpansion",value:function(t,e){e()}}]),s}(),ir=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,nr),d(e,[{key:"showExpansion",value:function(t,e){this._animateExpansion(t,!0,e)}},{key:"hideExpansion",value:function(t,e){this._animateExpansion(t,!1,e)}},{key:"_animateExpansion",value:function(t,e,n){var i,o=t.expandableContent.style.height,r=t.expandableContent.style.display;t.expandableContent.style.height="auto",t.expandableContent.style.display="block";var a,s=window.getComputedStyle(t.expandableContent),l=[{height:0,paddingTop:0,paddingBottom:0},{height:s.height,paddingTop:s.paddingTop,paddingBottom:s.paddingBottom}],u=[{transform:"rotate(45deg)"},{transform:"rotate(225deg)"}];(t.expandableContent.style.height=o,(i=it(t.expandableContent,{duration:this.duration,property:"height padding-top padding-bottom"})).default.apply(i,_(e?l:l.reverse())).play(function(){t.expandableContent.style.display=r,n&&n()}),t.expandChevron)&&(a=it(t.expandChevron,{duration:this.duration,property:"transform"})).default.apply(a,_(e?u:u.reverse())).play()}}]),e}(),or="list-item",rr={".list-item":"list-item--*",".list-item__left":"list-item--*__left",".list-item__center":"list-item--*__center",".list-item__right":"list-item--*__right",".list-item__label":"list-item--*__label",".list-item__title":"list-item--*__title",".list-item__subtitle":"list-item--*__subtitle",".list-item__thumbnail":"list-item--*__thumbnail",".list-item__icon":"list-item--*__icon"},ar={default:ir,none:nr},sr=function(t){function n(){h(this,n);var t=m(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));t._animatorFactory=t._updateAnimatorFactory(),t.toggleExpansion=t.toggleExpansion.bind(t);var e=/^ons-(?!col$|row$|if$)/i;return t._shouldIgnoreTap=function(t){return t.hasAttribute("prevent-tap")||e.test(t.tagName)},t.show=t.showExpansion,t.hide=t.hideExpansion,xt(t,function(){t._compile()}),t}return a(n,Ji),d(n,[{key:"_compile",value:function(){P.prepare(this),this.classList.add(or),this.hasAttribute("expandable")&&this.classList.add("list-item--expandable");for(var t=void 0,e=void 0,n=void 0,i=void 0,o=void 0,r=W.getAllChildNodes(this),a=0;a<r.length;a++){var s=r[a];s.classList.contains("left")?(s.classList.add("list-item__left"),t=s):s.classList.contains("center")?e=s:s.classList.contains("right")?(s.classList.add("list-item__right"),n=s):s.classList.contains("top")?(s.classList.add("list-item__top"),i=s):s.classList.contains("expandable-content")&&(s.classList.add("list-item__expandable-content"),o=s)}if(!n&&this.hasAttribute("expandable")){(n=document.createElement("div")).classList.add("list-item__right","right");var l=document.createElement("span");l.classList.add("list-item__expand-chevron"),n.appendChild(l)}if(!e){if(e=document.createElement("div"),t||n||o)for(var u=this.childNodes.length-1;0<=u;u--){var c=this.childNodes[u];c!==t&&c!==n&&c!==o&&"ONS-RIPPLE"!==c.tagName&&e.insertBefore(c,e.firstChild)}else for(;this.childNodes[0];)e.appendChild(this.childNodes[0]);o||this.insertBefore(e,n||null)}e.classList.add("center","list-item__center"),o&&(this._top=i||document.createElement("div"),this._top.classList.add("top","list-item__top"),this.appendChild(this._top),this._top.appendChild(e),t&&this._top.appendChild(t),n&&this._top.appendChild(n)),W.updateRipple(this),O.initModifier(this,rr)}},{key:"showExpansion",value:function(){var t=this;this.hasAttribute("expandable")&&!this._expanding&&(this.expanded=!0,this._expanding=!0,this._animatorFactory.newAnimator().showExpansion(this,function(){t.classList.add("expanded"),t._expanding=!1}))}},{key:"hideExpansion",value:function(){var t=this;this.hasAttribute("expandable")&&!this._expanding&&(this.expanded=!1,this._expanding=!0,this._animatorFactory.newAnimator().hideExpansion(this,function(){t.classList.remove("expanded"),t._expanding=!1}))}},{key:"toggleExpansion",value:function(){this.classList.contains("expanded")?this.hideExpansion():this.showExpansion()}},{key:"_updateAnimatorFactory",value:function(){return new y({animators:ar,baseClass:nr,baseClassName:"ListItemAnimator",defaultAnimation:this.getAttribute("animation")||"default"})}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,or,rr);break;case"modifier":O.onModifierChanged(e,n,this,rr);break;case"ripple":W.updateRipple(this);break;case"animation":this._animatorFactory=this._updateAnimatorFactory()}}},{key:"connectedCallback",value:function(){var t=this;
2xt(this,function(){t._setupListeners(!0),t._originalBackgroundColor=t.style.backgroundColor,t.tapped=!1})}},{key:"disconnectedCallback",value:function(){this._setupListeners(!1)}},{key:"_setupListeners",value:function(t){var e=(t?"add":"remove")+"EventListener";W[e](this,"touchstart",this._onTouch,{passive:!0}),W[e](this,"touchmove",this._onRelease,{passive:!0}),this[e]("touchcancel",this._onRelease),this[e]("touchend",this._onRelease),this[e]("touchleave",this._onRelease),this[e]("drag",this._onDrag),this[e]("mousedown",this._onTouch),this[e]("mouseup",this._onRelease),this[e]("mouseout",this._onRelease),this._top&&this._top[e]("click",this.toggleExpansion)}},{key:"_onDrag",value:function(t){var e=t.gesture;this.hasAttribute("lock-on-drag")&&-1<["left","right"].indexOf(e.direction)&&e.preventDefault()}},{key:"_onTouch",value:function(t){var e=this;if(!(this.tapped||this!==t.target&&(this._shouldIgnoreTap(t.target)||W.findParent(t.target,this._shouldIgnoreTap,function(t){return t===e})))){this.tapped=!0;var n={transition:"background-color 0.0s linear 0.02s, box-shadow 0.0s linear 0.02s"};this.hasAttribute("tappable")&&(this.style.backgroundColor&&(this._originalBackgroundColor=this.style.backgroundColor),n.backgroundColor=this.getAttribute("tap-background-color")||"#d9d9d9",n.boxShadow="0px -1px 0px 0px "+n.backgroundColor),l(this,n)}}},{key:"_onRelease",value:function(){this.tapped=!1,this.style.backgroundColor=this._originalBackgroundColor||"",l.clear(this,"transition boxShadow")}},{key:"expandableContent",get:function(){return this.querySelector(".list-item__expandable-content")}},{key:"expandChevron",get:function(){return this.querySelector(".list-item__expand-chevron")}}],[{key:"observedAttributes",get:function(){return["modifier","class","ripple","animation"]}}]),n}();i.ListItem=sr,customElements.define("ons-list-item",sr);var lr={"":"list--*"},ur=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){P.prepare(this),this.classList.add("list"),O.initModifier(this,lr)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,"list",lr);break;case"modifier":O.onModifierChanged(e,n,this,lr)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.List=ur,customElements.define("ons-list",ur);var cr=["autocapitalize","autocomplete","autocorrect","autofocus","disabled","inputmode","max","maxlength","min","minlength","name","pattern","placeholder","readonly","required","size","step","validator","value"],hr=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.constructor===e&&W.throwAbstract(),xt(t,function(){return t._compile()}),t._boundDelegateEvent=t._delegateEvent.bind(t),t}return a(e,Ji),d(e,[{key:"_update",value:function(){}},{key:"_scheme",get:function(){W.throwMember()}},{key:"_template",get:function(){W.throwMember()}},{key:"type",get:function(){W.throwMember()}}]),d(e,[{key:"_compile",value:function(){P.prepare(this),this._defaultClassName&&this.classList.add(this._defaultClassName),0===this.children.length&&(this.appendChild(W.createFragment(this._template)),this._setInputId(),this._updateBoundAttributes(),O.initModifier(this,this._scheme))}},{key:"_updateBoundAttributes",value:function(){var e=this;cr.forEach(function(t){e.hasAttribute(t)?e._input.setAttribute(t,e.getAttribute(t)):e._input.removeAttribute(t)}),this._update()}},{key:"_delegateEvent",value:function(t){var e=new CustomEvent(t.type,{bubbles:!1,cancelable:!0});return this.dispatchEvent(e)}},{key:"_setInputId",value:function(){this.hasAttribute("input-id")&&(this._input.id=this.getAttribute("input-id"))}},{key:"connectedCallback",value:function(){var t=this;xt(this,function(){t._input.addEventListener("focus",t._boundDelegateEvent),t._input.addEventListener("blur",t._boundDelegateEvent)})}},{key:"disconnectedCallback",value:function(){var t=this;xt(this,function(){t._input.removeEventListener("focus",t._boundDelegateEvent),t._input.removeEventListener("blur",t._boundDelegateEvent)})}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"modifier":xt(this,function(){return O.onModifierChanged(e,n,i,i._scheme)});break;case"input-id":xt(this,function(){return i._setInputId()});break;case"class":W.restoreClass(this,this._defaultClassName,this._scheme)}0<=cr.indexOf(t)&&xt(this,function(){return i._updateBoundAttributes()})}},{key:"_defaultClassName",get:function(){return""}},{key:"_input",get:function(){return this.querySelector("input")}},{key:"value",get:function(){return null===this._input?this.getAttribute("value"):this._input.value},set:function(t){var e=this;xt(this,function(){t instanceof Date&&(t=t.toISOString().substring(0,10)),e._input.value=t,e._update()})}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["modifier","input-id","class"].concat(cr)}}]),e}
2(),dr={".text-input":"text-input--*",".text-input__label":"text-input--*__label"},fr=function(t){function o(){h(this,o);var t=m(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t._boundOnInput=t._update.bind(t),t._boundOnFocusin=t._update.bind(t),t}return a(o,hr),d(o,[{key:"_update",value:function(){this._updateLabel(),this._updateLabelClass()}},{key:"_updateLabel",value:function(){var t=this.getAttribute("placeholder")||"";void 0!==this._helper.textContent?this._helper.textContent=t:this._helper.innerText=t}},{key:"_updateLabelClass",value:function(){""===this.value?this._helper.classList.remove("text-input--material__label--active"):this._helper.classList.add("text-input--material__label--active")}},{key:"connectedCallback",value:function(){var t=this;p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"connectedCallback",this).call(this),xt(this,function(){t._input.addEventListener("input",t._boundOnInput),t._input.addEventListener("focusin",t._boundOnFocusin)});var e=this.getAttribute("type");0<=["checkbox","radio"].indexOf(e)&&W.warn('Warn: <ons-input type="'+e+'"> is deprecated since v2.4.0. Use <ons-'+e+"> instead.")}},{key:"disconnectedCallback",value:function(){var t=this;p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"disconnectedCallback",this).call(this),xt(this,function(){t._input.removeEventListener("input",t._boundOnInput),t._input.removeEventListener("focusin",t._boundOnFocusin)})}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"type":xt(this,function(){return i._input.setAttribute("type",i.type)});break;default:p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"attributeChangedCallback",this).call(this,t,e,n)}}},{key:"_scheme",get:function(){return dr}},{key:"_template",get:function(){return'\n <input type="'+this.type+'" class="text-input">
2\n <span class="text-input__label"></span>\n '}},{key:"type",get:function(){var t=this.getAttribute("type");return["checkbox","radio"].indexOf(t)<0&&t||"text"}},{key:"_helper",get:function(){return this.querySelector("span")}}],[{key:"observedAttributes",get:function(){return[].concat(_(p(o.__proto__||Object.getPrototypeOf(o),"observedAttributes",this)),["type"])}}]),o}();i.Input=fr,customElements.define("ons-input",fr);var pr=function(t){function i(){h(this,i);var t=m(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.constructor===i&&util.throwAbstract(),xt(t,function(){t.attributeChangedCallback("checked",null,t.getAttribute("checked"))}),t}return a(i,hr),d(i,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"checked":this.checked=null!==n;break;default:p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,t,e,n)}}},{key:"_template",get:function(){return'\n <input type="'+this.type+'" class="'+this._defaultClassName+'__input">
2\n <span class="'+this._defaultClassName+'__checkmark"></span>\n '}},{key:"_helper",get:function(){return this.querySelector("span")}},{key:"checked",get:function(){return this._input.checked},set:function(t){var e=this;xt(this,function(){e._input.checked=t})}}],[{key:"observedAttributes",get:function(){return[].concat(_(p(i.__proto__||Object.getPrototypeOf(i),"observedAttributes",this)),["checked"])}}]),i}(),gr={".checkbox":"checkbox--*",".checkbox__input":"checkbox--*__input",".checkbox__checkmark":"checkbox--*__checkmark"},mr=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,pr),d(e,[{key:"_scheme",get:function(){return gr}},{key:"_defaultClassName",get:function(){return"checkbox"}},{key:"type",get:function(){return"checkbox"}}]),e}();i.Checkbox=mr,customElements.define("ons-checkbox",mr);var _r={".radio-button":"radio-button--*",".radio-button__input":"radio-button--*__input",".radio-button__checkmark":"radio-button--*__checkmark"},vr=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,pr),d(e,[{key:"_scheme",get:function(){return _r}},{key:"_defaultClassName",get:function(){return"radio-button"}},{key:"type",get:function(){return"radio"}}]),e}();i.Radio=vr,customElements.define("ons-radio",vr);var br={".search-input":"search-input--*"},yr=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,hr),d(e,[{key:"_scheme",get:function(){return br}},{key:"_template",get:function(){return'\n <input type="'+this.type+'" class="search-input">\n '}},{key:"type",get:function(){return"search"}}]),e}();i.SearchInput=yr,customElements.define("ons-search-input",yr);var kr=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),s}(),wr=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.3:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,kr),d(s,[{key:"show",value:function(t,e){e=e||function(){},it(t,this.def).default({opacity:0},{opacity:1}).queue(function(t){e(),t()}).play()}},{key:"hide",value:function(t,e){e=e||function(){},it(t,this.def).default({opacity:1},{opacity:0}).queue(function(t){e(),t()}).play()}}]),s}(),Er=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier( .1, .7, .1, 1)":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.4:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,kr),d(s,[{key:"show",value:function(t,e){e=e||function(){},it(t,this.def).default({transform:"translate3d(0, 100%, 0)"},{transform:"translate3d(0, 0, 0)"}).queue(function(t){e(),t()}).play()}},{key:"hide",value:function(t,e){e=e||function(){},it(t,this.def).default({transform:"translate3d(0, 0, 0)"},{transform:"translate3d(0, 100%, 0)"}).queue(function(t){e(),t()}).play()}}]),s}(),Cr={"":"modal--*",modal__content:"modal--*__content"},Ar={default:kr,fade:wr,lift:Er,none:kr},Sr=function(t){function i(){h(this,i);var t=m(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t._defaultDBB=function(){},xt(t,function(){return t._compile()}),t}return a(i,ao),d(i,[{key:"_updateAnimatorFactory",value:function(){return new y({animators:Ar,baseClass:kr,baseClassName:"ModalAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){if(this.style.display="none",this.style.zIndex=10001,this.classList.add("modal"),!W.findChild(this,".modal__content")){var t=document.createElement("div");for(t.classList.add("modal__content");this.childNodes[0];){var e=this.childNodes[0];this.removeChild(e),t.insertBefore(e,null)}this.appendChild(t)}O.initModifier(this,this._scheme)}},{key:"_toggleStyle",value:function(t){this.style.display=t?"table":"none"}},{key:"connectedCallback",value:function(){p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"connectedCallback",this).call(this)}},{key:"disconnectedCallback",value:function(){p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"disconnectedCallback",this).call(this)}},{key:"attributeChangedCallback",value:function(t,e,n){"class"===t?W.restoreClass(this,"modal",Cr):p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,t,e,n)}},{key:"_scheme",get:function(){return Cr}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof kr||W.throwAnimator("Mod
2al"),Ar[t]=e}},{key:"observedAttributes",get:function(){return[].concat(_(p(i.__proto__||Object.getPrototypeOf(i),"observedAttributes",this)),["class"])}},{key:"animators",get:function(){return Ar}},{key:"ModalAnimator",get:function(){return kr}}]),i}();i.Modal=Sr,customElements.define("ons-modal",Sr);var Pr=function(){function t(e){var n=this;h(this,t),"element ignoreSwipe isInitialState onDragCallback swipeMax swipeMin swipeMid".split(/\s+/).forEach(function(t){return n[t]=e[t]}),this.elementHandler=e.elementHandler||e.element,this.getThreshold=e.getThreshold||function(){return.5},this.getSide=e.getSide||function(){return"left"},this.handleGesture=this.handleGesture.bind(this),this._shouldFixScroll="ios"===W.globals.actualMobileOS}return d(t,[{key:"update",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.element.hasAttribute("swipeable");this.gestureDetector||(this.gestureDetector=new ot(this.elementHandler,{dragMinDistance:1,passive:!this._shouldFixScroll}));var e=t?"on":"off";this.gestureDetector[e]("drag dragstart dragend",this.handleGesture)}},{key:"handleGesture",value:function(t){t.gesture&&("dragstart"===t.type?this.onDragStart(t):this._ignoreDrag||("dragend"===t.type?this.onDragEnd(t):this.onDrag(t)))}},{key:"onDragStart",value:function(t){var e,n,i,o=this;this._ignoreDrag=t.consumed||!W.isValidGesture(t)||this.ignoreSwipe(t,"left"===o.getSide()?t.gesture.center.clientX:window.innerWidth-t.gesture.center.clientX),this._ignoreDrag||(t.consume&&t.consume(),t.consumed=!0,this._width=(e=this.element.style.width||"100%",n=[parseInt(e,10),/px/.test(e)],i=n[0],n[1]?i:Math.round(document.body.offsetWidth*i/100)),this._startDistance=this._distance=this.isInitialState instanceof Function&&!this.isInitialState()?this._width:0,W.iosPreventScroll(this.gestureDetector))}},{key:"onDrag",value:function(t){t.stopPropagation();var e="left"===this.getSide()?t.gesture.deltaX:-t.gesture.deltaX,n=Math.max(0,Math.min(this._width,this._startDistance+e));n!==this._distance&&(this._distance=n,this.swipeMid(this._distance,this._width))}},{key:"onDragEnd",value:function(t){t.stopPropagation();var e=t.gesture.interimDirection;this.getSide()!==e&&this._distance>this._width*this.getThreshold()?this.swipeMax():this.swipeMin()}},{key:"dispose",value:function(){this.gestureDetector&&this.gestureDetector.dispose(),this.gestureDetector=this.element=this.elementHandler=null}}]),t}(),Or=function(t){function e(t){return h(this,e),t=W.extend({timing:"linear",duration:"0.4",delay:"0"},t||{}),m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return a(e,eo),d(e,[{key:"push",value:function(t,e,n){n()}},{key:"pop",value:function(t,e,n){n()}},{key:"block",value:function(t){var e=W.createElement('\n <div style="position: absolute; background-color: transparent; width: 100%; height: 100%; z-index: 100000"></div>\n ');return t.parentNode.appendChild(e),function(){return e.remove()}}}]),e}(),xr=function(t){function u(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.durationRestore,n=void 0===e?.1:e,i=t.durationSwipe,o=void 0===i?.15:i,r=t.timingSwipe,a=void 0===r?"linear":r,s=g(t,["durationRestore","durationSwipe","timingSwipe"]);h(this,u);var l=m(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,f({},s)));return l.constructor===u&&W.throwAbstract(),l.durationRestore=n,l.durationSwipe=o,l.timingSwipe=a,l.optSwipe={timing:a,duration:o},l.optRestore={timing:a,duration:n},l.swipeShadow=W.createElement('<div style="position: absolute; height: 100%; width: 12px; right: 100%; top: 0; bottom: 0; z-index: -1;background: linear-gradient(to right, transparent 0, rgba(0,0,0,.04) 40%, rgba(0,0,0,.12) 80%, rgba(0,0,0,.16) 100%);"></div>'),l.isDragStart=!0,l}return a(u,Or),d(u,null,[{key:"swipeable",get:function(){return!0}}]),d(u,[{key:"_decompose",value:function(){W.throwMember()}},{key:"_shouldAnimateToolbar",value:function(){W.throwMember()}},{key:"_calculateDelta",value:function(){W.throwMember()}},{key:"_dragStartSetup",value:function(t,e){this.isDragStart=!1,this.unblock=p(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"block",this).call(this,e),t.parentElement.insertBefore(this.backgroundMask,t),this.target={enter:W.findToolbarPage(t)||t,leave:W.findToolbarPage(e)||e},this.decomp={enter:this._decompose(this.target.enter),leave:this._decompose(this.target.leave)},this.delta=this._calculateDelta(e,this.decomp.leave),this.shouldAnimateToolbar=this._shouldAnimateToolbar(this.target.enter,this.target.leave),this.shouldAnimateToolbar?(this.swipeShadow.style.top=this.decomp.leave.toolbar.offsetHeight+"px",this.target.leave.appendChild(this.swipeShadow),this._saveStyle(this.target.enter,this.target.leave)):(e.appendChild(this.swipeShadow),this._saveStyle(t,e)),e.classList.add("overflow-visible"),this.overflowElement=e,this.decomp.leave.content.classList.add("content-swiping")}},{key:"translate",value:function(t,e,n,i){this.isSwiping=!0,"none"===n.style.display&&(n.style.display=""),this.isDragStart&&(this.maxWidth=e,this._dragStartSetup(n,i));var o=(t-e)/e;this.shouldAnimateToolbar?it.runAll(it([this.decomp.enter.content,this.decomp.enter.bottomToolbar,this.decomp.enter.background]).queue({transform:"translate3d("+25*o+"%, 0, 0)",opacity:1+10*o/100}),it(this.decomp.enter.toolbarCenter).queue({transform:"translate3d("+this.delta.title*o+"px, 0, 0)",opacity:1+o}),it(this.decomp.enter.backButtonLabel).queue({opacity:1+10*o/100,transform:"translate3d("+this.delta.label*o+"px, 0, 0)"}),it(this.decomp.enter.other).queue({opacity:1+o}),it([this.decomp.leave.content,this.decomp.leave.bottomToolbar,this.decomp.leave.background,this.swipeShadow]).queue({transform:"translate3d("+t+"px, 0, 0)"}),it(this.decomp.leave.toolbar).queue({opacity:-1*o}
2),it(this.decomp.leave.toolbarCenter).queue({transform:"translate3d("+125*(1+o)+"%, 0, 0)"}),it(this.decomp.leave.backButtonLabel).queue({opacity:-1*o,transform:"translate3d("+this.delta.title*(1+o)+"px, 0, 0)"}),it(this.swipeShadow).queue({opacity:-1*o})):it.runAll(it(i).queue({transform:"translate3d("+t+"px, 0, 0)"}),it(n).queue({transform:"translate3d("+25*o+"%, 0, 0)",opacity:1+10*o/100}),it(this.swipeShadow).queue({opacity:-1*o}))}},{key:"restore",value:function(e,n,i){var o=this;this.isDragStart||(this.shouldAnimateToolbar?it.runAll(it([this.decomp.enter.content,this.decomp.enter.bottomToolbar,this.decomp.enter.background]).queue({transform:"translate3d(-25%, 0, 0)",opacity:.9},this.optRestore),it(this.decomp.enter.toolbarCenter).queue({transform:"translate3d(-"+this.delta.title+"px, 0, 0)",transition:"opacity "+this.durationRestore+"s linear, transform "+this.durationRestore+"s "+this.timingSwipe,opacity:0}),it(this.decomp.enter.backButtonLabel).queue({transform:"translate3d(-"+this.delta.label+"px, 0, 0)"},this.optRestore),it(this.decomp.enter.other).queue({opacity:0}
vendor: 1,729 bytes, line 2
2,this.optRestore),it([this.decomp.leave.content,this.decomp.leave.bottomToolbar,this.decomp.leave.background,this.swipeShadow]).queue({transform:"translate3d(0, 0, 0)"},this.optRestore),it(this.decomp.leave.toolbar).queue({opacity:1},this.optRestore),it(this.decomp.leave.toolbarCenter).queue({transform:"translate3d(0, 0, 0)"},this.optRestore),it(this.decomp.leave.backButtonLabel).queue({opacity:1,transform:"translate3d(0, 0, 0)",transition:"opacity "+this.durationRestore+"s linear, transform "+this.durationRestore+"s "+this.timingSwipe}),it(this.swipeShadow).queue({opacity:0},this.optRestore).queue(function(t){o._reset(o.target.enter,o.target.leave),e.style.display="none",i&&i(),t()})):it.runAll(it(e).queue({transform:"translate3D(-25%, 0, 0)",opacity:.9},this.optRestore),it(n).queue({transform:"translate3D(0, 0, 0)"},this.optRestore).queue(function(t){o._reset(e,n),e.style.display="none",i&&i(),t()})))}},{key:"popSwipe",value:function(e,n,i){var o=this;this.isDragStart||(this.shouldAnimateToolbar?it.runAll(it([this.decomp.enter.content,this.decomp.enter.bottomToolbar,this.decomp.enter.background]).queue({transform:"translate3d(0, 0, 0)",opacity:1},this.optSwipe),it(this.decomp.enter.toolbarCenter).queue({transform:"translate3d(0, 0, 0)",transition:"opacity "+this.durationSwipe+"s linear, transform "+this.durationSwipe+"s "+this.timingSwipe,opacity:1}),it(this.decomp.enter.backButtonLabel).queue({transform:"translate3d(0, 0, 0)"},this.optSwipe),it(this.decomp.enter.other).queue({opacity:1},this.optSwipe),it([this.decomp.leave.content,this.decomp.leave.bottomToolbar,this.decomp.leave.background]).queue({transform:"translate3d(100%, 0, 0)"},this.optSwipe),it(this.decomp.leave.toolbar).queue({opacity:0}
2,this.optSwipe),it(this.decomp.leave.toolbarCenter).queue({transform:"translate3d(125%, 0, 0)"},this.optSwipe),it(this.decomp.leave.backButtonLabel).queue({opacity:0,transform:"translate3d("+this.delta.title+"px, 0, 0)",transition:"opacity "+this.durationSwipe+"s linear, transform "+this.durationSwipe+"s "+this.timingSwipe}),it(this.swipeShadow).queue({opacity:0,transform:"translate3d("+this.maxWidth+"px, 0, 0)"},this.optSwipe).queue(function(t){o._reset(o.target.enter,o.target.leave),i&&i(),t()})):it.runAll(it(e).queue({transform:"translate3D(0, 0, 0)",opacity:1},this.optSwipe),it(n).queue({transform:"translate3D(100%, 0, 0)"},this.optSwipe).queue(function(t){o._reset(e,n),i&&i(),t()})))}},{key:"_saveStyle",value:function(){var n=this;this._savedStyle=new WeakMap;for(var i=function(t){return n._savedStyle.set(t,t.getAttribute("style"))},t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];e.forEach(i),Object.keys(this.decomp).forEach(function(e){Object.keys(n.decomp[e]).forEach(function(t){(n.decomp[e][t]instanceof Array?n.decomp[e][t]:[n.decomp[e][t]]).forEach(i)})})}},{key:"_restoreStyle",value:function(){for(var n=this,i=function(t){null===n._savedStyle.get(t)?t.removeAttribute("style"):t.setAttribute("style",n._savedStyle.get(t)),n._savedStyle.delete(t)},t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];e.forEach(i),Object.keys(this.decomp).forEach(function(e){Object.keys(n.decomp[e]).forEach(function(t){(n.decomp[e][t]instanceof Array?n.decomp[e][t]:[n.decomp[e][t]]).forEach(i)})})}},{key:"_reset",value:function(){this.isSwiping=!1,this._savedStyle&&this._restoreStyle.apply(this,arguments),this.unblock&&this.unblock(),this.swipeShadow.remove(),this.backgroundMask.remove(),this.overflowElement.classList.remove("overflow-visible"),this.decomp.leave.content.classList.remove("content-swiping"),this.decomp=this.target=this.overflowElement=this._savedStyle=null,this.isDragStart=!0}}]),u}(),Tr=function(){return"translate3d("+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)+", "+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:0)+", "+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:0)+")"},Lr=function(t){function c(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(0.3, .4, 0, .9)":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.4:r,s=g(t,["timing","delay","duration"]);h(this,c);var l=m(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,f({timing:n,delay:o,duration:a},s)));return l.backgroundMask=W.createElement('<div style="position: absolute; width: 100%; height: 100%;background-color: black; z-index: 2"></div>'),l}return a(c,xr),d(c,[{key:"_decompose",value:function(t){var e=t._getToolbarElement(),n=e._getToolbarLeftItemsElement(),i=e._getToolbarRightItemsElement(),o=function(t){for(var e=[],n=0;n<t.length;n++)"ons-back-button"!==t[n].nodeName.toLowerCase()&&e.push(t[n]);return e},r=[].concat(0===n.children.length?n:o(n.children)).concat(0===i.children.length?i:o(i.children));return{toolbarCenter:e._getToolbarCenterItemsElement(),backButtonIcon:e._getToolbarBackButtonIconElement(),backButtonLabel:e._getToolbarBackButtonLabelElement(),other:r,content:t._getContentElement(),background:t._getBackgroundElement(),toolbar:e,bottomToolbar:t._getBottomToolbarElement()}}},{key:"_shouldAnimateToolbar",value:function(t,e){var n=t._canAnimateToolbar()&&e._canAnimateToolbar(),i=t._getToolbarElement(),o=e._getToolbarElement(),r=i.hasAttribute("static")||o.hasAttribute("static"),a=W.hasModifier(i,"material")||W.hasModifier(o,"material"),s=W.hasModifier(i,"transparent")||W.hasModifier(o,"transparent");return n&&!r&&!a&&!s}},{key:"_calculateDelta",value:function(t,e){var n=void 0,i=void 0,o=t.getBoundingClientRect();if(e.backButtonLabel.classList.contains("back-button__label")){var r=e.backButtonLabel.getBoundingClientRect();n=Math.round(o.width/2-r.width/2-r.left)}else n=Math.round(o.width/2*.6);return e.backButtonIcon.classList.contains("back-button__icon")&&(i=e.backButtonIcon.getBoundingClientRect().right-2),{title:n,label:i}}},{key:"push",value:function(r,a,s){var l=this;this.backgroundMask.remove(),a.parentNode.insertBefore(this.backgroundMask,a);var u=p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"block",this).call(this,r);xt(r,function(){var t=W.findToolbarPage(r)||r,e=W.findToolbarPage(a)||a,n=l._decompose(t),i=l._decompose(e),o=l._calculateDelta(a,n);l._shouldAnimateToolbar(t,e)?it.runAll(it([n.content,n.bottomToolbar,n.background],l.def).default({transform:Tr("100%")},{transform:Tr()}
2),it(n.toolbar,l.def).default({opacity:0},{opacity:1}),it(n.toolbarCenter,l.def).default({transform:Tr("125%"),opacity:1},{transform:Tr(),opacity:1}),it(n.backButtonLabel,l.def).default({transform:Tr(o.title+"px"),opacity:0},{transform:Tr(),opacity:1,transition:"opacity "+l.duration+"s linear, transform "+l.duration+"s "+l.timing}),it(n.other,l.def).default({opacity:0},{css:{opacity:1},timing:"linear"}),it([i.content,i.bottomToolbar,i.background],l.def).default({transform:Tr(),opacity:1},{transform:Tr("-25%"),opacity:.9}).queue(function(t){l.backgroundMask.remove(),u(),s(),t()}),it(i.toolbarCenter,l.def).default({transform:Tr(),opacity:1},{transform:Tr("-"+o.title+"px"),opacity:0,transition:"opacity "+l.duration+"s linear, transform "+l.duration+"s "+l.timing}),it(i.backButtonLabel,l.def).default({transform:Tr(),opacity:1},{transform:Tr("-"+o.label+"px"),opacity:0}),it(i.other,l.def).default({opacity:1},{css:{opacity:0},timing:"linear"})):it.runAll(it(r,l.def).default({transform:Tr("100%")},{transform:Tr()}),it(a,l.def).default({transform:Tr(),opacity:1},{transform:Tr("-25%"),opacity:.9}).queue(function(t){l.backgroundMask.remove(),u(),s(),t()}))})}},{key:"pop",value:function(t,e,n){var i=this;if(this.isSwiping)return this.popSwipe(t,e,n);this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t);var o=p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"block",this).call(this,t),r=W.findToolbarPage(t)||t,a=W.findToolbarPage(e)||e,s=this._decompose(r),l=this._decompose(a),u=this._calculateDelta(e,l);this._shouldAnimateToolbar(r,a)?it.runAll(it([s.content,s.bottomToolbar,s.background],this.def).default({transform:Tr("-25%"),opacity:.9},{transform:Tr(),opacity:1}),it(s.toolbarCenter,this.def).default({transform:Tr("-"+u.title+"px"),opacity:0},{transform:Tr(),opacity:1,transition:"opacity "+this.duration+"s linear, transform "+this.duration+"s "+this.timing}),it(s.backButtonLabel,this.def).default({transform:Tr("-"+u.label+"px")},{transform:Tr()}),it(s.other,this.def).default({opacity:0},{css:{opacity:1},timing:"linear"}),it([l.content,l.bottomToolbar,l.background],this.def).default({transform:Tr()},{transform:Tr("100%")}).wait(0).queue(function(t){i.backgroundMask.remove(),o(),n(),t()}),it(l.toolbar,this.def).default({opacity:1},{opacity:0}),it(l.toolbarCenter,this.def).default({transform:Tr()},{transform:Tr("125%")}),it(l.backButtonLabel,this.def).default({transform:Tr(),opacity:1},{transform:Tr(u.title+"px"),opacity:0,transition:"opacity "+this.duration+"s linear, transform "+this.duration+"s "+this.timing})):it.runAll(it(t,this.def).default({transform:Tr("-25%"),opacity:.9},{transform:Tr(),opacity:1}),it(e,this.def).default({transform:Tr()},{transform:Tr("100%")}).queue(function(t){i.backgroundMask.remove(),o(),n(),t()}))}}]),c}(),Mr=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .1, 1)":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.4:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.backgroundMask=W.createElement('<div style="position: absolute; width: 100%; height: 100%;background: linear-gradient(black, white);"></div>'),s}return a(l,Or),d(l,[{key:"push",value:function(t,e,n){var i=this;this.backgroundMask.remove(),e.parentNode.insertBefore(this.backgroundMask,e);var o=p(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"block",this).call(this,t);it.runAll(it(t,this.def).default({transform:"translate3D(0, 100%, 0)"},{transform:"translate3D(0, 0, 0)"}),it(e,this.def).default({transform:"translate3D(0, 0, 0)",opacity:1},{transform:"translate3D(0, -10%, 0)",opacity:.9}).queue(function(t){i.backgroundMask.remove(),o(),n(),t()}))}},{key:"pop",value:function(t,e,n){var i=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t);var o=p(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"block",this).call(this,t);it.runAll(it(t,this.def).default({transform:"translate3D(0, -43px, 0)",opacity:.9},{transform:"translate3D(0, 0, 0)",opacity:1}).queue(function(t){i.backgroundMask.remove(),o(),n(),t()}
2),it(e,this.def).default({transform:"translate3D(0, 0, 0)"},{transform:"translate3D(0, 100%, 0)"}))}}]),l}(),Dr="translate3d(0, 0, 0)",Ir=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.4:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,Or),d(s,[{key:"push",value:function(t,e,n){var i=p(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"block",this).call(this,t);it.runAll(it(t,this.def).default({transform:Dr,opacity:0},{transform:Dr,opacity:1}).queue(function(t){i(),n(),t()}))}},{key:"pop",value:function(t,e,n){var i=p(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"block",this).call(this,t);it.runAll(it(e,this.def).default({transform:Dr,opacity:1},{transform:Dr,opacity:0}).queue(function(t){i(),n(),t()}))}}]),s}(),Nr=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .4, 1)":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.3:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.blackMaskOpacity=.4,s.backgroundMask=W.createElement('<div style="position: absolute; width: 100%; height: 100%; z-index: 2;background-color: black; opacity: 0;"></div>'),s}return a(l,Or),d(l,[{key:"push",value:function(t,e,n){var i=this;this.backgroundMask.remove(),e.parentElement.insertBefore(this.backgroundMask,e.nextSibling);var o=p(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"block",this).call(this,t);it.runAll(it(this.backgroundMask,this.def).default({transform:"translate3d(0, 0, 0)",opacity:0},{opacity:this.blackMaskOpacity}).queue(function(t){i.backgroundMask.remove(),t()}),it(t,this.def).default({transform:"translate3d(100%, 0, 0)"},{transform:"translate3d(0, 0, 0)"}),it(e,this.def).default({transform:"translate3d(0, 0, 0)"},{transform:"translate3d(-45%, 0, 0)"}).queue(function(t){o(),n(),t()}))}},{key:"pop",value:function(t,e,n){var i=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t.nextSibling);var o=p(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"block",this).call(this,t);it.runAll(it(this.backgroundMask,this.def).default({transform:"translate3d(0, 0, 0)",opacity:this.blackMaskOpacity},{opacity:0}).queue(function(t){i.backgroundMask.remove(),t()}),it(t,this.def).default({transform:"translate3d(-45%, 0, 0)",opacity:.9},{transform:"translate3d(0, 0, 0)",opacity:1}),it(e,this.def).default({transform:"translate3d(0, 0, 0)"},{transform:"translate3d(100%, 0, 0)"}).queue(function(t){o(),n(),t()}))}}]),l}(),Br=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .1, 1)":e,i=t.delay,o=void 0===i?.05:i,r=t.duration,a=void 0===r?.4:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.backgroundMask=W.createElement('<div style="position: absolute; width: 100%; height: 100%;background-color: black;"></div>'),s}return a(l,Or),d(l,[{key:"push",value:function(t,e,n){var i=this;this.backgroundMask.remove(),e.parentNode.insertBefore(this.backgroundMask,e);var o=p(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"block",this).call(this,t),r=it(this.backgroundMask).wait(this.delay+this.duration).queue(function(t){i.backgroundMask.remove(),t()});it.runAll(r,it(t,this.def).default({transform:"translate3d(0, 100%, 0)"},{transform:"translate3d(0, 0, 0)"}),it(e,this.def).default({opacity:1},{opacity:.4}).queue(function(t){o(),n(),t()}))}},{key:"pop",value:function(t,e,n){var i=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t);var o=p(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"block",this).call(this,t);it.runAll(it(this.backgroundMask).wait(this.delay+this.duration).queue(function(t){i.backgroundMask.remove(),t()}),it(t,this.def).default({opacity:.4},{opacity:1}).queue(function(t){o(),n(),t()}
2),it(e,this.def).default({transform:"translate3d(0, 0, 0)"},{transform:"translate3d(0, 100%, 0)"}))}}]),l}(),jr=function(t){function c(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(0.4, 0, 0.2, 1)":e,i=t.timingPop,o=void 0===i?"cubic-bezier(0.4, 0, 1, 1)":i,r=t.delay,a=void 0===r?0:r,s=t.duration,l=void 0===s?.2:s;h(this,c);var u=m(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,{timing:n,delay:a,duration:l}));return u.timingPop=o,u}return a(c,Or),d(c,[{key:"push",value:function(t,e,n){var i=p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"block",this).call(this,t);it.runAll(it(t,this.def).default({transform:"translate3D(0, 42px, 0)",opacity:0},{transform:"translate3D(0, 0, 0)",opacity:1}).queue(function(t){i(),n(),t()}))}},{key:"pop",value:function(t,e,n){var i=p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"block",this).call(this,t);it.runAll(it(e,this.def).default({transform:"translate3D(0, 0, 0)",opacity:1},{css:{transform:"translate3D(0, 38px, 0)",opacity:0},timing:this.timingPop}).queue(function(t){i(),n(),t()}))}}]),c}(),Hr=function(t){function e(t){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return a(e,Or),d(e,[{key:"push",value:function(t,e,n){n()}},{key:"pop",value:function(t,e,n){n()}}]),e}(),Rr={default:function(){return c.isAndroid()?jr:Lr},slide:function(){return c.isAndroid()?Nr:Lr},lift:function(){return c.isAndroid()?Br:Mr},fade:function(){return c.isAndroid()?jr:Ir},"slide-ios":Lr,"slide-md":Nr,"lift-ios":Mr,"lift-md":Br,"fade-ios":Ir,"fade-md":jr,none:Hr},Fr={ready:function(t,e){e()}},qr=function(t){return"ONS-PAGE"!==t.nodeName&&W.throw("Only page elements can be children of navigator")},zr=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._isRunning=!1,t._initialized=!1,t._pageLoader=$t,t._pageMap=new WeakMap,t._updateAnimatorFactory(),t}return a(e,Ji),d(e,[{key:"animatorFactory",get:function(){return this._animatorFactory}}]),d(e,[{key:"_getPageTarget",value:function(){return this._page||this.getAttribute("page")}},{key:"connectedCallback",value:function(){var a=this;if(this.onDeviceBackButton=this._onDeviceBackButton.bind(this),!c.isAndroid()||"force"===this.getAttribute("swipeable")){var s=void 0;this._swipe=new Pr({element:this,getThreshold:function(){return Math.max(.2,parseFloat(a.getAttribute("swipe-threshold"))||0)},swipeMax:function(){a._onSwipe&&a._onSwipe(1,{duration:s.durationSwipe,timing:s.timingSwipe}),a[a.swipeMax?"swipeMax":"popPage"]({animator:s}),s=null},swipeMid:function(t,e){a._onSwipe&&a._onSwipe(t/e),s.translate(t,e,a.topPage.previousElementSibling,a.topPage)},swipeMin:function(){a._onSwipe&&a._onSwipe(0,{duration:s.durationRestore,timing:s.timingSwipe}),s.restore(a.topPage.previousElementSibling,a.topPage),s=null},ignoreSwipe:function(t,e){if(!a._isRunning&&1<a.children.length){var n=parseInt(a.getAttribute("swipe-target-width")||25,10);if("right"===t.gesture.direction&&e<n){var i=function(t){return/ons-back-button/i.test(t.tagName)};if(!i(t.target)&&!W.findParent(t.target,i,function(t){return/ons-page/i.test(t.tagName)})){var o=(a.topPage.pushedOptions||{}).animation||a.animatorFactory._animation,r=Rr[o]instanceof Function?Rr[o].call():Rr[o];if(void 0!==r&&r.swipeable)return s=new r,!1}}}return!0}}),this.attributeChangedCallback("swipeable")}if(!this._initialized){this._initialized=!0;var i=W.defer();this.loaded=i.promise,Fr.ready(this,function(){var t=!W.hasAnyComponentAsParent(a),e={animation:"none",show:t};if(0===a.pages.length&&a._getPageTarget())a.pushPage(a._getPageTarget(),e).then(function(){return i.resolve()});else if(0<a.pages.length){for(var n=0;n<a.pages.length;n++)qr(a.pages[n]);a.topPage&&xt(a.topPage,function(){return setTimeout(function(){i.resolve(),t&&a.topPage._show(),a._updateLastPageBackButton()},0)})}else xt(a,function(){0===a.pages.length&&a._getPageTarget()?a.pushPage(a._getPageTarget(),e).then(function(){return i.resolve()}):i.resolve()})})}}},{key:"_updateAnimatorFactory",value:function(){this._animatorFactory=new y({animators:Rr,baseClass:Or,baseClassName:"NavigatorAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"disconnectedCallback",value:function(){this._backButtonHandler.destroy(),this._backButtonHandler=null,this._swipe&&this._swipe.dispose(),this._swipe=null}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"animation":this._updateAnimatorFactory();break;
vendor: 4,399 bytes, line 2
2case"swipeable":this._swipe&&this._swipe.update()}}},{key:"popPage",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};t=this._preparePageAndOptions(null,t).options,W.isInteger(t.times)&&1<t.times&&this._removePages(t.times);return this._popPage(t,function(){return new Promise(function(t){e._pageLoader.unload(e.pages[e.pages.length-1]),t()})})}},{key:"_popPage",value:function(i){var o=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){return Promise.resolve()};if(this._isRunning)return Promise.reject("popPage is already running.");if(this.pages.length<=1)return Promise.reject("ons-navigator's page stack is empty.");if(this._emitPrePopEvent())return Promise.reject("Canceled in prepop event.");var a=this.pages.length;return this._isRunning=!0,this.pages[a-2].updateBackButton(0<a-2),new Promise(function(t){var e=o.pages[a-1],n=o.pages[a-2];(i=W.extend({},o.options||{},e.pushedOptions||{},i)).data&&(n.data=W.extend({},n.data||{},i.data||{}));e._hide(),n.style.display="",(i.animator||o._animatorFactory.newAnimator(i)).pop(o.pages[a-2],o.pages[a-1],function(){r().then(function(){o._isRunning=!1,n._show(),W.triggerElementEvent(o,"postpop",{leavePage:e,enterPage:n,navigator:o}),i.callback&&i.callback(n),t(n)})})}).catch(function(){return o._isRunning=!1})}},{key:"pushPage",value:function(n){var i=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=this._preparePageAndOptions(n,o);n=t.page,o=t.options;var r=function(t){qr(t),i._pageMap.set(t,n),(t=W.extend(t,{data:o.data})).style.visibility="hidden"};return o.pageHTML?this._pushPage(o,function(){return new Promise(function(e){Kt.load({page:o.pageHTML,parent:i,params:o.data},function(t){r(t),e()})})}):this._pushPage(o,function(){return new Promise(function(e){i._pageLoader.load({page:n,parent:i,params:o.data},function(t){r(t),e()})})})}},{key:"_pushPage",value:function(){var o=this,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){return Promise.resolve()};if(this._isRunning)return Promise.reject("pushPage is already running.");if(this._emitPrePushEvent())return Promise.reject("Canceled in prepush event.");this._isRunning=!0;var e=y.parseAnimationOptionsString(this.getAttribute("animation-options"));r=W.extend({},this.options||{},{animationOptions:e},r);var a=this._animatorFactory.newAnimator(r);return t().then(function(){var t=o.pages.length,n=o.pages[t-1],i=r.leavePage||o.pages[t-2];return qr(n),n.updateBackButton(t>(r._replacePage?2:1)),n.pushedOptions=W.extend({},n.pushedOptions||{},r||{}),n.data=W.extend({},n.data||{},r.data||{}),n.unload=n.unload||r.unload,new Promise(function(t){var e=function(){(o._isRunning=!1)!==r.show&&setImmediate(function(){return n._show()}),W.triggerElementEvent(o,"postpush",{leavePage:i,enterPage:n,navigator:o}),i&&(i.style.display="none"),r.callback&&r.callback(n),t(n)};n.style.visibility="",i?(i._hide(),a.push(n,i,e)):e()})}).catch(function(t){throw o._isRunning=!1,t})}},{key:"replacePage",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.pushPage(t,n).then(function(t){return 1<e.pages.length&&e._pageLoader.unload(e.pages[e.pages.length-2]),e._updateLastPageBackButton(),Promise.resolve(t)})}},{key:"insertPage",value:function(n,i){var o=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=this._preparePageAndOptions(i,r);if(i=t.page,r=t.options,(n=this._normalizeIndex(n))>=this.pages.length)return this.pushPage(i,r);i="string"==typeof r.pageHTML?r.pageHTML:i;var a="string"==typeof r.pageHTML?Kt:this._pageLoader;return new Promise(function(e){a.load({page:i,parent:o},function(t){qr(t),o._pageMap.set(t,i),t=W.extend(t,{data:r.data,pushedOptions:r}),r.animationOptions=W.extend({},y.parseAnimationOptionsString(o.getAttribute("animation-options")),r.animationOptions||{}),t.style.display="none",o.insertBefore(t,o.pages[n]),o.topPage.updateBackButton(!0),setTimeout(function(){t=null,e(o.pages[n])},1e3/60)})})}},{key:"removePage",value:function(i){var o=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(i=this._normalizeIndex(i))<this.pages.length-1?new Promise(function(t){var e=o.pages[i],n=o.topPage;o._pageMap.delete(e),o._pageLoader.unload(e),1===o.pages.length&&o.topPage.updateBackButton(!1),t(n)}):this.popPage(t)}
2},{key:"resetToPage",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this._preparePageAndOptions(t,n);if(t=i.page,(n=i.options).animator||n.animation||n.pop||(n.animation="none"),n.page||n.pageHTML||!this._getPageTarget()||(t=n.page=this._getPageTarget()),n.pop)return this._removePages(),this.insertPage(0,t,{data:n.data}).then(function(){return e.popPage(n)});var o=n.callback;return n.callback=function(t){e._removePages(),t.updateBackButton(!1),o&&o(t)},this.pushPage(t,n)}},{key:"bringPageTop",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};-1===["number","string"].indexOf(void 0===t?"undefined":u(t))&&W.throw("First argument must be a page name or the index of an existing page. You supplied "+t);var n="number"==typeof t?this._normalizeIndex(t):this._lastIndexOfPage(t),i=this.pages[n];return n<0?this.pushPage(t,e):(e=this._preparePageAndOptions(i,e).options,n===this.pages.length-1?Promise.resolve(i):(i||W.throw("Failed to find item "+t),this._isRunning?Promise.reject("pushPage is already running."):this._emitPrePushEvent()?Promise.reject("Canceled in prepush event."):(i.style.display="",i.style.visibility="hidden",i.parentNode.appendChild(i),this._pushPage(e))))}},{key:"_preparePageAndOptions",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"object"!=(void 0===e?"undefined":u(e))&&W.throw("options must be an object. You supplied "+e),null==t&&e.page&&(t=e.page),{page:t,options:e=W.extend({},this.options||{},e,{page:t})}}},{key:"_removePages",value:function(t){var e=this.pages,n=void 0===t?0:e.length-t;n=n<0?1:n;for(var i=e.length-2;n<=i;i--)this._pageMap.delete(e[i]),this._pageLoader.unload(e[i])}},{key:"_updateLastPageBackButton",value:function(){var t=this.pages.length-1;0<=t&&this.pages[t].updateBackButton(0<t)}},{key:"_normalizeIndex",value:function(t){return 0<=t?t:Math.abs(this.pages.length+t)%this.pages.length}},{key:"_onDeviceBackButton",value:function(t){1<this.pages.length?this.popPage():t.callParentHandler()}},{key:"_lastIndexOfPage",value:function(t){var e=void 0;for(e=this.pages.length-1;0<=e&&(this._pageMap.has(this.pages[e])||W.throw("Incorrect state of pageMap"),t!==this._pageMap.get(this.pages[e]));e--);return e}},{key:"_emitPreEvent",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=!1;return W.triggerElementEvent(this,"pre"+t,W.extend({navigator:this,currentPage:this.pages[this.pages.length-1],cancel:function(){return n=!0}},e)),n}},{key:"_emitPrePushEvent",value:function(){return this._emitPreEvent("push")}},{key:"_emitPrePopEvent",value:function(){var t=this.pages.length;return this._emitPreEvent("pop",{leavePage:this.pages[t-1],enterPage:this.pages[t-2]})}},{key:"_createPageElement",value:function(t){var e=W.createElement(b.normalizePageHTML(t));return qr(e),e}},{key:"_show",value:function(){var t=this;this.loaded.then(function(){return t.topPage&&t.topPage._show()})}},{key:"_hide",value:function(){this.topPage&&this.topPage._hide()}},{key:"_destroy",value:function(){for(var t=this.pages.length-1;0<=t;t--)this._pageLoader.unload(this.pages[t]);this.remove()}},{key:"pageLoader",get:function(){return this._pageLoader},set:function(t){t instanceof Gt||W.throwPageLoader(),this._pageLoader=t}},{key:"page",get:function(){return this._page},set:function(t){this._page=t}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=M.createHandler(this,t)}},{key:"topPage",get:function(){for(var t=this.lastElementChild;t&&"ONS-PAGE"!==t.tagName;)t=t.previousElementSibling;return t}},{key:"pages",get:function(){return W.arrayFrom(this.children).filter(function(t){return"ONS-PAGE"===t.tagName})}},{key:"onSwipe",get:function(){return this._onSwipe},set:function(t){!t||t instanceof Function||W.throw('"onSwipe" must be a function'),this._onSwipe=t}},{key:"options",get:function(){return this._options},set:function(t){this._options=t}},{key:"_isRunning",set:function(t){this.setAttribute("_is-running",t?"true":"false")},get:function(){return JSON.parse(this.getAttribute("_is-running"))}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof Or||W.throwAnimator("Navigator"),Rr[t]=e}},{key:"observedAttributes",get:function(){return["animation","swipeable"]}},{key:"animators",get:function(){return Rr}},{key:"NavigatorAnimator",get:function(){return Or}},{key:"events",get:function(){return["prepush","postpush","prepop","postpop"]}},{key:"rewritables",get:function(){return Fr}}]),e}();i.Navigator=zr,customElements.define("ons-navigator",zr);var Vr="toolbar",Wr={"":"toolbar--*",".toolbar__left":"toolbar--*__left",".toolbar__center"
2:"toolbar--*__center",".toolbar__right":"toolbar--*__right"},Ur=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){t._compile()}),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,Vr,Wr);break;case"modifier":O.onModifierChanged(e,n,this,Wr)}}},{key:"_getToolbarLeftItemsElement",value:function(){return this.querySelector(".left")||b.nullElement}},{key:"_getToolbarCenterItemsElement",value:function(){return this.querySelector(".center")||b.nullElement}},{key:"_getToolbarRightItemsElement",value:function(){return this.querySelector(".right")||b.nullElement}},{key:"_getToolbarBackButtonLabelElement",value:function(){return this.querySelector("ons-back-button .back-button__label")||b.nullElement}},{key:"_getToolbarBackButtonIconElement",value:function(){return this.querySelector("ons-back-button .back-button__icon")||b.nullElement}},{key:"_compile",value:function(){P.prepare(this),this.classList.add(Vr),this._ensureToolbarItemElements(),O.initModifier(this,Wr)}},{key:"_ensureToolbarItemElements",value:function(){for(var t=this.childNodes.length-1;0<=t;t--)1!=this.childNodes[t].nodeType&&this.removeChild(this.childNodes[t]);var e=this._ensureToolbarElement("center");if(e.classList.add("toolbar__title"),1!==this.children.length||!this.children[0].classList.contains("center")){var n=this._ensureToolbarElement("left"),i=this._ensureToolbarElement("right");this.children[0]===n&&this.children[1]===e&&this.children[2]===i||(this.appendChild(n),this.appendChild(e),this.appendChild(i))}}},{key:"_ensureToolbarElement",value:function(t){if(W.findChild(this,".toolbar__"+t)){var e=W.findChild(this,".toolbar__"+t);return e.classList.add(t),e}var n=W.findChild(this,"."+t)||W.create("."+t);return n.classList.add("toolbar__"+t),n}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}();i.Toolbar=Ur,customElements.define("ons-toolbar",Ur);var Xr={"":"page--*",".page__content":"page--*__content",".page__background":"page--*__background"},Yr=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._deriveHooks(),t._defaultClassName="page",t.classList.add("page"),t._initialized=!1,xt(t,function(){t._compile(),t._isShown=!1,t._contentElement=t._getContentElement(),t._backgroundElement=t._getBackgroundElement()}),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){var e=this;P.prepare(this);var t=W.findChild(this,"ons-toolbar"),n=W.findChild(this,".page__background")||W.findChild(this,".background")||document.createElement("div");n.classList.add("page__background"),this.insertBefore(n,!t&&this.firstChild||t&&t.nextSibling);var i=W.findChild(this,".page__content")||W.findChild(this,".content")||document.createElement("div");i.classList.add("page__content"),i.parentElement||W.arrayFrom(this.childNodes).forEach(function(t){(1!==t.nodeType||e._elementShouldBeMoved(t))&&i.appendChild(t)}),this._tryToFillStatusBar(i),this.insertBefore(i,n.nextSibling),t&&W.hasModifier(t,"transparent")||1!==i.children.length||!W.isPageControl(i.children[0])||(this._defaultClassName+=" page--wrapper",this.attributeChangedCallback("class")),O.initModifier(this,Xr)}},{key:"_elementShouldBeMoved",value:function(t){if(t.classList.contains("page__background"))return!1;var e=t.tagName.toLowerCase();if("ons-fab"===e)return!t.hasAttribute("position");return t.hasAttribute("inline")||-1===["script","ons-toolbar","ons-bottom-toolbar","ons-modal","ons-speed-dial","ons-dialog","ons-alert-dialog","ons-popover","ons-action-sheet"].indexOf(e)}},{key:"_tryToFillStatusBar",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._contentElement;b.autoStatusBarFill(function(){W.toggleAttribute(t,"status-bar-fill",!W.findParent(t,function(t){return t.hasAttribute("status-bar-fill")})&&(t._canAnimateToolbar(e)||!W.findChild(e,W.isPageControl)))})}},{key:"_canAnimateToolbar",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._contentElement;return!!W.findChild(this,"ons-toolbar")||!!W.findChild(t,function(t){return W.match(t,"ons-toolbar")&&!t.hasAttribute("inline")})}},{key:"connectedCallback",value:function(){var t=this;W.isAttached(this)&&xt(this,function(){t._tryToFillStatusBar(),t.hasAttribute("on-infinite-scroll")&&t.attributeChangedCallback("on-infinite-scroll",null,t.getAttribute("on-infinite-scroll")),t._initialized||(t._initialized=!0,setImmediate(function(){t.onInit&&t.onInit(),W.triggerElementEvent(t,"init")}),W.hasAnyComponentAsParent(t)||setImmediate(function(){return t._show()}))})}},{key:"updateBackButton",value:function(t){this.backButton&&(t?this.backButton.show():this.backButton.hide())}},{key:"_onScroll",value:function(){var t=this,e=this._contentElement,n=(e.scrollTop+e.clientHeight)/e.scrollHeight>=this._infiniteScrollLimit;this._onInfiniteScroll&&!this._loadingContent&&n&&(this._loadingContent=!0,this._onInfiniteScroll(function(){return t._loadingContent=!1}))}},{key:"_getContentElement",value:function(){var t=W.findChild(this,".page__content");
2if(t)return t;W.throw('Fail to get ".page__content" element')}},{key:"_getBackgroundElement",value:function(){var t=W.findChild(this,".page__background");if(t)return t;W.throw('Fail to get ".page__background" element')}},{key:"_getBottomToolbarElement",value:function(){return W.findChild(this,"ons-bottom-toolbar")||b.nullElement}},{key:"_getToolbarElement",value:function(){return W.findChild(this,"ons-toolbar")||document.createElement("ons-toolbar")}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":W.restoreClass(this,this._defaultClassName,Xr);break;case"modifier":O.onModifierChanged(e,n,this,Xr);break;case"on-infinite-scroll":this.onInfiniteScroll=null===n?null:function(t){var e=W.findFromPath(n);(i.onInfiniteScroll=e)(t)}}}},{key:"_show",value:function(){!this._isShown&&W.isAttached(this)&&(this._isShown=!0,this.setAttribute("shown",""),this.onShow&&this.onShow(),W.triggerElementEvent(this,"show"),W.propagateAction(this,"_show"))}},{key:"_hide",value:function(){this._isShown&&(this._isShown=!1,this.removeAttribute("shown"),this.onHide&&this.onHide(),W.triggerElementEvent(this,"hide"),W.propagateAction(this,"_hide"))}},{key:"_destroy",value:function(){this._hide(),this.onDestroy&&this.onDestroy(),W.triggerElementEvent(this,"destroy"),this.onDeviceBackButton&&this.onDeviceBackButton.destroy(),W.propagateAction(this,"_destroy"),this.remove()}},{key:"_deriveHooks",value:function(){var n=this;this.constructor.events.forEach(function(t){var e="on"+t.charAt(0).toUpperCase()+t.slice(1);Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return n["_"+e]},set:function(t){t instanceof Function||W.throw('"'+e+'" hook must be a function'),n["_"+e]=t.bind(n)}})})}},{key:"name",set:function(t){this.setAttribute("name",t)},get:function(){return this.getAttribute("name")}},{key:"backButton",get:function(){return this.querySelector("ons-back-button")}},{key:"onInfiniteScroll",set:function(t){var e=this;!t||t instanceof Function||W.throw('"onInfiniteScroll" must be function or null'),xt(this,function(){t?e._onInfiniteScroll||(e._infiniteScrollLimit=.9,e._boundOnScroll=e._onScroll.bind(e),setImmediate(function(){return e._contentElement.addEventListener("scroll",e._boundOnScroll)})):e._contentElement.removeEventListener("scroll",e._boundOnScroll),e._onInfiniteScroll=t})},get:function(){return this._onInfiniteScroll}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=M.createHandler(this,t)}},{key:"scrollTop",get:function(){return this._contentElement.scrollTop},set:function(t){this._contentElement.scrollTop=t}}],[{key:"observedAttributes",get:function(){return["modifier","on-infinite-scroll","class"]}},{key:"events",get:function(){return["init","show","hide","destroy"]}}]),e}();i.Page=Yr,customElements.define("ons-page",Yr);var Gr=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .4, 1)":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}},{key:"_animate",value:function(t,e){var n=e.from,i=e.to,o=e.options,r=e.callback,a=e.restore,s=void 0!==a&&a,l=e.animation;return o=W.extend({},this.options,o),l&&(n=l.from,i=l.to),l=it(t),s&&(l=l.saveStyle()),l=l.queue(n).wait(this.delay).queue({css:i,duration:this.duration,timing:this.timing}),s&&(l=l.restoreStyle()),r&&(l=l.queue(function(t){r(),t()})),l}},{key:"_animateAll",value:function(e,n){var i=this;Object.keys(n).forEach(function(t){return i._animate(e[t],n[t]).play()})}}]),s}(),$r={out:{from:{opacity:1},to:{opacity:0}},in:{from:{opacity:0}
vendor: 5,852 bytes, line 2
2,to:{opacity:1}}},Kr=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,Gr),d(e,[{key:"show",value:function(t,e){this._animateAll(t,{_mask:$r.in,_popover:{animation:$r.in,restore:!0,callback:e}})}},{key:"hide",value:function(t,e){this._animateAll(t,{_mask:$r.out,_popover:{animation:$r.out,restore:!0,callback:e}})}}]),e}(),Qr=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,Kr),d(e,[{key:"show",value:function(t,e){this._animateAll(t,{_mask:$r.in,_popover:{from:{transform:"scale3d(1.3, 1.3, 1.0)",opacity:0},to:{transform:"scale3d(1.0, 1.0, 1.0)",opacity:1},restore:!0,callback:e}})}}]),e}(),Jr={".popover":"popover--*",".popover-mask":"popover-mask--*",".popover__content":"popover--*__content",".popover__arrow":"popover--*__arrow"},Zr={default:function(){return c.isAndroid()?Kr:Qr},none:Gr,"fade-ios":Qr,"fade-md":Kr},ta={up:"bottom",left:"right",down:"top",right:"left"},ea=function(t){function i(){h(this,i);var t=m(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t._boundOnChange=t._onChange.bind(t),xt(t,function(){t._compile(),t.style.display="none"}),t}return a(i,ao),d(i,[{key:"_updateAnimatorFactory",value:function(){return new y({animators:Zr,baseClass:Gr,baseClassName:"PopoverAnimator",defaultAnimation:this.getAttribute("animation")||"default"})}},{key:"_toggleStyle",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};t?(this.style.display="block",this._currentTarget=e.target,this._positionPopover(e.target)):(this.style.display="none",this._clearStyles())}},{key:"_positionPopover",value:function(t){var e=this._radius,n=this._content,i=this._margin,o=no.getSafeAreaLengths(),r=no.getSafeAreaDOMRect(),a=t.getBoundingClientRect(),s=W.hasModifier(this,"material"),l=s&&this.hasAttribute("cover-target"),u=(W.findParent(this,"ons-page")||document.body).getBoundingClientRect(),c=Math.max(u.top,r.top),h=Math.max(u.left,r.left),d=Math.min(u.bottom,r.bottom),f=Math.min(u.right,r.right),p={top:a.top-(c+i),left:a.left-(h+i),bottom:d-i-a.bottom,right:f-i-a.right},g={top:a.top+Math.round(a.height/2)-(c+i),left:a.left+Math.round(a.width/2)-(h+i),bottom:d-i-a.bottom+Math.round(a.height/2),right:f-i-a.right+Math.round(a.width/2)},m=this._calculateDirections(p),_=m.vertical,v=m.primary,b=m.secondary;this._currentDirection=v,W.addModifier(this,v);var y,k=_?"width":"height",w=(y=window.getComputedStyle(n),{width:parseInt(y.getPropertyValue("width"),10),height:parseInt(y.getPropertyValue("height"),10)}),E=l?0:(_?a.height:a.width)+(s?0:14),C=Math.max(o[v]+i,o[v]+i+p[v]+E),A=Math.max(o[b]+i,o[b]+i+g[b]-w[k]/2);this._popover.style[v]=C+"px",this._popover.style[b]=A+"px",this._arrow.style[b]=Math.max(e,o[b]+i+g[b]-A)+"px"}},{key:"_calculateDirections",value:function(n){var t=(this.getAttribute("direction")||"up down left right").split(/\s+/).map(function(t){return ta[t]}).sort(function(t,e){return n[t]-n[e]})[0],e="top"==t||"bottom"==t;return{vertical:e,primary:t,secondary:e?n.left<n.right?"left":"right":n.top<n.bottom?"top":"bottom"}}},{key:"_clearStyles",value:function(){var e=this;this._currentDirection=null,["top","bottom","left","right"].forEach(function(t){e._arrow.style[t]=e._content.style[t]=e._popover.style[t]="",W.removeModifier(e,t)})}},{key:"_onChange",value:function(){var t=this;setImmediate(function(){t._currentTarget&&t._positionPopover(t._currentTarget)})}},{key:"_compile",value:function(){if(P.prepare(this),!this._popover||!this._mask){if(this._popover&&this._content){if(!this._mask){var t=document.createElement("div");t.classList.add("popover-mask"),this.insertBefore(t,this.firstChild)}if(!this._arrow){var e=document.createElement("div");e.classList.add("popover__arrow"),this._popover.appendChild(e)}}else{for(var n=W.createFragment('\n <div class="popover-mask"></div>\n <div class="popover">\n <div class="popover__content"></div>\n <div class="popover__arrow"></div>\n </div>\n '),i=n.querySelector(".popover__content");this.childNodes[0];)i.appendChild(this.childNodes[0]);this.appendChild(n)}this.hasAttribute("style")&&(this._popover.setAttribute("style",this.getAttribute("style")),this.removeAttribute("style")),O.initModifier(this,this._scheme)}}},{key:"show",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof(e=!t||"object"!==(void 0===t?"undefined":u(t))||t instanceof Event||t instanceof HTMLElement?f({},e,{target:t}):f({},t)).target?e.target=document.querySelector(e.target):e.target instanceof Event&&(e.target=e.target.target),e.target instanceof HTMLElement||W.throw("Invalid target type or undefined"),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"show",this).call(this,e)}},{key:"connectedCallback",value:function(){var t=this;p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"connectedCallback",this).call(this),window.addEventListener("resize",this._boundOnChange,!1),this._margin=this._margin||parseInt(window.getComputedStyle(this).getPropertyValue("top")),this._margin=this._margin||6,xt(this,function(){t._radius=parseInt(window.getComputedStyle(t._content).getPropertyValue("border-top-left-radius"))})}},{key:"disconnectedCallback",value:function(){p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this._boundOnChange,!1)}},{key:"attributeChangedCallback",value:function(t,e,n){if("direction"===t)return this._boundOnChange();"modifier"===t&&this._currentDirection&&W.addModifier(this,this._currentDirection),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,t,e,n)}},{key:"_scheme",get:function(){return Jr}}
2,{key:"_mask",get:function(){return W.findChild(this,".popover-mask")}},{key:"_popover",get:function(){return W.findChild(this,".popover")}},{key:"_content",get:function(){return W.findChild(this._popover,".popover__content")}},{key:"_arrow",get:function(){return W.findChild(this._popover,".popover__arrow")}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof Gr||W.throwAnimator("Popover"),Zr[t]=e}},{key:"observedAttributes",get:function(){return[].concat(_(p(i.__proto__||Object.getPrototypeOf(i),"observedAttributes",this)),["direction"])}},{key:"animators",get:function(){return Zr}},{key:"PopoverAnimator",get:function(){return Gr}}]),i}();i.Popover=ea,customElements.define("ons-popover",ea);var na={".progress-bar":"progress-bar--*",".progress-bar__primary":"progress-bar--*__primary",".progress-bar__secondary":"progress-bar--*__secondary"},ia=W.createElement('\n <div class="progress-bar">\n <div class="progress-bar__secondary"></div>\n <div class="progress-bar__primary"></div>\n </div>\n'),oa="indeterminate",ra=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){return t._compile()}),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){this._isCompiled()?this._template=W.findChild(this,".progress-bar"):this._template=ia.cloneNode(!0),this._primary=W.findChild(this._template,".progress-bar__primary"),this._secondary=W.findChild(this._template,".progress-bar__secondary"),this._updateDeterminate(),this._updateValue(),this.appendChild(this._template),P.prepare(this),O.initModifier(this,na)}},{key:"_isCompiled",value:function(){if(!W.findChild(this,".progress-bar"))return!1;var t=W.findChild(this,".progress-bar");return!!W.findChild(t,".progress-bar__secondary")&&!!W.findChild(t,".progress-bar__primary")}},{key:"attributeChangedCallback",value:function(t,e,n){"modifier"===t?(O.onModifierChanged(e,n,this,na),this.hasAttribute(oa)&&this._updateDeterminate()):"value"===t||"secondary-value"===t?this._updateValue():t===oa&&this._updateDeterminate()}},{key:"_updateDeterminate",value:function(){var t=this;xt(this,function(){return W.toggleModifier(t,oa,{force:t.hasAttribute(oa)})})}},{key:"_updateValue",value:function(){var t=this;xt(this,function(){t._primary.style.width=t.hasAttribute("value")?t.getAttribute("value")+"%":"0%",t._secondary.style.width=t.hasAttribute("secondary-value")?t.getAttribute("secondary-value")+"%":"0%"})}},{key:"value",set:function(t){("number"!=typeof t||t<0||100<t)&&W.throw("Invalid value"),this.setAttribute("value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("value")||"0")}},{key:"secondaryValue",set:function(t){("number"!=typeof t||t<0||100<t)&&W.throw("Invalid value"),this.setAttribute("secondary-value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("secondary-value")||"0")}},{key:"indeterminate",set:function(t){t?this.setAttribute(oa,""):this.removeAttribute(oa)},get:function(){return this.hasAttribute(oa)}}],[{key:"observedAttributes",get:function(){return["modifier","value","secondary-value",oa]}}]),e}();i.ProgressBar=ra,customElements.define("ons-progress-bar",ra);var aa={".progress-circular":"progress-circular--*",".progress-circular__background":"progress-circular--*__background",".progress-circular__primary":"progress-circular--*__primary",".progress-circular__secondary":"progress-circular--*__secondary"},sa=W.createElement('\n <svg class="progress-circular">\n <circle class="progress-circular__background" />\n <circle class="progress-circular__secondary" cx="50%" cy="50%" r="40%" />\n <circle class="progress-circular__primary" cx="50%" cy="50%" r="40%" />\n </svg>\n'),la="indeterminate",ua=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){return t._compile()}),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){"modifier"===t?(O.onModifierChanged(e,n,this,aa),this.hasAttribute(la)&&this._updateDeterminate()):"value"===t||"secondary-value"===t?this._updateV
2alue():t===la&&this._updateDeterminate()}},{key:"_updateDeterminate",value:function(){var t=this;xt(this,function(){return W.toggleModifier(t,la,{force:t.hasAttribute(la)})})}},{key:"_updateValue",value:function(){var e=this;this.hasAttribute("value")&&xt(this,function(){var t=Math.ceil(251.32*e.getAttribute("value")*.01);e._primary.style["stroke-dasharray"]=t+"%, 251.32%"}),this.hasAttribute("secondary-value")?xt(this,function(){var t=Math.ceil(251.32*e.getAttribute("secondary-value")*.01);e._secondary.style.display=null,e._secondary.style["stroke-dasharray"]=t+"%, 251.32%"}):xt(this,function(){e._secondary.style.display="none"})}},{key:"_compile",value:function(){this._isCompiled()?this._template=W.findChild(this,".progress-circular"):this._template=sa.cloneNode(!0),this._primary=W.findChild(this._template,".progress-circular__primary"),this._secondary=W.findChild(this._template,".progress-circular__secondary"),this._updateDeterminate(),this._updateValue(),this.appendChild(this._template),P.prepare(this),O.initModifier(this,aa)}},{key:"_isCompiled",value:function(){if(!W.findChild(this,".progress-circular"))return!1;var t=W.findChild(this,".progress-circular");return!!W.findChild(t,".progress-circular__secondary")&&!!W.findChild(t,".progress-circular__primary")}},{key:"value",set:function(t){("number"!=typeof t||t<0||100<t)&&W.throw("Invalid value"),this.setAttribute("value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("value")||"0")}},{key:"secondaryValue",set:function(t){("number"!=typeof t||t<0||100<t)&&W.throw("Invalid value"),this.setAttribute("secondary-value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("secondary-value")||"0")}},{key:"indeterminate",set:function(t){t?this.setAttribute(la,""):this.removeAttribute(la)},get:function(){return this.hasAttribute(la)}}],[{key:"observedAttributes",get:function(){return["modifier","value","secondary-value",la]}}]),e}();i.ProgressCircular=ua,customElements.define("ons-progress-circular",ua);var ca="initial",ha=function(t,e){return W.throw('"'+t+'" must be '+e)},da=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._shouldFixScroll=W.globals.isUIWebView,t._onDrag=t._onDrag.bind(t),t._onDragStart=t._onDragStart.bind(t),t._onDragEnd=t._onDragEnd.bind(t),t._onScroll=t._onScroll.bind(t),t._setState(ca,!0),t._hide(),t}return a(e,Ji),d(e,[{key:"_setStyle",value:function(){var t=this.height+"px";l(this,{height:t,lineHeight:t}),""===this.style.display&&this._show()}},{key:"_onScroll",value:function(t){var e=this._pageElement;e.scrollTop<0&&(e.scrollTop=0)}},{key:"_canConsumeGesture",value:function(t){return"up"===t.direction||"down"===t.direction}},{key:"_onDragStart",value:function(t){var e=this;if(t.gesture&&!this.disabled){var n=t.gesture.center.clientY+this._pageElement.scrollTop,i=window.innerHeight,o=this._shouldFixScroll?.8:1;if(this._ignoreDrag=t.consumed||i*o<n,!this._ignoreDrag){var r=t.consume;t.consume=function(){r&&r(),e._ignoreDrag=!0,e._hide()},this._canConsumeGesture(t.gesture)&&(r&&r(),t.consumed=!0,this._show())}this._startScroll=this._pageElement.scrollTop}}},{key:"_onDrag",value:function(t){var e=this;if(t.gesture&&!this.disabled&&!this._ignoreDrag&&this._canConsumeGesture(t.gesture)){"none"===this.style.display&&this._show(),t.stopPropagation();var n=t.gesture.center.clientY+this._pageElement.scrollTop,i=window.innerHeight;this._shouldFixScroll&&(this._pageElement.scrollTop=this._startScroll-t.gesture.deltaY,("up"!==t.gesture.interimDirection||n<=.5*i)&&t.gesture.preventDefault());var o=Math.max(t.gesture.deltaY-this._startScroll,0);if(o!==this._currentTranslation){var r=this.thresholdHeight;0<r&&r<=o?(t.gesture.stopDetect(),setImmediate(function(){return e._finish()})):o>=this.height?this._setState("preaction"):this._setState(ca),this._translateTo(o)}}}},{key:"_onDragEnd",value:function(t){!t.gesture||this.disabled||this._ignoreDrag||(t.stopPropagation(),0<this._currentTranslation&&(this._currentTranslation>this.height?this._finish():this._translateTo(0,{animate:!0})))}},{key:"_finish",value:function(){var t=this;this._setState("action"),this._translateTo(this.height,{animate:!0}),(this.onAction||function(t){return t()})(function(){t._translateTo(0,{animate:!0}),t._setState(ca)})}},{key:"_setState",value:function(t,e){var n=this.state;this.setAttribute("state",t),e||n===this.state||W.triggerElementEvent(this,"changestate",{pullHook:this,state:t,lastState:n})}},{key:"_show",value:function(){var t=this;setImmediate(function(){t.style.display="",t._pageElement&&(t._pageElement.style.marginTop="-"+t.height+"px")})}},{key:"_hide",value:function(){this.style.display="none",this._pageElement&&(this._pageElement.style.marginTop="")}},{key:"_translateTo",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(0!=this._currentTranslation||0!=t){this._currentTranslation=t;
2var n=e.animate?{duration:.3,timing:"cubic-bezier(.1, .7, .1, 1)"}:{};this._onPull&&this._onPull((t/this.height).toFixed(2),n);var i=this.hasAttribute("fixed-content")?this:this._pageElement;it(i).queue({transform:"translate3d(0px, "+t+"px, 0px)"},n).play(function(){0===t&&l.clear(i,"transition transform"),e.callback instanceof Function&&e.callback()})}}},{key:"_disableDragLock",value:function(){this._dragLockDisabled=!0,this._setupListeners(!0)}},{key:"_setupListeners",value:function(t){var n=this,e=function(t){return n._pageElement[t+"EventListener"]("scroll",n._onScroll,!1)},i=function(t){var e={passive:!0};n._gestureDetector[t]("drag",n._onDrag,e),n._gestureDetector[t]("dragstart",n._onDragStart,e),n._gestureDetector[t]("dragend",n._onDragEnd,e)};this._gestureDetector&&(i("off"),this._gestureDetector.dispose(),this._gestureDetector=null),e("remove"),t&&(this._gestureDetector=new ot(this._pageElement,{dragMinDistance:1,dragDistanceCorrection:!1,dragLockToAxis:!this._dragLockDisabled,passive:!this._shouldFixScroll}),i("on"),e("add"))}},{key:"connectedCallback",value:function(){this._currentTranslation=0,this._pageElement=this.parentNode,this._setupListeners(!0),this._setStyle()}},{key:"disconnectedCallback",value:function(){this._hide(),this._setupListeners(!1)}},{key:"attributeChangedCallback",value:function(t,e,n){"height"===t&&this._pageElement&&this._setStyle()}},{key:"onAction",get:function(){return this._onAction},set:function(t){!t||t instanceof Function||ha("onAction","function or null"),this._onAction=t}},{key:"onPull",get:function(){return this._onPull},set:function(t){!t||t instanceof Function||ha("onPull","function or null"),this._onPull=t}},{key:"height",set:function(t){W.isInteger(t)||ha("height","integer"),this.setAttribute("height",t+"px")},get:function(){return parseInt(this.getAttribute("height")||"64",10)}},{key:"thresholdHeight",set:function(t){W.isInteger(t)||ha("thresholdHeight","integer"),this.setAttribute("threshold-height",t+"px")},get:function(){return parseInt(this.getAttribute("threshold-height")||"96",10)}},{key:"state",get:function(){return this.getAttribute("state")}},{key:"pullDistance",get:function(){return this._currentTranslation}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["height"]}},{key:"events",get:function(){return["changestate"]}}]),e}();i.PullHook=da,customElements.define("ons-pull-hook",da);var fa={"":"range--*",".range__input":"range--*__input",".range__focus-ring":"range--*__focus-ring"},pa="range__input--active",ga=function(t){function i(){h(this,i);var t=m(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t._onMouseDown=t._onMouseDown.bind(t),t._onMouseUp=t._onMouseUp.bind(t),t._onTouchStart=t._onTouchStart.bind(t),t._onTouchEnd=t._onTouchEnd.bind(t),t._onInput=t._update.bind(t),t._onDragstart=t._onDragstart.bind(t),t._onDragend=t._onDragend.bind(t),t}return a(i,hr),d(i,[{key:"_compile",value:function(){p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"_compile",this).call(this),this._updateDisabled(this.hasAttribute("disabled"))}},{key:"_update",value:function(){var e=this._input,n=this._focusRing;e.style.backgroundSize=100*this._ratio+"% 2px",n.value=this.value,""===e.min&&"0"===e.value||e.min===e.value?e.setAttribute("_zero",""):e.removeAttribute("_zero"),["min","max"].forEach(function(t){return n[t]=e[t]})}},{key:"_onMouseDown",value:function(t){var e=this;this._input.classList.add(pa),setImmediate(function(){return e._input.focus()})}},{key:"_onTouchStart",value:function(t){this._onMouseDown()}},{key:"_onMouseUp",value:function(t){this._input.classList.remove(pa)}},{key:"_onTouchEnd",value:function(t){this._onMouseUp(t)}},{key:"_onDragstart",value:function(t){t.consumed=!0,t.gesture.stopPropagation(),this._input.classList.add(pa),this.addEventListener("drag",this._onDrag)}},{key:"_onDrag",value:function(t){t.stopPropagation()}},{key:"_onDragend",value:function(t){this._input.classList.remove(pa),this.removeEventListener("drag",this._onDrag)}},{key:"attributeChangedCallback",value:function(t,e,n){"disabled"===t&&this._updateDisabled(n),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,t,e,n)}},{key:"_updateDisabled",value:function(t){t?this.classList.add("range--disabled"):this.classList.remove("range--disabled")}},{key:"connectedCallback",value:function(){this._setupListeners(!0)}},{key:"disconnectedCallback",value:function(){this._setupListeners(!1)}},{key:"_setupListeners",value:function(t){var e=(t?"add":"remove")+"EventListener";W[e](this,"touchstart",this._onTouchStart,{passive:!0}),this[e]("mousedown",this._onMouseDown),this[e]("mouseup",this._onMouseUp),this[e]("touchend",this._onTouchEnd),this[e]("dragstart",this._onDragstart),this[e]("dragend",this._onDragend),this[e]("input",this._onInput)}},{key:"_scheme",get:function(){return fa}},{key:"_template",get:function(){return'\n <input type="'+this.type+'" class="'+this._defaultClassName+'__input">\n <input type="range" class="range__focus-ring" tabIndex="-1">\n '}}
2,{key:"_defaultClassName",get:function(){return"range"}},{key:"type",get:function(){return"range"}},{key:"_focusRing",get:function(){return this.children[1]}},{key:"_ratio",get:function(){var t=""===this._input.min?0:parseInt(this._input.min),e=""===this._input.max?100:parseInt(this._input.max);return(this.value-t)/(e-t)}}],[{key:"observedAttributes",get:function(){return["disabled"].concat(_(hr.observedAttributes))}}]),i}();i.Range=ga,customElements.define("ons-range",ga);var ma=function(){function t(){h(this,t),this._queue=[],this._index=0}return d(t,[{key:"animate",value:function(o,r){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:200,s=(new Date).getTime(),l={},u=!1,n=!1,c=!1,h=Object.keys(r),d={stop:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};c&&clearTimeout(c);var e=Math.min(1,((new Date).getTime()-s)/a);return h.forEach(function(t){o.style[t]=(1-e)*l[t]+e*r[t]+("opacity"==t?"":"px")}),o.style.transitionDuration="0s",t.stopNext?n=!1:u||(u=!0,n&&n()),d},then:function(t){return n=t,u&&n&&n(),d},speed:function(t){if(b.config.animationsDisabled&&(t=0),!u){c&&clearTimeout(c);var e=((new Date).getTime()-s)/a,n=t*(1-e);h.forEach(function(t){o.style[t]=(1-e)*l[t]+e*r[t]+("opacity"==t?"":"px")}),i=window.getComputedStyle(o),h.forEach(i.getPropertyValue.bind(i)),i=o.offsetHeight,s=o.speedUpTime,a=n,o.style.transitionDuration=a/1e3+"s",h.forEach(function(t){o.style[t]=r[t]+("opacity"==t?"":"px")}),c=setTimeout(d.stop,n)}var i;return d},finish:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:50,e=((new Date).getTime()-s)/a;return d.speed(t/(1-e)),d}};if(o.hasAttribute("disabled")||u||b.config.animationsDisabled)return d;var i=window.getComputedStyle(o);return h.forEach(function(t){var e=parseFloat(i.getPropertyValue(t));l[t]=isNaN(e)?0:e}),u||(o.style.transitionProperty=h.join(","),o.style.transitionDuration=a/1e3+"s",h.forEach(function(t){o.style[t]=r[t]+("opacity"==t?"":"px")})),c=setTimeout(d.stop,a),this._onStopAnimations(o,d.stop),d}}]),d(t,[{key:"_onStopAnimations",value:function(e,n){var i=this._queue,o=this._index++;i[e]=i[e]||[],i[e][o]=function(t){return delete i[e][o],i[e]&&0==i[e].length&&delete i[e],n(t)}}},{key:"stopAnimations",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(t))return t.forEach(function(t){e.stopAnimations(t,n)});(this._queue[t]||[]).forEach(function(t){t(n||{})})}},{key:"stopAll",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.stopAnimations(Object.keys(this._queue),t)}},{key:"fade",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:200;return this.animate(t,{opacity:0},e)}}]),t}(),_a={"":"ripple--*",".ripple__wave":"ripple--*__wave",".ripple__background":"ripple--*__background"},va=function(t){function n(){h(this,n);var e=m(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e._onTap=e._onTap.bind(e),e._onHold=e._onHold.bind(e),e._onDragStart=e._onDragStart.bind(e),e._onRelease=e._onRelease.bind(e),xt(e,function(){return e._compile()}),e._animator=new ma,["color","center","start-radius","background","modifier"].forEach(function(t){e.attributeChangedCallback(t,null,e.getAttribute(t))}),e}return a(n,Ji),d(n,[{key:"_compile",value:function(){this.classList.add("ripple"),this._wave=this.getElementsByClassName("ripple__wave")[0],this._background=this.getElementsByClassName("ripple__background")[0],this._background&&this._wave||(this._wave=W.create(".ripple__wave"),this._background=W.create(".ripple__background"),this.appendChild(this._wave),this.appendChild(this._background)),O.initModifier(this,_a)}},{key:"_getEffectSize",value:function(){if(this.hasAttribute("size")){var t=this.getAttribute("size");if(-1!==["cover","contain"].indexOf(t))return t}return"cover"}},{key:"_calculateCoords",value:function(t){var e=void 0,n=void 0,i=void 0,o=void 0,r=void 0,a=this.getBoundingClientRect(),s=this._getEffectSize(),l=function(){return W.throw("Ripple invalid state")};return this._center?(e=a.width/2,n=a.height/2,"cover"===s?r=Math.sqrt(e*e+n*n):"contain"===s?r=Math.min(e,n):l()):(e=("number"==typeof t.clientX?t.clientX:t.changedTouches[0].clientX)-a.left,n=("number"==typeof t.clientY?t.clientY:t.changedTouches[0].clientY)-a.top,i=Math.max(n,a.height-n),o=Math.max(e,a.width-e),"cover"===s?r=Math.sqrt(i*i+o*o):"c
2ontain"===s?r=Math.min(Math.round(i/2),Math.round(o/2)):l()),{x:e,y:n,r:r}}},{key:"_rippleAnimation",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300,n=this._animator,i=this._wave,o=this._background,r=this._minR,a=this._calculateCoords(t),s=a.x,l=a.y,u=a.r;return n.stopAll({stopNext:1}),n.animate(o,{opacity:1},e),W.extend(i.style,{opacity:1,top:l-r+"px",left:s-r+"px",width:2*r+"px",height:2*r+"px"}),n.animate(i,{top:l-u,left:s-u,height:2*u,width:2*u},e)}},{key:"_updateParent",value:function(){!this._parentUpdated&&this.parentNode&&("static"===window.getComputedStyle(this.parentNode).getPropertyValue("position")&&(this.parentNode.style.position="relative"),this._parentUpdated=!0)}},{key:"_onTap",value:function(t){var e=this;this.disabled||t.ripple||(t.ripple=!0,this._updateParent(),this._rippleAnimation(t.gesture.srcEvent).then(function(){e._animator.fade(e._wave),e._animator.fade(e._background)}))}},{key:"_onHold",value:function(t){this.disabled||t.ripple||(t.ripple=!0,this._updateParent(),this._holding=this._rippleAnimation(t.gesture.srcEvent,2e3),document.addEventListener("release",this._onRelease))}},{key:"_onRelease",value:function(t){var e=this;this._holding&&!t.ripple&&(t.ripple=!0,this._holding.speed(300).then(function(){e._animator.stopAll({stopNext:!0}),e._animator.fade(e._wave),e._animator.fade(e._background)}),this._holding=!1),document.removeEventListener("release",this._onRelease)}},{key:"_onDragStart",value:function(t){if(this._holding)return this._onRelease(t);-1!=["left","right"].indexOf(t.gesture.direction)&&this._onTap(t)}},{key:"connectedCallback",value:function(){this._parentNode=this.parentNode,b.config.animationsDisabled?this.disabled=!0:(this._parentNode.addEventListener("tap",this._onTap),this._parentNode.addEventListener("hold",this._onHold),this._parentNode.addEventListener("dragstart",this._onDragStart))}},{key:"disconnectedCallback",value:function(){var t=this._parentNode||this.parentNode;t.removeEventListener("tap",this._onTap),t.removeEventListener("hold",this._onHold),t.removeEventListener("dragstart",this._onDragStart)}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":W.restoreClass(this,"ripple",_a);break;case"modifier":O.onModifierChanged(e,n,this,_a);break;case"start-radius":this._minR=Math.max(0,parseFloat(n)||0);break;case"color":n&&xt(this,function(){i._wave.style.background=n,i.hasAttribute("background")||(i._background.style.background=n)});break;case"background":(n||e)&&xt(this,"none"===n?function(){i._background.setAttribute("disabled","disabled"),i._background.style.background="transparent"}:function(){i._background.hasAttribute("disabled")&&i._background.removeAttribute("disabled"),i._background.style.background=n});break;case"center":"center"===t&&(this._center=null!=n&&"false"!=n)}}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["start-radius","color","background","center","class","modifier"]}}]),n}();i.Ripple=va,customElements.define("ons-ripple",va);var ba=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,Ji),e}();i.Row=ba,customElements.define("ons-row",ba);var ya,ka="segment",wa={"":"segment--*",".segment__item":"segment--*__item",".segment__input":"segment--*__input",".segment__button":"segment--*__button"},Ea=(ya=0,function(){return"ons-segment-gen-"+ya++}),Ca=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._segmentId=Ea(),t._tabbar=null,t._onChange=t._onChange.bind(t),t._onTabbarPreChange=t._onTabbarPreChange.bind(t),xt(t,function(){t._compile(),setImmediate(function(){return t._lastActiveIndex=t._tabbar?t._tabbar.getActiveTabIndex():t.getActiveButtonIndex()})}),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){P.prepare(this),this.classList.add(ka);for(var t=this.children.length-1;0<=t;t--){var e=this.children[t];e.classList.add("segment__item");var n=W.findChild(e,".segment__input")||W.create("input.segment__input");n.type="radio",n.value=t,n.name=n.name||this._segmentId,n.checked=!this.hasAttribute("tabbar-id")&&t===(parseInt(this.getAttribute("active-index"))||0);var i=W.findChild(e,".segment__button")||W.create(".segment__button");if(i.parentElement!==e)for(;e.firstChild;)i.appendChild(e.firstChild);e.appendChild(n),e.appendChild(i)}O.initModifier(this,wa)}},{key:"connectedCallback",value:function(){var e=this;this.hasAttribute("tabbar-id")&&xt(this,function(){var t=W.findParent(e,"ons-page");e._tabbar=t&&t.querySelector("#"+e.getAttribute("tabbar-id")),e._tabbar&&"ONS-TABBAR"===e._tabbar.tagName||W.throw("No tabbar with id "+e.getAttribute("tabbar-id")+" was found."),e._tabbar.setAttribute("hide-tabs",""),setImmediate(function(){return e._setChecked(e._tabbar.getActiveTabIndex())}),e._tabbar.addEventListener("prechange",e._onTabbarPreChange)}),this.addEventListener("change",this._onChange)}},{key:"disconnectedCallback",value:function(){var t=this;xt(this,function(){t._tabbar&&(t._tabbar.removeEventListener("prechange",t._onTabbarPreChange),t._tabbar=null)}),this.removeEventListener("change",this._onChange)}},{key:"_setChecked",value:function(t){this.children[t].firstElementChild.checked=!0}},{key:"setActiveButton",value:function(t,e){return this._tabbar?this._tabbar.setActiveTab(t,e):(this._setChecked(t),this._postChange(t),Promise.resolve(t))}},{key:"getActiveButtonIndex",value:function(){for(var t=this.children.length-1;0<=t;t--)if(this.children[t].firstElementChild.checked)return t;return-1}},{key:"_onChange",value:function(t){t.stopPropagation(),this._tabbar?this._tabbar.setActiveTab(this.getActiveButtonIndex(),{reject:!1}):this._postChange(this.getActiveButtonIndex())}},{key:"_onTabbarPreChange",value:function(t){var e=this;setImmediate(function(){t.detail.canceled||(e._setChecked(t.index),e._postChange(t.index))})}},{key:"_postChange",value:function(t){W.triggerElementEvent(this,"postchange",{index:t,activeIndex:t,lastActiveIndex:this._lastActiveIndex,segmentItem:this.children[t]}),this._lastActiveIndex=t}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,ka,wa);break;case"modifier":O.onModifierChanged(e,n,this,wa)}}},{key:"disabled",set:function(t){return W.toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["class","modifier"]}},{key:"events",get:function(){return["postchange"]}}]),e}();i.Segment=Ca,customElements.define("ons-segment",Ca);
vendor: 5,585 bytes, line 2
2var Aa={"":"select-* select--*",".select-input":"select-input--*"},Sa=["autofocus","disabled","form","multiple","name","required","size"],Pa=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){return t._compile()}),t._deriveGetters(),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":W.restoreClass(this,"select",Aa);break;case"modifier":O.onModifierChanged(e,n,this,Aa)}0<=Sa.indexOf(t)&&xt(this,function(){return i._updateBoundAttributes()})}},{key:"_updateBoundAttributes",value:function(){var e=this;Sa.forEach(function(t){e.hasAttribute(t)?e._select.setAttribute(t,e.getAttribute(t)):e._select.removeAttribute(t)})}},{key:"_compile",value:function(){P.prepare(this),this.classList.add("select");var e=this._select||document.createElement("select");!e.id&&this.hasAttribute("select-id")&&(e.id=this.getAttribute("select-id")),e.classList.add("select-input"),this._select||(W.arrayFrom(this.childNodes).forEach(function(t){return e.appendChild(t)}),this.appendChild(e)),O.initModifier(this,Aa)}},{key:"_deriveGetters",value:function(){var n=this;["disabled","length","multiple","name","options","selectedIndex","size","value","form","type"].forEach(function(e){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return n._select[e]},set:-1===["form","type"].indexOf(e)?function(t){return xt(n,function(){return n._select[e]=t})}:void 0})})}},{key:"add",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this._select.add(t,e)}},{key:"remove",value:function(t){this._select.remove(t)}},{key:"_select",get:function(){return this.querySelector("select")}}],[{key:"observedAttributes",get:function(){return["modifier","class"].concat(Sa)}}]),e}();i.Select=Pa,customElements.define("ons-select",Pa);var Oa="fab fab--mini speed-dial__item",xa={"":"fab--* speed-dial__item--*"},Ta=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t._boundOnClick=t._onClick.bind(t),t}return a(e,Ji),d(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":W.restoreClass(this,Oa,xa);break;case"modifier":O.onModifierChanged(e,n,this,xa),W.addModifier(this,"mini");break;case"ripple":this._updateRipple()}}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick,!1)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick,!1)}},{key:"_updateRipple",value:function(){W.updateRipple(this)}},{key:"_onClick",value:function(t){t.stopPropagation()}},{key:"_compile",value:function(){var e=this;P.prepare(this),Oa.split(/\s+/).forEach(function(t){return e.classList.add(t)}),W.addModifier(this,"mini"),this._updateRipple(),O.initModifier(this,xa)}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","class"]}}]),e}();i.SpeedDialItem=Ta,customElements.define("ons-speed-dial-item",Ta);var La="speed-dial",Ma={"":"speed-dial--*"},Da=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return xt(t,function(){t._compile()}),t._itemShown=!1,t._boundOnClick=t._onClick.bind(t),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){this.classList.add(La),P.prepare(this),this._updateRipple(),O.initModifier(this,Ma),this.hasAttribute("direction")?this._updateDirection(this.getAttribute("direction")):this._updateDirection("up"),this._updatePosition()}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":W.restoreClass(this,La,Ma);break;case"modifier":O.onModifierChanged(e,n,this,Ma);break;case"ripple":xt(this,function(){return i._updateRipple()});break;case"direction":xt(this,function(){return i._updateDirection(n)});break;case"position":xt(this,function(){return i._updatePosition()})}}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick,!1)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick,!1)}},{key:"_onClick",value:function(t){return this.onClick?(this.onClick.apply(this),Promise.resolve()):!this.disabled&&this.visible?this.toggleItems():void 0}},{key:"_show",value:function(){return this.inline?Promise.resolve():this.show()}},{key:"_hide",value:function(){var e=this;return new Promise(function(t){e.inline?t():setImmediate(function(){return e.hide().then(t)})})}},{key:"_updateRipple",value:function(){this._fab&&(this.hasAttribute("ripple")?this._fab.setAttribute("ripple",""):this._fab.removeAttribute("ripple"))}},{key:"_updateDirection",value:function(t){for(var e=this.items,n=0;n<e.length;n++)l(e[n],{transitionDelay:25*n+"ms",bottom:"auto",right:"auto",top:"auto",left:"auto"});switch(t){case"up":for(var i=0;i<e.length;i++)e[i].style.bottom=72+56*i+"px",e[i].style.right="8px";break;case"down":for(var o=0;o<e.length;o++)e[o].style.top=72+56*o+"px",e[o].style.left="8px";break;case"left":for(var r=0;r<e.length;r++)e[r].style.top="8px",e[r].style.right=72+56*r+"px";break;case"right":for(var a=0;a<e.length;a++)e[a].style.top="8px",e[a].style.left=72+56*a+"px";break;default:W.throw("Argument must be one of up, down, left or right.")}}},{key:"_updatePosition",value:function(){var t=this.getAttribute("position");switch(this.classList.remove("fab--top__left","fab--bottom__right","fab--bottom__left","fab--top__right","fab--top__center","fab--bottom__center"),t){case"top right":case"right top":this.classList.add("fab--top__right");break;
2case"top left":case"left top":this.classList.add("fab--top__left");break;case"bottom right":case"right bottom":this.classList.add("fab--bottom__right");break;case"bottom left":case"left bottom":this.classList.add("fab--bottom__left");break;case"center top":case"top center":this.classList.add("fab--top__center");break;case"center bottom":case"bottom center":this.classList.add("fab--bottom__center")}}},{key:"_getTranslate",value:function(){return 0<=(this.getAttribute("position")||"").indexOf("bottom")?"translate3d(0px, -"+(W.globals.fabOffset||0)+"px, 0px) ":""}},{key:"show",value:function(){return this._fab.show(),l(this,{transform:this._getTranslate}),Promise.resolve()}},{key:"hide",value:function(){var t=this;return this.hideItems().then(function(){return t._fab.hide()})}},{key:"showItems",value:function(){this.hasAttribute("direction")?this._updateDirection(this.getAttribute("direction")):this._updateDirection("up");var t=0;if(!this._itemShown){for(var e=this.items,n=0;n<e.length;n++){var i=25*n;t+=i,l(e[n],{transform:"scale(1)",transitionDelay:i+"ms"})}t+=50,this._itemShown=!0,W.triggerElementEvent(this,"open")}var o=W.defer();return setTimeout(o.resolve,t),o.promise}},{key:"hideItems",value:function(){var t=0;if(this._itemShown){for(var e=this.items,n=0;n<e.length;n++){var i=25*(e.length-n);t+=i,l(e[n],{transform:"scale(0)",transitionDelay:i+"ms"})}t+=50,this._itemShown=!1,W.triggerElementEvent(this,"close")}var o=W.defer();return setTimeout(o.resolve,t),o.promise}},{key:"isOpen",value:function(){return this._itemShown}},{key:"toggle",value:function(){return this.visible?this.hide():this.show()}},{key:"toggleItems",value:function(){return this.isOpen()?this.hideItems():this.showItems()}},{key:"items",get:function(){return W.arrayFrom(this.querySelectorAll("ons-speed-dial-item"))}},{key:"_fab",get:function(){return W.findChild(this,"ons-fab")}},{key:"disabled",set:function(e){return e&&this.hideItems(),W.arrayFrom(this.children).forEach(function(t){W.match(t,".fab")&&W.toggleAttribute(t,"disabled",e)}),W.toggleAttribute(this,"disabled",e)},get:function(){return this.hasAttribute("disabled")}},{key:"inline",get:function(){return this.hasAttribute("inline")}},{key:"visible",get:function(){return this._fab.visible&&"none"!==this.style.display}}],[{key:"observedAttributes",get:function(){return["class","modifier","ripple","direction","position"]}},{key:"events",get:function(){return["open","close"]}}]),e}();i.SpeedDial=Da,customElements.define("ons-speed-dial",Da);var Ia={ready:function(t,e){setImmediate(e)}},Na=function(t){function n(){h(this,n);var e=m(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e._page=null,e._pageLoader=$t,xt(e,function(){Ia.ready(e,function(){var t=e._getPageTarget();t&&e.load(t)})}),e}return a(n,Ji),d(n,[{key:"connectedCallback",value:function(){W.match(this.parentNode,"ons-splitter")||W.throw('"ons-splitter-content" must have "ons-splitter" as parent')}},{key:"_getPageTarget",value:function(){return this._page||this.getAttribute("page")}},{key:"disconnectedCallback",value:function(){}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"load",value:function(t){var i=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this._page=t;var o=e.callback||function(){};return new Promise(function(e){var n=i._content||null;i._pageLoader.load({page:t,parent:i},function(t){n&&(i._pageLoader.unload(n),n=null),setImmediate(function(){return i._show()}),o(t),e(t)})})}},{key:"_show",value:function(){this._content&&this._content._show()}},{key:"_hide",value:function(){this._content&&this._content._hide()}},{key:"_destroy",value:function(){this._content&&this._pageLoader.unload(this._content),this.remove()}},{key:"page",get:function(){return this._page},set:function(t){this._page=t}},{key:"_content",get:function(){return this.children[0]}},{key:"pageLoader",get:function(){return this._pageLoader},set:function(t){t instanceof Gt||W.throwPageLoader(),this._pageLoader=t}}],[{key:"observedAttributes",get:function(){return[]}},{key:"rewritables",get:function(){return Ia}}]),n}();i.SplitterContent=Na,customElements.define("ons-splitter-content",Na);var Ba=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._boundOnClick=t._onClick.bind(t),xt(t,function(){t.parentNode._sides.every(function(t){return"split"===t.mode})&&t.setAttribute("style","display: none !important")}),t}return a(e,Ji),d(e,[{key:"_onClick",value:function(t){this.onClick instanceof Function?this.onClick():W.match(this.parentNode,"ons-splitter")&&this.parentNode._sides.forEac
vendor: 12,288 bytes, line 2
2h(function(t){return t.close("left").catch(function(){})}),t.stopPropagation()}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick),W.iosMaskScrollFix(this,!0)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick),W.iosMaskScrollFix(this,!1)}}],[{key:"observedAttributes",get:function(){return[]}}]),e}();i.SplitterMask=Ba,customElements.define("ons-splitter-mask",Ba);var ja=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"cubic-bezier(.1, .7, .1, 1)":e,i=t.duration,o=void 0===i?.3:i,r=t.delay,a=void 0===r?0:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,duration:o,delay:a}))}return a(s,eo),d(s,[{key:"updateOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};W.extend(this,{timing:this.timing,duration:this.duration,delay:this.delay},t)}},{key:"activate",value:function(t){var e=this,n=t.parentNode;xt(n,function(){e._side=t,e._oppositeSide=n.right!==t&&n.right||n.left!==t&&n.left,e._content=n.content,e._mask=n.mask})}},{key:"deactivate",value:function(){this.clearTransition(),this._mask&&this.clearMask(),this._content=this._side=this._oppositeSide=this._mask=null}},{key:"clearTransition",value:function(){var e=this;"side mask content".split(/\s+/).forEach(function(t){return e["_"+t]&&l.clear(e["_"+t],"transform transition")})}},{key:"clearMask",value:function(){this._oppositeSide&&"split"!==this._oppositeSide.mode&&this._oppositeSide.isOpen||(this._mask.style.opacity="",this._mask.style.display="none")}},{key:"translate",value:function(t){}},{key:"open",value:function(t){t()}},{key:"close",value:function(t){t()}},{key:"minus",get:function(){return"right"===this._side.side?"-":""}}]),s}(),Ha=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,ja),d(e,[{key:"translate",value:function(t){this._mask.style.display="block",it(this._side).queue({transform:"translate3d("+(this.minus+t)+"px, 0, 0)"}).play()}},{key:"open",value:function(e){it.runAll(it(this._side).wait(this.delay).queue({transform:"translate3d("+this.minus+"100%, 0, 0)"},this.def).queue(function(t){t(),e&&e()}),it(this._mask).wait(this.delay).queue({display:"block"}).queue({opacity:"1"},{duration:this.duration,timing:"linear"}))}},{key:"close",value:function(e){it.runAll(it(this._side).wait(this.delay).queue({transform:"translate3d(0, 0, 0)"},this.def).queue(function(t){e&&e(),t()}),it(this._mask).wait(this.delay).queue({opacity:"0"},{duration:this.duration,timing:"linear"}).queue({display:"none"}))}}]),e}(),Ra={default:Ha,overlay:Ha,push:function(t){function i(){return h(this,i),m(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return a(i,ja),d(i,[{key:"_getSlidingElements",value:function(){var t=[this._side,this._content];return this._oppositeSide&&"split"===this._oppositeSide.mode&&t.push(this._oppositeSide),t}},{key:"translate",value:function(t){this._slidingElements||(this._slidingElements=this._getSlidingElements()),this._mask.style.display="block",it(this._slidingElements).queue({transform:"translate3d("+(this.minus+t)+"px, 0, 0)"}).play()}},{key:"open",value:function(e){var n=this,t=this._side.offsetWidth;this._slidingElements=this._getSlidingElements(),it.runAll(it(this._slidingElements).wait(this.delay).queue({transform:"translate3d("+(this.minus+t)+"px, 0, 0)"},this.def).queue(function(t){n._slidingElements=null,t(),e&&e()}),it(this._mask).wait(this.delay).queue({display:"block"}))}},{key:"close",value:function(e){var n=this;this._slidingElements=this._getSlidingElements(),it.runAll(it(this._slidingElements).wait(this.delay).queue({transform:"translate3d(0, 0, 0)"},this.def).queue(function(t){n._slidingElements=null,p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"clearTransition",n).call(n),e&&e(),t()}),it(this._mask).wait(this.delay).queue({display:"none"}))}}]),i}(),reveal:function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,ja),d(e,[{key:"_getSlidingElements",value:function(){var t=[this._content,this._mask];return this._oppositeSide&&"split"===this._oppositeSide.mode&&t.push(this._oppositeSide),t}},{key:"activate",value:function(t){p(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"activate",this).call(this,t),"collapse"===t.mode&&this._setStyles(t)}},{key:"deactivate",value:function(){this._side&&this._unsetStyles(this._side),p(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deactivate",this).call(this)}},{key:"_setStyles",value:function(t){l(t,{left:"right"===t.side?"auto":0,right:"right"===t.side?0:"auto",zIndex:0,backgroundColor:"black",transform:this._generateBehindPageStyle(0).container.transform,display:"none"});var e=t.parentElement;xt(e,function(){return e.content&&l(e.content,{boxShadow:"0 0 12px 0 rgba(0, 0, 0, 0.2)"})})}},{key:"_unsetStyles",value:function(t){l.clear(t,"left right zIndex backgroundColor display"),t._content&&(t._content.style.opacity=""),this._oppositeSide&&"split"!==this._oppositeSide.mode||t.parentElement.content&&l.clear(t.parentElement.content,"boxShadow")}},{key:"_generateBehindPageStyle",value:function(t){var e=this.maxWidth,n=(t-e)/e*10;return{content:{opacity:1+(n=isNaN(n)?0:Math.max(Math.min(n,0),-10))/100},container:{transform:"translate3d("+(this.minus?-1:1)*n+"%, 0, 0)"}}}},{key:"translate",value:function(t){this._side.style.display="",this._side.style.zIndex=1,this.maxWidth=this.maxWidth||this._getMaxWidth();var e=this._generateBehindPageStyle(Math.min(t,this.maxWidth));this._slidingElements||(this._slidingElements=this._getSlidingElements()),this._mask.style.display="block",it.runAll(it(this._slidingElements).queue({transform:"translate3d("+(this.minus+t)+"px, 0, 0)"}),it(this._side._content).queue(e.content),it(this._side).queue(e.container))}},{key:"open",value:function(e){var n=this;this._side.style.display="",this._side.style.zIndex=1,this.maxWidth=this.maxWidth||this._getMaxWidth();var t=this._generateBehindPageStyle(this.maxWidth);this._slidingElements=this._getSlidingElements(),setTimeout(function(){it.runAll(it(n._slidingElements).wait(n.delay).queue({transform:"translate3d("+(n.minus+n.maxWidth)+"px, 0, 0)"},n.def),it(n._mask).wait(n.delay).queue({display:"block"}),it(n._side._content).wait(n.delay).queue(t.content,n.def),it(n._side).wait(n.delay).queue(t.container,n.def).queue(function(t){n._slidingElements=null,t(),e&&e()}))},1e3/60)}},{key:"close",value:function(e){var n=this,t=this._generateBehindPageStyle(0);this._slidingElements=this._getSlidingElements(),it.runAll(it(this._slidingElements).wait(this.delay).queue({transform:"translate3d(0, 0, 0)"},this.def),it(this._mask).wait(this.delay).queue({display:"none"}),it(this._side._content).wait(this.delay).queue(t.content,this.def),it(this._side).wait(this.delay).queue(t.container,this.def).queue(function(t){n._slidingElements=null,n._side.style.zIndex=0,n._side.style.display="none",n._side._content.style.opacity="",e&&e(),t()}))}},{key:"_getMaxWidth",value:function(){return this._side.offsetWidth}}]),e}()},Fa=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._onModeChange=t._onModeChange.bind(t),xt(t,function(){!t.mask&&t.appendChild(document.createElement("ons-splitter-mask")),t._layout()}),t}return a(e,Ji),d(e,[{key:"_getSide",value:function(e){return W.findChild(this,function(t){return W.match(t,"ons-splitter-side")&&t.getAttribute("side")===e})}},{key:"_onDeviceBackButton",value:function(t){this._sides.some(function(t){return!!t.isOpen&&t.close()})||t.callParentHandler()}},{key:"_onModeChange",value:function(t){var e=this;t.target.parentNode&&xt(this,function(){e._layout()})}},{key:"_layout",value:function(){var e=this;this._sides.forEach(function(t){e.content&&(e.content.style[t.side]="split"===t.mode?t.style.width:0)})}},{key:"left",get:function(){return this._getSide("left")}},{key:"right",get:function(){return this._getSide("right")}},{key:"side",get:function(){return W.findChild(this,"ons-splitter-side")}},{key:"_sides",get:function(){return[this.left,this.right].filter(function(t){return t})}},{key:"content",get:function(){return W.findChild(this,"ons-splitter-content")}},{key:"topPage",get:function(){return this.content._content}},{key:"mask",get:function(){return W.findChild(this,"ons-splitter-mask")}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=M.createHandler(this,t)}}]),d(e,[{key:"connectedCallback",value:function(){this.onDeviceBackButton=this._onDeviceBackButton.bind(this),this.addEventListener("modechange",this._onModeChange,!1)}},{key:"disconnectedCallback",value:function(){this._backButtonHandler.destroy(),this._backButtonHandler=null,this.removeEventListener("modechange",this._onModeChange,!1)}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"_show",value:function(){W.propagateAction(this,"_show")}},{key:"_hide",value:function(){W.propagateAction(this,"_hide")}},{key:"_destroy",value:function(){W.propagateAction(this,"_destroy"),this.remove()}}],[{key:"registerAnimator",value:function(t,e){e instanceof SplitterAnimator||W.throwAnimator("Splitter"),Ra[t]=e}},{key:"SplitterAnimator",get:function(){return SplitterAnimator}},{key:"animators",get:function(){return Ra}}]),e}();i.Splitter=Fa,customElements.define("ons-splitter",Fa);var qa="split",za="collapse",Va="closed",Wa="changing",Ua={ready:function(t,e){setImmediate(e)}},Xa=function(){function n(t,e){h(this,n),this._element=t,this._onChange=this._onChange.bind(this),e&&this.changeTarget(e)}return d(n,[{key:"changeTarget",value:function(t){this.disable(),(this._target=t)&&(this._orientation=-1!==["portrait","landscape"].indexOf(t),this.activate())}},{key:"_match",value:function(t){return this._orientation?this._target===(t.isPortrait?"portrait":"landscape"):t.matches}},{key:"_onChange",value:function(t){this._element._updateMode(this._match(t)?za:qa)}},{key:"activate",value:function(){this._orientation?(Bt.on("change",this._onChange),this._onChange({isPortrait:Bt.isPortrait()})):(this._queryResult=window.matchMedia(this._target),this._queryResult.addListener(this._onChange),this._onChange(this._queryResult))}},{key:"disable",value:function(){this._orientation?Bt.off("change",this._onChange):this._queryResult&&(this._queryResult.removeListener(this._onChange),this._queryResult=null)}}]),n}(),Ya=function(t){function n(){h(this,n);var e=m(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e._page=null,e._state=Va,e._lock=new Wt,e._pageLoader=$t,e._collapseDetection=new Xa(e),e._animatorFactory=new y({animators:Fa.animators,baseClass:ja,baseClassName:"SplitterAnimator",defaultAnimation:e.getAttribute("animation")}),xt(e,function(){e.attributeChangedCallback("width"),e.hasAttribute("side")||e.setAttribute("side","left"),Ua.ready(e,function(){var t=e._page||e.getAttribute("page");t&&e.load(t)})}),e}return a(n,Ji),d(n,[{key:"connectedCallback",value:function(){var r=this;W.match(this.parentNode,"ons-splitter")||W.throw("Parent must be an ons-splitter element"),this._swipe=new Pr({element:this,elementHandler:this.parentElement,swipeMax:function(){r._onSwipe&&r._onSwipe(1,r._animationOpt),r.open()},swipeMid:function(t,e){r._onSwipe&&r._onSwipe(t/e),r._animator.translate(t)},swipeMin:function(){r._onSwipe&&r._onSwipe(0,r._animationOpt),r.close()},getThreshold:function(){return Math.max(0,Math.min(1,parseFloat(r.getAttribute("open-threshold"))||.3))},getSide:function(){return r.side},isInitialState:function(){var t=r._state===Va;return r._state=Wa,t},ignoreSwipe:function(t,e){var n,i=r.isOpen,o=Math.max(0,parseInt(r.getAttribute("swipe-target-width"),10)||0);return r._mode===qa||r._lock.isLocked()||r._isOtherSideOpen()||(n=t.gesture.direction,!("left"===r.side?"left"===n&&i||"right"===n&&!i:"left"===n&&!i||"right"===n&&i))||!i&&0!==o&&o<e}}),this.attributeChangedCallback("swipeable"),xt(this,function(){r.constructor.observedAttributes.forEac
2h(function(t){return r.attributeChangedCallback(t,null,r.getAttribute(t))})})}},{key:"disconnectedCallback",value:function(){this._swipe&&this._swipe.dispose(),this._animator=this._animationOpt=this._swipe=null}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"swipeable":this._swipe&&this._swipe.update();break;case"width":n=this.getAttribute("width"),this.style.width=/^\d+(px|%)$/.test(n)?n:"80%";break;default:this[W.camelize("_update-"+t)](n)}}},{key:"_emitEvent",value:function(t){if("pre"!==t.slice(0,3))return W.triggerElementEvent(this,t,{side:this});var e=!1;return W.triggerElementEvent(this,t,{side:this,cancel:function(){return e=!0}}),e}},{key:"_isOtherSideOpen",value:function(){var e=this;return!!W.findChild(this.parentElement,function(t){return t instanceof e.constructor&&t!==e&&t._mode===za&&t.isOpen})}},{key:"_updateCollapse",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getAttribute("collapse");return null===t||"split"===t?(this._collapseDetection.disable(),this._updateMode(qa)):""===t||"collapse"===t?(this._collapseDetection.disable(),this._updateMode(za)):void this._collapseDetection.changeTarget(t)}},{key:"_updateMode",value:function(t){t!==this._mode&&(this._mode=t,this.setAttribute("mode",t),t===qa?(this._animator&&this._animator.deactivate(),this._state=Va):(this._animator&&this._animator.activate(this),"open"===this._state&&this._animator.open()),W.triggerElementEvent(this,"modechange",{side:this,mode:t}))}},{key:"_updateAnimation",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getAttribute("animation");this.parentNode&&(this._animator&&this._animator.deactivate(),this._animator=this._animatorFactory.newAnimator({animation:t}),this._animator.activate(this),this._animationOpt={timing:this._animator.duration,duration:this._animator.duration})}},{key:"_updateAnimationOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getAttribute("animation-options");this._animator.updateOptions(y.parseAnimationOptionsString(t))}},{key:"open",value:function(t){return this.toggle(t,!0)}},{key:"close",value:function(t){return this.toggle(t,!1)}},{key:"toggle",value:function(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],i="boolean"==typeof t?t:!this.isOpen,o=i?"open":"close",r=i?"open":Va;if(this._mode===qa)return Promise.resolve(!1);if(this._state===r)return Promise.resolve(this);if(this._lock.isLocked())return Promise.reject("Another splitter-side action is already running.");if(i&&this._isOtherSideOpen())return Promise.reject("Another menu is already open.");if(this._emitEvent("pre"+o))return Promise.reject("Canceled in pre"+o+" event.");var a=this._lock.lock();return this._state=Wa,new Promise(function(t){e._animator[o](function(){W.iosPageScrollFix(i),e._state=r,a(),e._emitEvent("post"+o),n.callback instanceof Function&&n.callback(e),t(e)})})}},{key:"load",value:function(t){var i=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this._page=t;var o=e.callback||function(){};return new Promise(function(e){var n=i._content||null;i._pageLoader.load({page:t,parent:i},function(t){n&&(i._pageLoader.unload(n),n=null),setImmediate(function(){return i._show()}),o(t),e(t)})})}},{key:"_show",value:function(){this._content&&this._content._show()}},{key:"_hide",value:function(){this._content&&this._content._hide()}},{key:"_destroy",value:function(){this._content&&this._pageLoader.unload(this._content),this.remove()}},{key:"side",get:function(){return"right"===this.getAttribute("side")?"right":"left"}},{key:"page",get:function(){return this._page},set:function(t){this._page=t}},{key:"_content",get:function(){return this.children[0]}},{key:"pageLoader",get:function(){return this._pageLoader},set:function(t){t instanceof Gt||W.throwPageLoader(),this._pageLoader=t}},{key:"mode",get:function(){return this._mode}},{key:"onSwipe",get:function(){return this._onSwipe},set:function(t){!t||t instanceof Function||W.throw('"onSwipe" must be a function'),this._onSwipe=t}},{key:"isOpen",get:function(){return this._mode===za&&this._state!==Va}}],[{key:"observedAttributes",get:function(){return["animation","width","collapse","swipeable","animation-options"]}},{key:"events",get:function(){return["preopen","postopen","preclose","postclose","modechange"]}},{key:"rewritables",get:function(){return Ua}}]),n}();i.SplitterSide=Ya,customElements.define("ons-splitter-side",Ya);var Ga={"":"switch--*",".switch__input":"switch--*__input",".switch__handle":"switch--*__handle",".switch__toggle":"switch--*__toggle"},$a={ios:[1,21],material:[0,16]},Ka=function(t){function o(){h(this,o);
2var t=m(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return xt(t,function(){t.attributeChangedCallback("modifier",null,t.getAttribute("modifier"))}),t._onChange=t._onChange.bind(t),t._onRelease=t._onRelease.bind(t),t._lastTimeStamp=0,t}return a(o,pr),d(o,[{key:"_getPosition",value:function(t){var e=this._locations;return Math.min(e[1],Math.max(e[0],this._startX+t.gesture.deltaX))}},{key:"_emitChangeEvent",value:function(){W.triggerElementEvent(this,"change",{value:this.checked,switch:this,isInteractive:!0})}},{key:"_onChange",value:function(t){t&&t.stopPropagation&&t.stopPropagation(),this._emitChangeEvent()}},{key:"_onClick",value:function(t){(t.target.classList.contains(this.defaultElementClass+"__touch")||t.timeStamp-this._lastTimeStamp<50)&&t.preventDefault(),this._lastTimeStamp=t.timeStamp}},{key:"_onHold",value:function(t){this.disabled||(O.addModifier(this,"active"),document.addEventListener("release",this._onRelease))}},{key:"_onDragStart",value:function(t){this.disabled||-1===["left","right"].indexOf(t.gesture.direction)?O.removeModifier(this,"active"):(t.consumed=!0,O.addModifier(this,"active"),this._startX=this._locations[this.checked?1:0],this.addEventListener("drag",this._onDrag),document.addEventListener("release",this._onRelease))}},{key:"_onDrag",value:function(t){t.stopPropagation(),this._handle.style.left=this._getPosition(t)+"px"}},{key:"_onRelease",value:function(t){var e=this._locations,n=this._getPosition(t),i=this.checked;this.checked=n>=(e[0]+e[1])/2,this.checked!==i&&this._emitChangeEvent(),this.removeEventListener("drag",this._onDrag),document.removeEventListener("release",this._onRelease),this._handle.style.left="",O.removeModifier(this,"active")}},{key:"click",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.disabled||(this.checked=!this.checked,this._emitChangeEvent(),this._lastTimeStamp=t.timeStamp||0)}},{key:"connectedCallback",value:function(){var t=this;xt(this,function(){t._input.addEventListener("change",t._onChange)}),this.addEventListener("dragstart",this._onDragStart),this.addEventListener("hold",this._onHold),this.addEventListener("tap",this.click),this.addEventListener("click",this._onClick),this._gestureDetector=new ot(this,{dragMinDistance:1,holdTimeout:251,passive:!0})}},{key:"disconnectedCallback",value:function(){var t=this;xt(this,function(){t._input.removeEventListener("change",t._onChange)}),this.removeEventListener("dragstart",this._onDragStart),this.removeEventListener("hold",this._onHold),this.removeEventListener("tap",this.click),this.removeEventListener("click",this._onClick),this._gestureDetector&&this._gestureDetector.dispose()}},{key:"attributeChangedCallback",value:function(t,e,n){if("modifier"===t){var i=-1!==(n||"").indexOf("material");this._locations=$a[i?"material":"ios"]}p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"attributeChangedCallback",this).call(this,t,e,n)}},{key:"_scheme",get:function(){return Ga}},{key:"_defaultClassName",get:function(){return"switch"}},{key:"_template",get:function(){return'\n <input type="'+this.type+'" class="'+this._defaultClassName+'__input">\n <div class="'+this._defaultClassName+'__toggle">\n <div class="'+this._defaultClassName+'__handle">\n <div class="'+this._defaultClassName+'__touch"></div>\n </div>\n </div>\n '}},{key:"type",get:function(){return"checkbox"}},{key:"_handle",get:function(){return this.querySelector("."+this._defaultClassName+"__handle")}},{key:"checkbox",get:function(){return this._input}}],[{key:"observedAttributes",get:function(){return[].concat(_(p(o.__proto__||Object.getPrototypeOf(o),"observedAttributes",this)),["modifier"])}}]),o}();i.Switch=Ka,customElements.define("ons-switch",Ka);var Qa={".tabbar__content":"tabbar--*__content",".tabbar__border":"tabbar--*__border",".tabbar":"tabbar--*"},Ja={ready:function(t,e){e()}},Za=function(t,e,n){return(1-n)*t+n*e},ts=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._loadInactive=W.defer(),xt(t,function(){return t._compile()}),t}
2return a(e,Ji),d(e,[{key:"connectedCallback",value:function(){var t=this;this._swiper||(this._swiper=new Mo({getElement:function(){return t._contentElement},getInitialIndex:function(){return t.getAttribute("activeIndex")||t.getAttribute("active-index")},getAutoScrollRatio:this._getAutoScrollRatio.bind(this),getBubbleWidth:function(){return parseInt(t.getAttribute("ignore-edge-width")||25,10)},isAutoScrollable:function(){return!0},preChangeHook:this._onPreChange.bind(this),postChangeHook:this._onPostChange.bind(this),refreshHook:this._onRefresh.bind(this),scrollHook:this._onScroll.bind(this)}),xt(this,function(){t._tabbarBorder=W.findChild(t._tabbarElement,".tabbar__border"),t._swiper.init({swipeable:t.hasAttribute("swipeable")})})),xt(this,function(){t._updatePosition(),W.findParent(t,"ons-page",function(t){return t===document.body})||t._show()})}},{key:"disconnectedCallback",value:function(){this._swiper&&this._swiper.initialized&&(this._swiper.dispose(),this._swiper=null,this._tabbarBorder=null,this._tabsRect=null)}},{key:"_normalizeEvent",value:function(t){return f({},t,{index:t.activeIndex,tabItem:this.tabs[t.activeIndex]})}},{key:"_onPostChange",value:function(t){t=this._normalizeEvent(t),W.triggerElementEvent(this,"postchange",t);var e=t.tabItem.pageElement;e&&e._show()}},{key:"_onPreChange",value:function(t){if((t=this._normalizeEvent(t)).cancel=function(){return t.canceled=!0},W.triggerElementEvent(this,"prechange",t),!t.canceled){var e=t,n=e.activeIndex,i=e.lastActiveIndex,o=this.tabs;if(o[n].setActive(!0),0<=i){var r=o[i];r.setActive(!1),r.pageElement&&r.pageElement._hide()}}return t.canceled}},{key:"_onScroll",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(this._tabbarBorder)if(this._tabbarBorder.style.transition="all "+(e.duration||0)+"s "+(e.timing||""),this._autogrow&&0<this._tabsRect.length){var n=Math.floor(t),i=Math.ceil(t),o=t%1;this._tabbarBorder.style.width=Za(this._tabsRect[n].width,this._tabsRect[i].width,o)+"px",this._tabbarBorder.style.transform="translate3d("+Za(this._tabsRect[n].left,this._tabsRect[i].left,o)+"px, 0, 0)"}else this._tabbarBorder.style.transform="translate3d("+100*t+"%, 0, 0)";this._onSwipe&&this._onSwipe(t,e)}},{key:"_onRefresh",value:function(){if(this._autogrow=W.hasModifier(this,"autogrow"),this._tabsRect=this.tabs.map(function(t){return t.getBoundingClientRect()}),this._tabbarBorder){this._tabbarBorder.style.display=this.hasAttribute("tab-border")||W.hasModifier(this,"material")?"block":"none";var t=this.getActiveTabIndex();0<this._tabsRect.length&&0<=t&&(this._tabbarBorder.style.width=this._tabsRect[t].width+"px")}}},{key:"_getAutoScrollRatio",value:function(t,e,n){var i=n/300*(t?-1:1);return Math.min(1,Math.max(0,.6+e*i))}},{key:"_compile",value:function(){P.prepare(this);var t=this._contentElement||W.create(".tabbar__content");t.classList.add("ons-tabbar__content");var e=this._tabbarElement||W.create(".tabbar");if(e.classList.add("ons-tabbar__footer"),!e.parentNode)for(;this.firstChild;)e.appendChild(this.firstChild);var n=Number(this.getAttribute("activeIndex"));e.children.length>n&&!W.findChild(e,"[active]")&&e.children[n].setAttribute("active",""),this._tabbarBorder=W.findChild(e,".tabbar__border")||W.create(".tabbar__border"),e.appendChild(this._tabbarBorder),e.classList.add("ons-swiper-tabbar"),!t.children[0]&&t.appendChild(document.createElement("div")),!t.children[1]&&t.appendChild(document.createElement("div")),t.appendChild=t.appendChild.bind(t.children[0]),t.insertBefore=t.insertBefore.bind(t.children[0]),this.appendChild(t),this.appendChild(e),O.initModifier(this,Qa)}},{key:"_updatePosition",value:function(){var i=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getAttribute("position"),o=this._top="top"===t||"auto"===t&&W.hasModifier(this,"material"),r=o?W.addModifier:W.removeModifier;r(this,"top");var a=W.findParent(this,"ons-page");a&&xt(a,function(){var t=0;a.children[0]&&W.match(a.children[0],"ons-toolbar")&&(r(a.children[0],"noshadow"),t=1);var e=a._getContentElement(),n=window.getComputedStyle(a._getContentElement(),null);i.style.top=o?parseInt(n.getPropertyValue("padding-top"),10)-t+"px":"",e.style.top=n.top,e.style.top=""}),b.autoStatusBarFill(function(){var t=W.findParent(i,function(t){return t.hasAttribute("status-bar-fill")});W.toggleAttribute(i,"status-bar-fill",o&&!t)})}},{key:"setActiveTab",value:function(e){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=this.getActiveTabIndex(),o=this.tabs[t],r=this.tabs[e];if(!r)return Promise.reject("Specified index does not match any tab.");if(e===t)return W.triggerElementEvent(this,"reactive",{index:e,activeIndex:e,tabItem:r}),Promise.resolve(r.pageElement);var a=r.pageElement;return(a?Promise.resolve(a):r.loaded).then(function(t){return n._swiper.setActiveIndex(e,f({reject:!0},i,{animation:o&&t?i.animation||n.getAttribute("animation"):"none",animationOptions:W.extend({duration:.3,timing:"cubic-bezier(.4, .7, .5, 1)"},n.hasAttribute("animation-options")?W.animationOptionsParse(n.getAttribute("animation-options")):{},i.animationOptions||{})})).then(function(){return i.callback instanceof Function&&i.callback(t),t})})}},{key:"setTabbarVisibility",value:function(t){var e=this;
2xt(this,function(){e._contentElement.style[e._top?"top":"bottom"]=t?"":"0px",e._tabbarElement.style.display=t?"":"none",t&&e._onRefresh()})}},{key:"show",value:function(){this.setTabbarVisibility(!0)}},{key:"hide",value:function(){this.setTabbarVisibility(!1)}},{key:"getActiveTabIndex",value:function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.tabs,e=0;e<t.length;e++)if(t[e]&&"ONS-TAB"===t[e].tagName&&t[e].isActive())return e;return-1}},{key:"_show",value:function(){var n=this;this._swiper.show(),setImmediate(function(){var t=n.tabs,e=n.getActiveTabIndex(t);n._loadInactive.resolve(),0<t.length&&0<=e&&t[e].loaded.then(function(t){return t&&setImmediate(function(){return t._show()})})})}},{key:"_hide",value:function(){this._swiper.hide();var t=this.topPage;t&&t._hide()}},{key:"_destroy",value:function(){this.tabs.forEach(function(t){return t.remove()}),this.remove()}},{key:"attributeChangedCallback",value:function(t,e,n){if("modifier"===t){O.onModifierChanged(e,n,this,Qa);var i=function(t){return/(^|\s+)top($|\s+)/i.test(t)};i(e)!==i(n)&&this._updatePosition()}else"position"===t?W.isAttached(this)&&this._updatePosition():"swipeable"===t?this._swiper&&this._swiper.updateSwipeable(this.hasAttribute("swipeable")):"hide-tabs"===t&&this.setTabbarVisibility(!this.hasAttribute("hide-tabs")||"false"===n)}},{key:"_tabbarElement",get:function(){return W.findChild(this,".tabbar")}},{key:"_contentElement",get:function(){return W.findChild(this,".tabbar__content")}},{key:"_targetElement",get:function(){var t=this._contentElement;return t&&t.children[0]||null}},{key:"topPage",get:function(){var t=this.tabs,e=this.getActiveTabIndex();return t[e]&&(t[e].pageElement||this.pages[0])||null}},{key:"pages",get:function(){return W.arrayFrom(this._targetElement.children)}},{key:"tabs",get:function(){return Array.prototype.filter.call(this._tabbarElement.children,function(t){return"ONS-TAB"===t.tagName})}},{key:"visible",get:function(){return"none"!==this._tabbarElement.style.display}},{key:"swipeable",get:function(){return this.hasAttribute("swipeable")},set:function(t){return W.toggleAttribute(this,"swipeable",t)}},{key:"onSwipe",get:function(){return this._onSwipe},set:function(t){!t||t instanceof Function||W.throw('"onSwipe" must be a function'),this._onSwipe=t}}],[{key:"observedAttributes",get:function(){return["modifier","position","swipeable","tab-border","hide-tabs"]}},{key:"rewritables",get:function(){return Ja}},{key:"events",get:function(){return["prechange","postchange","reactive"]}}]),e}();i.Tabbar=ts,customElements.define("ons-tabbar",ts);var es="tabbar__item",ns={"":"tabbar--*__item",".tabbar__button":"tabbar--*__button"},is=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return["label","icon","badge"].some(t.hasAttribute.bind(t))?t._compile():xt(t,function(){return t._compile()}),t._pageLoader=$t,t._onClick=t._onClick.bind(t),t}return a(e,Ji),d(e,[{key:"_compile",value:function(){if(P.prepare(this),this.classList.add(es),!this._button){for(var t=W.create("button.tabbar__button");this.childNodes[0];)t.appendChild(this.childNodes[0]);var e=W.create("input",{display:"none"});e.type="radio",this.appendChild(e),this.appendChild(t),this._updateButtonContent(),O.initModifier(this,ns),this._updateRipple()}}},{key:"_updateRipple",value:function(){this._button&&W.updateRipple(this._button,this.hasAttribute("ripple"))}},{key:"_updateButtonContent",value:function(){var t,i=this,o=this._button,e=this._icon;if(this.hasAttribute("icon")){var n=(e=e||W.createElement('<div class="tabbar__icon"><ons-icon></ons-icon></div>')).children[0],r=(t=n.getAttribute("icon"),function(){return n.attributeChangedCallback("icon",t,i.getAttribute("icon"))});n.setAttribute("icon",this.getAttribute("icon")),e.parentElement!==o&&o.insertBefore(e,o.firstChild),n.attributeChangedCallback instanceof Function?r():setImmediate(function(){return n.attributeChangedCallback instanceof Function&&r()})}else e&&e.remove();["label","badge"].forEach(function(t,e){var n=i.querySelector(".tabbar__"+t);i.hasAttribute(t)?((n=n||W.create(".tabbar__"+t+("badge"===t?" notification":""))).textContent=i.getAttribute(t),n.parentElement!==o&&o.appendChild(n)):n&&n.remove()})}},{key:"_onClick",value:function(){this.onClick instanceof Function?this.onClick():this._tabbar.setActiveTab(this.index,{reject:!1})}},{key:"setActive",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this._input.checked=t,this.classList.toggle("active",t),W.toggleAttribute(this,"active",t),this.hasAttribute("icon")&&this.hasAttribute("active-icon")&&this._icon.children[0].setAttribute("icon",this.getAttribute(t?"active-icon":"icon"))}},{key:"_loadPageElement",value:function(n,t){var i=this;return this._hasLoaded=!0,new Promise(function(e){i._pageLoader.load({parent:n,page:t},function(t){n.replaceChild(t,n.children[i.index]),i._loadedPage=t,e(t)})})}},{key:"isActive",value:function(){return this.classList.contains("active")}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._onClick,!1),this._loadedPage&&(this._pageLoader.unload(this._loadedPage),this._loadedPage=null,this._hasLoaded=!1,this.loaded=null)}},{key:"connectedCallback",value:function(){var a=this;if(this.addEventListener("click",this._onClick,!1),W.isAttached(this)&&!this.loaded){var s=W.defer();this.loaded=s.promise,xt(this,function(){var o=a.index,r=a._tabbar;r||W.throw("Tab elements must be children of Tabbar"),r.hasAttribute("modifier")&&W.addModifier(a,r.getAttribute("modifier")),a._hasLoaded||(a.hasAttribute("active")&&(a.setA
2ctive(!0),r.setAttribute("activeIndex",o)),o===r.tabs.length-1&&(r._onRefresh(),setImmediate(function(){return r._onRefresh()})),ts.rewritables.ready(r,function(){var t=a.page||a.getAttribute("page");if(!a.pageElement&&t){var e=r._targetElement,n=W.create("div",{height:"100%",width:"100%",visibility:"hidden"});e.insertBefore(n,e.children[o]);var i=function(){return a._loadPageElement(e,t).then(s.resolve)};return a.isActive()?i():r._loadInactive.promise.then(i)}return s.resolve(a.pageElement)}))})}}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":W.restoreClass(this,es,ns);break;case"modifier":xt(this,function(){return O.onModifierChanged(e,n,i,ns)});break;case"ripple":xt(this,function(){return i._updateRipple()});break;case"icon":case"label":case"badge":xt(this,function(){return i._updateButtonContent()});break;case"page":this.page=n||""}}},{key:"pageLoader",set:function(t){t instanceof Gt||W.throwPageLoader(),this._pageLoader=t},get:function(){return this._pageLoader}},{key:"_input",get:function(){return W.findChild(this,"input")}},{key:"_button",get:function(){return W.findChild(this,".tabbar__button")}},{key:"_icon",get:function(){return this.querySelector(".tabbar__icon")}},{key:"_tabbar",get:function(){return W.findParent(this,"ons-tabbar")}},{key:"index",get:function(){return Array.prototype.indexOf.call(this.parentElement.children,this)}},{key:"pageElement",get:function(){if(this._loadedPage)return this._loadedPage;var t=this._tabbar;return t.pages.length===t.tabs.length?t.pages[this.index]:null}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","icon","label","page","badge","class"]}}]),e}();i.Tab=is,customElements.define("ons-tab",is);var os=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.2:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,eo),d(s,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),s}(),rs=function(t){function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"linear":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.3:r;return h(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,{timing:n,delay:o,duration:a}))}return a(s,os),d(s,[{key:"show",value:function(t,e){e=e||function(){},it(t,this.def).default({opacity:0},{opacity:1}).queue(function(t){e(),t()}).play()}},{key:"hide",value:function(t,e){e=e||function(){},it(t,this.def).default({opacity:1},{opacity:0}).queue(function(t){e(),t()}).play()}}]),s}(),as=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.25:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.messageDelay=.4*s.duration+s.delay,c.isAndroid()?s.ascension=48:no.isIPhoneXPortraitPatchActive()?s.ascension=98:no.isIPhoneXLandscapePatchActive()?s.ascension=85:s.ascension=64,s}return a(l,os),d(l,[{key:"show",value:function(t,e){t=t._toast,W.globals.fabOffset=this.ascension,it.runAll(it(t,this.def).default({transform:"translate3d(0, "+this.ascension+"px, 0)"},{transform:"translate3d(0, 0, 0)"}).queue(function(t){e&&e(),t()}),it(this._getFabs()).wait(this.delay).queue({transform:"translate3d(0, -"+this.ascension+"px, 0) scale(1)"},this.def),it(W.arrayFrom(t.children),this.def).default({opacity:0},{opacity:1}))}},{key:"hide",value:function(t,e){t=t._toast,W.globals.fabOffset=0,it.runAll(it(t,this.def).default({transform:"translate3d(0, 0, 0)"},{transform:"translate3d(0, "+this.ascension+"px, 0)"}).queue(function(t){e&&e(),t()}),it(this._getFabs(),this.def).wait(this.delay).queue({transform:"translate3d(0, 0, 0) scale(1)"},this.def),it(W.arrayFrom(t.children),this.def).default({opacity:1},{opacity:0}))}},{key:"_getFabs",value:function(){return W.arrayFrom(document.querySelectorAll("ons-fab[position~=bottom], ons-speed-dial[position~=bottom]")).filter(function(t){return t.visible})}}]),l}(),ss=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.35:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return s.bodyHeight=document.body.clientHeight,no.isIPhoneXPortraitPatchActive()?s.liftAmount="calc(100% + 34px)":no.isIPhoneXLandscapePatchActive()?s.liftAmount="calc(100% + 21px)":s.liftAmount="100%",s}return a(l,os),d(l,[{key:"show",value:function(t,e){t=t._toast,it.runAll(it(t,this.def).default({transform:"translate3d(0, "+this.liftAmount+", 0)",opacity:0}
2,{transform:"translate3d(0, 0, 0)",opacity:1}).queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){t=t._toast,it.runAll(it(t,this.def).default({transform:"translate3d(0, 0, 0)",opacity:1},{transform:"translate3d(0, "+this.liftAmount+", 0)",opacity:0}).queue(function(t){e&&e(),t()}))}},{key:"_updatePosition",value:function(t){0===parseInt(t.style.top,10)&&(t.style.top=t.style.bottom="")}}]),l}(),ls=function(t){function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.timing,n=void 0===e?"ease":e,i=t.delay,o=void 0===i?0:i,r=t.duration,a=void 0===r?.35:r;h(this,l);var s=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,{timing:n,delay:o,duration:a}));return no.isIPhoneXPortraitPatchActive()?s.fallAmount="calc(-100% - 44px)":s.fallAmount="-100%",s}return a(l,os),d(l,[{key:"show",value:function(t,e){t=t._toast,this._updatePosition(t),it.runAll(it(t,this.def).default({transform:"translate3d(0, "+this.fallAmount+", 0)",opacity:0},{transform:"translate3d(0, 0, 0)",opacity:1}).queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(e,n){var i=this;e=e._toast,this._updatePosition(e),it.runAll(it(e,this.def).default({transform:"translate3d(0, 0, 0)",opacity:1},{transform:"translate3d(0, "+this.fallAmount+", 0)",opacity:0}).queue(function(t){i._updatePosition(e,!0),n&&n(),t()}))}},{key:"_updatePosition",value:function(t,e){var n=void 0;n=no.isIPhoneXPortraitPatchActive()?"44px":"0",t.style.top!==n&&(t.style.top=n,t.style.bottom="initial")}}]),l}(),us={".toast":"toast--*",".toast__message":"toast--*__message",".toast__button":"toast--*__button"},cs="toast",hs={default:c.isAndroid()?as:ss,fade:rs,ascend:as,lift:ss,fall:ls,none:os},ds=function(t){function e(){h(this,e);var t=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._defaultDBB=function(t){return t.callParentHandler()},xt(t,function(){return t._compile()}),t}return a(e,ao),d(e,[{key:"_updateAnimatorFactory",value:function(){return this._toast&&(this._toast.style.top=this._toast.style.bottom=""),new y({animators:hs,baseClass:os,baseClassName:"ToastAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){P.prepare(this),this.style.display="none",this.style.zIndex=1e4;var t="toast__message",e="toast__button",n=W.findChild(this,"."+cs);if(!n)for((n=document.createElement("div")).classList.add(cs);this.childNodes[0];)n.appendChild(this.childNodes[0]);var i=W.findChild(n,"."+e);if(i||(i=W.findChild(n,function(t){return W.match(t,".button")||W.match(t,"button")}))&&(i.classList.remove("button"),i.classList.add(e),n.appendChild(i)),!W.findChild(n,"."+t)){var o=W.findChild(n,".message");if(!o){o=document.createElement("div");for(var r=n.childNodes.length-1;0<=r;r--)n.childNodes[r]!==i&&o.insertBefore(n.childNodes[r],o.firstChild)}o.classList.add(t),n.insertBefore(o,n.firstChild)}n.parentNode!==this&&this.appendChild(n),O.initModifier(this,this._scheme)}},{key:"_scheme",get:function(){return us}},{key:"_toast",get:function(){return W.findChild(this,"."+cs)}}],[{key:"registerAnimator",value:function(t,e){e.prototype instanceof os||W.throw('"Animator" param must inherit OnsToastElement.ToastAnimator'),hs[t]=e}},{key:"animators",get:function(){return hs}},{key:"ToastAnimator",get:function(){return os}}]),e}();i.Toast=ds,customElements.define("ons-toast",ds);var fs,ps=function(t){function e(){return h(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,co),d(e,[{key:"_scheme",get:function(){return{"":"toolbar-button--*"}}},{key:"_defaultClassName",get:function(){return"toolbar-button"}},{key:"_rippleOpt",get:function(){return[this,void 0,{center:"",size:"contain",background:"transparent"}]}}]),e}();return i.ToolbarButton=ps,customElements.define("ons-toolbar-button",ps),fs=Qt,window._onsLoaded&&fs._util.warn("Onsen UI is loaded more than once."),window._onsLoaded=!0,window.addEventListener("load",function(){fs.fastClick=ee.attach(document.body);var t="touch-action"in document.body.style;fs.platform._runOnActualPlatform(function(){fs.platform.isAndroid()?fs.fastClick.destroy():fs.platform.isIOS()&&t&&(fs.platform.isIOSSafari()||fs.platform.isWKWebView())&&fs.fastClick.destroy()})},!1),fs.ready(function(){fs.enableDeviceBackButtonHandler(),fs._defaultDeviceBackButtonHandler=fs._internal.dbbDispatcher.createHandler(window.document.body,function(){Object.hasOwnProperty.call(navigator,"app")?navigator.app.exitApp():console.warn("Could not close the app. Is 'cordova.js' included?\nError: 'window.navigator.app' is undefined.")}),document.body._gestureDetector=new fs.GestureDetector(document.body,{passive:!0}),fs.platform.isWebView()||document.body.addEventListener("keydown",function(t){27===t.keyCode&&fs.fireDeviceBackButtonEvent()}),fs._setupLoadingPlaceHolders()}),Viewport.setup(),window._superSecretOns=Qt});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.