import{L as i}from"./index-DpEJCboz.js";function e(t,r){return{normalize:t,validate:r}}function a(t,r,n){try{const o=t.normalize(r);t.validate(o)&&n(o)}catch(o){i.debug(o)}}function s(t){if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean"||typeof t=="bigint")return String(t);throw new Error(`Invalid string: ${t}`)}function f(t){if(typeof t=="number")return Number.isInteger(t)?t:Math.round(t);if(typeof t=="string"){const r=parseInt(t,10);if(!isNaN(r))return r}throw new Error(`Invalid integer: ${t}`)}const c=e(s,t=>t.length>=2&&t.length<=80);class g{constructor(r,n){this.component=r,this.props=n}setProp(r,n){this.props[r]=n}getProps(){return this.props}setState(r,n){this.component[r]=n}}export{g as B,f as a,e as c,c as l,s as n,a as w};
//# sourceMappingURL=base-controller-BGteZxSE-D44Ic5i1.js.map
