PageSourceSearch

https://canirunit.net/assets/navigation-mgmOHuFn.js

js canirunit.net collected 2026-10-07 10:48:16 UTC 4,421 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,r as n}from"./framework-DJH1pfSr.js";import{d as r,h as i,m as a,p as o}from"./index-Dvwl1Db7.js";import{a as s,c,d as l,f as u,i as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,u as y}from"./BaseLink-pWGZJL-9.js";import{i as b}from"./react-DlbkFqaW.js";var x=e(t(),1);function S(e){return{...e,localePrefix:(n=e.localePrefix,typeof n==`object`?n:{mode:n||`always`}),localeCookie:(t=e.localeCookie,!!(t??1)&&{name:`NEXT_LOCALE`,sameSite:`lax`,...typeof t==`object`&&t}),localeDetection:e.localeDetection??!0,alternateLinks:e.alternateLinks??!0};var t,n}var C=x.use,w=n();function T(e,t){let n=S(t||{}),i=n.pathnames;function a({href:t,locale:r,...a},o){let s,c;typeof t==`object`?(s=t.pathname,c=t.params):s=t;let u=y(t),d=e(),f=p(d)?C(d):d,h=u?l({locale:r||f,href:i==null?s:{pathname:s,params:c},forcePrefix:r!=null||void 0}):s;return(0,w.jsx)(m,{ref:o,href:typeof t==`object`?{...t,pathname:h}:h,locale:r,localeCookie:n.localeCookie,...a})}let c=(0,x.forwardRef)(a);function l(e){let{forcePrefix:t,href:r,locale:a}=e,o;return i==null?typeof r==`object`?(o=r.pathname,r.query&&(o+=v(r.query))):o=r:o=s({locale:a,...d(r),pathnames:n.pathnames}),h(o,a,n,t)}function u(e){return function(t,...n){return e(l(t),...n)}}return{config:n,Link:c,redirect:u(o),permanentRedirect:u(r),getPathname:l}}function E(e){let t=a(),n=b();return(0,x.useMemo)((()=>{if(!t)return t;let r=t,i=l(n,e.localePrefix);if(u(i,t))r=g(t,i);else if(e.localePrefix.mode!==`never`&&e.localePrefix.prefixes){let e=f(n);u(e,t)&&(r=g(t,e))}return r}),[e.localePrefix,n,t])}function D(e){let{Link:t,config:n,getPathname:r,...o}=T(b,e);return{...o,Link:t,usePathname:function(){let e=E(n),t=b();return(0,x.useMemo)((()=>e&&n.pathnames?c(t,e,n.pathnames):e),[t,e])},useRouter:function(){let e=i(),t=b(),o=a();return(0,x.useMemo)((()=>{function i(e){return function(i,a){let{locale:s,...c}=a||{},l=[r({href:i,locale:s||t,forcePrefix:s!=null||void 0})];Object.keys(c).length>0&&l.push(c),_(n.localeCookie,o,t,s),e(...l)}}return{...e,push:i(e.push),replace:i(e.replace),prefetch:i(e.prefetch)}}),[t,o,e])},getPathname:r}}function O(e){return e}var k={app_url:`https://canirunit.net`,app_name:`Can I Run It`,app_description:`No-download PC game compatibility checker with FPS estimates and bottleneck notes.`,app_logo:`/logo.png`,database_url:{}.DATABASE_URL??``,database_auth_token:{}.DATABASE_AUTH_TOKEN??``,database_provider:{}.DATABASE_PROVIDER??`sqlite`,db_schema:{}.DB_SCHEMA??`public`,db_singleton_enabled:{}.DB_SINGLETON_ENABLED??`false`,db_max_connections:{}.DB_MAX_CONNECTIONS??`1`,auth_url:{}.AUTH_URL??`https://canirunit.net`??``,auth_secret:{}.AUTH_SECRET??``,stripe_secret_key:{}.STRIPE_SECRET_KEY??``,stripe_publishable_key:{}.STRIPE_PUBLISHABLE_KEY??``,stripe_signing_secret:{}.STRIPE_SIGNING_SECRET??``,paypal_client_id:{}.PAYPAL_CLIENT_ID??``,paypal_client_secret:{}.PAYPAL_CLIENT_SECRET??``,paypal_webhook_id:{}.PAYPAL_WEBHOOK_ID??``,paypal_environment:{}.PAYPAL_ENVIRONMENT??`production`,alipay_app_id:{}.ALIPAY_APP_ID??``,alipay_private_key:{}.ALIPAY_PRIVATE_KEY??``,alipay_public_key:{}.ALIPAY_PUBLIC_KEY??``,alipay_notify_url:{}.ALIPAY_NOTIFY_URL??``,wechat_app_id:{}.WECHAT_APP_ID??``,wechat_mch_id:{}.WECHAT_MCH_ID??``,wechat_api_v3_key:{}.WECHAT_API_V3_KEY??``,wechat_private_key:{}.WECHAT_PRIVATE_KEY??``,wechat_serial_no:{}.WECHAT_SERIAL_NO??``,wechat_notify_url:{}.WECHAT_NOTIFY_URL??``,wechat_platform_cert:{}.WECHAT_PLATFORM_CERT??``,resend_api_key:{}.RESEND_API_KEY??``,resend_email_from:{}.RESEND_EMAIL_FROM??``,storage_endpoint:{}.STORAGE_ENDPOINT??``,storage_region:{}.STORAGE_REGION??`auto`,storage_access_key:{}.STORAGE_ACCESS_KEY??``,storage_secret_key:{}.STORAGE_SECRET_KEY??``,storage_bucket:{}.STORAGE_BUCKET??``,storage_public_domain:{}.STORAGE_PUBLIC_DOMAIN??``,inline_image_max_kb:{}.INLINE_IMAGE_MAX_KB??`2048`,google_analytics_id:{}.GOOGLE_ANALYTICS_ID??{}.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID??``,plausible_domain:{}.PLAUSIBLE_DOMAIN??{}.NEXT_PUBLIC_PLAUSIBLE_DOMAIN??``,plausible_src:{}.PLAUSIBLE_SRC??{}.NEXT_PUBLIC_PLAUSIBLE_SRC??``,replicate_api_token:{}.REPLICATE_API_TOKEN??``,locale:`en`},A={en:`English`,zh:`中文`},j=[`en`,`zh`],M=k.locale||`en`,{Link:N,redirect:P,usePathname:F,useRouter:I,getPathname:L}=D(O({locales:j,defaultLocale:M,localePrefix:`as-needed`,localeDetection:!1}));
1export{A as a,M as i,F as n,j as o,I as r,k as s,N as t};

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.