{"version":3,"sources":["../node_modules/@ionic/core/dist/esm/legacy/ion-anchor_6.entry.js","../node_modules/@ionic/core/dist/esm/legacy/chunk-9d21e8e5.js","../node_modules/@ionic/core/dist/esm/legacy/chunk-d102c9d1.js","../node_modules/@ionic/core/dist/esm/legacy/chunk-25340090.js","../node_modules/@ionic/core/dist/esm/legacy/chunk-815c1888.js"],"names":["__webpack_require__","r","__webpack_exports__","d","Anchor","Route","RouteRedirect","Router","RouterLink","RouterOutlet","tslib__WEBPACK_IMPORTED_MODULE_0__","_chunk_f257aad1_js__WEBPACK_IMPORTED_MODULE_1__","_chunk_1074393c_js__WEBPACK_IMPORTED_MODULE_2__","_chunk_9d21e8e5_js__WEBPACK_IMPORTED_MODULE_4__","_chunk_d102c9d1_js__WEBPACK_IMPORTED_MODULE_5__","_chunk_25340090_js__WEBPACK_IMPORTED_MODULE_6__","_chunk_815c1888_js__WEBPACK_IMPORTED_MODULE_7__","hostRef","_this","this","Object","routerDirection","onClick","ev","href","prototype","componentDidLoad","console","warn","render","_a","mode","attrs","rel","class","assign","color","defineProperty","get","enumerable","configurable","url","ionRouteDataChanged","onUpdate","newValue","emit","onComponentProps","oldValue","keys1","keys","keys2","length","_i","keys1_1","key","componentDidUnload","component","componentProps","ionRouteRedirectChanged","propDidChange","from","to","ROUTER_INTENT_NONE","ROUTER_INTENT_FORWARD","generatePath","segments","filter","s","join","parsePath","path","split","map","trim","QUERY","searchNavNode","root","matches","outlet","querySelector","undefined","routeRedirect","routes","find","route","input","i","expected","matchesRedirect","matchesIDs","ids","chain","len","Math","min","toLowerCase","id","matchesPath","inputPath","allparams","RouterSegments","matchesDefault","path_1","segment","data","next","slice","params","mergeParams","a","b","computePriority","score","level","chain_2","_b","pow","shift","readRedirects","Array","children","el","tagName","readProp","readRoutes","nodes","nodes_1","node","flattenNode","flattenRouterTree","readRouteNodes","Error","prop","hasAttribute","getAttribute","push","previousPath","busy","state","lastState","useHash","ionRouteWillChange","ionRouteDidChange","componentWillLoad","label","debug","document","body","Promise","resolve","window","addEventListener","once","sent","onRoutesChanged","onRedirectChanged","bind","onPopState","direction","historyDirection","getPath","writeNavStateRoot","onBackButton","detail","register","back","startsWith","URL","location","pathname","setPath","history","waitPromise","printDebug","group","_loop_1","forEach","apply","routes_1","groupEnd","printRoutes","redirects","redirects_1","redirect","printRedirects","navChanged","getRouteId","element","readNavState","chains","match","maxMatches","plainIDs","chains_1","routerIDsToChain","chain_1","param","chainToPath","safeWriteNavState","win","replaceState","title","redirectFrom","chains_2","matchedChain","routerPathToChain","error","index","unlock","changed","e_2","lock","trys","writeNavState","p","routeEvent","routeChangeEvent","result","e_1","componentOnReady","setRouteId","markVisible","concat","pushState","writePath","loc","hash","prefix","removePrefix","readPath","redirectFromPath","redirectedFrom","animated","ionNavWillLoad","ionNavWillChange","ionNavDidChange","swipeHandlerChanged","gesture","setDisabled","swipeHandler","e","then","createSwipeBackGesture","canStart","onStart","step","ani","progressStep","shouldComplete","dur","progressEnd","onEnd","activeEl","activeComponent","destroy","commit","enteringEl","leavingEl","opts","e_3","transition","setRoot","duration","active","delegate","animationBuilder","getBoolean","animation","baseEl","progressCallback","progressAnimation","createColorClasses","getClassMap","hostContext","openURL","selector","closest","ion-color","classes","isArray","c","getClassList","SCHEME","router","test","preventDefault","rIC","callback","requestIdleCallback","setTimeout","hasShadowDom","shadowRoot","attachShadow","findItemLabel","componentEl","itemEl","renderHiddenInput","always","container","name","value","disabled","ownerDocument","createElement","type","classList","add","appendChild","clamp","n","max","assert","actual","reason","message","now","timeStamp","Date","pointerCoord","changedTouches","touch","x","clientX","y","clientY","pageX","pageY","isEndSide","side","isRTL","dir","debounceEvent","event","wait","original","_original","debounce","func","timer","args","arguments","clearTimeout","attachComponent","detachComponent","cssClasses","attachViewToDom","HTMLElement","parentElement","removeViewFromDom","remove","deepReady","lifecycle","setPageHidden","_chunk_94c4865f_js__WEBPACK_IMPORTED_MODULE_2__","iosTransitionAnimation","mdTransitionAnimation","reject","style","zIndex","setZIndex","showGoBack","beforeTransition","getAnimationBuilder","trans","waitForReady","mod","create","fireWillEvents","promise","onFinish","progressStart","play","playTransition","hasCompleted","fireDidEvents","noAnimation","runTransition","afterTransition","defaultDeep","deep","promises","deepWait","shallowReady","all","viewIsReady","notifyViewReady","eventName","CustomEvent","bubbles","cancelable","dispatchEvent","hidden","setAttribute","removeAttribute"],"mappings":"4FAAAA,EAAAC,EAAAC,GAAAF,EAAAG,EAAAD,EAAA,+BAAAE,IAAAJ,EAAAG,EAAAD,EAAA,8BAAAG,IAAAL,EAAAG,EAAAD,EAAA,uCAAAI,IAAAN,EAAAG,EAAAD,EAAA,+BAAAK,IAAAP,EAAAG,EAAAD,EAAA,oCAAAM,IAAAR,EAAAG,EAAAD,EAAA,sCAAAO,IAAA,IAAAC,EAAAV,EAAA,IAAAW,EAAAX,EAAA,IAAAY,EAAAZ,EAAA,IAAAa,GAAAb,EAAA,IAAAA,EAAA,OAAAc,EAAAd,EAAA,MAAAe,EAAAf,EAAA,MAAAgB,EAAAhB,EAAA,MAYAI,EAEA,WACA,SAAAA,EAAAa,GACA,IAAAC,EAAAC,KAEIC,OAAAT,EAAA,EAAAS,CAAgBD,KAAAF,GAMpBE,KAAAE,gBAAA,UAEAF,KAAAG,QAAA,SAAAC,GACMH,OAAAP,EAAA,EAAAO,CAAOF,EAAAM,KAAAD,EAAAL,EAAAG,kBA6Bb,OAzBAjB,EAAAqB,UAAAC,iBAAA,WACAC,QAAAC,KAAA,wKAGAxB,EAAAqB,UAAAI,OAAA,WACA,IAAAC,EAEAC,EAAeX,OAAAT,EAAA,EAAAS,CAAUD,MACzBa,EAAA,CACAR,KAAAL,KAAAK,KACAS,IAAAd,KAAAc,KAEA,OAAWb,OAAAT,EAAA,EAAAS,CAAET,EAAA,EAAI,CACjBW,QAAAH,KAAAG,QACAY,MAAAd,OAAAe,OAAA,GAA+Bf,OAAAP,EAAA,EAAAO,CAAkBD,KAAAiB,QAAAN,EAAA,GAAsBA,EAAAC,IAAA,EAAA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W,IAIA,SAAAuW,EAAArQ,GACA,OAAAA,KAAAkG,iBACAlG,EAAAkG,mBAGAvE,QAAAC,UAGA,SAAAyM,EAAArO,GACA,OAAS/G,EAAA,EAAiBS,UAAA,oBAC1B,IAAAwK,EACA,OAAWjL,EAAA,EAAmBS,KAAA,SAAAW,GAC9B,OAAAA,EAAAkH,OACA,OAEA,OADA2C,EAAAlE,GAIA,MAAAkE,EAAAgC,iBAAA,GAEA,GACA,GAEAhC,EAAAgC,oBARA,GAEA,GAQA,OAGA,SAFA7L,EAAA2H,OAGA,UAKA3H,EAAAkH,MAAA,EAEA,OACA,SAEAI,QAAA2O,IAAAxQ,MAAA3D,KAAA+H,EAAAnE,UAAAhD,IAAAsR,KAEA,OACAhU,EAAA2H,OAEA3H,EAAAkH,MAAA,EAEA,OACA,eAQA,SAAAgN,EAAAvO,EAAA8Q,GACAA,GACA9Q,EAAA+Q,aAAA,sBACA/Q,EAAAwL,UAAAC,IAAA,qBAEAzL,EAAA8Q,QAAA,EACA9Q,EAAAgR,gBAAA,eACAhR,EAAAwL,UAAA4C,OAAA","file":"static/js/83.019b4573.chunk.js","sourcesContent":["import * as tslib_1 from \"tslib\";\nimport { r as registerInstance, d as getIonMode, h, H as Host, c as createEvent, e as getElement } from './chunk-f257aad1.js';\nimport { b as config } from './chunk-1074393c.js';\nimport './chunk-94c4865f.js';\nimport { o as openURL, c as createColorClasses } from './chunk-9d21e8e5.js';\nimport { e as debounce } from './chunk-d102c9d1.js';\nimport { a as attachComponent, d as detachComponent } from './chunk-25340090.js';\nimport { t as transition } from './chunk-815c1888.js';\n/**\n * @deprecated Use `ion-router-link` instead.\n */\n\nvar Anchor =\n/** @class */\nfunction () {\n function Anchor(hostRef) {\n var _this = this;\n\n registerInstance(this, hostRef);\n /**\n * When using a router, it specifies the transition direction when navigating to\n * another page using `href`.\n */\n\n this.routerDirection = 'forward';\n\n this.onClick = function (ev) {\n openURL(_this.href, ev, _this.routerDirection);\n };\n }\n\n Anchor.prototype.componentDidLoad = function () {\n console.warn('The component has been deprecated. Please use an if you are using a vanilla JS or Stencil project or an with the Angular router.');\n };\n\n Anchor.prototype.render = function () {\n var _a;\n\n var mode = getIonMode(this);\n var attrs = {\n href: this.href,\n rel: this.rel\n };\n return h(Host, {\n onClick: this.onClick,\n class: Object.assign({}, createColorClasses(this.color), (_a = {}, _a[mode] = true, _a['ion-activatable'] = true, _a))\n }, h(\"a\", Object.assign({}, attrs), h(\"slot\", null)));\n };\n\n Object.defineProperty(Anchor, \"style\", {\n get: function get() {\n return \":host{--background:transparent;--color:var(--ion-color-primary,#3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}\";\n },\n enumerable: true,\n configurable: true\n });\n return Anchor;\n}();\n\nvar Route =\n/** @class */\nfunction () {\n function Route(hostRef) {\n registerInstance(this, hostRef);\n /**\n * Relative path that needs to match in order for this route to apply.\n *\n * Accepts paths similar to expressjs so that you can define parameters\n * in the url /foo/:bar where bar would be available in incoming props.\n */\n\n this.url = '';\n this.ionRouteDataChanged = createEvent(this, \"ionRouteDataChanged\", 7);\n }\n\n Route.prototype.onUpdate = function (newValue) {\n this.ionRouteDataChanged.emit(newValue);\n };\n\n Route.prototype.onComponentProps = function (newValue, oldValue) {\n if (newValue === oldValue) {\n return;\n }\n\n var keys1 = newValue ? Object.keys(newValue) : [];\n var keys2 = oldValue ? Object.keys(oldValue) : [];\n\n if (keys1.length !== keys2.length) {\n this.onUpdate(newValue);\n return;\n }\n\n for (var _i = 0, keys1_1 = keys1; _i < keys1_1.length; _i++) {\n var key = keys1_1[_i];\n\n if (newValue[key] !== oldValue[key]) {\n this.onUpdate(newValue);\n return;\n }\n }\n };\n\n Route.prototype.componentDidLoad = function () {\n this.ionRouteDataChanged.emit();\n };\n\n Route.prototype.componentDidUnload = function () {\n this.ionRouteDataChanged.emit();\n };\n\n Object.defineProperty(Route, \"watchers\", {\n get: function get() {\n return {\n \"url\": [\"onUpdate\"],\n \"component\": [\"onUpdate\"],\n \"componentProps\": [\"onComponentProps\"]\n };\n },\n enumerable: true,\n configurable: true\n });\n return Route;\n}();\n\nvar RouteRedirect =\n/** @class */\nfunction () {\n function RouteRedirect(hostRef) {\n registerInstance(this, hostRef);\n this.ionRouteRedirectChanged = createEvent(this, \"ionRouteRedirectChanged\", 7);\n }\n\n RouteRedirect.prototype.propDidChange = function () {\n this.ionRouteRedirectChanged.emit();\n };\n\n RouteRedirect.prototype.componentDidLoad = function () {\n this.ionRouteRedirectChanged.emit();\n };\n\n RouteRedirect.prototype.componentDidUnload = function () {\n this.ionRouteRedirectChanged.emit();\n };\n\n Object.defineProperty(RouteRedirect, \"watchers\", {\n get: function get() {\n return {\n \"from\": [\"propDidChange\"],\n \"to\": [\"propDidChange\"]\n };\n },\n enumerable: true,\n configurable: true\n });\n return RouteRedirect;\n}();\n\nvar ROUTER_INTENT_NONE = 'root';\nvar ROUTER_INTENT_FORWARD = 'forward';\nvar ROUTER_INTENT_BACK = 'back';\n\nfunction generatePath(segments) {\n var path = segments.filter(function (s) {\n return s.length > 0;\n }).join('/');\n return '/' + path;\n}\n\nfunction chainToPath(chain) {\n var path = [];\n\n for (var _i = 0, chain_1 = chain; _i < chain_1.length; _i++) {\n var route = chain_1[_i];\n\n for (var _a = 0, _b = route.path; _a < _b.length; _a++) {\n var segment = _b[_a];\n\n if (segment[0] === ':') {\n var param = route.params && route.params[segment.slice(1)];\n\n if (!param) {\n return null;\n }\n\n path.push(param);\n } else if (segment !== '') {\n path.push(segment);\n }\n }\n }\n\n return path;\n}\n\nfunction writePath(history, root, useHash, path, direction, state) {\n var url = generatePath(parsePath(root).concat(path));\n\n if (useHash) {\n url = '#' + url;\n }\n\n if (direction === ROUTER_INTENT_FORWARD) {\n history.pushState(state, '', url);\n } else {\n history.replaceState(state, '', url);\n }\n}\n\nfunction removePrefix(prefix, path) {\n if (prefix.length > path.length) {\n return null;\n }\n\n if (prefix.length <= 1 && prefix[0] === '') {\n return path;\n }\n\n for (var i = 0; i < prefix.length; i++) {\n if (prefix[i].length > 0 && prefix[i] !== path[i]) {\n return null;\n }\n }\n\n if (path.length === prefix.length) {\n return [''];\n }\n\n return path.slice(prefix.length);\n}\n\nfunction readPath(loc, root, useHash) {\n var pathname = loc.pathname;\n\n if (useHash) {\n var hash = loc.hash;\n pathname = hash[0] === '#' ? hash.slice(1) : '';\n }\n\n var prefix = parsePath(root);\n var path = parsePath(pathname);\n return removePrefix(prefix, path);\n}\n\nfunction parsePath(path) {\n if (path == null) {\n return [''];\n }\n\n var segments = path.split('/').map(function (s) {\n return s.trim();\n }).filter(function (s) {\n return s.length > 0;\n });\n\n if (segments.length === 0) {\n return [''];\n } else {\n return segments;\n }\n}\n\nfunction printRoutes(routes) {\n console.group(\"[ion-core] ROUTES[\" + routes.length + \"]\");\n\n var _loop_1 = function _loop_1(chain) {\n var path = [];\n chain.forEach(function (r) {\n return path.push.apply(path, r.path);\n });\n var ids = chain.map(function (r) {\n return r.id;\n });\n console.debug(\"%c \" + generatePath(path), 'font-weight: bold; padding-left: 20px', '=>\\t', \"(\" + ids.join(', ') + \")\");\n };\n\n for (var _i = 0, routes_1 = routes; _i < routes_1.length; _i++) {\n var chain = routes_1[_i];\n\n _loop_1(chain);\n }\n\n console.groupEnd();\n}\n\nfunction printRedirects(redirects) {\n console.group(\"[ion-core] REDIRECTS[\" + redirects.length + \"]\");\n\n for (var _i = 0, redirects_1 = redirects; _i < redirects_1.length; _i++) {\n var redirect = redirects_1[_i];\n\n if (redirect.to) {\n console.debug('FROM: ', \"$c \" + generatePath(redirect.from), 'font-weight: bold', ' TO: ', \"$c \" + generatePath(redirect.to), 'font-weight: bold');\n }\n }\n\n console.groupEnd();\n}\n\nfunction writeNavState(root, chain, direction, index, changed) {\n if (changed === void 0) {\n changed = false;\n }\n\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var outlet, route, result, e_1;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 6,, 7]);\n\n outlet = searchNavNode(root); // make sure we can continue interacting the DOM, otherwise abort\n\n if (index >= chain.length || !outlet) {\n return [2\n /*return*/\n , changed];\n }\n\n return [4\n /*yield*/\n , outlet.componentOnReady()];\n\n case 1:\n _a.sent();\n\n route = chain[index];\n return [4\n /*yield*/\n , outlet.setRouteId(route.id, route.params, direction)];\n\n case 2:\n result = _a.sent(); // if the outlet changed the page, reset navigation to neutral (no direction)\n // this means nested outlets will not animate\n\n if (result.changed) {\n direction = ROUTER_INTENT_NONE;\n changed = true;\n }\n\n return [4\n /*yield*/\n , writeNavState(result.element, chain, direction, index + 1, changed)];\n\n case 3:\n // recursively set nested outlets\n changed = _a.sent();\n if (!result.markVisible) return [3\n /*break*/\n , 5];\n return [4\n /*yield*/\n , result.markVisible()];\n\n case 4:\n _a.sent();\n\n _a.label = 5;\n\n case 5:\n return [2\n /*return*/\n , changed];\n\n case 6:\n e_1 = _a.sent();\n console.error(e_1);\n return [2\n /*return*/\n , false];\n\n case 7:\n return [2\n /*return*/\n ];\n }\n });\n });\n}\n\nfunction readNavState(root) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var ids, outlet, node, id;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n ids = [];\n node = root;\n _a.label = 1;\n\n case 1:\n if (!true) return [3\n /*break*/\n , 5];\n outlet = searchNavNode(node);\n if (!outlet) return [3\n /*break*/\n , 3];\n return [4\n /*yield*/\n , outlet.getRouteId()];\n\n case 2:\n id = _a.sent();\n\n if (id) {\n node = id.element;\n id.element = undefined;\n ids.push(id);\n } else {\n return [3\n /*break*/\n , 5];\n }\n\n return [3\n /*break*/\n , 4];\n\n case 3:\n return [3\n /*break*/\n , 5];\n\n case 4:\n return [3\n /*break*/\n , 1];\n\n case 5:\n return [2\n /*return*/\n , {\n ids: ids,\n outlet: outlet\n }];\n }\n });\n });\n}\n\nfunction waitUntilNavNode() {\n if (searchNavNode(document.body)) {\n return Promise.resolve();\n }\n\n return new Promise(function (resolve) {\n window.addEventListener('ionNavWillLoad', resolve, {\n once: true\n });\n });\n}\n\nvar QUERY = ':not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet';\n\nfunction searchNavNode(root) {\n if (!root) {\n return undefined;\n }\n\n if (root.matches(QUERY)) {\n return root;\n }\n\n var outlet = root.querySelector(QUERY);\n return outlet ? outlet : undefined;\n}\n\nfunction matchesRedirect(input, route) {\n var from = route.from,\n to = route.to;\n\n if (to === undefined) {\n return false;\n }\n\n if (from.length > input.length) {\n return false;\n }\n\n for (var i = 0; i < from.length; i++) {\n var expected = from[i];\n\n if (expected === '*') {\n return true;\n }\n\n if (expected !== input[i]) {\n return false;\n }\n }\n\n return from.length === input.length;\n}\n\nfunction routeRedirect(path, routes) {\n return routes.find(function (route) {\n return matchesRedirect(path, route);\n });\n}\n\nfunction matchesIDs(ids, chain) {\n var len = Math.min(ids.length, chain.length);\n var i = 0;\n\n for (; i < len; i++) {\n if (ids[i].toLowerCase() !== chain[i].id) {\n break;\n }\n }\n\n return i;\n}\n\nfunction matchesPath(inputPath, chain) {\n var segments = new RouterSegments(inputPath);\n var matchesDefault = false;\n var allparams;\n\n for (var i = 0; i < chain.length; i++) {\n var path = chain[i].path;\n\n if (path[0] === '') {\n matchesDefault = true;\n } else {\n for (var _i = 0, path_1 = path; _i < path_1.length; _i++) {\n var segment = path_1[_i];\n var data = segments.next(); // data param\n\n if (segment[0] === ':') {\n if (data === '') {\n return null;\n }\n\n allparams = allparams || [];\n var params = allparams[i] || (allparams[i] = {});\n params[segment.slice(1)] = data;\n } else if (data !== segment) {\n return null;\n }\n }\n\n matchesDefault = false;\n }\n }\n\n var matches = matchesDefault ? matchesDefault === (segments.next() === '') : true;\n\n if (!matches) {\n return null;\n }\n\n if (allparams) {\n return chain.map(function (route, i) {\n return {\n id: route.id,\n path: route.path,\n params: mergeParams(route.params, allparams[i])\n };\n });\n }\n\n return chain;\n}\n\nfunction mergeParams(a, b) {\n if (!a && b) {\n return b;\n } else if (a && !b) {\n return a;\n } else if (a && b) {\n return Object.assign({}, a, b);\n }\n\n return undefined;\n}\n\nfunction routerIDsToChain(ids, chains) {\n var match = null;\n var maxMatches = 0;\n var plainIDs = ids.map(function (i) {\n return i.id;\n });\n\n for (var _i = 0, chains_1 = chains; _i < chains_1.length; _i++) {\n var chain = chains_1[_i];\n var score = matchesIDs(plainIDs, chain);\n\n if (score > maxMatches) {\n match = chain;\n maxMatches = score;\n }\n }\n\n if (match) {\n return match.map(function (route, i) {\n return {\n id: route.id,\n path: route.path,\n params: mergeParams(route.params, ids[i] && ids[i].params)\n };\n });\n }\n\n return null;\n}\n\nfunction routerPathToChain(path, chains) {\n var match = null;\n var matches = 0;\n\n for (var _i = 0, chains_2 = chains; _i < chains_2.length; _i++) {\n var chain = chains_2[_i];\n var matchedChain = matchesPath(path, chain);\n\n if (matchedChain !== null) {\n var score = computePriority(matchedChain);\n\n if (score > matches) {\n matches = score;\n match = matchedChain;\n }\n }\n }\n\n return match;\n}\n\nfunction computePriority(chain) {\n var score = 1;\n var level = 1;\n\n for (var _i = 0, chain_2 = chain; _i < chain_2.length; _i++) {\n var route = chain_2[_i];\n\n for (var _a = 0, _b = route.path; _a < _b.length; _a++) {\n var path = _b[_a];\n\n if (path[0] === ':') {\n score += Math.pow(1, level);\n } else if (path !== '') {\n score += Math.pow(2, level);\n }\n\n level++;\n }\n }\n\n return score;\n}\n\nvar RouterSegments =\n/** @class */\nfunction () {\n function RouterSegments(path) {\n this.path = path.slice();\n }\n\n RouterSegments.prototype.next = function () {\n if (this.path.length > 0) {\n return this.path.shift();\n }\n\n return '';\n };\n\n return RouterSegments;\n}();\n\nfunction readRedirects(root) {\n return Array.from(root.children).filter(function (el) {\n return el.tagName === 'ION-ROUTE-REDIRECT';\n }).map(function (el) {\n var to = readProp(el, 'to');\n return {\n from: parsePath(readProp(el, 'from')),\n to: to == null ? undefined : parsePath(to)\n };\n });\n}\n\nfunction readRoutes(root) {\n return flattenRouterTree(readRouteNodes(root));\n}\n\nfunction readRouteNodes(root, node) {\n if (node === void 0) {\n node = root;\n }\n\n return Array.from(node.children).filter(function (el) {\n return el.tagName === 'ION-ROUTE' && el.component;\n }).map(function (el) {\n var component = readProp(el, 'component');\n\n if (component == null) {\n throw new Error('component missing in ion-route');\n }\n\n return {\n path: parsePath(readProp(el, 'url')),\n id: component.toLowerCase(),\n params: el.componentProps,\n children: readRouteNodes(root, el)\n };\n });\n}\n\nfunction readProp(el, prop) {\n if (prop in el) {\n return el[prop];\n }\n\n if (el.hasAttribute(prop)) {\n return el.getAttribute(prop);\n }\n\n return null;\n}\n\nfunction flattenRouterTree(nodes) {\n var routes = [];\n\n for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {\n var node = nodes_1[_i];\n flattenNode([], routes, node);\n }\n\n return routes;\n}\n\nfunction flattenNode(chain, routes, node) {\n var s = chain.slice();\n s.push({\n id: node.id,\n path: node.path,\n params: node.params\n });\n\n if (node.children.length === 0) {\n routes.push(s);\n return;\n }\n\n for (var _i = 0, _a = node.children; _i < _a.length; _i++) {\n var sub = _a[_i];\n flattenNode(s, routes, sub);\n }\n}\n\nvar Router =\n/** @class */\nfunction () {\n function Router(hostRef) {\n registerInstance(this, hostRef);\n this.previousPath = null;\n this.busy = false;\n this.state = 0;\n this.lastState = 0;\n /**\n * By default `ion-router` will match the routes at the root path (\"/\").\n * That can be changed when\n *\n */\n\n this.root = '/';\n /**\n * The router can work in two \"modes\":\n * - With hash: `/index.html#/path/to/page`\n * - Without hash: `/path/to/page`\n *\n * Using one or another might depend in the requirements of your app and/or where it's deployed.\n *\n * Usually \"hash-less\" navigation works better for SEO and it's more user friendly too, but it might\n * requires additional server-side configuration in order to properly work.\n *\n * On the otherside hash-navigation is much easier to deploy, it even works over the file protocol.\n *\n * By default, this property is `true`, change to `false` to allow hash-less URLs.\n */\n\n this.useHash = true;\n this.ionRouteWillChange = createEvent(this, \"ionRouteWillChange\", 7);\n this.ionRouteDidChange = createEvent(this, \"ionRouteDidChange\", 7);\n }\n\n Router.prototype.componentWillLoad = function () {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n console.debug('[ion-router] router will load');\n return [4\n /*yield*/\n , waitUntilNavNode()];\n\n case 1:\n _a.sent();\n\n console.debug('[ion-router] found nav');\n return [4\n /*yield*/\n , this.onRoutesChanged()];\n\n case 2:\n _a.sent();\n\n return [2\n /*return*/\n ];\n }\n });\n });\n };\n\n Router.prototype.componentDidLoad = function () {\n window.addEventListener('ionRouteRedirectChanged', debounce(this.onRedirectChanged.bind(this), 10));\n window.addEventListener('ionRouteDataChanged', debounce(this.onRoutesChanged.bind(this), 100));\n };\n\n Router.prototype.onPopState = function () {\n var direction = this.historyDirection();\n var path = this.getPath();\n console.debug('[ion-router] URL changed -> update nav', path, direction);\n return this.writeNavStateRoot(path, direction);\n };\n\n Router.prototype.onBackButton = function (ev) {\n var _this = this;\n\n ev.detail.register(0, function () {\n return _this.back();\n });\n };\n /**\n * Navigate to the specified URL.\n *\n * @param url The url to navigate to.\n * @param direction The direction of the animation. Defaults to `\"forward\"`.\n */\n\n\n Router.prototype.push = function (url, direction) {\n if (direction === void 0) {\n direction = 'forward';\n }\n\n if (url.startsWith('.')) {\n url = new URL(url, window.location.href).pathname;\n }\n\n console.debug('[ion-router] URL pushed -> updating nav', url, direction);\n var path = parsePath(url);\n this.setPath(path, direction);\n return this.writeNavStateRoot(path, direction);\n };\n /**\n * Go back to previous page in the window.history.\n */\n\n\n Router.prototype.back = function () {\n window.history.back();\n return Promise.resolve(this.waitPromise);\n };\n /** @internal */\n\n\n Router.prototype.printDebug = function () {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n console.debug('CURRENT PATH', this.getPath());\n console.debug('PREVIOUS PATH', this.previousPath);\n printRoutes(readRoutes(this.el));\n printRedirects(readRedirects(this.el));\n return [2\n /*return*/\n ];\n });\n });\n };\n /** @internal */\n\n\n Router.prototype.navChanged = function (direction) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var _a, ids, outlet, routes, chain, path;\n\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (this.busy) {\n console.warn('[ion-router] router is busy, navChanged was cancelled');\n return [2\n /*return*/\n , false];\n }\n\n return [4\n /*yield*/\n , readNavState(window.document.body)];\n\n case 1:\n _a = _b.sent(), ids = _a.ids, outlet = _a.outlet;\n routes = readRoutes(this.el);\n chain = routerIDsToChain(ids, routes);\n\n if (!chain) {\n console.warn('[ion-router] no matching URL for ', ids.map(function (i) {\n return i.id;\n }));\n return [2\n /*return*/\n , false];\n }\n\n path = chainToPath(chain);\n\n if (!path) {\n console.warn('[ion-router] router could not match path because some required param is missing');\n return [2\n /*return*/\n , false];\n }\n\n console.debug('[ion-router] nav changed -> update URL', ids, path);\n this.setPath(path, direction);\n return [4\n /*yield*/\n , this.safeWriteNavState(outlet, chain, ROUTER_INTENT_NONE, path, null, ids.length)];\n\n case 2:\n _b.sent();\n\n return [2\n /*return*/\n , true];\n }\n });\n });\n };\n\n Router.prototype.onRedirectChanged = function () {\n var path = this.getPath();\n\n if (path && routeRedirect(path, readRedirects(this.el))) {\n this.writeNavStateRoot(path, ROUTER_INTENT_NONE);\n }\n };\n\n Router.prototype.onRoutesChanged = function () {\n return this.writeNavStateRoot(this.getPath(), ROUTER_INTENT_NONE);\n };\n\n Router.prototype.historyDirection = function () {\n var win = window;\n\n if (win.history.state === null) {\n this.state++;\n win.history.replaceState(this.state, win.document.title, win.document.location && win.document.location.href);\n }\n\n var state = win.history.state;\n var lastState = this.lastState;\n this.lastState = state;\n\n if (state > lastState) {\n return ROUTER_INTENT_FORWARD;\n } else if (state < lastState) {\n return ROUTER_INTENT_BACK;\n } else {\n return ROUTER_INTENT_NONE;\n }\n };\n\n Router.prototype.writeNavStateRoot = function (path, direction) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var redirects, redirect, redirectFrom, routes, chain;\n return tslib_1.__generator(this, function (_a) {\n if (!path) {\n console.error('[ion-router] URL is not part of the routing set');\n return [2\n /*return*/\n , false];\n }\n\n redirects = readRedirects(this.el);\n redirect = routeRedirect(path, redirects);\n redirectFrom = null;\n\n if (redirect) {\n this.setPath(redirect.to, direction);\n redirectFrom = redirect.from;\n path = redirect.to;\n }\n\n routes = readRoutes(this.el);\n chain = routerPathToChain(path, routes);\n\n if (!chain) {\n console.error('[ion-router] the path does not match any route');\n return [2\n /*return*/\n , false];\n } // write DOM give\n\n\n return [2\n /*return*/\n , this.safeWriteNavState(document.body, chain, direction, path, redirectFrom)];\n });\n });\n };\n\n Router.prototype.safeWriteNavState = function (node, chain, direction, path, redirectFrom, index) {\n if (index === void 0) {\n index = 0;\n }\n\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var unlock, changed, e_2;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , this.lock()];\n\n case 1:\n unlock = _a.sent();\n changed = false;\n _a.label = 2;\n\n case 2:\n _a.trys.push([2, 4,, 5]);\n\n return [4\n /*yield*/\n , this.writeNavState(node, chain, direction, path, redirectFrom, index)];\n\n case 3:\n changed = _a.sent();\n return [3\n /*break*/\n , 5];\n\n case 4:\n e_2 = _a.sent();\n console.error(e_2);\n return [3\n /*break*/\n , 5];\n\n case 5:\n unlock();\n return [2\n /*return*/\n , changed];\n }\n });\n });\n };\n\n Router.prototype.lock = function () {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var p, resolve;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n p = this.waitPromise;\n this.waitPromise = new Promise(function (r) {\n return resolve = r;\n });\n if (!(p !== undefined)) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , p];\n\n case 1:\n _a.sent();\n\n _a.label = 2;\n\n case 2:\n return [2\n /*return*/\n , resolve];\n }\n });\n });\n };\n\n Router.prototype.writeNavState = function (node, chain, direction, path, redirectFrom, index) {\n if (index === void 0) {\n index = 0;\n }\n\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var routeEvent, changed;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.busy) {\n console.warn('[ion-router] router is busy, transition was cancelled');\n return [2\n /*return*/\n , false];\n }\n\n this.busy = true;\n routeEvent = this.routeChangeEvent(path, redirectFrom);\n\n if (routeEvent) {\n this.ionRouteWillChange.emit(routeEvent);\n }\n\n return [4\n /*yield*/\n , writeNavState(node, chain, direction, index)];\n\n case 1:\n changed = _a.sent();\n this.busy = false;\n\n if (changed) {\n console.debug('[ion-router] route changed', path);\n } // emit did change\n\n\n if (routeEvent) {\n this.ionRouteDidChange.emit(routeEvent);\n }\n\n return [2\n /*return*/\n , changed];\n }\n });\n });\n };\n\n Router.prototype.setPath = function (path, direction) {\n this.state++;\n writePath(window.history, this.root, this.useHash, path, direction, this.state);\n };\n\n Router.prototype.getPath = function () {\n return readPath(window.location, this.root, this.useHash);\n };\n\n Router.prototype.routeChangeEvent = function (path, redirectFromPath) {\n var from = this.previousPath;\n var to = generatePath(path);\n this.previousPath = to;\n\n if (to === from) {\n return null;\n }\n\n var redirectedFrom = redirectFromPath ? generatePath(redirectFromPath) : null;\n return {\n from: from,\n redirectedFrom: redirectedFrom,\n to: to\n };\n };\n\n Object.defineProperty(Router.prototype, \"el\", {\n get: function get() {\n return getElement(this);\n },\n enumerable: true,\n configurable: true\n });\n return Router;\n}();\n\nvar RouterLink =\n/** @class */\nfunction () {\n function RouterLink(hostRef) {\n var _this = this;\n\n registerInstance(this, hostRef);\n /**\n * When using a router, it specifies the transition direction when navigating to\n * another page using `href`.\n */\n\n this.routerDirection = 'forward';\n\n this.onClick = function (ev) {\n openURL(_this.href, ev, _this.routerDirection);\n };\n }\n\n RouterLink.prototype.render = function () {\n var _a;\n\n var mode = getIonMode(this);\n var attrs = {\n href: this.href,\n rel: this.rel\n };\n return h(Host, {\n onClick: this.onClick,\n class: Object.assign({}, createColorClasses(this.color), (_a = {}, _a[mode] = true, _a['ion-activatable'] = true, _a))\n }, h(\"a\", Object.assign({}, attrs), h(\"slot\", null)));\n };\n\n Object.defineProperty(RouterLink, \"style\", {\n get: function get() {\n return \":host{--background:transparent;--color:var(--ion-color-primary,#3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}\";\n },\n enumerable: true,\n configurable: true\n });\n return RouterLink;\n}();\n\nvar RouterOutlet =\n/** @class */\nfunction () {\n function RouterOutlet(hostRef) {\n registerInstance(this, hostRef);\n /**\n * If `true`, the router-outlet should animate the transition of components.\n */\n\n this.animated = true;\n this.ionNavWillLoad = createEvent(this, \"ionNavWillLoad\", 7);\n this.ionNavWillChange = createEvent(this, \"ionNavWillChange\", 3);\n this.ionNavDidChange = createEvent(this, \"ionNavDidChange\", 3);\n }\n\n RouterOutlet.prototype.swipeHandlerChanged = function () {\n if (this.gesture) {\n this.gesture.setDisabled(this.swipeHandler === undefined);\n }\n };\n\n RouterOutlet.prototype.componentWillLoad = function () {\n this.ionNavWillLoad.emit();\n };\n\n RouterOutlet.prototype.componentDidLoad = function () {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var _a;\n\n var _this = this;\n\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4\n /*yield*/\n , import('./swipe-back-8dc047dc.js')];\n\n case 1:\n _a.gesture = _b.sent().createSwipeBackGesture(this.el, function () {\n return !!_this.swipeHandler && _this.swipeHandler.canStart();\n }, function () {\n return _this.swipeHandler && _this.swipeHandler.onStart();\n }, function (step) {\n return _this.ani && _this.ani.progressStep(step);\n }, function (shouldComplete, step, dur) {\n if (_this.ani) {\n _this.ani.progressEnd(shouldComplete, step, dur);\n }\n\n if (_this.swipeHandler) {\n _this.swipeHandler.onEnd(shouldComplete);\n }\n });\n this.swipeHandlerChanged();\n return [2\n /*return*/\n ];\n }\n });\n });\n };\n\n RouterOutlet.prototype.componentDidUnload = function () {\n this.activeEl = this.activeComponent = undefined;\n\n if (this.gesture) {\n this.gesture.destroy();\n this.gesture = undefined;\n }\n };\n /** @internal */\n\n\n RouterOutlet.prototype.commit = function (enteringEl, leavingEl, opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var unlock, changed, e_3;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , this.lock()];\n\n case 1:\n unlock = _a.sent();\n changed = false;\n _a.label = 2;\n\n case 2:\n _a.trys.push([2, 4,, 5]);\n\n return [4\n /*yield*/\n , this.transition(enteringEl, leavingEl, opts)];\n\n case 3:\n changed = _a.sent();\n return [3\n /*break*/\n , 5];\n\n case 4:\n e_3 = _a.sent();\n console.error(e_3);\n return [3\n /*break*/\n , 5];\n\n case 5:\n unlock();\n return [2\n /*return*/\n , changed];\n }\n });\n });\n };\n /** @internal */\n\n\n RouterOutlet.prototype.setRouteId = function (id, params, direction) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var changed;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , this.setRoot(id, params, {\n duration: direction === 'root' ? 0 : undefined,\n direction: direction === 'back' ? 'back' : 'forward'\n })];\n\n case 1:\n changed = _a.sent();\n return [2\n /*return*/\n , {\n changed: changed,\n element: this.activeEl\n }];\n }\n });\n });\n };\n /** @internal */\n\n\n RouterOutlet.prototype.getRouteId = function () {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var active;\n return tslib_1.__generator(this, function (_a) {\n active = this.activeEl;\n return [2\n /*return*/\n , active ? {\n id: active.tagName,\n element: active\n } : undefined];\n });\n });\n };\n\n RouterOutlet.prototype.setRoot = function (component, params, opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var leavingEl, enteringEl;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.activeComponent === component) {\n return [2\n /*return*/\n , false];\n }\n\n leavingEl = this.activeEl;\n return [4\n /*yield*/\n , attachComponent(this.delegate, this.el, component, ['ion-page', 'ion-page-invisible'], params)];\n\n case 1:\n enteringEl = _a.sent();\n this.activeComponent = component;\n this.activeEl = enteringEl; // commit animation\n\n return [4\n /*yield*/\n , this.commit(enteringEl, leavingEl, opts)];\n\n case 2:\n // commit animation\n _a.sent();\n\n return [4\n /*yield*/\n , detachComponent(this.delegate, leavingEl)];\n\n case 3:\n _a.sent();\n\n return [2\n /*return*/\n , true];\n }\n });\n });\n };\n\n RouterOutlet.prototype.transition = function (enteringEl, leavingEl, opts) {\n if (opts === void 0) {\n opts = {};\n }\n\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var mode, el, animated, animationBuilder;\n\n var _this = this;\n\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (leavingEl === enteringEl) {\n return [2\n /*return*/\n , false];\n } // emit nav will change event\n\n\n this.ionNavWillChange.emit();\n mode = getIonMode(this);\n el = this.el;\n animated = this.animated && config.getBoolean('animated', true);\n animationBuilder = this.animation || opts.animationBuilder || config.get('navAnimation');\n return [4\n /*yield*/\n , transition(Object.assign({\n mode: mode,\n animated: animated,\n animationBuilder: animationBuilder,\n enteringEl: enteringEl,\n leavingEl: leavingEl,\n baseEl: el,\n progressCallback: opts.progressAnimation ? function (ani) {\n return _this.ani = ani;\n } : undefined\n }, opts))];\n\n case 1:\n _a.sent(); // emit nav changed event\n\n\n this.ionNavDidChange.emit();\n return [2\n /*return*/\n , true];\n }\n });\n });\n };\n\n RouterOutlet.prototype.lock = function () {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var p, resolve;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n p = this.waitPromise;\n this.waitPromise = new Promise(function (r) {\n return resolve = r;\n });\n if (!(p !== undefined)) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , p];\n\n case 1:\n _a.sent();\n\n _a.label = 2;\n\n case 2:\n return [2\n /*return*/\n , resolve];\n }\n });\n });\n };\n\n RouterOutlet.prototype.render = function () {\n return h(\"slot\", null);\n };\n\n Object.defineProperty(RouterOutlet.prototype, \"el\", {\n get: function get() {\n return getElement(this);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RouterOutlet, \"watchers\", {\n get: function get() {\n return {\n \"swipeHandler\": [\"swipeHandlerChanged\"]\n };\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RouterOutlet, \"style\", {\n get: function get() {\n return \":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}\";\n },\n enumerable: true,\n configurable: true\n });\n return RouterOutlet;\n}();\n\nexport { Anchor as ion_anchor, Route as ion_route, RouteRedirect as ion_route_redirect, Router as ion_router, RouterLink as ion_router_link, RouterOutlet as ion_router_outlet };","import * as tslib_1 from \"tslib\";\n\nfunction hostContext(selector, el) {\n return el.closest(selector) !== null;\n}\n/**\n * Create the mode and color classes for the component based on the classes passed in\n */\n\n\nfunction createColorClasses(color) {\n var _a;\n\n return typeof color === 'string' && color.length > 0 ? (_a = {\n 'ion-color': true\n }, _a[\"ion-color-\" + color] = true, _a) : undefined;\n}\n\nfunction getClassList(classes) {\n if (classes !== undefined) {\n var array = Array.isArray(classes) ? classes : classes.split(' ');\n return array.filter(function (c) {\n return c != null;\n }).map(function (c) {\n return c.trim();\n }).filter(function (c) {\n return c !== '';\n });\n }\n\n return [];\n}\n\nfunction getClassMap(classes) {\n var map = {};\n getClassList(classes).forEach(function (c) {\n return map[c] = true;\n });\n return map;\n}\n\nvar SCHEME = /^[a-z][a-z0-9+\\-.]*:/;\n\nfunction openURL(url, ev, direction) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var router;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(url != null && url[0] !== '#' && !SCHEME.test(url))) return [3\n /*break*/\n , 2];\n router = document.querySelector('ion-router');\n if (!router) return [3\n /*break*/\n , 2];\n\n if (ev != null) {\n ev.preventDefault();\n }\n\n return [4\n /*yield*/\n , router.componentOnReady()];\n\n case 1:\n _a.sent();\n\n return [2\n /*return*/\n , router.push(url, direction)];\n\n case 2:\n return [2\n /*return*/\n , false];\n }\n });\n });\n}\n\nexport { createColorClasses as c, getClassMap as g, hostContext as h, openURL as o };","function rIC(callback) {\n if ('requestIdleCallback' in window) {\n window.requestIdleCallback(callback);\n } else {\n setTimeout(callback, 32);\n }\n}\n\nfunction hasShadowDom(el) {\n return !!el.shadowRoot && !!el.attachShadow;\n}\n\nfunction findItemLabel(componentEl) {\n var itemEl = componentEl.closest('ion-item');\n\n if (itemEl) {\n return itemEl.querySelector('ion-label');\n }\n\n return null;\n}\n\nfunction renderHiddenInput(always, container, name, value, disabled) {\n if (always || hasShadowDom(container)) {\n var input = container.querySelector('input.aux-input');\n\n if (!input) {\n input = container.ownerDocument.createElement('input');\n input.type = 'hidden';\n input.classList.add('aux-input');\n container.appendChild(input);\n }\n\n input.disabled = disabled;\n input.name = name;\n input.value = value || '';\n }\n}\n\nfunction clamp(min, n, max) {\n return Math.max(min, Math.min(n, max));\n}\n\nfunction assert(actual, reason) {\n if (!actual) {\n var message = 'ASSERT: ' + reason;\n console.error(message);\n debugger; // tslint:disable-line\n\n throw new Error(message);\n }\n}\n\nfunction now(ev) {\n return ev.timeStamp || Date.now();\n}\n\nfunction pointerCoord(ev) {\n // get X coordinates for either a mouse click\n // or a touch depending on the given event\n if (ev) {\n var changedTouches = ev.changedTouches;\n\n if (changedTouches && changedTouches.length > 0) {\n var touch = changedTouches[0];\n return {\n x: touch.clientX,\n y: touch.clientY\n };\n }\n\n if (ev.pageX !== undefined) {\n return {\n x: ev.pageX,\n y: ev.pageY\n };\n }\n }\n\n return {\n x: 0,\n y: 0\n };\n}\n/**\n * @hidden\n * Given a side, return if it should be on the end\n * based on the value of dir\n * @param side the side\n * @param isRTL whether the application dir is rtl\n */\n\n\nfunction isEndSide(side) {\n var isRTL = document.dir === 'rtl';\n\n switch (side) {\n case 'start':\n return isRTL;\n\n case 'end':\n return !isRTL;\n\n default:\n throw new Error(\"\\\"\" + side + \"\\\" is not a valid value for [side]. Use \\\"start\\\" or \\\"end\\\" instead.\");\n }\n}\n\nfunction debounceEvent(event, wait) {\n var original = event._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait)\n };\n}\n\nfunction debounce(func, wait) {\n if (wait === void 0) {\n wait = 0;\n }\n\n var timer;\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n clearTimeout(timer);\n timer = setTimeout.apply(void 0, [func, wait].concat(args));\n };\n}\n\nexport { rIC as a, assert as b, clamp as c, debounceEvent as d, debounce as e, findItemLabel as f, hasShadowDom as h, isEndSide as i, now as n, pointerCoord as p, renderHiddenInput as r };","import * as tslib_1 from \"tslib\";\n\nfunction attachComponent(delegate, container, component, cssClasses, componentProps) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var el;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (delegate) {\n return [2\n /*return*/\n , delegate.attachViewToDom(container, component, componentProps, cssClasses)];\n }\n\n if (typeof component !== 'string' && !(component instanceof HTMLElement)) {\n throw new Error('framework delegate is missing');\n }\n\n el = typeof component === 'string' ? container.ownerDocument && container.ownerDocument.createElement(component) : component;\n\n if (cssClasses) {\n cssClasses.forEach(function (c) {\n return el.classList.add(c);\n });\n }\n\n if (componentProps) {\n Object.assign(el, componentProps);\n }\n\n container.appendChild(el);\n if (!el.componentOnReady) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , el.componentOnReady()];\n\n case 1:\n _a.sent();\n\n _a.label = 2;\n\n case 2:\n return [2\n /*return*/\n , el];\n }\n });\n });\n}\n\nfunction detachComponent(delegate, element) {\n if (element) {\n if (delegate) {\n var container = element.parentElement;\n return delegate.removeViewFromDom(container, element);\n }\n\n element.remove();\n }\n\n return Promise.resolve();\n}\n\nexport { attachComponent as a, detachComponent as d };","import * as tslib_1 from \"tslib\";\nimport { w as writeTask } from './chunk-f257aad1.js';\nimport { b as LIFECYCLE_WILL_LEAVE, L as LIFECYCLE_WILL_ENTER, a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE } from './chunk-94c4865f.js';\n\nvar iosTransitionAnimation = function iosTransitionAnimation() {\n return import('./ios.transition-080db2c2.js');\n};\n\nvar mdTransitionAnimation = function mdTransitionAnimation() {\n return import('./md.transition-9c1a17b7.js');\n};\n\nfunction transition(opts) {\n return new Promise(function (resolve, reject) {\n writeTask(function () {\n beforeTransition(opts);\n runTransition(opts).then(function (result) {\n if (result.animation) {\n result.animation.destroy();\n }\n\n afterTransition(opts);\n resolve(result);\n }, function (error) {\n afterTransition(opts);\n reject(error);\n });\n });\n });\n}\n\nfunction beforeTransition(opts) {\n var enteringEl = opts.enteringEl;\n var leavingEl = opts.leavingEl;\n setZIndex(enteringEl, leavingEl, opts.direction);\n\n if (opts.showGoBack) {\n enteringEl.classList.add('can-go-back');\n } else {\n enteringEl.classList.remove('can-go-back');\n }\n\n setPageHidden(enteringEl, false);\n\n if (leavingEl) {\n setPageHidden(leavingEl, false);\n }\n}\n\nfunction runTransition(opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var animationBuilder, ani;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , getAnimationBuilder(opts)];\n\n case 1:\n animationBuilder = _a.sent();\n ani = animationBuilder ? animation(animationBuilder, opts) : noAnimation(opts);\n return [2\n /*return*/\n , ani];\n }\n });\n });\n}\n\nfunction afterTransition(opts) {\n var enteringEl = opts.enteringEl;\n var leavingEl = opts.leavingEl;\n enteringEl.classList.remove('ion-page-invisible');\n\n if (leavingEl !== undefined) {\n leavingEl.classList.remove('ion-page-invisible');\n }\n}\n\nfunction getAnimationBuilder(opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var builder, _a;\n\n return tslib_1.__generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!opts.leavingEl || !opts.animated || opts.duration === 0) {\n return [2\n /*return*/\n , undefined];\n }\n\n if (opts.animationBuilder) {\n return [2\n /*return*/\n , opts.animationBuilder];\n }\n\n if (!(opts.mode === 'ios')) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , iosTransitionAnimation()];\n\n case 1:\n _a = _b.sent().iosTransitionAnimation;\n return [3\n /*break*/\n , 4];\n\n case 2:\n return [4\n /*yield*/\n , mdTransitionAnimation()];\n\n case 3:\n _a = _b.sent().mdTransitionAnimation;\n _b.label = 4;\n\n case 4:\n builder = _a;\n return [2\n /*return*/\n , builder];\n }\n });\n });\n}\n\nfunction animation(animationBuilder, opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var trans;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , waitForReady(opts, true)];\n\n case 1:\n _a.sent();\n\n return [4\n /*yield*/\n , import('./index-8ec7f6e0.js').then(function (mod) {\n return mod.create(animationBuilder, opts.baseEl, opts);\n })];\n\n case 2:\n trans = _a.sent();\n fireWillEvents(opts.enteringEl, opts.leavingEl);\n return [4\n /*yield*/\n , playTransition(trans, opts)];\n\n case 3:\n _a.sent();\n\n if (opts.progressCallback) {\n opts.progressCallback(undefined);\n }\n\n if (trans.hasCompleted) {\n fireDidEvents(opts.enteringEl, opts.leavingEl);\n }\n\n return [2\n /*return*/\n , {\n hasCompleted: trans.hasCompleted,\n animation: trans\n }];\n }\n });\n });\n}\n\nfunction noAnimation(opts) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var enteringEl, leavingEl;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n enteringEl = opts.enteringEl;\n leavingEl = opts.leavingEl;\n return [4\n /*yield*/\n , waitForReady(opts, false)];\n\n case 1:\n _a.sent();\n\n fireWillEvents(enteringEl, leavingEl);\n fireDidEvents(enteringEl, leavingEl);\n return [2\n /*return*/\n , {\n hasCompleted: true\n }];\n }\n });\n });\n}\n\nfunction waitForReady(opts, defaultDeep) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var deep, promises;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n deep = opts.deepWait !== undefined ? opts.deepWait : defaultDeep;\n promises = deep ? [deepReady(opts.enteringEl), deepReady(opts.leavingEl)] : [shallowReady(opts.enteringEl), shallowReady(opts.leavingEl)];\n return [4\n /*yield*/\n , Promise.all(promises)];\n\n case 1:\n _a.sent();\n\n return [4\n /*yield*/\n , notifyViewReady(opts.viewIsReady, opts.enteringEl)];\n\n case 2:\n _a.sent();\n\n return [2\n /*return*/\n ];\n }\n });\n });\n}\n\nfunction notifyViewReady(viewIsReady, enteringEl) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!viewIsReady) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , viewIsReady(enteringEl)];\n\n case 1:\n _a.sent();\n\n _a.label = 2;\n\n case 2:\n return [2\n /*return*/\n ];\n }\n });\n });\n}\n\nfunction playTransition(trans, opts) {\n var progressCallback = opts.progressCallback;\n var promise = new Promise(function (resolve) {\n return trans.onFinish(resolve);\n }); // cool, let's do this, start the transition\n\n if (progressCallback) {\n // this is a swipe to go back, just get the transition progress ready\n // kick off the swipe animation start\n trans.progressStart();\n progressCallback(trans);\n } else {\n // only the top level transition should actually start \"play\"\n // kick it off and let it play through\n // ******** DOM WRITE ****************\n trans.play();\n } // create a callback for when the animation is done\n\n\n return promise;\n}\n\nfunction fireWillEvents(enteringEl, leavingEl) {\n lifecycle(leavingEl, LIFECYCLE_WILL_LEAVE);\n lifecycle(enteringEl, LIFECYCLE_WILL_ENTER);\n}\n\nfunction fireDidEvents(enteringEl, leavingEl) {\n lifecycle(enteringEl, LIFECYCLE_DID_ENTER);\n lifecycle(leavingEl, LIFECYCLE_DID_LEAVE);\n}\n\nfunction lifecycle(el, eventName) {\n if (el) {\n var ev = new CustomEvent(eventName, {\n bubbles: false,\n cancelable: false\n });\n el.dispatchEvent(ev);\n }\n}\n\nfunction shallowReady(el) {\n if (el && el.componentOnReady) {\n return el.componentOnReady();\n }\n\n return Promise.resolve();\n}\n\nfunction deepReady(el) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var element, stencilEl;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n element = el;\n if (!element) return [3\n /*break*/\n , 4];\n if (!(element.componentOnReady != null)) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , element.componentOnReady()];\n\n case 1:\n stencilEl = _a.sent();\n\n if (stencilEl != null) {\n return [2\n /*return*/\n ];\n }\n\n _a.label = 2;\n\n case 2:\n return [4\n /*yield*/\n , Promise.all(Array.from(element.children).map(deepReady))];\n\n case 3:\n _a.sent();\n\n _a.label = 4;\n\n case 4:\n return [2\n /*return*/\n ];\n }\n });\n });\n}\n\nfunction setPageHidden(el, hidden) {\n if (hidden) {\n el.setAttribute('aria-hidden', 'true');\n el.classList.add('ion-page-hidden');\n } else {\n el.hidden = false;\n el.removeAttribute('aria-hidden');\n el.classList.remove('ion-page-hidden');\n }\n}\n\nfunction setZIndex(enteringEl, leavingEl, direction) {\n if (enteringEl !== undefined) {\n enteringEl.style.zIndex = direction === 'back' ? '99' : '101';\n }\n\n if (leavingEl !== undefined) {\n leavingEl.style.zIndex = '100';\n }\n}\n\nexport { deepReady as d, lifecycle as l, setPageHidden as s, transition as t };"],"sourceRoot":""}