@hotwax/dxp-components 1.22.1 → 1.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,7 +89,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
89
89
  * (C) Ionic http://ionicframework.com - MIT License
90
90
  */let lastOverlayIndex=0,lastId=0;const activeAnimations=new WeakMap,createController$1=t=>({create(e){return createOverlay(t,e)},dismiss(e,r,o){return dismissOverlay(document,e,r,t,o)},async getTop(){return getPresentedOverlay(document,t)}}),alertController=createController$1("ion-alert"),actionSheetController=createController$1("ion-action-sheet"),popoverController=createController$1("ion-popover"),toastController$1=createController$1("ion-toast"),prepareOverlay=t=>{typeof document<"u"&&connectListeners(document);const e=lastOverlayIndex++;t.overlayIndex=e},setOverlayId=t=>(t.hasAttribute("id")||(t.id=`ion-overlay-${++lastId}`),t.id),createOverlay=(t,e)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(t).then(()=>{const r=document.createElement(t);return r.classList.add("overlay-hidden"),Object.assign(r,Object.assign(Object.assign({},e),{hasController:!0})),getAppRoot(document).appendChild(r),new Promise(o=>componentOnReady(r,o))}):Promise.resolve(),focusableQueryString='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',focusFirstDescendant=(t,e)=>{let r=t.querySelector(focusableQueryString);const o=r==null?void 0:r.shadowRoot;o&&(r=o.querySelector(focusableQueryString)||r),r?focusElement(r):e.focus()},isOverlayHidden=t=>t.classList.contains("overlay-hidden"),focusLastDescendant=(t,e)=>{const r=Array.from(t.querySelectorAll(focusableQueryString));let o=r.length>0?r[r.length-1]:null;const a=o==null?void 0:o.shadowRoot;a&&(o=a.querySelector(focusableQueryString)||o),o?o.focus():e.focus()},trapKeyboardFocus=(t,e)=>{const r=getPresentedOverlay(e,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),o=t.target;if(!r||!o||r.classList.contains("ion-disable-focus-trap"))return;const a=()=>{if(r===o)r.lastFocus=void 0;else{const u=getElementRoot(r);if(!u.contains(o))return;const d=u.querySelector(".ion-overlay-wrapper");if(!d)return;if(d.contains(o)||o===u.querySelector("ion-backdrop"))r.lastFocus=o;else{const p=r.lastFocus;focusFirstDescendant(d,r),p===e.activeElement&&focusLastDescendant(d,r),r.lastFocus=e.activeElement}}},c=()=>{if(r.contains(o))r.lastFocus=o;else{const u=r.lastFocus;focusFirstDescendant(r,r),u===e.activeElement&&focusLastDescendant(r,r),r.lastFocus=e.activeElement}};r.shadowRoot?c():a()},connectListeners=t=>{lastOverlayIndex===0&&(lastOverlayIndex=1,t.addEventListener("focus",e=>{trapKeyboardFocus(e,t)},!0),t.addEventListener("ionBackButton",e=>{const r=getPresentedOverlay(t);r!=null&&r.backdropDismiss&&e.detail.register(OVERLAY_BACK_BUTTON_PRIORITY,()=>r.dismiss(void 0,BACKDROP))}),t.addEventListener("keydown",e=>{if(e.key==="Escape"){const r=getPresentedOverlay(t);r!=null&&r.backdropDismiss&&r.dismiss(void 0,BACKDROP)}}))},dismissOverlay=(t,e,r,o,a)=>{const c=getPresentedOverlay(t,o,a);return c?c.dismiss(e,r):Promise.reject("overlay does not exist")},getOverlays=(t,e)=>(e===void 0&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(r=>r.overlayIndex>0)),getPresentedOverlays=(t,e)=>getOverlays(t,e).filter(r=>!isOverlayHidden(r)),getPresentedOverlay=(t,e,r)=>{const o=getPresentedOverlays(t,e);return r===void 0?o[o.length-1]:o.find(a=>a.id===r)},setRootAriaHidden=(t=!1)=>{const r=getAppRoot(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");r&&(t?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden"))},present=async(t,e,r,o,a)=>{var c,u;if(t.presented)return;setRootAriaHidden(!0),t.presented=!0,t.willPresent.emit(),(c=t.willPresentShorthand)===null||c===void 0||c.emit();const d=getIonMode$2(t),p=t.enterAnimation?t.enterAnimation:config$1.get(e,d==="ios"?r:o);await overlayAnimation(t,p,t.el,a)&&(t.didPresent.emit(),(u=t.didPresentShorthand)===null||u===void 0||u.emit()),t.el.tagName!=="ION-TOAST"&&focusPreviousElementOnDismiss(t.el),t.keyboardClose&&(document.activeElement===null||!t.el.contains(document.activeElement))&&t.el.focus()},focusPreviousElementOnDismiss=async t=>{let e=document.activeElement;if(!e)return;const r=e==null?void 0:e.shadowRoot;r&&(e=r.querySelector(focusableQueryString)||e),await t.onDidDismiss(),e.focus()},dismiss=async(t,e,r,o,a,c,u)=>{var d,p;if(!t.presented)return!1;doc!==void 0&&getPresentedOverlays(doc).length===1&&setRootAriaHidden(!1),t.presented=!1;try{t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:r}),(d=t.willDismissShorthand)===null||d===void 0||d.emit({data:e,role:r});const g=getIonMode$2(t),b=t.leaveAnimation?t.leaveAnimation:config$1.get(o,g==="ios"?a:c);r!==GESTURE&&await overlayAnimation(t,b,t.el,u),t.didDismiss.emit({data:e,role:r}),(p=t.didDismissShorthand)===null||p===void 0||p.emit({data:e,role:r}),activeAnimations.delete(t),t.el.classList.add("overlay-hidden"),t.el.style.removeProperty("pointer-events"),t.el.lastFocus!==void 0&&(t.el.lastFocus=void 0)}catch(g){console.error(g)}return t.el.remove(),!0},getAppRoot=t=>t.querySelector("ion-app")||t.body,overlayAnimation=async(t,e,r,o)=>{r.classList.remove("overlay-hidden");const a=t.el,c=e(a,o);(!t.animated||!config$1.getBoolean("animated",!0))&&c.duration(0),t.keyboardClose&&c.beforeAddWrite(()=>{const d=r.ownerDocument.activeElement;d!=null&&d.matches("input,ion-input, ion-textarea")&&d.blur()});const u=activeAnimations.get(t)||[];return activeAnimations.set(t,[...u,c]),await c.play(),!0},eventMethod=(t,e)=>{let r;const o=new Promise(a=>r=a);return onceEvent(t,e,a=>{r(a.detail)}),o},onceEvent=(t,e,r)=>{const o=a=>{removeEventListener(t,e,o),r(a)};addEventListener$1(t,e,o)},isCancel$2=t=>t==="cancel"||t===BACKDROP,defaultGate=t=>t(),safeCall=(t,e)=>{if(typeof t=="function")return config$1.get("_zoneGate",defaultGate)(()=>{try{return t(e)}catch(o){throw o}})},BACKDROP="backdrop",GESTURE="gesture",OVERLAY_GESTURE_PRIORITY=39,createDelegateController=t=>{let e=!1,r;const o=CoreDelegate(),a=(d=!1)=>{if(r&&!d)return{delegate:r,inline:e};const{el:p,hasController:g,delegate:b}=t;return e=p.parentNode!==null&&!g,r=e?b||o:b,{inline:e,delegate:r}};return{attachViewToDom:async d=>{const{delegate:p}=a(!0);if(p)return await p.attachViewToDom(t.el,d);const{hasController:g}=t;if(g&&d!==void 0)throw new Error("framework delegate is missing");return null},removeViewFromDom:()=>{const{delegate:d}=a();d&&t.el!==void 0&&d.removeViewFromDom(t.el.parentElement,t.el)}}},createTriggerController=()=>{let t;const e=()=>{t&&(t(),t=void 0)};return{addClickListener:(o,a)=>{e();const c=a!==void 0?document.getElementById(a):null;if(!c){printIonWarning(`A trigger element with the ID "${a}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,o);return}t=((d,p)=>{const g=()=>{p.present()};return d.addEventListener("click",g),()=>{d.removeEventListener("click",g)}})(c,o)},removeClickListener:e}};/*!
91
91
  * (C) Ionic http://ionicframework.com - MIT License
92
- */const LIFECYCLE_WILL_ENTER="ionViewWillEnter",LIFECYCLE_DID_ENTER="ionViewDidEnter",LIFECYCLE_WILL_LEAVE="ionViewWillLeave",LIFECYCLE_DID_LEAVE="ionViewDidLeave",LIFECYCLE_WILL_UNLOAD="ionViewWillUnload",iosTransitionAnimation=()=>Promise.resolve().then(()=>require("./ios.transition-8bffa284.cjs")),mdTransitionAnimation=()=>Promise.resolve().then(()=>require("./md.transition-fdcff58b.cjs")),transition=t=>new Promise((e,r)=>{writeTask(()=>{beforeTransition(t),runTransition(t).then(o=>{o.animation&&o.animation.destroy(),afterTransition(t),e(o)},o=>{afterTransition(t),r(o)})})}),beforeTransition=t=>{const e=t.enteringEl,r=t.leavingEl;setZIndex(e,r,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),setPageHidden(e,!1),e.style.setProperty("pointer-events","none"),r&&(setPageHidden(r,!1),r.style.setProperty("pointer-events","none"))},runTransition=async t=>{const e=await getAnimationBuilder(t);return e&&Build.isBrowser?animation(e,t):noAnimation(t)},afterTransition=t=>{const e=t.enteringEl,r=t.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),r!==void 0&&(r.classList.remove("ion-page-invisible"),r.style.removeProperty("pointer-events"))},getAnimationBuilder=async t=>!t.leavingEl||!t.animated||t.duration===0?void 0:t.animationBuilder?t.animationBuilder:t.mode==="ios"?(await iosTransitionAnimation()).iosTransitionAnimation:(await mdTransitionAnimation()).mdTransitionAnimation,animation=async(t,e)=>{await waitForReady(e,!0);const r=t(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);const o=await playTransition(r,e);return e.progressCallback&&e.progressCallback(void 0),o&&fireDidEvents(e.enteringEl,e.leavingEl),{hasCompleted:o,animation:r}},noAnimation=async t=>{const e=t.enteringEl,r=t.leavingEl;return await waitForReady(t,!1),fireWillEvents(e,r),fireDidEvents(e,r),{hasCompleted:!0}},waitForReady=async(t,e)=>{(t.deepWait!==void 0?t.deepWait:e)&&await Promise.all([deepReady(t.enteringEl),deepReady(t.leavingEl)]),await notifyViewReady(t.viewIsReady,t.enteringEl)},notifyViewReady=async(t,e)=>{t&&await t(e)},playTransition=(t,e)=>{const r=e.progressCallback,o=new Promise(a=>{t.onFinish(c=>a(c===1))});return r?(t.progressStart(!0),r(t)):t.play(),o},fireWillEvents=(t,e)=>{lifecycle(e,LIFECYCLE_WILL_LEAVE),lifecycle(t,LIFECYCLE_WILL_ENTER)},fireDidEvents=(t,e)=>{lifecycle(t,LIFECYCLE_DID_ENTER),lifecycle(e,LIFECYCLE_DID_LEAVE)},lifecycle=(t,e)=>{if(t){const r=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(r)}},waitForMount=()=>new Promise(t=>raf(()=>raf(()=>t()))),deepReady=async t=>{const e=t;if(e){if(e.componentOnReady!=null){if(await e.componentOnReady()!=null)return}else if(e.__registerHost!=null){await new Promise(o=>raf(o));return}await Promise.all(Array.from(e.children).map(deepReady))}},setPageHidden=(t,e)=>{e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))},setZIndex=(t,e,r)=>{t!==void 0&&(t.style.zIndex=r==="back"?"99":"101"),e!==void 0&&(e.style.zIndex="100")},getIonPageElement=t=>{if(t.classList.contains("ion-page"))return t;const e=t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return e||t};/*!
92
+ */const LIFECYCLE_WILL_ENTER="ionViewWillEnter",LIFECYCLE_DID_ENTER="ionViewDidEnter",LIFECYCLE_WILL_LEAVE="ionViewWillLeave",LIFECYCLE_DID_LEAVE="ionViewDidLeave",LIFECYCLE_WILL_UNLOAD="ionViewWillUnload",iosTransitionAnimation=()=>Promise.resolve().then(()=>require("./ios.transition-853fae7f.cjs")),mdTransitionAnimation=()=>Promise.resolve().then(()=>require("./md.transition-65756cfd.cjs")),transition=t=>new Promise((e,r)=>{writeTask(()=>{beforeTransition(t),runTransition(t).then(o=>{o.animation&&o.animation.destroy(),afterTransition(t),e(o)},o=>{afterTransition(t),r(o)})})}),beforeTransition=t=>{const e=t.enteringEl,r=t.leavingEl;setZIndex(e,r,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),setPageHidden(e,!1),e.style.setProperty("pointer-events","none"),r&&(setPageHidden(r,!1),r.style.setProperty("pointer-events","none"))},runTransition=async t=>{const e=await getAnimationBuilder(t);return e&&Build.isBrowser?animation(e,t):noAnimation(t)},afterTransition=t=>{const e=t.enteringEl,r=t.leavingEl;e.classList.remove("ion-page-invisible"),e.style.removeProperty("pointer-events"),r!==void 0&&(r.classList.remove("ion-page-invisible"),r.style.removeProperty("pointer-events"))},getAnimationBuilder=async t=>!t.leavingEl||!t.animated||t.duration===0?void 0:t.animationBuilder?t.animationBuilder:t.mode==="ios"?(await iosTransitionAnimation()).iosTransitionAnimation:(await mdTransitionAnimation()).mdTransitionAnimation,animation=async(t,e)=>{await waitForReady(e,!0);const r=t(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);const o=await playTransition(r,e);return e.progressCallback&&e.progressCallback(void 0),o&&fireDidEvents(e.enteringEl,e.leavingEl),{hasCompleted:o,animation:r}},noAnimation=async t=>{const e=t.enteringEl,r=t.leavingEl;return await waitForReady(t,!1),fireWillEvents(e,r),fireDidEvents(e,r),{hasCompleted:!0}},waitForReady=async(t,e)=>{(t.deepWait!==void 0?t.deepWait:e)&&await Promise.all([deepReady(t.enteringEl),deepReady(t.leavingEl)]),await notifyViewReady(t.viewIsReady,t.enteringEl)},notifyViewReady=async(t,e)=>{t&&await t(e)},playTransition=(t,e)=>{const r=e.progressCallback,o=new Promise(a=>{t.onFinish(c=>a(c===1))});return r?(t.progressStart(!0),r(t)):t.play(),o},fireWillEvents=(t,e)=>{lifecycle(e,LIFECYCLE_WILL_LEAVE),lifecycle(t,LIFECYCLE_WILL_ENTER)},fireDidEvents=(t,e)=>{lifecycle(t,LIFECYCLE_DID_ENTER),lifecycle(e,LIFECYCLE_DID_LEAVE)},lifecycle=(t,e)=>{if(t){const r=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(r)}},waitForMount=()=>new Promise(t=>raf(()=>raf(()=>t()))),deepReady=async t=>{const e=t;if(e){if(e.componentOnReady!=null){if(await e.componentOnReady()!=null)return}else if(e.__registerHost!=null){await new Promise(o=>raf(o));return}await Promise.all(Array.from(e.children).map(deepReady))}},setPageHidden=(t,e)=>{e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))},setZIndex=(t,e,r)=>{t!==void 0&&(t.style.zIndex=r==="back"?"99":"101"),e!==void 0&&(e.style.zIndex="100")},getIonPageElement=t=>{if(t.classList.contains("ion-page"))return t;const e=t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return e||t};/*!
93
93
  * (C) Ionic http://ionicframework.com - MIT License
94
94
  */let animationPrefix;const processKeyframes=t=>(t.forEach(e=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];if(r==="easing"){const a="animation-timing-function";e[a]=o,delete e[r]}else{const a=convertCamelCaseToHypen(r);a!==r&&(e[a]=o,delete e[r])}}}),t),convertCamelCaseToHypen=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),getAnimationPrefix=t=>{if(animationPrefix===void 0){const e=t.style.animationName!==void 0,r=t.style.webkitAnimationName!==void 0;animationPrefix=!e&&r?"-webkit-":""}return animationPrefix},setStyleProperty=(t,e,r)=>{const o=e.startsWith("animation")?getAnimationPrefix(t):"";t.style.setProperty(o+e,r)},removeStyleProperty=(t,e)=>{const r=e.startsWith("animation")?getAnimationPrefix(t):"";t.style.removeProperty(r+e)},animationEnd=(t,e)=>{let r;const o={passive:!0},a=()=>{r&&r()},c=u=>{t===u.target&&(a(),e(u))};return t&&(t.addEventListener("webkitAnimationEnd",c,o),t.addEventListener("animationend",c,o),r=()=>{t.removeEventListener("webkitAnimationEnd",c,o),t.removeEventListener("animationend",c,o)}),a},generateKeyframeRules=(t=[])=>t.map(e=>{const r=e.offset,o=[];for(const a in e)e.hasOwnProperty(a)&&a!=="offset"&&o.push(`${a}: ${e[a]};`);return`${r*100}% { ${o.join(" ")} }`}).join(" "),keyframeIds=[],generateKeyframeName=t=>{let e=keyframeIds.indexOf(t);return e<0&&(e=keyframeIds.push(t)-1),`ion-animation-${e}`},getStyleContainer=t=>{const e=t.getRootNode!==void 0?t.getRootNode():t;return e.head||e},createKeyframeStylesheet=(t,e,r)=>{var o;const a=getStyleContainer(r),c=getAnimationPrefix(r),u=a.querySelector("#"+t);if(u)return u;const d=((o=r.ownerDocument)!==null&&o!==void 0?o:document).createElement("style");return d.id=t,d.textContent=`@${c}keyframes ${t} { ${e} } @${c}keyframes ${t}-alt { ${e} }`,a.appendChild(d),d},addClassToArray=(t=[],e)=>{if(e!==void 0){const r=Array.isArray(e)?e:[e];return[...t,...r]}return t},createAnimation=t=>{let e,r,o,a,c,u,d=[],p=[],g=[],b=!1,x,w={},y=[],I=[],k={},T=0,E=!1,O=!1,A,L,R,$,P=!0,z=!1,W=!0,D,S,F=!1;const U=t,M=[],V=[],G=[],Q=[],fe=[],te=[],de=[],me=[],Me=[],ce=[],oe=[],be=typeof AnimationEffect=="function"||win!==void 0&&typeof win.AnimationEffect=="function",Te=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&be,Ae=100,Be=()=>oe,Xe=ae=>(fe.forEach(_e=>{_e.destroy(ae)}),He(ae),Q.length=0,fe.length=0,d.length=0,Ce(),b=!1,W=!0,S),He=ae=>{Le(),ae&&qe()},Ke=()=>{E=!1,O=!1,W=!0,L=void 0,R=void 0,$=void 0,T=0,z=!1,P=!0,F=!1},ot=()=>T!==0&&!F,K=(ae,_e)=>{const De=_e.findIndex(ft=>ft.c===ae);De>-1&&_e.splice(De,1)},q=(ae,_e)=>(G.push({c:ae,o:_e}),S),se=(ae,_e)=>((_e!=null&&_e.oneTimeCallback?V:M).push({c:ae,o:_e}),S),Ce=()=>(M.length=0,V.length=0,S),Le=()=>{if(Te)oe.forEach(ae=>{ae.cancel()}),oe.length=0;else{const ae=Q.slice();raf(()=>{ae.forEach(_e=>{removeStyleProperty(_e,"animation-name"),removeStyleProperty(_e,"animation-duration"),removeStyleProperty(_e,"animation-timing-function"),removeStyleProperty(_e,"animation-iteration-count"),removeStyleProperty(_e,"animation-delay"),removeStyleProperty(_e,"animation-play-state"),removeStyleProperty(_e,"animation-fill-mode"),removeStyleProperty(_e,"animation-direction")})})}},qe=()=>{te.forEach(ae=>{ae!=null&&ae.parentNode&&ae.parentNode.removeChild(ae)}),te.length=0},Ct=ae=>(de.push(ae),S),ke=ae=>(me.push(ae),S),xe=ae=>(Me.push(ae),S),Ne=ae=>(ce.push(ae),S),Se=ae=>(p=addClassToArray(p,ae),S),ie=ae=>(g=addClassToArray(g,ae),S),he=(ae={})=>(w=ae,S),Ye=(ae=[])=>{for(const _e of ae)w[_e]="";return S},et=ae=>(y=addClassToArray(y,ae),S),bt=ae=>(I=addClassToArray(I,ae),S),$e=(ae={})=>(k=ae,S),Ee=(ae=[])=>{for(const _e of ae)k[_e]="";return S},Ie=()=>c!==void 0?c:x?x.getFill():"both",ze=()=>L!==void 0?L:u!==void 0?u:x?x.getDirection():"normal",ct=()=>E?"linear":o!==void 0?o:x?x.getEasing():"linear",st=()=>O?0:R!==void 0?R:r!==void 0?r:x?x.getDuration():0,ht=()=>a!==void 0?a:x?x.getIterations():1,Rt=()=>$!==void 0?$:e!==void 0?e:x?x.getDelay():0,ar=()=>d,To=ae=>(u=ae,Ft(!0),S),Io=ae=>(c=ae,Ft(!0),S),Oo=ae=>(e=ae,Ft(!0),S),Ar=ae=>(o=ae,Ft(!0),S),$r=ae=>(!Te&&ae===0&&(ae=1),r=ae,Ft(!0),S),Ao=ae=>(a=ae,Ft(!0),S),$o=ae=>(x=ae,S),Do=ae=>{if(ae!=null)if(ae.nodeType===1)Q.push(ae);else if(ae.length>=0)for(let _e=0;_e<ae.length;_e++)Q.push(ae[_e]);else console.error("Invalid addElement value");return S},Lo=ae=>{if(ae!=null)if(Array.isArray(ae))for(const _e of ae)_e.parent(S),fe.push(_e);else ae.parent(S),fe.push(ae);return S},Dr=ae=>{const _e=d!==ae;return d=ae,_e&&Ro(d),S},Ro=ae=>{Te?Be().forEach(_e=>{const De=_e.effect;if(De.setKeyframes)De.setKeyframes(ae);else{const ft=new KeyframeEffect(De.target,ae,De.getTiming());_e.effect=ft}}):Lr()},Po=()=>{de.forEach(ft=>ft()),me.forEach(ft=>ft());const ae=p,_e=g,De=w;Q.forEach(ft=>{const Et=ft.classList;ae.forEach(Bt=>Et.add(Bt)),_e.forEach(Bt=>Et.remove(Bt));for(const Bt in De)De.hasOwnProperty(Bt)&&setStyleProperty(ft,Bt,De[Bt])})},No=()=>{ur(),Me.forEach(Et=>Et()),ce.forEach(Et=>Et());const ae=P?1:0,_e=y,De=I,ft=k;Q.forEach(Et=>{const Bt=Et.classList;_e.forEach(mn=>Bt.add(mn)),De.forEach(mn=>Bt.remove(mn));for(const mn in ft)ft.hasOwnProperty(mn)&&setStyleProperty(Et,mn,ft[mn])}),R=void 0,L=void 0,$=void 0,M.forEach(Et=>Et.c(ae,S)),V.forEach(Et=>Et.c(ae,S)),V.length=0,W=!0,P&&(z=!0),P=!0},un=()=>{T!==0&&(T--,T===0&&(No(),x&&x.animationFinish()))},Lr=(ae=!0)=>{qe();const _e=processKeyframes(d);Q.forEach(De=>{if(_e.length>0){const ft=generateKeyframeRules(_e);D=t!==void 0?t:generateKeyframeName(ft);const Et=createKeyframeStylesheet(D,ft,De);te.push(Et),setStyleProperty(De,"animation-duration",`${st()}ms`),setStyleProperty(De,"animation-timing-function",ct()),setStyleProperty(De,"animation-delay",`${Rt()}ms`),setStyleProperty(De,"animation-fill-mode",Ie()),setStyleProperty(De,"animation-direction",ze());const Bt=ht()===1/0?"infinite":ht().toString();setStyleProperty(De,"animation-iteration-count",Bt),setStyleProperty(De,"animation-play-state","paused"),ae&&setStyleProperty(De,"animation-name",`${Et.id}-alt`),raf(()=>{setStyleProperty(De,"animation-name",Et.id||null)})}})},lr=()=>{Q.forEach(ae=>{const _e=ae.animate(d,{id:U,delay:Rt(),duration:st(),easing:ct(),iterations:ht(),fill:Ie(),direction:ze()});_e.pause(),oe.push(_e)}),oe.length>0&&(oe[0].onfinish=()=>{un()})},Rr=(ae=!0)=>{Po(),d.length>0&&(Te?lr():Lr(ae)),b=!0},Rn=ae=>{if(ae=Math.min(Math.max(ae,0),.9999),Te)oe.forEach(_e=>{_e.currentTime=_e.effect.getComputedTiming().delay+st()*ae,_e.pause()});else{const _e=`-${st()*ae}ms`;Q.forEach(De=>{d.length>0&&(setStyleProperty(De,"animation-delay",_e),setStyleProperty(De,"animation-play-state","paused"))})}},Nr=ae=>{oe.forEach(_e=>{_e.effect.updateTiming({delay:Rt(),duration:st(),easing:ct(),iterations:ht(),fill:Ie(),direction:ze()})}),ae!==void 0&&Rn(ae)},Mr=(ae=!0,_e)=>{raf(()=>{Q.forEach(De=>{setStyleProperty(De,"animation-name",D||null),setStyleProperty(De,"animation-duration",`${st()}ms`),setStyleProperty(De,"animation-timing-function",ct()),setStyleProperty(De,"animation-delay",_e!==void 0?`-${_e*st()}ms`:`${Rt()}ms`),setStyleProperty(De,"animation-fill-mode",Ie()||null),setStyleProperty(De,"animation-direction",ze()||null);const ft=ht()===1/0?"infinite":ht().toString();setStyleProperty(De,"animation-iteration-count",ft),ae&&setStyleProperty(De,"animation-name",`${D}-alt`),raf(()=>{setStyleProperty(De,"animation-name",D||null)})})})},Ft=(ae=!1,_e=!0,De)=>(ae&&fe.forEach(ft=>{ft.update(ae,_e,De)}),Te?Nr(De):Mr(_e,De),S),Mo=(ae=!1,_e)=>(fe.forEach(De=>{De.progressStart(ae,_e)}),cr(),E=ae,b||Rr(),Ft(!1,!0,_e),S),Fo=ae=>(fe.forEach(_e=>{_e.progressStep(ae)}),Rn(ae),S),Bo=(ae,_e,De)=>(E=!1,fe.forEach(ft=>{ft.progressEnd(ae,_e,De)}),De!==void 0&&(R=De),z=!1,P=!0,ae===0?(L=ze()==="reverse"?"normal":"reverse",L==="reverse"&&(P=!1),Te?(Ft(),Rn(1-_e)):($=(1-_e)*st()*-1,Ft(!1,!1))):ae===1&&(Te?(Ft(),Rn(_e)):($=_e*st()*-1,Ft(!1,!1))),ae!==void 0&&!x&&Fr(),S),cr=()=>{b&&(Te?oe.forEach(ae=>{ae.pause()}):Q.forEach(ae=>{setStyleProperty(ae,"animation-play-state","paused")}),F=!0)},jo=()=>(fe.forEach(ae=>{ae.pause()}),cr(),S),Uo=()=>{A=void 0,un()},ur=()=>{A&&clearTimeout(A)},Vo=()=>{if(ur(),raf(()=>{Q.forEach(ae=>{d.length>0&&setStyleProperty(ae,"animation-play-state","running")})}),d.length===0||Q.length===0)un();else{const ae=Rt()||0,_e=st()||0,De=ht()||1;isFinite(De)&&(A=setTimeout(Uo,ae+_e*De+Ae)),animationEnd(Q[0],()=>{ur(),raf(()=>{zo(),raf(un)})})}},zo=()=>{Q.forEach(ae=>{removeStyleProperty(ae,"animation-duration"),removeStyleProperty(ae,"animation-delay"),removeStyleProperty(ae,"animation-play-state")})},Ho=()=>{oe.forEach(ae=>{ae.play()}),(d.length===0||Q.length===0)&&un()},Hn=()=>{Te?(Rn(0),Nr()):Mr()},Fr=ae=>new Promise(_e=>{ae!=null&&ae.sync&&(O=!0,se(()=>O=!1,{oneTimeCallback:!0})),b||Rr(),z&&(Hn(),z=!1),W&&(T=fe.length+1,W=!1);const De=()=>{K(ft,V),_e()},ft=()=>{K(De,G),_e()};se(ft,{oneTimeCallback:!0}),q(De,{oneTimeCallback:!0}),fe.forEach(Et=>{Et.play()}),Te?Ho():Vo(),F=!1}),qn=()=>{fe.forEach(ae=>{ae.stop()}),b&&(Le(),b=!1),Ke(),G.forEach(ae=>ae.c(0,S)),G.length=0},Br=(ae,_e)=>{const De=d[0];return De!==void 0&&(De.offset===void 0||De.offset===0)?De[ae]=_e:d=[{offset:0,[ae]:_e},...d],S};return S={parentAnimation:x,elements:Q,childAnimations:fe,id:U,animationFinish:un,from:Br,to:(ae,_e)=>{const De=d[d.length-1];return De!==void 0&&(De.offset===void 0||De.offset===1)?De[ae]=_e:d=[...d,{offset:1,[ae]:_e}],S},fromTo:(ae,_e,De)=>Br(ae,_e).to(ae,De),parent:$o,play:Fr,pause:jo,stop:qn,destroy:Xe,keyframes:Dr,addAnimation:Lo,addElement:Do,update:Ft,fill:Io,direction:To,iterations:Ao,duration:$r,easing:Ar,delay:Oo,getWebAnimations:Be,getKeyframes:ar,getFill:Ie,getDirection:ze,getDelay:Rt,getIterations:ht,getEasing:ct,getDuration:st,afterAddRead:xe,afterAddWrite:Ne,afterClearStyles:Ee,afterStyles:$e,afterRemoveClass:bt,afterAddClass:et,beforeAddRead:Ct,beforeAddWrite:ke,beforeClearStyles:Ye,beforeStyles:he,beforeRemoveClass:ie,beforeAddClass:Se,onFinish:se,isRunning:ot,progressStart:Mo,progressStep:Fo,progressEnd:Bo}};/*!
95
95
  * (C) Ionic http://ionicframework.com - MIT License
@@ -131,7 +131,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
131
131
  * (C) Ionic http://ionicframework.com - MIT License
132
132
  */const getTimeGivenProgression=(t,e,r,o,a)=>solveCubicBezier(t[1],e[1],r[1],o[1],a).map(c=>solveCubicParametricEquation(t[0],e[0],r[0],o[0],c)),solveCubicParametricEquation=(t,e,r,o,a)=>{const c=3*e*Math.pow(a-1,2),u=-3*r*a+3*r+o*a,d=t*Math.pow(a-1,3);return a*(c+a*u)-d},solveCubicBezier=(t,e,r,o,a)=>(t-=a,e-=a,r-=a,o-=a,solveCubicEquation(o-3*r+3*e-t,3*r-6*e+3*t,3*e-3*t,t).filter(u=>u>=0&&u<=1)),solveQuadraticEquation=(t,e,r)=>{const o=e*e-4*t*r;return o<0?[]:[(-e+Math.sqrt(o))/(2*t),(-e-Math.sqrt(o))/(2*t)]},solveCubicEquation=(t,e,r,o)=>{if(t===0)return solveQuadraticEquation(e,r,o);e/=t,r/=t,o/=t;const a=(3*r-e*e)/3,c=(2*e*e*e-9*e*r+27*o)/27;if(a===0)return[Math.pow(-c,1/3)];if(c===0)return[Math.sqrt(-a),-Math.sqrt(-a)];const u=Math.pow(c/2,2)+Math.pow(a/3,3);if(u===0)return[Math.pow(c/2,1/2)-e/3];if(u>0)return[Math.pow(-(c/2)+Math.sqrt(u),1/3)-Math.pow(c/2+Math.sqrt(u),1/3)-e/3];const d=Math.sqrt(Math.pow(-(a/3),3)),p=Math.acos(-(c/(2*Math.sqrt(Math.pow(-(a/3),3))))),g=2*Math.pow(d,1/3);return[g*Math.cos(p/3)-e/3,g*Math.cos((p+2*Math.PI)/3)-e/3,g*Math.cos((p+4*Math.PI)/3)-e/3]};/*!
133
133
  * (C) Ionic http://ionicframework.com - MIT License
134
- */const VIEW_STATE_NEW=1,VIEW_STATE_ATTACHED=2,VIEW_STATE_DESTROYED=3;class ViewController{constructor(e,r){this.component=e,this.params=r,this.state=VIEW_STATE_NEW}async init(e){if(this.state=VIEW_STATE_ATTACHED,!this.element){const r=this.component;this.element=await attachComponent(this.delegate,e,r,["ion-page","ion-page-invisible"],this.params)}}_destroy(){assert(this.state!==VIEW_STATE_DESTROYED,"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=VIEW_STATE_DESTROYED}}const matches=(t,e,r)=>!t||t.component!==e?!1:shallowEqualStringMap(t.params,r),convertToView=(t,e)=>t?t instanceof ViewController?t:new ViewController(t,e):null,convertToViews=t=>t.map(e=>e instanceof ViewController?e:"component"in e?convertToView(e.component,e.componentProps===null?void 0:e.componentProps):convertToView(e,void 0)).filter(e=>e!==null),navCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",Nav=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7),this.ionNavWillChange=createEvent(this,"ionNavWillChange",3),this.ionNavDidChange=createEvent(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&this.didLoad!==!1&&(this.useRouter||this.root!==void 0&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const e=getIonMode$2(this);this.swipeGesture=config$1.getBoolean("swipeBackEnabled",e==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await Promise.resolve().then(()=>require("./swipe-back-fe0e2aee.cjs"))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const e of this.views)lifecycle(e.element,LIFECYCLE_WILL_UNLOAD),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,r,o,a){return this.insert(-1,e,r,o,a)}insert(e,r,o,a,c){return this.insertPages(e,[{component:r,componentProps:o}],a,c)}insertPages(e,r,o,a){return this.queueTrns({insertStart:e,insertViews:r,opts:o},a)}pop(e,r){return this.removeIndex(-1,1,e,r)}popTo(e,r,o){const a={removeStart:-1,removeCount:-1,opts:r};return typeof e=="object"&&e.component?(a.removeView=e,a.removeStart=1):typeof e=="number"&&(a.removeStart=e+1),this.queueTrns(a,o)}popToRoot(e,r){return this.removeIndex(1,-1,e,r)}removeIndex(e,r=1,o,a){return this.queueTrns({removeStart:e,removeCount:r,opts:o},a)}setRoot(e,r,o,a){return this.setPages([{component:e,componentProps:r}],o,a)}setPages(e,r,o){return r??(r={}),r.animated!==!0&&(r.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:r},o)}setRouteId(e,r,o,a){const c=this.getActiveSync();if(matches(c,e,r))return Promise.resolve({changed:!1,element:c.element});let u;const d=new Promise(b=>u=b);let p;const g={updateURL:!1,viewIsReady:b=>{let x;const w=new Promise(y=>x=y);return u({changed:!0,element:b,markVisible:async()=>{x(),await p}}),w}};if(o==="root")p=this.setRoot(e,r,g);else{const b=this.views.find(x=>matches(x,e,r));b?p=this.popTo(b,Object.assign(Object.assign({},g),{direction:"back",animationBuilder:a})):o==="forward"?p=this.push(e,r,Object.assign(Object.assign({},g),{animationBuilder:a})):o==="back"&&(p=this.setRoot(e,r,Object.assign(Object.assign({},g),{direction:"back",animated:!0,animationBuilder:a})))}return d}async getRouteId(){const e=this.getActiveSync();if(e)return{id:e.element.tagName,params:e.params,element:e.element}}async getActive(){return this.getActiveSync()}async getByIndex(e){return this.views[e]}async canGoBack(e){return this.canGoBackSync(e)}async getPrevious(e){return 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))}getPreviousSync(e=this.getActiveSync()){if(!e)return;const r=this.views,o=r.indexOf(e);return o>0?r[o-1]:void 0}async queueTrns(e,r){var o,a;if(this.isTransitioning&&(!((o=e.opts)===null||o===void 0)&&o.skipIfBusy))return!1;const c=new Promise((u,d)=>{e.resolve=u,e.reject=d});if(e.done=r,e.opts&&e.opts.updateURL!==!1&&this.useRouter){const u=document.querySelector("ion-router");if(u){const d=await u.canTransition();if(d===!1)return!1;if(typeof d=="string")return u.push(d,e.opts.direction||"back"),!1}}return((a=e.insertViews)===null||a===void 0?void 0:a.length)===0&&(e.insertViews=void 0),this.transInstr.push(e),this.nextTrns(),c}success(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}if(r.done&&r.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),r.resolve(e.hasCompleted),r.opts.updateURL!==!1&&this.useRouter){const o=document.querySelector("ion-router");if(o){const a=e.direction==="back"?"back":"forward";o.navChanged(a)}}}failed(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}this.transInstr.length=0,this.fireError(e,r)}fireError(e,r){r.done&&r.done(!1,!1,e),r.reject&&!this.destroyed?r.reject(e):r.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return e?(this.runTransition(e),!0):!1}async runTransition(e){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(e);const r=this.getActiveSync(),o=this.getEnteringView(e,r);if(!r&&!o)throw new Error("no views in the stack to be removed");o&&o.state===VIEW_STATE_NEW&&await o.init(this.el),this.postViewInit(o,r,e);const a=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&o!==r;a&&e.opts&&r&&(e.opts.direction==="back"&&(e.opts.animationBuilder=e.opts.animationBuilder||(o==null?void 0:o.animationBuilder)),r.animationBuilder=e.opts.animationBuilder);let c;a?c=await this.transition(o,r,e):c={hasCompleted:!0,requiresTransition:!1},this.success(c,e),this.ionNavDidChange.emit()}catch(r){this.failed(r,e)}this.isTransitioning=!1,this.nextTrns()}prepareTI(e){var r,o,a;const c=this.views.length;if((r=e.opts)!==null&&r!==void 0||(e.opts={}),(o=(a=e.opts).delegate)!==null&&o!==void 0||(a.delegate=this.delegate),e.removeView!==void 0){assert(e.removeStart!==void 0,"removeView needs removeStart"),assert(e.removeCount!==void 0,"removeView needs removeCount");const p=this.views.indexOf(e.removeView);if(p<0)throw new Error("removeView was not found");e.removeStart+=p}e.removeStart!==void 0&&(e.removeStart<0&&(e.removeStart=c-1),e.removeCount<0&&(e.removeCount=c-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===c),e.insertViews&&((e.insertStart<0||e.insertStart>c)&&(e.insertStart=c),e.enteringRequiresTransition=e.insertStart===c);const u=e.insertViews;if(!u)return;assert(u.length>0,"length can not be zero");const d=convertToViews(u);if(d.length===0)throw new Error("invalid views to insert");for(const p of d){p.delegate=e.opts.delegate;const g=p.nav;if(g&&g!==this)throw new Error("inserted view was already inserted");if(p.state===VIEW_STATE_DESTROYED)throw new Error("inserted view was already destroyed")}e.insertViews=d}getEnteringView(e,r){const o=e.insertViews;if(o!==void 0)return o[o.length-1];const a=e.removeStart;if(a!==void 0){const c=this.views,u=a+e.removeCount;for(let d=c.length-1;d>=0;d--){const p=c[d];if((d<a||d>=u)&&p!==r)return p}}}postViewInit(e,r,o){var a,c,u;assert(r||e,"Both leavingView and enteringView are null"),assert(o.resolve,"resolve must be valid"),assert(o.reject,"reject must be valid");const d=o.opts,{insertViews:p,removeStart:g,removeCount:b}=o;let x;if(g!==void 0&&b!==void 0){assert(g>=0,"removeStart can not be negative"),assert(b>=0,"removeCount can not be negative"),x=[];for(let y=g;y<g+b;y++){const I=this.views[y];I!==void 0&&I!==e&&I!==r&&x.push(I)}(a=d.direction)!==null&&a!==void 0||(d.direction="back")}const w=this.views.length+((c=p==null?void 0:p.length)!==null&&c!==void 0?c:0)-(b??0);if(assert(w>=0,"final balance can not be negative"),w===0)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(p){let y=o.insertStart;for(const I of p)this.insertViewAt(I,y),y++;o.enteringRequiresTransition&&((u=d.direction)!==null&&u!==void 0||(d.direction="forward"))}if(x&&x.length>0){for(const y of x)lifecycle(y.element,LIFECYCLE_WILL_LEAVE),lifecycle(y.element,LIFECYCLE_DID_LEAVE),lifecycle(y.element,LIFECYCLE_WILL_UNLOAD);for(const y of x)this.destroyView(y)}}async transition(e,r,o){const a=o.opts,c=a.progressAnimation?x=>{x!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,x.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),x.progressEnd(0,0,0)):this.sbAni=x}:void 0,u=getIonMode$2(this),d=e.element,p=r&&r.element,g=Object.assign(Object.assign({mode:u,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:c,animated:this.animated&&config$1.getBoolean("animated",!0),enteringEl:d,leavingEl:p},a),{animationBuilder:a.animationBuilder||this.animation||config$1.get("navAnimation")}),{hasCompleted:b}=await transition(g);return this.transitionFinish(b,e,r,a)}transitionFinish(e,r,o,a){const c=e?r:o;return c&&this.unmountInactiveViews(c),{hasCompleted:e,requiresTransition:!0,enteringView:r,leavingView:o,direction:a.direction}}insertViewAt(e,r){const o=this.views,a=o.indexOf(e);a>-1?(assert(e.nav===this,"view is not part of the nav"),o.splice(a,1),o.splice(r,0,e)):(assert(!e.nav,"nav is used"),e.nav=this,o.splice(r,0,e))}removeView(e){assert(e.state===VIEW_STATE_ATTACHED||e.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");const r=this.views,o=r.indexOf(e);assert(o>-1,"view must be part of the stack"),o>=0&&r.splice(o,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;const r=this.views,o=r.indexOf(e);for(let a=r.length-1;a>=0;a--){const c=r[a],u=c.element;u&&(a>o?(lifecycle(u,LIFECYCLE_WILL_UNLOAD),this.destroyView(c)):a<o&&setPageHidden(u,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(e){this.sbAni&&this.sbAni.progressStep(e)}onEnd(e,r,o){if(this.sbAni){this.sbAni.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let a=e?-.001:.001;e?a+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],r)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),a+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],r)[0]),this.sbAni.progressEnd(e?1:0,a,o)}else this.gestureOrAnimationInProgress=!1}render(){return h("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return navCss}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]);function defineCustomElement$1$e(){if(typeof customElements>"u")return;["ion-nav"].forEach(e=>{switch(e){case"ion-nav":customElements.get(e)||customElements.define(e,Nav);break}})}const defineCustomElement$o=defineCustomElement$1$e;/*!
134
+ */const VIEW_STATE_NEW=1,VIEW_STATE_ATTACHED=2,VIEW_STATE_DESTROYED=3;class ViewController{constructor(e,r){this.component=e,this.params=r,this.state=VIEW_STATE_NEW}async init(e){if(this.state=VIEW_STATE_ATTACHED,!this.element){const r=this.component;this.element=await attachComponent(this.delegate,e,r,["ion-page","ion-page-invisible"],this.params)}}_destroy(){assert(this.state!==VIEW_STATE_DESTROYED,"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=VIEW_STATE_DESTROYED}}const matches=(t,e,r)=>!t||t.component!==e?!1:shallowEqualStringMap(t.params,r),convertToView=(t,e)=>t?t instanceof ViewController?t:new ViewController(t,e):null,convertToViews=t=>t.map(e=>e instanceof ViewController?e:"component"in e?convertToView(e.component,e.componentProps===null?void 0:e.componentProps):convertToView(e,void 0)).filter(e=>e!==null),navCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}",Nav=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7),this.ionNavWillChange=createEvent(this,"ionNavWillChange",3),this.ionNavDidChange=createEvent(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&this.didLoad!==!1&&(this.useRouter||this.root!==void 0&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const e=getIonMode$2(this);this.swipeGesture=config$1.getBoolean("swipeBackEnabled",e==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await Promise.resolve().then(()=>require("./swipe-back-45296dfc.cjs"))).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const e of this.views)lifecycle(e.element,LIFECYCLE_WILL_UNLOAD),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,r,o,a){return this.insert(-1,e,r,o,a)}insert(e,r,o,a,c){return this.insertPages(e,[{component:r,componentProps:o}],a,c)}insertPages(e,r,o,a){return this.queueTrns({insertStart:e,insertViews:r,opts:o},a)}pop(e,r){return this.removeIndex(-1,1,e,r)}popTo(e,r,o){const a={removeStart:-1,removeCount:-1,opts:r};return typeof e=="object"&&e.component?(a.removeView=e,a.removeStart=1):typeof e=="number"&&(a.removeStart=e+1),this.queueTrns(a,o)}popToRoot(e,r){return this.removeIndex(1,-1,e,r)}removeIndex(e,r=1,o,a){return this.queueTrns({removeStart:e,removeCount:r,opts:o},a)}setRoot(e,r,o,a){return this.setPages([{component:e,componentProps:r}],o,a)}setPages(e,r,o){return r??(r={}),r.animated!==!0&&(r.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:r},o)}setRouteId(e,r,o,a){const c=this.getActiveSync();if(matches(c,e,r))return Promise.resolve({changed:!1,element:c.element});let u;const d=new Promise(b=>u=b);let p;const g={updateURL:!1,viewIsReady:b=>{let x;const w=new Promise(y=>x=y);return u({changed:!0,element:b,markVisible:async()=>{x(),await p}}),w}};if(o==="root")p=this.setRoot(e,r,g);else{const b=this.views.find(x=>matches(x,e,r));b?p=this.popTo(b,Object.assign(Object.assign({},g),{direction:"back",animationBuilder:a})):o==="forward"?p=this.push(e,r,Object.assign(Object.assign({},g),{animationBuilder:a})):o==="back"&&(p=this.setRoot(e,r,Object.assign(Object.assign({},g),{direction:"back",animated:!0,animationBuilder:a})))}return d}async getRouteId(){const e=this.getActiveSync();if(e)return{id:e.element.tagName,params:e.params,element:e.element}}async getActive(){return this.getActiveSync()}async getByIndex(e){return this.views[e]}async canGoBack(e){return this.canGoBackSync(e)}async getPrevious(e){return 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))}getPreviousSync(e=this.getActiveSync()){if(!e)return;const r=this.views,o=r.indexOf(e);return o>0?r[o-1]:void 0}async queueTrns(e,r){var o,a;if(this.isTransitioning&&(!((o=e.opts)===null||o===void 0)&&o.skipIfBusy))return!1;const c=new Promise((u,d)=>{e.resolve=u,e.reject=d});if(e.done=r,e.opts&&e.opts.updateURL!==!1&&this.useRouter){const u=document.querySelector("ion-router");if(u){const d=await u.canTransition();if(d===!1)return!1;if(typeof d=="string")return u.push(d,e.opts.direction||"back"),!1}}return((a=e.insertViews)===null||a===void 0?void 0:a.length)===0&&(e.insertViews=void 0),this.transInstr.push(e),this.nextTrns(),c}success(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}if(r.done&&r.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),r.resolve(e.hasCompleted),r.opts.updateURL!==!1&&this.useRouter){const o=document.querySelector("ion-router");if(o){const a=e.direction==="back"?"back":"forward";o.navChanged(a)}}}failed(e,r){if(this.destroyed){this.fireError("nav controller was destroyed",r);return}this.transInstr.length=0,this.fireError(e,r)}fireError(e,r){r.done&&r.done(!1,!1,e),r.reject&&!this.destroyed?r.reject(e):r.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return e?(this.runTransition(e),!0):!1}async runTransition(e){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(e);const r=this.getActiveSync(),o=this.getEnteringView(e,r);if(!r&&!o)throw new Error("no views in the stack to be removed");o&&o.state===VIEW_STATE_NEW&&await o.init(this.el),this.postViewInit(o,r,e);const a=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&o!==r;a&&e.opts&&r&&(e.opts.direction==="back"&&(e.opts.animationBuilder=e.opts.animationBuilder||(o==null?void 0:o.animationBuilder)),r.animationBuilder=e.opts.animationBuilder);let c;a?c=await this.transition(o,r,e):c={hasCompleted:!0,requiresTransition:!1},this.success(c,e),this.ionNavDidChange.emit()}catch(r){this.failed(r,e)}this.isTransitioning=!1,this.nextTrns()}prepareTI(e){var r,o,a;const c=this.views.length;if((r=e.opts)!==null&&r!==void 0||(e.opts={}),(o=(a=e.opts).delegate)!==null&&o!==void 0||(a.delegate=this.delegate),e.removeView!==void 0){assert(e.removeStart!==void 0,"removeView needs removeStart"),assert(e.removeCount!==void 0,"removeView needs removeCount");const p=this.views.indexOf(e.removeView);if(p<0)throw new Error("removeView was not found");e.removeStart+=p}e.removeStart!==void 0&&(e.removeStart<0&&(e.removeStart=c-1),e.removeCount<0&&(e.removeCount=c-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===c),e.insertViews&&((e.insertStart<0||e.insertStart>c)&&(e.insertStart=c),e.enteringRequiresTransition=e.insertStart===c);const u=e.insertViews;if(!u)return;assert(u.length>0,"length can not be zero");const d=convertToViews(u);if(d.length===0)throw new Error("invalid views to insert");for(const p of d){p.delegate=e.opts.delegate;const g=p.nav;if(g&&g!==this)throw new Error("inserted view was already inserted");if(p.state===VIEW_STATE_DESTROYED)throw new Error("inserted view was already destroyed")}e.insertViews=d}getEnteringView(e,r){const o=e.insertViews;if(o!==void 0)return o[o.length-1];const a=e.removeStart;if(a!==void 0){const c=this.views,u=a+e.removeCount;for(let d=c.length-1;d>=0;d--){const p=c[d];if((d<a||d>=u)&&p!==r)return p}}}postViewInit(e,r,o){var a,c,u;assert(r||e,"Both leavingView and enteringView are null"),assert(o.resolve,"resolve must be valid"),assert(o.reject,"reject must be valid");const d=o.opts,{insertViews:p,removeStart:g,removeCount:b}=o;let x;if(g!==void 0&&b!==void 0){assert(g>=0,"removeStart can not be negative"),assert(b>=0,"removeCount can not be negative"),x=[];for(let y=g;y<g+b;y++){const I=this.views[y];I!==void 0&&I!==e&&I!==r&&x.push(I)}(a=d.direction)!==null&&a!==void 0||(d.direction="back")}const w=this.views.length+((c=p==null?void 0:p.length)!==null&&c!==void 0?c:0)-(b??0);if(assert(w>=0,"final balance can not be negative"),w===0)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(p){let y=o.insertStart;for(const I of p)this.insertViewAt(I,y),y++;o.enteringRequiresTransition&&((u=d.direction)!==null&&u!==void 0||(d.direction="forward"))}if(x&&x.length>0){for(const y of x)lifecycle(y.element,LIFECYCLE_WILL_LEAVE),lifecycle(y.element,LIFECYCLE_DID_LEAVE),lifecycle(y.element,LIFECYCLE_WILL_UNLOAD);for(const y of x)this.destroyView(y)}}async transition(e,r,o){const a=o.opts,c=a.progressAnimation?x=>{x!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,x.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),x.progressEnd(0,0,0)):this.sbAni=x}:void 0,u=getIonMode$2(this),d=e.element,p=r&&r.element,g=Object.assign(Object.assign({mode:u,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:c,animated:this.animated&&config$1.getBoolean("animated",!0),enteringEl:d,leavingEl:p},a),{animationBuilder:a.animationBuilder||this.animation||config$1.get("navAnimation")}),{hasCompleted:b}=await transition(g);return this.transitionFinish(b,e,r,a)}transitionFinish(e,r,o,a){const c=e?r:o;return c&&this.unmountInactiveViews(c),{hasCompleted:e,requiresTransition:!0,enteringView:r,leavingView:o,direction:a.direction}}insertViewAt(e,r){const o=this.views,a=o.indexOf(e);a>-1?(assert(e.nav===this,"view is not part of the nav"),o.splice(a,1),o.splice(r,0,e)):(assert(!e.nav,"nav is used"),e.nav=this,o.splice(r,0,e))}removeView(e){assert(e.state===VIEW_STATE_ATTACHED||e.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");const r=this.views,o=r.indexOf(e);assert(o>-1,"view must be part of the stack"),o>=0&&r.splice(o,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;const r=this.views,o=r.indexOf(e);for(let a=r.length-1;a>=0;a--){const c=r[a],u=c.element;u&&(a>o?(lifecycle(u,LIFECYCLE_WILL_UNLOAD),this.destroyView(c)):a<o&&setPageHidden(u,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(e){this.sbAni&&this.sbAni.progressStep(e)}onEnd(e,r,o){if(this.sbAni){this.sbAni.onFinish(()=>{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let a=e?-.001:.001;e?a+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],r)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),a+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],r)[0]),this.sbAni.progressEnd(e?1:0,a,o)}else this.gestureOrAnimationInProgress=!1}render(){return h("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return navCss}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]},void 0,{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}]);function defineCustomElement$1$e(){if(typeof customElements>"u")return;["ion-nav"].forEach(e=>{switch(e){case"ion-nav":customElements.get(e)||customElements.define(e,Nav);break}})}const defineCustomElement$o=defineCustomElement$1$e;/*!
135
135
  * (C) Ionic http://ionicframework.com - MIT License
136
136
  */const defineCustomElement$n=defineCustomElement$D;/*!
137
137
  * (C) Ionic http://ionicframework.com - MIT License
@@ -188,7 +188,7 @@ Developers can use the "legacy" property to continue using the legacy form marku
188
188
  * (C) Ionic http://ionicframework.com - MIT License
189
189
  */const tabBarIosCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",tabBarMdCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-650, #595959));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",TabBar=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=createEvent(this,"ionTabBarChanged",7),this.ionTabBarLoaded=createEvent(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.color=void 0,this.selectedTab=void 0,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}async connectedCallback(){this.keyboardCtrl=await createKeyboardController(async(e,r)=>{e===!1&&r!==void 0&&await r,this.keyboardVisible=e})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}componentDidLoad(){this.ionTabBarLoaded.emit()}render(){const{color:e,translucent:r,keyboardVisible:o}=this,a=getIonMode$2(this),c=o&&this.el.getAttribute("slot")!=="top";return h(Host,{role:"tablist","aria-hidden":c?"true":null,class:createColorClasses$1(e,{[a]:!0,"tab-bar-translucent":r,"tab-bar-hidden":c})},h("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:tabBarIosCss,md:tabBarMdCss}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]},void 0,{selectedTab:["selectedTabChanged"]}]);function defineCustomElement$1$4(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(e=>{switch(e){case"ion-tab-bar":customElements.get(e)||customElements.define(e,TabBar);break}})}const defineCustomElement$5=defineCustomElement$1$4;/*!
190
190
  * (C) Ionic http://ionicframework.com - MIT License
191
- */const appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",App=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}componentDidLoad(){rIC(async()=>{const e=isPlatform(window,"hybrid");if(config$1.getBoolean("_testing")||Promise.resolve().then(()=>require("./index9-ebb6eee5.cjs")).then(o=>o.startTapClick(config$1)),config$1.getBoolean("statusTap",e)&&Promise.resolve().then(()=>require("./status-tap-f58788f5.cjs")).then(o=>o.startStatusTap()),config$1.getBoolean("inputShims",needInputShims())){const o=isPlatform(window,"ios")?"ios":"android";Promise.resolve().then(()=>require("./input-shims-92e9a1e4.cjs")).then(a=>a.startInputShims(config$1,o))}const r=await Promise.resolve().then(()=>hardwareBackButton);config$1.getBoolean("hardwareBackButton",e)?r.startHardwareBackButton():r.blockHardwareBackButton(),typeof window<"u"&&Promise.resolve().then(()=>keyboard2).then(o=>o.startKeyboardAssist(window)),Promise.resolve().then(()=>require("./focus-visible-fe5467a3.cjs")).then(o=>this.focusVisible=o.startFocusVisible())})}async setFocus(e){this.focusVisible&&this.focusVisible.setFocus(e)}render(){const e=getIonMode$2(this);return h(Host,{class:{[e]:!0,"ion-page":!0,"force-statusbar-padding":config$1.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return appCss}},[0,"ion-app",{setFocus:[64]}]),needInputShims=()=>!!(isPlatform(window,"ios")&&isPlatform(window,"mobile")||isPlatform(window,"android")&&isPlatform(window,"mobileweb")),rIC=t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,32)};function defineCustomElement$1$3(){if(typeof customElements>"u")return;["ion-app"].forEach(e=>{switch(e){case"ion-app":customElements.get(e)||customElements.define(e,App);break}})}const defineCustomElement$4=defineCustomElement$1$3;let CACHED_MAP;const getIconMap=()=>{if(typeof window>"u")return new Map;if(!CACHED_MAP){const t=window;t.Ionicons=t.Ionicons||{},CACHED_MAP=t.Ionicons.map=t.Ionicons.map||new Map}return CACHED_MAP},getUrl=t=>{let e=getSrc(t.src);return e||(e=getName(t.name,t.icon,t.mode,t.ios,t.md),e?getNamedUrl(e,t):t.icon&&(e=getSrc(t.icon),e||(e=getSrc(t.icon[t.mode]),e))?e:null)},getNamedUrl=(t,e)=>{const r=getIconMap().get(t);if(r)return r;try{return getAssetPath(`svg/${t}.svg`)}catch{console.warn(`[Ionicons Warning]: Could not load icon with name "${t}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,e)}},getName=(t,e,r,o,a)=>(r=(r&&toLower(r))==="ios"?"ios":"md",o&&r==="ios"?t=toLower(o):a&&r==="md"?t=toLower(a):(!t&&e&&!isSrc(e)&&(t=e),isStr(t)&&(t=toLower(t))),!isStr(t)||t.trim()===""||t.replace(/[a-z]|-|\d/gi,"")!==""?null:t),getSrc=t=>isStr(t)&&(t=t.trim(),isSrc(t))?t:null,isSrc=t=>t.length>0&&/(\/|\.)/.test(t),isStr=t=>typeof t=="string",toLower=t=>t.toLowerCase(),inheritAttributes=(t,e=[])=>{const r={};return e.forEach(o=>{t.hasAttribute(o)&&(t.getAttribute(o)!==null&&(r[o]=t.getAttribute(o)),t.removeAttribute(o))}),r},isRTL=t=>t&&t.dir!==""?t.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",validateContent=t=>{const e=document.createElement("div");e.innerHTML=t;for(let o=e.childNodes.length-1;o>=0;o--)e.childNodes[o].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[o]);const r=e.firstElementChild;if(r&&r.nodeName.toLowerCase()==="svg"){const o=r.getAttribute("class")||"";if(r.setAttribute("class",(o+" s-ion-icon").trim()),isValid(r))return e.innerHTML}return""},isValid=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(isStr(r)&&r.toLowerCase().indexOf("on")===0)return!1}for(let e=0;e<t.childNodes.length;e++)if(!isValid(t.childNodes[e]))return!1}return!0},isSvgDataUrl=t=>t.startsWith("data:image/svg+xml"),isEncodedDataUrl=t=>t.indexOf(";utf8,")!==-1,ioniconContent=new Map,requests=new Map;let parser;const getSvgContent=(t,e)=>{let r=requests.get(t);if(!r)if(typeof fetch<"u"&&typeof document<"u")if(isSvgDataUrl(t)&&isEncodedDataUrl(t)){parser||(parser=new DOMParser);const a=parser.parseFromString(t,"text/html").querySelector("svg");return a&&ioniconContent.set(t,a.outerHTML),Promise.resolve()}else r=fetch(t).then(o=>{if(o.ok)return o.text().then(a=>{a&&e!==!1&&(a=validateContent(a)),ioniconContent.set(t,a||"")});ioniconContent.set(t,"")}),requests.set(t,r);else return ioniconContent.set(t,""),Promise.resolve();return r},iconCss=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",Icon=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=getIonMode(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=inheritAttributes(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,r,o){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const a=this.io=new window.IntersectionObserver(c=>{c[0].isIntersecting&&(a.disconnect(),this.io=void 0,o())},{rootMargin:r});a.observe(e)}else o()}loadIcon(){if(this.isVisible){const e=getUrl(this);e&&(ioniconContent.has(e)?this.svgContent=ioniconContent.get(e):getSvgContent(e,this.sanitize).then(()=>this.svgContent=ioniconContent.get(e)),this.didLoadIcon=!0)}this.iconName=getName(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:e,iconName:r,inheritedAttributes:o,el:a}=this,c=this.mode||"md",u=r?(r.includes("arrow")||r.includes("chevron"))&&e!==!1:!1,d=e||u;return h(Host,Object.assign({role:"img",class:Object.assign(Object.assign({[c]:!0},createColorClasses(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":d,"icon-rtl":d&&isRTL(a)})},o),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return iconCss}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]),getIonMode=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",createColorClasses=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null;function defineCustomElement$1$2(){if(typeof customElements>"u")return;["ion-icon"].forEach(e=>{switch(e){case"ion-icon":customElements.get(e)||customElements.define(e,Icon);break}})}const defineCustomElement$3=defineCustomElement$1$2;/*!
191
+ */const appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",App=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}componentDidLoad(){rIC(async()=>{const e=isPlatform(window,"hybrid");if(config$1.getBoolean("_testing")||Promise.resolve().then(()=>require("./index9-e5dee6fc.cjs")).then(o=>o.startTapClick(config$1)),config$1.getBoolean("statusTap",e)&&Promise.resolve().then(()=>require("./status-tap-b41afd85.cjs")).then(o=>o.startStatusTap()),config$1.getBoolean("inputShims",needInputShims())){const o=isPlatform(window,"ios")?"ios":"android";Promise.resolve().then(()=>require("./input-shims-b0c5d7d7.cjs")).then(a=>a.startInputShims(config$1,o))}const r=await Promise.resolve().then(()=>hardwareBackButton);config$1.getBoolean("hardwareBackButton",e)?r.startHardwareBackButton():r.blockHardwareBackButton(),typeof window<"u"&&Promise.resolve().then(()=>keyboard2).then(o=>o.startKeyboardAssist(window)),Promise.resolve().then(()=>require("./focus-visible-fe5467a3.cjs")).then(o=>this.focusVisible=o.startFocusVisible())})}async setFocus(e){this.focusVisible&&this.focusVisible.setFocus(e)}render(){const e=getIonMode$2(this);return h(Host,{class:{[e]:!0,"ion-page":!0,"force-statusbar-padding":config$1.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return appCss}},[0,"ion-app",{setFocus:[64]}]),needInputShims=()=>!!(isPlatform(window,"ios")&&isPlatform(window,"mobile")||isPlatform(window,"android")&&isPlatform(window,"mobileweb")),rIC=t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,32)};function defineCustomElement$1$3(){if(typeof customElements>"u")return;["ion-app"].forEach(e=>{switch(e){case"ion-app":customElements.get(e)||customElements.define(e,App);break}})}const defineCustomElement$4=defineCustomElement$1$3;let CACHED_MAP;const getIconMap=()=>{if(typeof window>"u")return new Map;if(!CACHED_MAP){const t=window;t.Ionicons=t.Ionicons||{},CACHED_MAP=t.Ionicons.map=t.Ionicons.map||new Map}return CACHED_MAP},getUrl=t=>{let e=getSrc(t.src);return e||(e=getName(t.name,t.icon,t.mode,t.ios,t.md),e?getNamedUrl(e,t):t.icon&&(e=getSrc(t.icon),e||(e=getSrc(t.icon[t.mode]),e))?e:null)},getNamedUrl=(t,e)=>{const r=getIconMap().get(t);if(r)return r;try{return getAssetPath(`svg/${t}.svg`)}catch{console.warn(`[Ionicons Warning]: Could not load icon with name "${t}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,e)}},getName=(t,e,r,o,a)=>(r=(r&&toLower(r))==="ios"?"ios":"md",o&&r==="ios"?t=toLower(o):a&&r==="md"?t=toLower(a):(!t&&e&&!isSrc(e)&&(t=e),isStr(t)&&(t=toLower(t))),!isStr(t)||t.trim()===""||t.replace(/[a-z]|-|\d/gi,"")!==""?null:t),getSrc=t=>isStr(t)&&(t=t.trim(),isSrc(t))?t:null,isSrc=t=>t.length>0&&/(\/|\.)/.test(t),isStr=t=>typeof t=="string",toLower=t=>t.toLowerCase(),inheritAttributes=(t,e=[])=>{const r={};return e.forEach(o=>{t.hasAttribute(o)&&(t.getAttribute(o)!==null&&(r[o]=t.getAttribute(o)),t.removeAttribute(o))}),r},isRTL=t=>t&&t.dir!==""?t.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",validateContent=t=>{const e=document.createElement("div");e.innerHTML=t;for(let o=e.childNodes.length-1;o>=0;o--)e.childNodes[o].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[o]);const r=e.firstElementChild;if(r&&r.nodeName.toLowerCase()==="svg"){const o=r.getAttribute("class")||"";if(r.setAttribute("class",(o+" s-ion-icon").trim()),isValid(r))return e.innerHTML}return""},isValid=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e].name;if(isStr(r)&&r.toLowerCase().indexOf("on")===0)return!1}for(let e=0;e<t.childNodes.length;e++)if(!isValid(t.childNodes[e]))return!1}return!0},isSvgDataUrl=t=>t.startsWith("data:image/svg+xml"),isEncodedDataUrl=t=>t.indexOf(";utf8,")!==-1,ioniconContent=new Map,requests=new Map;let parser;const getSvgContent=(t,e)=>{let r=requests.get(t);if(!r)if(typeof fetch<"u"&&typeof document<"u")if(isSvgDataUrl(t)&&isEncodedDataUrl(t)){parser||(parser=new DOMParser);const a=parser.parseFromString(t,"text/html").querySelector("svg");return a&&ioniconContent.set(t,a.outerHTML),Promise.resolve()}else r=fetch(t).then(o=>{if(o.ok)return o.text().then(a=>{a&&e!==!1&&(a=validateContent(a)),ioniconContent.set(t,a||"")});ioniconContent.set(t,"")}),requests.set(t,r);else return ioniconContent.set(t,""),Promise.resolve();return r},iconCss=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",Icon=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.didLoadIcon=!1,this.svgContent=void 0,this.isVisible=!1,this.mode=getIonMode(),this.color=void 0,this.ios=void 0,this.md=void 0,this.flipRtl=void 0,this.name=void 0,this.src=void 0,this.icon=void 0,this.size=void 0,this.lazy=!1,this.sanitize=!0}componentWillLoad(){this.inheritedAttributes=inheritAttributes(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,r,o){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const a=this.io=new window.IntersectionObserver(c=>{c[0].isIntersecting&&(a.disconnect(),this.io=void 0,o())},{rootMargin:r});a.observe(e)}else o()}loadIcon(){if(this.isVisible){const e=getUrl(this);e&&(ioniconContent.has(e)?this.svgContent=ioniconContent.get(e):getSvgContent(e,this.sanitize).then(()=>this.svgContent=ioniconContent.get(e)),this.didLoadIcon=!0)}this.iconName=getName(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:e,iconName:r,inheritedAttributes:o,el:a}=this,c=this.mode||"md",u=r?(r.includes("arrow")||r.includes("chevron"))&&e!==!1:!1,d=e||u;return h(Host,Object.assign({role:"img",class:Object.assign(Object.assign({[c]:!0},createColorClasses(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":d,"icon-rtl":d&&isRTL(a)})},o),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return iconCss}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32]}]),getIonMode=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",createColorClasses=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null;function defineCustomElement$1$2(){if(typeof customElements>"u")return;["ion-icon"].forEach(e=>{switch(e){case"ion-icon":customElements.get(e)||customElements.define(e,Icon);break}})}const defineCustomElement$3=defineCustomElement$1$2;/*!
192
192
  * (C) Ionic http://ionicframework.com - MIT License
193
193
  */function getAnimationPosition(t,e,r,o){let a;if(r==="md"?a=t==="top"?8:-8:a=t==="top"?10:-10,e&&win){warnIfAnchorIsHidden(e,o);const c=e.getBoundingClientRect();return t==="top"?a+=c.bottom:t==="bottom"&&(a-=win.innerHeight-c.top),{top:`${a}px`,bottom:`${a}px`}}else return{top:`calc(${a}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${a}px - var(--ion-safe-area-bottom, 0px))`}}function warnIfAnchorIsHidden(t,e){t.offsetParent===null&&printIonWarning("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",e)}const getOffsetForMiddlePosition=(t,e)=>Math.floor(t/2-e/2),iosEnterAnimation$1=(t,e)=>{const r=createAnimation(),o=createAnimation(),{position:a,top:c,bottom:u}=e,p=getElementRoot(t).querySelector(".toast-wrapper");switch(o.addElement(p),a){case"top":o.fromTo("transform","translateY(-100%)",`translateY(${c})`);break;case"middle":const g=getOffsetForMiddlePosition(t.clientHeight,p.clientHeight);p.style.top=`${g}px`,o.fromTo("opacity",.01,1);break;default:o.fromTo("transform","translateY(100%)",`translateY(${u})`);break}return r.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(o)},iosLeaveAnimation$1=(t,e)=>{const r=createAnimation(),o=createAnimation(),{position:a,top:c,bottom:u}=e,p=getElementRoot(t).querySelector(".toast-wrapper");switch(o.addElement(p),a){case"top":o.fromTo("transform",`translateY(${c})`,"translateY(-100%)");break;case"middle":o.fromTo("opacity",.99,0);break;default:o.fromTo("transform",`translateY(${u})`,"translateY(100%)");break}return r.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(o)},mdEnterAnimation$1=(t,e)=>{const r=createAnimation(),o=createAnimation(),{position:a,top:c,bottom:u}=e,p=getElementRoot(t).querySelector(".toast-wrapper");switch(o.addElement(p),a){case"top":p.style.setProperty("transform",`translateY(${c})`),o.fromTo("opacity",.01,1);break;case"middle":const g=getOffsetForMiddlePosition(t.clientHeight,p.clientHeight);p.style.top=`${g}px`,o.fromTo("opacity",.01,1);break;default:p.style.setProperty("transform",`translateY(${u})`),o.fromTo("opacity",.01,1);break}return r.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(o)},mdLeaveAnimation$1=t=>{const e=createAnimation(),r=createAnimation(),a=getElementRoot(t).querySelector(".toast-wrapper");return r.addElement(a).fromTo("opacity",.99,0),e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(r)},createSwipeToDismissGesture=(t,e,r)=>{const o=getElementRoot(t).querySelector(".toast-wrapper"),a=t.clientHeight,c=o.getBoundingClientRect();let u=0;const d=.5,p=t.position==="middle"?.5:0,g=t.position==="top"?-1:1,b=getOffsetForMiddlePosition(a,c.height),x=[{offset:0,transform:`translateY(-${b+c.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${b+c.height}px)`}],w=createAnimation("toast-swipe-to-dismiss-animation").addElement(o).duration(100);switch(t.position){case"middle":u=a+c.height,w.keyframes(x),w.progressStart(!0,.5);break;case"top":u=c.bottom,w.keyframes([{offset:0,transform:`translateY(${e.top})`},{offset:1,transform:"translateY(-100%)"}]),w.progressStart(!0,0);break;case"bottom":default:u=a-c.top,w.keyframes([{offset:0,transform:`translateY(${e.bottom})`},{offset:1,transform:"translateY(100%)"}]),w.progressStart(!0,0);break}const y=E=>E*g/u,T=createGesture({el:o,gestureName:"toast-swipe-to-dismiss",gesturePriority:OVERLAY_GESTURE_PRIORITY,direction:"y",onMove:E=>{const O=p+y(E.deltaY);w.progressStep(O)},onEnd:E=>{const O=E.velocityY,A=(E.deltaY+O*1e3)/u*g;T.enable(!1);let L=!0,R=1,$=0,P=0;if(t.position==="middle"){L=A>=d/2||A<=-d/2,R=1,$=0;const W=o.getBoundingClientRect(),D=W.top-b,S=`${D}px`,F=E.deltaY<=0?-1:1,U=(b+W.height)*F,M=L?`${U}px`:"0px",V=[{offset:0,transform:`translateY(${S})`},{offset:1,transform:`translateY(${M})`}];w.keyframes(V),P=U-D}else L=A>=d,R=L?1:0,$=y(E.deltaY),P=(L?1-$:$)*u;const z=Math.min(Math.abs(P)/Math.abs(O),200);w.onFinish(()=>{L?(r(),w.destroy()):(t.position==="middle"?w.keyframes(x).progressStart(!0,.5):w.progressStart(!0,0),T.enable(!0))},{oneTimeCallback:!0}).progressEnd(R,$,z)}});return T},toastIosCss=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",toastMdCss=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}",Toast=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionToastDidPresent",7),this.willPresent=createEvent(this,"ionToastWillPresent",7),this.willDismiss=createEvent(this,"ionToastWillDismiss",7),this.didDismiss=createEvent(this,"ionToastDidDismiss",7),this.didPresentShorthand=createEvent(this,"didPresent",7),this.willPresentShorthand=createEvent(this,"willPresent",7),this.willDismissShorthand=createEvent(this,"willDismiss",7),this.didDismissShorthand=createEvent(this,"didDismiss",7),this.delegateController=createDelegateController(this),this.lockController=createLockController(),this.triggerController=createTriggerController(),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT),this.presented=!1,this.dispatchCancelHandler=e=>{const r=e.detail.role;if(isCancel$2(r)){const o=this.getButtons().find(a=>a.role==="cancel");this.callButtonHandler(o)}},this.createSwipeGesture=e=>{(this.gesture=createSwipeToDismissGesture(this.el,e,()=>{this.dismiss(void 0,GESTURE)})).enable(!0)},this.destroySwipeGesture=()=>{const{gesture:e}=this;e!==void 0&&(e.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:e}=this;return e==="vertical"},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=config$1.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(e,r){e===!0&&r===!1?this.present():e===!1&&r===!0&&this.dismiss()}triggerChanged(){const{trigger:e,el:r,triggerController:o}=this;e&&o.addClickListener(r,e)}connectedCallback(){prepareOverlay(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){setOverlayId(this.el)}componentDidLoad(){this.isOpen===!0&&raf(()=>this.present()),this.triggerChanged()}async present(){const e=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:r,position:o}=this,a=this.getAnchorElement(),c=getAnimationPosition(o,a,getIonMode$2(this),r);this.lastPresentedPosition=c,await present(this,"toastEnter",iosEnterAnimation$1,mdEnterAnimation$1,{position:o,top:c.top,bottom:c.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(void 0,"timeout"),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(c),e()}async dismiss(e,r){var o,a;const c=await this.lockController.lock(),{durationTimeout:u,position:d,lastPresentedPosition:p}=this;u&&clearTimeout(u);const g=await dismiss(this,e,r,"toastLeave",iosLeaveAnimation$1,mdLeaveAnimation$1,{position:d,top:(o=p==null?void 0:p.top)!==null&&o!==void 0?o:"",bottom:(a=p==null?void 0:p.bottom)!==null&&a!==void 0?a:""});return g&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),c(),g}onDidDismiss(){return eventMethod(this.el,"ionToastDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map(r=>typeof r=="string"?{text:r}:r):[]}getAnchorElement(){const{position:e,positionAnchor:r,el:o}=this;if(r!==void 0){if(e==="middle"&&r!==void 0){printIonWarning('The positionAnchor property is ignored when using position="middle".',this.el);return}if(typeof r=="string"){const a=document.getElementById(r);if(a===null){printIonWarning(`An anchor element with an ID of "${r}" was not found in the DOM.`,o);return}return a}if(r instanceof H)return r;printIonWarning("Invalid positionAnchor value:",r,o)}}async buttonClick(e){const r=e.role;return isCancel$2(r)?this.dismiss(void 0,r):await this.callButtonHandler(e)?this.dismiss(void 0,r):Promise.resolve()}async callButtonHandler(e){if(e!=null&&e.handler)try{if(await safeCall(e.handler)===!1)return!1}catch(r){console.error(r)}return!0}renderButtons(e,r){if(e.length===0)return;const o=getIonMode$2(this),a={"toast-button-group":!0,[`toast-button-group-${r}`]:!0};return h("div",{class:a},e.map(c=>h("button",Object.assign({},c.htmlAttributes,{type:"button",class:buttonClass(c),tabIndex:0,onClick:()=>this.buttonClick(c),part:buttonPart(c)}),h("div",{class:"toast-button-inner"},c.icon&&h("ion-icon",{"aria-hidden":"true",icon:c.icon,slot:c.text===void 0?"icon-only":void 0,class:"toast-button-icon"}),c.text),o==="md"&&h("ion-ripple-effect",{type:c.icon!==void 0&&c.text===void 0?"unbounded":"bounded"}))))}renderToastMessage(e,r=null){const{customHTMLEnabled:o,message:a}=this;return o?h("div",{key:e,"aria-hidden":r,class:"toast-message",part:"message",innerHTML:sanitizeDOMString(a)}):h("div",{key:e,"aria-hidden":r,class:"toast-message",part:"message"},a)}renderHeader(e,r=null){return h("div",{key:e,class:"toast-header","aria-hidden":r,part:"header"},this.header)}render(){const{layout:e,el:r,revealContentToScreenReader:o,header:a,message:c}=this,u=this.getButtons(),d=u.filter(x=>x.side==="start"),p=u.filter(x=>x.side!=="start"),g=getIonMode$2(this),b={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${e}`]:!0};return e==="stacked"&&d.length>0&&p.length>0&&printIonWarning("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",r),h(Host,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:createColorClasses$1(this.color,Object.assign(Object.assign({[g]:!0},getClassMap(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),h("div",{class:b},h("div",{class:"toast-container",part:"container"},this.renderButtons(d,"start"),this.icon!==void 0&&h("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),h("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!o&&a!==void 0&&this.renderHeader("oldHeader","true"),!o&&c!==void 0&&this.renderToastMessage("oldMessage","true"),o&&a!==void 0&&this.renderHeader("header"),o&&c!==void 0&&this.renderToastMessage("header")),this.renderButtons(p,"end"))))}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:toastIosCss,md:toastMdCss}}},[33,"ion-toast",{overlayIndex:[2,"overlay-index"],delegate:[16],hasController:[4,"has-controller"],color:[513],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],duration:[2],header:[1],layout:[1],message:[1],keyboardClose:[4,"keyboard-close"],position:[1],positionAnchor:[1,"position-anchor"],buttons:[16],translucent:[4],animated:[4],icon:[1],htmlAttributes:[16],swipeGesture:[1,"swipe-gesture"],isOpen:[4,"is-open"],trigger:[1],revealContentToScreenReader:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),buttonClass=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":t.icon!==void 0&&t.text===void 0,[`toast-button-${t.role}`]:t.role!==void 0,"ion-focusable":!0,"ion-activatable":!0},getClassMap(t.cssClass)),buttonPart=t=>isCancel$2(t.role)?"button cancel":"button";function defineCustomElement$1$1(){if(typeof customElements>"u")return;["ion-toast","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-toast":customElements.get(e)||customElements.define(e,Toast);break;case"ion-icon":customElements.get(e)||defineCustomElement$T();break;case"ion-ripple-effect":customElements.get(e)||defineCustomElement$Q();break}})}const defineCustomElement$2=defineCustomElement$1$1;/*!
194
194
  * (C) Ionic http://ionicframework.com - MIT License
@@ -1180,4 +1180,4 @@ ${g}`:p)}else throw u},onCacheKey:u=>generateFormatCacheKey(e,r,u)}}function get
1180
1180
  * (c) 2023 kazuya kawaguchi
1181
1181
  * Released under the MIT License.
1182
1182
  */const VERSION="9.4.1";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(t,...e){return format$2(warnMessages[t],...e)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...e){return createCompileError(t,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:e}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(t){if(!isObject$1(t))return t;for(const e in t)if(hasOwn(t,e))if(!e.includes("."))isObject$1(t[e])&&handleFlatJson(t[e]);else{const r=e.split("."),o=r.length-1;let a=t,c=!1;for(let u=0;u<o;u++){if(r[u]in a||(a[r[u]]={}),!isObject$1(a[r[u]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:r[u]})),c=!0;break}a=a[r[u]]}c||(a[r[o]]=t[e],delete t[e]),isObject$1(a[r[o]])&&handleFlatJson(a[r[o]])}return t}function getLocaleMessages(t,e){const{messages:r,__i18n:o,messageResolver:a,flatJson:c}=e,u=isPlainObject(r)?r:isArray(o)?{}:{[t]:{}};if(isArray(o)&&o.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:p,resource:g}=d;p?(u[p]=u[p]||{},deepCopy(g,u[p])):deepCopy(g,u)}else isString$1(d)&&deepCopy(JSON.parse(d),u)}),a==null&&c)for(const d in u)hasOwn(u,d)&&handleFlatJson(u[d]);return u}const isNotObjectOrIsArray=t=>!isObject$1(t)||isArray(t);function deepCopy(t,e){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(e))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const r in t)hasOwn(t,r)&&(isNotObjectOrIsArray(t[r])||isNotObjectOrIsArray(e[r])?e[r]=t[r]:deepCopy(t[r],e[r]))}function getComponentOptions(t){return t.type}function adjustI18nResources(t,e,r){let o=isObject$1(e.messages)?e.messages:{};"__i18nGlobal"in r&&(o=getLocaleMessages(t.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const a=Object.keys(o);a.length&&a.forEach(c=>{t.mergeLocaleMessage(c,o[c])});{if(isObject$1(e.datetimeFormats)){const c=Object.keys(e.datetimeFormats);c.length&&c.forEach(u=>{t.mergeDateTimeFormat(u,e.datetimeFormats[u])})}if(isObject$1(e.numberFormats)){const c=Object.keys(e.numberFormats);c.length&&c.forEach(u=>{t.mergeNumberFormat(u,e.numberFormats[u])})}}}function createTextNode(t){return vue.createVNode(vue.Text,null,t,0)}const DEVTOOLS_META="__INTLIFY_META__";let composerID=0;function defineCoreMissingHandler(t){return(e,r,o,a)=>t(r,o,vue.getCurrentInstance()||void 0,a)}const getMetaInfo=()=>{const t=vue.getCurrentInstance();let e=null;return t&&(e=getComponentOptions(t)[DEVTOOLS_META])?{[DEVTOOLS_META]:e}:null};function createComposer(t={},e){const{__root:r,__injectWithOption:o}=t,a=r===void 0;let c=isBoolean(t.inheritLocale)?t.inheritLocale:!0;const u=vue.ref(r&&c?r.locale.value:isString$1(t.locale)?t.locale:DEFAULT_LOCALE),d=vue.ref(r&&c?r.fallbackLocale.value:isString$1(t.fallbackLocale)||isArray(t.fallbackLocale)||isPlainObject(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=vue.ref(getLocaleMessages(u.value,t)),g=vue.ref(isPlainObject(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),b=vue.ref(isPlainObject(t.numberFormats)?t.numberFormats:{[u.value]:{}});let x=r?r.missingWarn:isBoolean(t.missingWarn)||isRegExp(t.missingWarn)?t.missingWarn:!0,w=r?r.fallbackWarn:isBoolean(t.fallbackWarn)||isRegExp(t.fallbackWarn)?t.fallbackWarn:!0,y=r?r.fallbackRoot:isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,I=!!t.fallbackFormat,k=isFunction(t.missing)?t.missing:null,T=isFunction(t.missing)?defineCoreMissingHandler(t.missing):null,E=isFunction(t.postTranslation)?t.postTranslation:null,O=r?r.warnHtmlMessage:isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0,A=!!t.escapeParameter;const L=r?r.modifiers:isPlainObject(t.modifiers)?t.modifiers:{};let R=t.pluralRules||r&&r.pluralRules,$;$=(()=>{a&&setFallbackContext(null);const ie={version:VERSION,locale:u.value,fallbackLocale:d.value,messages:p.value,modifiers:L,pluralRules:R,missing:T===null?void 0:T,missingWarn:x,fallbackWarn:w,fallbackFormat:I,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:O,escapeParameter:A,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=g.value,ie.numberFormats=b.value,ie.__datetimeFormatters=isPlainObject($)?$.__datetimeFormatters:void 0,ie.__numberFormatters=isPlainObject($)?$.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ie.__v_emitter=isPlainObject($)?$.__v_emitter:void 0);const he=createCoreContext(ie);return a&&setFallbackContext(he),he})(),updateFallbackLocale($,u.value,d.value);function z(){return[u.value,d.value,p.value,g.value,b.value]}const W=vue.computed({get:()=>u.value,set:ie=>{u.value=ie,$.locale=u.value}}),D=vue.computed({get:()=>d.value,set:ie=>{d.value=ie,$.fallbackLocale=d.value,updateFallbackLocale($,u.value,ie)}}),S=vue.computed(()=>p.value),F=vue.computed(()=>g.value),U=vue.computed(()=>b.value);function M(){return isFunction(E)?E:null}function V(ie){E=ie,$.postTranslation=ie}function G(){return k}function Q(ie){ie!==null&&(T=defineCoreMissingHandler(ie)),k=ie,$.missing=T}function fe(ie,he){return ie!=="translate"||!he.resolvedMessage}const te=(ie,he,Ye,et,bt,$e)=>{z();let Ee;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&setAdditionalMeta(getMetaInfo()),a||($.fallbackContext=r?getFallbackContext():void 0),Ee=ie($)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&setAdditionalMeta(null),a||($.fallbackContext=void 0)}if(isNumber(Ee)&&Ee===NOT_REOSLVED){const[Ie,ze]=he();if(process.env.NODE_ENV!=="production"&&r&&isString$1(Ie)&&fe(Ye,ze)&&(y&&(isTranslateFallbackWarn(w,Ie)||isTranslateMissingWarn(x,Ie))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:Ie,type:Ye})),process.env.NODE_ENV!=="production")){const{__v_emitter:ct}=$;ct&&y&&ct.emit("fallback",{type:Ye,key:Ie,to:"global",groupId:`${Ye}:${Ie}`})}return r&&y?et(r):bt(Ie)}else{if($e(Ee))return Ee;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function de(...ie){return te(he=>Reflect.apply(translate,null,[he,...ie]),()=>parseTranslateArgs(...ie),"translate",he=>Reflect.apply(he.t,he,[...ie]),he=>he,he=>isString$1(he))}function me(...ie){const[he,Ye,et]=ie;if(et&&!isObject$1(et))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return de(he,Ye,assign$1({resolvedMessage:!0},et||{}))}function Me(...ie){return te(he=>Reflect.apply(datetime,null,[he,...ie]),()=>parseDateTimeArgs(...ie),"datetime format",he=>Reflect.apply(he.d,he,[...ie]),()=>MISSING_RESOLVE_VALUE,he=>isString$1(he))}function ce(...ie){return te(he=>Reflect.apply(number,null,[he,...ie]),()=>parseNumberArgs(...ie),"number format",he=>Reflect.apply(he.n,he,[...ie]),()=>MISSING_RESOLVE_VALUE,he=>isString$1(he))}function oe(ie){return ie.map(he=>isString$1(he)||isNumber(he)||isBoolean(he)?createTextNode(String(he)):he)}const Te={normalize:oe,interpolate:ie=>ie,type:"vnode"};function Ae(...ie){return te(he=>{let Ye;const et=he;try{et.processor=Te,Ye=Reflect.apply(translate,null,[et,...ie])}finally{et.processor=null}return Ye},()=>parseTranslateArgs(...ie),"translate",he=>he[TranslateVNodeSymbol](...ie),he=>[createTextNode(he)],he=>isArray(he))}function Be(...ie){return te(he=>Reflect.apply(number,null,[he,...ie]),()=>parseNumberArgs(...ie),"number format",he=>he[NumberPartsSymbol](...ie),()=>[],he=>isString$1(he)||isArray(he))}function Xe(...ie){return te(he=>Reflect.apply(datetime,null,[he,...ie]),()=>parseDateTimeArgs(...ie),"datetime format",he=>he[DatetimePartsSymbol](...ie),()=>[],he=>isString$1(he)||isArray(he))}function He(ie){R=ie,$.pluralRules=R}function Ke(ie,he){const Ye=isString$1(he)?he:u.value,et=q(Ye);return $.messageResolver(et,ie)!==null}function ot(ie){let he=null;const Ye=fallbackWithLocaleChain($,d.value,u.value);for(let et=0;et<Ye.length;et++){const bt=p.value[Ye[et]]||{},$e=$.messageResolver(bt,ie);if($e!=null){he=$e;break}}return he}function K(ie){const he=ot(ie);return he??(r?r.tm(ie)||{}:{})}function q(ie){return p.value[ie]||{}}function se(ie,he){p.value[ie]=he,$.messages=p.value}function Ce(ie,he){p.value[ie]=p.value[ie]||{},deepCopy(he,p.value[ie]),$.messages=p.value}function Le(ie){return g.value[ie]||{}}function qe(ie,he){g.value[ie]=he,$.datetimeFormats=g.value,clearDateTimeFormat($,ie,he)}function Ct(ie,he){g.value[ie]=assign$1(g.value[ie]||{},he),$.datetimeFormats=g.value,clearDateTimeFormat($,ie,he)}function ke(ie){return b.value[ie]||{}}function xe(ie,he){b.value[ie]=he,$.numberFormats=b.value,clearNumberFormat($,ie,he)}function Ne(ie,he){b.value[ie]=assign$1(b.value[ie]||{},he),$.numberFormats=b.value,clearNumberFormat($,ie,he)}composerID++,r&&inBrowser&&(vue.watch(r.locale,ie=>{c&&(u.value=ie,$.locale=ie,updateFallbackLocale($,u.value,d.value))}),vue.watch(r.fallbackLocale,ie=>{c&&(d.value=ie,$.fallbackLocale=ie,updateFallbackLocale($,u.value,d.value))}));const Se={id:composerID,locale:W,fallbackLocale:D,get inheritLocale(){return c},set inheritLocale(ie){c=ie,ie&&r&&(u.value=r.locale.value,d.value=r.fallbackLocale.value,updateFallbackLocale($,u.value,d.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:S,get modifiers(){return L},get pluralRules(){return R||{}},get isGlobal(){return a},get missingWarn(){return x},set missingWarn(ie){x=ie,$.missingWarn=x},get fallbackWarn(){return w},set fallbackWarn(ie){w=ie,$.fallbackWarn=w},get fallbackRoot(){return y},set fallbackRoot(ie){y=ie},get fallbackFormat(){return I},set fallbackFormat(ie){I=ie,$.fallbackFormat=I},get warnHtmlMessage(){return O},set warnHtmlMessage(ie){O=ie,$.warnHtmlMessage=ie},get escapeParameter(){return A},set escapeParameter(ie){A=ie,$.escapeParameter=ie},t:de,getLocaleMessage:q,setLocaleMessage:se,mergeLocaleMessage:Ce,getPostTranslationHandler:M,setPostTranslationHandler:V,getMissingHandler:G,setMissingHandler:Q,[SetPluralRulesSymbol]:He};return Se.datetimeFormats=F,Se.numberFormats=U,Se.rt=me,Se.te=Ke,Se.tm=K,Se.d=Me,Se.n=ce,Se.getDateTimeFormat=Le,Se.setDateTimeFormat=qe,Se.mergeDateTimeFormat=Ct,Se.getNumberFormat=ke,Se.setNumberFormat=xe,Se.mergeNumberFormat=Ne,Se[InejctWithOptionSymbol]=o,Se[TranslateVNodeSymbol]=Ae,Se[DatetimePartsSymbol]=Xe,Se[NumberPartsSymbol]=Be,process.env.NODE_ENV!=="production"&&(Se[EnableEmitter]=ie=>{$.__v_emitter=ie},Se[DisableEmitter]=()=>{$.__v_emitter=void 0}),Se}function convertComposerOptions(t){const e=isString$1(t.locale)?t.locale:DEFAULT_LOCALE,r=isString$1(t.fallbackLocale)||isArray(t.fallbackLocale)||isPlainObject(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,o=isFunction(t.missing)?t.missing:void 0,a=isBoolean(t.silentTranslationWarn)||isRegExp(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,c=isBoolean(t.silentFallbackWarn)||isRegExp(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,u=isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,d=!!t.formatFallbackMessages,p=isPlainObject(t.modifiers)?t.modifiers:{},g=t.pluralizationRules,b=isFunction(t.postTranslation)?t.postTranslation:void 0,x=isString$1(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,w=!!t.escapeParameterHtml,y=isBoolean(t.sync)?t.sync:!0;process.env.NODE_ENV!=="production"&&t.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&t.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let I=t.messages;if(isPlainObject(t.sharedMessages)){const R=t.sharedMessages;I=Object.keys(R).reduce((P,z)=>{const W=P[z]||(P[z]={});return assign$1(W,R[z]),P},I||{})}const{__i18n:k,__root:T,__injectWithOption:E}=t,O=t.datetimeFormats,A=t.numberFormats,L=t.flatJson;return{locale:e,fallbackLocale:r,messages:I,flatJson:L,datetimeFormats:O,numberFormats:A,missing:o,missingWarn:a,fallbackWarn:c,fallbackRoot:u,fallbackFormat:d,modifiers:p,pluralRules:g,postTranslation:b,warnHtmlMessage:x,escapeParameter:w,messageResolver:t.messageResolver,inheritLocale:y,__i18n:k,__root:T,__injectWithOption:E}}function createVueI18n(t={},e){{const r=createComposer(convertComposerOptions(t)),{__extender:o}=t,a={id:r.id,get locale(){return r.locale.value},set locale(c){r.locale.value=c},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(c){r.fallbackLocale.value=c},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(c){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return r.getMissingHandler()},set missing(c){r.setMissingHandler(c)},get silentTranslationWarn(){return isBoolean(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(c){r.missingWarn=isBoolean(c)?!c:c},get silentFallbackWarn(){return isBoolean(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(c){r.fallbackWarn=isBoolean(c)?!c:c},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(c){r.fallbackFormat=c},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(c){r.setPostTranslationHandler(c)},get sync(){return r.inheritLocale},set sync(c){r.inheritLocale=c},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(c){r.warnHtmlMessage=c!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(c){r.escapeParameter=c},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(c){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...c){const[u,d,p]=c,g={};let b=null,x=null;if(!isString$1(u))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const w=u;return isString$1(d)?g.locale=d:isArray(d)?b=d:isPlainObject(d)&&(x=d),isArray(p)?b=p:isPlainObject(p)&&(x=p),Reflect.apply(r.t,r,[w,b||x||{},g])},rt(...c){return Reflect.apply(r.rt,r,[...c])},tc(...c){const[u,d,p]=c,g={plural:1};let b=null,x=null;if(!isString$1(u))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const w=u;return isString$1(d)?g.locale=d:isNumber(d)?g.plural=d:isArray(d)?b=d:isPlainObject(d)&&(x=d),isString$1(p)?g.locale=p:isArray(p)?b=p:isPlainObject(p)&&(x=p),Reflect.apply(r.t,r,[w,b||x||{},g])},te(c,u){return r.te(c,u)},tm(c){return r.tm(c)},getLocaleMessage(c){return r.getLocaleMessage(c)},setLocaleMessage(c,u){r.setLocaleMessage(c,u)},mergeLocaleMessage(c,u){r.mergeLocaleMessage(c,u)},d(...c){return Reflect.apply(r.d,r,[...c])},getDateTimeFormat(c){return r.getDateTimeFormat(c)},setDateTimeFormat(c,u){r.setDateTimeFormat(c,u)},mergeDateTimeFormat(c,u){r.mergeDateTimeFormat(c,u)},n(...c){return Reflect.apply(r.n,r,[...c])},getNumberFormat(c){return r.getNumberFormat(c)},setNumberFormat(c,u){r.setNumberFormat(c,u)},mergeNumberFormat(c,u){r.mergeNumberFormat(c,u)},getChoiceIndex(c,u){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return a.__extender=o,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=c=>{const u=r;u[EnableEmitter]&&u[EnableEmitter](c)},a.__disableEmitter=()=>{const c=r;c[DisableEmitter]&&c[DisableEmitter]()}),a}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((o,a)=>[...o,...a.type===vue.Fragment?a.children:[a]],[]):e.reduce((r,o)=>{const a=t[o];return a&&(r[o]=a()),r},{})}function getFragmentableTag(t){return vue.Fragment}const TranslationImpl=vue.defineComponent({name:"i18n-t",props:assign$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>isNumber(t)||!isNaN(t)}},baseFormatProps),setup(t,e){const{slots:r,attrs:o}=e,a=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return()=>{const c=Object.keys(r).filter(x=>x!=="_"),u={};t.locale&&(u.locale=t.locale),t.plural!==void 0&&(u.plural=isString$1(t.plural)?+t.plural:t.plural);const d=getInterpolateArg(e,c),p=a[TranslateVNodeSymbol](t.keypath,d,u),g=assign$1({},o),b=isString$1(t.tag)||isObject$1(t.tag)?t.tag:getFragmentableTag();return vue.h(b,g,p)}}}),Translation=TranslationImpl;function isVNode(t){return isArray(t)&&!isString$1(t[0])}function renderFormatter(t,e,r,o){const{slots:a,attrs:c}=e;return()=>{const u={part:!0};let d={};t.locale&&(u.locale=t.locale),isString$1(t.format)?u.key=t.format:isObject$1(t.format)&&(isString$1(t.format.key)&&(u.key=t.format.key),d=Object.keys(t.format).reduce((w,y)=>r.includes(y)?assign$1({},w,{[y]:t.format[y]}):w,{}));const p=o(t.value,u,d);let g=[u.key];isArray(p)?g=p.map((w,y)=>{const I=a[w.type],k=I?I({[w.type]:w.value,index:y,parts:p}):[w.value];return isVNode(k)&&(k[0].key=`${w.type}-${y}`),k}):isString$1(p)&&(g=[p]);const b=assign$1({},c),x=isString$1(t.tag)||isObject$1(t.tag)?t.tag:getFragmentableTag();return vue.h(x,b,g)}}const NumberFormatImpl=vue.defineComponent({name:"i18n-n",props:assign$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,e){const r=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,e,NUMBER_FORMAT_OPTIONS_KEYS,(...o)=>r[NumberPartsSymbol](...o))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=vue.defineComponent({name:"i18n-d",props:assign$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,e){const r=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,e,DATETIME_FORMAT_OPTIONS_KEYS,(...o)=>r[DatetimePartsSymbol](...o))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const o=r.__getInstance(e);return o!=null?o.__composer:t.global.__composer}}function vTDirective(t){const e=u=>{const{instance:d,modifiers:p,value:g}=u;if(!d||!d.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const b=getComposer$2(t,d.$);process.env.NODE_ENV!=="production"&&p.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const x=parseValue(g);return[Reflect.apply(b.t,b,[...makeParams(x)]),b]};return{created:(u,d)=>{const[p,g]=e(d);inBrowser&&t.global===g&&(u.__i18nWatcher=vue.watch(g.locale,()=>{d.instance&&d.instance.$forceUpdate()})),u.__composer=g,u.textContent=p},unmounted:u=>{inBrowser&&u.__i18nWatcher&&(u.__i18nWatcher(),u.__i18nWatcher=void 0,delete u.__i18nWatcher),u.__composer&&(u.__composer=void 0,delete u.__composer)},beforeUpdate:(u,{value:d})=>{if(u.__composer){const p=u.__composer,g=parseValue(d);u.textContent=Reflect.apply(p.t,p,[...makeParams(g)])}},getSSRProps:u=>{const[d]=e(u);return{textContent:d}}}}function parseValue(t){if(isString$1(t))return{path:t};if(isPlainObject(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:e,locale:r,args:o,choice:a,plural:c}=t,u={},d=o||{};return isString$1(r)&&(u.locale=r),isNumber(a)&&(u.plural=a),isNumber(c)&&(u.plural=c),[e,d,u]}function apply(t,e,...r){const o=isPlainObject(r[0])?r[0]:{},a=!!o.useI18nComponentName,c=isBoolean(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&c&&a&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),c&&([a?"i18n":Translation.name,"I18nT"].forEach(u=>t.component(u,Translation)),[NumberFormat.name,"I18nN"].forEach(u=>t.component(u,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(u=>t.component(u,DatetimeFormat))),t.directive("t",vTDirective(e))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(t,e){return new Promise((r,o)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:t},a=>{devtoolsApi=a,a.on.visitComponentTree(({componentInstance:u,treeNode:d})=>{updateComponentTreeTags(u,d,e)}),a.on.inspectComponent(({componentInstance:u,instanceData:d})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&d&&(e.mode==="legacy"?u.vnode.el.__VUE_I18N__!==e.global.__composer&&inspectComposer(d,u.vnode.el.__VUE_I18N__):inspectComposer(d,u.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(u=>{u.app===t&&u.inspectorId==="vue-i18n-resource-inspector"&&registerScope(u,e)});const c=new Map;a.on.getInspectorState(async u=>{if(u.app===t&&u.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),inspectScope(u,e),u.nodeId==="global"){if(!c.has(u.app)){const[d]=await a.getComponentInstances(u.app);c.set(u.app,d)}a.highlightElement(c.get(u.app))}else{const d=getComponentInstance(u.nodeId,e);d&&a.highlightElement(d)}}),a.on.editInspectorState(u=>{u.app===t&&u.inspectorId==="vue-i18n-resource-inspector"&&editScope(u,e)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),r(!0)})}catch(a){console.error(a),o(!1)}})}function getI18nScopeLable(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function updateComponentTreeTags(t,e,r){const o=r.mode==="composition"?r.global:r.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==o){const a={label:`i18n (${getI18nScopeLable(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(a)}}function inspectComposer(t,e){const r=VUE_I18N_COMPONENT_TYPES;t.state.push({type:r,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:r,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:r,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:r,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:r,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}),t.state.push({type:r,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:r,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function getLocaleMessageValue(t){const e={};return Object.keys(t).forEach(r=>{const o=t[r];isFunction(o)&&"source"in o?e[r]=getMessageFunctionDetails(o):isMessageAST(o)&&o.loc&&o.loc.source?e[r]=o.loc.source:isObject$1(o)?e[r]=getLocaleMessageValue(o):e[r]=o}),e}const ESC={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function escape$1(t){return t.replace(/[<>"&]/g,escapeChar)}function escapeChar(t){return ESC[t]||t}function getMessageFunctionDetails(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${escape$1(t.source)}")`:"(?)"}`}}}function registerScope(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const r=e.mode==="composition"?e.global:e.global.__composer;for(const[o,a]of e.__instances){const c=e.mode==="composition"?a:a.__composer;r!==c&&t.rootNodes.push({id:c.id.toString(),label:`${getI18nScopeLable(o)} Scope`})}}function getComponentInstance(t,e){let r=null;if(t!=="global"){for(const[o,a]of e.__instances.entries())if(a.id.toString()===t){r=o;break}}return r}function getComposer$1(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const r=Array.from(e.__instances.values()).find(o=>o.id.toString()===t);return r?e.mode==="composition"?r:r.__composer:null}}function inspectScope(t,e){const r=getComposer$1(t.nodeId,e);return r&&(t.state=makeScopeInspectState(r)),null}function makeScopeInspectState(t){const e={},r="Locale related info",o=[{type:r,key:"locale",editable:!0,value:t.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:t.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[r]=o;const a="Locale messages info",c=[{type:a,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}];e[a]=c;{const u="Datetime formats info",d=[{type:u,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[u]=d;const p="Datetime formats info",g=[{type:p,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[p]=g}return e}function addTimelineEvent(t,e){if(devtoolsApi){let r;e&&"groupId"in e&&(r=e.groupId,delete e.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:r,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function editScope(t,e){const r=getComposer$1(t.nodeId,e);if(r){const[o]=t.path;o==="locale"&&isString$1(t.state.value)?r.locale.value=t.state.value:o==="fallbackLocale"&&(isString$1(t.state.value)||isArray(t.state.value)||isObject$1(t.state.value))?r.fallbackLocale.value=t.state.value:o==="inheritLocale"&&isBoolean(t.state.value)&&(r.inheritLocale=t.state.value)}}function defineMixin(t,e,r){return{beforeCreate(){const o=vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const c=a.i18n;if(a.__i18n&&(c.__i18n=a.__i18n),c.__root=e,this===this.$root)this.$i18n=mergeToGlobal(t,c);else{c.__injectWithOption=!0,c.__extender=r.__vueI18nExtend,this.$i18n=createVueI18n(c);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(t,a);else{this.$i18n=createVueI18n({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:e});const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}else this.$i18n=t;a.__i18nGlobal&&adjustI18nResources(e,a,a),this.$t=(...c)=>this.$i18n.t(...c),this.$rt=(...c)=>this.$i18n.rt(...c),this.$tc=(...c)=>this.$i18n.tc(...c),this.$te=(c,u)=>this.$i18n.te(c,u),this.$d=(...c)=>this.$i18n.d(...c),this.$n=(...c)=>this.$i18n.n(...c),this.$tm=c=>this.$i18n.tm(c),r.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const a=this.__v_emitter=createEmitter();o.__enableEmitter&&o.__enableEmitter(a),a.on("*",addTimelineEvent)}},unmounted(){const o=vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),r.__deleteInstance(o),delete this.$i18n}}}function mergeToGlobal(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[SetPluralRulesSymbol](e.pluralizationRules||t.pluralizationRules);const r=getLocaleMessages(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(r).forEach(o=>t.mergeLocaleMessage(o,r[o])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(o=>t.mergeDateTimeFormat(o,e.datetimeFormats[o])),e.numberFormats&&Object.keys(e.numberFormats).forEach(o=>t.mergeNumberFormat(o,e.numberFormats[o])),t}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(t={},e){const r=__VUE_I18N_LEGACY_API__&&isBoolean(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,o=isBoolean(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,c=new Map,[u,d]=createGlobal(t,r),p=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&r&&a&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function g(w){return c.get(w)||null}function b(w,y){c.set(w,y)}function x(w){c.delete(w)}{const w={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(y,...I){if(process.env.NODE_ENV!=="production"&&(y.__VUE_I18N__=w),y.__VUE_I18N_SYMBOL__=p,y.provide(y.__VUE_I18N_SYMBOL__,w),isPlainObject(I[0])){const E=I[0];w.__composerExtend=E.__composerExtend,w.__vueI18nExtend=E.__vueI18nExtend}let k=null;!r&&o&&(k=injectGlobalFields(y,w.global)),__VUE_I18N_FULL_INSTALL__&&apply(y,w,...I),__VUE_I18N_LEGACY_API__&&r&&y.mixin(defineMixin(d,d.__composer,w));const T=y.unmount;if(y.unmount=()=>{k&&k(),w.dispose(),T()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(y,w))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const O=createEmitter();if(r){const A=d;A.__enableEmitter&&A.__enableEmitter(O)}else{const A=d;A[EnableEmitter]&&A[EnableEmitter](O)}O.on("*",addTimelineEvent)}},get global(){return d},dispose(){u.stop()},__instances:c,__getInstance:g,__setInstance:b,__deleteInstance:x};return w}}function useI18n(t={}){const e=vue.getCurrentInstance();if(e==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const r=getI18nInstance(e),o=getGlobalComposer(r),a=getComponentOptions(e),c=getScope(t,a);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(e,c,o,t)}if(c==="global")return adjustI18nResources(o,t,a),o;if(c==="parent"){let p=getComposer(r,e,t.__useComponent);return p==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),p=o),p}const u=r;let d=u.__getInstance(e);if(d==null){const p=assign$1({},t);"__i18n"in a&&(p.__i18n=a.__i18n),o&&(p.__root=o),d=createComposer(p),u.__composerExtend&&(d[DisposeSymbol]=u.__composerExtend(d)),setupLifeCycle(u,e,d),u.__setInstance(e,d)}return d}function createGlobal(t,e,r){const o=vue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?o.run(()=>createVueI18n(t)):o.run(()=>createComposer(t));if(a==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[o,a]}}function getI18nInstance(t){{const e=vue.inject(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return e}}function getScope(t,e){return isEmptyObject(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,e,r=!1){let o=null;const a=e.root;let c=getParentComponentInstance(e,r);for(;c!=null;){const u=t;if(t.mode==="composition")o=u.__getInstance(c);else if(__VUE_I18N_LEGACY_API__){const d=u.__getInstance(c);d!=null&&(o=d.__composer,r&&o&&!o[InejctWithOptionSymbol]&&(o=null))}if(o!=null||a===c)break;c=c.parent}return o}function getParentComponentInstance(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function setupLifeCycle(t,e,r){let o=null;vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=r,o=createEmitter();const a=r;a[EnableEmitter]&&a[EnableEmitter](o),o.on("*",addTimelineEvent)}},e),vue.onUnmounted(()=>{const a=r;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(o&&o.off("*",addTimelineEvent),a[DisableEmitter]&&a[DisableEmitter](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const c=a[DisposeSymbol];c&&(c(),delete a[DisposeSymbol])},e)}function useI18nForLegacy(t,e,r,o={}){const a=e==="local",c=vue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=isBoolean(o.inheritLocale)?o.inheritLocale:!isString$1(o.locale),d=vue.ref(!a||u?r.locale.value:isString$1(o.locale)?o.locale:DEFAULT_LOCALE),p=vue.ref(!a||u?r.fallbackLocale.value:isString$1(o.fallbackLocale)||isArray(o.fallbackLocale)||isPlainObject(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:d.value),g=vue.ref(getLocaleMessages(d.value,o)),b=vue.ref(isPlainObject(o.datetimeFormats)?o.datetimeFormats:{[d.value]:{}}),x=vue.ref(isPlainObject(o.numberFormats)?o.numberFormats:{[d.value]:{}}),w=a?r.missingWarn:isBoolean(o.missingWarn)||isRegExp(o.missingWarn)?o.missingWarn:!0,y=a?r.fallbackWarn:isBoolean(o.fallbackWarn)||isRegExp(o.fallbackWarn)?o.fallbackWarn:!0,I=a?r.fallbackRoot:isBoolean(o.fallbackRoot)?o.fallbackRoot:!0,k=!!o.fallbackFormat,T=isFunction(o.missing)?o.missing:null,E=isFunction(o.postTranslation)?o.postTranslation:null,O=a?r.warnHtmlMessage:isBoolean(o.warnHtmlMessage)?o.warnHtmlMessage:!0,A=!!o.escapeParameter,L=a?r.modifiers:isPlainObject(o.modifiers)?o.modifiers:{},R=o.pluralRules||a&&r.pluralRules;function $(){return[d.value,p.value,g.value,b.value,x.value]}const P=vue.computed({get:()=>c.value?c.value.locale.value:d.value,set:q=>{c.value&&(c.value.locale.value=q),d.value=q}}),z=vue.computed({get:()=>c.value?c.value.fallbackLocale.value:p.value,set:q=>{c.value&&(c.value.fallbackLocale.value=q),p.value=q}}),W=vue.computed(()=>c.value?c.value.messages.value:g.value),D=vue.computed(()=>b.value),S=vue.computed(()=>x.value);function F(){return c.value?c.value.getPostTranslationHandler():E}function U(q){c.value&&c.value.setPostTranslationHandler(q)}function M(){return c.value?c.value.getMissingHandler():T}function V(q){c.value&&c.value.setMissingHandler(q)}function G(q){return $(),q()}function Q(...q){return c.value?G(()=>Reflect.apply(c.value.t,null,[...q])):G(()=>"")}function fe(...q){return c.value?Reflect.apply(c.value.rt,null,[...q]):""}function te(...q){return c.value?G(()=>Reflect.apply(c.value.d,null,[...q])):G(()=>"")}function de(...q){return c.value?G(()=>Reflect.apply(c.value.n,null,[...q])):G(()=>"")}function me(q){return c.value?c.value.tm(q):{}}function Me(q,se){return c.value?c.value.te(q,se):!1}function ce(q){return c.value?c.value.getLocaleMessage(q):{}}function oe(q,se){c.value&&(c.value.setLocaleMessage(q,se),g.value[q]=se)}function be(q,se){c.value&&c.value.mergeLocaleMessage(q,se)}function Te(q){return c.value?c.value.getDateTimeFormat(q):{}}function Ae(q,se){c.value&&(c.value.setDateTimeFormat(q,se),b.value[q]=se)}function Be(q,se){c.value&&c.value.mergeDateTimeFormat(q,se)}function Xe(q){return c.value?c.value.getNumberFormat(q):{}}function He(q,se){c.value&&(c.value.setNumberFormat(q,se),x.value[q]=se)}function Ke(q,se){c.value&&c.value.mergeNumberFormat(q,se)}const ot={get id(){return c.value?c.value.id:-1},locale:P,fallbackLocale:z,messages:W,datetimeFormats:D,numberFormats:S,get inheritLocale(){return c.value?c.value.inheritLocale:u},set inheritLocale(q){c.value&&(c.value.inheritLocale=q)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(g.value)},get modifiers(){return c.value?c.value.modifiers:L},get pluralRules(){return c.value?c.value.pluralRules:R},get isGlobal(){return c.value?c.value.isGlobal:!1},get missingWarn(){return c.value?c.value.missingWarn:w},set missingWarn(q){c.value&&(c.value.missingWarn=q)},get fallbackWarn(){return c.value?c.value.fallbackWarn:y},set fallbackWarn(q){c.value&&(c.value.missingWarn=q)},get fallbackRoot(){return c.value?c.value.fallbackRoot:I},set fallbackRoot(q){c.value&&(c.value.fallbackRoot=q)},get fallbackFormat(){return c.value?c.value.fallbackFormat:k},set fallbackFormat(q){c.value&&(c.value.fallbackFormat=q)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:O},set warnHtmlMessage(q){c.value&&(c.value.warnHtmlMessage=q)},get escapeParameter(){return c.value?c.value.escapeParameter:A},set escapeParameter(q){c.value&&(c.value.escapeParameter=q)},t:Q,getPostTranslationHandler:F,setPostTranslationHandler:U,getMissingHandler:M,setMissingHandler:V,rt:fe,d:te,n:de,tm:me,te:Me,getLocaleMessage:ce,setLocaleMessage:oe,mergeLocaleMessage:be,getDateTimeFormat:Te,setDateTimeFormat:Ae,mergeDateTimeFormat:Be,getNumberFormat:Xe,setNumberFormat:He,mergeNumberFormat:Ke};function K(q){q.locale.value=d.value,q.fallbackLocale.value=p.value,Object.keys(g.value).forEach(se=>{q.mergeLocaleMessage(se,g.value[se])}),Object.keys(b.value).forEach(se=>{q.mergeDateTimeFormat(se,b.value[se])}),Object.keys(x.value).forEach(se=>{q.mergeNumberFormat(se,x.value[se])}),q.escapeParameter=A,q.fallbackFormat=k,q.fallbackRoot=I,q.fallbackWarn=y,q.missingWarn=w,q.warnHtmlMessage=O}return vue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const q=c.value=t.proxy.$i18n.__composer;e==="global"?(d.value=q.locale.value,p.value=q.fallbackLocale.value,g.value=q.messages.value,b.value=q.datetimeFormats.value,x.value=q.numberFormats.value):a&&K(q)}),ot}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(t,e){const r=Object.create(null);return globalExportProps.forEach(a=>{const c=Object.getOwnPropertyDescriptor(e,a);if(!c)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const u=vue.isRef(c.value)?{get(){return c.value.value},set(d){c.value.value=d}}:{get(){return c.get&&c.get()}};Object.defineProperty(r,a,u)}),t.config.globalProperties.$i18n=r,globalExportMethods.forEach(a=>{const c=Object.getOwnPropertyDescriptor(e,a);if(!c||!c.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${a}`,c)}),()=>{delete t.config.globalProperties.$i18n,globalExportMethods.forEach(a=>{delete t.config.globalProperties[`$${a}`]})}}initFeatureFlags();__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=getGlobalThis();t.__INTLIFY__=!0,setDevToolsHook(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const _sfc_main=vue.defineComponent({__name:"ImageModal",props:["imageUrl","onClose","productName"],setup(t){const e=t,r=()=>{e.onClose()};return(o,a)=>(vue.openBlock(),vue.createBlock(vue.unref(IonModal),{"is-open":!0,onDidDismiss:r},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonHeader),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonToolbar),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButtons),{slot:"start"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonButton),{onClick:r},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(IonIcon),{icon:vue.unref(closeOutline),slot:"icon-only"},null,8,["icon"])]),_:1})]),_:1}),vue.createVNode(vue.unref(IonTitle),null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.productName),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(IonContent),{class:"ion-text-center"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$3,{src:t.imageUrl},null,8,["src"])]),_:1})]),_:1}))}}),ImageModal_vue_vue_type_style_index_0_scoped_d0727426_lang="",ImageModal=_export_sfc(_sfc_main,[["__scopeId","data-v-d0727426"]]),imagePreview={mounted(t,e){var c,u;t.classList.add("pointer");const r=(c=e.value)==null?void 0:c.mainImageUrl,o=(u=e.value)==null?void 0:u.productName,a=()=>{const d=document.createElement("div");t.appendChild(d);const p=vue.h(ImageModal,{imageUrl:r,productName:o,onClose:()=>{vue.render(null,d),t.removeChild(d)}});vue.render(p,d)};t.addEventListener("click",a)}};var isLocalhost=function(){return!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},waitWindowLoad;typeof window<"u"&&(typeof Promise<"u"?waitWindowLoad=new Promise(function(t){return window.addEventListener("load",t)}):waitWindowLoad={then:function(t){return window.addEventListener("load",t)}});function register(t,e){e===void 0&&(e={});var r=e.registrationOptions;r===void 0&&(r={}),delete e.registrationOptions;var o=function(a){for(var c=[],u=arguments.length-1;u-- >0;)c[u]=arguments[u+1];e&&e[a]&&e[a].apply(e,c)};"serviceWorker"in navigator&&waitWindowLoad.then(function(){isLocalhost()?(checkValidServiceWorker(t,o,r),navigator.serviceWorker.ready.then(function(a){o("ready",a)}).catch(function(a){return handleError(o,a)})):(registerValidSW(t,o,r),navigator.serviceWorker.ready.then(function(a){o("ready",a)}).catch(function(a){return handleError(o,a)}))})}function handleError(t,e){navigator.onLine||t("offline"),t("error",e)}function registerValidSW(t,e,r){navigator.serviceWorker.register(t,r).then(function(o){if(e("registered",o),o.waiting){e("updated",o);return}o.onupdatefound=function(){e("updatefound",o);var a=o.installing;a.onstatechange=function(){a.state==="installed"&&(navigator.serviceWorker.controller?e("updated",o):e("cached",o))}}}).catch(function(o){return handleError(e,o)})}function checkValidServiceWorker(t,e,r){fetch(t).then(function(o){o.status===404?(e("error",new Error("Service worker not found at "+t)),unregister()):o.headers.get("content-type").indexOf("javascript")===-1?(e("error",new Error("Expected "+t+" to have javascript content-type, but received "+o.headers.get("content-type"))),unregister()):registerValidSW(t,e,r)}).catch(function(o){return handleError(e,o)})}function unregister(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(t){t.unregister()}).catch(function(t){return handleError(emit,t)})}process.env.NODE_ENV==="production"&&register(`${process.env.BASE_URL}service-worker.js`,{ready(){console.log(`App is being served from cache by a service worker.
1183
- For more details, visit https://goo.gl/AFskqB`)},registered(t){console.log("Service worker has been registered."),setInterval(()=>{t.update()},1e3*60*60)},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(t){console.log("New content is available; please refresh."),document.dispatchEvent(new CustomEvent("swUpdated",{detail:t}))},offline(){console.log("No internet connection found. App is running in offline mode.")},error(t){console.error("Error during service worker registration:",t)}});const pinia=createPinia();pinia.use(src_default);exports.i18n=void 0;let imageContext={};exports.translate=void 0;let loginContext={},shopifyImgContext={};exports.appContext={};let productIdentificationContext={},facilityContext={},productStoreContext={},notificationContext={},gitBookContext={},userContext={},showToast={},refreshing=!1;const updateAvailable=t=>{const e=t.detail,r=!0;exports.appContext.config.globalProperties.$store.dispatch("user/updatePwaState",{registration:e,updateExists:r}),showToast(exports.translate("New version available, please update the app."))};document.addEventListener("swUpdated",updateAvailable,{once:!0});navigator.serviceWorker.addEventListener("controllerchange",()=>{refreshing||(refreshing=!0,window.location.reload())});let dxpComponents={install(t,e){exports.appContext=t,exports.i18n=createI18n({legacy:!1,locale:process.env.VUE_APP_I18N_LOCALE||"en-US",fallbackLocale:process.env.VUE_APP_I18N_FALLBACK_LOCALE||"en-US",messages:e.localeMessages}),t.use(pinia),t.use(exports.i18n),t.use(IonicVue,{mode:"md"}),t.component("DxpAppVersionInfo",_sfc_main$e),t.component("DxpFacilitySwitcher",DxpFacilitySwitcher),t.component("DxpGitBookSearch",_sfc_main$d),t.component("DxpImage",_sfc_main$b),t.component("DxpLanguageSwitcher",_sfc_main$a),t.component("DxpLogin",_sfc_main$9),t.component("DxpMenuFooterNavigation",_sfc_main$8),t.component("DxpOmsInstanceNavigator",_sfc_main$7),t.component("DxpPagination",_sfc_main$6),t.component("DxpProductIdentifier",_sfc_main$5),t.component("DxpProductStoreSelector",_sfc_main$4),t.component("DxpShopifyImg",_sfc_main$3),t.component("DxpTimeZoneSwitcher",_sfc_main$1),t.component("DxpUserProfile",DxpUserProfile),t.directive("image-preview",imagePreview),showToast=e.showToast,loginContext.login=e.login,loginContext.logout=e.logout,loginContext.loader=e.loader,loginContext.appLoginUrl=e.appLoginUrl,imageContext.defaultImgUrl=e.defaultImgUrl,shopifyImgContext.defaultImgUrl=e.defaultImgUrl,userContext.setUserLocale=e.setUserLocale,userContext.setUserTimeZone=e.setUserTimeZone,userContext.getAvailableTimeZones=e.getAvailableTimeZones,productIdentificationContext.getProductIdentificationPref=e.getProductIdentificationPref,productIdentificationContext.setProductIdentificationPref=e.setProductIdentificationPref,productIdentificationContext.fetchGoodIdentificationTypes=e.fetchGoodIdentificationTypes,facilityContext.getUserFacilities=e.getUserFacilities,facilityContext.setUserPreference=e.setUserPreference,facilityContext.getUserPreference=e.getUserPreference,productStoreContext.getEComStoresByFacility=e.getEComStoresByFacility,productStoreContext.getEComStores=e.getEComStores,productStoreContext.setUserPreference=e.setUserPreference,productStoreContext.getUserPreference=e.getUserPreference,notificationContext.addNotification=e.addNotification,notificationContext.appFirebaseConfig=e.appFirebaseConfig,notificationContext.appFirebaseVapidKey=e.appFirebaseVapidKey,notificationContext.storeClientRegistrationToken=e.storeClientRegistrationToken,gitBookContext.askQuery=e.askQuery,gitBookContext.getGitBookPage=e.getGitBookPage,gitBookContext.searchQuery=e.searchQuery,loginContext.getConfig=e.getConfig,loginContext.initialise=e.initialise,exports.appContext.Actions=e.Actions,exports.appContext.hasPermission=e.hasPermission,exports.i18n.global.locale.value=useUserStore().getLocale,exports.translate=exports.i18n.global.t}};exports.DxpUserProfile=DxpUserProfile;exports.Keyboard=Keyboard;exports._sfc_main=_sfc_main$b;exports._sfc_main$1=_sfc_main$9;exports._sfc_main$2=_sfc_main$8;exports._sfc_main$3=_sfc_main$7;exports._sfc_main$4=_sfc_main$6;exports._sfc_main$5=_sfc_main$5;exports._sfc_main$6=_sfc_main$3;exports._sfc_main$7=_sfc_main$1;exports.addEventListener=addEventListener$1;exports.clamp=clamp;exports.componentOnReady=componentOnReady;exports.createAnimation=createAnimation;exports.createGesture=createGesture;exports.doc=doc;exports.dxpComponents=dxpComponents;exports.facilityContext=facilityContext;exports.findClosestIonContent=findClosestIonContent;exports.getIonPageElement=getIonPageElement;exports.getProductIdentificationValue=getProductIdentificationValue;exports.getScrollElement=getScrollElement;exports.gitBookContext=gitBookContext;exports.goToOms=goToOms;exports.imageContext=imageContext;exports.initialiseFirebaseApp=initialiseFirebaseApp;exports.isRTL=isRTL$1;exports.loginContext=loginContext;exports.notificationContext=notificationContext;exports.now=now$1;exports.pointerCoord=pointerCoord;exports.productIdentificationContext=productIdentificationContext;exports.productStoreContext=productStoreContext;exports.raf=raf;exports.readTask=readTask;exports.removeEventListener=removeEventListener;exports.scrollByPoint=scrollByPoint;exports.scrollToTop=scrollToTop;exports.shopifyImgContext=shopifyImgContext;exports.useAuthStore=useAuthStore;exports.useProductIdentificationStore=useProductIdentificationStore;exports.useUserStore=useUserStore;exports.userContext=userContext;exports.win=win;exports.writeTask=writeTask;
1183
+ For more details, visit https://goo.gl/AFskqB`)},registered(t){console.log("Service worker has been registered."),setInterval(()=>{t.update()},1e3*60*60)},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(t){console.log("New content is available; please refresh."),document.dispatchEvent(new CustomEvent("swUpdated",{detail:t}))},offline(){console.log("No internet connection found. App is running in offline mode.")},error(t){console.error("Error during service worker registration:",t)}});const pinia=createPinia();pinia.use(src_default);exports.i18n=void 0;let imageContext={};exports.translate=void 0;let loginContext={},shopifyImgContext={};exports.appContext={};let productIdentificationContext={},facilityContext={},productStoreContext={},notificationContext={},gitBookContext={},userContext={},showToast={},refreshing=!1;const updateAvailable=t=>{const e=t.detail,r=!0;exports.appContext.config.globalProperties.$store.dispatch("user/updatePwaState",{registration:e,updateExists:r}),showToast(exports.translate("New version available, please update the app."))};document.addEventListener("swUpdated",updateAvailable,{once:!0});navigator.serviceWorker&&navigator.serviceWorker.addEventListener("controllerchange",()=>{refreshing||(refreshing=!0,window.location.reload())});let dxpComponents={install(t,e){exports.appContext=t,exports.i18n=createI18n({legacy:!1,locale:process.env.VUE_APP_I18N_LOCALE||"en-US",fallbackLocale:process.env.VUE_APP_I18N_FALLBACK_LOCALE||"en-US",messages:e.localeMessages}),t.use(pinia),t.use(exports.i18n),t.use(IonicVue,{mode:"md"}),t.component("DxpAppVersionInfo",_sfc_main$e),t.component("DxpFacilitySwitcher",DxpFacilitySwitcher),t.component("DxpGitBookSearch",_sfc_main$d),t.component("DxpImage",_sfc_main$b),t.component("DxpLanguageSwitcher",_sfc_main$a),t.component("DxpLogin",_sfc_main$9),t.component("DxpMenuFooterNavigation",_sfc_main$8),t.component("DxpOmsInstanceNavigator",_sfc_main$7),t.component("DxpPagination",_sfc_main$6),t.component("DxpProductIdentifier",_sfc_main$5),t.component("DxpProductStoreSelector",_sfc_main$4),t.component("DxpShopifyImg",_sfc_main$3),t.component("DxpTimeZoneSwitcher",_sfc_main$1),t.component("DxpUserProfile",DxpUserProfile),t.directive("image-preview",imagePreview),showToast=e.showToast,loginContext.login=e.login,loginContext.logout=e.logout,loginContext.loader=e.loader,loginContext.appLoginUrl=e.appLoginUrl,imageContext.defaultImgUrl=e.defaultImgUrl,shopifyImgContext.defaultImgUrl=e.defaultImgUrl,userContext.setUserLocale=e.setUserLocale,userContext.setUserTimeZone=e.setUserTimeZone,userContext.getAvailableTimeZones=e.getAvailableTimeZones,productIdentificationContext.getProductIdentificationPref=e.getProductIdentificationPref,productIdentificationContext.setProductIdentificationPref=e.setProductIdentificationPref,productIdentificationContext.fetchGoodIdentificationTypes=e.fetchGoodIdentificationTypes,facilityContext.getUserFacilities=e.getUserFacilities,facilityContext.setUserPreference=e.setUserPreference,facilityContext.getUserPreference=e.getUserPreference,productStoreContext.getEComStoresByFacility=e.getEComStoresByFacility,productStoreContext.getEComStores=e.getEComStores,productStoreContext.setUserPreference=e.setUserPreference,productStoreContext.getUserPreference=e.getUserPreference,notificationContext.addNotification=e.addNotification,notificationContext.appFirebaseConfig=e.appFirebaseConfig,notificationContext.appFirebaseVapidKey=e.appFirebaseVapidKey,notificationContext.storeClientRegistrationToken=e.storeClientRegistrationToken,gitBookContext.askQuery=e.askQuery,gitBookContext.getGitBookPage=e.getGitBookPage,gitBookContext.searchQuery=e.searchQuery,loginContext.getConfig=e.getConfig,loginContext.initialise=e.initialise,exports.appContext.Actions=e.Actions,exports.appContext.hasPermission=e.hasPermission,exports.i18n.global.locale.value=useUserStore().getLocale,exports.translate=exports.i18n.global.t}};exports.DxpUserProfile=DxpUserProfile;exports.Keyboard=Keyboard;exports._sfc_main=_sfc_main$b;exports._sfc_main$1=_sfc_main$9;exports._sfc_main$2=_sfc_main$8;exports._sfc_main$3=_sfc_main$7;exports._sfc_main$4=_sfc_main$6;exports._sfc_main$5=_sfc_main$5;exports._sfc_main$6=_sfc_main$3;exports._sfc_main$7=_sfc_main$1;exports.addEventListener=addEventListener$1;exports.clamp=clamp;exports.componentOnReady=componentOnReady;exports.createAnimation=createAnimation;exports.createGesture=createGesture;exports.doc=doc;exports.dxpComponents=dxpComponents;exports.facilityContext=facilityContext;exports.findClosestIonContent=findClosestIonContent;exports.getIonPageElement=getIonPageElement;exports.getProductIdentificationValue=getProductIdentificationValue;exports.getScrollElement=getScrollElement;exports.gitBookContext=gitBookContext;exports.goToOms=goToOms;exports.imageContext=imageContext;exports.initialiseFirebaseApp=initialiseFirebaseApp;exports.isRTL=isRTL$1;exports.loginContext=loginContext;exports.notificationContext=notificationContext;exports.now=now$1;exports.pointerCoord=pointerCoord;exports.productIdentificationContext=productIdentificationContext;exports.productStoreContext=productStoreContext;exports.raf=raf;exports.readTask=readTask;exports.removeEventListener=removeEventListener;exports.scrollByPoint=scrollByPoint;exports.scrollToTop=scrollToTop;exports.shopifyImgContext=shopifyImgContext;exports.useAuthStore=useAuthStore;exports.useProductIdentificationStore=useProductIdentificationStore;exports.useUserStore=useUserStore;exports.userContext=userContext;exports.win=win;exports.writeTask=writeTask;
@@ -8776,7 +8776,7 @@ const activeAnimations = /* @__PURE__ */ new WeakMap(), createController$1 = (t)
8776
8776
  /*!
8777
8777
  * (C) Ionic http://ionicframework.com - MIT License
8778
8778
  */
