1import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{al as t,l as n}from"./UnifyTheme-EYT_jcHV.js";var r=e(t(),1),i=()=>void 0,a=e=>{e.stopPropagation()};function o(e,t){let n=0;for(let t=0;t<e.length;t++)n+=e.charCodeAt(t);return n%t}function s(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return t?`rgba(`+n+`, `+r+`, `+i+`, `+t+`)`:`rgb(`+n+`, `+r+`, `+i+`)`}function c(e,t){return parseInt(e.slice(t,t+2),16)}function l({alpha:e,backgroundChannel:t,foregroundChannel:n}){return Math.round(n*e+t*(1-e))}function u({alpha:e,backgroundHex:t,foregroundHex:n}){let r=Math.min(1,Math.max(0,e)),i=c(n,1),a=c(n,3),o=c(n,5),s=c(t,1),u=c(t,3),d=c(t,5);return`rgb(${l({alpha:r,backgroundChannel:s,foregroundChannel:i})}, ${l({alpha:r,backgroundChannel:u,foregroundChannel:a})}, ${l({alpha:r,backgroundChannel:d,foregroundChannel:o})})`}function d(e){if(!e)return!1;let t=e.closest(`input, textarea, select, [contenteditable], [role="input"], [role="select"], [role="textarea"]`);if(t===null)return!1;let n=t.tagName;return n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.role===`input`||t.role===`select`||t.role===`textarea`||t instanceof HTMLElement&&t.isContentEditable}function f(...e){return t=>{for(let n of e)n&&(typeof n==`function`?n(t):n.current=t)}}async function p(e){if(window.navigator!==void 0){try{await window.navigator.clipboard.writeText(e)}catch{return!1}return!0}return!1}function m(e){if(e!==void 0)return typeof e==`number`?`${e}px`:e}var h=(e,t=6)=>{switch(e){case`none`:return`border-radius: 0px;`;case`top`:return`border-top-left-radius: ${t}px; border-top-right-radius: ${t}px;`;case`bottom`:return`border-bottom-left-radius: ${t}px; border-bottom-right-radius: ${t}px;`;case`all`:return`border-radius: ${t}px;`}},g=({theme:{color:e,theme:t}})=>r.css` 2 ${t===n.LIGHT&&r.css` 3 box-shadow: 4 0px 2px 12px 0px ${e.opacity.black8}, 5 0px 0.5px 2px 0px ${e.opacity.black12}; 6 `} 7`,_=({theme:{color:e,theme:t}})=>r.css` 8 ${t===n.DARK&&r.css` 9 border: 1px solid ${e.border.focused}; 10 `} 11`,v=()=>r.css` 12 box-shadow: 13 0 1px 1px 0 rgba(0, 0, 0, 0.1), 14 0 1px 10px 0 rgba(0, 0, 0, 0.16); 15`,y=({color:e,disabled:t=!1,underlineOnHover:n=!1})=>r.css` 16 text-decoration-line: ${t||n?`none`:`underline`}; 17 text-decoration-color: ${s(e,.5)}; 18 text-decoration-thickness: 1.2px; 19 text-underline-offset: 1.5px; 20 transition: text-decoration-color 0.1s; 21`,b=({color:e,disabled:t=!1,underlineOnHover:n=!1})=>r.css` 22 text-decoration-color: ${e}; 23 24 ${n&&!t&&r.css` 25 text-decoration-line: underline; 26 `} 27`,x=e=>r.css` 28 background-image: 29 radial-gradient(circle, ${e} 0 0.75px, transparent 0.85px), 30 radial-gradient(circle, ${e} 0 0.75px, transparent 0.85px); 31 background-position: 32 0 0, 33 2.25px 2.1px; 34 background-size: 35 4.5px 4.2px, 36 4.5px 4.2px; 37`,S=({centerOpacity:e=1,position:t,visibleStopPercent:n,strongFadeOpacity:i=.55,strongFadeStopPercent:a,weakFadeOpacity:o=.16,weakFadeStopPercent:s,transparentStopPercent:c})=>r.css` 38 mask-image: radial-gradient( 39 ellipse at ${t}, 40 rgb(0 0 0 / ${e}) 0%, 41 rgb(0 0 0 / ${e}) ${n}%, 42 rgb(0 0 0 / ${i}) ${a}%, 43 rgb(0 0 0 / ${o}) ${s}%, transparent 44 ${c}% 45 ); 46 -webkit-mask-image: radial-gradient( 47 ellipse at ${t}, 48 rgb(0 0 0 / ${e}) 0%, 49 rgb(0 0 0 / ${e}) ${n}%, 50 rgb(0 0 0 / ${i}) ${a}%, 51 rgb(0 0 0 / ${o}) ${s}%, transparent 52 ${c}% 53 ); 54`,C=e=>parseFloat(e)*16;function w({width:e,height:t,aspectRatio:n}){return n?e===`auto`&&typeof t==`number`?{width:n*t,height:t}:t===`auto`&&typeof e==`number`?{width:e,height:e/n}:{width:e,height:t}:{width:e,height:t}}export{d as _,x as a,C as c,v as d,i as f,s as g,o as h,w as i,_ as l,p as m,b as n,S as o,u as p,y as r,m as s,h as t,g as u,f as v,a as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.