PageSourceSearch

https://www.hbs.edu/_next/static/chunks/3681-7c3f1a57d9dc170f.js

js hbs.edu collected 2026-10-01 07:59:06 UTC 10,677 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3681],{27133:(e,t,r)=>{e.exports=r(85596)},33681:(e,t,r)=>{let n;r.d(t,{Ay:()=>X});var i=r(55729),u=r(27133),a=Object.prototype.hasOwnProperty;let o=new WeakMap,l=()=>{},c=l(),s=Object,f=e=>e===c,d=(e,t)=>({...e,...t}),g={},p={},y="undefined",h=typeof window!=y,v=typeof document!=y,w=h&&"Deno"in window,b=(e,t)=>{let r=o.get(e);return[()=>!f(t)&&e.get(t)||g,n=>{if(!f(t)){let i=e.get(t);t in p||(p[t]=i),r[5](t,d(i,n),i||g)}},r[6],()=>!f(t)&&t in p?p[t]:!f(t)&&e.get(t)||g]},m=!0,[O,S]=h&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],E={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),O("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{m=!0,e()},r=()=>{m=!1};return O("online",t),O("offline",r),()=>{S("online",t),S("offline",r)}}},_=!i.useId,R=!h||w,k=R?i.useEffect:i.useLayoutEffect,L="undefined"!=typeof navigator&&navigator.connection,T=!R&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),V=new WeakMap,j=(e,t)=>e===`[object ${t}]`,C=0,D=e=>{let t,r,n=typeof e,i=s.prototype.toString.call(e),u=j(i,"Date"),a=j(i,"RegExp"),o=j(i,"Object");if(s(e)!==e||u||a)t=u?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=V.get(e))return t;if(t=++C+"~",V.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=D(e[r])+",";V.set(e,t)}if(o){t="#";let n=s.keys(e).sort();for(;!f(r=n.pop());)f(e[r])||(t+=r+":"+D(e[r])+",");V.set(e,t)}}return t},x=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?D(e):"",t]},P=0,A=()=>++P;async function F(...e){let[t,r,n,i]=e,u=d({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=u.populateCache,l=u.rollbackOnError,s=u.optimisticData,g=u.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(p))}return p(r);async function p(r){let i,[d]=x(r);if(!d)return;let[p,y]=b(t,d),[h,v,w,m]=o.get(t),O=()=>{let e=h[d];return("function"==typeof u.revalidate?u.revalidate(p().data,r):!1!==u.revalidate)&&(delete w[d],delete m[d],e&&e[0])?e[0](2).then(()=>p().data):p().data};if(e.length<3)return O();let S=n,E=!1,_=A();v[d]=[_,0];let R=!f(s),k=p(),L=k.data,T=k._c,V=f(T)?L:T;if(R&&y({data:s="function"==typeof s?s(V,L):s,_c:V}),"function"==typeof S)try{S=S(V)}catch(e){i=e,E=!0}if(S&&"function"==typeof S.then){let e;if(S=await S.catch(e=>{i=e,E=!0}),_!==v[d][0]){if(E)throw i;return S}E&&R&&(e=i,"function"==typeof l?l(e):!1!==l)&&(a=!0,y({data:V,_c:c}))}if(a&&!E&&("function"==typeof a?y({data:a(S,V),error:c,_c:c}):y({data:S,error:c,_c:c})),v[d][1]=A(),Promise.resolve(O()).then(()=>{y({_c:c})}),E){if(g)throw i;return}return S}}let I=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},M=(e,t)=>{if(!o.has(e)){let r=d(E,t),n=Object.create(null),i=F.bind(c,e),u=l,a=Object.create(null),s=(e,t)=>{let r=a[e]||[];return a[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let i=a[t];if(i)for(let e of i)e(r,n)},g=()=>{if(!o.has(e)&&(o.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,f,s]),!R)){let t=r.initFocus(setTimeout.bind(c,I.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,I.bind(c,n,1)));u=()=>{t&&t(),i&&i(),o.delete(e)}}};return g(),[e,i,g,u]}return[e,o.get(e)[4]]},[W,$]=M(new Map),N=d({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,r,n,i)=>{let u=r.errorRetryCount,a=i.retryCount,o=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(f(u)||!(a>u))&&setTimeout(n,o,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(a.call(t,n)&&++i&&!a.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:W,mutate:$,fallback:{}},{isOnline:()=>m,isVisible:()=>{let e=v&&document.visibilityState;
1return f(e)||"hidden"!==e}}),q=(e,t)=>{let r=d(e,t);if(t){let{use:n,fallback:i}=e,{use:u,fallback:a}=t;n&&u&&(r.use=n.concat(u)),i&&a&&(r.fallback=d(i,a))}return r},J=(0,i.createContext)({}),U=h&&window.__SWR_DEVTOOLS_USE__,z=(U?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=x(t),[,,,i]=o.get(W);if(n.startsWith("$inf$"))return r(...e);let u=i[n];return f(u)?r(...e):(delete i[n],u)});return e(t,i,n)});U&&(window.__SWR_DEVTOOLS_REACT__=i);let B=()=>{},G=B();new WeakMap;let H=i.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),K={dedupe:!0},Q=Promise.resolve(c);s.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(J),n="function"==typeof t,u=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?u:q(r,u),[n,r,u]),o=u&&u.provider,l=(0,i.useRef)(c);o&&!l.current&&(l.current=M(o(a.cache||W),u));let s=l.current;return s&&(a.cache=s[0],a.mutate=s[1]),k(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,i.createElement)(J.Provider,d(e,{value:a}))},"defaultValue",{value:N});let X=(n=(e,t,r)=>{let{cache:n,compare:a,suspense:l,fallbackData:s,revalidateOnMount:g,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:w,refreshWhenOffline:m,keepPreviousData:O}=r,[S,E,L,T]=o.get(n),[V,j]=x(e),C=(0,i.useRef)(!1),D=(0,i.useRef)(!1),P=(0,i.useRef)(V),I=(0,i.useRef)(t),M=(0,i.useRef)(r),W=()=>M.current.isVisible()&&M.current.isOnline(),[$,N,q,J]=b(n,V),U=(0,i.useRef)({}).current,z=f(s)?f(r.fallback)?c:r.fallback[V]:s,B=(e,t)=>{for(let r in U)if("data"===r){if(!a(e[r],t[r])&&(!f(e[r])||!a(ei,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},G=(0,i.useMemo)(()=>{let e=!!V&&!!t&&(f(g)?!M.current.isPaused()&&!l&&!1!==p:g),r=t=>{let r=d(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=$(),i=J(),u=r(n),a=n===i?u:r(i),o=u;return[()=>{let e=r($());return B(e,o)?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>a]},[n,V]),X=(0,u.useSyncExternalStore)((0,i.useCallback)(e=>q(V,(t,r)=>{B(r,t)||e()}),[n,V]),G[0],G[1]),Y=!C.current,Z=S[V]&&S[V].length>0,ee=X.data,et=f(ee)?z&&"function"==typeof z.then?H(z):z:ee,er=X.error,en=(0,i.useRef)(et),ei=O?f(ee)?f(en.current)?et:en.current:ee:et,eu=(!Z||!!f(er))&&(Y&&!f(g)?g:!M.current.isPaused()&&(l?!f(et)&&p:f(et)||p)),ea=!!(V&&t&&Y&&eu),eo=f(X.isValidating)?ea:X.isValidating,el=f(X.isLoading)?ea:X.isLoading,ec=(0,i.useCallback)(async e=>{let t,n,i=I.current;if(!V||!i||D.current||M.current.isPaused())return!1;let u=!0,o=e||{},l=!L[V]||!o.dedupe,s=()=>_?!D.current&&V===P.current&&C.current:V===P.current,d={isValidating:!1,isLoading:!1},g=()=>{N(d)},p=()=>{let e=L[V];e&&e[1]===n&&delete L[V]},y={isValidating:!0};f($().data)&&(y.isLoading=!0);try{if(l&&(N(y),r.loadingTimeout&&f($().data)&&setTimeout(()=>{u&&s()&&M.current.onLoadingSlow(V,r)},r.loadingTimeout),L[V]=[i(j),A()]),[t,n]=L[V],t=await t,l&&setTimeout(p,r.dedupingInterval),!L[V]||L[V][1]!==n)return l&&s()&&M.current.onDiscarded(V),!1;d.error=c;let e=E[V];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),l&&s()&&M.current.onDiscarded(V),!1;let o=$().data;d.data=a(o,t)?o:t,l&&s()&&M.current.onSuccess(t,V,r)}catch(r){p();let e=M.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,l&&s())&&(e.onError(r,V,e),(!0===t||"function"==typeof t&&t(r))&&(!M.current.revalidateOnFocus||!M.current.revalidateOnReconnect||W())&&e.onErrorRetry(r,V,e,e=>{let t=S[V];t&&t[0]&&t[0](3,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0}))}return u=!1,g(),!0},[V,n]),es=(0,i.useCallback)((...e)=>F(n,P.current,...e),[]);if(k(()=>{I.current=t,M.current=r,f(ee)||(en.current=ee)}),k(()=>{if(!V)return;let e=ec.bind(c,K),t=0;M.current.revalidateOnFocus&&(t=Date.now()+M.current.focusThrottleInterval);let r=((e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(V,S,(r,n={})=>{if(0==r){let r=Date.now();M.current.revalidateOnFocus&&r>t&&W()&&(t=r+M.current.focusThrottleInterval,e())}else if(1==r)M.current.revalidateOnReconnect&&W()&&e();else if(2==r)return ec();else if(3==r)return ec(n)});return D.current=!1,P.current=V,C.current=!0,N({_k:j}),eu&&!L[V]&&(f(et)||R?e():(e=>h&&typeof window.requestAnimationFrame!=y?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{D.current=!0,r()}},[V]),k(()=>{let e;function t(){let t="function"==typeof v?v($().data):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!$().error&&(w||M.current.isVisible())&&(m||M.current.isOnline())?ec(K).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,w,m,V]),(0,i.useDebugValue)(ei),l){let e=V&&f(et);if(!_&&R&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(I.current=t,M.current=r,D.current=!1);let n=T[V];if(H(!f(n)&&e?es(n):Q),!f(er)&&e)throw er;let i=e?ec(K):Q;!f(ei)&&e&&(i.status="fulfilled",i.value=!0),H(i)}return{mutate:es,get data(){return U.data=!0,ei},get error(){return U.error=!0,er},get isValidating(){return U.isValidating=!0,eo},get isLoading(){return U.isLoading=!0,el}}},function(...e){let t=(()=>{let e=(0,i.useContext)(J);return(0,i.useMemo)(()=>d(N,e),[e])})(),[r,u,a]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],o=q(t,a),l=n,{use:c}=o,s=(c||[]).concat(z);for(let e=s.length;e--;)l=s[e](l);return l(r,u||o.fetcher||null,o)})},85596:(e,t,r)=>{var n=r(55729),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=n.useState,a=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=u({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return o(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),a(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s}}]);
2//# sourceMappingURL=3681-7c3f1a57d9dc170f.js.map

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.