var BadJs=function(){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0!=r)for(var o,i,e=0|e,a=Math.max(0<=e?e:r-Math.abs(e),0);a"].indexOf(r[0])?void 0:r[0];return new s({functionName:e,fileName:n,lineNumber:r[1],columnNumber:r[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(t){return!t.match(r)},this).map(function(t){var e,n;return-1===(t=-1 eval")?t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):t).indexOf("@")&&-1===t.indexOf(":")?new s({functionName:t}):(e=(e=t.match(n=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&e[1]?e[1]:void 0,n=this.extractLocation(t.replace(n,"")),new s({functionName:e,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:t}))},this)},parseOpera:function(t){return!t.stacktrace||-1t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,n=t.message.split("\n"),r=[],o=2,i=n.length;o/,"$2").replace(/\([^)]*\)/g,"")||void 0,n=void 0===(e=n.match(/\(([^)]*)\)/)?n.replace(/^[^(]+\(([^)]*)\)$/,"$1"):e)||"[arguments not available]"===e?void 0:e.split(",");return new s({functionName:o,args:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}},t.exports=n(r)});function i(t){var o;return"string"==typeof t?t:(o=[],function t(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if("function"==typeof r||void 0===r)return;"[object Object]"===Object.prototype.toString.call(r)?t(r):o.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}}(t),o.join("&"))}function s(t){if(t)try{var e=o.parse(t),n=e&&e.splice(0,3)||[];return JSON.stringify(n)}catch(t){}}function c(t,e){this.reportInstance=e,this.errorArr=[],this.error(t)}function f(t,e){this.reject(t,e)}function u(t,e,n){this.report=e,this.globalVariable=t,this.error(n)}function p(t){this.conf=t||{}}function e(t){this.config=this.mergeConf(t),this.report=this.report(this.config),this.jsError(),this.promiseError()}c.getIntance=function(t,e){return c.instance=c.instance?c.instance:new c(t,e)},c.prototype.error=function(o){var i=this;n(o,"error",function(t){if(t=t||window.event){var e=t.target||t.srcElement;if(6!==r()&&7!==r()&&(e instanceof HTMLScriptElement||e instanceof HTMLLinkElement||e instanceof HTMLImageElement||e instanceof HTMLVideoElement||e instanceof HTMLAudioElement))return!1;var e={},n=i.reportInstance;e.title=t.message,e.msg=t.error&&t.error.stack||t.source+":"+t.message,e.from=location.href,e.lineno=t.lineno,e.colno=t.colno,e.stack=s(t.error),o.ERROE_POLL.includes(e.title)||(o.ERROE_POLL.push(e.title),n.report&&a(n.report)&&n.report(e))}function r(){var t=navigator.userAgent,e=-1