1"use strict";(self.webpackChunkyumzy=self.webpackChunkyumzy||[]).push([[8708],{38708:function(e,t,i){i.r(t),i.d(t,{ion_nav:function(){return v},ion_nav_link:function(){return m}});var n=i(8239),s=i(23150),r=i(97585),o=i(57807),a=i(71567),c=i(64425),u=i(27069);class l{constructor(e,t){this.component=e,this.params=t,this.state=1}init(e){var t=this;return(0,n.Z)(function*(){if(t.state=2,!t.element){const i=t.component;t.element=yield(0,u.a)(t.delegate,e,i,["ion-page","ion-page-invisible"],t.params)}})()}_destroy(){(0,a.m)(3!==this.state,"view state must be ATTACHED");const e=this.element;e&&(this.delegate?this.delegate.removeViewFromDom(e.parentElement,e):e.remove()),this.nav=void 0,this.state=3}}const h=(e,t,i)=>{if(!e||e.component!==t)return!1;const n=e.params;if(n===i||!n&&!i)return!0;if(!n||!i)return!1;const s=Object.keys(n),r=Object.keys(i);if(s.length!==r.length)return!1;for(const o of s)if(n[o]!==i[o])return!1;return!0},d=(e,t)=>e?e instanceof l?e:new l(e,t):null,v=class{constructor(e){(0,s.r)(this,e),this.ionNavWillLoad=(0,s.e)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,s.e)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,s.e)(this,"ionNavDidChange",3),this.transInstr=[],this.animationEnabled=!0,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.animated=!0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&(this.useRouter||this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=!!document.querySelector("ion-router")&&!this.el.closest("[no-router]"),void 0===this.swipeGesture){const e=(0,r.b)(this);this.swipeGesture=r.c.getBoolean("swipeBackEnabled","ios"===e)}this.ionNavWillLoad.emit()}componentDidLoad(){var e=this;return(0,n.Z)(function*(){e.rootChanged(),e.gesture=(yield i.e(5281).then(i.bind(i,95281))).createSwipeBackGesture(e.el,e.canStart.bind(e),e.onStart.bind(e),e.onMove.bind(e),e.onEnd.bind(e)),e.swipeGestureChanged()})()}disconnectedCallback(){for(const e of this.views)(0,c.l)(e.element,c.d),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=this.views.length=0,this.destroyed=!0}push(e,t,i,n){return this.queueTrns({insertStart:-1,insertViews:[{component:e,componentProps:t}],opts:i},n)}insert(e,t,i,n,s){return this.queueTrns({insertStart:e,insertViews:[{component:t,componentProps:i}],opts:n},s)}insertPages(e,t,i,n){return this.queueTrns({insertStart:e,insertViews:t,opts:i},n)}pop(e,t){return this.queueTrns({removeStart:-1,removeCount:1,opts:e},t)}popTo(e,t,i){const n={removeStart:-1,removeCount:-1,opts:t};return"object"==typeof e&&e.component?(n.removeView=e,n.removeStart=1):"number"==typeof e&&(n.removeStart=e+1),this.queueTrns(n,i)}popToRoot(e,t){return this.queueTrns({removeStart:1,removeCount:-1,opts:e},t)}removeIndex(e,t=1,i,n){return this.queueTrns({removeStart:e,removeCount:t,opts:i},n)}setRoot(e,t,i,n){return this.setPages([{component:e,componentProps:t}],i,n)}setPages(e,t,i){return null==t&&(t={}),!0!==t.animated&&(t.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:t},i)}setRouteId(e,t,i,s){const r=this.getActiveSync();if(h(r,e,t))return Promise.resolve({changed:!1,element:r.element});let o;const a=new Promise(e=>o=e);let c;const u={updateURL:!1,viewIsReady:e=>{let t;const i=new Promise(e=>t=e);return o({changed:!0,element:e,markVisible:(s=(0,n.Z)(function*(){t(),yield c}),function(){return s.apply(this,arguments)})}),i;var s}};if("root"===i)c=this.setRoot(e,t,u);else{const n=this.views.find(i=>h(i,e,t));n?c=this.popTo(n,Object.assign(Object.assign({},u),{direction:"back",animationBuilder:s})):"forward"===i?c=this.push(e,t,Object.assign(Object.assign({},u),{animationBuilder:s})):"back"===i&&(c=this.setRoot(e,t,Object.assign(Object.assign({},u),{direction:"back",animated:!0,animationBuilder:s})))}return a}getRouteId(){var e=this;return(0,n.Z)(function*(){const t=e.getActiveSync();return t?{id:t.element.tagName,params:t.params,element:t.element}:void 0})()}getActive(){return Promise.resolve(this.getActiveSync())}getByIndex(e){return Promise.resolve(this.views[e])}canGoBack(e){return Promise.resolve(this.canGoBackSync(e))}getPrevious(e){return Promise.resolve(this.getPreviousSync(e))}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(e=this.getActiveSync()){return!(!e||!this.getPreviousSync(e))}
1getPreviousSync(e=this.getActiveSync()){if(!e)return;const t=this.views,i=t.indexOf(e);return i>0?t[i-1]:void 0}queueTrns(e,t){var i=this;return(0,n.Z)(function*(){if(i.isTransitioning&&null!=e.opts&&e.opts.skipIfBusy)return Promise.resolve(!1);const n=new Promise((t,i)=>{e.resolve=t,e.reject=i});if(e.done=t,e.opts&&!1!==e.opts.updateURL&&i.useRouter){const t=document.querySelector("ion-router");if(t){const i=yield t.canTransition();if(!1===i)return Promise.resolve(!1);if("string"==typeof i)return t.push(i,e.opts.direction||"back"),Promise.resolve(!1)}}return e.insertViews&&0===e.insertViews.length&&(e.insertViews=void 0),i.transInstr.push(e),i.nextTrns(),n})()}success(e,t){if(this.destroyed)this.fireError("nav controller was destroyed",t);else if(t.done&&t.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),t.resolve(e.hasCompleted),!1!==t.opts.updateURL&&this.useRouter){const t=document.querySelector("ion-router");if(t){const i="back"===e.direction?"back":"forward";t.navChanged(i)}}}failed(e,t){this.destroyed?this.fireError("nav controller was destroyed",t):(this.transInstr.length=0,this.fireError(e,t))}fireError(e,t){t.done&&t.done(!1,!1,e),t.reject&&!this.destroyed?t.reject(e):t.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return!!e&&(this.runTransition(e),!0)}runTransition(e){var t=this;return(0,n.Z)(function*(){try{t.ionNavWillChange.emit(),t.isTransitioning=!0,t.prepareTI(e);const i=t.getActiveSync(),n=t.getEnteringView(e,i);if(!i&&!n)throw new Error("no views in the stack to be removed");n&&1===n.state&&(yield n.init(t.el)),t.postViewInit(n,i,e);const s=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&n!==i;s&&e.opts&&i&&("back"===e.opts.direction&&(e.opts.animationBuilder=e.opts.animationBuilder||n&&n.animationBuilder),i.animationBuilder=e.opts.animationBuilder);const r=s?yield t.transition(n,i,e):{hasCompleted:!0,requiresTransition:!1};t.success(r,e),t.ionNavDidChange.emit()}catch(i){t.failed(i,e)}t.isTransitioning=!1,t.nextTrns()})()}prepareTI(e){const t=this.views.length;if(e.opts=e.opts||{},void 0===e.opts.delegate&&(e.opts.delegate=this.delegate),void 0!==e.removeView){(0,a.m)(void 0!==e.removeStart,"removeView needs removeStart"),(0,a.m)(void 0!==e.removeCount,"removeView needs removeCount");const t=this.views.indexOf(e.removeView);if(t<0)throw new Error("removeView was not found");e.removeStart+=t}void 0!==e.removeStart&&(e.removeStart<0&&(e.removeStart=t-1),e.removeCount<0&&(e.removeCount=t-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===t),e.insertViews&&((e.insertStart<0||e.insertStart>t)&&(e.insertStart=t),e.enteringRequiresTransition=e.insertStart===t);const i=e.insertViews;if(!i)return;(0,a.m)(i.length>0,"length can not be zero");const n=(e=>e.map(e=>e instanceof l?e:"component"in e?d(e.component,null===e.componentProps?void 0:e.componentProps):d(e,void 0)).filter(e=>null!==e))(i);if(0===n.length)throw new Error("invalid views to insert");for(const s of n){s.delegate=e.opts.delegate;const t=s.nav;if(t&&t!==this)throw new Error("inserted view was already inserted");if(3===s.state)throw new Error("inserted view was already destroyed")}e.insertViews=n}getEnteringView(e,t){const i=e.insertViews;if(void 0!==i)return i[i.length-1];const n=e.removeStart;if(void 0!==n){const i=this.views,s=n+e.removeCount;for(let e=i.length-1;e>=0;e--){const r=i[e];if((e<n||e>=s)&&r!==t)return r}}}postViewInit(e,t,i){(0,a.m)(t||e,"Both leavingView and enteringView are null"),(0,a.m)(i.resolve,"resolve must be valid"),(0,a.m)(i.reject,"reject must be valid");const n=i.opts,s=i.insertViews,r=i.removeStart,o=i.removeCount;let u;if(void 0!==r&&void 0!==o){(0,a.m)(r>=0,"removeStart can not be negative"),(0,a.m)(o>=0,"removeCount can not be negative"),u=[];for(let i=0;i<o;i++){const n=this.views[i+r];n&&n!==e&&n!==t&&u.push(n)}n.direction=n.direction||"back"}const l=this.views.length+(void 0!==s?s.length:0)-(void 0!==o?o:0);if((0,a.m)(l>=0,"final balance can not be negative"),0===l)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(s){let e=i.insertStart;for(const t of s)this.insertViewAt(t,e),e++;i.enteringRequiresTransition&&(n.direction=n.direction||"forward")}if(u&&u.length>0){for(const e of u)(0,c.l)(e.element,c.b),(0,c.l)(e.element,c.c),(0,c.l)(e.element,c.d);for(const e of u)this.destroyView(e)}}transition(e,t,i){var s=this;return(0,n.Z)(function*(){const n=i.opts,o=n.progressAnimation?e=>s.sbAni=e:void 0,a=(0,r.b)(s),u=e.element,l=t&&t.element,h=Object.assign(Object.assign({mode:a,showGoBack:s.canGoBackSync(e),baseEl:s.el,progressCallback:o,animated:s.animated&&r.c.getBoolean("animated",!0),enteringEl:u,leavingEl:l},n),{animationBuilder:n.animationBuilder||s.animation||r.c.get("navAnimation")}),{hasCompleted:d}=yield(0,c.t)(h);return s.transitionFinish(d,e,t,n)})()}transitionFinish(e,t,i,n){const s=e?t:i;return s&&this.cleanup(s),{hasCompleted:e,requiresTransition:!0,enteringView:t,leavingView:i,direction:n.direction}}insertViewAt(e,t){const i=this.views,n=i.indexOf(e);n>-1?((0,a.m)(e.nav===this,"view is not part of the nav"),i.splice(t,0,i.splice(n,1)[0])):((0,a.m)(!e.nav,"nav is used"),e.nav=this,i.splice(t,0,e))}removeView(e){(0,a.m)(2===e.state||3===e.state,"view state should be loaded or destroyed");const t=this.views,i=t.indexOf(e);(0,a.m)(i>-1,"view must be part of the stack"),i>=0&&t.splice(i,1)}destroyView(e){e._destroy(),this.removeView(e)}cleanup(e){if(this.destroyed)return;const t=this.views,i=t.indexOf(e);for(let n=t.length-1;n>=0;n--){const e=t[n],s=e.element;s&&(n>i?((0,c.l)(s,c.d),this.destroyView(e)):n<i&&(0,c.s)(s,!0))}}canStart(){return!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.animationEnabled&&this.canGoBackSync()}onStart(){this.queueTrns({removeStart:-1,removeCount:1,opts:{direction:"back",progressAnimation:!0}},void 0)}onMove(e){this.sbAni&&this.sbAni.progressStep(e)}onEnd(e,t,i){if(this.sbAni){this.animationEnabled=!1,this.sbAni.onFinish(()=>{this.animationEnabled=!0},{oneTimeCallback:!0});let n=e?-.001:.001;e?n+=(0,o.g)([0,0],[.32,.72],[0,1],[1,1],t)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),n+=(0,o.g)([0,0],[1,0],[.68,.28],[1,1],t)[0]),this.sbAni.progressEnd(e?1:0,n,i)}}render(){return(0,s.h)("slot",null)}get el(){return(0,s.i)(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};v.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";const m=class{constructor(e){(0,s.r)(this,e),this.routerDirection="forward",this.onClick=()=>((e,t,i,n,s)=>{const r=e.closest("ion-nav");if(r)if("forward"===t){if(void 0!==i)return r.push(i,n,{skipIfBusy:!0,animationBuilder:s})}else if("root"===t){if(void 0!==i)return r.setRoot(i,n,{skipIfBusy:!0,animationBuilder:s})}else if("back"===t)return r.pop({skipIfBusy:!0,animationBuilder:s});return Promise.resolve(!1)})(this.el,this.routerDirection,this.component,this.componentProps,this.routerAnimation)}render(){return(0,s.h)(s.H,{onClick:this.onClick})}get el(){return(0,s.i)(this)}}}}]);
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.