PageSourceSearch

https://compose.diamonds/assets/js/a6aa9e1f.328d356c.js

js compose.diamonds collected 2026-10-03 23:55:35 UTC 38,690 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcompose_documentation=self.webpackChunkcompose_documentation||[]).push([["7496"],{57017(e,s,a){a.d(s,{A:()=>t});let t={breadcrumbsContainer:"breadcrumbsContainer_Alpn",breadcrumbsInner:"breadcrumbsInner_KPFt",breadcrumbsInnerBlogArticle:"breadcrumbsInnerBlogArticle_HCeh",breadcrumbs:"breadcrumbs_H22S",breadcrumbs__item:"breadcrumbs__item_iEhC","breadcrumbs__item--active":"breadcrumbs__item--active_XV_j",breadcrumbs__link:"breadcrumbs__link_EbRY",sidebarToggleSep:"sidebarToggleSep_LdZL"}},34733(e,s,a){a.d(s,{A:()=>i});var t=a(62540);a(63696);var r=a(12171),n=a(34471),l=a(73228);function i(){let{colorMode:e}=(0,n.G)(),{siteConfig:s}=(0,l.A)(),a=s.themeConfig?.giscus;if(!a)return console.warn("Giscus configuration is missing from themeConfig. Please ensure giscus config is set in docusaurus.config.js"),null;let{repo:i,repoId:c,category:d="Blog",categoryId:o,mapping:m="pathname",strict:p="0",reactionsEnabled:u="1",emitMetadata:h="0",inputPosition:x="top",theme:j,lightTheme:_="light",darkTheme:N="dark",lang:b="en",loading:g="lazy",...v}=a;return(0,t.jsxs)("div",{className:"commentsSection_d7vg",children:[(0,t.jsx)("h2",{className:"commentsHeading_gmz4 anchor",id:"comments",children:"Comments"}),(0,t.jsx)(r.A,{repo:i,repoId:c,category:d,categoryId:o,mapping:m,strict:p,reactionsEnabled:u,emitMetadata:h,inputPosition:x,theme:"dark"===e?N:_,lang:b,loading:g,crossorigin:"anonymous",async:!0,...v},`giscus-${e}`)]})}},72437(e,s,a){a.d(s,{A:()=>n});var t=a(62540),r=a(63696);function n({properties:e=[],showRequired:s=!0,showTypes:a=!0,title:l}){return(0,t.jsxs)("div",{className:"propertyTable_hQUj",children:[l&&(0,t.jsx)("h3",{className:"tableTitle_TWK1",children:l}),(0,t.jsx)("div",{className:"tableWrapper_yEWV",children:(0,t.jsx)("div",{className:"tableContainer_u2JZ",children:(0,t.jsxs)("table",{className:"table_hICG",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"nameColumn_Gg8z",children:"Property"}),a&&(0,t.jsx)("th",{className:"typeColumn_lItm",children:"Type"}),s&&(0,t.jsx)("th",{className:"requiredColumn_iK7o",children:"Required"}),(0,t.jsx)("th",{className:"descriptionColumn_E7Ps",children:"Description"})]})}),(0,t.jsx)("tbody",{children:e.map((e,n)=>{var l;return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"nameCell_hWh2",children:(0,t.jsx)("code",{className:"propertyName_VmHE",children:e.name})}),a&&(0,t.jsx)("td",{className:"typeCell_GEa2",children:(0,t.jsx)("code",{className:"typeValue_rCoV",children:e.type||"any"})}),s&&(0,t.jsx)("td",{className:"requiredCell_PYWJ",children:e.required?(0,t.jsx)("span",{className:"requiredBadge_PsMd",children:"Yes"}):(0,t.jsx)("span",{className:"optionalBadge_raTf",children:"No"})}),(0,t.jsxs)("td",{className:"descriptionCell_Am9o",children:[e.descriptionElement||((l=e.description||e.desc)&&"string"==typeof l?l.split(/(`[^`]+`)/g).map((e,s)=>{if(e.startsWith("`")&&e.endsWith("`")){let a=e.slice(1,-1);return(0,t.jsx)("code",{className:"inlineCode_xnr8",children:a},s)}return(0,t.jsx)(r.Fragment,{children:e},s)}):l)||"-",void 0!==e.default&&(0,t.jsxs)("div",{className:"defaultValue_COU2",children:["Default: ",(0,t.jsx)("code",{children:String(e.default)})]}),e.example&&(0,t.jsxs)("div",{className:"exampleValue_LsuJ",children:["Example: ",(0,t.jsx)("code",{children:String(e.example)})]})]})]},n)})})]})})})]})}},86028(e,s,a){a.d(s,{A:()=>l});var t=a(62540),r=a(63696),n=a(4259);function l({examples:e}){let[s,a]=(0,r.useState)(0);return(0,t.jsxs)("div",{className:"showcase_Frh_",children:[(0,t.jsx)("div",{className:"tabBar_nDgC",children:e.map((e,r)=>(0,t.jsx)("button",{className:`tab_e7Wc ${s===r?"tabActive_bFGf":""}`,onClick:()=>a(r),type:"button",children:e.label},r))}),(0,t.jsx)("div",{className:"codeWrapper_A9hq",children:(0,t.jsx)(n.A,{language:e[s].language||"javascript",showLineNumbers:!1,children:e[s].code})})]})}},33061(e,s,a){a.d(s,{A:()=>c});var t=a(62540),r=a(63696),n=a(4259),l=a(21737),i=a(11750);function c({language:e="javascript",maxLines:s=10,title:a,children:d}){let[o,m]=(0,r.useState)(!1),[p,u]=(0,r.useState)(!1),h="string"==typeof d?d:d?.props?.children||"",x=(0,r.useMemo)(()=>h.split("\n").length,[h]);return(0,r.useEffect)(()=>{u(x>s)},[x,s]),(0,t.jsxs)("div",{className:"expandableCode_aykX",children:[a&&(0,t.jsx)("div",{className:"codeTitle_wT9c",children:a}),(0,t.jsxs)("div",{className:"codeWrapper_Ax0s",children:[(0,t.jsx)(n.A,{language:e,className:(0,i.A)("codeBlock_pYoZ",!o&&p&&"codeBlockCollapsed_BbBq"),style:{"--max-lines":s},children:h}),p&&(0,t.jsx)("button",{className:(0,i.A)("expandButton_LI8S",o&&"expandButtonExpanded_f3Av"),onClick:()=>m(!o),"aria-label":o?"Collapse code":"Expand code",children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{name:"chevron-up",size:16}),"Show Less"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{name:"chevron-down",size:16}),"Show More (",x-s," more lines)"]})})]})]})}},60669(e,s,a){a.d(s,{A:()=>c,Z:()=>d});var t=a(62540);a(63696);var r=a(12212),n=a(11750);let l={docCard:"docCard_fkZe",docCardIcon:"docCardIcon_BGZ3",iconEmoji:"iconEmoji_Qbz8",docCardContent:"docCardContent_iq6I",docCardTitle:"docCardTitle_Schw",docCardDescription:"docCardDescription_hFNV",docCardArrow:"docCardArrow_a2E_","docCard--primary":"docCard--primary_LBlT","docCard--secondary":"docCard--secondary_Z_7k","docCard--small":"docCard--small_opQl","docCard--large":"docCard--large_fygA",docCardGrid:"docCardGrid_L472"};function i(){return(0,t.jsx)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,
1children:(0,t.jsx)("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}function c({title:e,description:s,href:a,icon:d,variant:o="default",size:m="medium",external:p=!1,children:u}){let h=()=>(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)("div",{className:l.docCardIcon,children:d}),(0,t.jsxs)("div",{className:l.docCardContent,children:[(0,t.jsx)("h3",{className:l.docCardTitle,children:e}),s&&(0,t.jsx)("p",{className:l.docCardDescription,children:s}),u]}),(0,t.jsx)("div",{className:l.docCardArrow,children:(0,t.jsx)(i,{})})]}),x=(0,n.A)(l.docCard,l[`docCard--${o}`],l[`docCard--${m}`]);return a?p?(0,t.jsx)("a",{href:a,className:x,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(h,{})}):(0,t.jsx)(r.A,{to:a,className:x,children:(0,t.jsx)(h,{})}):(0,t.jsx)("div",{className:x,children:(0,t.jsx)(h,{})})}function d({columns:e=2,children:s}){return(0,t.jsx)("div",{className:l.docCardGrid,style:{"--grid-columns":e},children:s})}},17942(e,s,a){a.d(s,{A:()=>n});var t=a(62540);a(63696);var r=a(21737);function n({date:e,author:s,showAuthor:a=!1}){return e?(0,t.jsxs)("div",{className:"lastUpdated_hhBq",children:[(0,t.jsx)(r.A,{name:"clock-outline",size:16}),(0,t.jsx)("span",{className:"label_ZGd_",children:"Last updated:"}),(0,t.jsx)("time",{className:"date_OqLv",dateTime:new Date(e).toISOString(),children:new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),a&&s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"separator_WmF6",children:"\u2022"}),(0,t.jsxs)("span",{className:"author_Xhxh",children:["by ",s]})]})]}):null}},58907(e,s,a){a.d(s,{A:()=>n});var t=a(62540);a(63696);var r=a(21737);function n({content:e,wordsPerMinute:s=200}){let a=(()=>{let a="";if("string"==typeof e)a=e;else if(e?.props?.children){let s=e=>"string"==typeof e?e:Array.isArray(e)?e.map(s).join(" "):e?.props?.children?s(e.props.children):"";a=s(e)}return Math.ceil(a.trim().split(/\s+/).filter(e=>e.length>0).length/s)})();return 0===a?null:(0,t.jsxs)("div",{className:"readingTime_McF0",children:[(0,t.jsx)(r.A,{name:"clock-outline",size:16}),(0,t.jsxs)("span",{children:[a," ",1===a?"minute":"minutes"," read"]})]})}},42467(e,s,a){a.d(s,{A:()=>l});var t=a(62540);a(63696);var r=a(12212),n=a(21737);function l({items:e=[],title:s="Related Documentation"}){return e&&0!==e.length?(0,t.jsxs)("div",{className:"relatedDocs_xKXc",children:[(0,t.jsx)("h3",{className:"relatedDocsTitle_GEIK",children:s}),(0,t.jsx)("div",{className:"relatedDocsGrid_EWoE",children:e.map((e,s)=>(0,t.jsxs)(r.A,{to:e.href,className:"relatedDocCard_Me98",children:[e.icon&&(0,t.jsx)("div",{className:"relatedDocIcon_u5xO",children:e.icon}),(0,t.jsxs)("div",{className:"relatedDocContent_ZvYW",children:[(0,t.jsx)("h4",{className:"relatedDocTitle_SeQy",children:e.title}),e.description&&(0,t.jsx)("p",{className:"relatedDocDescription_Ys24",children:e.description})]}),(0,t.jsx)(n.A,{name:"arrow-right-stroke",size:20,className:"relatedDocArrow_rgfZ"})]},s))})]}):null}},374(e,s,a){a.d(s,{A:()=>i});var t=a(62540);a(63696);var r=a(11750),n=a(21737);let l={stepIndicator:"stepIndicator_J_kE","stepIndicator--horizontal":"stepIndicator--horizontal_w3qU",stepItem:"stepItem_dq5s",stepConnector:"stepConnector_huT0",stepLine:"stepLine_J9wL",stepLineCompleted:"stepLineCompleted_ef5k",stepContent:"stepContent_prit",stepNumber:"stepNumber_pOAn","stepNumber--completed":"stepNumber--completed_O_n3","stepNumber--active":"stepNumber--active_bBqb","stepNumber--pending":"stepNumber--pending_dMWp",stepText:"stepText_ka7i",stepTitle:"stepTitle_zGyY",stepTitleActive:"stepTitleActive_fQtS",stepDescription:"stepDescription_SbRZ"};function i({steps:e=[],currentStep:s=0,orientation:a="vertical"}){return(0,t.jsx)("div",{className:(0,r.A)(l.stepIndicator,l[`stepIndicator--${a}`]),children:e.map((a,i)=>{let c=a.status||(i<s?"completed":i===s?"active":"pending"),d=i===e.length-1;return(0,t.jsxs)("div",{className:l.stepItem,children:[(0,t.jsx)("div",{className:l.stepConnector,children:!d&&(0,t.jsx)("div",{className:(0,r.A)(l.stepLine,"completed"===c&&l.stepLineCompleted)})}),(0,t.jsxs)("div",{className:l.stepContent,children:[(0,t.jsx)("div",{className:(0,r.A)(l.stepNumber,l[`stepNumber--${c}`]),children:"completed"===c?(0,t.jsx)(n.A,{name:"checkmark-stroke",size:16}):(0,t.jsx)("span",{children:i+1})}),(0,t.jsxs)("div",{className:l.stepText,children:[(0,t.jsx)("div",{className:(0,r.A)(l.stepTitle,"active"===c&&l.stepTitleActive),children:a.title}),a.description&&(0,t.jsx)("div",{className:l.stepDescription,children:a.description})]})]})]},i)})})}},18930(e,s,a){a.d(s,{A:()=>C});var t=a(62540),r=a(63696),n=a(11750),l=a(34471),i=a(21737),c=a(75793);function d(e){(0,c.Tl)("docs_helpful_vote",(0,c.b6)({helpful:e.helpful,page_id:e.pageId,permalink:e.permalink,title:e.title,variant:e.variant??"card"}))}function o(e){(0,c.Tl)("docs_helpful_submit",(0,c.b6)({helpful:e.helpful,comment:e.comment,comment_length:e.comment.length,page_id:e.pageId,permalink:e.permalink,title:e.title,variant:e.variant??"card"}))}let m="thumbIcon_Yprl",p="thumbIconOnPrimary_xbYk",u="asideRoot_ClLe",h="asideRootWithEndSlot_Nswl",x="asideEndSlot_BHCU",j="asideBtn_WCqR",_="feedbackSubmittedAside_szkH",N="feedbackButton_kDWn",b="feedbackButtonActive_WjaZ",g="feedbackSubmitNo_R4YG",v="feedbackSubmitted_gXG3";function f({size:e=20,className:s}){return(0,t.jsx)("svg",{className:s,width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,
1children:(0,t.jsx)("path",{d:"M16.667 5L7.5 14.167 3.333 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function C({pageId:e,permalink:s,title:a,onSubmit:c,variant:w="card",asideEndSlot:y}){let{colorMode:A}=(0,l.G)(),[k,T]=(0,r.useState)(null),[I,S]=(0,r.useState)(""),[B,L]=(0,r.useState)(!1),E="dark"===A?"thumbs-up-dark":"thumbs-up",W="dark"===A?"thumbs-down-dark":"thumbs-down",D={pageId:e,permalink:s,title:a,variant:w},G=e=>{T(e),d({helpful:e,...D})};if(B){let e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{size:"aside"===w?18:20,className:"feedbackSubmittedCheck_YRcX"}),(0,t.jsx)("span",{children:"Thank you for your feedback!"})]});return"aside"===w&&y?(0,t.jsxs)("div",{className:(0,n.A)(u,h,"asideRootSubmittedAside_uykU"),children:[(0,t.jsx)("div",{className:(0,n.A)(v,_,"asideSubmittedMain_mJRN"),children:e}),(0,t.jsx)("div",{className:x,children:y})]}):(0,t.jsx)("div",{className:(0,n.A)(v,"aside"===w&&_),children:e})}if("aside"===w){let s=(0,t.jsxs)("div",{className:"asideButtons__hm1",children:[(0,t.jsxs)("button",{type:"button",className:j,onClick:()=>{o({helpful:"yes",comment:"",...D}),c&&c({pageId:e,feedback:"yes",comment:""}),L(!0)},"aria-label":"Yes, this was helpful",children:[(0,t.jsx)(i.A,{name:E,size:18,className:m}),"Yes"]}),(0,t.jsxs)("button",{type:"button",className:j,onClick:()=>{T("no"),d({helpful:"no",...D})},"aria-label":"No, this was not helpful",children:[(0,t.jsx)(i.A,{name:W,size:18,className:m}),"No"]})]});return(0,t.jsxs)("div",{className:(0,n.A)(u,y&&h,"no"===k&&"asideRootWithFollowup_ILrp"),children:[(0,t.jsx)("p",{className:"asideLabel_yKdX",children:"Was this helpful?"}),s,"no"===k&&(0,t.jsxs)("div",{className:"asideFollowup_vj8b",children:[(0,t.jsx)("textarea",{className:"asideTextarea_iziv",placeholder:"Tell us more (optional)...",value:I,onChange:e=>S(e.target.value),rows:2}),(0,t.jsx)("button",{type:"button",className:(0,n.A)("asideSubmit_xnWi",g),onClick:()=>{o({helpful:"no",comment:I.trim(),...D}),c&&c({pageId:e,feedback:"no",comment:I.trim()}),L(!0)},children:"Submit"})]}),y?(0,t.jsx)("div",{className:x,children:y}):null]})}return(0,t.jsxs)("div",{className:"wasThisHelpful_LFGY",children:[(0,t.jsxs)("div",{className:"feedbackPrompt_hLbD",children:[(0,t.jsx)("span",{className:"promptText_fpxS",children:"Was this helpful?"}),(0,t.jsxs)("div",{className:"feedbackButtons_VwXX",children:[(0,t.jsxs)("button",{type:"button",className:(0,n.A)(N,"yes"===k&&b),onClick:()=>G("yes"),"aria-label":"Yes, this was helpful",children:[(0,t.jsx)(i.A,{name:E,size:20,className:(0,n.A)(m,"yes"===k&&p)}),"Yes"]}),(0,t.jsxs)("button",{type:"button",className:(0,n.A)(N,"no"===k&&b),onClick:()=>G("no"),"aria-label":"No, this was not helpful",children:[(0,t.jsx)(i.A,{name:W,size:20,className:(0,n.A)(m,"no"===k&&p)}),"No"]})]})]}),k&&(0,t.jsxs)("div",{className:"feedbackForm_ERHR",children:[(0,t.jsx)("textarea",{className:"commentInput_zGC4",placeholder:"Tell us more (optional)...",value:I,onChange:e=>S(e.target.value),rows:3}),(0,t.jsx)("button",{type:"button",className:(0,n.A)("submitButton_Mcou","no"===k&&g),onClick:()=>{c&&c({pageId:e,feedback:k,comment:I}),k&&o({helpful:k,comment:I.trim(),...D}),L(!0)},children:"Submit Feedback"})]})]})}},65208(e,s,a){a.d(s,{T:()=>n});var t=a(62540),r=a(63696);function n({isHidden:e,onToggle:s,ariaLabel:a,...l}){let i=(0,r.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s())},[s]),c=e?"sidebarToggleIconHide_vVQ4":"sidebarToggleIconShow_G1VR";return(0,t.jsx)("button",{type:"button",className:"sidebarToggleButton_NqYz",onClick:s,onKeyDown:i,"aria-label":a,"aria-pressed":e,title:a,...l,children:(0,t.jsx)("span",{className:`sidebarToggleIcon_ef76 ${c}`,"aria-hidden":"true"})})}},96251(e,s,a){a.d(s,{A:()=>i});var t=a(62540);a(63696);var r=a(11750),n=a(34471),l=a(66655);function i({lightSrc:e,darkSrc:s,alt:a="",className:c,...d}){let{colorMode:o}=(0,n.G)(),m="dark"===o?s||e:e||s;if(!m)return null;let p=m.startsWith("/")?(0,l.Ay)(m):m;return(0,t.jsx)("img",{src:p,alt:a,className:(0,r.A)(c),...d})}},57458(e,s,a){a.d(s,{A:()=>c,_:()=>d});var t=a(62540),r=a(63696),n=a(11750),l=a(21737);let i={accordion:"accordion_RgZt",accordionHeader:"accordionHeader_lElb",accordionHeaderOpen:"accordionHeaderOpen_ZAvw",accordionTitle:"accordionTitle_KZkk",accordionIcon:"accordionIcon_uuae",accordionIconOpen:"accordionIconOpen_bPA8",accordionContent:"accordionContent_znSG",accordionContentOpen:"accordionContentOpen_wx9
1i",accordionBody:"accordionBody_PoDw","accordion--bordered":"accordion--bordered_Eqiz",accordionGroup:"accordionGroup_GEK0"};function c({title:e,defaultOpen:s=!1,children:a,variant:d="default"}){let[o,m]=(0,r.useState)(s);return(0,t.jsxs)("div",{className:(0,n.A)(i.accordion,i[`accordion--${d}`]),children:[(0,t.jsxs)("button",{className:(0,n.A)(i.accordionHeader,o&&i.accordionHeaderOpen),onClick:()=>{m(!o)},"aria-expanded":o,"aria-controls":`accordion-content-${e?.replace(/\s+/g,"-").toLowerCase()}`,children:[(0,t.jsx)("span",{className:i.accordionTitle,children:e}),(0,t.jsx)(l.A,{name:"accordion-chevron",size:20,className:(0,n.A)(i.accordionIcon,o&&i.accordionIconOpen)})]}),(0,t.jsx)("div",{id:`accordion-content-${e?.replace(/\s+/g,"-").toLowerCase()}`,className:(0,n.A)(i.accordionContent,o&&i.accordionContentOpen),"aria-hidden":!o,children:(0,t.jsx)("div",{className:i.accordionBody,children:a})})]})}function d({children:e,className:s}){return(0,t.jsx)("div",{className:(0,n.A)(i.accordionGroup,s),children:e})}},55754(e,s,a){a.d(s,{A:()=>l});var t=a(62540);a(63696);var r=a(11750);let n={badge:"badge_Fzrr",small:"small_rfXF",medium:"medium_Fg7E",large:"large_mjQh",primary:"primary_ABXL",secondary:"secondary_y5gk",success:"success_Eiyu",warning:"warning_YRLs",danger:"danger_W7gb",info:"info_j2aw",outline:"outline_cziM",glass:"glass_CQHU"};function l({children:e,variant:s="primary",size:a="medium"}){return(0,t.jsx)("span",{className:(0,r.A)(n.badge,n[s],n[a]),children:e})}},72595(e,s,a){a.d(s,{A:()=>c});var t=a(62540);a(63696);var r=a(11750),n=a(21737);let l={callout:"callout_UgIN",calloutHeader:"calloutHeader_rCLF",calloutIcon:"calloutIcon_RlXh",calloutTitle:"calloutTitle_fS6e",calloutContent:"calloutContent_SJxm",info:"info_sTwn",tip:"tip_vWy0",warning:"warning_uVpi",danger:"danger_oTm5",success:"success_egMM",note:"note_vpeX"},i={info:"lightbulb",tip:"sparkles",warning:"warning",danger:"siren",success:"checkmark",note:"memo"};function c({children:e,type:s="info",title:a}){return(0,t.jsxs)("div",{className:(0,r.A)(l.callout,l[s]),children:[(0,t.jsxs)("div",{className:l.calloutHeader,children:[(0,t.jsx)("span",{className:l.calloutIcon,children:(0,t.jsx)(n.A,{name:i[s],size:24})}),(0,t.jsx)("span",{className:l.calloutTitle,children:a||s.charAt(0).toUpperCase()+s.slice(1)})]}),(0,t.jsx)("div",{className:l.calloutContent,children:e})]})}},19374(e,s,a){a.d(s,{A:()=>n});var t=a(62540);a(63696);let r={gradientText:"gradientText_ogsv",primary:"primary_ss47",secondary:"secondary_UeGu",accent:"accent_a2JO",success:"success_izB6"};function n({children:e,variant:s="primary"}){return(0,t.jsx)("span",{className:`${r.gradientText} ${r[s]}`,children:e})}},51661(e,s,a){a.d(s,{d:()=>t});let t={docs:"compose-docs-sidebar-hidden",blog:"compose-blog-sidebar-hidden"}},40607(e,s,a){a.d(s,{i:()=>r});var t=a(63696);function r(e){let[s,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if("u">typeof window)try{let s=window.localStorage.getItem(e);a("true"===s)}catch{}},[e]),[s,(0,t.useCallback)(()=>{a(s=>{let a=!s;try{window.localStorage.setItem(e,String(a))}catch{}return a})},[e])]}},56518(e,s,a){a.d(s,{A:()=>b});var t=a(62540),r=a(63696),n=a(11750),l=a(41919),i=a(73140),c=a(12212),d=a(27368),o=a(37791);let m=r.createContext(null);var p=a(65208),u=a(57017);function h({children:e,href:s,isLast:a}){let r="breadcrumbs__link";return a?(0,t.jsx)("span",{className:r,children:e}):s?(0,t.jsx)(c.A,{className:r,href:s,children:(0,t.jsx)("span",{children:e})}):(0,t.jsx)("span",{className:r,children:e})}function x({children:e,active:s}){return(0,t.jsx)("li",{className:(0,n.A)("breadcrumbs__item",{"breadcrumbs__item--active":s}),children:e})}function j({pageTitle:e}){let{metadata:s}=(0,d.e7)(),{isHidden:a,toggle:n,hasSidebar:l}=function(){let e=r.useContext(m);if(null==e)return{isHidden:!1,toggle:()=>{},hasSidebar:!1};let[s,a,t=!1]=e;return{isHidden:s,toggle:a,hasSidebar:t}}();return s?(0,t.jsx)("nav",{className:u.A.breadcrumbsContainer,"aria-label":"Breadcrumbs",children:(0,t.jsxs)("div",{className:u.A.breadcrumbsInnerBlogArticle,children:[l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.T,{isHidden:a,onToggle:n,ariaLabel:a?"Show recent blog posts sidebar":"Hide recent blog posts sidebar"}),(0,t.jsx)("span",{className:u.A.sidebarToggleSep,"aria-hidden":"true",children:"|"})]}),(0,t.jsxs)("ul",{className:"breadcrumbs",children:[(0,t.jsx)(o.A,{}),(0,t.jsx)(x,{active:!1,children:(0,t.jsx)(h,{href:"/blog",isLast:!1,
1children:"Blog"})}),(0,t.jsx)(x,{active:!0,children:(0,t.jsx)(h,{href:void 0,isLast:!0,children:e||s.title})})]})]})}):null}var _=a(40607),N=a(51661);function b(e){let{sidebar:s,toc:a,children:c,isBlogPostPage:d,pageTitle:o,...p}=e,u=s&&s.items.length>0,h=!0===d||!!a,[x,b]=(0,_.i)(N.d.blog),g=h&&x,v=(0,r.useMemo)(()=>[x,b,u],[x,b,u]);return(0,t.jsx)(m.Provider,{value:v,children:(0,t.jsx)(l.A,{...p,children:(0,t.jsx)("div",{className:(0,n.A)("container",h?"padding-top--md padding-bottom--lg blog-article-container":"margin-vert--lg",g&&"blog-sidebar-hidden"),children:(0,t.jsxs)("div",{className:"row theme-blog-wrapper",children:[u&&(0,t.jsx)(i.A,{sidebar:s}),(0,t.jsxs)("main",{className:(0,n.A)("col",{"col--7":u&&!g,"col--9 col--offset-1":!u,"col--9":u&&g}),children:[h&&(0,t.jsx)(j,{pageTitle:o}),c]}),a&&(0,t.jsx)("div",{className:"col col--2",children:a})]})})})})}},11717(e,s,a){a.d(s,{A:()=>u});var t=a(62540),r=a(63696),n=a(27368),l=a(73544),i=a(34733),c=a(34471),d=a(71614),o=a(11750);let m={newsletterContainer:"newsletterContainer_CnkA",newsletterContent:"newsletterContent_fRar",newsletterHeader:"newsletterHeader_aLOr",newsletterTitleRow:"newsletterTitleRow_n_W3",newsletterIconWrapper:"newsletterIconWrapper_Sql7",newsletterIcon:"newsletterIcon_W8IT",newsletterTitle:"newsletterTitle_zGOG",newsletterDescription:"newsletterDescription_mk0q",newsletterForm:"newsletterForm_ajrf",newsletterRow:"newsletterRow_Tbar",newsletterInputWrapper:"newsletterInputWrapper_TGA1",newsletterInput:"newsletterInput_zJ58",newsletterButton:"newsletterButton_nflN",newsletterButtonContent:"newsletterButtonContent_QzRf",newsletterButtonSpinner:"newsletterButtonSpinner_fymY",spin:"spin_Xuon",newsletterTrustSignal:"newsletterTrustSignal_DsuC",newsletterTrustIcon:"newsletterTrustIcon_NxhH",newsletterMessage:"newsletterMessage_gVIz",slideIn:"slideIn_cxB8",newsletterMessageIcon:"newsletterMessageIcon_g0Oj","newsletterMessage--success":"newsletterMessage--success_qfJF","newsletterMessage--error":"newsletterMessage--error_zZVe",shake:"shake_btFp"};function p({showNameFields:e=!1,title:s="Stay Updated",description:a="Get notified about new features and updates.",buttonText:n="Subscribe",emailPlaceholder:l="Enter your email",firstNamePlaceholder:i="First Name",lastNamePlaceholder:u="Last Name",className:h="",onSuccess:x,onError:j}){let{colorMode:_}=(0,c.G)(),{subscribe:N,isSubmitting:b,isConfigured:g}=(0,d.P)(),[v,f]=(0,r.useState)(""),[C,w]=(0,r.useState)(""),[y,A]=(0,r.useState)("");if(!g)return null;let k=async s=>{s.preventDefault();try{await N({email:v,...e&&C&&{firstName:C},...e&&y&&{lastName:y}}),f(""),w(""),A(""),x&&x({email:v,firstName:C,lastName:y})}catch(e){j&&j(e)}};return(0,t.jsx)("div",{className:(0,o.A)(m.newsletterContainer,m[`newsletterContainer--${_}`],h),children:(0,t.jsxs)("div",{className:m.newsletterContent,children:[(0,t.jsxs)("div",{className:m.newsletterHeader,children:[(0,t.jsxs)("div",{className:m.newsletterTitleRow,children:[(0,t.jsx)("div",{className:m.newsletterIconWrapper,children:(0,t.jsx)("img",{src:"/icons/envelope.svg",alt:"",className:m.newsletterIcon,"aria-hidden":"true",width:"24",height:"24"})}),s&&(0,t.jsx)("h3",{className:m.newsletterTitle,children:s})]}),a&&(0,t.jsx)("p",{className:m.newsletterDescription,children:a})]}),(0,t.jsxs)("form",{onSubmit:k,className:m.newsletterForm,children:[e&&(0,t.jsxs)("div",{className:m.newsletterRow,children:[(0,t.jsx)("div",{className:m.newsletterInputWrapper,children:(0,t.jsx)("input",{type:"text",placeholder:i,value:C,onChange:e=>w(e.target.value),className:m.newsletterInput,disabled:b,"aria-label":"First name"})}),(0,t.jsx)("div",{className:m.newsletterInputWrapper,children:(0,t.jsx)("input",{type:"text",placeholder:u,value:y,onChange:e=>A(e.target.value),className:m.newsletterInput,disabled:b,"aria-label":"Last name"})})]}),(0,t.jsxs)("div",{className:m.newsletterRow,children:[(0,t.jsx)("div",{className:m.newsletterInputWrapper,children:(0,t.jsx)("input",{type:"email",placeholder:l,value:v,onChange:e=>f(e.target.value),className:m.newsletterInput,required:!0,disabled:b,"aria-label":"Email address","aria-required":"true"})}),(0,t.jsx)("button",{type:"submit",className:m.newsletterButton,disabled:b||!v.trim(),"aria-label":"Subscribe to newsletter",children:(0,t.jsx)("span",{className:m.newsletterButtonContent,children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:m.newsletterButtonSpinner,"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Subscribing..."})]}):n})})]}),(0,t.jsxs)("div",{className:m.newsletterTrustSignal,children:[(0,t.jsx)("img",{src:"/icons/shield-check.svg",alt:"",className:m.newsletterTrustIcon,"aria-hidden":"true",width:"14",height:"14"}),(0,t.jsx)("span",{children:"No spam. Unsubscribe anytime."})]})]})]})})}function u(e){let{metadata:s,isBlogPostPage:a}=(0,n.e7)(),{frontMatter:r}=s,{enableComments:c,enableNewsletter:d}=r;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{...e}),!1!==c&&a&&(0,t.jsx)(i.A,{}),!1!==d&&a&&(0,t.jsx)(p,{title:"Stay Updated",description:"Get notified about releases, feature announcements, and technical deep-dives on building smart contracts with Compose."})]})}},43562(e,s,a){a.d(s,{A:()=>u});var t=a(62540),r=a(63696),n=a(11750),l=a(69981),i=a(4209),c=a(96609),d=a(54767),o=a(52977),m=a(75793);let p={copyButtonCopied:"copyButtonCopied_KAEU",copyButtonIcons:"copyButtonIcons_CCmD",copyButtonIcon:"copyButtonIcon_cWY_",copyButtonSuccessIcon:"copyButtonSuccessIcon_YaqN"};function u({className:e}){let{copyCode:s,isCopied:a}=function(){let{metadata:{code:e}}=(0,i.Ph)(),[s,a]=(0,r.useState)(!1),t=(0,r.useRef)(void 0),n=(0,r.useCallback)(()=>{navigator.clipboard.writeText(e).then(()=>
1{let s,r="npx @perfect-abstractions/compose-cli init"===(s="string"!=typeof e?"":e.trim().replace(/\r\n/g,"\n"))?"compose_cli_npx":s.startsWith("forge install Perfect-Abstractions/Compose@")?"foundry_forge":"npm install @perfect-abstractions/compose"===s?"hardhat_npm":null;r&&(0,m.Tl)("docs_install_command_copy",(0,m.b6)({install_command_kind:r})),a(!0),t.current=window.setTimeout(()=>{a(!1)},1e3)})},[e]);return(0,r.useEffect)(()=>()=>window.clearTimeout(t.current),[]),{copyCode:n,isCopied:s}}();return(0,t.jsx)(c.A,{"aria-label":a?(0,l.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,l.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for the copy code blocks button"}),title:(0,l.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,n.A)(e,p.copyButton,a&&p.copyButtonCopied),onClick:s,children:(0,t.jsxs)("span",{className:p.copyButtonIcons,"aria-hidden":"true",children:[(0,t.jsx)(d.A,{className:p.copyButtonIcon}),(0,t.jsx)(o.A,{className:p.copyButtonSuccessIcon})]})})}},83631(e,s,a){a.d(s,{A:()=>p});var t=a(62540),r=a(63696),n=a(49519),l=a(12212);let i={wrapper:"wrapper_eJJm",link:"link_HTGF"};function c({editUrl:e}){return e?(0,t.jsx)("div",{className:i.wrapper,children:(0,t.jsx)(l.A,{className:i.link,href:e,children:(0,t.jsx)("span",{children:"Edit this page"})})}):null}var d=a(28908);function o({editUrl:e}){let{frontMatter:s}=(0,d.u)(),a=s?.gitSource;return e||a?(0,t.jsxs)("div",{className:i.wrapper,children:[a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{className:i.link,href:a,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("span",{children:"View Source"})}),(0,t.jsx)("span",{className:i.separator,children:"|"})]}),e&&(0,t.jsx)(l.A,{className:i.link,href:e,children:(0,t.jsx)("span",{children:"Edit this page"})})]}):null}class m extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,s){}render(){return this.state.hasError?(0,t.jsx)(c,{editUrl:this.props.editUrl}):(0,t.jsx)(o,{editUrl:this.props.editUrl})}}function p({editUrl:e}){let s=!1;try{let e=(0,n.zy)();s=(e?.pathname||"").startsWith("/docs/")}catch(e){s=!1}return s?(0,t.jsx)(m,{editUrl:e}):(0,t.jsx)(c,{editUrl:e})}},68657(e,s,a){a.d(s,{A:()=>I});var t=a(63696),r=a(1376),n=a(62540),l=a(11750);let i={cardWrapper:"cardWrapper_yqnG",featureCard:"featureCard_zx5P",cardIcon:"cardIcon_bvek",cardTitle:"cardTitle_NGIT",cardDescription:"cardDescription_cA7j",cardLink:"cardLink_svv_",gradientBlue:"gradientBlue_lpJ7",gradientCyan:"gradientCyan_JAT9",gradientGreen:"gradientGreen_ofnn"};var c=a(86028),d=a(19374),o=a(55754),m=a(72595),p=a(21737);let u={metricCard:"metricCard_XkIC",metricHeader:"metricHeader_UH3B",metricIcon:"metricIcon_XwAF",trend:"trend_ZLLG",up:"up_UXOK",down:"down_q04m",metricValue:"metricValue_YCA6",metricLabel:"metricLabel_XWlI"};var h=a(57458),x=a(374),j=a(72437);let _="propertyValue_LS9T",N={tooltipWrapper:"tooltipWrapper__HUM",tooltip:"tooltip_gO91","tooltip--top":"tooltip--top_z40W","tooltip--bottom":"tooltip--bottom_r1fK","tooltip--left":"tooltip--left_T5AT","tooltip--right":"tooltip--right_u8or"};var b=a(33061);let g="dot_vtXg";var v=a(18930),f=a(17942),C=a(58907),w=a(42467),y=a(60669),A=a(12212),k=a(96251);let T={contributionCard:"contributionCard_jaIh",cardMeta:"cardMeta_XDrS",kickerLogo:"kickerLogo_sqzk",kicker:"kicker_XLId",cardTitle:"cardTitle_z8Eb",cardDescription:"cardDescription_MLhI",tags:"tags_HnF6",tag:"tag_VRLd",cardLinkHint:"cardLinkHint_PtCa",cardLinkArrow:"cardLinkArrow_KbUD",contributionCardGrid:"contributionCardGrid_ctNO"},I={...r.A,FeatureCard:function({icon:e,title:s,description:a,gradient:t,link:r}){let c=(0,n.jsxs)("div",{className:(0,l.A)(i.featureCard,t&&i[t]),children:[(0,n.jsx)("div",{className:i.cardIcon,children:e}),(0,n.jsx)("h3",{className:i.cardTitle,children:s}),(0,n.jsx)("p",{className:i.cardDescription,children:a}),r&&(0,n.jsx)("div",{className:i.cardLink,children:"Learn more \u2192"})]});return r?(0,n.jsx)("a",{href:r,className:i.cardWrapper,children:c}):(0,n.jsx)("div",{className:i.cardWrapper,children:c})},CodeShowcase:c.A,GradientText:d.A,Badge:o.A,CalloutBox:m.A,MetricCard:function({value:e,label:s,icon:a,trend:t}){return(0,n.jsxs)("div",{className:u.metricCard,children:[(0,n.jsxs)("div",{className:u.metricHeader,children:[a&&(0,n.jsx)("span",{className:u.metricIcon,children:a}),t&&(0,n.jsxs)("span",{className:`${u.trend} ${u[t.direction]}`,children:[(0,n.jsx)(p.A,{name:"up"===t.direction?"arrow-up-right":"arrow-down-right",size:16})," ",t.value]})]}),(0,n.jsx)("div",{className:u.metricValue,children:e}),(0,n.jsx)("div",{className:u.metricLabel,children:s})]})},Icon:p.A,Accordion:h.A,AccordionGroup:h._,StepIndicator:x.A,ApiEndpoint:function({method:e="GET",path:s,description:a,params:t=[]}){let r={GET:"#10b981",POST:"#3b82f6",PUT:"#f59e0b",PATCH:"#3b82f6",DELETE:"#ef4444"},l={backgroundColor:r[e.toUpperCase()]||r.GET,color:"white"};return(0,n.jsxs)("div",{className:"apiEndpoint_q3nI",children:[(0,n.jsxs)("div",{className:"endpointHeader_ntVM",children:[(0,n.jsx)("span",{className:"methodBadge_HoBG",style:l,children:e.toUpperCase()}),(0,n.jsx)("code",{className:"path_twy9",children:s})]}),a&&(0,n.jsx)("p",{className:"description_j0ZY",children:a}),t.length>0&&(0,n.jsxs)("div",{className:"params_ttVm",children:[(0,n.jsx)("div",{className:"paramsTitle_ss3k",children:"Query Parameters:"}),(0,n.jsx)("ul",{className:"paramsList_qpjp",children:t.map((e,s)=>(0,n.jsxs)("li",{className:"paramItem_cRM6",children:[(0,n.jsx)("code",{className:"paramName_S4oN",children:e.name}),e.required&&(0,n.jsx)("span",{className:"requiredBadge_vq8H",children:"required"}),e.description&&(0,n.jsxs)("span",{className:"paramDesc_jMHK",children:[" - ",e.description]})]},s))})]})]})},PropertyTable:j.A,ParameterTable:function({parameters:e=[],showRequired:s=!0,showTypes:a=!0,title:t}){return(0,n.jsxs)("div",{className:"parameterTable_QRQe",children:[t&&(0,n.jsx)("h3",{className:"tableTitle_uWMs",children:t}),(0,n.jsx)("div",{className:"tableWrapper_dOUJ",children:(0,n.jsxs)("table",{className:"table_GokP",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"nameColumn_ieI0",children:"Parameter"}),a&&(0,n.jsx)("th",{className:"typeColumn_P1JH",children:"Type"}),s&&(0,n.jsx)("th",{className:"requiredColumn_fkwt",children:"Required"}),(0,n.jsx)("th",{className:"descriptionColumn_ryuc",children:"Description"})]})}),(0,n.jsx)("tbody",{children:e.map((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"nameCell_gM5r",children:(0,n.jsx)("code",{className:"parameterName_pLJO",children:e.name})}),a&&(0,n.jsx)("td",{className:"typeCell_QYd8",children:(0,n.jsx)("code",{className:"typeValue_Fowb",children:e.type||"any"})}),s&&(0,n.jsx)("td",{className:"requiredCell_QXwy",children:e.required?(0,n.jsx)("span",{className:"requiredBadge_OpRt",children:"Yes"}):(0,n.jsx)("span",{className:"optionalBadge_VUwy",children:"No"})}),(0,n.jsxs)("td",{className:"descriptionCell_wC8l",children:[e.description||e.desc||"-",void 0!==e.default&&(0,n.jsxs)("div",{className:"defaultValue_DPv2",children:["Default: ",(0,n.jsx)("code",{children:String(e.default)})]}),e.example&&(0,n.jsxs)("div",{className:"exampleValue_hT6G",children:["Example: ",(0,n.jsx)("code",{children:String(e.example)})]})]})]},t))})]})})]})},SchemaViewer:function e({schema:s={},collapsed:a=!1,depth:r=0}){let[i,c]=(0,t.useState)(!a),d=(s,t,r=0)=>
1{if(null===s)return(0,n.jsx)("span",{className:"nullValue_qQtE",children:"null"});if(void 0===s)return(0,n.jsx)("span",{className:"undefinedValue_wAEc",children:"undefined"});let l=Array.isArray(s)?"array":typeof s;return"object"===l?(0,n.jsx)(e,{schema:s,collapsed:a,depth:r+1}):"array"===l?(0,n.jsxs)("div",{className:"arrayContainer_TyQ6",children:["[",s.length>0?(0,n.jsx)("div",{className:"arrayItems_dTyg",children:s.map((e,a)=>(0,n.jsxs)("div",{className:"arrayItem_gZIu",children:[d(e,null,r+1),a<s.length-1&&","]},a))}):(0,n.jsx)("span",{className:"emptyArray_TloW",children:"empty"}),"]"]}):"string"===l?(0,n.jsxs)("span",{className:"stringValue_Y5Yw",children:['"',s,'"']}):"number"===l||"boolean"===l?(0,n.jsx)("span",{className:"primitiveValue_pLPE",children:String(s)}):(0,n.jsx)("span",{children:String(s)})},o=Object.entries(s),m=o.length>0;return(0,n.jsx)("div",{className:"schemaViewer_nkQt",children:(0,n.jsx)("div",{className:"schemaContainer_f9dE",children:m?(0,n.jsxs)(n.Fragment,{children:["{",(0,n.jsx)("div",{className:"schemaBody_rorL",children:o.map(([e,s])=>{let a,t,o;return a="object"==typeof s&&null!==s&&!Array.isArray(s),t=Array.isArray(s),o=a||t,(0,n.jsxs)("div",{className:(0,l.A)("property_q7Vr",o&&"propertyComplex_FTxc"),children:[(0,n.jsxs)("div",{className:"propertyHeader_BuNi",children:[(0,n.jsxs)("span",{className:"propertyKey_avps",children:['"',e,'"']}),(0,n.jsx)("span",{className:"propertySeparator_d_b_",children:":"}),o&&(0,n.jsx)("button",{className:"expandButton_mTYP",onClick:()=>c(!i),"aria-label":i?"Collapse":"Expand",children:(0,n.jsx)(p.A,{name:"schema-expand",size:12,className:(0,l.A)("expandIcon_ykwq",i&&"expandIconOpen_oRCd")})}),!o&&(0,n.jsx)("div",{className:_,children:d(s,e,r)})]}),o&&(0,n.jsx)("div",{className:(0,l.A)(_,!i&&"propertyValueCollapsed_kZor"),children:d(s,e,r)})]},e)})}),"}"]}):(0,n.jsx)("span",{className:"emptyObject_HIVB",children:"{}"})})})},Tooltip:function({content:e,position:s="top",children:a}){let[r,i]=(0,t.useState)(!1),[c,d]=(0,t.useState)({}),o=(0,t.useRef)(null),m=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(r&&o.current&&m.current){let e=m.current.getBoundingClientRect(),a=o.current.getBoundingClientRect(),t=0,r=0;switch(s){case"top":t=e.top-a.height-8,r=e.left+(e.width-a.width)/2;break;case"bottom":t=e.bottom+8,r=e.left+(e.width-a.width)/2;break;case"left":t=e.top+(e.height-a.height)/2,r=e.left-a.width-8;break;case"right":t=e.top+(e.height-a.height)/2,r=e.right+8}d({top:t,left:r})}},[r,s]);let p=()=>i(!0),u=()=>i(!1);return(0,n.jsxs)("span",{ref:m,className:N.tooltipWrapper,onMouseEnter:p,onMouseLeave:u,onFocus:p,onBlur:u,children:[a,r&&(0,n.jsx)("div",{ref:o,className:(0,l.A)(N.tooltip,N[`tooltip--${s}`]),style:c,role:"tooltip",children:e})]})},ExpandableCode:b.A,TerminalCommand:function({command:e,copyable:s=!0,prompt:a="$",language:r="bash"}){let[l,i]=(0,t.useState)(!1),c=async()=>{try{await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return(0,n.jsxs)("div",{className:"terminalCommand_uVym",children:[(0,n.jsxs)("div",{className:"terminalHeader_Ip6t",children:[(0,n.jsxs)("div",{className:"terminalDots_KceJ",children:[(0,n.jsx)("span",{className:g}),(0,n.jsx)("span",{className:g}),(0,n.jsx)("span",{className:g})]}),(0,n.jsx)("span",{className:"terminalTitle_WRjx",children:"Terminal"}),s&&(0,n.jsx)("button",{className:"copyButton_XFOQ",onClick:c,"aria-label":"Copy command",title:"Copy command",children:l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.A,{name:"checkmark-stroke",size:16}),"Copied!"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.A,{name:"clipboard-outline",size:16}),"Copy"]})})]}),(0,n.jsx)("div",{className:"terminalBody_QDbs",children:(0,n.jsxs)("pre",{className:"commandLine_Hs0R",children:[(0,n.jsx)("span",{className:"prompt_LsXE",children:a}),(0,n.jsx)("code",{className:`language-${r}`,children:e})]})})]})},WasThisHelpful:v.A,LastUpdated:f.A,ReadingTime:C.A,RelatedDocs:w.A,DocCard:y.A,ContributionCard:function({title:e,description:s,href:a,kicker:t,kickerLogo:r,kickerLogoDark:l,tags:i}){return(0,n.jsxs)(A.A,{to:a,className:T.contributionCard,children:[(0,n.jsxs)("header",{className:T.cardMeta,children:[r&&(0,n.jsx)(k.A,{lightSrc:r,dar
1kSrc:l,alt:"",className:T.kickerLogo,"aria-hidden":"true"}),(0,n.jsx)("span",{className:T.kicker,children:t})]}),(0,n.jsx)("h3",{className:T.cardTitle,children:e}),(0,n.jsx)("p",{className:T.cardDescription,children:s}),i&&(0,n.jsx)("div",{className:T.tags,children:i.map(e=>(0,n.jsx)("span",{className:T.tag,children:e},e))}),(0,n.jsxs)("span",{className:T.cardLinkHint,children:[(0,n.jsx)("span",{className:T.cardLinkLabel,children:"Get started"}),(0,n.jsx)("span",{className:T.cardLinkArrow,"aria-hidden":"true",children:"\u2192"})]})]})},ContributionCardGrid:function({columns:e=2,children:s}){return(0,n.jsx)("div",{className:T.contributionCardGrid,style:{"--grid-columns":e},children:s})}}},75793(e,s,a){function t(e,s={}){let a=function(){if("u"<typeof window)return null;let e=window.posthog;return e&&"function"==typeof e.capture?e:null}();a&&a.capture(e,s)}function r(e={}){let s="u">typeof window?window.location?.pathname:void 0,a="u">typeof document?document.title:void 0;return{...e,permalink:e.permalink??s,title:e.title??a}}a.d(s,{Tl:()=>t,b6:()=>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.