Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { to_style } from '../../../shared/attributes.js';2import { STYLE_CACHE } from '../../constants.js';3import { hydrating } from '../hydration.js';4 5/**6 * @param {Element & ElementCSSInlineStyle} dom7 * @param {Record<string, any>} prev8 * @param {Record<string, any>} next9 * @param {string} [priority]10 */11function update_styles(dom, prev = {}, next, priority) {12 for (var key in next) {13 var value = next[key];14 15 if (prev[key] !== value) {16 if (next[key] == null) {17 dom.style.removeProperty(key);18 } else {19 dom.style.setProperty(key, value, priority);20 }21 }22 }23}24 25/**26 * @param {Element & ElementCSSInlineStyle} dom27 * @param {string | null} value28 * @param {Record<string, any> | [Record<string, any>, Record<string, any>]} [prev_styles]29 * @param {Record<string, any> | [Record<string, any>, Record<string, any>]} [next_styles]30 */31export function set_style(dom, value, prev_styles, next_styles) {32 var prev = /** @type {any} */ (dom)[STYLE_CACHE];33 34 if (hydrating || prev !== value) {35 var next_style_attr = to_style(value, next_styles);36 37 if (!hydrating || next_style_attr !== dom.getAttribute('style')) {38 if (next_style_attr == null) {39 dom.removeAttribute('style');40 } else {41 dom.style.cssText = next_style_attr;42 }43 }44 45 /** @type {any} */ (dom)[STYLE_CACHE] = value;46 } else if (next_styles) {47 if (Array.isArray(next_styles)) {48 update_styles(dom, prev_styles?.[0], next_styles[0]);49 update_styles(dom, prev_styles?.[1], next_styles[1], 'important');50 } else {51 update_styles(dom, prev_styles, next_styles);52 }53 }54 55 return next_styles;56}57 