"use strict";var g=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var F=(r,t)=>{for(var e in t)g(r,e,{get:t[e],enumerable:!0})},$=(r,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of b(t))!h.call(r,n)&&n!==e&&g(r,n,{get:()=>t[n],enumerable:!(s=z(t,n))||s.enumerable});return r};var _=r=>$(g({},"__esModule",{value:!0}),r);var j={};F(j,{REGEXP_EMAIL:()=>v,REGEXP_UUID:()=>E,createInjector:()=>k});module.exports=_(j);var A=/{(?:const (?[A-zÀ-ú_\-$][A-zÀ-ú0-9_\-$]*)\s*=)?\s*(?(?:\.?[A-zÀ-ú_\-$][A-zÀ-ú0-9_\-$]*)+)(?:\s*@\s*(?(?:\s*\|?\s*(?:[A-zÀ-ú_\-$][A-zÀ-ú0-9_\-$]*(?:\([^()]*\))?))+))?\s*}/gm;function M(r){let t=/^([^\(]+)(?:\((.*)\))?$/,e=r.match(t);if(!e)return{key:r,params:[]};let s=e[1].trim(),n=e[2]||"",c=n?n.split(/\s*,\s*/).map(a=>a.trim()):[];return{key:s,params:c}}function I(r){let t=[],e=[...r.matchAll(A)];for(let s of e){if(!s.groups)continue;let{props:n,filters:c,variable:a}=s.groups,o=s.index,i=o+s[0].length;t.push({start:o,end:i,variable:a,props:n.split("."),filters:c?c.split(/\s*\|\s*/).map(M):[]})}return t}function R(r,t){return t.reduce((e,s)=>e?.[s],r)}function k(r={}){let t=new Map;for(let[n,c]of Object.entries(r))t.set(n,c);function e(n,c,a){let{variable:o,props:i,filters:x}=n,u=a.has(i[0]||"")?a.get(i[0]||""):R(c,i)??void 0,p=x.reduce((f,l)=>{let{key:m,params:y}=l,d=t.get(m);if(!d)throw new Error(`Filter ${m} not found`);return d(f,...y)},u);return o?(a.set(o,p),""):p}function s(n,c){let a=I(n),o=a.map((x,u,p)=>{let f=p[u-1]?p[u-1].end:0,l=x.start;return n.slice(f,l)}).concat(n.slice(a[a.length-1].end)),i=new Map;return o.reduce((x,u,p)=>{let f=a[p];return f?x+u+e(f,c,i):x+u},"")}return s}var E=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,v=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/;