PageSourceSearch

https://www.tanviparikh.com/_next/static/chunks/9308-637607dce08fa5ef.js

js tanviparikh.com collected 2026-10-02 14:36:24 UTC 9,691 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9308],{3468:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(12115),l=t(95155);function o(e,n=[]){let t=[],i=()=>{let n=t.map(e=>r.createContext(e));return function(t){let l=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:l}}),[t,l])}};return i.scopeName=e,[function(n,o){let i=r.createContext(o),u=t.length;t=[...t,o];let a=n=>{let{scope:t,children:o,...a}=n,s=t?.[e]?.[u]||i,c=r.useMemo(()=>a,Object.values(a));return(0,l.jsx)(s.Provider,{value:c,children:o})};return a.displayName=n+"Provider",[a,function(t,l){let a=l?.[e]?.[u]||i,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=t.reduce((n,{useScope:t,scopeName:r})=>{let l=t(e)[`__scope${r}`];return{...n,...l}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:l}),[l])}};return t.scopeName=n.scopeName,t}(i,...n)]}},4129:(e,n,t)=>{t.d(n,{N:()=>l});var r=t(12115),l=globalThis?.document?r.useLayoutEffect:()=>{}},23558:(e,n,t)=>{t.d(n,{i:()=>u});var r,l=t(12115),o=t(4129),i=(r||(r=t.t(l,2)))[" useInsertionEffect ".trim().toString()]||o.N;function u({prop:e,defaultProp:n,onChange:t=()=>{},caller:r}){let[o,u,a]=function({defaultProp:e,onChange:n}){let[t,r]=l.useState(e),o=l.useRef(t),u=l.useRef(n);return i(()=>{u.current=n},[n]),l.useEffect(()=>{o.current!==t&&(u.current?.(t),o.current=t)},[t,o]),[t,r,u]}({defaultProp:n,onChange:t}),s=void 0!==e,c=s?e:o;{let n=l.useRef(void 0!==e);l.useEffect(()=>{let e=n.current;if(e!==s){let n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=s},[s,r])}return[c,l.useCallback(n=>{if(s){let t="function"==typeof n?n(e):n;t!==e&&a.current?.(t)}else u(n)},[s,e,u,a])]}Symbol("RADIX:SYNC_STATE")},24033:(e,n,t)=>{t.d(n,{A:()=>r});let r=(0,t(71847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},32467:(e,n,t)=>{t.d(n,{DX:()=>c});var r,l=t(12115),o=t(94446),i=t(95155),u=Symbol.for("react.lazy"),a=(r||(r=t.t(l,2)))[" use ".trim().toString()];function s(e){var n;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&"object"==typeof(n=e._payload)&&null!==n&&"then"in n}var c=function(e){let n=function(e){let n=l.forwardRef((e,n)=>{let{children:t,...r}=e;if(s(t)&&"function"==typeof a&&(t=a(t._payload)),l.isValidElement(t)){var i;let e,u,a=(i=t,(u=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(u=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,n){let t={...n};for(let r in n){let l=e[r],o=n[r];/^on[A-Z]/.test(r)?l&&o?t[r]=(...e)=>{let n=o(...e);return l(...e),n}:l&&(t[r]=l):"style"===r?t[r]={...l,...o}:"className"===r&&(t[r]=[l,o].filter(Boolean).join(" "))}return{...e,...t}}(r,t.props);return t.type!==l.Fragment&&(s.ref=n?(0,o.t)(n,a):a),l.cloneElement(t,s)}return l.Children.count(t)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}(e),t=l.forwardRef((e,t)=>{let{children:r,...o}=e;s(r)&&"function"==typeof a&&(r=a(r._payload));let u=l.Children.toArray(r),c=u.find(f);if(c){let e=c.props.children,r=u.map(n=>n!==c?n:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,i.jsx)(n,{...o,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,i.jsx)(n,{...o,ref:t,children:r})});return t.displayName=`${e}.Slot`,t}("Slot"),d=Symbol("radix.slottable");function f(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}},68946:(e,n,t)=>{t.d(n,{B:()=>a});var r,l=t(12115),o=t(4129),i=(r||(r=t.t(l,2)))[" useId ".trim().toString()]||(()=>void 0),u=0;function a(e){let[n,t]=l.useState(i());return(0,o.N)(()=>{e||t(e=>e??String(u++))},[e]),e||(n?`radix-${n}`:"")}}
1,70222:(e,n,t)=>{t.d(n,{c:()=>l});var r=t(12115);function l(e){let n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...e)=>n.current?.(...e),[])}},76842:(e,n,t)=>{t.d(n,{C:()=>i});var r=t(12115),l=t(94446),o=t(4129),i=e=>{let{present:n,children:t}=e,i=function(e){var n,t;let[l,i]=r.useState(),a=r.useRef(null),s=r.useRef(e),c=r.useRef("none"),[d,f]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=u(a.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let n=a.current,t=s.current;if(t!==e){let r=c.current,l=u(n);e?f("MOUNT"):"none"===l||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):t&&r!==l?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,o.N)(()=>{if(l){var e;let n,t=null!=(e=l.ownerDocument.defaultView)?e:window,r=e=>{let r=u(a.current).includes(CSS.escape(e.animationName));if(e.target===l&&r&&(f("ANIMATION_END"),!s.current)){let e=l.style.animationFillMode;l.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===l.style.animationFillMode&&(l.style.animationFillMode=e)})}},o=e=>{e.target===l&&(c.current=u(a.current))};return l.addEventListener("animationstart",o),l.addEventListener("animationcancel",r),l.addEventListener("animationend",r),()=>{t.clearTimeout(n),l.removeEventListener("animationstart",o),l.removeEventListener("animationcancel",r),l.removeEventListener("animationend",r)}}f("ANIMATION_END")},[l,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,i(e)},[])}}(n),a="function"==typeof t?t({present:i.isPresent}):r.Children.only(t),s=(0,l.s)(i.ref,function(e){var n,t;let r=null==(n=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:n.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(l=(r=null==(t=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof t||i.isPresent?r.cloneElement(a,{ref:s}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},83101:(e,n,t)=>{t.d(n,{F:()=>i});var r=t(2821);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,i=(e,n)=>t=>{var r;if((null==n?void 0:n.variants)==null)return o(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:i,defaultVariants:u}=n,a=Object.keys(i).map(e=>{let n=null==t?void 0:t[e],r=null==u?void 0:u[e];if(null===n)return null;let o=l(n)||l(r);return i[e][o]}),s=t&&Object.entries(t).reduce((e,n)=>{let[t,r]=n;return void 0===r||(e[t]=r),e},{});return o(e,a,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,n)=>{let{class:t,className:r,...l}=n;return Object.entries(l).every(e=>{let[n,t]=e;return Array.isArray(t)?t.includes({...u,...s}[n]):({...u,...s})[n]===t})?[...e,t,r]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},88142:(e,n,t)=>{t.d(n,{sG:()=>s,hO:()=>c});var r=t(12115),l=t(47650),o=t(94446),i=t(95155),u=Symbol("radix.slottable");function a(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}var s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let t=function(e){let n=function(e){let n=r.forwardRef((e,n)=>{let{children:t,...l}=e;if(r.isValidElement(t)){var i;let e,u,a=(i=t,(u=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(u=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,n){let t={...n};for(let r in n){let l=e[r],o=n[r];/^on[A-Z]/.test(r)?l&&o?t[r]=(...e)=>{let n=o(...e);return l(...e),n}:l&&(t[r]=l):"style"===r?t[r]={...l,...o}:"className"===r&&(t[r]=[l,o].filter(Boolean).join(" "))}return{...e,...t}}(l,t.props);return t.type!==r.Fragment&&(s.ref=n?(0,o.t)(n,a):a),r.cloneElement(t,s)}return r.Children.count(t)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}(e),t=r.forwardRef((e,t)=>
1{let{children:l,...o}=e,u=r.Children.toArray(l),s=u.find(a);if(s){let e=s.props.children,l=u.map(n=>n!==s?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(n,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,i.jsx)(n,{...o,ref:t,children:l})});return t.displayName=`${e}.Slot`,t}(`Primitive.${n}`),l=r.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l?t:n,{...o,ref:r})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{});function c(e,n){e&&l.flushSync(()=>e.dispatchEvent(n))}},92556:(e,n,t)=>{function r(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),!1===t||!r.defaultPrevented)return n?.(r)}}t.d(n,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},94446:(e,n,t)=>{t.d(n,{s:()=>i,t:()=>o});var r=t(12115);function l(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function o(...e){return n=>{let t=!1,r=e.map(e=>{let r=l(e,n);return t||"function"!=typeof r||(t=!0),r});if(t)return()=>{for(let n=0;n<r.length;n++){let t=r[n];"function"==typeof t?t():l(e[n],null)}}}}function i(...e){return r.useCallback(o(...e),e)}}}]);

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.