!function(n){"use strict";function t(n){var t=n.split("\n"),u=o(t.map(e));if(u.length===t.length)return u;var i=o(t.map(a));if(i.length>0)return i;var l=o(t.map(r));if(l.length>0)return l;throw new Error("Unknown stack format: "+n)}function r(n){var t=n.match(u);return t?{method:t[1]||"",location:t[2]||"",line:parseInt(t[3])||0,column:parseInt(t[4])||0}:null}function a(n){var t=n.match(i)||n.match(l);if(!t)return null;var r=t[3].match(c);if(!r)return null;var a=t[2]||"";return t[1]&&(a="eval at "+a),{method:a,location:r[1]||"",line:parseInt(r[2])||0,column:parseInt(r[3])||0}}function e(n){var t=n.match(s);return t?{method:t[1]||"",location:t[2]||"",line:parseInt(t[3])||0,column:parseInt(t[4])||0}:null}function o(n){var t=[];return n.forEach(function(n){n&&t.push(n)}),t}var u=/^(?:([^@]*)@)?(.*?):(\d+)(?::(\d+))?$/,i=/^\s*(eval )?at (.*) \((.*)\)$/,l=/^\s*at()() (\S+)$/,c=/^\(?([^\(]+):(\d+):(\d+)\)?$/,s=/^\s*(.+) at (.+):(\d+):(\d+)$/;n.parse=t,n.parseGeckoLine=r,n.parseV8Line=a,n.parseStackyLine=e}("undefined"!=typeof module?module.exports:this.Stacky=this.Stacky||{});