PageSourceSearch

https://www.codoon.com/codoon-next-web/_next/static/chunks/2o2ih1ty_0hvm.js

js codoon.com collected 2026-09-24 18:14:08 UTC 16,974 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var o={default:function(){return b},useLinkStatus:function(){return w}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let l=e.r(90809),a=e.r(43476),i=l._(e.r(71645)),s=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),m=e.r(91949),p=e.r(73668),_=e.r(9396);function b(t){var r;let o,n,l,[b,w]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),y=(0,i.useRef)(null),{href:v,as:x,children:j,prefetch:q=null,passHref:k,replace:N,shallow:B,scroll:P,onClick:E,onMouseEnter:L,onTouchStart:A,legacyBehavior:C=!1,onNavigate:S,transitionTypes:O,ref:T,unstable_dynamicOnHover:I,...G}=t;o=j,C&&("string"==typeof o||"number"==typeof o)&&(o=(0,a.jsx)("a",{children:o}));let R=i.default.useContext(u.AppRouterContext),$=!1!==q,M=!1===q?"none":!0===q?"full":"auto",U="none"!==M?"auto"===M?_.FetchStrategy.PPR:_.FetchStrategy.Full:_.FetchStrategy.PPR,F="string"==typeof(r=x||v)?r:(0,s.formatUrl)(r);if(C){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=i.default.Children.only(o)}let D=C?n&&"object"==typeof n&&n.ref:T,K,W=i.default.useCallback(e=>(null!==R&&(y.current=(0,m.mountLinkInstance)(e,F,R,U,$,w,K)),()=>{y.current&&((0,m.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,m.unmountPrefetchableInstance)(e)}),[$,F,R,U,w,K]),z={ref:(0,c.useMergedRef)(W,D),onClick(t){C||"function"!=typeof E||E(t),C&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!R||t.defaultPrevented||function(t,r,o,n,l,a,s,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);i.default.startTransition(()=>{f(r,n?"replace":"push",!1===l?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,o.current,s,u)})}}(t,F,y,N,P,S,O,M)},onMouseEnter(e){C||"function"!=typeof L||L(e),C&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&$&&(0,m.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){C||"function"!=typeof A||A(e),C&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&$&&(0,m.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(F)?z.href=F:C&&!k&&("a"!==n.type||"href"in n.props)||(z.href=(0,f.addBasePath)(F)),l=C?i.default.cloneElement(n,z):(0,a.jsx)("a",{...G,...z,children:o}),(0,a.jsx)(g.Provider,{value:b,children:l})}let g=(0,i.createContext)(m.IDLE_LINK_STATUS),w=()=>(0,i.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let o=e.r(71645);function n(e,t){let r=(0,o.useRef)(null),n=(0,o.useRef)(null);return(0,o.useCallback)(o=>{if(null===o){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=l(e,o)),t&&(n.current=l(t,o))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var o={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return g},PageNotFoundError:function(){return w},SP:function(){return p},ST:function(){return _},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...o)=>(r||(r=!0,t=e(...o)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let o=await e.getInitialProps(t);if(r&&f(r))return o;if(!o)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${o}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return o}let p="u">typeof performance,_=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class g extends Error{}class w extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let o=e.r(18967),n=e.r(52817);function l(e){if(!(0,o.isAbsoluteUrl)(e))return!0;try{let t=(0,o.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={assign:function(){return s},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return i}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});function l(e){let t={};for(let[r,o]of e.entries()){let e=t[r];void 0===e?t[r]=o:Array.isArray(e)?e.push(o):t[r]=[e,o]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,a(e));else t.set(r,a(o));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,o]of r.entries())e.append(t,o)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var o={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,o=e.protocol||"",n=e.pathname||"",i=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(l.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||a.test(o))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),n=n.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${o}${u}${n}${c}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18566,(e,t,r)=>{t.exports=e.r(76562)},11639,e=>{"use strict";var t=e.i(18566),r=e.i(71645);e.s(["ArticleScrollToTop",0,function(){let e=(0,t.usePathname)();return(0,r.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}])},64266,e=>{e.v({active:"site-header-module__9B7qqG__active",closeButton:"site-header-module__9B7qqG__closeButton",closeIcon:"site-header-module__9B7qqG__closeIcon",desktopItem:"site-header-module__9B7qqG__desktopItem",desktopLink:"site-header-module__9B7qqG__desktopLink",desktopNav:"site-header-module__9B7qqG__desktopNav",desktopNavWrap:"site-header-module__9B7qqG__desktopNavWrap",desktopTrigger:"site-header-module__9B7qqG__desktopTrigger",drawer:"site-header-module__9B7qqG__drawer",drawerHeader:"site-header-module__9B7qqG__drawerHeader",drawerOpen:"site-header-module__9B7qqG__drawerOpen",hasChildren:"site-header-module__9B7qqG__hasChildren",inner:"site-header-module__9B7qqG__inner",login:"site-header-module__9B7qqG__login",loginAct:"site-header-module__9B7qqG__loginAct",logo:"site-header-module__9B7qqG__logo",menuButton:"site-header-module__9B7qqG__menuButton",menuIcon:"site-header-module__9B7qqG__menuIcon",mobileAuth:"site-header-module__9B7qqG__mobileAuth",mobileAvatar:"site-header-module__9B7qqG__mobileAvatar",mobileBar:"site-header-module__9B7qqG__mobileBar",mobileItem:"site-header-module__9B7qqG__mobileItem",mobileLink:"site-header-module__9B7qqG__mobileLink",mobileLinkActive:"site-header-module__9B7qqG__mobileLinkActive",mobileList:"site-header-module__9B7qqG__mobileList",mobileLogin:"site-header-module__9B7qqG__mobileLogin",mobileNick:"site-header-module__9B7qqG__mobileNick",root:"site-header-module__9B7qqG__root",subItem:"site-header-module__9B7qqG__subItem",subLink:"site-header-module__9B7qqG__subLink",subMenu:"site-header-module__9B7qqG__subMenu"})},38603,e=>{"use strict";var t=e.i(43476);e.i(47167).default.env.API_BASE_URL;let r="https://fxd-cdn.codoon.com/static/homepage/mobile/user-def.png",o="https://www.codoon.com/h5/codoon-login/login.html",n="https://sso.codoon.com/logout",l=[{id:"index",label:"首页",href:"https://www.codoon.com/h5/codoon-welcome/index.html"},{id:"product",label:"咕咚APP",href:"https://www.codoon.com/h5/codoon-welcome/product.html"},{id:"teamcodoon",label:"企业咕咚",href:"https://www.codoon.com/h5/codoon-welcome/teamcodoon.html"},{id:"match",label:"咕咚赛事",href:"https://www.codoon.com/h5/codoon-welcome/match.html"},{id:"equip",label:"咕咚文章",href:"/blog",matchPath:"/blog"},{id:"more",label:"更多产品",children:[{label:"每日肩颈",href:"https://apodidae.codoon.com/daily_neckcare/",external:!0},{label:"吨吨喝水",href:"https://apodidae.codoon.com/dundunwater/",external:!0}]},{id:"oversea",label:"咕咚海外",children:[{label:"Runtopia App",href:"https://www.runtopia.net/",external:!0},{label:"Runtopia Lab",href:"https://www.runtopia.org/",external:!0}]},{id:"about",label:"关于我们",href:"https://www.codoon.com/h5/codoon-welcome/about.html"}],a=[{label:"首页",href:"https://www.codoon.com/h5/codoon-welcome/m_index.html"},{label:"咕咚APP",href:"https://www.codoon.com/h5/codoon-welcome/m_product.html"},{label:"企业咕咚",href:"https://www.codoon.com/h5/codoon-welcome/m_teamcodoon.html"},{label:"咕咚赛事",href:"https://www.codoon.com/h5/codoon-welcome/m_match.html"},{label:"咕咚装备",href:"https://www.codoon.com/h5/codoon-welcome/m_equip.html"},{label:"咕咚文章",href:"/blog"},{label:"关于我们",href:"https://www.codoon.com/h5/codoon-welcome/m_about.html"}];async function i(){try{let t=await fetch("https://www.codoon.com/activity/api/user_info",{credentials:"include",cache:"no-store"});if(401===t.status||!t.ok)return null;var e=await t.json();if(!e||"object"!=typeof e||"获取用户信息失败"===e.description)return null;let o=e.data?.nick;
1if("string"!=typeof o||!o.trim())return null;let n=e.data?.portrait;return{nick:o.trim(),portrait:"string"==typeof n&&n.trim()?n.trim():r}}catch{return null}}var s=e.i(22016),u=e.i(18566),c=e.i(71645),d=e.i(64266);function f({href:e,external:r,className:o,onNavigate:n,children:l}){return e.startsWith("/")?(0,t.jsx)(s.default,{href:e,className:o,onClick:n,children:l}):(0,t.jsx)("a",{href:e,className:o,onClick:n,...r?{target:"_blank",rel:"noopener noreferrer"}:{},children:l})}function h({item:e,pathname:r}){let o=!!e.matchPath&&(r===e.matchPath||r.startsWith(`${e.matchPath}/`)),n=!!e.children?.length,l=[d.default.desktopItem,o?d.default.active:"",n?d.default.hasChildren:""].filter(Boolean).join(" ");return(0,t.jsxs)("li",{className:l,children:[e.href?(0,t.jsx)(f,{href:e.href,className:d.default.desktopLink,children:e.label}):(0,t.jsx)("span",{className:d.default.desktopTrigger,"aria-haspopup":"true",children:e.label}),n?(0,t.jsx)("ul",{className:d.default.subMenu,children:e.children.map(e=>(0,t.jsx)("li",{className:d.default.subItem,children:(0,t.jsx)(f,{href:e.href,external:e.external,className:d.default.subLink,children:e.label})},e.href))}):null]})}function m({user:e}){return e?(0,t.jsxs)("div",{className:d.default.loginAct,children:[(0,t.jsx)("img",{src:e.portrait,alt:"",width:30,height:30}),(0,t.jsx)("span",{children:e.nick}),(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:"https://www.codoon.com/h5/codoon_user_admin/index.html#/home",target:"_blank",rel:"noopener noreferrer",children:"我的咕咚"})}),(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:n,children:"退出咕咚"})})]})]}):(0,t.jsx)("div",{className:d.default.login,children:(0,t.jsx)("a",{href:o,children:"登录"})})}e.s(["SiteHeader",0,function(){let e=(0,u.usePathname)()||"/blog",[s,p]=(0,c.useState)(!1),[_,b]=(0,c.useState)(null),g=(0,c.useId)();function w(){p(!1)}return(0,c.useEffect)(()=>{let e=!1;return i().then(t=>{e||b(t)}),()=>{e=!0}},[]),(0,c.useEffect)(()=>{if(!s)return;let e=document.body.style.overflow;function t(e){"Escape"===e.key&&p(!1)}return document.body.style.overflow="hidden",window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[s]),(0,t.jsxs)("header",{className:d.default.root,children:[(0,t.jsxs)("div",{className:d.default.inner,children:[(0,t.jsx)("a",{href:"https://www.codoon.com/",className:d.default.logo,"aria-label":"咕咚官网",children:"咕咚"}),(0,t.jsxs)("div",{className:d.default.desktopNavWrap,children:[(0,t.jsx)("nav",{"aria-label":"官网导航",children:(0,t.jsx)("ul",{className:d.default.desktopNav,children:l.map(r=>(0,t.jsx)(h,{item:r,pathname:e},r.id))})}),(0,t.jsx)(m,{user:_})]}),(0,t.jsx)("div",{className:d.default.mobileBar,children:(0,t.jsx)("button",{type:"button",className:d.default.menuButton,"aria-label":"打开导航菜单","aria-expanded":s,"aria-controls":g,onClick:()=>p(!0),children:(0,t.jsxs)("span",{className:d.default.menuIcon,"aria-hidden":"true",children:[(0,t.jsx)("span",{}),(0,t.jsx)("span",{}),(0,t.jsx)("span",{})]})})})]}),(0,t.jsxs)("div",{id:g,className:`${d.default.drawer} ${s?d.default.drawerOpen:""}`,hidden:!s,role:"dialog","aria-modal":"true","aria-label":"网站导航",children:[(0,t.jsx)("div",{className:d.default.drawerHeader,children:(0,t.jsx)("button",{type:"button",className:d.default.closeButton,"aria-label":"关闭导航菜单",onClick:()=>p(!1),children:(0,t.jsx)("span",{className:d.default.closeIcon,"aria-hidden":"true"})})}),(0,t.jsxs)("div",{className:d.default.mobileAuth,children:[(0,t.jsx)("img",{className:d.default.mobileAvatar,src:_?.portrait||r,alt:"",width:72,height:72}),_?(0,t.jsx)("p",{className:d.default.mobileNick,children:_.nick}):null,_?(0,t.jsx)("a",{className:d.default.mobileLogin,href:n,onClick:w,children:"退出登录"}):(0,t.jsx)("a",{className:d.default.mobileLogin,href:o,onClick:w,children:"登录账号"})]}),(0,t.jsx)("ul",{className:d.default.mobileList,children:a.map(r=>{var o;return(0,t.jsx)("li",{className:d.default.mobileItem,children:(0,t.jsx)(f,{href:r.href,external:r.external,onNavigate:w,className:`${d.default.mobileLink} ${(o=r.href,"/blog"===o&&("/blog"===e||e.startsWith("/blog/")))?d.default.mobileLinkActive:""}`,children:r.label})},r.href)})})]})]})}],38603)}]);

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.