import{p as ao,g as uo,f as co,s as lo}from"./dom-utils-d77254b8.js";/** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */const Jr=new Event("input"),fo='';function tt(t,e){t.type==="submit"&&(t.disabled=e)}function zl(t){const e=X(t);if(e!=null){const n=xn(e);if(n==null)return;const i=Array.from(e.elements).filter(o=>(o.tagName==="INPUT"||o.tagName==="SELECT")&&o.required===!0);if(i.length===0){tt(n,!1);return}e.addEventListener("input",()=>{const o=s=>!!s.value&&s.checkValidity();i.every(o)?tt(n,!1):tt(n,!0)}),e.dispatchEvent(Jr)}}function Wl(t,e,n="danger"){const r=X(t);if(r==null||e==="")return;const i=r.querySelector(".alert-container");if(i==null)return;const o=`

${e}

`;Xr(r),i.innerHTML=o}function Xr(t){const e=X(t);if(e==null)return;const n=e.querySelector(".alert-container");n!=null&&(n.innerHTML="")}function Kl(t){const e=X(t);e!=null&&(Xr(e),e.reset(),e.dispatchEvent(Jr))}function xn(t){const e=X(t);return e==null?null:Array.from(e.elements).filter(r=>r.type==="submit")[0]}function po(t){const e=X(t);e!=null&&Array.from(e.elements).forEach(n=>{n.readOnly=!0,n.classList.add("disabled")})}function ho(t){const e=X(t);e!=null&&Array.from(e.elements).forEach(n=>{n.readOnly=!1,n.classList.remove("disabled")})}function X(t){if(typeof t=="string")return document.forms.namedItem(t);if(typeof t=="object"&&t.nodeName==="FORM")return t}function Vl(t){const e=X(t);e!=null&&e.addEventListener("submit",()=>{_o(e)})}function _o(t){const e=X(t);if(e==null)return;po(e);const n=xn(e);n!=null&&(tt(n,!0),ao(n,fo))}function Jl(t){var r;const e=X(t);if(e==null)return;ho(e);const n=xn(e);n!=null&&(tt(n,!1),(r=n.querySelector(".spinner"))==null||r.remove())}function Xl(t,e){const n=X(t);n!=null&&(n.action=e)}function Ql(t,e){const n=uo(t);n!=null&&(e(n.checked),n.addEventListener("input",r=>{e(r.target.checked)}))}const vo="modulepreload",go=function(t){return"/"+t},dr={},z=function(e,n,r){if(!n||n.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=go(o),o in dr)return;dr[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const _=i[p];if(_.href===o&&(!s||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":vo,s||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),s)return new Promise((p,_)=>{c.addEventListener("load",p),c.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var an=function(t,e){return an=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},an(t,e)};function se(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");an(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var E=function(){return E=Object.assign||function(e){for(var n,r=1,i=arguments.length;r0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]n.maxAttempts||n.includes(s)?!1:(n.queue.push(s),!0)});return this.queue=this.queue.sort(function(s,a){return n.getAttempts(s)-n.getAttempts(a)}),o},e.prototype.pushWithBackoff=function(n){var r=this;if(this.getAttempts(n)===0)return this.push(n)[0];var i=this.updateAttempts(n);if(i>this.maxAttempts||this.includes(n))return!1;var o=Do({attempt:i-1});return setTimeout(function(){r.queue.push(n),r.future=r.future.filter(function(s){return s.id!==n.id}),r.emit(ei)},o),this.future.push(n),!0},e.prototype.getAttempts=function(n){var r;return(r=this.seen[n.id])!==null&&r!==void 0?r:0},e.prototype.updateAttempts=function(n){return this.seen[n.id]=this.getAttempts(n)+1,this.getAttempts(n)},e.prototype.includes=function(n){return this.queue.includes(n)||this.future.includes(n)||!!this.queue.find(function(r){return r.id===n.id})||!!this.future.find(function(r){return r.id===n.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(Nn),ge=256,Ot=[],_t;for(;ge--;)Ot[ge]=(ge+256).toString(16).substring(1);function Un(){var t=0,e,n="";if(!_t||ge+16>256){for(_t=Array(t=256);t--;)_t[t]=256*Math.random()|0;t=ge=0}for(;t<16;t++)e=_t[ge+t],t==6?n+=Ot[e&15|64]:t==8?n+=Ot[e&63|128]:n+=Ot[e],t&1&&t>1&&t<11&&(n+="-");return ge++,n}var Ro=function(){function t(){this._logs=[]}return t.prototype.log=function(e,n,r){var i=new Date;this._logs.push({level:e,message:n,time:i,extras:r})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(n,r){var i,o,s,a=pe(pe({},r),{json:JSON.stringify(r.extras,null," "),extras:r.extras});delete a.time;var u=(s=(o=r.time)===null||o===void 0?void 0:o.toISOString())!==null&&s!==void 0?s:"";return n[u]&&(u="".concat(u,"-").concat(Math.random())),pe(pe({},n),(i={},i[u]=a,i))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(n){var r=n.level,i=n.message,o=n.extras;r==="info"||r==="debug"?console.log(i,o??""):console[r](i,o??"")});this._logs=[]},t}(),Ao=function(t){var e={gauge:"g",counter:"c"};return e[t]},ti=function(){function t(){this.metrics=[]}return t.prototype.increment=function(e,n,r){n===void 0&&(n=1),this.metrics.push({metric:e,value:n,tags:r??[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(e,n,r){this.metrics.push({metric:e,value:n,tags:r??[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var e=this.metrics.map(function(n){return pe(pe({},n),{tags:n.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:Ao(e.type),e:e.timestamp}})},t}(),xo=function(t){Ft(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.gauge=function(){},e.prototype.increment=function(){},e.prototype.flush=function(){},e.prototype.serialize=function(){return[]},e}(ti),Le=function(){function t(e){var n,r,i;this.retry=(n=e.retry)!==null&&n!==void 0?n:!0,this.type=(r=e.type)!==null&&r!==void 0?r:"plugin Error",this.reason=(i=e.reason)!==null&&i!==void 0?i:""}return t}(),At=function(){function t(e,n,r,i){n===void 0&&(n=Un()),r===void 0&&(r=new xo),i===void 0&&(i=new Ro),this.attempts=0,this.event=e,this._id=n,this.logger=i,this.stats=r}return t.system=function(){},t.prototype.isSame=function(e){return e.id===this.id},t.prototype.cancel=function(e){throw e||new Le({reason:"Context Cancel"})},t.prototype.log=function(e,n,r){this.logger.log(e,n,r)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(e,n){var r;if(e.split(".")[0]==="integrations"){var i=e.split(".")[1];if(((r=this.event.integrations)===null||r===void 0?void 0:r[i])===!1)return this.event}return Rt(this.event,e,n),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(e){this._failedDelivery=e},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}();function No(t,e){var n={};return t.forEach(function(r){var i,o=void 0;if(typeof e=="string"){var s=r[e];o=typeof s!="string"?JSON.stringify(s):s}else e instanceof Function&&(o=e(r));o!==void 0&&(n[o]=pr(pr([],(i=n[o])!==null&&i!==void 0?i:[],!0),[r],!1))}),n}var ko=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},Po=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return ko(i)&&(++n===1&&(t=new Promise(function(o){return e=o})),i.finally(function(){return--n===0&&e()})),i}}};function Uo(t){return Z(this,void 0,void 0,function(){var e;return ee(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t()];case 1:return[2,n.sent()];case 2:return e=n.sent(),[2,Promise.reject(e)];case 3:return[2]}})})}function nt(t,e){t.log("debug","plugin",{plugin:e.name});var n=new Date().getTime(),r=e[t.event.type];if(r===void 0)return Promise.resolve(t);var i=Uo(function(){return r.apply(e,[t])}).then(function(o){var s=new Date().getTime()-n;return o.stats.gauge("plugin_time",s,["plugin:".concat(e.name)]),o}).catch(function(o){if(o instanceof Le&&o.type==="middleware_cancellation")throw o;return o instanceof Le?(t.log("warn",o.type,{plugin:e.name,error:o}),o):(t.log("error","plugin Error",{plugin:e.name,error:o}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)]),o)});return i}function Fo(t,e){return nt(t,e).then(function(n){if(n instanceof At)return n;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(n)})}function Mo(){return typeof window<"u"}function jo(){return Mo()?window.navigator.onLine:!0}function Bo(){return!jo()}var Co=function(t){Ft(e,t);function e(n){var r=t.call(this)||this;return r.criticalTasks=Po(),r.plugins=[],r.failedInitializations=[],r.flushing=!1,r.queue=n,r.queue.on(ei,function(){r.scheduleFlush(0)}),r}return e.prototype.register=function(n,r,i){return Z(this,void 0,void 0,function(){var o=this;return ee(this,function(s){switch(s.label){case 0:return[4,Promise.resolve(r.load(n,i)).then(function(){o.plugins.push(r)}).catch(function(a){if(r.type==="destination"){o.failedInitializations.push(r.name),console.warn(r.name,a),n.log("warn","Failed to load destination",{plugin:r.name,error:a});return}throw a})];case 1:return s.sent(),[2]}})})},e.prototype.deregister=function(n,r,i){return Z(this,void 0,void 0,function(){var o;return ee(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),r.unload?[4,Promise.resolve(r.unload(n,i))]:[3,2];case 1:s.sent(),s.label=2;case 2:return this.plugins=this.plugins.filter(function(a){return a.name!==r.name}),[3,4];case 3:return o=s.sent(),n.log("warn","Failed to unload destination",{plugin:r.name,error:o}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(n){return Z(this,void 0,void 0,function(){var r;return ee(this,function(i){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.push(n),r=this.subscribeToDelivery(n),this.scheduleFlush(0),[2,r]})})},e.prototype.subscribeToDelivery=function(n){return Z(this,void 0,void 0,function(){var r=this;return ee(this,function(i){return[2,new Promise(function(o){var s=function(a,u){a.isSame(n)&&(r.off("flush",s),o(a))};r.on("flush",s)})]})})},e.prototype.dispatchSingle=function(n){return Z(this,void 0,void 0,function(){var r=this;return ee(this,function(i){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.updateAttempts(n),n.attempts=1,[2,this.deliver(n).catch(function(o){var s=r.enqueuRetry(o,n);return s?r.subscribeToDelivery(n):(n.setFailedDelivery({reason:o}),n)})]})})},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype.scheduleFlush=function(n){var r=this;n===void 0&&(n=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){r.flush().then(function(){setTimeout(function(){r.flushing=!1,r.queue.length&&r.scheduleFlush(0)},0)})},n))},e.prototype.deliver=function(n){return Z(this,void 0,void 0,function(){var r,i,o,s;return ee(this,function(a){switch(a.label){case 0:return[4,this.criticalTasks.done()];case 1:a.sent(),r=Date.now(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.flushOne(n)];case 3:return n=a.sent(),i=Date.now()-r,this.emit("delivery_success",n),n.stats.gauge("delivered",i),n.log("debug","Delivered",n.event),[2,n];case 4:throw o=a.sent(),s=o,n.log("error","Failed to deliver",s),this.emit("delivery_failure",n,s),n.stats.increment("delivery_failed"),o;case 5:return[2]}})})},e.prototype.enqueuRetry=function(n,r){var i=!(n instanceof Le)||n.retry;return i?this.queue.pushWithBackoff(r):!1},e.prototype.flush=function(){return Z(this,void 0,void 0,function(){var n,r,i;return ee(this,function(o){switch(o.label){case 0:if(this.queue.length===0||Bo())return[2,[]];if(n=this.queue.pop(),!n)return[2,[]];n.attempts=this.queue.getAttempts(n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(n)];case 2:return n=o.sent(),this.emit("flush",n,!0),[3,4];case 3:return r=o.sent(),i=this.enqueuRetry(r,n),i||(n.setFailedDelivery({reason:r}),this.emit("flush",n,!1)),[2,[]];case 4:return[2,[n]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(n){var r=this.plugins.filter(function(y){var b,S,w;if(y.type!=="destination"&&y.name!=="Segment.io")return!0;var g=void 0;return(b=y.alternativeNames)===null||b===void 0||b.forEach(function(v){n[v]!==void 0&&(g=n[v])}),(w=(S=n[y.name])!==null&&S!==void 0?S:g)!==null&&w!==void 0?w:(y.name==="Segment.io"?!0:n.All)!==!1}),i=No(r,"type"),o=i.before,s=o===void 0?[]:o,a=i.enrichment,u=a===void 0?[]:a,c=i.destination,p=c===void 0?[]:c,_=i.after,m=_===void 0?[]:_;return{before:s,enrichment:u,destinations:p,after:m}},e.prototype.flushOne=function(n){var r,i;return Z(this,void 0,void 0,function(){var o,s,a,u,c,p,b,_,m,y,b,S,w,g,v;return ee(this,function(f){switch(f.label){case 0:if(!this.isReady())throw new Error("Not ready");n.attempts>1&&this.emit("delivery_retry",n),o=this.availableExtensions((r=n.event.integrations)!==null&&r!==void 0?r:{}),s=o.before,a=o.enrichment,u=0,c=s,f.label=1;case 1:return u"u")){s=vt({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in s)s[u]&&(a+="; "+u,s[u]!==!0&&(a+="="+s[u].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a0||n.length<=1)return i;for(var o=n.length-2;o>=0;--o)i.push(n.slice(o).join("."));return i}function Vo(t){try{return new URL(t)}catch{return}}function ni(t){var e=Vo(t);if(e)for(var n=Ko(e),r=0;r4){var a=i.substr(4);a==="campaign"&&(a="name"),e[a]=Wo(s)}return e},{})}function rs(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1)),t=t.replace(/\?/g,"&");for(var n=t.split("&"),r=0,i=n;r"u"&&typeof m<"u"&&(p.locale=m),!p.library){var y=ii();y==="web"?p.library={name:"analytics.js",version:"next-".concat($e)}:p.library={name:"analytics.js",version:"npm:next-".concat($e)}}_&&!p.campaign&&(p.campaign=ns(_)),is(_,p,(a=t.options.disableClientPersistence)!==null&&a!==void 0?a:!1),e.userId=e.userId||c.id(),e.anonymousId=e.anonymousId||c.anonymousId(),e.sentAt=new Date;var b=t.queue.failedInitializations||[];b.length>0&&(e._metadata={failedInitializations:b});var S=[],w=[];for(var g in r){var v=r[g];g==="Segment.io"&&S.push(g),v.bundlingStatus==="bundled"&&S.push(g),v.bundlingStatus==="unbundled"&&w.push(g)}for(var f=0,l=(n==null?void 0:n.unbundledIntegrations)||[];f0){var a=!1,u=function(){a||(a=!0,n.flush().catch(Xt),a=!1,setTimeout(u,n.flushTimer))};u()}}return t.prototype.increment=function(e,n){if(e.includes("analytics_js.")&&n.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var r=ss(e,n,ii());this.queue.push(r),e.includes("error")&&this.flush().catch(Xt)}},t.prototype.flush=function(){return I(this,void 0,void 0,function(){var e=this;return O(this,function(n){switch(n.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(r){Xt(r),e.sampleRate=0})];case 1:return n.sent(),[2]}})})},t.prototype.send=function(){return I(this,void 0,void 0,function(){var e,n,r;return O(this,function(i){return e={series:this.queue},this.queue=[],n={"Content-Type":"text/plain"},r="https://".concat(this.host,"/m"),[2,Mt(r,{headers:n,body:JSON.stringify(e),method:"POST"})]})})},t}(),gt,si=function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.initRemoteMetrics=function(n){gt=new as(n)},e.prototype.increment=function(n,r,i){t.prototype.increment.call(this,n,r,i),gt==null||gt.increment(n,i??[])},e}(ti),Pe=function(t){se(e,t);function e(n,r){return t.call(this,n,r,new si)||this}return e.system=function(){return new this({type:"track",event:"system"})},e}(At),U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function us(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tf(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var ai={exports:{}};(function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(g,v){var f=g[0],l=g[1],h=g[2],d=g[3];f+=(l&h|~l&d)+v[0]-680876936|0,f=(f<<7|f>>>25)+l|0,d+=(f&l|~f&h)+v[1]-389564586|0,d=(d<<12|d>>>20)+f|0,h+=(d&f|~d&l)+v[2]+606105819|0,h=(h<<17|h>>>15)+d|0,l+=(h&d|~h&f)+v[3]-1044525330|0,l=(l<<22|l>>>10)+h|0,f+=(l&h|~l&d)+v[4]-176418897|0,f=(f<<7|f>>>25)+l|0,d+=(f&l|~f&h)+v[5]+1200080426|0,d=(d<<12|d>>>20)+f|0,h+=(d&f|~d&l)+v[6]-1473231341|0,h=(h<<17|h>>>15)+d|0,l+=(h&d|~h&f)+v[7]-45705983|0,l=(l<<22|l>>>10)+h|0,f+=(l&h|~l&d)+v[8]+1770035416|0,f=(f<<7|f>>>25)+l|0,d+=(f&l|~f&h)+v[9]-1958414417|0,d=(d<<12|d>>>20)+f|0,h+=(d&f|~d&l)+v[10]-42063|0,h=(h<<17|h>>>15)+d|0,l+=(h&d|~h&f)+v[11]-1990404162|0,l=(l<<22|l>>>10)+h|0,f+=(l&h|~l&d)+v[12]+1804603682|0,f=(f<<7|f>>>25)+l|0,d+=(f&l|~f&h)+v[13]-40341101|0,d=(d<<12|d>>>20)+f|0,h+=(d&f|~d&l)+v[14]-1502002290|0,h=(h<<17|h>>>15)+d|0,l+=(h&d|~h&f)+v[15]+1236535329|0,l=(l<<22|l>>>10)+h|0,f+=(l&d|h&~d)+v[1]-165796510|0,f=(f<<5|f>>>27)+l|0,d+=(f&h|l&~h)+v[6]-1069501632|0,d=(d<<9|d>>>23)+f|0,h+=(d&l|f&~l)+v[11]+643717713|0,h=(h<<14|h>>>18)+d|0,l+=(h&f|d&~f)+v[0]-373897302|0,l=(l<<20|l>>>12)+h|0,f+=(l&d|h&~d)+v[5]-701558691|0,f=(f<<5|f>>>27)+l|0,d+=(f&h|l&~h)+v[10]+38016083|0,d=(d<<9|d>>>23)+f|0,h+=(d&l|f&~l)+v[15]-660478335|0,h=(h<<14|h>>>18)+d|0,l+=(h&f|d&~f)+v[4]-405537848|0,l=(l<<20|l>>>12)+h|0,f+=(l&d|h&~d)+v[9]+568446438|0,f=(f<<5|f>>>27)+l|0,d+=(f&h|l&~h)+v[14]-1019803690|0,d=(d<<9|d>>>23)+f|0,h+=(d&l|f&~l)+v[3]-187363961|0,h=(h<<14|h>>>18)+d|0,l+=(h&f|d&~f)+v[8]+1163531501|0,l=(l<<20|l>>>12)+h|0,f+=(l&d|h&~d)+v[13]-1444681467|0,f=(f<<5|f>>>27)+l|0,d+=(f&h|l&~h)+v[2]-51403784|0,d=(d<<9|d>>>23)+f|0,h+=(d&l|f&~l)+v[7]+1735328473|0,h=(h<<14|h>>>18)+d|0,l+=(h&f|d&~f)+v[12]-1926607734|0,l=(l<<20|l>>>12)+h|0,f+=(l^h^d)+v[5]-378558|0,f=(f<<4|f>>>28)+l|0,d+=(f^l^h)+v[8]-2022574463|0,d=(d<<11|d>>>21)+f|0,h+=(d^f^l)+v[11]+1839030562|0,h=(h<<16|h>>>16)+d|0,l+=(h^d^f)+v[14]-35309556|0,l=(l<<23|l>>>9)+h|0,f+=(l^h^d)+v[1]-1530992060|0,f=(f<<4|f>>>28)+l|0,d+=(f^l^h)+v[4]+1272893353|0,d=(d<<11|d>>>21)+f|0,h+=(d^f^l)+v[7]-155497632|0,h=(h<<16|h>>>16)+d|0,l+=(h^d^f)+v[10]-1094730640|0,l=(l<<23|l>>>9)+h|0,f+=(l^h^d)+v[13]+681279174|0,f=(f<<4|f>>>28)+l|0,d+=(f^l^h)+v[0]-358537222|0,d=(d<<11|d>>>21)+f|0,h+=(d^f^l)+v[3]-722521979|0,h=(h<<16|h>>>16)+d|0,l+=(h^d^f)+v[6]+76029189|0,l=(l<<23|l>>>9)+h|0,f+=(l^h^d)+v[9]-640364487|0,f=(f<<4|f>>>28)+l|0,d+=(f^l^h)+v[12]-421815835|0,d=(d<<11|d>>>21)+f|0,h+=(d^f^l)+v[15]+530742520|0,h=(h<<16|h>>>16)+d|0,l+=(h^d^f)+v[2]-995338651|0,l=(l<<23|l>>>9)+h|0,f+=(h^(l|~d))+v[0]-198630844|0,f=(f<<6|f>>>26)+l|0,d+=(l^(f|~h))+v[7]+1126891415|0,d=(d<<10|d>>>22)+f|0,h+=(f^(d|~l))+v[14]-1416354905|0,h=(h<<15|h>>>17)+d|0,l+=(d^(h|~f))+v[5]-57434055|0,l=(l<<21|l>>>11)+h|0,f+=(h^(l|~d))+v[12]+1700485571|0,f=(f<<6|f>>>26)+l|0,d+=(l^(f|~h))+v[3]-1894986606|0,d=(d<<10|d>>>22)+f|0,h+=(f^(d|~l))+v[10]-1051523|0,h=(h<<15|h>>>17)+d|0,l+=(d^(h|~f))+v[1]-2054922799|0,l=(l<<21|l>>>11)+h|0,f+=(h^(l|~d))+v[8]+1873313359|0,f=(f<<6|f>>>26)+l|0,d+=(l^(f|~h))+v[15]-30611744|0,d=(d<<10|d>>>22)+f|0,h+=(f^(d|~l))+v[6]-1560198380|0,h=(h<<15|h>>>17)+d|0,l+=(d^(h|~f))+v[13]+1309151649|0,l=(l<<21|l>>>11)+h|0,f+=(h^(l|~d))+v[4]-145523070|0,f=(f<<6|f>>>26)+l|0,d+=(l^(f|~h))+v[11]-1120210379|0,d=(d<<10|d>>>22)+f|0,h+=(f^(d|~l))+v[2]+718787259|0,h=(h<<15|h>>>17)+d|0,l+=(d^(h|~f))+v[9]-343485551|0,l=(l<<21|l>>>11)+h|0,g[0]=f+g[0]|0,g[1]=l+g[1]|0,g[2]=h+g[2]|0,g[3]=d+g[3]|0}function o(g){var v=[],f;for(f=0;f<64;f+=4)v[f>>2]=g.charCodeAt(f)+(g.charCodeAt(f+1)<<8)+(g.charCodeAt(f+2)<<16)+(g.charCodeAt(f+3)<<24);return v}function s(g){var v=[],f;for(f=0;f<64;f+=4)v[f>>2]=g[f]+(g[f+1]<<8)+(g[f+2]<<16)+(g[f+3]<<24);return v}function a(g){var v=g.length,f=[1732584193,-271733879,-1732584194,271733878],l,h,d,R,F,A;for(l=64;l<=v;l+=64)i(f,o(g.substring(l-64,l)));for(g=g.substring(l-64),h=g.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=0;l>2]|=g.charCodeAt(l)<<(l%4<<3);if(d[l>>2]|=128<<(l%4<<3),l>55)for(i(f,d),l=0;l<16;l+=1)d[l]=0;return R=v*8,R=R.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(R[2],16),A=parseInt(R[1],16)||0,d[14]=F,d[15]=A,i(f,d),f}function u(g){var v=g.length,f=[1732584193,-271733879,-1732584194,271733878],l,h,d,R,F,A;for(l=64;l<=v;l+=64)i(f,s(g.subarray(l-64,l)));for(g=l-64>2]|=g[l]<<(l%4<<3);if(d[l>>2]|=128<<(l%4<<3),l>55)for(i(f,d),l=0;l<16;l+=1)d[l]=0;return R=v*8,R=R.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(R[2],16),A=parseInt(R[1],16)||0,d[14]=F,d[15]=A,i(f,d),f}function c(g){var v="",f;for(f=0;f<4;f+=1)v+=r[g>>f*8+4&15]+r[g>>f*8&15];return v}function p(g){var v;for(v=0;vd?new ArrayBuffer(0):(R=d-h,F=new ArrayBuffer(R),A=new Uint8Array(F),L=new Uint8Array(this,h,R),A.set(L),F)}}();function _(g){return/[\u0080-\uFFFF]/.test(g)&&(g=unescape(encodeURIComponent(g))),g}function m(g,v){var f=g.length,l=new ArrayBuffer(f),h=new Uint8Array(l),d;for(d=0;d>2]|=v.charCodeAt(l)<<(l%4<<3);return this._finish(h,f),d=p(this._hash),g&&(d=S(d)),this.reset(),d},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},w.prototype.setState=function(g){return this._buff=g.buff,this._length=g.length,this._hash=g.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(g,v){var f=v,l,h,d;if(g[f>>2]|=128<<(f%4<<3),f>55)for(i(this._hash,g),f=0;f<16;f+=1)g[f]=0;l=this._length*8,l=l.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(l[2],16),d=parseInt(l[1],16)||0,g[14]=h,g[15]=d,i(this._hash,g)},w.hash=function(g,v){return w.hashBinary(_(g),v)},w.hashBinary=function(g,v){var f=a(g),l=p(f);return v?S(l):l},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(g){var v=b(this._buff.buffer,g,!0),f=v.length,l;for(this._length+=g.byteLength,l=64;l<=f;l+=64)i(this._hash,s(v.subarray(l-64,l)));return this._buff=l-64>2]|=v[h]<<(h%4<<3);return this._finish(l,f),d=p(this._hash),g&&(d=S(d)),this.reset(),d},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var g=w.prototype.getState.call(this);return g.buff=y(g.buff),g},w.ArrayBuffer.prototype.setState=function(g){return g.buff=m(g.buff,!0),w.prototype.setState.call(this,g)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(g,v){var f=u(new Uint8Array(g)),l=p(f);return v?S(l):l},w})})(ai);var cs=ai.exports;const ls=us(cs);var fs=function(){function t(e){this.user=e}return t.prototype.track=function(e,n,r,i){return this.normalize(E(E({},this.baseEvent()),{event:e,type:"track",properties:n,options:E({},r),integrations:E({},i)}))},t.prototype.page=function(e,n,r,i,o){var s,a={type:"page",properties:E({},r),options:E({},i),integrations:E({},o)};return e!==null&&(a.category=e,a.properties=(s=a.properties)!==null&&s!==void 0?s:{},a.properties.category=e),n!==null&&(a.name=n),this.normalize(E(E({},this.baseEvent()),a))},t.prototype.screen=function(e,n,r,i,o){var s={type:"screen",properties:E({},r),options:E({},i),integrations:E({},o)};return e!==null&&(s.category=e),n!==null&&(s.name=n),this.normalize(E(E({},this.baseEvent()),s))},t.prototype.identify=function(e,n,r,i){return this.normalize(E(E({},this.baseEvent()),{type:"identify",userId:e,traits:n,options:E({},r),integrations:E({},i)}))},t.prototype.group=function(e,n,r,i){return this.normalize(E(E({},this.baseEvent()),{type:"group",traits:n,options:E({},r),integrations:E({},i),groupId:e}))},t.prototype.alias=function(e,n,r,i){var o={userId:e,type:"alias",options:E({},r),integrations:E({},i)};return n!==null&&(o.previousId=n),e===void 0?this.normalize(E(E({},o),this.baseEvent())):this.normalize(E(E({},this.baseEvent()),o))},t.prototype.baseEvent=function(){var e={integrations:{},options:{}},n=this.user;return n.id()&&(e.userId=n.id()),n.anonymousId()&&(e.anonymousId=n.anonymousId()),e},t.prototype.context=function(e){var n,r,i,o=["integrations","anonymousId","timestamp","userId"],s=(n=e.options)!==null&&n!==void 0?n:{};delete s.integrations;var a=Object.keys(s),u=(i=(r=e.options)===null||r===void 0?void 0:r.context)!==null&&i!==void 0?i:{},c={};return a.forEach(function(p){p!=="context"&&(o.includes(p)?Rt(c,p,s[p]):Rt(u,p,s[p]))}),[u,c]},t.prototype.normalize=function(e){var n,r,i;!((n=e.options)===null||n===void 0)&&n.anonymousId&&this.user.anonymousId(e.options.anonymousId);var o=Object.keys((r=e.integrations)!==null&&r!==void 0?r:{}).reduce(function(b,S){var w,g;return E(E({},b),(w={},w[S]=!!(!((g=e.integrations)===null||g===void 0)&&g[S]),w))},{}),s=E(E({},o),(i=e.options)===null||i===void 0?void 0:i.integrations),a=this.context(e),u=a[0],c=a[1];e.options;var p=yo(e,["options"]),_=E(E(E({timestamp:new Date},p),{context:u,integrations:s}),c),m="ajs-next-"+ls.hash(JSON.stringify(_)+Un()),y=E(E({},_),{messageId:m});return y},t}(),ne={getItem:function(){},setItem:function(){},removeItem:function(){}};try{ne=Fn()&&window.localStorage?window.localStorage:ne}catch(t){console.warn("Unable to access localStorage",t)}function ui(t){var e=ne.getItem(t);return(e?JSON.parse(e):[]).map(function(n){return new Pe(n.event,n.id)})}function ds(t,e){var n=ui(t),r=$($([],e,!0),n,!0),i=r.reduce(function(o,s){var a;return E(E({},o),(a={},a[s.id]=s,a))},{});ne.setItem(t,JSON.stringify(Object.values(i)))}function ci(t){var e=ne.getItem(t);return e?JSON.parse(e):{}}function ps(t,e){var n=ci(t);ne.setItem(t,JSON.stringify(E(E({},n),e)))}function yr(t){ne.removeItem(t)}var hs=function(){return new Date().getTime()};function fn(t,e,n){n===void 0&&(n=0);var r=50,i="persisted-queue:v1:".concat(t,":lock"),o=function(c){return new Date().getTime()>c},s=ne.getItem(i),a=s?JSON.parse(s):null,u=a===null||o(a);if(u){ne.setItem(i,JSON.stringify(hs()+r)),e(),ne.removeItem(i);return}!u&&n<3?setTimeout(function(){fn(t,e,n+1)},r):console.error("Unable to retrieve lock")}var Ln=function(t){se(e,t);function e(n,r){var i=t.call(this,n,[])||this,o="persisted-queue:v1:".concat(r,":items"),s="persisted-queue:v1:".concat(r,":seen"),a=[],u={};return fn(r,function(){try{a=ui(o),u=ci(s),yr(o),yr(s),i.queue=$($([],a,!0),i.queue,!0),i.seen=E(E({},u),i.seen)}catch(c){console.error(c)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var c=$($([],i.queue,!0),i.future,!0);try{fn(r,function(){ds(o,c),ps(s,i.seen)})}catch(p){console.error(p)}}}),i}return e}(Pn),_s=function(t){se(e,t);function e(n){return t.call(this,n??new Ln(4,"event-queue"))||this}return e}(Co),ue="This is being deprecated and will be not be available in future releases of Analytics JS",Qt=Mn(),Zt=Qt==null?void 0:Qt.analytics;function vs(t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var n=t?4:1,r=e?new Pn(n,[]):new Ln(n,"event-queue");return new _s(r)}function Q(){console.warn(ue)}var gs=function(t){se(e,t);function e(n,r,i,o,s){var a=this,u,c,p;a=t.call(this)||this,a._debug=!1,a.initialized=!1,a.user=function(){return a._user},a.init=a.initialize.bind(a),a.log=Q,a.addIntegrationMiddleware=Q,a.listeners=Q,a.addEventListener=Q,a.removeAllListeners=Q,a.removeListener=Q,a.removeEventListener=Q,a.hasListeners=Q,a.add=Q,a.addIntegration=Q;var _=r==null?void 0:r.cookie,m=(u=r==null?void 0:r.disableClientPersistence)!==null&&u!==void 0?u:!1;return a.settings=n,a.settings.timeout=(c=a.settings.timeout)!==null&&c!==void 0?c:300,a.queue=i??vs(r==null?void 0:r.retryQueue,m),a._universalStorage=new rt(m?["memory"]:["localStorage","cookie","memory"],Cn(_)),a._user=o??new ri(m?E(E({},r==null?void 0:r.user),{persist:!1}):r==null?void 0:r.user,_).load(),a._group=s??new Qo(m?E(E({},r==null?void 0:r.group),{persist:!1}):r==null?void 0:r.group,_).load(),a.eventFactory=new fs(a._user),a.integrations=(p=r==null?void 0:r.integrations)!==null&&p!==void 0?p:{},a.options=r??{},jn(a),a}return Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var n=[],r=0;rimport("./auto-track-9a244834.js"),["assets/auto-track-9a244834.js","assets/dom-utils-d77254b8.js"])];case 1:return i=s.sent(),[2,(o=i.link).call.apply(o,$([this],n,!1))]}})})},e.prototype.trackLink=function(){for(var n=[],r=0;rimport("./auto-track-9a244834.js"),["assets/auto-track-9a244834.js","assets/dom-utils-d77254b8.js"])];case 1:return i=s.sent(),[2,(o=i.link).call.apply(o,$([this],n,!1))]}})})},e.prototype.trackSubmit=function(){for(var n=[],r=0;rimport("./auto-track-9a244834.js"),["assets/auto-track-9a244834.js","assets/dom-utils-d77254b8.js"])];case 1:return i=s.sent(),[2,(o=i.form).call.apply(o,$([this],n,!1))]}})})},e.prototype.trackForm=function(){for(var n=[],r=0;rimport("./auto-track-9a244834.js"),["assets/auto-track-9a244834.js","assets/dom-utils-d77254b8.js"])];case 1:return i=s.sent(),[2,(o=i.form).call.apply(o,$([this],n,!1))]}})})},e.prototype.register=function(){for(var n=[],r=0;rPromise.resolve().then(()=>ha),void 0)];case 1:return o=u.sent().sourceMiddlewarePlugin,s={},this.queue.plugins.forEach(function(c){if(c.type==="destination")return s[c.name]=!0}),a=o(n,s),[4,this.register(a)];case 2:return u.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(n){for(var r=[],i=1;iimport("./index-08832da3.js"),["assets/index-08832da3.js","assets/dom-utils-d77254b8.js"])];case 1:return r=i.sent().queryString,[2,r(this,n)]}})})},e.prototype.use=function(n){return n(this),this},e.prototype.ready=function(n){return n===void 0&&(n=function(r){return r}),I(this,void 0,void 0,function(){return O(this,function(r){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return n(i),i})]})})},e.prototype.noConflict=function(){return console.warn(ue),window.analytics=Zt??this,this},e.prototype.normalize=function(n){return console.warn(ue),this.eventFactory.normalize(n)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(ue),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return $e},enumerable:!1,configurable:!0}),e.prototype.initialize=function(n,r){return I(this,void 0,void 0,function(){return O(this,function(i){return console.warn(ue),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(n){return I(this,void 0,void 0,function(){return O(this,function(r){switch(r.label){case 0:return console.warn(ue),[4,this.page({path:n})];case 1:return r.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var n;return console.warn(ue),(n=this._plugins)!==null&&n!==void 0?n:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(ue);var n=this.queue.plugins.filter(function(r){return r.type==="destination"}).reduce(function(r,i){var o="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),s=window[o];if(!s)return r;var a=s.Integration;return a?(r[i.name]=a,r):(r[i.name]=s,r)},{});return n},enumerable:!1,configurable:!0}),e.prototype.push=function(n){var r=this,i=n.shift();i&&!r[i]||r[i].apply(this,n)},e}(Nn);function li(){return typeof process>"u"||!process.env?{}:process.env}var ys=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,ms=function(){var t,e=Array.prototype.slice.call(document.querySelectorAll("script"));return e.forEach(function(n){var r,i=(r=n.getAttribute("src"))!==null&&r!==void 0?r:"",o=ys.exec(i);o&&o[1]&&(t=o[1])}),t},Dt,bs=function(){var t,e=Dt??((t=window.analytics)===null||t===void 0?void 0:t._cdn);return e},Es=function(t){window.analytics&&(window.analytics._cdn=t),Dt=t},$n=function(){var t=bs();if(t)return t;var e=ms();return e||"https://cdn.segment.com"},nf=function(){var t=$n();return"".concat(t,"/next-integrations")};function Ss(t,e){var n,r=Object.entries((n=e.integrations)!==null&&n!==void 0?n:{}).reduce(function(i,o){var s,a,u=o[0],c=o[1];return typeof c=="object"?E(E({},i),(s={},s[u]=c,s)):E(E({},i),(a={},a[u]={},a))},{});return Object.entries(t.integrations).reduce(function(i,o){var s,a=o[0],u=o[1];return E(E({},i),(s={},s[a]=E(E({},u),r[a]),s))},{})}var ws=function(){var t,e,n=new Promise(function(r,i){t=r,e=i});return{resolve:t,reject:e,promise:n}},Ts=function(t,e){return Object.assign.apply(Object,$([{}],e.map(function(n){var r;if(t&&Object.prototype.hasOwnProperty.call(t,n))return r={},r[n]=t[n],r}),!1))};function fi(){var t=document.querySelector("link[rel='canonical']");if(t)return t.getAttribute("href")||void 0}function Is(){var t=fi();if(!t)return window.location.pathname;var e=document.createElement("a");e.href=t;var n=e.pathname.startsWith("/")?e.pathname:"/"+e.pathname;return n}function Os(t){t===void 0&&(t="");var e=fi();if(e)return e.includes("?")?e:"".concat(e).concat(t);var n=window.location.href,r=n.indexOf("#");return r===-1?n:n.slice(0,r)}function Ds(){return{path:Is(),referrer:document.referrer,search:location.search,title:document.title,url:Os(location.search)}}function Qe(t){var e=t.event;e.context=e.context||{};var n=Ds(),r=e.properties&&Ts(e.properties,Object.keys(n));return e.context.page=E(E(E({},n),r),e.context.page),e.type==="page"&&(e.properties=E(E(E({},n),e.properties),e.name?{name:e.name}:{})),t}var Rs={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:Qe,alias:Qe,track:Qe,identify:Qe,group:Qe};function di(t){var e=Array.prototype.slice.call(window.document.querySelectorAll("script"));return e.find(function(n){return n.src===t})}function en(t,e){var n=di(t);if(n!==void 0){var r=n==null?void 0:n.getAttribute("status");if(r==="loaded")return Promise.resolve(n);if(r==="loading")return new Promise(function(i,o){n.addEventListener("load",function(){return i(n)}),n.addEventListener("error",function(s){return o(s)})})}return new Promise(function(i,o){var s,a=window.document.createElement("script");a.type="text/javascript",a.src=t,a.async=!0,a.setAttribute("status","loading");for(var u=0,c=Object.entries(e??{});u-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t};k.userAgent=Y.proxy("context.userAgent");k.timezone=Y.proxy("context.timezone");k.timestamp=Y.field("timestamp");k.channel=Y.field("channel");k.ip=Y.proxy("context.ip");k.userId=Y.field("userId");Gs.default(k);function hn(t){return Ge.clone(t)}var Lt={},_n={exports:{}};typeof Object.create=="function"?_n.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:_n.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var Ie=_n.exports,zs=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Alias=void 0;var Ws=zs(Ie),vi=re;function V(t,e){vi.Facade.call(this,t,e)}Lt.Alias=V;Ws.default(V,vi.Facade);V.prototype.action=function(){return"alias"};V.prototype.type=V.prototype.action;V.prototype.previousId=function(){return this.field("previousId")||this.field("from")};V.prototype.from=V.prototype.previousId;V.prototype.userId=function(){return this.field("userId")||this.field("to")};V.prototype.to=V.prototype.userId;var $t={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Ks=/.+\@.+\..+/;function Vs(t){return Ks.test(t)}ze.default=Vs;var Kn=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($t,"__esModule",{value:!0});$t.Group=void 0;var Js=Kn(Ie),Xs=Kn(ze),Qs=Kn(zn),We=re;function Vn(t,e){We.Facade.call(this,t,e)}$t.Group=Vn;Js.default(Vn,We.Facade);var J=Vn.prototype;J.action=function(){return"group"};J.type=J.action;J.groupId=We.Facade.field("groupId");J.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return Qs.default(t)};J.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();if(Xs.default(e))return e};J.traits=function(t){var e=this.properties(),n=this.groupId();t=t||{},n&&(e.id=n);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=this[r]==null?this.proxy("traits."+r):this[r]();if(i==null)continue;e[t[r]]=i,delete e[r]}return e};J.name=We.Facade.proxy("traits.name");J.industry=We.Facade.proxy("traits.industry");J.employees=We.Facade.proxy("traits.employees");J.properties=function(){return this.field("traits")||this.field("properties")||{}};var ft={},Gt=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ft,"__esModule",{value:!0});ft.Identify=void 0;var ie=re,Ue=Gt(jt),Zs=Gt(Ie),ea=Gt(ze),gi=Gt(zn),ye=function(t){return t.trim()};function Jn(t,e){ie.Facade.call(this,t,e)}ft.Identify=Jn;Zs.default(Jn,ie.Facade);var P=Jn.prototype;P.action=function(){return"identify"};P.type=P.action;P.traits=function(t){var e=this.field("traits")||{},n=this.userId();t=t||{},n&&(e.id=n);for(var r in t){var i=this[r]==null?this.proxy("traits."+r):this[r]();i!=null&&(e[t[r]]=i,r!==t[r]&&delete e[r])}return e};P.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();if(ea.default(e))return e};P.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return gi.default(t)};P.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return gi.default(t)};P.companyName=function(){return this.proxy("traits.company.name")};P.name=function(){var t=this.proxy("traits.name");if(typeof t=="string")return ye(t);var e=this.firstName(),n=this.lastName();if(e&&n)return ye(e+" "+n)};P.firstName=function(){var t=this.proxy("traits.firstName");if(typeof t=="string")return ye(t);var e=this.proxy("traits.name");if(typeof e=="string")return ye(e).split(" ")[0]};P.lastName=function(){var t=this.proxy("traits.lastName");if(typeof t=="string")return ye(t);var e=this.proxy("traits.name");if(typeof e=="string"){var n=ye(e).indexOf(" ");if(n!==-1)return ye(e.substr(n+1))}};P.uid=function(){return this.userId()||this.username()||this.email()};P.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};P.age=function(){var t=this.birthday(),e=Ue.default(this.traits(),"age");if(e!=null)return e;if(t instanceof Date){var n=new Date;return n.getFullYear()-t.getFullYear()}};P.avatar=function(){var t=this.traits();return Ue.default(t,"avatar")||Ue.default(t,"photoUrl")||Ue.default(t,"avatarUrl")};P.position=function(){var t=this.traits();return Ue.default(t,"position")||Ue.default(t,"jobTitle")};P.username=ie.Facade.proxy("traits.username");P.website=ie.Facade.one("traits.website");P.websites=ie.Facade.multi("traits.website");P.phone=ie.Facade.one("traits.phone");P.phones=ie.Facade.multi("traits.phone");P.address=ie.Facade.proxy("traits.address");P.gender=ie.Facade.proxy("traits.gender");P.birthday=ie.Facade.proxy("traits.birthday");var Ke={},Xn=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Track=void 0;var ta=Xn(Ie),j=re,na=ft,ra=Xn(ze),yi=Xn(jt);function Qn(t,e){j.Facade.call(this,t,e)}Ke.Track=Qn;ta.default(Qn,j.Facade);var D=Qn.prototype;D.action=function(){return"track"};D.type=D.action;D.event=j.Facade.field("event");D.value=j.Facade.proxy("properties.value");D.category=j.Facade.proxy("properties.category");D.id=j.Facade.proxy("properties.id");D.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};D.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};D.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};D.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};D.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};D.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};D.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};D.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};D.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};D.sku=j.Facade.proxy("properties.sku");D.tax=j.Facade.proxy("properties.tax");D.name=j.Facade.proxy("properties.name");D.price=j.Facade.proxy("properties.price");D.total=j.Facade.proxy("properties.total");D.repeat=j.Facade.proxy("properties.repeat");D.coupon=j.Facade.proxy("properties.coupon");D.shipping=j.Facade.proxy("properties.shipping");D.discount=j.Facade.proxy("properties.discount");D.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};D.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};D.description=j.Facade.proxy("properties.description");D.plan=j.Facade.proxy("properties.plan");D.subtotal=function(){var t=yi.default(this.properties(),"subtotal"),e=this.total()||this.revenue();if(t)return t;if(!e)return 0;if(this.total()){var n=this.tax();n&&(e-=n),n=this.shipping(),n&&(e-=n),n=this.discount(),n&&(e+=n)}return e};D.products=function(){var t=this.properties(),e=yi.default(t,"products");return Array.isArray(e)?e.filter(function(n){return n!==null}):[]};D.quantity=function(){var t=this.obj.properties||{};return t.quantity||1};D.currency=function(){var t=this.obj.properties||{};return t.currency||"USD"};D.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};D.query=j.Facade.proxy("options.query");D.properties=function(t){var e=this.field("properties")||{};t=t||{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=this[n]==null?this.proxy("properties."+n):this[n]();if(r==null)continue;e[t[n]]=r,delete e[n]}return e};D.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};D.email=function(){var t=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(t)return t;var e=this.userId();if(ra.default(e))return e};D.revenue=function(){var t=this.proxy("properties.revenue"),e=this.event(),n=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!t&&e&&e.match(n)&&(t=this.proxy("properties.total")),ia(t)};D.cents=function(){var t=this.revenue();return typeof t!="number"?this.value()||0:t*100};D.identify=function(){var t=this.json();return t.traits=this.traits(),new na.Identify(t,this.opts)};function ia(t){if(t){if(typeof t=="number")return t;if(typeof t=="string"&&(t=t.replace(/\$/g,""),t=parseFloat(t),!isNaN(t)))return t}}var dt={},mi=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dt,"__esModule",{value:!0});dt.Page=void 0;var oa=mi(Ie),Oe=re,sa=Ke,aa=mi(ze);function Zn(t,e){Oe.Facade.call(this,t,e)}dt.Page=Zn;oa.default(Zn,Oe.Facade);var G=Zn.prototype;G.action=function(){return"page"};G.type=G.action;G.category=Oe.Facade.field("category");G.name=Oe.Facade.field("name");G.title=Oe.Facade.proxy("properties.title");G.path=Oe.Facade.proxy("properties.path");G.url=Oe.Facade.proxy("properties.url");G.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};G.properties=function(t){var e=this.field("properties")||{},n=this.category(),r=this.name();t=t||{},n&&(e.category=n),r&&(e.name=r);for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=this[i]==null?this.proxy("properties."+i):this[i]();if(o==null)continue;e[t[i]]=o,i!==t[i]&&delete e[i]}return e};G.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();if(aa.default(e))return e};G.fullName=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e};G.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"};G.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new sa.Track(e,this.opts)};var Yt={},ua=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.Screen=void 0;var ca=ua(Ie),bi=dt,la=Ke;function Ee(t,e){bi.Page.call(this,t,e)}Yt.Screen=Ee;ca.default(Ee,bi.Page);Ee.prototype.action=function(){return"screen"};Ee.prototype.type=Ee.prototype.action;Ee.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"};Ee.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new la.Track(e,this.opts)};var qt={},fa=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qt,"__esModule",{value:!0});qt.Delete=void 0;var da=fa(Ie),Ei=re;function er(t,e){Ei.Facade.call(this,t,e)}qt.Delete=er;da.default(er,Ei.Facade);er.prototype.type=function(){return"delete"};(function(t){var e=U&&U.__assign||function(){return e=Object.assign||function(p){for(var _,m=1,y=arguments.length;m=ba-50}function Sa(t){var e=[],n=0;return t.forEach(function(r){var i=wi(e[n]);i>=64&&n++,e[n]?e[n].push(r):e[n]=[r]}),e}function wa(t,e){var n,r,i=[],o=!1,s=(n=e==null?void 0:e.size)!==null&&n!==void 0?n:10,a=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:5e3;function u(y){var b;if(y.length!==0){var S=(b=y[0])===null||b===void 0?void 0:b.writeKey;return Mt("https://".concat(t,"/b"),{keepalive:o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:y,writeKey:S})})}}function c(){return I(this,void 0,void 0,function(){var y;return O(this,function(b){return i.length?(y=i,i=[],[2,u(y)]):[2]})})}var p;function _(){p||(p=setTimeout(function(){p=void 0,c().catch(console.error)},a))}ma(function(){if(o=!0,i.length){var y=Sa(i).map(u);Promise.all(y).catch(console.error)}});function m(y,b){return I(this,void 0,void 0,function(){var S;return O(this,function(w){return i.push(b),S=i.length>=s||Ea(i),[2,S||o?c():_()]})})}return{dispatch:m}}function Ta(t){function e(n,r){return Mt(n,{keepalive:t==null?void 0:t.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(r)})}return{dispatch:e}}var Ia=function(t,e){return I(void 0,void 0,void 0,function(){var n;return O(this,function(r){return n=function(i){return I(void 0,void 0,void 0,function(){var o;return O(this,function(s){switch(s.label){case 0:return t(i)?(o=n,[4,e()]):[3,2];case 1:return[2,o.apply(void 0,[s.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})};function Oa(t,e){return I(this,void 0,void 0,function(){var n,r=this;return O(this,function(i){switch(i.label){case 0:return n=[],xt()?[2,e]:[4,Ia(function(){return e.length>0&&!xt()},function(){return I(r,void 0,void 0,function(){var o,s,a;return O(this,function(u){switch(u.label){case 0:return o=e.pop(),o?[4,nt(o,t)]:[2];case 1:return s=u.sent(),a=s instanceof Pe,a||n.push(o),[2]}})})})];case 1:return i.sent(),n.map(function(o){return e.pushWithBackoff(o)}),[2,e]}})})}function xe(t,e,n,r){var i=this;t||setTimeout(function(){return I(i,void 0,void 0,function(){var o,s;return O(this,function(a){switch(a.label){case 0:return o=!0,[4,Oa(n,e)];case 1:return s=a.sent(),o=!1,e.todo>0&&r(o,s,n,r),[2]}})})},Math.random()*5e3)}function Da(t,e){var n,r,i,o,s=t.user();return e.previousId=(i=(r=(n=e.previousId)!==null&&n!==void 0?n:e.from)!==null&&r!==void 0?r:s.id())!==null&&i!==void 0?i:s.anonymousId(),e.userId=(o=e.userId)!==null&&o!==void 0?o:e.to,delete e.from,delete e.to,e}function Ra(t,e,n){var r,i;window.addEventListener("pagehide",function(){o.push.apply(o,Array.from(s)),s.clear()});var o=t.options.disableClientPersistence?new Pn(t.queue.queue.maxAttempts,[]):new Ln(t.queue.queue.maxAttempts,"dest-Segment.io"),s=new Set,a=!1,u=(r=e==null?void 0:e.apiHost)!==null&&r!==void 0?r:oi,c=(i=e==null?void 0:e.protocol)!==null&&i!==void 0?i:"https",p="".concat(c,"://").concat(u),_=e==null?void 0:e.deliveryStrategy,m=(_==null?void 0:_.strategy)==="batching"?wa(u,_.config):Ta(_==null?void 0:_.config);function y(S){return I(this,void 0,void 0,function(){var w,g;return O(this,function(v){return xt()?(o.push(S),xe(a,o,b,xe),[2,S]):(s.add(S),w=S.event.type.charAt(0),g=Nt(S.event).json(),S.event.type==="track"&&delete g.traits,S.event.type==="alias"&&(g=Da(t,g)),[2,m.dispatch("".concat(p,"/").concat(w),os(t,g,e,n)).then(function(){return S}).catch(function(){return o.pushWithBackoff(S),xe(a,o,b,xe),S}).finally(function(){s.delete(S)})])})})}var b={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:y,identify:y,page:y,alias:y,group:y};return o.todo&&xe(a,o,b,xe),b}function Ne(t){var e,n=t.event;Eo(n),So(n),n.type==="track"&&wo(n);var r=(e=n.properties)!==null&&e!==void 0?e:n.traits;if(n.type!=="alias"&&!te(r))throw new be(".properties","is not an object");return bo(n),t}var Aa={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:Ne,identify:Ne,page:Ne,alias:Ne,group:Ne,screen:Ne},xa=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},Ti=function(t,e,n){n.getCalls(t).forEach(function(r){tr(e,r).catch(console.error)})},Na=function(t,e){return I(void 0,void 0,void 0,function(){var n,r,i;return O(this,function(o){switch(o.label){case 0:n=0,r=e.getCalls("addSourceMiddleware"),o.label=1;case 1:return n1}function Ya(t){var e,n,r;return li().NODE_ENV!=="test"&&((r=(n=(e=t.middlewareSettings)===null||e===void 0?void 0:e.routingRules)===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0)>0}function qa(t,e){e.push.apply(e,vn()),Pa(t,e),ka(t,e)}function Ha(t,e){return I(this,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return e.push.apply(e,vn()),[4,Na(t,e)];case 1:return n.sent(),e.push.apply(e,vn()),Ua(t,e),e.clear(),[2]}})})}function za(t,e,n,r,i,o){var s,a,u;return I(this,void 0,void 0,function(){var c,p,_,m,y,b,S,w,g,v,f,l=this;return O(this,function(h){switch(h.label){case 0:return Ya(t)?[4,z(()=>import("./index-ff734b25.js"),["assets/index-ff734b25.js","assets/dom-utils-d77254b8.js"]).then(function(d){return d.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return p=h.sent(),[3,3];case 2:p=void 0,h.label=3;case 3:return c=p,Ga(t)||o.length>0?[4,z(()=>import("./index-2aad5d12.js"),["assets/index-2aad5d12.js","assets/is-plan-event-enabled-a83d33b8.js","assets/dom-utils-d77254b8.js"]).then(function(d){return d.ajsDestinations(t,e.integrations,n,c,o)})]:[3,5];case 4:return m=h.sent(),[3,6];case 5:m=[],h.label=6;case 6:return _=m,t.legacyVideoPluginsEnabled?[4,z(()=>import("./index-23e24382.js"),["assets/index-23e24382.js","assets/dom-utils-d77254b8.js"]).then(function(d){return d.loadLegacyVideoPlugins(e)})]:[3,8];case 7:h.sent(),h.label=8;case 8:return!((s=n.plan)===null||s===void 0)&&s.track?[4,z(()=>import("./index-3d40fb4b.js"),["assets/index-3d40fb4b.js","assets/is-plan-event-enabled-a83d33b8.js","assets/dom-utils-d77254b8.js"]).then(function(d){var R;return d.schemaFilter((R=n.plan)===null||R===void 0?void 0:R.track,t)})]:[3,10];case 9:return b=h.sent(),[3,11];case 10:b=void 0,h.label=11;case 11:return y=b,S=Ss(t,r),[4,ya(t,e.integrations,S,r.obfuscate,c).catch(function(){return[]})];case 12:return w=h.sent(),g=$($($([Aa,Rs],i,!0),_,!0),w,!0),y&&g.push(y),v=((a=n.integrations)===null||a===void 0?void 0:a.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,v||g.push(Ra(e,S["Segment.io"],t.integrations)),[4,e.register.apply(e,g)];case 13:return f=h.sent(),Object.entries((u=t.enabledMiddleware)!==null&&u!==void 0?u:{}).some(function(d){var R=d[1];return R})?[4,z(()=>import("./index-12f647de.js"),["assets/index-12f647de.js","assets/dom-utils-d77254b8.js"]).then(function(d){var R=d.remoteMiddlewares;return I(l,void 0,void 0,function(){var F,A;return O(this,function(L){switch(L.label){case 0:return[4,R(f,t,r.obfuscate)];case 1:return F=L.sent(),A=F.map(function(De){return e.addSourceMiddleware(De)}),[2,Promise.all(A)]}})})})]:[3,15];case 14:h.sent(),h.label=15;case 15:return[2,f]}})})}function Wa(t,e,n){var r,i,o,s,a,u,c;return e===void 0&&(e={}),I(this,void 0,void 0,function(){var p,_,m,y,b,S,w,g,v,f,l;return O(this,function(h){switch(h.label){case 0:return t.cdnURL&&Es(t.cdnURL),(r=t.cdnSettings)!==null&&r!==void 0?(_=r,[3,3]):[3,1];case 1:return[4,$a(t.writeKey,t.cdnURL)];case 2:_=h.sent(),h.label=3;case 3:return p=_,m=(o=(i=p.integrations["Segment.io"])===null||i===void 0?void 0:i.retryQueue)!==null&&o!==void 0?o:!0,y=E({retryQueue:m},e),b=new gs(t,y),La(b),S=(s=t.plugins)!==null&&s!==void 0?s:[],w=(a=t.classicIntegrations)!==null&&a!==void 0?a:[],si.initRemoteMetrics(p.metrics),qa(b,n),[4,za(p,b,y,e,S,w)];case 4:return g=h.sent(),v=(u=window.location.search)!==null&&u!==void 0?u:"",f=(c=window.location.hash)!==null&&c!==void 0?c:"",l=v.length?v:f.replace(/(?=#).*(?=\?)/,""),l.includes("ajs_")?[4,b.queryString(l).catch(console.error)]:[3,6];case 5:h.sent(),h.label=6;case 6:return b.initialized=!0,b.emit("initialize",t,e),e.initialPageview&&b.page().catch(console.error),[4,Ha(b,n)];case 7:return h.sent(),[2,[b,g]]}})})}var Ka=function(t){se(e,t);function e(){var n=this,r=ws(),i=r.promise,o=r.resolve;return n=t.call(this,function(s){return i.then(function(a){var u=a[0],c=a[1];return Wa(u,c,s)})})||this,n._resolveLoadStart=function(s,a){return o([s,a])},n}return e.prototype.load=function(n,r){return r===void 0&&(r={}),this._resolveLoadStart(n,r),this},e.load=function(n,r){return r===void 0&&(r={}),new e().load(n,r)},e.standalone=function(n,r){return e.load({writeKey:n},r).then(function(i){return i[0]})},e}(Ma);const Ir="psxdesign_anonymous_id",gn=Ka.load({writeKey:"NBWokDnX0VixanFXDZJ4ceOwLxUc2pGM"},{disableClientPersistence:!0});async function Va(){return getUuidAjaxUrl==null||getUuidAjaxUrl.trim().length===0?"":await(await fetch(getUuidAjaxUrl,{method:"GET"})).json()}const Ja=async()=>{const t=co(Ir);if(t===""){const e=(await gn.user()).anonymousId();lo({key:Ir,value:e,maxAge:60*60*24*365,path:"/",samesite:"lax"})}else await gn.setAnonymousId(t)},of=async t=>{try{await Ja();const e=await Va();await gn.page("Page",t,{},{userId:e})}catch(e){console.error(e)}},Ii=Object.prototype.toString;function Oi(t){switch(Ii.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Je(t,Error)}}function Ve(t,e){return Ii.call(t)===`[object ${e}]`}function Di(t){return Ve(t,"ErrorEvent")}function Or(t){return Ve(t,"DOMError")}function Xa(t){return Ve(t,"DOMException")}function Se(t){return Ve(t,"String")}function Ri(t){return t===null||typeof t!="object"&&typeof t!="function"}function Ye(t){return Ve(t,"Object")}function nr(t){return typeof Event<"u"&&Je(t,Event)}function Qa(t){return typeof Element<"u"&&Je(t,Element)}function Za(t){return Ve(t,"RegExp")}function rr(t){return!!(t&&t.then&&typeof t.then=="function")}function eu(t){return Ye(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function tu(t){return typeof t=="number"&&t!==t}function Je(t,e){try{return t instanceof e}catch{return!1}}function yt(t){return t&&t.Math==Math?t:void 0}const q=typeof globalThis=="object"&&yt(globalThis)||typeof window=="object"&&yt(window)||typeof self=="object"&&yt(self)||typeof global=="object"&&yt(global)||function(){return this}()||{};function pt(){return q}function ir(t,e,n){const r=n||q,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}const nu=pt(),ru=80;function yn(t,e={}){try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",u=a.length;let c;const p=Array.isArray(e)?e:e.keyAttrs,_=!Array.isArray(e)&&e.maxStringLength||ru;for(;n&&o++1&&s+i.length*u+c.length>=_));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(a)}catch{return""}}function iu(t,e){const n=t,r=[];let i,o,s,a,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=e&&e.length?e.filter(_=>n.getAttribute(_)).map(_=>[_,n.getAttribute(_)]):null;if(c&&c.length)c.forEach(_=>{r.push(`[${_[0]}="${_[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Se(i))for(o=i.split(/\s+/),u=0;u{const i=e[r]&&e[r].__sentry_original__;r in e&&i&&(n[r]=e[r],e[r]=i)});try{return t()}finally{Object.keys(n).forEach(r=>{e[r]=n[r]})}}function Dr(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?kt.forEach(n=>{e[n]=(...r)=>{t&&Ai(()=>{q.console[n](`${su}[${n}]:`,...r)})}}):kt.forEach(n=>{e[n]=()=>{}}),e}let T;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?T=ir("logger",Dr):T=Dr();const au=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function uu(t){return t==="http"||t==="https"}function Ht(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function cu(t){const e=au.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}const[n,r,i="",o,s="",a]=e.slice(1);let u="",c=a;const p=c.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),c=p.pop()),c){const _=c.match(/^\d+/);_&&(c=_[0])}return xi({host:o,pass:i,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function xi(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function lu(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(T.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?uu(r)?e&&isNaN(parseInt(e,10))?(T.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(T.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(T.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function fu(t){const e=typeof t=="string"?cu(t):xi(t);if(!(!e||!lu(e)))return e}class W extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function it(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Rr(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;rdu(t,r,n))}function B(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if(typeof i=="function")try{Ni(i,r)}catch{}t[e]=i}function or(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function Ni(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,or(t,"__sentry_original__",e)}function sr(t){return t.__sentry_original__}function pu(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function ki(t){if(Oi(t))return{message:t.message,name:t.name,stack:t.stack,...xr(t)};if(nr(t)){const e={type:t.type,target:Ar(t.target),currentTarget:Ar(t.currentTarget),...xr(t)};return typeof CustomEvent<"u"&&Je(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Ar(t){try{return Qa(t)?yn(t):Object.prototype.toString.call(t)}catch{return""}}function xr(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function hu(t,e=40){const n=Object.keys(ki(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return it(n[0],e);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:it(i,e)}return""}function ar(t){return mn(t,new Map)}function mn(t,e){if(Ye(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const i of Object.keys(t))typeof t[i]<"u"&&(r[i]=mn(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(i=>{r.push(mn(i,e))}),r}return t}const Pi=50,Nr=/\(error: (.*)\)/;function Ui(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(` `);for(let s=r;s1024)continue;const u=Nr.test(a)?a.replace(Nr,"$1"):a;if(!u.match(/\S*Error: /)){for(const c of e){const p=c(u);if(p){i.push(p);break}}if(i.length>=Pi)break}}return vu(i)}}function _u(t){return Array.isArray(t)?Ui(...t):t}function vu(t){if(!t.length)return[];const e=t.slice(0,Pi),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop(),e.reverse();const r=e[e.length-1].function;return r&&/captureMessage|captureException/.test(r)&&e.pop(),e.map(i=>({...i,filename:i.filename||e[e.length-1].filename,function:i.function||"?"}))}const nn="";function _e(t){try{return!t||typeof t!="function"?nn:t.name||nn}catch{return nn}}const bn=pt();function Fi(){if(!("fetch"in bn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function En(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function gu(){if(!Fi())return!1;if(En(bn.fetch))return!0;let t=!1;const e=bn.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=En(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}const mt=pt();function yu(){const t=mt.chrome,e=t&&t.app&&t.app.runtime,n="history"in mt&&!!mt.history.pushState&&!!mt.history.replaceState;return!e&&n}const N=pt(),Ze="__sentry_xhr_v2__",ot={},kr={};function mu(t){if(!kr[t])switch(kr[t]=!0,t){case"console":bu();break;case"dom":Ru();break;case"xhr":wu();break;case"fetch":Eu();break;case"history":Tu();break;case"error":Au();break;case"unhandledrejection":xu();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("unknown instrumentation type:",t);return}}function fe(t,e){ot[t]=ot[t]||[],ot[t].push(e),mu(t)}function K(t,e){if(!(!t||!ot[t]))for(const n of ot[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${_e(n)} Error:`,r)}}function bu(){"console"in N&&kt.forEach(function(t){t in N.console&&B(N.console,t,function(e){return function(...n){K("console",{args:n,level:t}),e&&e.apply(N.console,n)}})})}function Eu(){gu()&&B(N,"fetch",function(t){return function(...e){const{method:n,url:r}=Su(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return K("fetch",{...i}),t.apply(N,e).then(o=>(K("fetch",{...i,endTimestamp:Date.now(),response:o}),o),o=>{throw K("fetch",{...i,endTimestamp:Date.now(),error:o}),o})}})}function Sn(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Pr(t){return typeof t=="string"?t:t?Sn(t,"url")?t.url:t.toString?t.toString():"":""}function Su(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Pr(n),method:Sn(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:Pr(e),method:Sn(e,"method")?String(e.method).toUpperCase():"GET"}}function wu(){if(!("XMLHttpRequest"in N))return;const t=XMLHttpRequest.prototype;B(t,"open",function(e){return function(...n){const r=n[1],i=this[Ze]={method:Se(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};Se(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const s=this[Ze];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}K("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?B(this,"onreadystatechange",function(s){return function(...a){return o(),s.apply(this,a)}}):this.addEventListener("readystatechange",o),B(this,"setRequestHeader",function(s){return function(...a){const[u,c]=a,p=this[Ze];return p&&(p.request_headers[u.toLowerCase()]=c),s.apply(this,a)}}),e.apply(this,n)}}),B(t,"send",function(e){return function(...n){const r=this[Ze];return r&&n[0]!==void 0&&(r.body=n[0]),K("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}let bt;function Tu(){if(!yu())return;const t=N.onpopstate;N.onpopstate=function(...n){const r=N.location.href,i=bt;if(bt=r,K("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=bt,s=String(i);bt=s,K("history",{from:o,to:s})}return n.apply(this,r)}}B(N.history,"pushState",e),B(N.history,"replaceState",e)}const Iu=1e3;let Et,St;function Ou(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Du(t){if(t.type!=="keypress")return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function Ur(t,e=!1){return n=>{if(!n||St===n||Du(n))return;const r=n.type==="keypress"?"input":n.type;Et===void 0?(t({event:n,name:r,global:e}),St=n):Ou(St,n)&&(t({event:n,name:r,global:e}),St=n),clearTimeout(Et),Et=N.setTimeout(()=>{Et=void 0},Iu)}}function Ru(){if(!("document"in N))return;const t=K.bind(null,"dom"),e=Ur(t,!0);N.document.addEventListener("click",e,!1),N.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=N[n]&&N[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(B(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},p=c[o]=c[o]||{refCount:0};if(!p.handler){const _=Ur(t);p.handler=_,i.call(this,o,_,a)}p.refCount++}catch{}return i.call(this,o,s,a)}}),B(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__||{},p=c[o];p&&(p.refCount--,p.refCount<=0&&(i.call(this,o,p.handler,a),p.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}let wt=null;function Au(){wt=N.onerror,N.onerror=function(t,e,n,r,i){return K("error",{column:r,error:i,line:n,msg:t,url:e}),wt&&!wt.__SENTRY_LOADER__?wt.apply(this,arguments):!1},N.onerror.__SENTRY_INSTRUMENTED__=!0}let Tt=null;function xu(){Tt=N.onunhandledrejection,N.onunhandledrejection=function(t){return K("unhandledrejection",t),Tt&&!Tt.__SENTRY_LOADER__?Tt.apply(this,arguments):!0},N.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nu(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let o=0;oe.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Mi(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function de(t){const{message:e,event_id:n}=t;if(e)return e;const r=Mi(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function wn(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function st(t,e){const n=Mi(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const o={...i&&i.data,...e.data};n.mechanism.data=o}}function Fr(t){if(t&&t.__sentry_captured__)return!0;try{or(t,"__sentry_captured__",!0)}catch{}return!1}function ji(t){return Array.isArray(t)?t:[t]}function ku(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Pu(){return"npm"}function Uu(){return!ku()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Fu(t,e){return t.require(e)}function le(t,e=100,n=1/0){try{return Tn("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Bi(t,e=3,n=100*1024){const r=le(t,e);return Cu(r)>n?Bi(t,e-1,n):r}function Tn(t,e,n=1/0,r=1/0,i=Nu()){const[o,s]=i;if(e==null||["number","boolean","string"].includes(typeof e)&&!tu(e))return e;const a=Mu(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(u===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const c=e;if(c&&typeof c.toJSON=="function")try{const y=c.toJSON();return Tn("",y,u-1,r,i)}catch{}const p=Array.isArray(e)?[]:{};let _=0;const m=ki(e);for(const y in m){if(!Object.prototype.hasOwnProperty.call(m,y))continue;if(_>=r){p[y]="[MaxProperties ~]";break}const b=m[y];p[y]=Tn(y,b,u-1,r,i),_++}return s(e),p}function Mu(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(eu(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${_e(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=ju(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ju(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Bu(t){return~-encodeURI(t).split(/%..|./).length}function Cu(t){return Bu(JSON.stringify(t))}var oe;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(oe||(oe={}));function we(t){return new C(e=>{e(t)})}function Pt(t){return new C((e,n)=>{n(t)})}class C{__init(){this._state=oe.PENDING}__init2(){this._handlers=[]}constructor(e){C.prototype.__init.call(this),C.prototype.__init2.call(this),C.prototype.__init3.call(this),C.prototype.__init4.call(this),C.prototype.__init5.call(this),C.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new C((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new C((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=e=>{this._setResult(oe.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(oe.REJECTED,e)}}__init5(){this._setResult=(e,n)=>{if(this._state===oe.PENDING){if(rr(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===oe.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===oe.RESOLVED&&n[1](this._value),this._state===oe.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Lu(t){const e=[];function n(){return t===void 0||e.lengthr(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new C((a,u)=>{let c=e.length;if(!c)return a(!0);const p=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(_=>{we(_).then(()=>{--c||(clearTimeout(p),a(!0))},u)})})}return{$:e,add:i,drain:o}}function rn(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const $u=["fatal","error","warning","log","info","debug"];function Gu(t){return t==="warn"?"warning":$u.includes(t)?t:"log"}const Ci=pt(),In={nowSeconds:()=>Date.now()/1e3};function Yu(){const{performance:t}=Ci;if(!t||!t.now)return;const e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function qu(){try{return Fu(module,"perf_hooks").performance}catch{return}}const on=Uu()?qu():Yu(),Mr=on===void 0?In:{nowSeconds:()=>(on.timeOrigin+on.now())/1e3},Wt=In.nowSeconds.bind(In),Li=Mr.nowSeconds.bind(Mr);(()=>{const{performance:t}=Ci;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=ii+o.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function Ku(t,e){const n=typeof t.data=="string"?On(t.data,e):t.data;return[ar({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Vu={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Br(t){return Vu[t]}function $i(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Ju(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&{dsn:Ht(r)},...i&&{trace:ar({...i})}}}function Xu(t,e,n){const r=[{type:"client_report"},{timestamp:n||Wt(),discarded_events:t}];return ht(e?{dsn:e}:{},[r])}const Qu=60*1e3;function Zu(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Qu:r-e}function ec(t,e){return t[e]||t.all||0}function tc(t,e,n=Date.now()){return ec(t,e)>n}function nc(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[u,c]=a.split(":",2),p=parseInt(u,10),_=(isNaN(p)?60:p)*1e3;if(!c)i.all=r+_;else for(const m of c.split(";"))i[m]=r+_}else s?i.all=r+Zu(s,r):e===429&&(i.all=r+60*1e3);return i}const Gi="production";function rc(t){const e=Li(),n={sid:Fe(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>oc(n)};return t&&qe(n,t),n}function qe(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Li(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Fe()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ic(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),qe(t,n)}function oc(t){return ar({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const sc=100;class me{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const n=new me;return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...e._contexts},n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&qe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){const n=e(this);return n instanceof me?n:this}return e instanceof me?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Ye(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,n){const r=typeof n=="number"?n:sc;if(r<=0)return this;const i={timestamp:Wt(),...e};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const r=this._span.transaction;if(r){e.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const i=r.name;i&&(e.tags={transaction:i,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Yi(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,n,r,i=0){return new C((o,s)=>{const a=e[i];if(n===null||typeof a!="function")o(n);else{const u=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&u===null&&T.log(`Event processor "${a.id}" dropped event`),rr(u)?u.then(c=>this._notifyEventProcessors(e,c,r,i+1).then(o)).then(null,s):this._notifyEventProcessors(e,u,r,i+1).then(o).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?ji(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Yi(){return ir("globalEventProcessors",()=>[])}function ur(t){Yi().push(t)}const qi=4,ac=100;class Hi{constructor(e,n=new me,r=qi){this._version=r,this._stack=[{scope:n}],e&&this.bindClient(e)}isOlderThan(e){return this._version{o.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},s)}),r}captureMessage(e,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Fe(),o=new Error(e);return this._withClient((s,a)=>{s.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:i},a)}),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:Fe();return e.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(e,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=ac}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const u={timestamp:Wt(),...e},c=o?Ai(()=>o(u,n)):u;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=Cr(this);try{e(this)}finally{Cr(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&ic(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=Gi}=r&&r.getOptions()||{},{userAgent:s}=q.navigator||{},a=rc({release:i,environment:o,user:n.getUser(),...s&&{userAgent:s},...e}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&qe(u,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(e){const{scope:n,client:r}=this.getStackTop();r&&e(r,n)}_callExtensionMethod(e,...n){const i=Kt().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]=="function")return i.extensions[e].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Kt(){return q.__SENTRY__=q.__SENTRY__||{extensions:{},hub:void 0},q}function Cr(t){const e=Kt(),n=Dn(e);return zi(e,t),n}function M(){const t=Kt();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return uc(t)}function uc(t=Kt()){return(!cc(t)||Dn(t).isOlderThan(qi))&&zi(t,new Hi),Dn(t)}function cc(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Dn(t){return ir("hub",()=>new Hi,t)}function zi(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function lc(t,e){return M().captureException(t,{captureContext:e})}function fc(t){M().withScope(t)}const dc="7";function pc(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function hc(t){return`${pc(t)}${t.projectId}/envelope/`}function _c(t,e){return pu({sentry_key:t.publicKey,sentry_version:dc,...e&&{sentry_client:`${e.name}/${e.version}`}})}function vc(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${hc(t)}?${_c(t,r)}`}function gc(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function yc(t,e,n,r){const i=$i(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Ht(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ht(o,[s])}function mc(t,e,n,r){const i=$i(n),o=t.type&&t.type!=="replay_event"?t.type:"event";gc(t,n&&n.sdk);const s=Ju(t,i,r,e);return delete t.sdkProcessingMetadata,ht(s,[[{type:o},t]])}const Lr=[];function bc(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function Ec(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=ji(n(e)):r=e;const i=bc(r),o=wc(i,s=>s.name==="Debug");if(o!==-1){const[s]=i.splice(o,1);i.push(s)}return i}function Sc(t){const e={};return t.forEach(n=>{n&&Wi(n,e)}),e}function Wi(t,e){e[t.name]=t,Lr.indexOf(t.name)===-1&&(t.setupOnce(ur,M),Lr.push(t.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log(`Integration installed: ${t.name}`))}function wc(t,e){for(let n=0;np.name);Ic(s,t),Dc(s,a),e.type===void 0&&Oc(s,t.stackParser);let u=r;n.captureContext&&(u=me.clone(u).update(n.captureContext));let c=we(s);if(u){if(u.getAttachments){const p=[...n.attachments||[],...u.getAttachments()];p.length&&(n.attachments=p)}c=u.applyToEvent(s,n)}return c.then(p=>typeof i=="number"&&i>0?Rc(p,i,o):p)}function Ic(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:Gi),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=it(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=it(s.value,o));const a=t.request;a&&a.url&&(a.url=it(a.url,o))}const $r=new WeakMap;function Oc(t,e){const n=q._sentryDebugIds;if(!n)return;let r;const i=$r.get(e);i?r=i:(r=new Map,$r.set(e,r));const o=Object.keys(n).reduce((u,c)=>{let p;const _=r.get(c);_?p=_:(p=e(c),r.set(c,p));for(let m=p.length-1;m>=0;m--){const y=p[m];if(y.filename){u[y.filename]=n[c];break}}return u},{}),s=new Set;try{t.exception.values.forEach(u=>{u.stacktrace.frames.forEach(c=>{c.filename&&s.add(c.filename)})})}catch{}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const a=t.debug_meta.images;s.forEach(u=>{o[u]&&a.push({type:"sourcemap",code_file:u,debug_id:o[u]})})}function Dc(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Rc(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:le(i.data,e,n)}}))},...t.user&&{user:le(t.user,e,n)},...t.contexts&&{contexts:le(t.contexts,e,n)},...t.extra&&{extra:le(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=le(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>(i.data&&(i.data=le(i.data,e,n)),i))),r}const Gr="Not capturing exception because it's already been captured.";class ve{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(ve.prototype.__init.call(this),ve.prototype.__init2.call(this),ve.prototype.__init3.call(this),ve.prototype.__init4.call(this),ve.prototype.__init5.call(this),this._options=e,e.dsn?this._dsn=fu(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("No DSN provided, client will not do anything."),this._dsn){const n=vc(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(Fr(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log(Gr);return}let i=n&&n.event_id;return this._process(this.eventFromException(e,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(e,n,r,i){let o=r&&r.event_id;const s=Ri(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r);return this._process(s.then(a=>this._captureEvent(a,r,i)).then(a=>{o=a})),o}captureEvent(e,n,r){if(n&&n.originalException&&Fr(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log(Gr);return}let i=n&&n.event_id;return this._process(this._captureEvent(e,n,r).then(o=>{i=o})),i}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),qe(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i)):we(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=Sc(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){Wi(e,this._integrations)}sendEvent(e,n={}){if(this._dsn){let r=mc(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Hu(r,Ku(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",e,o),null)}}sendSession(e){if(this._dsn){const n=yc(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const i=`${e}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_updateSessionFromEvent(e,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const u of o){const c=u.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=e.status==="ok";(s&&e.errors===0||s&&r)&&(qe(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new C(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,e&&r>=e&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(e,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),Tc(i,e,n,r)}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?T.log(o.message):T.warn(o)}})}_processEvent(e,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return Pt(new W("SDK not enabled, will not capture event.","log"));const s=Vi(e),a=Ki(e),u=e.type||"error",c=`before send for type \`${u}\``;if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),Pt(new W(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p=u==="replay_event"?"replay":u;return this._prepareEvent(e,n,r).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",p,e),new W("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return _;const y=xc(i,_,n);return Ac(y,c)}).then(_=>{if(_===null)throw this.recordDroppedEvent("before_send",p,e),new W(`${c} returned \`null\`, will not send event.`,"log");const m=r&&r.getSession();!s&&m&&this._updateSessionFromEvent(m,_);const y=_.transaction_info;if(s&&y&&_.transaction!==e.transaction){const b="custom";_.transaction_info={...y,source:b}}return this.sendEvent(_,n),_}).then(null,_=>{throw _ instanceof W?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new W(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${_}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:e[n]}})}}function Ac(t,e){const n=`${e} must return \`null\` or a valid event.`;if(rr(t))return t.then(r=>{if(!Ye(r)&&r!==null)throw new W(n);return r},r=>{throw new W(`${e} rejected with ${r}`)});if(!Ye(t)&&t!==null)throw new W(n);return t}function xc(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return Ki(e)&&r?r(e,n):Vi(e)&&i?i(e,n):e}function Ki(t){return t.type===void 0}function Vi(t){return t.type==="transaction"}function Nc(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?T.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=M();n.getScope().update(e.initialScope);const i=new t(e);n.bindClient(i)}const kc=30;function Ji(t,e,n=Lu(t.bufferSize||kc)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(jr(s,(_,m)=>{const y=Br(m);if(tc(r,y)){const b=Yr(_,m);t.recordDroppedEvent("ratelimit_backoff",y,b)}else a.push(_)}),a.length===0)return we();const u=ht(s[0],a),c=_=>{jr(u,(m,y)=>{const b=Yr(m,y);t.recordDroppedEvent(_,Br(y),b)})},p=()=>e({body:zu(u,t.textEncoder)}).then(_=>(_.statusCode!==void 0&&(_.statusCode<200||_.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Sentry responded with status code ${_.statusCode} to sent event.`),r=nc(r,_),_),_=>{throw c("network_error"),_});return n.add(p).then(_=>_,_=>{if(_ instanceof W)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.error("Skipped sending event because buffer is full."),c("queue_overflow"),we();throw _})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function Yr(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const qr="7.54.0";let Hr;class at{constructor(){at.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=at.id}setupOnce(){Hr=Function.prototype.toString;try{Function.prototype.toString=function(...e){const n=sr(this)||this;return Hr.apply(n,e)}}catch{}}}at.__initStatic();const Pc=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Uc=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Me{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Me.id}constructor(e={}){this._options=e,Me.prototype.__init.call(this)}setupOnce(e,n){const r=i=>{const o=n();if(o){const s=o.getIntegration(Me);if(s){const a=o.getClient(),u=a?a.getOptions():{},c=Fc(s._options,u);return Mc(i,c)?null:i}}return i};r.id=this.name,e(r)}}Me.__initStatic();function Fc(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Pc],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:Uc],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Mc(t,e){return e.ignoreInternal&&Gc(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Event dropped due to being internal Sentry Error. Event: ${de(t)}`),!0):jc(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${de(t)}`),!0):Bc(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${de(t)}`),!0):Cc(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${de(t)}. Url: ${Ut(t)}`),!0):Lc(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${de(t)}. Url: ${Ut(t)}`),!0)}function jc(t,e){return t.type||!e||!e.length?!1:$c(t).some(n=>zt(n,e))}function Bc(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?zt(n,e):!1}function Cc(t,e){if(!e||!e.length)return!1;const n=Ut(t);return n?zt(n,e):!1}function Lc(t,e){if(!e||!e.length)return!0;const n=Ut(t);return n?zt(n,e):!0}function $c(t){if(t.message)return[t.message];if(t.exception){const{values:e}=t.exception;try{const{type:n="",value:r=""}=e&&e[e.length-1]||{};return[`${r}`,`${n}: ${r}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.error(`Cannot extract message for event ${de(t)}`),[]}}return[]}function Gc(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Yc(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Ut(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Yc(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.error(`Cannot extract url for event ${de(t)}`),null}}const x=q;let Rn=0;function Xi(){return Rn>0}function qc(){Rn++,setTimeout(()=>{Rn--})}function He(t,e={},n){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return i;if(sr(t))return t}catch{return t}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(s=>He(s,e));return t.apply(this,o)}catch(o){throw qc(),fc(s=>{s.addEventProcessor(a=>(e.mechanism&&(wn(a,void 0,void 0),st(a,e.mechanism)),a.extra={...a.extra,arguments:i},a)),lc(o)}),o}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Ni(r,t),or(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Qi(t,e){const n=cr(t,e),r={type:e&&e.name,value:Kc(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Hc(t,e,n,r){const o=M().getClient(),s=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:nr(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${hu(e)}`}]},extra:{__serialized__:Bi(e,s)}};if(n){const u=cr(t,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function sn(t,e){return{exception:{values:[Qi(t,e)]}}}function cr(t,e){const n=e.stacktrace||e.stack||"",r=Wc(e);try{return t(n,r)}catch{}return[]}const zc=/Minified React error #\d+;/i;function Wc(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(zc.test(t.message))return 1}return 0}function Kc(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Vc(t,e,n,r){const i=n&&n.syntheticException||void 0,o=lr(t,e,i,r);return st(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),we(o)}function Jc(t,e,n="info",r,i){const o=r&&r.syntheticException||void 0,s=An(t,e,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),we(s)}function lr(t,e,n,r,i){let o;if(Di(e)&&e.error)return sn(t,e.error);if(Or(e)||Xa(e)){const s=e;if("stack"in e)o=sn(t,e);else{const a=s.name||(Or(s)?"DOMError":"DOMException"),u=s.message?`${a}: ${s.message}`:a;o=An(t,u,n,r),wn(o,u)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return Oi(e)?sn(t,e):Ye(e)||nr(e)?(o=Hc(t,e,n,i),st(o,{synthetic:!0}),o):(o=An(t,e,n,r),wn(o,`${e}`,void 0),st(o,{synthetic:!0}),o)}function An(t,e,n,r){const i={message:e};if(r&&n){const o=cr(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}return i}const It=1024,Zi="Breadcrumbs";class ut{static __initStatic(){this.id=Zi}__init(){this.name=ut.id}constructor(e){ut.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&fe("console",Qc),this.options.dom&&fe("dom",Xc(this.options.dom)),this.options.xhr&&fe("xhr",Zc),this.options.fetch&&fe("fetch",el),this.options.history&&fe("history",tl)}addSentryBreadcrumb(e){this.options.sentry&&M().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:de(e)},{event:e})}}ut.__initStatic();function Xc(t){function e(n){let r,i=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>It&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn(`\`dom.maxStringLength\` cannot exceed ${It}, but a value of ${o} was configured. Sentry will use ${It} instead.`),o=It),typeof i=="string"&&(i=[i]);try{const s=n.event;r=nl(s)?yn(s.target,{keyAttrs:i,maxStringLength:o}):yn(s,{keyAttrs:i,maxStringLength:o})}catch{r=""}r.length!==0&&M().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function Qc(t){for(let n=0;n{x.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Vc(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Jc(this._options.stackParser,e,n,r,this._options.attachStacktrace)}sendEvent(e,n){const r=this.getIntegrationById(Zi);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(e),super.sendEvent(e,n)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("SDK not enabled, will not capture user feedback.");return}const n=rl(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log("Sending outcomes:",e);const n=Xu(e,this._options.tunnel&&Ht(this._dsn));this._sendEnvelope(n)}}let et;function sl(){if(et)return et;if(En(x.fetch))return et=x.fetch.bind(x);const t=x.document;let e=x.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return et=e.bind(x)}function al(){et=void 0}function ul(t,e=sl()){let n=0,r=0;function i(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return al(),n-=s,r--,Pt(u)}}return Ji(t,i)}const cl=4;function ll(t){function e(n){return new C((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===cl&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",t.url);for(const s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&o.setRequestHeader(s,t.headers[s]);o.send(n.body)})}return Ji(t,e)}const Vt="?",fl=30,dl=40,pl=50;function fr(t,e,n,r){const i={filename:t,function:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const hl=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_l=/\((\S*)(?::(\d+))(?::(\d+))\)/,vl=t=>{const e=hl.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const o=_l.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}const[r,i]=eo(e[1]||Vt,e[2]);return fr(i,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},gl=[fl,vl],yl=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ml=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bl=t=>{const e=yl.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=ml.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||Vt;return[i,r]=eo(i,r),fr(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},El=[pl,bl],Sl=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wl=t=>{const e=Sl.exec(t);return e?fr(e[2],e[1]||Vt,+e[3],e[4]?+e[4]:void 0):void 0},Tl=[dl,wl],Il=[gl,El,Tl],Ol=Ui(...Il),eo=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Vt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class he{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=he.id}__init2(){this._installFunc={onerror:Dl,onunhandledrejection:Rl}}constructor(e){he.prototype.__init.call(this),he.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(Nl(n),r(),this._installFunc[n]=void 0)}}}he.__initStatic();function Dl(){fe("error",t=>{const[e,n,r]=ro();if(!e.getIntegration(he))return;const{msg:i,url:o,line:s,column:a,error:u}=t;if(Xi()||u&&u.__sentry_own_request__)return;const c=u===void 0&&Se(i)?xl(i,o,s,a):to(lr(n,u||i,void 0,r,!1),o,s,a);c.level="error",no(e,u,c,"onerror")})}function Rl(){fe("unhandledrejection",t=>{const[e,n,r]=ro();if(!e.getIntegration(he))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch{}if(Xi()||i&&i.__sentry_own_request__)return!0;const o=Ri(i)?Al(i):lr(n,i,void 0,r,!0);o.level="error",no(e,i,o,"onunhandledrejection")})}function Al(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function xl(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Di(t)?t.message:t,s="Error";const a=o.match(i);return a&&(s=a[1],o=a[2]),to({exception:{values:[{type:s,value:o}]}},e,n,r)}function to(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,_=Se(e)&&e.length>0?e:ou();return u.length===0&&u.push({colno:c,filename:_,function:"?",in_app:!0,lineno:p}),t}function Nl(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.log(`Global Handler attached: ${t}`)}function no(t,e,n,r){st(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function ro(){const t=M(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}const kl=["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"];class ct{static __initStatic(){this.id="TryCatch"}__init(){this.name=ct.id}constructor(e){ct.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&B(x,"setTimeout",zr),this._options.setInterval&&B(x,"setInterval",zr),this._options.requestAnimationFrame&&B(x,"requestAnimationFrame",Pl),this._options.XMLHttpRequest&&"XMLHttpRequest"in x&&B(XMLHttpRequest.prototype,"send",Ul);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:kl).forEach(Fl)}}ct.__initStatic();function zr(t){return function(...e){const n=e[0];return e[0]=He(n,{mechanism:{data:{function:_e(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Pl(t){return function(e){return t.apply(this,[He(e,{mechanism:{data:{function:"requestAnimationFrame",handler:_e(t)},handled:!0,type:"instrument"}})])}}function Ul(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&B(n,i,function(o){const s={mechanism:{data:{function:i,handler:_e(o)},handled:!0,type:"instrument"}},a=sr(o);return a&&(s.mechanism.data.handler=_e(a)),He(o,s)})}),t.apply(this,e)}}function Fl(t){const e=x,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(B(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=He(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:_e(o),target:t},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,He(o,{mechanism:{data:{function:"addEventListener",handler:_e(o),target:t},handled:!0,type:"instrument"}}),s])}}),B(n,"removeEventListener",function(r){return function(i,o,s){const a=o;try{const u=a&&a.__sentry_wrapped__;u&&r.call(this,i,u,s)}catch{}return r.call(this,i,a,s)}}))}const Ml="cause",jl=5;class je{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=je.id}constructor(e={}){je.prototype.__init.call(this),this._key=e.key||Ml,this._limit=e.limit||jl}setupOnce(){const e=M().getClient();e&&ur((n,r)=>{const i=M().getIntegration(je);return i?Bl(e.getOptions().stackParser,i._key,i._limit,n,r):n})}}je.__initStatic();function Bl(t,e,n,r,i){if(!r.exception||!r.exception.values||!i||!Je(i.originalException,Error))return r;const o=io(t,n,i.originalException,e);return r.exception.values=[...o,...r.exception.values],r}function io(t,e,n,r,i=[]){if(!Je(n[r],Error)||i.length+1>=e)return i;const o=Qi(t,n[r]);return io(t,e,n[r],r,[o,...i])}class Be{constructor(){Be.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Be.id}setupOnce(){ur(e=>{if(M().getIntegration(Be)){if(!x.navigator&&!x.location&&!x.document)return e;const n=e.request&&e.request.url||x.location&&x.location.href,{referrer:r}=x.document||{},{userAgent:i}=x.navigator||{},o={...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},s={...e.request,...n&&{url:n},headers:o};return{...e,request:s}}return e})}}Be.__initStatic();class Ce{constructor(){Ce.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Ce.id}setupOnce(e,n){const r=i=>{if(i.type)return i;const o=n().getIntegration(Ce);if(o){try{if(Cl(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,e(r)}}Ce.__initStatic();function Cl(t,e){return e?!!(Ll(t,e)||$l(t,e)):!1}function Ll(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!so(t,e)||!oo(t,e))}function $l(t,e){const n=Wr(e),r=Wr(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!so(t,e)||!oo(t,e))}function oo(t,e){let n=Kr(t),r=Kr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&T.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const t=M();t.captureSession&&(Vr(t),fe("history",({from:e,to:n})=>{e===void 0||e===n||Vr(M())}))}const sf=()=>{var t;try{Yl({dsn:"https://eb3beeb1730f4b4ba370da800f9f91ed@o298402.ingest.sentry.io/4504678972260352",release:"psxdesign@1.6.7",environment:"production",tracesSampleRate:1,initialScope:{tags:{"ps-version":(t=document.getElementById("shop_version"))==null?void 0:t.innerHTML}}})}catch(e){console.error(e)}};export{ef as A,Ss as B,Le as C,te as D,Ia as E,Ln as F,nt as G,qo as H,Pe as I,z as J,To as K,Wo as L,us as M,Pn as P,I as _,Wl as a,xn as b,Ql as c,zl as d,Jl as e,Kl as f,X as g,Vl as h,sf as i,Xl as j,Jr as k,tf as l,Zl as m,U as n,O as o,en as p,nf as q,Xr as r,_o as s,of as t,rf as u,$ as v,xt as w,E as x,Si as y,ce as z};