📄 701.5b92b508.chunk.js
/home/palash/git/site/node_modules/new_site/build/static/js/701.5b92b508.chunk.js
Language: js • Lines: 2
"use strict";(self.webpackChunknew_site=self.webpackChunknew_site||[]).push([[701],{6701(e,t,n){n.r(t),n.d(t,{default:()=>d});var r=n(3519),s=n(1072),a=n(8602),o=n(9889),l=n(1616),i=n(579);function c(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.A,{fluid:!0,children:(0,l.A)()})})}function d(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(r.A,{className:window.findProp("pages.about.blogClass"),children:[(0,i.jsx)(s.A,{children:(0,i.jsx)(a.A,{children:(0,i.jsx)(o.A,{mdUrl:window.findProp("pages.about.mdUrl")})})}),(0,i.jsx)("br",{}),(0,i.jsx)(s.A,{children:(0,i.jsx)(a.A,{children:(0,i.jsx)(c,{})})})]})})}},9889(e,t,n){n.d(t,{A:()=>A});var r=n(9379),s=n(45),a=n(5544),o=n(5809),l=n(8602),i=n(3519),c=n(3637),d=n(1072),p=n(5043),u=n(3859),h=n(3596),f=n(4993),g=n(578),x=n(285),m=(n(119),n(1616),n(8320)),b=n(579);const y=["children"],w={javascript:["async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","let","new","null","of","return","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"],python:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"],java:["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","false","final","finally","float","for","goto","if","implements","import","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","strictfp","super","switch","synchronized","this","throw","throws","transient","true","try","void","volatile","while"],cpp:["auto","bool","break","case","catch","char","class","const","constexpr","continue","default","delete","do","double","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","nullptr","operator","override","private","protected","public","register","return","short","signed","sizeof","static","struct","switch","template","this","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","while"],typescript:["abstract","any","as","asserts","async","await","boolean","break","case","catch","class","const","constructor","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","of","package","private","protected","public","readonly","return","require","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield"],rust:["as","async","await","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","Self","static","struct","super","trait","true","type","union","unsafe","use","where","while"],go:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],bash:["if","then","else","elif","fi","for","while","do","done","case","esac","function","return","exit","export","local","declare","echo","read","set","unset","trap","source"]};function j(e){let t=e.className,n=e.children,r=e.inline;const s=function(e){return(e||"").replace(/^language-/,"")||""}(t),a=String(n).replace(/\n$/,""),o=a.includes("\n"),l=t&&/language-\w+/.test(t);if(!0===r||!o&&!l)return(0,b.jsx)("code",{style:{background:"#3c3c3c",color:"#81ecec",padding:"2px 6px",borderRadius:"3px",fontSize:"0.9em"},children:a});const i=a.split("\n"),c=function(e,t){const n=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split("\n"),r=new Set(w[t]||w.javascript);return n.map(e=>{const t=[];let n=0;for(;n<e.length;)if(" "===e[n]||"\t"===e[n]){let r="";for(;n<e.length&&(" "===e[n]||"\t"===e[n]);)r+=e[n],n++;t.push(r)}else{if("/"===e[n]&&"/"===e[n+1]){t.push('<span style="color:#6a9955">'.concat(e.slice(n),"</span>"));break}if("/"===e[n]&&"*"===e[n+1]){let r=e.indexOf("*/",n+2);if(-1===r){t.push('<span style="color:#6a9955">'.concat(e.slice(n),"</span>"));break}t.push('<span style="color:#6a9955">'.concat(e.slice(n,r+2),"</span>")),n=r+2}else if('"'===e[n]||"'"===e[n]||"`"===e[n]){const r=e[n];let s=n+1;for(;s<e.length&&e[s]!==r;)"\\"===e[s]&&s++,s++;s>=e.length&&(s=e.length),t.push('<span style="color:#ce9178">'.concat(e.slice(n,s+(e[s]===r?1:0)),"</span>")),n=s+(e[s]===r?1:0)}else if(/[0-9]/.test(e[n])&&(0===n||/[\s(){}[\];,:+\-*/%]/.test(e[n-1]))){let r="";for(;n<e.length&&/[0-9.]/.test(e[n]);)r+=e[n],n++;t.push('<span style="color:#4ec9b0">'.concat(r,"</span>"))}else if(/[a-zA-Z_$]/.test(e[n])){let s="";for(;n<e.length&&/[a-zA-Z0-9_$]/.test(e[n]);)s+=e[n],n++;r.has(s)?t.push('<span style="color:#569cd6">'.concat(s,"</span>")):n<e.length&&"("===e[n]?t.push('<span style="color:#dcdcaa">'.concat(s,"</span>")):t.push(s)}else{const r=e[n],s={"#":"#608b4e","@":"#d7ba7d"};t.push(s[r]?'<span style="color:'.concat(s[r],'">').concat(r,"</span>"):r),n++}}return t.join("")}).join("\n")}(a,s);return(0,b.jsxs)("div",{style:{position:"relative",margin:"1.5em 0",borderRadius:"6px",overflow:"hidden",background:"#1e1e1e",borderLeft:"4px solid #e3f988"},children:[s&&(0,b.jsx)("div",{style:{position:"absolute",top:0,right:0,padding:"4px 10px",fontSize:"11px",color:"#22d3ee",background:"#2d2d2d",borderBottomLeftRadius:"6px",textTransform:"uppercase",letterSpacing:"1px",zIndex:3,fontWeight:600},children:s}),(0,b.jsx)("div",{style:{maxHeight:"500px",overflowY:"auto"},children:(0,b.jsxs)("div",{style:{display:"flex",overflowX:"auto",paddingTop:s?"28px":0},children:[(0,b.jsx)("div",{style:{flex:"0 0 auto",textAlign:"right",color:"#858585",userSelect:"none",fontFamily:"'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace",fontSize:"13px",lineHeight:1.5,padding:"12px 0",minWidth:"44px"},children:i.map((e,t)=>(0,b.jsx)("div",{style:{padding:"0 12px"},children:t+1},t))}),(0,b.jsx)("pre",{style:{margin:0,padding:"12px 16px",flex:1,fontFamily:"'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace",fontSize:"13px",lineHeight:1.5,color:"#d4d4d4",whiteSpace:"pre",tabSize:2,border:"none",background:"transparent",boxShadow:"none",borderRadius:0},dangerouslySetInnerHTML:{__html:c}})]})}),(0,b.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, #1e1e1e)",pointerEvents:"none",zIndex:2}})]})}function v(e){var t;return"string"===typeof e?e:Array.isArray(e)?e.map(v).join(""):null!==e&&void 0!==e&&null!==(t=e.props)&&void 0!==t&&t.children?v(e.props.children):""}let k=0;function A(e){const t=(0,p.useState)(null),n=(0,a.A)(t,2),w=n[0],A=n[1],S=(0,p.useState)(null),C=(0,a.A)(S,2),F=C[0],z=C[1],N=(0,p.useState)(null),_=(0,a.A)(N,2),P=_[0],L=_[1];var T;switch(e.contentType){case"swe":T=window.findProp("pages.contents.techBlogClass");break;case"music":T=window.findProp("pages.contents.musicBlogClass");break;default:T=window.findProp("pages.contents.genericBlogClass")}const E=e=>{const t=t=>{let n=t.children,a=(0,s.A)(t,y);const o=function(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}(v(n))||"h-".concat(k++);return(0,b.jsx)(e,(0,r.A)((0,r.A)({id:o},a),{},{children:n}))};return t.displayName="Heading".concat(e),t},U={h1:E("h1"),h2:E("h2"),h3:E("h3"),h4:E("h4"),h5:E("h5"),h6:E("h6"),img:e=>(0,b.jsx)("span",{style:{display:"flex",justifyContent:"center",margin:"1.5em 0"},children:(0,b.jsx)("span",{style:{display:"inline-flex",borderRadius:"6px",overflow:"hidden",border:"1px solid #333",boxShadow:"0 2px 8px rgba(0,0,0,0.4)",background:"#1e1e1e",padding:"8px"},children:(0,b.jsx)(c.A,{fluid:!0,loading:"lazy",src:e.src,alt:e.alt||"",style:{borderRadius:"4px",display:"block"}})})}),pre:e=>{let t=e.children;return(0,b.jsx)(b.Fragment,{children:t})},code:e=>(0,b.jsx)(j,(0,r.A)({},e))};return(0,p.useEffect)(()=>{k=0,(0,m.ZF)(e.mdUrl).then(t=>{A(t),z(!1),e.onMdLoaded&&e.onMdLoaded(t)}).catch(e=>{L(e),z(!1)})},[e.mdUrl]),F?(0,b.jsx)("p",{children:"Loading..."}):P?(0,b.jsxs)("p",{children:["Error: ",P.message]}):(0,b.jsxs)(i.A,{className:T,fluid:!0,children:[(0,b.jsxs)(d.A,{children:[e.publishDate?(0,b.jsxs)(l.A,{children:[(0,b.jsx)("b",{children:window.findProp("labels.publishedOn")}),e.publishDate]}):(0,b.jsx)(b.Fragment,{}),e.lastUpdated?(0,b.jsxs)(l.A,{children:[(0,b.jsx)("b",{children:window.findProp("labels.lastUpdated")}),e.lastUpdated]}):(0,b.jsx)(b.Fragment,{})]}),(0,b.jsx)("br",{}),(0,b.jsx)(d.A,{children:(0,b.jsx)(l.A,{children:(0,b.jsx)(o.oz,{remarkPlugins:[u.A,h.A,x.A],components:U,rehypePlugins:[f.A,g.A],children:w})})})]})}},1616(e,t,n){n.d(t,{A:()=>i});var r=n(184),s=n(7196),a=n(8602),o=n(1072),l=n(579);function i(){return(0,l.jsx)(o.A,{children:(0,l.jsxs)(a.A,{children:[(0,l.jsx)("a",{className:"m-3 ms-0",href:"https://linkedin.com/in/palash90",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.QEs,{})}),(0,l.jsx)("a",{className:"m-3 ms-0",href:"https://www.youtube.com/@GuitaleleTutorials",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.Vk6,{})}),(0,l.jsx)("a",{className:"m-3 ms-0",href:"https://github.com/palash90",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.hL4,{})}),(0,l.jsx)("a",{className:"button m-3 ms-0",href:"mailto:connect@palashkantikundu.in",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(s.YDm,{})})]})})}},8320(e,t,n){n.d(t,{Z2:()=>a,ZF:()=>l,fb:()=>o});const r="content_",s=864e5;function a(e){try{const t=localStorage.getItem(r+e);if(!t)return null;const n=JSON.parse(t),s=n.data,a=n.expiry;return Date.now()>a?(localStorage.removeItem(r+e),null):s}catch(t){return null}}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;try{localStorage.setItem(r+e,JSON.stringify({data:t,expiry:Date.now()+n}))}catch(a){}}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;const n=a(e);if(null!==n)return n;const r=function(e){const t=e.match(/^https:\/\/([^.]+)\.github\.io\/([^/]+)\/(.+)$/);return t?"https://raw.githubusercontent.com/".concat(t[1],"/").concat(t[2],"/main/").concat(t[3]):null}(e);try{const n=await fetch(e);if(!n.ok)throw new Error("Failed to fetch ".concat(e," (").concat(n.status," ").concat(n.statusText,")"));const r=await n.text();return o(e,r,t),r}catch(l){if(r)try{const n=await fetch(r);if(!n.ok)throw new Error("Failed to fetch ".concat(r," (").concat(n.status," ").concat(n.statusText,")"));const s=await n.text();return o(e,s,t),s}catch(i){throw new Error("Primary: ".concat(l.message," | Fallback: ").concat(i.message))}throw l}}}}]);
//# sourceMappingURL=701.5b92b508.chunk.js.map