var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))t[s]=r[s]}return t};return __assign.apply(this,arguments)};function parseStates(t){if(typeof t==="string"){try{return JSON.parse(t)}catch(t){return undefined}}if(typeof t==="object")return t}function extractProps(t,r){var e=Object.keys(t).filter((function(t){return t.startsWith(r)}));var n=e.reduce((function(e,n){var s;var a=n.replace(r,"");return __assign(__assign({},e),(s={},s[a]=t[n],s))}),{});return n}export{extractProps as e,parseStates as p};