1"use strict";(self.webpackChunkbeunity=self.webpackChunkbeunity||[]).push([[8573],{58573:(t,e,n)=>{n.r(e),n.d(e,{ion_route:()=>u,ion_route_redirect:()=>c,ion_router:()=>N,ion_router_link:()=>Y});var r=n(31635),o=n(84610),i=n(99267),s=n(68692),a=n(37812),u=function(){function t(t){(0,o.r)(this,t),this.ionRouteDataChanged=(0,o.d)(this,"ionRouteDataChanged",7),this.url="",this.component=void 0,this.componentProps=void 0,this.beforeLeave=void 0,this.beforeEnter=void 0}return t.prototype.onUpdate=function(t){this.ionRouteDataChanged.emit(t)},t.prototype.onComponentProps=function(t,e){if(t!==e){var n=t?Object.keys(t):[],r=e?Object.keys(e):[];if(n.length===r.length)for(var o=0,i=n;o<i.length;o++){var s=i[o];if(t[s]!==e[s])return void this.onUpdate(t)}else this.onUpdate(t)}},t.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()},Object.defineProperty(t,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:!1,configurable:!0}),t}(),c=function(){function t(t){(0,o.r)(this,t),this.ionRouteRedirectChanged=(0,o.d)(this,"ionRouteRedirectChanged",7),this.from=void 0,this.to=void 0}return t.prototype.propDidChange=function(){this.ionRouteRedirectChanged.emit()},t.prototype.connectedCallback=function(){this.ionRouteRedirectChanged.emit()},Object.defineProperty(t,"watchers",{get:function(){return{from:["propDidChange"],to:["propDidChange"]}},enumerable:!1,configurable:!0}),t}(),h="root",l="forward",f=function(t){return"/"+t.filter(function(t){return t.length>0}).join("/")},d=function(t,e,n,o,i,s,a){var u=function(t,e,n){var r=f(t);return e&&(r="#"+r),void 0!==n&&(r+="?"+n),r}((0,r.fX)((0,r.fX)([],g(e).segments,!0),o,!0),n,a);i===l?t.pushState(s,"",u):t.replaceState(s,"",u)},g=function(t){var e,n=[""];if(null!=t){var r=t.indexOf("?");r>-1&&(e=t.substring(r+1),t=t.substring(0,r)),n=t.split("/").map(function(t){return t.trim()}).filter(function(t){return t.length>0}),0===n.length&&(n=[""])}return{segments:n,queryString:e}},v=function(t,e,n,o){for(var s=[],a=4;a<arguments.length;a++)s[a-4]=arguments[a];return(0,r.sH)(void 0,(0,r.fX)([t,e,n,o],s,!0),void 0,function(t,e,n,o,s,a){var u,c,l,f;return void 0===s&&(s=!1),(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),u=b(t),o>=e.length||!u?[2,s]:[4,new Promise(function(t){return(0,i.c)(u,t)})];case 1:return r.sent(),c=e[o],[4,u.setRouteId(c.id,c.params,n,a)];case 2:return(l=r.sent()).changed&&(n=h,s=!0),[4,v(l.element,e,n,o+1,s,a)];case 3:return s=r.sent(),l.markVisible?[4,l.markVisible()]:[3,5];case 4:r.sent(),r.label=5;case 5:return[2,s];case 6:return f=r.sent(),console.error(f),[2,!1];case 7:return[2]}})})},p=function(t){return(0,r.sH)(void 0,void 0,void 0,function(){var e,n,o,i;return(0,r.YH)(this,function(r){switch(r.label){case 0:e=[],o=t,r.label=1;case 1:return(n=b(o))?[4,n.getRouteId()]:[3,3];case 2:return(i=r.sent())?(o=i.element,i.element=void 0,e.push(i),[3,1]):[3,3];case 3:return[2,{ids:e,outlet:n}]}})})},m=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",b=function(t){if(t){if(t.matches(m))return t;var e=t.querySelector(m);return null!==e&&void 0!==e?e:void 0}},y=function(t,e){return e.find(function(e){return function(t,e){var n=e.from;if(void 0===e.to)return!1;if(n.length>t.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if("*"===o)return!0;if(o!==t[r])return!1}return n.length===t.length}(t,e)})},w=function(t,e){for(var n=Math.min(t.length,e.length),r=0,o=0;o<n;o++){var i=t[o],s=e[o];if(i.id.toLowerCase()!==s.id)break;if(i.params){var a=Object.keys(i.params);if(a.length===s.segments.length)for(var u=a.map(function(t){return":".concat(t)}),c=0;c<u.length&&u[c].toLowerCase()===s.segments[c];c++)r++}r++}return r},R=function(t,e){for(var n,r=new k(t),o=!1,i=0;i<e.length;i++){var s=e[i].segments;if(""===s[0])o=!0;else{for(var a=0,u=s;a<u.length;a++){var c=u[a],h=r.next();if(":"===c[0]){if(""===h)return null;((n=n||[])[i]||(n[i]={}))[c.slice(1)]=h}else if(h!==c)return null}o=!1}}return!o||o===(""===r.next())?n?e.map(function(t,e){return{id:t.id,segments:t.segments,params:C(t.params,n[e]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}}):e:null},C=function(t,e){return t||e?Object.assign(Object.assign({},t),e):void 0},S=function(t,e){for(var n=null,r=0,o=0,i=e;o<i.length;o++){var s=i[o],a=R(t,s);if(null!==a){var u=H(a);u>r&&(r=u,n=a)}}return n},H=function(t){for(var e=1,n=1,r=0,o=t;r<o.length;r++)for(var i=0,s=o[r].segments;i<s.length;i++){var a=s[i];":"===a[0]?e+=Math.pow(1,n):""!==a&&(e+=Math.pow(2,n)),n++}return e},k=function(){function t(t){this.segments=t.slice()}return t.prototype.next=function(){return this.segments.length>0?this.segments.shift():""},t}(),E=function(t,e){return e in t?t[e]:t.hasAttribute(e)?t.getAttribute(e):null},P=function(t){return Array.from(t.children).filter(function(t){return"ION-ROUTE-REDIRECT"===t.tagName}).map(function(t){var e=E(t,"to");return{from:g(E(t,"from")).segments,to:null==e?void 0:g(e)}})},L=function(t){return O(D(t))},D=function(t){return Array.from(t.children).filter(function(t){return"ION-ROUTE"===t.tagName&&t.component}).map(function(t){var e=E(t,"component");return{segments:g(E(t,"url")).segments,id:e.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:D(t)}})},O=function(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];j([],e,o)}return e},j=function(t,e,n){if(t=(0,r.fX)((0,r.fX)([],t,!0),[{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],!1),0!==n.children.length)for(var o=0,i=n.children;o<i.length;o++){var s=i[o];j(t,e,s)}else e.push(t)},N=function(){function t(t){(0,o.r)(this,t),this.ionRouteWillChange=(0,o.d)(this,"ionRouteWillChange",7),this.ionRouteDidChange=(0,o.d)(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}return t.prototype.componentWillLoad=function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e,n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,b(document.body)?Promise.resolve():new Promise(function(t){window.addEventListener("ionNavWillLoad",function(){return t()},{once:!0})})];case 1:return r.sent(),[4,this.runGuards(this.getSegments())];case 2:return!0===(t=r.sent())?[3,5]:"object"!==typeof t?[3,4]:(e=t.redirect,n=g(e),this.setSegments(n.segments,h,n.queryString),[4,this.writeNavStateRoot(n.segments,h)]);case 3:r.sent(),r.label=4;case 4:return[3,7];case 5:return[4,this.onRoutesChanged()];case 6:r.sent(),r.label=7;case 7:return[2]}})})},t.prototype.componentDidLoad=function(){window.addEventListener("ionRouteRedirectChanged",(0,i.q)(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",(0,i.q)(this.onRoutesChanged.bind(this),100))},t.prototype.onPopState=function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e,n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return t=this.historyDirection(),e=this.getSegments(),[4,this.runGuards(e)];case 1:if(!0!==(n=r.sent())){if("object"!==typeof n)return[2,!1];e=g(n.redirect).segments}return[2,this.writeNavStateRoot(e,t)]}})})},t.prototype.onBackButton=function(t){var e=this;t.detail.register(0,function(t){e.back(),t()})},t.prototype.canTransition=function(){return(0,r.sH)(this,void 0,void 0,function(){var t;return(0,r.YH)(this,function(e){switch(e.label){case 0:return[4,this.runGuards()];case 1:return!0!==(t=e.sent())?"object"===typeof t?[2,t.redirect]:[2,!1]:[2,!0]}})})},t.prototype.push=function(t){return(0,r.sH)(this,arguments,void 0,function(t,e,n){var o,i,s,a,u;return void 0===e&&(e="forward"),(0,r.YH)(this,function(r){switch(r.label){case 0:return t.startsWith(".")&&(i=null!==(o=this.previousPath)&&void 0!==o?o:"/",s=new URL(t,"https://host/".concat(i)),t=s.pathname+s.search),a=g(t),[4,this.runGuards(a.segments)];case 1:if(!0!==(u=r.sent())){if("object"!==typeof u)return[2,!1];a=g(u.redirect)}return this.setSegments(a.segments,e,a.queryString),[2,this.writeNavStateRoot(a.segments,e,n)]}})})},t.prototype.back=function(){return window.history.back(),Promise.resolve(this.waitPromise)},t.prototype.printDebug=function(){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(t){return function(t){console.group("[ion-core] ROUTES[".concat(t.length,"]"));for(var e=function(t){var e=[];t.forEach(function(t){return e.push.apply(e,t.segments)});var n=t.map(function(t){return t.id});console.debug("%c ".concat(f(e)),"font-weight: bold; padding-left: 20px","=>\t","(".concat(n.join(", "),")"))},n=0,r=t;n<r.length;n++)e(r[n]);console.groupEnd()}(L(this.el)),function(t){console.group("[ion-core] REDIRECTS[".concat(t.length,"]"));for(var e=0,n=t;e<n.length;e++){var r=n[e];r.to&&console.debug("FROM: ","$c ".concat(f(r.from)),"font-weight: bold"," TO: ","$c ".concat(f(r.to.segments)),"font-weight: bold")}console.groupEnd()}(P(this.el)),[2]})})},t.prototype.navChanged=function(t){return(0,r.sH)(this,void 0,void 0,function(){var e,n,o,i,s,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return this.busy?(console.warn("[ion-router] router is busy, navChanged was cancelled"),[2,!1]):[4,p(window.document.body)];case 1:return e=r.sent(),n=e.ids,o=e.outlet,i=L(this.el),s=function(t,e){for(var n=null,r=0,o=0,i=e;o<i.length;o++){var s=i[o],a=w(t,s);a>r&&(n=s,r=a)}return n?n.map(function(e,n){var r;return{id:e.id,segments:e.segments,params:C(e.params,null===(r=t[n])||void 0===r?void 0:r.params)}}):null}(n,i),s?(a=function(t){for(var e=[],n=0,r=t;n<r.length;n++)for(var o=r[n],i=0,s=o.segments;i<s.length;i++){var a=s[i];if(":"===a[0]){var u=o.params&&o.params[a.slice(1)];if(!u)return null;e.push(u)}else""!==a&&e.push(a)}return e}(s),a?(this.setSegments(a,t),[4,this.safeWriteNavState(o,s,h,a,null,
1n.length)]):(console.warn("[ion-router] router could not match path because some required param is missing"),[2,!1])):(console.warn("[ion-router] no matching URL for ",n.map(function(t){return t.id})),[2,!1]);case 2:return r.sent(),[2,!0]}})})},t.prototype.onRedirectChanged=function(){var t=this.getSegments();t&&y(t,P(this.el))&&this.writeNavStateRoot(t,h)},t.prototype.onRoutesChanged=function(){return this.writeNavStateRoot(this.getSegments(),h)},t.prototype.historyDirection=function(){var t,e=window;null===e.history.state&&(this.state++,e.history.replaceState(this.state,e.document.title,null===(t=e.document.location)||void 0===t?void 0:t.href));var n=e.history.state,r=this.lastState;return this.lastState=n,n>r||n>=r&&r>0?l:n<r?"back":h},t.prototype.writeNavStateRoot=function(t,e,n){return(0,r.sH)(this,void 0,void 0,function(){var o,i,s,a,u,c,h,l;return(0,r.YH)(this,function(r){return t?(o=P(this.el),i=y(t,o),s=null,i&&(a=i.to,u=a.segments,c=a.queryString,this.setSegments(u,e,c),s=i.from,t=u),h=L(this.el),(l=S(t,h))?[2,this.safeWriteNavState(document.body,l,e,t,s,0,n)]:(console.error("[ion-router] the path does not match any route"),[2,!1])):(console.error("[ion-router] URL is not part of the routing set"),[2,!1])})})},t.prototype.safeWriteNavState=function(t,e,n,o,i){return(0,r.sH)(this,arguments,void 0,function(t,e,n,o,i,s,a){var u,c,h;return void 0===s&&(s=0),(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,this.lock()];case 1:u=r.sent(),c=!1,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.writeNavState(t,e,n,o,i,s,a)];case 3:return c=r.sent(),[3,5];case 4:return h=r.sent(),console.error(h),[3,5];case 5:return u(),[2,c]}})})},t.prototype.lock=function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e;return(0,r.YH)(this,function(n){switch(n.label){case 0:return t=this.waitPromise,this.waitPromise=new Promise(function(t){return e=t}),void 0===t?[3,2]:[4,t];case 1:n.sent(),n.label=2;case 2:return[2,e]}})})},t.prototype.runGuards=function(){return(0,r.sH)(this,arguments,void 0,function(t,e){var n,o,i,s,a,u,c;return void 0===t&&(t=this.getSegments()),(0,r.YH)(this,function(r){switch(r.label){case 0:return void 0===e&&(e=g(this.previousPath).segments),t&&e?(n=L(this.el),o=S(e,n),(i=o&&o[o.length-1].beforeLeave)?[4,i()]:[3,2]):[2,!0];case 1:return a=r.sent(),[3,3];case 2:a=!0,r.label=3;case 3:return!1===(s=a)||"object"===typeof s?[2,s]:(u=S(t,n),[2,!(c=u&&u[u.length-1].beforeEnter)||c()])}})})},t.prototype.writeNavState=function(t,e,n,o,i){return(0,r.sH)(this,arguments,void 0,function(t,e,n,o,i,s,a){var u,c;return void 0===s&&(s=0),(0,r.YH)(this,function(r){switch(r.label){case 0:return this.busy?(console.warn("[ion-router] router is busy, transition was cancelled"),[2,!1]):(this.busy=!0,(u=this.routeChangeEvent(o,i))&&this.ionRouteWillChange.emit(u),[4,v(t,e,n,s,!1,a)]);case 1:return c=r.sent(),this.busy=!1,u&&this.ionRouteDidChange.emit(u),[2,c]}})})},t.prototype.setSegments=function(t,e,n){this.state++,d(window.history,this.root,this.useHash,t,e,this.state,n)},t.prototype.getSegments=function(){return function(t,e,n){var r=g(e).segments,o=n?t.hash.slice(1):t.pathname;return function(t,e){if(t.length>e.length)return null;if(t.length<=1&&""===t[0])return e;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return null;return e.length===t.length?[""]:e.slice(t.length)}(r,g(o).segments)}(window.location,this.root,this.useHash)},t.prototype.routeChangeEvent=function(t,e){var n=this.previousPath,r=f(t);return this.previousPath=r,r===n?null:{from:n,redirectedFrom:e?f(e):null,to:r}},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.f)(this)},enumerable:!1,configurable:!0}),t}(),Y=function(){function t(t){var e=this;(0,o.r)(this,t),this.onClick=function(t){(0,s.o)(e.href,t,e.routerDirection,e.routerAnimation)},this.color=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}return t.prototype.render=function(){var t,e=(0,a.b)(this),n={href:this.href,rel:this.rel,target:this.target};return(0,o.h)(o.H,{key:"e69892f4c6a6baf040a20c429afdec0e4db2dc0e",onClick:this.onClick,class:(0,s.c)(this.color,(t={},t[e]=!0,t["ion-activatable"]=!0,t))},(0,o.h)("a",Object.assign({key:"648cb22526f2933abe0865c86da6f30eac3ccb87"},n),(0,o.h)("slot",{key:"d6bc2e28b7c5cc228caedffebe653bde35934b67"})))},t}();Y.style=":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-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}"}}]); 2//# sourceMappingURL=8573-ed0d98896270d778368f.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.