1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9065],{26059:(e,r,t)=>{t.d(r,{A:()=>a.default});var a=t(67064)},33360:(e,r,t)=>{t.d(r,{A:()=>a.default});var a=t(92555)},59065:(e,r,t)=>{t.d(r,{default:()=>f});var a=t(91554),n=t(234),l=t(87787),s=t(26059),o=t(33360),i=t(17968),c=t(14903);function d({heading:e,highlight:r,cue:t="Article continues below",children:n}){return(0,a.jsxs)("aside",{className:"not-prose my-10",children:[(0,a.jsxs)("div",{className:"mb-3 type-body-3 text-muted",children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"â"})," ",t]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-7 rounded-card border border-line bg-surface px-6 py-10 text-center sm:px-10 sm:py-12",children:[(0,a.jsx)("div",{className:"m-0 max-w-2xl text-balance font-display text-accent type-display-3 md:type-display-2",children:(0,c.f8)(e,r??"",{wrap:!0})}),n]})]})}var p=t(40730),b=t(56358);let u={ruby:{href:"https://www.appsignal.com/ruby",goal:"ruby_banner_learning_center"},nodejs:{href:"https://www.appsignal.com/nodejs",goal:"node_banner_learning_center"},elixir:{href:"https://www.appsignal.com/elixir",goal:"elixir_banner_learning_center"},javascript:{href:"https://www.appsignal.com/javascript",goal:"javascript_banner_learning_center"},python:{href:"https://www.appsignal.com/python",goal:"python_banner_learning_center"},cron:{href:`${b.yq}${b.ac}`,goal:"cron_banner_learning_center"},errors:{href:"https://www.appsignal.com/tour/errors",goal:"error_banner_learning_center"}},h={href:"https://appsignal.com/users/sign_up",goal:"default_banner_learning_center"};function x({lang:e,bannerText:r,goal:t,highlight:n}){let{href:l,goal:s}=e&&u[e]||h,o=r?.line1??"Is your app broken or slow?",i=r?.line2??"",c=r?.buttonText??"Monitoring by AppSignal",b=[o,i].filter(Boolean).join(" ");return(0,a.jsx)(d,{heading:b,highlight:n,children:(0,a.jsx)(p.default,{href:l,eventName:t??s,variant:"primary",size:"md",className:"!text-page",children:c})})}function m({children:e}){let[r,t]=(0,n.useState)(0),l=n.Children.toArray(e);return(0,a.jsxs)("div",{className:"not-prose my-10",children:[(0,a.jsx)("nav",{"aria-label":"Tabs",className:"flex flex-wrap gap-x-6 border-b border-line",children:l.map((e,n)=>(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":n===r,"aria-controls":`tab-panel-${n}`,id:`tab-${n}`,onClick:()=>t(n),className:["type-label-2 -mb-px cursor-pointer border-b-[3px] py-3 transition-colors",n===r?"border-b-accent text-reading":"border-b-transparent text-muted hover:text-reading"].join(" "),children:e.props.label},n))}),(0,a.jsx)("div",{className:"pt-4",children:l.map((e,t)=>t===r?(0,a.jsx)("section",{role:"tabpanel",id:`tab-panel-${t}`,"aria-labelledby":`tab-${t}`,children:e},t):null)})]})}function g({children:e}){return(0,a.jsx)("div",{children:e})}function f({code:e,componentOverrides:r}){let t=(0,i.W)(e),c=l.A.Vimeo;return(0,a.jsx)(t,{components:{...l.A,...r,pre:s.A,CodeTabs:o.A,Tabs:m,TabsItem:g,Banner:x,Vimeo:e=>(0,a.jsx)("div",{className:"not-prose",children:(0,a.jsx)(c,{...e})}),figure:({children:e})=>(0,a.jsx)(n.Fragment,{children:e})}})}},67064:(e,r,t)=>{t.d(r,{default:()=>p});var a=t(91554),n=t(234),l=t(11645);function s(e){return(0,a.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M15 7C16.6569 7 18 8.34315 18 10C19.6569 10 21 11.3431 21 13V18C21 19.6051 19.7394 20.9158 18.1543 20.9961L18 21H13L12.8457 20.9961C11.3117 20.9184 10.0816 19.6883 10.0039 18.1543L10 18L9.8457 17.9961C8.31166 17.9184 7.08163 16.6883 7.00391 15.1543L7 15V10C7 8.34315 8.34315 7 10 7H15ZM13 11.5C12.1716 11.5 11.5 12.1716 11.5 13V18C11.5 18.8284 12.1716 19.5 13 19.5H18C18.8284 19.5 19.5 18.8284 19.5 18V13C19.5 12.1716 18.8284 11.5 18 11.5H13ZM10 8.5C9.17157 8.5 8.5 9.17157 8.5 10V15C8.5 15.8284 9.17157 16.5 10 16.5V13C10 11.3431 11.3431 10 13 10H16.5C16.5 9.17157 15.8284 8.5 15 8.5H10Z",style:{fill:"oklch(90.7% 0.03 235)",fillOpacity:.5}})})}function o(e){return(0,a.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("polyline",{points:"20 9 11.5 18 8 14.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}let i=new Set(["shell","sh","bash","zsh","console"]),c=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),d=new Set(Object.values(l.A).map(c));function p({"data-language":e,"data-title":r,"data-raw":t,children:b}){let{copied:u,copy:h}
1=function(e=1200){let[r,t]=(0,n.useState)(!1),a=(0,n.useRef)(null),l=(0,n.useCallback)(async r=>{try{await navigator.clipboard.writeText(r),a.current&&clearTimeout(a.current),t(!0),a.current=setTimeout(()=>t(!1),e)}catch{t(!1)}},[e]),s=(0,n.useCallback)(()=>{a.current&&clearTimeout(a.current),t(!1)},[]);return(0,n.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]),{copied:r,copy:l,reset:s}}(),x=e??"shell",m=i.has(x.toLowerCase()),g=r||l.A[x]||x,f=t||function e(r){return null==r||!1===r?"":"string"==typeof r?r:"number"==typeof r?String(r):Array.isArray(r)?r.map(e).join(""):(0,n.isValidElement)(r)?e(r.props.children):""}(b),w=!!r&&!d.has(c(r));return(0,a.jsxs)("div",{className:"not-prose relative my-8 bg-terminal rounded-card overflow-hidden border border-line group-[.is-code-tabs]:bg-transparent group-[.is-code-tabs]:border-0 group-[.is-code-tabs]:rounded-none group-[.is-code-tabs]:my-0 group-[.is-code-tabs]:[&:not(:first-child)]:border-t group-[.is-code-tabs]:[&:not(:first-child)]:border-t-code/5",children:[(0,a.jsxs)("div",{className:["type-code-1 flex items-center gap-2 px-[18px] pt-4 pb-2 pr-10 tracking-[0.08em] uppercase text-code/40",w?"":"group-[.is-code-tabs]:hidden"].join(" "),children:[(0,a.jsx)("span",{"aria-hidden":!0,className:["inline-block w-1.5 h-1.5 rounded-full",m?"bg-success":"bg-code-accent"].join(" ")}),g]}),(0,a.jsx)("button",{type:"button",onClick:()=>void h(f),"aria-label":"Copy code",className:"hover-brighten absolute top-3 right-2.5 z-[1] flex items-center justify-center border-none rounded-[6px] p-0 bg-transparent cursor-pointer w-7 h-7 text-code/55",children:u?(0,a.jsx)(o,{width:28,height:28,className:"block"}):(0,a.jsx)(s,{width:28,height:28,className:"block"})}),(0,a.jsx)("pre",{className:["type-code-2 m-0 px-[18px] pt-0 pb-5",w?"":"group-[.is-code-tabs]:pt-5","whitespace-pre-wrap [overflow-wrap:anywhere] min-w-0 text-code/70"].join(" "),"data-language":e,"data-title":r,children:b})]})}},92555:(e,r,t)=>{t.d(r,{default:()=>o});var a=t(91554),n=t(234),l=t(11645),s=t(73702);function o({children:e,tabBarRight:r}){let[t,i]=(0,n.useState)(0),c=n.Children.toArray(e),d=c.map((e,r)=>({title:function(e,r){if((0,n.isValidElement)(e)){let r=e.props["data-tab-title"];if(r)return r}let t=(0,s.v)(e),a=t.language??"shell";return t.title||l.A[a]||t.language||`Tab ${r+1}`}(e,r)}));return(0,a.jsxs)("div",{className:"group is-code-tabs relative my-8 bg-terminal rounded-card overflow-hidden border border-line",children:[(0,a.jsxs)("div",{className:"flex flex-wrap md:flex-nowrap gap-0 px-1.5 border-b border-b-code/5",children:[d.map((e,r)=>(0,a.jsx)("button",{type:"button",onClick:()=>i(r),className:["type-label-2 tab-stable bg-none border-none cursor-pointer whitespace-nowrap pt-[10px] md:pt-[14px] px-1.5 md:px-2.5 pb-[8px] md:pb-[11px] border-b-[3px]",r===t?"border-b-code-accent font-semibold text-code-accent":"border-b-transparent font-normal text-code/55 hover-tab"].join(" "),"data-text":e.title,children:e.title},`${e.title}-${r}`)),r&&(0,a.jsx)("div",{className:"ml-auto",children:r})]}),(0,a.jsx)("div",{className:`*:hidden [&>*:nth-child(${t+1})]:block`,children:c.map((e,r)=>(0,a.jsx)("div",{children:e},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.