From 9db729d88e19e8375d670f15a226cf1f2e17c5ab Mon Sep 17 00:00:00 2001 From: Vishal Saranathan Date: Mon, 18 Sep 2023 16:55:03 -0400 Subject: [PATCH] Updates --- assets/index-2b382fc3.js | 1 + assets/index-cd064df5.js | 1 - index.html | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets/index-2b382fc3.js delete mode 100644 assets/index-cd064df5.js diff --git a/assets/index-2b382fc3.js b/assets/index-2b382fc3.js new file mode 100644 index 0000000..5cd5ddb --- /dev/null +++ b/assets/index-2b382fc3.js @@ -0,0 +1 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function i(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=i(n);fetch(n.href,s)}})();const B={},Ee=(e,t)=>e===t,se=Symbol("solid-proxy"),Le=Symbol("solid-track"),J={equals:Ee};let ze=_e;const F=1,X=2,ve={owned:null,cleanups:null,context:null,owner:null};var E=null;let V=null,A=null,L=null,H=null,oe=0;function Y(e,t){const i=A,l=E,n=e.length===0,s=n?ve:{owned:null,cleanups:null,context:null,owner:t===void 0?l:t},o=n?e:()=>e(()=>Z(()=>te(s)));E=s,A=null;try{return G(o,!0)}finally{A=i,E=l}}function j(e,t){t=t?Object.assign({},J,t):J;const i={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},l=n=>(typeof n=="function"&&(n=n(i.value)),me(i,n));return[xe.bind(i),l]}function k(e,t,i){const l=$e(e,t,!1,F);ee(l)}function q(e,t,i){i=i?Object.assign({},J,i):J;const l=$e(e,t,!0,0);return l.observers=null,l.observerSlots=null,l.comparator=i.equals||void 0,ee(l),xe.bind(l)}function Z(e){if(A===null)return e();const t=A;A=null;try{return e()}finally{A=t}}function Pe(e){return E===null||(E.cleanups===null?E.cleanups=[e]:E.cleanups.push(e)),e}function xe(){const e=V;if(this.sources&&(this.state||e))if(this.state===F||e)ee(this);else{const t=L;L=null,G(()=>W(this),!1),L=t}if(A){const t=this.observers?this.observers.length:0;A.sources?(A.sources.push(this),A.sourceSlots.push(t)):(A.sources=[this],A.sourceSlots=[t]),this.observers?(this.observers.push(A),this.observerSlots.push(A.sources.length-1)):(this.observers=[A],this.observerSlots=[A.sources.length-1])}return this.value}function me(e,t,i){let l=e.value;return(!e.comparator||!e.comparator(l,t))&&(e.value=t,e.observers&&e.observers.length&&G(()=>{for(let n=0;n1e6)throw L=[],new Error},!1)),t}function ee(e){if(!e.fn)return;te(e);const t=E,i=A,l=oe;A=E=e,Te(e,e.value,l),A=i,E=t}function Te(e,t,i){let l;try{l=e.fn(t)}catch(n){e.pure&&(e.state=F,e.owned&&e.owned.forEach(te),e.owned=null),pe(n)}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?me(e,l):e.value=l,e.updatedAt=i)}function $e(e,t,i,l=F,n){const s={fn:e,state:l,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:E,context:null,pure:i};return E===null||E!==ve&&(E.owned?E.owned.push(s):E.owned=[s]),s}function ge(e){const t=V;if(e.state===0||t)return;if(e.state===X||t)return W(e);if(e.suspense&&Z(e.suspense.inFallback))return e.suspense.effects.push(e);const i=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;l--)if(e=i[l],e.state===F||t)ee(e);else if(e.state===X||t){const n=L;L=null,G(()=>W(e,i[0]),!1),L=n}}function G(e,t){if(L)return e();let i=!1;t||(L=[]),H?i=!0:H=[],oe++;try{const l=e();return Oe(i),l}catch(l){i||(H=null),L=null,pe(l)}}function Oe(e){if(L&&(_e(L),L=null),e)return;const t=H;H=null,t.length&&G(()=>ze(t),!1)}function _e(e){for(let t=0;t1?[]:null;return Pe(()=>ae(s)),()=>{let u=e()||[],c,a;return u[Le],Z(()=>{let f=u.length,m,h,_,b,y,g,p,C,M;if(f===0)o!==0&&(ae(s),s=[],l=[],n=[],o=0,r&&(r=[])),i.fallback&&(l=[Ve],n[0]=Y(N=>(s[0]=N,i.fallback())),o=1);else if(o===0){for(n=new Array(f),a=0;a=g&&C>=g&&l[p]===u[C];p--,C--)_[C]=n[p],b[C]=s[p],r&&(y[C]=r[p]);for(m=new Map,h=new Array(C+1),a=C;a>=g;a--)M=u[a],c=m.get(M),h[a]=c===void 0?-1:c,m.set(M,a);for(c=g;c<=p;c++)M=l[c],a=m.get(M),a!==void 0&&a!==-1?(_[a]=n[c],b[a]=s[c],r&&(y[a]=r[c]),a=h[a],m.set(M,a)):s[c]();for(a=g;ae(t||{}))}function R(){return!0}const Fe={get(e,t,i){return t===se?i:e.get(t)},has(e,t){return t===se?!0:e.has(t)},set:R,deleteProperty:R,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:R,deleteProperty:R}},ownKeys(e){return e.keys()}};function ne(e){return(e=typeof e=="function"?e():e)?e:{}}function De(...e){let t=!1;for(let l=0;l=0;n--){const s=ne(e[n])[l];if(s!==void 0)return s}},has(l){for(let n=e.length-1;n>=0;n--)if(l in ne(e[n]))return!0;return!1},keys(){const l=[];for(let n=0;n=0;l--)if(e[l]){const n=Object.getOwnPropertyDescriptors(e[l]);for(const s in n)s in i||Object.defineProperty(i,s,{enumerable:!0,get(){for(let o=e.length-1;o>=0;o--){const r=(e[o]||{})[s];if(r!==void 0)return r}}})}return i}function T(e){const t="fallback"in e&&{fallback:()=>e.fallback};return q(He(()=>e.each,e.children,t||void 0))}const Ie=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ue=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ie]),qe=new Set(["innerHTML","textContent","innerText","children"]),Ge=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ce=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Ke=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Re={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Ye(e,t,i){let l=i.length,n=t.length,s=l,o=0,r=0,u=t[n-1].nextSibling,c=null;for(;oa-r){const h=t[o];for(;r{n=s,t===document?e():d(t,e(),t.firstChild?null:void 0,i)},l.owner),()=>{n(),t.textContent=""}}function w(e,t,i){const l=document.createElement("template");l.innerHTML=e;let n=l.content.firstChild;return i&&(n=n.firstChild),n}function ie(e,t=window.document){const i=t[de]||(t[de]=new Set);for(let l=0,n=e.length;ln.call(e,i[1],s))}else e.addEventListener(t,i)}function Qe(e,t,i={}){const l=Object.keys(t||{}),n=Object.keys(i);let s,o;for(s=0,o=n.length;sn.children=U(e,t.children,n.children)),k(()=>t.ref&&t.ref(e)),k(()=>et(e,t,i,!0,n,!0)),n}function d(e,t,i,l){if(i!==void 0&&!l&&(l=[]),typeof t!="function")return U(e,t,l,i);k(n=>U(e,t(),n,i),l)}function et(e,t,i,l,n={},s=!1){t||(t={});for(const o in n)if(!(o in t)){if(o==="children")continue;n[o]=fe(e,o,null,n[o],i,s)}for(const o in t){if(o==="children"){l||U(e,t.children);continue}const r=t[o];n[o]=fe(e,o,r,n[o],i,s)}}function tt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,i)=>i.toUpperCase())}function ue(e,t,i){const l=t.trim().split(/\s+/);for(let n=0,s=l.length;n-1&&Re[t.split(":")[0]];c?Xe(e,c,t,i):S(e,Ge[t]||t,i)}return i}function it(e){const t=`$$${e.type}`;let i=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==i&&Object.defineProperty(e,"target",{configurable:!0,value:i}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return i||document}}),B.registry&&!B.done&&(B.done=!0,document.querySelectorAll("[id^=pl-]").forEach(l=>{for(;l&&l.nodeType!==8&&l.nodeValue!=="pl-"+e;){let n=l.nextSibling;l.remove(),l=n}l&&l.remove()}));i;){const l=i[t];if(l&&!i.disabled){const n=i[`${t}Data`];if(n!==void 0?l.call(i,n,e):l.call(i,e),e.cancelBubble)return}i=i._$host||i.parentNode||i.host}}function U(e,t,i,l,n){for(B.context&&!i&&(i=[...e.childNodes]);typeof i=="function";)i=i();if(t===i)return i;const s=typeof t,o=l!==void 0;if(e=o&&i[0]&&i[0].parentNode||e,s==="string"||s==="number"){if(B.context)return i;if(s==="number"&&(t=t.toString()),o){let r=i[0];r&&r.nodeType===3?r.data=t:r=document.createTextNode(t),i=I(e,i,l,r)}else i!==""&&typeof i=="string"?i=e.firstChild.data=t:i=e.textContent=t}else if(t==null||s==="boolean"){if(B.context)return i;i=I(e,i,l)}else{if(s==="function")return k(()=>{let r=t();for(;typeof r=="function";)r=r();i=U(e,r,i,l)}),()=>i;if(Array.isArray(t)){const r=[],u=i&&Array.isArray(i);if(re(r,t,i,n))return k(()=>i=U(e,r,i,l,!0)),()=>i;if(B.context){if(!r.length)return i;for(let c=0;c=0;o--){const r=t[o];if(n!==r){const u=r.parentNode===e;!s&&!o?u?e.replaceChild(n,r):e.insertBefore(n,i):u&&r.remove()}else s=!0}}else e.insertBefore(n,i);return[n]}const lt=!1;const nt=w('');function P(e){let t=$(e.target).data("link");document.querySelector("#"+t).scrollIntoView({behavior:"smooth"})}function st(){return(()=>{const e=nt.cloneNode(!0),t=e.firstChild,i=t.firstChild,l=i.firstChild,n=l.nextSibling,s=n.firstChild,o=s.firstChild,r=s.nextSibling,u=r.firstChild,c=r.nextSibling,a=c.firstChild,x=c.nextSibling,f=x.firstChild,m=x.nextSibling,h=m.firstChild,_=t.nextSibling,b=_.firstChild,y=b.firstChild,g=y.firstChild,p=y.nextSibling,C=p.firstChild,M=p.nextSibling,N=M.firstChild,z=M.nextSibling,D=z.firstChild,K=z.nextSibling,Me=K.firstChild;return o.$$click=P,u.$$click=P,a.$$click=P,f.$$click=P,h.$$click=P,g.$$click=P,C.$$click=P,N.$$click=P,D.$$click=P,Me.$$click=P,e})()}ie(["click"]);const rt=w(''),ot=w("");function O(e,t){const i=De(e.a,t);return(()=>{const l=rt.cloneNode(!0);return Ze(l,i,!0,!0),d(l,()=>lt,null),d(l,(()=>{const n=q(()=>!!t.title,!0);return()=>n()&&(()=>{const s=ot.cloneNode(!0);return d(s,()=>t.title),s})()})(),null),k(n=>{const s=e.a.stroke,o={...t.style,overflow:"visible",color:t.color||"currentColor"},r=t.size||"1em",u=t.size||"1em",c=e.c;return s!==n._v$&&S(l,"stroke",n._v$=s),n._v$2=ye(l,o,n._v$2),r!==n._v$3&&S(l,"height",n._v$3=r),u!==n._v$4&&S(l,"width",n._v$4=u),c!==n._v$5&&(l.innerHTML=n._v$5=c),n},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),l})()}function at(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ct(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function dt(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ut(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ft(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}const ht=w('
Hey, I am
Vishal Saranathan 
'),vt="https://sauron.onrender.com/sauron/backend";function we(){const[e,t]=j("Loading...");return k(()=>{fetch(vt+"/bio/get").then(i=>i.json()).then(i=>t(i.data.bio))}),(()=>{const i=ht.cloneNode(!0),l=i.firstChild,n=l.nextSibling,s=n.firstChild,o=s.nextSibling;return d(o,v(ut,{size:24,class:" mx-auto"}),null),d(o,v(at,{size:24,class:" mx-auto"}),null),d(o,v(dt,{size:24,class:" mx-auto"}),null),d(o,v(ct,{size:24,class:" mx-auto"}),null),d(o,v(ft,{size:24,class:" mx-auto"}),null),k(()=>s.innerHTML=e()),i})()}const xt=w('
Vishal Saranathan
'),mt=w('
Vishal Saranathan
');function $t(){return(()=>{const e=xt.cloneNode(!0),t=e.firstChild,i=t.nextSibling;return d(i,v(we,{})),e})()}function gt(){return(()=>{const e=mt.cloneNode(!0),t=e.firstChild,i=t.firstChild,l=i.nextSibling,n=l.firstChild;return d(n,v(we,{})),e})()}const _t=w('
'),bt=w('
    '),pt=w('
  • '),yt=w('
    Experience
    '),wt=w(''),Ct=w('
    Experience
    '),St=w(''),Ce="https://sauron.onrender.com/sauron/backend";function Se(e,t){return e=new Date(e),t=t?new Date(t):null,[["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],e.getFullYear(),"(",t!=null?Math.floor((t-e)/(1e3*60*60*24*30)):"Present",t!=null?"months":"",")"].join(" ")}function kt(e){return(()=>{const t=_t.cloneNode(!0);return d(t,()=>e.item),t})()}function ke(e){const t="https://sauron-data.s3.amazonaws.com/experiences/";return(()=>{const i=bt.cloneNode(!0),l=i.firstChild,n=l.firstChild,s=n.firstChild,o=s.firstChild,r=n.nextSibling,u=r.firstChild,c=u.firstChild,a=c.nextSibling,x=a.firstChild,f=x.nextSibling,m=f.nextSibling,h=m.nextSibling;h.nextSibling;const _=l.nextSibling,b=_.firstChild,y=_.nextSibling;return d(c,()=>e.role),d(a,()=>e.company,x),d(a,()=>e.type,f),d(a,()=>e.location,h),d(a,()=>e.duration,null),d(b,v(T,{get each(){return e.desc.split("*")},children:g=>(()=>{const p=pt.cloneNode(!0);return p.firstChild,d(p,g,null),p})()})),d(y,v(T,{get each(){return e.tech.split(";")},children:g=>v(kt,{item:g})})),k(g=>{const p=t+e.logo,C=e.company;return p!==g._v$&&S(o,"src",g._v$=p),C!==g._v$2&&S(o,"alt",g._v$2=C),g},{_v$:void 0,_v$2:void 0}),i})()}function At(){const[e,t]=j(),[i,l]=j();k(()=>{fetch(Ce+"/exp/get/all").then(s=>s.json()).then(s=>{t(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=yt.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild;return d(a,v(T,{get each(){return e()},children:(x,f)=>(()=>{const m=wt.cloneNode(!0),h=m.firstChild,_=h.firstChild;return h.$$click=n,d(h,()=>f()+1,_),k(b=>{const y=f(),g=f()==0?"exp-link text-accent":"exp-link text-primary";return y!==b._v$3&&S(h,"data-exp",b._v$3=y),g!==b._v$4&&le(h,b._v$4=g),b},{_v$3:void 0,_v$4:void 0}),m})()})),d(c,(()=>{const x=q(()=>!!i());return()=>x()?v(ke,{get role(){return i().role},get company(){return i().company},get type(){return i().job_type},get location(){return i().location},get duration(){return Se(i().start_date,i().end_date)},get logo(){return i().logo},get desc(){return i().desc},get tech(){return i().tech}}):""})(),null),s})()}function Nt(){const[e,t]=j(),[i,l]=j();k(()=>{fetch(Ce+"/exp/get/all").then(s=>s.json()).then(s=>{t(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=Ct.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild,x=a.nextSibling;return d(a,v(T,{get each(){return e()},children:(f,m)=>(()=>{const h=St.cloneNode(!0),_=h.firstChild,b=_.firstChild;return _.$$click=n,d(_,()=>m()+1,b),k(y=>{const g=m(),p=m()==0?"exp-link text-accent":"exp-link text-primary";return g!==y._v$5&&S(_,"data-exp",y._v$5=g),p!==y._v$6&&le(_,y._v$6=p),y},{_v$5:void 0,_v$6:void 0}),h})()})),d(x,(()=>{const f=q(()=>!!i());return()=>f()?v(ke,{get role(){return i().role},get company(){return i().company},get type(){return i().job_type},get location(){return i().location},get duration(){return Se(i().start_date,i().end_date)},get logo(){return i().logo},get desc(){return i().desc},get tech(){return i().tech}}):""})()),s})()}ie(["click"]);const jt=w('
    ,

    '),Mt=w('
    Education
    '),Et=w('
    Education
    ');function Q(e){const[t,i]=j(e.initialLogo),[l,n]=j(e.initialDegree),[s,o]=j(e.initialUniversity),[r,u]=j(e.initialLocation),[c,a]=j(e.initialMajor),[x,f]=j(e.initialSpecialization);return(()=>{const m=jt.cloneNode(!0),h=m.firstChild,_=h.firstChild,b=_.firstChild,y=h.nextSibling,g=y.firstChild,p=g.firstChild,C=p.nextSibling,M=C.firstChild,N=C.nextSibling,z=N.firstChild;return z.nextSibling,d(p,l),d(C,s,M),d(C,r,null),d(N,c,z),d(N,(()=>{const D=q(()=>!!x());return()=>D()?"Specialization - "+x():""})(),null),k(()=>S(b,"src",t())),m})()}function Lt(){return(()=>{const e=Mt.cloneNode(!0),t=e.firstChild,i=t.firstChild,l=i.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(o,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}function zt(){return(()=>{const e=Et.cloneNode(!0),t=e.firstChild,i=t.firstChild,l=i.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(r,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}const Pt=w('
    Projects

    Visit my Github to view all my projects

    '),Tt=w(''),Ot=w(""),Bt=w('
    Projects

    Visit my Github to view all my projects

    '),Vt=w(''),Ae="https://sauron.onrender.com/sauron/backend";function Ht(){const[e,t]=j();k(()=>{fetch(Ae+"/project/get/all").then(l=>l.json()).then(l=>{t(l)})});const i=l=>{$(".proj-btn").each(function(n){$(this).removeClass("btn-accent"),$(this).hasClass("btn-primary")||$(this).addClass("btn-primary")}),$(l.target).addClass("btn-accent"),$(l.target).removeClass("btn-primary")};return(()=>{const l=Pt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling,c=u.nextSibling;return d(u,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Tt.cloneNode(!0),m=f.firstChild,h=m.firstChild,_=h.firstChild,b=_.nextSibling,y=b.firstChild,g=b.nextSibling,p=g.firstChild,C=p.firstChild,M=C.nextSibling;return d(_,()=>a.data.title),k(N=>{const z="item"+(x()+1),D=a.data.desc,K=a.data.link;return z!==N._v$&&S(f,"id",N._v$=z),D!==N._v$2&&(y.innerHTML=N._v$2=D),K!==N._v$3&&S(M,"href",N._v$3=K),N},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),d(c,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Ot.cloneNode(!0);return f.$$click=i,d(f,()=>x()+1),k(m=>{const h="#item"+(x()+1).toString(),_=x()==0?"btn btn-accent btn-xs proj-btn":"btn btn-primary btn-xs proj-btn",b=x();return h!==m._v$4&&S(f,"href",m._v$4=h),_!==m._v$5&&le(f,m._v$5=_),b!==m._v$6&&S(f,"data-project",m._v$6=b),m},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),f})()})),l})()}function Ft(){const[e,t]=j();return k(()=>{fetch(Ae+"/project/get/all").then(i=>i.json()).then(i=>{t(i)})}),(()=>{const i=Bt.cloneNode(!0),l=i.firstChild,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=o.nextSibling;return d(r,v(T,{get each(){return e()},children:(u,c)=>(()=>{const a=Vt.cloneNode(!0),x=a.firstChild,f=x.firstChild,m=f.firstChild,h=m.nextSibling,_=h.firstChild,b=h.nextSibling,y=b.firstChild,g=y.firstChild,p=g.nextSibling;return d(m,()=>u.data.title),k(C=>{const M=c(),N=u.data.desc,z=u.data.link;return M!==C._v$7&&S(f,"data-project",C._v$7=M),N!==C._v$8&&(_.innerHTML=C._v$8=N),z!==C._v$9&&S(p,"href",C._v$9=z),C},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),a})()})),i})()}ie(["click"]);const Dt=w('
    Gallery

    An aimless wanderlust, marking my presence in wonderlands!
    Do check out my page _vishal_here_ for more of my photomania.

    '),It=w(''),Ut=w('
    Gallery

    An aimless wanderlust, marking my presence in wonderlands!
    Do check out my page _vishal_here_ for more of my photomania.

    '),qt=w('
    '),Ne="https://sauron.onrender.com/sauron/backend";function Gt(){const e="https://sauron-data.s3.amazonaws.com/photography/",[t,i]=j();return k(()=>{fetch(Ne+"/photo/get/all").then(l=>l.json()).then(l=>[i(l)])}),(()=>{const l=Dt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.firstChild,c=u.nextSibling;return d(c,v(T,{get each(){return t()},children:(a,x)=>(()=>{const f=It.cloneNode(!0),m=f.firstChild,h=m.firstChild;return k(_=>{const b=e+a.data.photo_url,y=e+a.data.photo_url,g=a.data.photo_name;return b!==_._v$&&S(m,"href",_._v$=b),y!==_._v$2&&S(h,"src",_._v$2=y),g!==_._v$3&&S(h,"alt",_._v$3=g),_},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),l})()}function Kt(){const e="https://sauron-data.s3.amazonaws.com/photography/",[t,i]=j();return k(()=>{fetch(Ne+"/photo/get/all").then(l=>l.json()).then(l=>[i(l)])}),(()=>{const l=Ut.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling;return d(u,v(T,{get each(){return t()},children:(c,a)=>(()=>{const x=qt.cloneNode(!0),f=x.firstChild,m=f.firstChild,h=m.firstChild,_=h.firstChild;return k(b=>{const y=e+c.data.photo_url,g=e+c.data.photo_url,p=c.data.photo_name;return y!==b._v$4&&S(h,"href",b._v$4=y),g!==b._v$5&&S(_,"src",b._v$5=g),p!==b._v$6&&S(_,"alt",b._v$6=p),b},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),x})()})),l})()}const Rt=w('

    Handcrafted with by Me

    ');function je(){return Rt.cloneNode(!0)}const Yt=w('
    '),Jt=w('
    ');function Xt(){return(()=>{const e=Yt.cloneNode(!0);return d(e,v($t,{}),null),d(e,v(At,{}),null),d(e,v(zt,{}),null),d(e,v(Ht,{}),null),d(e,v(Gt,{}),null),d(e,v(je,{}),null),e})()}function Wt(){return(()=>{const e=Jt.cloneNode(!0);return d(e,v(gt,{}),null),d(e,v(Nt,{}),null),d(e,v(Lt,{}),null),d(e,v(Ft,{}),null),d(e,v(Kt,{}),null),d(e,v(je,{}),null),e})()}function Qt(e){return O({a:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},c:''},e)}function Zt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ei(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ti(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ii(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}const li=w('
    '),ni="https://sauron.onrender.com/sauron/backend";function si(){const[e,t]=j();return k(()=>{fetch(ni+"/link/get/all").then(i=>i.json()).then(i=>{t(i)})}),(()=>{const i=li.cloneNode(!0),l=i.firstChild,n=l.nextSibling,s=n.firstChild,o=n.nextSibling,r=o.firstChild,u=o.nextSibling,c=u.firstChild,a=u.nextSibling,x=a.firstChild,f=a.nextSibling,m=f.firstChild;return d(s,v(Qt,{size:24,class:"stroke-primary hover:fill-accent"})),d(r,v(Zt,{size:24,class:"stroke-primary hover:fill-accent"})),d(c,v(ii,{size:24,class:"stroke-primary hover:fill-accent"})),d(x,v(ei,{size:24,class:"stroke-primary hover:fill-accent"})),d(m,v(ti,{size:24,class:"stroke-primary hover:fill-accent"})),k(h=>{const _=e()?"mailto:"+e()[1].data.link:"#",b=e()?e()[3].data.link:"#",y=e()?e()[4].data.link:"#",g=e()?e()[0].data.link:"#",p=e()?e()[2].data.link:"#";return _!==h._v$&&S(s,"href",h._v$=_),b!==h._v$2&&S(r,"href",h._v$2=b),y!==h._v$3&&S(c,"href",h._v$3=y),g!==h._v$4&&S(x,"href",h._v$4=g),p!==h._v$5&&S(m,"href",h._v$5=p),h},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),i})()}const ri=w('
    '),oi=w('
    '),ai="https://sauron.onrender.com/sauron/backend";function ci(){const e="https://sauron-data.s3.amazonaws.com/associations/",[t,i]=j();return k(()=>{fetch(ai+"/association/get/all").then(l=>l.json()).then(l=>i(l))}),(()=>{const l=ri.cloneNode(!0),n=l.firstChild,s=n.firstChild;return d(n,v(T,{get each(){return t()},children:(o,r)=>(()=>{const u=oi.cloneNode(!0),c=u.firstChild;return c.style.setProperty("filter","sepia(100%) hue-rotate(170deg) saturate(3)"),k(a=>{const x=e+o.data.url,f=o.data.name;return x!==a._v$&&S(c,"src",a._v$=x),f!==a._v$2&&S(c,"alt",a._v$2=f),a},{_v$:void 0,_v$2:void 0}),u})()}),s),l})()}const di=w('
    ');function ui(){return(()=>{const e=di.cloneNode(!0),t=e.firstChild,i=t.nextSibling,l=i.nextSibling,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=s.nextSibling;return d(t,v(st,{})),d(i,v(Xt,{})),d(n,v(si,{})),d(o,v(Wt,{})),d(r,v(ci,{})),e})()}const fi=document.getElementById("root");Je(()=>v(ui,{}),fi); diff --git a/assets/index-cd064df5.js b/assets/index-cd064df5.js deleted file mode 100644 index b45b1bc..0000000 --- a/assets/index-cd064df5.js +++ /dev/null @@ -1 +0,0 @@ -(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();const B={},Me=(e,i)=>e===i,se=Symbol("solid-proxy"),Ee=Symbol("solid-track"),J={equals:Me};let Le=_e;const H=1,X=2,ve={owned:null,cleanups:null,context:null,owner:null};var E=null;let V=null,A=null,L=null,D=null,oe=0;function Y(e,i){const t=A,l=E,n=e.length===0,s=n?ve:{owned:null,cleanups:null,context:null,owner:i===void 0?l:i},o=n?e:()=>e(()=>Z(()=>te(s)));E=s,A=null;try{return G(o,!0)}finally{A=t,E=l}}function j(e,i){i=i?Object.assign({},J,i):J;const t={value:e,observers:null,observerSlots:null,comparator:i.equals||void 0},l=n=>(typeof n=="function"&&(n=n(t.value)),me(t,n));return[xe.bind(t),l]}function k(e,i,t){const l=$e(e,i,!1,H);ee(l)}function q(e,i,t){t=t?Object.assign({},J,t):J;const l=$e(e,i,!0,0);return l.observers=null,l.observerSlots=null,l.comparator=t.equals||void 0,ee(l),xe.bind(l)}function Z(e){if(A===null)return e();const i=A;A=null;try{return e()}finally{A=i}}function ze(e){return E===null||(E.cleanups===null?E.cleanups=[e]:E.cleanups.push(e)),e}function xe(){const e=V;if(this.sources&&(this.state||e))if(this.state===H||e)ee(this);else{const i=L;L=null,G(()=>W(this),!1),L=i}if(A){const i=this.observers?this.observers.length:0;A.sources?(A.sources.push(this),A.sourceSlots.push(i)):(A.sources=[this],A.sourceSlots=[i]),this.observers?(this.observers.push(A),this.observerSlots.push(A.sources.length-1)):(this.observers=[A],this.observerSlots=[A.sources.length-1])}return this.value}function me(e,i,t){let l=e.value;return(!e.comparator||!e.comparator(l,i))&&(e.value=i,e.observers&&e.observers.length&&G(()=>{for(let n=0;n1e6)throw L=[],new Error},!1)),i}function ee(e){if(!e.fn)return;te(e);const i=E,t=A,l=oe;A=E=e,Pe(e,e.value,l),A=t,E=i}function Pe(e,i,t){let l;try{l=e.fn(i)}catch(n){e.pure&&(e.state=H,e.owned&&e.owned.forEach(te),e.owned=null),pe(n)}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?me(e,l):e.value=l,e.updatedAt=t)}function $e(e,i,t,l=H,n){const s={fn:e,state:l,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:i,owner:E,context:null,pure:t};return E===null||E!==ve&&(E.owned?E.owned.push(s):E.owned=[s]),s}function ge(e){const i=V;if(e.state===0||i)return;if(e.state===X||i)return W(e);if(e.suspense&&Z(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;l--)if(e=t[l],e.state===H||i)ee(e);else if(e.state===X||i){const n=L;L=null,G(()=>W(e,t[0]),!1),L=n}}function G(e,i){if(L)return e();let t=!1;i||(L=[]),D?t=!0:D=[],oe++;try{const l=e();return Te(t),l}catch(l){t||(D=null),L=null,pe(l)}}function Te(e){if(L&&(_e(L),L=null),e)return;const i=D;D=null,i.length&&G(()=>Le(i),!1)}function _e(e){for(let i=0;i1?[]:null;return ze(()=>ae(s)),()=>{let u=e()||[],c,a;return u[Ee],Z(()=>{let f=u.length,m,h,_,b,y,g,p,C,M;if(f===0)o!==0&&(ae(s),s=[],l=[],n=[],o=0,r&&(r=[])),t.fallback&&(l=[Be],n[0]=Y(N=>(s[0]=N,t.fallback())),o=1);else if(o===0){for(n=new Array(f),a=0;a=g&&C>=g&&l[p]===u[C];p--,C--)_[C]=n[p],b[C]=s[p],r&&(y[C]=r[p]);for(m=new Map,h=new Array(C+1),a=C;a>=g;a--)M=u[a],c=m.get(M),h[a]=c===void 0?-1:c,m.set(M,a);for(c=g;c<=p;c++)M=l[c],a=m.get(M),a!==void 0&&a!==-1?(_[a]=n[c],b[a]=s[c],r&&(y[a]=r[c]),a=h[a],m.set(M,a)):s[c]();for(a=g;ae(i||{}))}function R(){return!0}const De={get(e,i,t){return i===se?t:e.get(i)},has(e,i){return i===se?!0:e.has(i)},set:R,deleteProperty:R,getOwnPropertyDescriptor(e,i){return{configurable:!0,enumerable:!0,get(){return e.get(i)},set:R,deleteProperty:R}},ownKeys(e){return e.keys()}};function ne(e){return(e=typeof e=="function"?e():e)?e:{}}function He(...e){let i=!1;for(let l=0;l=0;n--){const s=ne(e[n])[l];if(s!==void 0)return s}},has(l){for(let n=e.length-1;n>=0;n--)if(l in ne(e[n]))return!0;return!1},keys(){const l=[];for(let n=0;n=0;l--)if(e[l]){const n=Object.getOwnPropertyDescriptors(e[l]);for(const s in n)s in t||Object.defineProperty(t,s,{enumerable:!0,get(){for(let o=e.length-1;o>=0;o--){const r=(e[o]||{})[s];if(r!==void 0)return r}}})}return t}function T(e){const i="fallback"in e&&{fallback:()=>e.fallback};return q(Ve(()=>e.each,e.children,i||void 0))}const Fe=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ie=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Fe]),Ue=new Set(["innerHTML","textContent","innerText","children"]),qe=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ce=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Ge=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ke={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Re(e,i,t){let l=t.length,n=i.length,s=l,o=0,r=0,u=i[n-1].nextSibling,c=null;for(;oa-r){const h=i[o];for(;r{n=s,i===document?e():d(i,e(),i.firstChild?null:void 0,t)},l.owner),()=>{n(),i.textContent=""}}function w(e,i,t){const l=document.createElement("template");l.innerHTML=e;let n=l.content.firstChild;return t&&(n=n.firstChild),n}function ie(e,i=window.document){const t=i[de]||(i[de]=new Set);for(let l=0,n=e.length;ln.call(e,t[1],s))}else e.addEventListener(i,t)}function We(e,i,t={}){const l=Object.keys(i||{}),n=Object.keys(t);let s,o;for(s=0,o=n.length;sn.children=U(e,i.children,n.children)),k(()=>i.ref&&i.ref(e)),k(()=>Ze(e,i,t,!0,n,!0)),n}function d(e,i,t,l){if(t!==void 0&&!l&&(l=[]),typeof i!="function")return U(e,i,l,t);k(n=>U(e,i(),n,t),l)}function Ze(e,i,t,l,n={},s=!1){i||(i={});for(const o in n)if(!(o in i)){if(o==="children")continue;n[o]=fe(e,o,null,n[o],t,s)}for(const o in i){if(o==="children"){l||U(e,i.children);continue}const r=i[o];n[o]=fe(e,o,r,n[o],t,s)}}function et(e){return e.toLowerCase().replace(/-([a-z])/g,(i,t)=>t.toUpperCase())}function ue(e,i,t){const l=i.trim().split(/\s+/);for(let n=0,s=l.length;n-1&&Ke[i.split(":")[0]];c?Je(e,c,i,t):S(e,qe[i]||i,t)}return t}function tt(e){const i=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),B.registry&&!B.done&&(B.done=!0,document.querySelectorAll("[id^=pl-]").forEach(l=>{for(;l&&l.nodeType!==8&&l.nodeValue!=="pl-"+e;){let n=l.nextSibling;l.remove(),l=n}l&&l.remove()}));t;){const l=t[i];if(l&&!t.disabled){const n=t[`${i}Data`];if(n!==void 0?l.call(t,n,e):l.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function U(e,i,t,l,n){for(B.context&&!t&&(t=[...e.childNodes]);typeof t=="function";)t=t();if(i===t)return t;const s=typeof i,o=l!==void 0;if(e=o&&t[0]&&t[0].parentNode||e,s==="string"||s==="number"){if(B.context)return t;if(s==="number"&&(i=i.toString()),o){let r=t[0];r&&r.nodeType===3?r.data=i:r=document.createTextNode(i),t=I(e,t,l,r)}else t!==""&&typeof t=="string"?t=e.firstChild.data=i:t=e.textContent=i}else if(i==null||s==="boolean"){if(B.context)return t;t=I(e,t,l)}else{if(s==="function")return k(()=>{let r=i();for(;typeof r=="function";)r=r();t=U(e,r,t,l)}),()=>t;if(Array.isArray(i)){const r=[],u=t&&Array.isArray(t);if(re(r,i,t,n))return k(()=>t=U(e,r,t,l,!0)),()=>t;if(B.context){if(!r.length)return t;for(let c=0;c=0;o--){const r=i[o];if(n!==r){const u=r.parentNode===e;!s&&!o?u?e.replaceChild(n,r):e.insertBefore(n,t):u&&r.remove()}else s=!0}}else e.insertBefore(n,t);return[n]}const it=!1;const lt=w('');function P(e){let i=$(e.target).data("link");document.querySelector("#"+i).scrollIntoView({behavior:"smooth"})}function nt(){return(()=>{const e=lt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=s.firstChild,r=s.nextSibling,u=r.firstChild,c=r.nextSibling,a=c.firstChild,x=c.nextSibling,f=x.firstChild,m=x.nextSibling,h=m.firstChild,_=i.nextSibling,b=_.firstChild,y=b.firstChild,g=y.firstChild,p=y.nextSibling,C=p.firstChild,M=p.nextSibling,N=M.firstChild,z=M.nextSibling,F=z.firstChild,K=z.nextSibling,je=K.firstChild;return o.$$click=P,u.$$click=P,a.$$click=P,f.$$click=P,h.$$click=P,g.$$click=P,C.$$click=P,N.$$click=P,F.$$click=P,je.$$click=P,e})()}ie(["click"]);const st=w(''),rt=w("");function O(e,i){const t=He(e.a,i);return(()=>{const l=st.cloneNode(!0);return Qe(l,t,!0,!0),d(l,()=>it,null),d(l,(()=>{const n=q(()=>!!i.title,!0);return()=>n()&&(()=>{const s=rt.cloneNode(!0);return d(s,()=>i.title),s})()})(),null),k(n=>{const s=e.a.stroke,o={...i.style,overflow:"visible",color:i.color||"currentColor"},r=i.size||"1em",u=i.size||"1em",c=e.c;return s!==n._v$&&S(l,"stroke",n._v$=s),n._v$2=ye(l,o,n._v$2),r!==n._v$3&&S(l,"height",n._v$3=r),u!==n._v$4&&S(l,"width",n._v$4=u),c!==n._v$5&&(l.innerHTML=n._v$5=c),n},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),l})()}function ot(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function at(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ct(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function dt(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ut(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}const ft=w('
    Hey, I am
    Vishal Saranathan 
    '),ht="https://sauron.onrender.com/sauron/backend";function we(){const[e,i]=j("Loading...");return k(()=>{fetch(ht+"/bio/get").then(t=>t.json()).then(t=>i(t.data.bio))}),(()=>{const t=ft.cloneNode(!0),l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=s.nextSibling;return d(o,v(dt,{size:24,class:" mx-auto"}),null),d(o,v(ot,{size:24,class:" mx-auto"}),null),d(o,v(ct,{size:24,class:" mx-auto"}),null),d(o,v(at,{size:24,class:" mx-auto"}),null),d(o,v(ut,{size:24,class:" mx-auto"}),null),k(()=>s.innerHTML=e()),t})()}const vt=w('
    Vishal Saranathan
    '),xt=w('
    Vishal Saranathan
    ');function mt(){return(()=>{const e=vt.cloneNode(!0),i=e.firstChild,t=i.nextSibling;return d(t,v(we,{})),e})()}function $t(){return(()=>{const e=xt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild;return d(n,v(we,{})),e})()}const gt=w('
    '),_t=w('
      '),bt=w('
    • '),pt=w('
      Experience
      '),yt=w(''),wt=w('
      Experience
      '),Ct=w(''),Ce="https://sauron.onrender.com/sauron/backend";function St(e,i){return e=new Date(e),i=i?new Date(i):null,[["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],e.getFullYear(),"(",i!=null?Math.floor((i-e)/(1e3*60*60*24*30)):"Present",i!=null?"months":"",")"].join(" ")}function kt(e){return(()=>{const i=gt.cloneNode(!0);return d(i,()=>e.item),i})()}function Se(e){const i="https://sauron-data.s3.amazonaws.com/experiences/";return(()=>{const t=_t.cloneNode(!0),l=t.firstChild,n=l.firstChild,s=n.firstChild,o=s.firstChild,r=n.nextSibling,u=r.firstChild,c=u.firstChild,a=c.nextSibling,x=a.firstChild,f=x.nextSibling,m=f.nextSibling,h=m.nextSibling;h.nextSibling;const _=l.nextSibling,b=_.firstChild,y=_.nextSibling;return d(c,()=>e.role),d(a,()=>e.company,x),d(a,()=>e.type,f),d(a,()=>e.location,h),d(a,()=>e.duration,null),d(b,v(T,{get each(){return e.desc.split("*")},children:g=>(()=>{const p=bt.cloneNode(!0);return p.firstChild,d(p,g,null),p})()})),d(y,v(T,{get each(){return e.tech.split(";")},children:g=>v(kt,{item:g})})),k(g=>{const p=i+e.logo,C=e.company;return p!==g._v$&&S(o,"src",g._v$=p),C!==g._v$2&&S(o,"alt",g._v$2=C),g},{_v$:void 0,_v$2:void 0}),t})()}function At(){const[e,i]=j(),[t,l]=j();k(()=>{fetch(Ce+"/exp/get/all").then(s=>s.json()).then(s=>{i(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=pt.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild;return d(a,v(T,{get each(){return e()},children:(x,f)=>(()=>{const m=yt.cloneNode(!0),h=m.firstChild,_=h.firstChild;return h.$$click=n,d(h,()=>f()+1,_),k(b=>{const y=f(),g=f()==0?"exp-link text-accent":"exp-link text-primary";return y!==b._v$3&&S(h,"data-exp",b._v$3=y),g!==b._v$4&&le(h,b._v$4=g),b},{_v$3:void 0,_v$4:void 0}),m})()})),d(c,(()=>{const x=q(()=>!!t());return()=>x()?v(Se,{get role(){return t().role},get company(){return t().company},get type(){return t().job_type},get location(){return t().location},get duration(){return t().start_date+" ("+Math.floor(new Date(t().end_date)-new Date(t().start_date)/(1e3*60*60*24*30))},get logo(){return t().logo},get desc(){return t().desc},get tech(){return t().tech}}):""})(),null),s})()}function Nt(){const[e,i]=j(),[t,l]=j();k(()=>{fetch(Ce+"/exp/get/all").then(s=>s.json()).then(s=>{i(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=wt.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild,x=a.nextSibling;return d(a,v(T,{get each(){return e()},children:(f,m)=>(()=>{const h=Ct.cloneNode(!0),_=h.firstChild,b=_.firstChild;return _.$$click=n,d(_,()=>m()+1,b),k(y=>{const g=m(),p=m()==0?"exp-link text-accent":"exp-link text-primary";return g!==y._v$5&&S(_,"data-exp",y._v$5=g),p!==y._v$6&&le(_,y._v$6=p),y},{_v$5:void 0,_v$6:void 0}),h})()})),d(x,(()=>{const f=q(()=>!!t());return()=>f()?v(Se,{get role(){return t().role},get company(){return t().company},get type(){return t().job_type},get location(){return t().location},get duration(){return St(t().start_date,t().end_date)},get logo(){return t().logo},get desc(){return t().desc},get tech(){return t().tech}}):""})()),s})()}ie(["click"]);const jt=w('
      ,

      '),Mt=w('
      Education
      '),Et=w('
      Education
      ');function Q(e){const[i,t]=j(e.initialLogo),[l,n]=j(e.initialDegree),[s,o]=j(e.initialUniversity),[r,u]=j(e.initialLocation),[c,a]=j(e.initialMajor),[x,f]=j(e.initialSpecialization);return(()=>{const m=jt.cloneNode(!0),h=m.firstChild,_=h.firstChild,b=_.firstChild,y=h.nextSibling,g=y.firstChild,p=g.firstChild,C=p.nextSibling,M=C.firstChild,N=C.nextSibling,z=N.firstChild;return z.nextSibling,d(p,l),d(C,s,M),d(C,r,null),d(N,c,z),d(N,(()=>{const F=q(()=>!!x());return()=>F()?"Specialization - "+x():""})(),null),k(()=>S(b,"src",i())),m})()}function Lt(){return(()=>{const e=Mt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(o,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}function zt(){return(()=>{const e=Et.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(r,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}const Pt=w('
      Projects

      Visit my Github to view all my projects

      '),Tt=w(''),Ot=w(""),Bt=w('
      Projects

      Visit my Github to view all my projects

      '),Vt=w(''),ke="https://sauron.onrender.com/sauron/backend";function Dt(){const[e,i]=j();k(()=>{fetch(ke+"/project/get/all").then(l=>l.json()).then(l=>{i(l)})});const t=l=>{$(".proj-btn").each(function(n){$(this).removeClass("btn-accent"),$(this).hasClass("btn-primary")||$(this).addClass("btn-primary")}),$(l.target).addClass("btn-accent"),$(l.target).removeClass("btn-primary")};return(()=>{const l=Pt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling,c=u.nextSibling;return d(u,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Tt.cloneNode(!0),m=f.firstChild,h=m.firstChild,_=h.firstChild,b=_.nextSibling,y=b.firstChild,g=b.nextSibling,p=g.firstChild,C=p.firstChild,M=C.nextSibling;return d(_,()=>a.data.title),k(N=>{const z="item"+(x()+1),F=a.data.desc,K=a.data.link;return z!==N._v$&&S(f,"id",N._v$=z),F!==N._v$2&&(y.innerHTML=N._v$2=F),K!==N._v$3&&S(M,"href",N._v$3=K),N},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),d(c,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Ot.cloneNode(!0);return f.$$click=t,d(f,()=>x()+1),k(m=>{const h="#item"+(x()+1).toString(),_=x()==0?"btn btn-accent btn-xs proj-btn":"btn btn-primary btn-xs proj-btn",b=x();return h!==m._v$4&&S(f,"href",m._v$4=h),_!==m._v$5&&le(f,m._v$5=_),b!==m._v$6&&S(f,"data-project",m._v$6=b),m},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),f})()})),l})()}function Ht(){const[e,i]=j();return k(()=>{fetch(ke+"/project/get/all").then(t=>t.json()).then(t=>{i(t)})}),(()=>{const t=Bt.cloneNode(!0),l=t.firstChild,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=o.nextSibling;return d(r,v(T,{get each(){return e()},children:(u,c)=>(()=>{const a=Vt.cloneNode(!0),x=a.firstChild,f=x.firstChild,m=f.firstChild,h=m.nextSibling,_=h.firstChild,b=h.nextSibling,y=b.firstChild,g=y.firstChild,p=g.nextSibling;return d(m,()=>u.data.title),k(C=>{const M=c(),N=u.data.desc,z=u.data.link;return M!==C._v$7&&S(f,"data-project",C._v$7=M),N!==C._v$8&&(_.innerHTML=C._v$8=N),z!==C._v$9&&S(p,"href",C._v$9=z),C},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),a})()})),t})()}ie(["click"]);const Ft=w('
      Gallery

      An aimless wanderlust, marking my presence in wonderlands!
      Do check out my page _vishal_here_ for more of my photomania.

      '),It=w(''),Ut=w('
      Gallery

      An aimless wanderlust, marking my presence in wonderlands!
      Do check out my page _vishal_here_ for more of my photomania.

      '),qt=w('
      '),Ae="https://sauron.onrender.com/sauron/backend";function Gt(){const e="https://sauron-data.s3.amazonaws.com/photography/",[i,t]=j();return k(()=>{fetch(Ae+"/photo/get/all").then(l=>l.json()).then(l=>[t(l)])}),(()=>{const l=Ft.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.firstChild,c=u.nextSibling;return d(c,v(T,{get each(){return i()},children:(a,x)=>(()=>{const f=It.cloneNode(!0),m=f.firstChild,h=m.firstChild;return k(_=>{const b=e+a.data.photo_url,y=e+a.data.photo_url,g=a.data.photo_name;return b!==_._v$&&S(m,"href",_._v$=b),y!==_._v$2&&S(h,"src",_._v$2=y),g!==_._v$3&&S(h,"alt",_._v$3=g),_},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),l})()}function Kt(){const e="https://sauron-data.s3.amazonaws.com/photography/",[i,t]=j();return k(()=>{fetch(Ae+"/photo/get/all").then(l=>l.json()).then(l=>[t(l)])}),(()=>{const l=Ut.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling;return d(u,v(T,{get each(){return i()},children:(c,a)=>(()=>{const x=qt.cloneNode(!0),f=x.firstChild,m=f.firstChild,h=m.firstChild,_=h.firstChild;return k(b=>{const y=e+c.data.photo_url,g=e+c.data.photo_url,p=c.data.photo_name;return y!==b._v$4&&S(h,"href",b._v$4=y),g!==b._v$5&&S(_,"src",b._v$5=g),p!==b._v$6&&S(_,"alt",b._v$6=p),b},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),x})()})),l})()}const Rt=w('

      Handcrafted with by Me

      ');function Ne(){return Rt.cloneNode(!0)}const Yt=w('
      '),Jt=w('
      ');function Xt(){return(()=>{const e=Yt.cloneNode(!0);return d(e,v(mt,{}),null),d(e,v(At,{}),null),d(e,v(zt,{}),null),d(e,v(Dt,{}),null),d(e,v(Gt,{}),null),d(e,v(Ne,{}),null),e})()}function Wt(){return(()=>{const e=Jt.cloneNode(!0);return d(e,v($t,{}),null),d(e,v(Nt,{}),null),d(e,v(Lt,{}),null),d(e,v(Ht,{}),null),d(e,v(Kt,{}),null),d(e,v(Ne,{}),null),e})()}function Qt(e){return O({a:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},c:''},e)}function Zt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ei(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ti(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ii(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}const li=w('
      '),ni="https://sauron.onrender.com/sauron/backend";function si(){const[e,i]=j();return k(()=>{fetch(ni+"/link/get/all").then(t=>t.json()).then(t=>{i(t)})}),(()=>{const t=li.cloneNode(!0),l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=n.nextSibling,r=o.firstChild,u=o.nextSibling,c=u.firstChild,a=u.nextSibling,x=a.firstChild,f=a.nextSibling,m=f.firstChild;return d(s,v(Qt,{size:24,class:"stroke-primary hover:fill-accent"})),d(r,v(Zt,{size:24,class:"stroke-primary hover:fill-accent"})),d(c,v(ii,{size:24,class:"stroke-primary hover:fill-accent"})),d(x,v(ei,{size:24,class:"stroke-primary hover:fill-accent"})),d(m,v(ti,{size:24,class:"stroke-primary hover:fill-accent"})),k(h=>{const _=e()?"mailto:"+e()[1].data.link:"#",b=e()?e()[3].data.link:"#",y=e()?e()[4].data.link:"#",g=e()?e()[0].data.link:"#",p=e()?e()[2].data.link:"#";return _!==h._v$&&S(s,"href",h._v$=_),b!==h._v$2&&S(r,"href",h._v$2=b),y!==h._v$3&&S(c,"href",h._v$3=y),g!==h._v$4&&S(x,"href",h._v$4=g),p!==h._v$5&&S(m,"href",h._v$5=p),h},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),t})()}const ri=w('
      '),oi=w('
      '),ai="https://sauron.onrender.com/sauron/backend";function ci(){const e="https://sauron-data.s3.amazonaws.com/associations/",[i,t]=j();return k(()=>{fetch(ai+"/association/get/all").then(l=>l.json()).then(l=>t(l))}),(()=>{const l=ri.cloneNode(!0),n=l.firstChild,s=n.firstChild;return d(n,v(T,{get each(){return i()},children:(o,r)=>(()=>{const u=oi.cloneNode(!0),c=u.firstChild;return c.style.setProperty("filter","sepia(100%) hue-rotate(170deg) saturate(3)"),k(a=>{const x=e+o.data.url,f=o.data.name;return x!==a._v$&&S(c,"src",a._v$=x),f!==a._v$2&&S(c,"alt",a._v$2=f),a},{_v$:void 0,_v$2:void 0}),u})()}),s),l})()}const di=w('
      ');function ui(){return(()=>{const e=di.cloneNode(!0),i=e.firstChild,t=i.nextSibling,l=t.nextSibling,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=s.nextSibling;return d(i,v(nt,{})),d(t,v(Xt,{})),d(n,v(si,{})),d(o,v(Wt,{})),d(r,v(ci,{})),e})()}const fi=document.getElementById("root");Ye(()=>v(ui,{}),fi); diff --git a/index.html b/index.html index 235edfd..27df0e6 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,7 @@ crossorigin="anonymous" > Vishal Saranathan - +