PageSourceSearch

https://www.esquire.com/_assets/fre/scopes/hdm/_next/static/chunks/97235.e3e5804e09ab7e63.js

js esquire.com collected 2026-10-01 07:43:51 UTC 18,392 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97235],{9106:(n,e,t)=>{t.d(e,{A:()=>o});var r=t(77284);function o(n){var e=function(n,e){if("object"!=(0,r.A)(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var o=t.call(n,e||"default");if("object"!=(0,r.A)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==(0,r.A)(e)?e:e+""}},40355:(n,e,t)=>{t.d(e,{A:()=>r});function r(n,e){if(null==n)return{};var t={};for(var r in n)if(({}).hasOwnProperty.call(n,r)){if(-1!==e.indexOf(r))continue;t[r]=n[r]}return t}},70743:(n,e,t)=>{t.d(e,{A:()=>o});var r=t(9106);function o(n,e,t){return(e=(0,r.A)(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}},77284:(n,e,t)=>{t.d(e,{A:()=>r});function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}},97235:(n,e,t)=>{t.d(e,{Ay:()=>n4});var r,o,u,i,c=t(40355),a=t(64054),f=t(71055),d="data-focus-lock",l="data-focus-lock-disabled";function s(n,e){return"function"==typeof n?n(e):n&&(n.current=e),n}var v="u">typeof window?f.useLayoutEffect:f.useEffect,m=new WeakMap,p={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},b=t(6185);function h(n){return n}function y(n,e){void 0===e&&(e=h);var t=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(n){var o=e(n,r);return t.push(o),function(){t=t.filter(function(n){return n!==o})}},assignSyncMedium:function(n){for(r=!0;t.length;){var e=t;t=[],e.forEach(n)}t={push:function(e){return n(e)},filter:function(){return t}}},assignMedium:function(n){r=!0;var e=[];if(t.length){var o=t;t=[],o.forEach(n),e=t}var u=function(){var t=e;e=[],t.forEach(n)},i=function(){return Promise.resolve().then(u)};i(),t={push:function(n){e.push(n),i()},filter:function(n){return e=e.filter(n),t}}}}}function g(n,e){return void 0===e&&(e=h),y(n,e)}var E=g({},function(n){return{target:n.target,currentTarget:n.currentTarget}}),w=g(),x=g(),N=(r={async:!0,ssr:"u">typeof document},(o=y(null)).options=(0,b.Cl)({async:!0,ssr:!1},r),o),O=(0,f.createContext)(void 0),A=[],M=(0,f.forwardRef)(function(n,e){var t,r,o,u,i,c=(0,f.useState)(),b=c[0],h=c[1],y=(0,f.useRef)(),g=(0,f.useRef)(!1),x=(0,f.useRef)(null),M=(0,f.useState)({})[1],S=n.children,T=n.disabled,k=void 0!==T&&T,I=n.noFocusGuards,F=void 0!==I&&I,C=n.persistentFocus,D=n.crossFrame,P=n.autoFocus,L=(n.allowTextSelection,n.group),R=n.className,_=n.whiteList,W=n.hasPositiveIndices,j=n.shards,G=void 0===j?A:j,U=n.as,B=n.lockProps,q=n.sideCar,H=n.returnFocus,V=void 0!==H&&H,K=n.focusOptions,Y=n.onActivation,z=n.onDeactivation,J=(0,f.useState)({})[0],Q=(0,f.useCallback)(function(n){var e=n.captureFocusRestore;if(!x.current){var t,r=null==(t=document)?void 0:t.activeElement;x.current=r,r!==document.body&&(x.current=e(r))}y.current&&Y&&Y(y.current),g.current=!0,M()},[Y]),X=(0,f.useCallback)(function(){g.current=!1,z&&z(y.current),M()},[z]),Z=(0,f.useCallback)(function(n){var e=x.current;if(e){var t=("function"==typeof e?e():e)||document.body,r="function"==typeof V?V(t):V;if(r){var o="object"==typeof r?r:void 0;x.current=null,n?Promise.resolve().then(function(){return t.focus(o)}):t.focus(o)}}},[V]),$=(0,f.useCallback)(function(n){g.current&&E.useMedium(n)},[]),nn=w.useMedium,ne=(0,f.useCallback)(function(n){y.current!==n&&(y.current=n,h(n))},[]),nt=(0,a.A)(((i={})[l]=k&&"disabled",i[d]=L,i),void 0===B?{}:B),nr=!0!==F,no=nr&&"tail"!==F,nu=(t=[e,ne],r=function(n){return t.forEach(function(e){return s(e,n)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var n=o.value;n!==value&&(o.value=value,o.callback(value,n))}}}})[0]).callback=r,u=o.facade,v(function(){var n=m.get(u);if(n){var e=new Set(n),r=new Set(t),o=u.current;e.forEach(function(n){r.has(n)||s(n,null)}),r.forEach(function(n){e.has(n)||s(n,o)})}m.set(u,t)},[t]),u),ni=(0,f.useMemo)(function(){return{observed:y,shards:G,enabled:!k,get active(){return g.current}}},[k,g,G,y]);return f.default.createElement(f.Fragment,null,nr&&[f.default.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:k?-1:0,style:p}),W?f.default.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:k?-1:1,style:p}):null],!k&&f.default.createElement(q,{id:J,sideCar:N,observed:b,disabled:k,persistentFocus:void 0!==C&&C,crossFrame:void 0===D||D,autoFocus:void 0===P||P,whiteList:_,shards:G,onActivation:Q,onDeactivation:X,returnFocus:Z,focusOptions:K,noFocusGuards:F}),f.default.createElement(void 0===U?"div":U,(0,a.A)({ref:nu},nt,{className:R,onBlur:nn,onFocus:$}),f.default.createElement(O.Provider,{value:ni},S)),no&&f.default.createElement("div",{"data-focus-guard":!0,tabIndex:k?-1:0,style:p}))});M.propTypes={};var S=t(63501),T=t(70743),k=function(n){for(var e=Array(n.length),t=0;t<n.length;++t)e[t]=n[t];return e},I=function(n){return Array.isArray(n)?n:[n]},F=function(n){return Array.isArray(n)?n[0]:n},C=function(n){if(n.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(n,null);return!!e&&!!e.getPropertyValue&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility"))},D=function(n){return n.parentNode&&n.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.parentNode.host:n.parentNode},P=function(n){return n===document||n&&n.nodeType===Node.DOCUMENT_NODE},L=function(n,e){var t,r,o=n.get(e);if(void 0!==o)return o;var u=(t=e,r=L.bind(void 0,n),!t||P(t)||!C(t)&&!t.hasAttribute("inert")&&r(D(t)));return n.set(e,u),u},R=function(n,e){var t,r=n.get(e);if(void 0!==r)return r;var o=(t=R.bind(void 0,n),!e||!!P(e)||!!G(e)&&t(D(e)));return n.set(e,o),o},_=function(n){return n.dataset},W=function(n){return"INPUT"===n.tagName},j=function(n){return W(n)&&"radio"===n.type},G=function(n){return![!0,"true",""].includes(n.getAttribute("data-no-autofocus"))},U=function(n){var e;return!!(n&&(null==(e=_(n))?void 0:e.focusGuard))},B=function(n){return!U(n)},q=function(n){return!!n},H=function(n,e){var t=Math.max(0,n.tabIndex),r=Math.max(0,e.tabIndex),o=t-r,u=n.index-e.index;if(o){if(!t)return 1;if(!r)return -1}return o||u},V=function(n,e,t){return k(n).map(function(n,e){var r=n.tabIndex<0&&!n.hasAttribute("tabindex")?0:n.tabIndex;return{node:n,index:e,tabIndex:t&&-1===r?(n.dataset||{}).focusGuard?0:-1:r}}).filter(function(n){return!e||n.tabIndex>=0}).sort(H)},K="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",Y="".concat(K,", [data-focus-guard]"),z=function(n,e){return k((n.shadowRoot||n).children).reduce(function(n,t){return n.concat(t.matches(e?Y:K)?[t]:[],z(t))},[])},J=function(n,e){var t;return n instanceof HTMLIFrameElement&&(null==(t=n.contentDocument)?void 0:t.body)?Q([n.contentDocument.body],e):[n]},Q=function(n,e){return n.reduce(function(n,t){var r,o=z(t,e),u=(r=[]).concat.apply(r,o.map(function(n){return J(n,e)}));return n.concat(u,t.parentNode?k(t.parentNode.querySelectorAll(K)).filter(function(n){return n===t}):[])},[])},X=function(n,e){return k(n).filter(function(n){return L(e,n)}).filter(function(n){var e;return!((W(e=n)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},Z=function(n,e){return void 0===e&&(e=new Map),k(n).filter(function(n){return R(e,n)})},$=function(n,e,t){return V(X(Q(n,t),e),!0,t)},nn=function(n,e){return V(X(Q(n),e),!1)},ne=function(n,e){return n.shadowRoot?ne(n.shadowRoot,e):!!(void 0!==Object.getPrototypeOf(n).contains&&Object.getPrototypeOf(n).contains.call(n,e))||k(n.children).some(function(n){var t;if(n instanceof HTMLIFrameElement){var r=null==(t=n.contentDocument)?void 0:t.body;return!!r&&ne(r,e)}return ne(n,e)})},nt=function(n){try{return n()}catch(n){return}},nr=function(n){if(void 0===n&&(n=document),n&&n.activeElement){var e=n.activeElement;return e.shadowRoot?nr(e.shadowRoot):e instanceof HTMLIFrameElement&&nt(function(){return e.contentWindow.document})?nr(e.contentWindow.document):e}},no=function(n){void 0===n&&(n=document);var e=nr(n);return!!e&&k(n.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(n){return ne(n,e)})},nu=function(n){for(var e=new Set,t=n.length,r=0;r<t;r+=1)for(var o=r+1;o<t;o+=1){var u=n[r].compareDocumentPosition(n[o]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&e.add(o),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&e.add(r)}return n.filter(function(n,t){return!e.has(t)})},ni=function(n){return n.parentNode?ni(n.parentNode):n}
1,nc=function(n){return I(n).filter(Boolean).reduce(function(n,e){var t=e.getAttribute(d);return n.push.apply(n,t?nu(k(ni(e).querySelectorAll("[".concat(d,'="').concat(t,'"]:not([').concat(l,'="disabled"])')))):[e]),n},[])},na=function(n,e){return void 0===e&&(e=nr(F(n).ownerDocument)),!!e&&(!e.dataset||!e.dataset.focusGuard)&&nc(n).some(function(n){var t;return ne(n,e)||(t=e,!!k(n.querySelectorAll("iframe")).some(function(n){return n===t}))})},nf=function(n,e){n&&("focus"in n&&n.focus(e),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus())},nd=function(n,e){if(j(n)&&n.name)return e.filter(j).filter(function(e){return e.name===n.name}).filter(function(n){return n.checked})[0]||n;return n},nl=function(n){var e=new Set;return n.forEach(function(t){return e.add(nd(t,n))}),n.filter(function(n){return e.has(n)})},ns=function(n){return n[0]&&n.length>1?nd(n[0],n):n[0]},nv=function(n,e){return n.indexOf(nd(e,n))},nm="NEW_FOCUS",np=function(n,e,t,r,o){var u=n.length,i=n[0],c=n[u-1],a=U(r);if(!(r&&n.indexOf(r)>=0)){var f=void 0!==r?t.indexOf(r):-1,d=o?t.indexOf(o):f,l=o?n.indexOf(o):-1;if(-1===f)return -1!==l?l:nm;if(-1===l)return nm;var s=f-d,v=t.indexOf(i),m=t.indexOf(c),p=nl(t),b=void 0!==r?p.indexOf(r):-1,h=o?p.indexOf(o):b,y=p.filter(function(n){return n.tabIndex>=0}),g=void 0!==r?y.indexOf(r):-1,E=o?y.indexOf(o):g;if(!s&&l>=0||0===e.length)return l;var w=nv(n,e[0]),x=nv(n,e[e.length-1]);if(f<=v&&a&&Math.abs(s)>1)return x;if(f>=m&&a&&Math.abs(s)>1)return w;if(s&&Math.abs(g>=0&&E>=0?E-g:h-b)>1)return l;if(f<=v)return x;if(f>m)return w;if(s)return Math.abs(s)>1?l:(u+l+s)%u}},nb=function(n,e,t){var r=Z(n.map(function(n){return n.node}).filter(function(n){var e,r=null==(e=_(n))?void 0:e.autofocus;return n.autofocus||void 0!==r&&"false"!==r||t.indexOf(n)>=0}));return r&&r.length?ns(r):ns(Z(e))},nh=function(n,e){return void 0===e&&(e=[]),e.push(n),n.parentNode&&nh(n.parentNode.host||n.parentNode,e),e},ny=function(n,e){for(var t=nh(n),r=nh(e),o=0;o<t.length;o+=1){var u=t[o];if(r.indexOf(u)>=0)return u}return!1},ng=function(n,e,t){var r=I(n),o=I(e),u=r[0],i=!1;
1return o.filter(Boolean).forEach(function(n){i=ny(i||n,n)||i,t.filter(Boolean).forEach(function(n){var e=ny(u,n);e&&(i=!i||ne(e,i)?e:ny(e,i))})}),i},nE=function(n,e){return n.reduce(function(n,t){var r,o;return n.concat((r=t,o=e,X(k(r.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(n){return Q([n])}).reduce(function(n,e){return n.concat(e)},[]),o)))},[])},nw=function(n,e){var t=new Map;return e.forEach(function(n){return t.set(n.node,n)}),n.map(function(n){return t.get(n)}).filter(q)},nx=function(n,e){var t=nr(I(n).length>0?document:F(n).ownerDocument),r=nc(n).filter(B),o=ng(t||n,n,r),u=new Map,i=nn(r,u),c=i.filter(function(n){return B(n.node)});if(c[0]){var a=nn([o],u).map(function(n){return n.node}),f=nw(a,c),d=f.map(function(n){return n.node}),l=f.filter(function(n){return n.tabIndex>=0}).map(function(n){return n.node}),s=np(d,l,a,t,e);if(s===nm){var v=nb(i,l,nE(r,u))||nb(i,d,nE(r,u));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===s?s:f[s]}},nN=0,nO=!1,nA=function(n,e,t){void 0===t&&(t={});var r=nx(n,e);if(!nO&&r){if(nN>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),nO=!0,setTimeout(function(){nO=!1},1);return}nN++,nf(r.node,t.focusOptions),nN--}};function nM(n){if(!n)return null;if("u"<typeof WeakRef)return function(){return n||null};var e=n?new WeakRef(n):null;return function(){return(null==e?void 0:e.deref())||null}}var nS=function(n){if(!n)return null;for(var e=[],t=n;t&&t!==document.body;)e.push({current:nM(t),parent:nM(t.parentElement),left:nM(t.previousElementSibling),right:nM(t.nextElementSibling)}),t=t.parentElement;return{element:nM(n),stack:e,ownerDocument:n.ownerDocument}},nT=function(n){if(n)for(var e,t,r,o,u,i=n.stack,c=n.ownerDocument,a=new Map,f=0;f<i.length;f++){var d=i[f],l=null==(e=d.parent)?void 0:e.call(d);if(l&&c.contains(l)){for(var s=null==(t=d.left)?void 0:t.call(d),v=d.current(),m=l.contains(v)?v:void 0,p=null==(r=d.right)?void 0:r.call(d),b=$([l],a),h=null!=(u=null!=(o=null!=m?m:null==s?void 0:s.nextElementSibling)?o:p)?u:s;h;){for(var y=0;y<b.length;y++){var g=b[y];if(null==h?void 0:h.contains(g.node))return g.node}h=h.nextElementSibling}if(b.length)return b[0].node}}},nk=function(n){var e=nS(n);return function(){return nT(e)}},nI=function(n){var e=nc(n).filter(B),t=V(Q([ng(n,n,e)],!0),!0,!0),r=Q(e,!1);return t.map(function(n){var e=n.node;return{node:e,index:n.index,lockItem:r.indexOf(e)>=0,guard:U(e)}})},nF=function(n,e,t){if(!n||!e)return console.error("no element or scope given"),{};var r=I(e);if(r.every(function(e){return!ne(e,n)}))return console.error("Active element is not contained in the scope"),{};var o=t?$(r,new Map):nn(r,new Map),u=o.findIndex(function(e){return e.node===n});if(-1!==u)return{prev:o[u-1],next:o[u+1],first:o[0],last:o[o.length-1]}},nC=function(n,e){var t=e?$(I(n),new Map):nn(I(n),new Map);return{first:t[0],last:t[t.length-1]}},nD=function(n,e,t){void 0===e&&(e={});var r,o=(r=e,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),u=nF(n,o.scope,o.onlyTabbable);if(u){var i=t(u,o.cycle);i&&nf(i.node,o.focusOptions)}},nP=function(n,e,t){var r,o=nC(n,null==(r=e.onlyTabbable)||r)[t];o&&nf(o.node,e.focusOptions)};function nL(n){setTimeout(n,1)}var nR=function(n){return n&&"current"in n?n.current:n},n_=function(){return document&&document.activeElement===document.body},nW=null,nj=null,nG=function(){return null},nU=null,nB=!1,nq=!1,nH=function(n,e){nU={observerNode:n,portaledElement:e}};function nV(n,e,t,r){var o=null,u=n;do{var i=r[u];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(u!==n)return;o=null}else break}while((u+=t)!==e);o&&(o.node.tabIndex=0)}var nK=function(n){return nn(n,new Map)},nY=function(){var n=!1;if(nW){var e=nW,t=e.observed,r=e.persistentFocus,o=e.autoFocus,u=e.shards,i=e.crossFrame,c=e.focusOptions,a=e.noFocusGuards,f=t||nU&&nU.portaledElement;if(n_()&&nj&&nj!==document.body&&(!document.body.contains(nj)||!nK([(s=nj).parentNode]).some(function(n){return n.node===s}))){var d=nG();d&&d.focus()}var l=document&&document.activeElement;
1if(f){var s,v=[f].concat(u.map(nR).filter(Boolean));if((!l||(nW.whiteList||function(){return!0})(l))&&(r||function(){if(!(i?!!nB:"meanwhile"===nB)||!a||!nj||nq)return!1;var n=nK(v),e=n.findIndex(function(n){return n.node===nj});return 0===e||e===n.length-1}()||!(n_()||no())||!nj&&o)&&(f&&!(na(v)||l&&v.some(function(n){return function n(e,t,r){return t&&(t.host===e&&(!t.activeElement||r.contains(t.activeElement))||t.parentNode&&n(e,t.parentNode,r))}(l,n,n)})||nU&&nU.portaledElement===l)&&(document&&!nj&&l&&!o?(l.blur&&l.blur(),document.body.focus()):(n=nA(v,nj,{focusOptions:c}),nU={})),(nj=document&&document.activeElement)!==document.body&&(nG=nk(nj)),nB=!1),document&&l!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var m=document&&document.activeElement,p=nI(v),b=p.map(function(n){return n.node}).indexOf(m);b>-1&&(p.filter(function(n){var e=n.guard,t=n.node;return e&&t.dataset.focusAutoGuard}).forEach(function(n){return n.node.removeAttribute("tabIndex")}),nV(b,p.length,1,p),nV(b,-1,-1,p))}}}return n},nz=function(n){nY()&&n&&(n.stopPropagation(),n.preventDefault())},nJ=function(){return nL(nY)},nQ=function(){nq=!0},nX=function(){nq=!1,nB="just",nL(function(){nB="meanwhile"})},nZ=function(){document.addEventListener("focusin",nz),document.addEventListener("focusout",nJ),window.addEventListener("focus",nQ),window.addEventListener("blur",nX)},n$=function(){document.removeEventListener("focusin",nz),document.removeEventListener("focusout",nJ),window.removeEventListener("focus",nQ),window.removeEventListener("blur",nX)},n0={moveFocusInside:nA,focusInside:na,focusNextElement:function(n,e){void 0===e&&(e={}),nD(n,e,function(n,e){var t=n.next,r=n.first;return t||e&&r})},focusPrevElement:function(n,e){void 0===e&&(e={}),nD(n,e,function(n,e){var t=n.prev,r=n.last;return t||e&&r})},focusFirstElement:function(n,e){void 0===e&&(e={}),nP(n,e,"first")},focusLastElement:function(n,e){void 0===e&&(e={}),nP(n,e,"last")},captureFocusRestore:nk};E.assignSyncMedium(function(n){var e=n.target,t=n.currentTarget;t.contains(e)||nH(t,e)}),w.assignMedium(nJ),x.assignMedium(function(n){return n(n0)});let n1=(u=function(n){return n.filter(function(n){return!n.disabled})},i=function(n){var e=n.slice(-1)[0];e&&!nW&&nZ();var t=nW,r=t&&e&&e.id===t.id;nW=e,t&&!r&&(t.onDeactivation(),n.filter(function(n){return n.id===t.id}).length||t.returnFocus(!e)),e?(nj=null,r&&t.observed===e.observed||e.onActivation(n0),nY(),nL(nY)):(n$(),nj=null)},function(n){var e,t=[];function r(){i(e=u(t.map(function(n){return n.props})))}var o=function(o){function u(){return o.apply(this,arguments)||this}(0,S.A)(u,o),u.peek=function(){return e};var i=u.prototype;return i.componentDidMount=function(){t.push(this),r()},i.componentDidUpdate=function(){r()},i.componentWillUnmount=function(){var n=t.indexOf(this);t.splice(n,1),r()},i.render=function(){return f.default.createElement(n,this.props)},u}(f.PureComponent);return(0,T.A)(o,"displayName","SideEffect("+(n.displayName||n.name||"Component")+")"),o})(function(){return null});var n5=(0,f.forwardRef)(function(n,e){return f.default.createElement(M,(0,a.A)({sideCar:n1,ref:e},n))}),n7=M.propTypes||{};n7.sideCar,(0,c.A)(n7,["sideCar"]),n5.propTypes={};let n4=n5}}]);

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.