UNPKG

@tindtechnologies/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

1 lines 20.9 kB
"use strict";(self.webpackChunkUV=self.webpackChunkUV||[]).push([[4105],{4105:(t,e,n)=>{n.r(e),n.d(e,{ion_action_sheet:()=>p});var o=n(5873),i=n(636),r=n(1178),a=n(6653),s=function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,s)}c((o=o.apply(t,e||[])).next())}))},c=function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},l=function(t){var e=(0,a.c)(),n=(0,a.c)(),o=(0,a.c)();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,.4),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,o])},u=function(t){var e=(0,a.c)(),n=(0,a.c)(),o=(0,a.c)();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.4,0),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,o])},d=function(t){var e=(0,a.c)(),n=(0,a.c)(),o=(0,a.c)();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,.32),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,o])},h=function(t){var e=(0,a.c)(),n=(0,a.c)(),o=(0,a.c)();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.32,0),o.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,o])},p=function(){function t(t){var e=this;(0,o.r)(this,t),this.presented=!1,this.mode=(0,o.f)(this),this.keyboardClose=!0,this.buttons=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=function(){e.dismiss(void 0,r.B)},this.dispatchCancelHandler=function(t){var n=t.detail.role;if((0,r.i)(n)){var o=e.getButtons().find((function(t){return"cancel"===t.role}));e.callButtonHandler(o)}},(0,r.c)(this.el),this.didPresent=(0,o.c)(this,"ionActionSheetDidPresent",7),this.willPresent=(0,o.c)(this,"ionActionSheetWillPresent",7),this.willDismiss=(0,o.c)(this,"ionActionSheetWillDismiss",7),this.didDismiss=(0,o.c)(this,"ionActionSheetDidDismiss",7)}return t.prototype.present=function(){return(0,r.d)(this,"actionSheetEnter",l,d)},t.prototype.dismiss=function(t,e){return(0,r.e)(this,t,e,"actionSheetLeave",u,h)},t.prototype.onDidDismiss=function(){return(0,r.f)(this.el,"ionActionSheetDidDismiss")},t.prototype.onWillDismiss=function(){return(0,r.f)(this.el,"ionActionSheetWillDismiss")},t.prototype.buttonClick=function(t){return s(this,void 0,void 0,(function(){var e;return c(this,(function(n){switch(n.label){case 0:return e=t.role,(0,r.i)(e)?[2,this.dismiss(void 0,e)]:[4,this.callButtonHandler(t)];case 1:return n.sent()?[2,this.dismiss(void 0,t.role)]:[2,Promise.resolve()]}}))}))},t.prototype.callButtonHandler=function(t){return s(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return t?[4,(0,r.s)(t.handler)]:[3,2];case 1:if(!1===e.sent())return[2,!1];e.label=2;case 2:return[2,!0]}}))}))},t.prototype.getButtons=function(){return this.buttons.map((function(t){return"string"==typeof t?{text:t}:t}))},t.prototype.render=function(){var t,e=this,n=(0,o.f)(this),r=this.getButtons(),a=r.find((function(t){return"cancel"===t.role})),s=r.filter((function(t){return"cancel"!==t.role}));return(0,o.h)(o.H,{role:"dialog","aria-modal":"true",style:{zIndex:""+(2e4+this.overlayIndex)},class:Object.assign(Object.assign((t={},t[n]=!0,t),(0,i.g)(this.cssClass)),{"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap},(0,o.h)("ion-backdrop",{tappable:this.backdropDismiss}),(0,o.h)("div",{class:"action-sheet-wrapper",role:"dialog"},(0,o.h)("div",{class:"action-sheet-container"},(0,o.h)("div",{class:"action-sheet-group"},void 0!==this.header&&(0,o.h)("div",{class:"action-sheet-title"},this.header,this.subHeader&&(0,o.h)("div",{class:"action-sheet-sub-title"},this.subHeader)),s.map((function(t){return(0,o.h)("button",{type:"button","ion-activatable":!0,class:f(t),onClick:function(){return e.buttonClick(t)}},(0,o.h)("span",{class:"action-sheet-button-inner"},t.icon&&(0,o.h)("ion-icon",{icon:t.icon,lazy:!1,class:"action-sheet-icon"}),t.text),"md"===n&&(0,o.h)("ion-ripple-effect",null))}))),a&&(0,o.h)("div",{class:"action-sheet-group action-sheet-group-cancel"},(0,o.h)("button",{type:"button",class:f(a),onClick:function(){return e.buttonClick(a)}},(0,o.h)("span",{class:"action-sheet-button-inner"},a.icon&&(0,o.h)("ion-icon",{icon:a.icon,lazy:!1,class:"action-sheet-icon"}),a.text))))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.d)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"style",{get:function(){return".sc-ion-action-sheet-ios-h{--color:initial;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:100%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;font-family:var(--ion-font-family,inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;width:100%;border:0;outline:none;font-family:inherit}.action-sheet-button.activated.sc-ion-action-sheet-ios{background:var(--background-activated)}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color,var(--ion-color-step-100,#f9f9f9));--background-selected:var(--ion-background-color,#fff);--background-activated:rgba(var(--ion-text-color-rgb,0,0,0),0.08);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top,0);margin-bottom:var(--ion-safe-area-bottom,0)}@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px;overflow:hidden}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter:blur(0)) or (backdrop-filter:blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios, .action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(var(--ion-background-color-rgb,255,255,255),.8)),to(rgba(var(--ion-background-color-rgb,255,255,255),.8))),-webkit-gradient(linear,left bottom,left top,from(rgba(var(--ion-background-color-rgb,255,255,255),.4)),color-stop(50%,rgba(var(--ion-background-color-rgb,255,255,255),.4)),color-stop(50%,rgba(var(--ion-background-color-rgb,255,255,255),.8)));background-image:linear-gradient(0deg,rgba(var(--ion-background-color-rgb,255,255,255),.8),rgba(var(--ion-background-color-rgb,255,255,255),.8) 100%),linear-gradient(0deg,rgba(var(--ion-background-color-rgb,255,255,255),.4),rgba(var(--ion-background-color-rgb,255,255,255),.4) 50%,rgba(var(--ion-background-color-rgb,255,255,255),.8) 0);background-repeat:no-repeat;background-position:top,bottom;background-size:100% calc(100% - 1px),100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb,255,255,255),.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--background-selected)}}.action-sheet-button.sc-ion-action-sheet-ios, .action-sheet-title.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(var(--ion-text-color-rgb,0,0,0),.08)),color-stop(50%,rgba(var(--ion-text-color-rgb,0,0,0),.08)),color-stop(50%,transparent));background-image:linear-gradient(0deg,rgba(var(--ion-text-color-rgb,0,0,0),.08),rgba(var(--ion-text-color-rgb,0,0,0),.08) 50%,transparent 0);background-repeat:no-repeat;background-position:bottom;background-size:100% 1px}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color,var(--ion-color-step-400,#999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:15px;padding-bottom:0;font-size:12px}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;color:var(--color,var(--ion-color-primary,#3880ff));font-size:20px;contain:strict}@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:.1em;font-size:28px}@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:.1em;margin-inline-end:.1em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{background:var(--background-selected);font-weight:700}.action-sheet-destructive.sc-ion-action-sheet-ios{color:var(--ion-color-danger,#f04141)}.action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--background-selected);font-weight:600}"},enumerable:!0,configurable:!0}),t}(),f=function(t){var e;return Object.assign(((e={"action-sheet-button":!0,"ion-activatable":!0})["action-sheet-"+t.role]=void 0!==t.role,e),(0,i.g)(t.cssClass))}},1178:(t,e,n)=>{n.d(e,{B:()=>C,a:()=>u,b:()=>l,c:()=>p,d:()=>v,e:()=>k,f:()=>x,g:()=>f,h:()=>g,i:()=>S,j:()=>m,k:()=>d,p:()=>h,s:()=>z});var o=n(5873),i=function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,s)}c((o=o.apply(t,e||[])).next())}))},r=function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},a=void 0,s=0,c=function(t){return{create:function(e){return f(t,e)},dismiss:function(e,n,o){return g(document,e,n,t,o)},getTop:function(){return i(this,void 0,void 0,(function(){return r(this,(function(e){return[2,m(document,t)]}))}))}}},l=c("ion-alert"),u=c("ion-action-sheet"),d=c("ion-picker"),h=c("ion-popover"),p=function(t){var e=document;b(e);var n=s++;t.overlayIndex=n,t.hasAttribute("id")||(t.id="ion-overlay-"+n)},f=function(t,e){return customElements.whenDefined(t).then((function(){var n=document,o=n.createElement(t);return o.classList.add("overlay-hidden"),Object.assign(o,e),y(n).appendChild(o),o.componentOnReady()}))},b=function(t){0===s&&(s=1,t.addEventListener("focusin",(function(e){var n=m(t);if(n&&n.backdropDismiss&&!D(n,e.target)){var o=n.querySelector("input,button");o&&o.focus()}})),t.addEventListener("ionBackButton",(function(e){var n=m(t);n&&n.backdropDismiss&&e.detail.register(100,(function(){return n.dismiss(void 0,C)}))})),t.addEventListener("keyup",(function(e){if("Escape"===e.key){var n=m(t);n&&n.backdropDismiss&&n.dismiss(void 0,C)}})))},g=function(t,e,n,o,i){var r=m(t,o,i);return r?r.dismiss(e,n):Promise.reject("overlay does not exist")},m=function(t,e,n){var o=function(t,e){return void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter((function(t){return t.overlayIndex>0}))}(t,e);return void 0===n?o[o.length-1]:o.find((function(t){return t.id===n}))},v=function(t,e,n,s,c){return i(a,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return t.presented?[2]:(t.presented=!0,t.willPresent.emit(),i=t.enterAnimation?t.enterAnimation:o.i.get(e,"ios"===t.mode?n:s),[4,w(t,i,t.el,c)]);case 1:return r.sent()&&t.didPresent.emit(),[2]}}))}))},k=function(t,e,n,s,c,l,u){return i(a,void 0,void 0,(function(){var i,a;return r(this,(function(r){switch(r.label){case 0:if(!t.presented)return[2,!1];t.presented=!1,r.label=1;case 1:return r.trys.push([1,3,,4]),t.willDismiss.emit({data:e,role:n}),i=t.leaveAnimation?t.leaveAnimation:o.i.get(s,"ios"===t.mode?c:l),[4,w(t,i,t.el,u)];case 2:return r.sent(),t.didDismiss.emit({data:e,role:n}),[3,4];case 3:return a=r.sent(),console.error(a),[3,4];case 4:return t.el.remove(),[2,!0]}}))}))},y=function(t){return t.querySelector("ion-app")||t.body},w=function(t,e,s,c){return i(a,void 0,void 0,(function(){var i,a,l,u,d;return r(this,(function(r){switch(r.label){case 0:if(t.animation)return t.animation.destroy(),t.animation=void 0,[2,!1];s.classList.remove("overlay-hidden"),i=s.shadowRoot||t.el,l=!0,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,n.e(1605).then(n.bind(n,1605))];case 2:return[4,r.sent().create(e,i,c)];case 3:return a=r.sent(),[3,5];case 4:return r.sent(),(a=e(i,c)).fill("both"),l=!1,[3,5];case 5:return t.animation=a,t.animated&&o.i.getBoolean("animated",!0)||a.duration(0),t.keyboardClose&&a.beforeAddWrite((function(){var t=s.ownerDocument.activeElement;t&&t.matches("input, ion-input, ion-textarea")&&t.blur()})),[4,a.playAsync()];case 6:return u=r.sent(),d=void 0===u||a.hasCompleted,l&&a.destroy(),t.animation=void 0,[2,d]}}))}))},x=function(t,e){var n,o=new Promise((function(t){return n=t}));return E(t,e,(function(t){n(t.detail)})),o},E=function(t,e,n){var o=function(i){t.removeEventListener(e,o),n(i)};t.addEventListener(e,o)},S=function(t){return"cancel"===t||t===C},D=function(t,e){for(;e;){if(e===t)return!0;e=e.parentElement}return!1},A=function(t){return t()},z=function(t,e){if("function"==typeof t)return o.i.get("_zoneGate",A)((function(){try{return t(e)}catch(t){console.error(t)}}))},C="backdrop"},636:(t,e,n)=>{n.d(e,{c:()=>i,g:()=>r,h:()=>o,o:()=>s});var o=function(t,e){return null!==e.closest(t)},i=function(t){var e;return"string"==typeof t&&t.length>0?((e={"ion-color":!0})["ion-color-"+t]=!0,e):void 0},r=function(t){var e={};return function(t){return void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter((function(t){return null!=t})).map((function(t){return t.trim()})).filter((function(t){return""!==t})):[]}(t).forEach((function(t){return e[t]=!0})),e},a=/^[a-z][a-z0-9+\-.]*:/,s=function(t,e,n){return o=void 0,i=void 0,s=function(){var o;return function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(i){return null!=t&&"#"!==t[0]&&!a.test(t)&&(o=document.querySelector("ion-router"))?(null!=e&&e.preventDefault(),[2,o.push(t,n)]):[2,!1]}))},new((r=void 0)||(r=Promise))((function(t,e){function n(t){try{c(s.next(t))}catch(t){e(t)}}function a(t){try{c(s.throw(t))}catch(t){e(t)}}function c(e){e.done?t(e.value):new r((function(t){t(e.value)})).then(n,a)}c((s=s.apply(o,i||[])).next())}));var o,i,r,s}}}]);