PageSourceSearch

https://www.bibleserver.com/build/notifier-rLmqvHxI.js

js bibleserver.com collected 2026-09-24 08:40:12 UTC 52,512 bytes, 16 lines download raw bytes

1import{g as Gt}from"./_commonjsHelpers-DaWZu8wl.js";function zt(F,z){for(var D=0;D<z.length;D++){const S=z[D];if(typeof S!="string"&&!Array.isArray(S)){for(const y in S)if(y!=="default"&&!(y in F)){const x=Object.getOwnPropertyDescriptor(S,y);x&&Object.defineProperty(F,y,x.get?x:{enumerable:!0,get:()=>S[y]})}}}return Object.freeze(Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}))}var pe={exports:{}},tr;function Jt(){return tr||(tr=1,(function(F,z){(function(D){F.exports=D()})(function(){var D=["navigation","request","process","log","user","state","error","manual"],S=function(e,r,n){for(var t=n,a=0,o=e.length;a<o;a++)t=r(t,e[a],a,e);return t},y=function(e,r){return S(e,function(n,t,a,o){return r(t,a,o)?n.concat(t):n},[])},x=function(e,r){return S(e,function(n,t,a,o){return n===!0||t===r},!1)},P=function(e){return Object.prototype.toString.call(e)==="[object Array]"},ir=!{toString:null}.propertyIsEnumerable("toString"),J=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],R=function(e){var r=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.push(n);if(!ir)return r;for(var t=0,a=J.length;t<a;t++)Object.prototype.hasOwnProperty.call(e,J[t])&&r.push(J[t]);return r},ve=function(e,r){return e===void 0&&(e=1),function(n){return typeof n=="number"&&parseInt(""+n,10)===n&&n>=e&&n<=r}},W=function(e){return typeof e=="function"||P(e)&&y(e,function(r){return typeof r=="function"}).length===e.length},j=function(e){return typeof e=="string"&&!!e.length},H={},me=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};H.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:j},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return e===void 0||j(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return e===void 0||j(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return e===!0||e===!1}},enabledErrorTypes:{defaultValue:function(){return me()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if(typeof e!="object"||!e)return!1;var r=R(e),n=R(me());return!(y(r,function(t){return x(n,t)}).length<r.length||y(R(e),function(t){return typeof e[t]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:W},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:W},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:W},endpoints:{defaultValue:function(e){return typeof e>"u"?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&typeof e=="object"&&j(e.notify)&&j(e.sessions)&&y(R(e),function(r){return!x(["notify","sessions"],r)}).length===0}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return e===!0||e===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return e===null||P(e)&&y(e,function(r){return typeof r=="string"}).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return typeof e=="string"&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number ≤100",validate:function(e){return ve(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return D},message:"should be null or a list of available breadcrumb types ("+D.join(",")+")",validate:function(e){return e===null||P(e)&&S(e,function(r,n){return r===!1?r:x(D,n)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return e===void 0||typeof e=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return e===null||e&&S(R(e),function(r,n){return r&&x(["id","email","name"],n)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return typeof e=="object"&&e!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&S(["debug","info","warn","error"],function(r,n){return r&&typeof e[n]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]}
1,message:"should be an array of strings|regexes",validate:function(e){return P(e)&&e.length===y(e,function(r){return typeof r=="string"||r&&typeof r.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return P(e)&&e.length===y(e,function(r){return r&&typeof r=="object"&&typeof r.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return P(e)&&e.length===y(e,function(r){return r&&typeof r=="object"&&typeof r.name=="string"}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return e===!0||e===!1}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return e===!0||e===!1}}};var E=function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},$=function(e,r){return S(e,function(n,t,a,o){return n.concat(r(t,a,o))},[])};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},Y.apply(null,arguments)}var Q=H.schema,or={releaseStage:E({},Q.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:Y({},Q.appType,{defaultValue:function(){return"browser"}}),logger:E({},Q.logger,{defaultValue:function(){return typeof console<"u"&&typeof console.debug=="function"?sr():void 0}})},sr=function(){var e={},r=console.log;return $(["debug","info","warn","error"],function(n){var t=console[n];e[n]=typeof t=="function"?t.bind(console,"[bugsnag]"):r.bind(console,"[bugsnag]")}),e},ur=(function(){function e(n,t,a,o){o===void 0&&(o=new Date),this.type=a,this.message=n,this.metadata=t,this.timestamp=o}var r=e.prototype;return r.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e})(),Z=ur,q={};(function(e,r){typeof q=="object"?q=r():e.StackFrame=r()})(this,function(){function e(l){return!isNaN(parseFloat(l))&&isFinite(l)}function r(l){return l.charAt(0).toUpperCase()+l.substring(1)}function n(l){return function(){return this[l]}}var t=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],o=["fileName","functionName","source"],i=["args"],u=["evalOrigin"],s=t.concat(a,o,i,u);function c(l){if(l)for(var p=0;p<s.length;p++)l[s[p]]!==void 0&&this["set"+r(s[p])](l[s[p]])}c.prototype={getArgs:function(){return this.args},setArgs:function(l){if(Object.prototype.toString.call(l)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=l},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(l){if(l instanceof c)this.evalOrigin=l;else if(l instanceof Object)this.evalOrigin=new c(l);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var l=this.getFileName()||"",p=this.getLineNumber()||"",v=this.getColumnNumber()||"",h=this.getFunctionName()||"";return this.getIsEval()?l?"[eval] ("+l+":"+p+":"+v+")":"[eval]:"+p+":"+v:h?h+" ("+l+":"+p+":"+v+")":l+":"+p+":"+v}},c.fromString=function(p){var v=p.indexOf("("),h=p.lastIndexOf(")"),_=p.substring(0,v),b=p.substring(v+1,h).split(","),m=p.substring(h+1);if(m.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(m,""),T=N[1],B=N[2],L=N[3];return new c({functionName:_,args:b||void 0,fileName:T,lineNumber:B||void 0,columnNumber:L||void 0})};for(var f=0;f<t.length;f++)c.prototype["get"+r(t[f])]=n(t[f]),c.prototype["set"+r(t[f])]=(function(l){return function(p){this[l]=!!p}})(t[f]);for(var d=0;d<a.length;d++)c.prototype["get"+r(a[d])]=n(a[d]),c.prototype["set"+r(a[d])]=(function(l){return function(p){if(!e(p))throw new TypeError(l+" must be a Number");this[l]=Number(p)}})(a[d]);for(var g=0;g<o.length;g++)c.prototype["get"+r(o[g])]=n(o[g]),c.prototype["set"+r(o[g])]=(function(l){return function(p){this[l]=String(p)}})(o[g]);return c});var ee={};(function(e,r){typeof ee=="object"?ee=r(q):e.StackGenerator=r(e.StackFrame)})(this,function(e){return{backtrace:function(n){var t=[],a=10;typeof n=="object"&&typeof n.maxStackSize=="number"&&(a=n.maxStackSize);for(var o=arguments.callee;o&&t.length<a&&o.arguments;){for(var i=new Array(o.arguments.length),u=0;u<i.length;++u)i[u]=o.arguments[u];/function(?:\s+([\w$]+))+\s*\(/.test(o.toString())?t.push(new e({functionName:RegExp.$1||void 0,args:i})):t.push(new e({args:i}));try{o=o.caller}catch{break}}return t}}});var re={};(function(e,r){typeof re=="object"?re=r(q):e.ErrorStackParser=r(e.StackFrame)})(this,function(r){var n=/(^|@)\S+:\d+/,t=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(eval@)?(\[native code])?$/;return{parse:function(i){if(typeof i.stacktrace<"u"||typeof i["opera#sourceloc"]<"u")return this.parseOpera(i);if(i.stack&&i.stack.match(t))return this.parseV8OrIE(i);if(i.stack)return this.parseFFOrSafari(i);throw new Error("Cannot parse given Error object")},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var u=/(.+?)(?::(\d+))?(?::(\d+))?$/,s=u.exec(i.replace(/[()]/g,""));return[s[1],s[2]||void 0,s[3]||void 0]},parseV8OrIE:function(i){var u=i.stack.split(`
2`).filter(function(s){return!!s.match(t)},this);return u.map(function(s){s.indexOf("(eval ")>-1&&(s=s.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var c=s.replace(/^\s+/,"").replace(/\(eval code/g,"("),f=c.match(/ (\((.+):(\d+):(\d+)\)$)/);c=f?c.replace(f[0],""):c;var d=c.split(/\s+/).slice(1),g=this.extractLocation(f?f[1]:d.pop()),l=d.join(" ")||void 0,p=["eval","<anonymous>"].indexOf(g[0])>-1?void 0:g[0];return new r({functionName:l,fileName:p,lineNumber:g[1],columnNumber:g[2],source:s})},this)},parseFFOrSafari:function(i){var u=i.stack.split(`
3`).filter(function(s){return!s.match(a)},this);return u.map(function(s){if(s.indexOf(" > eval")>-1&&(s=s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),s.indexOf("@")===-1&&s.indexOf(":")===-1)return new r({functionName:s});var c=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=s.match(c),d=f&&f[1]?f[1]:void 0,g=this.extractLocation(s.replace(c,""));return new r({functionName:d,fileName:g[0],lineNumber:g[1],columnNumber:g[2],source:s})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf(`
4`)>-1&&i.message.split(`
5`).length>i.stacktrace.split(`
6`).length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,s=i.message.split(`
7`),c=[],f=2,d=s.length;f<d;f+=2){var g=u.exec(s[f]);g&&c.push(new r({fileName:g[2],lineNumber:g[1],source:s[f]}))}return c},parseOpera10:function(i){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,s=i.stacktrace.split(`
8`),c=[],f=0,d=s.length;f<d;f+=2){var g=u.exec(s[f]);g&&c.push(new r({functionName:g[3]||void 0,fileName:g[2],lineNumber:g[1],source:s[f]}))}return c},parseOpera11:function(i){var u=i.stack.split(`
9`).filter(function(s){return!!s.match(n)&&!s.match(/^Error created at/)},this);return u.map(function(s){var c=s.split("@"),f=this.extractLocation(c.pop()),d=c.shift()||"",g=d.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,l;d.match(/\(([^)]*)\)/)&&(l=d.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var p=l===void 0||l==="[arguments not available]"?void 0:l.split(",");return new r({functionName:g,args:p,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:s})},this)}}});var ye=re,V=function(e,r,n,t){var a=t&&t.redactedKeys?t.redactedKeys:[],o=t&&t.redactedPaths?t.redactedPaths:[];return JSON.stringify(mr(e,a,o),r,n)},cr=20,fr=25e3,dr=8,U="...";function lr(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function be(e){return"[Throws: "+(e?e.message:"?")+"]"}function gr(e,r){for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return!0;return!1}function hr(e,r){for(var n=0,t=e.length;n<t;n++)if(r.indexOf(e[n])===0)return!0;return!1}function pr(e,r){for(var n=0,t=e.length;n<t;n++)if(typeof e[n]=="string"&&e[n].toLowerCase()===r.toLowerCase()||e[n]&&typeof e[n].test=="function"&&e[n].test(r))return!0;return!1}function _r(e){return Object.prototype.toString.call(e)==="[object Array]"}function vr(e,r){try{return e[r]}catch(n){return be(n)}}function mr(e,r,n){var t=[],a=0;function o(i,u){function s(){return u.length>dr&&a>fr}if(a++,u.length>cr||s())return U;if(i===null||typeof i!="object")return i;if(gr(t,i))return"[Circular]";if(t.push(i),typeof i.toJSON=="function")try{a--;var c=o(i.toJSON(),u);return t.pop(),c}catch(_){return be(_)}var f=lr(i);if(f){a--;var d=o({name:i.name,message:i.message},u);return t.pop(),d}if(_r(i)){for(var g=[],l=0,p=i.length;l<p;l++){if(s()){g.push(U);break}g.push(o(i[l],u.concat("[]")))}return t.pop(),g}var v={};try{for(var h in i)if(Object.prototype.hasOwnProperty.call(i,h)){if(hr(n,u.join("."))&&pr(r,h)){v[h]="[REDACTED]";continue}if(s()){v[h]=U;break}v[h]=o(vr(i,h),u.concat(h))}}catch{}return t.pop(),v}return o(e,[])}function Se(e,r,n,t){if(typeof n=="string"){t===void 0?t=null:t!==null&&typeof t!="string"&&(t=V(t));var a=r[n];if(typeof a=="number"){e[a]={name:n,variant:t};return}e.push({name:n,variant:t}),r[n]=e.length-1}}function yr(e,r,n){if(P(r)){for(var t=0;t<r.length;++t){var a=r[t];a===null||typeof a!="object"||Se(e,n,a.name,a.variant)}return e}}function br(e){return $(y(e,Boolean),function(r){var n=r.name,t=r.variant,a={featureFlag:n};return typeof t=="string"&&(a.variant=t),a})}function Sr(e,r,n){var t=r[n];typeof t=="number"&&(e[t]=null,delete r[n])}var C={add:Se,clear:Sr,merge:yr,toEventApi:br},K=function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e["opera#sourceloc"])&&typeof(e.stack||e.stacktrace||e["opera#sourceloc"])=="string"&&e.stack!==e.name+": "+e.message},Er=Tr;function Tr(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return!0;
9case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return e instanceof Error}}var X=Er,Or=function(e,r,n,t){var a;if(r){var o;if(n===null)return Ee(e,r);typeof n=="object"&&(o=n),typeof n=="string"&&(o=(a={},a[n]=t,a)),o&&(r==="__proto__"||r==="constructor"||r==="prototype"||(e[r]||(e[r]={}),e[r]=E({},e[r],o)))}},xr=function(e,r,n){if(typeof r=="string"){if(!n)return e[r];if(e[r])return e[r][n]}},Ee=function(e,r,n){if(typeof r=="string"){if(!n){delete e[r];return}r==="__proto__"||r==="constructor"||r==="prototype"||e[r]&&delete e[r][n]}},M={add:Or,get:xr,clear:Ee};function te(){return te=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},te.apply(null,arguments)}var w=(function(){function e(n,t,a,o,i){a===void 0&&(a=[]),o===void 0&&(o=Dr()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=i,this._handledState=o,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.response={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[Oe(n,t,e.__type,a)]}var r=e.prototype;return r.addMetadata=function(t,a,o){return M.add(this._metadata,t,a,o)},r.setTraceCorrelation=function(t,a){typeof t=="string"&&(this._correlation=te({traceId:t},typeof a=="string"?{spanId:a}:{}))},r.getGroupingDiscriminator=function(){return this._groupingDiscriminator},r.setGroupingDiscriminator=function(t){var a=this._groupingDiscriminator;return(typeof t=="string"||t===null||t===void 0)&&(this._groupingDiscriminator=t),a},r.getMetadata=function(t,a){return M.get(this._metadata,t,a)},r.clearMetadata=function(t,a){return M.clear(this._metadata,t,a)},r.addFeatureFlag=function(t,a){a===void 0&&(a=null),C.add(this._features,this._featuresIndex,t,a)},r.addFeatureFlags=function(t){C.merge(this._features,t,this._featuresIndex)},r.getFeatureFlags=function(){return C.toEventApi(this._features)},r.clearFeatureFlag=function(t){C.clear(this._features,this._featuresIndex,t)},r.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},r.getUser=function(){return this._user},r.setUser=function(t,a,o){this._user={id:t,email:a,name:o}},r.toJSON=function(){return{payloadVersion:"4",exceptions:$(this.errors,function(t){return E({},t,{message:t.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,response:this.response,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},e})(),Nr=function(e){var r={file:e.fileName,method:$r(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return r.lineNumber>-1&&!r.file&&!r.method&&(r.file="global code"),r},$r=function(e){return/^global code$/i.test(e)?"global code":e},Dr=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},Te=function(e){return typeof e=="string"?e:""};function Oe(e,r,n,t){return{errorClass:Te(e),errorMessage:Te(r),type:n,stacktrace:S(t,function(a,o){var i=Nr(o);try{return JSON.stringify(i)==="{}"?a:a.concat(i)}catch{return a}},[])}}function xe(e){return e.cause?[e].concat(xe(e.cause)):[e]}w.getStacktrace=function(e,r,n){if(K(e))return ye.parse(e).slice(r);try{return y(ee.backtrace(),function(t){return(t.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+n)}catch{return[]}},w.create=function(e,r,n,t,a,o){a===void 0&&(a=0);var i=$e(e,r,t,o),u=i[0],s=i[1],c;try{var f=w.getStacktrace(u,s>0?1+s+a:0,1+a);c=new w(u.name,u.message,f,n,e)}catch{c=new w(u.name,u.message,[],n,e)}if(u.name==="InvalidError"&&c.addMetadata(""+t,"non-error parameter",Ne(e)),u.cause){var d,g=xe(u).slice(1),l=$(g,function(p){var v=X(p)&&K(p)?ye.parse(p):[],h=$e(p,!0,"error cause"),_=h[0];return _.name==="InvalidError"&&c.addMetadata("error cause",Ne(p)),Oe(_.name,_.message,w.__type,v)});(d=c.errors).push.apply(d,l)}return c};var Ne=function(e){return e===null?"null":e===void 0?"undefined":e},$e=function(e,r,n,t){var a,o=0,i=function(u){var s=n==="error cause"?"was":"received";t&&t.warn(n+" "+s+' a non-error: "'+u+'"');var c=new Error(n+" "+s+' a non-error. See "'+n+'" tab for more detail.');return c.name="InvalidError",c};if(!r)X(e)?a=e:(a=i(typeof e),o+=2);else switch(typeof e){case"string":case"number":case"boolean":a=new Error(String(e)),o+=1;break;case"function":a=i("function"),o+=2;break;case"object":e!==null&&X(e)?a=e:e!==null&&Rr(e)?(a=new Error(e.message||e.errorMessage),a.name=e.name||e.errorClass,o+=1):(a=i(e===null?"null":"unsupported object"),o+=2);break;default:a=i("nothing"),o+=2}if(!K(a))try{throw a}catch(u){K(u)&&(a=u,o=1)}return[a,o]};w.__type="browserjs";var Rr=function(e){return(typeof e.name=="string"||typeof e.errorClass=="string")&&(typeof e.message=="string"||typeof e.errorMessage=="string")},ne=w,wr=function(e,r,n){var t=0,a=function(){if(t>=e.length)return n(null,!0);r(e[t],function(o,i){if(o)return n(o);if(i===!1)return n(null,!1);t++,a()})};a()},kr=function(e,r,n,t){var a=function(o,i){if(typeof o!="function")return i(null);try{if(o.length!==2){var u=o(r);return u&&typeof u.then=="function"?u.then(function(s){return setTimeout(function(){return i(null,s)})},function(s){setTimeout(function(){return n(s),i(null,!0)})}):i(null,u)}o(r,function(s,c){if(s)return n(s),i(null);i(null,c)})}catch(s){n(s),i(null)}};wr(e,a,t)},De=function(e,r,n,t){for(var a=!1,o=e.slice();!a&&o.length;)try{a=o.pop()(r)===!1}catch(i){t.error("Error occurred in "+n+" callback, continuing anyway…"),t.error(i)}return a};function Pr(e){return typeof e=="string"&&/^c[a-z0-9]{20,32}$/.test(e)}var Cr=Pr;function Ar(e,r){var n="000000000"+e;return n.substr(n.length-r)}var ae=Ar;function Br(e){var r=4,n=36,t=Math.pow(n,r),a=0;function o(){return ae((Math.random()*t<<0).toString(n),r)}function i(){return a=a<t?a:0,a++,a-1}function u(){var s="c",c=new Date().getTime().toString(n),f=ae(i().toString(n),r),d=e(),g=o()+o();return s+c+f+d+g}return u.fingerprint=e,u.isCuid=Cr,u}var Mr=Br,Re=typeof window=="object"?window:self,we=0;for(var Ir in Re)Object.hasOwnProperty.call(Re,Ir)&&we++;var Fr=navigator.mimeTypes?navigator.mimeTypes.length:0,jr=ae((Fr+navigator.userAgent.length).toString(36)+we.toString(36),4);function Lr(){return jr}var Hr=Lr,qr=Mr(Hr),Vr=qr,Ur=(function(){function e(){this.id=Vr(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var r=e.prototype;return r.getUser=function(){return this._user},r.setUser=function(t,a,o){this._user={id:t,email:a,name:o}},r.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},r._track=function(t){this[t._handledState.unhandled?"_unhandled":"_handled"]+=1},e})(),ie=Ur,Kr=C.add,Xr=C.clear,oe=C.merge,Gr="00000",zr="https://notify.bugsnag.smartbear.com",Jr="https://sessions.bugsnag.smartbear.com",k=function(){},Wr=(function(){function e(n,t,a,o){var i=this;t===void 0&&(t=H.schema),a===void 0&&(a=[]),this._notifier=o,this._config={},this._schema=t,this._delivery={sendSession:k,sendEvent:k},this._logger={debug:k,info:k,warn:k,error:k},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=ne,this.Breadcrumb=Z,this.Session=ie,this._config=this._configure(n,a),$(a.concat(this._config.plugins),function(c){c&&i._loadPlugin(c)}),this._depth=1;var u=this,s=this.notify;this.notify=function(){return s.apply(u,arguments)}}
9var r=e.prototype;return r.addMetadata=function(t,a,o){return M.add(this._metadata,t,a,o)},r.getMetadata=function(t,a){return M.get(this._metadata,t,a)},r.clearMetadata=function(t,a){return M.clear(this._metadata,t,a)},r.addFeatureFlag=function(t,a){a===void 0&&(a=null),Kr(this._features,this._featuresIndex,t,a)},r.addFeatureFlags=function(t){oe(this._features,t,this._featuresIndex)},r.clearFeatureFlag=function(t){Xr(this._features,this._featuresIndex,t)},r.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},r.getContext=function(){return this._context},r.setContext=function(t){this._context=t},r.getGroupingDiscriminator=function(){return this._groupingDiscriminator},r.setGroupingDiscriminator=function(t){var a=this._groupingDiscriminator;return(typeof t=="string"||t===null||t===void 0)&&(this._groupingDiscriminator=t),a},r._configure=function(t,a){var o=S(a,function(c,f){return f&&f.configSchema?E({},c,f.configSchema):c},this._schema);t.endpoints||(t.sendPayloadChecksums="sendPayloadChecksums"in t?t.sendPayloadChecksums:!0);var i=S(R(o),function(c,f){var d=o[f].defaultValue(t[f]);if(t[f]!==void 0){var g=o[f].validate(t[f]);g?o[f].allowPartialObject?c.config[f]=E(d,t[f]):c.config[f]=t[f]:(c.errors[f]=o[f].message,c.config[f]=d)}else c.config[f]=d;return c},{errors:{},config:{}}),u=i.errors,s=i.config;if(o.apiKey){if(!s.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(s.apiKey)||(u.apiKey="should be a string of 32 hexadecimal characters"),t.endpoints===void 0&&s.apiKey.indexOf(Gr)===0&&(s.endpoints={notify:zr,sessions:Jr})}return this._metadata=E({},s.metadata),oe(this._features,s.featureFlags,this._featuresIndex),this._user=E({},s.user),this._context=s.context,s.logger&&(this._logger=s.logger),s.onError&&(this._cbs.e=this._cbs.e.concat(s.onError)),s.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(s.onBreadcrumb)),s.onSession&&(this._cbs.s=this._cbs.s.concat(s.onSession)),R(u).length&&this._logger.warn(Yr(u,t)),s},r.getUser=function(){return this._user},r.setUser=function(t,a,o){this._user={id:t,email:a,name:o}},r._loadPlugin=function(t){var a=t.load(this);t.name&&(this._plugins["~"+t.name+"~"]=a)},r.getPlugin=function(t){return this._plugins["~"+t+"~"]},r._setDelivery=function(t){this._delivery=t(this)},r.startSession=function(){var t=new ie;t.app.releaseStage=this._config.releaseStage,t.app.version=this._config.appVersion,t.app.type=this._config.appType,t._user=E({},this._user);var a=De(this._cbs.s,t,"onSession",this._logger);return a?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,t)},r.addOnError=function(t,a){a===void 0&&(a=!1),this._cbs.e[a?"unshift":"push"](t)},r.removeOnError=function(t){this._cbs.e=y(this._cbs.e,function(a){return a!==t})},r._addOnSessionPayload=function(t){this._cbs.sp.push(t)},r.addOnSession=function(t){this._cbs.s.push(t)},r.removeOnSession=function(t){this._cbs.s=y(this._cbs.s,function(a){return a!==t})},r.addOnBreadcrumb=function(t,a){a===void 0&&(a=!1),this._cbs.b[a?"unshift":"push"](t)},r.removeOnBreadcrumb=function(t){this._cbs.b=y(this._cbs.b,function(a){return a!==t})},r.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},r.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},r.leaveBreadcrumb=function(t,a,o){if(t=typeof t=="string"?t:"",o=typeof o=="string"&&x(D,o)?o:"manual",a=typeof a=="object"&&a!==null?a:{},!!t){var i=new Z(t,a,o),u=De(this._cbs.b,i,"onBreadcrumb",this._logger);if(u){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(i),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},r._isBreadcrumbTypeEnabled=function(t){var a=this._config.enabledBreadcrumbTypes;return a===null||x(a,t)},r.notify=function(t,a,o){o===void 0&&(o=k);var i=ne.create(t,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(i,a,o)},r._notify=function(t,a,o){var i=this;if(o===void 0&&(o=k),t.app=E({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=E({},t._metadata,this._metadata),t._user=E({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),t.setGroupingDiscriminator(this._groupingDiscriminator),oe(t._features,this._features,t._featuresIndex),this._config.enabledReleaseStages!==null&&!x(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),o(null,t);var u=t.severity,s=function(f){i._logger.error("Error occurred in onError callback, continuing anyway…"),i._logger.error(f)},c=[].concat(this._cbs.e).concat(a);kr(c,t,s,function(f,d){if(f&&s(f),!d)return i._logger.debug("Event not sent due to onError callback"),o(null,t);i._isBreadcrumbTypeEnabled("error")&&e.prototype.leaveBreadcrumb.call(i,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},"error"),u!==t.severity&&(t._handledState.severityReason={type:"userCallbackSetSeverity"}),t.unhandled!==t._handledState.unhandled&&(t._handledState.severityReason.unhandledOverrid
9den=!0,t._handledState.unhandled=t.unhandled),i._session&&(i._session._track(t),t._session=i._session),i._delivery.sendEvent({apiKey:t.apiKey||i._config.apiKey,notifier:i._notifier,events:[t]},function(g){return o(g,t)})})},e})(),Yr=function(e,r){var n=new Error(`Invalid configuration
10`+$(R(e),function(t){return"  - "+t+" "+e[t]+", got "+Qr(r[t])}).join(`
11
12`));return n},Qr=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},se=Wr,I={},ke=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request","events.[].response"];I.event=function(e,r){var n=V(e,null,null,{redactedPaths:ke,redactedKeys:r});return n.length>1e6&&(e.events[0]._metadata={notifier:`WARNING!
13Serialized payload was `+n.length/1e6+`MB (limit = 1MB)
14metadata was removed`},n=V(e,null,null,{redactedPaths:ke,redactedKeys:r})),n},I.session=function(e,r){var n=V(e,null,null);return n};var ue={};ue=function(e,r){return r===void 0&&(r=window),{sendEvent:function(n,t){if(t===void 0&&(t=function(){}),e._config.endpoints.notify===null){var a=new Error("Event not sent due to incomplete endpoint configuration");return t(a)}var o=Pe(e._config,"notify","4",r),i=I.event(n,e._config.redactedKeys),u=new r.XDomainRequest;u.onload=function(){t(null)},u.onerror=function(){var s=new Error("Event failed to send");e._logger.error("Event failed to send…",s),i.length>1e6&&e._logger.warn("Event oversized ("+(i.length/1e6).toFixed(2)+" MB)"),t(s)},u.open("POST",o),setTimeout(function(){try{u.send(i)}catch(s){e._logger.error(s),t(s)}},0)},sendSession:function(n,t){if(t===void 0&&(t=function(){}),e._config.endpoints.sessions===null){var a=new Error("Session not sent due to incomplete endpoint configuration");return t(a)}var o=Pe(e._config,"sessions","1",r),i=new r.XDomainRequest;i.onload=function(){t(null)},i.open("POST",o),setTimeout(function(){try{i.send(I.session(n,e._config.redactedKeys))}catch(u){e._logger.error(u),t(u)}},0)}}};var Pe=function(e,r,n,t){var a=JSON.parse(JSON.stringify(new Date)),o=Zr(e.endpoints[r],t.location.protocol);return o+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(a)},Zr=ue._matchPageProtocol=function(e,r){return r==="http:"?e.replace(/^https:/,"http:"):e};function Ce(e,r){if(e.isSecureContext&&e.crypto&&e.crypto.subtle&&e.crypto.subtle.digest&&typeof TextEncoder=="function"){var n=new TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-1",n).then(function(t){var a=Array.from(new Uint8Array(t)),o=a.map(function(i){return i.toString(16).padStart(2,"0")}).join("");return"sha1 "+o})}return Promise.resolve()}var et=function(e,r){return r===void 0&&(r=window),{sendEvent:function(n,t){t===void 0&&(t=function(){});try{var a=e._config.endpoints.notify;if(a===null){var o=new Error("Event not sent due to incomplete endpoint configuration");return t(o)}var i=new r.XMLHttpRequest,u=I.event(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===r.XMLHttpRequest.DONE){var s=i.status;if(s===0||s>=400){var c=new Error("Request failed with status "+s);e._logger.error("Event failed to send…",c),u.length>1e6&&e._logger.warn("Event oversized ("+(u.length/1e6).toFixed(2)+" MB)"),t(c)}else t(null)}},i.open("POST",a),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","4"),i.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),e._config.sendPayloadChecksums&&typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Ce(r,u).then(function(s){s&&i.setRequestHeader("Bugsnag-Integrity",s),i.send(u)}).catch(function(s){e._logger.error(s),i.send(u)}):i.send(u)}catch(s){e._logger.error(s)}},sendSession:function(n,t){t===void 0&&(t=function(){});try{var a=e._config.endpoints.sessions;if(a===null){var o=new Error("Session not sent due to incomplete endpoint configuration");return t(o)}var i=new r.XMLHttpRequest,u=I.session(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===r.XMLHttpRequest.DONE){var s=i.status;if(s===0||s>=400){var c=new Error("Request failed with status "+s);e._logger.error("Session failed to send…",c),t(c)}else t(null)}},i.open("POST",a),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","1"),i.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),e._config.sendPayloadChecksums&&typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Ce(r,u).then(function(s){s&&i.setRequestHeader("Bugsnag-Integrity",s),i.send(u)}).catch(function(s){e._logger.error(s),i.send(u)}):i.send(u)}catch(s){e._logger.error(s)}}}},Ae=new Date,rt=function(){Ae=new Date},tt={name:"appDuration",load:function(e){return e.addOnError(function(r){var n=new Date;r.app.duration=n-Ae},!0),{reset:rt}}},nt=function(e){return e===void 0&&(e=window),{load:function(r){r.addOnError(function(n){n.context===void 0&&(n.context=e.location.pathname)},!0)}}};function at(e){return typeof e=="string"&&/^c[a-z0-9]{20,32}$/.test(e)}var it=at;function ot(e,r){var n="000000000"+e;return n.substr(n.length-r)}var ce=ot;function st(e){var r=4,n=36,t=Math.pow(n,r),a=0;function o(){return ce((Math.random()*t<<0).toString(n),r)}function i(){return a=a<t?a:0,a++,a-1}function u(){var s="c",c=new Date().getTime().toString(n),f=ce(i().toString(n),r),d=e(),g=o()+o();return s+c+f+d+g}return u.fingerprint=e,u.isCuid=it,u}var ut=st,Be=typeof window=="object"?window:self,Me=0;for(var ct in Be)Object.hasOwnProperty.call(Be,ct)&&Me++;var ft=navigator.mimeTypes?navigator.mimeTypes.length:0,dt=ce((ft+navigator.userAgent.length).toString(36)+Me.toString(36),4);function lt(){return dt}var gt=lt,ht=ut(gt),Ie=ht,Fe="bugsnag-anonymous-id",pt=function(e){try{var r=e.localStorage,n=r.getItem(Fe);
14return n&&Ie.isCuid(n)||(n=Ie(),r.setItem(Fe,n)),n}catch{}},_t=function(e,r){return e===void 0&&(e=navigator),r===void 0&&(r=window),{load:function(n){var t={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};r&&r.screen&&r.screen.orientation&&r.screen.orientation.type?t.orientation=r.screen.orientation.type:r&&r.document&&(t.orientation=r.document.documentElement.clientWidth>r.document.documentElement.clientHeight?"landscape":"portrait"),n._config.generateAnonymousId&&(t.id=pt(r)),n.addOnSession(function(a){a.device=E({},a.device,t),n._config.collectUserIp||je(a)}),n.addOnError(function(a){a.device=E({},a.device,t,{time:new Date}),n._config.collectUserIp||je(a)},!0)},configSchema:{generateAnonymousId:{validate:function(n){return n===!0||n===!1},defaultValue:function(){return!0},message:"should be true|false"}}}},je=function(e){var r=e.getUser();(!r||!r.id)&&e.setUser(e.device.id)},vt=function(e){return e===void 0&&(e=window),{load:function(r){r.addOnError(function(n){n.request&&n.request.url||(n.request=E({},n.request,{url:e.location.href}))},!0)}}},mt={load:function(e){e._sessionDelegate=yt}},yt={startSession:function(e,r){var n=e;return n._session=r,n._pausedSession=null,n._config.enabledReleaseStages!==null&&!x(n._config.enabledReleaseStages,n._config.releaseStage)?(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n):(n._delivery.sendSession({notifier:n._notifier,device:r.device,app:r.app,sessions:[{id:r.id,startedAt:r.startedAt,user:r._user}]}),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},bt={load:function(e){e._config.collectUserIp||e.addOnError(function(r){r._user&&typeof r._user.id>"u"&&delete r._user.id,r._user=E({id:"[REDACTED]"},r._user),r.request=E({clientIp:"[REDACTED]"},r.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return e===!0||e===!1}}}},Le={};Le.load=function(e){var r=/^(local-)?dev(elopment)?$/.test(e._config.releaseStage);r||!e._isBreadcrumbTypeEnabled("log")||$(St,function(n){var t=console[n];console[n]=function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];e.leaveBreadcrumb("Console output",S(o,function(u,s,c){var f="[Unknown value]";try{f=String(s)}catch{}if(f==="[object Object]")try{f=JSON.stringify(s)}catch{}return u["["+c+"]"]=f,u},{severity:n.indexOf("group")===0?"log":n}),"log"),t.apply(console,o)},console[n]._restore=function(){console[n]=t}})};var St=y(["log","debug","info","warn","error"],function(e){return typeof console<"u"&&typeof console[e]=="function"}),He=200,qe=5e5,Et=function(e,r){return e===void 0&&(e=document),r===void 0&&(r=window),{load:function(n){if(!n._config.trackInlineScripts)return;var t=r.location.href,a="",o=!!e.attachEvent,i=o?e.readyState==="complete":e.readyState!=="loading",u=function(){return e.documentElement.outerHTML};a=u();var s=e.onreadystatechange;e.onreadystatechange=function(){e.readyState==="interactive"&&(a=u(),i=!0);try{s.apply(this,arguments)}catch{}};var c=null,f=function(h){c=h},d=function(){var h=e.currentScript||c;if(!h&&!i){var _=e.scripts||e.getElementsByTagName("script");h=_[_.length-1]}return h},g=function(h){(!i||!a)&&(a=u());var _=["<!-- DOC START -->"].concat(a.split(`
15`)),b=h-1,m=Math.max(b-3,0),N=Math.min(b+3,_.length);return S(_.slice(m,N),function(T,B,L){return T[m+1+L]=B.length<=He?B:B.substr(0,He),T},{})};n.addOnError(function(h){h.errors[0].stacktrace=y(h.errors[0].stacktrace,function(T){return!/__trace__$/.test(T.method)});var _=h.errors[0].stacktrace[0],b=function(T){return T.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!(_&&_.file&&b(_.file)!==b(t))){var m=d();if(m){var N=m.innerHTML;h.addMetadata("script","content",N.length<=qe?N:N.substr(0,qe)),_&&_.lineNumber&&(_.code=g(_.lineNumber))}}},!0);var l=$(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(h){return fe(r,h,function(_){return v(_,function(b){return{get:function(){return b[0]},replace:function(m){b[0]=m}}})})}),p=l[0];$(["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","MediaSource","MediaRecorder","MediaStream","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","BroadcastChannel","RTCPeerConnection","RTCDataChannel","AbortSignal","MediaQueryList","ShadowRoot","FontFaceSet","Animation","PermissionStatus","PaymentRequest","VideoTrackList"],function(h){!r[h]||!r[h].prototype||!Object.prototype.hasOwnProperty.call(r[h].prototype,"addEventListener")||(fe(r[h].prototype,"addEventListener",function(_){return v(_,Ve)}),fe(r[h].prototype,"removeEventListener",function(_){return v(_,Ve,!0)}))});function v(h,_,b){return b===void 0&&(b=!1),function(){var m=[].slice.call(arguments);try{var N=_(m),T=N.get();if(b&&h.apply(this,m),typeof T!="function")return h.apply(this,m);if(T.__trace__)N.replace(T.__trace__);else{var B=d();T.__trace__=function(){f(B),p(function(){f(null)},0);var Xt=T.apply(this,arguments);return f(null),Xt},T.__trace__.__trace__=T.__trace__,N.replace(T.__trace__)}}catch{}if(h.apply)return h.apply(this,m);switch(m.length){case 1:return h(m[0]);case 2:return h(m[0],m[1]);default:return h()}}}},configSchema:{trackInlineScripts:{validate:function(n){return n===!0||n===!1},defaultValue:function(){return!0},message:"should be true|false"}}}};function fe(e,r,n){var t=e[r];if(!t)return t;var a=n(t);return e[r]=a,t}function Ve(e){var r=!!e[1]&&typeof e[1].handleEvent=="function";return{get:function(){return r?e[1].handleEvent:e[1]},replace:function(n){r?e[1].handleEvent=n:e[1]=n}}}var Tt=function(e){return e===void 0&&(e=window),{load:function(r){"addEventListener"in e&&r._isBreadcrumbTypeEnabled("user")&&e.addEventListener("click",function(n){var t,a;try{t=xt(n.target),a=Ue(n.target,e)}catch{t="[hidden]",a="[hidden]",r._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}r.leaveBreadcrumb("UI click",{targetText:t,targetSelector:a},"user")},!0)}}},Ot=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function xt(e){var r=e.textContent||e.innerText||"";return!r&&(e.type==="submit"||e.type==="button")&&(r=e.value),r=r.replace(Ot,"$1"),r.length>140?r.slice(0,135)+"(...)":r}function Ue(e,r){var n=[e.tagName];if(e.id&&n.push("#"+e.id),e.className&&e.className.length&&n.push("."+e.className.split(" ").join(".")),!r.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(r.document.querySelectorAll(n.join("")).length===1)return n.join("")}catch{return n.join("")}if(e.parentNode.childNodes.length>1){var t=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+t+")")}return r.document.querySelectorAll(n.join("")).length===1?n.join(""):e.parentNode?Ue(e.parentNode,r)+" > "+n.join(""):n.join("")}var Ke={};Ke=function(e){e===void 0&&(e=window);var r={load:function(n){if("addEventListener"in e&&n._isBreadcrumbTypeEnabled("navigation")){var t=function(a){return function(){return n.leaveBreadcrumb(a,{},"navigation")}};e.addEventListener("pagehide",t("Page hidden"),!0),e.addEventListener("pageshow",t("Page shown"),!0),e.addEventListener("load",t("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",t("DOMContentLoaded"),!0),e.addEventListener("load",function(){return e.addEventListener("popstate",t("Navigated back"),!0)}),e.addEventListener("hashchange",function(a){var o=a.oldURL?{from:G(a.oldURL,e),to:G(a.newURL,e),state:Ge(e)}:{to:G(e.location.href,e)};n.leaveBreadcrumb("Hash changed",o,"navigation")},!0),e.history.pushState&&Xe(n,e.history,"pushState",e,!0),e.history.replaceState&&Xe(n,e.history,"replaceState",e)}}};return r};var G=function(e,r){var n=r.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},Nt=function(e,r,n,t){var a=G(e.location.href,e);return{title:n,state:r,prevState:Ge(e),to:t||a,from:a}},Xe=function(e,r,n,t,a){a===void 0&&(a=!1);var o=r[n];r[n]=function(i,u,s){e.leaveBreadcrumb("History "+n,Nt(t,i,u,s),"navigation"),a&&typeof e.resetEventCount=="function"&&e.resetEventCount(),o.apply(r,[i,u].concat(s!==void 0?s:[]))}},Ge=function(e){try{return e.history.state}catch{}},ze=function(e){if(!e)return{};var r={};if(typeof e.entries=="function")for(var n=e.entries(),t=n.next();!t.done;){var a=t.value,o=a[0],i=a[1];r[o]=i,t=n.next()}else e.forEach&&e.forEach(function(u,s){r[s]=u});return r},$t=(function(){function e(){this.callbacks=[]}var r=e.prototype;return r.onStart=function(t){if(typeof t!="function")throw new Error("RequestTracker onStart callback must be a function");this.callbacks.push(t)},r.start=function(t){var a=this.callbacks.map(function(o){try{return o(t)}catch(i){return console.error("RequestTracker callback error:",i),null}}).filter(function(o){return o&&typeof o=="object"});return{onRequestEnd:function(o){a.forEach(function(i){if(typeof i.onRequestEnd=="function")try{i.onRequestEnd(o)}catch(u){console.error("RequestTracker onRequestEnd callback error:",u)}
15})},extraRequestHeaders:a.map(function(o){return o.extraRequestHeaders}).filter(function(o){return o&&typeof o=="object"}).reduce(function(o,i){return Object.assign(o,i)},{})}},r._reset=function(){this.callbacks=[]},e})(),de=$t;function Dt(e,r){if(!(!("fetch"in e)||e.fetch.polyfill)){if(!e.__bugsnag_fetch_tracker__){var n=new de,t=e.fetch;e.fetch=function(o,i){i===void 0&&(i={});var u=null,s="GET";o&&typeof o=="object"?(u=o.url,i&&"method"in i?s=i.method:o&&"method"in o&&(s=o.method)):(u=o,i&&"method"in i&&(s=i.method)),s===void 0&&(s="GET");var c={};i&&i.headers&&(i.headers instanceof Headers?c=ze(i.headers):typeof i.headers=="object"&&(c=i.headers));var f=Date.now(),d={url:String(u),method:String(s),startTime:f,type:"fetch",input:o,headers:c,body:i?i.body:void 0},g=n.start(d),l=g.onRequestEnd;return t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))).then(function(p){return l({endTime:Date.now(),status:p.status,state:"success",headers:ze(p.headers)}),p},function(p){throw l({endTime:Date.now(),state:"error",error:p}),p})},e.__bugsnag_fetch_tracker__=n}return e.__bugsnag_fetch_tracker__}}var Je=Dt;function Rt(e,r){if(r===void 0&&(r=[]),!e||typeof e!="string")return!0;var n=e.replace(/\?.*$/,"");return x(r,n)}function wt(e,r){r===void 0&&(r=[]);var n=[e._config.endpoints.notify,e._config.endpoints.sessions].concat(r).filter(Boolean);return function(t){return Rt(t,n)}}function kt(e){return e&&Date.now()-e}var We={createUrlFilter:wt,getDuration:kt},Pt=function(e){if(!e)return{};var r=e.trim().split(/[\r\n]+/),n={};return r.forEach(function(t){var a=t.split(": "),o=a.shift(),i=a.join(": ");n[o]=i}),n},Ye=function(r){var n=r.response,t=r.responseType;if(n!=null)switch(t){case"arraybuffer":case"blob":return"[Binary Data]";case"document":return"[Document]";case"json":try{return JSON.stringify(n)}catch{return"[Unserializable JSON]"}default:return String(n)}};function Ct(e,r){if(!(!("addEventListener"in e.XMLHttpRequest.prototype)||!("WeakMap"in e))){if(!e.__bugsnag_xhr_tracker__){var n=new de,t=new WeakMap,a=new WeakMap,o=e.XMLHttpRequest.prototype.open,i=e.XMLHttpRequest.prototype.send,u=e.XMLHttpRequest.prototype.setRequestHeader;e.XMLHttpRequest.prototype.open=function(c,f){this&&t.set(this,{method:String(c),url:String(f)}),o.apply(this,arguments)},e.XMLHttpRequest.prototype.setRequestHeader=function(c,f){if(this){var d=t.get(this);d&&(d.headers=d.headers||{},d.headers[String(c)]=(d.headers[String(c)]||"")+String(f))}u.apply(this,arguments)},e.XMLHttpRequest.prototype.send=function(c){var f=this,d=t.get(this);if(d){var g=a.get(this);g&&(this.removeEventListener("load",g.load),this.removeEventListener("error",g.error));var l=Date.now(),p={url:d.url,method:d.method,startTime:l,type:"xmlhttprequest",body:c,headers:d.headers},v=n.start(p),h=v.onRequestEnd,_=function(){return Pt(f.getAllResponseHeaders())},b=function(){h({endTime:Date.now(),status:f.status,state:"success",headers:_(),body:Ye(f)})},m=function(){h({endTime:Date.now(),state:"error",headers:_(),body:Ye(f)})};this.addEventListener("load",b),this.addEventListener("error",m),this&&a.set(this,{load:b,error:m})}i.apply(this,arguments)},e.__bugsnag_xhr_tracker__=n}return e.__bugsnag_xhr_tracker__}}var Qe=Ct,Ze=We.createUrlFilter,er=We.getDuration;function At(e,r){return e===void 0&&(e=[]),r===void 0&&(r=window),{name:"requestTracker",load:function(n){try{var t=Je(r),a=Qe(r),o=Ze(n,e);return{fetchTracker:t,xhrTracker:a,urlFilter:o,getDuration:er}}catch(i){throw n._logger.error("Failed to load request tracker:",i),new Error("Request tracking is not available: "+i.message)}}}}var Bt={RequestTracker:de,createFetchTracker:Je,createXhrTracker:Qe,createUrlFilter:Ze,getDuration:er,createRequestTrackerPlugin:At},le="request",Mt=function(e,r){e===void 0&&(e=[]),r===void 0&&(r=window);var n=[],t={load:function(a){if(!a._isBreadcrumbTypeEnabled("request"))return;var o=a.getPlugin("requestTracker");if(!o)try{var i=Bt.createRequestTrackerPlugin,u=i(e,r);a._loadPlugin(u),o=a.getPlugin("requestTracker")}catch(c){a._logger.warn("Failed to auto-load request tracker, falling back to direct monkey-patching:",c.message)}if(o)return s(o);function s(c){var f=c.fetchTracker,d=c.xhrTracker,g=c.urlFilter,l=c.getDuration,p=function(v){if(!g(v.url))return{onRequestEnd:function(h){var _=l(v.startTime),b={method:v.method,status:h.status,url:v.url,duration:_},m=v.type==="fetch"?"fetch()":"XMLHttpRequest";h.state==="error"?a.leaveBreadcrumb(m+" error",{method:v.method,url:v.url,duration:_},le):h.status>=400?a.leaveBreadcrumb(m+" failed",b,le):a.leaveBreadcrumb(m+" succeeded",b,le)}}};f&&(f.onStart(p),n.push(f._restore)),d&&(d.onStart(p),n.push(d._restore))}}};return t},It={load:function(e){var r=0;e.addOnError(function(n){if(r>=e._config.maxEvents)return e._logger.warn("Cancelling event send due to maxEvents per session limit of "+e._config.maxEvents+" being reached"),!1;r++}),e.resetEventCount=function(){r=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(e){return ve(1,100)(e)}}}},ge={};ge={load:function(e){e.addOnError(function(r){var n=S(r.errors,function(t,a){return t.concat(a.stacktrace)},[]);$(n,function(t){t.file=Ft(t.file)})})}};var Ft=ge._strip=function(e){return typeof e=="string"?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},jt=function(e,r){return e===void 0&&(e=window),r===void 0&&(r="window onerror"),{load:function(n){if(!n._config.autoDetectErrors||!n._config.enabledErrorTypes.unhandledExceptions)return;function t(o,i,u,s,c){if(u===0&&/Script error\.?/.test(o))n._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var f={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},d;if(c)d=n.Event.create(c,!0,f,r,1),rr(d.errors[0].stacktrace,i,u,s);
15else if(typeof o=="object"&&o!==null&&(!i||typeof i!="string")&&!u&&!s&&!c){var g=o.type?"Event: "+o.type:"Error",l=o.message||o.detail||"";d=n.Event.create({name:g,message:l},!0,f,r,1),d.originalError=o,d.addMetadata(r,{event:o,extraParameters:i})}else d=n.Event.create(o,!0,f,r,1),rr(d.errors[0].stacktrace,i,u,s);n._notify(d)}try{a.apply(this,arguments)}catch{}}var a=e.onerror;e.onerror=t}}},rr=function(e,r,n,t){e[0]||e.push({});var a=e[0];!a.file&&typeof r=="string"&&(a.file=r),!a.lineNumber&&he(n)&&(a.lineNumber=n),a.columnNumber||(he(t)?a.columnNumber=t:window.event&&he(window.event.errorCharacter)&&(a.columnNumber=window.event.errorCharacter))},he=function(e){return typeof e=="number"&&String.call(e)!=="NaN"},Lt=function(e){e===void 0&&(e=window);var r={load:function(n){if(!(!n._config.autoDetectErrors||!n._config.enabledErrorTypes.unhandledRejections)){var t=function(a){var o=a.reason,i=!1;try{a.detail&&a.detail.reason&&(o=a.detail.reason,i=!0)}catch{}var u=!n._config.reportUnhandledPromiseRejectionsAsHandled,s=n.Event.create(o,!1,{severity:"error",unhandled:u,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,n._logger);i&&$(s.errors[0].stacktrace,Ht(o)),n._notify(s,function(c){if(X(c.originalError)&&!c.originalError.stack){var f;c.addMetadata("unhandledRejection handler",(f={},f[Object.prototype.toString.call(c.originalError)]={name:c.originalError.name,message:c.originalError.message,code:c.originalError.code},f))}})};"addEventListener"in e?e.addEventListener("unhandledrejection",t):e.onunhandledrejection=function(a,o){t({detail:{reason:a,promise:o}})}}}};return r},Ht=function(e){return function(r){r.file!==e.toString()&&r.method&&(r.method=r.method.replace(/^\s+/,""))}},A={},qt="Bugsnag JavaScript",Vt="8.9.0",Ut="https://github.com/bugsnag/bugsnag-js",Kt=E({},H.schema,or),O={_client:null,createClient:function(e){typeof e=="string"&&(e={apiKey:e}),e||(e={});var r=[tt,_t(),nt(),vt(),It,mt,bt,ge,jt(),Lt(),Ke(),Tt(),Mt(),Le,Et()],n=new se(e,Kt,r,{name:qt,version:Vt,url:Ut});return n._setDelivery(window.XDomainRequest?ue:et),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(e){return O._client?(O._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),O._client):(O._client=O.createClient(e),O._client)},isStarted:function(){return O._client!=null}};return $(["resetEventCount"].concat(R(se.prototype)),function(e){/^_/.test(e)||(O[e]=function(){if(!O._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");O._client._depth+=1;var r=O._client[e].apply(O._client,arguments);return O._client._depth-=1,r})}),A=O,A.Client=se,A.Event=ne,A.Session=ie,A.Breadcrumb=Z,A.default=O,A})})(pe)),pe.exports}var _e,nr;function Wt(){return nr||(nr=1,_e=Jt()),_e}var ar=Wt();const Yt=Gt(ar),Zt=zt({__proto__:null,default:Yt},[ar]);export{Zt as n};
16//# sourceMappingURL=notifier-rLmqvHxI.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.