module.exports = "(function(e,r,n){var a=n(624),t=n(8795).Error;function u(e,r,n){var a=new RegExp(\"^\\\\s*([+-]?)\\\\s*((\\\\d+)((?:\\\\\"+r+\"\\\\d{3})+)?)(?:\\\\\"+n+\"(\\\\d+))?\\\\s*$\"),t=e.match(a);if(!t)return NaN;var u=t[3],c=t[4],i=t[5];if(c&&!i&&u.length>3&&4===c.length||!c&&u.length<=3&&i&&3===i.length)return NaN;var s=t[1],N=t[2].replace(new RegExp(\"\\\\\"+r,\"g\"),\"\");return Number(s+N+(i?\".\"+i:\"\"))}function c(e){var r=u(e=String(e),\",\",\".\");return isNaN(r)&&(r=u(e,\".\",\",\")),r}e.exports=function(e,r){var n;switch(e){case a.valueType.STRING:return r?String(r):\"\";case a.valueType.NUMBER:if(n=c(r),isNaN(n))throw new t('\"'+r+'\" cannot be parsed as a number');return n;case a.valueType.CURRENCY:if(n=c(n=String(r).replace(/^[^\\d\\,\\.\\-]*/g,\"\").replace(/[^\\d\\,\\.\\-]*$/g,\"\")),isNaN(n))throw new t('\"'+r+'\" cannot be parsed as currency');return Math.round(100*n)}throw new t(\"Unknown ViewTag type: \"+e)}})";