PageSourceSearch

https://www.cvmaker.pe/resources/context-DJeN8Oxa.js

js cvmaker.pe collected 2026-10-08 09:03:05 UTC 17,760 bytes, 1 lines download raw bytes

1import{$ as e,A as t,B as n,D as r,E as i,G as a,I as o,J as s,K as c,L as l,M as u,N as d,O as f,P as p,Q as m,R as h,T as g,Y as _,Z as v,a as y,c as b,et as x,ft as S,g as C,ht as w,j as T,mt as E,n as D,q as ee,s as O,v as k,w as A,z as j}from"./errorBoundaries-Bbzg819k.js";var M=`application/x-www-form-urlencoded`;function N(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function te(e){return N(e)&&e.tagName.toLowerCase()===`button`}function ne(e){return N(e)&&e.tagName.toLowerCase()===`form`}function re(e){return N(e)&&e.tagName.toLowerCase()===`input`}function P(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function F(e,t){return e.button===0&&(!t||t===`_self`)&&!P(e)}function I(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ie(e,t){let n=I(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var L=null;function ae(){if(L===null)try{new FormData(document.createElement(`form`),0),L=!1}catch{L=!0}return L}var oe=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function R(t){return t!=null&&!oe.has(t)?(e(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${M}"`),null):t}function se(e,t){let n,r,i,a,o;if(ne(e)){let o=e.getAttribute(`action`);r=o?_(o,t):null,n=e.getAttribute(`method`)||`get`,i=R(e.getAttribute(`enctype`))||M,a=new FormData(e)}else if(te(e)||re(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?_(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=R(e.getAttribute(`formenctype`))||R(o.getAttribute(`enctype`))||M,a=new FormData(o,e),!ae()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(N(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=M,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var z=w(S(),1),ce=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ce&&(window.__reactRouterVersion=`8`)}catch{}function le({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=z.useState({action:n.action,location:n.location}),o=z.useCallback(e=>{r===!1?a(e):z.startTransition(()=>a(e))},[r]);return z.useLayoutEffect(()=>n.listen(o),[n,o]),z.createElement(k,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}le.displayName=`unstable_HistoryRouter`;var B=z.forwardRef(function({onClick:e,discover:n=`render`,prefetch:r=`none`,relative:i,reloadDocument:o,replace:c,mask:u,state:d,target:p,to:m,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:_,...v},S){let{basename:C,navigator:w,useTransitions:T}=z.useContext(l),E=typeof m==`string`&&x.test(m),D=ee(m,C);m=D.to;let k=f(m,{relative:i}),A=t(),j=null;if(u){let e=s(u,[],A.mask?A.mask.pathname:`/`,!0);C!==`/`&&(e.pathname=e.pathname===`/`?C:a([C,e.pathname])),j=w.createHref(e)}let[M,N,te]=b(r,v),ne=fe(m,{replace:c,mask:u,state:d,target:p,preventScrollReset:h,relative:i,viewTransition:g,defaultShouldRevalidate:_,useTransitions:T});function re(t){e&&e(t),t.defaultPrevented||ne(t)}let P=!(D.isExternal||o),F=z.createElement(`a`,{...v,...te,href:(P?j:void 0)||D.absoluteURL||k,onClick:P?re:e,ref:O(S,N),target:p,"data-discover":!E&&n===`render`?`true`:void 0});return M&&!E?z.createElement(z.Fragment,null,F,z.createElement(y,{page:k})):F});B.displayName=`Link`;var ue=z.forwardRef(function({"aria-current":e=`page`,caseSensitive:n=!1,className:r=``,end:i=!1,style:a,to:s,viewTransition:c,children:u,...d},f){let m=p(s,{relative:d.relative}),h=t(),g=z.useContext(o),{navigator:v,basename:y}
1=z.useContext(l),b=g!=null&&Se(m)&&c===!0,x=v.encodeLocation?v.encodeLocation(m).pathname:m.pathname,S=h.pathname,C=g?.navigation.location?g.navigation.location.pathname:null;n||(S=S.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&y&&(C=_(C,y)||C);let w=x!==`/`&&x.endsWith(`/`)?x.length-1:x.length,T=S===x||!i&&S.startsWith(x)&&S.charAt(w)===`/`,E=C!=null&&(C===x||!i&&C.startsWith(x)&&C.charAt(w)===`/`),D={isActive:T,isPending:E,isTransitioning:b},ee=T?e:void 0,O;O=typeof r==`function`?r(D):[r,T?`active`:null,E?`pending`:null,b?`transitioning`:null].filter(Boolean).join(` `);let k=typeof a==`function`?a(D):a;return z.createElement(B,{...d,"aria-current":ee,className:O,ref:f,style:k,to:s,viewTransition:c},typeof u==`function`?u(D):u)});ue.displayName=`NavLink`;var V=z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=z.useContext(l),_=ge(),v=_e(s,{relative:u}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&x.test(s);return z.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,l=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&n!==!1?z.startTransition(()=>l()):l()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});V.displayName=`Form`;function de({getKey:e,storageKey:n,...r}){let i=z.useContext(D),{basename:a}=z.useContext(l),o=t(),s=T();ye({getKey:e,storageKey:n});let c=z.useMemo(()=>{if(!i||!e)return null;let t=W(o,s,a,e);return t===o.key?null:t},[]);if(!i||i.isSpaMode)return null;let u=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
1typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return r.nonce==null&&i?.nonce&&(r.nonce=i.nonce),z.createElement(`script`,{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${u})(${C(JSON.stringify(n||H))}, ${C(JSON.stringify(c))})`}})}de.displayName=`ScrollRestoration`;function fe(e,{target:n,replace:r,mask:i,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:d}={}){let f=u(),m=t(),h=p(e,{relative:s});return z.useCallback(t=>{if(F(t,n)){t.preventDefault();let n=r===void 0?v(m)===v(h):r,u=()=>f(e,{replace:n,mask:i,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l});d?z.startTransition(()=>u()):u()}},[m,f,h,r,i,a,n,e,o,s,c,l,d])}function pe(n){e(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=z.useRef(I(n)),i=z.useRef(!1),a=t(),o=z.useMemo(()=>ie(a.search,i.current?null:r.current),[a.search]),s=u();return[o,z.useCallback((e,t)=>{let n=I(typeof e==`function`?e(new URLSearchParams(o)):e);i.current=!0,s(`?`+n,t)},[s,o])]}var me=0,he=()=>`__${String(++me)}__`;function ge(){let{router:e}=g(`useSubmit`),{basename:t}=z.useContext(l),n=A(`useSubmit`),r=e.fetch,i=e.navigate;return z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=se(e,t);a.navigate===!1?await r(a.fetcherKey||he(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function _e(e,{relative:n}={}){let{basename:r}=z.useContext(l),i=z.useContext(h);m(i,`useFormAction must be used inside a RouteContext`);let[o]=i.matches.slice(-1),s={...p(e||`.`,{relative:n})},c=t();if(e==null){s.search=c.search;let e=new URLSearchParams(s.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();s.search=n?`?${n}`:``}}return(!e||e===`.`)&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,`?index&`):`?index`),r!==`/`&&(s.pathname=s.pathname===`/`?r:a([r,s.pathname])),v(s)}function ve({key:e}={}){let{router:t}=g(`useFetcher`),r=i(`useFetcher`),a=A(`useFetcher`),o=z.useId(),[s,c]=z.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:u,resetFetcher:d,fetch:f}=t;z.useEffect(()=>(u(s),()=>l(s)),[l,u,s]);let p=z.useCallback(async(e,t)=>{m(a,`No routeId available for fetcher.load()`),await f(s,a,e,t)},[s,a,f]),h=ge(),_=z.useCallback(async(e,t)=>{await h(e,{...t,navigate:!1,fetcherKey:s})},[s,h]),v=z.useCallback(e=>d(s,e),[d,s]),y=z.useMemo(()=>{let e=z.forwardRef((e,t)=>z.createElement(V,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),b=r.fetchers.get(s)||n,x=r.fetcherData.get(s);return z.useMemo(()=>({Form:y,submit:_,load:p,reset:v,...b,data:x}),[y,_,p,v,b,x])}var H=`react-router-scroll-positions`,U={};function W(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:_(e.pathname,n)||e.pathname},t)),i??=e.key,i}function ye({getKey:n,storageKey:i}={}){let{router:a}=g(`useScrollRestoration`),{restoreScrollPosition:o,preventScrollReset:s}=r(`useScrollRestoration`),{basename:c}=z.useContext(l),u=t(),f=T(),p=d();z.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),xe(z.useCallback(e=>{e.persisted&&(window.history.scrollRestoration=`manual`)},[])),be(z.useCallback(()=>{if(p.state===`idle`){let e=W(u,f,c,n);U[e]=window.scrollY}try{sessionStorage.setItem(i||H,JSON.stringify(U))}catch(t){e(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${t}).`)}window.history.scrollRestoration=`auto`},[p.state,n,c,u,f,i])),typeof document<`u`&&(z.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(i||H);e&&(U=JSON.parse(e))}catch{}},[i]),z.useLayoutEffect(()=>{let e=a?.enableScrollRestoration(U,()=>window.scrollY,n?(e,t)=>W(e,t,c,n):void 0);return()=>e&&e()},[a,c,n]),z.useLayoutEffect(()=>{if(o!==!1){if(typeof o==`number`){window.scrollTo(0,o);return}try{if(u.hash){let e=document.getElementById(decodeURIComponent(u.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{e(!1,`"${u.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}s!==!0&&window.scrollTo(0,0)}},[u,o,s]))}function be(e,t){let{capture:n}=t||{};z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function xe(e,t){let{capture:n}=t||{};z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pageshow`,e,t),()=>{window.removeEventListener(`pageshow`,e,t)}},[e,n])}function Se(e,{relative:t}={}){let n=z.useContext(j);m(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=g(`useViewTransitionState`),i=p(e,{relative:t});if(!n.isTransitioning)return!1;let a=_(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_(n.nextLocation.pathname,r)||n.nextLocation.pathname;return c(i.pathname,o)!=null||c(i.pathname,a)!=null}var Ce={Arab:`_3hb7bz0`,Cyrl:`_3hb7bz1`,Grek:`_3hb7bz2`,Jpan:`_3hb7bz3`,Kore:`_3hb7bz4`,Latn:`_3hb7bz5`},we={light:`_1ut6jp00`,dark:`_1ut6jp01`},Te=E(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];
1n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}));function Ee(e){if(De())e.focus({preventScroll:!0});else{let t=Oe(e);e.focus(),ke(t)}}var G=null;function De(){if(G==null){G=!1;try{document.createElement(`div`).focus({get preventScroll(){return G=!0,!0}})}catch{}}return G}function Oe(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ke(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function K(e){return typeof window>`u`||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function q(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function J(e){let t=null;return()=>(t??=e(),t)}var Y=J(function(){return q(/^Mac/i)}),Ae=J(function(){return q(/^iPhone/i)}),X=J(function(){return q(/^iPad/i)||Y()&&navigator.maxTouchPoints>1}),je=J(function(){return Ae()||X()}),Me=J(function(){return Y()||je()}
1),Ne=J(function(){return K(/AppleWebKit/i)&&!Pe()}),Pe=J(function(){return K(/Chrome/i)}),Fe=J(function(){return K(/Android/i)}),Ie=J(function(){return K(/Firefox/i)}),Le=(0,z.createContext)({isNative:!0,open:He,useHref:e=>e});function Re(e){let{children:t,navigate:n,useHref:r}=e,i=(0,z.useMemo)(()=>({isNative:!1,open:(e,t,r,i)=>{Ve(e,e=>{Be(e,t)?n(r,i):Z(e,t)})},useHref:r||(e=>e)}),[n,r]);return z.createElement(Le.Provider,{value:i},t)}function ze(){return(0,z.useContext)(Le)}function Be(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Z(e,t,n=!0){var r;let{metaKey:i,ctrlKey:a,altKey:o,shiftKey:s}=t;Ie()&&(r=window.event)!=null&&r.type?.startsWith(`key`)&&e.target===`_blank`&&(Y()?i=!0:a=!0);let c=Ne()&&Y()&&!X()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:i,ctrlKey:a,altKey:o,shiftKey:s}):new MouseEvent(`click`,{metaKey:i,ctrlKey:a,altKey:o,shiftKey:s,bubbles:!0,cancelable:!0});Z.isOpening=n,Ee(e),e.dispatchEvent(c),Z.isOpening=!1}Z.isOpening=!1;function Ve(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function He(e,t){Ve(e,e=>Z(e,t))}function Ue(e){let t=ze().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}String(Math.round(Math.random()*1e10));var We=z.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,z.useId;function Ge(){return!1}function Ke(){return!0}function qe(e){return()=>{}}function Je(){return typeof z.useSyncExternalStore==`function`?z.useSyncExternalStore(qe,Ge,Ke):(0,z.useContext)(We)}var Ye=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),Xe=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function Ze(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return Ye.has(t.script)}let t=e.split(`-`)[0];return Xe.has(t)}var Qe=Symbol.for(`react-aria.i18n.locale`);function $e(){let e=typeof window<`u`&&window[Qe]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:Ze(e)?`rtl`:`ltr`}}var Q=$e(),$=new Set;function et(){Q=$e();for(let e of $)e(Q)}function tt(){let e=Je(),[t,n]=(0,z.useState)(Q);return(0,z.useEffect)(()=>($.size===0&&window.addEventListener(`languagechange`,et),$.add(n),()=>{$.delete(n),$.size===0&&window.removeEventListener(`languagechange`,et)}),[]),e?{locale:`en-US`,direction:`ltr`}:t}var nt=z.createContext(null);function rt(e){let{locale:t,children:n}=e,r=tt(),i=z.useMemo(()=>t?{locale:t,direction:Ze(t)?`rtl`:`ltr`}:r,[r,t]);return z.createElement(nt.Provider,{value:i},n)}function it(){let e=tt();return(0,z.useContext)(nt)||e}export{ve as C,de as S,Te as _,Ue as a,V as b,Be as c,X as d,Y as f,Ee as g,je as h,Re as i,Pe as l,Me as m,rt as n,Z as o,Fe as p,Je as r,ze as s,it as t,Ne as u,we as v,pe as w,B as x,Ce as y};

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.