import{g as t,s as o,a as e}from"./p-9b6cc562.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */class n{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,o){const e=this.m.get(t);return void 0!==e?e:o}getBoolean(t,o=!1){const e=this.m.get(t);return void 0===e?o:"string"==typeof e?"true"===e:!!e}getNumber(t,o){const e=parseFloat(this.m.get(t));return isNaN(e)?void 0!==o?o:NaN:e}set(t,o){this.m.set(t,o)}}const i=new n,r=(t,o)=>{return"string"==typeof t&&(o=t,t=void 0),(e=t,s(e)).includes(o);var e},s=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let o=t.Ionic.platforms;return null==o&&(o=t.Ionic.platforms=c(t),o.forEach((o=>t.document.documentElement.classList.add(`plt-${o}`)))),o},c=t=>{const o=i.get("platform");return Object.keys(f).filter((e=>{const n=null==o?void 0:o[e];return"function"==typeof n?n(t):f[e](t)}))},a=t=>!!v(t,/iPad/i)||!(!v(t,/Macintosh/i)||!u(t)),d=t=>v(t,/android|sink/i),u=t=>h(t,"(any-pointer:coarse)"),l=t=>p(t)||m(t),p=t=>!!(t.cordova||t.phonegap||t.PhoneGap),m=t=>{const o=t.Capacitor;return!!(null==o?void 0:o.isNative)},v=(t,o)=>o.test(t.navigator.userAgent),h=(t,o)=>{var e;return null===(e=t.matchMedia)||void 0===e?void 0:e.call(t,o).matches},f={ipad:a,iphone:t=>v(t,/iPhone/i),ios:t=>v(t,/iPhone|iPod/i)||a(t),android:d,phablet:t=>{const o=t.innerWidth,e=t.innerHeight,n=Math.min(o,e),i=Math.max(o,e);return n>390&&n<520&&i>620&&i<800},tablet:t=>{const o=t.innerWidth,e=t.innerHeight,n=Math.min(o,e),i=Math.max(o,e);return a(t)||(t=>d(t)&&!v(t,/mobile/i))(t)||n>460&&n<820&&i>780&&i<1400},cordova:p,capacitor:m,electron:t=>v(t,/electron/i),pwa:t=>{var o;return!(!(null===(o=t.matchMedia)||void 0===o?void 0:o.call(t,"(display-mode: standalone)").matches)&&!t.navigator.standalone)},mobile:u,mobileweb:t=>u(t)&&!l(t),desktop:t=>!u(t),hybrid:l};let b;const w=o=>o&&t(o)||b,g=(t={})=>{if("undefined"==typeof window)return;const n=window.document,c=window,a=c.Ionic=c.Ionic||{},d={};t._ael&&(d.ael=t._ael),t._rel&&(d.rel=t._rel),t._ce&&(d.ce=t._ce),o(d);const u=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(t=>{try{const o=t.sessionStorage.getItem("ionic-persist-config");return null!==o?JSON.parse(o):{}}catch(t){return{}}})(c)),{persistConfig:!1}),a.config),(t=>{const o={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,o])=>[decodeURIComponent(t),decodeURIComponent(o)])).filter((([t])=>{return t.substr(0,(o="ionic:").length)===o;var o})).map((([t,o])=>[t.slice("ionic:".length),o])).forEach((([t,e])=>{o[t]=e})),o})(c)),t);i.reset(u),i.getBoolean("persistConfig")&&((t,o)=>{try{t.sessionStorage.setItem("ionic-persist-config",JSON.stringify(o))}catch(t){return}})(c,u),s(c),a.config=i,a.mode=b=i.get("mode",n.documentElement.getAttribute("mode")||(r(c,"ios")?"ios":"md")),i.set("mode",b),n.documentElement.setAttribute("mode",b),n.documentElement.classList.add(b),i.getBoolean("_testing")&&i.set("animated",!1);const l=t=>{var o;return null===(o=t.tagName)||void 0===o?void 0:o.startsWith("ION-")},p=t=>["ios","md"].includes(t);e((t=>{for(;t;){const o=t.mode||t.getAttribute("mode");if(o){if(p(o))return o;l(t)&&console.warn('Invalid ionic mode: "'+o+'", expected: "ios" or "md"')}t=t.parentElement}return b}))};export{r as a,i as c,w as g,g as i}