bitfocus / companion-module-h2r-graphics

MIT License
10 stars 7 forks source link

[BUG] h2r-graphics (V2) does not connect in 3.0.0 later Versions than 3.0.0+5647-beta. #30

Closed ce1958 closed 1 year ago

ce1958 commented 1 year ago

Is this a bug in companion itself or a module?

Is there an existing issue for this?

Describe the bug

h2r-graphics (V2) does not connect in 3.0.0 later Versions than 3.0.0+5647-beta. In build 3.0.0 build 5647 everything works great, but in all later versions the connection could not been established. I tried up to build 5760. Configuration of h2r-graphics: Target IP 127.0.0.1 Port 4001 Project ID ABCD Vers.2 is taged.

I added the log to additional context.

Steps To Reproduce

No response

Expected Behavior

No response

Environment (please complete the following information)

- OS: Windows 10
- Browser: Chrome
- Companion Version: later than 3.0.0 5647

Additional context

error: C:\Program Files\Companion\resources\bundled-modules\h2r-graphics\main.js:2 (()=>{var e,t,n={7056:(e,t,n)=>{"use strict";const s=n(4063);s.code='require("ajv/dist/runtime/equal").default',t.Z=s},1460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{assign:()=>i,asyncDelegator:()=>k,asyncGenerator:()=>S,asyncValues:()=>T,await:()=>w,awaiter:()=>f,classPrivateFieldGet:()=>I,classPrivateFieldIn:()=>P,classPrivateFieldSet:()=>N,createBinding:()=>_,decorate:()=>a,esDecorate:()=>l,exportStar:()=>g,extends:()=>r,generator:()=>m,importDefault:()=>R,importStar:()=>C,makeTemplateObject:()=>x,metadata:()=>p,param:()=>c,propKey:()=>h,read:()=>b,rest:()=>o,runInitializers:()=>u,setFunctionName:()=>d,spread:()=>v,spreadArray:()=>E,spreadArrays:()=>A,values:()=>y});var s=function(e,t){return s=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])},s(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}function a(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,s){t(n,s,e)}}function l(e,t,n,s,r,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=s.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?s.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,s.name):{}),d=!1,p=n.length-1;p>=0;p--){var f={};for(var m in s)f[m]="access"===m?{}:s[m];for(var m in s.access)f.access[m]=s.access[m];f.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var =(0,n[p])("accessor"===c?{get:h.get,set:h.set}:h[l],f);if("accessor"===c){if(void 0===)continue;if(null===||"object"!=typeof )throw new TypeError("Object expected");(a=o(.get))&&(h.get=a),(a=o(.set))&&(h.set=a),(a=o(.init))&&r.push(a)}else(a=o())&&("field"===c?r.push(a):h[l]=a)}u&&Object.defineProperty(u,s.name,h),d=!0}function u(e,t,n){for(var s=arguments.length>2,r=0;r<t.length;r++)n=s?t[r].call(e,n):t[r].call(e);return s?n:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,s){return new(n||(n=Promise))((function(r,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))}function m(e,t){var n,s,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(o=0)),o;)try{if(n=1,s&&(r=2&a[0]?s.return:a[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;switch(s=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,s=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],s=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var _=Object.create?function(e,t,n,s){void 0===s&&(s=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t._esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,r)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function A(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,r++)s[r]=i[o];return s}function E(e,t,n){if(n||2===arguments.length)for(var s,r=0,i=t.length;r<i;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function S(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,r=n.apply(e,t||[]),i=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(e){r[e]&&(s[e]=function(t){return new Promise((function(n,s){i.push([e,t,n,s])>1||a(e,t)}))})}function a(e,t){try{(n=re).value instanceof w?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function k(e){var t,n;return t={},s("next"),s("throw",(function(e){throw e})),s("return"),t[Symbol.iterator]=function(){return this},t;function s(s,r){t[s]=e[s]?function(t){return(n=!n)?{value:w(es),done:!1}:r?r(t):t}:r}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(n){t[n]=e[n]&&function(t){return new Promise((function(s,r){!function(e,t,n,s){Promise.resolve(s).then((function(t){e({value:t,done:n})}),t)}(s,r,(t=en).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return O(t,e),t}function R(e){return e&&e.esModule?e:{default:e}}function I(e,t,n,s){if("a"===n&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?s:"a"===n?s.call(e):s?s.value:t.get(e)}function N(e,t,n,s,r){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?r.call(e,n):r?r.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},5659:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>m,Xb:()=>d,cu:()=>p,j0:()=>y,pj:()=>f,vi:()=>g});var s=n(2844),r=n(1170),i=n(2343),o=n(1235),a=n(2176),c=n(350),l=n(9015);const u=4,h=100;class d{init(){this._stack=[{}]}constructor(e,t=new c.s,n=u){this._version=n,d.prototype.init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,s.DM)(),r=new Error("Sentry syntheticException");return this._withClient(((s,i)=>{s.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)})),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,s.DM)(),i=new Error(e);return this._withClient(((s,o)=>{s.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},o)})),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,s.DM)();return e.type||(this._lastEventId=n),this._withClient(((s,r)=>{s.captureEvent(e,{...t,event_id:n},r)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:s}=this.getStackTop();if(!n||!s)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=h}=s.getOptions&&s.getOptions()||{};if(a<=0)return;const c={timestamp:(0,r.yW)(),...e},l=o?(0,i.Cf)((()=>o(c,t))):c;null!==l&&n.addBreadcrumb(l,a)}setUser(e){const t=this.getScope();t&&t.setUser(e)}setTags(e){const t=this.getScope();t&&t.setTags(e)}setExtras(e){const t=this.getScope();t&&t.setExtras(e)}setTag(e,t){const n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){const n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){const n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){const t=f(this);try{e(this)}finally{f(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&i.kg.warn(Cannot retrieve integration ${e.id} from the current Hub),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,l.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:s,environment:r}=n&&n.getOptions()||{},{userAgent:i}=o.n2.navigator||{},a=(0,l.Hv)({release:s,environment:r,...t&&{user:t.getUser()},...i&&{userAgent:i},...e});if(t){const e=t.getSession&&t.getSession();e&&"ok"===e.status&&(0,l.CT)(e,{status:"exited"}),this.endSession(),t.setSession(a)}return a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(!e)return;const n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=p().SENTRY;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG||SENTRY_DEBUG)&&i.kg.warn(Extension method ${e} couldn't be found, doing nothing.)}}function p(){return o.n2.SENTRY=o.n2.SENTRY_||{extensions:{},hub:void 0},o.n2}function f(e){const t=p(),n=g(t);return y(t,e),n}function m(){const e=p();return (e)&&!g(e).isOlderThan(u)||y(e,new d),(0,a.KV)()?function(e){try{const t=p().SENTRY,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return g(e);if(!(n)||g(n).isOlderThan(u)){const t=g(e).getStackTop();y(n,new d(t.client,c.s.clone(t.scope)))}return g(n)}catch(t){return g(e)}}(e):g(e)}function (e){return!!(e&&e.SENTRY&&e.SENTRY.hub)}function g(e){return(0,o.YO)("hub",(()=>new d),e)}function y(e,t){return!!e&&((e.SENTRY=e.SENTRY||{}).hub=t,!0)}},350:(e,t,n)=>{"use strict";n.d(t,{c:()=>d,s:()=>u});var s=n(7597),r=n(1170),i=n(6893),o=n(2343),a=n(2844),c=n(1235),l=n(9015);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,s.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const s={timestamp:(0,r.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,s].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction&&this._span.transaction.name;t&&(e.tags={transaction:t,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...h(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new i.cW(((i,a)=>{const c=e[r];if(null===t||"function"!=typeof c)i(t);else{const l=c({...t},n);("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&c.id&&null===l&&o.kg.log(Event processor "${c.id}" dropped event),(0,s.J8)(l)? l.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(i))).then(null,a):this._notifyEventProcessors(e,l,n,r+1).then(i).then(null,a)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,a.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function h(){return(0,c.YO)("globalEventProcessors",(()=>[]))}function d(e){h().push(e)}},9015:(e,t,n)=>{"use strict";n.d(t,{CT:()=>a,Hv:()=>o,RJ:()=>c});var s=n(1170),r=n(2844),i=n(535);function o(e){const t=(0,s.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:${e.sid},init:e.init,started:new Date(1e3e.started).toISOString(),timestamp:new Date(1e3e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?${e.did}:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&a(n,e),n}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,s.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=${t.did}),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},7646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_USER_INCLUDES:()=>dt,Handlers:()=>r,Hub:()=>m.Xb,Integrations:()=>Ht,NodeClient:()=>_e,SDKVERSION:()=>,Scope:()=>Z.s,addBreadcrumb:()=>A,addGlobalEventProcessor:()=>Z.c,addRequestDataToEvent:()=>mt,captureEvent:()=>b,captureException:()=>g,captureMessage:()=>y,close:()=>Rt,configureScope:()=>v,createTransport:()=>X,deepReadDirSync:()=>Dt,defaultIntegrations:()=>Tt,defaultStackParser:()=>Pt,extractRequestData:()=>ft,flush:()=>Ct,getCurrentHub:()=>m.Gd,getHubFromCarrier:()=>m.vi,getSentryRelease:()=>Nt,init:()=>xt,lastEventId:()=>Ot,makeMain:()=>m.pj,makeNodeTransport:()=>Se,setContext:()=>E,setExtra:()=>S,setExtras:()=>w,setTag:()=>T,setTags:()=>k,setUser:()=>x,startTransaction:()=>C,withScope:()=>O});var s={};n.r(s),n.d(s,{FunctionToString:()=>c,InboundFilters:()=>p});var r={};n.r(r),n.d(r,{errorHandler:()=>$t,extractRequestData:()=>Ut,parseRequest:()=>jt,requestHandler:()=>qt,tracingHandler:()=>Lt});var i={};n.r(i),n.d(i,{Console:()=>Oe,Context:()=>tt,ContextLines:()=>Ve,Http:()=>je,LinkedErrors:()=>We,LocalVariables:()=>At,Modules:()=>Xe,OnUncaughtException:()=>He,OnUnhandledRejection:()=>Ge,RequestData:()=>gt});var o=n(535);let a;class c{constructor(){c.prototype.init.call(this)}static initStatic(){this.id="FunctionToString"}init(){this.name=c.id}setupOnce(){a=Function.prototype.toString,Function.prototype.toString=function(...e){const t=(0,o.HK)(this)||this;return a.apply(t,e)}}}c.initStatic();var l=n(2343),u=n(2844),h=n(7321);const d=[/^Script error.?$/,/^Javascript error: Script error.? on line 0$/];class p{static initStatic(){this.id="InboundFilters"}init(){this.name=p.id}constructor(e={}){this._options=e,p.prototype.init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(p);if(t){const s=n.getClient(),r=s?s.getOptions():{},i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...d],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,r);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&l.kg.warn(Event dropped due to being internal Sentry Error.\nEvent: ${(0,u.jH)(e)}),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[${n},${t}: ${n}]}catch(t){return("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&l.kg.error(Cannot extract message for event ${(0,u.jH)(e)}),[]}return[]}(e).some((e=>(0,h.U0)(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof SENTRY_DEBUG||SENTRY_DEBUG)&&l.kg.warn(Event dropped due to being matched by \ignoreErrors` option.\nEvent: ${(0,u.jH)(e)}),!0):function(e,t){if(!t||!t.length)return!1;const n=f(e);return!!n&&(0,h.U0)(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(Event dropped due to being matched by `denyUrls` option.\nEvent: ${(0,u.jH)(e)}.\nUrl: ${f(e)}),!0):!function(e,t){if(!t||!t.length)return!0;const n=f(e);return!n||(0,h.U0)(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(Event dropped due to not being matched by `allowUrls` option.\nEvent: ${(0,u.jH)(e)}.\nUrl: ${f(e)}),!0)}(e,i)?null:e}}return e};n.id=this.name,e(n)}}function f(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(Cannot extract url for event ${(0,u.jH)(e)}),null}}p.__initStatic();var m=n(5659);const _="7.38.0";function g(e,t){return(0,m.Gd)().captureException(e,{captureContext:t})}function y(e,t){const n="string"==typeof t?t:void 0,s="string"!=typeof t?{captureContext:t}:void 0;return(0,m.Gd)().captureMessage(e,n,s)}function b(e,t){return(0,m.Gd)().captureEvent(e,t)}function v(e){(0,m.Gd)().configureScope(e)}function A(e){(0,m.Gd)().addBreadcrumb(e)}function E(e,t){(0,m.Gd)().setContext(e,t)}function w(e){(0,m.Gd)().setExtras(e)}function S(e,t){(0,m.Gd)().setExtra(e,t)}function k(e){(0,m.Gd)().setTags(e)}function T(e,t){(0,m.Gd)().setTag(e,t)}function x(e){(0,m.Gd)().setUser(e)}function O(e){(0,m.Gd)().withScope(e)}function C(e,t){return(0,m.Gd)().startTransaction({...e},t)}class R extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var I=n(6893);const N=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function P(e,t=!1){const{host:n,path:s,pass:r,port:i,projectId:o,protocol:a,publicKey:c}=e;return${a}://${c}${t&&r?:${r}:" rror: "}@${n}${i?:${i}:""}/${s?${s}/:s}${o}}function D(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var B=n(7597),U=n(360);function j(e,t=1/0,n=1/0){try{return q("",e,t,n)}catch(e){return{ERROR:non-serializable (${e})}}}function L(e,t=3,n=102400){const s=j(e,t);return r=s,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?L(e,t-1,n):s;var r}function q(e,t,n=1/0,s=1/0,r=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=r;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,B.i2)(t))return t;const c=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,B.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?[Function: ${(0,U.$P)(t)}]:"symbol"==typeof t?[${String(t)}]:"bigint"==typeof t?[BigInt: ${String(t)}]:[object ${function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t)}]}catch(e){returnnon-serializable (${e})}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;if(0===n)return c.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return q("",l.toJSON(),n-1,s,r)}catch(e){}const u=Array.isArray(t)?[]:{};let h=0;const d=(0,o.Sh)(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(h>=s){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=q(e,t,n-1,s,r),h++}return a(t),u}function M(e,t=[]){return[e,t]}function $(e,t){const[n,s]=e;return[n,[...s,t]]}function H(e,t){e[1].forEach((e=>{const n=e[0].type;t(e,n)}))}function G(e,t){return(t||new TextEncoder).encode(e)}function F(e,t){const[n,s]=e;let r=JSON.stringify(n);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[G(r,t),e]:r.push("string"==typeof e?G(e,t):e)}for(const e of s){const[t,n]=e;if(i(\n${JSON.stringify(t)}\n),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(j(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let s=0;for(const t of e)n.set(t,s),s+=t.length;return n}(r)}function Y(e,t){const n="string"==typeof e.data?G(e.data,t):e.data;return[(0,o.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const V={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function z(e){return V[e]}function W(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const J=6e4;const Q=30;function X(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(s){if(!(void 0===e||t.length<e))return(0,I.$2)(new R("Not adding Promise because buffer limit was reached."));const r=s();return-1===t.indexOf(r)&&t.push(r),r.then((()=>n(r))).then(null,(()=>n(r).then(null,(()=>{})))),r},drain:function(e){return new I.cW(((n,s)=>{let r=t.length;if(!r)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,I.WD)(e).then((()=>{--r||(clearTimeout(i),n(!0))}),s)}))}))}}}(e.bufferSize||Q)){let s={};return{send:function(r){const i=[];if(H(r,((t,n)=>{const r=z(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(s,r)){const s=K(t,n);e.recordDroppedEvent("ratelimit_backoff",r,s)}else i.push(t)})),0===i.length)return(0,I.WD)();const o=M(r[0],i),a=t=>{H(o,((n,s)=>{const r=K(n,s);e.recordDroppedEvent(t,z(s),r)}))};return n.add((()=>t({body:F(o,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(Sentry responded with status code ${e.statusCode} to sent event.),s=function(e,{statusCode:t,headers:n},s=Date.now()){const r={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n]=e.split(":",2),i=parseInt(t,10),o=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))r[e]=s+o;else r.all=s+o}else o?r.all=s+function(e,t=Date.now()){const n=parseInt(${e},10);if(!isNaN(n))return 1e3*n;const s=Date.parse(${e});return isNaN(s)?J:s-t}(o,s):429===t&&(r.all=s+6e4);return r}(s,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof R)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,I.WD)();throw e}))},flush:e=>n.drain(e)}}function K(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Z=n(350),ee=n(4307);const te="7";const ne=[];function se(e){const t=e.defaultIntegrations||[],n=e.integrations;let s;t.forEach((e=>{e.isDefaultInstance=!0})),s=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,u.lE)(n(t)):t;const r=function(e){const t={};return e.forEach((e=>{const{name:n}=e,s=t[n];s&&!s.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(s),i=r.findIndex((e=>"Debug"===e.name));if(-1!==i){const[e]=r.splice(i,1);r.push(e)}return r}function re(e,t){t[e.name]=e,-1===ne.indexOf(e.name)&&(e.setupOnce(Z.c,m.Gd),ne.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(Integration installed: ${e.name}))}var ie=n(9015),oe=n(1170);const ae="Not capturing exception because it's already been captured.";class ce{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(ce.prototype.__init.call(this),ce.prototype.__init2.call(this),ce.prototype.__init3.call(this),ce.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=function(e){const t="string"==typeof e?function(e){const t=N.exec(e);if(!t)throw new R(Invalid Sentry Dsn: ${e});const[n,s,r="",i,o="",a]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return D({host:i,pass:r,path:c,projectId:l,port:o,protocol:n,publicKey:s})}(e):D(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:s}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new R(Invalid Sentry Dsn: ${t} missing)})),!n.match(/^\d+$/))throw new R(Invalid Sentry Dsn: Invalid projectId ${n});if(!function(e){return"http"===e||"https"===e}(s))throw new R(Invalid Sentry Dsn: Invalid protocol ${s});if(t&&isNaN(parseInt(t,10)))throw new R(Invalid Sentry Dsn: Invalid port ${t})}(t),t}(e.dsn);const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,s="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||${function(e){return${function(e){const t=e.protocol?${e.protocol}::"",n=e.port?:${e.port}:"";return${t}//${e.host}${n}${e.path?/${e.path}:""}/api/}(e)}${e.projectId}/envelope/}(e)}?${function(e,t){return(0,o._j)({sentry_key:e.publicKey,sentry_version:te,...t&&{sentry_client:${t.name}/${t.version}}})}(e,s)}}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,u.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(ae));let s=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{s=e}))),s}captureMessage(e,t,n,s){let r=n&&n.event_id;const i=(0,B.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,s))).then((e=>{r=e}))),r}captureEvent(e,t,n){if(t&&t.originalException&&(0,u.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(ae));let s=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{s=e}))),s}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,ie.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,I.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&re(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(Cannot retrieve integration ${e.id} from the current Client),null}}addIntegration(e){re(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=function(e,t,n,s){const r=W(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,s){const r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:P(s)},..."transaction"===e.type&&r&&{trace:(0,o.Jr)({...r})}}}(e,r,s,t);return delete e.sdkProcessingMetadata,M(a,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=$(n,Y(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(n)}}sendSession(e){if(this._dsn){const t=function(e,t,n,s){const r=W(n);return M({sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!s&&{dsn:P(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=${e}:${t};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(Adding outcome: "${n}"),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,s=!1;const r=t.exception&&t.exception.values;if(r){s=!0;for(const e of r){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,ie.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new I.cW((t=>{let n=0;const s=setInterval((()=>{0==this._numProcessing?(clearInterval(s),t(!0)):(n+=1,e&&n>=e&&(clearInterval(s),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const s=this.getOptions(),r=Object.keys(this._integrations);return!t.integrations&&r.length>0&&(t.integrations=r),function(e,t,n,s){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e,o={...t,event_id:t.event_id||n.event_id||(0,u.DM)(),timestamp:t.timestamp||(0,oe.yW)()},a=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:s,dist:r,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==s&&(e.release=s),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,h.$G)(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,h.$G)(o.value,i));const a=e.request;a&&a.url&&(a.url=(0,h.$G)(a.url,i))}(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,a);let c=s;n.captureContext&&(c=Z.s.clone(c).update(n.captureContext));let l=(0,I.WD)(o);if(c){if(c.getAttachments){const e=[...n.attachments||[],...c.getAttachments()];e.length&&(n.attachments=e)}l=c.applyToEvent(o,n)}return l.then((e=>"number"==typeof r&&r>0?function(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:j(e.data,t,n)}})))},...e.user&&{user:j(e.user,t,n)},...e.contexts&&{contexts:j(e.contexts,t,n)},...e.extra&&{extra:j(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=j(e.contexts.trace.data,t,n))),e.spans&&(s.spans=e.spans.map((e=>(e.data&&(e.data=j(e.data,t,n)),e)))),s}(e,r,i):e))}(s,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?l.kg.log(t.message):l.kg.warn(t)}}))}_processEvent(e,t,n){const s=this.getOptions(),{sampleRate:r}=s;if(!this._isEnabled())return(0,I.$2)(new R("SDK not enabled, will not capture event.","log"));const i=ue(e),o=le(e),a=e.type||"error",c=before send for type `${a}`;if(o&&"number"==typeof r&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",e),(0,I.$2)(new R(Discarding event because it's not included in the random sample (sampling rate = ${r}),"log"));const l="replay_event"===a?"replay":a;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new R("An event processor returnednull, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const r=function(e,t,n){const{beforeSend:s,beforeSendTransaction:r}=e;return le(t)&&s?s(t,n):ue(t)&&r?r(t,n):t}(s,n,t);return function(e,t){const n=${t} must return `null` or a valid event.;if((0,B.J8)(e))return e.then((e=>{if(!(0,B.PO)(e)&&null!==e)throw new R(n);return e}),(e=>{throw new R(${t} rejected with ${e})}));if(!(0,B.PO)(e)&&null!==e)throw new R(n);return e}(r,c)})).then((s=>{if(null===s)throw this.recordDroppedEvent("before_send",l,e),new R(${c} returned `null`, will not send event.,"log");const r=n&&n.getSession();!i&&r&&this._updateSessionFromEvent(r,s);const o=s.transaction_info;if(i&&o&&s.transaction!==e.transaction){const e="custom";s.transaction_info={...o,source:e}}return this.sendEvent(s,t),s})).then(null,(e=>{if(e instanceof R)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new R(Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e})}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,s]=t.split(":");return{reason:n,category:s,quantity:e[t]}}))}}function le(e){return void 0===e.type}function ue(e){return"transaction"===e.type}class he{__init(){this.flushTimeout=60}__init2(){this._pendingAggregates={}}__init3(){this._isEnabled=!0}constructor(e,t){he.prototype.__init.call(this),he.prototype.__init2.call(this),he.prototype.__init3.call(this),this._client=e,this._intervalId=setInterval((()=>this.flush()),1e3*this.flushTimeout),this._sessionAttrs=t}flush(){const e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){const e=Object.keys(this._pendingAggregates).map((e=>this._pendingAggregates[parseInt(e)])),t={attrs:this._sessionAttrs,aggregates:e};return(0,o.Jr)(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const e=(0,m.Gd)().getScope(),t=e&&e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e&&e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){const n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};const s=this._pendingAggregates[n];switch(s.started||(s.started=new Date(n).toISOString()),e){case"errored":return s.errored=(s.errored||0)+1,s.errored;case"ok":return s.exited=(s.exited||0)+1,s.exited;default:return s.crashed=(s.crashed||0)+1,s.crashed}}}var de=n(2037),pe=n(3837);function fe(e,t){return e(t.stack||"",1)}function me(e,t){const n={type:t.name||t.constructor.name,value:t.message},s=fe(e,t);return s.length&&(n.stacktrace={frames:s}),n}class _e extends ce{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:_}],version:_},e.transportOptions={textEncoder:new pe.TextEncoder,...e.transportOptions},super(e)}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){const e=n.getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n&&"exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){const e=n.getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureEvent(e,t,n)}close(e){return(0,ee.x)([this,"access",e=>e._sessionFlusher,"optionalAccess",e=>e.close,"call",e=>e()]),super.close(e)}initSessionFlusher(){const{release:e,environment:t}=this._options;e?this._sessionFlusher=new he(this,{release:e,environment:t}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}eventFromException(e,t){return(0,I.WD)(function(e,t,n){let s=t;const r=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"};if(!(0,B.VZ)(t)){if((0,B.PO)(t)){const e=Non-Error exception captured with keys: ${(0,o.zf)(t)}`,r=(0,m.Gd)(),i=r.getClient(),a=i&&i.getOptions().normalizeDepth;r.configureScope((e=>{e.setExtra("serialized",L(t,a))})),s=n&&n.syntheticException||new Error(e),s.message=e}else s=n&&n.syntheticException||new Error(t),s.message=t;r.synthetic=!0}const i={exception:{values:[me(e,s)]}};return(0,u.Db)(i,void 0,void 0),(0,u.EG)(i,r),{...i,event_id:n&&n.event_id}}(this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return(0,I.WD)(function(e,t,n="info",s,r){const i={event_id:s&&s.event_id,level:n,message:t};if(r&&s&&s.syntheticException){const n=fe(e,s.syntheticException);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}return i}(this._options.stackParser,e,t,n,this._options.attachStacktrace))}

MathiasGIZ commented 1 year ago

Same Here

BenJamesAndo commented 1 year ago

Same

iamjohnbarker commented 1 year ago

@ce1958 @MathiasGIZ or @BenJamesAndo, seems to be working again in 5888 - not that i have made any changes.

Any of you able to have a quick look?

Also, what does your H2R Graphics module config page look like?

ce1958 commented 1 year ago

Hi John, Sorry, only little better. Initializing every second, so no pressed button will go to H2R Graphics from Companion. Best regardsVon meinem Telefon gesendet-------- Ursprüngliche Nachricht --------Von: John Barker @.>Datum: Sa., 20. Mai 2023, 16:53An: bitfocus/companion-module-h2r-graphics @.>Cc: Christoph Eichler @.>, Mention @.>Betreff: Re: [bitfocus/companion-module-h2r-graphics] [BUG] h2r-graphics (V2) does not connect in 3.0.0 later Versions than 3.0.0+5647-beta. (Issue #30) @ce1958 @MathiasGIZ or @BenJamesAndo, seems to be working again in 5888 - not that i have made any changes. Any of you able to have a quick look? Also, what does your H2R Graphics module config page look like?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

BenJamesAndo commented 1 year ago

@iamjohnbarker there's no Windows build for 5888 that I could find. I've tried 5892 and it doesn't work. I can't even access the 'Edit connection' tab in Companion to put in any information.

patrichard commented 1 year ago

Regress to build 5668 and see if it connects. I'm chasing the same issue. 5668 works, but anything after that doesn't. I notice that the folder structure changes after that as well. I also noticed it's retaining something even if I uninstall Companion, delete every related folder I can find, and reboot. Reinstall anything up to and including the RC1 build, and it "remembers" the config as soon as I click to add the connection.

X21de commented 1 year ago

On Linux I got the error in the logs: 23.06.05 01:30:13 Instance/Wrapper/H2R_Graphics: Error getting config fields: Call timed out

BenJamesAndo commented 1 year ago

It seems to be working for me now with the latest beta release.

iamjohnbarker commented 1 year ago

Excellent! I have just patched a fix for it this week and it sounds like that made it into a beta!

patrichard commented 1 year ago

I can confirm that Companion build 5944 and H2RG build 2.16.1 do seem to work. Thanks, John!

iamjohnbarker commented 1 year ago

Wonderful!