Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@honeybadger-io/js

Package Overview
Dependencies
Maintainers
0
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honeybadger-io/js - npm Package Compare versions

Comparing version 6.9.3 to 6.10.0

dist/browser/feedback-form.d.ts

25

dist/browser/honeybadger-feedback-form.js

@@ -137,3 +137,26 @@ (function (window, document) {

Powered by
<img src="https://www.honeybadger.io/images/navbar_logo.svg?1670031500" width="100"/>
<svg class="honeybadger-logo" height="40" viewBox="0 0 190 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<style>
#logoText {
fill: var(--bs-brand);
}
[data-bs-theme=dark] #logoText {
fill: white;
}
#logoBolt, #logoBorder {
fill: var(--bs-brand);
}
[data-bs-theme=dark] #logoBolt {
fill:url(#_Linear1);fill-rule:nonzero;
}
</style>
<path id="logoText" d="M58.59,34.57L62.786,5.798L58.115,5.798L56.398,17.497L52.161,17.497L53.878,5.798L49.207,5.798L44.978,34.57L49.649,34.57L51.527,21.799L55.764,21.799L53.886,34.57L58.59,34.57ZM67.303,28.803C71.974,28.803 73.809,26.83 74.777,19.78C75.678,13.085 74.11,10.886 69.772,10.886C65.168,10.886 63.199,13.15 62.365,20.039C61.498,26.798 63.266,28.803 67.303,28.803ZM67.77,25.504C66.602,25.504 66.302,24.372 66.936,20.006C67.537,15.479 68.104,14.153 69.438,14.153C70.606,14.153 70.84,15.22 70.239,19.683C69.639,24.114 69.071,25.504 67.77,25.504ZM81.42,12.697C82.454,11.727 83.956,10.886 85.29,10.886C87.993,10.886 88.927,12.73 88.46,15.964L86.591,28.415L82.254,28.415L84.022,16.449C84.189,15.285 83.956,14.702 83.088,14.702C82.421,14.702 81.787,15.285 81.387,15.673L79.518,28.415L75.181,28.415L77.683,11.274L81.353,11.274L81.42,12.697ZM136.677,11.274L136.176,12.536C135.442,11.468 134.341,10.886 132.973,10.886C129.804,10.886 127.868,13.409 127.067,20.103C126.266,26.733 127.801,28.803 130.304,28.803C131.805,28.803 132.973,28.092 133.84,27.089L133.874,28.415L137.878,28.415L140.413,11.274L136.677,11.274ZM134.14,24.243C133.773,24.696 133.073,25.181 132.472,25.181C131.404,25.181 131.071,24.178 131.638,20.006C132.238,15.576 132.873,14.541 133.94,14.541C134.574,14.541 135.108,14.993 135.408,15.479L134.14,24.243ZM154.727,5.798L151.39,28.415L147.42,28.415L147.386,27.089C146.519,28.124 145.318,28.803 143.85,28.803C141.347,28.803 139.779,26.733 140.614,20.103C141.414,13.409 143.316,10.886 146.519,10.886C147.754,10.886 148.721,11.404 149.422,12.212L150.391,5.798L154.727,5.798ZM145.185,20.006C144.584,24.178 144.951,25.181 146.019,25.181C146.586,25.181 147.32,24.696 147.687,24.243L148.955,15.479C148.655,14.993 148.087,14.541 147.487,14.541C146.419,14.541 145.786,15.576 145.185,20.006ZM107.145,34.563L158.879,34.563C161.976,34.563 164.601,32.283 165.035,29.215L167.572,11.274L163.835,11.274L163.435,12.568C162.768,11.63 161.633,10.886 160.399,10.886C157.029,10.886 155.194,12.73 154.259,19.909C153.359,26.442 154.827,28.447 157.463,28.447C158.797,28.447 160.032,27.865 160.866,26.895L160.733,28.124C160.375,29.66 158.797,30.879 156.204,30.879L109.231,30.879C108.618,32.327 108.021,33.499 107.315,34.363C107.259,34.431 107.203,34.498 107.145,34.563ZM159.698,24.89C158.63,24.89 158.23,23.952 158.797,19.877C159.365,15.608 160.032,14.541 161.132,14.541C161.733,14.541 162.267,14.993 162.567,15.446L161.333,23.952C160.965,24.405 160.265,24.89 159.698,24.89ZM177.647,27.283C175.88,28.318 174.044,28.803 172.443,28.803C168.706,28.803 167.004,25.569 167.738,20.071C168.606,13.473 171.075,10.886 175.312,10.886C177.948,10.886 179.583,12.245 179.583,14.638C179.583,17.839 177.782,21.332 171.909,22.4C171.909,22.575 171.919,22.703 171.928,22.82C171.935,22.918 171.942,23.008 171.942,23.111C171.975,24.437 172.676,25.148 173.844,25.148C174.645,25.148 175.579,24.89 176.914,24.275L177.647,27.283ZM174.812,14.088C173.778,14.088 172.843,15.64 172.276,19.068C174.745,18.745 175.679,16.772 175.679,15.349C175.679,14.573 175.412,14.088 174.812,14.088ZM183.133,28.415L184.901,16.675C185.769,15.899 186.736,15.479 187.703,15.479C187.971,15.479 188.204,15.479 188.471,15.511L189.339,11.339C188.871,11.016 188.471,10.886 187.971,10.886C186.703,10.886 185.602,11.889 184.801,13.312L184.734,11.274L181.331,11.274L178.795,28.415L183.133,28.415ZM99.105,27.283C97.337,28.318 95.502,28.803 93.9,28.803C90.164,28.803 88.462,25.569 89.196,20.071C90.064,13.473 92.532,10.886 96.77,10.886C99.406,10.886 101.04,12.245 101.04,14.638C101.04,17.839 99.239,21.332 93.367,22.4C93.367,22.576 93.376,22.704 93.385,22.82C93.393,22.918 93.4,23.008 93.4,23.111C93.433,24.437 94.134,25.148 95.302,25.148C96.103,25.148 97.037,24.89 98.372,24.275L99.105,27.283ZM96.269,14.088C95.235,14.088 94.301,15.64 93.734,19.068C96.203,18.745 97.137,16.772 97.137,15.349C97.137,14.573 96.87,14.088 96.269,14.088ZM119.965,28.803C123.769,28.803 125.237,25.795 126.038,18.777C126.805,12.503 125.571,10.886 122.935,10.886C121.601,10.886 120.432,11.436 119.398,12.245L120.266,6.273L115.93,6.273L112.692,28.415L116.629,28.415L117.029,27.121C117.597,28.059 118.631,28.803 119.965,28.803ZM119.131,25.181C118.531,25.181 117.897,24.857 117.63,24.243L118.931,15.446C119.431,14.929 120.098,14.541 120.733,14.541C121.734,14.541 121.934,15.543 121.5,18.939C121.1,22.982 120.432,25.181 119.131,25.181ZM105.859,23.758L109.629,11.274L114.1,11.274L107.427,28.609C105.592,33.331 104.558,34.564 101.656,34.564L60.91,34.564L61.451,30.879L96.923,30.878L100.944,30.878C102.286,30.878 103.023,29.947 103.023,28.738L101.522,11.274L106.226,11.274L105.859,23.758Z"/>
<path id="logoBorder" d="M28.229,12.072L36.157,20L20,36.157L18.241,34.399L15.854,36.786L18.408,39.341C19.287,40.22 20.713,40.22 21.592,39.341L39.341,21.592C40.22,20.713 40.22,19.287 39.341,18.408L29.651,8.719L28.229,12.072ZM27.934,7.002L26.512,10.355L23.521,7.364L25.909,4.977L27.934,7.002ZM24.317,3.385L21.592,0.659C20.713,-0.22 19.287,-0.22 18.408,0.659L0.659,18.408C-0.22,19.287 -0.22,20.713 0.659,21.592L11.063,31.995L12.587,28.744L3.843,20L20,3.843L21.93,5.772L24.317,3.385ZM12.755,33.688L14.279,30.437L16.65,32.807L14.262,35.195L12.755,33.688Z"/>
<g>
<path id="logoBolt" d="M29.788,2.63C30.029,2.061 29.309,1.575 28.872,2.013L9.533,21.352L17.411,21.352L11.142,36.785C10.911,37.353 11.627,37.829 12.061,37.395L30.918,18.538L23.039,18.538L29.788,2.63Z"/>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(2.18719e-15,35.7195,-35.7195,2.18719e-15,20.2253,1.84375)"><stop offset="0" style="stop-color:white;stop-opacity:1"/><stop offset="0.46" style="stop-color:rgb(255,204,0);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(255,113,67);stop-opacity:1"/></linearGradient>
</defs>
</svg>
</a>

@@ -140,0 +163,0 @@ </p>

2

dist/browser/honeybadger.d.ts

@@ -12,4 +12,2 @@ import { Types, Client } from '@honeybadger-io/core';

showUserFeedbackForm(options?: Types.UserFeedbackFormOptions): Promise<void>;
private appendUserFeedbackScriptTag;
private isUserFeedbackScriptUrlAlreadyVisible;
private getUserFeedbackSubmitUrl;

