var g=(o,u)=>()=>(u||o((u={exports:{}}).exports,u),u.exports);var j=g((y,s)=>{(function(o,u){typeof y=="object"&&typeof s<"u"?s.exports=u():typeof define=="function"&&define.amd?define(u):(o=typeof globalThis<"u"?globalThis:o||self,o.FormValidation=o.FormValidation||{},o.FormValidation.plugins=o.FormValidation.plugins||{},o.FormValidation.plugins.Transformer=u())})(void 0,function(){function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e,r){return e&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},a(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},l(t,e)}function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function p(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function O(t){var e=v();return function(){var n=a(t),i;if(e){var f=a(this).constructor;i=Reflect.construct(n,arguments,f)}else i=n.apply(this,arguments);return b(this,i)}}var _=FormValidation.Plugin,m=function(t){d(r,t);var e=O(r);function r(n){var i;return o(this,r),i=e.call(this,n),i.valueFilter=i.getElementValue.bind(p(i)),i}return h(r,[{key:"install",value:function(){this.core.registerFilter("field-value",this.valueFilter)}},{key:"uninstall",value:function(){this.core.deregisterFilter("field-value",this.valueFilter)}},{key:"getElementValue",value:function(i,f,P,c){return this.opts[f]&&this.opts[f][c]&&typeof this.opts[f][c]=="function"?this.opts[f][c].apply(this,[f,P,c]):i}}]),r}(_);return m})});export default j();
