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
1/* This file is generated by scripts/process-messages/index.js. Do not edit! */2 3import { warnings, ignore_stack, ignore_map, warning_filter } from './state.js';4import { CompileDiagnostic } from './utils/compile_diagnostic.js';5 6/** @typedef {{ start?: number, end?: number }} NodeLike */7class InternalCompileWarning extends CompileDiagnostic {8 name = 'CompileWarning';9 10 /**11 * @param {string} code12 * @param {string} message13 * @param {[number, number] | undefined} position14 */15 constructor(code, message, position) {16 super(code, message, position);17 }18}19 20/**21 * @param {null | NodeLike} node22 * @param {string} code23 * @param {string} message24 */25function w(node, code, message) {26 let stack = ignore_stack;27 28 if (node) {29 stack = ignore_map.get(node) ?? ignore_stack;30 }31 32 if (stack && stack.at(-1)?.has(code)) return;33 34 const warning = new InternalCompileWarning(code, message, node && node.start !== undefined ? [node.start, node.end ?? node.start] : undefined);35 36 if (!warning_filter(warning)) return;37 38 warnings.push(warning);39}40 41export const codes = [42 'a11y_accesskey',43 'a11y_aria_activedescendant_has_tabindex',44 'a11y_aria_attributes',45 'a11y_autocomplete_valid',46 'a11y_autofocus',47 'a11y_click_events_have_key_events',48 'a11y_consider_explicit_label',49 'a11y_distracting_elements',50 'a11y_figcaption_index',51 'a11y_figcaption_parent',52 'a11y_hidden',53 'a11y_img_redundant_alt',54 'a11y_incorrect_aria_attribute_type',55 'a11y_incorrect_aria_attribute_type_boolean',56 'a11y_incorrect_aria_attribute_type_id',57 'a11y_incorrect_aria_attribute_type_idlist',58 'a11y_incorrect_aria_attribute_type_integer',59 'a11y_incorrect_aria_attribute_type_token',60 'a11y_incorrect_aria_attribute_type_tokenlist',61 'a11y_incorrect_aria_attribute_type_tristate',62 'a11y_interactive_supports_focus',63 'a11y_invalid_attribute',64 'a11y_label_has_associated_control',65 'a11y_media_has_caption',66 'a11y_misplaced_role',67 'a11y_misplaced_scope',68 'a11y_missing_attribute',69 'a11y_missing_content',70 'a11y_mouse_events_have_key_events',71 'a11y_no_abstract_role',72 'a11y_no_interactive_element_to_noninteractive_role',73 'a11y_no_noninteractive_element_interactions',74 'a11y_no_noninteractive_element_to_interactive_role',75 'a11y_no_noninteractive_tabindex',76 'a11y_no_redundant_roles',77 'a11y_no_static_element_interactions',78 'a11y_positive_tabindex',79 'a11y_role_has_required_aria_props',80 'a11y_role_supports_aria_props',81 'a11y_role_supports_aria_props_implicit',82 'a11y_unknown_aria_attribute',83 'a11y_unknown_role',84 'bidirectional_control_characters',85 'legacy_code',86 'unknown_code',87 'options_deprecated_accessors',88 'options_deprecated_immutable',89 'options_missing_custom_element',90 'options_removed_enable_sourcemap',91 'options_removed_hydratable',92 'options_removed_loop_guard_timeout',93 'options_renamed_ssr_dom',94 'custom_element_props_identifier',95 'export_let_unused',96 'legacy_component_creation',97 'non_reactive_update',98 'perf_avoid_inline_class',99 'perf_avoid_nested_class',100 'reactive_declaration_invalid_placement',101 'reactive_declaration_module_script_dependency',102 'state_referenced_locally',103 'store_rune_conflict',104 'css_unused_selector',105 'attribute_avoid_is',106 'attribute_global_event_reference',107 'attribute_illegal_colon',108 'attribute_invalid_property_name',109 'attribute_quoted',110 'bind_invalid_each_rest',111 'block_empty',112 'component_name_lowercase',113 'element_implicitly_closed',114 'element_invalid_self_closing_tag',115 'event_directive_deprecated',116 'node_invalid_placement_ssr',117 'script_context_deprecated',118 'script_unknown_attribute',119 'slot_element_deprecated',120 'svelte_component_deprecated',121 'svelte_element_invalid_this',122 'svelte_self_deprecated'123];124 125/**126 * Avoid using accesskey127 * @param {null | NodeLike} node128 */129export function a11y_accesskey(node) {130 w(node, 'a11y_accesskey', `Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey`);131}132 133/**134 * An element with an aria-activedescendant attribute should have a tabindex value135 * @param {null | NodeLike} node136 */137export function a11y_aria_activedescendant_has_tabindex(node) {138 w(node, 'a11y_aria_activedescendant_has_tabindex', `An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex`);139}140 141/**142 * `<%name%>` should not have aria-* attributes143 * @param {null | NodeLike} node144 * @param {string} name145 */146export function a11y_aria_attributes(node, name) {147 w(node, 'a11y_aria_attributes', `\`<${name}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`);148}149 150/**151 * '%value%' is an invalid value for 'autocomplete' on `<input type="%type%">`152 * @param {null | NodeLike} node153 * @param {string} value154 * @param {string} type155 */156export function a11y_autocomplete_valid(node, value, type) {157 w(node, 'a11y_autocomplete_valid', `'${value}' is an invalid value for 'autocomplete' on \`<input type="${type}">\`\nhttps://svelte.dev/e/a11y_autocomplete_valid`);158}159 160/**161 * Avoid using autofocus162 * @param {null | NodeLike} node163 */164export function a11y_autofocus(node) {165 w(node, 'a11y_autofocus', `Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus`);166}167 168/**169 * Visible, non-interactive element `<%element%>` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate170 * @param {null | NodeLike} node171 * @param {string} element172 */173export function a11y_click_events_have_key_events(node, element) {174 w(node, 'a11y_click_events_have_key_events', `Visible, non-interactive element \`<${element}>\` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate\nhttps://svelte.dev/e/a11y_click_events_have_key_events`);175}176 177/**178 * Buttons and links should either contain text or have an `aria-label`, `aria-labelledby` or `title` attribute179 * @param {null | NodeLike} node180 */181export function a11y_consider_explicit_label(node) {182 w(node, 'a11y_consider_explicit_label', `Buttons and links should either contain text or have an \`aria-label\`, \`aria-labelledby\` or \`title\` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label`);183}184 185/**186 * Avoid `<%name%>` elements187 * @param {null | NodeLike} node188 * @param {string} name189 */190export function a11y_distracting_elements(node, name) {191 w(node, 'a11y_distracting_elements', `Avoid \`<${name}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`);192}193 194/**195 * `<figcaption>` must be first or last child of `<figure>`196 * @param {null | NodeLike} node197 */198export function a11y_figcaption_index(node) {199 w(node, 'a11y_figcaption_index', `\`<figcaption>\` must be first or last child of \`<figure>\`\nhttps://svelte.dev/e/a11y_figcaption_index`);200}201 202/**203 * `<figcaption>` must be an immediate child of `<figure>`204 * @param {null | NodeLike} node205 */206export function a11y_figcaption_parent(node) {207 w(node, 'a11y_figcaption_parent', `\`<figcaption>\` must be an immediate child of \`<figure>\`\nhttps://svelte.dev/e/a11y_figcaption_parent`);208}209 210/**211 * `<%name%>` element should not be hidden212 * @param {null | NodeLike} node213 * @param {string} name214 */215export function a11y_hidden(node, name) {216 w(node, 'a11y_hidden', `\`<${name}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`);217}218 219/**220 * Screenreaders already announce `<img>` elements as an image221 * @param {null | NodeLike} node222 */223export function a11y_img_redundant_alt(node) {224 w(node, 'a11y_img_redundant_alt', `Screenreaders already announce \`<img>\` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt`);225}226 227/**228 * The value of '%attribute%' must be a %type%229 * @param {null | NodeLike} node230 * @param {string} attribute231 * @param {string} type232 */233export function a11y_incorrect_aria_attribute_type(node, attribute, type) {234 w(node, 'a11y_incorrect_aria_attribute_type', `The value of '${attribute}' must be a ${type}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`);235}236 237/**238 * The value of '%attribute%' must be either 'true' or 'false'. It cannot be empty239 * @param {null | NodeLike} node240 * @param {string} attribute241 */242export function a11y_incorrect_aria_attribute_type_boolean(node, attribute) {243 w(node, 'a11y_incorrect_aria_attribute_type_boolean', `The value of '${attribute}' must be either 'true' or 'false'. It cannot be empty\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`);244}245 246/**247 * The value of '%attribute%' must be a string that represents a DOM element ID248 * @param {null | NodeLike} node249 * @param {string} attribute250 */251export function a11y_incorrect_aria_attribute_type_id(node, attribute) {252 w(node, 'a11y_incorrect_aria_attribute_type_id', `The value of '${attribute}' must be a string that represents a DOM element ID\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_id`);253}254 255/**256 * The value of '%attribute%' must be a space-separated list of strings that represent DOM element IDs257 * @param {null | NodeLike} node258 * @param {string} attribute259 */260export function a11y_incorrect_aria_attribute_type_idlist(node, attribute) {261 w(node, 'a11y_incorrect_aria_attribute_type_idlist', `The value of '${attribute}' must be a space-separated list of strings that represent DOM element IDs\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`);262}263 264/**265 * The value of '%attribute%' must be an integer266 * @param {null | NodeLike} node267 * @param {string} attribute268 */269export function a11y_incorrect_aria_attribute_type_integer(node, attribute) {270 w(node, 'a11y_incorrect_aria_attribute_type_integer', `The value of '${attribute}' must be an integer\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`);271}272 273/**274 * The value of '%attribute%' must be exactly one of %values%275 * @param {null | NodeLike} node276 * @param {string} attribute277 * @param {string} values278 */279export function a11y_incorrect_aria_attribute_type_token(node, attribute, values) {280 w(node, 'a11y_incorrect_aria_attribute_type_token', `The value of '${attribute}' must be exactly one of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`);281}282 283/**284 * The value of '%attribute%' must be a space-separated list of one or more of %values%285 * @param {null | NodeLike} node286 * @param {string} attribute287 * @param {string} values288 */289export function a11y_incorrect_aria_attribute_type_tokenlist(node, attribute, values) {290 w(node, 'a11y_incorrect_aria_attribute_type_tokenlist', `The value of '${attribute}' must be a space-separated list of one or more of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`);291}292 293/**294 * The value of '%attribute%' must be exactly one of true, false, or mixed295 * @param {null | NodeLike} node296 * @param {string} attribute297 */298export function a11y_incorrect_aria_attribute_type_tristate(node, attribute) {299 w(node, 'a11y_incorrect_aria_attribute_type_tristate', `The value of '${attribute}' must be exactly one of true, false, or mixed\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`);300}301 302/**303 * Elements with the '%role%' interactive role must have a tabindex value304 * @param {null | NodeLike} node305 * @param {string} role306 */307export function a11y_interactive_supports_focus(node, role) {308 w(node, 'a11y_interactive_supports_focus', `Elements with the '${role}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`);309}310 311/**312 * '%href_value%' is not a valid %href_attribute% attribute313 * @param {null | NodeLike} node314 * @param {string} href_value315 * @param {string} href_attribute316 */317export function a11y_invalid_attribute(node, href_value, href_attribute) {318 w(node, 'a11y_invalid_attribute', `'${href_value}' is not a valid ${href_attribute} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`);319}320 321/**322 * A form label must be associated with a control323 * @param {null | NodeLike} node324 */325export function a11y_label_has_associated_control(node) {326 w(node, 'a11y_label_has_associated_control', `A form label must be associated with a control\nhttps://svelte.dev/e/a11y_label_has_associated_control`);327}328 329/**330 * `<video>` elements must have a `<track kind="captions">`331 * @param {null | NodeLike} node332 */333export function a11y_media_has_caption(node) {334 w(node, 'a11y_media_has_caption', `\`<video>\` elements must have a \`<track kind="captions">\`\nhttps://svelte.dev/e/a11y_media_has_caption`);335}336 337/**338 * `<%name%>` should not have role attribute339 * @param {null | NodeLike} node340 * @param {string} name341 */342export function a11y_misplaced_role(node, name) {343 w(node, 'a11y_misplaced_role', `\`<${name}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`);344}345 346/**347 * The scope attribute should only be used with `<th>` elements348 * @param {null | NodeLike} node349 */350export function a11y_misplaced_scope(node) {351 w(node, 'a11y_misplaced_scope', `The scope attribute should only be used with \`<th>\` elements\nhttps://svelte.dev/e/a11y_misplaced_scope`);352}353 354/**355 * `<%name%>` element should have %article% %sequence% attribute356 * @param {null | NodeLike} node357 * @param {string} name358 * @param {string} article359 * @param {string} sequence360 */361export function a11y_missing_attribute(node, name, article, sequence) {362 w(node, 'a11y_missing_attribute', `\`<${name}>\` element should have ${article} ${sequence} attribute\nhttps://svelte.dev/e/a11y_missing_attribute`);363}364 365/**366 * `<%name%>` element should contain text367 * @param {null | NodeLike} node368 * @param {string} name369 */370export function a11y_missing_content(node, name) {371 w(node, 'a11y_missing_content', `\`<${name}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`);372}373 374/**375 * '%event%' event must be accompanied by '%accompanied_by%' event376 * @param {null | NodeLike} node377 * @param {string} event378 * @param {string} accompanied_by379 */380export function a11y_mouse_events_have_key_events(node, event, accompanied_by) {381 w(node, 'a11y_mouse_events_have_key_events', `'${event}' event must be accompanied by '${accompanied_by}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`);382}383 384/**385 * Abstract role '%role%' is forbidden386 * @param {null | NodeLike} node387 * @param {string} role388 */389export function a11y_no_abstract_role(node, role) {390 w(node, 'a11y_no_abstract_role', `Abstract role '${role}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`);391}392 393/**394 * `<%element%>` cannot have role '%role%'395 * @param {null | NodeLike} node396 * @param {string} element397 * @param {string} role398 */399export function a11y_no_interactive_element_to_noninteractive_role(node, element, role) {400 w(node, 'a11y_no_interactive_element_to_noninteractive_role', `\`<${element}>\` cannot have role '${role}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`);401}402 403/**404 * Non-interactive element `<%element%>` should not be assigned mouse or keyboard event listeners405 * @param {null | NodeLike} node406 * @param {string} element407 */408export function a11y_no_noninteractive_element_interactions(node, element) {409 w(node, 'a11y_no_noninteractive_element_interactions', `Non-interactive element \`<${element}>\` should not be assigned mouse or keyboard event listeners\nhttps://svelte.dev/e/a11y_no_noninteractive_element_interactions`);410}411 412/**413 * Non-interactive element `<%element%>` cannot have interactive role '%role%'414 * @param {null | NodeLike} node415 * @param {string} element416 * @param {string} role417 */418export function a11y_no_noninteractive_element_to_interactive_role(node, element, role) {419 w(node, 'a11y_no_noninteractive_element_to_interactive_role', `Non-interactive element \`<${element}>\` cannot have interactive role '${role}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`);420}421 422/**423 * noninteractive element cannot have nonnegative tabIndex value424 * @param {null | NodeLike} node425 */426export function a11y_no_noninteractive_tabindex(node) {427 w(node, 'a11y_no_noninteractive_tabindex', `noninteractive element cannot have nonnegative tabIndex value\nhttps://svelte.dev/e/a11y_no_noninteractive_tabindex`);428}429 430/**431 * Redundant role '%role%'432 * @param {null | NodeLike} node433 * @param {string} role434 */435export function a11y_no_redundant_roles(node, role) {436 w(node, 'a11y_no_redundant_roles', `Redundant role '${role}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`);437}438 439/**440 * `<%element%>` with a %handler% handler must have an ARIA role441 * @param {null | NodeLike} node442 * @param {string} element443 * @param {string} handler444 */445export function a11y_no_static_element_interactions(node, element, handler) {446 w(node, 'a11y_no_static_element_interactions', `\`<${element}>\` with a ${handler} handler must have an ARIA role\nhttps://svelte.dev/e/a11y_no_static_element_interactions`);447}448 449/**450 * Avoid tabindex values above zero451 * @param {null | NodeLike} node452 */453export function a11y_positive_tabindex(node) {454 w(node, 'a11y_positive_tabindex', `Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex`);455}456 457/**458 * Elements with the ARIA role "%role%" must have the following attributes defined: %props%459 * @param {null | NodeLike} node460 * @param {string} role461 * @param {string} props462 */463export function a11y_role_has_required_aria_props(node, role, props) {464 w(node, 'a11y_role_has_required_aria_props', `Elements with the ARIA role "${role}" must have the following attributes defined: ${props}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`);465}466 467/**468 * The attribute '%attribute%' is not supported by the role '%role%'469 * @param {null | NodeLike} node470 * @param {string} attribute471 * @param {string} role472 */473export function a11y_role_supports_aria_props(node, attribute, role) {474 w(node, 'a11y_role_supports_aria_props', `The attribute '${attribute}' is not supported by the role '${role}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`);475}476 477/**478 * The attribute '%attribute%' is not supported by the role '%role%'. This role is implicit on the element `<%name%>`479 * @param {null | NodeLike} node480 * @param {string} attribute481 * @param {string} role482 * @param {string} name483 */484export function a11y_role_supports_aria_props_implicit(node, attribute, role, name) {485 w(node, 'a11y_role_supports_aria_props_implicit', `The attribute '${attribute}' is not supported by the role '${role}'. This role is implicit on the element \`<${name}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`);486}487 488/**489 * Unknown aria attribute 'aria-%attribute%'. Did you mean '%suggestion%'?490 * @param {null | NodeLike} node491 * @param {string} attribute492 * @param {string | undefined | null} [suggestion]493 */494export function a11y_unknown_aria_attribute(node, attribute, suggestion) {495 w(node, 'a11y_unknown_aria_attribute', `${suggestion496 ? `Unknown aria attribute 'aria-${attribute}'. Did you mean '${suggestion}'?`497 : `Unknown aria attribute 'aria-${attribute}'`}\nhttps://svelte.dev/e/a11y_unknown_aria_attribute`);498}499 500/**501 * Unknown role '%role%'. Did you mean '%suggestion%'?502 * @param {null | NodeLike} node503 * @param {string} role504 * @param {string | undefined | null} [suggestion]505 */506export function a11y_unknown_role(node, role, suggestion) {507 w(node, 'a11y_unknown_role', `${suggestion508 ? `Unknown role '${role}'. Did you mean '${suggestion}'?`509 : `Unknown role '${role}'`}\nhttps://svelte.dev/e/a11y_unknown_role`);510}511 512/**513 * A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences514 * @param {null | NodeLike} node515 */516export function bidirectional_control_characters(node) {517 w(node, 'bidirectional_control_characters', `A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences\nhttps://svelte.dev/e/bidirectional_control_characters`);518}519 520/**521 * `%code%` is no longer valid — please use `%suggestion%` instead522 * @param {null | NodeLike} node523 * @param {string} code524 * @param {string} suggestion525 */526export function legacy_code(node, code, suggestion) {527 w(node, 'legacy_code', `\`${code}\` is no longer valid — please use \`${suggestion}\` instead\nhttps://svelte.dev/e/legacy_code`);528}529 530/**531 * `%code%` is not a recognised code (did you mean `%suggestion%`?)532 * @param {null | NodeLike} node533 * @param {string} code534 * @param {string | undefined | null} [suggestion]535 */536export function unknown_code(node, code, suggestion) {537 w(node, 'unknown_code', `${suggestion538 ? `\`${code}\` is not a recognised code (did you mean \`${suggestion}\`?)`539 : `\`${code}\` is not a recognised code`}\nhttps://svelte.dev/e/unknown_code`);540}541 542/**543 * The `accessors` option has been deprecated. It will have no effect in runes mode544 * @param {null | NodeLike} node545 */546export function options_deprecated_accessors(node) {547 w(node, 'options_deprecated_accessors', `The \`accessors\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors`);548}549 550/**551 * The `immutable` option has been deprecated. It will have no effect in runes mode552 * @param {null | NodeLike} node553 */554export function options_deprecated_immutable(node) {555 w(node, 'options_deprecated_immutable', `The \`immutable\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable`);556}557 558/**559 * The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?560 * @param {null | NodeLike} node561 */562export function options_missing_custom_element(node) {563 w(node, 'options_missing_custom_element', `The \`customElement\` option is used when generating a custom element. Did you forget the \`customElement: true\` compile option?\nhttps://svelte.dev/e/options_missing_custom_element`);564}565 566/**567 * The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them568 * @param {null | NodeLike} node569 */570export function options_removed_enable_sourcemap(node) {571 w(node, 'options_removed_enable_sourcemap', `The \`enableSourcemap\` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap`);572}573 574/**575 * The `hydratable` option has been removed. Svelte components are always hydratable now576 * @param {null | NodeLike} node577 */578export function options_removed_hydratable(node) {579 w(node, 'options_removed_hydratable', `The \`hydratable\` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable`);580}581 582/**583 * The `loopGuardTimeout` option has been removed584 * @param {null | NodeLike} node585 */586export function options_removed_loop_guard_timeout(node) {587 w(node, 'options_removed_loop_guard_timeout', `The \`loopGuardTimeout\` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout`);588}589 590/**591 * `generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively592 * @param {null | NodeLike} node593 */594export function options_renamed_ssr_dom(node) {595 w(node, 'options_renamed_ssr_dom', `\`generate: "dom"\` and \`generate: "ssr"\` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom`);596}597 598/**599 * Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.600 * @param {null | NodeLike} node601 */602export function custom_element_props_identifier(node) {603 w(node, 'custom_element_props_identifier', `Using a rest element or a non-destructured declaration with \`$props()\` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the \`customElement.props\` option.\nhttps://svelte.dev/e/custom_element_props_identifier`);604}605 606/**607 * Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`608 * @param {null | NodeLike} node609 * @param {string} name610 */611export function export_let_unused(node, name) {612 w(node, 'export_let_unused', `Component has unused export property '${name}'. If it is for external reference only, please consider using \`export const ${name}\`\nhttps://svelte.dev/e/export_let_unused`);613}614 615/**616 * Svelte 5 components are no longer classes. Instantiate them using `mount` or `hydrate` (imported from 'svelte') instead.617 * @param {null | NodeLike} node618 */619export function legacy_component_creation(node) {620 w(node, 'legacy_component_creation', `Svelte 5 components are no longer classes. Instantiate them using \`mount\` or \`hydrate\` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation`);621}622 623/**624 * `%name%` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates625 * @param {null | NodeLike} node626 * @param {string} name627 */628export function non_reactive_update(node, name) {629 w(node, 'non_reactive_update', `\`${name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`);630}631 632/**633 * Avoid 'new class' — instead, declare the class at the top level scope634 * @param {null | NodeLike} node635 */636export function perf_avoid_inline_class(node) {637 w(node, 'perf_avoid_inline_class', `Avoid 'new class' — instead, declare the class at the top level scope\nhttps://svelte.dev/e/perf_avoid_inline_class`);638}639 640/**641 * Avoid declaring classes below the top level scope642 * @param {null | NodeLike} node643 */644export function perf_avoid_nested_class(node) {645 w(node, 'perf_avoid_nested_class', `Avoid declaring classes below the top level scope\nhttps://svelte.dev/e/perf_avoid_nested_class`);646}647 648/**649 * Reactive declarations only exist at the top level of the instance script650 * @param {null | NodeLike} node651 */652export function reactive_declaration_invalid_placement(node) {653 w(node, 'reactive_declaration_invalid_placement', `Reactive declarations only exist at the top level of the instance script\nhttps://svelte.dev/e/reactive_declaration_invalid_placement`);654}655 656/**657 * Reassignments of module-level declarations will not cause reactive statements to update658 * @param {null | NodeLike} node659 */660export function reactive_declaration_module_script_dependency(node) {661 w(node, 'reactive_declaration_module_script_dependency', `Reassignments of module-level declarations will not cause reactive statements to update\nhttps://svelte.dev/e/reactive_declaration_module_script_dependency`);662}663 664/**665 * This reference only captures the initial value of `%name%`. Did you mean to reference it inside a %type% instead?666 * @param {null | NodeLike} node667 * @param {string} name668 * @param {string} type669 */670export function state_referenced_locally(node, name, type) {671 w(node, 'state_referenced_locally', `This reference only captures the initial value of \`${name}\`. Did you mean to reference it inside a ${type} instead?\nhttps://svelte.dev/e/state_referenced_locally`);672}673 674/**675 * It looks like you're using the `$%name%` rune, but there is a local binding called `%name%`. Referencing a local variable with a `$` prefix will create a store subscription. Please rename `%name%` to avoid the ambiguity676 * @param {null | NodeLike} node677 * @param {string} name678 */679export function store_rune_conflict(node, name) {680 w(node, 'store_rune_conflict', `It looks like you're using the \`$${name}\` rune, but there is a local binding called \`${name}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${name}\` to avoid the ambiguity\nhttps://svelte.dev/e/store_rune_conflict`);681}682 683/**684 * Unused CSS selector "%name%"685 * @param {null | NodeLike} node686 * @param {string} name687 */688export function css_unused_selector(node, name) {689 w(node, 'css_unused_selector', `Unused CSS selector "${name}"\nhttps://svelte.dev/e/css_unused_selector`);690}691 692/**693 * The "is" attribute is not supported cross-browser and should be avoided694 * @param {null | NodeLike} node695 */696export function attribute_avoid_is(node) {697 w(node, 'attribute_avoid_is', `The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is`);698}699 700/**701 * You are referencing `globalThis.%name%`. Did you forget to declare a variable with that name?702 * @param {null | NodeLike} node703 * @param {string} name704 */705export function attribute_global_event_reference(node, name) {706 w(node, 'attribute_global_event_reference', `You are referencing \`globalThis.${name}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`);707}708 709/**710 * Attributes should not contain ':' characters to prevent ambiguity with Svelte directives711 * @param {null | NodeLike} node712 */713export function attribute_illegal_colon(node) {714 w(node, 'attribute_illegal_colon', `Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon`);715}716 717/**718 * '%wrong%' is not a valid HTML attribute. Did you mean '%right%'?719 * @param {null | NodeLike} node720 * @param {string} wrong721 * @param {string} right722 */723export function attribute_invalid_property_name(node, wrong, right) {724 w(node, 'attribute_invalid_property_name', `'${wrong}' is not a valid HTML attribute. Did you mean '${right}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`);725}726 727/**728 * Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes729 * @param {null | NodeLike} node730 */731export function attribute_quoted(node) {732 w(node, 'attribute_quoted', `Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes\nhttps://svelte.dev/e/attribute_quoted`);733}734 735/**736 * The rest operator (...) will create a new object and binding '%name%' with the original object will not work737 * @param {null | NodeLike} node738 * @param {string} name739 */740export function bind_invalid_each_rest(node, name) {741 w(node, 'bind_invalid_each_rest', `The rest operator (...) will create a new object and binding '${name}' with the original object will not work\nhttps://svelte.dev/e/bind_invalid_each_rest`);742}743 744/**745 * Empty block746 * @param {null | NodeLike} node747 */748export function block_empty(node) {749 w(node, 'block_empty', `Empty block\nhttps://svelte.dev/e/block_empty`);750}751 752/**753 * `<%name%>` will be treated as an HTML element unless it begins with a capital letter754 * @param {null | NodeLike} node755 * @param {string} name756 */757export function component_name_lowercase(node, name) {758 w(node, 'component_name_lowercase', `\`<${name}>\` will be treated as an HTML element unless it begins with a capital letter\nhttps://svelte.dev/e/component_name_lowercase`);759}760 761/**762 * This element is implicitly closed by the following `%tag%`, which can cause an unexpected DOM structure. Add an explicit `%closing%` to avoid surprises.763 * @param {null | NodeLike} node764 * @param {string} tag765 * @param {string} closing766 */767export function element_implicitly_closed(node, tag, closing) {768 w(node, 'element_implicitly_closed', `This element is implicitly closed by the following \`${tag}\`, which can cause an unexpected DOM structure. Add an explicit \`${closing}\` to avoid surprises.\nhttps://svelte.dev/e/element_implicitly_closed`);769}770 771/**772 * Self-closing HTML tags for non-void elements are ambiguous — use `<%name% ...></%name%>` rather than `<%name% ... />`773 * @param {null | NodeLike} node774 * @param {string} name775 */776export function element_invalid_self_closing_tag(node, name) {777 w(node, 'element_invalid_self_closing_tag', `Self-closing HTML tags for non-void elements are ambiguous — use \`<${name} ...></${name}>\` rather than \`<${name} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`);778}779 780/**781 * Using `on:%name%` to listen to the %name% event is deprecated. Use the event attribute `on%name%` instead782 * @param {null | NodeLike} node783 * @param {string} name784 */785export function event_directive_deprecated(node, name) {786 w(node, 'event_directive_deprecated', `Using \`on:${name}\` to listen to the ${name} event is deprecated. Use the event attribute \`on${name}\` instead\nhttps://svelte.dev/e/event_directive_deprecated`);787}788 789/**790 * %message%. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a `hydration_mismatch` warning791 * @param {null | NodeLike} node792 * @param {string} message793 */794export function node_invalid_placement_ssr(node, message) {795 w(node, 'node_invalid_placement_ssr', `${message}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`);796}797 798/**799 * `context="module"` is deprecated, use the `module` attribute instead800 * @param {null | NodeLike} node801 */802export function script_context_deprecated(node) {803 w(node, 'script_context_deprecated', `\`context="module"\` is deprecated, use the \`module\` attribute instead\nhttps://svelte.dev/e/script_context_deprecated`);804}805 806/**807 * Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it808 * @param {null | NodeLike} node809 */810export function script_unknown_attribute(node) {811 w(node, 'script_unknown_attribute', `Unrecognised attribute — should be one of \`generics\`, \`lang\` or \`module\`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute`);812}813 814/**815 * Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead816 * @param {null | NodeLike} node817 */818export function slot_element_deprecated(node) {819 w(node, 'slot_element_deprecated', `Using \`<slot>\` to render parent content is deprecated. Use \`{@render ...}\` tags instead\nhttps://svelte.dev/e/slot_element_deprecated`);820}821 822/**823 * `<svelte:component>` is deprecated in runes mode — components are dynamic by default824 * @param {null | NodeLike} node825 */826export function svelte_component_deprecated(node) {827 w(node, 'svelte_component_deprecated', `\`<svelte:component>\` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated`);828}829 830/**831 * `this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte832 * @param {null | NodeLike} node833 */834export function svelte_element_invalid_this(node) {835 w(node, 'svelte_element_invalid_this', `\`this\` should be an \`{expression}\`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this`);836}837 838/**839 * `<svelte:self>` is deprecated — use self-imports (e.g. `import %name% from './%basename%'`) instead840 * @param {null | NodeLike} node841 * @param {string} name842 * @param {string} basename843 */844export function svelte_self_deprecated(node, name, basename) {845 w(node, 'svelte_self_deprecated', `\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${name} from './${basename}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`);846}