@monospaced/set-core 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icon/icons-tdesign.d.ts +1 -1
- package/dist/components/icon/icons-tdesign.d.ts.map +1 -1
- package/dist/components/icon/icons.generated.d.ts.map +1 -1
- package/dist/components/logo/logo.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const it=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);function de(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function nt(e){return Object.entries(e).flatMap(([n,t])=>t===!1||t==null?[]:t===!0?[n]:[`${n}="${de(String(t))}"`]).join(" ")}function h(e){if(e.kind==="text")return de(e.value);if(e.kind==="raw")return e.html;const n=nt(e.attrs),t=n?`<${e.tag} ${n}>`:`<${e.tag}>`;if(it.has(e.tag))return t;const i=e.children.map(h).join("");return`${t}${i}</${e.tag}>`}function M(e){return/^[A-Za-z][\w:-]*$/.test(e)}function k(e){if(e===void 0)return;const n=e.trim();if(n){if(!M(n))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");return n}}function A(e){return e==null?void 0:e.trim().replace(/\s+/g," ")||void 0}const se={adjustment:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 5L10 5M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5M10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5M6 5L3 5M21 19H10M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19M10 19C10 17.8954 9.10457 17 8 17C6.89543 17 6 17.8954 6 19M3 12H14M14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12M6 19H3M18 12H21","stroke-linecap":"square"}}]}],"arrow-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85","stroke-linecap":"square"}}]}],"arrow-left":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11 6.5L5.5 12L11 17.5M6.75 12H19.75","stroke-linecap":"square"}}]}],"arrow-left-right-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.5 4L19 7.5L15.5 11M17.75 7.5H5.5M8.5 20L5 16.5L8.5 13M6.25 16.5H18.5","stroke-linecap":"square"}}]}],"arrow-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12","stroke-linecap":"square"}}]}],"arrow-up":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25","stroke-linecap":"square"}}]}],"arrow-up-down-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M7.5 6.25V18.5M13 15.5L16.5 19L20 15.5M16.5 17.75V5.50001M11 8.5L7.5 5L4 8.5","stroke-linecap":"square"}}]}],"check-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M16.5 9L10.5 15L7.5 12","stroke-linecap":"square"}}]}],"chevron-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 9.5L12 15L6.5 9.5","stroke-linecap":"square"}}]}],"chevron-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.5 17.5L15 12L9.5 6.5","stroke-linecap":"square"}}]}],circle:[{tag:"g",attrs:{},children:[{tag:"circle",attrs:{cx:"12",cy:"12",r:"10","stroke-linecap":"square"}}]}],"city-6":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12 21V16M7 21H2V9H7V21ZM22 7V21H17V7H22Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M17 3H7V21H17V3Z","stroke-linecap":"square"}}]}],close:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029","stroke-linecap":"square"}}]}],copy:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M10 10H21V21H10V10Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M14 6.5V3L3 3L3 14H6.5","stroke-linecap":"square"}}]}],download:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.5 10.5L12 15L7.5 10.5M12 13.75V4","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M20.5 15V20H3.5V15","stroke-linecap":"square"}}]}],enter:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M5.75 16H16C17.6569 16 19 14.6569 19 13L19 5M8 12.5L4.5 16L8 19.5","stroke-linecap":"square"}}]}],"error-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z","stroke-linecap":"square"}}]}],"error-triangle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12.0003 3L22.2194 20.7H1.78125L12.0003 3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 10.5V14M12 17.5H12.0039V17.5039H12V17.5Z","stroke-linecap":"square"}}]}],horizontal:[{tag:"g",attrs:{},children:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 11H21V21H3V11Z"}},{tag:"path",attrs:{d:"M3 3H21V7H3V3Z"}}]}]}],"info-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z","stroke-linecap":"square"}}]}],jump:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9 4L4 4L4 20L20 20L20 15","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M19.25 4.75L12 12M14 4H20L20 10","stroke-linecap":"square"}}]}],layers:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M4.5 6.125L12 3L19.5 6.125L12 9.25L4.5 6.125Z"}},{tag:"path",attrs:{d:"M3 11.5005L12 15.3771L21 11.5005M21 17.5005L12 21.3771L3 17.5005"}}]}],link:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14","stroke-linecap":"square"}}]}],member:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16 20V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V20M12.5 7C12.5 9.20914 10.7091 11 8.5 11C6.29086 11 4.5 9.20914 4.5 7C4.5 4.79086 6.29086 3 8.5 3C10.7091 3 12.5 4.79086 12.5 7Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.5 11C17.7091 11 19.5 9.20914 19.5 7C19.5 4.79086 17.7091 3 15.5 3M23 20V19C23 16.7909 21.2091 15 19 15","stroke-linecap":"square"}}]}],"panel-left":[{tag:"path",attrs:{d:"M3 3H21V21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M9 3V21","stroke-linecap":"square"}}],pantone:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3.35389 10.3333L20.8245 10.3333L19.0009 5L3.35389 10.3333ZM3.35389 10.3333L17.1433 5.63318L14.1465 1.43164L2.99942 10.3359M3.35389 10.3333L2.99942 10.3359M2.99942 10.3359H2.5"}},{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M6.28516 15.1641H6.28906V15.168H6.28516V15.1641Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M22 10.333V19.9997L2 19.9997L2 10.333L22 10.333Z","stroke-linecap":"square"}}]}]}],play:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"}}],rectangle:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 3H21V21H3z","stroke-linecap":"square"}}]}],refresh:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998","stroke-linecap":"square"}}]}],"robot-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 21V19.5C19.5 17.2909 17.7091 15.5 15.5 15.5H8.5C6.29086 15.5 4.5 17.2909 4.5 19.5V21M12 4V2M10 12H14C16.2091 12 18 10.2091 18 8C18 5.79086 16.2091 4 14 4H10C7.79086 4 6 5.79086 6 8C6 10.2091 7.79086 12 10 12ZM10.25 8C10.25 8.13807 10.1381 8.25 10 8.25C9.86193 8.25 9.75 8.13807 9.75 8C9.75 7.86193 9.86193 7.75 10 7.75C10.1381 7.75 10.25 7.86193 10.25 8ZM14 8.25C13.8619 8.25 13.75 8.13807 13.75 8C13.75 7.86193 13.8619 7.75 14 7.75C14.1381 7.75 14.25 7.86193 14.25 8C14.25 8.13807 14.1381 8.25 14 8.25Z","stroke-linecap":"square"}}]}],search:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.8027 15.8037L21.106 21.107","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z","stroke-linecap":"square"}}]}],"setting-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.40811 4.95996L10.0001 2H14.0001L14.5921 4.95996C15.4027 5.25851 16.1475 5.69306 16.7989 6.23595L19.6604 5.26796L21.6604 8.73206L19.3922 10.7254C19.4632 11.1396 19.5001 11.5655 19.5001 12C19.5001 12.4345 19.4632 12.8604 19.3922 13.2747L21.6604 15.268L19.6604 18.7321L16.7989 17.7641C16.1475 18.3069 15.4027 18.7415 14.5921 19.04L14.0001 22H10.0001L9.40811 19.04C8.5975 18.7415 7.85268 18.3069 7.20131 17.7641L4.33984 18.7321L2.33984 15.268L4.60798 13.2747C4.53705 12.8604 4.5001 12.4345 4.5001 12C4.5001 11.5655 4.53705 11.1396 4.60797 10.7254L2.33984 8.73206L4.33984 5.26796L7.20129 6.23595C7.85266 5.69306 8.59749 5.25851 9.40811 4.95996Z","fill-rule":"evenodd","stroke-linecap":"square","clip-rule":"evenodd"}},{tag:"path",attrs:{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z","stroke-linecap":"square"}}]}],swap:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 14.5H4L9 19.5M3 9.5L20 9.5L15 4.5","stroke-linecap":"square"}}]}],"user-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 20V19C19.5 16.7909 17.7091 15 15.5 15H8.5C6.29086 15 4.5 16.7909 4.5 19V20M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z","stroke-linecap":"square"}}]}],"view-list":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 5H21M3 12H21M3 19H21","stroke-linecap":"square"}}]}]},rt=Object.keys(se);function le(e){return e.map(n=>({kind:"element",tag:n.tag,attrs:n.attrs,children:n.children?le(n.children):[]}))}function q({ariaHidden:e=!0,id:n,mirrored:t,name:i,size:r="md",title:a}){const o=se[i];if(!o)throw new Error(`Unknown icon name: ${i}`);const d=k(n),p=a?.trim();if(!e&&!p)throw new Error("title must be non-empty when ariaHidden is false.");if(!e&&!d)throw new Error("id must be provided when ariaHidden is false.");const s=e?void 0:`${d}-title`,l=[];return e||l.push({kind:"element",tag:"title",attrs:{id:s},children:[{kind:"text",value:p}]}),l.push(...le(o)),{kind:"element",tag:"svg",attrs:{"aria-hidden":e?"true":void 0,"aria-labelledby":s,class:"set-icon","data-mirrored":t,"data-size":r,fill:"none",height:"24",id:d,role:e?void 0:"img",stroke:"currentColor","stroke-width":"1.75",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},children:l}}function pe(e){return h(q(e))}const at={name:"icon",description:"Use `icon` to render a Set icon.",output:{element:"svg",class:"set-icon"},content:{kind:"none"},props:{ariaHidden:{default:!0,description:"Hides the icon from assistive technology. Decorative by default; set to false for a labelled icon (then `title` and `id` are required).",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}},mirrored:{description:"Mirrors the icon horizontally.",type:{kind:"enum",values:["always","rtl"]}},name:{description:"Set icon name.",required:!0,type:{kind:"iconName"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","fill"]}},title:{description:"Accessible title announced by assistive technology.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"data-mirrored",condition:{kind:"when-provided",prop:"mirrored"},value:{kind:"prop",prop:"mirrored"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"fill",condition:{kind:"always"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"height",condition:{kind:"always"},value:{kind:"literal",text:"24"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-truthy",prop:"ariaHidden"}},value:{kind:"literal",text:"img"}},{target:{on:"host"},attribute:"stroke",condition:{kind:"always"},value:{kind:"literal",text:"currentColor"}},{target:{on:"host"},attribute:"stroke-width",condition:{kind:"always"},value:{kind:"literal",text:"1.75"}},{target:{on:"host"},attribute:"viewBox",condition:{kind:"always"},value:{kind:"literal",text:"0 0 24 24"}},{target:{on:"host"},attribute:"xmlns",condition:{kind:"always"},value:{kind:"literal",text:"http://www.w3.org/2000/svg"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function F(e){const{appearance:n="outline",controls:t,disabled:i,disclosure:r,form:a,haspopup:o,id:d,icon:p,iconMirrored:s,iconPlacement:l="start",label:c,labelVisibility:u="visible",name:g,size:v="md",tone:m="default",type:f,value:C}=e,S=p||void 0,b=!!S;if(u!=="visible"&&!b)throw new Error("labelVisibility requires icon when label is not visible.");const y=b&&S?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:pe({ariaHidden:!0,mirrored:s,name:S,size:"fill"})}]}:null,w={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:c}]};return{kind:"element",tag:"button",attrs:{"aria-controls":r&&t||void 0,"aria-expanded":r?"false":void 0,"aria-haspopup":o||void 0,class:"set-button","data-appearance":n,"data-label-visibility":u==="visible"?void 0:u,"data-size":v,"data-tone":m==="neutral"?"neutral":void 0,disabled:!!i,form:a||void 0,id:d||void 0,name:g||void 0,type:f||"button",value:C||void 0},children:y?l==="end"?[w,y]:[y,w]:[w]}}function Z(e){return h(F(e))}const ot={name:"button",description:"Use `button` to let users trigger actions.",output:{element:"button",class:"set-button"},content:{kind:"text",prop:"label"},props:{appearance:{default:"outline",description:"Visual appearance.",type:{kind:"enum",values:["outline","solid","text"]}},controls:{description:"`id` of the element this button controls.",ignoredWhen:"`disclosure` is false",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},disclosure:{default:!1,description:"Marks the button as a disclosure toggle for another element.",type:{kind:"boolean"}},form:{description:"`id` of the form this button belongs to.",type:{kind:"string"}},haspopup:{description:"Signals that activating the button opens a popup of this type.",type:{kind:"enum",values:["menu"]}},icon:{description:"Icon shown alongside the label.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"iconName"}},iconMirrored:{description:"Mirrors the icon horizontally.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["always","rtl"]}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},id:{description:"`id` for the button.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},name:{description:"Name submitted with the form.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},type:{default:"button",description:"Native button type.",type:{kind:"enum",values:["button","submit"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"when-truthy",prop:"disclosure"},value:{kind:"literal",text:"false"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"all",of:[{kind:"when-truthy",prop:"disclosure"},{kind:"when-non-empty",prop:"controls"}]},value:{kind:"prop",prop:"controls"}},{target:{on:"host"},attribute:"aria-haspopup",condition:{kind:"when-provided",prop:"haspopup"},value:{kind:"prop",prop:"haspopup"}},{target:{on:"host"},attribute:"form",condition:{kind:"when-non-empty",prop:"form"},value:{kind:"prop",prop:"form"}},{target:{on:"host"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"prop",prop:"type"}},{target:{on:"host"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}}]}},P="set-alert",X="set-alert-before-dismiss",Q="set-alert-dismiss",B="Dismiss alert";function dt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Z({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function st(e){switch(e){case"success":return"check-circle";case"warning":return"error-triangle";case"error":return"error-circle";default:return"info-circle"}}function lt(e){return e==="warning"||e==="error"?"alert":"status"}function ce({dismissible:e,dismissibleLabel:n=B,id:t,inlineSize:i="full",message:r,size:a="md",tone:o,title:d}){const p=k(t),s=n.trim()===""?B:n,l=[];return d&&l.push({kind:"element",tag:"p",attrs:{class:"title"},children:[{kind:"text",value:d}]}),l.push({kind:"element",tag:"p",attrs:{class:"message"},children:[{kind:"text",value:r}]}),{kind:"element",tag:P,attrs:{class:"set-alert","data-dismissible":e,"data-dismissible-label":e?s:void 0,"data-inline-size":i==="fit"?"fit":void 0,"data-size":a,"data-tone":o||void 0,id:p,role:lt(o)},children:[{kind:"element",tag:"div",attrs:{class:"icon-wrapper"},children:[q({ariaHidden:!0,name:st(o),size:a})]},{kind:"element",tag:"div",attrs:{class:"content"},children:l}]}}function pt(e){return h(ce(e))}function ue(){if(customElements.get(P))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(X,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(Q,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(dt(this.getAttribute("data-dismissible-label")??B,this.ownerDocument))}}customElements.define(P,e)}const ct={name:"alert",description:"Use `alert` to surface short, important messages.",output:{element:P,class:"set-alert"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"message",kind:"text"}]},props:{dismissible:{default:!1,description:"Shows a dismiss control that removes the alert.",type:{kind:"boolean"}},dismissibleLabel:{default:B,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the alert fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},message:{description:"Body text of the alert.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},title:{description:"Bold text above the message.",type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[X]:{bubbles:!0,cancelable:!0,description:"Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."},[Q]:{bubbles:!0,description:"Fired after the alert has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-in",prop:"tone",values:["warning","error"]},value:{kind:"literal",text:"alert"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-in",prop:"tone",values:["warning","error"]}},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"when-non-empty",prop:"dismissibleLabel"}]},value:{kind:"prop",prop:"dismissibleLabel"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"not",of:{kind:"when-non-empty",prop:"dismissibleLabel"}}]},value:{kind:"literal",text:B}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ut(e){if(e)return e===!0?!0:e}function Y(e){const{appearance:n="text",current:t,download:i,href:r,id:a,icon:o,iconPlacement:d="start",label:p,labelVisibility:s="visible",rel:l,size:c="md",target:u,tone:g="default",underline:v}=e,m=k(a),f=o?.trim()||void 0;if(s!=="visible"&&!!!f)throw new Error("labelVisibility requires icon when label is not visible.");const S=ut(i),b=f?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:f}]}:null,y={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:p}]};return{kind:"element",tag:"a",attrs:{"aria-current":t,class:"set-link","data-appearance":n==="text"?void 0:n,"data-label-visibility":s==="visible"?void 0:s,"data-size":c,"data-tone":g==="neutral"?"neutral":void 0,"data-underline":v&&n==="text"?!0:void 0,download:S,href:r,id:m,rel:S?void 0:l||void 0,target:S?void 0:u||void 0},children:b?d==="end"?[y,b]:[b,y]:[y]}}function ht(e){return h(Y(e))}const kt={name:"link",description:"Use `link` to navigate to another page or resource.",output:{element:"a",class:"set-link"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"icon",kind:"html"}]},props:{appearance:{default:"text",description:"Visual appearance. `text` is a standard link; `outline` and `solid` give button-styled treatments. ",type:{kind:"enum",values:["outline","solid","text"]}},current:{description:"Marks the link as the current item in its set; emits `aria-current` with this value.",type:{kind:"enum",values:["page"]}},download:{description:"Saves the target instead of navigating. Pass a filename or `true`.",type:{kind:"union",variants:[{kind:"boolean"},{kind:"string"}]}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},icon:{description:"Icon markup shown alongside the label. Set icon component, or SVG markup from https://simpleicons.org/ for third-party logos.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"html"}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},rel:{description:"Explicit `rel` attribute.",ignoredWhen:"`download` is set",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},target:{description:"Where to open the link.",ignoredWhen:"`download` is set",type:{kind:"enum",values:["_blank","_parent","_self","_top"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},underline:{default:!1,description:"Underlines the link.",ignoredWhen:"`appearance` is not `text`",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"href",condition:{kind:"always"},value:{kind:"prop",prop:"href"}},{target:{on:"host"},attribute:"aria-current",condition:{kind:"when-provided",prop:"current"},value:{kind:"prop",prop:"current"}},{target:{on:"host"},attribute:"download",condition:{kind:"when-truthy",prop:"download"},value:{kind:"prop",prop:"download"}},{target:{on:"host"},attribute:"rel",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"rel"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"rel"}},{target:{on:"host"},attribute:"target",condition:{kind:"all",of:[{kind:"when-provided",prop:"target"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"target"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"when-in",prop:"appearance",values:["outline","solid"]},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-underline",condition:{kind:"all",of:[{kind:"when-truthy",prop:"underline"},{kind:"when-equals",prop:"appearance",to:"text"}]}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},O="set-banner",J="set-banner-before-dismiss",ee="set-banner-dismiss",$="Dismiss banner";function mt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Z({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function he({actionHref:e,actionLabel:n,dismissible:t=!0,dismissibleLabel:i=$,id:r,message:a,tone:o}){if(!!e!=!!n)throw new Error("actionHref and actionLabel must be provided together.");const d=k(r),p=i.trim()===""?$:i,s=[{kind:"text",value:a}];return e&&n&&(s.push({kind:"text",value:" "}),s.push(Y({href:e,label:n,underline:!0}))),{kind:"element",tag:O,attrs:{class:"set-banner","data-set-content-theme":"dark","data-set-surface":"default","data-dismissible":t,"data-dismissible-label":t?p:void 0,"data-tone":o||void 0,id:d},children:[{kind:"element",tag:"p",attrs:{class:"message"},children:s}]}}function bt(e){return h(he(e))}function ke(){if(customElements.get(O))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(J,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ee,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(mt(this.getAttribute("data-dismissible-label")??$,this.ownerDocument))}}customElements.define(O,e)}const gt={name:"banner",description:"Use `banner` to display a prominent site-wide message.",output:{element:O,class:"set-banner"},content:{kind:"text",prop:"message"},props:{actionHref:{description:"URL for an inline link action rendered after the `message`.",requiredWhen:"`actionLabel` is provided",type:{kind:"string"}},actionLabel:{description:"Text label for an inline link action rendered after the `message`.",requiredWhen:"`actionHref` is provided",type:{kind:"text"}},dismissible:{default:!0,description:"Shows a dismiss control that removes the banner.",type:{kind:"boolean"}},dismissibleLabel:{default:$,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},message:{description:"Body text of the banner.",required:!0,type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[J]:{bubbles:!0,cancelable:!0,description:"Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."},[ee]:{bubbles:!0,description:"Fired after the banner has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"always"},value:{kind:"literal",text:"dark"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},H="set-menu",te="set-menu-choose";function me({align:e="start",id:n,items:t,size:i="md",triggerIcon:r,triggerIconMirrored:a,triggerIconPlacement:o,triggerLabel:d,triggerLabelVisibility:p}){const s=n.trim();if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Array.isArray(t))throw new Error("items must be an array.");const l=`${s}-button`,c=`${s}-popup`,u=t.map(g=>({kind:"element",tag:"button",attrs:{"aria-disabled":g.disabled?"true":void 0,"data-item-id":g.id||void 0,role:"menuitem",tabindex:"-1",type:"button"},children:[{kind:"text",value:g.label}]}));return{kind:"element",tag:H,attrs:{class:"set-menu","data-align":e==="start"?void 0:e,"data-size":i,id:s},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[F({appearance:"outline",controls:c,disclosure:!0,haspopup:"menu",icon:r,iconMirrored:a,iconPlacement:o,id:l,label:d,labelVisibility:p,size:i,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{"aria-labelledby":l,class:"popup",hidden:!0,id:c,role:"menu"},children:u}]}}function vt(e){return h(me(e))}function be(){if(customElements.get(H))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#l(),this.#r(!1),this.#m()}disconnectedCallback(){this.#l()}#a(){return this.querySelector('[data-part="trigger"] .set-button')}#o(){return this.querySelector('[role="menu"]')}#k(){return Array.from(this.querySelectorAll('[role="menuitem"]'))}#p(t){return t.getAttribute("aria-disabled")==="true"}#c(){return this.hasAttribute("data-open")}#d(t){const i=this.#k();if(i.length===0)return;const r=(t%i.length+i.length)%i.length;i[r]?.focus()}#s(t=0){const i=this.#o(),r=this.#a();!i||!r||(i.hidden=!1,this.setAttribute("data-open",""),r.setAttribute("aria-expanded","true"),this.#d(t))}#r(t=!1){const i=this.#o(),r=this.#a();!i||!r||(i.hidden=!0,this.removeAttribute("data-open"),r.setAttribute("aria-expanded","false"),t&&r.focus())}#u(t){const r=Array.from(this.querySelectorAll('[role="menuitem"]')).indexOf(t);this.dispatchEvent(new CustomEvent(te,{bubbles:!0,detail:{id:t.getAttribute("data-item-id")||void 0,index:r,label:t.textContent||""}}))}#m(){this.#e=t=>{const i=t.target;if(!(i instanceof Element))return;if(i.closest('[data-part="trigger"] .set-button')){if(this.#c()){this.#r();return}this.#s(0);return}const r=i.closest('[role="menuitem"]');if(r&&this.contains(r)){this.#p(r)||(this.#u(r),this.#r(!0));return}},this.#t=t=>{const i=t.target;i instanceof Node&&this.#c()&&!this.contains(i)&&this.#r()},this.#n=t=>{const i=this.#a(),r=this.#o();if(!i||!r)return;if((t.key==="Escape"||t.key==="Esc")&&this.#c()){t.preventDefault(),this.#r(!0);return}const a=this.ownerDocument.activeElement,o=this.#k(),d=o.indexOf(a);if(a===i){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.#s(0)),t.key==="ArrowDown"&&(t.preventDefault(),this.#s(0)),t.key==="ArrowUp"&&(t.preventDefault(),this.#s(o.length-1));return}if(r.contains(a)){if(a instanceof HTMLButtonElement&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.#p(a)||(this.#u(a),this.#r(!0));return}t.key==="ArrowDown"&&(t.preventDefault(),this.#d(d+1)),t.key==="ArrowUp"&&(t.preventDefault(),this.#d(d-1)),t.key==="Home"&&(t.preventDefault(),this.#d(0)),t.key==="End"&&(t.preventDefault(),this.#d(o.length-1)),t.key==="Tab"&&this.#r(!1)}},this.#i=t=>{const i=t.relatedTarget;if(!(i instanceof Node)){this.#r();return}this.contains(i)||this.#r()},this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#n),this.addEventListener("focusout",this.#i),this.ownerDocument.addEventListener("click",this.#t)}#l(){this.#e&&this.removeEventListener("click",this.#e),this.#t&&this.ownerDocument.removeEventListener("click",this.#t),this.#n&&this.removeEventListener("keydown",this.#n),this.#i&&this.removeEventListener("focusout",this.#i),this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#n=void 0}}customElements.define(H,e)}const ft={name:"menu",description:"Use `menu` to show a list of actions from a trigger button.",output:{element:H,class:"set-menu"},content:{kind:"structured",prop:"items"},props:{align:{default:"start",description:"Popup alignment relative to the trigger.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id applied to the host. Trigger and popup ids are derived as `${id}-button` and `${id}-popup`.",required:!0,type:{kind:"string"}},items:{description:"Action items listed inside the popup.",required:!0,type:{kind:"array",itemShape:{disabled:{default:!1,description:"Disables selection for this item.",type:{kind:"boolean"}},id:{description:"Optional authored identifier surfaced in the choose event payload.",type:{kind:"string"}},label:{description:"Visible item label text.",required:!0,type:{kind:"text"}}}}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},triggerIcon:{description:"Icon name for the trigger button.",type:{kind:"iconName"}},triggerIconMirrored:{description:"Icon mirroring mode for the trigger button icon.",type:{kind:"enum",values:["always","rtl"]}},triggerIconPlacement:{default:"start",description:"Icon placement within the trigger button.",type:{kind:"enum",values:["start","end"]}},triggerLabel:{description:"Accessible and visible trigger label text.",required:!0,type:{kind:"text"}},triggerLabelVisibility:{default:"visible",description:"Trigger label visibility treatment.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}}},events:{[te]:{bubbles:!0,description:"Fired when a menu item is activated.",detail:"{ id?: string; index: number; label: string }"}},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-equals",prop:"align",to:"end"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:'div[data-part="trigger"] button'},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-popup"}},{target:{on:"descendant",selector:"div.popup"},attribute:"aria-labelledby",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"menu"}},{target:{on:"descendant",selector:"div.popup"},attribute:"hidden",condition:{kind:"always"}}]}},j="Menu";function ge({controlsId:e,expanded:n,id:t,label:i=j,size:r="md"}={}){const a=k(t),o=i.trim()===""?j:i;return{kind:"element",tag:"button",attrs:{"aria-controls":e||void 0,"aria-expanded":n?"true":"false",class:"set-expander","data-size":r,id:a,type:"button"},children:[{kind:"element",tag:"span",attrs:{class:"expander-box"},children:[{kind:"element",tag:"span",attrs:{class:"expander-inner"},children:[]},{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:o}]}]}]}}function ve(e={}){return h(ge(e))}const yt={name:"expander",description:"Use `expander` as a toggle for disclosure regions such as menus.",output:{element:"button",class:"set-expander"},content:{kind:"text",prop:"label"},props:{controlsId:{description:"`id` of the element this toggle controls.",type:{kind:"string"}},expanded:{default:!1,description:"Whether the controlled region is expanded.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{default:j,description:"Accessible label.",type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"always"},value:{kind:"template",pattern:"{expanded}"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"when-non-empty",prop:"controlsId"},value:{kind:"prop",prop:"controlsId"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},R="set-nav",ae="data-set-scroll-locked";function fe({collapsible:e,contentId:n,expanderLabel:t,expanderPosition:i="start",id:r,items:a,label:o,size:d="md"}){const p=k(r),s=t?.trim()||void 0,l=n?.trim();if(e&&!l)throw new Error("contentId must be a non-empty string when collapsible is set.");if(l&&!M(l))throw new Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const c=a.map(u=>({kind:"element",tag:"li",attrs:{},children:[{kind:"element",tag:"a",attrs:{"aria-current":u.current?"page":void 0,class:"item",href:u.href},children:[{kind:"text",value:u.label}]}]}));return{kind:"element",tag:R,attrs:{class:"set-nav","data-collapsible":e,"data-expander-label":e&&s?s:void 0,"data-expander-position":e?i:void 0,"data-size":d,id:p},children:[{kind:"element",tag:"nav",attrs:{"aria-label":o||void 0,class:"nav"},children:[{kind:"element",tag:"div",attrs:{class:"content",id:l},children:[{kind:"element",tag:"ul",attrs:{class:"list"},children:c}]}]}]}}function wt(e){return h(fe(e))}function ye(){if(customElements.get(R))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#r(),this.#u(),this.#k(),this.#c(),this.#d()}disconnectedCallback(){this.#p(!1),this.#r(),this.#u()}#a(){return this.hasAttribute("data-collapsible")?this.querySelector(".nav"):null}#o(){return this.querySelector('[data-part="expander"] .set-expander')}#k(){const t=this.#a();if(!t||t.querySelector('[data-part="expander"]'))return;const i=t.querySelector(".content");i&&t.insertAdjacentHTML("afterbegin",`<div data-part="expander">${ve({controlsId:i.id||void 0,label:this.getAttribute("data-expander-label")||void 0,size:this.getAttribute("data-size")==="sm"?"md":"lg"})}</div>`)}#p(t){const i=this.#o();!i||i.getAttribute("aria-expanded")==="true"===t||(i.setAttribute("aria-expanded",t?"true":"false"),this.#s(t))}#c(){this.#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="expander"] .set-expander'))return;const r=this.#o();r&&this.#p(r.getAttribute("aria-expanded")!=="true")},this.addEventListener("click",this.#e)}#d(){const t=this.#a(),i=this.ownerDocument.defaultView;if(!t||!i||(this.#i=a=>{a.key!=="Escape"&&a.key!=="Esc"||this.#p(!1)},i.addEventListener("keydown",this.#i),this.getAttribute("data-collapsible")!=="belowTablet")||typeof i.matchMedia!="function")return;const r=i.matchMedia("(min-width: 48em)");this.#t=r,this.#n=a=>{a.matches&&this.#p(!1)},r.addEventListener("change",this.#n)}#s(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute(ae,"");return}i.removeAttribute(ae)}}#r(){this.#e&&(this.removeEventListener("click",this.#e),this.#e=void 0)}#u(){const t=this.ownerDocument.defaultView;this.#i&&t&&t.removeEventListener("keydown",this.#i),this.#t&&this.#n&&this.#t.removeEventListener("change",this.#n),this.#i=void 0,this.#n=void 0,this.#t=void 0}}customElements.define(R,e)}const St={name:"nav",description:"Use `nav` to render a primary navigation list.",output:{element:R,class:"set-nav"},content:{kind:"structured",prop:"items"},props:{items:{description:"Nav links shown in the list.",required:!0,type:{kind:"array",itemShape:{current:{default:!1,description:'Emits `aria-current="page"` when true.',type:{kind:"boolean"}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},label:{description:"Link label.",required:!0,type:{kind:"text"}}}}},label:{description:"Accessible label for the nav landmark.",type:{kind:"string"}},expanderLabel:{description:"Accessible label for the collapsible expander button.",type:{kind:"string"}},expanderPosition:{default:"start",description:"Where the expander sits within the composition.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id.",type:{kind:"string"}},collapsible:{description:"When to collapse the nav behind an expander.",type:{kind:"enum",values:["always","belowTablet"]}},contentId:{description:"`id` for the collapsible content region.",requiredWhen:"`collapsible` is provided",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-collapsible",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"collapsible"}},{target:{on:"host"},attribute:"data-expander-position",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"expanderPosition"}},{target:{on:"host"},attribute:"data-expander-label",condition:{kind:"all",of:[{kind:"when-provided",prop:"collapsible"},{kind:"when-non-empty",prop:"expanderLabel"}]},value:{kind:"prop",prop:"expanderLabel"}},{target:{on:"descendant",selector:"nav"},attribute:"aria-label",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"prop",prop:"label"}},{target:{on:"descendant",selector:"div.content"},attribute:"id",condition:{kind:"when-provided",prop:"contentId"},value:{kind:"prop",prop:"contentId"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},V="set-range";function we({description:e,disabled:n,id:t,inlineSize:i="full",label:r,max:a,min:o,name:d,size:p="md",step:s,value:l}){const c=t.trim(),u=e?.trim(),g=d?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const v=u?`${c}-description`:void 0,m=[{kind:"element",tag:"div",attrs:{class:"label-wrapper"},children:[{kind:"element",tag:"label",attrs:{class:"label",for:c},children:[{kind:"text",value:r}]},{kind:"element",tag:"output",attrs:{class:"output",for:c},children:l!=null?[{kind:"text",value:String(l)}]:[]}]},{kind:"element",tag:"input",attrs:{"aria-describedby":v,class:"range",disabled:!!n,id:c,max:a!=null?String(a):void 0,min:o!=null?String(o):void 0,name:g||void 0,step:s!=null?String(s):void 0,type:"range",value:l!=null?String(l):void 0},children:[]}];return u&&m.push({kind:"element",tag:"p",attrs:{class:"description",id:v},children:[{kind:"text",value:u}]}),{kind:"element",tag:V,attrs:{class:"set-range","data-inline-size":i==="fit"?"fit":void 0,"data-size":p},children:m}}function Et(e){return h(we(e))}function Se(){if(customElements.get(V))return;class e extends HTMLElement{#e;#t=t=>{const i=t.target;i instanceof HTMLInputElement&&i.matches(".range")&&this.#i()};connectedCallback(){this.removeEventListener("input",this.#t),this.#a(),this.#i(),this.addEventListener("input",this.#t)}disconnectedCallback(){this.removeEventListener("input",this.#t),this.#o()}#i(){const t=this.querySelector(".range"),i=this.querySelector(".output");!t||!i||this.#n(i,t.value)}#n(t,i){const r=t.firstChild;if(r?.nodeType===Node.TEXT_NODE&&t.childNodes.length===1){r.nodeValue!==i&&(r.nodeValue=i);return}t.textContent!==i&&(t.textContent=i)}#a(){const t=this.querySelector(".range");if(!t||t===this.#e)return;this.#o();const i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!i?.get||!i.set)return;const r=i.get,a=i.set,o=()=>this.#i();Object.defineProperty(t,"value",{configurable:!0,enumerable:i.enumerable,get(){return r.call(this)},set(d){a.call(this,d),o()}}),this.#e=t}#o(){this.#e&&(delete this.#e.value,this.#e=void 0)}}customElements.define(V,e)}const xt={name:"range",description:"Use `range` to let users pick a numeric value along a scale.",output:{element:V,class:"set-range"},content:{kind:"text",prop:"label"},props:{description:{description:"Helper text shown below the range.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the range.",type:{kind:"boolean"}},id:{description:"`id` used to associate the input with its label.",required:!0,type:{kind:"string"}},inlineSize:{default:"full",description:"How the range fills its container.",type:{kind:"enum",values:["full","fit"]}},label:{description:"Label text.",required:!0,type:{kind:"text"}},max:{description:"Maximum value.",type:{kind:"number"}},min:{description:"Minimum value.",type:{kind:"number"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},step:{description:"Granularity of value changes.",type:{kind:"number"}},value:{description:"Current value.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"min",condition:{kind:"when-provided",prop:"min"},value:{kind:"template",pattern:"{min}"}},{target:{on:"descendant",selector:"input"},attribute:"max",condition:{kind:"when-provided",prop:"max"},value:{kind:"template",pattern:"{max}"}},{target:{on:"descendant",selector:"input"},attribute:"step",condition:{kind:"when-provided",prop:"step"},value:{kind:"template",pattern:"{step}"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"template",pattern:"{value}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"template",pattern:"{name}"}}]}},W="set-sidebar",Ct="(min-width: 68em)",I="Collapse sidebar",K="Open sidebar";function zt(e,n){return`<div data-part="close">${Z({appearance:"text",icon:"panel-left",iconMirrored:"rtl",label:e,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})}</div>`}function Ee({aboveNotebook:e="persistent",buttonSize:n="md",children:t,collapseLabel:i=I,footer:r,header:a,id:o,surface:d,triggerLabel:p=K}){const s=o.trim(),l=i.trim()||I,c=p.trim()||K;if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const u=[{kind:"element",tag:"div",attrs:{class:"header"},children:a?[{kind:"raw",html:a}]:[]},{kind:"element",tag:"div",attrs:{class:"content"},children:t?[{kind:"raw",html:t}]:[]}];r&&u.push({kind:"element",tag:"div",attrs:{class:"footer"},children:[{kind:"raw",html:r}]});const g=`${s}-panel`;return{kind:"element",tag:W,attrs:{class:"set-sidebar","data-above-notebook":e,"data-collapse-label":l!==I?l:void 0,"data-button-size":n,id:s},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[F({appearance:"text",controls:g,disclosure:!0,icon:"panel-left",iconMirrored:"rtl",label:c,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{class:"sidebar","data-set-surface":d,id:g,tabindex:"-1"},children:u},{kind:"element",tag:"div",attrs:{"data-part":"backdrop"},children:[]}]}}function _t(e){return h(Ee(e))}function xe(){if(customElements.get(W))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#v(),this.#s(),this.#b(),this.#f()}disconnectedCallback(){this.close(),this.#v()}open(){this.#g(!0)}close(){this.#g(!1)}#a(){return this.querySelector(".sidebar")}#o(){return this.querySelector('[data-part="close"] .set-button')}#k(){return this.querySelector('[data-part="trigger"] .set-button')}#p(){return this.hasAttribute("data-open")}#c(){return this.hasAttribute("data-collapsed")}#d(){const t=this.getAttribute("data-above-notebook");return t==="collapsible"||t==="overlay"?t:"persistent"}#s(){const t=this.#a();if(!t||t.querySelector('[data-part="close"]'))return;const i=t.querySelector(".header"),r=this.getAttribute("data-collapse-label")||I,a=this.getAttribute("data-button-size")??"md";i?.insertAdjacentHTML("beforeend",zt(r,a))}#r(){this.querySelector('[data-part="close"]')?.remove()}#u(){const t=this.#o();if(t){t.focus();return}this.#a()?.focus()}#m(){return this.#e?.matches??!1}#l({collapsed:t,open:i}){const r=this.#k();this.toggleAttribute("data-open",i),this.toggleAttribute("data-collapsed",t),r?.setAttribute("aria-expanded",i?"true":"false")}#b(){const t=this.#d();if(this.#m()){if(t==="overlay"){this.#s(),this.#l({collapsed:!1,open:!1}),this.#h(!1);return}if(t==="collapsible"){this.#s(),this.#l({collapsed:this.#c(),open:!0}),this.#h(!1);return}this.#r(),this.#l({collapsed:!1,open:!0}),this.#h(!1);return}this.#s(),this.#l({collapsed:!1,open:!1}),this.#h(!1)}#g(t){const i=this.#d();if(this.#m()){if(i==="persistent"){this.#l({collapsed:!1,open:!0}),this.#h(!1);return}if(i==="collapsible"){this.#l({collapsed:!t,open:!0}),this.#h(!1),t&&this.#u();return}}if(this.#p()!==t){if(t){this.#l({collapsed:!1,open:!0}),this.#h(!0),this.#u();return}this.#l({collapsed:!1,open:!1}),this.#h(!1),this.#k()?.focus()}}#h(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute("data-set-scroll-locked","");return}i.removeAttribute("data-set-scroll-locked")}}#f(){const t=this.ownerDocument.defaultView;t&&(typeof t.matchMedia=="function"&&(this.#e=t.matchMedia(Ct),this.#n=()=>{this.#b()},this.#e.addEventListener("change",this.#n),this.#b()),this.#t=i=>{const r=i.target;if(r instanceof Element){if(r.closest('[data-part="trigger"] .set-button')){this.open();return}if(r.closest('[data-part="close"] .set-button')){if(this.#m()&&this.#d()==="collapsible"){this.#g(this.#c());return}this.close();return}r.closest('[data-part="backdrop"]')&&this.close()}},this.#i=i=>{i.key!=="Escape"&&i.key!=="Esc"||this.close()},this.addEventListener("click",this.#t),this.addEventListener("keydown",this.#i))}#v(){this.#t&&this.removeEventListener("click",this.#t),this.#i&&this.removeEventListener("keydown",this.#i),this.#e&&this.#n&&this.#e.removeEventListener("change",this.#n),this.#t=void 0,this.#i=void 0,this.#e=void 0,this.#n=void 0}}customElements.define(W,e)}const Tt={name:"sidebar",description:"Use `sidebar` for a side panel alongside main content.",output:{element:W,class:"set-sidebar"},content:{kind:"slots",slots:[{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{aboveNotebook:{default:"persistent",description:"Layout behaviour on wider screens.",type:{kind:"enum",values:["persistent","collapsible","overlay"]}},buttonSize:{default:"md",description:"Size of the trigger and collapse buttons.",type:{kind:"enum",values:["sm","md","lg"]}},children:{description:"Sidebar body content.",type:{kind:"html"}},collapseLabel:{default:I,description:"Accessible label for the collapse button.",type:{kind:"string"}},footer:{description:"Content rendered in the sidebar footer.",type:{kind:"html"}},header:{description:"Content rendered in the sidebar header.",type:{kind:"html"}},id:{description:"DOM id applied to the host. The inner panel id is derived as `${id}-panel` and wired to the trigger via `aria-controls`.",required:!0,type:{kind:"string"}},surface:{description:"Surface context. Applied to the inner panel.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},triggerLabel:{default:K,description:"Accessible label for the open button.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-above-notebook",condition:{kind:"always"},value:{kind:"prop",prop:"aboveNotebook"}},{target:{on:"host"},attribute:"data-button-size",condition:{kind:"always"},value:{kind:"prop",prop:"buttonSize"}},{target:{on:"host"},attribute:"data-collapse-label",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"collapseLabel"},{kind:"not",of:{kind:"when-equals",prop:"collapseLabel",to:I}}]},value:{kind:"prop",prop:"collapseLabel"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-panel"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"tabindex",condition:{kind:"always"},value:{kind:"literal",text:"-1"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}}]}};function Mt(e){return e?/[A-Za-z]/.test(e):!1}function Lt(e){return/^[a-z]/.test(e)}function L(e){const n=e.charAt(0);return Mt(n)?n:void 0}function Ce(e){const n=A(e);if(!n)return;const t=n.split(" "),i=L(t[0]);if(!i)return;const r=[i.toUpperCase()];if(t.length===1)return r[0];const a=t.slice(1).find(Lt);if(a){const d=L(a);return d?`${r[0]}${d}`:void 0}if(t.length===2){const d=L(t[1]);if(!d)return;r.push(d);const p=t[1].split("-").filter(Boolean);if(p.length===2){const s=L(p[1]);s&&r.push(s)}return r.slice(0,3).join("")}if(t.length===3){const d=L(t[1]),p=L(t[2]);return!d||!p?void 0:(r.push(d,p),r.slice(0,3).join(""))}const o=L(t.at(-1)||"");if(o)return r.push(o),r.slice(0,3).join("")}const It={bot:"robot-1",organization:"city-6",person:"user-1",team:"member"},oe=["01","02","03","04","05","06","07","08","09"];function At(e){let n=5381;for(const t of e)n=n*33^t.charCodeAt(0);return n>>>0}function qt(e){if(e==null)return;const n=A(e);if(n){if(n.length>3)throw new Error("initials must normalize to 3 characters or fewer.");if(!/^[A-Za-z]{1,3}$/.test(n))throw new Error("initials must contain only alphabetic characters.");return n}}function Nt({alt:e,ariaHidden:n,name:t}){if(!n)return A(e)||A(t)||"Avatar"}function Dt({color:e,name:n}){if(e)return e;if(n){const t=At(n)%oe.length;return oe[t]}return"neutral"}function ze({alt:e,ariaHidden:n,color:t,entity:i="person",id:r,initials:a,name:o,size:d="md",src:p}){const s=k(r),l=qt(a),c=A(o),u=A(p),g=Nt({alt:e,ariaHidden:n,name:c}),v=l||Ce(c),m=!!u,f=Dt({color:t,name:c}),C={"aria-hidden":n?"true":void 0,"aria-label":!n&&!m?g:void 0,class:"set-avatar","data-color":f==="neutral"?void 0:f,"data-entity":i==="person"?void 0:i,"data-size":d,id:s,role:!n&&!m?"img":void 0};let S;return m?S={kind:"element",tag:"img",attrs:{alt:n?"":g||"",class:"img",src:u},children:[]}:v?S={kind:"element",tag:"span",attrs:{class:"initials"},children:[{kind:"text",value:v}]}:S={kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[q({ariaHidden:!0,name:It[i],size:"fill"})]},{kind:"element",tag:"span",attrs:C,children:[S]}}function Pt(e){return h(ze(e))}const Bt={name:"avatar",description:"Use `avatar` to visually represent a person, team, or entity.",output:{element:"span",class:"set-avatar"},content:{kind:"none"},props:{alt:{description:"Accessible label for the avatar, overrides name.",type:{kind:"string"}},ariaHidden:{default:!1,description:"Hides the avatar from assistive technology.",type:{kind:"boolean"}},entity:{default:"person",description:"Type of subject the avatar represents.",type:{kind:"enum",values:["bot","organization","person","team"]}},color:{description:"Background color swatch. Derived from name when omitted.",type:{kind:"enum",values:["neutral","01","02","03","04","05","06","07","08","09"]}},id:{description:"DOM id.",type:{kind:"string"}},initials:{description:"Initials to display. 1–3 alphabetic characters. Overrides name-derived initials.",type:{kind:"string"}},name:{description:"Full name. Used for the label and to derive initials.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},src:{description:"Image source URL.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-entity",condition:{kind:"when-in",prop:"entity",values:["bot","organization","team"]},value:{kind:"prop",prop:"entity"}},{target:{on:"host"},attribute:"data-color",condition:{kind:"when-in",prop:"color",values:["01","02","03","04","05","06","07","08","09"]},value:{kind:"prop",prop:"color"}},{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function _e({floating:e,id:n,label:t,size:i="md",tone:r}){const a=k(n);return{kind:"element",tag:"span",attrs:{class:"set-badge","data-floating":e,"data-size":i,"data-tone":r||void 0,id:a},children:[{kind:"text",value:t}]}}function Ot(e){return h(_e(e))}const Ht={name:"badge",description:"Use `badge` to annotate content with a short label.",output:{element:"span",class:"set-badge"},content:{kind:"text",prop:"label"},props:{floating:{default:!1,description:"Positions the badge as a floating overlay.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Badge text.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-floating",condition:{kind:"when-truthy",prop:"floating"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function U({align:e,as:n,children:t,id:i,linkVisited:r=!0,measured:a,responsive:o,size:d="md",tone:p="default"}){const s=k(i),l=n==="p"?"p":"span",c=l==="p",u=c?e??"start":void 0;return{kind:"element",tag:l,attrs:{class:"set-text","data-align":u&&u!=="start"?u:void 0,"data-link-visited":r?void 0:"off","data-measured":c?a??!0:void 0,"data-responsive":o,"data-size":d,"data-tone":p==="muted"?"muted":void 0,id:s},children:[{kind:"raw",html:t}]}}function Rt(e){return h(U(e))}const Vt={name:"text",description:"Use `text` for inline or paragraph body copy.",output:{element:{kind:"switch",prop:"as",cases:{p:"p",span:"span"}},class:"set-text"},content:{kind:"html",prop:"children"},props:{as:{default:"span",description:"HTML element used for the text.",type:{kind:"enum",values:["p","span"]}},children:{description:"Text content. Supports inline markup such as `<em>`, `<strong>`, `<a>`, `<code>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the text.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales text across breakpoints.",type:{kind:"boolean"}},align:{default:"start",description:"Text alignment.",ignoredWhen:"`as` is span",type:{kind:"enum",values:["start","center","end"]}},measured:{default:!0,description:"Caps line length for comfortable reading.",ignoredWhen:"`as` is span",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","muted"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-in",prop:"align",values:["center","end"]}]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-truthy",prop:"measured"}]}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"muted"},value:{kind:"literal",text:"muted"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Te({align:e="start",attribution:n,id:t,measured:i=!0,quote:r,responsive:a=!1,size:o="md"}){const d=k(t);return{kind:"element",tag:"figure",attrs:{class:"set-blockquote","data-align":e==="start"?void 0:e,id:d},children:[{kind:"element",tag:"blockquote",attrs:{class:"quote"},children:[U({align:e,as:"p",children:r,measured:i,responsive:a,size:o})]},{kind:"element",tag:"figcaption",attrs:{class:"attribution"},children:[U({as:"span",children:n,responsive:a,size:"sm"})]}]}}function Wt(e){return h(Te(e))}const Ut={name:"blockquote",description:"Use `blockquote` to display a quote with attribution.",output:{element:"figure",class:"set-blockquote"},content:{kind:"slots",slots:[{prop:"quote",kind:"html"},{prop:"attribution",kind:"html"}]},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},attribution:{description:"Attribution shown beneath the quote. Supports inline markup such as `<a>`, `<cite>`, `<em>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},quote:{description:"Quote content. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant for the quote.",type:{kind:"enum",values:["md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Me({background:e="default",border:n,children:t,id:i,paddingBlock:r="md",paddingInline:a="md",radius:o,responsive:d,surface:p}){const s=k(i);return{kind:"element",tag:"div",attrs:{class:"set-box","data-background":e==="default"?void 0:e,"data-border":n,"data-set-surface":p,"data-padding-block":r,"data-padding-inline":a,"data-radius":o,"data-responsive":d,id:s},children:t?[{kind:"raw",html:t}]:[]}}function Gt(e){return h(Me(e))}const $t={name:"box",description:"Use `box` to inset content.",output:{element:"div",class:"set-box"},content:{kind:"html",prop:"children"},props:{background:{default:"default",description:"Background treatment.",type:{kind:"enum",values:["default","panel","transparent"]}},border:{default:!1,description:"Shows a subtle border around the box.",type:{kind:"boolean"}},children:{description:"Content rendered inside the box.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},paddingBlock:{default:"md",description:"Vertical padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},paddingInline:{default:"md",description:"Horizontal padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},radius:{description:"Corner radius.",type:{kind:"enum",values:["sm","md"]}},responsive:{default:!1,description:"Scales vertical padding across breakpoints.",type:{kind:"boolean"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-background",condition:{kind:"when-in",prop:"background",values:["panel","transparent"]},value:{kind:"prop",prop:"background"}},{target:{on:"host"},attribute:"data-border",condition:{kind:"when-truthy",prop:"border"}},{target:{on:"host"},attribute:"data-padding-block",condition:{kind:"always"},value:{kind:"prop",prop:"paddingBlock"}},{target:{on:"host"},attribute:"data-padding-inline",condition:{kind:"always"},value:{kind:"prop",prop:"paddingInline"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Le({description:e,headingLevel:n,href:t,id:i,note:r,surface:a,title:o}){const d=k(i),p=n?`h${n}`:"div",s=t?[{kind:"element",tag:"a",attrs:{href:t},children:[{kind:"text",value:o}]}]:[{kind:"text",value:o}],l=r?[{kind:"raw",html:r}]:[];r&&t&&l.push({kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[q({ariaHidden:!0,mirrored:"rtl",name:"arrow-right",size:"xs"})]});const c=[{kind:"element",tag:"span",attrs:{class:"dots"},children:[{kind:"element",tag:"span",attrs:{},children:[]}]},{kind:"element",tag:p,attrs:{class:"title"},children:s},{kind:"element",tag:"p",attrs:{class:"description"},children:[{kind:"raw",html:e}]}];return r&&c.push({kind:"element",tag:"p",attrs:{class:"note"},children:l}),{kind:"element",tag:"div",attrs:{class:"set-card","data-set-surface":a,id:d},children:c}}function Ft(e){return h(Le(e))}const Zt={name:"card",description:"Use `card` to display a summary for a single topic.",output:{element:"div",class:"set-card"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"description",kind:"html"},{prop:"note",kind:"html"}]},props:{description:{description:"Supporting description shown below the `title`.",required:!0,type:{kind:"html"}},headingLevel:{description:"Semantic heading level for the title. Renders a `<div>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},href:{description:"Link destination for the `title`.",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},note:{description:"Short note shown beneath the `description`.",type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},title:{description:"Card title.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ie({checked:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,required:d,size:p="md",value:s}){const l=k(i),c=n?.trim();if(c&&!l)throw new Error("id must be provided when description is provided.");const u=c?`${l}-description`:void 0,g=!!t,m=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":u,"aria-invalid":!g&&!!r?"true":void 0,checked:!!e,class:"checkbox",disabled:g,id:l,name:o||void 0,required:!!d,type:"checkbox",value:s||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:a}]}]}];return c&&m.push({kind:"element",tag:"p",attrs:{class:"description",id:u},children:[{kind:"text",value:c}]}),{kind:"element",tag:"div",attrs:{class:"set-checkbox","data-size":p},children:m}}function jt(e){return h(Ie(e))}const Kt={name:"checkbox",description:"Use `checkbox` to let users toggle a single option on or off.",output:{element:"div",class:"set-checkbox"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the checkbox is checked.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},invalid:{default:!1,description:"Marks the checkbox as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},label:{description:"Label shown next to the checkbox.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},required:{default:!1,description:"Marks the checkbox as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ae({children:e,gutter:n="default",id:t,maxInlineSize:i="default"}){const r=k(t);return{kind:"element",tag:"div",attrs:{class:"set-container","data-gutter":n==="default"?void 0:n,"data-max-inline-size":i==="default"?void 0:i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function Xt(e){return h(Ae(e))}const Qt={name:"container",description:"Use `container` to wrap page-level content.",output:{element:"div",class:"set-container"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the container.",type:{kind:"html"}},gutter:{default:"default",description:"Horizontal gutter width.",type:{kind:"enum",values:["default","narrow","none"]}},id:{description:"DOM id.",type:{kind:"string"}},maxInlineSize:{default:"default",description:"Maximum content width. Effect is only visible in wider viewports.",type:{kind:"enum",values:["default","wide","none"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-max-inline-size",condition:{kind:"when-in",prop:"maxInlineSize",values:["wide","none"]},value:{kind:"prop",prop:"maxInlineSize"}},{target:{on:"host"},attribute:"data-gutter",condition:{kind:"when-in",prop:"gutter",values:["narrow","none"]},value:{kind:"prop",prop:"gutter"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function qe({children:e,id:n,open:t,summary:i,inlineSize:r="full"}){const a=k(n);return{kind:"element",tag:"details",attrs:{class:"set-details",open:t,"data-inline-size":r==="fit"?"fit":void 0,id:a},children:[{kind:"element",tag:"summary",attrs:{class:"summary"},children:[{kind:"element",tag:"span",attrs:{class:"marker"},children:[q({ariaHidden:!0,name:"chevron-right",size:"sm"})]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:i}]}]},{kind:"element",tag:"div",attrs:{class:"content"},children:e?[{kind:"raw",html:e}]:[]}]}}function Yt(e){return h(qe(e))}const Jt={name:"details",description:"Use `details` to let users expand and collapse a section of content.",output:{element:"details",class:"set-details"},content:{kind:"slots",slots:[{prop:"summary",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Content revealed when the details is open.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the details fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},open:{default:!1,description:"Opens the details by default.",type:{kind:"boolean"}},summary:{description:"Summary shown in the toggle.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"open",condition:{kind:"when-truthy",prop:"open"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ne({id:e,orientation:n="horizontal",tone:t="default"}={}){const i=k(e);return{kind:"element",tag:n==="horizontal"?"hr":"span",attrs:{"aria-orientation":n==="vertical"?"vertical":void 0,class:"set-divider","data-tone":t==="subtle"||t==="brand"?t:void 0,id:i,role:n==="vertical"?"separator":void 0},children:[]}}function ei(e={}){return h(Ne(e))}const ti={name:"divider",description:"Use `divider` to separate sections with a rule.",output:{element:{kind:"switch",prop:"orientation",cases:{horizontal:"hr",vertical:"span"}},class:"set-divider"},content:{kind:"none"},props:{id:{description:"DOM id.",type:{kind:"string"}},orientation:{default:"horizontal",description:"Divider orientation.",type:{kind:"enum",values:["horizontal","vertical"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"role",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"separator"}},{target:{on:"host"},attribute:"aria-orientation",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"vertical"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","brand"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ie({children:e,description:n,disabled:t,id:i,invalid:r,legend:a,inlineSize:o="full"}){const d=n?.trim(),p=i.trim();if(!p)throw new Error("id must be a non-empty string.");if(!M(p))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const s=d?`${p}-description`:void 0,l=!!t,c=!l&&!!r,u=[{kind:"element",tag:"legend",attrs:{class:"legend"},children:[{kind:"text",value:a}]}];return d&&u.push({kind:"element",tag:"p",attrs:{class:"description",id:s},children:[{kind:"text",value:d}]}),e&&u.push({kind:"raw",html:e}),{kind:"element",tag:"fieldset",attrs:{"aria-describedby":d?s:void 0,"aria-invalid":c?"true":void 0,class:"set-fieldset","data-inline-size":o==="fit"?"fit":void 0,disabled:l,id:p},children:u}}function ii(e){return h(ie(e))}const ni={name:"fieldset",description:"Use `fieldset` to group related form controls under a legend.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"slots",slots:[{prop:"legend",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Form controls grouped inside the fieldset.",type:{kind:"html"}},description:{description:"Description shown below the legend; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction with controls in the group.",type:{kind:"boolean"}},id:{description:"`id` for the fieldset.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},legend:{description:"Legend shown above the group.",required:!0,type:{kind:"text"}},inlineSize:{default:"full",description:"Whether the fieldset fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}}]}};function De({align:e="start",caption:n,children:t,id:i,responsive:r=!1}){const a=k(i);return{kind:"element",tag:"figure",attrs:{class:"set-figure","data-align":e==="start"?void 0:e,id:a},children:[{kind:"raw",html:t},{kind:"element",tag:"figcaption",attrs:{class:"figcaption"},children:[U({as:"span",children:n,responsive:r,size:"sm"})]}]}}function ri(e){return h(De(e))}const ai={name:"figure",description:"Use `figure` to present media with a caption.",output:{element:"figure",class:"set-figure"},content:{kind:"slots",slots:[{prop:"children",kind:"html"},{prop:"caption",kind:"html"}]},props:{align:{default:"start",description:"Alignment within available space.",type:{kind:"enum",values:["start","center","end"]}},caption:{description:"Caption shown below the media. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},children:{description:"Media rendered inside the figure.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales the caption across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},_=e=>{if(e!==void 0)return String(e)};function Pe({children:e,gap:n="default",id:t}){const i=k(t);return{kind:"element",tag:"div",attrs:{class:"set-grid","data-gap":n==="default"?void 0:n,id:i},children:[{kind:"element",tag:"div",attrs:{class:"grid"},children:e?[{kind:"raw",html:e}]:[]}]}}function oi(e){return h(Pe(e))}function Be({align:e,children:n,colSpan:t,colSpanNarrow:i,colSpanWide:r,colStart:a,colStartNarrow:o,colStartWide:d,id:p,justify:s,rowSpan:l,rowSpanNarrow:c,rowSpanWide:u,rowStart:g,rowStartNarrow:v,rowStartWide:m}){const f=k(p);return{kind:"element",tag:"div",attrs:{class:"set-grid-item","data-align":e,"data-justify":s,"data-col-span-narrow":_(i),"data-col-start-narrow":_(o),"data-col-span":_(t),"data-col-start":_(a),"data-col-span-wide":_(r),"data-col-start-wide":_(d),"data-row-span-narrow":_(c),"data-row-start-narrow":_(v),"data-row-span":_(l),"data-row-start":_(g),"data-row-span-wide":_(u),"data-row-start-wide":_(m),id:f},children:n?[{kind:"raw",html:n}]:[]}}function di(e){return h(Be(e))}const si={name:"grid",description:"Use `grid` to lay out content in a 12-column responsive grid.",output:{element:"div",class:"set-grid"},content:{kind:"html",prop:"children"},props:{children:{description:"`grid-item` components rendered inside the grid.",type:{kind:"html"}},gap:{default:"default",description:"Space between the `grid-item` components.",type:{kind:"enum",values:["default","expanded","none"]}},id:{description:"DOM id.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-gap",condition:{kind:"when-in",prop:"gap",values:["expanded","none"]},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},T={kind:"number",min:1,max:12,integer:!0},li={name:"grid-item",description:"Use `grid-item` to place content within a `grid` layout.",output:{element:"div",class:"set-grid-item"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the grid item.",type:{kind:"html"}},align:{description:"Block-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},justify:{description:"Inline-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},colSpan:{description:"Columns spanned at the default breakpoint.",type:T},colStart:{description:"Starting column at the default breakpoint.",type:T},id:{description:"DOM id.",type:{kind:"string"}},rowSpan:{description:"Rows spanned at the default breakpoint.",type:T},rowSpanNarrow:{description:"Rows spanned at the narrow breakpoint.",type:T},rowSpanWide:{description:"Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T},rowStart:{description:"Starting row at the default breakpoint.",type:T},rowStartNarrow:{description:"Starting row at the narrow breakpoint.",type:T},rowStartWide:{description:"Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T},colSpanNarrow:{description:"Columns spanned at the narrow breakpoint.",type:T},colStartNarrow:{description:"Starting column at the narrow breakpoint.",type:T},colSpanWide:{description:"Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T},colStartWide:{description:"Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-provided",prop:"align"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-provided",prop:"justify"},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-col-span",condition:{kind:"when-provided",prop:"colSpan"},value:{kind:"prop",prop:"colSpan"}},{target:{on:"host"},attribute:"data-col-start",condition:{kind:"when-provided",prop:"colStart"},value:{kind:"prop",prop:"colStart"}},{target:{on:"host"},attribute:"data-col-span-narrow",condition:{kind:"when-provided",prop:"colSpanNarrow"},value:{kind:"prop",prop:"colSpanNarrow"}},{target:{on:"host"},attribute:"data-col-start-narrow",condition:{kind:"when-provided",prop:"colStartNarrow"},value:{kind:"prop",prop:"colStartNarrow"}},{target:{on:"host"},attribute:"data-col-span-wide",condition:{kind:"when-provided",prop:"colSpanWide"},value:{kind:"prop",prop:"colSpanWide"}},{target:{on:"host"},attribute:"data-col-start-wide",condition:{kind:"when-provided",prop:"colStartWide"},value:{kind:"prop",prop:"colStartWide"}},{target:{on:"host"},attribute:"data-row-span",condition:{kind:"when-provided",prop:"rowSpan"},value:{kind:"prop",prop:"rowSpan"}},{target:{on:"host"},attribute:"data-row-start",condition:{kind:"when-provided",prop:"rowStart"},value:{kind:"prop",prop:"rowStart"}},{target:{on:"host"},attribute:"data-row-span-narrow",condition:{kind:"when-provided",prop:"rowSpanNarrow"},value:{kind:"prop",prop:"rowSpanNarrow"}},{target:{on:"host"},attribute:"data-row-start-narrow",condition:{kind:"when-provided",prop:"rowStartNarrow"},value:{kind:"prop",prop:"rowStartNarrow"}},{target:{on:"host"},attribute:"data-row-span-wide",condition:{kind:"when-provided",prop:"rowSpanWide"},value:{kind:"prop",prop:"rowSpanWide"}},{target:{on:"host"},attribute:"data-row-start-wide",condition:{kind:"when-provided",prop:"rowStartWide"},value:{kind:"prop",prop:"rowStartWide"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Oe({align:e="start",id:n,level:t,responsive:i,size:r="md",text:a}){const o=k(n);return{kind:"element",tag:t?`h${t}`:"span",attrs:{class:"set-heading","data-align":e==="start"?void 0:e,"data-responsive":i,"data-size":r,id:o},children:[{kind:"text",value:a}]}}function pi(e){return h(Oe(e))}const ci={name:"heading",description:"Use `heading` to render heading text with consistent type.",output:{element:{kind:"switch",prop:"level",cases:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}},class:"set-heading"},content:{kind:"text",prop:"text"},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},id:{description:"DOM id.",type:{kind:"string"}},level:{description:"Semantic heading level. Renders a `<span>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"]}},text:{description:"Heading text.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function He({alt:e="",aspectRatio:n,cover:t,gravity:i="C",height:r,id:a,lazy:o,priority:d,radius:p,shadow:s,sizes:l,sources:c,src:u,srcSet:g,width:v}){const m=k(a),f=u.trim(),C=g?.trim(),S=l?.trim(),b=c?.map((z,x)=>{const N=z.srcSet.trim(),D=z.media?.trim(),G=z.type?.trim(),ne=z.sizes?.trim();if(!N)throw new Error(`sources[${x}].srcSet must be non-empty.`);return{height:z.height,media:D||void 0,sizes:ne||void 0,srcSet:N,type:G||void 0,width:z.width}})||[];if(!f)throw new Error("src must be a non-empty string.");const y={kind:"element",tag:"img",attrs:{alt:e,class:"img",fetchpriority:d?"high":void 0,height:t?void 0:r?String(r):void 0,loading:o&&!d?"lazy":void 0,sizes:b.length>0?void 0:S||void 0,src:f,srcset:C||void 0,width:t?void 0:v?String(v):void 0},children:[]};let w;if(b.length>0){const z=b.map(x=>({kind:"element",tag:"source",attrs:{height:x.height?String(x.height):void 0,media:x.media,sizes:x.sizes,srcset:x.srcSet,type:x.type,width:x.width?String(x.width):void 0},children:[]}));w={kind:"element",tag:"picture",attrs:{},children:[...z,y]}}else w=y;const E=[];return r&&E.push(`--set-image-block-size: ${r/16}rem`),v&&E.push(`--set-image-inline-size: ${v/16}rem`),{kind:"element",tag:"div",attrs:{class:"set-image","data-aspect-ratio":t&&!(r&&v)?n:void 0,"data-gravity":t&&i!=="C"?i:void 0,"data-shadow":!!s,"data-object-fit":t?"cover":void 0,"data-radius":p,id:m,style:E.length>0?E.join("; "):void 0},children:[w]}}function Re(e){return h(He(e))}const ui={name:"image",description:"Use `image` to render a responsive image with optional cover fit.",output:{element:"div",class:"set-image"},content:{kind:"none"},props:{alt:{default:"",description:"Alternative text. Leave empty for decorative images.",type:{kind:"string"}},gravity:{default:"C",description:"Focal point used when cropping.",ignoredWhen:"`cover` is false",type:{kind:"enum",values:["N","NE","E","SE","S","SW","W","NW","C"]}},radius:{description:"Corner radius treatment. `ratio` scales with the image's shortest side — requires `width`/`height` (or `cover` with `aspectRatio`) to determine this, otherwise falls back to `xs`.",type:{kind:"enum",values:["xs","ratio"]}},aspectRatio:{description:"Aspect ratio applied to the wrapper.",ignoredWhen:"`cover` is false, or both `width` and `height` are set",type:{kind:"enum",values:["1:1","4:5","3:2","16:9","21:9"]}},cover:{default:!1,description:"Renders the image as a cropped fill (`object-fit: cover`). Switches `width`/`height` from intrinsic `<img>` dimensions to wrapper sizing.",type:{kind:"boolean"}},shadow:{default:!1,description:"Applies a drop shadow to the image.",type:{kind:"boolean"}},height:{description:"Height in pixels. When `cover` is false, sets the intrinsic `<img>` height. When `cover` is true, sizes the wrapper — alone it defers to `aspectRatio`, together with `width` it overrides `aspectRatio`.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},lazy:{default:!1,description:"Defers loading until the image is near the viewport.",type:{kind:"boolean"}},priority:{default:!1,description:"Marks the image as high priority for fetch.",type:{kind:"boolean"}},sizes:{description:"`sizes` attribute used with `srcSet`.",type:{kind:"string"}},sources:{description:"Responsive sources rendered inside a `<picture>`.",type:{kind:"array",itemShape:{height:{description:"Intrinsic height in pixels.",type:{kind:"number"}},media:{description:"`media` condition evaluated for the source.",type:{kind:"string"}},sizes:{description:"`sizes` attribute for the source.",type:{kind:"string"}},srcSet:{description:"Candidate sources for this media entry.",required:!0,type:{kind:"string"}},type:{description:"MIME type for the source resources.",type:{kind:"string"}},width:{description:"Intrinsic width in pixels.",type:{kind:"number"}}}}},srcSet:{description:"Candidate sources for the fallback image.",type:{kind:"string"}},src:{description:"Image source URL.",required:!0,type:{kind:"string"}},width:{description:"Width in pixels. When `cover` is false, sets the intrinsic `<img>` width. When `cover` is true, sizes the wrapper — alone it defers to `aspectRatio`, together with `height` it overrides `aspectRatio`.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-object-fit",condition:{kind:"when-truthy",prop:"cover"},value:{kind:"literal",text:"cover"}},{target:{on:"host"},attribute:"data-shadow",condition:{kind:"when-truthy",prop:"shadow"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"descendant",selector:"img"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"img"}},{target:{on:"descendant",selector:"img"},attribute:"alt",condition:{kind:"always"},value:{kind:"prop",prop:"alt"}},{target:{on:"descendant",selector:"img"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"img"},attribute:"srcset",condition:{kind:"when-non-empty",prop:"srcSet"},value:{kind:"prop",prop:"srcSet"}},{target:{on:"descendant",selector:"img"},attribute:"fetchpriority",condition:{kind:"when-truthy",prop:"priority"},value:{kind:"literal",text:"high"}},{target:{on:"descendant",selector:"img"},attribute:"loading",condition:{kind:"all",of:[{kind:"when-truthy",prop:"lazy"},{kind:"not",of:{kind:"when-truthy",prop:"priority"}}]},value:{kind:"literal",text:"lazy"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ve({align:e="center",as:n="div",children:t,gap:i="md",id:r,justify:a="start",nowrap:o}){const d=k(r);return{kind:"element",tag:n,attrs:{class:"set-inline","data-align":e==="center"?void 0:e,"data-gap":i,"data-justify":a==="start"?void 0:a,"data-nowrap":o,id:d},children:t?[{kind:"raw",html:t}]:[]}}function hi(e){return h(Ve(e))}const ki={name:"inline",description:"Use `inline` to lay out content in a horizontal row.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-inline"},content:{kind:"html",prop:"children"},props:{as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},align:{default:"center",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["start","center","end"]}},children:{description:"Items laid out in a row.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["2xs","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},justify:{default:"start",description:"Distributes items along the main axis.",type:{kind:"enum",values:["start","center","end","between"]}},nowrap:{description:"Prevents items from wrapping onto new lines.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-in",prop:"justify",values:["center","end","between"]},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-nowrap",condition:{kind:"when-truthy",prop:"nowrap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function We({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,pattern:d,readOnly:p,required:s,size:l="md",spellcheck:c,type:u="text",value:g,inlineSize:v="full"}){const m=i.trim(),f=n?.trim(),C=e===!1?!1:e?.trim(),S=o?.trim(),b=d?.trim(),y=g;if(!m)throw new Error("id must be a non-empty string.");if(!M(m))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const w=f?`${m}-description`:void 0,E=u==="numeric",z=E?"text":u,x=b||(E?"^[0-9]*$":void 0),N=c===void 0&&E?!1:c,D=!!t,G=!D&&!!p,re=[{kind:"element",tag:"label",attrs:{class:"label",for:m},children:[{kind:"text",value:a}]},{kind:"element",tag:"input",attrs:{"aria-describedby":w,"aria-invalid":!D&&!G&&!!r?"true":void 0,autocomplete:C===!1?"off":C||void 0,class:"input",disabled:D,id:m,inputmode:E?"numeric":void 0,name:S||void 0,pattern:x,readonly:G,required:!!s,spellcheck:N===void 0?void 0:String(N),type:z,value:y},children:[]}];return f&&re.push({kind:"element",tag:"p",attrs:{class:"description",id:w},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-input","data-size":l,"data-inline-size":v==="fit"?"fit":void 0},children:re}}function mi(e){return h(We(e))}const bi={name:"input",description:"Use `input` to collect a single line of text from users.",output:{element:"div",class:"set-input"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Autocomplete hint. Pass `false` to disable autocomplete.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the input; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"`id` linking the label to the input.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the input as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label shown above the input.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},pattern:{description:"Regex pattern the value must match.",type:{kind:"string"}},readOnly:{default:!1,description:"Makes the input read-only.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Marks the input as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Enables browser spellchecking.",type:{kind:"boolean"}},type:{default:"text",description:"Input type.",type:{kind:"enum",values:["text","email","password","tel","url","numeric"]}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the field fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"input"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"inputmode",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"numeric"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"text"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-not-in",prop:"type",values:["numeric"]},value:{kind:"prop",prop:"type"}}]}};function Ue({id:e,label:n,size:t="md",tone:i="default",variant:r="primary"}){const a=k(e);return{kind:"element",tag:"div",attrs:{class:"set-logo","data-size":t,"data-tone":i==="neutral"?"neutral":void 0,"data-variant":r==="primary"?void 0:r,id:a},children:[{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}]}}function gi(e){return h(Ue(e))}const vi={name:"logo",description:"Use `logo` to display the brand mark.",output:{element:"div",class:"set-logo"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg","xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},variant:{default:"primary",description:"Logo variant.",type:{kind:"enum",values:["primary","secondary","typographic","graphic"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-variant",condition:{kind:"when-in",prop:"variant",values:["secondary","typographic","graphic"]},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ge({banner:e,centerMain:n,children:t,footer:i,header:r,headerBorder:a,headerSize:o="md",id:d,stickyHeader:p}){const s=k(d),l=[];return e&&l.push({kind:"raw",html:e}),l.push({kind:"element",tag:"header",attrs:{class:"header"},children:[{kind:"raw",html:r}]}),l.push({kind:"element",tag:"main",attrs:{class:"main"},children:t?[{kind:"raw",html:t}]:[]}),l.push({kind:"element",tag:"footer",attrs:{class:"footer"},children:[{kind:"raw",html:i}]}),{kind:"element",tag:"div",attrs:{class:"set-page","data-center-main":n,"data-header-border":a,"data-header-size":o,"data-sticky-header":p,id:s},children:l}}function fi(e){return h(Ge(e))}const yi={name:"page",description:"Use `page` as the primary layout for header, main, and footer regions.",output:{element:"div",class:"set-page"},content:{kind:"slots",slots:[{prop:"banner",kind:"html"},{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{banner:{description:"Banner rendered above the header.",type:{kind:"html"}},children:{description:"Main content of the page.",type:{kind:"html"}},centerMain:{default:!1,description:"Centers the main region within the page shell.",type:{kind:"boolean"}},header:{description:"Header content.",required:!0,type:{kind:"html"}},headerBorder:{description:"Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",type:{kind:"enum",values:["always","scroll"]}},headerSize:{default:"md",description:"Reserves a minimum block size on the header. `--set-page-header-block-size` is exposed to descendants so persistent panels can open below the header band.",type:{kind:"enum",values:["sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},stickyHeader:{description:"When the header stays stuck to the top of the viewport.",type:{kind:"enum",values:["always","belowNotebook"]}},footer:{description:"Footer content.",required:!0,type:{kind:"html"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-center-main",condition:{kind:"when-truthy",prop:"centerMain"}},{target:{on:"host"},attribute:"data-header-border",condition:{kind:"when-provided",prop:"headerBorder"},value:{kind:"prop",prop:"headerBorder"}},{target:{on:"host"},attribute:"data-header-size",condition:{kind:"always"},value:{kind:"prop",prop:"headerSize"}},{target:{on:"host"},attribute:"data-sticky-header",condition:{kind:"when-provided",prop:"stickyHeader"},value:{kind:"prop",prop:"stickyHeader"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $e({children:e,id:n,padding:t="md",surface:i}){const r=k(n);return{kind:"element",tag:"div",attrs:{class:"set-panel","data-padding":t,"data-set-surface":i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function wi(e){return h($e(e))}const Si={name:"panel",description:"Use `panel` to group related content in a contained region.",output:{element:"div",class:"set-panel"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the panel.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},padding:{default:"md",description:"Inner spacing scale.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-padding",condition:{kind:"always"},value:{kind:"prop",prop:"padding"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Fe({children:e,id:n,size:t="md",tone:i="default",variant:r="tile"}={}){const a=k(n);return{kind:"element",tag:"div",attrs:{class:"set-pattern","data-size":t,"data-tone":i==="default"?void 0:i,"data-variant":r,id:a},children:e?[{kind:"raw",html:e}]:[]}}function Ei(e={}){return h(Fe(e))}const xi={name:"pattern",description:"Use `pattern` to render repeated visual language components behind content.",output:{element:"div",class:"set-pattern"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered above the pattern.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","support"]}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","fill"]}},variant:{default:"tile",description:"Shape used for the pattern tile.",type:{kind:"enum",values:["tile","tileLight","tileDark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-variant",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","support"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ci(e){return Re({...e,alt:"",cover:!0,priority:!0})}function Ze({children:e,contentTheme:n,id:t,media:i,surface:r}){const a=k(t),o=n?r??"default":r,d=[{kind:"element",tag:"div",attrs:{class:"image-wrapper"},children:[{kind:"raw",html:i}]}];return e&&d.push({kind:"element",tag:"div",attrs:{class:"content"},children:[{kind:"raw",html:e}]}),{kind:"element",tag:"div",attrs:{class:"set-poster","data-set-content-theme":n,"data-set-surface":o,id:a},children:d}}function zi(e){return h(Ze(e))}const _i={name:"poster",description:"Use `poster` to layer content over background media.",output:{element:"div",class:"set-poster"},content:{kind:"slots",slots:[{prop:"media",kind:"html"},{prop:"children",kind:"html"}]},props:{children:{description:"Foreground content rendered over the media.",type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for foreground content over non-themeable media.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},media:{description:"Background media markup. Build with `renderSetPosterImage`.",required:!0,type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"all",of:[{kind:"when-provided",prop:"contentTheme"},{kind:"not",of:{kind:"when-provided",prop:"surface"}}]},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function je({align:e="start",children:n,hangingPunctuation:t,id:i,measured:r=!0,responsive:a}){const o=k(i);return{kind:"element",tag:"div",attrs:{class:"set-prose","data-align":e!=="start"?e:void 0,"data-hanging-punctuation":t,"data-measured":r,"data-responsive":a,id:o},children:[{kind:"raw",html:n}]}}function Ti(e){return h(je(e))}const Mi={name:"prose",description:"Use `prose` to style rich-text markup.",output:{element:"div",class:"set-prose"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the prose wrapper.",required:!0,type:{kind:"html"}},align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},hangingPunctuation:{description:"Position list markers and leading quote marks in the margin, with text aligned.",type:{kind:"enum",values:["always","notebook"]}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales body text across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-hanging-punctuation",condition:{kind:"when-provided",prop:"hangingPunctuation"},value:{kind:"prop",prop:"hangingPunctuation"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"when-truthy",prop:"measured"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ke({description:e,disabled:n,id:t,invalid:i,radios:r,legend:a,name:o,orientation:d="vertical",required:p,size:s="md",value:l}){const c=t.trim(),u=o.trim(),g=l?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!u)throw new Error("name must be a non-empty string.");if(r.length<2)throw new Error("radios must include at least 2 options.");const v=r.map((b,y)=>{const w=b.value.trim(),E=b.label.trim(),z=b.description?.trim();if(!w)throw new Error(`radios[${y}].value must be non-empty.`);if(!E)throw new Error(`radios[${y}].label must be non-empty.`);return{description:z,disabled:!!b.disabled,label:E,value:w}});if(new Set(v.map(b=>b.value)).size!==v.length)throw new Error("radios values must be unique.");const f=!!n,C=v.map(b=>{const y=!!b.disabled,w=b.description?`${c}-${b.value}-description`:void 0,E=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":w,checked:g===b.value,class:"radio",disabled:y,name:u,required:!!p&&!f&&!y,type:"radio",value:b.value},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:b.label}]}]}];return b.description&&E.push({kind:"element",tag:"p",attrs:{class:"radio-description",id:w},children:[{kind:"text",value:b.description}]}),{kind:"element",tag:"div",attrs:{class:"radio-field"},children:E}});return ie({children:h({kind:"element",tag:"div",attrs:{class:"set-radios","data-orientation":d,"data-size":s},children:C}),description:e,disabled:f,id:c,invalid:i,legend:a})}function Li(e){return h(Ke(e))}const Ii={name:"radios",description:"Use `radios` to let users select one option from a short list.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"structured",prop:"radios"},props:{description:{description:"Helper text shown below the legend.",type:{kind:"string"}},disabled:{default:!1,description:"Disables every option in the group.",type:{kind:"boolean"}},id:{description:"Unique id used to associate the group with its descriptions.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},radios:{description:"Options shown in the group.",required:!0,type:{kind:"array",itemShape:{description:{description:"Optional per-item helper text.",type:{kind:"string"}},disabled:{default:!1,description:"Optional per-item disabled override.",type:{kind:"boolean"}},label:{description:"Radio option label.",required:!0,type:{kind:"text"}},value:{description:"Submitted value and selection key.",required:!0,type:{kind:"string"}}}}},legend:{description:"Group label.",required:!0,type:{kind:"text"}},name:{description:"Form field name shared by all options.",required:!0,type:{kind:"string"}},orientation:{default:"vertical",description:"Layout direction.",type:{kind:"enum",values:["vertical","horizontal"]}},required:{default:!1,description:"Requires a selection before submission.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Currently selected value.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-orientation",condition:{kind:"always"},value:{kind:"prop",prop:"orientation"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"always"},value:{kind:"prop",prop:"name"}}]}};function Xe({appOverscrollBehavior:e,appRoot:n,brand:t="mnsp",children:i,dir:r,id:a,lang:o,theme:d}){const p=k(a);return{kind:"element",tag:"div",attrs:{class:"set","data-app-root":n,"data-app-overscroll-behavior":e==="none"?"none":void 0,"data-set-brand":t,"data-set-theme":d,id:p,lang:o===""?void 0:o,dir:r},children:i?[{kind:"raw",html:i}]:[]}}function Ai(e){return h(Xe(e))}const qi={name:"root",description:"Mandatory top-level `root` wrapper for the Set system.",output:{element:"div",class:"set"},content:{kind:"html",prop:"children"},props:{appOverscrollBehavior:{description:"Disables overscroll bounce for app-shell integrations.",type:{kind:"enum",values:["none"]}},appRoot:{default:!1,description:"Marks this wrapper as the app root.",type:{kind:"boolean"}},brand:{default:"mnsp",description:"Brand identity applied to the wrapper.",type:{kind:"enum",values:["mnsp","wrfr"]}},children:{description:"Content rendered inside the root.",required:!0,type:{kind:"html"}},dir:{description:"Text direction.",type:{kind:"enum",values:["ltr","rtl"]}},id:{description:"DOM id.",type:{kind:"string"}},lang:{description:"BCP47 language tag (e.g. `en-GB`).",type:{kind:"string"}},theme:{description:"Colour theme.",type:{kind:"enum",values:["light","dark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-app-overscroll-behavior",condition:{kind:"when-equals",prop:"appOverscrollBehavior",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"data-app-root",condition:{kind:"when-truthy",prop:"appRoot"}},{target:{on:"host"},attribute:"data-set-brand",condition:{kind:"always"},value:{kind:"prop",prop:"brand"}},{target:{on:"host"},attribute:"data-set-theme",condition:{kind:"when-provided",prop:"theme"},value:{kind:"prop",prop:"theme"}},{target:{on:"host"},attribute:"dir",condition:{kind:"when-provided",prop:"dir"},value:{kind:"prop",prop:"dir"}},{target:{on:"host"},attribute:"lang",condition:{kind:"when-non-empty",prop:"lang"},value:{kind:"prop",prop:"lang"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Qe({id:e,label:n,size:t="md",tone:i="default"}={}){const r=k(e),o=[{kind:"element",tag:"svg",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 1200",fill:"currentColor"},children:[[60,60],[60,360],[60,660],[60,960],[360,960],[360,660],[360,360],[360,60]].map(([d,p])=>({kind:"element",tag:"rect",attrs:{class:"cell",x:String(d),y:String(p),width:"180",height:"180"},children:[]}))}];return n&&o.push({kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}),{kind:"element",tag:"span",attrs:{class:"set-spinner","data-size":t,"data-tone":i==="brand"?"brand":void 0,id:r,role:n?"status":void 0},children:o}}function Ni(e={}){return h(Qe(e))}const Di={name:"spinner",description:"Use `spinner` to indicate loading or in-progress state.",output:{element:"span",class:"set-spinner"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible status label announced to assistive tech.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","xl","2xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"brand"},value:{kind:"literal",text:"brand"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ye({align:e="stretch",as:n="div",children:t,gap:i="md",id:r,responsive:a}){const o=k(r);return{kind:"element",tag:n,attrs:{class:"set-stack","data-align":e==="stretch"?void 0:e,"data-gap":i,"data-responsive":a,id:o},children:t?[{kind:"raw",html:t}]:[]}}function Pi(e){return h(Ye(e))}const Bi={name:"stack",description:"Use `stack` to lay out content in a vertical column.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-stack"},content:{kind:"html",prop:"children"},props:{align:{default:"stretch",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["stretch","start","center","end"]}},as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},children:{description:"Items laid out in a column.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["none","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales spacing across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Je({children:e,contentTheme:n,id:t,variant:i="default"}){const r=k(t);return{kind:"element",tag:"div",attrs:{class:"set-surface","data-set-content-theme":n,"data-set-surface":i,id:r},children:[{kind:"raw",html:e}]}}function Oi(e){return h(Je(e))}const Hi={name:"surface",description:"Use `surface` to set a colour context for nested content.",output:{element:"div",class:"set-surface"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the surface.",required:!0,type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for content rendered inside the surface.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},variant:{default:"default",description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function et({checked:e,description:n,disabled:t,id:i,label:r,name:a,size:o="md",value:d}){const p=k(i),s=n?.trim();if(s&&!p)throw new Error("id must be provided when description is provided.");const l=s?`${p}-description`:void 0,c=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":l,checked:!!e,class:"switch",disabled:!!t,id:p,name:a||void 0,role:"switch",type:"checkbox",value:d||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:r}]}]}];return s&&c.push({kind:"element",tag:"p",attrs:{class:"description",id:l},children:[{kind:"text",value:s}]}),{kind:"element",tag:"div",attrs:{class:"set-switch","data-size":o},children:c}}function Ri(e){return h(et(e))}const Vi={name:"switch",description:"Use `switch` to let users instantly toggle a setting on or off.",output:{element:"div",class:"set-switch"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the switch is on.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the switch.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Submitted value when checked.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function tt({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,readOnly:d,required:p,resize:s="vertical",rows:l=2,size:c="md",spellcheck:u,value:g,inlineSize:v="full"}){const m=i.trim(),f=n?.trim(),C=e===!1?!1:e?.trim(),S=o?.trim(),b=g;if(!m)throw new Error("id must be a non-empty string.");if(!M(m))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Number.isInteger(l)||l<2)throw new Error("rows must be an integer greater than or equal to 2.");const y=f?`${m}-description`:void 0,w=!!t,E=!w&&!!d,x=[{kind:"element",tag:"label",attrs:{class:"label",for:m},children:[{kind:"text",value:a}]},{kind:"element",tag:"textarea",attrs:{"aria-describedby":y,"aria-invalid":!w&&!E&&!!r?"true":void 0,autocomplete:C===!1?"off":C||void 0,class:"textarea",disabled:w,id:m,name:S||void 0,readonly:E,required:!!p,rows:String(l),spellcheck:u===void 0?void 0:String(u)},children:[{kind:"text",value:b||""}]}];return f&&x.push({kind:"element",tag:"p",attrs:{class:"description",id:y},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-textarea","data-resize":s==="none"?"none":void 0,"data-size":c,"data-inline-size":v==="fit"?"fit":void 0},children:x}}function Wi(e){return h(tt(e))}const Ui={name:"textarea",description:"Use `textarea` to collect multiple lines of text from users.",output:{element:"div",class:"set-textarea"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"value",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Browser autocomplete hint. Pass `false` to disable.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the textarea; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the textarea.",type:{kind:"boolean"}},id:{description:"`id` used to associate the textarea with its label.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the textarea as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},readOnly:{default:!1,description:"Prevents editing while keeping the value visible.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Requires a value before submission.",type:{kind:"boolean"}},resize:{default:"vertical",description:"How the user can resize the textarea.",type:{kind:"enum",values:["vertical","none"]}},rows:{default:2,description:"Number of visible rows.",type:{kind:"number",min:2,max:10,integer:!0}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Whether the browser checks spelling.",type:{kind:"boolean"}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"How the textarea fills its container.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-resize",condition:{kind:"when-equals",prop:"resize",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"textarea"}},{target:{on:"descendant",selector:"textarea"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"rows",condition:{kind:"always"},value:{kind:"prop",prop:"rows"}},{target:{on:"descendant",selector:"textarea"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"textarea"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"textarea"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"textarea"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"textarea"},attribute:"spellcheck",condition:{kind:"when-provided",prop:"spellcheck"},value:{kind:"prop",prop:"spellcheck"}}]}};function Gi(){ue(),ke(),be(),ye(),Se(),xe()}exports.SET_ALERT_EVENT_BEFORE_DISMISS=X;exports.SET_ALERT_EVENT_DISMISS=Q;exports.SET_ALERT_SPEC=ct;exports.SET_ALERT_TAG_NAME=P;exports.SET_AVATAR_SPEC=Bt;exports.SET_BADGE_SPEC=Ht;exports.SET_BANNER_EVENT_BEFORE_DISMISS=J;exports.SET_BANNER_EVENT_DISMISS=ee;exports.SET_BANNER_SPEC=gt;exports.SET_BANNER_TAG_NAME=O;exports.SET_BLOCKQUOTE_SPEC=Ut;exports.SET_BOX_SPEC=$t;exports.SET_BUTTON_SPEC=ot;exports.SET_CARD_SPEC=Zt;exports.SET_CHECKBOX_SPEC=Kt;exports.SET_CONTAINER_SPEC=Qt;exports.SET_DETAILS_SPEC=Jt;exports.SET_DIVIDER_SPEC=ti;exports.SET_EXPANDER_SPEC=yt;exports.SET_FIELDSET_SPEC=ni;exports.SET_FIGURE_SPEC=ai;exports.SET_GRID_ITEM_SPEC=li;exports.SET_GRID_SPEC=si;exports.SET_HEADING_SPEC=ci;exports.SET_ICON_NAMES=rt;exports.SET_ICON_SPEC=at;exports.SET_IMAGE_SPEC=ui;exports.SET_INLINE_SPEC=ki;exports.SET_INPUT_SPEC=bi;exports.SET_LINK_SPEC=kt;exports.SET_LOGO_SPEC=vi;exports.SET_MENU_EVENT_CHOOSE=te;exports.SET_MENU_SPEC=ft;exports.SET_MENU_TAG_NAME=H;exports.SET_NAV_SPEC=St;exports.SET_NAV_TAG_NAME=R;exports.SET_PAGE_SPEC=yi;exports.SET_PANEL_SPEC=Si;exports.SET_PATTERN_SPEC=xi;exports.SET_POSTER_SPEC=_i;exports.SET_PROSE_SPEC=Mi;exports.SET_RADIOS_SPEC=Ii;exports.SET_RANGE_SPEC=xt;exports.SET_RANGE_TAG_NAME=V;exports.SET_ROOT_SPEC=qi;exports.SET_SIDEBAR_SPEC=Tt;exports.SET_SIDEBAR_TAG_NAME=W;exports.SET_SPINNER_SPEC=Di;exports.SET_STACK_SPEC=Bi;exports.SET_SURFACE_SPEC=Hi;exports.SET_SWITCH_SPEC=Vi;exports.SET_TEXTAREA_SPEC=Ui;exports.SET_TEXT_SPEC=Vt;exports.buildSetAlert=ce;exports.buildSetAvatar=ze;exports.buildSetBadge=_e;exports.buildSetBanner=he;exports.buildSetBlockquote=Te;exports.buildSetBox=Me;exports.buildSetButton=F;exports.buildSetCard=Le;exports.buildSetCheckbox=Ie;exports.buildSetContainer=Ae;exports.buildSetDetails=qe;exports.buildSetDivider=Ne;exports.buildSetExpander=ge;exports.buildSetFieldset=ie;exports.buildSetFigure=De;exports.buildSetGrid=Pe;exports.buildSetGridItem=Be;exports.buildSetHeading=Oe;exports.buildSetIcon=q;exports.buildSetImage=He;exports.buildSetInline=Ve;exports.buildSetInput=We;exports.buildSetLink=Y;exports.buildSetLogo=Ue;exports.buildSetMenu=me;exports.buildSetNav=fe;exports.buildSetPage=Ge;exports.buildSetPanel=$e;exports.buildSetPattern=Fe;exports.buildSetPoster=Ze;exports.buildSetProse=je;exports.buildSetRadios=Ke;exports.buildSetRange=we;exports.buildSetRoot=Xe;exports.buildSetSidebar=Ee;exports.buildSetSpinner=Qe;exports.buildSetStack=Ye;exports.buildSetSurface=Je;exports.buildSetSwitch=et;exports.buildSetText=U;exports.buildSetTextarea=tt;exports.defineSetAlert=ue;exports.defineSetBanner=ke;exports.defineSetComponents=Gi;exports.defineSetMenu=be;exports.defineSetNav=ye;exports.defineSetRange=Se;exports.defineSetSidebar=xe;exports.getSetInitials=Ce;exports.renderSetAlert=pt;exports.renderSetAvatar=Pt;exports.renderSetBadge=Ot;exports.renderSetBanner=bt;exports.renderSetBlockquote=Wt;exports.renderSetBox=Gt;exports.renderSetButton=Z;exports.renderSetCard=Ft;exports.renderSetCheckbox=jt;exports.renderSetContainer=Xt;exports.renderSetDetails=Yt;exports.renderSetDivider=ei;exports.renderSetExpander=ve;exports.renderSetFieldset=ii;exports.renderSetFigure=ri;exports.renderSetGrid=oi;exports.renderSetGridItem=di;exports.renderSetHeading=pi;exports.renderSetIcon=pe;exports.renderSetImage=Re;exports.renderSetInline=hi;exports.renderSetInput=mi;exports.renderSetLink=ht;exports.renderSetLogo=gi;exports.renderSetMenu=vt;exports.renderSetNav=wt;exports.renderSetPage=fi;exports.renderSetPanel=wi;exports.renderSetPattern=Ei;exports.renderSetPoster=zi;exports.renderSetPosterImage=Ci;exports.renderSetProse=Ti;exports.renderSetRadios=Li;exports.renderSetRange=Et;exports.renderSetRoot=Ai;exports.renderSetSidebar=_t;exports.renderSetSpinner=Ni;exports.renderSetStack=Pi;exports.renderSetSurface=Oi;exports.renderSetSwitch=Ri;exports.renderSetText=Rt;exports.renderSetTextarea=Wi;exports.serializeSetNode=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const it=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);function de(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function nt(e){return Object.entries(e).flatMap(([n,t])=>t===!1||t==null?[]:t===!0?[n]:[`${n}="${de(String(t))}"`]).join(" ")}function h(e){if(e.kind==="text")return de(e.value);if(e.kind==="raw")return e.html;const n=nt(e.attrs),t=n?`<${e.tag} ${n}>`:`<${e.tag}>`;if(it.has(e.tag))return t;const i=e.children.map(h).join("");return`${t}${i}</${e.tag}>`}function M(e){return/^[A-Za-z][\w:-]*$/.test(e)}function k(e){if(e===void 0)return;const n=e.trim();if(n){if(!M(n))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");return n}}function A(e){return e==null?void 0:e.trim().replace(/\s+/g," ")||void 0}const se={adjustment:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 5L10 5M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5M10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5M6 5L3 5M21 19H10M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19M10 19C10 17.8954 9.10457 17 8 17C6.89543 17 6 17.8954 6 19M3 12H14M14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12M6 19H3M18 12H21","stroke-linecap":"square"}}]}],"arrow-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85","stroke-linecap":"square"}}]}],"arrow-left":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11 6.5L5.5 12L11 17.5M6.75 12H19.75","stroke-linecap":"square"}}]}],"arrow-left-right-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.5 4L19 7.5L15.5 11M17.75 7.5H5.5M8.5 20L5 16.5L8.5 13M6.25 16.5H18.5","stroke-linecap":"square"}}]}],"arrow-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12","stroke-linecap":"square"}}]}],"arrow-up":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25","stroke-linecap":"square"}}]}],"arrow-up-down-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M7.5 6.25V18.5M13 15.5L16.5 19L20 15.5M16.5 17.75V5.50001M11 8.5L7.5 5L4 8.5","stroke-linecap":"square"}}]}],"check-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M16.5 9L10.5 15L7.5 12","stroke-linecap":"square"}}]}],"chevron-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 9.5L12 15L6.5 9.5","stroke-linecap":"square"}}]}],"chevron-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.5 17.5L15 12L9.5 6.5","stroke-linecap":"square"}}]}],circle:[{tag:"g",attrs:{},children:[{tag:"circle",attrs:{cx:"12",cy:"12",r:"10","stroke-linecap":"square"}}]}],"city-6":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12 21V16M7 21H2V9H7V21ZM22 7V21H17V7H22Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M17 3H7V21H17V3Z","stroke-linecap":"square"}}]}],close:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029","stroke-linecap":"square"}}]}],copy:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M10 10H21V21H10V10Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M14 6.5V3L3 3L3 14H6.5","stroke-linecap":"square"}}]}],download:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.5 10.5L12 15L7.5 10.5M12 13.75V4","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M20.5 15V20H3.5V15","stroke-linecap":"square"}}]}],enter:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M5.75 16H16C17.6569 16 19 14.6569 19 13L19 5M8 12.5L4.5 16L8 19.5","stroke-linecap":"square"}}]}],"error-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z","stroke-linecap":"square"}}]}],"error-triangle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12.0003 3L22.2194 20.7H1.78125L12.0003 3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 10.5V14M12 17.5H12.0039V17.5039H12V17.5Z","stroke-linecap":"square"}}]}],horizontal:[{tag:"g",attrs:{},children:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 11H21V21H3V11Z"}},{tag:"path",attrs:{d:"M3 3H21V7H3V3Z"}}]}]}],image:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21"}},{tag:"circle",attrs:{cx:"15.75",cy:"8.25",r:"2"}}]}],"info-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z","stroke-linecap":"square"}}]}],jump:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9 4L4 4L4 20L20 20L20 15","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M19.25 4.75L12 12M14 4H20L20 10","stroke-linecap":"square"}}]}],layers:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M4.5 6.125L12 3L19.5 6.125L12 9.25L4.5 6.125Z"}},{tag:"path",attrs:{d:"M3 11.5005L12 15.3771L21 11.5005M21 17.5005L12 21.3771L3 17.5005"}}]}],link:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14","stroke-linecap":"square"}}]}],member:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16 20V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V20M12.5 7C12.5 9.20914 10.7091 11 8.5 11C6.29086 11 4.5 9.20914 4.5 7C4.5 4.79086 6.29086 3 8.5 3C10.7091 3 12.5 4.79086 12.5 7Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.5 11C17.7091 11 19.5 9.20914 19.5 7C19.5 4.79086 17.7091 3 15.5 3M23 20V19C23 16.7909 21.2091 15 19 15","stroke-linecap":"square"}}]}],"panel-left":[{tag:"path",attrs:{d:"M3 3H21V21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M9 3V21","stroke-linecap":"square"}}],pantone:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3.35389 10.3333L20.8245 10.3333L19.0009 5L3.35389 10.3333ZM3.35389 10.3333L17.1433 5.63318L14.1465 1.43164L2.99942 10.3359M3.35389 10.3333L2.99942 10.3359M2.99942 10.3359H2.5"}},{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M6.28516 15.1641H6.28906V15.168H6.28516V15.1641Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M22 10.333V19.9997L2 19.9997L2 10.333L22 10.333Z","stroke-linecap":"square"}}]}]}],play:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"}}],rectangle:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 3H21V21H3z","stroke-linecap":"square"}}]}],refresh:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998","stroke-linecap":"square"}}]}],"robot-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 21V19.5C19.5 17.2909 17.7091 15.5 15.5 15.5H8.5C6.29086 15.5 4.5 17.2909 4.5 19.5V21M12 4V2M10 12H14C16.2091 12 18 10.2091 18 8C18 5.79086 16.2091 4 14 4H10C7.79086 4 6 5.79086 6 8C6 10.2091 7.79086 12 10 12ZM10.25 8C10.25 8.13807 10.1381 8.25 10 8.25C9.86193 8.25 9.75 8.13807 9.75 8C9.75 7.86193 9.86193 7.75 10 7.75C10.1381 7.75 10.25 7.86193 10.25 8ZM14 8.25C13.8619 8.25 13.75 8.13807 13.75 8C13.75 7.86193 13.8619 7.75 14 7.75C14.1381 7.75 14.25 7.86193 14.25 8C14.25 8.13807 14.1381 8.25 14 8.25Z","stroke-linecap":"square"}}]}],search:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.8027 15.8037L21.106 21.107","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z","stroke-linecap":"square"}}]}],"setting-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.40811 4.95996L10.0001 2H14.0001L14.5921 4.95996C15.4027 5.25851 16.1475 5.69306 16.7989 6.23595L19.6604 5.26796L21.6604 8.73206L19.3922 10.7254C19.4632 11.1396 19.5001 11.5655 19.5001 12C19.5001 12.4345 19.4632 12.8604 19.3922 13.2747L21.6604 15.268L19.6604 18.7321L16.7989 17.7641C16.1475 18.3069 15.4027 18.7415 14.5921 19.04L14.0001 22H10.0001L9.40811 19.04C8.5975 18.7415 7.85268 18.3069 7.20131 17.7641L4.33984 18.7321L2.33984 15.268L4.60798 13.2747C4.53705 12.8604 4.5001 12.4345 4.5001 12C4.5001 11.5655 4.53705 11.1396 4.60797 10.7254L2.33984 8.73206L4.33984 5.26796L7.20129 6.23595C7.85266 5.69306 8.59749 5.25851 9.40811 4.95996Z","fill-rule":"evenodd","stroke-linecap":"square","clip-rule":"evenodd"}},{tag:"path",attrs:{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z","stroke-linecap":"square"}}]}],swap:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 14.5H4L9 19.5M3 9.5L20 9.5L15 4.5","stroke-linecap":"square"}}]}],"user-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 20V19C19.5 16.7909 17.7091 15 15.5 15H8.5C6.29086 15 4.5 16.7909 4.5 19V20M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z","stroke-linecap":"square"}}]}],"view-list":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 5H21M3 12H21M3 19H21","stroke-linecap":"square"}}]}]},rt=Object.keys(se);function le(e){return e.map(n=>({kind:"element",tag:n.tag,attrs:n.attrs,children:n.children?le(n.children):[]}))}function q({ariaHidden:e=!0,id:n,mirrored:t,name:i,size:r="md",title:a}){const o=se[i];if(!o)throw new Error(`Unknown icon name: ${i}`);const d=k(n),p=a?.trim();if(!e&&!p)throw new Error("title must be non-empty when ariaHidden is false.");if(!e&&!d)throw new Error("id must be provided when ariaHidden is false.");const s=e?void 0:`${d}-title`,l=[];return e||l.push({kind:"element",tag:"title",attrs:{id:s},children:[{kind:"text",value:p}]}),l.push(...le(o)),{kind:"element",tag:"svg",attrs:{"aria-hidden":e?"true":void 0,"aria-labelledby":s,class:"set-icon","data-mirrored":t,"data-size":r,fill:"none",height:"24",id:d,role:e?void 0:"img",stroke:"currentColor","stroke-width":"1.75",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},children:l}}function pe(e){return h(q(e))}const at={name:"icon",description:"Use `icon` to render a Set icon.",output:{element:"svg",class:"set-icon"},content:{kind:"none"},props:{ariaHidden:{default:!0,description:"Hides the icon from assistive technology. Decorative by default; set to false for a labelled icon (then `title` and `id` are required).",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}},mirrored:{description:"Mirrors the icon horizontally.",type:{kind:"enum",values:["always","rtl"]}},name:{description:"Set icon name.",required:!0,type:{kind:"iconName"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","fill"]}},title:{description:"Accessible title announced by assistive technology.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"data-mirrored",condition:{kind:"when-provided",prop:"mirrored"},value:{kind:"prop",prop:"mirrored"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"fill",condition:{kind:"always"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"height",condition:{kind:"always"},value:{kind:"literal",text:"24"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-truthy",prop:"ariaHidden"}},value:{kind:"literal",text:"img"}},{target:{on:"host"},attribute:"stroke",condition:{kind:"always"},value:{kind:"literal",text:"currentColor"}},{target:{on:"host"},attribute:"stroke-width",condition:{kind:"always"},value:{kind:"literal",text:"1.75"}},{target:{on:"host"},attribute:"viewBox",condition:{kind:"always"},value:{kind:"literal",text:"0 0 24 24"}},{target:{on:"host"},attribute:"xmlns",condition:{kind:"always"},value:{kind:"literal",text:"http://www.w3.org/2000/svg"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function F(e){const{appearance:n="outline",controls:t,disabled:i,disclosure:r,form:a,haspopup:o,id:d,icon:p,iconMirrored:s,iconPlacement:l="start",label:c,labelVisibility:u="visible",name:b,size:v="md",tone:m="default",type:f,value:C}=e,S=p||void 0,g=!!S;if(u!=="visible"&&!g)throw new Error("labelVisibility requires icon when label is not visible.");const y=g&&S?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:pe({ariaHidden:!0,mirrored:s,name:S,size:"fill"})}]}:null,w={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:c}]};return{kind:"element",tag:"button",attrs:{"aria-controls":r&&t||void 0,"aria-expanded":r?"false":void 0,"aria-haspopup":o||void 0,class:"set-button","data-appearance":n,"data-label-visibility":u==="visible"?void 0:u,"data-size":v,"data-tone":m==="neutral"?"neutral":void 0,disabled:!!i,form:a||void 0,id:d||void 0,name:b||void 0,type:f||"button",value:C||void 0},children:y?l==="end"?[w,y]:[y,w]:[w]}}function Z(e){return h(F(e))}const ot={name:"button",description:"Use `button` to let users trigger actions.",output:{element:"button",class:"set-button"},content:{kind:"text",prop:"label"},props:{appearance:{default:"outline",description:"Visual appearance.",type:{kind:"enum",values:["outline","solid","text"]}},controls:{description:"`id` of the element this button controls.",ignoredWhen:"`disclosure` is false",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},disclosure:{default:!1,description:"Marks the button as a disclosure toggle for another element.",type:{kind:"boolean"}},form:{description:"`id` of the form this button belongs to.",type:{kind:"string"}},haspopup:{description:"Signals that activating the button opens a popup of this type.",type:{kind:"enum",values:["menu"]}},icon:{description:"Icon shown alongside the label.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"iconName"}},iconMirrored:{description:"Mirrors the icon horizontally.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["always","rtl"]}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},id:{description:"`id` for the button.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},name:{description:"Name submitted with the form.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},type:{default:"button",description:"Native button type.",type:{kind:"enum",values:["button","submit"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"when-truthy",prop:"disclosure"},value:{kind:"literal",text:"false"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"all",of:[{kind:"when-truthy",prop:"disclosure"},{kind:"when-non-empty",prop:"controls"}]},value:{kind:"prop",prop:"controls"}},{target:{on:"host"},attribute:"aria-haspopup",condition:{kind:"when-provided",prop:"haspopup"},value:{kind:"prop",prop:"haspopup"}},{target:{on:"host"},attribute:"form",condition:{kind:"when-non-empty",prop:"form"},value:{kind:"prop",prop:"form"}},{target:{on:"host"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"prop",prop:"type"}},{target:{on:"host"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}}]}},P="set-alert",X="set-alert-before-dismiss",Q="set-alert-dismiss",B="Dismiss alert";function dt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Z({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function st(e){switch(e){case"success":return"check-circle";case"warning":return"error-triangle";case"error":return"error-circle";default:return"info-circle"}}function lt(e){return e==="warning"||e==="error"?"alert":"status"}function ce({dismissible:e,dismissibleLabel:n=B,id:t,inlineSize:i="full",message:r,size:a="md",tone:o,title:d}){const p=k(t),s=n.trim()===""?B:n,l=[];return d&&l.push({kind:"element",tag:"p",attrs:{class:"title"},children:[{kind:"text",value:d}]}),l.push({kind:"element",tag:"p",attrs:{class:"message"},children:[{kind:"text",value:r}]}),{kind:"element",tag:P,attrs:{class:"set-alert","data-dismissible":e,"data-dismissible-label":e?s:void 0,"data-inline-size":i==="fit"?"fit":void 0,"data-size":a,"data-tone":o||void 0,id:p,role:lt(o)},children:[{kind:"element",tag:"div",attrs:{class:"icon-wrapper"},children:[q({ariaHidden:!0,name:st(o),size:a})]},{kind:"element",tag:"div",attrs:{class:"content"},children:l}]}}function pt(e){return h(ce(e))}function ue(){if(customElements.get(P))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(X,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(Q,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(dt(this.getAttribute("data-dismissible-label")??B,this.ownerDocument))}}customElements.define(P,e)}const ct={name:"alert",description:"Use `alert` to surface short, important messages.",output:{element:P,class:"set-alert"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"message",kind:"text"}]},props:{dismissible:{default:!1,description:"Shows a dismiss control that removes the alert.",type:{kind:"boolean"}},dismissibleLabel:{default:B,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the alert fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},message:{description:"Body text of the alert.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},title:{description:"Bold text above the message.",type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[X]:{bubbles:!0,cancelable:!0,description:"Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."},[Q]:{bubbles:!0,description:"Fired after the alert has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-in",prop:"tone",values:["warning","error"]},value:{kind:"literal",text:"alert"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-in",prop:"tone",values:["warning","error"]}},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"when-non-empty",prop:"dismissibleLabel"}]},value:{kind:"prop",prop:"dismissibleLabel"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"not",of:{kind:"when-non-empty",prop:"dismissibleLabel"}}]},value:{kind:"literal",text:B}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ut(e){if(e)return e===!0?!0:e}function Y(e){const{appearance:n="text",current:t,download:i,href:r,id:a,icon:o,iconPlacement:d="start",label:p,labelVisibility:s="visible",rel:l,size:c="md",target:u,tone:b="default",underline:v}=e,m=k(a),f=o?.trim()||void 0;if(s!=="visible"&&!!!f)throw new Error("labelVisibility requires icon when label is not visible.");const S=ut(i),g=f?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:f}]}:null,y={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:p}]};return{kind:"element",tag:"a",attrs:{"aria-current":t,class:"set-link","data-appearance":n==="text"?void 0:n,"data-label-visibility":s==="visible"?void 0:s,"data-size":c,"data-tone":b==="neutral"?"neutral":void 0,"data-underline":v&&n==="text"?!0:void 0,download:S,href:r,id:m,rel:S?void 0:l||void 0,target:S?void 0:u||void 0},children:g?d==="end"?[y,g]:[g,y]:[y]}}function ht(e){return h(Y(e))}const kt={name:"link",description:"Use `link` to navigate to another page or resource.",output:{element:"a",class:"set-link"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"icon",kind:"html"}]},props:{appearance:{default:"text",description:"Visual appearance. `text` is a standard link; `outline` and `solid` give button-styled treatments. ",type:{kind:"enum",values:["outline","solid","text"]}},current:{description:"Marks the link as the current item in its set; emits `aria-current` with this value.",type:{kind:"enum",values:["page"]}},download:{description:"Saves the target instead of navigating. Pass a filename or `true`.",type:{kind:"union",variants:[{kind:"boolean"},{kind:"string"}]}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},icon:{description:"Icon markup shown alongside the label. Set icon component, or SVG markup from https://simpleicons.org/ for third-party logos.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"html"}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},rel:{description:"Explicit `rel` attribute.",ignoredWhen:"`download` is set",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},target:{description:"Where to open the link.",ignoredWhen:"`download` is set",type:{kind:"enum",values:["_blank","_parent","_self","_top"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},underline:{default:!1,description:"Underlines the link.",ignoredWhen:"`appearance` is not `text`",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"href",condition:{kind:"always"},value:{kind:"prop",prop:"href"}},{target:{on:"host"},attribute:"aria-current",condition:{kind:"when-provided",prop:"current"},value:{kind:"prop",prop:"current"}},{target:{on:"host"},attribute:"download",condition:{kind:"when-truthy",prop:"download"},value:{kind:"prop",prop:"download"}},{target:{on:"host"},attribute:"rel",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"rel"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"rel"}},{target:{on:"host"},attribute:"target",condition:{kind:"all",of:[{kind:"when-provided",prop:"target"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"target"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"when-in",prop:"appearance",values:["outline","solid"]},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-underline",condition:{kind:"all",of:[{kind:"when-truthy",prop:"underline"},{kind:"when-equals",prop:"appearance",to:"text"}]}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},O="set-banner",J="set-banner-before-dismiss",ee="set-banner-dismiss",$="Dismiss banner";function mt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Z({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function he({actionHref:e,actionLabel:n,dismissible:t=!0,dismissibleLabel:i=$,id:r,message:a,tone:o}){if(!!e!=!!n)throw new Error("actionHref and actionLabel must be provided together.");const d=k(r),p=i.trim()===""?$:i,s=[{kind:"text",value:a}];return e&&n&&(s.push({kind:"text",value:" "}),s.push(Y({href:e,label:n,underline:!0}))),{kind:"element",tag:O,attrs:{class:"set-banner","data-set-content-theme":"dark","data-set-surface":"default","data-dismissible":t,"data-dismissible-label":t?p:void 0,"data-tone":o||void 0,id:d},children:[{kind:"element",tag:"p",attrs:{class:"message"},children:s}]}}function gt(e){return h(he(e))}function ke(){if(customElements.get(O))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(J,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ee,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(mt(this.getAttribute("data-dismissible-label")??$,this.ownerDocument))}}customElements.define(O,e)}const bt={name:"banner",description:"Use `banner` to display a prominent site-wide message.",output:{element:O,class:"set-banner"},content:{kind:"text",prop:"message"},props:{actionHref:{description:"URL for an inline link action rendered after the `message`.",requiredWhen:"`actionLabel` is provided",type:{kind:"string"}},actionLabel:{description:"Text label for an inline link action rendered after the `message`.",requiredWhen:"`actionHref` is provided",type:{kind:"text"}},dismissible:{default:!0,description:"Shows a dismiss control that removes the banner.",type:{kind:"boolean"}},dismissibleLabel:{default:$,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},message:{description:"Body text of the banner.",required:!0,type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[J]:{bubbles:!0,cancelable:!0,description:"Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."},[ee]:{bubbles:!0,description:"Fired after the banner has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"always"},value:{kind:"literal",text:"dark"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},H="set-menu",te="set-menu-choose";function me({align:e="start",id:n,items:t,size:i="md",triggerIcon:r,triggerIconMirrored:a,triggerIconPlacement:o,triggerLabel:d,triggerLabelVisibility:p}){const s=n.trim();if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Array.isArray(t))throw new Error("items must be an array.");const l=`${s}-button`,c=`${s}-popup`,u=t.map(b=>({kind:"element",tag:"button",attrs:{"aria-disabled":b.disabled?"true":void 0,"data-item-id":b.id||void 0,role:"menuitem",tabindex:"-1",type:"button"},children:[{kind:"text",value:b.label}]}));return{kind:"element",tag:H,attrs:{class:"set-menu","data-align":e==="start"?void 0:e,"data-size":i,id:s},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[F({appearance:"outline",controls:c,disclosure:!0,haspopup:"menu",icon:r,iconMirrored:a,iconPlacement:o,id:l,label:d,labelVisibility:p,size:i,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{"aria-labelledby":l,class:"popup",hidden:!0,id:c,role:"menu"},children:u}]}}function vt(e){return h(me(e))}function ge(){if(customElements.get(H))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#l(),this.#r(!1),this.#m()}disconnectedCallback(){this.#l()}#a(){return this.querySelector('[data-part="trigger"] .set-button')}#o(){return this.querySelector('[role="menu"]')}#k(){return Array.from(this.querySelectorAll('[role="menuitem"]'))}#p(t){return t.getAttribute("aria-disabled")==="true"}#c(){return this.hasAttribute("data-open")}#d(t){const i=this.#k();if(i.length===0)return;const r=(t%i.length+i.length)%i.length;i[r]?.focus()}#s(t=0){const i=this.#o(),r=this.#a();!i||!r||(i.hidden=!1,this.setAttribute("data-open",""),r.setAttribute("aria-expanded","true"),this.#d(t))}#r(t=!1){const i=this.#o(),r=this.#a();!i||!r||(i.hidden=!0,this.removeAttribute("data-open"),r.setAttribute("aria-expanded","false"),t&&r.focus())}#u(t){const r=Array.from(this.querySelectorAll('[role="menuitem"]')).indexOf(t);this.dispatchEvent(new CustomEvent(te,{bubbles:!0,detail:{id:t.getAttribute("data-item-id")||void 0,index:r,label:t.textContent||""}}))}#m(){this.#e=t=>{const i=t.target;if(!(i instanceof Element))return;if(i.closest('[data-part="trigger"] .set-button')){if(this.#c()){this.#r();return}this.#s(0);return}const r=i.closest('[role="menuitem"]');if(r&&this.contains(r)){this.#p(r)||(this.#u(r),this.#r(!0));return}},this.#t=t=>{const i=t.target;i instanceof Node&&this.#c()&&!this.contains(i)&&this.#r()},this.#n=t=>{const i=this.#a(),r=this.#o();if(!i||!r)return;if((t.key==="Escape"||t.key==="Esc")&&this.#c()){t.preventDefault(),this.#r(!0);return}const a=this.ownerDocument.activeElement,o=this.#k(),d=o.indexOf(a);if(a===i){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.#s(0)),t.key==="ArrowDown"&&(t.preventDefault(),this.#s(0)),t.key==="ArrowUp"&&(t.preventDefault(),this.#s(o.length-1));return}if(r.contains(a)){if(a instanceof HTMLButtonElement&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.#p(a)||(this.#u(a),this.#r(!0));return}t.key==="ArrowDown"&&(t.preventDefault(),this.#d(d+1)),t.key==="ArrowUp"&&(t.preventDefault(),this.#d(d-1)),t.key==="Home"&&(t.preventDefault(),this.#d(0)),t.key==="End"&&(t.preventDefault(),this.#d(o.length-1)),t.key==="Tab"&&this.#r(!1)}},this.#i=t=>{const i=t.relatedTarget;if(!(i instanceof Node)){this.#r();return}this.contains(i)||this.#r()},this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#n),this.addEventListener("focusout",this.#i),this.ownerDocument.addEventListener("click",this.#t)}#l(){this.#e&&this.removeEventListener("click",this.#e),this.#t&&this.ownerDocument.removeEventListener("click",this.#t),this.#n&&this.removeEventListener("keydown",this.#n),this.#i&&this.removeEventListener("focusout",this.#i),this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#n=void 0}}customElements.define(H,e)}const ft={name:"menu",description:"Use `menu` to show a list of actions from a trigger button.",output:{element:H,class:"set-menu"},content:{kind:"structured",prop:"items"},props:{align:{default:"start",description:"Popup alignment relative to the trigger.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id applied to the host. Trigger and popup ids are derived as `${id}-button` and `${id}-popup`.",required:!0,type:{kind:"string"}},items:{description:"Action items listed inside the popup.",required:!0,type:{kind:"array",itemShape:{disabled:{default:!1,description:"Disables selection for this item.",type:{kind:"boolean"}},id:{description:"Optional authored identifier surfaced in the choose event payload.",type:{kind:"string"}},label:{description:"Visible item label text.",required:!0,type:{kind:"text"}}}}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},triggerIcon:{description:"Icon name for the trigger button.",type:{kind:"iconName"}},triggerIconMirrored:{description:"Icon mirroring mode for the trigger button icon.",type:{kind:"enum",values:["always","rtl"]}},triggerIconPlacement:{default:"start",description:"Icon placement within the trigger button.",type:{kind:"enum",values:["start","end"]}},triggerLabel:{description:"Accessible and visible trigger label text.",required:!0,type:{kind:"text"}},triggerLabelVisibility:{default:"visible",description:"Trigger label visibility treatment.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}}},events:{[te]:{bubbles:!0,description:"Fired when a menu item is activated.",detail:"{ id?: string; index: number; label: string }"}},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-equals",prop:"align",to:"end"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:'div[data-part="trigger"] button'},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-popup"}},{target:{on:"descendant",selector:"div.popup"},attribute:"aria-labelledby",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"menu"}},{target:{on:"descendant",selector:"div.popup"},attribute:"hidden",condition:{kind:"always"}}]}},j="Menu";function be({controlsId:e,expanded:n,id:t,label:i=j,size:r="md"}={}){const a=k(t),o=i.trim()===""?j:i;return{kind:"element",tag:"button",attrs:{"aria-controls":e||void 0,"aria-expanded":n?"true":"false",class:"set-expander","data-size":r,id:a,type:"button"},children:[{kind:"element",tag:"span",attrs:{class:"expander-box"},children:[{kind:"element",tag:"span",attrs:{class:"expander-inner"},children:[]},{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:o}]}]}]}}function ve(e={}){return h(be(e))}const yt={name:"expander",description:"Use `expander` as a toggle for disclosure regions such as menus.",output:{element:"button",class:"set-expander"},content:{kind:"text",prop:"label"},props:{controlsId:{description:"`id` of the element this toggle controls.",type:{kind:"string"}},expanded:{default:!1,description:"Whether the controlled region is expanded.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{default:j,description:"Accessible label.",type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"always"},value:{kind:"template",pattern:"{expanded}"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"when-non-empty",prop:"controlsId"},value:{kind:"prop",prop:"controlsId"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},V="set-nav",ae="data-set-scroll-locked";function fe({collapsible:e,contentId:n,expanderLabel:t,expanderPosition:i="start",id:r,items:a,label:o,size:d="md"}){const p=k(r),s=t?.trim()||void 0,l=n?.trim();if(e&&!l)throw new Error("contentId must be a non-empty string when collapsible is set.");if(l&&!M(l))throw new Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const c=a.map(u=>({kind:"element",tag:"li",attrs:{},children:[{kind:"element",tag:"a",attrs:{"aria-current":u.current?"page":void 0,class:"item",href:u.href},children:[{kind:"text",value:u.label}]}]}));return{kind:"element",tag:V,attrs:{class:"set-nav","data-collapsible":e,"data-expander-label":e&&s?s:void 0,"data-expander-position":e?i:void 0,"data-size":d,id:p},children:[{kind:"element",tag:"nav",attrs:{"aria-label":o||void 0,class:"nav"},children:[{kind:"element",tag:"div",attrs:{class:"content",id:l},children:[{kind:"element",tag:"ul",attrs:{class:"list"},children:c}]}]}]}}function wt(e){return h(fe(e))}function ye(){if(customElements.get(V))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#r(),this.#u(),this.#k(),this.#c(),this.#d()}disconnectedCallback(){this.#p(!1),this.#r(),this.#u()}#a(){return this.hasAttribute("data-collapsible")?this.querySelector(".nav"):null}#o(){return this.querySelector('[data-part="expander"] .set-expander')}#k(){const t=this.#a();if(!t||t.querySelector('[data-part="expander"]'))return;const i=t.querySelector(".content");i&&t.insertAdjacentHTML("afterbegin",`<div data-part="expander">${ve({controlsId:i.id||void 0,label:this.getAttribute("data-expander-label")||void 0,size:this.getAttribute("data-size")==="sm"?"md":"lg"})}</div>`)}#p(t){const i=this.#o();!i||i.getAttribute("aria-expanded")==="true"===t||(i.setAttribute("aria-expanded",t?"true":"false"),this.#s(t))}#c(){this.#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="expander"] .set-expander'))return;const r=this.#o();r&&this.#p(r.getAttribute("aria-expanded")!=="true")},this.addEventListener("click",this.#e)}#d(){const t=this.#a(),i=this.ownerDocument.defaultView;if(!t||!i||(this.#i=a=>{a.key!=="Escape"&&a.key!=="Esc"||this.#p(!1)},i.addEventListener("keydown",this.#i),this.getAttribute("data-collapsible")!=="belowTablet")||typeof i.matchMedia!="function")return;const r=i.matchMedia("(min-width: 48em)");this.#t=r,this.#n=a=>{a.matches&&this.#p(!1)},r.addEventListener("change",this.#n)}#s(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute(ae,"");return}i.removeAttribute(ae)}}#r(){this.#e&&(this.removeEventListener("click",this.#e),this.#e=void 0)}#u(){const t=this.ownerDocument.defaultView;this.#i&&t&&t.removeEventListener("keydown",this.#i),this.#t&&this.#n&&this.#t.removeEventListener("change",this.#n),this.#i=void 0,this.#n=void 0,this.#t=void 0}}customElements.define(V,e)}const St={name:"nav",description:"Use `nav` to render a primary navigation list.",output:{element:V,class:"set-nav"},content:{kind:"structured",prop:"items"},props:{items:{description:"Nav links shown in the list.",required:!0,type:{kind:"array",itemShape:{current:{default:!1,description:'Emits `aria-current="page"` when true.',type:{kind:"boolean"}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},label:{description:"Link label.",required:!0,type:{kind:"text"}}}}},label:{description:"Accessible label for the nav landmark.",type:{kind:"string"}},expanderLabel:{description:"Accessible label for the collapsible expander button.",type:{kind:"string"}},expanderPosition:{default:"start",description:"Where the expander sits within the composition.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id.",type:{kind:"string"}},collapsible:{description:"When to collapse the nav behind an expander.",type:{kind:"enum",values:["always","belowTablet"]}},contentId:{description:"`id` for the collapsible content region.",requiredWhen:"`collapsible` is provided",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-collapsible",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"collapsible"}},{target:{on:"host"},attribute:"data-expander-position",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"expanderPosition"}},{target:{on:"host"},attribute:"data-expander-label",condition:{kind:"all",of:[{kind:"when-provided",prop:"collapsible"},{kind:"when-non-empty",prop:"expanderLabel"}]},value:{kind:"prop",prop:"expanderLabel"}},{target:{on:"descendant",selector:"nav"},attribute:"aria-label",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"prop",prop:"label"}},{target:{on:"descendant",selector:"div.content"},attribute:"id",condition:{kind:"when-provided",prop:"contentId"},value:{kind:"prop",prop:"contentId"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},R="set-range";function we({description:e,disabled:n,id:t,inlineSize:i="full",label:r,max:a,min:o,name:d,size:p="md",step:s,value:l}){const c=t.trim(),u=e?.trim(),b=d?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const v=u?`${c}-description`:void 0,m=[{kind:"element",tag:"div",attrs:{class:"label-wrapper"},children:[{kind:"element",tag:"label",attrs:{class:"label",for:c},children:[{kind:"text",value:r}]},{kind:"element",tag:"output",attrs:{class:"output",for:c},children:l!=null?[{kind:"text",value:String(l)}]:[]}]},{kind:"element",tag:"input",attrs:{"aria-describedby":v,class:"range",disabled:!!n,id:c,max:a!=null?String(a):void 0,min:o!=null?String(o):void 0,name:b||void 0,step:s!=null?String(s):void 0,type:"range",value:l!=null?String(l):void 0},children:[]}];return u&&m.push({kind:"element",tag:"p",attrs:{class:"description",id:v},children:[{kind:"text",value:u}]}),{kind:"element",tag:R,attrs:{class:"set-range","data-inline-size":i==="fit"?"fit":void 0,"data-size":p},children:m}}function Et(e){return h(we(e))}function Se(){if(customElements.get(R))return;class e extends HTMLElement{#e;#t=t=>{const i=t.target;i instanceof HTMLInputElement&&i.matches(".range")&&this.#i()};connectedCallback(){this.removeEventListener("input",this.#t),this.#a(),this.#i(),this.addEventListener("input",this.#t)}disconnectedCallback(){this.removeEventListener("input",this.#t),this.#o()}#i(){const t=this.querySelector(".range"),i=this.querySelector(".output");!t||!i||this.#n(i,t.value)}#n(t,i){const r=t.firstChild;if(r?.nodeType===Node.TEXT_NODE&&t.childNodes.length===1){r.nodeValue!==i&&(r.nodeValue=i);return}t.textContent!==i&&(t.textContent=i)}#a(){const t=this.querySelector(".range");if(!t||t===this.#e)return;this.#o();const i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!i?.get||!i.set)return;const r=i.get,a=i.set,o=()=>this.#i();Object.defineProperty(t,"value",{configurable:!0,enumerable:i.enumerable,get(){return r.call(this)},set(d){a.call(this,d),o()}}),this.#e=t}#o(){this.#e&&(delete this.#e.value,this.#e=void 0)}}customElements.define(R,e)}const xt={name:"range",description:"Use `range` to let users pick a numeric value along a scale.",output:{element:R,class:"set-range"},content:{kind:"text",prop:"label"},props:{description:{description:"Helper text shown below the range.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the range.",type:{kind:"boolean"}},id:{description:"`id` used to associate the input with its label.",required:!0,type:{kind:"string"}},inlineSize:{default:"full",description:"How the range fills its container.",type:{kind:"enum",values:["full","fit"]}},label:{description:"Label text.",required:!0,type:{kind:"text"}},max:{description:"Maximum value.",type:{kind:"number"}},min:{description:"Minimum value.",type:{kind:"number"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},step:{description:"Granularity of value changes.",type:{kind:"number"}},value:{description:"Current value.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"min",condition:{kind:"when-provided",prop:"min"},value:{kind:"template",pattern:"{min}"}},{target:{on:"descendant",selector:"input"},attribute:"max",condition:{kind:"when-provided",prop:"max"},value:{kind:"template",pattern:"{max}"}},{target:{on:"descendant",selector:"input"},attribute:"step",condition:{kind:"when-provided",prop:"step"},value:{kind:"template",pattern:"{step}"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"template",pattern:"{value}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"template",pattern:"{name}"}}]}},W="set-sidebar",Ct="(min-width: 68em)",I="Collapse sidebar",K="Open sidebar";function zt(e,n){return`<div data-part="close">${Z({appearance:"text",icon:"panel-left",iconMirrored:"rtl",label:e,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})}</div>`}function Ee({aboveNotebook:e="persistent",buttonSize:n="md",children:t,collapseLabel:i=I,footer:r,header:a,id:o,surface:d,triggerLabel:p=K}){const s=o.trim(),l=i.trim()||I,c=p.trim()||K;if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const u=[{kind:"element",tag:"div",attrs:{class:"header"},children:a?[{kind:"raw",html:a}]:[]},{kind:"element",tag:"div",attrs:{class:"content"},children:t?[{kind:"raw",html:t}]:[]}];r&&u.push({kind:"element",tag:"div",attrs:{class:"footer"},children:[{kind:"raw",html:r}]});const b=`${s}-panel`;return{kind:"element",tag:W,attrs:{class:"set-sidebar","data-above-notebook":e,"data-collapse-label":l!==I?l:void 0,"data-button-size":n,id:s},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[F({appearance:"text",controls:b,disclosure:!0,icon:"panel-left",iconMirrored:"rtl",label:c,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{class:"sidebar","data-set-surface":d,id:b,tabindex:"-1"},children:u},{kind:"element",tag:"div",attrs:{"data-part":"backdrop"},children:[]}]}}function _t(e){return h(Ee(e))}function xe(){if(customElements.get(W))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#v(),this.#s(),this.#g(),this.#f()}disconnectedCallback(){this.close(),this.#v()}open(){this.#b(!0)}close(){this.#b(!1)}#a(){return this.querySelector(".sidebar")}#o(){return this.querySelector('[data-part="close"] .set-button')}#k(){return this.querySelector('[data-part="trigger"] .set-button')}#p(){return this.hasAttribute("data-open")}#c(){return this.hasAttribute("data-collapsed")}#d(){const t=this.getAttribute("data-above-notebook");return t==="collapsible"||t==="overlay"?t:"persistent"}#s(){const t=this.#a();if(!t||t.querySelector('[data-part="close"]'))return;const i=t.querySelector(".header"),r=this.getAttribute("data-collapse-label")||I,a=this.getAttribute("data-button-size")??"md";i?.insertAdjacentHTML("beforeend",zt(r,a))}#r(){this.querySelector('[data-part="close"]')?.remove()}#u(){const t=this.#o();if(t){t.focus();return}this.#a()?.focus()}#m(){return this.#e?.matches??!1}#l({collapsed:t,open:i}){const r=this.#k();this.toggleAttribute("data-open",i),this.toggleAttribute("data-collapsed",t),r?.setAttribute("aria-expanded",i?"true":"false")}#g(){const t=this.#d();if(this.#m()){if(t==="overlay"){this.#s(),this.#l({collapsed:!1,open:!1}),this.#h(!1);return}if(t==="collapsible"){this.#s(),this.#l({collapsed:this.#c(),open:!0}),this.#h(!1);return}this.#r(),this.#l({collapsed:!1,open:!0}),this.#h(!1);return}this.#s(),this.#l({collapsed:!1,open:!1}),this.#h(!1)}#b(t){const i=this.#d();if(this.#m()){if(i==="persistent"){this.#l({collapsed:!1,open:!0}),this.#h(!1);return}if(i==="collapsible"){this.#l({collapsed:!t,open:!0}),this.#h(!1),t&&this.#u();return}}if(this.#p()!==t){if(t){this.#l({collapsed:!1,open:!0}),this.#h(!0),this.#u();return}this.#l({collapsed:!1,open:!1}),this.#h(!1),this.#k()?.focus()}}#h(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute("data-set-scroll-locked","");return}i.removeAttribute("data-set-scroll-locked")}}#f(){const t=this.ownerDocument.defaultView;t&&(typeof t.matchMedia=="function"&&(this.#e=t.matchMedia(Ct),this.#n=()=>{this.#g()},this.#e.addEventListener("change",this.#n),this.#g()),this.#t=i=>{const r=i.target;if(r instanceof Element){if(r.closest('[data-part="trigger"] .set-button')){this.open();return}if(r.closest('[data-part="close"] .set-button')){if(this.#m()&&this.#d()==="collapsible"){this.#b(this.#c());return}this.close();return}r.closest('[data-part="backdrop"]')&&this.close()}},this.#i=i=>{i.key!=="Escape"&&i.key!=="Esc"||this.close()},this.addEventListener("click",this.#t),this.addEventListener("keydown",this.#i))}#v(){this.#t&&this.removeEventListener("click",this.#t),this.#i&&this.removeEventListener("keydown",this.#i),this.#e&&this.#n&&this.#e.removeEventListener("change",this.#n),this.#t=void 0,this.#i=void 0,this.#e=void 0,this.#n=void 0}}customElements.define(W,e)}const Tt={name:"sidebar",description:"Use `sidebar` for a side panel alongside main content.",output:{element:W,class:"set-sidebar"},content:{kind:"slots",slots:[{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{aboveNotebook:{default:"persistent",description:"Layout behaviour on wider screens.",type:{kind:"enum",values:["persistent","collapsible","overlay"]}},buttonSize:{default:"md",description:"Size of the trigger and collapse buttons.",type:{kind:"enum",values:["sm","md","lg"]}},children:{description:"Sidebar body content.",type:{kind:"html"}},collapseLabel:{default:I,description:"Accessible label for the collapse button.",type:{kind:"string"}},footer:{description:"Content rendered in the sidebar footer.",type:{kind:"html"}},header:{description:"Content rendered in the sidebar header.",type:{kind:"html"}},id:{description:"DOM id applied to the host. The inner panel id is derived as `${id}-panel` and wired to the trigger via `aria-controls`.",required:!0,type:{kind:"string"}},surface:{description:"Surface context. Applied to the inner panel.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},triggerLabel:{default:K,description:"Accessible label for the open button.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-above-notebook",condition:{kind:"always"},value:{kind:"prop",prop:"aboveNotebook"}},{target:{on:"host"},attribute:"data-button-size",condition:{kind:"always"},value:{kind:"prop",prop:"buttonSize"}},{target:{on:"host"},attribute:"data-collapse-label",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"collapseLabel"},{kind:"not",of:{kind:"when-equals",prop:"collapseLabel",to:I}}]},value:{kind:"prop",prop:"collapseLabel"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-panel"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"tabindex",condition:{kind:"always"},value:{kind:"literal",text:"-1"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}}]}};function Mt(e){return e?/[A-Za-z]/.test(e):!1}function Lt(e){return/^[a-z]/.test(e)}function L(e){const n=e.charAt(0);return Mt(n)?n:void 0}function Ce(e){const n=A(e);if(!n)return;const t=n.split(" "),i=L(t[0]);if(!i)return;const r=[i.toUpperCase()];if(t.length===1)return r[0];const a=t.slice(1).find(Lt);if(a){const d=L(a);return d?`${r[0]}${d}`:void 0}if(t.length===2){const d=L(t[1]);if(!d)return;r.push(d);const p=t[1].split("-").filter(Boolean);if(p.length===2){const s=L(p[1]);s&&r.push(s)}return r.slice(0,3).join("")}if(t.length===3){const d=L(t[1]),p=L(t[2]);return!d||!p?void 0:(r.push(d,p),r.slice(0,3).join(""))}const o=L(t.at(-1)||"");if(o)return r.push(o),r.slice(0,3).join("")}const It={bot:"robot-1",organization:"city-6",person:"user-1",team:"member"},oe=["01","02","03","04","05","06","07","08","09"];function At(e){let n=5381;for(const t of e)n=n*33^t.charCodeAt(0);return n>>>0}function qt(e){if(e==null)return;const n=A(e);if(n){if(n.length>3)throw new Error("initials must normalize to 3 characters or fewer.");if(!/^[A-Za-z]{1,3}$/.test(n))throw new Error("initials must contain only alphabetic characters.");return n}}function Nt({alt:e,ariaHidden:n,name:t}){if(!n)return A(e)||A(t)||"Avatar"}function Dt({color:e,name:n}){if(e)return e;if(n){const t=At(n)%oe.length;return oe[t]}return"neutral"}function ze({alt:e,ariaHidden:n,color:t,entity:i="person",id:r,initials:a,name:o,size:d="md",src:p}){const s=k(r),l=qt(a),c=A(o),u=A(p),b=Nt({alt:e,ariaHidden:n,name:c}),v=l||Ce(c),m=!!u,f=Dt({color:t,name:c}),C={"aria-hidden":n?"true":void 0,"aria-label":!n&&!m?b:void 0,class:"set-avatar","data-color":f==="neutral"?void 0:f,"data-entity":i==="person"?void 0:i,"data-size":d,id:s,role:!n&&!m?"img":void 0};let S;return m?S={kind:"element",tag:"img",attrs:{alt:n?"":b||"",class:"img",src:u},children:[]}:v?S={kind:"element",tag:"span",attrs:{class:"initials"},children:[{kind:"text",value:v}]}:S={kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[q({ariaHidden:!0,name:It[i],size:"fill"})]},{kind:"element",tag:"span",attrs:C,children:[S]}}function Pt(e){return h(ze(e))}const Bt={name:"avatar",description:"Use `avatar` to visually represent a person, team, or entity.",output:{element:"span",class:"set-avatar"},content:{kind:"none"},props:{alt:{description:"Accessible label for the avatar, overrides name.",type:{kind:"string"}},ariaHidden:{default:!1,description:"Hides the avatar from assistive technology.",type:{kind:"boolean"}},entity:{default:"person",description:"Type of subject the avatar represents.",type:{kind:"enum",values:["bot","organization","person","team"]}},color:{description:"Background color swatch. Derived from name when omitted.",type:{kind:"enum",values:["neutral","01","02","03","04","05","06","07","08","09"]}},id:{description:"DOM id.",type:{kind:"string"}},initials:{description:"Initials to display. 1–3 alphabetic characters. Overrides name-derived initials.",type:{kind:"string"}},name:{description:"Full name. Used for the label and to derive initials.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},src:{description:"Image source URL.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-entity",condition:{kind:"when-in",prop:"entity",values:["bot","organization","team"]},value:{kind:"prop",prop:"entity"}},{target:{on:"host"},attribute:"data-color",condition:{kind:"when-in",prop:"color",values:["01","02","03","04","05","06","07","08","09"]},value:{kind:"prop",prop:"color"}},{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function _e({floating:e,id:n,label:t,size:i="md",tone:r}){const a=k(n);return{kind:"element",tag:"span",attrs:{class:"set-badge","data-floating":e,"data-size":i,"data-tone":r||void 0,id:a},children:[{kind:"text",value:t}]}}function Ot(e){return h(_e(e))}const Ht={name:"badge",description:"Use `badge` to annotate content with a short label.",output:{element:"span",class:"set-badge"},content:{kind:"text",prop:"label"},props:{floating:{default:!1,description:"Positions the badge as a floating overlay.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Badge text.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-floating",condition:{kind:"when-truthy",prop:"floating"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function U({align:e,as:n,children:t,id:i,linkVisited:r=!0,measured:a,responsive:o,size:d="md",tone:p="default"}){const s=k(i),l=n==="p"?"p":"span",c=l==="p",u=c?e??"start":void 0;return{kind:"element",tag:l,attrs:{class:"set-text","data-align":u&&u!=="start"?u:void 0,"data-link-visited":r?void 0:"off","data-measured":c?a??!0:void 0,"data-responsive":o,"data-size":d,"data-tone":p==="muted"?"muted":void 0,id:s},children:[{kind:"raw",html:t}]}}function Vt(e){return h(U(e))}const Rt={name:"text",description:"Use `text` for inline or paragraph body copy.",output:{element:{kind:"switch",prop:"as",cases:{p:"p",span:"span"}},class:"set-text"},content:{kind:"html",prop:"children"},props:{as:{default:"span",description:"HTML element used for the text.",type:{kind:"enum",values:["p","span"]}},children:{description:"Text content. Supports inline markup such as `<em>`, `<strong>`, `<a>`, `<code>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the text.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales text across breakpoints.",type:{kind:"boolean"}},align:{default:"start",description:"Text alignment.",ignoredWhen:"`as` is span",type:{kind:"enum",values:["start","center","end"]}},measured:{default:!0,description:"Caps line length for comfortable reading.",ignoredWhen:"`as` is span",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","muted"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-in",prop:"align",values:["center","end"]}]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-truthy",prop:"measured"}]}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"muted"},value:{kind:"literal",text:"muted"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Te({align:e="start",attribution:n,id:t,measured:i=!0,quote:r,responsive:a=!1,size:o="md"}){const d=k(t);return{kind:"element",tag:"figure",attrs:{class:"set-blockquote","data-align":e==="start"?void 0:e,id:d},children:[{kind:"element",tag:"blockquote",attrs:{class:"quote"},children:[U({align:e,as:"p",children:r,measured:i,responsive:a,size:o})]},{kind:"element",tag:"figcaption",attrs:{class:"attribution"},children:[U({as:"span",children:n,responsive:a,size:"sm"})]}]}}function Wt(e){return h(Te(e))}const Ut={name:"blockquote",description:"Use `blockquote` to display a quote with attribution.",output:{element:"figure",class:"set-blockquote"},content:{kind:"slots",slots:[{prop:"quote",kind:"html"},{prop:"attribution",kind:"html"}]},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},attribution:{description:"Attribution shown beneath the quote. Supports inline markup such as `<a>`, `<cite>`, `<em>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},quote:{description:"Quote content. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant for the quote.",type:{kind:"enum",values:["md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Me({background:e="default",border:n,children:t,id:i,paddingBlock:r="md",paddingInline:a="md",radius:o,responsive:d,surface:p}){const s=k(i);return{kind:"element",tag:"div",attrs:{class:"set-box","data-background":e==="default"?void 0:e,"data-border":n,"data-set-surface":p,"data-padding-block":r,"data-padding-inline":a,"data-radius":o,"data-responsive":d,id:s},children:t?[{kind:"raw",html:t}]:[]}}function Gt(e){return h(Me(e))}const $t={name:"box",description:"Use `box` to inset content.",output:{element:"div",class:"set-box"},content:{kind:"html",prop:"children"},props:{background:{default:"default",description:"Background treatment.",type:{kind:"enum",values:["default","panel","transparent"]}},border:{default:!1,description:"Shows a subtle border around the box.",type:{kind:"boolean"}},children:{description:"Content rendered inside the box.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},paddingBlock:{default:"md",description:"Vertical padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},paddingInline:{default:"md",description:"Horizontal padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},radius:{description:"Corner radius.",type:{kind:"enum",values:["sm","md"]}},responsive:{default:!1,description:"Scales vertical padding across breakpoints.",type:{kind:"boolean"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-background",condition:{kind:"when-in",prop:"background",values:["panel","transparent"]},value:{kind:"prop",prop:"background"}},{target:{on:"host"},attribute:"data-border",condition:{kind:"when-truthy",prop:"border"}},{target:{on:"host"},attribute:"data-padding-block",condition:{kind:"always"},value:{kind:"prop",prop:"paddingBlock"}},{target:{on:"host"},attribute:"data-padding-inline",condition:{kind:"always"},value:{kind:"prop",prop:"paddingInline"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Le({description:e,headingLevel:n,href:t,id:i,note:r,surface:a,title:o}){const d=k(i),p=n?`h${n}`:"div",s=t?[{kind:"element",tag:"a",attrs:{href:t},children:[{kind:"text",value:o}]}]:[{kind:"text",value:o}],l=r?[{kind:"raw",html:r}]:[];r&&t&&l.push({kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[q({ariaHidden:!0,mirrored:"rtl",name:"arrow-right",size:"xs"})]});const c=[{kind:"element",tag:"span",attrs:{class:"dots"},children:[{kind:"element",tag:"span",attrs:{},children:[]}]},{kind:"element",tag:p,attrs:{class:"title"},children:s},{kind:"element",tag:"p",attrs:{class:"description"},children:[{kind:"raw",html:e}]}];return r&&c.push({kind:"element",tag:"p",attrs:{class:"note"},children:l}),{kind:"element",tag:"div",attrs:{class:"set-card","data-set-surface":a,id:d},children:c}}function Ft(e){return h(Le(e))}const Zt={name:"card",description:"Use `card` to display a summary for a single topic.",output:{element:"div",class:"set-card"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"description",kind:"html"},{prop:"note",kind:"html"}]},props:{description:{description:"Supporting description shown below the `title`.",required:!0,type:{kind:"html"}},headingLevel:{description:"Semantic heading level for the title. Renders a `<div>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},href:{description:"Link destination for the `title`.",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},note:{description:"Short note shown beneath the `description`.",type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},title:{description:"Card title.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ie({checked:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,required:d,size:p="md",value:s}){const l=k(i),c=n?.trim();if(c&&!l)throw new Error("id must be provided when description is provided.");const u=c?`${l}-description`:void 0,b=!!t,m=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":u,"aria-invalid":!b&&!!r?"true":void 0,checked:!!e,class:"checkbox",disabled:b,id:l,name:o||void 0,required:!!d,type:"checkbox",value:s||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:a}]}]}];return c&&m.push({kind:"element",tag:"p",attrs:{class:"description",id:u},children:[{kind:"text",value:c}]}),{kind:"element",tag:"div",attrs:{class:"set-checkbox","data-size":p},children:m}}function jt(e){return h(Ie(e))}const Kt={name:"checkbox",description:"Use `checkbox` to let users toggle a single option on or off.",output:{element:"div",class:"set-checkbox"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the checkbox is checked.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},invalid:{default:!1,description:"Marks the checkbox as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},label:{description:"Label shown next to the checkbox.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},required:{default:!1,description:"Marks the checkbox as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ae({children:e,gutter:n="default",id:t,maxInlineSize:i="default"}){const r=k(t);return{kind:"element",tag:"div",attrs:{class:"set-container","data-gutter":n==="default"?void 0:n,"data-max-inline-size":i==="default"?void 0:i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function Xt(e){return h(Ae(e))}const Qt={name:"container",description:"Use `container` to wrap page-level content.",output:{element:"div",class:"set-container"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the container.",type:{kind:"html"}},gutter:{default:"default",description:"Horizontal gutter width.",type:{kind:"enum",values:["default","narrow","none"]}},id:{description:"DOM id.",type:{kind:"string"}},maxInlineSize:{default:"default",description:"Maximum content width. Effect is only visible in wider viewports.",type:{kind:"enum",values:["default","wide","none"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-max-inline-size",condition:{kind:"when-in",prop:"maxInlineSize",values:["wide","none"]},value:{kind:"prop",prop:"maxInlineSize"}},{target:{on:"host"},attribute:"data-gutter",condition:{kind:"when-in",prop:"gutter",values:["narrow","none"]},value:{kind:"prop",prop:"gutter"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function qe({children:e,id:n,open:t,summary:i,inlineSize:r="full"}){const a=k(n);return{kind:"element",tag:"details",attrs:{class:"set-details",open:t,"data-inline-size":r==="fit"?"fit":void 0,id:a},children:[{kind:"element",tag:"summary",attrs:{class:"summary"},children:[{kind:"element",tag:"span",attrs:{class:"marker"},children:[q({ariaHidden:!0,name:"chevron-right",size:"sm"})]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:i}]}]},{kind:"element",tag:"div",attrs:{class:"content"},children:e?[{kind:"raw",html:e}]:[]}]}}function Yt(e){return h(qe(e))}const Jt={name:"details",description:"Use `details` to let users expand and collapse a section of content.",output:{element:"details",class:"set-details"},content:{kind:"slots",slots:[{prop:"summary",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Content revealed when the details is open.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the details fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},open:{default:!1,description:"Opens the details by default.",type:{kind:"boolean"}},summary:{description:"Summary shown in the toggle.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"open",condition:{kind:"when-truthy",prop:"open"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ne({id:e,orientation:n="horizontal",tone:t="default"}={}){const i=k(e);return{kind:"element",tag:n==="horizontal"?"hr":"span",attrs:{"aria-orientation":n==="vertical"?"vertical":void 0,class:"set-divider","data-tone":t==="subtle"||t==="brand"?t:void 0,id:i,role:n==="vertical"?"separator":void 0},children:[]}}function ei(e={}){return h(Ne(e))}const ti={name:"divider",description:"Use `divider` to separate sections with a rule.",output:{element:{kind:"switch",prop:"orientation",cases:{horizontal:"hr",vertical:"span"}},class:"set-divider"},content:{kind:"none"},props:{id:{description:"DOM id.",type:{kind:"string"}},orientation:{default:"horizontal",description:"Divider orientation.",type:{kind:"enum",values:["horizontal","vertical"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"role",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"separator"}},{target:{on:"host"},attribute:"aria-orientation",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"vertical"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","brand"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ie({children:e,description:n,disabled:t,id:i,invalid:r,legend:a,inlineSize:o="full"}){const d=n?.trim(),p=i.trim();if(!p)throw new Error("id must be a non-empty string.");if(!M(p))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const s=d?`${p}-description`:void 0,l=!!t,c=!l&&!!r,u=[{kind:"element",tag:"legend",attrs:{class:"legend"},children:[{kind:"text",value:a}]}];return d&&u.push({kind:"element",tag:"p",attrs:{class:"description",id:s},children:[{kind:"text",value:d}]}),e&&u.push({kind:"raw",html:e}),{kind:"element",tag:"fieldset",attrs:{"aria-describedby":d?s:void 0,"aria-invalid":c?"true":void 0,class:"set-fieldset","data-inline-size":o==="fit"?"fit":void 0,disabled:l,id:p},children:u}}function ii(e){return h(ie(e))}const ni={name:"fieldset",description:"Use `fieldset` to group related form controls under a legend.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"slots",slots:[{prop:"legend",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Form controls grouped inside the fieldset.",type:{kind:"html"}},description:{description:"Description shown below the legend; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction with controls in the group.",type:{kind:"boolean"}},id:{description:"`id` for the fieldset.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},legend:{description:"Legend shown above the group.",required:!0,type:{kind:"text"}},inlineSize:{default:"full",description:"Whether the fieldset fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}}]}};function De({align:e="start",caption:n,children:t,id:i,responsive:r=!1}){const a=k(i);return{kind:"element",tag:"figure",attrs:{class:"set-figure","data-align":e==="start"?void 0:e,id:a},children:[{kind:"raw",html:t},{kind:"element",tag:"figcaption",attrs:{class:"figcaption"},children:[U({as:"span",children:n,responsive:r,size:"sm"})]}]}}function ri(e){return h(De(e))}const ai={name:"figure",description:"Use `figure` to present media with a caption.",output:{element:"figure",class:"set-figure"},content:{kind:"slots",slots:[{prop:"children",kind:"html"},{prop:"caption",kind:"html"}]},props:{align:{default:"start",description:"Alignment within available space.",type:{kind:"enum",values:["start","center","end"]}},caption:{description:"Caption shown below the media. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},children:{description:"Media rendered inside the figure.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales the caption across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},_=e=>{if(e!==void 0)return String(e)};function Pe({children:e,gap:n="default",id:t}){const i=k(t);return{kind:"element",tag:"div",attrs:{class:"set-grid","data-gap":n==="default"?void 0:n,id:i},children:[{kind:"element",tag:"div",attrs:{class:"grid"},children:e?[{kind:"raw",html:e}]:[]}]}}function oi(e){return h(Pe(e))}function Be({align:e,children:n,colSpan:t,colSpanNarrow:i,colSpanWide:r,colStart:a,colStartNarrow:o,colStartWide:d,id:p,justify:s,rowSpan:l,rowSpanNarrow:c,rowSpanWide:u,rowStart:b,rowStartNarrow:v,rowStartWide:m}){const f=k(p);return{kind:"element",tag:"div",attrs:{class:"set-grid-item","data-align":e,"data-justify":s,"data-col-span-narrow":_(i),"data-col-start-narrow":_(o),"data-col-span":_(t),"data-col-start":_(a),"data-col-span-wide":_(r),"data-col-start-wide":_(d),"data-row-span-narrow":_(c),"data-row-start-narrow":_(v),"data-row-span":_(l),"data-row-start":_(b),"data-row-span-wide":_(u),"data-row-start-wide":_(m),id:f},children:n?[{kind:"raw",html:n}]:[]}}function di(e){return h(Be(e))}const si={name:"grid",description:"Use `grid` to lay out content in a 12-column responsive grid.",output:{element:"div",class:"set-grid"},content:{kind:"html",prop:"children"},props:{children:{description:"`grid-item` components rendered inside the grid.",type:{kind:"html"}},gap:{default:"default",description:"Space between the `grid-item` components.",type:{kind:"enum",values:["default","expanded","none"]}},id:{description:"DOM id.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-gap",condition:{kind:"when-in",prop:"gap",values:["expanded","none"]},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},T={kind:"number",min:1,max:12,integer:!0},li={name:"grid-item",description:"Use `grid-item` to place content within a `grid` layout.",output:{element:"div",class:"set-grid-item"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the grid item.",type:{kind:"html"}},align:{description:"Block-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},justify:{description:"Inline-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},colSpan:{description:"Columns spanned at the default breakpoint.",type:T},colStart:{description:"Starting column at the default breakpoint.",type:T},id:{description:"DOM id.",type:{kind:"string"}},rowSpan:{description:"Rows spanned at the default breakpoint.",type:T},rowSpanNarrow:{description:"Rows spanned at the narrow breakpoint.",type:T},rowSpanWide:{description:"Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T},rowStart:{description:"Starting row at the default breakpoint.",type:T},rowStartNarrow:{description:"Starting row at the narrow breakpoint.",type:T},rowStartWide:{description:"Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T},colSpanNarrow:{description:"Columns spanned at the narrow breakpoint.",type:T},colStartNarrow:{description:"Starting column at the narrow breakpoint.",type:T},colSpanWide:{description:"Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T},colStartWide:{description:"Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:T}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-provided",prop:"align"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-provided",prop:"justify"},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-col-span",condition:{kind:"when-provided",prop:"colSpan"},value:{kind:"prop",prop:"colSpan"}},{target:{on:"host"},attribute:"data-col-start",condition:{kind:"when-provided",prop:"colStart"},value:{kind:"prop",prop:"colStart"}},{target:{on:"host"},attribute:"data-col-span-narrow",condition:{kind:"when-provided",prop:"colSpanNarrow"},value:{kind:"prop",prop:"colSpanNarrow"}},{target:{on:"host"},attribute:"data-col-start-narrow",condition:{kind:"when-provided",prop:"colStartNarrow"},value:{kind:"prop",prop:"colStartNarrow"}},{target:{on:"host"},attribute:"data-col-span-wide",condition:{kind:"when-provided",prop:"colSpanWide"},value:{kind:"prop",prop:"colSpanWide"}},{target:{on:"host"},attribute:"data-col-start-wide",condition:{kind:"when-provided",prop:"colStartWide"},value:{kind:"prop",prop:"colStartWide"}},{target:{on:"host"},attribute:"data-row-span",condition:{kind:"when-provided",prop:"rowSpan"},value:{kind:"prop",prop:"rowSpan"}},{target:{on:"host"},attribute:"data-row-start",condition:{kind:"when-provided",prop:"rowStart"},value:{kind:"prop",prop:"rowStart"}},{target:{on:"host"},attribute:"data-row-span-narrow",condition:{kind:"when-provided",prop:"rowSpanNarrow"},value:{kind:"prop",prop:"rowSpanNarrow"}},{target:{on:"host"},attribute:"data-row-start-narrow",condition:{kind:"when-provided",prop:"rowStartNarrow"},value:{kind:"prop",prop:"rowStartNarrow"}},{target:{on:"host"},attribute:"data-row-span-wide",condition:{kind:"when-provided",prop:"rowSpanWide"},value:{kind:"prop",prop:"rowSpanWide"}},{target:{on:"host"},attribute:"data-row-start-wide",condition:{kind:"when-provided",prop:"rowStartWide"},value:{kind:"prop",prop:"rowStartWide"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Oe({align:e="start",id:n,level:t,responsive:i,size:r="md",text:a}){const o=k(n);return{kind:"element",tag:t?`h${t}`:"span",attrs:{class:"set-heading","data-align":e==="start"?void 0:e,"data-responsive":i,"data-size":r,id:o},children:[{kind:"text",value:a}]}}function pi(e){return h(Oe(e))}const ci={name:"heading",description:"Use `heading` to render heading text with consistent type.",output:{element:{kind:"switch",prop:"level",cases:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}},class:"set-heading"},content:{kind:"text",prop:"text"},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},id:{description:"DOM id.",type:{kind:"string"}},level:{description:"Semantic heading level. Renders a `<span>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"]}},text:{description:"Heading text.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function He({alt:e="",aspectRatio:n,cover:t,gravity:i="C",height:r,id:a,lazy:o,priority:d,radius:p,shadow:s,sizes:l,sources:c,src:u,srcSet:b,width:v}){const m=k(a),f=u.trim(),C=b?.trim(),S=l?.trim(),g=c?.map((z,x)=>{const N=z.srcSet.trim(),D=z.media?.trim(),G=z.type?.trim(),ne=z.sizes?.trim();if(!N)throw new Error(`sources[${x}].srcSet must be non-empty.`);return{height:z.height,media:D||void 0,sizes:ne||void 0,srcSet:N,type:G||void 0,width:z.width}})||[];if(!f)throw new Error("src must be a non-empty string.");const y={kind:"element",tag:"img",attrs:{alt:e,class:"img",fetchpriority:d?"high":void 0,height:t?void 0:r?String(r):void 0,loading:o&&!d?"lazy":void 0,sizes:g.length>0?void 0:S||void 0,src:f,srcset:C||void 0,width:t?void 0:v?String(v):void 0},children:[]};let w;if(g.length>0){const z=g.map(x=>({kind:"element",tag:"source",attrs:{height:x.height?String(x.height):void 0,media:x.media,sizes:x.sizes,srcset:x.srcSet,type:x.type,width:x.width?String(x.width):void 0},children:[]}));w={kind:"element",tag:"picture",attrs:{},children:[...z,y]}}else w=y;const E=[];return r&&E.push(`--set-image-block-size: ${r/16}rem`),v&&E.push(`--set-image-inline-size: ${v/16}rem`),{kind:"element",tag:"div",attrs:{class:"set-image","data-aspect-ratio":t&&!(r&&v)?n:void 0,"data-gravity":t&&i!=="C"?i:void 0,"data-shadow":!!s,"data-object-fit":t?"cover":void 0,"data-radius":p,id:m,style:E.length>0?E.join("; "):void 0},children:[w]}}function Ve(e){return h(He(e))}const ui={name:"image",description:"Use `image` to render a responsive image with optional cover fit.",output:{element:"div",class:"set-image"},content:{kind:"none"},props:{alt:{default:"",description:"Alternative text. Leave empty for decorative images.",type:{kind:"string"}},gravity:{default:"C",description:"Focal point used when cropping.",ignoredWhen:"`cover` is false",type:{kind:"enum",values:["N","NE","E","SE","S","SW","W","NW","C"]}},radius:{description:"Corner radius treatment. `ratio` scales with the image's shortest side — requires `width`/`height` (or `cover` with `aspectRatio`) to determine this, otherwise falls back to `xs`.",type:{kind:"enum",values:["xs","ratio"]}},aspectRatio:{description:"Aspect ratio applied to the wrapper.",ignoredWhen:"`cover` is false, or both `width` and `height` are set",type:{kind:"enum",values:["1:1","4:5","3:2","16:9","21:9"]}},cover:{default:!1,description:"Renders the image as a cropped fill (`object-fit: cover`). Switches `width`/`height` from intrinsic `<img>` dimensions to wrapper sizing.",type:{kind:"boolean"}},shadow:{default:!1,description:"Applies a drop shadow to the image.",type:{kind:"boolean"}},height:{description:"Height in pixels. When `cover` is false, sets the intrinsic `<img>` height. When `cover` is true, sizes the wrapper — alone it defers to `aspectRatio`, together with `width` it overrides `aspectRatio`.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},lazy:{default:!1,description:"Defers loading until the image is near the viewport.",type:{kind:"boolean"}},priority:{default:!1,description:"Marks the image as high priority for fetch.",type:{kind:"boolean"}},sizes:{description:"`sizes` attribute used with `srcSet`.",type:{kind:"string"}},sources:{description:"Responsive sources rendered inside a `<picture>`.",type:{kind:"array",itemShape:{height:{description:"Intrinsic height in pixels.",type:{kind:"number"}},media:{description:"`media` condition evaluated for the source.",type:{kind:"string"}},sizes:{description:"`sizes` attribute for the source.",type:{kind:"string"}},srcSet:{description:"Candidate sources for this media entry.",required:!0,type:{kind:"string"}},type:{description:"MIME type for the source resources.",type:{kind:"string"}},width:{description:"Intrinsic width in pixels.",type:{kind:"number"}}}}},srcSet:{description:"Candidate sources for the fallback image.",type:{kind:"string"}},src:{description:"Image source URL.",required:!0,type:{kind:"string"}},width:{description:"Width in pixels. When `cover` is false, sets the intrinsic `<img>` width. When `cover` is true, sizes the wrapper — alone it defers to `aspectRatio`, together with `height` it overrides `aspectRatio`.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-object-fit",condition:{kind:"when-truthy",prop:"cover"},value:{kind:"literal",text:"cover"}},{target:{on:"host"},attribute:"data-shadow",condition:{kind:"when-truthy",prop:"shadow"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"descendant",selector:"img"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"img"}},{target:{on:"descendant",selector:"img"},attribute:"alt",condition:{kind:"always"},value:{kind:"prop",prop:"alt"}},{target:{on:"descendant",selector:"img"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"img"},attribute:"srcset",condition:{kind:"when-non-empty",prop:"srcSet"},value:{kind:"prop",prop:"srcSet"}},{target:{on:"descendant",selector:"img"},attribute:"fetchpriority",condition:{kind:"when-truthy",prop:"priority"},value:{kind:"literal",text:"high"}},{target:{on:"descendant",selector:"img"},attribute:"loading",condition:{kind:"all",of:[{kind:"when-truthy",prop:"lazy"},{kind:"not",of:{kind:"when-truthy",prop:"priority"}}]},value:{kind:"literal",text:"lazy"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Re({align:e="center",as:n="div",children:t,gap:i="md",id:r,justify:a="start",nowrap:o}){const d=k(r);return{kind:"element",tag:n,attrs:{class:"set-inline","data-align":e==="center"?void 0:e,"data-gap":i,"data-justify":a==="start"?void 0:a,"data-nowrap":o,id:d},children:t?[{kind:"raw",html:t}]:[]}}function hi(e){return h(Re(e))}const ki={name:"inline",description:"Use `inline` to lay out content in a horizontal row.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-inline"},content:{kind:"html",prop:"children"},props:{as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},align:{default:"center",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["start","center","end"]}},children:{description:"Items laid out in a row.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["2xs","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},justify:{default:"start",description:"Distributes items along the main axis.",type:{kind:"enum",values:["start","center","end","between"]}},nowrap:{description:"Prevents items from wrapping onto new lines.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-in",prop:"justify",values:["center","end","between"]},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-nowrap",condition:{kind:"when-truthy",prop:"nowrap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function We({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,pattern:d,readOnly:p,required:s,size:l="md",spellcheck:c,type:u="text",value:b,inlineSize:v="full"}){const m=i.trim(),f=n?.trim(),C=e===!1?!1:e?.trim(),S=o?.trim(),g=d?.trim(),y=b;if(!m)throw new Error("id must be a non-empty string.");if(!M(m))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const w=f?`${m}-description`:void 0,E=u==="numeric",z=E?"text":u,x=g||(E?"^[0-9]*$":void 0),N=c===void 0&&E?!1:c,D=!!t,G=!D&&!!p,re=[{kind:"element",tag:"label",attrs:{class:"label",for:m},children:[{kind:"text",value:a}]},{kind:"element",tag:"input",attrs:{"aria-describedby":w,"aria-invalid":!D&&!G&&!!r?"true":void 0,autocomplete:C===!1?"off":C||void 0,class:"input",disabled:D,id:m,inputmode:E?"numeric":void 0,name:S||void 0,pattern:x,readonly:G,required:!!s,spellcheck:N===void 0?void 0:String(N),type:z,value:y},children:[]}];return f&&re.push({kind:"element",tag:"p",attrs:{class:"description",id:w},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-input","data-size":l,"data-inline-size":v==="fit"?"fit":void 0},children:re}}function mi(e){return h(We(e))}const gi={name:"input",description:"Use `input` to collect a single line of text from users.",output:{element:"div",class:"set-input"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Autocomplete hint. Pass `false` to disable autocomplete.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the input; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"`id` linking the label to the input.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the input as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label shown above the input.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},pattern:{description:"Regex pattern the value must match.",type:{kind:"string"}},readOnly:{default:!1,description:"Makes the input read-only.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Marks the input as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Enables browser spellchecking.",type:{kind:"boolean"}},type:{default:"text",description:"Input type.",type:{kind:"enum",values:["text","email","password","tel","url","numeric"]}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the field fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"input"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"inputmode",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"numeric"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"text"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-not-in",prop:"type",values:["numeric"]},value:{kind:"prop",prop:"type"}}]}};function Ue({id:e,label:n,size:t="md",tone:i="default",variant:r="primary"}){const a=k(e);return{kind:"element",tag:"div",attrs:{class:"set-logo","data-size":t,"data-tone":i==="neutral"?"neutral":void 0,"data-variant":r==="primary"?void 0:r,id:a},children:[{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}]}}function bi(e){return h(Ue(e))}const vi={name:"logo",description:"Use `logo` to display the brand mark.",output:{element:"div",class:"set-logo"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg","xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},variant:{default:"primary",description:"Logo variant.",type:{kind:"enum",values:["primary","secondary","typographic","graphic"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-variant",condition:{kind:"when-in",prop:"variant",values:["secondary","typographic","graphic"]},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ge({banner:e,centerMain:n,children:t,footer:i,header:r,headerBorder:a,headerSize:o="md",id:d,stickyHeader:p}){const s=k(d),l=[];return e&&l.push({kind:"raw",html:e}),l.push({kind:"element",tag:"header",attrs:{class:"header"},children:[{kind:"raw",html:r}]}),l.push({kind:"element",tag:"main",attrs:{class:"main"},children:t?[{kind:"raw",html:t}]:[]}),l.push({kind:"element",tag:"footer",attrs:{class:"footer"},children:[{kind:"raw",html:i}]}),{kind:"element",tag:"div",attrs:{class:"set-page","data-center-main":n,"data-header-border":a,"data-header-size":o,"data-sticky-header":p,id:s},children:l}}function fi(e){return h(Ge(e))}const yi={name:"page",description:"Use `page` as the primary layout for header, main, and footer regions.",output:{element:"div",class:"set-page"},content:{kind:"slots",slots:[{prop:"banner",kind:"html"},{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{banner:{description:"Banner rendered above the header.",type:{kind:"html"}},children:{description:"Main content of the page.",type:{kind:"html"}},centerMain:{default:!1,description:"Centers the main region within the page shell.",type:{kind:"boolean"}},header:{description:"Header content.",required:!0,type:{kind:"html"}},headerBorder:{description:"Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",type:{kind:"enum",values:["always","scroll"]}},headerSize:{default:"md",description:"Reserves a minimum block size on the header. `--set-page-header-block-size` is exposed to descendants so persistent panels can open below the header band.",type:{kind:"enum",values:["sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},stickyHeader:{description:"When the header stays stuck to the top of the viewport.",type:{kind:"enum",values:["always","belowNotebook"]}},footer:{description:"Footer content.",required:!0,type:{kind:"html"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-center-main",condition:{kind:"when-truthy",prop:"centerMain"}},{target:{on:"host"},attribute:"data-header-border",condition:{kind:"when-provided",prop:"headerBorder"},value:{kind:"prop",prop:"headerBorder"}},{target:{on:"host"},attribute:"data-header-size",condition:{kind:"always"},value:{kind:"prop",prop:"headerSize"}},{target:{on:"host"},attribute:"data-sticky-header",condition:{kind:"when-provided",prop:"stickyHeader"},value:{kind:"prop",prop:"stickyHeader"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $e({children:e,id:n,padding:t="md",surface:i}){const r=k(n);return{kind:"element",tag:"div",attrs:{class:"set-panel","data-padding":t,"data-set-surface":i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function wi(e){return h($e(e))}const Si={name:"panel",description:"Use `panel` to group related content in a contained region.",output:{element:"div",class:"set-panel"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the panel.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},padding:{default:"md",description:"Inner spacing scale.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-padding",condition:{kind:"always"},value:{kind:"prop",prop:"padding"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Fe({children:e,id:n,size:t="md",tone:i="default",variant:r="tile"}={}){const a=k(n);return{kind:"element",tag:"div",attrs:{class:"set-pattern","data-size":t,"data-tone":i==="default"?void 0:i,"data-variant":r,id:a},children:e?[{kind:"raw",html:e}]:[]}}function Ei(e={}){return h(Fe(e))}const xi={name:"pattern",description:"Use `pattern` to render repeated visual language components behind content.",output:{element:"div",class:"set-pattern"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered above the pattern.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","support"]}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","fill"]}},variant:{default:"tile",description:"Shape used for the pattern tile.",type:{kind:"enum",values:["tile","tileLight","tileDark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-variant",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","support"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ci(e){return Ve({...e,alt:"",cover:!0,priority:!0})}function Ze({children:e,contentTheme:n,id:t,media:i,surface:r}){const a=k(t),o=n?r??"default":r,d=[{kind:"element",tag:"div",attrs:{class:"image-wrapper"},children:[{kind:"raw",html:i}]}];return e&&d.push({kind:"element",tag:"div",attrs:{class:"content"},children:[{kind:"raw",html:e}]}),{kind:"element",tag:"div",attrs:{class:"set-poster","data-set-content-theme":n,"data-set-surface":o,id:a},children:d}}function zi(e){return h(Ze(e))}const _i={name:"poster",description:"Use `poster` to layer content over background media.",output:{element:"div",class:"set-poster"},content:{kind:"slots",slots:[{prop:"media",kind:"html"},{prop:"children",kind:"html"}]},props:{children:{description:"Foreground content rendered over the media.",type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for foreground content over non-themeable media.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},media:{description:"Background media markup. Build with `renderSetPosterImage`.",required:!0,type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"all",of:[{kind:"when-provided",prop:"contentTheme"},{kind:"not",of:{kind:"when-provided",prop:"surface"}}]},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function je({align:e="start",children:n,hangingPunctuation:t,id:i,measured:r=!0,responsive:a}){const o=k(i);return{kind:"element",tag:"div",attrs:{class:"set-prose","data-align":e!=="start"?e:void 0,"data-hanging-punctuation":t,"data-measured":r,"data-responsive":a,id:o},children:[{kind:"raw",html:n}]}}function Ti(e){return h(je(e))}const Mi={name:"prose",description:"Use `prose` to style rich-text markup.",output:{element:"div",class:"set-prose"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the prose wrapper.",required:!0,type:{kind:"html"}},align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},hangingPunctuation:{description:"Position list markers and leading quote marks in the margin, with text aligned.",type:{kind:"enum",values:["always","notebook"]}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales body text across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-hanging-punctuation",condition:{kind:"when-provided",prop:"hangingPunctuation"},value:{kind:"prop",prop:"hangingPunctuation"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"when-truthy",prop:"measured"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ke({description:e,disabled:n,id:t,invalid:i,radios:r,legend:a,name:o,orientation:d="vertical",required:p,size:s="md",value:l}){const c=t.trim(),u=o.trim(),b=l?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!u)throw new Error("name must be a non-empty string.");if(r.length<2)throw new Error("radios must include at least 2 options.");const v=r.map((g,y)=>{const w=g.value.trim(),E=g.label.trim(),z=g.description?.trim();if(!w)throw new Error(`radios[${y}].value must be non-empty.`);if(!E)throw new Error(`radios[${y}].label must be non-empty.`);return{description:z,disabled:!!g.disabled,label:E,value:w}});if(new Set(v.map(g=>g.value)).size!==v.length)throw new Error("radios values must be unique.");const f=!!n,C=v.map(g=>{const y=!!g.disabled,w=g.description?`${c}-${g.value}-description`:void 0,E=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":w,checked:b===g.value,class:"radio",disabled:y,name:u,required:!!p&&!f&&!y,type:"radio",value:g.value},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:g.label}]}]}];return g.description&&E.push({kind:"element",tag:"p",attrs:{class:"radio-description",id:w},children:[{kind:"text",value:g.description}]}),{kind:"element",tag:"div",attrs:{class:"radio-field"},children:E}});return ie({children:h({kind:"element",tag:"div",attrs:{class:"set-radios","data-orientation":d,"data-size":s},children:C}),description:e,disabled:f,id:c,invalid:i,legend:a})}function Li(e){return h(Ke(e))}const Ii={name:"radios",description:"Use `radios` to let users select one option from a short list.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"structured",prop:"radios"},props:{description:{description:"Helper text shown below the legend.",type:{kind:"string"}},disabled:{default:!1,description:"Disables every option in the group.",type:{kind:"boolean"}},id:{description:"Unique id used to associate the group with its descriptions.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},radios:{description:"Options shown in the group.",required:!0,type:{kind:"array",itemShape:{description:{description:"Optional per-item helper text.",type:{kind:"string"}},disabled:{default:!1,description:"Optional per-item disabled override.",type:{kind:"boolean"}},label:{description:"Radio option label.",required:!0,type:{kind:"text"}},value:{description:"Submitted value and selection key.",required:!0,type:{kind:"string"}}}}},legend:{description:"Group label.",required:!0,type:{kind:"text"}},name:{description:"Form field name shared by all options.",required:!0,type:{kind:"string"}},orientation:{default:"vertical",description:"Layout direction.",type:{kind:"enum",values:["vertical","horizontal"]}},required:{default:!1,description:"Requires a selection before submission.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Currently selected value.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-orientation",condition:{kind:"always"},value:{kind:"prop",prop:"orientation"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"always"},value:{kind:"prop",prop:"name"}}]}};function Xe({appOverscrollBehavior:e,appRoot:n,brand:t="mnsp",children:i,dir:r,id:a,lang:o,theme:d}){const p=k(a);return{kind:"element",tag:"div",attrs:{class:"set","data-app-root":n,"data-app-overscroll-behavior":e==="none"?"none":void 0,"data-set-brand":t,"data-set-theme":d,id:p,lang:o===""?void 0:o,dir:r},children:i?[{kind:"raw",html:i}]:[]}}function Ai(e){return h(Xe(e))}const qi={name:"root",description:"Mandatory top-level `root` wrapper for the Set system.",output:{element:"div",class:"set"},content:{kind:"html",prop:"children"},props:{appOverscrollBehavior:{description:"Disables overscroll bounce for app-shell integrations.",type:{kind:"enum",values:["none"]}},appRoot:{default:!1,description:"Marks this wrapper as the app root.",type:{kind:"boolean"}},brand:{default:"mnsp",description:"Brand identity applied to the wrapper.",type:{kind:"enum",values:["mnsp","wrfr"]}},children:{description:"Content rendered inside the root.",required:!0,type:{kind:"html"}},dir:{description:"Text direction.",type:{kind:"enum",values:["ltr","rtl"]}},id:{description:"DOM id.",type:{kind:"string"}},lang:{description:"BCP47 language tag (e.g. `en-GB`).",type:{kind:"string"}},theme:{description:"Colour theme.",type:{kind:"enum",values:["light","dark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-app-overscroll-behavior",condition:{kind:"when-equals",prop:"appOverscrollBehavior",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"data-app-root",condition:{kind:"when-truthy",prop:"appRoot"}},{target:{on:"host"},attribute:"data-set-brand",condition:{kind:"always"},value:{kind:"prop",prop:"brand"}},{target:{on:"host"},attribute:"data-set-theme",condition:{kind:"when-provided",prop:"theme"},value:{kind:"prop",prop:"theme"}},{target:{on:"host"},attribute:"dir",condition:{kind:"when-provided",prop:"dir"},value:{kind:"prop",prop:"dir"}},{target:{on:"host"},attribute:"lang",condition:{kind:"when-non-empty",prop:"lang"},value:{kind:"prop",prop:"lang"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Qe({id:e,label:n,size:t="md",tone:i="default"}={}){const r=k(e),o=[{kind:"element",tag:"svg",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 1200",fill:"currentColor"},children:[[60,60],[60,360],[60,660],[60,960],[360,960],[360,660],[360,360],[360,60]].map(([d,p])=>({kind:"element",tag:"rect",attrs:{class:"cell",x:String(d),y:String(p),width:"180",height:"180"},children:[]}))}];return n&&o.push({kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}),{kind:"element",tag:"span",attrs:{class:"set-spinner","data-size":t,"data-tone":i==="brand"?"brand":void 0,id:r,role:n?"status":void 0},children:o}}function Ni(e={}){return h(Qe(e))}const Di={name:"spinner",description:"Use `spinner` to indicate loading or in-progress state.",output:{element:"span",class:"set-spinner"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible status label announced to assistive tech.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","xl","2xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"brand"},value:{kind:"literal",text:"brand"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ye({align:e="stretch",as:n="div",children:t,gap:i="md",id:r,responsive:a}){const o=k(r);return{kind:"element",tag:n,attrs:{class:"set-stack","data-align":e==="stretch"?void 0:e,"data-gap":i,"data-responsive":a,id:o},children:t?[{kind:"raw",html:t}]:[]}}function Pi(e){return h(Ye(e))}const Bi={name:"stack",description:"Use `stack` to lay out content in a vertical column.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-stack"},content:{kind:"html",prop:"children"},props:{align:{default:"stretch",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["stretch","start","center","end"]}},as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},children:{description:"Items laid out in a column.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["none","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales spacing across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Je({children:e,contentTheme:n,id:t,variant:i="default"}){const r=k(t);return{kind:"element",tag:"div",attrs:{class:"set-surface","data-set-content-theme":n,"data-set-surface":i,id:r},children:[{kind:"raw",html:e}]}}function Oi(e){return h(Je(e))}const Hi={name:"surface",description:"Use `surface` to set a colour context for nested content.",output:{element:"div",class:"set-surface"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the surface.",required:!0,type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for content rendered inside the surface.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},variant:{default:"default",description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function et({checked:e,description:n,disabled:t,id:i,label:r,name:a,size:o="md",value:d}){const p=k(i),s=n?.trim();if(s&&!p)throw new Error("id must be provided when description is provided.");const l=s?`${p}-description`:void 0,c=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":l,checked:!!e,class:"switch",disabled:!!t,id:p,name:a||void 0,role:"switch",type:"checkbox",value:d||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:r}]}]}];return s&&c.push({kind:"element",tag:"p",attrs:{class:"description",id:l},children:[{kind:"text",value:s}]}),{kind:"element",tag:"div",attrs:{class:"set-switch","data-size":o},children:c}}function Vi(e){return h(et(e))}const Ri={name:"switch",description:"Use `switch` to let users instantly toggle a setting on or off.",output:{element:"div",class:"set-switch"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the switch is on.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the switch.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Submitted value when checked.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function tt({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,readOnly:d,required:p,resize:s="vertical",rows:l=2,size:c="md",spellcheck:u,value:b,inlineSize:v="full"}){const m=i.trim(),f=n?.trim(),C=e===!1?!1:e?.trim(),S=o?.trim(),g=b;if(!m)throw new Error("id must be a non-empty string.");if(!M(m))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Number.isInteger(l)||l<2)throw new Error("rows must be an integer greater than or equal to 2.");const y=f?`${m}-description`:void 0,w=!!t,E=!w&&!!d,x=[{kind:"element",tag:"label",attrs:{class:"label",for:m},children:[{kind:"text",value:a}]},{kind:"element",tag:"textarea",attrs:{"aria-describedby":y,"aria-invalid":!w&&!E&&!!r?"true":void 0,autocomplete:C===!1?"off":C||void 0,class:"textarea",disabled:w,id:m,name:S||void 0,readonly:E,required:!!p,rows:String(l),spellcheck:u===void 0?void 0:String(u)},children:[{kind:"text",value:g||""}]}];return f&&x.push({kind:"element",tag:"p",attrs:{class:"description",id:y},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-textarea","data-resize":s==="none"?"none":void 0,"data-size":c,"data-inline-size":v==="fit"?"fit":void 0},children:x}}function Wi(e){return h(tt(e))}const Ui={name:"textarea",description:"Use `textarea` to collect multiple lines of text from users.",output:{element:"div",class:"set-textarea"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"value",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Browser autocomplete hint. Pass `false` to disable.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the textarea; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the textarea.",type:{kind:"boolean"}},id:{description:"`id` used to associate the textarea with its label.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the textarea as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},readOnly:{default:!1,description:"Prevents editing while keeping the value visible.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Requires a value before submission.",type:{kind:"boolean"}},resize:{default:"vertical",description:"How the user can resize the textarea.",type:{kind:"enum",values:["vertical","none"]}},rows:{default:2,description:"Number of visible rows.",type:{kind:"number",min:2,max:10,integer:!0}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Whether the browser checks spelling.",type:{kind:"boolean"}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"How the textarea fills its container.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-resize",condition:{kind:"when-equals",prop:"resize",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"textarea"}},{target:{on:"descendant",selector:"textarea"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"rows",condition:{kind:"always"},value:{kind:"prop",prop:"rows"}},{target:{on:"descendant",selector:"textarea"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"textarea"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"textarea"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"textarea"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"textarea"},attribute:"spellcheck",condition:{kind:"when-provided",prop:"spellcheck"},value:{kind:"prop",prop:"spellcheck"}}]}};function Gi(){ue(),ke(),ge(),ye(),Se(),xe()}exports.SET_ALERT_EVENT_BEFORE_DISMISS=X;exports.SET_ALERT_EVENT_DISMISS=Q;exports.SET_ALERT_SPEC=ct;exports.SET_ALERT_TAG_NAME=P;exports.SET_AVATAR_SPEC=Bt;exports.SET_BADGE_SPEC=Ht;exports.SET_BANNER_EVENT_BEFORE_DISMISS=J;exports.SET_BANNER_EVENT_DISMISS=ee;exports.SET_BANNER_SPEC=bt;exports.SET_BANNER_TAG_NAME=O;exports.SET_BLOCKQUOTE_SPEC=Ut;exports.SET_BOX_SPEC=$t;exports.SET_BUTTON_SPEC=ot;exports.SET_CARD_SPEC=Zt;exports.SET_CHECKBOX_SPEC=Kt;exports.SET_CONTAINER_SPEC=Qt;exports.SET_DETAILS_SPEC=Jt;exports.SET_DIVIDER_SPEC=ti;exports.SET_EXPANDER_SPEC=yt;exports.SET_FIELDSET_SPEC=ni;exports.SET_FIGURE_SPEC=ai;exports.SET_GRID_ITEM_SPEC=li;exports.SET_GRID_SPEC=si;exports.SET_HEADING_SPEC=ci;exports.SET_ICON_NAMES=rt;exports.SET_ICON_SPEC=at;exports.SET_IMAGE_SPEC=ui;exports.SET_INLINE_SPEC=ki;exports.SET_INPUT_SPEC=gi;exports.SET_LINK_SPEC=kt;exports.SET_LOGO_SPEC=vi;exports.SET_MENU_EVENT_CHOOSE=te;exports.SET_MENU_SPEC=ft;exports.SET_MENU_TAG_NAME=H;exports.SET_NAV_SPEC=St;exports.SET_NAV_TAG_NAME=V;exports.SET_PAGE_SPEC=yi;exports.SET_PANEL_SPEC=Si;exports.SET_PATTERN_SPEC=xi;exports.SET_POSTER_SPEC=_i;exports.SET_PROSE_SPEC=Mi;exports.SET_RADIOS_SPEC=Ii;exports.SET_RANGE_SPEC=xt;exports.SET_RANGE_TAG_NAME=R;exports.SET_ROOT_SPEC=qi;exports.SET_SIDEBAR_SPEC=Tt;exports.SET_SIDEBAR_TAG_NAME=W;exports.SET_SPINNER_SPEC=Di;exports.SET_STACK_SPEC=Bi;exports.SET_SURFACE_SPEC=Hi;exports.SET_SWITCH_SPEC=Ri;exports.SET_TEXTAREA_SPEC=Ui;exports.SET_TEXT_SPEC=Rt;exports.buildSetAlert=ce;exports.buildSetAvatar=ze;exports.buildSetBadge=_e;exports.buildSetBanner=he;exports.buildSetBlockquote=Te;exports.buildSetBox=Me;exports.buildSetButton=F;exports.buildSetCard=Le;exports.buildSetCheckbox=Ie;exports.buildSetContainer=Ae;exports.buildSetDetails=qe;exports.buildSetDivider=Ne;exports.buildSetExpander=be;exports.buildSetFieldset=ie;exports.buildSetFigure=De;exports.buildSetGrid=Pe;exports.buildSetGridItem=Be;exports.buildSetHeading=Oe;exports.buildSetIcon=q;exports.buildSetImage=He;exports.buildSetInline=Re;exports.buildSetInput=We;exports.buildSetLink=Y;exports.buildSetLogo=Ue;exports.buildSetMenu=me;exports.buildSetNav=fe;exports.buildSetPage=Ge;exports.buildSetPanel=$e;exports.buildSetPattern=Fe;exports.buildSetPoster=Ze;exports.buildSetProse=je;exports.buildSetRadios=Ke;exports.buildSetRange=we;exports.buildSetRoot=Xe;exports.buildSetSidebar=Ee;exports.buildSetSpinner=Qe;exports.buildSetStack=Ye;exports.buildSetSurface=Je;exports.buildSetSwitch=et;exports.buildSetText=U;exports.buildSetTextarea=tt;exports.defineSetAlert=ue;exports.defineSetBanner=ke;exports.defineSetComponents=Gi;exports.defineSetMenu=ge;exports.defineSetNav=ye;exports.defineSetRange=Se;exports.defineSetSidebar=xe;exports.getSetInitials=Ce;exports.renderSetAlert=pt;exports.renderSetAvatar=Pt;exports.renderSetBadge=Ot;exports.renderSetBanner=gt;exports.renderSetBlockquote=Wt;exports.renderSetBox=Gt;exports.renderSetButton=Z;exports.renderSetCard=Ft;exports.renderSetCheckbox=jt;exports.renderSetContainer=Xt;exports.renderSetDetails=Yt;exports.renderSetDivider=ei;exports.renderSetExpander=ve;exports.renderSetFieldset=ii;exports.renderSetFigure=ri;exports.renderSetGrid=oi;exports.renderSetGridItem=di;exports.renderSetHeading=pi;exports.renderSetIcon=pe;exports.renderSetImage=Ve;exports.renderSetInline=hi;exports.renderSetInput=mi;exports.renderSetLink=ht;exports.renderSetLogo=bi;exports.renderSetMenu=vt;exports.renderSetNav=wt;exports.renderSetPage=fi;exports.renderSetPanel=wi;exports.renderSetPattern=Ei;exports.renderSetPoster=zi;exports.renderSetPosterImage=Ci;exports.renderSetProse=Ti;exports.renderSetRadios=Li;exports.renderSetRange=Et;exports.renderSetRoot=Ai;exports.renderSetSidebar=_t;exports.renderSetSpinner=Ni;exports.renderSetStack=Pi;exports.renderSetSurface=Oi;exports.renderSetSwitch=Vi;exports.renderSetText=Vt;exports.renderSetTextarea=Wi;exports.serializeSetNode=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|