Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.24 KB | None | 0 0
  1. !function(t){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var o=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Info="info",t.Debug="debug",t.Critical="critical"}(e.Severity||(e.Severity={}))});r(o);o.Severity;var i=n(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),e.__SENTRY__=e.__SENTRY__||{shim:void 0,stack:[]},r.getGlobalRegistry=function(){return e.__SENTRY__},r.getGlobalStack=function(){return e.__SENTRY__.stack}});r(i);i.getGlobalRegistry,i.getGlobalStack;var a=Object.freeze({active:!1}),s=a,c=n(function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});try{r=s}catch(t){r={}}e.getDomainStack=function(){var t=r.active;if(t){var e=t.__SENTRY__;return e||(t.__SENTRY__=e={stack:[]}),e.stack}}});r(c);c.getDomainStack;var u=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.API_VERSION=1;var r=function(){function t(t){void 0===t&&(t=e.API_VERSION),this.version=t;var r=i.getGlobalStack();0===r.length&&r.push({scope:{},type:"process"})}return t.prototype.isOlderThan=function(t){return this.version<t},t.prototype.pushScope=function(t){var e=t||this.getCurrentClient();this.getStack().push({client:e,scope:this.getInitialScope(e),type:"local"})},t.prototype.popScope=function(){return void 0!==this.getStack().pop()},t.prototype.withScope=function(t,e){var r=t,n=e;t&&t.constructor&&t.call&&t.apply&&(r=t,n=e),e&&e.constructor&&e.call&&e.apply&&(r=e,n=t),this.pushScope(n);try{r()}finally{this.popScope()}},t.prototype.clearScope=function(){var t=this.getStackTop();t.scope=this.getInitialScope(t.client)},t.prototype.getCurrentClient=function(){return this.getStackTop().client},t.prototype.getStack=function(){return c.getDomainStack()||i.getGlobalStack()},t.prototype.getStackTop=function(){return this.getDomainStackTop()||this.getGlobalStackTop()},t.prototype.getGlobalStackTop=function(){var t=i.getGlobalStack();return t[t.length-1]},t.prototype.getDomainStackTop=function(){var t=c.getDomainStack();if(t){if(0===t.length){var e=this.getCurrentClient();t.push({client:e,scope:this.getInitialScope(e),type:"domain"})}return t[t.length-1]}},t.prototype.getInitialScope=function(t){try{return t&&t.getInitialScope()}catch(t){return{}}},t}();e.Shim=r});r(u);u.API_VERSION,u.Shim;var l=n(function(t,r){var n=e&&e.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=e&&e.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t};function a(t){t&&console.error(t)}function s(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,i=l().getStackTop();i&&i.client&&i.client[t]&&(n=i.client)[t].apply(n,o(e,[i.scope]))}function c(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i,a=l().getStackTop();a&&a.client&&a.client[t]&&(i=a.client)[t].apply(i,o(r,[a.scope])).then(function(t){e(void 0,t)}).catch(function(t){e(t)})}function l(){var t=i.getGlobalRegistry();return t.shim&&!t.shim.isOlderThan(u.API_VERSION)||(t.shim=new u.Shim),t.shim}Object.defineProperty(r,"__esModule",{value:!0}),r.pushScope=function(t){l().pushScope(t)},r.popScope=function(){l().popScope()},r.withScope=function(t,e){l().withScope(t,e)},r.clearScope=function(){l().clearScope()},r.getCurrentClient=function(){return l().getCurrentClient()},r.bindClient=function(t){var e=l(),r=e.getStackTop();r.client=t,r.scope=e.getInitialScope(t)},r.captureException=function(t,e){void 0===e&&(e=a),c("captureException",e,t)},r.captureMessage=function(t,e){void 0===e&&(e=a),c("captureMessage",e,t)},r.captureEvent=function(t,e){void 0===e&&(e=a),c("captureEvent",e,t)},r.addBreadcrumb=function(t){s("addBreadcrumb",t)},r.setUserContext=function(t){s("setContext",{user:t})},r.setTagsContext=function(t){s("setContext",{tags:t})},r.setExtraContext=function(t){s("setContext",{extra:t})},r._callOnClient=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.apply(void 0,o([t],e))}});r(l);l.pushScope,l.popScope,l.withScope,l.clearScope,l.getCurrentClient,l.bindClient,l.captureException,l.captureMessage,l.captureEvent,l.addBreadcrumb,l.setUserContext,l.setTagsContext,l.setExtraContext,l._callOnClient;var p=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Severity=o.Severity,e._callOnClient=l._callOnClient,e.addBreadcrumb=l.addBreadcrumb,e.bindClient=l.bindClient,e.captureMessage=l.captureMessage,e.captureException=l.captureException,e.captureEvent=l.captureEvent,e.clearScope=l.clearScope,e.getCurrentClient=l.getCurrentClient,e.popScope=l.popScope,e.pushScope=l.pushScope,e.setUserContext=l.setUserContext,e.setTagsContext=l.setTagsContext,e.setExtraContext=l.setExtraContext,e.withScope=l.withScope});r(p);var f=p.Severity,h=(p._callOnClient,p.addBreadcrumb),d=(p.bindClient,p.captureMessage),v=p.captureException,g=p.captureEvent,_=p.clearScope,b=p.getCurrentClient,m=p.popScope,y=p.pushScope,S=p.setUserContext,x=p.setTagsContext,E=p.setExtraContext,w=p.withScope,k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};function C(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new r(function(e){e(t.value)}).then(a,s)}c((n=n.apply(t,e||[])).next())})}function O(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=n[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var R=n(function(t,r){var n,o=e&&e.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=function(t){function e(e){var r=this.constructor,n=t.call(this,e)||this;return n.message=e,n.name=r.prototype.constructor.name,Object.setPrototypeOf(n,r.prototype),n}return o(e,t),e}(Error);r.SentryError=i});r(R);R.SentryError;var j=n(function(t,r){var n=e&&e.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=e&&e.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}};Object.defineProperty(r,"__esModule",{value:!0});var i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,a=function(){function t(t){"string"==typeof t?this.fromString(t):this.fromComponents(t),this.validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,r=e.host,n=e.path,o=e.pass,i=e.port;return e.protocol+"://"+e.user+(t&&o?":"+o:"")+"@"+r+(i?":"+i:"")+"/"+n},t.prototype.fromString=function(t){var e=i.exec(t);if(!e)throw new R.SentryError("Invalid DSN");var r=n(e.slice(1),6),o=r[0],a=r[1],s=r[2],c=void 0===s?"":s,u=r[3],l=r[4],p=void 0===l?"":l,f=r[5];Object.assign(this,{host:u,pass:c,path:f,port:p,protocol:o,user:a})},t.prototype.fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path},t.prototype.validate=function(){try{for(var t=o(["protocol","user","host","path"]),e=t.next();!e.done;e=t.next()){var r=e.value;if(!this[r])throw new R.SentryError("Invalid DSN: Missing "+r)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(n)throw n.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new R.SentryError('Invalid DSN: Unsupported protocol "'+this.protocol+'"');if(this.port&&isNaN(parseInt(this.port,10)))throw new R.SentryError('Invalid DSN: Invalid port number "'+this.port+'"');var n,i},t}();r.DSN=a});r(j);j.DSN;var T=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(e.SendStatus||(e.SendStatus={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(e.SendStatus||(e.SendStatus={}))});r(T);T.SendStatus;var P=n(function(t,r){var n=e&&e.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o=e&&e.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new r(function(e){e(t.value)}).then(a,s)}c((n=n.apply(t,e||[])).next())})},i=e&&e.__generator||function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=n[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=e&&e.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=e&&e.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t};Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function t(t,e){this.backend=new t(this),this.options=e,e.dsn&&(this.dsn=new j.DSN(e.dsn)),this.internalScope=this.getInitialScope()}return t.prototype.install=function(){return!!this.isEnabled()&&(void 0===this.installed&&(this.installed=this.getBackend().install()),this.installed)},t.prototype.captureException=function(t,e){return void 0===e&&(e=this.internalScope),o(this,void 0,void 0,function(){var r;return i(this,function(n){switch(n.label){case 0:return[4,this.getBackend().eventFromException(t)];case 1:return r=n.sent(),[4,this.captureEvent(r,e)];case 2:return n.sent(),[2]}})})},t.prototype.captureMessage=function(t,e){return void 0===e&&(e=this.internalScope),o(this,void 0,void 0,function(){var r;return i(this,function(n){switch(n.label){case 0:return[4,this.getBackend().eventFromMessage(t)];case 1:return r=n.sent(),[4,this.captureEvent(r,e)];case 2:return n.sent(),[2]}})})},t.prototype.captureEvent=function(t,e){return void 0===e&&(e=this.internalScope),o(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return[4,this.sendEvent(t,e)];case 1:return r.sent(),[2]}})})},t.prototype.addBreadcrumb=function(t,e){return void 0===e&&(e=this.internalScope),o(this,void 0,void 0,function(){var r,o,a,c,u,l,p,f,h;return i(this,function(i){switch(i.label){case 0:return r=this.getOptions(),o=r.shouldAddBreadcrumb,a=r.beforeBreadcrumb,c=r.afterBreadcrumb,u=r.maxBreadcrumbs,(l=void 0===u?30:u)<=0?[2]:(p=(new Date).getTime()/1e3,f=n({timestamp:p},t),o&&!o(f)?[2]:(h=a?a(f):f,[4,this.getBackend().storeBreadcrumb(h,e)]));case 1:return i.sent()&&(e.breadcrumbs=s(e.breadcrumbs,[h]).slice(-Math.max(0,Math.min(l,100)))),c&&c(h),[2]}})})},t.prototype.getDSN=function(){return this.dsn},t.prototype.getOptions=function(){return this.options},t.prototype.setContext=function(t,e){return void 0===e&&(e=this.internalScope),o(this,void 0,void 0,function(){var r;return i(this,function(o){switch(o.label){case 0:return[4,this.getBackend().storeContext(t,e)];case 1:return o.sent()&&(r=e.context,t.extra&&(r.extra=n({},r.extra,t.extra)),t.tags&&(r.tags=n({},r.tags,t.tags)),t.user&&(r.user=n({},r.user,t.user))),[2]}})})},t.prototype.getInitialScope=function(){return{breadcrumbs:[],context:{}}},t.prototype.getInternalScope=function(){return this.internalScope},t.prototype.getBackend=function(){return this.backend},t.prototype.isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this.dsn},t.prototype.prepareEvent=function(t,e){return o(this,void 0,void 0,function(){var r,o,a,s,c,u,l,p;return i(this,function(i){return r=this.getOptions(),o=r.environment,a=r.maxBreadcrumbs,s=void 0===a?30:a,c=r.release,void 0===(u=n({sdk:this.getSdkInfo()},t)).environment&&void 0!==o&&(u.environment=o),void 0===u.release&&void 0!==c&&(u.release=c),(l=e.breadcrumbs).length>0&&s>0&&(u.breadcrumbs=l.slice(-Math.max(0,Math.min(s,100)))),(p=e.context).extra&&(u.extra=n({},p.extra,t.extra)),p.tags&&(u.tags=n({},p.tags,t.tags)),p.user&&(u.user=n({},p.user,t.user)),[2,u]})})},t.prototype.sendEvent=function(t,e){return o(this,void 0,void 0,function(){var r,n,o,a,s,c,u,l;return i(this,function(i){switch(i.label){case 0:return this.isEnabled()?[4,this.prepareEvent(t,e)]:[2,T.SendStatus.Skipped];case 1:return r=i.sent(),n=this.getOptions(),o=n.shouldSend,a=n.beforeSend,s=n.afterSend,o&&!o(r)?[2,T.SendStatus.Skipped]:(c=a?a(r):r,[4,this.getBackend().sendEvent(c)]);case 2:return u=i.sent(),l=T.SendStatus.fromHttpCode(u),T.SendStatus.RateLimit,s&&s(c,l),[2,l]}})})},t}();r.FrontendBase=c});r(P);P.FrontendBase;var B=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e.LogLevel||(e.LogLevel={}))});r(B);B.LogLevel;var I=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=p;e.captureException=r.captureException,e.captureMessage=r.captureMessage,e.clearScope=r.clearScope,e.popScope=r.popScope,e.pushScope=r.pushScope,e.setExtraContext=r.setExtraContext,e.setTagsContext=r.setTagsContext,e.initAndBind=function(t,e){if(!p.getCurrentClient()){var r=new t(e);r.install(),p.bindClient(r)}}});r(I);I.captureException,I.captureMessage,I.clearScope,I.popScope,I.pushScope,I.setExtraContext,I.setTagsContext,I.initAndBind;var D=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FrontendBase=P.FrontendBase,e.DSN=j.DSN,e.SentryError=R.SentryError,e.LogLevel=B.LogLevel,e.initAndBind=I.initAndBind});r(D);var N=D.FrontendBase,F=(D.DSN,D.SentryError),M=(D.LogLevel,D.initAndBind),L=n(function(t,e){function r(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}function n(t,e){var n=[],o=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+o.slice(0,r(n,e)).join(".")+"]"}),function(i,a){if(n.length>0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?o.splice(s,1/0,i):o.push(i),~r(n,a)&&(a=e.call(this,i,a))}else n.push(a);return null==t?a instanceof Error?function(t){var e={stack:t.stack,message:t.message,name:t.name};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}(a):a:t.call(this,i,a)}}(t.exports=function(t,e,r,o){return JSON.stringify(t,n(e,o),r)}).getSerialize=n}),U=(L.getSerialize,"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{});function A(t){return void 0===t}function H(t){return"[object Object]"===Object.prototype.toString.call(t)}function q(t){return"[object String]"===Object.prototype.toString.call(t)}function z(t){return"[object Array]"===Object.prototype.toString.call(t)}function G(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function W(){if(!("fetch"in U))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function K(t,e){var r,n;if(A(t.length))for(r in t)$(t,r)&&e.call(null,r,t[r]);else if(n=t.length)for(r=0;r<n;r++)e.call(null,r,t[r])}function $(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function V(t){var e,r,n,o,i,a=[];if(!t||!t.tagName)return"";if(a.push(t.tagName.toLowerCase()),t.id&&a.push("#"+t.id),(e=t.className)&&q(e))for(r=e.split(/\s+/),i=0;i<r.length;i++)a.push("."+r[i]);var s=["type","name","title","alt"];for(i=0;i<s.length;i++)n=s[i],(o=t.getAttribute(n))&&a.push("["+n+'="'+o+'"]');return a.join("")}function J(t,e){return!!(!!t^!!e)}function X(t,e){if(J(t,e))return!1;var r,n,o=t.frames,i=e.frames;if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(r=o[a],n=i[a],r.filename!==n.filename||r.lineno!==n.lineno||r.colno!==n.colno||r.function!==n.function)return!1;return!0}var Y=3,Z=51200,Q=40;function tt(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function et(t){if("string"==typeof t)return t.length<=40?t:t.substr(0,39)+"…";if("number"==typeof t||"boolean"==typeof t||void 0===t)return t;var e=Object.prototype.toString.call(t);return"[object Object]"===e?"[Object]":"[object Array]"===e?"[Array]":"[object Function]"===e?t.name?"[Function: "+t.name+"]":"[Function]":t}var rt={isObject:function(t){return"object"==typeof t&&null!==t},isError:function(t){switch({}.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},isErrorEvent:function(t){return G()&&"[object ErrorEvent]"==={}.toString.call(t)},isUndefined:A,isFunction:function(t){return"function"==typeof t},isPlainObject:H,isString:q,isArray:z,isEmptyObject:function(t){if(!H(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},supportsErrorEvent:G,supportsFetch:W,supportsReferrerPolicy:function(){if(!W())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(t){return function(e,r){var n=t(e)||e;return r&&r(n)||n}},each:K,objectMerge:function(t,e){return e?(K(e,function(e,r){t[e]=r}),t):t},truncate:function(t,e){return!e||t.length<=e?t:t.substr(0,e)+"…"},objectFrozen:function(t){return!!Object.isFrozen&&Object.isFrozen(t)},hasKey:$,joinRegExp:function(t){for(var e,r=[],n=0,o=t.length;n<o;n++)q(e=t[n])?r.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&r.push(e.source);return new RegExp(r.join("|"),"i")},urlencode:function(t){var e=[];return K(t,function(t,r){e.push(encodeURIComponent(t)+"="+encodeURIComponent(r))}),e.join("&")},uuid4:function(){var t=U.crypto||U.msCrypto;if(!A(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},htmlTreeAsString:function(t){for(var e,r=[],n=0,o=0,i=" > ".length;t&&n++<5&&!("html"===(e=V(t))||n>1&&o+r.length*i+e.length>=80);)r.push(e),o+=e.length,t=t.parentNode;return r.reverse().join(" > ")},htmlElementAsString:V,isSameException:function(t,e){return!J(t,e)&&(t=t.values[0],e=e.values[0],t.type===e.type&&t.value===e.value&&(r=t.stacktrace,n=e.stacktrace,(!A(r)||!A(n))&&X(t.stacktrace,e.stacktrace)));var r,n},isSameStacktrace:X,parseUrl:function(t){if("string"!=typeof t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),r=e[6]||"",n=e[8]||"";return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+r+n}},fill:function(t,e,r,n){var o=t[e];t[e]=r(o),t[e].__raven__=!0,t[e].__orig__=o,n&&n.push([t,e,o])},safeJoin:function(t,e){if(!z(t))return"";for(var r=[],n=0;n<t.length;n++)try{r.push(String(t[n]))}catch(t){r.push("[value cannot be serialized]")}return r.join(e)},serializeException:function t(e,r,n){if(!H(e))return e;n="number"!=typeof(r="number"!=typeof r?Y:r)?Z:n;var o=function t(e,r){return 0===r?et(e):H(e)?Object.keys(e).reduce(function(n,o){return n[o]=t(e[o],r-1),n},{}):Array.isArray(e)?e.map(function(e){return t(e,r-1)}):et(e)}(e,r);return tt(L(o))>n?t(e,r-1):o},serializeKeysForMessage:function(t,e){if("number"==typeof t||"string"==typeof t)return t.toString();if(!Array.isArray(t))return"";if(0===(t=t.filter(function(t){return"string"==typeof t})).length)return"[object has no keys]";if(e="number"!=typeof e?Q:e,t[0].length>=e)return t[0];for(var r=t.length;r>0;r--){var n=t.slice(0,r).join(", ");if(!(n.length>e))return r===t.length?n:n+"…"}return""}},nt={collectWindowErrors:!0,debug:!1},ot="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},it=[].slice,at="?",st=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function ct(){return"undefined"==typeof document||null==document.location?"":document.location.href}nt.report=function(){var t,e,r=[],n=null,o=null,i=null;function a(t,e){var n=null;if(!e||nt.collectWindowErrors){for(var o in r)if(r.hasOwnProperty(o))try{r[o].apply(null,[t].concat(it.call(arguments,2)))}catch(t){n=t}if(n)throw n}}function s(e,r,n,o,s){var u=rt.isErrorEvent(s)?s.error:s,l=rt.isErrorEvent(e)?e.message:e;if(i)nt.computeStackTrace.augmentStackTraceWithInitialElement(i,r,n,l),c();else if(u&&rt.isError(u))a(nt.computeStackTrace(u),!0);else{var p,f={url:r,line:n,column:o},h=void 0;if("[object String]"==={}.toString.call(l))(p=l.match(st))&&(h=p[1],l=p[2]);f.func=at,a({name:h,message:l,url:ct(),stack:[f]},!0)}return!!t&&t.apply(this,arguments)}function c(){var t=i,e=n;n=null,i=null,o=null,a.apply(null,[t,!1].concat(e))}function u(t,e){var r=it.call(arguments,1);if(i){if(o===t)return;c()}var a=nt.computeStackTrace(t);if(i=a,o=t,n=r,setTimeout(function(){o===t&&c()},a.incomplete?2e3:0),!1!==e)throw t}return u.subscribe=function(n){e||(t=ot.onerror,ot.onerror=s,e=!0),r.push(n)},u.unsubscribe=function(t){for(var e=r.length-1;e>=0;--e)r[e]===t&&r.splice(e,1)},u.uninstall=function(){e&&(ot.onerror=t,e=!1,t=void 0),r=[]},u}(),nt.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,r,n,o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=t.stack.split("\n"),l=[],p=(/^(.*) is undefined$/.exec(t.message),0),f=u.length;p<f;++p){if(r=o.exec(u[p])){var h=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(e=c.exec(r[2]))&&(r[2]=e[1],r[3]=e[2],r[4]=e[3]),n={url:h?null:r[2],func:r[1]||at,args:h?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=i.exec(u[p]))n={url:r[2],func:r[1]||at,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=a.exec(u[p])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(e=s.exec(r[3]))?(r[3]=e[1],r[4]=e[2],r[5]=null):0!==p||r[5]||void 0===t.columnNumber||(l[0].column=t.columnNumber+1),n={url:r[3],func:r[1]||at,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func=at),l.push(n)}return l.length?{name:t.name,message:t.message,url:ct(),stack:l}:null}}function e(t,e,r,n){var o={url:e,line:r};if(o.url&&o.line){if(t.incomplete=!1,o.func||(o.func=at),t.stack.length>0&&t.stack[0].url===o.url){if(t.stack[0].line===o.line)return!1;if(!t.stack[0].line&&t.stack[0].func===o.func)return t.stack[0].line=o.line,!1}return t.stack.unshift(o),t.partial=!0,!0}return t.incomplete=!0,!1}function r(t,o){for(var i,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],u={},l=!1,p=r.caller;p&&!l;p=p.caller)if(p!==n&&p!==nt.report){if(a={url:null,func:at,line:null,column:null},p.name?a.func=p.name:(i=s.exec(p.toString()))&&(a.func=i[1]),void 0===a.func)try{a.func=i.input.substring(0,i.input.indexOf("{"))}catch(t){}u[""+p]?l=!0:u[""+p]=!0,c.push(a)}o&&c.splice(0,o);var f={name:t.name,message:t.message,url:ct(),stack:c};return e(f,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),f}function n(e,n){var o=null;n=null==n?0:+n;try{if(o=t(e))return o}catch(t){if(nt.debug)throw t}try{if(o=r(e,n+1))return o}catch(t){if(nt.debug)throw t}return{name:e.name,message:e.message,url:ct()}}return n.augmentStackTraceWithInitialElement=e,n.computeStackTraceFromStackProp=t,n}();var ut=nt;function lt(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function pt(t,e,r,n,o,i){return lt((a=lt(lt(e,t),lt(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function ft(t,e,r,n,o,i,a){return pt(e&r|~e&n,t,e,o,i,a)}function ht(t,e,r,n,o,i,a){return pt(e&n|r&~n,t,e,o,i,a)}function dt(t,e,r,n,o,i,a){return pt(e^r^n,t,e,o,i,a)}function vt(t,e,r,n,o,i,a){return pt(r^(e|~n),t,e,o,i,a)}function gt(t,e){var r,n,o,i,a;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var s=1732584193,c=-271733879,u=-1732584194,l=271733878;for(r=0;r<t.length;r+=16)n=s,o=c,i=u,a=l,c=vt(c=vt(c=vt(c=vt(c=dt(c=dt(c=dt(c=dt(c=ht(c=ht(c=ht(c=ht(c=ft(c=ft(c=ft(c=ft(c,u=ft(u,l=ft(l,s=ft(s,c,u,l,t[r],7,-680876936),c,u,t[r+1],12,-389564586),s,c,t[r+2],17,606105819),l,s,t[r+3],22,-1044525330),u=ft(u,l=ft(l,s=ft(s,c,u,l,t[r+4],7,-176418897),c,u,t[r+5],12,1200080426),s,c,t[r+6],17,-1473231341),l,s,t[r+7],22,-45705983),u=ft(u,l=ft(l,s=ft(s,c,u,l,t[r+8],7,1770035416),c,u,t[r+9],12,-1958414417),s,c,t[r+10],17,-42063),l,s,t[r+11],22,-1990404162),u=ft(u,l=ft(l,s=ft(s,c,u,l,t[r+12],7,1804603682),c,u,t[r+13],12,-40341101),s,c,t[r+14],17,-1502002290),l,s,t[r+15],22,1236535329),u=ht(u,l=ht(l,s=ht(s,c,u,l,t[r+1],5,-165796510),c,u,t[r+6],9,-1069501632),s,c,t[r+11],14,643717713),l,s,t[r],20,-373897302),u=ht(u,l=ht(l,s=ht(s,c,u,l,t[r+5],5,-701558691),c,u,t[r+10],9,38016083),s,c,t[r+15],14,-660478335),l,s,t[r+4],20,-405537848),u=ht(u,l=ht(l,s=ht(s,c,u,l,t[r+9],5,568446438),c,u,t[r+14],9,-1019803690),s,c,t[r+3],14,-187363961),l,s,t[r+8],20,1163531501),u=ht(u,l=ht(l,s=ht(s,c,u,l,t[r+13],5,-1444681467),c,u,t[r+2],9,-51403784),s,c,t[r+7],14,1735328473),l,s,t[r+12],20,-1926607734),u=dt(u,l=dt(l,s=dt(s,c,u,l,t[r+5],4,-378558),c,u,t[r+8],11,-2022574463),s,c,t[r+11],16,1839030562),l,s,t[r+14],23,-35309556),u=dt(u,l=dt(l,s=dt(s,c,u,l,t[r+1],4,-1530992060),c,u,t[r+4],11,1272893353),s,c,t[r+7],16,-155497632),l,s,t[r+10],23,-1094730640),u=dt(u,l=dt(l,s=dt(s,c,u,l,t[r+13],4,681279174),c,u,t[r],11,-358537222),s,c,t[r+3],16,-722521979),l,s,t[r+6],23,76029189),u=dt(u,l=dt(l,s=dt(s,c,u,l,t[r+9],4,-640364487),c,u,t[r+12],11,-421815835),s,c,t[r+15],16,530742520),l,s,t[r+2],23,-995338651),u=vt(u,l=vt(l,s=vt(s,c,u,l,t[r],6,-198630844),c,u,t[r+7],10,1126891415),s,c,t[r+14],15,-1416354905),l,s,t[r+5],21,-57434055),u=vt(u,l=vt(l,s=vt(s,c,u,l,t[r+12],6,1700485571),c,u,t[r+3],10,-1894986606),s,c,t[r+10],15,-1051523),l,s,t[r+1],21,-2054922799),u=vt(u,l=vt(l,s=vt(s,c,u,l,t[r+8],6,1873313359),c,u,t[r+15],10,-30611744),s,c,t[r+6],15,-1560198380),l,s,t[r+13],21,1309151649),u=vt(u,l=vt(l,s=vt(s,c,u,l,t[r+4],6,-145523070),c,u,t[r+11],10,-1120210379),s,c,t[r+2],15,718787259),l,s,t[r+9],21,-343485551),s=lt(s,n),c=lt(c,o),u=lt(u,i),l=lt(l,a);return[s,c,u,l]}function _t(t){var e,r="",n=32*t.length;for(e=0;e<n;e+=8)r+=String.fromCharCode(t[e>>5]>>>e%32&255);return r}function bt(t){var e,r=[];for(r[(t.length>>2)-1]=void 0,e=0;e<r.length;e+=1)r[e]=0;var n=8*t.length;for(e=0;e<n;e+=8)r[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return r}function mt(t){var e,r,n="";for(r=0;r<t.length;r+=1)e=t.charCodeAt(r),n+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return n}function yt(t){return unescape(encodeURIComponent(t))}function St(t){return function(t){return _t(gt(bt(t),8*t.length))}(yt(t))}function xt(t,e){return function(t,e){var r,n,o=bt(t),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=gt(o,8*t.length)),r=0;r<16;r+=1)i[r]=909522486^o[r],a[r]=1549556828^o[r];return n=gt(i.concat(bt(e)),512+8*e.length),_t(gt(a.concat(n),640))}(yt(t),yt(e))}var Et=function(t,e,r){return e?r?xt(e,t):mt(xt(e,t)):r?St(t):mt(St(t))};function wt(t){this.name="RavenConfigError",this.message=t}wt.prototype=new Error,wt.prototype.constructor=wt;var kt=wt,Ct=function(t,e,r){var n=t[e],o=t;if(e in t){var i="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),a=rt.safeJoin(t," "),s={level:i,logger:"console",extra:{arguments:t}};"assert"===e?!1===t[0]&&(a="Assertion failed: "+(rt.safeJoin(t.slice(1)," ")||"console.assert"),s.extra.arguments=t.slice(1),r&&r(a,s)):r&&r(a,s),n&&Function.prototype.apply.call(n,o,t)}}},Ot=rt.isError,Rt=rt.isObject,jt=rt.isPlainObject,Tt=rt.isErrorEvent,Pt=rt.isUndefined,Bt=rt.isFunction,It=rt.isString,Dt=rt.isArray,Nt=rt.isEmptyObject,Ft=rt.each,Mt=rt.objectMerge,Lt=rt.truncate,Ut=rt.objectFrozen,At=rt.hasKey,Ht=rt.joinRegExp,qt=rt.urlencode,zt=rt.uuid4,Gt=rt.htmlTreeAsString,Wt=rt.isSameException,Kt=rt.isSameStacktrace,$t=rt.parseUrl,Vt=rt.fill,Jt=rt.supportsFetch,Xt=rt.supportsReferrerPolicy,Yt=rt.serializeKeysForMessage,Zt=rt.serializeException,Qt=Ct,te="source protocol user pass host port path".split(" "),ee=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function re(){return+new Date}var ne="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},oe=ne.document,ie=ne.navigator;function ae(t,e){return Bt(e)?function(r){return e(r,t)}:e}function se(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!Pt(oe),this._hasNavigator=!Pt(ie),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:ne.SENTRY_RELEASE&&ne.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:Xt()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=ne.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=re(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=ne.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}se.prototype={VERSION:"3.23.3",debug:!1,TraceKit:ut,config:function(t,e){var r=this;if(r._globalServer)return this._logDebug("error","Error: Raven has already been configured"),r;if(!t)return r;var n=r._globalOptions;e&&Ft(e,function(t,e){"tags"===t||"extra"===t||"user"===t?r._globalContext[t]=e:n[t]=e}),r.setDSN(t),n.ignoreErrors.push(/^Script error\.?$/),n.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),n.ignoreErrors=Ht(n.ignoreErrors),n.ignoreUrls=!!n.ignoreUrls.length&&Ht(n.ignoreUrls),n.whitelistUrls=!!n.whitelistUrls.length&&Ht(n.whitelistUrls),n.includePaths=Ht(n.includePaths),n.maxBreadcrumbs=Math.max(0,Math.min(n.maxBreadcrumbs||100,100));var o={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},i=n.autoBreadcrumbs;"[object Object]"==={}.toString.call(i)?i=Mt(o,i):!1!==i&&(i=o),n.autoBreadcrumbs=i;var a={tryCatch:!0},s=n.instrument;return"[object Object]"==={}.toString.call(s)?s=Mt(a,s):!1!==s&&(s=a),n.instrument=s,ut.collectWindowErrors=!!n.collectWindowErrors,r},install:function(){var t=this;return t.isSetup()&&!t._isRavenInstalled&&(ut.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),t._globalOptions.captureUnhandledRejections&&t._attachPromiseRejectionHandler(),t._patchFunctionToString(),t._globalOptions.instrument&&t._globalOptions.instrument.tryCatch&&t._instrumentTryCatch(),t._globalOptions.autoBreadcrumbs&&t._instrumentBreadcrumbs(),t._drainPlugins(),t._isRavenInstalled=!0),Error.stackTraceLimit=t._globalOptions.stackTraceLimit,this},setDSN:function(t){var e=this._parseDSN(t),r=e.path.lastIndexOf("/"),n=e.path.substr(1,r);this._dsn=t,this._globalKey=e.user,this._globalSecret=e.pass&&e.pass.substr(1),this._globalProject=e.path.substr(r+1),this._globalServer=this._getGlobalServer(e),this._globalEndpoint=this._globalServer+"/"+n+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(t,e,r){return Bt(t)&&(r=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,r)},wrap:function(t,e,r){var n=this;if(Pt(e)&&!Bt(t))return t;if(Bt(t)&&(e=t,t=void 0),!Bt(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(t){return e}function o(){var o=[],i=arguments.length,a=!t||t&&!1!==t.deep;for(r&&Bt(r)&&r.apply(this,arguments);i--;)o[i]=a?n.wrap(t,arguments[i]):arguments[i];try{return e.apply(this,o)}catch(e){throw n._ignoreNextOnError(),n.captureException(e,t),e}}for(var i in e)At(e,i)&&(o[i]=e[i]);return o.prototype=e.prototype,e.__raven_wrapper__=o,o.__raven__=!0,o.__orig__=e,o},uninstall:function(){return ut.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(t){this._logDebug("debug","Raven caught unhandled promise rejection:",t),this.captureException(t.reason)},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),ne.addEventListener&&ne.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return ne.removeEventListener&&ne.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(t,e){if(e=Mt({trimHeadFrames:0},e||{}),Tt(t)&&t.error)t=t.error;else if(Ot(t))t=t;else{if(!jt(t))return this.captureMessage(t,Mt(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}));e=this._getCaptureExceptionOptionsFromPlainObject(e,t),t=new Error(e.message)}this._lastCapturedException=t;try{var r=ut.computeStackTrace(t);this._handleStackInfo(r,e)}catch(e){if(t!==e)throw e}return this},_getCaptureExceptionOptionsFromPlainObject:function(t,e){var r=Object.keys(e).sort(),n=Mt(t,{message:"Non-Error exception captured with keys: "+Yt(r),fingerprint:[Et(r)],extra:t.extra||{}});return n.extra.__serialized__=Zt(e),n},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){var r,n=Mt({message:t+=""},e=e||{});try{throw new Error(t)}catch(t){r=t}r.name=null;var o=ut.computeStackTrace(r),i=Dt(o.stack)&&o.stack[1],a=i&&i.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||e&&e.stacktrace){n.fingerprint=null==n.fingerprint?t:n.fingerprint,(e=Mt({trimHeadFrames:0},e)).trimHeadFrames+=1;var s=this._prepareFrames(o,e);n.stacktrace={frames:s.reverse()}}return n.fingerprint&&(n.fingerprint=Dt(n.fingerprint)?n.fingerprint:[n.fingerprint]),this._send(n),this}}},captureBreadcrumb:function(t){var e=Mt({timestamp:re()/1e3},t);if(Bt(this._globalOptions.breadcrumbCallback)){var r=this._globalOptions.breadcrumbCallback(e);if(Rt(r)&&!Nt(r))e=r;else if(!1===r)return this}return this._breadcrumbs.push(e),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(L(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){var e=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=ae(e,t),this},setBreadcrumbCallback:function(t){var e=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=ae(e,t),this},setShouldSendCallback:function(t){var e=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=ae(e,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var t=ne.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(oe){var e=(t=t||{}).eventId||this.lastEventId();if(!e)throw new kt("Missing eventId");var r=t.dsn||this._dsn;if(!r)throw new kt("Missing DSN");var n=encodeURIComponent,o="";o+="?eventId="+n(e),o+="&dsn="+n(r);var i=t.user||this._globalContext.user;i&&(i.name&&(o+="&name="+n(i.name)),i.email&&(o+="&email="+n(i.email)));var a=this._getGlobalServer(this._parseDSN(r)),s=oe.createElement("script");s.async=!0,s.src=a+"/api/embed/error-page/"+o,(oe.head||oe.body).appendChild(s)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var r,n;if(this._hasDocument){for(n in e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),oe.createEvent?(r=oe.createEvent("HTMLEvents")).initEvent(t,!0,!0):(r=oe.createEventObject()).eventType=t,e)At(e,n)&&(r[n]=e[n]);if(oe.createEvent)oe.dispatchEvent(r);else try{oe.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(t){}}},_breadcrumbEventHandler:function(t){var e=this;return function(r){if(e._keypressTimeout=null,e._lastCapturedEvent!==r){var n;e._lastCapturedEvent=r;try{n=Gt(r.target)}catch(t){n="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:n})}}},_keypressEventHandler:function(){var t=this;return function(e){var r;try{r=e.target}catch(t){return}var n=r&&r.tagName;if(n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)){var o=t._keypressTimeout;o||t._breadcrumbEventHandler("input")(e),clearTimeout(o),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},1e3)}}},_captureUrlChange:function(t,e){var r=$t(this._location.href),n=$t(e),o=$t(t);this._lastHref=e,r.protocol===n.protocol&&r.host===n.host&&(e=n.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_patchFunctionToString:function(){var t=this;t._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?t._originalFunctionToString.apply(this.__orig__,arguments):t._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var t=this,e=t._wrappedBuiltIns;function r(e){return function(r,n){for(var o=new Array(arguments.length),i=0;i<o.length;++i)o[i]=arguments[i];var a=o[0];return Bt(a)&&(o[0]=t.wrap(a)),e.apply?e.apply(this,o):e(o[0],o[1])}}var n=this._globalOptions.autoBreadcrumbs;function o(r){var o=ne[r]&&ne[r].prototype;o&&o.hasOwnProperty&&o.hasOwnProperty("addEventListener")&&(Vt(o,"addEventListener",function(e){return function(o,i,a,s){try{i&&i.handleEvent&&(i.handleEvent=t.wrap(i.handleEvent))}catch(t){}var c,u,l;return n&&n.dom&&("EventTarget"===r||"Node"===r)&&(u=t._breadcrumbEventHandler("click"),l=t._keypressEventHandler(),c=function(t){if(t){var e;try{e=t.type}catch(t){return}return"click"===e?u(t):"keypress"===e?l(t):void 0}}),e.call(this,o,t.wrap(i,void 0,c),a,s)}},e),Vt(o,"removeEventListener",function(t){return function(e,r,n,o){try{r=r&&(r.__raven_wrapper__?r.__raven_wrapper__:r)}catch(t){}return t.call(this,e,r,n,o)}},e))}Vt(ne,"setTimeout",r,e),Vt(ne,"setInterval",r,e),ne.requestAnimationFrame&&Vt(ne,"requestAnimationFrame",function(e){return function(r){return e(t.wrap(r))}},e);for(var i=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<i.length;a++)o(i[a])},_instrumentBreadcrumbs:function(){var t=this,e=this._globalOptions.autoBreadcrumbs,r=t._wrappedBuiltIns;function n(e,r){e in r&&Bt(r[e])&&Vt(r,e,function(e){return t.wrap(e)})}if(e.xhr&&"XMLHttpRequest"in ne){var o=XMLHttpRequest.prototype;Vt(o,"open",function(e){return function(r,n){return It(n)&&-1===n.indexOf(t._globalKey)&&(this.__raven_xhr={method:r,url:n,status_code:null}),e.apply(this,arguments)}},r),Vt(o,"send",function(e){return function(){var r=this;function o(){if(r.__raven_xhr&&4===r.readyState){try{r.__raven_xhr.status_code=r.status}catch(t){}t.captureBreadcrumb({type:"http",category:"xhr",data:r.__raven_xhr})}}for(var i=["onload","onerror","onprogress"],a=0;a<i.length;a++)n(i[a],r);return"onreadystatechange"in r&&Bt(r.onreadystatechange)?Vt(r,"onreadystatechange",function(e){return t.wrap(e,void 0,o)}):r.onreadystatechange=o,e.apply(this,arguments)}},r)}e.xhr&&Jt()&&Vt(ne,"fetch",function(e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;++n)r[n]=arguments[n];var o,i=r[0],a="GET";if("string"==typeof i?o=i:"Request"in ne&&i instanceof ne.Request?(o=i.url,i.method&&(a=i.method)):o=""+i,-1!==o.indexOf(t._globalKey))return e.apply(this,r);r[1]&&r[1].method&&(a=r[1].method);var s={method:a,url:o,status_code:null};return e.apply(this,r).then(function(e){return s.status_code=e.status,t.captureBreadcrumb({type:"http",category:"fetch",data:s}),e})}},r),e.dom&&this._hasDocument&&(oe.addEventListener?(oe.addEventListener("click",t._breadcrumbEventHandler("click"),!1),oe.addEventListener("keypress",t._keypressEventHandler(),!1)):(oe.attachEvent("onclick",t._breadcrumbEventHandler("click")),oe.attachEvent("onkeypress",t._keypressEventHandler())));var i=ne.chrome,a=!(i&&i.app&&i.app.runtime)&&ne.history&&history.pushState&&history.replaceState;if(e.location&&a){var s=ne.onpopstate;ne.onpopstate=function(){var e=t._location.href;if(t._captureUrlChange(t._lastHref,e),s)return s.apply(this,arguments)};var c=function(e){return function(){var r=arguments.length>2?arguments[2]:void 0;return r&&t._captureUrlChange(t._lastHref,r+""),e.apply(this,arguments)}};Vt(history,"pushState",c,r),Vt(history,"replaceState",c,r)}if(e.console&&"console"in ne&&console.log){var u=function(e,r){t.captureBreadcrumb({message:e,level:r.level,category:"console"})};Ft(["debug","info","warn","error","log"],function(t,e){Qt(console,e,u)})}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){var e=(t=this._wrappedBuiltIns.shift())[0],r=t[1],n=t[2];e[r]=n}},_restoreConsole:function(){for(var t in this._originalConsoleMethods)this._originalConsole[t]=this._originalConsoleMethods[t]},_drainPlugins:function(){var t=this;Ft(this._plugins,function(e,r){var n=r[0],o=r[1];n.apply(t,[t].concat(o))})},_parseDSN:function(t){var e=ee.exec(t),r={},n=7;try{for(;n--;)r[te[n]]=e[n]||""}catch(e){throw new kt("Invalid DSN: "+t)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new kt("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return r},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var r=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,r,e)},_prepareFrames:function(t,e){var r=this,n=[];if(t.stack&&t.stack.length&&(Ft(t.stack,function(e,o){var i=r._normalizeFrame(o,t.url);i&&n.push(i)}),e&&e.trimHeadFrames))for(var o=0;o<e.trimHeadFrames&&o<n.length;o++)n[o].in_app=!1;return n=n.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(t,e){var r={filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"};return t.url||(r.filename=e),r.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(r.filename)||/(Raven|TraceKit)\./.test(r.function)||/raven\.(min\.)?js$/.test(r.filename)),r},_processException:function(t,e,r,n,o,i){var a,s=(t?t+": ":"")+(e||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(s))&&(o&&o.length?(r=o[0].filename||r,o.reverse(),a={frames:o}):r&&(a={frames:[{filename:r,lineno:n,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(r))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(r)))){var c=Mt({exception:{values:[{type:t,value:e,stacktrace:a}]},culprit:r},i);this._send(c)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message&&(t.message=Lt(t.message,e)),t.exception){var r=t.exception.values[0];r.value=Lt(r.value,e)}var n=t.request;return n&&(n.url&&(n.url=Lt(n.url,this._globalOptions.maxUrlLength)),n.Referer&&(n.Referer=Lt(n.Referer,this._globalOptions.maxUrlLength))),t.breadcrumbs&&t.breadcrumbs.values&&this._trimBreadcrumbs(t.breadcrumbs),t},_trimBreadcrumbs:function(t){for(var e,r,n,o=["to","from","url"],i=0;i<t.values.length;++i)if((r=t.values[i]).hasOwnProperty("data")&&Rt(r.data)&&!Ut(r.data)){n=Mt({},r.data);for(var a=0;a<o.length;++a)e=o[a],n.hasOwnProperty(e)&&n[e]&&(n[e]=Lt(n[e],this._globalOptions.maxUrlLength));t.values[i].data=n}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&ie.userAgent&&(t.headers={"User-Agent":navigator.userAgent}),ne.location&&ne.location.href&&(t.url=ne.location.href),this._hasDocument&&oe.referrer&&(t.headers||(t.headers={}),t.headers.Referer=oe.referrer),t}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&re()-this._backoffStart<this._backoffDuration},_isRepeatData:function(t){var e=this._lastData;return!(!e||t.message!==e.message||t.culprit!==e.culprit)&&(t.stacktrace||e.stacktrace?Kt(t.stacktrace,e.stacktrace):!t.exception&&!e.exception||Wt(t.exception,e.exception))},_setBackoffState:function(t){if(!this._shouldBackoff()){var e=t.status;if(400===e||401===e||429===e){var r;try{r=Jt()?t.headers.get("Retry-After"):t.getResponseHeader("Retry-After"),r=1e3*parseInt(r,10)}catch(t){}this._backoffDuration=r||(2*this._backoffDuration||1e3),this._backoffStart=re()}}},_send:function(t){var e=this._globalOptions,r={project:this._globalProject,logger:e.logger,platform:"javascript"},n=this._getHttpData();n&&(r.request=n),t.trimHeadFrames&&delete t.trimHeadFrames,(t=Mt(r,t)).tags=Mt(Mt({},this._globalContext.tags),t.tags),t.extra=Mt(Mt({},this._globalContext.extra),t.extra),t.extra["session:duration"]=re()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),Object.keys(t).forEach(function(e){(null==t[e]||""===t[e]||Nt(t[e]))&&delete t[e]}),Bt(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!Nt(t)&&(Bt(e.shouldSendCallback)&&!e.shouldSendCallback(t)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",t):"number"==typeof e.sampleRate?Math.random()<e.sampleRate&&this._sendProcessedPayload(t):this._sendProcessedPayload(t)))},_getUuid:function(){return zt()},_sendProcessedPayload:function(t,e){var r=this,n=this._globalOptions;if(this.isSetup())if(t=this._trimPacket(t),this._globalOptions.allowDuplicates||!this._isRepeatData(t)){this._lastEventId=t.event_id||(t.event_id=this._getUuid()),this._lastData=t,this._logDebug("debug","Raven about to send:",t);var o={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(o.sentry_secret=this._globalSecret);var i=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:i?(i.type?i.type+": ":"")+i.value:t.message,event_id:t.event_id,level:t.level||"error"});var a=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:a,auth:o,data:t,options:n,onSuccess:function(){r._resetBackoff(),r._triggerEvent("success",{data:t,src:a}),e&&e()},onError:function(n){r._logDebug("error","Raven transport failed to send: ",n),n.request&&r._setBackoffState(n.request),r._triggerEvent("failure",{data:t,src:a}),n=n||new Error("Raven send failed (no additional details provided)"),e&&e(n)}})}else this._logDebug("warn","Raven dropped repeat event: ",t)},_makeRequest:function(t){var e=t.url+"?"+qt(t.auth),r=null,n={};if(t.options.headers&&(r=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(n=this._evaluateHash(t.options.fetchParameters)),Jt()){n.body=L(t.data);var o=Mt({},this._fetchDefaults),i=Mt(o,n);return r&&(i.headers=r),ne.fetch(e,i).then(function(e){if(e.ok)t.onSuccess&&t.onSuccess();else{var r=new Error("Sentry error code: "+e.status);r.request=e,t.onError&&t.onError(r)}}).catch(function(){t.onError&&t.onError(new Error("Sentry error code: network unavailable"))})}var a=ne.XMLHttpRequest&&new ne.XMLHttpRequest;a&&(("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)t.onSuccess&&t.onSuccess();else if(t.onError){var e=new Error("Sentry error code: "+a.status);e.request=a,t.onError(e)}}:(a=new XDomainRequest,e=e.replace(/^https?:/,""),t.onSuccess&&(a.onload=t.onSuccess),t.onError&&(a.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=a,t.onError(e)})),a.open("POST",e),r&&Ft(r,function(t,e){a.setRequestHeader(t,e)}),a.send(L(t.data))))},_evaluateHash:function(t){var e={};for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];e[r]="function"==typeof n?n():n}return e},_logDebug:function(t){this._originalConsoleMethods[t]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){Pt(e)?delete this._globalContext[t]:this._globalContext[t]=Mt(this._globalContext[t]||{},e)}},se.prototype.setUser=se.prototype.setUserContext,se.prototype.setReleaseContext=se.prototype.setRelease;var ce=se,ue="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},le=ue.Raven,pe=new ce;pe.noConflict=function(){return ue.Raven=le,pe},pe.afterLoad();var fe=pe,he=Object.freeze({default:fe,__moduleExports:fe}),de=(he||{}).default||he,ve=de._sendProcessedPayload.bind(de);function ge(t){var e=t&&t.exception||{};return e&&e.values&&(t.exception=e.values),t}var _e=function(){function t(t){this.frontend=t}return t.prototype.install=function(){var t=this.frontend.getDSN();if(!t)throw new F("Invariant exception: install() must not be called when disabled");return de.config(t.toString(),this.frontend.getOptions()).install(),de.setBreadcrumbCallback(function(t){return h(t),!1}),de._sendProcessedPayload=function(t){g(ge(t))},!0},t.prototype.eventFromException=function(t){return C(this,void 0,void 0,function(){var e,r;return O(this,function(n){e=de._sendProcessedPayload;try{return de._sendProcessedPayload=function(t){r=t},de.captureException(t),[2,ge(r)]}finally{de._sendProcessedPayload=e}return[2]})})},t.prototype.eventFromMessage=function(t){return C(this,void 0,void 0,function(){var e,r;return O(this,function(n){e=de._sendProcessedPayload;try{return de._sendProcessedPayload=function(t){r=t},de.captureMessage(t),[2,ge(r)]}finally{de._sendProcessedPayload=e}return[2]})})},t.prototype.sendEvent=function(t){return C(this,void 0,void 0,function(){return O(this,function(e){return[2,new Promise(function(e){ve(function(t){var e=t;return t.exception&&(e.exception={values:t.exception}),e}(t),function(t){e(t?500:200)})})]})})},t.prototype.storeBreadcrumb=function(){return!0},t.prototype.storeContext=function(){return!0},t}(),be=function(t){function e(e){return t.call(this,_e,e)||this}return function(t,e){function r(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.getSdkInfo=function(){return{name:"sentry-browser",version:de.VERSION}},e.prototype.wrap=function(t,e){return de.wrap(e,t)},e}(N);t.Severity=f,t.addBreadcrumb=h,t.captureMessage=d,t.captureException=v,t.captureEvent=g,t.clearScope=_,t.popScope=m,t.pushScope=y,t.setUserContext=S,t.setTagsContext=x,t.setExtraContext=E,t.withScope=w,t.BrowserBackend=_e,t.BrowserFrontend=be,t.init=function(t){M(be,t)},t.getCurrentFrontend=function(){return b()}}(this.Sentry=this.Sentry||{});
  2. //# sourceMappingURL=bundle.min.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement