PageSourceSearch

https://www.scienceofeating.com/assets/dist-DuLHo8tZ.js

js scienceofeating.com collected 2026-10-08 04:08:12 UTC 5,079 bytes, 10 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cc6a19d6-6635-59ca-81d3-756801ba68f1")}catch(e){}}();
3import{s as e,t}from"./jsx-runtime-D4ePz0Hl.js";import{t as n}from"./react-BXH-GOAS.js";import{t as r}from"./react-dom-D0cDl6Cl.js";import{t as i}from"./dist-DEFr8jR8.js";var a=e(n(),1),o=e(t(),1);function s(e,t=[]){let n=[];function r(t,r){let i=a.createContext(r);i.displayName=t+`Context`;let s=n.length;n=[...n,r];let c=t=>{let{scope:n,children:r,...c}=t,l=n?.[e]?.[s]||i,u=a.useMemo(()=>c,Object.values(c));return(0,o.jsx)(l.Provider,{value:u,children:r})};c.displayName=t+`Provider`;function l(n,o){let c=o?.[e]?.[s]||i,l=a.useContext(c);if(l)return l;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[c,l]}let i=()=>{let t=n.map(e=>a.createContext(e));return function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,c(i,...t)]}function c(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}r();var l=Symbol.for(`react.lazy`),u=a.use;function d(e){return typeof e==`object`&&!!e&&`then`in e}function f(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===l&&`_payload`in e&&d(e._payload)}function p(e){let t=m(e),n=a.forwardRef((e,n)=>{let{children:r,...i}=e;f(r)&&typeof u==`function`&&(r=u(r._payload));let s=a.Children.toArray(r),c=s.find(g);if(c){let e=c.props.children,r=s.map(t=>t===c?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t);return(0,o.jsx)(t,{...i,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,o.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function m(e){let t=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(f(n)&&typeof u==`function`&&(n=u(n._payload)),a.isValidElement(n)){let e=v(n),o=_(r,n.props);return n.type!==a.Fragment&&(o.ref=t?i(t,e):e),a.cloneElement(n,o)}return a.Children.count(n)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var h=Symbol(`radix.slottable`);function g(e){return a.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===h}function _(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function v(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var y=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=p(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,o.jsx)(s,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),b=`Progress`,x=100,[S,C]=s(b),[w,T]=S(b),E=a.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=k,...s}=e;(i||i===0)&&!M(i)&&console.error(P(`${i}`,`Progress`));let c=M(i)?i:x;r!==null&&!N(r,c)&&console.error(F(`${r}`,`Progress`));let l=N(r,c)?r:null,u=j(l)?a(l,c):void 0;return(0,o.jsx)(w,{scope:n,value:l,max:c,children:(0,o.jsx)(y.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":j(l)?l:void 0,"aria-valuetext":u,role:`progressbar`,"data-state":A(l,c),"data-value":l??void 0,"data-max":c,...s,ref:t})})});E.displayName=b;var D=`ProgressIndicator`,O=a.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=T(D,n);return(0,o.jsx)(y.div,{"data-state":A(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});O.displayName=D;function k(e,t){return`${Math.round(e/t*100)}%`}function A(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function j(e){return typeof e==`number`}function M(e){return j(e)&&!isNaN(e)&&e>0}function N(e,t){return j(e)&&!isNaN(e)&&e<=t&&e>=0}function P(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${x}\`.`}function F(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
4  - a positive number
5  - less than the value passed to \`max\` (or ${x} if no \`max\` prop is set)
6  - \`null\` or \`undefined\` if the progress is indeterminate.
7
8Defaulting to \`null\`.`}var I=E,L=O;export{I as n,L as t};
9//# sourceMappingURL=dist-DuLHo8tZ.js.map
10//# debugId=cc6a19d6-6635-59ca-81d3-756801ba68f1

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.