PageSourceSearch

https://kive.ai/assets/Typography-20VnSMvi.js

js kive.ai collected 2026-10-03 19:12:53 UTC 11,615 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`d14dd0ecabaf06b6b29da9ce3952bbce83f9c05e`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c9e978ac-26c4-4936-823a-d8cecdef519d`,e._sentryDebugIdIdentifier=`sentry-dbid-c9e978ac-26c4-4936-823a-d8cecdef519d`)}catch{}})();import{o as e,t}from"./rolldown-runtime-CUKoeUvJ.js";import{t as n}from"./jsx-runtime-CGv8UONf.js";import{t as r}from"./react-B3-1waV3.js";import{n as i,t as a}from"./emotion-css.esm-Bnj4KqH6.js";import{t as o}from"./tokens-fCejWsI3.js";import{n as s,t as c}from"./memoize-one.esm-yYsxdRdn.js";import{t as l}from"./ResizeObserver.es-0G97uTTV.js";var u=t(((e,t)=>{t.exports=function(e,t,n){return n=window.getComputedStyle,(n?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}})),d=t(((e,t)=>{var n=u();function r(e){var t=n(e,`line-height`),r=parseFloat(t,10);if(t===r+``){var i=e.style.lineHeight;e.style.lineHeight=t+`em`,t=n(e,`line-height`),r=parseFloat(t,10),i?e.style.lineHeight=i:delete e.style.lineHeight}if(t.indexOf(`pt`)===-1?t.indexOf(`mm`)===-1?t.indexOf(`cm`)===-1?t.indexOf(`in`)===-1?t.indexOf(`pc`)!==-1&&(r*=16):r*=96:(r*=96,r/=2.54):(r*=96,r/=25.4):(r*=4,r/=3),r=Math.round(r),t===`normal`){var a=e.nodeName,o=document.createElement(a);o.innerHTML=`&nbsp;`,a.toUpperCase()===`TEXTAREA`&&o.setAttribute(`rows`,`1`);var s=n(e,`font-size`);o.style.fontSize=s,o.style.padding=`0px`,o.style.border=`0px`;var c=document.body;c.appendChild(o),r=o.offsetHeight,c.removeChild(o)}return r}t.exports=r})),f=n(),p=e(r());c();var m=e(d()),h={characters:{tokenizeString:null,isAtomic:function(e){return e.length<=1}},words:{tokenizeString:function(e){return e.match(/(\s*\S[\S\xA0]*)/g)},isAtomic:function(e){return/^\s*[\S\xA0]*\s*$/.test(e)}}},g=function(e){return e.children||null};g.__rtm_atom=!0;var _=function(e){return!!(e&&e.type&&e.type.__rtm_atom===!0)},v=`<Atom>`,y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b,x,S=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function w(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function T(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function E(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var D={LEFT:!0,RIGHT:!1},O=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;if(!t)return n;if(typeof t==`string`)return n+t;if(_(t))return n+v;var r=Array.isArray(t)?t:t.props.children||``;return n+p.Children.map(r,function(t){return e(t)}).join(``)},k=function(e,t,n,r){return C({},e,{props:C({},e.props,{style:C({},e.props.style,function(){return n?{display:(e.props.style||{}).display||`block`}:r===2?{display:(e.props.style||{}).display||`inline-block`}:{}}()),children:t})})},A=function e(t){return t==null||[`string`,`number`].includes(t===void 0?`undefined`:S(t))||_(t)?!0:typeof t.type==`function`?!1:t.props&&t.props.children?p.Children.toArray(t.props.children).reduce(function(t,n){return t&&e(n)},!0):!0},j=(x=b=function(e){E(t,e);function t(n){w(this,t);var r=T(this,e.call(this,n));return r.lineHeight=null,r.splitDirectionSeq=[],r.shouldTruncate=!0,r.wasLastCharTested=!1,r.endFound=!1,r.latestThatFits=null,r.onTruncateCalled=!1,r.toStringMemo=s(O),r.childrenWithRefMemo=s(r.childrenElementWithRef),r.validateTreeMemo=s(A),r.onTruncate=function(e){r.onTruncateCalled||(r.onTruncateCalled=!0,r.props.onTruncate(e))},r.handleResize=function(e,t){if(t&&t.disconnect(),!e)return null;var n=!0,i=t||new l(function(){n?n=!1:(r.shouldTruncate=!1,r.latestThatFits=null,r.setState({text:r.origText},function(){r.shouldTruncate=!0,r.onTruncateCalled=!1,r.truncate()}))});return i.observe(e),i},r.setRef=function(e){var t=r.el!==e;r.el=e,t&&(r.resizeObserver=r.handleResize(e,r.resizeObserver))},r.state={text:r.childrenWithRefMemo(r.props.children)},r}
1return t.prototype.componentDidMount=function(){this.isValid&&(this.lineHeight=this.props.lineHeight||(0,m.default)(this.el),this.truncate())},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;this.shouldTruncate=!1,this.latestThatFits=null,this.setState({text:this.childrenWithRefMemo(e.children)},function(){t.isValid&&(t.lineHeight=e.lineHeight||(0,m.default)(t.el),t.shouldTruncate=!0,t.truncate())})},t.prototype.componentDidUpdate=function(){if(this.shouldTruncate!==!1&&this.isValid!==!1){if(this.endFound){if(this.latestThatFits!==null&&this.state.text!==this.latestThatFits){this.setState({text:this.latestThatFits});return}this.onTruncate(!0);return}this.splitDirectionSeq.length&&(this.fits()?(this.latestThatFits=this.state.text,this.splitDirectionSeq.splice(this.splitDirectionSeq.length-1,1,D.RIGHT,D.LEFT)):this.splitDirectionSeq.push(D.LEFT),this.tryToFit(this.origText,this.splitDirectionSeq))}},t.prototype.componentWillUnmount=function(){this.lineHeight=null,this.latestThatFits=null,this.splitDirectionSeq=[]},t.prototype.truncate=function(){if(this.fits()){this.shouldTruncate=!1,this.onTruncate(!1);return}this.truncateOriginalText()},t.prototype.childrenElementWithRef=function(e){var t=p.Children.only(e);return p.cloneElement(t,{ref:this.setRef,style:C({wordWrap:`break-word`},t.props.style)})},t.prototype.truncateOriginalText=function(){this.endFound=!1,this.splitDirectionSeq=[D.LEFT],this.wasLastCharTested=!1,this.tryToFit(this.origText,this.splitDirectionSeq)},t.prototype.tryToFit=function(e,t){if(e.props.children){var n=this.split(e,t,!0),r=typeof this.props.ellipsis==`function`?this.props.ellipsis(n):this.props.ellipsis;r=(r===void 0?`undefined`:S(r))===`object`?p.cloneElement(r,{key:`ellipsis`}):r;var i=n.props.children,a=[].concat(i,r),o=O(i)!==this.toStringMemo(this.props.children);this.setState({text:C({},n,{props:C({},n.props,{children:o?a:i})})})}},t.prototype.split=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;return!e||_(e)?(this.endFound=!0,e):typeof e==`string`?this.splitString(e,t,r):Array.isArray(e)?this.splitArray(e,t,r):k(e,this.split(e.props.children,t,!1,r+1),n,r)},t.prototype.splitString=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments[2];if(!t.length)return e;if(t.length&&this.policy.isAtomic(e))return this.wasLastCharTested?this.endFound=!0:this.wasLastCharTested=!0,e;if(this.policy.tokenizeString)return this.splitArray(this.policy.tokenizeString(e),t,n).join(``);var r=t[0],i=t.slice(1),a=Math.ceil(e.length/2),o=e.substring(0,a);if(r===D.LEFT)return this.splitString(o,i,n);var s=e.substring(a);return o+this.splitString(s,i,n)},t.prototype.splitArray=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments[2];if(!t.length)return e;if(e.length===1)return[this.split(e[0],t,!1,n)];var r=t[0],i=t.slice(1),a=Math.ceil(e.length/2),o=e.slice(0,a);if(r===D.LEFT)return this.splitArray(o,i,n);var s=e.slice(a);return o.concat(this.splitArray(s,i,n))},t.prototype.fits=function(){var e=this.props.lines,t=this.el.getBoundingClientRect().height;return e>=Math.round(t/parseFloat(this.lineHeight))},t.prototype.render=function(){return this.state.text},y(t,[{key:`isValid`,get:function(){return this.validateTreeMemo(this.props.children)}},{key:`origText`,get:function(){return this.childrenWithRefMemo(this.props.children)}},{key:`policy`,get:function(){return h[this.props.tokenize]||h.characters}}]),t}(p.Component),b.Atom=g,b.defaultProps={lines:1,ellipsis:`...`,lineHeight:``,onTruncate:function(){},tokenize:`characters`},x);j.propTypes={};var M={teka:`"KH Teka", sans-serif`,mono:`"KH Teka Mono", monospace`},N={xxs:{fontSize:8,lineHeight:12},xs:{fontSize:10,lineHeight:14},sm:{fontSize:12,lineHeight:16},md:{fontSize:14,lineHeight:18},lg:{fontSize:16,lineHeight:18},xl:{fontSize:18,lineHeight:22},xxl:{fontSize:20,lineHeight:24}},P={xxs:{fontSize:20,lineHeight:22},xs:{fontSize:24,lineHeight:28},sm:{fontSize:32,lineHeight:36},md:{fontSize:40,lineHeight:46},lg:{fontSize:48,lineHeight:54},xl:{fontSize:64,lineHeight:72},xxl:{fontSize:96,lineHeight:96}},F={regular:400,medium:500,bold:700},I=`-0.05em`,L=({bold:e=!1,className:t,children:n,fluid:r=!1,size:a=`md`,variant:o,font:s=`teka`,testId:c,as:l,state:u=`default`,variation:d=`primary`,weight:p=`regular`,align:m=`left`,noWrap:h=!1,truncate:g,..._})=>{if(!n)return null;let v=l||`p`,y=e?`bold`:p,b=g?(0,f.jsx)(j,{lines:g,children:(0,f.jsx)(`span`,{children:n})}):n;return(0,f.jsx)(v,{..._,...c&&{"data-testid":c},className:i([o&&R(o,a,y,s),!o&&(a===`xxs`||a===`xs`||a===`sm`)&&B(y,s),!o&&a===`md`&&V(y,s),!o&&a===`lg`&&H(y,s),!o&&a===`xl`&&U(y,s),!o&&a===`xl40`&&W(y,s),!o&&a===`xxl`&&G(y,s),d===`primary`&&K(u),d===`secondary`&&q(u),d===`tertiary`&&J(u),d===`emphasis`&&Y,d===`success`&&X,d===`warning`&&Z,d===`error`&&Q,d===`brand`&&$,d===`onbrand`&&ee,d===`link`&&te,d===`link-secondary`&&ne,d===`link-tertiary`&&re,m===`center`&&ae,m===`right`&&oe,h&&ie,r&&z({font:s,variant:o}),t]),children:b})},R=(e,t,n,r)=>{let i=(e===`body`?N:P)[t===`xl40`?`xl`:t];
1if(i)return a({fontSize:i.fontSize,lineHeight:`${i.lineHeight}px`,fontWeight:F[n],fontFamily:M[r],...e===`heading`&&{letterSpacing:I}})},z=({font:e,variant:t})=>a({fontSize:`clamp(32px, 6vw, 60px)`,lineHeight:`clamp(40px, 6vw, 64px)`,letterSpacing:t===`heading`?I:`clamp(-2.4px, calc(-1 * (clamp(0px, 0.9765625vw, 200px) - 7.6px)), 0px)`,fontFamily:M[e]}),B=(e,t)=>a({font:o(`font/s/text/sm/${e}`),fontFamily:M[t]}),V=(e,t)=>a({font:o(`font/m/text/md/${e}`),fontFamily:M[t]}),H=(e,t)=>a({font:o(`font/l/text/lg/${e}`),fontFamily:M[t]}),U=(e,t)=>a({font:o(`font/xl/text/xl/${e}`),fontFamily:M[t]}),W=(e,t)=>a({font:o(`font/xl/text/xl40/${e}`),fontFamily:M[t],letterSpacing:`-1px`}),G=(e,t)=>a({font:o(`font/xxl/text/xxl/${e}`),fontFamily:M[t]}),K=e=>a({color:o(`color/text/primary/${e}`)}),q=e=>a({color:o(`color/text/secondary/${e}`)}),J=e=>a({color:o(`color/text/tertiary/${e}`)}),Y=a({color:o(`color/text/status/emphasis`)}),X=a({color:o(`color/text/status/success`)}),Z=a({color:o(`color/text/status/warning`)}),Q=a({color:o(`color/text/status/danger`)}),$=a({color:o(`color/icon/brand/default`)}),ee=a({color:o(`color/icon/primary/default`)}),te=a({cursor:`pointer`,color:o(`color/link/default`),"&:hover":{color:o(`color/link/hover`)}}),ne=a({cursor:`pointer`,color:o(`color/text/secondary/default`),textDecoration:`underline`,"&:hover":{color:o(`color/text/secondary/hover`)}}),re=a({cursor:`pointer`,color:o(`color/text/tertiary/default`),textDecoration:`underline`,"&:hover":{color:o(`color/text/tertiary/hover`)}}),ie=a({overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}),ae=a({textAlign:`center`}),oe=a({textAlign:`right`});export{L as t};

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.