1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3085],{14247:(e,n,t)=>{t.r(n),t.d(n,{default:()=>m});t(67294);var a=t(90512),i=t(1944),s=t(35281),r=t(44023),o=t(45042),l=t(39407),c=t(22212);const d={mdxPageWrapper:"mdxPageWrapper_j9I6"};var u=t(85893);function m(e){const{content:n}=e,{metadata:{title:t,description:m,frontMatter:f,unlisted:h},assets:g}=n,{keywords:v,wrapperClassName:x,hide_table_of_contents:p}=f,j=g.image??f.image;return(0,u.jsx)(i.FG,{className:(0,a.Z)(x??s.k.wrapper.mdxPages,s.k.page.mdxPage),children:(0,u.jsxs)(r.Z,{children:[(0,u.jsx)(i.d,{title:t,description:m,keywords:v,image:j}),(0,u.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,u.jsxs)("div",{className:(0,a.Z)("row",d.mdxPageWrapper),children:[(0,u.jsxs)("div",{className:(0,a.Z)("col",!p&&"col--8"),children:[h&&(0,u.jsx)(c.Z,{}),(0,u.jsx)("article",{children:(0,u.jsx)(o.Z,{children:(0,u.jsx)(n,{})})})]}),!p&&n.toc.length>0&&(0,u.jsx)("div",{className:"col col--2",children:(0,u.jsx)(l.Z,{toc:n.toc,minHeadingLevel:f.toc_min_heading_level,maxHeadingLevel:f.toc_max_heading_level})})]})})]})})}},39407:(e,n,t)=>{t.d(n,{Z:()=>c});t(67294);var a=t(90512),i=t(93743);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=t(85893);const o="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:n,...t}=e;return(0,r.jsx)("div",{className:(0,a.Z)(s.tableOfContents,"thin-scrollbar",n),children:(0,r.jsx)(i.Z,{...t,linkClassName:o,linkActiveClassName:l})})}},93743:(e,n,t)=>{t.d(n,{Z:()=>g});var a=t(67294),i=t(86668);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const a=t.slice(2,e.level);e.parentIndex=Math.max(...a),t[e.level]=n}));const a=[];return n.forEach((e=>{const{parentIndex:t,...i}=e;t>=0?n[t].children.push(i):a.push(i)})),a}function r(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return n.flatMap((e=>{const n=r({toc:e.children,minHeadingLevel:t,maxHeadingLevel:a});return function(e){return e.level>=t&&e.level<=a}(e)?[{...e,children:n}]:n}))}function o(e){const n=e.getBoundingClientRect();return n.top===n.bottom?o(e.parentNode):n}function l(e,n){let{anchorTopOffset:t}=n;const a=e.find((e=>o(e).top>=t));if(a){return function(e){return e.top>0&&e.bottom<window.innerHeight/2}(o(a))?a:e[e.indexOf(a)-1]??null}return e[e.length-1]??null}function c(){const e=(0,a.useRef)(0),{navbar:{hideOnScroll:n}}=(0,i.L)();return(0,a.useEffect)((()=>{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,a.useRef)(void 0),t=c();(0,a.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:a,linkActiveClassName:i,minHeadingLevel:s,maxHeadingLevel:r}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(a),o=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const a=[];for(let i=n;i<=t;i+=1)a.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(a.join()))}({minHeadingLevel:s,maxHeadingLevel:r}),c=l(o,{anchorTopOffset:t.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(i),e.classList.add(i),n.current=e):e.classList.remove(i)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,t])}var u=t(33692),m=t(85893);function f(e){let{toc:n,className:t,linkClassName:a,isChild:i}=e;return n.length?(0,m.jsx)("ul",{className:i?void 0:t,children:n.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.Z,{to:`#${e.id}`,className:a??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(f,{isChild:!0,toc:e.children,className:t,linkClassName:a})]},e.id)))}):null}const h=a.memo(f);function g(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...f}=e;const g=(0,i.L)(),v=c??g.tableOfContents.minHeadingLevel,x=u??g.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return(0,a.useMemo)((()=>r({toc:s(n),minHeadingLevel:t,maxHeadingLevel:i})),[n,t,i])}({toc:n,minHeadingLevel:v,maxHeadingLevel:x});return d((0,a.useMemo)((()=>
1{if(o&&l)return{linkClassName:o,linkActiveClassName:l,minHeadingLevel:v,maxHeadingLevel:x}}),[o,l,v,x])),(0,m.jsx)(h,{toc:p,className:t,linkClassName:o,...f})}},22212:(e,n,t)=>{t.d(n,{Z:()=>f});t(67294);var a=t(90512),i=t(95999),s=t(35742),r=t(85893);function o(){return(0,r.jsx)(i.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,r.jsx)(i.Z,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,r.jsx)(s.Z,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(35281),u=t(59047);function m(e){let{className:n}=e;return(0,r.jsx)(u.Z,{type:"caution",title:(0,r.jsx)(o,{}),className:(0,a.Z)(n,d.k.common.unlistedBanner),children:(0,r.jsx)(l,{})})}function f(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(m,{...e})]})}},35646:(e,n,t)=>{t.d(n,{Z:()=>v});t(67294);var a=t(13180);const i="signature_G30P",s="signatureName_VGBj",r="signatureParam_NA9s",o="sourceLink_zUfY",l="parametersHeader_htmc",c="parameters_XaYc",d="param_mZsG",u="paramName__bdB",m="defaultValue_Iuk8",f="typeLink_mI3q";var h=t(85893);const g={arguments:"foundations/arguments",array:"foundations/array",auto:"foundations/auto",bool:"foundations/bool",boolean:"foundations/bool",bytes:"foundations/bytes",content:"foundations/content",datetime:"foundations/datetime",dictionary:"foundations/dictionary",duration:"foundations/duration",float:"foundations/float",function:"foundations/function",int:"foundations/int",integer:"foundations/int",label:"foundations/label",module:"foundations/module",none:"foundations/none",plugin:"foundations/plugin",regex:"foundations/regex",selector:"foundations/selector",str:"foundations/str",string:"foundations/str",type:"foundations/type",version:"foundations/version",alignment:"layout/alignment",angle:"layout/angle",direction:"layout/direction",fraction:"layout/fraction",length:"layout/length",ratio:"layout/ratio",relative:"layout/relative",color:"visualize/color",gradient:"visualize/gradient",pattern:"visualize/pattern",stroke:"visualize/stroke",counter:"introspection/counter",location:"introspection/location",state:"introspection/state",symbol:"symbols/symbol"},v={...a.Z,Parameters:e=>{let{children:n}=e;return(0,h.jsxs)("div",{"data-search-children":!0,children:[(0,h.jsx)("div",{className:l,children:"Parameters"}),(0,h.jsx)("div",{className:c,children:n})]})},Param:e=>{let{children:n}=e;return(0,h.jsx)("div",{className:d,children:n})},ParamName:e=>{let{children:n}=e;return(0,h.jsx)("span",{className:u,children:n})},Signature:e=>{let{children:n}=e;return(0,h.jsx)("div",{className:i,children:n})},SignatureName:e=>{let{children:n}=e;return(0,h.jsx)("span",{className:s,children:n})},SignatureParam:e=>{let{children:n}=e;return(0,h.jsx)("span",{className:r,children:n})},SourceLink:e=>{let{href:n}=e;return(0,h.jsx)("span",{children:(0,h.jsx)("a",{href:n,className:o,children:"(source)"})})},Default:e=>{let{children:n}=e;return(0,h.jsxs)("span",{className:m,children:["\xa0\xa0\xa0",(0,h.jsx)("i",{children:"default:"})," ",n]})},TypeLink:e=>{let{type:n}=e;const t=g[n];return t?(0,h.jsx)("a",{href:`https://typst.app/docs/reference/${t}`,target:"_blank",rel:"noopener noreferrer",className:f,children:n}):(0,h.jsx)("span",{className:f,children:(0,h.jsx)("code",{children:n})})}}}}]);
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.