PageSourceSearch

https://www.cbomeco.com/38970.e85fccdbb22298a6.js

js cbomeco.com collected 2026-10-02 01:30:16 UTC 13,017 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[38970],{38970:(dt,k,g)=>{g.r(k),g.d(k,{ion_route:()=>W,ion_route_redirect:()=>B,ion_router:()=>lt,ion_router_link:()=>F});var f=g(10467),l=g(48225),v=g(3418),C=g(18620),N=g(94576),M=g(61902);const W=class{constructor(t){(0,l.r)(this,t),this.ionRouteDataChanged=(0,l.c)(this,"ionRouteDataChanged",7),this.url=""}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,e){if(t===e)return;const n=t?Object.keys(t):[],o=e?Object.keys(e):[];if(n.length===o.length){for(const r of n)if(t[r]!==e[r])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:[{onUpdate:0}],component:[{onUpdate:0}],componentProps:[{onComponentProps:0}]}}},B=class{constructor(t){(0,l.r)(this,t),this.ionRouteRedirectChanged=(0,l.c)(this,"ionRouteRedirectChanged",7)}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:[{propDidChange:0}],to:[{propDidChange:0}]}}},m="root",D="forward",p=t=>"/"+t.filter(n=>n.length>0).join("/"),d=t=>{let n,o,e=[""];if(null!=t){const r=t.indexOf("#");r>-1&&(o=t.substring(r+1),t=t.substring(0,r));const s=t.indexOf("?");s>-1&&(n=t.substring(s+1),t=t.substring(0,s)),e=t.split("/").map(i=>i.trim()).filter(i=>i.length>0),0===e.length&&(e=[""])}return{segments:e,queryString:n,fragment:o}},L=function(){var t=(0,f.A)(function*(e,n,o,r,s=!1,i){try{const a=E(e);if(r>=n.length||!a)return s;yield new Promise(h=>(0,v.c)(a,h));const c=n[r],u=yield a.setRouteId(c.id,c.params,o,i);return u.changed&&(o=m,s=!0),s=yield L(u.element,n,o,r+1,s,i),u.markVisible&&(yield u.markVisible()),s}catch(a){return(0,l.j)("[ion-router] - Exception in writeNavState:",a),!1}});return function(n,o,r,s){return t.apply(this,arguments)}}(),Q=function(){var t=(0,f.A)(function*(e){const n=[];let o,r=e;for(;o=E(r);){const s=yield o.getRouteId();if(!s)break;r=s.element,s.element=void 0,n.push(s)}return{ids:n,outlet:o}});return function(n){return t.apply(this,arguments)}}(),O=()=>new Promise(t=>(0,v.r)(()=>t())),V=t=>{const e=t.closest(".ion-page");return null===e?null===document.querySelector(".ion-page"):null===e.closest(".ion-page-hidden, .tab-hidden")},tt=function(){var t=(0,f.A)(function*(e,n){const r=typeof CSS<"u"&&"function"==typeof CSS.escape?CSS.escape(e):null;for(let s=0;s<30;s++){if(!n())return null;let i=[];if(null!==r)try{i=[...document.querySelectorAll(`#${r}, a[name="${r}"]`)]}catch{i=[...document.querySelectorAll(`#${r}`)]}else{const a=document.getElementById(e);null!==a&&(i=[a])}for(let a=i.length-1;a>=0;a--)if(V(i[a]))return i[a];yield O()}return null});return function(n,o){return t.apply(this,arguments)}}(),et=function(){var t=(0,f.A)(function*(e,n=()=>!0){if(null==e||""===e)return!1;let o;try{o=decodeURIComponent(e)}catch{o=e}const r=yield tt(o,n);if(!r||!n())return!1;try{const s=(0,C.a)(r);if(s&&(0,C.i)(s)){const i=s,a=yield(0,C.g)(i);if(yield O(),!n())return!1;const c=r.getBoundingClientRect(),u=a.getBoundingClientRect(),h=c.top-u.top+a.scrollTop;yield i.scrollToPoint(a.scrollLeft,h,300)}else r.scrollIntoView({behavior:"smooth"});return!0}catch(s){return(0,l.j)("[ion-router] - Exception in scrollToFragment:",s),!1}});return function(n){return t.apply(this,arguments)}}(),A=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",E=t=>{if(t)return t.matches(A)?t:t.querySelector(A)??void 0},x=(t,e)=>e.find(n=>((t,e)=>{const{from:n,to:o}=e;if(void 0===o||n.length>t.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if("*"===s)return!0;if(s!==t[r])return!1}return n.length===t.length})(t,n)),ot=(t,e)=>{const n=Math.min(t.length,e.length);let o=0;for(let r=0;r<n;r++){const s=t[r],i=e[r];if(s.id.toLowerCase()!==i.id)break;if(s.params){const a=Object.keys(s.params);if(a.length===i.segments.length){const c=a.map(u=>`:${u}`);for(let u=0;u<c.length&&c[u].toLowerCase()===i.segments[u];u++)o++}}o++}return o},st=(t,e)=>{const n=new ct(t);let r,o=!1;for(let i=0;i<e.length;i++){const a=e[i].segments;if(""===a[0])o=!0;else{for(const c of a){const u=n.next();if(":"===c[0]){if(""===u)return null;r=r||[],(r[i]||(r[i]={}))[c.slice(1)]=u}else if(u!==c)return null}o=!1}}return o&&o!==(""===n.next())?null:r?e.map((i,a)=>({id:i.id,segments:i.segments,params:I(i.params,r[a]),beforeEnter:i.beforeEnter,beforeLeave:i.beforeLeave})):e},I=(t,e)=>t||e?Object.assign(Object.assign({},t),e):void 0,w=(t,e)=>{let n=null,o=0;for(const r of e){const s=st(t,r);
1if(null!==s){const i=at(s);i>o&&(o=i,n=s)}}return n},at=t=>{let e=1,n=1;for(const o of t)for(const r of o.segments)":"===r[0]?e+=Math.pow(1,n):""!==r&&(e+=Math.pow(2,n)),n++;return e};class ct{constructor(e){this.segments=e.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const R=(t,e)=>e in t?t[e]:t.hasAttribute(e)?t.getAttribute(e):null,P=t=>Array.from(t.children).filter(e=>"ION-ROUTE-REDIRECT"===e.tagName).map(e=>{const n=R(e,"to");return{from:d(R(e,"from")).segments,to:null==n?void 0:d(n)}}),b=t=>ut(j(t)),j=t=>Array.from(t.children).filter(e=>"ION-ROUTE"===e.tagName&&e.component).map(e=>{const n=R(e,"component");return{segments:d(R(e,"url")).segments,id:n.toLowerCase(),params:e.componentProps,beforeLeave:e.beforeLeave,beforeEnter:e.beforeEnter,children:j(e)}}),ut=t=>{const e=[];for(const n of t)U([],e,n);return e},U=(t,e,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const o of n.children)U(t,e,o);else e.push(t)},lt=class{constructor(t){(0,l.r)(this,t),this.ionRouteWillChange=(0,l.c)(this,"ionRouteWillChange",7),this.ionRouteDidChange=(0,l.c)(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.fragmentScrollToken=0,this.root="/",this.useHash=!0}componentWillLoad(){var t=this;return(0,f.A)(function*(){yield E(document.body)?Promise.resolve():new Promise(t=>{window.addEventListener("ionNavWillLoad",()=>t(),{once:!0})});const e=yield t.runGuards(t.getSegments());if(!0===e)(yield t.onRoutesChanged())&&t.maybeScrollToFragment();else if("object"==typeof e){const{redirect:o}=e,r=d(o);t.setSegments(r.segments,m,r.queryString,r.fragment),(yield t.writeNavStateRoot(r.segments,m))&&t.maybeScrollToFragment()}})()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",(0,v.p)(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",(0,v.p)(this.onRoutesChanged.bind(this),100))}onPopState(){var t=this;return(0,f.A)(function*(){const e=t.historyDirection();let n=t.getSegments();const o=yield t.runGuards(n);if(!0!==o){if("object"!=typeof o)return!1;n=d(o.redirect).segments}const r=yield t.writeNavStateRoot(n,e);return r&&t.maybeScrollToFragment(),r})()}onBackButton(t){t.detail.register(0,e=>{this.back(),e()})}canTransition(){var t=this;return(0,f.A)(function*(){const e=yield t.runGuards();return!0===e||"object"==typeof e&&e.redirect})()}push(t){var e=this;return(0,f.A)(function*(n,o="forward",r){var s;if(n.startsWith(".")){const u=null!==(s=e.previousPath)&&void 0!==s?s:"/",h=new URL(n,`https://host/${u}`);n=h.pathname+h.search+h.hash}let i=d(n);const a=yield e.runGuards(i.segments);if(!0!==a){if("object"!=typeof a)return!1;i=d(a.redirect)}e.setSegments(i.segments,o,i.queryString,i.fragment);const c=yield e.writeNavStateRoot(i.segments,o,r);return c&&e.maybeScrollToFragment(),c}).apply(this,arguments)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}printDebug(){var t=this;return(0,f.A)(function*(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const e of t){const n=[];e.forEach(r=>n.push(...r.segments));const o=e.map(r=>r.id);console.debug(`%c ${p(n)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${o.join(", ")})`)}console.groupEnd()})(b(t.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const e of t)e.to&&console.debug("FROM: ",`$c ${p(e.from)}`,"font-weight: bold"," TO: ",`$c ${p(e.to.segments)}`,"font-weight: bold");console.groupEnd()})(P(t.el))})()}navChanged(t){var e=this;return(0,f.A)(function*(){if(e.busy)return(0,l.f)("[ion-router] - Router is busy, navChanged was cancelled."),!1;const{ids:n,outlet:o}=yield Q(window.document.body),s=((t,e)=>{let n=null,o=0;for(const r of e){const s=ot(t,r);s>o&&(n=r,o=s)}return n?n.map((r,s)=>{var i;return{id:r.id,segments:r.segments,params:I(r.params,null===(i=t[s])||void 0===i?void 0:i.params)}}):null})(n,b(e.el));if(!s)return(0,l.f)("[ion-router] - No matching URL for",n.map(u=>u.id)),!1;const i=(t=>{const e=[];for(const n of t)for(const o of n.segments)if(":"===o[0]){const r=n.params&&n.params[o.slice(1)];if(!r)return null;e.push(r)}else""!==o&&e.push(o);return e})(s);if(!i)return(0,l.f)("[ion-router] - Router could not match path because some required param is missing."),!1;const c=p(i)===e.previousPath?e.getFragment():void 0;return e.setSegments(i,t,void 0,c),yield e.safeWriteNavState(o,s,m,i,null,n.length),!0})()}onRedirectChanged(){const t=this.getSegments();t&&x(t,P(this.el))&&this.writeNavStateRoot(t,m)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),m)}historyDirection(){var t;const 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));const n=e.history.state,o=this.lastState;return this.lastState=n,n>o||n>=o&&o>0?D:n<o?"back":m}writeNavStateRoot(t,e,n){var o=this;return(0,f.A)(function*(){if(!t)return(0,l.j)("[ion-router] - URL is not part of the routing set."),!1;const r=P(o.el),s=x(t,r);let i=null;if(s){const{segments:u,queryString:h,fragment:_}=s.to;o.setSegments(u,e,h,_),i=s.from,t=u}const a=b(o.el),c=w(t,a);return c?o.safeWriteNavState(document.body,c,e,t,i,0,n):((0,l.j)("[ion-router] - The path does not match any route."),!1)})()}safeWriteNavState(t,e,n,o,r){var s=this;return(0,f.A)(function*(i,a,c,u,h,_=0,T){const y=yield s.lock();let S=!1;try{S=yield s.writeNavState(i,a,c,u,h,_,T)}catch(ht){(0,l.j)("[ion-router] - Exception in safeWriteNavState:",ht)}return y(),S}).apply(this,arguments)}lock(){var t=this;return(0,f.A)(function*(){const e=t.waitPromise;let n;return t.waitPromise=new Promise(o=>n=o),void 0!==e&&(yield e),n})()}runGuards(){var t=this;return(0,f.A)(function*(e=t.getSegments(),n){if(void 0===n&&(n=d(t.previousPath).segments),!e||!n)return!0;const o=b(t.el),r=w(n,o),s=r&&r[r.length-1].beforeLeave,i=!s||(yield s());if(!1===i||"object"==typeof i)return i;const a=w(e,o),c=a&&a[a.length-1].beforeEnter;return!c||c()}).apply(this,arguments)}writeNavState(t,e,n,o,r){var s=this;return(0,f.A)(function*(i,a,c,u,h,_=0,T){if(s.busy)return(0,l.f)("[ion-router] - Router is busy, transition was cancelled."),!1;s.busy=!0;const y=s.routeChangeEvent(u,h);y&&s.ionRouteWillChange.emit(y);const S=yield L(i,a,c,_,!1,T);return s.busy=!1,y&&s.ionRouteDidChange.emit(y),S}).apply(this,arguments)}setSegments(t,e,n,o){this.state++,this.fragmentScrollToken++,((t,e,n,o,r,s,i,a)=>{const c=((t,e,n,o)=>{let r=p(t);return e&&(r="#"+r),void 0!==n&&(r+="?"+n),void 0!==o&&(r+="#"+o),r})([...d(e).segments,...o],n,i,a);r===D?t.pushState(s,"",c):t.replaceState(s,"",c)})(window.history,this.root,this.useHash,t,e,this.state,n,o)}getSegments(){return((t,e,n)=>{const o=d(this.root).segments,r=n?t.hash.slice(1):t.pathname;return((t,e)=>{if(t.length>e.length)return null;if(t.length<=1&&""===t[0])return e;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return null;return e.length===t.length?[""]:e.slice(t.length)})(o,d(r).segments)})(window.location,0,this.useHash)}getFragment(){return(this.useHash?d(window.location.hash.slice(1)).fragment:window.location.hash.slice(1))||void 0}maybeScrollToFragment(){const t=this.getFragment();if(!t)return;const e=this.fragmentScrollToken;et(t,()=>
1e===this.fragmentScrollToken).catch(()=>{})}routeChangeEvent(t,e){const n=this.previousPath,o=p(t);return this.previousPath=o,o===n?null:{from:n,redirectedFrom:e?p(e):null,to:o}}get el(){return(0,l.g)(this)}},F=class{constructor(t){(0,l.r)(this,t),this.routerDirection="forward",this.onClick=e=>{(0,N.o)(this.href,e,this.routerDirection,this.routerAnimation)}}render(){const t=(0,M.b)(this),e={href:this.href,rel:this.rel,target:this.target};return(0,l.h)(l.d,{key:"8372835161d507c7b821b7536c55f912eb6ce704",onClick:this.onClick,class:(0,N.c)(this.color,{[t]:!0,"ion-activatable":!0})},(0,l.h)("a",Object.assign({key:"315966e14a17760f3f64197e8315200039787897"},e),(0,l.h)("slot",{key:"95fc1697b884225e85e647dddcaa8f4af8b9a979"})))}};F.style=":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);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}"}}]);

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.