8779
- const LIFECYCLE_WILL_ENTER = "ionViewWillEnter", LIFECYCLE_DID_ENTER = "ionViewDidEnter", LIFECYCLE_WILL_LEAVE = "ionViewWillLeave", LIFECYCLE_DID_LEAVE = "ionViewDidLeave", LIFECYCLE_WILL_UNLOAD = "ionViewWillUnload", iosTransitionAnimation = () => import("./ios.transition-567461bc.js"), mdTransitionAnimation = () => import("./md.transition-a4303cfa.js"), transition = (t) => new Promise((e, r) => {
8779
+ const LIFECYCLE_WILL_ENTER = "ionViewWillEnter", LIFECYCLE_DID_ENTER = "ionViewDidEnter", LIFECYCLE_WILL_LEAVE = "ionViewWillLeave", LIFECYCLE_DID_LEAVE = "ionViewDidLeave", LIFECYCLE_WILL_UNLOAD = "ionViewWillUnload", iosTransitionAnimation = () => import("./ios.transition-4e661dd6.js"), mdTransitionAnimation = () => import("./md.transition-52223049.js"), transition = (t) => new Promise((e, r) => {
8780
8780
  writeTask(() => {
8781
8781
  beforeTransition(t), runTransition(t).then((o) => {
8782
8782
  o.animation && o.animation.destroy(), afterTransition(t), e(o);
@@ -10858,7 +10858,7 @@ const matches = (t, e, r) => !t || t.component !== e ? !1 : shallowEqualStringMa
10858
10858
  this.ionNavWillLoad.emit();
10859
10859
  }
10860
10860
  async componentDidLoad() {
10861
- this.didLoad = !0, this.rootChanged(), this.gesture = (await import("./swipe-back-f19b1dc6.js")).createSwipeBackGesture(this.el, this.canStart.bind(this), this.onStart.bind(this), this.onMove.bind(this), this.onEnd.bind(this)), this.swipeGestureChanged();
10861
+ this.didLoad = !0, this.rootChanged(), this.gesture = (await import("./swipe-back-03bce7cd.js")).createSwipeBackGesture(this.el, this.canStart.bind(this), this.onStart.bind(this), this.onMove.bind(this), this.onEnd.bind(this)), this.swipeGestureChanged();
10862
10862
  }
10863
10863
  connectedCallback() {
10864
10864
  this.destroyed = !1;
@@ -13881,9 +13881,9 @@ const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-selec
13881
13881
  componentDidLoad() {
13882
13882
  rIC(async () => {
13883
13883
  const e = isPlatform(window, "hybrid");
13884
- if (config$1.getBoolean("_testing") || import("./index9-d7012e58.js").then((o) => o.startTapClick(config$1)), config$1.getBoolean("statusTap", e) && import("./status-tap-2397f06f.js").then((o) => o.startStatusTap()), config$1.getBoolean("inputShims", needInputShims())) {
13884
+ if (config$1.getBoolean("_testing") || import("./index9-260bd7aa.js").then((o) => o.startTapClick(config$1)), config$1.getBoolean("statusTap", e) && import("./status-tap-7589d22a.js").then((o) => o.startStatusTap()), config$1.getBoolean("inputShims", needInputShims())) {
13885
13885
  const o = isPlatform(window, "ios") ? "ios" : "android";
13886
- import("./input-shims-0002b962.js").then((a) => a.startInputShims(config$1, o));
13886
+ import("./input-shims-87cca364.js").then((a) => a.startInputShims(config$1, o));
13887
13887
  }
13888
13888
  const r = await Promise.resolve().then(() => hardwareBackButton);
13889
13889
  config$1.getBoolean("hardwareBackButton", e) ? r.startHardwareBackButton() : r.blockHardwareBackButton(), typeof window < "u" && Promise.resolve().then(() => keyboard2).then((o) => o.startKeyboardAssist(window)), import("./focus-visible-7660c2cd.js").then((o) => this.focusVisible = o.startFocusVisible());
@@ -42345,7 +42345,7 @@ const updateAvailable = (t) => {
42345
42345
  appContext.config.globalProperties.$store.dispatch("user/updatePwaState", { registration: e, updateExists: r }), showToast(translate("New version available, please update the app."));
42346
42346
  };
42347
42347
  document.addEventListener("swUpdated", updateAvailable, { once: !0 });
42348
- navigator.serviceWorker.addEventListener("controllerchange", () => {
42348
+ navigator.serviceWorker && navigator.serviceWorker.addEventListener("controllerchange", () => {
42349
42349
  refreshing || (refreshing = !0, window.location.reload());
42350
42350
  });
42351
42351
  let dxpComponents = {
package/lib/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-e2cf0498.cjs");require("vue");require("vue-router");exports.DxpImage=t._sfc_main;exports.DxpLogin=t._sfc_main$1;exports.DxpMenuFooterNavigation=t._sfc_main$2;exports.DxpOmsInstanceNavigator=t._sfc_main$3;exports.DxpPagination=t._sfc_main$4;exports.DxpProductIdentifier=t._sfc_main$5;exports.DxpShopifyImg=t._sfc_main$6;exports.DxpTimeZoneSwitcher=t._sfc_main$7;exports.DxpUserProfile=t.DxpUserProfile;Object.defineProperty(exports,"appContext",{enumerable:!0,get:()=>t.appContext});exports.dxpComponents=t.dxpComponents;exports.facilityContext=t.facilityContext;exports.getProductIdentificationValue=t.getProductIdentificationValue;exports.gitBookContext=t.gitBookContext;exports.goToOms=t.goToOms;Object.defineProperty(exports,"i18n",{enumerable:!0,get:()=>t.i18n});exports.imageContext=t.imageContext;exports.initialiseFirebaseApp=t.initialiseFirebaseApp;exports.loginContext=t.loginContext;exports.notificationContext=t.notificationContext;exports.productIdentificationContext=t.productIdentificationContext;exports.productStoreContext=t.productStoreContext;exports.shopifyImgContext=t.shopifyImgContext;Object.defineProperty(exports,"translate",{enumerable:!0,get:()=>t.translate});exports.useAuthStore=t.useAuthStore;exports.useProductIdentificationStore=t.useProductIdentificationStore;exports.useUserStore=t.useUserStore;exports.userContext=t.userContext;
1
+ "use strict";var e=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-724c1eb1.cjs");require("vue");require("vue-router");exports.DxpImage=t._sfc_main;exports.DxpLogin=t._sfc_main$1;exports.DxpMenuFooterNavigation=t._sfc_main$2;exports.DxpOmsInstanceNavigator=t._sfc_main$3;exports.DxpPagination=t._sfc_main$4;exports.DxpProductIdentifier=t._sfc_main$5;exports.DxpShopifyImg=t._sfc_main$6;exports.DxpTimeZoneSwitcher=t._sfc_main$7;exports.DxpUserProfile=t.DxpUserProfile;Object.defineProperty(exports,"appContext",{enumerable:!0,get:()=>t.appContext});exports.dxpComponents=t.dxpComponents;exports.facilityContext=t.facilityContext;exports.getProductIdentificationValue=t.getProductIdentificationValue;exports.gitBookContext=t.gitBookContext;exports.goToOms=t.goToOms;Object.defineProperty(exports,"i18n",{enumerable:!0,get:()=>t.i18n});exports.imageContext=t.imageContext;exports.initialiseFirebaseApp=t.initialiseFirebaseApp;exports.loginContext=t.loginContext;exports.notificationContext=t.notificationContext;exports.productIdentificationContext=t.productIdentificationContext;exports.productStoreContext=t.productStoreContext;exports.shopifyImgContext=t.shopifyImgContext;Object.defineProperty(exports,"translate",{enumerable:!0,get:()=>t.translate});exports.useAuthStore=t.useAuthStore;exports.useProductIdentificationStore=t.useProductIdentificationStore;exports.useUserStore=t.useUserStore;exports.userContext=t.userContext;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAA4D,QAAQ,EAAuB,QAAQ,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,aAAa,EAAE,oBAAoB,EAA2B,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACrS,OAAO,EAAE,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,kBAAkB,CAAC;AAG1B,QAAA,IAAI,IAAI,KAAA,CAAC;AACT,QAAA,IAAI,YAAY,IAAK,CAAC;AACtB,QAAA,IAAI,SAAS,KAAA,CAAC;AACd,QAAA,IAAI,YAAY,IAAK,CAAC;AACtB,QAAA,IAAI,iBAAiB,IAAK,CAAC;AAC3B,QAAA,IAAI,UAAU,IAAK,CAAC;AACpB,QAAA,IAAI,4BAA4B,IAAK,CAAC;AACtC,QAAA,IAAI,eAAe,IAAK,CAAC;AACzB,QAAA,IAAI,mBAAmB,IAAK,CAAC;AAC7B,QAAA,IAAI,mBAAmB,IAAK,CAAC;AAC7B,QAAA,IAAI,cAAc,IAAK,CAAC;AACxB,QAAA,IAAI,WAAW,IAAK,CAAC;AAgBrB,eAAO,IAAI,aAAa;;CA+DvB,CAAC;AACF,OAAO,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,6BAA6B,EAC7B,cAAc,EACd,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,6BAA6B,EAC7B,YAAY,EACZ,WAAW,EACZ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAA4D,QAAQ,EAAuB,QAAQ,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,aAAa,EAAE,oBAAoB,EAA2B,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACrS,OAAO,EAAE,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,kBAAkB,CAAC;AAG1B,QAAA,IAAI,IAAI,KAAA,CAAC;AACT,QAAA,IAAI,YAAY,IAAK,CAAC;AACtB,QAAA,IAAI,SAAS,KAAA,CAAC;AACd,QAAA,IAAI,YAAY,IAAK,CAAC;AACtB,QAAA,IAAI,iBAAiB,IAAK,CAAC;AAC3B,QAAA,IAAI,UAAU,IAAK,CAAC;AACpB,QAAA,IAAI,4BAA4B,IAAK,CAAC;AACtC,QAAA,IAAI,eAAe,IAAK,CAAC;AACzB,QAAA,IAAI,mBAAmB,IAAK,CAAC;AAC7B,QAAA,IAAI,mBAAmB,IAAK,CAAC;AAC7B,QAAA,IAAI,cAAc,IAAK,CAAC;AACxB,QAAA,IAAI,WAAW,IAAK,CAAC;AAkBrB,eAAO,IAAI,aAAa;;CA+DvB,CAAC;AACF,OAAO,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,6BAA6B,EAC7B,cAAc,EACd,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,6BAA6B,EAC7B,YAAY,EACZ,WAAW,EACZ,CAAC"}
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { _ as i, v as n, x as r, y as p, z as x, A as u, B as c, C as g, D as m, u as C, t as d, O as f, E as D, F as I, G as S, H as l, I as P, J as h, L as y, M as v, N as A, P as F, Q as N, R as O, S as T, T as U, U as B, V as L } from "./index-5811a56a.js";
2
+ import { _ as i, v as n, x as r, y as p, z as x, A as u, B as c, C as g, D as m, u as C, t as d, O as f, E as D, F as I, G as S, H as l, I as P, J as h, L as y, M as v, N as A, P as F, Q as N, R as O, S as T, T as U, U as B, V as L } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { d as c, n as p, p as k } from "./index-5811a56a.js";
2
+ import { d as c, n as p, p as k } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  /*!
@@ -1,3 +1,3 @@
1
- "use strict";var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-e2cf0498.cjs");require("vue");require("vue-router");/*!
1
+ "use strict";var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-724c1eb1.cjs");require("vue");require("vue-router");/*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */const y=i=>{if(o.doc===void 0)return;let c=-p*10,a=0,t,l,s;const g=i.getBoolean("animated",!0)&&i.getBoolean("rippleEffect",!0),u=new WeakMap,C=e=>{c=o.now(e),v(e)},E=e=>{c=o.now(e),T(e)},I=e=>{if(e.button===2)return;const n=o.now(e)-p;c<n&&v(e)},q=e=>{const n=o.now(e)-p;c<n&&T(e)},m=()=>{s&&clearTimeout(s),s=void 0,t&&(A(!1),t=void 0)},v=e=>{t||h(M(e),e)},T=e=>{h(void 0,e)},h=(e,n)=>{if(e&&e===t)return;s&&clearTimeout(s),s=void 0;const{x:d,y:r}=o.pointerCoord(n);if(t){if(u.has(t))throw new Error("internal error");t.classList.contains(f)||w(t,d,r),A(!0)}if(e){const D=u.get(e);D&&(clearTimeout(D),u.delete(e)),e.classList.remove(f);const R=()=>{w(e,d,r),s=void 0};S(e)?R():s=setTimeout(R,k)}t=e},w=(e,n,d)=>{if(a=Date.now(),e.classList.add(f),!g)return;const r=_(e);r!==null&&(L(),l=r.addRipple(n,d))},L=()=>{l!==void 0&&(l.then(e=>e()),l=void 0)},A=e=>{L();const n=t;if(!n)return;const d=b-Date.now()+a;if(e&&d>0&&!S(n)){const r=setTimeout(()=>{n.classList.remove(f),u.delete(n)},b);u.set(n,r)}else n.classList.remove(f)};o.doc.addEventListener("ionGestureCaptured",m),o.doc.addEventListener("touchstart",C,!0),o.doc.addEventListener("touchcancel",E,!0),o.doc.addEventListener("touchend",E,!0),o.doc.addEventListener("pointercancel",m,!0),o.doc.addEventListener("mousedown",I,!0),o.doc.addEventListener("mouseup",q,!0)},M=i=>{if(i.composedPath!==void 0){const c=i.composedPath();for(let a=0;a<c.length-2;a++){const t=c[a];if(!(t instanceof ShadowRoot)&&t.classList.contains("ion-activatable"))return t}}else return i.target.closest(".ion-activatable")},S=i=>i.classList.contains("ion-activatable-instant"),_=i=>{if(i.shadowRoot){const c=i.shadowRoot.querySelector("ion-ripple-effect");if(c)return c}return i.querySelector("ion-ripple-effect")},f="ion-activated",k=100,b=150,p=2500;exports.startTapClick=y;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { d as A, K as N, h as P, j as B, e as O, f as F, k as H, l as h, m as q, o as U, q as Y } from "./index-5811a56a.js";
2
+ import { d as A, K as N, h as P, j as B, e as O, f as F, k as H, l as h, m as q, o as U, q as Y } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  /*!
@@ -1,3 +1,3 @@
1
- "use strict";var W=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-e2cf0498.cjs");require("vue");require("vue-router");/*!
1
+ "use strict";var W=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-724c1eb1.cjs");require("vue");require("vue-router");/*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */const A=new WeakMap,D=(e,o,t,r=0,a=!1)=>{A.has(e)!==t&&(t?_(e,o,r,a):N(e,o))},O=e=>e===e.getRootNode().activeElement,_=(e,o,t,r=!1)=>{const a=o.parentNode,n=o.cloneNode(!1);n.classList.add("cloned-input"),n.tabIndex=-1,r&&(n.disabled=!0),a.appendChild(n),A.set(e,n);const d=e.ownerDocument.dir==="rtl"?9999:-9999;e.style.pointerEvents="none",o.style.transform=`translate3d(${d}px,${t}px,0) scale(0)`},N=(e,o)=>{const t=A.get(e);t&&(A.delete(e),t.remove()),e.style.pointerEvents="",o.style.transform=""},R=50,k=(e,o,t)=>{if(!t||!o)return()=>{};const r=d=>{O(o)&&D(e,o,d)},a=()=>D(e,o,!1),n=()=>r(!0),u=()=>r(!1);return s.addEventListener(t,"ionScrollStart",n),s.addEventListener(t,"ionScrollEnd",u),o.addEventListener("blur",a),()=>{s.removeEventListener(t,"ionScrollStart",n),s.removeEventListener(t,"ionScrollEnd",u),o.removeEventListener("blur",a)}},T="input, textarea, [no-blur], [contenteditable]",p=()=>{let e=!0,o=!1;const t=document,r=()=>{o=!0},a=()=>{e=!0},n=u=>{if(o){o=!1;return}const d=t.activeElement;if(!d||d.matches(T))return;const v=u.target;v!==d&&(v.matches(T)||v.closest(T)||(e=!1,setTimeout(()=>{e||d.blur()},50)))};return s.addEventListener(t,"ionScrollStart",r),t.addEventListener("focusin",a,!0),t.addEventListener("touchend",n,!1),()=>{s.removeEventListener(t,"ionScrollStart",r,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("touchend",n,!1)}},F=.3,H=(e,o,t,r)=>{var a;const n=(a=e.closest("ion-item,[ion-item]"))!==null&&a!==void 0?a:e;return q(n.getBoundingClientRect(),o.getBoundingClientRect(),t,r)},q=(e,o,t,r)=>{const a=e.top,n=e.bottom,u=o.top,d=Math.min(o.bottom,r-t),v=u+15,f=d-R-n,c=v-a,w=Math.round(f<0?-f:c>0?-c:0),S=Math.min(w,a-u),i=Math.abs(S)/F,y=Math.min(400,Math.max(150,i));return{scrollAmount:S,scrollDuration:y,scrollPadding:t,inputSafeY:-(a-v)+4}},B="$ionPaddingTimer",P=(e,o,t)=>{const r=e[B];r&&clearTimeout(r),o>0?e.style.setProperty("--keyboard-offset",`${o}px`):e[B]=setTimeout(()=>{e.style.setProperty("--keyboard-offset","0px"),t&&t()},120)},K=(e,o,t)=>{const r=()=>{o&&P(o,0,t)};e.addEventListener("focusout",r,{once:!0})};let g=0;const C="data-ionic-skip-scroll-assist",U=(e,o,t,r,a,n,u,d=!1)=>{const v=n&&(u===void 0||u.mode===s.KeyboardResize.None);let l=!1;const f=s.win!==void 0?s.win.innerHeight:0,c=h=>{if(l===!1){l=!0;return}x(e,o,t,r,h.detail.keyboardHeight,v,d,f,!1)},w=()=>{l=!1,s.win===null||s.win===void 0||s.win.removeEventListener("ionKeyboardDidShow",c),e.removeEventListener("focusout",w,!0)},S=async()=>{if(o.hasAttribute(C)){o.removeAttribute(C);return}x(e,o,t,r,a,v,d,f),s.win===null||s.win===void 0||s.win.addEventListener("ionKeyboardDidShow",c),e.addEventListener("focusout",w,!0)};return e.addEventListener("focusin",S,!0),()=>{e.removeEventListener("focusin",S,!0),s.win===null||s.win===void 0||s.win.removeEventListener("ionKeyboardDidShow",c),e.removeEventListener("focusout",w,!0)}},I=e=>{document.activeElement!==e&&(e.setAttribute(C,"true"),e.focus())},x=async(e,o,t,r,a,n,u=!1,d=0,v=!0)=>{if(!t&&!r)return;const l=H(e,t||r,a,d);if(t&&Math.abs(l.scrollAmount)<4){I(o),n&&t!==null&&(P(t,g),K(o,t,()=>g=0));return}if(D(e,o,!0,l.inputSafeY,u),I(o),s.raf(()=>e.click()),n&&t&&(g=l.scrollPadding,P(t,g)),typeof window<"u"){let f;const c=async()=>{f!==void 0&&clearTimeout(f),window.removeEventListener("ionKeyboardDidShow",w),window.removeEventListener("ionKeyboardDidShow",c),t&&await s.scrollByPoint(t,0,l.scrollAmount,l.scrollDuration),D(e,o,!1,l.inputSafeY),I(o),n&&K(o,t,()=>g=0)},w=()=>{window.removeEventListener("ionKeyboardDidShow",w),window.addEventListener("ionKeyboardDidShow",c)};if(t){const S=await s.getScrollElement(t),h=S.scrollHeight-S.clientHeight;if(v&&l.scrollAmount>h-S.scrollTop){o.type==="password"?(l.scrollAmount+=R,window.addEventListener("ionKeyboardDidShow",w)):window.addEventListener("ionKeyboardDidShow",c),f=setTimeout(c,1e3);return}}c()}},Y=!0,$=async(e,o)=>{if(s.doc===void 0)return;const t=o==="ios",r=o==="android",a=e.getNumber("keyboardHeight",290),n=e.getBoolean("scrollAssist",!0),u=e.getBoolean("hideCaretOnScroll",t),d=e.getBoolean("inputBlurring",t),v=e.getBoolean("scrollPadding",!0),l=Array.from(s.doc.querySelectorAll("ion-input, ion-textarea")),f=new WeakMap,c=new WeakMap,w=await s.Keyboard.getResizeMode(),S=async i=>{await new Promise(b=>s.componentOnReady(i,b));const y=i.shadowRoot||i,L=y.querySelector("input")||y.querySelector("textarea"),m=s.findClosestIonContent(i),M=m?null:i.closest("ion-footer");if(!L)return;if(m&&u&&!f.has(i)){const b=k(i,L,m);f.set(i,b)}if(!(L.type==="date"||L.type==="datetime-local")&&(m||M)&&n&&!c.has(i)){const b=U(i,L,m,M,a,v,w,r);c.set(i,b)}},h=i=>{if(u){const y=f.get(i);y&&y(),f.delete(i)}if(n){const y=c.get(i);y&&y(),c.delete(i)}};d&&Y&&p();for(const i of l)S(i);s.doc.addEventListener("ionInputDidLoad",i=>{S(i.detail)}),s.doc.addEventListener("ionInputDidUnload",i=>{h(i.detail)})};exports.startInputShims=$;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { b as a, g as Z } from "./index-5811a56a.js";
2
+ import { b as a, g as Z } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  /*!
@@ -1,3 +1,3 @@
1
- "use strict";var Q=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-e2cf0498.cjs");require("vue");require("vue-router");/*!
1
+ "use strict";var Q=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-724c1eb1.cjs");require("vue");require("vue-router");/*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */const j=540,z=a=>document.querySelector(`${a}.ion-cloned-element`),$=a=>a.shadowRoot||a,H=a=>{const s=a.tagName==="ION-TABS"?a:a.querySelector("ion-tabs"),c="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(s!=null){const e=s.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return e!=null?e.querySelector(c):null}return a.querySelector(c)},D=(a,s)=>{const c=a.tagName==="ION-TABS"?a:a.querySelector("ion-tabs");let e=[];if(c!=null){const t=c.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");t!=null&&(e=t.querySelectorAll("ion-buttons"))}else e=a.querySelectorAll("ion-buttons");for(const t of e){const p=t.closest("ion-header"),i=p&&!p.classList.contains("header-collapse-condense-inactive"),A=t.querySelector("ion-back-button"),l=t.classList.contains("buttons-collapse"),y=t.slot==="start"||t.slot==="";if(A!==null&&y&&(l&&i&&s||!l))return A}return null},Z=(a,s,c,e,t)=>{const p=D(e,c),i=H(t),A=H(e),l=D(t,c),y=p!==null&&i!==null&&!c,g=A!==null&&l!==null&&c;if(y){const _=i.getBoundingClientRect(),f=p.getBoundingClientRect(),m=$(p).querySelector(".button-text"),R=m.getBoundingClientRect(),v=$(i).querySelector(".toolbar-title").getBoundingClientRect();G(a,s,c,i,_,v,m,R),k(a,s,c,p,f,m,R,i,v)}else if(g){const _=A.getBoundingClientRect(),f=l.getBoundingClientRect(),m=$(l).querySelector(".button-text"),R=m.getBoundingClientRect(),v=$(A).querySelector(".toolbar-title").getBoundingClientRect();G(a,s,c,A,_,v,m,R),k(a,s,c,l,f,m,R,A,v)}return{forward:y,backward:g}},k=(a,s,c,e,t,p,i,A,l)=>{var y,g;const _=s?`calc(100% - ${t.right+4}px)`:`${t.left-4}px`,f=s?"right":"left",m=s?"left":"right",R=s?"right":"left",B=((y=p.textContent)===null||y===void 0?void 0:y.trim())===((g=A.textContent)===null||g===void 0?void 0:g.trim()),v=l.width/i.width,S=(l.height-U)/i.height,X=B?`scale(${v}, ${S})`:`scale(${S})`,W="scale(1)",x=$(e).querySelector("ion-icon").getBoundingClientRect(),n=s?`${x.width/2-(x.right-t.right)}px`:`${t.left-x.width/2}px`,E=s?`-${window.innerWidth-t.right}px`:`${t.left}px`,h=`${l.top}px`,C=`${t.top}px`,r=[{offset:0,transform:`translate3d(${n}, ${h}, 0)`},{offset:1,transform:`translate3d(${E}, ${C}, 0)`}],d=[{offset:0,transform:`translate3d(${E}, ${C}, 0)`},{offset:1,transform:`translate3d(${n}, ${h}, 0)`}],N=c?d:r,u=c?[{offset:0,opacity:1,transform:W},{offset:1,opacity:0,transform:X}]:[{offset:0,opacity:0,transform:X},{offset:1,opacity:1,transform:W}],I=c?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],L=o.createAnimation(),F=o.createAnimation(),w=o.createAnimation(),T=z("ion-back-button"),P=$(T).querySelector(".button-text"),K=$(T).querySelector("ion-icon");T.text=e.text,T.mode=e.mode,T.icon=e.icon,T.color=e.color,T.disabled=e.disabled,T.style.setProperty("display","block"),T.style.setProperty("position","fixed"),F.addElement(K),L.addElement(P),w.addElement(T),w.beforeStyles({position:"absolute",top:"0px",[R]:"0px"}).keyframes(N),L.beforeStyles({"transform-origin":`${f} top`}).beforeAddWrite(()=>{e.style.setProperty("display","none"),T.style.setProperty(f,_)}).afterAddWrite(()=>{e.style.setProperty("display",""),T.style.setProperty("display","none"),T.style.removeProperty(f)}).keyframes(u),F.beforeStyles({"transform-origin":`${m} center`}).keyframes(I),a.addAnimation([L,F,w])},G=(a,s,c,e,t,p,i,A)=>{var l,y;const g=s?"right":"left",_=s?`calc(100% - ${t.right}px)`:`${t.left}px`,f="0px",m=`${t.top}px`,R=8,B=s?`-${window.innerWidth-A.right-R}px`:`${A.x-R}px`,v=2,S=`${A.y-v}px`,X=((l=i.textContent)===null||l===void 0?void 0:l.trim())===((y=e.textContent)===null||y===void 0?void 0:y.trim()),W=A.width/p.width,M=A.height/(p.height-U),x="scale(1)",n=X?`scale(${W}, ${M})`:`scale(${M})`,E=[{offset:0,opacity:0,transform:`translate3d(${B}, ${S}, 0) ${n}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(${f}, ${m}, 0) ${x}`}],h=[{offset:0,opacity:.99,transform:`translate3d(${f}, ${m}, 0) ${x}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${B}, ${S}, 0) ${n}`}],C=c?E:h,r=z("ion-title"),d=o.createAnimation();r.innerText=e.innerText,r.size=e.size,r.color=e.color,d.addElement(r),d.beforeStyles({"transform-origin":`${g} top`,height:`${t.height}px`,display:"",position:"relative",[g]:_}).beforeAddWrite(()=>{e.style.setProperty("opacity","0")}).afterAddWrite(()=>{e.style.setProperty("opacity",""),r.style.setProperty("display","none")}).keyframes(C),a.addAnimation(d)},J=(a,s)=>{var c;try{const e="cubic-bezier(0.32,0.72,0,1)",t="opacity",p="transform",i="0%",l=a.ownerDocument.dir==="rtl",y=l?"-99.5%":"99.5%",g=l?"33%":"-33%",_=s.enteringEl,f=s.leavingEl,m=s.direction==="back",R=_.querySelector(":scope > ion-content"),B=_.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),v=_.querySelectorAll(":scope > ion-header > ion-toolbar"),S=o.createAnimation(),X=o.createAnimation();if(S.addElement(_).duration(((c=s.duration)!==null&&c!==void 0?c:0)||j).easing(s.easing||e).fill("both").beforeRemoveClass("ion-page-invisible"),f&&a!==null&&a!==void 0){const n=o.createAnimation();n.addElement(a),S.addAnimation(n)}if(!R&&v.length===0&&B.length===0?X.addElement(_.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")):(X.addElement(R),X.addElement(B)),S.addAnimation(X),m?X.beforeClearStyles([t]).fromTo("transform",`translateX(${g})`,`translateX(${i})`).fromTo(t,.8,1):X.beforeClearStyles([t]).fromTo("transform",`translateX(${y})`,`translateX(${i})`),R){const n=$(R).querySelector(".transition-effect");if(n){const E=n.querySelector(".transition-cover"),h=n.querySelector(".transition-shadow"),C=o.createAnimation(),r=o.createAnimation(),d=o.createAnimation();C.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(E).beforeClearStyles([t]).fromTo(t,0,.1),d.addElement(h).beforeClearStyles([t]).fromTo(t,.03,.7),C.addAnimation([r,d]),X.addAnimation([C])}}const W=_.querySelector("ion-header.header-collapse-condense"),{forward:M,backward:x}=Z(S,l,m,_,f);if(v.forEach(n=>{const E=o.createAnimation();E.addElement(n),S.addAnimation(E);const h=o.createAnimation();h.addElement(n.querySelector("ion-title"));const C=o.createAnimation(),r=Array.from(n.querySelectorAll("ion-buttons,[menuToggle]")),d=n.closest("ion-header"),N=d==null?void 0:d.classList.contains("header-collapse-condense-inactive");let b;m?b=r.filter(I=>{const L=I.classList.contains("buttons-collapse");return L&&!N||!L}):b=r.filter(I=>!I.classList.contains("buttons-collapse")),C.addElement(b);const q=o.createAnimation();q.addElement(n.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const u=o.createAnimation();u.addElement($(n).querySelector(".toolbar-background"));const O=o.createAnimation(),Y=n.querySelector("ion-back-button");if(Y&&O.addElement(Y),E.addAnimation([h,C,q,u,O]),C.fromTo(t,.01,1),q.fromTo(t,.01,1),m)N||h.fromTo("transform",`translateX(${g})`,`translateX(${i})`).fromTo(t,.01,1),q.fromTo("transform",`translateX(${g})`,`translateX(${i})`),O.fromTo(t,.01,1);else if(W||h.fromTo("transform",`translateX(${y})`,`translateX(${i})`).fromTo(t,.01,1),q.fromTo("transform",`translateX(${y})`,`translateX(${i})`),u.beforeClearStyles([t,"transform"]),(d==null?void 0:d.translucent)?u.fromTo("transform",l?"translateX(-100%)":"translateX(100%)","translateX(0px)"):u.fromTo(t,.01,"var(--opacity)"),M||O.fromTo(t,.01,1),Y&&!M){const L=o.createAnimation();L.addElement($(Y).querySelector(".button-text")).fromTo("transform",l?"translateX(-100px)":"translateX(100px)","translateX(0px)"),E.addAnimation(L)}}),f){const n=o.createAnimation(),E=f.querySelector(":scope > ion-content"),h=f.querySelectorAll(":scope > ion-header > ion-toolbar"),C=f.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(!E&&h.length===0&&C.length===0?n.addElement(f.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")):(n.addElement(E),n.addElement(C)),S.addAnimation(n),m){n.beforeClearStyles([t]).fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)");const r=o.getIonPageElement(f);S.afterAddWrite(()=>{S.getDirection()==="normal"&&r.style.setProperty("display","none")})}else n.fromTo("transform",`translateX(${i})`,`translateX(${g})`).fromTo(t,1,.8);if(E){const r=$(E).querySelector(".transition-effect");if(r){const d=r.querySelector(".transition-cover"),N=r.querySelector(".transition-shadow"),b=o.createAnimation(),q=o.createAnimation(),u=o.createAnimation();b.addElement(r).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),q.addElement(d).beforeClearStyles([t]).fromTo(t,.1,0),u.addElement(N).beforeClearStyles([t]).fromTo(t,.7,.03),b.addAnimation([q,u]),n.addAnimation([b])}}h.forEach(r=>{const d=o.createAnimation();d.addElement(r);const N=o.createAnimation();N.addElement(r.querySelector("ion-title"));const b=o.createAnimation(),q=r.querySelectorAll("ion-buttons,[menuToggle]"),u=r.closest("ion-header"),O=u==null?void 0:u.classList.contains("header-collapse-condense-inactive"),Y=Array.from(q).filter(P=>{const K=P.classList.contains("buttons-collapse");return K&&!O||!K});b.addElement(Y);const I=o.createAnimation(),L=r.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");L.length>0&&I.addElement(L);const F=o.createAnimation();F.addElement($(r).querySelector(".toolbar-background"));const w=o.createAnimation(),T=r.querySelector("ion-back-button");if(T&&w.addElement(T),d.addAnimation([N,b,I,w,F]),S.addAnimation(d),w.fromTo(t,.99,0),b.fromTo(t,.99,0),I.fromTo(t,.99,0),m){if(O||N.fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)").fromTo(t,.99,0),I.fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)"),F.beforeClearStyles([t,"transform"]),(u==null?void 0:u.translucent)?F.fromTo("transform","translateX(0px)",l?"translateX(-100%)":"translateX(100%)"):F.fromTo(t,"var(--opacity)",0),T&&!x){const K=o.createAnimation();K.addElement($(T).querySelector(".button-text")).fromTo("transform",`translateX(${i})`,`translateX(${(l?-124:124)+"px"})`),d.addAnimation(K)}}else O||N.fromTo("transform",`translateX(${i})`,`translateX(${g})`).fromTo(t,.99,0).afterClearStyles([p,t]),I.fromTo("transform",`translateX(${i})`,`translateX(${g})`).afterClearStyles([p,t]),w.afterClearStyles([t]),N.afterClearStyles([t]),b.afterClearStyles([t])})}return S}catch(e){throw e}},U=10;exports.iosTransitionAnimation=J;exports.shadow=$;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { g as b, b as r } from "./index-5811a56a.js";
2
+ import { g as b, b as r } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  /*!
@@ -1,3 +1,3 @@
1
- "use strict";var T=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-e2cf0498.cjs");require("vue");require("vue-router");/*!
1
+ "use strict";var T=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-724c1eb1.cjs");require("vue");require("vue-router");/*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */const f=(E,i)=>{var o,a,r;const l="40px",c="0px",s=i.direction==="back",u=i.enteringEl,d=i.leavingEl,m=t.getIonPageElement(u),g=m.querySelector("ion-toolbar"),e=t.createAnimation();if(e.addElement(m).fill("both").beforeRemoveClass("ion-page-invisible"),s?e.duration(((o=i.duration)!==null&&o!==void 0?o:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):e.duration(((a=i.duration)!==null&&a!==void 0?a:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${l})`,`translateY(${c})`).fromTo("opacity",.01,1),g){const n=t.createAnimation();n.addElement(g),e.addAnimation(n)}if(d&&s){e.duration(((r=i.duration)!==null&&r!==void 0?r:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const n=t.createAnimation();n.addElement(t.getIonPageElement(d)).onFinish(b=>{b===1&&n.elements.length>0&&n.elements[0].style.setProperty("display","none")}).fromTo("transform",`translateY(${c})`,`translateY(${l})`).fromTo("opacity",1,0),e.addAnimation(n)}return e};exports.mdTransitionAnimation=f;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { r as i, f as a, e as c, w as d, s as m } from "./index-5811a56a.js";
2
+ import { r as i, f as a, e as c, w as d, s as m } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  /*!
@@ -1,3 +1,3 @@
1
- "use strict";var c=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e2cf0498.cjs");require("vue");require("vue-router");/*!
1
+ "use strict";var c=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-724c1eb1.cjs");require("vue");require("vue-router");/*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */const a=()=>{const n=window;n.addEventListener("statusTap",()=>{e.readTask(()=>{const r=n.innerWidth,s=n.innerHeight,o=document.elementFromPoint(r/2,s/2);if(!o)return;const t=e.findClosestIonContent(o);t&&new Promise(i=>e.componentOnReady(t,i)).then(()=>{e.writeTask(async()=>{t.style.setProperty("--overflow","hidden"),await e.scrollToTop(t,300),t.style.removeProperty("--overflow")})})})})};exports.startStatusTap=a;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { i as h, c as D, a as M } from "./index-5811a56a.js";
2
+ import { i as h, c as D, a as M } from "./index-e69408d1.js";
3
3
  import "vue";
4
4
  import "vue-router";
5
5
  /*!
@@ -1,3 +1,3 @@
1
- "use strict";var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-e2cf0498.cjs");require("vue");require("vue-router");/*!
1
+ "use strict";var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-724c1eb1.cjs");require("vue");require("vue-router");/*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */const M=(n,g,m,p,w)=>{const i=n.ownerDocument.defaultView;let s=c.isRTL(n);const y=t=>{const{startX:e}=t;return s?e>=i.innerWidth-50:e<=50},u=t=>s?-t.deltaX:t.deltaX,X=t=>s?-t.velocityX:t.velocityX,S=t=>(s=c.isRTL(n),y(t)&&g()),v=t=>{const e=u(t)/i.innerWidth;p(e)},b=t=>{const r=u(t),e=i.innerWidth,o=r/e,a=X(t),f=e/2,l=a>=0&&(a>.2||r>f),d=(l?1-o:o)*e;let h=0;if(d>5){const D=d/Math.abs(a);h=Math.min(D,540)}w(l,o<=0?.01:c.clamp(0,o,.9999),h)};return c.createGesture({el:n,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:S,onStart:m,onMove:v,onEnd:b})};exports.createSwipeBackGesture=M;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotwax/dxp-components",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",