@@ -16,0 +14,0 @@ }

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Honeybadger=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var r={},o={},i={},a={},c="<unknown>";var u=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/;var l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var f=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;var p=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;var h=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;var g=Object.freeze({__proto__:null,parse:function(e){return e.split("\n").reduce((function(e,t){var n=function(e){var t=u.exec(e);if(!t)return null;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=s.exec(t[2]);r&&null!=o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{file:n?null:t[2],methodName:t[1]||c,arguments:n?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}(t)||function(e){var t=l.exec(e);if(!t)return null;return{file:t[2],methodName:t[1]||c,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}}(t)||function(e){var t=f.exec(e);if(!t)return null;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=d.exec(t[3]);n&&null!=r&&(t[3]=r[1],t[4]=r[2],t[5]=null);return{file:t[3],methodName:t[1]||c,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}(t)||function(e){var t=h.exec(e);if(!t)return null;return{file:t[2],methodName:t[1]||c,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}}(t)||function(e){var t=p.exec(e);if(!t)return null;return{file:t[3],methodName:t[1]||c,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}}(t);return n&&e.push(n),e}),[])}}),y=n(g);!function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},i=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},a=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logDeprecatedMethod=t.globalThisOrWindow=t.isBrowserConfig=t.clone=t.formatCGIData=t.filterUrl=t.filter=t.generateStackTrace=t.endpoint=t.instrumentConsole=t.instrument=t.isErrorObject=t.makeNotice=t.logger=t.sanitize=t.shallowClone=t.runAfterNotifyHandlers=t.runBeforeNotifyHandlers=t.getSourceForBacktrace=t.getCauses=t.calculateBacktraceShift=t.DEFAULT_BACKTRACE_SHIFT=t.makeBacktrace=t.objectIsExtensible=t.objectIsEmpty=t.mergeNotice=t.merge=void 0;var c=o(y);function u(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function s(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=console),!e)return[];try{var r=c.parse(e).map((function(e){return{file:e.file,method:e.methodName,number:e.lineNumber,column:e.column}}));return t&&r.splice(0,f(r)),r}catch(e){return n.debug(e),[]}}function l(e){var t=!1,n=!1;return e.file&&(t=e.file.toLowerCase().indexOf("@honeybadger-io")>-1),e.method&&(n=e.method.toLowerCase().indexOf("@honeybadger-io")>-1),t||n}function f(e){for(var n=0,r=0;r<e.length;r++){var o=e[r];if(!l(o)){if(!o.file||"<anonymous>"===o.file){var i=e[r+1];if(i&&l(i)){n++;continue}}break}n++}return n||t.DEFAULT_BACKTRACE_SHIFT}function d(e){if("object"!=typeof e||null===e)return{};var t={};for(var n in e)t[n]=e[n];return t}function p(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function h(e,t,n){if(e&&t&&n&&t in e)try{for(var r=e[t];r&&r.__hb_original;)r=r.__hb_original;e[t]=n(r),e[t].__hb_original=r}catch(e){}}t.merge=u,t.mergeNotice=function(e,t){var n=u(e,t);return e.context&&t.context&&(n.context=u(e.context,t.context)),n},t.objectIsEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.objectIsExtensible=function(e){return"function"!=typeof Object.isExtensible||Object.isExtensible(e)},t.makeBacktrace=s,t.DEFAULT_BACKTRACE_SHIFT=3,t.calculateBacktraceShift=f,t.getCauses=function(e,t){if(e.cause){for(var n=[],r=e;n.length<3&&(r=r.cause);)n.push({class:r.name,message:r.message,backtrace:"string"==typeof r.stack?s(r.stack,!1,t):null});return n}return[]},t.getSourceForBacktrace=function(e,t){return i(this,void 0,void 0,(function(){var n,r,o,i;return a(this,(function(a){switch(a.label){case 0:if(n=[],!t||!e||!e.length)return[2,n];r=0,a.label=1;case 1:return e.length?(o=e.splice(0)[r],[4,t(o.file)]):[3,3];case 2:return i=a.sent(),n[r]=function(e,t,n){void 0===n&&(n=2);if(!e)return null;var r=e.split("\n");r.unshift("");for(var o=t+n,i={},a=t-n;a<=o;a++){var c=r[a];"string"==typeof c&&(i[a]=c)}return i}(i,o.number),r++,[3,1];case 3:return[2,n]}}))}))},t.runBeforeNotifyHandlers=function(e,t){for(var n=[],r=!0,o=0,i=t.length;o<i;o++){var a=(0,t[o])(e);!1===a&&(r=!1),n.push(a)}return{results:n,result:r}},t.runAfterNotifyHandlers=function(e,t,n){e&&e.afterNotify&&e.afterNotify(n,e);for(var r=0,o=t.length;r<o;r++)t[r](n,e);return!0},t.shallowClone=d,t.sanitize=function(e,t){void 0===t&&(t=8);var n=[];function r(e,r){if(void 0===r&&(r=0),r>=t)return"[DEPTH]";if(!function(e){var t=typeof e;return/function/.test(t)?"toJSON"===e.name:!/symbol/.test(t)&&null!==e&&("object"!=typeof e||void 0!==e.hasOwnProperty)}(e))return Object.prototype.toString.call(e);if(function(e){if(!e||"object"!=typeof e)return!1;for(var t=0;t<n.length;t++)if(n[t]===e)return!0;return n.push(e),!1}(e))return"[RECURSION]";if(Array.isArray(e))return e.map((function(e){return o(e,r+1)}));if("object"==typeof e){var i={};for(var a in e){var c=e[a];Object.prototype.hasOwnProperty.call(e,a)&&null!=a&&null!=c&&(i[a]=o(c,r+1))}return i}return e}function o(e,t){void 0===t&&(t=0);try{return r(e,t)}catch(e){return"[ERROR] ".concat(e)}}return o(e)},t.logger=function(e){var t=function(t){return function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if("debug"===t){if(!e.config.debug)return;t="log"}r.unshift("[Honeybadger]"),(n=e.config.logger)[t].apply(n,r)}};return{log:t("log"),info:t("info"),debug:t("debug"),warn:t("warn"),error:t("error")}},t.makeNotice=function(e){var t;if(e)if(p(e)){var n=e;t=u(e,{name:n.name,message:n.message,stack:n.stack,cause:n.cause})}else if("object"==typeof e)t=d(e);else{t={message:String(e)}}else t={};return t},t.isErrorObject=p,t.instrument=h;var g=!1,b=[];function v(e,t){for(var n=0;n<t.length;n++)if(-1!==e.toLowerCase().indexOf(t[n].toLowerCase()))return!0;return!1}function m(e,t){var n=Object.prototype.toString.call(t).slice(8,-1);return null!=t&&n===e}t.instrumentConsole=function(e,t){e&&e.console&&t&&(b.push(t),g||(g=!0,["debug","info","warn","error","log"].forEach((function(t){h(e.console,t,(function(n){return function(){var r=Array.prototype.slice.call(arguments);b.forEach((function(e){try{e(t,r)}catch(e){}})),"function"==typeof n&&Function.prototype.apply.call(n,e.console,arguments)}}))}))))},t.endpoint=function(e,t){var n=e.trim().replace(/\/$/,"");return t=t.trim().replace(/(^\/|\/$)/g,""),"".concat(n,"/").concat(t)},t.generateStackTrace=function(){try{throw new Error("")}catch(e){if(e.stack)return e.stack}for(var e=[],t=arguments.callee;t&&e.length<10;){/function(?:\s+([\w$]+))+\s*\(/.test(t.toString())?e.push(RegExp.$1||"<anonymous>"):e.push("<anonymous>");try{t=t.caller}catch(e){break}}return e.join("\n")},t.filter=function(e,t){if(m("Object",e)){m("Array",t)||(t=[]);var n=[];return function e(r){var o,i;if(m("Object",r)||m("Array",r)){if(-1!==n.indexOf(r))return"[CIRCULAR DATA STRUCTURE]";n.push(r)}if(m("Object",r)){for(o in i={},r)v(o,t)?i[o]="[FILTERED]":i[o]=e(r[o]);return i}return m("Array",r)?r.map((function(t){return e(t)})):m("Function",r)?"[FUNC]":r}(e)}},t.filterUrl=function(e,t){if(!t)return e;if("string"!=typeof e)return e;var n=e.split(/\?/,2)[1];if(!n)return e;var r=e;return n.split(/[&]\s?/).forEach((function(e){var n=e.split("=",2),o=n[0],i=n[1];v(o,t)&&(r=r.replace("".concat(o,"=").concat(i),"".concat(o,"=[FILTERED]")))})),r},t.formatCGIData=function(e,t){void 0===t&&(t="");var n={};return Object.keys(e).forEach((function(r){var o=t+r.replace(/\W/g,"_").toUpperCase();n[o]=e[r]})),n},t.clone=function(e){return JSON.parse(JSON.stringify(e))},t.isBrowserConfig=function(e){return void 0!==e.async},t.globalThisOrWindow=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window};var _={};t.logDeprecatedMethod=function(e,t,n,r){void 0===r&&(r=100);var o="".concat(t,"-").concat(n);if(void 0===_[o]&&(_[o]=0),_[o]%r==0){var i="Deprecation warning: ".concat(t," has been deprecated; please use ").concat(n," instead.");e.warn(i),_[o]++}else _[o]++}}(a),Object.defineProperty(i,"__esModule",{value:!0});var b=a;i.default=function(e){return void 0===e&&(e=(0,b.globalThisOrWindow)()),{shouldReloadOnConfigure:!1,load:function(t){function n(){return t.config.eventsEnabled}n()&&(0,b.instrumentConsole)(e,(function(e,r){if(n()&&0!==r.length){var o={severity:e};"string"==typeof r[0]?(o.message=r[0],o.args=r.slice(1)):o.args=r,t.event("log",o)}}))}}};var v={},m={};Object.defineProperty(m,"__esModule",{value:!0}),m.GlobalStore=void 0;var _=a,w=function(){function e(e,t){this.contents=e,this.breadcrumbsLimit=t}return e.create=function(t,n){return new e(t,n)},e.prototype.available=function(){return!0},e.prototype.getContents=function(e){var t=e?this.contents[e]:this.contents;return JSON.parse(JSON.stringify(t))},e.prototype.setContext=function(e){this.contents.context=(0,_.merge)(this.contents.context,e||{})},e.prototype.addBreadcrumb=function(e){this.contents.breadcrumbs.length==this.breadcrumbsLimit&&this.contents.breadcrumbs.shift(),this.contents.breadcrumbs.push(e)},e.prototype.clear=function(){this.contents.context={},this.contents.breadcrumbs=[]},e.prototype.run=function(e){return e()},e}();m.GlobalStore=w;var O={};var k=n(Object.freeze({__proto__:null,NdJson:class{static parse(e){return e.trim().split("\n").map((e=>JSON.parse(e)))}static stringify(e){return e.map((e=>JSON.stringify(e))).join("\n")}}})),E={};Object.defineProperty(E,"__esModule",{value:!0}),E.CONFIG=void 0,E.CONFIG={apiKey:null,endpoint:"https://api.honeybadger.io",environment:null,hostname:null,projectRoot:null,component:null,action:null,revision:null,reportData:null,breadcrumbsEnabled:!0,eventsEnabled:!1,maxBreadcrumbs:40,maxObjectDepth:8,logger:console,developmentEnvironments:["dev","development","test"],debug:!1,tags:null,enableUncaught:!0,enableUnhandledRejection:!0,afterUncaught:function(){return!0},filters:["creditcard","password"],__plugins:[]};var j=e&&e.__assign||function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)},x=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},N=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(O,"__esModule",{value:!0}),O.ThrottledEventsLogger=void 0;var T=k,S=a,C=E,P=function(){function e(e,t){this.config=e,this.transport=t,this.queue=[],this.isProcessing=!1,this.config=j(j({},C.CONFIG),e),this.logger=this.originalLogger()}return e.prototype.configure=function(e){for(var t in e)this.config[t]=e[t]},e.prototype.log=function(e){this.queue.push(e),this.isProcessing||this.processQueue()},e.prototype.processQueue=function(){var e=this;if(0!==this.queue.length&&!this.isProcessing){this.isProcessing=!0;var t=this.queue.slice();this.queue=[];var n=T.NdJson.stringify(t);this.makeHttpRequest(n).then((function(){setTimeout((function(){e.isProcessing=!1,e.processQueue()}),50)})).catch((function(t){e.logger.error("[Honeybadger] Error making HTTP request:",t),setTimeout((function(){e.isProcessing=!1,e.processQueue()}),50)}))}},e.prototype.makeHttpRequest=function(e){return x(this,void 0,void 0,(function(){var t=this;return N(this,(function(n){return[2,this.transport.send({headers:{"X-API-Key":this.config.apiKey,"Content-Type":"application/json"},method:"POST",endpoint:(0,S.endpoint)(this.config.endpoint,"/v1/events"),maxObjectDepth:this.config.maxObjectDepth,logger:this.logger},e).then((function(){t.config.debug&&t.logger.debug("[Honeybadger] Events sent successfully")})).catch((function(e){t.logger.error("[Honeybadger] Error sending events: ".concat(e.message))}))]}))}))},e.prototype.originalLogger=function(){var e,t,n,r,o;return{log:null!==(e=console.log.__hb_original)&&void 0!==e?e:console.log,info:null!==(t=console.info.__hb_original)&&void 0!==t?t:console.info,debug:null!==(n=console.debug.__hb_original)&&void 0!==n?n:console.debug,warn:null!==(r=console.warn.__hb_original)&&void 0!==r?r:console.warn,error:null!==(o=console.error.__hb_original)&&void 0!==o?o:console.error}},e}();O.ThrottledEventsLogger=P;var U=e&&e.__assign||function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U.apply(this,arguments)},H=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},R=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(v,"__esModule",{value:!0}),v.Client=void 0;var A=a,L=m,M=O,B=E,I=/,|\s+/,D=/\S/,F=function(){function e(e,t){void 0===e&&(e={}),this.__pluginsLoaded=!1,this.__store=null,this.__beforeNotifyHandlers=[],this.__afterNotifyHandlers=[],this.__notifier={name:"@honeybadger-io/core",url:"https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/core",version:"6.9.3"},this.config=U(U({},B.CONFIG),e),this.__initStore(),this.__transport=t,this.__eventsLogger=new M.ThrottledEventsLogger(this.config,this.__transport),this.logger=(0,A.logger)(this)}return e.prototype.getVersion=function(){return this.__notifier.version},e.prototype.getNotifier=function(){return this.__notifier},e.prototype.setNotifier=function(e){this.__notifier=e},e.prototype.configure=function(e){for(var t in void 0===e&&(e={}),e)this.config[t]=e[t];return this.__eventsLogger.configure(this.config),this.loadPlugins(),this},e.prototype.loadPlugins=function(){var e=this;(this.__pluginsLoaded?this.config.__plugins.filter((function(e){return e.shouldReloadOnConfigure})):this.config.__plugins).forEach((function(t){return t.load(e)})),this.__pluginsLoaded=!0},e.prototype.__initStore=function(){this.__store=new L.GlobalStore({context:{},breadcrumbs:[]},this.config.maxBreadcrumbs)},e.prototype.beforeNotify=function(e){return this.__beforeNotifyHandlers.push(e),this},e.prototype.afterNotify=function(e){return this.__afterNotifyHandlers.push(e),this},e.prototype.setContext=function(e){return"object"==typeof e&&null!=e&&this.__store.setContext(e),this},e.prototype.resetContext=function(e){return this.logger.warn("Deprecation warning: `Honeybadger.resetContext()` has been deprecated; please use `Honeybadger.clear()` instead."),this.__store.clear(),"object"==typeof e&&null!==e&&this.__store.setContext(e),this},e.prototype.clear=function(){return this.__store.clear(),this},e.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t=void 0),void 0===n&&(n=void 0);var o=this.makeNotice(e,t,n),i=o&&o.backtrace?o.backtrace.map((function(e){return(0,A.shallowClone)(e)})):null,a=this.__runPreconditions(o);return a instanceof Error?((0,A.runAfterNotifyHandlers)(o,this.__afterNotifyHandlers,a),!1):a instanceof Promise?(a.then((function(e){return e instanceof Error?((0,A.runAfterNotifyHandlers)(o,r.__afterNotifyHandlers,e),!1):r.__send(o,i)})),!0):(this.__send(o,i).catch((function(e){})),!0)},e.prototype.notifyAsync=function(e,t,n){var r=this;return void 0===t&&(t=void 0),void 0===n&&(n=void 0),new Promise((function(o,i){var a,c,u;a=e.afterNotify?e:t&&t.afterNotify?t:n&&n.afterNotify?n:t&&"object"==typeof t?t:n||(t={}),u=(c=a).afterNotify,c.afterNotify=function(e){if(null==u||u.call(r,e),e)return i(e);o()},r.notify(e,t,n)}))},e.prototype.makeNotice=function(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=void 0);var r=(0,A.makeNotice)(e);t&&"object"!=typeof t&&(t={name:String(t)});if(t&&(r=(0,A.mergeNotice)(r,t)),"object"==typeof n&&null!==n&&(r=(0,A.mergeNotice)(r,n)),(0,A.objectIsEmpty)(r))return null;var o=this.__store.getContents("context"),i=this.__constructTags(r.tags),a=this.__constructTags(o.tags),c=this.__constructTags(this.config.tags),u=i.concat(a).concat(c),s=u.filter((function(e,t){return u.indexOf(e)===t}));return r=(0,A.merge)(r,{name:r.name||"Error",context:(0,A.merge)(o,r.context),projectRoot:r.projectRoot||this.config.projectRoot,environment:r.environment||this.config.environment,component:r.component||this.config.component,action:r.action||this.config.action,revision:r.revision||this.config.revision,tags:s}),Array.isArray(r.backtrace)&&r.backtrace.length||("string"==typeof r.stack&&r.stack.trim()?r.backtrace=(0,A.makeBacktrace)(r.stack,!1,this.logger):(r.stack=(0,A.generateStackTrace)(),r.backtrace=(0,A.makeBacktrace)(r.stack,!0,this.logger))),r},e.prototype.addBreadcrumb=function(e,t){if(this.config.breadcrumbsEnabled){var n=(0,A.shallowClone)((t=t||{}).metadata),r=t.category||"custom",o=(new Date).toISOString();return this.__store.addBreadcrumb({category:r,message:e,metadata:n,timestamp:o}),this}},e.prototype.logEvent=function(e){(0,A.logDeprecatedMethod)(this.logger,"Honeybadger.logEvent","Honeybadger.event"),this.event("log",e)},e.prototype.event=function(e,t){var n;"object"==typeof e&&(t=e,e=null!==(n=e.event_type)&&void 0!==n?n:void 0),this.__eventsLogger.log(U({event_type:e,ts:(new Date).toISOString()},t))},e.prototype.__getBreadcrumbs=function(){return this.__store.getContents("breadcrumbs").slice()},e.prototype.__getContext=function(){return this.__store.getContents("context")},e.prototype.__developmentMode=function(){return!0!==this.config.reportData&&(this.config.environment&&this.config.developmentEnvironments.includes(this.config.environment))},e.prototype.__buildPayload=function(e){var t=(0,A.filter)(e.headers,this.config.filters)||{},n=(0,A.filter)(U(U({},e.cgiData),(0,A.formatCGIData)(t,"HTTP_")),this.config.filters);return{notifier:this.__notifier,breadcrumbs:{enabled:!!this.config.breadcrumbsEnabled,trail:e.__breadcrumbs||[]},error:{class:e.name,message:e.message,backtrace:e.backtrace,fingerprint:e.fingerprint,tags:e.tags,causes:(0,A.getCauses)(e,this.logger)},request:{url:(0,A.filterUrl)(e.url,this.config.filters),component:e.component,action:e.action,context:e.context,cgi_data:n,params:(0,A.filter)(e.params,this.config.filters)||{},session:(0,A.filter)(e.session,this.config.filters)||{}},server:{project_root:e.projectRoot,environment_name:e.environment,revision:e.revision,hostname:this.config.hostname,time:(new Date).toUTCString()},details:e.details||{}}},e.prototype.__constructTags=function(e){return e?e.toString().split(I).filter((function(e){return D.test(e)})):[]},e.prototype.__runPreconditions=function(e){var t=this,n=null;e||(this.logger.debug("failed to build error report"),n=new Error("failed to build error report")),!1===this.config.reportData&&(this.logger.debug("skipping error report: honeybadger.js is disabled",e),n=new Error("honeybadger.js is disabled")),this.__developmentMode()&&(this.logger.log("honeybadger.js is in development mode; the following error report will be sent in production.",e),n=new Error("honeybadger.js is in development mode")),this.config.apiKey||(this.logger.warn("could not send error report: no API key has been configured",e),n=new Error("missing API key"));var r=(0,A.runBeforeNotifyHandlers)(e,this.__beforeNotifyHandlers);return n||r.result||(this.logger.debug("skipping error report: one or more beforeNotify handlers returned false",e),n=new Error("beforeNotify handlers returned false")),r.results.length&&r.results.some((function(e){return e instanceof Promise}))?Promise.allSettled(r.results).then((function(r){if(!n&&r.some((function(e){return"rejected"===e.status||!1===e.value}))&&(t.logger.debug("skipping error report: one or more beforeNotify handlers returned false",e),n=new Error("beforeNotify handlers (async) returned false")),n)return n})):n},e.prototype.__send=function(e,t){var n=this;return this.config.breadcrumbsEnabled?(this.addBreadcrumb("Honeybadger Notice",{category:"notice",metadata:{message:e.message,name:e.name,stack:e.stack}}),e.__breadcrumbs=this.__store.getContents("breadcrumbs")):e.__breadcrumbs=[],(0,A.getSourceForBacktrace)(t,this.__getSourceFileHandler).then((function(t){return H(n,void 0,void 0,(function(){var n;return R(this,(function(r){return t.forEach((function(t,n){e.backtrace[n].source=t})),n=this.__buildPayload(e),[2,this.__transport.send({headers:{"X-API-Key":this.config.apiKey,"Content-Type":"application/json",Accept:"text/json, application/json"},method:"POST",endpoint:(0,A.endpoint)(this.config.endpoint,"/v1/notices/js"),maxObjectDepth:this.config.maxObjectDepth,logger:this.logger},n)]}))}))})).then((function(t){if(201!==t.statusCode)return(0,A.runAfterNotifyHandlers)(e,n.__afterNotifyHandlers,new Error("Bad HTTP response: ".concat(t.statusCode))),n.logger.warn("Error report failed: unknown response from server. code=".concat(t.statusCode)),!1;var r=JSON.parse(t.body).id;return(0,A.runAfterNotifyHandlers)((0,A.merge)(e,{id:r}),n.__afterNotifyHandlers),n.logger.info("Error report sent ⚡ https://app.honeybadger.io/notice/".concat(r)),!0})).catch((function(t){return n.logger.error("Error report failed: an unknown error occurred.","message=".concat(t.message)),(0,A.runAfterNotifyHandlers)(e,n.__afterNotifyHandlers,t),!1}))},e}();v.Client=F;var W={};Object.defineProperty(W,"__esModule",{value:!0}),function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},c=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},u=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Plugins=t.Util=t.Types=t.Client=void 0;var s=u(i),l=v;Object.defineProperty(t,"Client",{enumerable:!0,get:function(){return l.Client}}),o(m,t),t.Types=c(W),t.Util=c(a),t.Plugins={events:s.default}}(o);var q={};Object.defineProperty(q,"__esModule",{value:!0}),q.preferCatch=q.encodeCookie=q.decodeCookie=q.localURLPathname=q.parseURL=q.nativeFetch=q.stringTextOfElement=q.stringSelectorOfElement=q.stringNameOfElement=void 0;var G=o.Util.globalThisOrWindow;function K(e){if(!e||!e.tagName)return"";var t=e.tagName.toLowerCase();if("html"===t)return"";e.id&&(t+="#".concat(e.id));var n=e.getAttribute("class");n&&n.split(/\s+/).forEach((function(e){t+=".".concat(e)})),["alt","name","title","type"].forEach((function(n){var r=e.getAttribute(n);r&&(t+="[".concat(n,'="').concat(r,'"]'))}));var r=function(e){try{var t=e.parentNode.childNodes,n=[];return Array.prototype.forEach.call(t,(function(t){t.tagName&&t.tagName===e.tagName&&n.push(t)})),n}catch(e){return[]}}(e);return r.length>1&&(t+=":nth-child(".concat(Array.prototype.indexOf.call(r,e)+1,")")),t}function J(e){return-1!==e.toString().indexOf("native")}function $(e){var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)||{};return{protocol:t[2],host:t[4],pathname:t[5]}}q.stringNameOfElement=K,q.stringSelectorOfElement=function e(t){var n=K(t);if(t.parentNode&&t.parentNode.tagName){var r=e(t.parentNode);if(r.length>0)return"".concat(r," > ").concat(n)}return n},q.stringTextOfElement=function(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),function(e,t){e.length>t&&(e=e.substr(0,t)+"...");return e}(t.trim(),300)},q.nativeFetch=function(){var e=G();if(!e.fetch)return!1;if(J(e.fetch))return!0;if("undefined"==typeof document)return!1;try{var t=document.createElement("iframe");t.style.display="none",document.head.appendChild(t);var n=t.contentWindow.fetch&&J(t.contentWindow.fetch);return document.head.removeChild(t),n}catch(e){console&&console.warn&&console.warn("failed to detect native fetch via iframe: "+e)}return!1},q.parseURL=$,q.localURLPathname=function(e){var t=$(e),n=$(document.URL);return t.host&&t.protocol?t.protocol===n.protocol&&t.host===n.host?t.pathname:"".concat(t.protocol,"://").concat(t.host).concat(t.pathname):t.pathname},q.decodeCookie=function(e){var t={};return e.split(/[;,]\s?/).forEach((function(e){var n=e.split("=",2),r=n[0],o=n[1];t[r]=o})),t},q.encodeCookie=function(e){if("object"==typeof e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join(";")}},q.preferCatch=function(){var e=!0;if("undefined"==typeof window)return e;if(window.atob||(e=!1),window.ErrorEvent)try{0===new window.ErrorEvent("").colno&&(e=!1)}catch(e){}return e}();var X={};Object.defineProperty(X,"__esModule",{value:!0}),X.onError=X.ignoreNextOnError=void 0;var z,V=o,Q=V.Util.instrument,Y=V.Util.makeNotice,Z=V.Util.globalThisOrWindow,ee=0;X.ignoreNextOnError=function(){ee+=1,clearTimeout(z),z=setTimeout((function(){ee=0}))},X.onError=function(e){return void 0===e&&(e=Z()),{load:function(t){Q(e,"onerror",(function(n){return function(r,o,i,a,c){return function(e,n,r,o,i){if(t.logger.debug("window.onerror callback invoked",arguments),ee>0)return t.logger.debug("Ignoring window.onerror (error likely reported earlier)",arguments),void(ee-=1);if(0===r&&/Script error\.?/.test(e))t.config.enableUncaught&&t.logger.warn("Ignoring cross-domain script error: enable CORS to track these types of errors",arguments);else{var a=Y(i);a.name||(a.name="window.onerror"),a.message||(a.message=e),a.stack||(a.stack=[a.message,"\n at ? (",n||"unknown",":",r||0,":",o||0,")"].join("")),t.addBreadcrumb("window.onerror"!==a.name&&a.name?"window.onerror: ".concat(a.name):"window.onerror",{category:"error",metadata:{name:a.name,message:a.message,stack:a.stack}}),t.config.enableUncaught&&t.notify(a)}}(r,o,i,a,c),"function"==typeof n&&n.apply(e,arguments)}}))}}};var te={};Object.defineProperty(te,"__esModule",{value:!0});var ne=o,re=ne.Util.instrument,oe=ne.Util.globalThisOrWindow;te.default=function(e){return void 0===e&&(e=oe()),{load:function(t){t.config.enableUnhandledRejection&&re(e,"onunhandledrejection",(function(e){return function(n){!function(e){var n;if(t.logger.debug("window.onunhandledrejection callback invoked",arguments),t.config.enableUnhandledRejection){var r=e.reason;if(r instanceof Error){var o="".concat(r.message,"\n at ? (").concat("unknown",":").concat(0,")"),i=r.stack||o,a={name:r.name,message:"UnhandledPromiseRejectionWarning: ".concat(r),stack:i};return t.addBreadcrumb("window.onunhandledrejection: ".concat(a.name),{category:"error",metadata:a}),void t.notify(a)}var c="string"==typeof r?r:null!==(n=JSON.stringify(r))&&void 0!==n?n:"Unspecified reason";t.notify({name:"window.onunhandledrejection",message:"UnhandledPromiseRejectionWarning: ".concat(c)})}}(n),"function"==typeof e&&e.apply(this,arguments)}}))}}};var ie={};Object.defineProperty(ie,"__esModule",{value:!0});var ae=o,ce=q,ue=ae.Util.sanitize,se=ae.Util.instrument,le=ae.Util.instrumentConsole,fe=ae.Util.globalThisOrWindow;ie.default=function(e){return void 0===e&&(e=fe()),{load:function(t){function n(e){return!0===t.config.breadcrumbsEnabled||(e?!0===t.config.breadcrumbsEnabled[e]:!1!==t.config.breadcrumbsEnabled)}n("console")&&le(e,(function(e,n){var r,o=(r=n,Array.isArray(r)?r.map((function(e){try{return String(e)}catch(e){return"[unknown]"}})).join(" "):""),i={category:"log",metadata:{level:e,arguments:ue(n,3)}};t.addBreadcrumb(o,i)})),n("dom")&&"function"==typeof e.addEventListener&&e.addEventListener("click",(function(e){var n,r,o;try{n=(0,ce.stringNameOfElement)(e.target),r=(0,ce.stringSelectorOfElement)(e.target),o=(0,ce.stringTextOfElement)(e.target)}catch(e){n="UI Click",r="[unknown]",o="[unknown]"}0!==n.length&&t.addBreadcrumb(n,{category:"ui.click",metadata:{selector:r,text:o,event:e}})}),!!e.location),n("network")&&"undefined"!=typeof XMLHttpRequest&&(se(XMLHttpRequest.prototype,"open",(function(e){return function(){var t=arguments[1],n="string"==typeof t?t:String(t),r="string"==typeof arguments[0]?arguments[0].toUpperCase():arguments[0],o="".concat(r," ").concat((0,ce.localURLPathname)(n));this.__hb_xhr={type:"xhr",method:r,url:n,message:o},"function"==typeof e&&e.apply(this,arguments)}})),se(XMLHttpRequest.prototype,"send",(function(e){return function(){var n=this;function r(){if(4===n.readyState){var e=void 0;n.__hb_xhr&&(n.__hb_xhr.status_code=n.status,e=n.__hb_xhr.message,delete n.__hb_xhr.message),t.addBreadcrumb(e||"XMLHttpRequest",{category:"request",metadata:n.__hb_xhr})}}"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?se(n,"onreadystatechange",(function(e){return function(){r(),"function"==typeof e&&e.apply(this,arguments)}})):n.onreadystatechange=r,"function"==typeof e&&e.apply(n,arguments)}}))),n("network")&&(0,ce.nativeFetch)()&&se(e,"fetch",(function(n){return function(){var r,o=arguments[0],i="GET";"string"==typeof o?r=o:"Request"in e&&o instanceof Request?(r=o.url,o.method&&(i=o.method)):r=String(o),arguments[1]&&arguments[1].method&&(i=arguments[1].method),"string"==typeof i&&(i=i.toUpperCase());var a="".concat(i," ").concat("undefined"==typeof document?r:(0,ce.localURLPathname)(r)),c={type:"fetch",method:i,url:r};return n.apply(this,arguments).then((function(e){return c.status_code=e.status,t.addBreadcrumb(a,{category:"request",metadata:c}),e})).catch((function(e){throw t.addBreadcrumb("fetch error",{category:"error",metadata:c}),e}))}})),function(){if(n("navigation")&&null!=e.location){var r=e.location.href;"function"==typeof addEventListener&&addEventListener("popstate",(function(t){o(r,e.location.href)})),void 0!==e.history&&(se(e.history,"pushState",i),se(e.history,"replaceState",i))}function o(e,n){r=n,t.addBreadcrumb("Page changed",{category:"navigation",metadata:{from:e,to:n}})}function i(e){return function(){var t=arguments.length>2?arguments[2]:void 0;return t&&o(r,String(t)),e.apply(this,arguments)}}}()}}};var de={};Object.defineProperty(de,"__esModule",{value:!0});var pe=o,he=pe.Util.instrument,ge=pe.Util.globalThisOrWindow;de.default=function(e){return void 0===e&&(e=ge()),{load:function(t){!function(){function n(e){return function(n){return function(r,o){if("function"==typeof r){var i=Array.prototype.slice.call(arguments,2);return r=t.__wrap(r,e),n((function(){r.apply(void 0,i)}),o)}return n(r,o)}}}he(e,"setTimeout",n({component:"setTimeout"})),he(e,"setInterval",n({component:"setInterval"}))}()}}};var ye={};Object.defineProperty(ye,"__esModule",{value:!0});var be=o,ve=be.Util.instrument,me=be.Util.globalThisOrWindow;ye.default=function(e){return void 0===e&&(e=me()),{load:function(t){["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"].forEach((function(n){var r=e[n]&&e[n].prototype;r&&Object.prototype.hasOwnProperty.call(r,"addEventListener")&&(ve(r,"addEventListener",(function(e){var r={component:"".concat(n,".prototype.addEventListener")};return function(n,o,i,a){try{o&&null!=o.handleEvent&&(o.handleEvent=t.__wrap(o.handleEvent,r))}catch(e){t.logger.error(e)}return e.call(this,n,t.__wrap(o,r),i,a)}})),ve(r,"removeEventListener",(function(e){return function(n,r,o,i){return e.call(this,n,r,o,i),e.call(this,n,t.__wrap(r),o,i)}})))}))}}};var _e={},we=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Oe=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BrowserTransport=void 0;var ke=o,Ee=ke.Util.sanitize,je=ke.Util.globalThisOrWindow;var xe=function(){function e(e){void 0===e&&(e={}),this.headers={},this.headers=e}return e.prototype.defaultHeaders=function(){return this.headers},e.prototype.send=function(e,t){return we(this,void 0,void 0,(function(){var n,r,o,i,a;return Oe(this,(function(c){switch(c.label){case 0:return n=e.headers?(u=e.headers,Object.entries(u)):[],r=this.defaultHeaders(),n.forEach((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&(r[String(t)]=String(n))})),o={method:e.method,headers:r},"POST"===e.method&&t&&(o.body="string"==typeof t?t:JSON.stringify(Ee(t,e.maxObjectDepth))),[4,je().fetch(e.endpoint,o)];case 1:return[4,(i=c.sent()).text()];case 2:return a=c.sent(),[2,Promise.resolve({statusCode:i.status,body:a})]}var u}))}))},e}();return _e.BrowserTransport=xe,function(t){var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))},c=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},u=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Types=t.getUserFeedbackScriptUrl=void 0;var s=o,l=q,f=X,d=u(te),p=u(ie),h=u(de),g=u(ye),y=_e,b=s.Util.merge,v=s.Util.filter,m=s.Util.objectIsExtensible,_=s.Util.globalThisOrWindow,w=function(){var e=_(),t="";return null!=e.location&&(t=e.location.protocol+"//"+e.location.host),t};t.getUserFeedbackScriptUrl=function(e){var t=e.split(".").slice(0,2).join(".");return"https://js.honeybadger.io/v".concat(t,"/honeybadger-feedback-form.js")};var O=function(n){function o(e){void 0===e&&(e={});var t=n.call(this,i({userFeedbackEndpoint:"https://api.honeybadger.io/v2/feedback",async:!0,maxErrors:null,projectRoot:w()},e),new y.BrowserTransport({"User-Agent":E()}))||this;return t.__errorsSent=0,t.__lastWrapErr=void 0,t.__lastNoticeId=void 0,t.__beforeNotifyHandlers=[function(e){return t.__exceedsMaxErrors()?(t.logger.debug("Dropping notice: max errors exceeded",e),!1):(e&&!e.url&&"undefined"!=typeof document&&(e.url=document.URL),t.__incrementErrorsCount(),!0)}],t.__afterNotifyHandlers=[function(e,n){n&&(t.__lastNoticeId=n.id)}],t}return r(o,n),o.prototype.configure=function(e){return void 0===e&&(e={}),n.prototype.configure.call(this,e)},o.prototype.resetMaxErrors=function(){return this.__errorsSent=0},o.prototype.factory=function(e){var t=new o(e);return t.setNotifier(this.getNotifier()),t},o.prototype.checkIn=function(e){throw new Error("Honeybadger.checkIn() is not supported on the browser")},o.prototype.showUserFeedbackForm=function(e){return void 0===e&&(e={}),a(this,void 0,void 0,(function(){var t;return c(this,(function(n){return this.config&&this.config.apiKey?this.__lastNoticeId?void 0===(t=_()).document?(this.logger.debug("global.document is undefined. Cannot attach script"),[2]):this.isUserFeedbackScriptUrlAlreadyVisible()?(this.logger.debug("User feedback form is already visible"),[2]):(t.honeybadgerUserFeedbackOptions=i(i({},e),{apiKey:this.config.apiKey,endpoint:this.config.userFeedbackEndpoint,noticeId:this.__lastNoticeId}),this.appendUserFeedbackScriptTag(t,e),[2]):(this.logger.debug("Can't show user feedback form without a notice already reported"),[2]):(this.logger.debug("Client not initialized"),[2])}))}))},o.prototype.appendUserFeedbackScriptTag=function(t,n){void 0===n&&(n={});var r=t.document.createElement("script");r.setAttribute("src",this.getUserFeedbackSubmitUrl()),r.setAttribute("async","true"),n.onLoad&&(r.onload=n.onLoad),(e.document.head||e.document.body).appendChild(r)},o.prototype.isUserFeedbackScriptUrlAlreadyVisible=function(){for(var e=_(),t=this.getUserFeedbackSubmitUrl(),n=0;n<e.document.scripts.length;n++){if(e.document.scripts[n].src===t)return!0}return!1},o.prototype.getUserFeedbackSubmitUrl=function(){return(0,t.getUserFeedbackScriptUrl)(this.getVersion())},o.prototype.__buildPayload=function(e){var t,r={HTTP_USER_AGENT:void 0,HTTP_REFERER:void 0,HTTP_COOKIE:void 0};"undefined"!=typeof navigator&&navigator.userAgent&&(r.HTTP_USER_AGENT=navigator.userAgent),"undefined"!=typeof document&&document.referrer.match(/\S/)&&(r.HTTP_REFERER=document.referrer),(t="string"==typeof e.cookies?(0,l.decodeCookie)(e.cookies):e.cookies)&&(r.HTTP_COOKIE=(0,l.encodeCookie)(v(t,this.config.filters)));var o=n.prototype.__buildPayload.call(this,e);return o.request.cgi_data=b(r,o.request.cgi_data),o},o.prototype.__wrap=function(e,t){void 0===t&&(t={});var n=e;t||(t={});try{if("function"!=typeof n)return n;if(!m(n))return n;if(!n.___hb){var r=this;n.___hb=function(){if(!l.preferCatch)return n.apply(this,arguments);try{return n.apply(this,arguments)}catch(e){if(r.__lastWrapErr===e)throw e;throw r.__lastWrapErr=e,(0,f.ignoreNextOnError)(),r.addBreadcrumb(t.component?"".concat(t.component,": ").concat(e.name):e.name,{category:"error",metadata:{message:e.message,name:e.name,stack:e.stack}}),r.config.enableUncaught&&r.notify(e),e}}}return n.___hb.___hb=n.___hb,n.___hb}catch(e){return n}},o.prototype.__incrementErrorsCount=function(){return this.__errorsSent++},o.prototype.__exceedsMaxErrors=function(){return this.config.maxErrors&&this.__errorsSent>=this.config.maxErrors},o}(s.Client),k={name:"@honeybadger-io/js",url:"https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",version:"6.9.3"},E=function(){return"undefined"!=typeof navigator?"Honeybadger JS Browser Client ".concat(k.version,"; ").concat(navigator.userAgent):"Honeybadger JS Browser Client ".concat(k.version,"; n/a; n/a")},j=new O({__plugins:[(0,f.onError)(),(0,d.default)(),(0,h.default)(),(0,g.default)(),(0,p.default)(),s.Plugins.events()]});j.setNotifier(k);var x=o;Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return x.Types}}),t.default=j}(r),t(r)}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Honeybadger=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var r={},o={},i={},a={},c="<unknown>";var s=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;var l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var f=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;var p=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;var h=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;var g=Object.freeze({__proto__:null,parse:function(e){return e.split("\n").reduce((function(e,t){var n=function(e){var t=s.exec(e);if(!t)return null;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=u.exec(t[2]);r&&null!=o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{file:n?null:t[2],methodName:t[1]||c,arguments:n?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}(t)||function(e){var t=l.exec(e);if(!t)return null;return{file:t[2],methodName:t[1]||c,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}}(t)||function(e){var t=f.exec(e);if(!t)return null;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=d.exec(t[3]);n&&null!=r&&(t[3]=r[1],t[4]=r[2],t[5]=null);return{file:t[3],methodName:t[1]||c,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}(t)||function(e){var t=h.exec(e);if(!t)return null;return{file:t[2],methodName:t[1]||c,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}}(t)||function(e){var t=p.exec(e);if(!t)return null;return{file:t[3],methodName:t[1]||c,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}}(t);return n&&e.push(n),e}),[])}}),y=n(g);!function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},i=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},a=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logDeprecatedMethod=t.globalThisOrWindow=t.isBrowserConfig=t.clone=t.formatCGIData=t.filterUrl=t.filter=t.generateStackTrace=t.endpoint=t.instrumentConsole=t.instrument=t.isErrorObject=t.makeNotice=t.logger=t.sanitize=t.shallowClone=t.runAfterNotifyHandlers=t.runBeforeNotifyHandlers=t.getSourceForBacktrace=t.getCauses=t.calculateBacktraceShift=t.DEFAULT_BACKTRACE_SHIFT=t.makeBacktrace=t.objectIsExtensible=t.objectIsEmpty=t.mergeNotice=t.merge=void 0;var c=o(y);function s(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function u(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=console),!e)return[];try{var r=c.parse(e).map((function(e){return{file:e.file,method:e.methodName,number:e.lineNumber,column:e.column}}));return t&&r.splice(0,f(r)),r}catch(e){return n.debug(e),[]}}function l(e){var t=!1,n=!1;return e.file&&(t=e.file.toLowerCase().indexOf("@honeybadger-io")>-1),e.method&&(n=e.method.toLowerCase().indexOf("@honeybadger-io")>-1),t||n}function f(e){for(var n=0,r=0;r<e.length;r++){var o=e[r];if(!l(o)){if(!o.file||"<anonymous>"===o.file){var i=e[r+1];if(i&&l(i)){n++;continue}}break}n++}return n||t.DEFAULT_BACKTRACE_SHIFT}function d(e){if("object"!=typeof e||null===e)return{};var t={};for(var n in e)t[n]=e[n];return t}function p(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function h(e,t,n){if(e&&t&&n&&t in e)try{for(var r=e[t];r&&r.__hb_original;)r=r.__hb_original;e[t]=n(r),e[t].__hb_original=r}catch(e){}}t.merge=s,t.mergeNotice=function(e,t){var n=s(e,t);return e.context&&t.context&&(n.context=s(e.context,t.context)),n},t.objectIsEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.objectIsExtensible=function(e){return"function"!=typeof Object.isExtensible||Object.isExtensible(e)},t.makeBacktrace=u,t.DEFAULT_BACKTRACE_SHIFT=3,t.calculateBacktraceShift=f,t.getCauses=function(e,t){if(e.cause){for(var n=[],r=e;n.length<3&&(r=r.cause);)n.push({class:r.name,message:r.message,backtrace:"string"==typeof r.stack?u(r.stack,!1,t):null});return n}return[]},t.getSourceForBacktrace=function(e,t){return i(this,void 0,void 0,(function(){var n,r,o,i;return a(this,(function(a){switch(a.label){case 0:if(n=[],!t||!e||!e.length)return[2,n];r=0,a.label=1;case 1:return e.length?(o=e.splice(0)[r],[4,t(o.file)]):[3,3];case 2:return i=a.sent(),n[r]=function(e,t,n){void 0===n&&(n=2);if(!e)return null;var r=e.split("\n");r.unshift("");for(var o=t+n,i={},a=t-n;a<=o;a++){var c=r[a];"string"==typeof c&&(i[a]=c)}return i}(i,o.number),r++,[3,1];case 3:return[2,n]}}))}))},t.runBeforeNotifyHandlers=function(e,t){for(var n=[],r=!0,o=0,i=t.length;o<i;o++){var a=(0,t[o])(e);!1===a&&(r=!1),n.push(a)}return{results:n,result:r}},t.runAfterNotifyHandlers=function(e,t,n){e&&e.afterNotify&&e.afterNotify(n,e);for(var r=0,o=t.length;r<o;r++)t[r](n,e);return!0},t.shallowClone=d,t.sanitize=function(e,t){void 0===t&&(t=8);var n=[];function r(e,r){if(void 0===r&&(r=0),r>=t)return"[DEPTH]";if(!function(e){var t=typeof e;return/function/.test(t)?"toJSON"===e.name:!/symbol/.test(t)&&null!==e&&("object"!=typeof e||void 0!==e.hasOwnProperty)}(e))return Object.prototype.toString.call(e);if(function(e){if(!e||"object"!=typeof e)return!1;for(var t=0;t<n.length;t++)if(n[t]===e)return!0;return n.push(e),!1}(e))return"[RECURSION]";if(Array.isArray(e))return e.map((function(e){return o(e,r+1)}));if("object"==typeof e){var i={};for(var a in e){var c=e[a];Object.prototype.hasOwnProperty.call(e,a)&&null!=a&&null!=c&&(i[a]=o(c,r+1))}return i}return e}function o(e,t){void 0===t&&(t=0);try{return r(e,t)}catch(e){return"[ERROR] ".concat(e)}}return o(e)},t.logger=function(e){var t=function(t){return function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if("debug"===t){if(!e.config.debug)return;t="log"}r.unshift("[Honeybadger]"),(n=e.config.logger)[t].apply(n,r)}};return{log:t("log"),info:t("info"),debug:t("debug"),warn:t("warn"),error:t("error")}},t.makeNotice=function(e){var t;if(e)if(p(e)){var n=e;t=s(e,{name:n.name,message:n.message,stack:n.stack,cause:n.cause})}else if("object"==typeof e)t=d(e);else{t={message:String(e)}}else t={};return t},t.isErrorObject=p,t.instrument=h;var g=!1,b=[];function v(e,t){for(var n=0;n<t.length;n++)if(-1!==e.toLowerCase().indexOf(t[n].toLowerCase()))return!0;return!1}function m(e,t){var n=Object.prototype.toString.call(t).slice(8,-1);return null!=t&&n===e}t.instrumentConsole=function(e,t){e&&e.console&&t&&(b.push(t),g||(g=!0,["debug","info","warn","error","log"].forEach((function(t){h(e.console,t,(function(n){return function(){var r=Array.prototype.slice.call(arguments);b.forEach((function(e){try{e(t,r)}catch(e){}})),"function"==typeof n&&Function.prototype.apply.call(n,e.console,arguments)}}))}))))},t.endpoint=function(e,t){var n=e.trim().replace(/\/$/,"");return t=t.trim().replace(/(^\/|\/$)/g,""),"".concat(n,"/").concat(t)},t.generateStackTrace=function(){try{throw new Error("")}catch(e){if(e.stack)return e.stack}for(var e=[],t=arguments.callee;t&&e.length<10;){/function(?:\s+([\w$]+))+\s*\(/.test(t.toString())?e.push(RegExp.$1||"<anonymous>"):e.push("<anonymous>");try{t=t.caller}catch(e){break}}return e.join("\n")},t.filter=function(e,t){if(m("Object",e)){m("Array",t)||(t=[]);var n=[];return function e(r){var o,i;if(m("Object",r)||m("Array",r)){if(-1!==n.indexOf(r))return"[CIRCULAR DATA STRUCTURE]";n.push(r)}if(m("Object",r)){for(o in i={},r)v(o,t)?i[o]="[FILTERED]":i[o]=e(r[o]);return i}return m("Array",r)?r.map((function(t){return e(t)})):m("Function",r)?"[FUNC]":r}(e)}},t.filterUrl=function(e,t){if(!t)return e;if("string"!=typeof e)return e;var n=e.split(/\?/,2)[1];if(!n)return e;var r=e;return n.split(/[&]\s?/).forEach((function(e){var n=e.split("=",2),o=n[0],i=n[1];v(o,t)&&(r=r.replace("".concat(o,"=").concat(i),"".concat(o,"=[FILTERED]")))})),r},t.formatCGIData=function(e,t){void 0===t&&(t="");var n={};return Object.keys(e).forEach((function(r){var o=t+r.replace(/\W/g,"_").toUpperCase();n[o]=e[r]})),n},t.clone=function(e){return JSON.parse(JSON.stringify(e))},t.isBrowserConfig=function(e){return void 0!==e.async},t.globalThisOrWindow=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window};var _={};t.logDeprecatedMethod=function(e,t,n,r){void 0===r&&(r=100);var o="".concat(t,"-").concat(n);if(void 0===_[o]&&(_[o]=0),_[o]%r==0){var i="Deprecation warning: ".concat(t," has been deprecated; please use ").concat(n," instead.");e.warn(i),_[o]++}else _[o]++}}(a),Object.defineProperty(i,"__esModule",{value:!0});var b=a;i.default=function(e){return void 0===e&&(e=(0,b.globalThisOrWindow)()),{shouldReloadOnConfigure:!1,load:function(t){function n(){return t.config.eventsEnabled}n()&&(0,b.instrumentConsole)(e,(function(e,r){if(n()&&0!==r.length){var o={severity:e};"string"==typeof r[0]?(o.message=r[0],o.args=r.slice(1)):o.args=r,t.event("log",o)}}))}}};var v={},m={};Object.defineProperty(m,"__esModule",{value:!0}),m.GlobalStore=void 0;var _=a,w=function(){function e(e,t){this.contents=e,this.breadcrumbsLimit=t}return e.create=function(t,n){return new e(t,n)},e.prototype.available=function(){return!0},e.prototype.getContents=function(e){var t=e?this.contents[e]:this.contents;return JSON.parse(JSON.stringify(t))},e.prototype.setContext=function(e){this.contents.context=(0,_.merge)(this.contents.context,e||{})},e.prototype.addBreadcrumb=function(e){this.contents.breadcrumbs.length==this.breadcrumbsLimit&&this.contents.breadcrumbs.shift(),this.contents.breadcrumbs.push(e)},e.prototype.clear=function(){this.contents.context={},this.contents.breadcrumbs=[]},e.prototype.run=function(e){return e()},e}();m.GlobalStore=w;var O={};var k=n(Object.freeze({__proto__:null,NdJson:class{static parse(e){return e.trim().split("\n").map((e=>JSON.parse(e)))}static stringify(e){return e.map((e=>JSON.stringify(e))).join("\n")}}})),E={};Object.defineProperty(E,"__esModule",{value:!0}),E.CONFIG=void 0,E.CONFIG={apiKey:null,endpoint:"https://api.honeybadger.io",environment:null,hostname:null,projectRoot:null,component:null,action:null,revision:null,reportData:null,breadcrumbsEnabled:!0,eventsEnabled:!1,maxBreadcrumbs:40,maxObjectDepth:8,logger:console,developmentEnvironments:["dev","development","test"],debug:!1,tags:null,enableUncaught:!0,enableUnhandledRejection:!0,afterUncaught:function(){return!0},filters:["creditcard","password"],__plugins:[]};var j=e&&e.__assign||function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)},x=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},T=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(O,"__esModule",{value:!0}),O.ThrottledEventsLogger=void 0;var N=k,S=a,C=E,P=function(){function e(e,t){this.config=e,this.transport=t,this.queue=[],this.isProcessing=!1,this.config=j(j({},C.CONFIG),e),this.logger=this.originalLogger()}return e.prototype.configure=function(e){for(var t in e)this.config[t]=e[t]},e.prototype.log=function(e){this.queue.push(e),this.isProcessing||this.processQueue()},e.prototype.processQueue=function(){var e=this;if(0!==this.queue.length&&!this.isProcessing){this.isProcessing=!0;var t=this.queue.slice();this.queue=[];var n=N.NdJson.stringify(t);this.makeHttpRequest(n).then((function(){setTimeout((function(){e.isProcessing=!1,e.processQueue()}),50)})).catch((function(t){e.logger.error("[Honeybadger] Error making HTTP request:",t),setTimeout((function(){e.isProcessing=!1,e.processQueue()}),50)}))}},e.prototype.makeHttpRequest=function(e){return x(this,void 0,void 0,(function(){var t=this;return T(this,(function(n){return[2,this.transport.send({headers:{"X-API-Key":this.config.apiKey,"Content-Type":"application/json"},method:"POST",endpoint:(0,S.endpoint)(this.config.endpoint,"/v1/events"),maxObjectDepth:this.config.maxObjectDepth,logger:this.logger},e).then((function(){t.config.debug&&t.logger.debug("[Honeybadger] Events sent successfully")})).catch((function(e){t.logger.error("[Honeybadger] Error sending events: ".concat(e.message))}))]}))}))},e.prototype.originalLogger=function(){var e,t,n,r,o;return{log:null!==(e=console.log.__hb_original)&&void 0!==e?e:console.log,info:null!==(t=console.info.__hb_original)&&void 0!==t?t:console.info,debug:null!==(n=console.debug.__hb_original)&&void 0!==n?n:console.debug,warn:null!==(r=console.warn.__hb_original)&&void 0!==r?r:console.warn,error:null!==(o=console.error.__hb_original)&&void 0!==o?o:console.error}},e}();O.ThrottledEventsLogger=P;var U=e&&e.__assign||function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U.apply(this,arguments)},H=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},R=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(v,"__esModule",{value:!0}),v.Client=void 0;var A=a,L=m,B=O,M=E,F=/,|\s+/,I=/\S/,D=function(){function e(e,t){void 0===e&&(e={}),this.__pluginsLoaded=!1,this.__store=null,this.__beforeNotifyHandlers=[],this.__afterNotifyHandlers=[],this.__notifier={name:"@honeybadger-io/core",url:"https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/core",version:"6.10.0"},this.config=U(U({},M.CONFIG),e),this.__initStore(),this.__transport=t,this.__eventsLogger=new B.ThrottledEventsLogger(this.config,this.__transport),this.logger=(0,A.logger)(this)}return e.prototype.getVersion=function(){return this.__notifier.version},e.prototype.getNotifier=function(){return this.__notifier},e.prototype.setNotifier=function(e){this.__notifier=e},e.prototype.configure=function(e){for(var t in void 0===e&&(e={}),e)this.config[t]=e[t];return this.__eventsLogger.configure(this.config),this.loadPlugins(),this},e.prototype.loadPlugins=function(){var e=this;(this.__pluginsLoaded?this.config.__plugins.filter((function(e){return e.shouldReloadOnConfigure})):this.config.__plugins).forEach((function(t){return t.load(e)})),this.__pluginsLoaded=!0},e.prototype.__initStore=function(){this.__store=new L.GlobalStore({context:{},breadcrumbs:[]},this.config.maxBreadcrumbs)},e.prototype.beforeNotify=function(e){return this.__beforeNotifyHandlers.push(e),this},e.prototype.afterNotify=function(e){return this.__afterNotifyHandlers.push(e),this},e.prototype.setContext=function(e){return"object"==typeof e&&null!=e&&this.__store.setContext(e),this},e.prototype.resetContext=function(e){return this.logger.warn("Deprecation warning: `Honeybadger.resetContext()` has been deprecated; please use `Honeybadger.clear()` instead."),this.__store.clear(),"object"==typeof e&&null!==e&&this.__store.setContext(e),this},e.prototype.clear=function(){return this.__store.clear(),this},e.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t=void 0),void 0===n&&(n=void 0);var o=this.makeNotice(e,t,n),i=o&&o.backtrace?o.backtrace.map((function(e){return(0,A.shallowClone)(e)})):null,a=this.__runPreconditions(o);return a instanceof Error?((0,A.runAfterNotifyHandlers)(o,this.__afterNotifyHandlers,a),!1):a instanceof Promise?(a.then((function(e){return e instanceof Error?((0,A.runAfterNotifyHandlers)(o,r.__afterNotifyHandlers,e),!1):r.__send(o,i)})),!0):(this.__send(o,i).catch((function(e){})),!0)},e.prototype.notifyAsync=function(e,t,n){var r=this;return void 0===t&&(t=void 0),void 0===n&&(n=void 0),new Promise((function(o,i){var a,c,s;a=e.afterNotify?e:t&&t.afterNotify?t:n&&n.afterNotify?n:t&&"object"==typeof t?t:n||(t={}),s=(c=a).afterNotify,c.afterNotify=function(e){if(null==s||s.call(r,e),e)return i(e);o()},r.notify(e,t,n)}))},e.prototype.makeNotice=function(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=void 0);var r=(0,A.makeNotice)(e);t&&"object"!=typeof t&&(t={name:String(t)});if(t&&(r=(0,A.mergeNotice)(r,t)),"object"==typeof n&&null!==n&&(r=(0,A.mergeNotice)(r,n)),(0,A.objectIsEmpty)(r))return null;var o=this.__store.getContents("context"),i=this.__constructTags(r.tags),a=this.__constructTags(o.tags),c=this.__constructTags(this.config.tags),s=i.concat(a).concat(c),u=s.filter((function(e,t){return s.indexOf(e)===t}));return r=(0,A.merge)(r,{name:r.name||"Error",context:(0,A.merge)(o,r.context),projectRoot:r.projectRoot||this.config.projectRoot,environment:r.environment||this.config.environment,component:r.component||this.config.component,action:r.action||this.config.action,revision:r.revision||this.config.revision,tags:u}),Array.isArray(r.backtrace)&&r.backtrace.length||("string"==typeof r.stack&&r.stack.trim()?r.backtrace=(0,A.makeBacktrace)(r.stack,!1,this.logger):(r.stack=(0,A.generateStackTrace)(),r.backtrace=(0,A.makeBacktrace)(r.stack,!0,this.logger))),r},e.prototype.addBreadcrumb=function(e,t){if(this.config.breadcrumbsEnabled){var n=(0,A.shallowClone)((t=t||{}).metadata),r=t.category||"custom",o=(new Date).toISOString();return this.__store.addBreadcrumb({category:r,message:e,metadata:n,timestamp:o}),this}},e.prototype.logEvent=function(e){(0,A.logDeprecatedMethod)(this.logger,"Honeybadger.logEvent","Honeybadger.event"),this.event("log",e)},e.prototype.event=function(e,t){var n;"object"==typeof e&&(t=e,e=null!==(n=e.event_type)&&void 0!==n?n:void 0),this.__eventsLogger.log(U({event_type:e,ts:(new Date).toISOString()},t))},e.prototype.__getBreadcrumbs=function(){return this.__store.getContents("breadcrumbs").slice()},e.prototype.__getContext=function(){return this.__store.getContents("context")},e.prototype.__developmentMode=function(){return!0!==this.config.reportData&&(this.config.environment&&this.config.developmentEnvironments.includes(this.config.environment))},e.prototype.__buildPayload=function(e){var t=(0,A.filter)(e.headers,this.config.filters)||{},n=(0,A.filter)(U(U({},e.cgiData),(0,A.formatCGIData)(t,"HTTP_")),this.config.filters);return{notifier:this.__notifier,breadcrumbs:{enabled:!!this.config.breadcrumbsEnabled,trail:e.__breadcrumbs||[]},error:{class:e.name,message:e.message,backtrace:e.backtrace,fingerprint:e.fingerprint,tags:e.tags,causes:(0,A.getCauses)(e,this.logger)},request:{url:(0,A.filterUrl)(e.url,this.config.filters),component:e.component,action:e.action,context:e.context,cgi_data:n,params:(0,A.filter)(e.params,this.config.filters)||{},session:(0,A.filter)(e.session,this.config.filters)||{}},server:{project_root:e.projectRoot,environment_name:e.environment,revision:e.revision,hostname:this.config.hostname,time:(new Date).toUTCString()},details:e.details||{}}},e.prototype.__constructTags=function(e){return e?e.toString().split(F).filter((function(e){return I.test(e)})):[]},e.prototype.__runPreconditions=function(e){var t=this,n=null;e||(this.logger.debug("failed to build error report"),n=new Error("failed to build error report")),!1===this.config.reportData&&(this.logger.debug("skipping error report: honeybadger.js is disabled",e),n=new Error("honeybadger.js is disabled")),this.__developmentMode()&&(this.logger.log("honeybadger.js is in development mode; the following error report will be sent in production.",e),n=new Error("honeybadger.js is in development mode")),this.config.apiKey||(this.logger.warn("could not send error report: no API key has been configured",e),n=new Error("missing API key"));var r=(0,A.runBeforeNotifyHandlers)(e,this.__beforeNotifyHandlers);return n||r.result||(this.logger.debug("skipping error report: one or more beforeNotify handlers returned false",e),n=new Error("beforeNotify handlers returned false")),r.results.length&&r.results.some((function(e){return e instanceof Promise}))?Promise.allSettled(r.results).then((function(r){if(!n&&r.some((function(e){return"rejected"===e.status||!1===e.value}))&&(t.logger.debug("skipping error report: one or more beforeNotify handlers returned false",e),n=new Error("beforeNotify handlers (async) returned false")),n)return n})):n},e.prototype.__send=function(e,t){var n=this;return this.config.breadcrumbsEnabled?(this.addBreadcrumb("Honeybadger Notice",{category:"notice",metadata:{message:e.message,name:e.name,stack:e.stack}}),e.__breadcrumbs=this.__store.getContents("breadcrumbs")):e.__breadcrumbs=[],(0,A.getSourceForBacktrace)(t,this.__getSourceFileHandler).then((function(t){return H(n,void 0,void 0,(function(){var n;return R(this,(function(r){return t.forEach((function(t,n){e.backtrace[n].source=t})),n=this.__buildPayload(e),[2,this.__transport.send({headers:{"X-API-Key":this.config.apiKey,"Content-Type":"application/json",Accept:"text/json, application/json"},method:"POST",endpoint:(0,A.endpoint)(this.config.endpoint,"/v1/notices/js"),maxObjectDepth:this.config.maxObjectDepth,logger:this.logger},n)]}))}))})).then((function(t){if(201!==t.statusCode)return(0,A.runAfterNotifyHandlers)(e,n.__afterNotifyHandlers,new Error("Bad HTTP response: ".concat(t.statusCode))),n.logger.warn("Error report failed: unknown response from server. code=".concat(t.statusCode)),!1;var r=JSON.parse(t.body).id;return(0,A.runAfterNotifyHandlers)((0,A.merge)(e,{id:r}),n.__afterNotifyHandlers),n.logger.info("Error report sent ⚡ https://app.honeybadger.io/notice/".concat(r)),!0})).catch((function(t){return n.logger.error("Error report failed: an unknown error occurred.","message=".concat(t.message)),(0,A.runAfterNotifyHandlers)(e,n.__afterNotifyHandlers,t),!1}))},e}();v.Client=D;var W={};Object.defineProperty(W,"__esModule",{value:!0}),function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},c=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},s=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Plugins=t.Util=t.Types=t.Client=void 0;var u=s(i),l=v;Object.defineProperty(t,"Client",{enumerable:!0,get:function(){return l.Client}}),o(m,t),t.Types=c(W),t.Util=c(a),t.Plugins={events:u.default}}(o);var q={};Object.defineProperty(q,"__esModule",{value:!0}),q.preferCatch=q.encodeCookie=q.decodeCookie=q.localURLPathname=q.parseURL=q.nativeFetch=q.stringTextOfElement=q.stringSelectorOfElement=q.stringNameOfElement=void 0;var G=o.Util.globalThisOrWindow;function K(e){if(!e||!e.tagName)return"";var t=e.tagName.toLowerCase();if("html"===t)return"";e.id&&(t+="#".concat(e.id));var n=e.getAttribute("class");n&&n.split(/\s+/).forEach((function(e){t+=".".concat(e)})),["alt","name","title","type"].forEach((function(n){var r=e.getAttribute(n);r&&(t+="[".concat(n,'="').concat(r,'"]'))}));var r=function(e){try{var t=e.parentNode.childNodes,n=[];return Array.prototype.forEach.call(t,(function(t){t.tagName&&t.tagName===e.tagName&&n.push(t)})),n}catch(e){return[]}}(e);return r.length>1&&(t+=":nth-child(".concat(Array.prototype.indexOf.call(r,e)+1,")")),t}function J(e){return-1!==e.toString().indexOf("native")}function $(e){var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)||{};return{protocol:t[2],host:t[4],pathname:t[5]}}q.stringNameOfElement=K,q.stringSelectorOfElement=function e(t){var n=K(t);if(t.parentNode&&t.parentNode.tagName){var r=e(t.parentNode);if(r.length>0)return"".concat(r," > ").concat(n)}return n},q.stringTextOfElement=function(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),function(e,t){e.length>t&&(e=e.substr(0,t)+"...");return e}(t.trim(),300)},q.nativeFetch=function(){var e=G();if(!e.fetch)return!1;if(J(e.fetch))return!0;if("undefined"==typeof document)return!1;try{var t=document.createElement("iframe");t.style.display="none",document.head.appendChild(t);var n=t.contentWindow.fetch&&J(t.contentWindow.fetch);return document.head.removeChild(t),n}catch(e){console&&console.warn&&console.warn("failed to detect native fetch via iframe: "+e)}return!1},q.parseURL=$,q.localURLPathname=function(e){var t=$(e),n=$(document.URL);return t.host&&t.protocol?t.protocol===n.protocol&&t.host===n.host?t.pathname:"".concat(t.protocol,"://").concat(t.host).concat(t.pathname):t.pathname},q.decodeCookie=function(e){var t={};return e.split(/[;,]\s?/).forEach((function(e){var n=e.split("=",2),r=n[0],o=n[1];t[r]=o})),t},q.encodeCookie=function(e){if("object"==typeof e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join(";")}},q.preferCatch=function(){var e=!0;if("undefined"==typeof window)return e;if(window.atob||(e=!1),window.ErrorEvent)try{0===new window.ErrorEvent("").colno&&(e=!1)}catch(e){}return e}();var X={};Object.defineProperty(X,"__esModule",{value:!0}),X.onError=X.ignoreNextOnError=void 0;var z,V=o,Q=V.Util.instrument,Y=V.Util.makeNotice,Z=V.Util.globalThisOrWindow,ee=0;X.ignoreNextOnError=function(){ee+=1,clearTimeout(z),z=setTimeout((function(){ee=0}))},X.onError=function(e){return void 0===e&&(e=Z()),{load:function(t){Q(e,"onerror",(function(n){return function(r,o,i,a,c){return function(e,n,r,o,i){if(t.logger.debug("window.onerror callback invoked",arguments),ee>0)return t.logger.debug("Ignoring window.onerror (error likely reported earlier)",arguments),void(ee-=1);if(0===r&&/Script error\.?/.test(e))t.config.enableUncaught&&t.logger.warn("Ignoring cross-domain script error: enable CORS to track these types of errors",arguments);else{var a=Y(i);a.name||(a.name="window.onerror"),a.message||(a.message=e),a.stack||(a.stack=[a.message,"\n at ? (",n||"unknown",":",r||0,":",o||0,")"].join("")),t.addBreadcrumb("window.onerror"!==a.name&&a.name?"window.onerror: ".concat(a.name):"window.onerror",{category:"error",metadata:{name:a.name,message:a.message,stack:a.stack}}),t.config.enableUncaught&&t.notify(a)}}(r,o,i,a,c),"function"==typeof n&&n.apply(e,arguments)}}))}}};var te={};Object.defineProperty(te,"__esModule",{value:!0});var ne=o,re=ne.Util.instrument,oe=ne.Util.globalThisOrWindow;te.default=function(e){return void 0===e&&(e=oe()),{load:function(t){t.config.enableUnhandledRejection&&re(e,"onunhandledrejection",(function(e){return function(n){!function(e){var n;if(t.logger.debug("window.onunhandledrejection callback invoked",arguments),t.config.enableUnhandledRejection){var r=e.reason;if(r instanceof Error){var o="".concat(r.message,"\n at ? (").concat("unknown",":").concat(0,")"),i=r.stack||o,a={name:r.name,message:"UnhandledPromiseRejectionWarning: ".concat(r),stack:i};return t.addBreadcrumb("window.onunhandledrejection: ".concat(a.name),{category:"error",metadata:a}),void t.notify(a)}var c="string"==typeof r?r:null!==(n=JSON.stringify(r))&&void 0!==n?n:"Unspecified reason";t.notify({name:"window.onunhandledrejection",message:"UnhandledPromiseRejectionWarning: ".concat(c)})}}(n),"function"==typeof e&&e.apply(this,arguments)}}))}}};var ie={};Object.defineProperty(ie,"__esModule",{value:!0});var ae=o,ce=q,se=ae.Util.sanitize,ue=ae.Util.instrument,le=ae.Util.instrumentConsole,fe=ae.Util.globalThisOrWindow;ie.default=function(e){return void 0===e&&(e=fe()),{load:function(t){function n(e){return!0===t.config.breadcrumbsEnabled||(e?!0===t.config.breadcrumbsEnabled[e]:!1!==t.config.breadcrumbsEnabled)}n("console")&&le(e,(function(e,n){var r,o=(r=n,Array.isArray(r)?r.map((function(e){try{return String(e)}catch(e){return"[unknown]"}})).join(" "):""),i={category:"log",metadata:{level:e,arguments:se(n,3)}};t.addBreadcrumb(o,i)})),n("dom")&&"function"==typeof e.addEventListener&&e.addEventListener("click",(function(e){var n,r,o;try{n=(0,ce.stringNameOfElement)(e.target),r=(0,ce.stringSelectorOfElement)(e.target),o=(0,ce.stringTextOfElement)(e.target)}catch(e){n="UI Click",r="[unknown]",o="[unknown]"}0!==n.length&&t.addBreadcrumb(n,{category:"ui.click",metadata:{selector:r,text:o,event:e}})}),!!e.location),n("network")&&"undefined"!=typeof XMLHttpRequest&&(ue(XMLHttpRequest.prototype,"open",(function(e){return function(){var t=arguments[1],n="string"==typeof t?t:String(t),r="string"==typeof arguments[0]?arguments[0].toUpperCase():arguments[0],o="".concat(r," ").concat((0,ce.localURLPathname)(n));this.__hb_xhr={type:"xhr",method:r,url:n,message:o},"function"==typeof e&&e.apply(this,arguments)}})),ue(XMLHttpRequest.prototype,"send",(function(e){return function(){var n=this;function r(){if(4===n.readyState){var e=void 0;n.__hb_xhr&&(n.__hb_xhr.status_code=n.status,e=n.__hb_xhr.message,delete n.__hb_xhr.message),t.addBreadcrumb(e||"XMLHttpRequest",{category:"request",metadata:n.__hb_xhr})}}"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?ue(n,"onreadystatechange",(function(e){return function(){r(),"function"==typeof e&&e.apply(this,arguments)}})):n.onreadystatechange=r,"function"==typeof e&&e.apply(n,arguments)}}))),n("network")&&(0,ce.nativeFetch)()&&ue(e,"fetch",(function(n){return function(){var r,o=arguments[0],i="GET";"string"==typeof o?r=o:"Request"in e&&o instanceof Request?(r=o.url,o.method&&(i=o.method)):r=String(o),arguments[1]&&arguments[1].method&&(i=arguments[1].method),"string"==typeof i&&(i=i.toUpperCase());var a="".concat(i," ").concat("undefined"==typeof document?r:(0,ce.localURLPathname)(r)),c={type:"fetch",method:i,url:r};return n.apply(this,arguments).then((function(e){return c.status_code=e.status,t.addBreadcrumb(a,{category:"request",metadata:c}),e})).catch((function(e){throw t.addBreadcrumb("fetch error",{category:"error",metadata:c}),e}))}})),function(){if(n("navigation")&&null!=e.location){var r=e.location.href;"function"==typeof addEventListener&&addEventListener("popstate",(function(t){o(r,e.location.href)})),void 0!==e.history&&(ue(e.history,"pushState",i),ue(e.history,"replaceState",i))}function o(e,n){r=n,t.addBreadcrumb("Page changed",{category:"navigation",metadata:{from:e,to:n}})}function i(e){return function(){var t=arguments.length>2?arguments[2]:void 0;return t&&o(r,String(t)),e.apply(this,arguments)}}}()}}};var de={};Object.defineProperty(de,"__esModule",{value:!0});var pe=o,he=pe.Util.instrument,ge=pe.Util.globalThisOrWindow;de.default=function(e){return void 0===e&&(e=ge()),{load:function(t){!function(){function n(e){return function(n){return function(r,o){if("function"==typeof r){var i=Array.prototype.slice.call(arguments,2);return r=t.__wrap(r,e),n((function(){r.apply(void 0,i)}),o)}return n(r,o)}}}he(e,"setTimeout",n({component:"setTimeout"})),he(e,"setInterval",n({component:"setInterval"}))}()}}};var ye={};Object.defineProperty(ye,"__esModule",{value:!0});var be=o,ve=be.Util.instrument,me=be.Util.globalThisOrWindow;ye.default=function(e){return void 0===e&&(e=me()),{load:function(t){["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"].forEach((function(n){var r=e[n]&&e[n].prototype;r&&Object.prototype.hasOwnProperty.call(r,"addEventListener")&&(ve(r,"addEventListener",(function(e){var r={component:"".concat(n,".prototype.addEventListener")};return function(n,o,i,a){try{o&&null!=o.handleEvent&&(o.handleEvent=t.__wrap(o.handleEvent,r))}catch(e){t.logger.error(e)}return e.call(this,n,t.__wrap(o,r),i,a)}})),ve(r,"removeEventListener",(function(e){return function(n,r,o,i){return e.call(this,n,r,o,i),e.call(this,n,t.__wrap(r),o,i)}})))}))}}};var _e={},we=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},Oe=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BrowserTransport=void 0;var ke=o,Ee=ke.Util.sanitize,je=ke.Util.globalThisOrWindow;var xe=function(){function e(e){void 0===e&&(e={}),this.headers={},this.headers=e}return e.prototype.defaultHeaders=function(){return this.headers},e.prototype.send=function(e,t){return we(this,void 0,void 0,(function(){var n,r,o,i,a;return Oe(this,(function(c){switch(c.label){case 0:return n=e.headers?(s=e.headers,Object.entries(s)):[],r=this.defaultHeaders(),n.forEach((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&(r[String(t)]=String(n))})),o={method:e.method,headers:r},"POST"===e.method&&t&&(o.body="string"==typeof t?t:JSON.stringify(Ee(t,e.maxObjectDepth))),[4,je().fetch(e.endpoint,o)];case 1:return[4,(i=c.sent()).text()];case 2:return a=c.sent(),[2,Promise.resolve({statusCode:i.status,body:a})]}var s}))}))},e}();_e.BrowserTransport=xe;var Te={},Ne=e&&e.__assign||function(){return Ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ne.apply(this,arguments)};Object.defineProperty(Te,"__esModule",{value:!0}),Te.BrowserFeedbackForm=void 0;var Se=o.Util.globalThisOrWindow,Ce=function(){function t(e,t,n){this.config=e,this.logger=t,this.scriptUrl=n}return t.prototype.show=function(e,t){if(void 0===t&&(t={}),this.config&&this.config.apiKey)if(e){var n=Se();void 0!==n.document?this.isUserFeedbackScriptUrlAlreadyVisible()?this.logger.debug("User feedback form is already visible"):(n.honeybadgerUserFeedbackOptions=Ne(Ne({},t),{apiKey:this.config.apiKey,endpoint:this.config.userFeedbackEndpoint,noticeId:e}),this.appendUserFeedbackScriptTag(n,t)):this.logger.debug("global.document is undefined. Cannot attach script")}else this.logger.debug("Can't show user feedback form without a notice already reported");else this.logger.debug("Client not initialized")},t.prototype.appendUserFeedbackScriptTag=function(t,n){void 0===n&&(n={});var r=t.document.createElement("script");r.setAttribute("src",this.scriptUrl),r.setAttribute("async","true"),n.onLoad&&(r.onload=n.onLoad),(e.document.head||e.document.body).appendChild(r)},t.prototype.isUserFeedbackScriptUrlAlreadyVisible=function(){for(var e=Se(),t=this.scriptUrl,n=0;n<e.document.scripts.length;n++){if(e.document.scripts[n].src===t)return!0}return!1},t}();return Te.BrowserFeedbackForm=Ce,function(t){var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},c=e&&e.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&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++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},s=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Types=t.getUserFeedbackScriptUrl=void 0;var u=o,l=q,f=X,d=s(te),p=s(ie),h=s(de),g=s(ye),y=_e,b=Te,v=u.Util.merge,m=u.Util.filter,_=u.Util.objectIsExtensible,w=u.Util.globalThisOrWindow,O=function(){var e=w(),t="";return null!=e.location&&(t=e.location.protocol+"//"+e.location.host),t};t.getUserFeedbackScriptUrl=function(e){var t=e.split(".").slice(0,2).join(".");return"https://js.honeybadger.io/v".concat(t,"/honeybadger-feedback-form.js")};var k=function(e){function n(t){void 0===t&&(t={});var n=e.call(this,i({userFeedbackEndpoint:"https://api.honeybadger.io/v2/feedback",async:!0,maxErrors:null,projectRoot:O()},t),new y.BrowserTransport({"User-Agent":j()}))||this;return n.__errorsSent=0,n.__lastWrapErr=void 0,n.__lastNoticeId=void 0,n.__beforeNotifyHandlers=[function(e){return n.__exceedsMaxErrors()?(n.logger.debug("Dropping notice: max errors exceeded",e),!1):(e&&!e.url&&"undefined"!=typeof document&&(e.url=document.URL),n.__incrementErrorsCount(),!0)}],n.__afterNotifyHandlers=[function(e,t){t&&(n.__lastNoticeId=t.id)}],n}return r(n,e),n.prototype.configure=function(t){return void 0===t&&(t={}),e.prototype.configure.call(this,t)},n.prototype.resetMaxErrors=function(){return this.__errorsSent=0},n.prototype.factory=function(e){var t=new n(e);return t.setNotifier(this.getNotifier()),t},n.prototype.checkIn=function(e){throw new Error("Honeybadger.checkIn() is not supported on the browser")},n.prototype.showUserFeedbackForm=function(e){return void 0===e&&(e={}),a(this,void 0,void 0,(function(){return c(this,(function(t){return new b.BrowserFeedbackForm(this.config,this.logger,this.getUserFeedbackSubmitUrl()).show(this.__lastNoticeId,e),[2]}))}))},n.prototype.getUserFeedbackSubmitUrl=function(){return(0,t.getUserFeedbackScriptUrl)(this.getVersion())},n.prototype.__buildPayload=function(t){var n,r={HTTP_USER_AGENT:void 0,HTTP_REFERER:void 0,HTTP_COOKIE:void 0};"undefined"!=typeof navigator&&navigator.userAgent&&(r.HTTP_USER_AGENT=navigator.userAgent),"undefined"!=typeof document&&document.referrer.match(/\S/)&&(r.HTTP_REFERER=document.referrer),(n="string"==typeof t.cookies?(0,l.decodeCookie)(t.cookies):t.cookies)&&(r.HTTP_COOKIE=(0,l.encodeCookie)(m(n,this.config.filters)));var o=e.prototype.__buildPayload.call(this,t);return o.request.cgi_data=v(r,o.request.cgi_data),o},n.prototype.__wrap=function(e,t){void 0===t&&(t={});var n=e;t||(t={});try{if("function"!=typeof n)return n;if(!_(n))return n;if(!n.___hb){var r=this;n.___hb=function(){if(!l.preferCatch)return n.apply(this,arguments);try{return n.apply(this,arguments)}catch(e){if(r.__lastWrapErr===e)throw e;throw r.__lastWrapErr=e,(0,f.ignoreNextOnError)(),r.addBreadcrumb(t.component?"".concat(t.component,": ").concat(e.name):e.name,{category:"error",metadata:{message:e.message,name:e.name,stack:e.stack}}),r.config.enableUncaught&&r.notify(e),e}}}return n.___hb.___hb=n.___hb,n.___hb}catch(e){return n}},n.prototype.__incrementErrorsCount=function(){return this.__errorsSent++},n.prototype.__exceedsMaxErrors=function(){return this.config.maxErrors&&this.__errorsSent>=this.config.maxErrors},n}(u.Client),E={name:"@honeybadger-io/js",url:"https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",version:"6.10.0"},j=function(){return"undefined"!=typeof navigator?"Honeybadger JS Browser Client ".concat(E.version,"; ").concat(navigator.userAgent):"Honeybadger JS Browser Client ".concat(E.version,"; n/a; n/a")},x=new k({__plugins:[(0,f.onError)(),(0,d.default)(),(0,h.default)(),(0,g.default)(),(0,p.default)(),u.Plugins.events()]});x.setNotifier(E);var T=o;Object.defineProperty(t,"Types",{enumerable:!0,get:function(){return T.Types}}),t.default=x}(r),t(r)}));
//# sourceMappingURL=honeybadger.min.js.map
{
"name": "@honeybadger-io/js",
"version": "6.9.3",
"version": "6.10.0",
"license": "MIT",

@@ -72,2 +72,3 @@ "homepage": "https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",

"rollup": "^2.77.0",
"rollup-plugin-strip-code": "^0.2.7",
"rollup-plugin-terser": "^7.0.2",

@@ -86,3 +87,3 @@ "sinon": "^14.0.0",

},
"gitHead": "f6a110aec5fa5813e772e5793aac8a73cb8d37c3"
"gitHead": "e895345f9db9a8e4a1939e0ad4419de692617637"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc