/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */
const t=t=>o(t),e=(e,o)=>("string"==typeof e&&(o=e,e=void 0),t(e).includes(o)),o=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=n(t),e.forEach((e=>t.document.documentElement.classList.add(`plt-${e}`)))),e},n=t=>Object.keys(p).filter((e=>p[e](t))),i=t=>!!h(t,/iPad/i)||!(!h(t,/Macintosh/i)||!s(t)),r=t=>h(t,/android|sink/i),s=t=>l(t,"(any-pointer:coarse)"),a=t=>c(t)||d(t),c=t=>!!(t.cordova||t.phonegap||t.PhoneGap),d=t=>{const e=t.Capacitor;return!(!e||!e.isNative)},h=(t,e)=>e.test(t.navigator.userAgent),l=(t,e)=>t.matchMedia(e).matches,p={ipad:i,iphone:t=>h(t,/iPhone/i),ios:t=>h(t,/iPhone|iPod/i)||i(t),android:r,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),s=Math.max(e,o);return i(t)||(t=>r(t)&&!h(t,/mobile/i))(t)||n>460&&n<820&&s>780&&s<1400},cordova:c,capacitor:d,electron:t=>h(t,/electron/i),pwa:t=>!(!t.matchMedia("(display-mode: standalone)").matches&&!t.navigator.standalone),mobile:s,mobileweb:t=>s(t)&&!a(t),desktop:t=>!s(t),hybrid:a};class u{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 u,g=t=>{try{const e=t.sessionStorage.getItem(N);return null!==e?JSON.parse(e):{}}catch(e){return{}}},m=(t,e)=>{try{t.sessionStorage.setItem(N,JSON.stringify(e))}catch(o){return}},w=t=>{const e={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,e])=>[decodeURIComponent(t),decodeURIComponent(e)])).filter((([t])=>y(t,M))).map((([t,e])=>[t.slice(M.length),e])).forEach((([t,o])=>{e[t]=o})),e},y=(t,e)=>t.substr(0,e.length)===e,M="ionic:",N="ionic-persist-config";export{w as a,b,g as c,m as d,t as g,e as i,o as s}