1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[517],{13713:function(e,t,n){n.d(t,{LH:function(){return m},OL:function(){return c},yP:function(){return d}});var o=n(85893),i=n(186),r=n(91733),a=n(65055),l=n(13761);let c={background:"transparent",fontFamily:a.TV.mono,fontSize:"13px",lineHeight:"1.7",padding:"18px 20px",margin:0,boxSizing:"border-box"},d=e=>{let{filename:t,className:n,barEnd:i,children:r}=e;return(0,o.jsxs)(s,{className:n,children:[(0,o.jsxs)(p,{children:[(0,o.jsxs)(f,{children:[(0,o.jsx)("span",{}),(0,o.jsx)("span",{}),(0,o.jsx)("span",{})]}),t&&(0,o.jsx)(x,{children:t}),i&&(0,o.jsx)(u,{children:i})]}),r]})};t.ZP=e=>{let{code:t,filename:n="app.py",className:i}=e;return(0,o.jsx)(d,{filename:n,className:i,children:(0,o.jsx)(m,{children:(0,o.jsx)(r.Z,{language:"python",style:l.f,customStyle:c,codeTagProps:{style:{fontFamily:a.TV.mono}},children:t.trim()})})})};let s=i.ZP.div.withConfig({componentId:"sc-f2b65195-0"})(["width:100%;border:1px solid ",";border-radius:12px;background:",";overflow:hidden;display:flex;flex-direction:column;"],a.TV.border,a.TV.bgRaised),p=i.ZP.div.withConfig({componentId:"sc-f2b65195-1"})(["display:flex;align-items:center;gap:12px;height:40px;padding:0 16px;border-bottom:1px solid ",";"],a.TV.border),f=i.ZP.div.withConfig({componentId:"sc-f2b65195-2"})(["display:flex;gap:7px;span{",";}"],a.zr),x=i.ZP.span.withConfig({componentId:"sc-f2b65195-3"})(["font-family:",";font-size:12px;color:",";"],a.TV.mono,a.TV.textLow),u=i.ZP.div.withConfig({componentId:"sc-f2b65195-4"})(["display:flex;align-items:center;margin-left:auto;"]),m=i.ZP.div.withConfig({componentId:"sc-f2b65195-5"})(["overflow:auto;pre{background:transparent !important;margin:0;}"])},33958:function(e,t,n){var o=n(85893),i=n(67294),r=n(73935),a=n(186),l=n(461),c=n(65055);let d=i.useLayoutEffect;t.Z=e=>{let{prompt:t,className:n}=e,[a,c]=(0,i.useState)(!1),[w,y]=(0,i.useState)(!1),[v,T]=(0,i.useState)(null),V=(0,i.useRef)(null),k=(0,i.useRef)(null),C=(0,i.useRef)(),P=(0,i.useCallback)(()=>{if(!V.current)return;let e=V.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})},[]);d(()=>{a&&P()},[a,P]),(0,i.useEffect)(()=>{if(!a)return;let e=e=>{var t,n;let o=e.target;(null===(t=V.current)||void 0===t?void 0:t.contains(o))||(null===(n=k.current)||void 0===n?void 0:n.contains(o))||c(!1)},t=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),window.addEventListener("resize",P),window.addEventListener("scroll",P,!0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),window.removeEventListener("resize",P),window.removeEventListener("scroll",P,!0)}},[a,P]),(0,i.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]);let Z=async()=>{try{await navigator.clipboard.writeText(t)}catch{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}y(!0),c(!1),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>y(!1),2e3)};return(0,o.jsxs)(s,{className:n,children:[(0,o.jsxs)(p,{ref:V,type:"button",buttonTheme:"secondary",variant:"outline",size:"lg","aria-haspopup":"menu","aria-expanded":a,onClick:()=>c(e=>!e),children:[(0,o.jsx)(l.JO,{icon:w?"far-check":"far-copy",size:16}),w?"Copied!":"Copy Prompt",(0,o.jsx)(f,{$open:a,children:(0,o.jsx)(l.JO,{icon:"far-angle-down",size:14})})]}),a&&v&&"undefined"!=typeof document&&(0,r.createPortal)((0,o.jsx)(x,{ref:k,role:"menu",style:{top:v.top,left:v.left,minWidth:v.width},children:(0,o.jsxs)(u,{role:"menuitem",type:"button",onClick:Z,children:[(0,o.jsx)(m,{children:(0,o.jsx)(l.JO,{icon:"far-code",size:16})}),(0,o.jsxs)(g,{children:[(0,o.jsx)(h,{children:"Integration Prompt"}),(0,o.jsx)(b,{children:"Ask your agent to integrate our SDK"})]})]})}),document.body)]})};let s=a.ZP.div.withConfig({componentId:"sc-1ed5cff2-0"})(["position:relative;display:inline-flex;@media (max-width:","px){width:100%;}"],e=>{let{theme:t}=e;return t.breakpoints.sm}),p=(0,a.ZP)(l.zx).withConfig({componentId:"sc-1ed5cff2-1"})(["&&{",";overflow:visible;gap:8px;padding:0 18px;font-weight:500;svg{color:",";transition:color 0.15s ease;}&:hover svg{color:",";}}"],c.aT,c.TV.textMid,c.TV.textHi),f=a.ZP.span.withConfig({componentId:"sc-1ed5cff2-2"})(["display:inline-flex;align-items:center;transition:transform 0.18s ease;transform:rotate(",");"],e=>{let{$open:t}=e;
1return t?"180deg":"0deg"}),x=a.ZP.div.withConfig({componentId:"sc-1ed5cff2-3"})(["",""],e=>{let{theme:t}=e;return(0,a.iv)(["position:fixed;z-index:1000;min-width:280px;padding:6px;border-radius:12px;border:1px solid ",";background:",";box-shadow:0 16px 40px rgba(0,0,0,0.5);@media (max-width:","px){left:16px !important;right:16px;width:auto;min-width:0 !important;}"],c.TV.border,c.TV.bgRaised,t.breakpoints.sm)}),u=a.ZP.button.withConfig({componentId:"sc-1ed5cff2-4"})(["all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:8px;cursor:pointer;text-align:left;transition:background 0.15s ease;&:hover,&:focus-visible{background:",";}"],c.TV.panelStrong),m=a.ZP.span.withConfig({componentId:"sc-1ed5cff2-5"})(["display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:8px;border:1px solid ",";background:",";color:",";"],c.TV.border,c.TV.panel,c.TV.textHi),g=a.ZP.span.withConfig({componentId:"sc-1ed5cff2-6"})(["display:flex;flex-direction:column;gap:2px;min-width:0;"]),h=a.ZP.span.withConfig({componentId:"sc-1ed5cff2-7"})(["color:",";font-size:14px;font-weight:500;"],c.TV.textHi),b=a.ZP.span.withConfig({componentId:"sc-1ed5cff2-8"})(["color:",";font-size:12px;"],c.TV.textMid)},13761:function(e,t,n){n.d(t,{f:function(){return l}});var o,i=n(65055);try{let e=n(98695),t=null==e?void 0:null===(o=e.languages)||void 0===o?void 0:o.python;t&&!t["function-call"]&&"function"==typeof e.languages.insertBefore&&e.languages.insertBefore("python","punctuation",{"function-call":{pattern:/\b[A-Za-z_]\w*(?=\s*\()/,alias:"function"}})}catch{}let r="#7FD3E6",a="#E0B07A",l={'code[class*="language-"]':{color:i.TV.textHi,fontFamily:i.TV.mono,background:"none",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.7",tabSize:4,hyphens:"none"},'pre[class*="language-"]':{color:i.TV.textHi,fontFamily:i.TV.mono,background:"transparent",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.7",tabSize:4,hyphens:"none",margin:0,overflow:"auto"},comment:{color:i.TV.textLow,fontStyle:"italic"},prolog:{color:i.TV.textLow,fontStyle:"italic"},doctype:{color:i.TV.textLow,fontStyle:"italic"},cdata:{color:i.TV.textLow,fontStyle:"italic"},punctuation:{color:i.TV.textMid},operator:{color:i.TV.textMid},namespace:{opacity:.7},property:{color:i.TV.textHi},tag:{color:i.TV.accent},boolean:{color:a},number:{color:a},constant:{color:a},symbol:{color:a},deleted:{color:"#E06C75"},selector:{color:i.TV.green},"attr-name":{color:r},string:{color:i.TV.green},char:{color:i.TV.green},builtin:{color:r},inserted:{color:i.TV.green},variable:{color:i.TV.textHi},"attr-value":{color:i.TV.green},keyword:{color:i.TV.accent},"control-flow":{color:i.TV.accent},function:{color:r},"function-variable":{color:r},"class-name":{color:a},"maybe-class-name":{color:a},regex:{color:i.TV.green},important:{color:i.TV.accent,fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},decorator:{color:a},annotation:{color:a},"triple-quoted-string":{color:i.TV.green},parameter:{color:i.TV.textHi}}},90474:function(e,t,n){n.d(t,{o:function(){return g},Cq:function(){return h},S$:function(){return p},Vq:function(){return u},NZ:function(){return x},F7:function(){return f}});var o=n(186),i=n(85893);n(67294);var r=n(20602),a=n(461);let l=(0,o.ZP)(r.Z).withConfig({componentId:"sc-968e5013-0"})(["width:",";"],e=>e.$outerWidth);var c=n(32555),d=n(23328),s=n(65055);let p=o.ZP.div.withConfig({componentId:"sc-fb6f256a-0"})(["",""],e=>{let{theme:t}=e;return(0,o.iv)(["display:flex;flex-direction:column;align-items:center;box-sizing:border-box;isolation:isolate;width:100%;background:linear-gradient( "," 0%,"," 30%,"," 100% );border-bottom:1px solid rgba(255,255,255,0.03);padding:80px 16px;gap:64px;@media (min-width:","px){padding:96px 32px;gap:80px;}@media (min-width:","px){padding:96px 48px;gap:96px;}@media (min-width:","px){padding:96px 32px;}@media (min-width:","px){padding:96px 64px;}"],(0,c.a)(t.colors.gray2,1),(0,c.a)(t.colors.gray1,1),(0,c.a)(t.colors.gray1,1),t.breakpoints.sm,t.breakpoints.md,t.breakpoints.lg,t.breakpoints.xl)}),f=(0,o.ZP)(p).withConfig({componentId:"sc-fb6f256a-1"})(["",""],e=>{let{theme:t}=e;return(0,o.iv)(["padding-top:40px;gap:64px;@media (max-width:","px){gap:48px;}@media (min-width:","px){padding-top:48px;}"],t.breakpoints.sm,t.breakpoints.sm)}),x=o.ZP.h2.withConfig({componentId:"sc-fb6f256a-2"})(["",""],e=>{let{theme:t,$maxWidth:n="760px"}=e;return(0,o.iv)(["all:unset;color:",";width:100%;max-width:",";",";text-align:left;@media (min-width:","px){",";text-align:center;}@media (min-width:","px){",";}@media (min-width:","px){",";}@media (min-width:","px){",";}"],t.colors.gray12,n,d.c.title36,t.breakpoints.sm,d.c.title40,t.breakpoints.md,d.c.title44,t.breakpoints.lg,d.c.title48,t.breakpoints.xl,d.c.title52)}),u=o.ZP.p.withConfig({componentId:"sc-fb6f256a-3"})(["",""],e=>{let{theme:t,$maxWidth:n="640px",$textAlign:i="center"}=e;return(0,o.iv)(["all:unset;color:",";text-align:",";max-width:",";",";@media (max-width:","px){text-align:left;}@media (min-width:","px){",";}"],t.colors.gray11,i,n,d.c.textLgLight,t.breakpoints.sm,t.breakpoints.lg,d.c.textXlLight)}),m=(0,o.iv)(["",""],e=>{let{theme:t,buttonTheme:n="primary"}=e;return"primary"!==n?(0,o.iv)([""]):(0,o.iv)(["",";overflow:visible;gap:8px;padding:0 20px;",";font-weight:500;"],s.Ri,t.styleSet.textBasePlus)}),g=(0,o.ZP)(e=>{let{href:t,reload:n=!1,newWindow:o=!1,className:r,outerWidth:c="fit-content",...d}=e;return(0,i.jsx)(l,{href:t,reload:n,newWindow:o,$outerWidth:c,children:(0,i.jsx)(a.zx,{className:r,...d})})}).withConfig({componentId:"sc-fb6f256a-4"})(["&&{","}"],m),h=(0,o.ZP)(a.zx).withConfig({componentId:"sc-fb6f256a-5"})(["&&{",";}"],m)},94653:function(e,t,n){e.exports=n.p+"static/media/Grid2.7e2ea6f1fc23874b.svg"}}]);
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.