import{DirectiveRegistry as b,Internals as s}from"../index.js";const o={attribute:(e,t,r="")=>{const i=t[0];return r&&i!=="@"&&i!=="."&&i!=="*"&&r.slice(0,2)==="{{"&&r.slice(-2)==="}}"},process:({attributeName:e,targetNode:t})=>t[s.block]==="abort"?{}:{update:r=>{if(t[s.block]==="abort")return t.removeAttribute(e);typeof r=="boolean"||typeof r=="undefined"||r===null?r?t.setAttribute(e,""):t.removeAttribute(e):t.setAttribute(e,""+r)},removeNode:!1,removeAttribute:!0}};b.add(o);
