@elliemae/pui-logrocket 1.2.6-beta.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/docs/404.html +2 -2
- package/build/docs/api/functions/buildLogRocketQueryParams/index.html +2 -2
- package/build/docs/api/functions/hasUserConsentedToSessionRecording/index.html +2 -2
- package/build/docs/api/functions/initLogRocket/index.html +2 -2
- package/build/docs/api/index.html +2 -2
- package/build/docs/api/type-aliases/LROptions/index.html +2 -2
- package/build/docs/assets/js/04ee7372.8b4b8829.js +1 -0
- package/build/docs/assets/js/e376fc56.85cd179f.js +1 -0
- package/build/docs/assets/js/main.fbae65e1.js +2 -0
- package/build/docs/assets/js/{runtime~main.1380910b.js → runtime~main.ca9ed22d.js} +1 -1
- package/build/docs/compliance/index.html +2 -2
- package/build/docs/index.html +2 -2
- package/build/docs/usage-guide/index.html +8 -3
- package/dist/cjs/logrocket.js +37 -6
- package/dist/esm/logrocket.js +36 -6
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiLogrocket.f8e984ad4fe6eae0c570.js +14 -0
- package/dist/public/js/emuiLogrocket.f8e984ad4fe6eae0c570.js.br +0 -0
- package/dist/public/js/emuiLogrocket.f8e984ad4fe6eae0c570.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.f8e984ad4fe6eae0c570.js.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +9 -9
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/build/docs/assets/js/04ee7372.6dcbb12e.js +0 -1
- package/build/docs/assets/js/e376fc56.0c4ec86b.js +0 -1
- package/build/docs/assets/js/main.81c9ddcc.js +0 -2
- package/dist/public/js/emuiLogrocket.ee1e0477a6e63c2ad696.js +0 -14
- package/dist/public/js/emuiLogrocket.ee1e0477a6e63c2ad696.js.br +0 -0
- package/dist/public/js/emuiLogrocket.ee1e0477a6e63c2ad696.js.gz +0 -0
- package/dist/public/js/emuiLogrocket.ee1e0477a6e63c2ad696.js.map +0 -1
- /package/build/docs/assets/js/{main.81c9ddcc.js.LICENSE.txt → main.fbae65e1.js.LICENSE.txt} +0 -0
package/dist/umd/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(ce,oe){typeof exports=="object"&&typeof module=="object"?module.exports=oe(require("ReactDOM")):typeof define=="function"&&define.amd?define(["ReactDOM"],oe):typeof exports=="object"?exports.emuiLogrocket=oe(require("ReactDOM")):ce.emuiLogrocket=oe(ce.ReactDOM)})(globalThis,ve=>(()=>{var ce={755(X,B,V){"use strict";var Z;Z={value:!0},B.A=e;var re=V(845);let m;const o=re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;o&&o.Events&&o.Events[0]&&(m=o.Events[0]);function e(){const u=k=>{try{const v=m(k.target),w=[];let S=v;for(;S;){var l=typeof S.elementType=="function"&&S.elementType.displayName;l&&w.push(l),S=S.return}k.__lrName=w}catch{console.error("logrocket-react caught an error while hooking into React. Please make sure you are using the correct version of logrocket-react for your version of react-dom.")}};document.body.addEventListener("click",u,{capture:!0,passive:!0})}},5(X){(function(V,Z){if(1)X.exports=Z();else var re,m})(this,function(){return function(){var B={"./packages/@logrocket/console/src/index.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var k=u(e("./packages/@logrocket/console/src/registerConsole.js")),l=k.default;o.default=l},"./packages/@logrocket/console/src/registerConsole.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=w;var k=u(e("./node_modules/@babel/runtime/helpers/typeof.js")),l=u(e("./packages/@logrocket/utils/src/enhanceFunc.ts")),v=e("./packages/@logrocket/exceptions/src/index.js");function w(S){var d=[],O=["log","warn","info","error","debug"];return O.forEach(function(f){d.push((0,l.default)(console,f,function(){for(var n=arguments.length,i=new Array(n),t=0;t<n;t++)i[t]=arguments[t];S.addEvent("lr.core.LogEvent",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=g.isEnabled;if((0,k.default)(R)==="object"&&R[f]===!1||R===!1)return null;if(f==="error"&&g.shouldAggregateConsoleErrors)if(i&&i.length>=2&&i[0]==="ERROR"){var y="";try{y=" ".concat(i[1])}catch{}v.Capture.captureMessage(S,"".concat(i[0]).concat(y),i,{},!0)}else v.Capture.captureMessage(S,i[0],i,{},!0);return{logLevel:f.toUpperCase(),args:i}})}))}),function(){d.forEach(function(f){return f()})}}},"./packages/@logrocket/exceptions/src/Capture.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.captureMessage=w,o.captureException=S;var k=e("./packages/@logrocket/utils/src/scrubException.ts"),l=u(e("./packages/@logrocket/utils/src/TraceKit.js")),v=u(e("./packages/@logrocket/exceptions/src/stackTraceFromError.js"));function w(d,O,f){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,t={exceptionType:i?"CONSOLE":"MESSAGE",message:O,messageArgs:f,browserHref:window.location?window.location.href:""};(0,k.scrubException)(t,n),d.addEvent("lr.core.Exception",function(){return t})}function S(d,O){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"WINDOW",t=n||l.default.computeStackTrace(O),g={exceptionType:i,errorType:t.name,message:t.message,browserHref:window.location?window.location.href:""};(0,k.scrubException)(g,f);var R={_stackTrace:(0,v.default)(t)};d.addEvent("lr.core.Exception",function(){return g},R)}},"./packages/@logrocket/exceptions/src/index.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),k=e("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"registerExceptions",{enumerable:!0,get:function(){return l.default}}),o.Capture=void 0;var l=u(e("./packages/@logrocket/exceptions/src/registerExceptions.js")),v=S(e("./packages/@logrocket/exceptions/src/Capture.js"));o.Capture=v;function w(d){if(typeof WeakMap!="function")return null;var O=new WeakMap,f=new WeakMap;return(w=function(i){return i?f:O})(d)}function S(d,O){if(!O&&d&&d.__esModule)return d;if(d===null||k(d)!=="object"&&typeof d!="function")return{default:d};var f=w(O);if(f&&f.has(d))return f.get(d);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in d)if(t!=="default"&&Object.prototype.hasOwnProperty.call(d,t)){var g=i?Object.getOwnPropertyDescriptor(d,t):null;g&&(g.get||g.set)?Object.defineProperty(n,t,g):n[t]=d[t]}return n.default=d,f&&f.set(d,n),n}},"./packages/@logrocket/exceptions/src/raven/FunctionPropertyMirror.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var k=u(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=u(e("./node_modules/@babel/runtime/helpers/createClass.js")),v=u(e("./node_modules/@babel/runtime/helpers/typeof.js")),w=new Set(["prototype","length","name","arguments","caller","__lr__","__lr_wrapper__","__inner__","__refreshMirroredProps__"]);function S(O){return(0,v.default)(O)==="symbol"}var d=function(){function O(f,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=i.hasKey,g=i.reservedProps,R=g===void 0?w:g,y=i.includeSymbols,E=y===void 0?!0:y;(0,k.default)(this,O),this.source=f,this.target=n,this.hasKey=t||function(){return!1},this.reservedProps=R,this.includeSymbols=E,this.mirroredProps=Object.create(null),this.descriptorCache=Object.create(null)}return(0,l.default)(O,[{key:"isReserved",value:function(n){return n==null?!0:S(n)?!this.includeSymbols:this.reservedProps.has(n)}},{key:"remember",value:function(n){this.mirroredProps[n]=!0}},{key:"forget",value:function(n){delete this.mirroredProps[n],Object.prototype.hasOwnProperty.call(this.descriptorCache,n)&&delete this.descriptorCache[n]}},{key:"hasMirrored",value:function(n){return Object.prototype.hasOwnProperty.call(this.mirroredProps,n)}},{key:"getDescriptor",value:function(n){if(Object.prototype.hasOwnProperty.call(this.descriptorCache,n))return this.descriptorCache[n]||void 0;var i;try{i=Object.getOwnPropertyDescriptor(this.source,n)}catch{i=void 0}return this.descriptorCache[n]=i||null,i}},{key:"defineMirroredDescriptor",value:function(n,i){var t=this,g=Object.prototype.hasOwnProperty.call(i,"configurable")?i.configurable:!0,R=Object.prototype.hasOwnProperty.call(i,"enumerable")?i.enumerable:!0;if(i.get||i.set){Object.defineProperty(this.target,n,{configurable:g,enumerable:R,get:i.get?function(){return i.get.call(t.source)}:void 0,set:i.set?function(E){return i.set.call(t.source,E)}:void 0});return}var y=Object.prototype.hasOwnProperty.call(i,"writable")?i.writable:!0;Object.defineProperty(this.target,n,{configurable:g,enumerable:R,get:function(){return t.source[n]},set:y===!1?void 0:function(E){t.source[n]=E}})}},{key:"mirrorProperty",value:function(n){if(this.isReserved(n)||this.hasMirrored(n)||!this.hasKey(this.source,n))return!1;var i=this.getDescriptor(n);if(!i)return!1;try{return this.defineMirroredDescriptor(n,i),this.remember(n),!0}catch{try{return this.target[n]=this.source[n],this.remember(n),!0}catch{return!1}}}},{key:"mirrorProperties",value:function(n){if(n)for(var i=Array.isArray(n)?n:[n],t=0;t<i.length;t+=1)this.mirrorProperty(i[t])}},{key:"syncAll",value:function(){try{this.mirrorProperties(Object.getOwnPropertyNames(this.source)),this.includeSymbols&&typeof Object.getOwnPropertySymbols=="function"&&this.mirrorProperties(Object.getOwnPropertySymbols(this.source))}catch{}}},{key:"syncProperty",value:function(n){this.isReserved(n)||(this.forget(n),this.mirrorProperty(n))}},{key:"attachManualRefreshHook",value:function(){var n=this;this.isReserved("__refreshMirroredProps__")&&Object.defineProperty(this.target,"__refreshMirroredProps__",{configurable:!0,enumerable:!1,writable:!1,value:function(){return n.syncAll(),n.target}})}}]),O}();o.default=d},"./packages/@logrocket/exceptions/src/raven/raven.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var k=u(e("./node_modules/@babel/runtime/helpers/typeof.js")),l=u(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),v=u(e("./node_modules/@babel/runtime/helpers/createClass.js")),w=u(e("./packages/@logrocket/utils/src/TraceKit.js")),S=u(e("./packages/@logrocket/exceptions/src/raven/FunctionPropertyMirror.js")),d=Object.prototype;function O(E){return E===void 0}function f(E){return typeof E=="function"}function n(E,b){var r,a;if(O(E.length))for(r in E)i(E,r)&&b.call(null,r,E[r]);else if(a=E.length,a)for(r=0;r<a;r++)b.call(null,r,E[r])}function i(E,b){return d.hasOwnProperty.call(E,b)}function t(E,b,r,a){var P=E[b];E[b]=r(P),a&&a.push([E,b,P])}var g=typeof window<"u"?window:typeof e.g<"u"?e.g:typeof self<"u"?self:{},R=g.document,y=function(){function E(b){var r=b.captureException;(0,l.default)(this,E),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=r,w.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,v.default)(E,[{key:"uninstall",value:function(){w.default.report.unsubscribe(this._errorHandler);for(var r;this._wrappedBuiltIns.length;){r=this._wrappedBuiltIns.shift();var a=r[0],P=r[1],_=r[2];a[P]=_}}},{key:"_errorHandler",value:function(r){this._ignoreOnError||this.captureException(r)}},{key:"_ignoreNextOnError",value:function(){var r=this;this._ignoreOnError+=1,setTimeout(function(){r._ignoreOnError-=1})}},{key:"context",value:function(r,a,P){return f(r)&&(P=a||[],a=r,r=void 0),this.wrap(r,a).apply(this,P)}},{key:"wrap",value:function(r,a,P){var _=this;if(O(a)&&!f(r))return r;if(f(r)&&(a=r,r=void 0),!f(a))return a;try{if(a.__lr__)return a;if(a.__lr_wrapper__)return a.__lr_wrapper__;if(!Object.isExtensible(a))return a}catch{return a}function C(){var p=[],h=arguments.length,c=!r||r&&r.deep!==!1;for(P&&f(P)&&P.apply(this,arguments);h--;)p[h]=c?_.wrap(r,arguments[h]):arguments[h];try{return a.apply(this,p)}catch(A){throw _._ignoreNextOnError(),_.captureException(w.default.computeStackTrace(A),r),A}}var j=(typeof Reflect>"u"?"undefined":(0,k.default)(Reflect))==="object"?Reflect:void 0,T=new S.default(a,C,{hasKey:i,includeSymbols:!0});T.syncAll(),T.attachManualRefreshHook(),C.prototype=a.prototype;try{typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(C,a):O(C.__proto__)||(C.__proto__=a)}catch{}var I=C;if(typeof Proxy=="function"){var M=new Proxy(C,{apply:function(h,c,A){return T.syncAll(),h.apply(c,A)},construct:function(h,c,A){if(T.syncAll(),j&&j.construct)return j.construct(h,c,A);var x=Function.bind.apply(h,[null].concat(c||[]));return new x},get:function(h,c,A){return c==="__inner__"?a:(T.mirrorProperty(c),j&&j.get?j.get(h,c,A):h[c])},set:function(h,c,A,x){if(c==="__lr__"||c==="__lr_wrapper__"||c==="__inner__")return j&&j.set?j.set(h,c,A,x):(h[c]=A,!0);T.mirrorProperty(c);var W;j&&j.set?W=j.set(h,c,A,x):(h[c]=A,W=!0);try{a[c]=A,T.syncProperty(c)}catch{}return W},has:function(h,c){if(T.mirrorProperty(c),j&&j.has){if(j.has(h,c))return!0}else if(c in h)return!0;return c in a},ownKeys:function(h){return T.syncAll(),j&&j.ownKeys?j.ownKeys(h):Object.getOwnPropertyNames(h)},getOwnPropertyDescriptor:function(h,c){return T.mirrorProperty(c),j&&j.getOwnPropertyDescriptor?j.getOwnPropertyDescriptor(h,c):Object.getOwnPropertyDescriptor(h,c)},defineProperty:function(h,c,A){var x;if(j&&j.defineProperty?x=j.defineProperty(h,c,A):(Object.defineProperty(h,c,A),x=!0),c==="__lr__"||c==="__lr_wrapper__"||c==="__inner__")return x;try{Object.defineProperty(a,c,A)}catch{}return T.syncProperty(c),x},deleteProperty:function(h,c){if(c==="__lr__"||c==="__lr_wrapper__"||c==="__inner__")return j&&j.deleteProperty?j.deleteProperty(h,c):delete h[c];T.forget(c);try{delete a[c]}catch{}return j&&j.deleteProperty?j.deleteProperty(h,c):delete h[c]}});I=M}return a.__lr_wrapper__=I,C.__lr__=!0,C.__inner__=a,I!==C&&(I.__lr__=!0,I.__inner__=a),I}},{key:"_instrumentTryCatch",value:function(){var r=this,a=r._wrappedBuiltIns;function P(I){return function(M,p){for(var h=new Array(arguments.length),c=0;c<h.length;++c)h[c]=arguments[c];var A=h[0];return f(A)&&(h[0]=r.wrap(A)),I.apply?I.apply(this,h):I(h[0],h[1])}}function _(I){var M=g[I]&&g[I].prototype;M&&M.hasOwnProperty&&M.hasOwnProperty("addEventListener")&&(t(M,"addEventListener",function(p){return function(h,c,A,x){try{c&&c.handleEvent&&(c.handleEvent=r.wrap(c.handleEvent))}catch{}var W;return p.call(this,h,r.wrap(c,void 0,W),A,x)}},a),t(M,"removeEventListener",function(p){return function(h,c,A,x){try{var W=c?.__lr_wrapper__;W&&p.call(this,h,W,A,x)}catch{}return p.call(this,h,c,A,x)}},void 0))}t(g,"setTimeout",P,a),t(g,"setInterval",P,a),g.requestAnimationFrame&&t(g,"requestAnimationFrame",function(I){return function(M){return I(r.wrap(M))}},a);for(var C=["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"],j=0;j<C.length;j++)_(C[j]);var T=g.jQuery||g.$;T&&T.fn&&T.fn.ready&&t(T.fn,"ready",function(I){return function(M){return I.call(this,r.wrap(M))}},a)}}]),E}();o.default=y},"./packages/@logrocket/exceptions/src/registerExceptions.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),k=e("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=d;var l=u(e("./packages/@logrocket/exceptions/src/raven/raven.js")),v=S(e("./packages/@logrocket/exceptions/src/Capture.js"));function w(O){if(typeof WeakMap!="function")return null;var f=new WeakMap,n=new WeakMap;return(w=function(t){return t?n:f})(O)}function S(O,f){if(!f&&O&&O.__esModule)return O;if(O===null||k(O)!=="object"&&typeof O!="function")return{default:O};var n=w(f);if(n&&n.has(O))return n.get(O);var i={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in O)if(g!=="default"&&Object.prototype.hasOwnProperty.call(O,g)){var R=t?Object.getOwnPropertyDescriptor(O,g):null;R&&(R.get||R.set)?Object.defineProperty(i,g,R):i[g]=O[g]}return i.default=O,n&&n.set(O,i),i}function d(O){var f=new l.default({captureException:function(t){v.captureException(O,null,null,t)}}),n=function(t){t.reason instanceof Error?v.captureException(O,t.reason,null,null,"UNHANDLED_REJECTION"):O.addEvent("lr.core.Exception",function(){return{exceptionType:"UNHANDLED_REJECTION",message:t.reason||"Unhandled Promise rejection"}})};return window.addEventListener("unhandledrejection",n),function(){window.removeEventListener("unhandledrejection",n),f.uninstall()}}},"./packages/@logrocket/exceptions/src/stackTraceFromError.js":function(m,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=e;function e(u){function k(l){return l===null?void 0:l}return u.stack?u.stack.map(function(l){return{lineNumber:k(l.line),columnNumber:k(l.column),fileName:k(l.url),functionName:k(l.func)}}):void 0}},"./packages/@logrocket/network/src/fetchIntercept.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var k=u(e("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),l=e("./packages/@logrocket/network/src/registerXHR.js"),v=[];function w(f,n){for(var i=v.reduce(function(E,b){return[b].concat(E)},[]),t=arguments.length,g=new Array(t>2?t-2:0),R=2;R<t;R++)g[R-2]=arguments[R];var y=Promise.resolve(g);return i.forEach(function(E){var b=E.request,r=E.requestError;(b||r)&&(y=y.then(function(a){return b.apply(void 0,[n].concat((0,k.default)(a)))},function(a){return r.apply(void 0,[n].concat((0,k.default)(a)))}))}),y=y.then(function(E){(0,l.setActive)(!1);var b,r;try{b=f.apply(void 0,(0,k.default)(E))}catch(a){r=a}if((0,l.setActive)(!0),r)throw r;return b}),i.forEach(function(E){var b=E.response,r=E.responseError;(b||r)&&(y=y.then(function(a){return b(n,a)},function(a){return r&&r(n,a)}))}),y}function S(f){if(!(!f.fetch||!f.Promise)){var n=f.fetch.polyfill;f.fetch=function(i){var t=0;return function(){for(var g=arguments.length,R=new Array(g),y=0;y<g;y++)R[y]=arguments[y];return w.apply(void 0,[i,t++].concat(R))}}(f.fetch),n&&(f.fetch.polyfill=n)}}var d=!1,O={register:function(n){return d||(d=!0,S(window)),v.push(n),function(){var i=v.indexOf(n);i>=0&&v.splice(i,1)}},clear:function(){v=[]}};o.default=O},"./packages/@logrocket/network/src/index.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=i;var k=u(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),l=u(e("./node_modules/@babel/runtime/helpers/typeof.js")),v=u(e("./packages/@logrocket/network/src/registerFetch.js")),w=e("./packages/@logrocket/network/src/registerIonic.ts"),S=u(e("./packages/@logrocket/network/src/registerNetworkInformation.js")),d=u(e("./packages/@logrocket/network/src/registerXHR.js")),O=u(e("./packages/@logrocket/utils/src/mapValues.ts"));function f(t,g){var R=Object.keys(t);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);g&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(t,E).enumerable})),R.push.apply(R,y)}return R}function n(t){for(var g=1;g<arguments.length;g++){var R=arguments[g]!=null?arguments[g]:{};g%2?f(Object(R),!0).forEach(function(y){(0,k.default)(t,y,R[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(R)):f(Object(R)).forEach(function(y){Object.defineProperty(t,y,Object.getOwnPropertyDescriptor(R,y))})}return t}function i(t){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isReactNative:!1,isDisabled:!1};if(g?.isDisabled===!0)return function(){};var R=g.isReactNative,y=g.shouldAugmentNPS,E=g.shouldParseXHRBlob,b={},r=function(p){var h=4096e3,c=p;if((0,l.default)(p)==="object"&&p!=null){var A=Object.getPrototypeOf(p);(A===Object.prototype||A===null)&&(c=JSON.stringify(p))}if(c&&c.length&&c.length>h&&typeof c=="string"){var x=c.substring(0,1e3);return"".concat(x,` ... LogRocket truncating to first 1000 characters.
|
|
2
|
-
Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network`)}return
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
1
|
+
(function(ce,oe){typeof exports=="object"&&typeof module=="object"?module.exports=oe(require("ReactDOM")):typeof define=="function"&&define.amd?define(["ReactDOM"],oe):typeof exports=="object"?exports.emuiLogrocket=oe(require("ReactDOM")):ce.emuiLogrocket=oe(ce.ReactDOM)})(globalThis,ve=>(()=>{var ce={755(K,B,q){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=s;var ee=q(845);let re;const h=ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;h&&h.Events&&h.Events[0]&&(re=h.Events[0]);function s(){const e=c=>{try{const d=re(c.target),v=[];let m=d;for(;m;){var E=typeof m.elementType=="function"&&m.elementType.displayName;E&&v.push(E),m=m.return}c.__lrName=v}catch{console.error("logrocket-react caught an error while hooking into React. Please make sure you are using the correct version of logrocket-react for your version of react-dom.")}};document.body.addEventListener("click",e,{capture:!0,passive:!0})}},5(K){(function(q,ee){if(1)K.exports=ee();else var re,h})(this,function(){return function(){var B={"./packages/@logrocket/console/src/index.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var E=c(e("./packages/@logrocket/console/src/registerConsole.js")),d=E.default;s.default=d},"./packages/@logrocket/console/src/registerConsole.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=m;var E=c(e("./node_modules/@babel/runtime/helpers/typeof.js")),d=c(e("./packages/@logrocket/utils/src/enhanceFunc.ts")),v=e("./packages/@logrocket/exceptions/src/index.js");function m(k){var f=[],w=["log","warn","info","error","debug"];return w.forEach(function(p){f.push((0,d.default)(console,p,function(){for(var a=arguments.length,u=new Array(a),t=0;t<a;t++)u[t]=arguments[t];k.addEvent("lr.core.LogEvent",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=g.isEnabled;if((0,E.default)(R)==="object"&&R[p]===!1||R===!1)return null;if(p==="error"&&g.shouldAggregateConsoleErrors)if(u&&u.length>=2&&u[0]==="ERROR"){var y="";try{y=" ".concat(u[1])}catch{}v.Capture.captureMessage(k,"".concat(u[0]).concat(y),u,{},!0)}else v.Capture.captureMessage(k,u[0],u,{},!0);return{logLevel:p.toUpperCase(),args:u}})}))}),function(){f.forEach(function(p){return p()})}}},"./packages/@logrocket/exceptions/src/Capture.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.captureMessage=m,s.captureException=k;var E=e("./packages/@logrocket/utils/src/scrubException.ts"),d=c(e("./packages/@logrocket/utils/src/TraceKit.js")),v=c(e("./packages/@logrocket/exceptions/src/stackTraceFromError.js"));function m(f,w,p){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,t={exceptionType:u?"CONSOLE":"MESSAGE",message:w,messageArgs:p,browserHref:window.location?window.location.href:""};(0,E.scrubException)(t,a),f.addEvent("lr.core.Exception",function(){return t})}function k(f,w){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"WINDOW",t=a||d.default.computeStackTrace(w),g={exceptionType:u,errorType:t.name,message:t.message,browserHref:window.location?window.location.href:""};(0,E.scrubException)(g,p);var R={_stackTrace:(0,v.default)(t)};f.addEvent("lr.core.Exception",function(){return g},R)}},"./packages/@logrocket/exceptions/src/index.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),E=e("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"registerExceptions",{enumerable:!0,get:function(){return d.default}}),s.Capture=void 0;var d=c(e("./packages/@logrocket/exceptions/src/registerExceptions.js")),v=k(e("./packages/@logrocket/exceptions/src/Capture.js"));s.Capture=v;function m(f){if(typeof WeakMap!="function")return null;var w=new WeakMap,p=new WeakMap;return(m=function(u){return u?p:w})(f)}function k(f,w){if(!w&&f&&f.__esModule)return f;if(f===null||E(f)!=="object"&&typeof f!="function")return{default:f};var p=m(w);if(p&&p.has(f))return p.get(f);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in f)if(t!=="default"&&Object.prototype.hasOwnProperty.call(f,t)){var g=u?Object.getOwnPropertyDescriptor(f,t):null;g&&(g.get||g.set)?Object.defineProperty(a,t,g):a[t]=f[t]}return a.default=f,p&&p.set(f,a),a}},"./packages/@logrocket/exceptions/src/raven/FunctionPropertyMirror.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),d=c(e("./node_modules/@babel/runtime/helpers/createClass.js")),v=c(e("./node_modules/@babel/runtime/helpers/typeof.js")),m=new Set(["prototype","length","name","arguments","caller","__lr__","__lr_wrapper__","__inner__","__refreshMirroredProps__"]);function k(w){return(0,v.default)(w)==="symbol"}var f=function(){function w(p,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=u.hasKey,g=u.reservedProps,R=g===void 0?m:g,y=u.includeSymbols,O=y===void 0?!0:y;(0,E.default)(this,w),this.source=p,this.target=a,this.hasKey=t||function(){return!1},this.reservedProps=R,this.includeSymbols=O,this.mirroredProps=Object.create(null),this.descriptorCache=Object.create(null)}return(0,d.default)(w,[{key:"isReserved",value:function(a){return a==null?!0:k(a)?!this.includeSymbols:this.reservedProps.has(a)}},{key:"remember",value:function(a){this.mirroredProps[a]=!0}},{key:"forget",value:function(a){delete this.mirroredProps[a],Object.prototype.hasOwnProperty.call(this.descriptorCache,a)&&delete this.descriptorCache[a]}},{key:"hasMirrored",value:function(a){return Object.prototype.hasOwnProperty.call(this.mirroredProps,a)}},{key:"getDescriptor",value:function(a){if(Object.prototype.hasOwnProperty.call(this.descriptorCache,a))return this.descriptorCache[a]||void 0;var u;try{u=Object.getOwnPropertyDescriptor(this.source,a)}catch{u=void 0}return this.descriptorCache[a]=u||null,u}},{key:"defineMirroredDescriptor",value:function(a,u){var t=this,g=Object.prototype.hasOwnProperty.call(u,"configurable")?u.configurable:!0,R=Object.prototype.hasOwnProperty.call(u,"enumerable")?u.enumerable:!0;if(u.get||u.set){Object.defineProperty(this.target,a,{configurable:g,enumerable:R,get:u.get?function(){return u.get.call(t.source)}:void 0,set:u.set?function(O){return u.set.call(t.source,O)}:void 0});return}var y=Object.prototype.hasOwnProperty.call(u,"writable")?u.writable:!0;Object.defineProperty(this.target,a,{configurable:g,enumerable:R,get:function(){return t.source[a]},set:y===!1?void 0:function(O){t.source[a]=O}})}},{key:"mirrorProperty",value:function(a){if(this.isReserved(a)||this.hasMirrored(a)||!this.hasKey(this.source,a))return!1;var u=this.getDescriptor(a);if(!u)return!1;try{return this.defineMirroredDescriptor(a,u),this.remember(a),!0}catch{try{return this.target[a]=this.source[a],this.remember(a),!0}catch{return!1}}}},{key:"mirrorProperties",value:function(a){if(a)for(var u=Array.isArray(a)?a:[a],t=0;t<u.length;t+=1)this.mirrorProperty(u[t])}},{key:"syncAll",value:function(){try{this.mirrorProperties(Object.getOwnPropertyNames(this.source)),this.includeSymbols&&typeof Object.getOwnPropertySymbols=="function"&&this.mirrorProperties(Object.getOwnPropertySymbols(this.source))}catch{}}},{key:"syncProperty",value:function(a){this.isReserved(a)||(this.forget(a),this.mirrorProperty(a))}},{key:"attachManualRefreshHook",value:function(){var a=this;this.isReserved("__refreshMirroredProps__")&&Object.defineProperty(this.target,"__refreshMirroredProps__",{configurable:!0,enumerable:!1,writable:!1,value:function(){return a.syncAll(),a.target}})}}]),w}();s.default=f},"./packages/@logrocket/exceptions/src/raven/raven.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/typeof.js")),d=c(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),v=c(e("./node_modules/@babel/runtime/helpers/createClass.js")),m=c(e("./packages/@logrocket/utils/src/TraceKit.js")),k=c(e("./packages/@logrocket/exceptions/src/raven/FunctionPropertyMirror.js")),f=Object.prototype;function w(O){return O===void 0}function p(O){return typeof O=="function"}function a(O,b){var n,i;if(w(O.length))for(n in O)u(O,n)&&b.call(null,n,O[n]);else if(i=O.length,i)for(n=0;n<i;n++)b.call(null,n,O[n])}function u(O,b){return f.hasOwnProperty.call(O,b)}function t(O,b,n,i){var P=O[b];O[b]=n(P),i&&i.push([O,b,P])}var g=typeof window<"u"?window:typeof e.g<"u"?e.g:typeof self<"u"?self:{},R=g.document,y=function(){function O(b){var n=b.captureException;(0,d.default)(this,O),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=n,m.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,v.default)(O,[{key:"uninstall",value:function(){m.default.report.unsubscribe(this._errorHandler);for(var n;this._wrappedBuiltIns.length;){n=this._wrappedBuiltIns.shift();var i=n[0],P=n[1],S=n[2];i[P]=S}}},{key:"_errorHandler",value:function(n){this._ignoreOnError||this.captureException(n)}},{key:"_ignoreNextOnError",value:function(){var n=this;this._ignoreOnError+=1,setTimeout(function(){n._ignoreOnError-=1})}},{key:"context",value:function(n,i,P){return p(n)&&(P=i||[],i=n,n=void 0),this.wrap(n,i).apply(this,P)}},{key:"wrap",value:function(n,i,P){var S=this;if(w(i)&&!p(n))return n;if(p(n)&&(i=n,n=void 0),!p(i))return i;try{if(i.__lr__)return i;if(i.__lr_wrapper__)return i.__lr_wrapper__;if(!Object.isExtensible(i))return i}catch{return i}function L(){var I=[],o=arguments.length,r=!n||n&&n.deep!==!1;for(P&&p(P)&&P.apply(this,arguments);o--;)I[o]=r?S.wrap(n,arguments[o]):arguments[o];try{return i.apply(this,I)}catch(C){throw S._ignoreNextOnError(),S.captureException(m.default.computeStackTrace(C),n),C}}var _=(typeof Reflect>"u"?"undefined":(0,E.default)(Reflect))==="object"?Reflect:void 0,j=new k.default(i,L,{hasKey:u,includeSymbols:!0});j.syncAll(),j.attachManualRefreshHook(),L.prototype=i.prototype;try{typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(L,i):w(L.__proto__)||(L.__proto__=i)}catch{}var A=L;if(typeof Proxy=="function"){var M=new Proxy(L,{apply:function(o,r,C){return j.syncAll(),o.apply(r,C)},construct:function(o,r,C){if(j.syncAll(),_&&_.construct)return _.construct(o,r,C);var x=Function.bind.apply(o,[null].concat(r||[]));return new x},get:function(o,r,C){return r==="__inner__"?i:(j.mirrorProperty(r),_&&_.get?_.get(o,r,C):o[r])},set:function(o,r,C,x){if(r==="__lr__"||r==="__lr_wrapper__"||r==="__inner__")return _&&_.set?_.set(o,r,C,x):(o[r]=C,!0);j.mirrorProperty(r);var H;_&&_.set?H=_.set(o,r,C,x):(o[r]=C,H=!0);try{i[r]=C,j.syncProperty(r)}catch{}return H},has:function(o,r){if(j.mirrorProperty(r),_&&_.has){if(_.has(o,r))return!0}else if(r in o)return!0;return r in i},ownKeys:function(o){return j.syncAll(),_&&_.ownKeys?_.ownKeys(o):Object.getOwnPropertyNames(o)},getOwnPropertyDescriptor:function(o,r){return j.mirrorProperty(r),_&&_.getOwnPropertyDescriptor?_.getOwnPropertyDescriptor(o,r):Object.getOwnPropertyDescriptor(o,r)},defineProperty:function(o,r,C){var x;if(_&&_.defineProperty?x=_.defineProperty(o,r,C):(Object.defineProperty(o,r,C),x=!0),r==="__lr__"||r==="__lr_wrapper__"||r==="__inner__")return x;try{Object.defineProperty(i,r,C)}catch{}return j.syncProperty(r),x},deleteProperty:function(o,r){if(r==="__lr__"||r==="__lr_wrapper__"||r==="__inner__")return _&&_.deleteProperty?_.deleteProperty(o,r):delete o[r];j.forget(r);try{delete i[r]}catch{}return _&&_.deleteProperty?_.deleteProperty(o,r):delete o[r]}});A=M}return i.__lr_wrapper__=A,L.__lr__=!0,L.__inner__=i,A!==L&&(A.__lr__=!0,A.__inner__=i),A}},{key:"_instrumentTryCatch",value:function(){var n=this,i=n._wrappedBuiltIns;function P(A){return function(M,I){for(var o=new Array(arguments.length),r=0;r<o.length;++r)o[r]=arguments[r];var C=o[0];return p(C)&&(o[0]=n.wrap(C)),A.apply?A.apply(this,o):A(o[0],o[1])}}function S(A){var M=g[A]&&g[A].prototype;M&&M.hasOwnProperty&&M.hasOwnProperty("addEventListener")&&(t(M,"addEventListener",function(I){return function(o,r,C,x){try{r&&r.handleEvent&&(r.handleEvent=n.wrap(r.handleEvent))}catch{}var H;return I.call(this,o,n.wrap(r,void 0,H),C,x)}},i),t(M,"removeEventListener",function(I){return function(o,r,C,x){try{var H=r?.__lr_wrapper__;H&&I.call(this,o,H,C,x)}catch{}return I.call(this,o,r,C,x)}},void 0))}t(g,"setTimeout",P,i),t(g,"setInterval",P,i),g.requestAnimationFrame&&t(g,"requestAnimationFrame",function(A){return function(M){return A(n.wrap(M))}},i);for(var L=["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"],_=0;_<L.length;_++)S(L[_]);var j=g.jQuery||g.$;j&&j.fn&&j.fn.ready&&t(j.fn,"ready",function(A){return function(M){return A.call(this,n.wrap(M))}},i)}}]),O}();s.default=y},"./packages/@logrocket/exceptions/src/registerExceptions.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),E=e("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=f;var d=c(e("./packages/@logrocket/exceptions/src/raven/raven.js")),v=k(e("./packages/@logrocket/exceptions/src/Capture.js"));function m(w){if(typeof WeakMap!="function")return null;var p=new WeakMap,a=new WeakMap;return(m=function(t){return t?a:p})(w)}function k(w,p){if(!p&&w&&w.__esModule)return w;if(w===null||E(w)!=="object"&&typeof w!="function")return{default:w};var a=m(p);if(a&&a.has(w))return a.get(w);var u={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in w)if(g!=="default"&&Object.prototype.hasOwnProperty.call(w,g)){var R=t?Object.getOwnPropertyDescriptor(w,g):null;R&&(R.get||R.set)?Object.defineProperty(u,g,R):u[g]=w[g]}return u.default=w,a&&a.set(w,u),u}function f(w){var p=new d.default({captureException:function(t){v.captureException(w,null,null,t)}}),a=function(t){t.reason instanceof Error?v.captureException(w,t.reason,null,null,"UNHANDLED_REJECTION"):w.addEvent("lr.core.Exception",function(){return{exceptionType:"UNHANDLED_REJECTION",message:t.reason||"Unhandled Promise rejection"}})};return window.addEventListener("unhandledrejection",a),function(){window.removeEventListener("unhandledrejection",a),p.uninstall()}}},"./packages/@logrocket/exceptions/src/stackTraceFromError.js":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=e;function e(c){function E(d){return d===null?void 0:d}return c.stack?c.stack.map(function(d){return{lineNumber:E(d.line),columnNumber:E(d.column),fileName:E(d.url),functionName:E(d.func)}}):void 0}},"./packages/@logrocket/network/src/fetchIntercept.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),d=e("./packages/@logrocket/network/src/registerXHR.js"),v=[];function m(p,a){for(var u=v.reduce(function(O,b){return[b].concat(O)},[]),t=arguments.length,g=new Array(t>2?t-2:0),R=2;R<t;R++)g[R-2]=arguments[R];var y=Promise.resolve(g);return u.forEach(function(O){var b=O.request,n=O.requestError;(b||n)&&(y=y.then(function(i){return b.apply(void 0,[a].concat((0,E.default)(i)))},function(i){return n.apply(void 0,[a].concat((0,E.default)(i)))}))}),y=y.then(function(O){(0,d.setActive)(!1);var b,n;try{b=p.apply(void 0,(0,E.default)(O))}catch(i){n=i}if((0,d.setActive)(!0),n)throw n;return b}),u.forEach(function(O){var b=O.response,n=O.responseError;(b||n)&&(y=y.then(function(i){return b(a,i)},function(i){return n&&n(a,i)}))}),y}function k(p){if(!(!p.fetch||!p.Promise)){var a=p.fetch.polyfill;p.fetch=function(u){var t=0;return function(){for(var g=arguments.length,R=new Array(g),y=0;y<g;y++)R[y]=arguments[y];return m.apply(void 0,[u,t++].concat(R))}}(p.fetch),a&&(p.fetch.polyfill=a)}}var f=!1,w={register:function(a){return f||(f=!0,k(window)),v.push(a),function(){var u=v.indexOf(a);u>=0&&v.splice(u,1)}},clear:function(){v=[]}};s.default=w},"./packages/@logrocket/network/src/index.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=u;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=c(e("./node_modules/@babel/runtime/helpers/typeof.js")),v=c(e("./packages/@logrocket/network/src/registerFetch.js")),m=e("./packages/@logrocket/network/src/registerIonic.ts"),k=c(e("./packages/@logrocket/network/src/registerNetworkInformation.js")),f=c(e("./packages/@logrocket/network/src/registerXHR.js")),w=c(e("./packages/@logrocket/utils/src/mapValues.ts"));function p(t,g){var R=Object.keys(t);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);g&&(y=y.filter(function(O){return Object.getOwnPropertyDescriptor(t,O).enumerable})),R.push.apply(R,y)}return R}function a(t){for(var g=1;g<arguments.length;g++){var R=arguments[g]!=null?arguments[g]:{};g%2?p(Object(R),!0).forEach(function(y){(0,E.default)(t,y,R[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(R)):p(Object(R)).forEach(function(y){Object.defineProperty(t,y,Object.getOwnPropertyDescriptor(R,y))})}return t}function u(t){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isReactNative:!1,isDisabled:!1};if(g?.isDisabled===!0)return function(){};var R=g.isReactNative,y=g.shouldAugmentNPS,O=g.shouldParseXHRBlob,b={},n=function(I){var o=4096e3,r=I;if((0,d.default)(I)==="object"&&I!=null){var C=Object.getPrototypeOf(I);(C===Object.prototype||C===null)&&(r=JSON.stringify(I))}if(r&&r.length&&r.length>o&&typeof r=="string"){var x=r.substring(0,1e3);return"".concat(x,` ... LogRocket truncating to first 1000 characters.
|
|
2
|
+
Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network`)}return I},i=function(I,o){var r=o.method;t.addEvent("lr.network.RequestEvent",function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=C.isEnabled,H=x===void 0?!0:x,z=C.requestSanitizer,Z=z===void 0?function(l){return l}:z;if(!H)return null;var G=null;try{G=Z(a(a({},o),{},{reqId:I}))}catch(l){console.error(l)}if(G){var W=G.url;if(typeof document<"u"&&typeof document.createElement=="function"){var N=document.createElement("a");N.href=G.url,W=N.href}return{reqId:I,url:W,headers:(0,w.default)(G.headers,function(l){return"".concat(l)}),body:n(G.body),method:r,referrer:G.referrer||void 0,mode:G.mode||void 0,credentials:G.credentials||void 0,initiatorType:G.initiatorType||"UNKNOWN"}}return b[I]=!0,null})},P=function(I,o){var r=o.method,C=o.status,x=o.responseType;t.addEvent("lr.network.ResponseEvent",function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=H.isEnabled,Z=z===void 0?!0:z,G=H.responseSanitizer,W=G===void 0?function(l){return l}:G;if(Z){if(b[I])return delete b[I],null}else return null;var N=null;try{N=W(a(a({},o),{},{reqId:I}))}catch(l){console.error(l)}return N?{reqId:I,responseType:x,status:N.status,headers:(0,w.default)(N.headers,function(l){return"".concat(l)}),body:n(N.body),method:r}:{reqId:I,responseType:x,status:C,headers:{},body:null,method:r}})},S=function(I){return t.isDisabled||b[I]===!0},L=(0,v.default)({addRequest:i,addResponse:P,isIgnored:S}),_=(0,f.default)({addRequest:i,addResponse:P,isIgnored:S,logger:t,shouldAugmentNPS:y,shouldParseXHRBlob:O}),j=(0,m.registerIonic)({addRequest:i,addResponse:P,isIgnored:S}),A=R?function(){}:(0,k.default)(t);return function(){A(),L(),_(),j()}}},"./packages/@logrocket/network/src/registerFetch.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=u;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=c(e("./packages/@logrocket/utils/src/mapValues.ts")),v=c(e("./packages/@logrocket/network/src/fetchIntercept.js"));function m(t,g){var R=Object.keys(t);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);g&&(y=y.filter(function(O){return Object.getOwnPropertyDescriptor(t,O).enumerable})),R.push.apply(R,y)}return R}function k(t){for(var g=1;g<arguments.length;g++){var R=arguments[g]!=null?arguments[g]:{};g%2?m(Object(R),!0).forEach(function(y){(0,E.default)(t,y,R[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(R)):m(Object(R)).forEach(function(y){Object.defineProperty(t,y,Object.getOwnPropertyDescriptor(R,y))})}return t}function f(t){if(t==null||typeof t.forEach!="function")return t;var g={};return t.forEach(function(R,y){g[y]?g[y]="".concat(g[y],",").concat(R):g[y]="".concat(R)}),g}var w=function(g){return(0,d.default)(f(g),function(R){return"".concat(R)})};function p(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{url:t.url,headers:w(t.headers),method:t.method&&t.method.toUpperCase(),referrer:t.referrer||void 0,mode:t.mode||void 0,credentials:t.credentials||void 0}}function a(t){return typeof t!="string"?!1:t.startsWith("image/")&&t!=="image/svg+xml"||t.startsWith("video/")?!0:t==="application/octet-stream"}function u(t){var g=t.addRequest,R=t.addResponse,y=t.isIgnored,O="fetch-",b={},n=v.default.register({request:function(P){for(var S=arguments.length,L=new Array(S>1?S-1:0),_=1;_<S;_++)L[_-1]=arguments[_];var j;if(typeof Request<"u"&&L[0]instanceof Request){var A;try{A=L[0].clone().text()}catch(M){A=Promise.resolve("LogRocket fetch error: ".concat(M.message))}j=A.then(function(M){return k(k({},p(L[0])),{},{body:M})},function(M){return k(k({},p(L[0])),{},{body:"LogRocket fetch error: ".concat(M.message)})})}else j=Promise.resolve(k(k({},p(L[1])),{},{url:"".concat(L[0]),body:(L[1]||{}).body}));return j.then(function(M){return b[P]=M.method,M.initiatorType="FETCH",g("".concat(O).concat(P),M),L})},requestError:function(P,S){return Promise.reject(S)},response:function(P,S){var L,_;if(y("".concat(O).concat(P)))return S;if(S.headers.get("content-type")==="text/event-stream")_=Promise.resolve("LogRocket skipped consuming an event-stream body.");else if(a(S.headers.get("content-type")))_=Promise.resolve("LogRocket skipped consuming a binary body.");else{try{L=S.clone()}catch(o){var j={url:S.url,responseType:S.type.toUpperCase(),status:S.status,headers:w(S.headers),body:"LogRocket fetch error: ".concat(o.message),method:b[P]};return delete b[P],R("".concat(O).concat(P),j),S}try{if(window.TextDecoder&&L.body){var A=L.body.getReader(),M=new window.TextDecoder("utf-8"),I="";_=A.read().then(function o(r){var C=r.done,x=r.value;if(C)return I;var H=x?M.decode(x,{stream:!0}):"";return I+=H,A.read().then(o)})}else _=L.text()}catch(o){_=Promise.resolve("LogRocket error reading body: ".concat(o.message))}}return _.catch(function(o){if(!(o.name==="AbortError"&&o instanceof DOMException))return"LogRocket error reading body: ".concat(o.message)}).then(function(o){var r={url:S.url,responseType:S.type.toUpperCase(),status:S.status,headers:w(S.headers),body:o,method:b[P]};delete b[P],R("".concat(O).concat(P),r)}),S},responseError:function(P,S){var L={url:void 0,status:0,headers:{},body:"".concat(S)};return R("".concat(O).concat(P),L),Promise.reject(S)}});return n}},"./packages/@logrocket/network/src/registerIonic.ts":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.mergeHeaders=j,s.serializeQueryParams=C,s.appendQueryParamsString=x,s.processData=Z,s.registerIonic=N;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=c(e("./node_modules/@babel/runtime/helpers/typeof.js")),v=c(e("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),m=c(e("./packages/@logrocket/utils/src/protectFunc.ts"));function k(l,D){var T=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!T){if(Array.isArray(l)||(T=f(l))||D&&l&&typeof l.length=="number"){T&&(l=T);var U=0,F=function(){};return{s:F,n:function(){return U>=l.length?{done:!0}:{done:!1,value:l[U++]}},e:function(te){throw te},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X=!0,$=!1,J;return{s:function(){T=T.call(l)},n:function(){var te=T.next();return X=te.done,te},e:function(te){$=!0,J=te},f:function(){try{!X&&T.return!=null&&T.return()}finally{if($)throw J}}}}function f(l,D){if(l){if(typeof l=="string")return w(l,D);var T=Object.prototype.toString.call(l).slice(8,-1);if(T==="Object"&&l.constructor&&(T=l.constructor.name),T==="Map"||T==="Set")return Array.from(l);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return w(l,D)}}function w(l,D){(D==null||D>l.length)&&(D=l.length);for(var T=0,U=new Array(D);T<D;T++)U[T]=l[T];return U}function p(l,D){var T=Object.keys(l);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(l);D&&(U=U.filter(function(F){return Object.getOwnPropertyDescriptor(l,F).enumerable})),T.push.apply(T,U)}return T}function a(l){for(var D=1;D<arguments.length;D++){var T=arguments[D]!=null?arguments[D]:{};D%2?p(Object(T),!0).forEach(function(U){(0,E.default)(l,U,T[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(T)):p(Object(T)).forEach(function(U){Object.defineProperty(l,U,Object.getOwnPropertyDescriptor(T,U))})}return l}var u=new Set(["get","put","post","patch","head","delete","options","upload","download"]),t=new Set(["urlencoded","json","utf8"]),g=new Set(["raw","multipart"]),R="ionic-",y=new Set(["desktop","mobileweb","pwa"]),O=new Set(["FormData"]),b=new Set,n=new Set(["string"]),i=new Set(["string","array"]),P={utf8:n,urlencoded:new Set(["object"]),json:new Set(["array","object"]),raw:new Set(["Uint8Array","ArrayBuffer"]),default:b};function S(l,D,T){if(typeof D!="string")throw new Error("".concat(T," must be one of: ").concat((0,v.default)(l).join(", ")));if(D=D.trim().toLowerCase(),!l.has(D))throw new Error("".concat(T," must be one of: ").concat((0,v.default)(l).join(", ")));return D}function L(l,D,T){if((0,d.default)(l)!=="object")throw new Error(T);for(var U=0,F=Object.keys(l);U<F.length;U++){var X=F[U];if(!D.has((0,d.default)(l[X])))throw new Error(T)}return l}function _(l,D){var T=new URL(l),U=T.host;return D.getHeaders(U)||null}function j(l,D){return a(a({},l),D)}function A(l,D,T){var U=T.getHeaders("*")||{},F=_(l,T)||{};return j(j(U,F),D)}function M(l,D){return D?encodeURIComponent(l):l}function I(l,D,T){return l.length?T?"".concat(encodeURIComponent(l),"[").concat(encodeURIComponent(D),"]"):"".concat(l,"[").concat(D,"]"):T?encodeURIComponent(D):D}function o(l,D,T){var U=[],F=k(D),X;try{for(F.s();!(X=F.n()).done;){var $=X.value;if(Array.isArray($)){U.push(o("".concat(l,"[]"),$,T));continue}else if((0,d.default)($)==="object"){U.push(r("".concat(l,"[]").concat($),T,void 0));continue}U.push("".concat(I(l,"",T),"=").concat(M($,T)))}}catch(J){F.e(J)}finally{F.f()}return U.join("&")}function r(l,D,T){var U=[];for(var F in D)if(D.hasOwnProperty(F)){var X=l.length?"".concat(l,"[").concat(F,"]"):F;if(Array.isArray(D[F])){U.push(o(X,D[F],T));continue}else if((0,d.default)(D[F])==="object"&&D[F]!==null){U.push(r(X,D[F],T));continue}U.push("".concat(I(l,F,T),"=").concat(M(D[F],T)))}return U.join("&")}function C(l,D){return r("",l,D)}function x(l,D){if(!l.length||!D.length)return l;var T=new URL(l),U=T.host,F=T.pathname,X=T.search,$=T.hash,J=T.protocol;return"".concat(J,"//").concat(U).concat(F).concat(X.length?"".concat(X,"&").concat(D):"?".concat(D)).concat($)}function H(l){return P[l]||P.default}function z(l){return l==="multipart"?O:b}function Z(l,D){var T=(0,d.default)(l),U=H(D),F=z(D);if(F.size>0){var X=!1;if(F.forEach(function($){e.g[$]&&l instanceof e.g[$]&&(X=!0)}),!X)throw new Error("INSTANCE_TYPE_MISMATCH_DATA ".concat((0,v.default)(F).join(", ")))}if(F.size===0&&!U.has(T))throw new Error("TYPE_MISMATCH_DATA ".concat((0,v.default)(U).join(", ")));switch(D){case"utf8":return l;default:return JSON.stringify(l,void 0,2)}}function G(l,D){l=l||{};var T,U=l.data;try{T=S(t,l.serializer||D.getDataSerializer(),"serializer / data payload type")}catch{T=S(g,l.serializer||D.getDataSerializer(),"serializer / data payload type"),U={}}return{data:U,filePath:l.filePath,followRedirect:l.followRedirect,headers:L(l.headers||{},n,"Invalid header type, must be string"),method:S(u,l.method||u[0],"method"),name:l.name,params:L(l.params||{},i,"Invalid param, must be of type string or array"),responseType:l.responseType,serializer:T,connectTimeout:l.connectTimeout,readTimeout:l.readTimeout,timeout:l.timeout}}var W=0;function N(l){var D,T,U,F=l.addRequest,X=l.addResponse,$=l.isIgnored,J=(D=window.cordova)===null||D===void 0||(T=D.plugin)===null||T===void 0?void 0:T.http,Y={},te=!1;if(typeof J>"u")return function(){};var de=(U=window.ionic)===null||U===void 0?void 0:U.platforms;if(typeof de<"u"&&typeof de.some=="function"&&de.some(function(V){return y.has(V)}))return function(){};var he=J.sendRequest,me=(0,m.default)(function(V,ie,ae){if(!$("".concat(R).concat(ae)))try{var fe={url:V.url||"",status:V.status<600&&V.status>=100?V.status:0,headers:V.headers||{},body:ie?V.data:V.error,method:Y[ae].toUpperCase()};X("".concat(R).concat(ae),fe)}catch(pe){var ne={url:V.url||"",status:V.status<600&&V.status>=100?V.status:0,headers:V.headers||{},body:"LogRocket fetch error: ".concat(pe.message),method:Y[ae].toUpperCase()};X("".concat(R).concat(ae),ne)}});return J.sendRequest=function(V,ie,ae,fe){var ne=++W,pe=function(ue){te||(me(ue,!0,ne),delete Y[ne]),ae(ue)},be=function(ue){te||(me(ue,!1,ne),delete Y[ne]),fe(ue)};if(!te)try{var se=G(ie,J),we=x(V,r("",se.params,!0)),Oe=A(V,se.headers,J),ye=se.method||"get";Y[ne]=ye;var Ee={url:we,method:ye.toUpperCase(),headers:Oe||{},body:Z(se.data||{},se.serializer),initiatorType:"IONIC"};F("".concat(R).concat(ne),Ee)}catch(ge){var Re={url:V,method:(ie.method||"get").toUpperCase(),headers:{},body:"LogRocket fetch error: ".concat(ge.message),initiatorType:"IONIC"};F("".concat(R).concat(ne),Re)}return he(V,ie,pe,be)},function(){te=!0,J.sendRequest=he,Y={}}}},"./packages/@logrocket/network/src/registerNetworkInformation.js":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=c;var e={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"};function c(E){var d=void 0;function v(){var m={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(m.effectiveType=e[window.navigator.connection.effectiveType]||"UNKNOWN"):m.effectiveType="NONE",!(d&&m.online===d.online&&m.effectiveType===d.effectiveType)&&(d=m,E.addEvent("lr.network.NetworkStatusEvent",function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=k.isEnabled,w=f===void 0?!0:f;return w?m:null}))}return setTimeout(v),window.navigator.connection&&typeof window.navigator.connection.addEventListener=="function"&&window.navigator.connection.addEventListener("change",v),window.addEventListener("online",v),window.addEventListener("offline",v),function(){window.removeEventListener("offline",v),window.removeEventListener("online",v),window.navigator.connection&&typeof window.navigator.connection.removeEventListener=="function"&&window.navigator.connection.removeEventListener("change",v)}}},"./packages/@logrocket/network/src/registerXHR.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.setActive=a,s.default=t;var E=c(e("./packages/@logrocket/utils/src/mapValues.ts")),d=c(e("./packages/@logrocket/utils/src/enhanceFunc.ts")),v=c(e("./packages/@logrocket/utils/src/protectFunc.ts")),m=c(e("./packages/@logrocket/utils/src/startsWith.js")),k=e("./packages/@logrocket/utils/src/constants/nps.js"),f=e("./packages/@logrocket/utils/src/constants/statusCodes.ts"),w=e("./packages/@logrocket/utils/src/parseRawHeaders.ts"),p=!0;function a(g){p=g}var u=0;function t(g){var R=g.addRequest,y=g.addResponse,O=g.isIgnored,b=g.logger,n=g.shouldAugmentNPS,i=n===void 0?!0:n,P=g.shouldParseXHRBlob,S=P===void 0?!1:P,L=XMLHttpRequest,_=new WeakMap,j=!1,A="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,XMLHttpRequest=function(I,o){var r=new L(I,o);if(!p)return r;_.set(r,{xhrId:++u,requestHeaders:{},sent:!1,done:!1});var C=r.open;function x(){for(var W=arguments.length,N=new Array(W),l=0;l<W;l++)N[l]=arguments[l];try{var D=N[1];if(window.URL&&typeof window.URL=="function"&&D.search(k.WOOTRIC_RESPONSES_REGEX)===0){var T=new window.URL(b.recordingURL);T.searchParams.set("nps","wootric");var U=new window.URL(D),F=U.searchParams.get("response[text]"),X=F?"".concat(F,`
|
|
4
4
|
|
|
5
|
-
`):"";U.searchParams.set("response[text]","".concat(
|
|
5
|
+
`):"";U.searchParams.set("response[text]","".concat(X,"<").concat(T.href,"|View LogRocket session>")),N[1]=U.href}}catch{}return C.apply(this,N)}var H=r.send;function z(){for(var W=arguments.length,N=new Array(W),l=0;l<W;l++)N[l]=arguments[l];try{var D=_.get(r);if(window.URL&&typeof window.URL=="function"&&D&&D.url&&D.url.search(k.DELIGHTED_RESPONSES_REGEX)===0&&N.length&&N[0].indexOf(k.DELIGHTED_FEEDBACK_PREFIX)!==-1){var T=new window.URL(b.recordingURL);T.searchParams.set("nps","delighted");var U=encodeURIComponent(T.href),F=N[0].split("&").map(function(X){if((0,m.default)(X,k.DELIGHTED_FEEDBACK_PREFIX)){var $=X===k.DELIGHTED_FEEDBACK_PREFIX;return"".concat(X).concat($?"":`
|
|
6
6
|
|
|
7
|
-
`,"<").concat(U,"|View LogRocket session>")}return
|
|
8
|
-
`),P=[],
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,E=!1,b;return{s:function(){t=t.call(n)},n:function(){var a=t.next();return y=a.done,a},e:function(a){E=!0,b=a},f:function(){try{!y&&t.return!=null&&t.return()}finally{if(E)throw b}}}}function v(n,i){if(n){if(typeof n=="string")return w(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(n,i)}}function w(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,g=new Array(i);t<i;t++)g[t]=n[t];return g}function S(n){return/boolean|number|string/.test((0,k.default)(n))}var d=["level","logger"],O=["tags","extra"];function f(n,i){if(i){var t=l(d),g;try{for(t.s();!(g=t.n()).done;){var R=g.value,y=i[R];S(y)&&(n[R]=y.toString())}}catch(I){t.e(I)}finally{t.f()}var E=l(O),b;try{for(E.s();!(b=E.n()).done;){for(var r=b.value,a=i[r]||{},P={},_=0,C=Object.keys(a);_<C.length;_++){var j=C[_],T=a[j];S(T)&&(P[j.toString()]=T.toString())}n[r]=P}}catch(I){E.e(I)}finally{E.f()}}}},"./packages/@logrocket/utils/src/sendTelemetryData.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.sendTelemetry=f,o.default=n;var k=u(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),l=u(e("./packages/@logrocket/utils/src/logError.js")),v=u(e("./packages/@logrocket/utils/src/TraceKit.js"));function w(i,t){var g=Object.keys(i);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(i);t&&(R=R.filter(function(y){return Object.getOwnPropertyDescriptor(i,y).enumerable})),g.push.apply(g,R)}return g}function S(i){for(var t=1;t<arguments.length;t++){var g=arguments[t]!=null?arguments[t]:{};t%2?w(Object(g),!0).forEach(function(R){(0,k.default)(i,R,g[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(g)):w(Object(g)).forEach(function(R){Object.defineProperty(i,R,Object.getOwnPropertyDescriptor(g,R))})}return i}var d="c6f6e11c10b0c0daa2223c3bf1ca4f7e01fd93d1";function O(i){try{var t,g,R=i.message,y="https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793",E=JSON.stringify(S({message:R,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":typeof navigator<"u"&&navigator.userAgent},url:typeof location<"u"&&location.href},release:d,environment:typeof window<"u"&&(t=(g=window.__SDKCONFIG__)===null||g===void 0?void 0:g.scriptEnv)!==null&&t!==void 0?t:"prod"},i));if(typeof window<"u"){var b=window._lrXMLHttpRequest||XMLHttpRequest,r=new b;r.open("POST",y),r.send(E)}else typeof fetch<"u"&&fetch(y,{method:"POST",body:E}).catch(function(a){(0,l.default)("Failed to send via fetch",a)})}catch(a){(0,l.default)("Failed to send",a)}}function f(i,t){if(typeof window<"u"&&window._lrdebug)return void(0,l.default)(i);t&&t.extra&&t.extra.appID&&typeof t.extra.appID.indexOf=="function"&&t.extra.appID.indexOf("au2drp/")===0&&Math.random()>=.25||O(S({message:i},t))}function n(i,t){try{var g=i.message,R;try{R=JSON.stringify(t).slice(0,1e3)}catch{try{R="Could not stringify payload: ".concat(Object.prototype.toString.call(t))}catch{}}var y;try{y=v.default.computeStackTrace(i).stack.map(function(E){return{filename:E.url,lineno:E.line,colno:E.column,function:E.func||"?"}})}catch{}O({message:g,extra:{stringPayload:R},exception:{values:[{type:i.type,value:g,stacktrace:{frames:y}}]}})}catch(E){(0,l.default)("Failed to send",E)}}},"./packages/@logrocket/utils/src/startsWith.js":function(m,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=e;function e(u,k){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return u&&k&&u.substring(l,l+k.length)===k}},"./packages/logrocket/src/LogRocket.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.MAX_QUEUE_SIZE=void 0;var k=u(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=u(e("./node_modules/@babel/runtime/helpers/createClass.js")),v=u(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),w=u(e("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),S=u(e("./packages/@logrocket/network/src/index.js")),d=e("./packages/@logrocket/exceptions/src/index.js"),O=u(e("./packages/@logrocket/console/src/index.js")),f=e("./packages/@logrocket/redux/src/index.js"),n=u(e("./packages/@logrocket/utils/src/sendTelemetryData.js"));function i(E,b){var r=Object.keys(E);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(E);b&&(a=a.filter(function(P){return Object.getOwnPropertyDescriptor(E,P).enumerable})),r.push.apply(r,a)}return r}function t(E){for(var b=1;b<arguments.length;b++){var r=arguments[b]!=null?arguments[b]:{};b%2?i(Object(r),!0).forEach(function(a){(0,v.default)(E,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(a){Object.defineProperty(E,a,Object.getOwnPropertyDescriptor(r,a))})}return E}var g=1e3;o.MAX_QUEUE_SIZE=g;var R=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=b.ingestServer,a=(0,w.default)(b,["ingestServer"]);return r?t({serverURL:"".concat(r,"/i"),statsURL:"".concat(r,"/s")},a):a},y=function(){function E(){var b=this;(0,k.default)(this,E),this._buffer=[],["log","info","warn","error","debug"].forEach(function(r){b[r]=function(){for(var a=arguments.length,P=new Array(a),_=0;_<a;_++)P[_]=arguments[_];b.addEvent("lr.core.LogEvent",function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return r==="error"&&C.shouldAggregateConsoleErrors&&d.Capture.captureMessage(b,P[0],P,{},!0),{logLevel:r.toUpperCase(),args:P}},{shouldCaptureStackTrace:!0})}}),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,l.default)(E,[{key:"addEvent",value:function(r,a){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=Date.now();this._run(function(C){C.addEvent(r,a,t(t({},P),{},{timeOverride:_}))})}},{key:"onLogger",value:function(r){for(this._logger=r;this._buffer.length>0;){var a=this._buffer.shift();a(this._logger)}}},{key:"_run",value:function(r){if(!this._isDisabled)if(this._logger)r(this._logger);else{if(this._buffer.length>=g){this._isDisabled=!0,this.uninstall();return}this._buffer.push(r.bind(this))}}},{key:"_initInternal",value:function(r,a){if(!this._isInitialized){var P,_=a.shouldAugmentNPS,C=_===void 0?!0:_,j=a.shouldParseXHRBlob,T=j===void 0?!1:j,I=a.shouldDetectExceptions,M=I===void 0?!0:I;M&&this._installed.push((0,d.registerExceptions)(this)),this._installed.push((0,S.default)(this,{shouldAugmentNPS:!!C,shouldParseXHRBlob:!!T,isDisabled:(a==null||(P=a.network)===null||P===void 0?void 0:P.isEnabled)===!1})),this._installed.push((0,O.default)(this)),this._isInitialized=!0,this._run(function(p){p.init(r,R(a))})}}},{key:"init",value:function(r){var a,P,_,C,j,T=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=((a=window)===null||a===void 0||(P=a.Zone)===null||P===void 0?void 0:P.root)||((_=window)===null||_===void 0||(C=_.Zone)===null||C===void 0||(j=C.current)===null||j===void 0?void 0:j._parent);if(M&&typeof M.run=="function")try{M.run(function(){T._initInternal(r,I)});return}catch(p){(0,n.default)(p)}this._initInternal(r,I)}},{key:"start",value:function(){this._run(function(r){r.start()})}},{key:"uninstall",value:function(){this._installed.forEach(function(r){return r()}),this._buffer=[],this._run(function(r){r.uninstall()})}},{key:"identify",value:function(r,a){this._run(function(P){P.identify(r,a)})}},{key:"startNewSession",value:function(){this._run(function(r){r.startNewSession()})}},{key:"track",value:function(r,a){this._run(function(P){P.track(r,a)})}},{key:"getSessionURL",value:function(r){if(typeof r!="function")throw new Error("LogRocket: must pass callback to getSessionURL()");this._run(function(a){a.getSessionURL?a.getSessionURL(r):r(a.recordingURL)})}},{key:"trackScrollEvent",value:function(r){this._logger&&this._logger.trackScrollEvent(r)}},{key:"getVersion",value:function(r){this._run(function(a){r(a.version)})}},{key:"captureMessage",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};d.Capture.captureMessage(this,r,[r],a)}},{key:"captureException",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};d.Capture.captureException(this,r,a)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,f.createEnhancer)(this,r)}},{key:"reduxMiddleware",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,f.createMiddleware)(this,r)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),E}();o.default=y},"./packages/logrocket/src/makeLogRocket.js":function(m,o,e){"use strict";var u=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=w;var k=u(e("./packages/logrocket/src/LogRocket.js")),l="LogRocket on React Native requires the LogRocket React Native specific SDK. See setup guide here https://docs.logrocket.com/reference/react-native.",v=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(O){return function(){return O.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(O){return function(f){return O(f)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}};function w(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return new k.default};if(typeof navigator<"u"&&navigator.product==="ReactNative")throw new Error(l);if(typeof window<"u"){if(window._disableLogRocket)return d();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var f=O();return S(f),f}}return v()}},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(m){function o(e,u){(u==null||u>e.length)&&(u=e.length);for(var k=0,l=new Array(u);k<u;k++)l[k]=e[k];return l}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(m,o,e){var u=e("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function k(l){if(Array.isArray(l))return u(l)}m.exports=k,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(m){function o(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(m,o,e){var u=e("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function k(v,w){for(var S=0;S<w.length;S++){var d=w[S];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,u(d.key),d)}}function l(v,w,S){return w&&k(v.prototype,w),S&&k(v,S),Object.defineProperty(v,"prototype",{writable:!1}),v}m.exports=l,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(m,o,e){var u=e("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function k(l,v,w){return v=u(v),v in l?Object.defineProperty(l,v,{value:w,enumerable:!0,configurable:!0,writable:!0}):l[v]=w,l}m.exports=k,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(m){function o(e){return e&&e.__esModule?e:{default:e}}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(m){function o(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}m.exports=o,m.exports.__esModule=!0,m.exports.default=m.exports},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(m){function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}
|
|
7
|
+
`,"<").concat(U,"|View LogRocket session>")}return X}).join("&");N[0]=F}}catch{}return H.apply(this,N)}i&&(r.open=x,r.send=z);var Z=function(){var N;if(!j){var l=_.get(r);if(!(!l||O("".concat(A).concat(l.xhrId)))&&!(!l.sent||!l.done)){var D=l.status||f.XHR_CUSTOM_STATUS_CODES.error;D===f.XHR_CUSTOM_STATUS_CODES.error&&((N=window.navigator)===null||N===void 0?void 0:N.onLine)===!1&&(D=f.XHR_CUSTOM_STATUS_CODES.offline);var T={url:l.url,status:D,headers:l.responseHeaders,body:l.responseBody,method:(l.method||"").toUpperCase()};if(S&&T.body instanceof Blob){var U=new FileReader;U.readAsText(T.body),U.onload=function(){try{T.body=JSON.parse(U.result)}catch{}y("".concat(A).concat(l.xhrId),T)}}else y("".concat(A).concat(l.xhrId),T)}}};(0,d.default)(r,"open",(0,v.default)(function(W,N){if(!j){var l=_.get(r);l.method=W,l.url=N}})),(0,d.default)(r,"send",(0,v.default)(function(W){if(!j){var N=_.get(r);if(N){var l={url:N.url,method:N.method&&N.method.toUpperCase(),headers:(0,E.default)(N.requestHeaders||{},function(D){return D.join(", ")}),body:W,initiatorType:"XHR"};R("".concat(A).concat(N.xhrId),l),N.sent=!0,Z()}}})),(0,d.default)(r,"setRequestHeader",(0,v.default)(function(W,N){if(!j){var l=_.get(r);l&&(l.requestHeaders=l.requestHeaders||{},l.requestHeaders[W]=l.requestHeaders[W]||[],l.requestHeaders[W].push(N))}}));var G={readystatechange:(0,v.default)(function(){if(!j&&r.readyState===4){var W=_.get(r);if(!W||O("".concat(A).concat(W.xhrId)))return;var N=r.getAllResponseHeaders()||"";W.responseHeaders=(0,w.parseRawHeaders)(N);var l;try{switch(r.responseType){case"json":l=b._shouldCloneResponse?JSON.parse(JSON.stringify(r.response)):r.response;break;case"arraybuffer":case"blob":{S?l=r.response:l="LogRocket skipped consuming a binary body.";break}case"document":{l=r.responseXML;break}case"text":case"":{l=r.responseText;break}default:l=""}}catch{l="LogRocket: Error accessing response."}W.responseBody=l,W.status=r.status,W.done=!0}}),abort:(0,v.default)(function(){var W=_.get(r);W&&(W.status=f.XHR_CUSTOM_STATUS_CODES.aborted)}),timeout:(0,v.default)(function(){var W=_.get(r);W&&(W.status=f.XHR_CUSTOM_STATUS_CODES.timeout)}),loadend:(0,v.default)(function(){Z()})};return Object.keys(G).forEach(function(W){r.addEventListener(W,G[W])}),r},XMLHttpRequest.prototype=L.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach(function(M){XMLHttpRequest[M]=L[M]}),function(){j=!0,XMLHttpRequest=L}}},"./packages/@logrocket/now/src/index.js":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var e=Date.now.bind(Date),c=e(),E=typeof performance<"u"&&performance.now?performance.now.bind(performance):function(){return e()-c};s.default=E},"./packages/@logrocket/redux/src/createEnhancer.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=f;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=c(e("./packages/@logrocket/now/src/index.js"));function v(w,p){var a=Object.keys(w);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(w);p&&(u=u.filter(function(t){return Object.getOwnPropertyDescriptor(w,t).enumerable})),a.push.apply(a,u)}return a}function m(w){for(var p=1;p<arguments.length;p++){var a=arguments[p]!=null?arguments[p]:{};p%2?v(Object(a),!0).forEach(function(u){(0,E.default)(w,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach(function(u){Object.defineProperty(w,u,Object.getOwnPropertyDescriptor(a,u))})}return w}var k=0;function f(w){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=p.stateSanitizer,u=a===void 0?function(R){return R}:a,t=p.actionSanitizer,g=t===void 0?function(R){return R}:t;return function(R){return function(y,O,b){var n=R(y,O,b),i=n.dispatch,P=k++;w.addEvent("lr.redux.InitialState",function(){var L;try{L=u(n.getState())}catch(_){console.error(_.toString())}return{state:L,storeId:P}});var S=function(_){var j=(0,d.default)(),A,M;try{M=i(_)}catch(o){A=o}finally{var I=(0,d.default)()-j;w.addEvent("lr.redux.ReduxAction",function(){var o=null,r=null;try{o=u(n.getState()),r=g(_)}catch(C){console.error(C.toString())}return o&&r?{storeId:P,action:r,duration:I,stateDelta:o}:null})}if(A)throw A;return M};return m(m({},n),{},{dispatch:S})}}}},"./packages/@logrocket/redux/src/createMiddleware.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=v;var E=c(e("./packages/@logrocket/now/src/index.js")),d=0;function v(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=k.stateSanitizer,w=f===void 0?function(u){return u}:f,p=k.actionSanitizer,a=p===void 0?function(u){return u}:p;return function(u){var t=d++;return m.addEvent("lr.redux.InitialState",function(){var g;try{g=w(u.getState())}catch(R){console.error(R.toString())}return{state:g,storeId:t}}),function(g){return function(R){var y=(0,E.default)(),O,b;try{b=g(R)}catch(i){O=i}finally{var n=(0,E.default)()-y;m.addEvent("lr.redux.ReduxAction",function(){var i=null,P=null;try{i=w(u.getState()),P=a(R)}catch(S){console.error(S.toString())}return i&&P?{storeId:t,action:P,duration:n,stateDelta:i}:null})}if(O)throw O;return b}}}}},"./packages/@logrocket/redux/src/index.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"createEnhancer",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(s,"createMiddleware",{enumerable:!0,get:function(){return d.default}});var E=c(e("./packages/@logrocket/redux/src/createEnhancer.js")),d=c(e("./packages/@logrocket/redux/src/createMiddleware.js"))},"./packages/@logrocket/utils/src/TraceKit.js":function(h,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c={collectWindowErrors:!0,debug:!1},E=typeof window<"u"?window:typeof e.g<"u"?e.g:typeof self<"u"?self:{},d=[].slice,v="?",m=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function k(){return typeof document>"u"||typeof document.location>"u"?"":document.location.href}c.report=function(){var p=[],a=null,u=null,t=null;function g(j){P(),p.push(j)}function R(j){for(var A=p.length-1;A>=0;--A)p[A]===j&&p.splice(A,1)}function y(){S(),p=[]}function O(j,A){var M=null;if(!(A&&!c.collectWindowErrors)){for(var I in p)if(p.hasOwnProperty(I))try{p[I].apply(null,[j].concat(d.call(arguments,2)))}catch(o){M=o}if(M)throw M}}var b,n;function i(j,A,M,I,o){var r=null;if(t)c.computeStackTrace.augmentStackTraceWithInitialElement(t,A,M,j),L();else if(o)r=c.computeStackTrace(o),O(r,!0);else{var C={url:A,line:M,column:I},x=void 0,H=j,z;if({}.toString.call(j)==="[object String]"){var z=j.match(m);z&&(x=z[1],H=z[2])}C.func=v,r={name:x,message:H,url:k(),stack:[C]},O(r,!0)}return b?b.apply(this,arguments):!1}function P(){n||(b=E.onerror,E.onerror=i,n=!0)}function S(){n&&(E.onerror=b,n=!1,b=void 0)}function L(){var j=t,A=a;a=null,t=null,u=null,O.apply(null,[j,!1].concat(A))}function _(j,A){var M=d.call(arguments,1);if(t){if(u===j)return;L()}var I=c.computeStackTrace(j);if(t=I,u=j,a=M,setTimeout(function(){u===j&&L()},I.incomplete?2e3:0),A!==!1)throw j}return _.subscribe=g,_.unsubscribe=R,_.uninstall=y,_}(),c.computeStackTrace=function(){function p(y){return y.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function a(y){return p(y).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function u(y){if(!(typeof y.stack>"u"||!y.stack)){for(var O=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,b=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,n=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,i=y.stack.split(`
|
|
8
|
+
`),P=[],S,L,_=/^(.*) is undefined$/.exec(y.message),j=0,A=i.length;j<A;++j){if(S=O.exec(i[j])){var M=S[2]&&S[2].indexOf("native")!==-1;L={url:M?null:S[2],func:S[1]||v,args:M?[S[2]]:[],line:S[3]?+S[3]:null,column:S[4]?+S[4]:null}}else if(S=n.exec(i[j]))L={url:S[2],func:S[1]||v,args:[],line:+S[3],column:S[4]?+S[4]:null};else if(S=b.exec(i[j]))L={url:S[3],func:S[1]||v,args:S[2]?S[2].split(","):[],line:S[4]?+S[4]:null,column:S[5]?+S[5]:null};else continue;!L.func&&L.line&&(L.func=v),P.push(L)}return P.length?(!P[0].column&&typeof y.columnNumber<"u"&&(P[0].column=y.columnNumber+1),{name:y.name,message:y.message,url:k(),stack:P}):null}}function t(y,O,b,n){var i={url:O,line:b};if(i.url&&i.line){if(y.incomplete=!1,i.func||(i.func=v),y.stack.length>0&&y.stack[0].url===i.url){if(y.stack[0].line===i.line)return!1;if(!y.stack[0].line&&y.stack[0].func===i.func)return y.stack[0].line=i.line,!1}return y.stack.unshift(i),y.partial=!0,!0}else y.incomplete=!0;return!1}function g(y,O){for(var b=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,n=[],i={},P=!1,S,L,_,j=g.caller;j&&!P;j=j.caller)if(!(j===R||j===c.report)){if(L={url:null,func:v,line:null,column:null},j.name?L.func=j.name:(S=b.exec(j.toString()))&&(L.func=S[1]),typeof L.func>"u")try{L.func=S.input.substring(0,S.input.indexOf("{"))}catch{}i[""+j]?P=!0:i[""+j]=!0,n.push(L)}O&&n.splice(0,O);var A={name:y.name,message:y.message,url:k(),stack:n};return t(A,y.sourceURL||y.fileName,y.line||y.lineNumber,y.message||y.description),A}function R(y,O){var b=null;O=O==null?0:+O;try{if(b=u(y),b)return b}catch(n){if(c.debug)throw n}try{if(b=g(y,O+1),b)return b}catch(n){if(c.debug)throw n}return{name:y.name,message:y.message,url:k()}}return R.augmentStackTraceWithInitialElement=t,R.computeStackTraceFromStackProp=u,R}();var f=c;s.default=f},"./packages/@logrocket/utils/src/constants/nps.js":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.DELIGHTED_FEEDBACK_PREFIX=s.DELIGHTED_RESPONSES_REGEX=s.WOOTRIC_RESPONSES_REGEX=void 0;var e=/^https:\/\/production.wootric.com\/responses/;s.WOOTRIC_RESPONSES_REGEX=e;var c=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/;s.DELIGHTED_RESPONSES_REGEX=c;var E="comment=";s.DELIGHTED_FEEDBACK_PREFIX=E},"./packages/@logrocket/utils/src/constants/statusCodes.ts":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.getStatusText=f,s.XHR_CUSTOM_FAILURE_STATUSES=s.XHR_CUSTOM_STATUS_CODES=s.STATUS_CODES=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),d,v={0:"",100:"Continue",101:"Switching Protocol",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"unused",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"};s.STATUS_CODES=v;var m={error:0,timeout:444,aborted:499,offline:1001};s.XHR_CUSTOM_STATUS_CODES=m;var k=(d={},(0,E.default)(d,m.error,"Error"),(0,E.default)(d,m.timeout,"Timeout"),(0,E.default)(d,m.aborted,"Aborted"),(0,E.default)(d,m.offline,"Offline"),d);s.XHR_CUSTOM_FAILURE_STATUSES=k;function f(w){return v[String(w)]}},"./packages/@logrocket/utils/src/createUnsubListener.ts":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.createUnsubListener=m,s.Handler=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),d=c(e("./node_modules/@babel/runtime/helpers/createClass.js")),v=function(){function k(f){(0,E.default)(this,k),this._value=void 0,this._value=f}return(0,d.default)(k,[{key:"get",value:function(){return this._value}},{key:"clear",value:function(){this._value=void 0}}]),k}();s.Handler=v;function m(k){return function(){k.clear()}}},"./packages/@logrocket/utils/src/enhanceFunc.ts":function(h,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=d;var c=e("./packages/@logrocket/utils/src/createUnsubListener.ts"),E=function(){};function d(v,m,k){if(typeof v[m]!="function")return E;try{var f=function(){for(var u,t=arguments.length,g=new Array(t),R=0;R<t;R++)g[R]=arguments[R];var y=w.apply(this,g);return(u=p.get())===null||u===void 0||u.apply(this,g),y},w=v[m],p=new c.Handler(k);return v[m]=f,function(){p.clear(),v[m]===f&&(v[m]=w)}}catch{return E}}},"./packages/@logrocket/utils/src/logError.js":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var e=typeof console<"u"&&console.error&&console.error.bind,c=e?console.error.bind(console):function(){},E=c;s.default=E},"./packages/@logrocket/utils/src/mapValues.ts":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=e;function e(c,E){if(c==null)return{};var d={};return Object.keys(c).forEach(function(v){d[v]=E(c[v])}),d}},"./packages/@logrocket/utils/src/parseRawHeaders.ts":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.parseRawHeaders=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js"));function d(k,f){var w=Object.keys(k);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(k);f&&(p=p.filter(function(a){return Object.getOwnPropertyDescriptor(k,a).enumerable})),w.push.apply(w,p)}return w}function v(k){for(var f=1;f<arguments.length;f++){var w=arguments[f]!=null?arguments[f]:{};f%2?d(Object(w),!0).forEach(function(p){(0,E.default)(k,p,w[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(w)):d(Object(w)).forEach(function(p){Object.defineProperty(k,p,Object.getOwnPropertyDescriptor(w,p))})}return k}var m=function(f){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return f.split(/[\r\n]+/).reduce(function(p,a){var u=a.indexOf(":"),t=a.substring(0,u),g=a.substring(u+1).trim(),R=w.lowerCaseKeys?t.toLowerCase():t;return v(v({},p),{},(0,E.default)({},R,typeof p[t]=="string"?"".concat(p[t],", ").concat(g):g))},{})};s.parseRawHeaders=m},"./packages/@logrocket/utils/src/protectFunc.ts":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=v;var E=c(e("./packages/@logrocket/utils/src/sendTelemetryData.js")),d=c(e("./packages/@logrocket/utils/src/logError.js"));function v(m){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};return function(){var f;try{f=m.apply(void 0,arguments)}catch(p){if(typeof window<"u"&&window._lrdebug)throw p;var w=k(p);(0,d.default)("LogRocket",p),(0,E.default)(p,w)}return f}}},"./packages/@logrocket/utils/src/scrubException.ts":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.scrubException=p;var E=c(e("./node_modules/@babel/runtime/helpers/typeof.js"));function d(a,u){var t=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=v(a))||u&&a&&typeof a.length=="number"){t&&(a=t);var g=0,R=function(){};return{s:R,n:function(){return g>=a.length?{done:!0}:{done:!1,value:a[g++]}},e:function(i){throw i},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,O=!1,b;return{s:function(){t=t.call(a)},n:function(){var i=t.next();return y=i.done,i},e:function(i){O=!0,b=i},f:function(){try{!y&&t.return!=null&&t.return()}finally{if(O)throw b}}}}function v(a,u){if(a){if(typeof a=="string")return m(a,u);var t=Object.prototype.toString.call(a).slice(8,-1);if(t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set")return Array.from(a);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(a,u)}}function m(a,u){(u==null||u>a.length)&&(u=a.length);for(var t=0,g=new Array(u);t<u;t++)g[t]=a[t];return g}function k(a){return/boolean|number|string/.test((0,E.default)(a))}var f=["level","logger"],w=["tags","extra"];function p(a,u){if(u){var t=d(f),g;try{for(t.s();!(g=t.n()).done;){var R=g.value,y=u[R];k(y)&&(a[R]=y.toString())}}catch(A){t.e(A)}finally{t.f()}var O=d(w),b;try{for(O.s();!(b=O.n()).done;){for(var n=b.value,i=u[n]||{},P={},S=0,L=Object.keys(i);S<L.length;S++){var _=L[S],j=i[_];k(j)&&(P[_.toString()]=j.toString())}a[n]=P}}catch(A){O.e(A)}finally{O.f()}}}},"./packages/@logrocket/utils/src/sendTelemetryData.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.sendTelemetry=p,s.default=a;var E=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=c(e("./packages/@logrocket/utils/src/logError.js")),v=c(e("./packages/@logrocket/utils/src/TraceKit.js"));function m(u,t){var g=Object.keys(u);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(u);t&&(R=R.filter(function(y){return Object.getOwnPropertyDescriptor(u,y).enumerable})),g.push.apply(g,R)}return g}function k(u){for(var t=1;t<arguments.length;t++){var g=arguments[t]!=null?arguments[t]:{};t%2?m(Object(g),!0).forEach(function(R){(0,E.default)(u,R,g[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(g)):m(Object(g)).forEach(function(R){Object.defineProperty(u,R,Object.getOwnPropertyDescriptor(g,R))})}return u}var f="c6f6e11c10b0c0daa2223c3bf1ca4f7e01fd93d1";function w(u){try{var t,g,R=u.message,y="https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793",O=JSON.stringify(k({message:R,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":typeof navigator<"u"&&navigator.userAgent},url:typeof location<"u"&&location.href},release:f,environment:typeof window<"u"&&(t=(g=window.__SDKCONFIG__)===null||g===void 0?void 0:g.scriptEnv)!==null&&t!==void 0?t:"prod"},u));if(typeof window<"u"){var b=window._lrXMLHttpRequest||XMLHttpRequest,n=new b;n.open("POST",y),n.send(O)}else typeof fetch<"u"&&fetch(y,{method:"POST",body:O}).catch(function(i){(0,d.default)("Failed to send via fetch",i)})}catch(i){(0,d.default)("Failed to send",i)}}function p(u,t){if(typeof window<"u"&&window._lrdebug)return void(0,d.default)(u);t&&t.extra&&t.extra.appID&&typeof t.extra.appID.indexOf=="function"&&t.extra.appID.indexOf("au2drp/")===0&&Math.random()>=.25||w(k({message:u},t))}function a(u,t){try{var g=u.message,R;try{R=JSON.stringify(t).slice(0,1e3)}catch{try{R="Could not stringify payload: ".concat(Object.prototype.toString.call(t))}catch{}}var y;try{y=v.default.computeStackTrace(u).stack.map(function(O){return{filename:O.url,lineno:O.line,colno:O.column,function:O.func||"?"}})}catch{}w({message:g,extra:{stringPayload:R},exception:{values:[{type:u.type,value:g,stacktrace:{frames:y}}]}})}catch(O){(0,d.default)("Failed to send",O)}}},"./packages/@logrocket/utils/src/startsWith.js":function(h,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=e;function e(c,E){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return c&&E&&c.substring(d,d+E.length)===E}},"./packages/logrocket/src/LogRocket.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.MAX_QUEUE_SIZE=void 0;var E=c(e("./node_modules/@babel/runtime/helpers/classCallCheck.js")),d=c(e("./node_modules/@babel/runtime/helpers/createClass.js")),v=c(e("./node_modules/@babel/runtime/helpers/defineProperty.js")),m=c(e("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),k=c(e("./packages/@logrocket/network/src/index.js")),f=e("./packages/@logrocket/exceptions/src/index.js"),w=c(e("./packages/@logrocket/console/src/index.js")),p=e("./packages/@logrocket/redux/src/index.js"),a=c(e("./packages/@logrocket/utils/src/sendTelemetryData.js"));function u(O,b){var n=Object.keys(O);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(O);b&&(i=i.filter(function(P){return Object.getOwnPropertyDescriptor(O,P).enumerable})),n.push.apply(n,i)}return n}function t(O){for(var b=1;b<arguments.length;b++){var n=arguments[b]!=null?arguments[b]:{};b%2?u(Object(n),!0).forEach(function(i){(0,v.default)(O,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(i){Object.defineProperty(O,i,Object.getOwnPropertyDescriptor(n,i))})}return O}var g=1e3;s.MAX_QUEUE_SIZE=g;var R=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=b.ingestServer,i=(0,m.default)(b,["ingestServer"]);return n?t({serverURL:"".concat(n,"/i"),statsURL:"".concat(n,"/s")},i):i},y=function(){function O(){var b=this;(0,E.default)(this,O),this._buffer=[],["log","info","warn","error","debug"].forEach(function(n){b[n]=function(){for(var i=arguments.length,P=new Array(i),S=0;S<i;S++)P[S]=arguments[S];b.addEvent("lr.core.LogEvent",function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n==="error"&&L.shouldAggregateConsoleErrors&&f.Capture.captureMessage(b,P[0],P,{},!0),{logLevel:n.toUpperCase(),args:P}},{shouldCaptureStackTrace:!0})}}),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,d.default)(O,[{key:"addEvent",value:function(n,i){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=Date.now();this._run(function(L){L.addEvent(n,i,t(t({},P),{},{timeOverride:S}))})}},{key:"onLogger",value:function(n){for(this._logger=n;this._buffer.length>0;){var i=this._buffer.shift();i(this._logger)}}},{key:"_run",value:function(n){if(!this._isDisabled)if(this._logger)n(this._logger);else{if(this._buffer.length>=g){this._isDisabled=!0,this.uninstall();return}this._buffer.push(n.bind(this))}}},{key:"_initInternal",value:function(n,i){if(!this._isInitialized){var P,S=i.shouldAugmentNPS,L=S===void 0?!0:S,_=i.shouldParseXHRBlob,j=_===void 0?!1:_,A=i.shouldDetectExceptions,M=A===void 0?!0:A;M&&this._installed.push((0,f.registerExceptions)(this)),this._installed.push((0,k.default)(this,{shouldAugmentNPS:!!L,shouldParseXHRBlob:!!j,isDisabled:(i==null||(P=i.network)===null||P===void 0?void 0:P.isEnabled)===!1})),this._installed.push((0,w.default)(this)),this._isInitialized=!0,this._run(function(I){I.init(n,R(i))})}}},{key:"init",value:function(n){var i,P,S,L,_,j=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=((i=window)===null||i===void 0||(P=i.Zone)===null||P===void 0?void 0:P.root)||((S=window)===null||S===void 0||(L=S.Zone)===null||L===void 0||(_=L.current)===null||_===void 0?void 0:_._parent);if(M&&typeof M.run=="function")try{M.run(function(){j._initInternal(n,A)});return}catch(I){(0,a.default)(I)}this._initInternal(n,A)}},{key:"start",value:function(){this._run(function(n){n.start()})}},{key:"uninstall",value:function(){this._installed.forEach(function(n){return n()}),this._buffer=[],this._run(function(n){n.uninstall()})}},{key:"identify",value:function(n,i){this._run(function(P){P.identify(n,i)})}},{key:"startNewSession",value:function(){this._run(function(n){n.startNewSession()})}},{key:"track",value:function(n,i){this._run(function(P){P.track(n,i)})}},{key:"getSessionURL",value:function(n){if(typeof n!="function")throw new Error("LogRocket: must pass callback to getSessionURL()");this._run(function(i){i.getSessionURL?i.getSessionURL(n):n(i.recordingURL)})}},{key:"trackScrollEvent",value:function(n){this._logger&&this._logger.trackScrollEvent(n)}},{key:"getVersion",value:function(n){this._run(function(i){n(i.version)})}},{key:"captureMessage",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f.Capture.captureMessage(this,n,[n],i)}},{key:"captureException",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f.Capture.captureException(this,n,i)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,p.createEnhancer)(this,n)}},{key:"reduxMiddleware",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,p.createMiddleware)(this,n)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),O}();s.default=y},"./packages/logrocket/src/makeLogRocket.js":function(h,s,e){"use strict";var c=e("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=m;var E=c(e("./packages/logrocket/src/LogRocket.js")),d="LogRocket on React Native requires the LogRocket React Native specific SDK. See setup guide here https://docs.logrocket.com/reference/react-native.",v=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(w){return function(){return w.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(w){return function(p){return w(p)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}};function m(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return new E.default};if(typeof navigator<"u"&&navigator.product==="ReactNative")throw new Error(d);if(typeof window<"u"){if(window._disableLogRocket)return f();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var p=w();return k(p),p}}return v()}},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(h){function s(e,c){(c==null||c>e.length)&&(c=e.length);for(var E=0,d=new Array(c);E<c;E++)d[E]=e[E];return d}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function E(d){if(Array.isArray(d))return c(d)}h.exports=E,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(h){function s(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function E(v,m){for(var k=0;k<m.length;k++){var f=m[k];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(v,c(f.key),f)}}function d(v,m,k){return m&&E(v.prototype,m),k&&E(v,k),Object.defineProperty(v,"prototype",{writable:!1}),v}h.exports=d,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function E(d,v,m){return v=c(v),v in d?Object.defineProperty(d,v,{value:m,enumerable:!0,configurable:!0,writable:!0}):d[v]=m,d}h.exports=E,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(h){function s(e){return e&&e.__esModule?e:{default:e}}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(h){function s(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(h){function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");function E(d,v){if(d==null)return{};var m=c(d,v),k,f;if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);for(f=0;f<w.length;f++)k=w[f],!(v.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(d,k)&&(m[k]=d[k])}return m}h.exports=E,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":function(h){function s(e,c){if(e==null)return{};var E={},d=Object.keys(e),v,m;for(m=0;m<d.length;m++)v=d[m],!(c.indexOf(v)>=0)&&(E[v]=e[v]);return E}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),E=e("./node_modules/@babel/runtime/helpers/iterableToArray.js"),d=e("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),v=e("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");function m(k){return c(k)||E(k)||d(k)||v()}h.exports=m,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/typeof.js").default;function E(d,v){if(c(d)!=="object"||d===null)return d;var m=d[Symbol.toPrimitive];if(m!==void 0){var k=m.call(d,v||"default");if(c(k)!=="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(d)}h.exports=E,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/typeof.js").default,E=e("./node_modules/@babel/runtime/helpers/toPrimitive.js");function d(v){var m=E(v,"string");return c(m)==="symbol"?m:String(m)}h.exports=d,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(h){function s(e){"@babel/helpers - typeof";return h.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},h.exports.__esModule=!0,h.exports.default=h.exports,s(e)}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(h,s,e){var c=e("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function E(d,v){if(d){if(typeof d=="string")return c(d,v);var m=Object.prototype.toString.call(d).slice(8,-1);if(m==="Object"&&d.constructor&&(m=d.constructor.name),m==="Map"||m==="Set")return Array.from(d);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return c(d,v)}}h.exports=E,h.exports.__esModule=!0,h.exports.default=h.exports}},q={};function ee(h){var s=q[h];if(s!==void 0)return s.exports;var e=q[h]={exports:{}};return B[h](e,e.exports,ee),e.exports}(function(){ee.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})();var re={};return function(){"use strict";var h=re;/*!*****************************************!*\
|
|
11
11
|
!*** ./packages/logrocket/src/setup.js ***!
|
|
12
|
-
\*****************************************/var o=Z("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(m,"__esModule",{value:!0}),m.getDomainsAndEnv=v,m.setupBaseSDKCONFIG=w,m.default=S;var e=o(Z("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),u=o(Z("./packages/logrocket/src/makeLogRocket.js")),k={"cdn.logrocket.com":"https://r.logrocket.io","cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn.ingest-lr.com":"https://r.ingest-lr.com","cdn.lr-intake.com":"https://r.lr-intake.com","cdn.intake-lr.com":"https://r.intake-lr.com","cdn.logr-ingest.com":"https://r.logr-ingest.com","cdn.lrkt-in.com":"https://r.lrkt-in.com","cdn.lgrckt-in.com":"https://r.lgrckt-in.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com","cdn-staging.ingest-lr.com":"https://staging-i.ingest-lr.com","cdn-staging.lr-intake.com":"https://staging-i.lr-intake.com","cdn-staging.intake-lr.com":"https://staging-i.intake-lr.com","cdn-staging.logr-ingest.com":"https://staging-i.logr-ingest.com","cdn-staging.lrkt-in.com":"https://staging-i.lrkt-in.com","cdn-staging.lgrckt-in.com":"https://staging-i.lgrckt-in.com"};function l(d){return d.startsWith("cdn-staging")?"staging":d.startsWith("localhost")?"development":"prod"}function v(d){if(d==="script"||d==="shopify-pixel"){try{var O=document.currentScript,f=O.src.match(/^(https?:\/\/([^\\]+))\/.+$/),n=f&&f[2];if(n&&k[n])return{scriptEnv:l(n),scriptOrigin:f&&f[1],scriptIngest:k[n]}}catch{}return{scriptEnv:"prod",scriptOrigin:"https://cdn.logrocket.io"}}else return{scriptEnv:void 0,scriptOrigin:"https://cdn.lgrckt-in.com",scriptIngest:"https://r.lgrckt-in.com"}}function w(d){typeof window.__SDKCONFIG__>"u"&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(d,"/i"),window.__SDKCONFIG__.statsURL="".concat(d,"/s")}function S(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=d.enterpriseServer,f=d.sdkVersion,n=f===void 0?"10.1.1":f,i=(0,e.default)(d,["enterpriseServer","sdkVersion"]),t=v(n),g=t.scriptEnv,R=t.scriptOrigin,y=t.scriptIngest,E=i.sdkServer||O,b=i.ingestServer||O||y,r=(0,u.default)(function(){var a=document.createElement("script");b&&(w(b),window.__SDKCONFIG__.scriptEnv=g),E?a.src="".concat(E,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?a.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?a.src=window._lrAsyncScript:a.src="".concat(R,"/logger-1.min.js"),a.async=!0,document.head.appendChild(a),a.onload=function(){typeof window._LRLogger=="function"?setTimeout(function(){r.onLogger(new window._LRLogger({sdkVersion:n}))}):r.uninstall()},a.onerror=function(){r.uninstall()}});return r}}(),re=re.default,re}()})},845(X){"use strict";X.exports=ve}},oe={};function Q(X){var B=oe[X];if(B!==void 0)return B.exports;var V=oe[X]={exports:{}};return ce[X].call(V.exports,V,V.exports,Q),V.exports}Q.n=X=>{var B=X&&X.__esModule?()=>X.default:()=>X;return Q.d(B,{a:B}),B},Q.d=(X,B)=>{for(var V in B)Q.o(B,V)&&!Q.o(X,V)&&Object.defineProperty(X,V,{enumerable:!0,get:B[V]})},Q.o=(X,B)=>Object.prototype.hasOwnProperty.call(X,B),Q.r=X=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})};var le={};return(()=>{"use strict";Q.r(le),Q.d(le,{buildLogRocketQueryParams:()=>_,hasUserConsentedToSessionRecording:()=>a,initLogRocket:()=>M});var X=Q(5),B=Q.n(X),V=Q(755);const Z=p=>p!==null&&typeof p=="object"&&!Array.isArray(p),re=(p,h)=>{const c={...p};return Z(p)&&Z(h)&&Object.keys(h).forEach(A=>{const x=h[A],W=c[A];Z(x)&&Z(W)?c[A]=re(W,x):c[A]=x}),c},m=V.A.default||V.A,o=B().default||B();window.emui=window.emui||{},window.emui.isLogRocketInitialized=window.emui.isLogRocketInitialized??!1;let e=window.emui.cdnDomain??"https://cdn.mortgagetech.ice.com";e&&!e.startsWith("https://")&&(e=`https://${e.replace(/^http:\/\//,"")}`);let u=!1,k=null;if(typeof document<"u"&&document.currentScript&&(k=document.currentScript.src),k&&/(cdn\.mortgagetech\.(.*\.)?ice\.com|\/\/localhost[\d:/])/.test(k))try{const p=new URL(k);e=p.hostname==="localhost"?"https://cdn.mortgagetech.d1.ice.com":p.origin}catch{e=null}e&&(u=!0,window._lrAsyncScript=`${e}/logrocket/logger-1.min.js`);const l=window.emui.logRocket||o({...u&&e?{ingestServer:e}:{}});let v=null;const w=()=>window.emui?.logger??console,S=p=>{try{return new URL(p).origin===p}catch{return!1}},d=()=>window!==window.top||window.frameElement!=null||window.opener!=null,O=p=>{const h=new URLSearchParams(p).get("lrParentOrigin");return h&&S(h)?h:null},f=()=>{const p=O(window.location.search);if(p)return p;if(window.frameElement)try{const h=new URL(window.frameElement.src);return O(h.search)}catch{}return null},n=()=>{let p=f();if(!p)try{p=window.parent.location.origin}catch{try{p=new URL(document.referrer).origin}catch{}}return window===window.top&&p===window.location.origin?null:p},i=p=>{const h=window.location.origin;if(p==null)return[h];if(!Array.isArray(p))return w().warn(`LogRocket childDomains override ignored: must be an array of full origins. Falling back to [${h}].`),[h];const{valid:c,invalid:A}=p.reduce((x,W)=>(typeof W=="string"&&S(W)?x.valid.push(W):x.invalid.push(String(W)),x),{valid:[],invalid:[]});if(A.length>0){const x=A.join(", ");w().warn(`LogRocket childDomains entries dropped (must be full origins like "https://example.com"): ${x}`)}return c.includes(h)?c:[...c,h]},t=p=>{if(p!=null){if(typeof p=="string"&&S(p))return p;const h=String(p);w().warn(`LogRocket parentDomain override "${h}" ignored: must be a full origin. Using auto-detected value.`)}return n()},g=/[^.]+\.[^.]+$/,R=p=>{const h=g.exec(window.location.hostname),c=h?`.${h[0]}`:void 0;if(typeof p=="string"&&c&&p.startsWith(".")&&p.endsWith(c))return p;if(p!=null){const A=c??"(none)";w().warn(`LogRocket rootHostname override "${String(p)}" ignored: must start with "." and end with the auto-detected "${A}". Using auto-detected value.`)}return c},y=p=>{const h=i(p.childDomains),c=t(p.parentDomain);return{browser:{urlSanitizer:A=>{let x=A;return x=x.replace(/([?&])code=([^&]*)/g,"$1code=REDACTED"),x}},dom:{hiddenAttributes:["aria-label","aria-labelledby","aria-describedby","aria-details","aria-errormessage","aria-valuetext","aria-placeholder"],inputSanitizer:"lipsum",isEnabled:!1,textSanitizer:!0},mergeIframes:!0,network:{requestSanitizer:A=>{const x=Object.keys(A.headers).reduce((W,K)=>(W[K]=/^authorization$/i.test(K)?"**redacted**":A.headers[K]??"",W),{});return{...A,headers:x,body:null}},responseSanitizer:A=>A.headers["x-secret"]?null:{...A,body:null}},release:"MISSING_ENV_VAR".APP_VERSION,rootHostname:R(p.rootHostname),childDomains:h,...c?{parentDomain:c}:{}}},E=()=>window.OnetrustActiveGroups?.split(",").map(p=>p.trim()).filter(Boolean)??[],b=()=>window.OnetrustActiveGroups?E().includes("C0002"):!0,r=()=>{if(!b())return!0;window.location.hostname;const p=new URLSearchParams(window.location.search);return window.emui?.logRocketConfig?.enable===!1||p.get("lrEnabled")==="false"},a=()=>{if(window.emui?.dangerouslyOverrideSessionRecordingConsent===!0)return w().warn("Using dangerouslyOverrideSessionRecordingConsent - this should only be used for testing purposes"),!0;if(window.OnetrustActiveGroups)return E().includes("C0003");if(d()&&new URLSearchParams(window.location.search).get("analyticsConsent")==="true")return!0;if(window.frameElement)try{if(new URL(window.frameElement.src).searchParams.get("analyticsConsent")==="true")return!0}catch{}return!1},P=p=>{const h=p??window.emui?.logRocketConfig?.appId??null;return d()&&new URLSearchParams(window.location.search).get("lrAppId")||h},_=()=>{const p=new URLSearchParams,h=window.emui?.lrSessionRecordingConsent??a(),c=window.emui?.lrEnabled??!r();return p.append("analyticsConsent",h?"true":"false"),p.append("lrEnabled",c?"true":"false"),p.append("lrAppId",P()??""),p.append("lrParentOrigin",window.location.origin),p.toString()},C=p=>{w().info(`LogRocket initialized ${p?"with":"without"} session recording`),l.getSessionURL(h=>{w().info(`LogRocket session URL: ${h}`)})},j=p=>{const h=window.emui?.logRocketConfig;return{rootHostname:p.rootHostname??h?.rootHostname,childDomains:p.childDomains??h?.childDomains,parentDomain:p.parentDomain??h?.parentDomain}},T=p=>{const{appId:h,isReact:c=!0,rootHostname:A,childDomains:x,parentDomain:W,...K}=p??{};if(v=P(h),!v)throw new Error("LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId");if(r()){window.emui.isLogRocketInitialized=!1,window.emui.lrEnabled=!1,w().info("LogRocket is disabled in this environment");return}window.emui.lrEnabled=!0;const J=y(j({rootHostname:A,childDomains:x,parentDomain:W})),G=a();window.emui.lrSessionRecordingConsent=G,J.dom&&(J.dom.isEnabled=G);const N=re(J,K);l.init(v,N),c&&m(l),C(N.dom?.isEnabled===!0)},I=()=>{const p=document.cookie.match(/(^|;\s*)OptanonAlertBoxClosed=([^;]+)/);if(!p)return!1;try{return!!decodeURIComponent(p[2])}catch{return!1}},M=p=>{if(!window.emui.isLogRocketInitialized){if(!P(p?.appId))throw new Error("LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId");if(window.emui.isLogRocketInitialized=!0,window.hasOneTrust){let h=!1;const c=()=>{if(!h){h=!0;try{T(p)}catch(x){window.emui.isLogRocketInitialized=!1,w().error({message:"LogRocket initialization failed",exception:x})}}},A=x=>{window.addEventListener(x,c,{once:!0}),setTimeout(()=>{h||(w().warn(`OneTrust event '${x}' not received within 10s, initializing LogRocket with current consent state`),c())},1e4)};I()?A("OneTrustGroupsUpdated"):E().includes("C0002")?c():A("OTConsentApplied")}else setTimeout(()=>{try{T(p)}catch(h){window.emui.isLogRocketInitialized=!1,w().error({message:"LogRocket initialization failed",exception:h})}},0)}};window.emui.logRocket=window.emui.logRocket??l})(),le})());
|
|
12
|
+
\*****************************************/var s=ee("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(h,"__esModule",{value:!0}),h.getDomainsAndEnv=v,h.setupBaseSDKCONFIG=m,h.default=k;var e=s(ee("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),c=s(ee("./packages/logrocket/src/makeLogRocket.js")),E={"cdn.logrocket.com":"https://r.logrocket.io","cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn.ingest-lr.com":"https://r.ingest-lr.com","cdn.lr-intake.com":"https://r.lr-intake.com","cdn.intake-lr.com":"https://r.intake-lr.com","cdn.logr-ingest.com":"https://r.logr-ingest.com","cdn.lrkt-in.com":"https://r.lrkt-in.com","cdn.lgrckt-in.com":"https://r.lgrckt-in.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com","cdn-staging.ingest-lr.com":"https://staging-i.ingest-lr.com","cdn-staging.lr-intake.com":"https://staging-i.lr-intake.com","cdn-staging.intake-lr.com":"https://staging-i.intake-lr.com","cdn-staging.logr-ingest.com":"https://staging-i.logr-ingest.com","cdn-staging.lrkt-in.com":"https://staging-i.lrkt-in.com","cdn-staging.lgrckt-in.com":"https://staging-i.lgrckt-in.com"};function d(f){return f.startsWith("cdn-staging")?"staging":f.startsWith("localhost")?"development":"prod"}function v(f){if(f==="script"||f==="shopify-pixel"){try{var w=document.currentScript,p=w.src.match(/^(https?:\/\/([^\\]+))\/.+$/),a=p&&p[2];if(a&&E[a])return{scriptEnv:d(a),scriptOrigin:p&&p[1],scriptIngest:E[a]}}catch{}return{scriptEnv:"prod",scriptOrigin:"https://cdn.logrocket.io"}}else return{scriptEnv:void 0,scriptOrigin:"https://cdn.lgrckt-in.com",scriptIngest:"https://r.lgrckt-in.com"}}function m(f){typeof window.__SDKCONFIG__>"u"&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(f,"/i"),window.__SDKCONFIG__.statsURL="".concat(f,"/s")}function k(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=f.enterpriseServer,p=f.sdkVersion,a=p===void 0?"10.1.1":p,u=(0,e.default)(f,["enterpriseServer","sdkVersion"]),t=v(a),g=t.scriptEnv,R=t.scriptOrigin,y=t.scriptIngest,O=u.sdkServer||w,b=u.ingestServer||w||y,n=(0,c.default)(function(){var i=document.createElement("script");b&&(m(b),window.__SDKCONFIG__.scriptEnv=g),O?i.src="".concat(O,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?i.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?i.src=window._lrAsyncScript:i.src="".concat(R,"/logger-1.min.js"),i.async=!0,document.head.appendChild(i),i.onload=function(){typeof window._LRLogger=="function"?setTimeout(function(){n.onLogger(new window._LRLogger({sdkVersion:a}))}):n.uninstall()},i.onerror=function(){n.uninstall()}});return n}}(),re=re.default,re}()})},845(K){"use strict";K.exports=ve}},oe={};function Q(K){var B=oe[K];if(B!==void 0)return B.exports;var q=oe[K]={exports:{}};return ce[K].call(q.exports,q,q.exports,Q),q.exports}Q.n=K=>{var B=K&&K.__esModule?()=>K.default:()=>K;return Q.d(B,{a:B}),B},Q.d=(K,B)=>{for(var q in B)Q.o(B,q)&&!Q.o(K,q)&&Object.defineProperty(K,q,{enumerable:!0,get:B[q]})},Q.o=(K,B)=>Object.prototype.hasOwnProperty.call(K,B),Q.r=K=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})};var le={};return(()=>{"use strict";Q.r(le),Q.d(le,{buildLogRocketQueryParams:()=>S,hasUserConsentedToSessionRecording:()=>i,initLogRocket:()=>I});var K=Q(5),B=Q.n(K);const q=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),ee=(o,r)=>{const C={...o};return q(o)&&q(r)&&Object.keys(r).forEach(x=>{const H=r[x],z=C[x];q(H)&&q(z)?C[x]=ee(z,H):C[x]=H}),C},re=o=>{const r=o.default??o,C=r.default??r;if(typeof C!="function")throw new TypeError("logrocket-react did not export a setup function");return C},h=async o=>{const r=await Promise.resolve().then(Q.bind(Q,755));re(r)(o)},s=B().default||B();window.emui=window.emui||{},window.emui.isLogRocketInitialized=window.emui.isLogRocketInitialized??!1;let e=window.emui.cdnDomain??"https://cdn.mortgagetech.ice.com";e&&!e.startsWith("https://")&&(e=`https://${e.replace(/^http:\/\//,"")}`);let c=!1,E=null;if(typeof document<"u"&&document.currentScript&&(E=document.currentScript.src),!E)try{E="file:///opt/jenkins/workspace/UIPlatform_pui-logrocket_main/68/lib/logrocket.ts"}catch{}if(E&&/(cdn\.mortgagetech\.(.*\.)?ice\.com|\/\/localhost[\d:/])/.test(E))try{const o=new URL(E);e=o.hostname==="localhost"?"https://cdn.mortgagetech.d1.ice.com":o.origin}catch{e=null}e&&(c=!0,window._lrAsyncScript=`${e}/logrocket/logger-1.min.js`);const d=window.emui.logRocket||s({...c&&e?{ingestServer:e}:{}});let v=null;const m=()=>window.emui?.logger??console,k=o=>{try{return new URL(o).origin===o}catch{return!1}},f=()=>window!==window.top||window.frameElement!=null||window.opener!=null,w=o=>{const r=new URLSearchParams(o).get("lrParentOrigin");return r&&k(r)?r:null},p=()=>{const o=w(window.location.search);if(o)return o;if(window.frameElement)try{const r=new URL(window.frameElement.src);return w(r.search)}catch{}return null},a=()=>{let o=p();if(!o)try{o=window.parent.location.origin}catch{try{o=new URL(document.referrer).origin}catch{}}return window===window.top&&o===window.location.origin?null:o},u=o=>{const r=window.location.origin;if(o==null)return[r];if(!Array.isArray(o))return m().warn(`LogRocket childDomains override ignored: must be an array of full origins. Falling back to [${r}].`),[r];const{valid:C,invalid:x}=o.reduce((H,z)=>(typeof z=="string"&&k(z)?H.valid.push(z):H.invalid.push(String(z)),H),{valid:[],invalid:[]});if(x.length>0){const H=x.join(", ");m().warn(`LogRocket childDomains entries dropped (must be full origins like "https://example.com"): ${H}`)}return C.includes(r)?C:[...C,r]},t=o=>{if(o!=null){if(typeof o=="string"&&k(o))return o;const r=String(o);m().warn(`LogRocket parentDomain override "${r}" ignored: must be a full origin. Using auto-detected value.`)}return a()},g=/[^.]+\.[^.]+$/,R=o=>{const r=g.exec(window.location.hostname),C=r?`.${r[0]}`:void 0;if(typeof o=="string"&&C&&o.startsWith(".")&&o.endsWith(C))return o;if(o!=null){const x=C??"(none)";m().warn(`LogRocket rootHostname override "${String(o)}" ignored: must start with "." and end with the auto-detected "${x}". Using auto-detected value.`)}return C},y=o=>{const r=u(o.childDomains),C=t(o.parentDomain);return{browser:{urlSanitizer:x=>{let H=x;return H=H.replace(/([?&])code=([^&]*)/g,"$1code=REDACTED"),H}},dom:{hiddenAttributes:["aria-label","aria-labelledby","aria-describedby","aria-details","aria-errormessage","aria-valuetext","aria-placeholder"],inputSanitizer:"lipsum",isEnabled:!1,textSanitizer:!0},mergeIframes:!0,network:{requestSanitizer:x=>{const H=Object.keys(x.headers).reduce((z,Z)=>(z[Z]=/^authorization$/i.test(Z)?"**redacted**":x.headers[Z]??"",z),{});return{...x,headers:H,body:null}},responseSanitizer:x=>x.headers["x-secret"]?null:{...x,body:null}},release:"MISSING_ENV_VAR".APP_VERSION,rootHostname:R(o.rootHostname),childDomains:r,...C?{parentDomain:C}:{}}},O=()=>window.OnetrustActiveGroups?.split(",").map(o=>o.trim()).filter(Boolean)??[],b=()=>window.OnetrustActiveGroups?O().includes("C0002"):!0,n=()=>{if(!b())return!0;window.location.hostname;const o=new URLSearchParams(window.location.search);return window.emui?.logRocketConfig?.enable===!1||o.get("lrEnabled")==="false"},i=()=>{if(window.emui?.dangerouslyOverrideSessionRecordingConsent===!0)return m().warn("Using dangerouslyOverrideSessionRecordingConsent - this should only be used for testing purposes"),!0;if(window.OnetrustActiveGroups)return O().includes("C0003");if(f()&&new URLSearchParams(window.location.search).get("analyticsConsent")==="true")return!0;if(window.frameElement)try{if(new URL(window.frameElement.src).searchParams.get("analyticsConsent")==="true")return!0}catch{}return!1},P=o=>{const r=o??window.emui?.logRocketConfig?.appId??null;return f()&&new URLSearchParams(window.location.search).get("lrAppId")||r},S=()=>{const o=new URLSearchParams,r=window.emui?.lrSessionRecordingConsent??i(),C=window.emui?.lrEnabled??!n();return o.append("analyticsConsent",r?"true":"false"),o.append("lrEnabled",C?"true":"false"),o.append("lrAppId",P()??""),o.append("lrParentOrigin",window.location.origin),o.toString()},L=o=>{m().info(`LogRocket initialized ${o?"with":"without"} session recording`),d.getSessionURL(r=>{m().info(`LogRocket session URL: ${r}`)})},_=o=>{const r=window.emui?.logRocketConfig;return{rootHostname:o.rootHostname??r?.rootHostname,childDomains:o.childDomains??r?.childDomains,parentDomain:o.parentDomain??r?.parentDomain}},j=(o,r)=>{if(!o){L(r);return}h(d).catch(C=>{const x=C instanceof Error?C.message:String(C);m().warn(`Failed to load logrocket-react plugin; React integration disabled. ${x}`)}).finally(()=>{L(r)})},A=o=>{const{appId:r,isReact:C=!0,rootHostname:x,childDomains:H,parentDomain:z,...Z}=o??{};if(v=P(r),!v)throw new Error("LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId");if(n()){window.emui.isLogRocketInitialized=!1,window.emui.lrEnabled=!1,m().info("LogRocket is disabled in this environment");return}window.emui.lrEnabled=!0;const G=y(_({rootHostname:x,childDomains:H,parentDomain:z})),W=i();window.emui.lrSessionRecordingConsent=W,G.dom&&(G.dom.isEnabled=W);const N=ee(G,Z);d.init(v,N),j(C,N.dom?.isEnabled===!0)},M=()=>{const o=document.cookie.match(/(^|;\s*)OptanonAlertBoxClosed=([^;]+)/);if(!o)return!1;try{return!!decodeURIComponent(o[2])}catch{return!1}},I=o=>{if(!window.emui.isLogRocketInitialized){if(!P(o?.appId))throw new Error("LogRocket appId is required to initialize LogRocket. Either pass it as parameter or set window.emui.logRocketConfig.appId");if(window.emui.isLogRocketInitialized=!0,window.hasOneTrust){let r=!1;const C=()=>{if(!r){r=!0;try{A(o)}catch(H){window.emui.isLogRocketInitialized=!1,m().error({message:"LogRocket initialization failed",exception:H})}}},x=H=>{window.addEventListener(H,C,{once:!0}),setTimeout(()=>{r||(m().warn(`OneTrust event '${H}' not received within 10s, initializing LogRocket with current consent state`),C())},1e4)};M()?x("OneTrustGroupsUpdated"):O().includes("C0002")?C():x("OTConsentApplied")}else setTimeout(()=>{try{A(o)}catch(r){window.emui.isLogRocketInitialized=!1,m().error({message:"LogRocket initialization failed",exception:r})}},0)}};window.emui.logRocket=window.emui.logRocket??d})(),le})());
|
|
13
13
|
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
package/dist/umd/index.js.br
CHANGED
|
Binary file
|
package/dist/umd/index.js.gz
CHANGED
|
Binary file
|