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AC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC/E,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK;AACnB,IAAI,OAAO,GAAG,EAAE;AAChB,MAAM,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAC3D,MAAM,IAAI,OAAO,EAAE;AACnB,QAAQ,IAAI,uBAAuB,CAAC,OAAO,CAAC,EAAE;AAC9C,UAAU,OAAO,OAAO,CAAC;AACzB,SAAS;AACT,aAAa,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE;AACtC,UAAU,OAAO,CAAC,IAAI,CAAC,uBAAuB,GAAG,OAAO,GAAG,4BAA4B,CAAC,CAAC;AACzF,SAAS;AACT,OAAO;AACP,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC;AAC9B,KAAK;AACL,IAAI,OAAO,WAAW,CAAC;AACvB,GAAG,CAAC,CAAC;AACL;;;;","names":[],"sources":["./node_modules/@ionic/core/dist/collection/global/ionic-global.js"],"sourcesContent":["/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { getMode, setMode, setPlatformHelpers } from '@stencil/core';\nimport { isPlatform, setupPlatforms } from '../utils/platform';\nimport { config, configFromSession, configFromURL, saveConfig } from './config';\nlet defaultMode;\nexport const getIonMode = (ref) => {\n return (ref && getMode(ref)) || defaultMode;\n};\nexport const initialize = (userConfig = {}) => {\n if (typeof window === 'undefined') {\n return;\n }\n const doc = window.document;\n const win = window;\n Context.config = config;\n const Ionic = (win.Ionic = win.Ionic || {});\n const platformHelpers = {};\n if (userConfig._ael) {\n platformHelpers.ael = userConfig._ael;\n }\n if (userConfig._rel) {\n platformHelpers.rel = userConfig._rel;\n }\n if (userConfig._ce) {\n platformHelpers.ce = userConfig._ce;\n }\n setPlatformHelpers(platformHelpers);\n // create the Ionic.config from raw config object (if it exists)\n // and convert Ionic.config into a ConfigApi that has a get() fn\n const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);\n config.reset(configObj);\n if (config.getBoolean('persistConfig')) {\n saveConfig(win, configObj);\n }\n // Setup platforms\n setupPlatforms(win);\n // first see if the mode was set as an attribute on \n // which could have been set by the user, or by pre-rendering\n // otherwise get the mode via config settings, and fallback to md\n Ionic.config = config;\n Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));\n config.set('mode', defaultMode);\n doc.documentElement.setAttribute('mode', defaultMode);\n doc.documentElement.classList.add(defaultMode);\n if (config.getBoolean('_testing')) {\n config.set('animated', false);\n }\n const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };\n const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);\n setMode((elm) => {\n while (elm) {\n const elmMode = elm.mode || elm.getAttribute('mode');\n if (elmMode) {\n if (isAllowedIonicModeValue(elmMode)) {\n return elmMode;\n }\n else if (isIonicElement(elm)) {\n console.warn('Invalid ionic mode: \"' + elmMode + '\", expected: \"ios\" or \"md\"');\n }\n }\n elm = elm.parentElement;\n }\n return defaultMode;\n });\n};\nexport default initialize;\n"],"version":3}