text: /*!
   * (C) Ionic http://ionicframework.com - MIT License
   * Built with http://stenciljs.com
   */
  Ionic.loadBundle("1v4xjb1i",["exports","./chunk5.js","./chunk1.js","./chunk2.js","./chunk3.js"],function(e,t,o,n,i){var r=window.Ionic.h;function a(e,t){var o=new e,n=new e;n.addElement(t.querySelector("ion-backdrop"));var i=new e;return i.addElement(t.querySelector(".modal-wrapper")),i.beforeStyles({opacity:1}).fromTo("translateY","100%","0%"),n.fromTo("opacity",.01,.4),Promise.resolve(o.addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(400).beforeAddClass("show-modal").add(n).add(i))}function l(e,t){var o=new e,n=new e;n.addElement(t.querySelector("ion-backdrop"));var i=new e,r=t.querySelector(".modal-wrapper");i.addElement(r);var a=r.getBoundingClientRect();return i.beforeStyles({opacity:1}).fromTo("translateY","0%",window.innerHeight-a.top+"px"),n.fromTo("opacity",.4,0),Promise.resolve(o.addElement(t).easing("ease-out").duration(250).add(n).add(i))}function s(e,t){var o=new e,n=new e;n.addElement(t.querySelector("ion-backdrop"));var i=new e;return i.addElement(t.querySelector(".modal-wrapper")),i.fromTo("opacity",.01,1).fromTo("translateY","40px","0px"),n.fromTo("opacity",.01,.4),Promise.resolve(o.addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).beforeAddClass("show-modal").add(n).add(i))}function d(e,t){var o=new e,n=new e;n.addElement(t.querySelector("ion-backdrop"));var i=new e,r=t.querySelector(".modal-wrapper");return i.addElement(r),i.fromTo("opacity",.99,0).fromTo("translateY","0px","40px"),n.fromTo("opacity",.4,0),Promise.resolve(o.addElement(t).easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).add(n).add(i))}var m=function(){function e(){this.presented=!1,this.data={},this.enableBackdropDismiss=!0,this.showBackdrop=!0,this.willAnimate=!0}return e.prototype.componentDidLoad=function(){this.ionModalDidLoad.emit()},e.prototype.componentDidUnload=function(){this.ionModalDidUnload.emit()},e.prototype.onDismiss=function(e){e.stopPropagation(),e.preventDefault(),this.dismiss()},e.prototype.onBackdropTap=function(){this.dismiss(null,i.BACKDROP).catch()},e.prototype.present=function(){var e=this;if(this.presented)return Promise.reject("overlay already presented");this.presented=!0,this.ionModalWillPresent.emit(),this.el.style.zIndex=""+(2e4+this.overlayId);var o=this.enterAnimation||this.config.get("modalEnter","ios"===this.mode?a:s),n=this.el.querySelector("."+c);this.delegate||(this.delegate=new t.DomFrameworkDelegate);var i=[];return this.cssClass&&this.cssClass.length&&i.push(this.cssClass),this.data=this.data||{},this.data.modal=this.el,this.delegate.attachViewToDom(n,this.component,this.data,i).then(function(t){t.element.classList.add("ion-page"),e.usersComponentElement=t.element}).then(function(){return e.playAnimation(o)}).then(function(){e.ionModalDidPresent.emit()})},e.prototype.dismiss=function(e,n){var i=this;if(!this.presented)return Promise.reject("overlay is not presented");this.presented=!1,this.ionModalWillDismiss.emit({data:e,role:n}),this.delegate||(this.delegate=new t.DomFrameworkDelegate);var r=this.leaveAnimation||this.config.get("modalLeave","ios"===this.mode?l:d);return this.playAnimation(r).then(function(){return i.ionModalDidDismiss.emit({data:e,role:n}),o.domControllerAsync(i.dom.write,function(){var e=i.el.querySelector("."+c);i.delegate.removeViewFromDom(e,i.usersComponentElement),i.el.parentNode.removeChild(i.el)})})},e.prototype.playAnimation=function(e){return i.overlayAnimation(this,e,this.willAnimate,this.el,void 0)},e.prototype.getUserComponentContainer=function(){return this.el.querySelector("."+c)},e.prototype.render=function(){var e=n.createThemedClasses(this.mode,this.color,"modal-wrapper");return[r("ion-backdrop",{visible:this.showBackdrop,tappable:this.enableBackdropDismiss}),r("div",{role:"dialog",class:e})]},Object.defineProperty(e,"is",{get:function(){return"ion-modal"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"host",{get:function(){return{theme:"modal"}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{animationCtrl:{connect:"ion-animation-controller"},color:{type:String,attr:"color"},component:{type:"Any",attr:"component"},config:{context:"config"},cssClass:{type:String,attr:"css-class"},data:{type:"Any",attr:"data"},delegate:{type:"Any",attr:"delegate",mutable:!0},dismiss:{method:!0},dom:{context:"dom"},el:{elementRef:!0},enableBackdropDismiss:{type:Boolean,attr:"enable-backdrop-dismiss"},enterAnimation:{type:"Any",attr:"enter-animation"},getUserComponentContainer:{method:!0},leaveAnimation:{type:"Any",attr:"leave-animation"},mode:{type:"Any",attr:"mode"},overlayId:{type:Number,attr:"overlay-id"},present:{method:!0},showBackdrop:{type:Boolean,attr:"show-backdrop"},willAnimate:{type:Boolean,attr:"will-animate"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"ionModalDidLoad",method:"ionModalDidLoad",bubbles:!0,cancelable:!0,composed:!0},{name:"ionModalDidPresent",method:"ionModalDidPresent",bubbles:!0,cancelable:!0,composed:!0},{name:"ionModalWillPresent",method:"ionModalWillPresent",bubbles:!0,cancelable:!0,composed:!0},{name:"ionModalWillDismiss",method:"ionModalWillDismiss",bubbles:!0,cancelable:!0,composed:!0},{name:"ionModalDidDismiss",method:"ionModalDidDismiss",bubbles:!0,cancelable:!0,composed:!0},{name:"ionModalDidUnload",method:"ionModalDidUnload",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"ion-modal{left:0;top:0;position:absolute;display:block;width:100%;height:100%;contain:strict}ion-modal-controller{display:none}\@media not all and (min-width:768px) and (min-height:600px){ion-modal ion-backdrop{display:none}}.modal-wrapper{z-index:10;height:100%;contain:strict}\@media only screen and (min-width:768px) and (min-height:600px){.modal-wrapper{left:calc(50% - (600px/2));top:calc(50% - (500px/2));position:absolute;width:600px;height:500px}}\@media only screen and (min-width:768px) and (min-height:768px){.modal-wrapper{left:calc(50% - (600px/2));top:calc(50% - (600px/2));position:absolute;width:600px;height:600px}}.modal-wrapper-ios{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}\@media only screen and (min-width:768px) and (min-height:600px){.modal-wrapper-ios{border-radius:10px;overflow:hidden}}"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"styleMode",{get:function(){return"ios"},enumerable:!0,configurable:!0}),e}(),c="modal-wrapper",p=function(){function e(){this.modals=new Map}return e.prototype.modalWillPresent=function(e){this.modals.set(e.target.overlayId,e.target)},e.prototype.modalWillDismiss=function(e){this.modals.delete(e.target.overlayId)},e.prototype.escapeKeyUp=function(){i.removeLastOverlay(this.modals)},e.prototype.create=function(e){return i.createOverlay(document.createElement("ion-modal"),e)},e.prototype.dismiss=function(e,t,o){return void 0===o&&(o=-1),i.dismissOverlay(e,t,this.modals,o)},e.prototype.getTop=function(){return i.getTopOverlay(this.modals)},Object.defineProperty(e,"is",{get:function(){return"ion-modal-controller"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{create:{method:!0},dismiss:{method:!0},getTop:{method:!0}}},enumerable:!0,configurable:!0}),e}();e.IonModal=m,e.IonModalController=p,Object.defineProperty(e,"__esModule",{value:!0})});