PageSourceSearch

https://conexion-es.app/assets/vendor-react-0odK9hmZ.js

js conexion-es.app collected 2026-10-07 17:44:53 UTC 5,073 bytes, 1 lines download raw bytes

1import{r as e,a as t,R as r}from"./vendor-trpc-BaV2YHJf.js";var n,s,o={exports:{}},a={};function c(){return s||(s=1,o.exports=function(){if(n)return a;n=1;var t=e(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=t.useState,o=t.useEffect,c=t.useLayoutEffect,i=t.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(s){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),a=n[0].inst,l=n[1];return c(function(){a.value=r,a.getSnapshot=t,u(a)&&l({inst:a})},[e,r,t]),o(function(){return u(a)&&l({inst:a}),e(function(){u(a)&&l({inst:a})})},[e]),i(r),r};return a.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,a}()),o.exports}var i=c();const u=r.useInsertionEffect,l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?t.useLayoutEffect:t.useEffect,f=u||l,h=e=>{const r=t.useRef([e,(...e)=>r[0](...e)]).current;return f(()=>{r[0]=e}),r[1]},d="pushState",p="replaceState",v=["popstate",d,p,"hashchange"],y=e=>{for(const t of v)addEventListener(t,e);return()=>{for(const t of v)removeEventListener(t,e)}},m=(e,t)=>i.useSyncExternalStore(y,e,t),E=()=>location.search,w=()=>location.pathname,x=({ssrPath:e}={})=>m(w,null!=e?()=>e:w),b=(e,{replace:t=!1,state:r=null}={})=>history[t?p:d](r,"",e),S=Symbol.for("wouter_v3");if("undefined"!=typeof history&&void 0===window[S]){for(const e of[d,p]){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,S,{value:!0})}const k=(e="")=>"/"===e?"":e,g=(e="",t)=>((e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/")(C(k(e)),C(t)),C=e=>{try{return decodeURI(e)}catch(t){return e}},O={hook:(e={})=>[x(e),b],searchHook:({ssrSearch:e}={})=>m(E,null!=e?()=>e:E),parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,s,o,a=[],c="",i=e.split("/");for(i[0]||i.shift();s=i.shift();)"*"===(r=s[0])?(a.push(r),c+="?"===s[1]?"(?:/(.*))?":"/(.*)"):":"===r?(n=s.indexOf("?",1),o=s.indexOf(".",1),a.push(s.substring(1,~n?n:~o?o:s.length)),c+=~n&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(c+=(~n?"?":"")+"\\"+s.substring(o))):c+="/"+s;return{keys:a,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,r)=>e(t,r)},R=t.createContext(O),j=()=>t.useContext(R),P={},L=t.createContext(P),H=e=>{const[t,r]=e.hook(e);return[g(e.base,t),h((t,n)=>e.aroundNav(r,((e,t)=>"~"===e[0]?e.slice(1):k(t)+e)(t,e.base),n))]},K=()=>H(j()),N=()=>{const e=j();return t=e.searchHook(e),C("?"===(r=t)[0]?r.slice(1):r);var t,r},V=(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]},A=e=>V(j().parser,e,K()[0]),D=({children:e,...r})=>{const n=j(),s=r.hook?O:n;let o=s;const[a,c=r.ssrSearch??""]=r.ssrPath?.split("?")??[];a&&(r.ssrSearch=c,r.ssrPath=a),r.hrefs=r.hrefs??r.hook?.hrefs,r.searchHook=r.searchHook??r.hook?.searchHook;let i=t.useRef({}),u=i.current,l=u;for(let t in s){const e="base"===t?s[t]+(r[t]??""):r[t]??s[t];u===l&&e!==l[t]&&(i.current=l={...l}),l[t]=e,e===s[t]&&e===o[t]||(o=l)}return t.createElement(R.Provider,{value:o,children:e})},I=({children:e,component:r},n)=>r?t.createElement(r,{params:n}):"function"==typeof e?e(n):e,$=({path:e,nest:r,match:n,...s})=>{const o=j(),[a]=H(o),[c,i,u]=n??V(o.parser,e,a,r),l=(e=>{let r=t.useRef(P);const n=r.current;return r.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([e,t])=>t!==n[e])?e:n})({...t.useContext(L),...i});if(!c)return null;const f=u?t.createElement(D,{base:u},I(s,l)):I(s,l);return t.createElement(L.Provider,{value:l,children:f})},F=t.forwardRef((e,r)=>{const n=j(),[s,o]=H(n),{to:a="",href:c=a,onClick:i,asChild:u,children:l,className:f,replace:d,state:p,transition:v,...y}=e,m=h(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(i?.(t),t.defaultPrevented||(t.preventDefault(),o(c,e)))}),E=n.hrefs("~"===c[0]?c.slice(1):n.base+c,n);return u&&t.isValidElement(l)?t.cloneElement(l,{onClick:m,href:E}):t.createElement("a",{...y,onClick:m,href:E,className:f?.call?f(s===c):f,children:l,ref:r})}),M=e=>Array.isArray(e)?e.flatMap(e=>M(e&&e.type===t.Fragment?e.props.children:e)):[e],T=({children:e,location:r})=>{const n=j(),[s]=H(n);for(const o of M(e)){let e=0;if(t.isValidElement(o)&&(e=V(n.parser,o.props.path,r||s,o.props.nest))[0])return t.cloneElement(o,{match:e})}return null},U=e=>{const{to:t,href:r=t}=e,n=j(),[,s]=H(n),o=h(()=>s(t||r,e)),{ssrContext:a}=n;return l(()=>{o()},[]),a&&(a.redirectTo=t),null};export{F as L,$ as R,T as S,A as a,N as b,U as c,c as r,i as s,K 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.