PageSourceSearch

https://myvisa.com.au/assets/router-CaIXyiWT.js

js myvisa.com.au collected 2026-10-08 05:40:30 UTC 3,951 bytes, 1 lines download raw bytes

1import{s as e,p as t}from"./vendor-misc-BoPU2XKZ.js";import{r,R as n}from"./react-core-ptKlr-Xb.js";const s=n.useInsertionEffect,o=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?r.useLayoutEffect:r.useEffect,a=s||o,c=e=>{const t=r.useRef([e,(...e)=>t[0](...e)]).current;return a(()=>{t[0]=e}),t[1]},i="pushState",l="replaceState",u=["popstate",i,l,"hashchange"],f=e=>{for(const t of u)addEventListener(t,e);return()=>{for(const t of u)removeEventListener(t,e)}},h=(t,r)=>e.useSyncExternalStore(f,t,r),d=()=>location.search,p=()=>location.pathname,m=({ssrPath:e}={})=>h(p,e?()=>e:p),E=(e,{replace:t=!1,state:r=null}={})=>history[t?l:i](r,"",e),w=Symbol.for("wouter_v3");if("undefined"!=typeof history&&void 0===window[w]){for(const e of[i,l]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,w,{value:!0})}const y=(e="")=>"/"===e?"":e,v=(e="",t)=>((e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/")(_(y(e)),_(t)),_=e=>{try{return decodeURI(e)}catch(t){return e}},R={hook:(e={})=>[m(e),E],searchHook:({ssrSearch:e=""}={})=>h(d,()=>e),parser:t,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},b=r.createContext(R),O=()=>r.useContext(b),k={},S=r.createContext(k),C=()=>r.useContext(S),x=e=>{const[t,r]=e.hook(e);return[v(e.base,t),c((t,n)=>r(((e,t)=>"~"===e[0]?e.slice(1):y(t)+e)(t,e.base),n))]},g=()=>x(O()),T=()=>{const e=O();return t=e.searchHook(e),_("?"===(r=t)[0]?r.slice(1):r);var t,r},U=(e,t,r,n)=>{const{pattern:s,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),a=s.exec(r)||[],[c,...i]=a;return void 0!==c?[!0,(()=>{const e=!1!==o?Object.fromEntries(o.map((e,t)=>[e,i[t]])):a.groups;let t={...i};return e&&Object.assign(t,e),t})(),...n?[c]:[]]:[!1,null]},j=e=>U(O().parser,e,g()[0]),P=({children:e,...t})=>{const n=O(),s=t.hook?R:n;let o=s;const[a,c]=t.ssrPath?.split("?")??[];c&&(t.ssrSearch=c,t.ssrPath=a),t.hrefs=t.hrefs??t.hook?.hrefs;let i=r.useRef({}),l=i.current,u=l;for(let r in s){const e="base"===r?s[r]+(t[r]||""):t[r]||s[r];l===u&&e!==u[r]&&(i.current=u={...u}),u[r]=e,e===s[r]&&e===o[r]||(o=u)}return r.createElement(b.Provider,{value:o,children:e})},L=({children:e,component:t},n)=>t?r.createElement(t,{params:n}):"function"==typeof e?e(n):e,K=({path:e,nest:t,match:n,...s})=>{const o=O(),[a]=x(o),[c,i,l]=n??U(o.parser,e,a,t),u=(e=>{let t=r.useRef(k);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([e,t])=>t!==n[e])?e:n})({...C(),...i});if(!c)return null;const f=l?r.createElement(P,{base:l},L(s,u)):L(s,u);return r.createElement(S.Provider,{value:u,children:f})},W=r.forwardRef((e,t)=>{const n=O(),[s,o]=x(n),{to:a="",href:i=a,onClick:l,asChild:u,children:f,className:h,replace:d,state:p,...m}=e,E=c(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(l?.(t),t.defaultPrevented||(t.preventDefault(),o(i,e)))}),w=n.hrefs("~"===i[0]?i.slice(1):n.base+i,n);return u&&r.isValidElement(f)?r.cloneElement(f,{onClick:E,href:w}):r.createElement("a",{...m,onClick:E,href:w,className:h?.call?h(s===i):h,children:f,ref:t})}),V=e=>Array.isArray(e)?e.flatMap(e=>V(e&&e.type===r.Fragment?e.props.children:e)):[e],A=({children:e,location:t})=>{const n=O(),[s]=x(n);if("undefined"!=typeof window){window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]);V(e).forEach(e=>{if(r.isValidElement(e)&&e.props.path){const t=e.props.path;window.__WOUTER_ROUTES__.includes(t)||window.__WOUTER_ROUTES__.push(t)}})}for(const o of V(e)){let e=0;if(r.isValidElement(o)&&(e=U(n.parser,o.props.path,t||s,o.props.nest))[0])return r.cloneElement(o,{match:e})}return null},H=e=>{const{to:t,href:r=t}=e,n=O(),[,s]=x(n),a=c(()=>s(t||r,e)),{ssrContext:i}=n;return o(()=>{a()},[]),i&&(i.redirectTo=t),null};export{W as L,K as R,A as S,j as a,T as b,C as c,H as d,g as u};

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.