PageSourceSearch

https://ganesha-liart.vercel.app/_next/static/chunks/7878.72719846b192697c.js

js ganesha-liart.vercel.app collected 2026-10-03 07:00:57 UTC 7,367 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7878,6814,84430,11858],{79875:function(e,t,l){l.d(t,{Z:function(){return r}});var n=l(85893);function r(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{class:"absolute right-1 top-1 flex h-2 w-2",children:[(0,n.jsx)("span",{class:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),(0,n.jsx)("span",{class:"relative inline-flex rounded-full h-2 w-2 bg-red-500"})]})})}},22468:function(e,t,l){var n=l(85893),r=l(67294);let s=e=>{let{collapseRef:t}=e,l=(0,r.useRef)(null),s=e.type||"vertical";(0,r.useImperativeHandle)(t,()=>({updateCollapseHeight:t=>{let{height:n,increase:r}=t;e.isOpen&&(l.current.style.height=l.current.scrollHeight,l.current.style.height="auto")}}));let i=e=>{let t=e.scrollHeight,l=e.scrollWidth;requestAnimationFrame(function(){switch(s){case"horizontal":e.style.width=l+"px",requestAnimationFrame(function(){e.style.width="0px"});break;case"vertical":e.style.height=t+"px",requestAnimationFrame(function(){e.style.height="0px"})}})},a=e=>{let t=e.scrollHeight,l=e.scrollWidth,n=0;switch(s){case"horizontal":e.style.width=l+"px",n=setTimeout(()=>{e.style.width="auto"},400);break;case"vertical":e.style.height=t+"px",n=setTimeout(()=>{e.style.height="auto"},400)}clearTimeout(n)};return(0,r.useEffect)(()=>{e.isOpen?a(l.current):i(l.current),(null==e?void 0:e.onHeightChange)&&e.onHeightChange({height:l.current.scrollHeight,increase:e.isOpen})},[e.isOpen]),(0,n.jsx)("div",{ref:l,style:"vertical"===s?{height:"0px",willChange:"height"}:{width:"0px",willChange:"width"},className:"".concat(e.className||""," overflow-hidden duration-200 "),children:e.children})};s.defaultProps={isOpen:!1},t.Z=s},27134:function(e,t,l){l.d(t,{Z:function(){return o}});var n=l(85893),r=l(69325),s=l(9008),i=l.n(s),a=l(67294);function o(e){let{priority:t,id:l,src:s,alt:o,placeholderSrc:u,className:d,width:h,height:f,title:g,onLoad:v,style:O}=e,p=(0,r.JA)("IMAGE_COMPRESS_WIDTH"),m=(0,r.JA)("IMG_LAZY_LOAD_PLACEHOLDER"),x=(0,a.useRef)(null),[_,T]=(0,a.useState)(u||m),E=e=>{"function"==typeof v&&v()},w=()=>{x.current&&(x.current.src!==u&&u?x.current.src=u:x.current.src=m)};(0,a.useEffect)(()=>{let e=c(s,p)||m,t=new Image;t.src=e,t.onload=()=>{T(e),E(e)},t.onerror=w;let l=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){let n=t.target;n.src=e,l.unobserve(n)}})},{rootMargin:"50px 0px"});return x.current&&l.observe(x.current),()=>{x.current&&l.unobserve(x.current)}},[s,p]);let y={ref:x,src:_,alt:o,onLoad:()=>{},onError:w};return l&&(y.id=l),g&&(y.title=g),h&&"auto"!==h&&(y.width=h),f&&"auto"!==f&&(y.height=f),d&&(y.className=d),O&&(y.style=O),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{...y}),t&&(0,n.jsx)(i(),{children:(0,n.jsx)("link",{rel:"preload",as:"image",href:c(s,p)})})]})}let c=(e,t)=>{var l,n;if(!e)return null;let r=(null===(n=window)||void 0===n?void 0:null===(l=n.screen)||void 0===l?void 0:l.width)||t;return r>t?e:e.replace(/width=\d+/,"width=".concat(r)).replace(/w=\d+/,"w=".concat(r))}},67968:function(e,t,l){var n=l(85893),r=l(27134);t.Z=e=>{let{icon:t}=e;return t?t.startsWith("http")||t.startsWith("data:")?(0,n.jsx)(r.Z,{src:t,className:"w-8 h-8 my-auto inline mr-1"}):(0,n.jsx)("span",{className:"mr-1",children:t}):(0,n.jsx)(n.Fragment,{})}},6814:function(e,t,l){l.r(t);var n=l(85893),r=l(79875),s=l(67968),i=l(69325),a=l(41664),o=l.n(a),c=l(11163),u=l(11858);t.default=e=>{let{post:t,className:l}=e,a=decodeURIComponent((0,c.useRouter)().asPath.split("?")[0])===(null==t?void 0:t.href);return(0,n.jsx)(o(),{href:null==t?void 0:t.href,passHref:!0,children:(0,n.jsxs)("div",{className:"".concat(l," relative py-1.5 cursor-pointer px-1.5 hover:bg-gray-50 rounded-md dark:hover:bg-yellow-100 dark:hover:text-yellow-600\n                    ").concat(a&&"bg-green-50 text-green-500 dark:bg-yellow-100 dark:text-yellow-600"),children:[(0,n.jsxs)("div",{className:"w-full select-none",children:[(0,i.JA)("POST_TITLE_ICON")&&(0,n.jsx)(s.Z,{icon:null==t?void 0:t.pageIcon})," ",t.title]}),(null==t?void 0:t.isLatest)&&(0,i.JA)("GITBOOK_LATEST_POST_RED_BADGE",!1,u.default)&&(0,n.jsx)(r.Z,{})]},t.id)})}},84430:function(e,t,l){l.r(t);var n=l(85893),r=l(79875),s=l(22468),i=l(69325),a=l(11858),o=l(6814);t.default=e=>{var t,l,c;let{group:u,expanded:d,toggleItem:h}=e,f=null==u?void 0:null===(t=u.items)||void 0===t?void 0:t.some(e=>e.isLatest);return(null==u?void 0:u.category)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{onClick:()=>{h()},className:"select-none relative flex justify-between text-sm cursor-pointer p-2 hover:bg-gray-50 rounded-md dark:hover:bg-yellow-100 dark:hover:text-yellow-600",children:[(0,n.jsx)("span",{children:null==u?void 0:u.category}),(0,n.jsx)("div",{className:"inline-flex items-center select-none pointer-events-none ",children:(0,n.jsx)("i",{className:"px-2 fas fa-chevron-left transition-all opacity-50 duration-200 ".concat(d?"-rotate-90":"")})}),f&&(0,i.JA)("GITBOOK_LATEST_POST_RED_BADGE",!1,a.default)&&!d&&(0,n.jsx)(r.Z,{})]},null==u?void 0:u.category),(0,n.jsx)(s.Z,{isOpen:d,onHeightChange:e.onHeightChange,children:null==u?void 0:null===(l=u.items)||void 0===l?void 0:l.map((e,t)=>(0,n.jsx)("div",{className:"ml-3 border-l",children:(0,n.jsx)(o.default,{className:"text-sm ml-3",post:e})},t))})]}):(0,n.jsx)(n.Fragment,{children:null==u?void 0:null===(c=u.items)||void 0===c?void 0:c.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(o.default,{className:"text-sm py-2",post:e})},t))})}},7878:function(e,t,l){l.r(t);var n=l(85893),r=l(69325),s=l(26964),i=l(11163),a=l(67294),o=l(11858),c=l(84430);t.default=e=>{let{filteredNavPages:t}=e,{locale:l,currentSearch:u}=(0,s.O)(),d=(0,i.useRouter)(),h=function(e){if(!e)return[];let t=[];for(let l=0;l<e.length;l++){let n=e[l],s=(null==n?void 0:n.category)?null==n?void 0:n.category:"",i=null;
1(i=(0,r.JA)("GITBOOK_AUTO_SORT",!0,o.default)?t.find(e=>e.category===s):t[t.length-1])&&i.category===s?i.items.push(n):t.push({category:s,items:[n]})}return t}(t),[f,g]=(0,a.useState)([]),v=(0,r.JA)("GITBOOK_EXCLUSIVE_COLLAPSE",null,o.default);(0,a.useEffect)(()=>{setTimeout(()=>{g([function(e,t){let l=0,n=e.findIndex(e=>e.items.some(e=>t==="/"+e.slug));return -1!==n&&(l=n),l}(h,decodeURIComponent(d.asPath.split("?")[0]))])},500)},[d,t]);let O=e=>{let t=[...f];f.includes(e)?t=t.filter(t=>t!==e):t.push(e),v&&(t=t.filter(t=>t===e)),g(t)};return h&&0!==h.length?(0,n.jsx)("div",{id:"posts-wrapper",className:"w-full flex-grow space-y-0.5 tracking-wider",children:null==h?void 0:h.map((t,l)=>(0,n.jsx)(c.default,{group:t,onHeightChange:e.onHeightChange,expanded:f.includes(l),toggleItem:()=>O(l)},l))}):(0,n.jsx)("div",{className:"flex w-full items-center justify-center min-h-screen mx-auto md:-mt-20",children:(0,n.jsxs)("p",{className:"text-gray-500 dark:text-gray-300",children:[l.COMMON.NO_RESULTS_FOUND," ",u&&(0,n.jsx)("div",{children:u})]})})}},11858:function(e,t,l){l.r(t);var n=l(83454);let r={GITBOOK_INDEX_PAGE:"about",GITBOOK_AUTO_SORT:n.env.NEXT_PUBLIC_GITBOOK_AUTO_SORT||!0,GITBOOK_LATEST_POST_RED_BADGE:n.env.NEXT_PUBLIC_GITBOOK_LATEST_POST_RED_BADGE||!0,GITBOOK_MENU_CATEGORY:!0,GITBOOK_BOOK_MENU_TAG:!0,GITBOOK_MENU_ARCHIVE:!0,GITBOOK_MENU_SEARCH:!0,GITBOOK_EXCLUSIVE_COLLAPSE:!0,GITBOOK_WIDGET_REVOLVER_MAPS:n.env.NEXT_PUBLIC_WIDGET_REVOLVER_MAPS||"false",GITBOOK_WIDGET_TO_TOP:!0};t.default=r}}]);

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.