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