PageSourceSearch

https://go.chatway.app/assets/vendor-integrations-BXeksRug.js

js chatway.app collected 2026-09-24 15:34:28 UTC 160,195 bytes, 6 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`release-202609241050`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`94cb74d5-319f-474d-aed7-c7b054f0c418`,e._sentryDebugIdIdentifier=`sentry-dbid-94cb74d5-319f-474d-aed7-c7b054f0c418`)}catch{}})();import{A as e,Ft as t,I as n,It as r,M as i,Nt as a,b as o,et as s,gt as c,j as l,k as u,ot as d,x as f}from"./vendor-vue-core-B0avW4A6.js";var p=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,m=`8.47.0`,h=globalThis;function g(e,t,n){let r=n||h,i=r.__SENTRY__=r.__SENTRY__||{},a=i[m]=i[`8.47.0`]||{};return a[e]||(a[e]=t())}var _=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ee=`Sentry Logger `,te=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],ne={};function v(e){if(!(`console`in h))return e();let t=h.console,n={},r=Object.keys(ne);r.forEach(e=>{let r=ne[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function re(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return _?te.forEach(n=>{t[n]=(...t)=>{e&&v(()=>{h.console[n](`${ee}[${n}]:`,...t)})}}):te.forEach(e=>{t[e]=()=>void 0}),t}var y=g(`logger`,re),ie=50,ae=/\(error: (.*)\)/,oe=/captureMessage|captureException/;function se(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2`);for(let e=n;e<a.length;e++){let n=a[e];if(n.length>1024)continue;let o=ae.test(n)?n.replace(ae,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ie+r)break}}return le(i.slice(r))}}function ce(e){return Array.isArray(e)?se(...e):e}function le(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ue(t).function||``)&&t.pop(),t.reverse(),oe.test(ue(t).function||``)&&(t.pop(),oe.test(ue(t).function||``)&&t.pop()),t.slice(0,ie).map(e=>({...e,filename:e.filename||ue(t).filename,function:e.function||`?`}))}function ue(e){return e[e.length-1]||{}}var de=`<anonymous>`;function b(e){try{return!e||typeof e!=`function`?de:e.name||de}catch{return de}}function fe(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var pe={},me={};function x(e,t){pe[e]=pe[e]||[],pe[e].push(t)}function he(e,t){if(!me[e]){me[e]=!0;try{t()}catch(t){_&&y.error(`Error while instrumenting ${e}`,t)}}}function S(e,t){let n=e&&pe[e];if(n)for(let r of n)try{r(t)}catch(t){_&&y.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${b(r)}\nError:`,t)}}var ge=null;function _e(e){let t=`error`;x(t,e),he(t,ve)}function ve(){ge=h.onerror,h.onerror=function(e,t,n,r,i){return S(`error`,{column:r,error:i,line:n,msg:e,url:t}),ge?ge.apply(this,arguments):!1},h.onerror.__SENTRY_INSTRUMENTED__=!0}var ye=null;function be(e){let t=`unhandledrejection`;x(t,e),he(t,xe)}function xe(){ye=h.onunhandledrejection,h.onunhandledrejection=function(e){return S(`unhandledrejection`,e),ye?ye.apply(this,arguments):!0},h.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Se(){return Ce(h),h}function Ce(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`8.47.0`,t[m]=t[`8.47.0`]||{}}var we=Object.prototype.toString;function Te(e){switch(we.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return w(e,Error)}}function Ee(e,t){return we.call(e)===`[object ${t}]`}function De(e){return Ee(e,`ErrorEvent`)}function Oe(e){return Ee(e,`DOMError`)}function ke(e){return Ee(e,`DOMException`)}function C(e){return Ee(e,`String`)}function Ae(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function je(e){return e===null||Ae(e)||typeof e!=`object`&&typeof e!=`function`}function Me(e){return Ee(e,`Object`)}function Ne(e){return typeof Event<`u`&&w(e,Event)}function Pe(e){return typeof Element<`u`&&w(e,Element)}function Fe(e){return Ee(e,`RegExp`)}function Ie(e){return!!(e&&e.then&&typeof e.then==`function`)}function Le(e){return Me(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function w(e,t){try{return e instanceof t}catch{return!1}}function Re(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}var ze=h,Be=80;function Ve(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Be;for(;n&&i++<5&&(o=He(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function He(e,t){let n=e,r=[];if(!n||!n.tagName)return``;if(ze.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
2if(i&&i.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&C(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Ue(){try{return ze.document.location.href}catch{return``}}function We(e){if(!ze.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ge(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ke(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Re(r)?n.push(`[VueViewModel]`):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function qe(e,t,n=!1){return C(e)?Fe(t)?t.test(e):C(t)?n?e===t:e.includes(t):!1:!1}function Je(e,t=[],n=!1){return t.some(t=>qe(e,t,n))}function T(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i==`function`&&Ye(i,r);try{e[t]=i}catch{_&&y.log(`Failed to replace method "${t}" in object`,e)}}function E(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{_&&y.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ye(e,t){try{e.prototype=t.prototype=t.prototype||{},E(e,`__sentry_original__`,t)}catch{}}function Xe(e){return e.__sentry_original__}function Ze(e){if(Te(e))return{message:e.message,name:e.name,stack:e.stack,...$e(e)};if(Ne(e)){let t={type:e.type,target:Qe(e.target),currentTarget:Qe(e.currentTarget),...$e(e)};return typeof CustomEvent<`u`&&w(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Qe(e){try{return Pe(e)?Ve(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function $e(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function et(e,t=40){let n=Object.keys(Ze(e));n.sort();let r=n[0];if(!r)return`[object has no keys]`;if(r.length>=t)return Ge(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:Ge(r,t)}return``}function D(e){return tt(e,new Map)}function tt(e,t){if(nt(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let n of Object.getOwnPropertyNames(e))e[n]!==void 0&&(r[n]=tt(e[n],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(e=>{r.push(tt(e,t))}),r}return e}function nt(e){if(!Me(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t===`Object`}catch{return!0}}var rt=1e3;function it(){return Date.now()/rt}function at(){let{performance:e}=h;if(!e||!e.now)return it;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/rt}var O=at(),ot=(()=>{let{performance:e}=h;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,s=typeof o==`number`?Math.abs(o+n-r):t;return a||s<t?i<=s?e.timeOrigin:o:r})();function k(){let e=h,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,``);t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(n()&15)>>e/4).toString(16))}function st(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function A(e){let{message:t,event_id:n}=e;if(t)return t;let r=st(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function ct(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function lt(e,t){let n=st(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i&&i.data,...t.data};n.mechanism.data=e}}function ut(e){if(dt(e))return!0;try{E(e,`__sentry_captured__`,!0)}catch{}return!1}function dt(e){try{return e.__sentry_captured__}catch{}}var j;(function(e){e[e.PENDING=0]=`PENDING`,e[e.RESOLVED=1]=`RESOLVED`,e[e.REJECTED=2]=`REJECTED`})(j||={});function M(e){return new pt(t=>{t(e)})}function ft(e){return new pt((t,n)=>{n(e)})}var pt=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=j.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
2{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=e=>{this._setResult(j.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(j.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===j.PENDING){if(Ie(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===j.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===j.RESOLVED&&e[1](this._value),this._state===j.REJECTED&&e[2](this._value),!0)})}}};function mt(e){let t=O(),n={sid:k(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>_t(n)};return e&&ht(n,e),n}function ht(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||O(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:k()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function gt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),ht(e,n)}function _t(e){return D({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function vt(){return k()}function yt(){return k().substring(16)}function bt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=bt(r[e],t[e],n-1));return r}var xt=`_sentrySpan`;function St(e,t){t?E(e,xt,t):delete e[xt]}function Ct(e){return e[xt]}var wt=100,N=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:vt(),spanId:yt()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,St(t,Ct(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ht(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t=typeof e==`function`?e(this):e,[n,r]=t instanceof N?[t.getScopeData(),t.getRequestSession()]:Me(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),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._session=void 0,St(this,void 0),this._attachments=[],this.setPropagationContext({traceId:vt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:wt;if(n<=0)return this;let r={timestamp:it(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ct(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=bt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:yt(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:k();if(!this._client)return y.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:k();if(!this._client)return y.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:k();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(y.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function Tt(){return g(`defaultCurrentScope`,()=>new N)}function Et(){return g(`defaultIsolationScope`,()=>new N)}var Dt=class{constructor(e,t){let n;n=e||new N;let r;r=t||new N,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Ie(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ot(){let e=Ce(Se());return e.stack=e.stack||new Dt(Tt(),Et())}function kt(e){return Ot().withScope(e)}function At(e,t){let n=Ot();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function jt(e){return Ot().withScope(()=>e(Ot().getIsolationScope()))}function Mt(){return{withIsolationScope:jt,withScope:kt,withSetScope:At,withSetIsolationScope:(e,t)=>jt(t),getCurrentScope:()=>Ot().getScope(),getIsolationScope:()=>Ot().getIsolationScope()}}function Nt(e){let t=Ce(e);return t.acs?t.acs:Mt()}function P(){return Nt(Se()).getCurrentScope()}function F(){return Nt(Se()).getIsolationScope()}function Pt(){return g(`globalScope`,()=>new N)}function Ft(...e){let t=Nt(Se());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function I(){return P().getClient()}function It(e){let{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return D({trace_id:t,span_id:n,parent_span_id:r})}var Lt=`_sentryMetrics`;function Rt(e){let t=e[Lt];if(!t)return;let n={};for(let[,[e,r]]of t)(n[e]||(n[e]=[])).push(D(r));return n}var zt=`sentry.source`,Bt=`sentry.sample_rate`,Vt=`sentry.op`,Ht=`sentry.origin`,Ut=`sentry.measurement_unit`,Wt=`sentry.measurement_value`,Gt=`sentry.custom_span_name`,Kt=`sentry.profile_id`,qt=`sentry.exclusive_time`,Jt=/^sentry-/;function Yt(e){let t=Xt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Jt)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Xt(e){if(!(!e||!C(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Zt(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Zt(e)}function Zt(e){return e.split(`,`).map(e=>e.split(`=`).map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Qt=!1;function $t(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=L(e);return D({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function en(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext();return D({parent_span_id:r?t:L(e).parent_span_id,span_id:r?yt():t,trace_id:n})}function tn(e){return typeof e==`number`?nn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nn(e.getTime()):O()}function nn(e){return e>9999999999?e/1e3:e}function L(e){if(an(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(rn(e)){let{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return D({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:tn(i),timestamp:tn(o)||void 0,status:sn(c),op:r[Vt],origin:r[Ht],_metrics_summary:Rt(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function rn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function an(e){return typeof e.getSpanJSON==`function`}function on(e){let{traceFlags:t}=e.spanContext();return t===1}function sn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`unknown_error`}var cn=`_sentryChildSpans`,ln=`_sentryRootSpan`;function un(e,t){E(t,ln,e[ln]||e),e[cn]?e[cn].add(t):E(e,cn,new Set([t]))}function dn(e){let t=new Set;function n(e){if(!t.has(e)&&on(e)){t.add(e);let r=e[cn]?Array.from(e[cn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function R(e){return e[ln]||e}function fn(){let e=Nt(Se());return e.getActiveSpan?e.getActiveSpan():Ct(P())}function pn(){Qt||=(v(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
2sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),!0)}var mn=`_sentryScope`,hn=`_sentryIsolationScope`;function gn(e,t,n){e&&(E(e,hn,n),E(e,mn,t))}function _n(e){return{scope:e[mn],isolationScope:e[hn]}}function vn(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=I(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||`tracesSampleRate`in n||`tracesSampler`in n)}var yn=class{constructor(e={}){this._traceId=e.traceId||vt(),this._spanId=e.spanId||yt()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}},bn=`production`,xn=`_frozenDsc`;function Sn(e,t){E(e,xn,t)}function Cn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=D({environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e});return t.emit(`createDsc`,i),i}function wn(e,t){let n=t.getPropagationContext();return n.dsc||Cn(n.traceId,e)}function Tn(e){let t=I();if(!t)return{};let n=R(e),r=n[xn];if(r)return r;let i=n.spanContext().traceState,a=i&&i.get(`sentry.dsc`),o=a&&Yt(a);if(o)return o;let s=Cn(e.spanContext().traceId,t),c=L(n),l=c.data||{},u=l[Bt];u!=null&&(s.sample_rate=`${u}`);let d=l[zt],f=c.description;return d!==`url`&&f&&(s.transaction=f),vn()&&(s.sampled=String(on(n))),t.emit(`createDsc`,s,n),s}function En(e){if(!p)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=L(e),{spanId:i}=e.spanContext(),a=on(e),o=R(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=L(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}y.log(`${c}
3  ${l.join(`
4  `)}`)}function Dn(e){if(!p)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=L(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${R(e)===e?`root `:``}span "${t}" with ID ${r}`;y.log(i)}function On(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(typeof t!=`number`||isNaN(t)||t<0||t>1){p&&y.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}
4function kn(e,t){if(!vn(e))return[!1];let n;n=typeof e.tracesSampler==`function`?e.tracesSampler(t):t.parentSampled===void 0?e.tracesSampleRate===void 0?1:e.tracesSampleRate:t.parentSampled;let r=On(n);return r===void 0?(p&&y.warn(`[Tracing] Discarding transaction because of invalid sample rate.`),[!1]):r?Math.random()<r?[!0,r]:(p&&y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(p&&y.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,r])}var An=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jn(e){return e===`http`||e===`https`}function Mn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Nn(e){let t=An.exec(e);if(!t){v(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Pn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Pn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Fn(e){if(!_)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(y.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?jn(r)?t&&isNaN(parseInt(t,10))?(y.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(y.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(y.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function In(e){let t=typeof e==`string`?Nn(e):Pn(e);if(!(!t||!Fn(t)))return t}function Ln(){let e=typeof WeakSet==`function`,t=e?new WeakSet:[];
4function n(n){if(e)return t.has(n)?!0:(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1}function r(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}return[n,r]}function z(e,t=100,n=1/0){try{return zn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Rn(e,t=3,n=100*1024){let r=z(e,t);return Un(r)>n?Rn(e,t-1,n):r}function zn(e,t,n=1/0,r=1/0,i=Ln()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Bn(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return zn(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Ze(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=zn(e,t,c-1,r,i),d++}return o(t),u}function Bn(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Re(t))return`[VueViewModel]`;if(Le(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${b(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=Vn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Vn(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:`null prototype`}function Hn(e){return~-encodeURI(e).split(/%..|./).length}function Un(e){return Hn(JSON.stringify(e))}function B(e,t=[]){return[e,t]}function Wn(e,t){let[n,r]=e;return[n,[...r,t]]}function Gn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Kn(e){return h.__SENTRY__&&h.__SENTRY__.encodePolyfill?h.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function qn(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Kn(r),e]:r.push(typeof e==`string`?Kn(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(z(n))}i(e)}}return typeof r==`string`?r:Jn(r)}function Jn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Yn(e){return[{type:`span`},e]}function Xn(e){let t=typeof e.data==`string`?Kn(e.data):e.data;return[D({type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var Zn={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,statsd:`metric_bucket`,raw_security:`security`};function Qn(e){return Zn[e]}function $n(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function er(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Mn(r)},...i&&{trace:D({...i})}}}function tr(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]],e):e}function nr(e,t,n,r){let i=$n(n);return B({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Mn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function rr(e,t,n,r){let i=$n(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;tr(e,n&&n.sdk);let o=er(e,i,r,t);return delete e.sdkProcessingMetadata,B(o,[[{type:a},e]])}function ir(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Tn(e[0]),i=t&&t.getDsn(),a=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Mn(i)}},s=t&&t.getOptions().beforeSendSpan,c=s?e=>{let t=s(L(e));return t||pn(),t}:e=>L(e),l=[];for(let t of e){let e=c(t);e&&l.push(Yn(e))}return B(o,l)}function ar(e){if(!e||e.length===0)return;let t={};
4return e.forEach(e=>{let n=e.attributes||{},r=n[Ut],i=n[Wt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var or=1e3,sr=class{constructor(e={}){this._traceId=e.traceId||vt(),this._spanId=e.spanId||yt(),this._startTime=e.startTimestamp||O(),this._attributes={},this.setAttributes({[Ht]:`manual`,[Vt]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=tn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(zt,`custom`),this}end(e){this._endTime||(this._endTime=tn(e),Dn(this),this._onSpanEnded())}getSpanJSON(){return D({data:this._attributes,description:this._name,op:this._attributes[Vt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:sn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ht],_metrics_summary:Rt(this),profile_id:this._attributes[Kt],exclusive_time:this._attributes[qt],measurements:ar(this._events),is_segment:this._isStandaloneSpan&&R(this)===this||void 0,segment_id:this._isStandaloneSpan?R(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){p&&y.log(`[Tracing] Adding an event to span:`,e);let r=cr(t)?t:n||O(),i=cr(t)?{}:t||{},a={name:e,time:tn(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=I();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===R(this)))return;if(this._isStandaloneSpan){this._sampled?dr(ir([this],e)):(p&&y.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}let t=this._convertSpanToTransaction();t&&(_n(this).scope||P()).captureEvent(t)}_convertSpanToTransaction(){if(!lr(L(this)))return;this._name||=(p&&y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=_n(this),n=(e||P()).getClient()||I();if(this._sampled!==!0){p&&y.log(`[Tracing] Discarding transaction because its trace was not chosen to be sampled.`),n&&n.recordDroppedEvent(`sample_rate`,`transaction`);return}let r=dn(this).filter(e=>e!==this&&!ur(e)).map(e=>L(e)).filter(lr),i=this._attributes[zt];delete this._attributes[Gt],r.forEach(e=>{e.data&&delete e.data[`sentry.custom_span_name`]});let a={contexts:{trace:$t(this)},spans:r.length>
4or?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,or):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...D({dynamicSamplingContext:Tn(this)})},_metrics_summary:Rt(this),...i&&{transaction_info:{source:i}}},o=ar(this._events);return o&&Object.keys(o).length&&(p&&y.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(o,void 0,2)),a.measurements=o),a}};function cr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function lr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ur(e){return e instanceof sr&&e.isStandaloneSpan()}function dr(e){let t=I();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}var fr=`__SENTRY_SUPPRESS_TRACING__`;function pr(e){let t=_r();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=gr(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>Ft(e.scope,t):i===void 0?e=>e():e=>mr(i,e))(()=>{let t=P(),i=br(t);return e.onlyIfParent&&!i?new yn:hr({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}function mr(e,t){let n=_r();return n.withActiveSpan?n.withActiveSpan(e,t):Ft(n=>(St(n,e||void 0),t(n)))}function hr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!vn())return new yn;let i=F(),a;if(e&&!n)a=yr(e,r,t),un(e,a);else if(e){let n=Tn(e),{traceId:i,spanId:o}=e.spanContext(),s=on(e);a=vr({traceId:i,parentSpanId:o,...t},r,s),Sn(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=vr({traceId:e,parentSpanId:o,...t},r,s),n&&Sn(a,n)}return En(a),gn(a,r,i),a}function gr(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=tn(e.startTime),delete n.startTime,n}return t}function _r(){return Nt(Se())}function vr(e,t,n){let r=I(),i=r&&r.getOptions()||{},{name:a=``,attributes:o}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[fr]?[!1]:kn(i,{name:a,parentSampled:n,attributes:o,transactionContext:{name:a,parentSampled:n}}),l=new sr({...e,attributes:{[zt]:`custom`,...e.attributes},sampled:s});return c!==void 0&&l.setAttribute(Bt,c),r&&r.emit(`spanStart`,l),l}function yr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[fr]?!1:on(e),o=a?new sr({...n,parentSpanId:r,traceId:i,sampled:a}):new yn({traceId:i});un(e,o);let s=I();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function br(e){let t=Ct(e);if(!t)return;let n=I();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?R(t):t}function xr(e,t,n,r=0){return new pt((i,a)=>{let o=e[r];if(t===null||typeof o!=`function`)i(t);else{let s=o({...t},n);p&&o.id&&s===null&&y.log(`Event processor "${o.id}" dropped event`),Ie(s)?s.then(t=>xr(e,t,n,r+1).then(i)).then(null,a):xr(e,s,n,r+1).then(i).then(null,a)}})}var Sr,Cr,wr;function Tr(e){let t=h._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return wr&&n.length===Cr?wr:(Cr=n.length,wr=n.reduce((n,r)=>{Sr||={};let i=Sr[r];if(i)n[i[0]]=i[1];else{let i=e(r);for(let e=i.length-1;e>=0;e--){let a=i[e],o=a&&a.filename,s=t[r];if(o&&s){n[o]=s,Sr[r]=[o,s];break}}}return n},{}),wr)}function Er(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;kr(e,t),r&&Mr(e,r),Nr(e,n),Ar(e,i),jr(e,a)}function Dr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;Or(e,`extra`,n),Or(e,`tags`,r),Or(e,`user`,i),Or(e,`contexts`,a),e.sdkProcessingMetadata=bt(e.sdkProcessingMetadata,s,2),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Or(e,t,n){e[t]=bt(e[t],n,1)}function kr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=D(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let l=D(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let u=D(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=D(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Ar(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function jr(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Mr(e,t){e.contexts={trace:en(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Tn(t),...e.sdkProcessingMetadata};let n=L(R(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Nr(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Pr(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||k(),timestamp:t.timestamp||it()},l=n.integrations||e.integrations.map(e=>e.name);Fr(c,e),Rr(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Ir(c,e.stackParser);let u=Br(r,n.captureContext);n.mechanism&&lt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Pt().getScopeData();a&&Dr(f,a.getScopeData()),u&&Dr(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),Er(c,f),xr([...d,...f.eventProcessors],c,n).then(e=>(e&&Lr(e),typeof o==`number`&&o>0?zr(e,o,s):e))}function Fr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&=Ge(e.message,a);let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Ge(o.value,a));let s=e.request;s&&s.url&&(s.url=Ge(s.url,a))}function Ir(e,t){let n=Tr(t);
4try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch{}}function Lr(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Rr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zr(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:z(e.data,t,n)}}))},...e.user&&{user:z(e.user,t,n)},...e.contexts&&{contexts:z(e.contexts,t,n)},...e.extra&&{extra:z(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=z(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:z(e.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=z(e.contexts.flags,3,n)),r}function Br(e,t){if(!t)return e;let n=e?e.clone():new N;return n.update(t),n}function Vr(e){if(e)return Hr(e)||Wr(e)?{captureContext:e}:e}function Hr(e){return e instanceof N||typeof e==`function`}var Ur=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`requestSession`,`propagationContext`];function Wr(e){return Object.keys(e).some(e=>Ur.includes(e))}function Gr(e,t){return P().captureException(e,Vr(t))}function Kr(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return P().captureMessage(e,n,r)}function qr(e,t){return P().captureEvent(e,t)}function Jr(e,t){F().setContext(e,t)}function Yr(e){F().setUser(e)}function Xr(e){F().addEventProcessor(e)}function Zr(e){let t=I(),n=F(),r=P(),{release:i,environment:a=bn}=t&&t.getOptions()||{},{userAgent:o}=h.navigator||{},s=mt({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status===`ok`&&ht(c,{status:`exited`}),Qr(),n.setSession(s),r.setSession(s),s}function Qr(){let e=F(),t=P(),n=t.getSession()||e.getSession();n&&gt(n),$r(),e.setSession(),t.setSession()}function $r(){let e=F(),t=P(),n=I(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ei(e=!1){if(e){Qr();return}$r()}var ti=`7`;function ni(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function ri(e){return`${ni(e)}${e.projectId}/envelope/`}function ii(e,t){let n={sentry_version:ti};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function ai(e,t,n){return t||`${ri(e)}?${ii(e,n)}`}var oi=[];function si(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function ci(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;let i=si(r),a=i.findIndex(e=>e.name===`Debug`);if(a>-1){let[e]=i.splice(a,1);i.push(e)}return i}function li(e,t){let n={};return t.forEach(t=>{t&&di(e,t,n)}),n}function ui(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function di(e,t,n){if(n[t.name]){p&&y.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,oi.indexOf(t.name)===-1&&typeof t.setupOnce==`function`&&(t.setupOnce(),oi.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}p&&y.log(`Integration installed: ${t.name}`)}function V(e){return e}function fi(e,t,n){let r=[{type:`client_report`},{timestamp:n||it(),discarded_events:e}];return B(t?{dsn:t}:{},[r])}
4var H=class extends Error{constructor(e,t=`warn`){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}},pi=`Not capturing exception because it's already been captured.`,mi=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=In(e.dsn):p&&y.warn(`No DSN provided, client will not send events.`),this._dsn){let t=ai(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}let t=[`enableTracing`,`tracesSampleRate`,`tracesSampler`].find(t=>t in e&&e[t]==null);t&&v(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){let r=k();if(ut(e))return p&&y.log(pi),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:k(),...n},a=Ae(e)?e:String(e),o=je(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=k();if(t&&t.originalException&&ut(t.originalException))return p&&y.log(pi),r;let i={event_id:r,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){typeof e.release==`string`?(this.sendSession(e),ht(e,{init:!1})):p&&y.warn(`Discarded session because of missing or non-string release`)}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
4return t?(this.emit(`flush`),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):M(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit(`close`),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];di(this,e,this._integrations),t||ui(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=rr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=Wn(n,Xn(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit(`afterSendEvent`,e,t),null)}sendSession(e){let t=nr(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=typeof n==`number`?n:1,i=`${e}:${t}`;p&&y.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(p&&y.error(`Error while sending envelope:`,e),e)):(p&&y.error(`Transport disabled`),M({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=li(this,e),ui(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&t.handled===!1){n=!0;break}}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ht(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new pt(t=>{let n=0,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n=P(),r=F()){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Pr(i,e,t,n,this,r).then(e=>e===null?e:(e.contexts={trace:It(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:wn(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(p){let t=e;t.logLevel===`log`?y.log(t.message):y.warn(t)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,a=vi(e),o=_i(e),s=e.type||`error`,c=`before send for type \`${s}\``,l=i===void 0?void 0:On(i);if(o&&typeof l==`number`&&Math.random()>l)return this.recordDroppedEvent(`sample_rate`,`error`,e),ft(new H(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,`log`));let u=s===`replay_event`?`replay`:s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(n===null)throw this.recordDroppedEvent(`event_processor`,u,e),new H("An event processor returned `null`, will not send event.",`log`);return t.data&&t.data.__sentry__===!0?n:hi(gi(this,r,n,t),c)}).then(r=>{if(r===null){if(this.recordDroppedEvent(`before_send`,u,e),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw new H(`${c} returned \`null\`, will not send event.`,`log`)}let i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let o=r.transaction_info;return a&&o&&r.transaction!==e.transaction&&(r.transaction_info={...o,source:`custom`}),this.sendEvent(r,t),r}).then(null,e=>{throw e instanceof H?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new H(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){p&&y.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){p&&y.log(`No outcomes to send`);return}if(!this._dsn){p&&y.log(`No dsn provided, will not send outcomes`);return}p&&y.log(`Sending outcomes:`,e);let t=fi(e,this._options.tunnel&&Mn(this._dsn));this.sendEnvelope(t)}};function hi(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Ie(e))return e.then(e=>{if(!Me(e)&&e!==null)throw new H(n);return e},e=>{throw new H(`${t} rejected with ${e}`)});if(!Me(e)&&e!==null)throw new H(n);return e}function gi(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o}=t;if(_i(n)&&i)return i(n,r);if(vi(n)){if(n.spans&&o){let t=[];for(let r of n.spans){let n=o(r);n?t.push(n):(pn(),e.recordDroppedEvent(`before_send`,`span`))}n.spans=t}if(a){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(n,r)}}return n}function _i(e){return e.type===void 0}function vi(e){return e.type===`transaction`}function yi(e,t){t.debug===!0&&(p?y.enable():v(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),P().update(t.initialScope);let n=new e(t);return bi(n),n.init(),n}function bi(e){P().setClient(e)}function xi(e){let t=[];function n(){return e===void 0||t.length<e}function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}function i(e){if(!n())return ft(new H(`Not adding Promise because buffer limit was reached.`));let i=e();return t.indexOf(i)===-1&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i}function a(e){return new pt((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);
4t.forEach(e=>{M(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}return{$:t,add:i,drain:a}}var Si=60*1e3;function Ci(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Si:r-t}function wi(e,t){return e[t]||e.all||0}function Ti(e,t,n=Date.now()){return wi(e,t)>n}function Ei(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n&&n[`x-sentry-rate-limits`],o=n&&n[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Ci(o,r):t===429&&(i.all=r+60*1e3);return i}function Di(e,t,n=xi(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Gn(i,(t,n)=>{let i=Qn(n);if(Ti(r,i)){let r=Oi(t,n);e.recordDroppedEvent(`ratelimit_backoff`,i,r)}else a.push(t)}),a.length===0)return M({});let o=B(i[0],a),s=t=>{Gn(o,(n,r)=>{let i=Oi(n,r);e.recordDroppedEvent(t,Qn(r),i)})};return n.add(()=>t({body:qn(o)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&p&&y.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Ei(r,e),e),e=>{throw s(`network_error`),e})).then(e=>e,e=>{if(e instanceof H)return p&&y.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),M({});throw e})}return{send:a,flush:i}}function Oi(e,t){if(!(t!==`event`&&t!==`transaction`))return Array.isArray(e)?e[1]:void 0}function ki(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return ji(e,n)||Ai(e,r)}function Ai(e,t){return t?Mi(e)===Mi(t):!1}function ji(e,t){return t?e.includes(t.host):!1}function Mi(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function Ni(e,t,n=[t],r=`npm`){let i=e._metadata||{};i.sdk||={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:m})),version:m},e._metadata=i}var Pi=100;function U(e,t){let n=I(),r=F();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Pi}=n.getOptions();if(a<=0)return;let o={timestamp:it(),...e},s=i?v(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Fi,Ii=`FunctionToString`,Li=new WeakMap,Ri=V((()=>({name:Ii,setupOnce(){Fi=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Xe(this),n=Li.has(I())&&t!==void 0?t:this;return Fi.apply(n,e)}}catch{}},setup(e){Li.set(e,!0)}}))),zi=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,`undefined is not an object (evaluating 'a.L')`,`can't redefine non-configurable property "solana"`,`vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)`,`Can't find variable: _AutofillCallbackHandler`,/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Bi=`InboundFilters`,Vi=V(((e={})=>({name:Bi,processEvent(t,n,r){return Ui(t,Hi(e,r.getOptions()))?null:t}})));function Hi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:zi],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal===void 0?!0:e.ignoreInternal}}function Ui(e,t){return t.ignoreInternal&&Yi(e)?(p&&y.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${A(e)}`),!0):Wi(e,t.ignoreErrors)?(p&&y.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${A(e)}`),!0):Qi(e)?(p&&y.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${A(e)}`),!0):Gi(e,t.ignoreTransactions)?(p&&y.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${A(e)}`),!0):Ki(e,t.denyUrls)?(p&&y.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${A(e)}.\nUrl: ${Zi(e)}`),!0):qi(e,t.allowUrls)?!1:(p&&y.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${A(e)}.\nUrl: ${Zi(e)}`),!0)}function Wi(e,t){return e.type||!t||!t.length?!1:Ji(e).some(e=>Je(e,t))}function Gi(e,t){if(e.type!==`transaction`||!t||!t.length)return!1;let n=e.transaction;return n?Je(n,t):!1}function Ki(e,t){if(!t||!t.length)return!1;let n=Zi(e);return n?Je(n,t):!1}function qi(e,t){if(!t||!t.length)return!0;let n=Zi(e);return n?Je(n,t):!0}function Ji(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Yi(e){try{return e.exception.values[0].type===`SentryError`}catch{}return!1}function Xi(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Zi(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Xi(t):null}catch{return p&&y.error(`Cannot extract url for event ${A(e)}`),null}}function Qi(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value)}function $i(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!w(o.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=ra(ea(e,t,i,o.originalException,r,a.exception.values,s,0),n))}
4function ea(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(w(r[i],Error)){ta(o,s);let a=e(t,r[i]),l=c.length;na(a,i,l,s),c=ea(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,a)=>{if(w(r,Error)){ta(o,s);let l=e(t,r),u=c.length;na(l,`errors[${a}]`,u,s),c=ea(e,t,n,r,i,[l,...c],l,u)}}),c}function ta(e,t){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,...e.type===`AggregateError`&&{is_exception_group:!0},exception_id:t}}function na(e,t,n,r){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function ra(e,t){return e.map(e=>(e.value&&=Ge(e.value,t),e))}function ia(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function aa(e){let t=`console`;x(t,e),he(t,oa)}function oa(){`console`in h&&te.forEach(function(e){e in h.console&&T(h.console,e,function(t){return ne[e]=t,function(...t){S(`console`,{args:t,level:e});let n=ne[e];n&&n.apply(h.console,t)}})})}function sa(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var ca=`Dedupe`,la=V((()=>{let e;return{name:ca,processEvent(t){if(t.type)return t;try{if(ua(t,e))return p&&y.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function ua(e,t){return t?!!(da(e,t)||fa(e,t)):!1}function da(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ma(e,t)||!pa(e,t))}function fa(e,t){let n=ha(t),r=ha(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ma(e,t)||!pa(e,t))}function pa(e,t){let n=fe(e),r=fe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function ma(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function ha(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ga(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var _a=h;function va(){if(!(`fetch`in _a))return!1;try{return new Headers,new Request(`http://www.example.com`),new Response,!0}catch{return!1}}function ya(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ba(){if(typeof EdgeRuntime==`string`)return!0;if(!va())return!1;if(ya(_a.fetch))return!0;let e=!1,t=_a.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);
4n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ya(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){_&&y.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function xa(e,t){let n=`fetch`;x(n,e),he(n,()=>Sa(void 0,t))}function Sa(e,t=!1){t&&!ba()||T(h,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Ta(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:O()*1e3,virtualError:r};return e||S(`fetch`,{...o}),t.apply(h,n).then(async t=>(e?e(t):S(`fetch`,{...o,endTimestamp:O()*1e3,response:t}),t),e=>{throw S(`fetch`,{...o,endTimestamp:O()*1e3,error:e}),Te(e)&&e.stack===void 0&&(e.stack=r.stack,E(e,`framesToPop`,1)),e})}})}function Ca(e,t){return!!e&&typeof e==`object`&&!!e[t]}function wa(e){return typeof e==`string`?e:e?Ca(e,`url`)?e.url:e.toString?e.toString():``:``}function Ta(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:wa(t),method:Ca(n,`method`)?String(n.method).toUpperCase():`GET`}}let t=e[0];return{url:wa(t),method:Ca(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ea(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Da(){return`npm`}function Oa(){return!Ea()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function ka(){return typeof window<`u`&&(!Oa()||Aa())}function Aa(){let e=h.process;return!!e&&e.type===`renderer`}var ja=h;function Ma(){let e=ja.chrome,t=e&&e.app&&e.app.runtime,n=`history`in ja&&!!ja.history.pushState&&!!ja.history.replaceState;return!t&&n}function Na(e,t){return e??t()}function Pa(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}var W=h,Fa=0;function Ia(){return Fa>0}function La(){Fa++,setTimeout(()=>{Fa--})}function Ra(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Xe(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>Ra(e,t));return e.apply(this,r)}catch(e){throw La(),Ft(r=>{r.addEventProcessor(e=>(t.mechanism&&(ct(e,void 0,void 0),lt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Gr(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Ye(r,e),E(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,`name`,{get(){return e.name}})}catch{}return r}var za=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Ba(e,t){let n=Ua(e,t),r={type:Ja(t),value:Ya(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Va(e,t,n,r){let i=I(),a=i&&i.getOptions().normalizeDepth,o=no(t),s={__serialized__:Rn(t,a)};if(o)return{exception:{values:[Ba(e,o)]},extra:s};let c={exception:{values:[{type:Ne(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:eo(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=Ua(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Ha(e,t){return{exception:{values:[Ba(e,t)]}}}function Ua(e,t){let n=t.stacktrace||t.stack||``,r=Ga(t),i=Ka(t);try{return e(n,r,i)}catch{}return[]}var Wa=/Minified React error #\d+;/i;function Ga(e){return e&&Wa.test(e.message)?1:0}function Ka(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function qa(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Ja(e){let t=e&&e.name;return!t&&qa(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ya(e){let t=e&&e.message;return t?t.error&&typeof t.error.message==`string`?t.error.message:qa(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:`No error message`}function Xa(e,t,n,r){let i=Qa(e,t,n&&n.syntheticException||void 0,r);
4return lt(i),i.level=`error`,n&&n.event_id&&(i.event_id=n.event_id),M(i)}function Za(e,t,n=`info`,r,i){let a=$a(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),M(a)}function Qa(e,t,n,r,i){let a;if(De(t)&&t.error)return Ha(e,t.error);if(Oe(t)||ke(t)){let i=t;if(`stack`in t)a=Ha(e,t);else{let t=i.name||(Oe(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=$a(e,o,n,r),ct(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Te(t)?Ha(e,t):Me(t)||Ne(t)?(a=Va(e,t,n,i),lt(a,{synthetic:!0}),a):(a=$a(e,t,n,r),ct(a,`${t}`,void 0),lt(a,{synthetic:!0}),a)}function $a(e,t,n,r){let i={};if(r&&n){let r=Ua(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),lt(i,{synthetic:!0})}if(Ae(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function eo(e,{isUnhandledRejection:t}){let n=et(e),r=t?`promise rejection`:`exception`;return De(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ne(e)?`Event \`${to(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function to(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function no(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function ro(e,{metadata:t,tunnel:n,dsn:r}){return B({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Mn(r)}},[io(e)])}function io(e){return[{type:`user_report`},e]}var ao=class extends mi{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};Ni(t,`browser`,[`browser`],W.SENTRY_SDK_SOURCE||Da()),super(t),t.sendClientReports&&W.document&&W.document.addEventListener(`visibilitychange`,()=>{W.document.visibilityState===`hidden`&&this._flushOutcomes()})}eventFromException(e,t){return Xa(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Za(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){za&&y.warn(`SDK not enabled, will not capture user feedback.`);return}let t=ro(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n)}},oo=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,G=h,so=1e3,co,lo,uo;function fo(e){x(`dom`,e),he(`dom`,po)}function po(){if(!G.document)return;let e=S.bind(null,`dom`),t=go(e,!0);G.document.addEventListener(`click`,t,!1),G.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=G[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty(`addEventListener`)||(T(r,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=go(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),T(r,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function mo(e){if(e.type!==lo)return!1;try{if(!e.target||e.target._sentryId!==uo)return!1}catch{}return!0}function ho(e,t){return e===`keypress`?!t||!t.tagName?!0:!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function go(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=_o(n);if(ho(n.type,r))return;E(n,`_sentryCaptured`,!0),r&&!r._sentryId&&E(r,`_sentryId`,k());let i=n.type===`keypress`?`input`:n.type;mo(n)||(e({event:n,name:i,global:t}),lo=n.type,uo=r?r._sentryId:void 0),clearTimeout(co),co=G.setTimeout(()=>{uo=void 0,lo=void 0},so)}}function _o(e){try{return e.target}catch{return null}}var vo;function yo(e){let t=`history`;x(t,e),he(t,bo)}function bo(){if(!Ma())return;let e=G.onpopstate;G.onpopstate=function(...t){let n=G.location.href,r=vo;
4if(vo=n,S(`history`,{from:r,to:n}),e)try{return e.apply(this,t)}catch{}};function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=vo,t=String(n);vo=t,S(`history`,{from:e,to:t})}return e.apply(this,t)}}T(G.history,`pushState`,t),T(G.history,`replaceState`,t)}var xo={};function So(e){let t=xo[e];if(t)return t;let n=G[e];if(ya(n))return xo[e]=n.bind(G);let r=G.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){oo&&y.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(xo[e]=n.bind(G))}function Co(e){xo[e]=void 0}function wo(...e){return So(`setTimeout`)(...e)}var To=`__sentry_xhr_v3__`;function Eo(e){x(`xhr`,e),he(`xhr`,Do)}function Do(){if(!G.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=O()*1e3,a=C(n[0])?n[0].toUpperCase():void 0,o=Oo(n[1]);if(!a||!o)return e.apply(t,n);t[To]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[To];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}S(`xhr`,{endTimestamp:O()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[To];return a&&C(r)&&C(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[To];return r?(n[0]!==void 0&&(r.body=n[0]),S(`xhr`,{startTimestamp:O()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Oo(e){if(C(e))return e;try{return e.toString()}catch{}}function ko(e,t=So(`fetch`)){let n=0,r=0;function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Co(`fetch`),ft(`No fetch implementation available`);try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get(`X-Sentry-Rate-Limits`),"retry-after":e.headers.get(`Retry-After`)}}))}catch(e){return Co(`fetch`),n-=a,r--,ft(e)}}return Di(e,i)}var Ao=30,jo=50;function Mo(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var No=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Po=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fo=/\((\S*)(?::(\d+))(?::(\d+))\)/,Io=[Ao,e=>{let t=No.exec(e);if(t){let[,e,n,r]=t;return Mo(e,`?`,+n,+r)}let n=Po.exec(e);if(n){if(n[2]&&n[2].indexOf(`eval`)===0){let e=Fo.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=Bo(n[1]||`?`,n[2]);return Mo(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Lo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ro=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zo=se(Io,[jo,e=>{let t=Lo.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Ro.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Bo(n,e),Mo(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Bo=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Vo=1024,Ho=`Breadcrumbs`,Uo=V(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Ho,setup(e){t.console&&aa(Ko(e)),t.dom&&fo(Go(e,t.dom)),t.xhr&&Eo(qo(e)),t.fetch&&xa(Jo(e)),t.history&&yo(Yo(e)),t.sentry&&e.on(`beforeSendEvent`,Wo(e))}}}));function Wo(e){return function(t){I()===e&&U({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:A(t)},{event:t})}}function Go(e,t){return function(n){if(I()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Vo&&(za&&y.warn(`\`dom.maxStringLength\` cannot exceed ${Vo}, but a value of ${o} was configured. Sentry will use ${Vo} instead.`),o=Vo),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Xo(e)?e.target:e;r=Ve(t,{keyAttrs:a,maxStringLength:o}),i=We(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};
4i&&(s.data={"ui.component_name":i}),U(s,{event:n.event,name:n.name,global:n.global})}}function Ko(e){return function(t){if(I()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:sa(t.level),message:Ke(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ke(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;U(n,{input:t.args,level:t.level})}}function qo(e){return function(t){if(I()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[To];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};U({category:`xhr`,data:l,type:`http`,level:ga(s)},u)}}function Jo(e){return function(t){if(I()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};U({category:`fetch`,data:e,level:`error`,type:`http`},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r};U({category:`fetch`,data:i,type:`http`,level:ga(i.status_code)},a)}}}function Yo(e){return function(t){if(I()!==e)return;let n=t.from,r=t.to,i=ia(W.location.href),a=n?ia(n):void 0,o=ia(r);(!a||!a.path)&&(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),U({category:`navigation`,data:{from:n,to:r}})}}function Xo(e){return!!e&&!!e.target}var Zo=`EventTarget.Window.Node.ApplicationCache.AudioTrackList.BroadcastChannel.ChannelMergerNode.CryptoOperation.EventSource.FileReader.HTMLUnknownElement.IDBDatabase.IDBRequest.IDBTransaction.KeyOperation.MediaController.MessagePort.ModalWindow.Notification.SVGElementInstance.Screen.SharedWorker.TextTrack.TextTrackCue.TextTrackList.WebSocket.WebSocketWorker.Worker.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestUpload`.split(`.`),Qo=`BrowserApiErrors`,$o=V(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Qo,setupOnce(){t.setTimeout&&T(W,`setTimeout`,es),t.setInterval&&T(W,`setInterval`,es),t.requestAnimationFrame&&T(W,`requestAnimationFrame`,ts),t.XMLHttpRequest&&`XMLHttpRequest`in W&&T(XMLHttpRequest.prototype,`send`,ns);let e=t.eventTarget;e&&(Array.isArray(e)?e:Zo).forEach(rs)}}}));function es(e){return function(...t){let n=t[0];return t[0]=Ra(n,{mechanism:{data:{function:b(e)},handled:!1,type:`instrument`}}),e.apply(this,t)}}function ts(e){return function(t){return e.apply(this,[Ra(t,{mechanism:{data:{function:`requestAnimationFrame`,handler:b(e)},handled:!1,type:`instrument`}})])}}function ns(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&T(n,e,function(t){let n={mechanism:{data:{function:e,handler:b(t)},handled:!1,type:`instrument`}},r=Xe(t);return r&&(n.mechanism.data.handler=b(r)),Ra(t,n)})}),e.apply(this,t)}}function rs(e){let t=W[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty(`addEventListener`)||(T(n,`addEventListener`,function(t){return function(n,r,i){try{is(r)&&(r.handleEvent=Ra(r.handleEvent,{mechanism:{data:{function:`handleEvent`,handler:b(r),target:e},handled:!1,type:`instrument`}}))}catch{}return t.apply(this,[n,Ra(r,{mechanism:{data:{function:`addEventListener`,handler:b(r),target:e},handled:!1,type:`instrument`}}),i])}}),T(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function is(e){return typeof e.handleEvent==`function`}var as=V(()=>({name:`BrowserSession`,setupOnce(){if(W.document===void 0){za&&y.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Zr({ignoreDuration:!0}),ei(),yo(({from:e,to:t})=>{e!==void 0&&e!==t&&(Zr({ignoreDuration:!0}),ei())})}})),os=`GlobalHandlers`,ss=V(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:os,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(cs(e),ps(`onerror`)),t.onunhandledrejection&&(ls(e),ps(`onunhandledrejection`))}}}));function cs(e){_e(t=>{let{stackParser:n,attachStacktrace:r}=ms();if(I()!==e||Ia())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=fs(Qa(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,qr(l,{originalException:c,mechanism:{handled:!1,type:`onerror`}})})}function ls(e){be(t=>{let{stackParser:n,attachStacktrace:r}=ms();if(I()!==e||Ia())return;let i=us(t),a=je(i)?ds(i):Qa(n,i,void 0,r,!0);a.level=`error`,qr(a,{originalException:i,mechanism:{handled:!1,type:`onunhandledrejection`}})})}function us(e){if(je(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function ds(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function fs(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=r,u=n,d=C(t)&&t.length>0?t:Ue();
4return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function ps(e){za&&y.log(`Global Handler attached: ${e}`)}function ms(){let e=I();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var hs=V(()=>({name:`HttpContext`,preprocessEvent(e){if(!W.navigator&&!W.location&&!W.document)return;let t=e.request&&e.request.url||W.location&&W.location.href,{referrer:n}=W.document||{},{userAgent:r}=W.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:i}}})),gs=`cause`,_s=5,vs=`LinkedErrors`,ys=V(((e={})=>{let t=e.limit||_s,n=e.key||gs;return{name:vs,preprocessEvent(e,r,i){let a=i.getOptions();$i(Ba,a.stackParser,a.maxValueLength,n,t,e,r)}}}));function bs(e){let t=[Vi(),Ri(),$o(),Uo(),ss(),ys(),la(),hs()];return e.autoSessionTracking!==!1&&t.push(as()),t}function xs(e={}){let t={defaultIntegrations:bs(e),release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:W.SENTRY_RELEASE&&W.SENTRY_RELEASE.id?W.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations??delete e.defaultIntegrations,{...t,...e}}function Ss(){let e=W.window!==void 0&&W;if(!e)return!1;let t=e[e.chrome?`chrome`:`browser`],n=t&&t.runtime&&t.runtime.id,r=W.location&&W.location.href||``,i=!!n&&W===W.top&&[`chrome-extension:`,`moz-extension:`,`ms-browser-extension:`,`safari-web-extension:`].some(e=>r.startsWith(`${e}//`)),a=e.nw!==void 0;return!!n&&!i&&!a}function Cs(e={}){let t=xs(e);if(!t.skipBrowserExtensionCheck&&Ss()){v(()=>{console.error(`[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)});return}return za&&(va()||y.warn(`No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.`)),yi(ao,{...t,stackParser:ce(t.stackParser||zo),integrations:ci(t),transport:t.transport||ko})}var ws=[`activate`,`mount`,`update`],Ts=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Es=/(?:^|[-_])(\w)/g,Ds=e=>e.replace(Es,e=>e.toUpperCase()).replace(/[-_]/g,``),Os=`<Root>`,ks=`<Anonymous>`,As=(e,t)=>e.repeat(t),js=(e,t)=>{if(!e)return ks;if(e.$root===e)return Os;if(!e.$options)return ks;let n=e.$options,r=n.name||n._componentTag||n.__name,i=n.__file;if(!r&&i){let e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${Ds(r)}>`:ks)+(i&&t!==!1?` at ${i}`:``)},Ms=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){let t=[],n=0;for(;e;){if(t.length>0){let r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return`\n\nfound in\n\n${t.map((e,t)=>`${(t===0?`---> `:As(` `,5+t*2))+(Array.isArray(e)?`${js(e[0])}... (${e[1]} recursive calls)`:js(e))}`).join(`
5`)}`}return`\n\n(found in ${js(e)})`},Ns=(e,t)=>{let{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(a,o,s)=>{let c=js(o,!1),l=o?Ms(o):``,u={componentName:c,lifecycleHook:s,trace:l};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?u.propsData=o.$options.propsData:o.$props&&(u.propsData=o.$props)),setTimeout(()=>{Gr(a,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),typeof n==`function`&&e.config.errorHandler&&n.call(e,a,o,s),t.logErrors){let e=typeof console<`u`,t=`Error in ${s}: "${a&&a.toString()}"`;r?r.call(null,t,o,l):e&&!i&&v(()=>{console.error(`[Vue warn]: ${t}${l}`)})}}},Ps=`ui.vue`,Fs={activate:[`activated`,`deactivated`],create:[`beforeCreate`,`created`],unmount:[`beforeUnmount`,`unmounted`],destroy:[`beforeDestroy`,`destroyed`],mount:[`beforeMount`,`mounted`],update:[`beforeUpdate`,`updated`]};function Is(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}function Ls(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,`$1`)}return e.some(e=>n(t)===n(e))}var Rs=e=>
5{let t=(e.hooks||[]).concat(ws).filter((e,t,n)=>n.indexOf(e)===t),n={};for(let r of t){let t=Fs[r];if(!t){Ts&&y.warn(`Unknown hook: ${r}`);continue}for(let i of t)n[i]=function(){let n=this.$root===this;n&&(this.$_sentryRootSpan=this.$_sentryRootSpan||pr({name:`Application Render`,op:`${Ps}.render`,attributes:{"sentry.origin":`auto.ui.vue`},onlyIfParent:!0}));let a=js(this,!1),o=Array.isArray(e.trackComponents)?Ls(e.trackComponents,a):e.trackComponents;if(!(!n&&!o))if(this.$_sentrySpans=this.$_sentrySpans||{},i==t[0]){if(this.$root&&this.$root.$_sentryRootSpan||fn()){let e=this.$_sentrySpans[r];e&&e.end(),this.$_sentrySpans[r]=pr({name:`Vue ${a}`,op:`${Ps}.${r}`,attributes:{[Ht]:`auto.ui.vue`},onlyIfParent:!0})}}else{let t=this.$_sentrySpans[r];if(!t)return;t.end(),Is(this,O(),e.timeout)}}}return n},zs={Vue:h.Vue,attachProps:!0,logErrors:!0,attachErrorHandler:!0,hooks:ws,timeout:2e3,trackComponents:!1},Bs=`Vue`,Vs=V((e={})=>({name:Bs,setup(t){let n={...zs,...t.getOptions(),...e};if(!n.Vue&&!n.app){v(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(e=>Hs(e,n)):n.Vue&&Hs(n.Vue,n)}})),Hs=(e,t)=>{if(Ts){let t=e;(t._instance&&t._instance.isMounted)===!0&&v(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")})}t.attachErrorHandler&&Ns(e,t),vn(t)&&e.mixin(Rs({...t,...t.tracingOptions}))};function Us(e={}){return Cs({_metadata:{sdk:{name:`sentry.javascript.vue`,packages:[{name:`npm:@sentry/vue`,version:m}],version:m}},defaultIntegrations:[...bs(e),Vs()],...e})}var Ws=`basil`,Gs=function(e){return e===3?`v3`:e},Ks=`https://js.stripe.com`,qs=`${Ks}/${Ws}/stripe.js`,Js=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Ys=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,Xs=`loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used`,Zs=function(e){return Js.test(e)||Ys.test(e)},Qs=function(){for(var e=document.querySelectorAll(`script[src^="${Ks}"]`),t=0;t<e.length;t++){var n=e[t];if(Zs(n.src))return n}return null},$s=function(e){var t=e&&!e.advancedFraudSignals?`?advancedFraudSignals=false`:``,n=document.createElement(`script`);n.src=`${qs}${t}`;var r=document.head||document.body;if(!r)throw Error(`Expected document.body not to be null. Stripe.js requires a <body> element.`);return r.appendChild(n),n},ec=function(e,t){!e||!e._registerWrapper||e._registerWrapper({name:`stripe-js`,version:`7.9.0`,startTime:t})},tc=null,nc=null,rc=null,ic=function(e){return function(t){e(Error(`Failed to load Stripe.js`,{cause:t}))}},ac=function(e,t){return function(){window.Stripe?e(window.Stripe):t(Error(`Stripe.js not available`))}},oc=function(e){return tc===null?(tc=new Promise(function(t,n){if(typeof window>`u`||typeof document>`u`){t(null);return}if(window.Stripe&&e&&console.warn(Xs),window.Stripe){t(window.Stripe);return}try{var r=Qs();if(r&&e)console.warn(Xs);else if(!r)r=$s(e);else if(r&&rc!==null&&nc!==null){var i;r.removeEventListener(`load`,rc),r.removeEventListener(`error`,nc),(i=r.parentNode)==null||i.removeChild(r),r=$s(e)}rc=ac(t,n),nc=ic(n),r.addEventListener(`load`,rc),r.addEventListener(`error`,nc)}catch(e){n(e);return}}),tc.catch(function(e){return tc=null,Promise.reject(e)})):tc},sc=function(e,t,n){if(e===null)return null;var r=t[0].match(/^pk_test/),i=Gs(e.version),a=Ws;r&&i!==a&&console.warn(`Stripe.js@${i} was loaded on the page, but @stripe/[email protected] expected Stripe.js@${a}. This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning`);var o=e.apply(void 0,t);return ec(o,n),o},cc,lc=!1,uc=function(){return cc||(cc=oc(null).catch(function(e){return cc=null,Promise.reject(e)}),cc)};Promise.resolve().then(function(){return uc()}).catch(function(e){lc||console.warn(e)});var dc=function(){var e=[...arguments];lc=!0;var t=Date.now();return uc().then(function(n){return sc(n,e,t)})};
5function fc(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>`u`)){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var pc=function(e,t){let{componentPrefix:n=``}=t||{};e.component(`${n}${this.name}`,this)},mc={},hc={name:`Checkboard`,props:{size:{type:[Number,String],default:8},white:{type:String,default:`#fff`},grey:{type:String,default:`#e6e6e6`}},computed:{bgStyle(){return{"background-image":`url(${_c(this.white,this.grey,this.size)})`}}}};function gc(e,t,n){if(typeof document>`u`)return null;let r=document.createElement(`canvas`);r.width=r.height=n*2;let i=r.getContext(`2d`);return i?(i.fillStyle=e,i.fillRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null}function _c(e,t,n){let r=`${e},${t},${n}`;if(mc[r])return mc[r];let i=gc(e,t,n);return mc[r]=i,i}function vc(e,n,r,a,o,c){return s(),i(`div`,{class:`vc-checkerboard`,style:t(c.bgStyle)},null,4)}fc(`.vc-checkerboard{background-size:contain;bottom:0;left:0;position:absolute;right:0;top:0}`),hc.render=vc,hc.__file=`src/components/checkboard/checkboard.vue`,hc.install=pc;var yc={name:`Alpha`,components:{Checkboard:hc},props:{value:Object,onChange:Function},computed:{colors(){return this.value},gradientColor(){let{rgba:e}=this.colors,t=[e.r,e.g,e.b].join(`,`);return`linear-gradient(to right, rgba(${t}, 0) 0%, rgba(${t}, 1) 100%)`}},methods:{handleChange(e,t){!t&&e.preventDefault();let{container:n}=this.$refs;if(!n)return;let r=n.clientWidth,i=n.getBoundingClientRect().left+window.pageXOffset,a=(e.pageX||(e.touches?e.touches[0].pageX:0))-i,o;o=a<0?0:a>r?1:Math.round(a*100/r)/100,this.colors.a!==o&&this.$emit(`change`,{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:o,source:`rgba`})},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener(`mousemove`,this.handleChange),window.addEventListener(`mouseup`,this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener(`mousemove`,this.handleChange),window.removeEventListener(`mouseup`,this.handleMouseUp)}}},bc={class:`vc-alpha`},xc={class:`vc-alpha-checkboard-wrap`},Sc=[u(`div`,{class:`vc-alpha-picker`},null,-1)];function Cc(e,r,a,o,c,l){let f=d(`Checkboard`);return s(),i(`div`,bc,[u(`div`,xc,[n(f)]),u(`div`,{class:`vc-alpha-gradient`,style:t({background:l.gradientColor})},null,4),u(`div`,{ref:`container`,class:`vc-alpha-container`,onMousedown:r[0]||=(...e)=>l.handleMouseDown&&l.handleMouseDown(...e),onTouchmove:r[1]||=(...e)=>l.handleChange&&l.handleChange(...e),onTouchstart:r[2]||=(...e)=>l.handleChange&&l.handleChange(...e)},[u(`div`,{class:`vc-alpha-pointer`,style:t({left:`${l.colors.a*100}%`})},Sc,4)],544)])}fc(`.vc-alpha,.vc-alpha-checkboard-wrap{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-container{cursor:pointer;height:100%;margin:0 3px;position:relative;z-index:2}.vc-alpha-pointer{position:absolute;z-index:2}.vc-alpha-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}`),yc.render=Cc,yc.__file=`src/components/alpha/alpha.vue`,yc.install=pc;function K(e,t){Tc(e)&&(e=`100%`);var n=Ec(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=t===360?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function wc(e){return Math.min(1,Math.max(0,e))}function Tc(e){return typeof e==`string`&&e.indexOf(`.`)!==-1&&parseFloat(e)===1}function Ec(e){return typeof e==`string`&&e.indexOf(`%`)!==-1}function Dc(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Oc(e){return e<=1?`${Number(e)*100}%`:e}function q(e){return e.length===1?`0`+e:String(e)}function kc(e,t,n){return{r:K(e,255)*255,g:K(t,255)*255,b:K(n,255)*255}}function Ac(e,t,n){e=K(e,255),t=K(t,255),n=K(n,255);
vendor: 8,685 bytes, line 5
5var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break;default:break}a/=6}return{h:a,s:o,l:s}}function jc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mc(e,t,n){var r,i,a;if(e=K(e,360),t=K(t,100),n=K(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=jc(s,o,e+1/3),i=jc(s,o,e),a=jc(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Nc(e,t,n){e=K(e,255),t=K(t,255),n=K(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,c=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break;default:break}a/=6}return{h:a,s:c,v:o}}function Pc(e,t,n){e=K(e,360)*6,t=K(t,100),n=K(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6,l=[n,o,a,a,s,n][c],u=[s,n,n,o,a,a][c],d=[a,a,s,n,n,o][c];return{r:l*255,g:u*255,b:d*255}}function Fc(e,t,n,r){var i=[q(Math.round(e).toString(16)),q(Math.round(t).toString(16)),q(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function Ic(e,t,n,r,i){var a=[q(Math.round(e).toString(16)),q(Math.round(t).toString(16)),q(Math.round(n).toString(16)),q(Lc(r))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(``)}function Lc(e){return Math.round(parseFloat(e)*255).toString(16)}function Rc(e){return J(e)/255}function J(e){return parseInt(e,16)}function zc(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Bc={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,goldenrod:`#daa520`,gold:`#ffd700`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavenderblush:`#fff0f5`,lavender:`#e6e6fa`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`};function Vc(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=Wc(e)),typeof e==`object`&&(Z(e.r)&&Z(e.g)&&Z(e.b)?(t=kc(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):Z(e.h)&&Z(e.s)&&Z(e.v)?(r=Oc(e.s),i=Oc(e.v),t=Pc(e.h,r,i),o=!0,s=`hsv`):Z(e.h)&&Z(e.s)&&Z(e.l)&&(r=Oc(e.s),a=Oc(e.l),t=Mc(e.h,r,a),o=!0,s=`hsl`),Object.prototype.hasOwnProperty.call(e,`a`)&&(n=e.a)),n=Dc(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Y=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,Hc=`[\\s|\\(]+(${Y})[,|\\s]+(${Y})[,|\\s]+(${Y})\\s*\\)?`,Uc=`[\\s|\\(]+(${Y})[,|\\s]+(${Y})[,|\\s]+(${Y})[,|\\s]+(${Y})\\s*\\)?`,X={CSS_UNIT:new RegExp(Y),rgb:RegExp(`rgb`+Hc),rgba:RegExp(`rgba`+Uc),hsl:RegExp(`hsl`+Hc),hsla:RegExp(`hsla`+Uc),hsv:RegExp(`hsv`+Hc),hsva:RegExp(`hsva`+Uc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Wc(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Bc[e])e=Bc[e],t=!0;else if(e===`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n=X.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=X.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=X.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=X.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=X.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=X.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=X.hex8.exec(e),n?{r:J(n[1]),g:J(n[2]),b:J(n[3]),a:Rc(n[4]),format:t?`name`:`hex8`}:(n=X.hex6.exec(e),n?{r:J(n[1]),g:J(n[2]),b:J(n[3]),format:t?`name`:`hex`}:(n=X.hex4.exec(e),n?{r:J(n[1]+n[1]),g:J(n[2]+n[2]),b:J(n[3]+n[3]),a:Rc(n[4]+n[4]),format:t?`name`:`hex8`}:(n=X.hex3.exec(e),n?{r:J(n[1]+n[1]),g:J(n[2]+n[2]),b:J(n[3]+n[3]),format:t?`name`:`hex`}:!1)))))))))}function Z(e){return!!X.CSS_UNIT.exec(String(e))}var Gc=function(){function e(t,n){if(t===void 0&&(t=``),n===void 0&&(n={}),t instanceof e)return t;typeof t==`number`&&(t=zc(t)),this.originalInput=t;var r=Vc(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t,n,r,i=e.r/255,a=e.g/255,o=e.b/255;return t=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,n=a<=.03928?a/12.92:((a+.055)/1.055)**2.4,r=o<=.03928?o/12.92:((o+.055)/1.055)**2.4,.2126*t+.7152*n+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Dc(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return this.toHsl().s===0},e.prototype.toHsv=function(){var e=Nc(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Nc(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${n}%, ${r}%)`:`hsva(${t}, ${n}%, ${r}%, ${this.roundA})`},e.prototype.toHsl=function(){var e=Ac(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Ac(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${n}%, ${r}%)`:`hsla(${t}, ${n}%, ${r}%, ${this.roundA})`},e.prototype.toHex=function(e){return e===void 0&&(e=!1),Fc(this.r,this.g,this.b,e)}
5,e.prototype.toHexString=function(e){return e===void 0&&(e=!1),`#`+this.toHex(e)},e.prototype.toHex8=function(e){return e===void 0&&(e=!1),Ic(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return e===void 0&&(e=!1),`#`+this.toHex8(e)},e.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${n})`:`rgba(${e}, ${t}, ${n}, ${this.roundA})`},e.prototype.toPercentageRgb=function(){var e=function(e){return`${Math.round(K(e,255)*100)}%`};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(K(e,255)*100)};return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`},e.prototype.toName=function(){if(this.a===0)return`transparent`;if(this.a<1)return!1;for(var e=`#`+Fc(this.r,this.g,this.b,!1),t=0,n=Object.entries(Bc);t<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=!!e;e??=this.format;var n=!1,r=this.a<1&&this.a>=0;return!t&&r&&(e.startsWith(`hex`)||e===`name`)?e===`name`&&this.a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wc(n.l),new e(n)},e.prototype.tint=function(e){return e===void 0&&(e=10),this.mix(`white`,e)},e.prototype.shade=function(e){return e===void 0&&(e=10),this.mix(`black`,e)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100;return new e({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(r+o*a)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Q(...e){return new Gc(...e)}function Kc(e,t){let n=e&&e.a,r;r=e&&e.hsl?Q(e.hsl):e&&e.hex&&e.hex.length>0?Q(e.hex):e&&e.hsv?Q(e.hsv):e&&e.rgba?Q(e.rgba):e&&e.rgb?Q(e.rgb):Q(e),r&&(r._a===void 0||r._a===null)&&r.setAlpha(n||r.getAlpha());let i=r.toHsl(),a=r.toHsv();return i.s===0&&(a.h=i.h=e.h||e.hsl&&e.hsl.h||t||0),a.v<.0164&&(a.h=e.h||e.hsv&&e.hsv.h||0,a.s=e.s||e.hsv&&e.hsv.s||0),i.l<.01&&(i.h=e.h||e.hsl&&e.hsl.h||0,i.s=e.s||e.hsl&&e.hsl.s||0),{hsl:i,hex:r.toHexString().toUpperCase(),hex8:r.toHex8String().toUpperCase(),rgba:r.toRgb(),hsv:a,oldHue:e.h||t||i.h,source:e.source,a:r.getAlpha()}}var qc={model:{prop:`modelValue`,event:`update:modelValue`},props:[`modelValue`],data(){return{val:Kc(this.modelValue)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit(`update:modelValue`,e)}}},watch:{modelValue(e){this.val=Kc(e)}},methods:{colorChange(e,t){this.oldHue=this.colors.hsl.h,this.colors=Kc(e,t||this.oldHue)},isValidHex(e){return Q(e).isValid},simpleCheckForValidColor(e){let t=[`r`,`g`,`b`,`a`,`h`,`s`,`l`,`v`],n=0,r=0;for(let i=0;i<t.length;i++){let a=t[i];e[a]&&(n++,isNaN(e[a])||r++)}if(n===r)return e},paletteUpperCase(e){return e.map(e=>e.toUpperCase())}
5,isTransparent(e){return Q(e).getAlpha()===0}}},Jc={name:`EditableInput`,props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(e){if(this.max!==void 0&&+e>this.max)this.$refs.input.value=this.max;else return e}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(e){this.handleChange(e.target.value)},handleChange(e){let t={};t[this.label]=e,(t.hex===void 0&&t[`#`]===void 0||e.length>5)&&this.$emit(`change`,t)},handleKeyDown(e){let{val:t}=this,n=Number(t);if(n){let r=this.arrowOffset||1;e.keyCode===38&&(t=n+r,this.handleChange(t),e.preventDefault()),e.keyCode===40&&(t=n-r,this.handleChange(t),e.preventDefault())}}}},Yc={class:`vc-editable-input`},Xc=[`aria-labelledby`],Zc=[`id`,`for`],Qc={class:`vc-input__desc`};function $c(e,t,n,a,l,d){return s(),i(`div`,Yc,[c(u(`input`,{ref:`input`,"onUpdate:modelValue":t[0]||=e=>d.val=e,"aria-labelledby":d.labelId,class:`vc-input__input`,onKeydown:t[1]||=(...e)=>d.handleKeyDown&&d.handleKeyDown(...e),onInput:t[2]||=(...e)=>d.update&&d.update(...e)},null,40,Xc),[[o,d.val]]),u(`span`,{id:d.labelId,for:n.label,class:`vc-input__label`},r(d.labelSpanText),9,Zc),u(`span`,Qc,r(n.desc),1)])}fc(`.vc-editable-input{position:relative}.vc-input__input{border:0;outline:none;padding:0}.vc-input__label{text-transform:capitalize}`),Jc.render=$c,Jc.__file=`src/components/editable-input/editable-input.vue`,Jc.install=pc;function el(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}var tl={name:`Saturation`,props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return`${-(this.colors.hsv.v*100)+1+100}%`},pointerLeft(){return`${this.colors.hsv.s*100}%`}},methods:{handleChange(e,t){!t&&e.preventDefault();let{container:n}=this.$refs;if(!n)return;let r=n.clientWidth,i=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,o=n.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),c=e.pageY||(e.touches?e.touches[0].pageY:0),l=el(s-a,0,r),u=el(c-o,0,i),d=l/r,f=el(-(u/i)+1,0,1);this.onChange({h:this.colors.hsv.h,s:d,v:f,a:this.colors.hsv.a,source:`hsva`})},onChange(e){this.$emit(`change`,e)},handleMouseDown(e){window.addEventListener(`mousemove`,this.handleChange),window.addEventListener(`mouseup`,this.handleChange),window.addEventListener(`mouseup`,this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener(`mousemove`,this.handleChange),window.removeEventListener(`mouseup`,this.handleChange),window.removeEventListener(`mouseup`,this.handleMouseUp)}}},nl=u(`div`,{class:`vc-saturation--white`},null,-1),rl=u(`div`,{class:`vc-saturation--black`},null,-1),il=[u(`div`,{class:`vc-saturation-circle`},null,-1)];function al(e,n,r,a,o,c){return s(),i(`div`,{ref:`container`,class:`vc-saturation`,style:t({background:c.bgColor}),onMousedown:n[0]||=(...e)=>c.handleMouseDown&&c.handleMouseDown(...e),onTouchmove:n[1]||=(...e)=>c.handleChange&&c.handleChange(...e),onTouchstart:n[2]||=(...e)=>c.handleChange&&c.handleChange(...e)},[nl,rl,u(`div`,{class:`vc-saturation-pointer`,style:t({top:c.pointerTop,left:c.pointerLeft})},il,4)],36)}fc(`.vc-saturation,.vc-saturation--black,.vc-saturation--white{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}`),tl.render=al,tl.__file=`src/components/saturation/saturation.vue`,tl.install=pc;var ol={name:`Hue`,props:{value:Object,direction:{type:String,default:`horizontal`}},data(){return{oldHue:0,pullDirection:``}},computed:{colors(){return this.value},directionClass(){return{"vc-hue--horizontal":this.direction===`horizontal`,"vc-hue--vert
5ical":this.direction===`vertical`}},pointerTop(){return this.direction===`vertical`?this.colors.hsl.h===0&&this.pullDirection===`right`?0:`${-(this.colors.hsl.h*100/360)+100}%`:0},pointerLeft(){return this.direction===`vertical`?0:this.colors.hsl.h===0&&this.pullDirection===`right`?`100%`:`${this.colors.hsl.h*100/360}%`}},watch:{value:{handler(e,t){let{h:n}=e.hsl;n!==0&&n-this.oldHue>0&&(this.pullDirection=`right`),n!==0&&n-this.oldHue<0&&(this.pullDirection=`left`),this.oldHue=n},deep:!0,immediate:!0}},methods:{handleChange(e,t){!t&&e.preventDefault();let{container:n}=this.$refs;if(!n)return;let r=n.clientWidth,i=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,o=n.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),c=e.pageY||(e.touches?e.touches[0].pageY:0),l=s-a,u=c-o,d,f;this.direction===`vertical`?(u<0?d=360:u>i?d=0:(f=-(u*100/i)+100,d=360*f/100),this.colors.hsl.h!==d&&this.$emit(`change`,{h:d,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:`hsl`})):(l<0?d=0:l>r?d=360:(f=l*100/r,d=360*f/100),this.colors.hsl.h!==d&&this.$emit(`change`,{h:d,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:`hsl`}))},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener(`mousemove`,this.handleChange),window.addEventListener(`mouseup`,this.handleChange),window.addEventListener(`mouseup`,this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener(`mousemove`,this.handleChange),window.removeEventListener(`mouseup`,this.handleChange),window.removeEventListener(`mouseup`,this.handleMouseUp)}}},sl=[`aria-valuenow`],cl=[u(`div`,{class:`vc-hue-picker`},null,-1)];function ll(e,n,r,o,c,l){return s(),i(`div`,{class:a([`vc-hue`,[l.directionClass]])},[u(`div`,{ref:`container`,class:`vc-hue-container`,role:`slider`,"aria-valuenow":l.colors.hsl.h,"aria-valuemin":`0`,"aria-valuemax":`360`,onMousedown:n[0]||=(...e)=>l.handleMouseDown&&l.handleMouseDown(...e),onTouchmove:n[1]||=(...e)=>l.handleChange&&l.handleChange(...e),onTouchstart:n[2]||=(...e)=>l.handleChange&&l.handleChange(...e)},[u(`div`,{class:`vc-hue-pointer`,style:t({top:l.pointerTop,left:l.pointerLeft}),role:`presentation`},cl,4)],40,sl)],2)}fc(`.vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}`),ol.render=ll,ol.__file=`src/components/hue/hue.vue`,ol.install=pc;var ul={name:`Chrome`,components:{Saturation:tl,Hue:ol,Alpha:yc,EdIn:Jc,Checkboard:hc},mixins:[qc],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1},format:{type:String,default:`hex`}},data(){return{fieldsIndex:`hex`,highlight:!1}},computed:{hsl(){let{h:e,s:t,l:n}=this.colors.hsl;return{h:e.toFixed(),s:`${(t*100).toFixed()}%`,l:`${(n*100).toFixed()}%`}},activeColor(){let{rgba:e}=this.colors;return`rgba(${[e.r,e.g,e.b,e.a].join(`,`)})`},hasAlpha(){return this.colors.a<1}},watch:{format:{handler(e){this.fieldsIndex=e},immediate:!0}},methods:{childChange(e){this.colorChange(e)},inputChange(e){if(e){if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:`hex`});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:`rgba`});else if(e.h||e.s||e.l){let t=e.s?e.s.replace(`%`,``)/100:this.colors.hsl.s,n=e.l?e.l.replace(`%`,``)/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:n,source:`hsl`})}}},toggleViews(){switch(this.fieldsIndex){case`hex`:this.fieldsIndex=`rgb${this.disableAlpha?``:`a`}`;break;case`rgb`:case`rgba`:this.fieldsIndex=`hsl${this.disableAlpha?``:`a`}`;break;default:this.fieldsIndex=`hex`;break}this.$emit(`update:format`,this.fieldsIndex)},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}},dl={class:`vc-chrome-saturation-wrap`},fl={class:`vc-chrome-body`}
5,pl={class:`vc-chrome-controls`},ml={class:`vc-chrome-color-wrap`},hl=[`aria-label`],gl={class:`vc-chrome-sliders`},_l={class:`vc-chrome-hue-wrap`},vl={key:0,class:`vc-chrome-alpha-wrap`},yl={key:0,class:`vc-chrome-fields-wrap`},bl={class:`vc-chrome-fields`},xl={class:`vc-chrome-field`},Sl={class:`vc-chrome-fields`},Cl={class:`vc-chrome-field`},wl={class:`vc-chrome-field`},Tl={class:`vc-chrome-field`},El={key:0,class:`vc-chrome-field`},Dl={class:`vc-chrome-fields`},Ol={class:`vc-chrome-field`},kl={class:`vc-chrome-field`},Al={class:`vc-chrome-field`},jl={key:0,class:`vc-chrome-field`},Ml={class:`vc-chrome-toggle-icon`},Nl=[u(`path`,{fill:`#333`,d:`M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z`},null,-1)],Pl={class:`vc-chrome-toggle-icon-highlight`};function Fl(r,o,p,m,h,g){let _=d(`Saturation`),ee=d(`Checkboard`),te=d(`Hue`),ne=d(`Alpha`),v=d(`EdIn`);return s(),i(`div`,{role:`application`,"aria-label":`Chrome color picker`,class:a([`vc-chrome`,[p.disableAlpha?`vc-chrome__disable-alpha`:``]])},[u(`div`,dl,[n(_,{value:r.colors,onChange:g.childChange},null,8,[`value`,`onChange`])]),u(`div`,fl,[u(`div`,pl,[u(`div`,ml,[u(`div`,{"aria-label":`current color is ${r.colors.hex}`,class:`vc-chrome-active-color`,style:t({background:g.activeColor})},null,12,hl),p.disableAlpha?l(`v-if`,!0):(s(),e(ee,{key:0}))]),u(`div`,gl,[u(`div`,_l,[n(te,{value:r.colors,onChange:g.childChange},null,8,[`value`,`onChange`])]),p.disableAlpha?l(`v-if`,!0):(s(),i(`div`,vl,[n(ne,{value:r.colors,onChange:g.childChange},null,8,[`value`,`onChange`])]))])]),p.disableFields?l(`v-if`,!0):(s(),i(`div`,yl,[c(u(`div`,bl,[l(` hex `),u(`div`,xl,[g.hasAlpha?l(`v-if`,!0):(s(),e(v,{key:0,label:`hex`,value:r.colors.hex,onChange:g.inputChange},null,8,[`value`,`onChange`])),g.hasAlpha?(s(),e(v,{key:1,label:`hex`,value:r.colors.hex8,onChange:g.inputChange},null,8,[`value`,`onChange`])):l(`v-if`,!0)])],512),[[f,h.fieldsIndex===`hex`]]),c(u(`div`,Sl,[l(` rgba `),u(`div`,Cl,[n(v,{label:`r`,value:r.colors.rgba.r,onChange:g.inputChange},null,8,[`value`,`onChange`])]),u(`div`,wl,[n(v,{label:`g`,value:r.colors.rgba.g,onChange:g.inputChange},null,8,[`value`,`onChange`])]),u(`div`,Tl,[n(v,{label:`b`,value:r.colors.rgba.b,onChange:g.inputChange},null,8,[`value`,`onChange`])]),p.disableAlpha?l(`v-if`,!0):(s(),i(`div`,El,[n(v,{label:`a`,value:r.colors.a,"arrow-offset":.01,max:1,onChange:g.inputChange},null,8,[`value`,`arrow-offset`,`onChange`])]))],512),[[f,[`rgb`,`rgba`].includes(h.fieldsIndex)]]),c(u(`div`,Dl,[l(` hsla `),u(`div`,Ol,[n(v,{label:`h`,value:g.hsl.h,onChange:g.inputChange},null,8,[`value`,`onChange`])]),u(`div`,kl,[n(v,{label:`s`,value:g.hsl.s,onChange:g.inputChange},null,8,[`value`,`onChange`])]),u(`div`,Al,[n(v,{label:`l`,value:g.hsl.l,onChange:g.inputChange},null,8,[`value`,`onChange`])]),p.disableAlpha?l(`v-if`,!0):(s(),i(`div`,jl,[n(v,{label:`a`,value:r.colors.a,"arrow-offset":.01,max:1,onChange:g.inputChange},null,8,[`value`,`arrow-offset`,`onChange`])]))],512),[[f,[`hsl`,`hsla`].includes(h.fieldsIndex)]]),l(` btn `),u(`div`,{class:`vc-chrome-toggle-btn`,role:`button`,"aria-label":`Change another color definition`,onClick:o[3]||=(...e)=>g.toggleViews&&g.toggleViews(...e)},[u(`div`,Ml,[(s(),i(`svg`,{style:{width:`24px`,height:`24px`},viewBox:`0 0 24 24`,onMouseover:o[0]||=(...e)=>g.showHighlight&&g.showHighlight(...e),onMouseenter:o[1]||=(...e)=>g.showHighlight&&g.showHighlight(...e),onMouseout:o[2]||=(...e)=>g.hideHighlight&&g.hideHighlight(...e)},Nl,32))]),c(u(`div`,Pl,null,512),[[f,h.highlight]])]),l(` btn `)]))])],2)}fc(`.vc-chrome{background:#fff;background-color:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;font-family:Menlo;width:225px}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{border-radius:15px;height:30px;overflow:hidden;position:relative;width:30px;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{background-size:auto;border-radius:15px;height:30px;width:30px}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;flex:1;margin-left:-6px}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{position:relative;text-align:right;width:32px}.vc-chrome-toggle-icon{cursor:pointer;margin-right:-4px;margin-top:12px;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{background:#eee;border-radius:4px;
5height:28px;left:12px;position:absolute;top:10px;width:24px}.vc-chrome-hue-wrap{margin-bottom:8px}.vc-chrome-alpha-wrap,.vc-chrome-hue-wrap{height:10px;position:relative}.vc-chrome-alpha-wrap .vc-alpha-gradient,.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{background-color:#f8f8f8;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:12px;transform:translate(-6px,-2px);width:12px}.vc-chrome-body{background-color:#fff;padding:16px 16px 12px}.vc-chrome-saturation-wrap{border-radius:2px 2px 0 0;overflow:hidden;padding-bottom:55%;position:relative;width:100%}.vc-chrome-saturation-wrap .vc-saturation-circle{height:12px;width:12px}.vc-chrome-fields .vc-input__input{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #dadada;color:#333;font-size:11px;height:21px;text-align:center;width:100%}.vc-chrome-fields .vc-input__label{color:#969696;display:block;font-size:11px;line-height:11px;margin-top:12px;text-align:center;text-transform:uppercase}.vc-chrome__disable-alpha .vc-chrome-active-color{height:18px;width:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-bottom:4px;margin-top:4px}`),ul.render=Fl,ul.__file=`src/components/chrome/chrome.vue`,ul.install=pc;var $={};function Il(){let e=typeof $wixContext<`u`&&$wixContext.initWixModules?$wixContext.initWixModules:globalThis.__wix_context__!==void 0&&globalThis.__wix_context__.initWixModules?globalThis.__wix_context__.initWixModules:void 0;if(e)return{initWixModules(t,n){return Ll(()=>e(t,n))},fetchWithAuth(){throw Error(`fetchWithAuth is not available in this context`)},graphql(){throw Error(`graphql is not available in this context`)}};let t=typeof $wixContext<`u`?$wixContext.client:$.client===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.client:$.client,n=typeof $wixContext<`u`?$wixContext.elevatedClient:$.elevatedClient===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.elevatedClient:$.elevatedClient;if(!(!t&&!n))return{initWixModules(e,r){if(r){if(!n)throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);return Ll(()=>n.use(e))}if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return Ll(()=>t.use(e))},fetchWithAuth:(e,n)=>{if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.fetchWithAuth(e,n)},getAuth(){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.auth},async graphql(e,n,r){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.graphql(e,n,r)}}}function Ll(e){let t=globalThis.__wix_context__,n={client:$.client,elevatedClient:$.elevatedClient},r;globalThis.__wix_context__=void 0,$.client=void 0,$.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,$.client=n.client,$.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}function Rl(e,t){return{...e,...Object.fromEntries(t.map(t=>[t,(...n)=>{let r=Il();if(!r)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return r.initWixModules(e)[t].apply(void 0,n)}]))}}function zl(e){return Rl({__type:`host`,create:t=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:r(t)}),{})},Object.keys(e))}function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bl(e)}function Vl(e,t){if(Bl(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Bl(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hl(e){var t=Vl(e,`string`);return Bl(t)==`symbol`?t:t+``}function Ul(e,t,n){return(t=Hl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
5var Wl=class extends Error{constructor(e){let{message:t,code:n}=e;super(t),Ul(this,`code`,void 0),this.message=t,this.code=n}},Gl=()=>{let e=e=>{let{channel:t}=e;return function(){let e=t.showToast(...arguments);return{remove:()=>Promise.resolve(e).then(e=>e.remove())}}},t=e=>{let{channel:t}=e;return function(){let e=t.observeState(...arguments);return{disconnect:()=>Promise.resolve(e).then(e=>e.disconnect())}}};return{showToast:e,observeState:t,navigate:e=>{let{channel:t}=e;return function(){return t.navigate(...arguments)}},navigateBack:e=>{let{channel:t}=e;return()=>t.navigateBack()},openModal:e=>{let{channel:t}=e;return(e,n)=>{let[r,i]=typeof e==`string`?[e,n]:[e.modalId,e.params],a=t.openModal(r,i);return{modalClosed:Promise.resolve(a).then(e=>e.modalClosed)}}},closeModal:e=>{let{channel:t}=e;return e=>{if(e===void 0)return t.closeModal();let n=JSON.parse(JSON.stringify(e));return t.closeModal(n)}},getAccessToken:e=>{let{channel:t}=e;return()=>t.getAccessToken()},getPageUrl:e=>{let{channel:t}=e;return function(){return t.getPageUrl(...arguments)}},openMediaManager:e=>{let{channel:t}=e;return function(){return t.openMediaManager(...arguments)}},addSitePlugin:e=>{let{channel:t}=e;return(e,n)=>{let r=n?.placement||{},i=t.openModal(`802c76e4-b381-4bb3-9152-96acabbf3194`,{...r,placementsSlotId:n?.slotId,pluginId:e,action:`populate`});return Promise.resolve(i).then(e=>e.modalClosed).then(e=>{if(e?.type===void 0)throw new Wl({message:`Aborted by user`,code:3006});if(e?.type===`ERROR`)throw new Wl(e.data.error)})}},onBeforeUnload:e=>{let{channel:t}=e;return function(){return t.onBeforeUnload(...arguments)}},setPageTitle:e=>{let{channel:t}=e;return e=>t.setPageTitle(e)},getLanguage:e=>{let n=null;return async()=>{var r;if(n)return n;let i=null;return n=await new Promise(n=>{i=t(e)((e,t)=>{n(t.language)})}),(r=i)==null||r.disconnect(),n}},requestFeedback:e=>{let{channel:t}=e;return function(){return t.requestFeedback(...arguments)}},onLayerStateChange:e=>{let{channel:t}=e;return function(){let e=t.onLayerStateChange(...arguments);return{remove:()=>Promise.resolve(e).then(e=>e.remove())}}},installApp:e=>{let{channel:t}=e;return t.installApp},getSiteInfo:e=>{let{channel:t}=e;return t.getSiteInfo},getWidget:e=>{let{channel:t}=e;return function(){if(`getWidget`in t)return t.getWidget(...arguments);throw Error(`Unsupported`)}},getWidgetAsync:e=>{let{channel:t}=e;return e=>{if(`getWidgetAsync`in t)return t.getWidgetAsync(e);throw Error(`Unsupported`)}},getDashboardPlugins:e=>{let{channel:t}=e;return function(){if(`getDashboardPlugins`in t)return t.getDashboardPlugins(...arguments);throw Error(`Unsupported`)}},getDashboardMenuPlugins:e=>{let{channel:t}=e;return function(){if(`getDashboardMenuPlugins`in t)return t.getDashboardMenuPlugins(...arguments);throw Error(`Unsupported`)}},createStore:e=>{let{channel:t}=e;if(t.createStore)return t.createStore},getStore:e=>{let{channel:t}=e;if(t.getStore)return t.getStore}}},Kl=e=>{let{createHost:t}=e,n=Gl();return{...zl(n),host:t,auth:()=>({getAuthHeaders:async e=>({headers:{Authorization:await n.getAccessToken(e)()}})})}},ql=Symbol(`Comlink.proxy`),Jl=Symbol(`Comlink.endpoint`),Yl=Symbol(`Comlink.releaseProxy`),Xl=Symbol(`Comlink.thrown`),Zl=e=>typeof e==`object`&&!!e||typeof e==`function`,Ql=new Map([[`proxy`,{canHandle:e=>Zl(e)&&e[ql],serialize(e){let{port1:t,port2:n}=new MessageChannel;return $l(e,t),[n,[n]]},deserialize(e){return e.start(),nu(e)}}],[`throw`,{canHandle:e=>Zl(e)&&Xl in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(Error(e.value.message),e.value):e.value}}]]);function $l(e,t=self){t.addEventListener(`message`,function n(r){if(!r||!r.data)return;let{id:i,type:a,path:o}=Object.assign({path:[]},r.data),s=(r.data.argumentList||[]).map(du),c;try{let t=o.slice(0,-1).reduce((e,t)=>e[t],e),n=o.reduce((e,t)=>e[t],e);switch(a){case 0:c=n;break;case 1:t[o.slice(-1)[0]]=du(r.data.value),c=!0;break;case 2:c=n.apply(t,s);break;case 3:c=lu(new n(...s));break;case 4:{let{port1:t,port2:n}=new MessageChannel;$l(e,n),c=cu(t,[t])}break;case 5:c=void 0;break}}catch(e){c={value:e,[Xl]:0}}Promise.resolve(c).catch(e=>({value:e,[Xl]:0})).then(e=>{let[r,o]=uu(e);t.postMessage(Object.assign(Object.assign({},r),{id:i}),o),a===5&&(t.removeEventListener(`message`,n),tu(t))})}),t.start&&t.start()}function eu(e){return e.constructor.name===`MessagePort`}function tu(e){eu(e)&&e.close()}function nu(e,t){return iu(e,[],t)}function ru(e){if(e)throw Error(`Proxy has been released and is not useable`)}function iu(e,t=[],n=function(){}){let r=!1,i=new Proxy(n,{get(n,a){if(ru(r),a===Yl)return()=>fu(e,{type:5,path:t.map(e=>e.toString())}).then(()=>{tu(e),r=!0});if(a===`then`){if(t.length===0)return{then:()=>i};let n=fu(e,{type:0,path:t.map(e=>e.toString())}).then(du);return n.then.bind(n)}return iu(e,[...t,a])},set(n,i,a){ru(r);let[o,s]=uu(a);return fu(e,{type:1,path:[...t,i].map(e=>e.toString()),value:o},s).then(du)},apply(n,i,a){ru(r);let o=t[t.length-1];if(o===Jl)return fu(e,{type:4}).then(du);
5if(o===`bind`)return iu(e,t.slice(0,-1));let[s,c]=ou(a);return fu(e,{type:2,path:t.map(e=>e.toString()),argumentList:s},c).then(du)},construct(n,i){ru(r);let[a,o]=ou(i);return fu(e,{type:3,path:t.map(e=>e.toString()),argumentList:a},o).then(du)}});return i}function au(e){return Array.prototype.concat.apply([],e)}function ou(e){let t=e.map(uu);return[t.map(e=>e[0]),au(t.map(e=>e[1]))]}var su=new WeakMap;function cu(e,t){return su.set(e,t),e}function lu(e){return Object.assign(e,{[ql]:!0})}function uu(e){for(let[t,n]of Ql)if(n.canHandle(e)){let[r,i]=n.serialize(e);return[{type:3,name:t,value:r},i]}return[{type:0,value:e},su.get(e)||[]]}function du(e){switch(e.type){case 3:return Ql.get(e.name).deserialize(e.value);case 0:return e.value}}function fu(e,t,n){return new Promise(r=>{let i=pu();e.addEventListener(`message`,function t(n){!n.data||!n.data.id||n.data.id!==i||(e.removeEventListener(`message`,t),r(n.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:i},t),n)})}function pu(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*(2**53-1)).toString(16)).join(`-`)}var mu=`__proxyCallbackId__wixSDK__`,hu=`__proxyPromiseId__wixSDK__`,gu=e=>xu(e,e=>async function(){let[t,n]=yu([...arguments]);return vu(await e(lu(t),n))}),_u=async e=>{let[t,n]=yu(await e);return lu({proxies:t,clonables:n})},vu=async e=>bu(e?.proxies,await e?.clonables),yu=e=>{let t=(e,n)=>{if(Su(n)){let t=Eu();return e.promises[t]=n,{[hu]:t}}if(wu(n)){let t=Eu();return e.callbacks[t]=(e,t)=>_u(n(...bu(e,t))),{[mu]:t}}return Array.isArray(n)?n.map(n=>t(e,n)):Cu(n)?Tu(n,n=>t(e,n)):n},n={promises:{},callbacks:{}};return[n,t(n,e)]},bu=(e,t)=>{if(Array.isArray(t))return t.map(t=>bu(e,t));if(Cu(t)&&t.hasOwnProperty(hu)){let n=t[hu];return e.promises[n]}if(Cu(t)&&t.hasOwnProperty(mu)){let n=t[mu];return async function(){let[t,r]=yu([...arguments]);return vu(await e.callbacks[n](lu(t),r))}}return Cu(t)?Tu(t,t=>bu(e,t)):t},xu=(e,t)=>new Proxy(e,{get(e,n){return e[n]?t(e[n]):()=>{throw Error(`Serialization error occurred while accessing ${n} property of ${e}`)}}}),Su=e=>e instanceof Promise,Cu=e=>e&&typeof e==`object`&&!Su(e),wu=e=>typeof e==`function`,Tu=(e,t)=>
5Object.fromEntries(Object.entries(e).map(e=>{let[n,r]=e;return[n,t(r)]})),Eu=(()=>{let e=0;return()=>++e})(),Du=`wix-sdk-bo-hello-handshake`,Ou=e=>{let{postMessage:t,origin:n}=e,{port1:r,port2:i}=new MessageChannel;t({code:Du,version:`1.0.0`,port:i},n,[i]);let a=gu(nu(r));return{channel:a,close:()=>a[Yl]()}},ku=e=>e!=null&&e!==``,Au=e=>ju(e,ku);function ju(e,t=e=>!!e){if(!e)return{};let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}var Mu=e=>({tags:Au({"app.id":e.appId,"app.version":e.appVersion,"app.instanceId":e.appInstanceId,"extension.id":e.extensionId,"extension.name":e.extensionName,"extension.type":e.extensionType,platform:e.platform}),contexts:ju({"extension.data":Au({...e.extensionData}),site:Au({url:e.siteUrl,id:e.tenantType===`SITE`?e.tenantId:void 0}),account:Au({id:e.tenantType===`ACCOUNT`?e.tenantId:void 0})},e=>!!e&&Object.keys(e).length>0)}),Nu=class{constructor(e){this.message=e,this.captureException=()=>{console.error(this.message)},this.captureMessage=()=>{console.error(this.message)},this.startSpan=(e,t)=>(console.error(this.message),t(void 0)),this.startSpanManual=()=>(console.error(this.message),{end:()=>{},fail:()=>{}}),this.endSpanManual=()=>{console.error(this.message)},this.addBreadcrumb=()=>{console.error(this.message)}}},Pu=e=>new Nu(e),Fu=e=>typeof e?.then==`function`,Iu=(e,t)=>t?Fu(e)?e.then(e=>(t(e,!0),e)):(t(e,!1),e):e,Lu=(e,t)=>{e&&(t?setTimeout(e,t):e())},Ru=()=>Date.now()+Math.random(),zu=class{constructor(e){this.options=e,this.spanMap=new Map}createSpan(e,t){let n,r,i,a=Date.now(),o,s=Iu(t,({sentrySDK:t,scope:s},c)=>{c&&(o=Date.now()-a),t.startSpan({...e,scope:s,forceTransaction:this.options.forceTransaction},()=>new Promise((e,t)=>{n=e,r=t}))?.catch(e=>{if(e?.message!==i?.message)throw e})}),c=t=>{this.spanMap.delete(e.name),Iu(s,()=>{Lu(t,o)})},l={end:()=>{c(()=>n?.())},fail:e=>{i??=e,c(()=>r?.(e))}};return this.spanMap.set(e.name,l),l}getSpan(e){return this.spanMap.get(e.name)}},Bu=e=>new zu(e),Vu=(e,{tags:t,contexts:n})=>{t&&e.setTags(t),n&&Object.entries(n).forEach(([t,n])=>n!==void 0&&e.setContext(t,n))},Hu=(e,t)=>{if(!t)return;let{tags:n,contexts:r}=Mu(t);Vu(e,{tags:n,contexts:r})},Uu=[`onLoad`,`forceLoad`],Wu=new Map,Gu=class{constructor(e){this.options=e,this.resolvedState=null,this.validateOptions=e=>{let t=Uu.filter(t=>typeof e.sentrySDK?.[t]!=`function`);if(t.length>0)throw Error(`Missing the following options.sentrySDK methods: ${t.join(`, `)}`)},this.validateOptions(e);let t=Wu.get(e.dsn);t||(t=Bu({forceTransaction:!0}),Wu.set(e.dsn,t)),this.manualSpanRegistry=t}isFullSDK(){return typeof this.options.sentrySDK.BrowserClient==`function`}init(){if(this.resolvedState)return this.resolvedState;let{sentrySDK:e,transport:t,hostContext:n,dsn:r,release:i,environment:a,tracesSampleRate:o=1,debug:s=!1}=this.options,c=new e.Scope,l=new e.BrowserClient({dsn:r,transport:t??e.makeFetchTransport,integrations:e.getDefaultIntegrations({}),stackParser:e.defaultStackParser,tracesSampleRate:o||1,debug:s,environment:a,release:i});return Hu(c,n),c.setClient(l),l.init(),this.resolvedState={sentrySDK:e,scope:c,sentryClient:l},this.resolvedState}loadFullSDK(e){if(this.isFullSDK()){e?.(this.init());return}if(this.promise){this.promise.then(e);return}this.promise=new Promise(t=>{this.options.sentrySDK.onLoad(()=>{if(this.resolvedState)return;let n=this.init();t(n),e?.(n)})}),this.options.sentrySDK.forceLoad()}},Ku=class extends Gu{constructor(){super(...arguments),this.addBreadcrumb=e=>{let t={type:e.type,category:e.category,message:e.message,level:e.level,data:e.data};this.loadFullSDK(({scope:e})=>{e.addBreadcrumb(t)})},this.captureException=(e,t)=>{this.loadFullSDK(({sentryClient:n,scope:r})=>{n.captureException(e,{captureContext:{level:t?.level??`error`,tags:t?.tags,contexts:t?.contexts}},r)})},this.captureMessage=(e,t)=>{this.loadFullSDK(({sentryClient:n,scope:r})=>{n.captureMessage(e,t?.level??`error`,{captureContext:{level:t?.level??`error`,tags:t?.tags,contexts:t?.contexts}},r)})},this.startSpan=(e,t)=>{if(this.isFullSDK()){let{sentrySDK:n,scope:r}=this.init();return n.startSpan({...e,scope:r},t)}this.loadFullSDK();let n=(t,n)=>{let r=Date.now()-n,i=()=>new Promise(e=>setTimeout(()=>e(t),r));this.loadFullSDK(async({sentrySDK:t,scope:n})=>t.startSpan({...e,scope:n},i))},r=async(t,n)=>{let r=Date.now()-n,i=()=>
5new Promise((e,n)=>setTimeout(()=>n(t),r));this.loadFullSDK(async({sentrySDK:n,scope:r})=>{try{await n.startSpan({...e,scope:r},i)}catch(e){if(e?.message!==t?.message)throw e}})},i=Date.now(),a,o;try{a=t()}catch(e){o=e}if(o)throw r(o,i),o;return Fu(a)?a.then(e=>n(e,i)).catch(e=>r(e,i)):n(a,i),a},this.startSpanManual=e=>{let t=this.isFullSDK()?this.init():new Promise(e=>this.loadFullSDK(e));return this.manualSpanRegistry.createSpan(e,t)},this.endSpanManual=e=>{this.manualSpanRegistry.getSpan(e)?.end()}}},qu=e=>`Sentry SDK version "${e}" is not supported. Please make sure to use monitoring SDK only in supported environments.`,Ju=e=>{try{return parseInt(e.split(`.`)[0],10)}catch{console.warn(`Failed to parse Sentry SDK version`);return}},Yu=({sentrySDK:e,dsn:t,...n})=>{if(!e)return Pu(`Unsupported environment - Sentry SDK is not loaded into the environment. Please make sure to use monitoring SDK only in supported environments.`);if(!t)return Pu(`Missing Sentry DSN in the app's monitoring configuration. Please make sure to set it.`);try{let r=e.SDK_VERSION&&Ju(e.SDK_VERSION);return r&&r<7?Pu(qu(e.SDK_VERSION)):new Ku({...n,dsn:t,sentrySDK:e})}catch(e){return Pu(`Failed to initialize monitoring client: ${e.message}`)}},Xu=class{constructor(e){this.options=e,this.captureException=(e,t)=>{let{panoramaClient:n}=this.options;e instanceof Error||(e=Error(e)),n.errorMonitor().reportError(e,this.contextToData(t))},this.captureMessage=(e,t)=>{let{panoramaClient:n}=this.options,r=n.logger(),i;switch(t?.level){case`error`:i=r.error;break;case`warning`:i=r.warn;break;default:i=r.info}i(e,this.contextToData(t))},this.startSpan=(e,t)=>{let{panoramaClient:n}=this.options,{name:r}=e,i,a=n.transaction(r,{id:Ru()}),o=this.contextToData(e);a.start(o);try{i=t(),Fu(i)?i=i.then(e=>(a.finish(o),e)).catch(t=>{throw this.reportErrorInContextOfSpan(t,e),t}):a.finish(o)}catch(t){throw this.reportErrorInContextOfSpan(t,e),t}return i},this.addBreadcrumb=e=>{let{panoramaClient:t}=this.options;t.errorMonitor().addBreadcrumb(e)}}contextToData(e){return e&&{...e?.tags&&{tags:e.tags},...e?.contexts&&{context:e.contexts},...e?.level&&{severity:e.level}}}reportErrorInContextOfSpan(e,t){let{panoramaClient:n}=this.options,{name:r}=t,i=this.contextToData({...t,contexts:{transaction:{name:r}}});n.errorMonitor().reportError(e,i)}startSpanManual(e){let{panoramaClient:t}=this.options,{name:n}=e,r=t.transaction(n,{id:Ru()}),i=this.contextToData(e);r.start(i);let a=!1,o=e=>{a||(a=!0,e())};return{end:()=>{o(()=>r.finish(i))},fail:t=>{o(()=>this.reportErrorInContextOfSpan(t,e))}}}endSpanManual(e){let{panoramaClient:t}=this.options,{name:n}=e;t.transaction(n).finish()}},Zu=e=>{let{panoramaClient:t}=e;return t?new Xu(e):Pu(`Missing Panorama client`)},Qu=e=>e?.type===`SENTRY`,$u=e=>e?.type===`PANORAMA`,ed=({sentrySDK:e,sentryTransport:t,panoramaClient:n,monitoringConfig:r,hostContext:i})=>{if(Qu(r)){let{sentryOptions:n}=r;return()=>Yu({dsn:n?.dsn,hostContext:i,sentrySDK:e,transport:t})}else if($u(r))return()=>Zu({panoramaClient:n});return()=>Pu(`Invalid monitoring configuration. Please check the monitoring setup of your application.`)},td=(e,t)=>{let n=new ResizeObserver(()=>e.updateHeight(t.offsetHeight));return n.observe(t),()=>n.disconnect()},nd=/^https:\/\/(([a-z0-9-]+)\.)?manage\.wix\.com$/,rd=e=>nd.test(e),id=e=>{let t=new EventTarget,n=typeof window>`u`,r=e=>{t.dispatchEvent(new CustomEvent(`beforeunload`,{cancelable:!0}))||(e.preventDefault(),e.returnValue=!0)},i=e.onBeforeUnload(r),a=()=>{n||window.removeEventListener(`beforeunload`,r),i.then(e=>{let{remove:t}=e;return t()})};return n||(window.addEventListener(`beforeunload`,r),window.addEventListener(`unload`,a)),{onBeforeUnload:e=>(t.addEventListener(`beforeunload`,e),{remove:()=>{t.removeEventListener(`beforeunload`,e)}}),clearBeforeUnloadHandler:a}};function ad(e){if(e)try{return JSON.parse(decodeURIComponent(e))}catch(e){console.warn(`Failed to parse "essentials" query parameter. Make sure to run the code inside a supported Wix App extension.`,e);return}}function od(e){return e.has(`essentials`)?ad(e.get(`essentials`)):void 0}var sd=e=>t=>{let{message:n,action:r,requestId:i}=t;n&&e.showToast({type:`error`,details:i==null?void 0:{requestId:i},message:n,action:r&&{...r,removeToastOnClick:!0,uiType:`link`}})},cd=function(e){e===void 0&&(e={});let t=e.fullUrl&&new URL(e.fullUrl).search||typeof window<`u`&&window.location.search||``,n=new URLSearchParams(t),r=e.origin||n.get(`origin`)||``,i=e.postMessage||window.parent.postMessage.bind(window.parent);if(!rd(r))throw Error(`Wix Dashboard SDK: Unable to establish a connection with the Wix dashboard. Please ensure that you are running your app within the Wix dashboard.`);let{channel:a,close:o}=Ou({postMessage:i,origin:r}),s=[o];if(e.autoHeightUpdate===void 0||e.autoHeightUpdate){let t=td(a,e.autoHeightElement||document.documentElement);s.push(()=>t())}let{onBeforeUnload:c,clearBeforeUnloadHandler:l}=id(a);s.push(l);let u=ld(n.get(`siteInfo`)||``,`siteInfo`),d=()=>u,f=new Proxy(a,{get(e,t,n){return t===`onBeforeUnload`?c:t===`getSiteInfo`?d:Reflect.get(e,t,n)}}),{monitoring:p,...m}=od(n)||{};return{channel:f,close:()=>
5s.forEach(e=>e()),getMonitoringClient:ed({hostContext:p?.context,monitoringConfig:p?.config,sentrySDK:typeof window<`u`?window.Sentry:void 0}),essentials:m,workspace:{openItemSelector:a.openItemSelector,apps:{startInstallFlow:a.startInstallFlow,startPurchasePlanFlow:a.startPurchasePlanFlow,startUpdateFlow:a.startUpdateFlow,openContactSupport:a.openContactSupport},credits:{openPaywallModal:a.openPaywallModal}},showError:sd(a)}},ld=(e,t)=>{try{return JSON.parse(decodeURIComponent(e))}catch(e){return console.warn(`Failed to parse ${t} query parameter. Make sure to run the code inside a supported Wix App extension.`,e),{}}},ud=Kl({createHost:cd});function dd(e,t=!1,n=e=>e){return()=>({__type:`event-definition`,type:e,isDomainEvent:t,transformations:n})}var fd=e=>{switch(e){case`get`:case`GET`:return`GET`;case`post`:case`POST`:return`POST`;case`put`:case`PUT`:return`PUT`;case`delete`:case`DELETE`:return`DELETE`;case`patch`:case`PATCH`:return`PATCH`;case`head`:case`HEAD`:return`HEAD`;case`options`:case`OPTIONS`:return`OPTIONS`;default:throw Error(`Unknown method: ${e}`)}},pd=e=>t=>async n=>{let r,i=t=>{if(r=e(n)(t),r.url===void 0)throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);let{method:i,url:a,params:o}=r;return{...r,method:fd(i),url:a,data:r.data,params:o}};try{let e=await t.request(i);if(r===void 0)throw Error(`Request options were not created for this request, please reach out to support channels for assistance.`);let n=Array.isArray(r.transformResponse)?r.transformResponse:[r.transformResponse],a=e.data;return n.forEach(t=>{t&&(a=t(e.data,e.headers))}),a}catch(e){throw typeof e==`object`&&e&&`response`in e&&typeof e.response==`object`&&e.response!==null&&`data`in e.response?e.response.data:e}},md=e=>e.__isAmbassador?!0:!!e().__isAmbassador,hd=`__metadata`,gd=`edge.wixapis.com`,_d=class extends Error{message;response;constructor(e,t){super(e),this.message=e,this.response=t}async details(){let e=await this.response.json();return vd(this.response.status,e?.message,e?.details,{requestId:this.response.headers.get(`X-Wix-Request-Id`),details:e})}},vd=(e,t,n,r)=>({details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t,requestId:r?.requestId}),yd=e=>e?.method&&[`post`,`put`,`patch`].includes(e.method.toLocaleLowerCase())&&e.body?{"Content-Type":`application/json`}:{},bd=e=>e&&typeof e==`object`&&!Array.isArray(e),xd=e=>e.__type===`host`;function Sd(e,t){return e.create(t)}var Cd=`x-wix-bi-gateway`;function wd(e,t,n){return{[Cd]:Td({environment:`js-sdk${n?`-${n}`:``}`,"package-name":e.packageName??t?.PACKAGE_NAME,"method-fqn":e.methodFqn,entity:e.entityFqdn})}}function Td(e){return Object.entries(e).filter(([e,t])=>!!t).map(([e,t])=>`${e}=${t}`).join(`,`)}function Ed(e){let t=globalThis.__wix_context__,n={client:$.client,elevatedClient:$.elevatedClient},r;globalThis.__wix_context__=void 0,$.client=void 0,$.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,$.client=n.client,$.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}var Dd={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`};function Od(e){return Nd(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var kd=/([\p{Ll}\d])(\p{Lu})/gu,Ad=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,jd=`$1\0$2`,Md=/[^\p{L}\d]+/giu;function Nd(e){let t=e.trim();t=t.replace(kd,jd).replace(Ad,jd),t=t.replace(Md,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var Pd=e=>`validationError`in(e.response?.data?.details??{}),Fd=e=>`applicationError`in(e.response?.data?.details??{}),Id=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function Ld(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;
5if(Pd(e))return Rd(e,t,n);if(Fd(e))return Bd(e);if(Id(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:Od(n),data:{}},requestId:e.requestId};return zd(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return Vd(e)}var Rd=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=Hd(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return zd(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},zd=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),Bd=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??Od(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return zd(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},Vd=e=>zd(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:Od(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),Hd=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:Ud(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,Ud(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},Ud=(e,t)=>{let n=Wd(e);return n==null?e:e.replace(`$[${n}]`,t[n])},Wd=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function Gd(e,t,n,r,i,a,o,s,c){return Ed(()=>e({request:async e=>{let i=e({host:o?.HTTPHost||`www.wixapis.com`}),a=i;a.method===`GET`&&a.fallback?.length&&(a.params?.toString().length??0)>4e3&&(a=i.fallback[0]);let l=o?.HTTPHost??`www.wixapis.com`,u=`https://${c?gd:l}${a.url}`;a.params&&a.params.toString()&&(u+=`?${a.params.toString()}`);try{let e=wd(i,t,s),o={method:a.method,...a.data&&{body:JSON.stringify(a.data)},headers:{...e}},c=await n(u,o);if(c.status!==200){let e=null;try{e=await c.json()}catch{}let t=qd(c.status,e?.message,e?.details,{requestId:c.headers.get(`X-Wix-Request-Id`),details:e}),n=Ld(t);throw r?.handleError(n,{requestOptions:{url:a.url,method:a.method,entityFqdn:i.entityFqdn,methodFqn:i.methodFqn}}),t}let l=await c.json();return{data:a.migrationOptions?.optInTransformResponse&&a.transformResponse?Array.isArray(a.transformResponse)?a.transformResponse[0](l):a.transformResponse(l):l,headers:c.headers,status:c.status,statusText:c.statusText}}catch(e){throw e.message?.includes(`fetch is not defined`)&&console.error(`Node.js v18+ is required`),e}},fetchWithAuth:n,wixAPIFetch:i,getActiveToken:a}))}var Kd=class extends Error{response;requestId;constructor(e){super(),this.response=e.response,this.requestId=e.requestId}},qd=(e,t,n,r)=>new Kd({response:{data:{details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t},status:e},requestId:r?.requestId}),Jd=`.`;function Yd(e,t,n){if(e==null)throw Error(`Cannot set value on null or undefined`);let r=Xd(t),i=e;for(let e=0;e<r.length;e++){let t=r[e];if(e===r.length-1){i[t]=n;break}let a=r[e+1];(!(t in i)||i[t]==null||typeof i[t]!=`object`||i[t]===null)&&(i[t]=typeof a==`number`?[]:{}),i=i[t]}return e}function Xd(e){return Array.isArray(e)?e:e.split(Jd).map(e=>Zd(e)?Number(e):e)}function Zd(e){return/^\d+$/.test(e)}function Qd(e){let t={};for(let[n,r]of Object.entries(e))$d(n)||Yd(t,Xd(n),r);return t}function $d(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var ef=class{BRACKET_PATTERN=/\[(\d+)\]/g;NUMERIC_PATTERN=/^\d+$/;ESCAPED_DOT_PATTERN=/\\\./g;ESCAPED_LEFT_BRACKET_PATTERN=/\\\[/g;ESCAPED_RIGHT_BRACKET_PATTERN=/\\\]/g;SPLIT_PATTERN=/\.|\[(\d+)\]/g;DOT_BEFORE_BRACKET_PATTERN=/\.\[/g;ESCAPED_DOT_PLACEHOLDER=`__DOT__`;ESCAPED_RIGHT_BRACKET_PLACEHOLDER=`__RB__`;ESCAPED_LEFT_BRACKET_PLACEHOLDER=`__LB__`;modifiedFields;cleanedModifiedFields;constructor(e){this.modifiedFields=e}replaceEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PATTERN,this.ESCAPED_DOT_PLACEHOLDER).replace(this.ESCAPED_LEFT_BRACKET_PATTERN,this.ESCAPED_LEFT_BRACKET_PLACEHOLDER).replace(this.ESCAPED_RIGHT_BRACKET_PATTERN,this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER)}restoreEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PLACEHOLDER,`\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER,`\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER,`\\[`)}unflatten(){return this.cleanedModifiedFields=Object.fromEntries(Object.entries(this.modifiedFields).map(([e,t])=>[this.replaceEscapedCharacters(this.bracketToDotNotation(e)),t])),Qd(this.cleanedModifiedFields)}flatten(e){let t={};for(let n of Object.keys(this.cleanedModifiedFields)){let r=this.splitPath(n),i=this.navigatePath(e,r);t={...t,...i}}return Object.fromEntries(Object.entries(t).map(([e,t])=>[this.restoreEscapedCharacters(e),t]))}splitPath(e){let t=[],n=0,r=Array.from(e.matchAll(this.SPLIT_PATTERN));for(let i of r)i.index>n&&t.push(e.substring(n,i.index)),i[1]&&t.push(i[1]),n=i.index+i[0].length;return n<e.length&&t.push(e.substring(n)),t}navigatePath(e,t){let n=e,r=[],i=e=>{if(!Array.isArray(n))throw Error(`Expected array at path ${this.buildPathString(r)}, but got ${typeof n}`);r.push(`[${e}]`),n=n[parseInt(e,10)]},a=(e,t)=>{let i=e in Dd?Dd[e]:void 0;if(i&&i in t){r.push(i),n=t[i];return}let a=af(e);
5if(a&&a in t){r.push(a),n=t[a];return}throw Error(`Cannot find key '${e}' or its transformations at path ${this.buildPathString(r)}`)},o=(e,t)=>{r.push(e),n=t[e]};for(let e of t){if(this.NUMERIC_PATTERN.test(e)){i(e);continue}if(typeof n!=`object`||!n)throw Error(`Cannot access property '${e}' on ${typeof n} at path ${this.buildPathString(r)}`);let t=n;if(e in n){o(e,t);continue}a(e,t)}return{[this.buildPathString(r)]:n}}buildPathString(e){return e.join(`.`).replace(this.DOT_BEFORE_BRACKET_PATTERN,`[`)}bracketToDotNotation(e){return e.replace(this.BRACKET_PATTERN,(t,n,r)=>r>0&&e[r-1]===`\\`?t:`.`+n)}};function tf(e,t){let n=e?.modifiedFields;if(!n)return null;let r=nf(n);if(!r)return null;let{unflattenedModifiedFields:i,modifiedFieldsManipulator:a}=r;e={...e,modifiedFields:i};let o=t(e),s=o?.modifiedFields;if(!s)return null;let c=rf(s,a);return c===null?null:(o.modifiedFields=c,o)}function nf(e){if(typeof e==`object`&&e&&!Array.isArray(e))try{let t=new ef(e);return{unflattenedModifiedFields:t.unflatten(),modifiedFieldsManipulator:t}}catch{return null}return null}function rf(e,t){if(typeof e==`object`&&e&&!Array.isArray(e))try{return t.flatten(e)}catch{return null}return null}function af(e){return e.replace(/[-_\s]+(.)?/g,(e,t)=>t?t.toUpperCase():``).replace(/^./,e=>e.toLowerCase())}function of(){return{emit(e,...t){for(let n=0,r=this.events[e]||[],i=r.length;n<i;n++)r[n](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}}var sf=e=>e.__type===`event-definition`;function cf(e,t,n,r){let i;if(e.isDomainEvent){let{deletedEvent:e,actionEvent:t,createdEvent:a,updatedEvent:o,...s}=n,c={...r,...s};i=e?e?.deletedEntity?{entity:e?.deletedEntity,metadata:c}:{metadata:c}:t?{data:t.body,metadata:c}:o?{entity:o.currentEntity,metadata:c,...o.modifiedFields?{modifiedFields:o.modifiedFields}:{}}:{entity:a?.entity,metadata:c}}else i={data:n,metadata:r};let a=e.transformations??(e=>e),o=i,s=i;if(s.modifiedFields){let e=s.modifiedFields;if(typeof e==`object`&&e&&!Array.isArray(e)){o=structuredClone(i);let e=tf(s,a);if(e)return t(e)}}return t(a(o))}function lf(e){let t=new Map,n=of();return{initModule(e){return r=>{let i=t.get(e.type)??[];i.push({eventDefinition:e,handler:r}),t.set(e.type,i),n.emit(`registered`,e)}},client:{...n,getRegisteredEvents:()=>t,async process(e,n={expectedEvents:[]}){let{eventType:r,identity:i,instanceId:a,payload:o,accountInfo:s}=await this.parseJWT(e),c=[...n.expectedEvents,...Array.from(t.keys()).map(e=>({type:e}))];if(c.length>0&&!c.some(({type:e})=>e===r))throw Error(`Unexpected event type: ${r}. Expected one of: ${c.map(e=>e.type).join(`, `)}`);let l=t.get(r)??[];return await Promise.all(l.map(({eventDefinition:e,handler:t})=>cf(e,t,o,{instanceId:a,identity:i,accountInfo:s}))),{instanceId:a,eventType:r,payload:o,identity:i,accountInfo:s}},async processRequest(e,t){let n=await e.text();return this.process(n,t)},async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`string`)throw Error(`Unexpected type of JWT data: expected string, got ${typeof r.data}`);let a=JSON.parse(r.data),o=a.eventType,s=a.accountInfo,c=a.instanceId,l=a.identity?JSON.parse(a.identity):void 0;return{instanceId:c,eventType:o,payload:JSON.parse(a.data),identity:l,accountInfo:s}},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async executeHandlers(e){let n=Array.from(t.keys()).map(e=>({type:e}));if(n.length>0&&!n.some(({type:t})=>t===e.eventType))throw Error(`Unexpected event type: ${e.eventType}. Expected one of: ${n.map(e=>e.type).join(`, `)}`);let r=t.get(e.eventType)??[];await Promise.all(r.map(({eventDefinition:t,handler:n})=>cf(t,n,e.payload,{instanceId:e.instanceId,identity:e.identity})))},apps:{AppInstalled:dd(`AppInstalled`)(),AppRemoved:dd(`AppRemoved`)()}}}}var uf=e=>e.__type===`service-plugin-definition`;function df(e){let t=new Map,n=of();return{initModule(e){return r=>{let i=t.get(e.componentType.toLowerCase())??[];i.push({servicePluginDefinition:e,implementation:r}),t.set(e.componentType.toLowerCase(),i),n.emit(`registered`,e)}},client:{...n,getRegisteredServicePlugins:()=>t,async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t,!0);
5if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`object`||r.data===null||!(`metadata`in r.data)||typeof r.data.metadata!=`object`||r.data.metadata===null||!(`appExtensionType`in r.data.metadata)||typeof r.data.metadata.appExtensionType!=`string`)throw Error(`Unexpected JWT data: expected object with metadata.appExtensionType string`);return r.data},async process(e){let t=await this.parseJWT(e.body);return this.executeHandler(t,e.url)},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async processRequest(e){let t=e.url,n=await e.text();try{let e=await this.process({url:t,body:n});return Response.json(e)}catch(e){if(e.errorType===`SPI`&&e.applicationCode&&e.httpCode)return Response.json({applicationError:{code:e.applicationCode,data:e.data}},{status:e.httpCode});throw e}},async executeHandler(e,n){let r=e.metadata.appExtensionType.toLowerCase(),i=t.get(r)??[];if(i.length===0)throw Error(`No service plugin implementations found for component type ${r}`);if(i.length>1)throw Error(`Multiple service plugin implementations found for component type ${r}. This is currently not supported`);let{implementation:a,servicePluginDefinition:o}=i[0],s=o.methods.find(e=>n.endsWith(e.primaryHttpMappingPath));if(!s)throw Error(`Unexpect request: request url did not match any method: `+n);let c=a[s.name];if(!c)throw Error(`Got request for service plugin method ${s.name} but no implementation was provided. Available methods: ${Object.keys(a).join(`, `)}`);return s.transformations.toREST(await c(s.transformations.fromREST(e)))}}}}var ff=`X-Wix-Consistent`;function pf(e){let t=e.headers||{Authorization:``},n={getAuthHeaders:e=>Promise.resolve({headers:{}})},r=e.auth,i=typeof r==`function`?r:()=>r??n,a=()=>i().getAuthHeaders(e.host),o=async(n,r)=>{let i=await a(),o={...r?.headers??{},...i.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[ff]:t[ff]}:{}},s=e.host?.getErrorHandler?.();try{if(typeof n==`string`||n instanceof URL){let e=await fetch(n,{...r,headers:o});s?.handleError(e,{requestOptions:{url:n.toString(),method:r?.method}});let i=mf(e);return i&&(t[ff]=i),e}else{for(let[e,t]of Object.entries(o))typeof t==`string`&&n.headers.set(e,t);let e=await fetch(n,r);s?.handleError(e,{requestOptions:{url:n.url,method:r?.method}});let i=mf(e);return i&&(t[ff]=i),e}}catch(e){throw s?.handleError(e,{requestOptions:{url:typeof n==`string`||n instanceof URL?n.toString():n.url,method:r?.method}}),e}},{client:s,initModule:c}=df(i),{client:l,initModule:u}=lf(i),d=async(n,r)=>{let i=await a(),o=yd(r),s=await fetch(n,{...r,headers:{...o,...t,...i?.headers,...r?.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[ff]:t[ff]}:{}}}),c=mf(s);return c&&(t[ff]=c),s},f=(t,n)=>{if(sf(t))return u(t);if(uf(t))return c(t);if(xd(t)&&e.host)return Sd(t,e.host);if(typeof t==`function`){if(`__type`in t&&t.__type===`wix_spi_error`)return t;let r=e.host?.apiBaseUrl??`www.wixapis.com`,a=e.useCDN===void 0?i().shouldUseCDN:e.useCDN;return Gd(Ed(()=>md(t))?pd(t):t,n??{},d,e.host?.getErrorHandler?.(),(e,t)=>{let n=new URL(e,`https://${r}`);return n.host=r,n.protocol=`https`,d(n.toString(),t)},i().getActiveToken,{HTTPHost:r},e.host?.name,a)}else if(bd(t))return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,f(n,t[hd])]));else return t},p=e=>{for(let n in e)t[n]=e[n]};return{...e.modules?f(e.modules):{},get auth(){let t=i();return t.getAuthHeaders=t.getAuthHeaders.bind(void 0,e.host),t},setHeaders:p,use:f,enableContext(e,t={elevated:!1}){e===`global`?globalThis.__wix_context__==null?t.elevated?globalThis.__wix_context__={elevatedClient:this}:globalThis.__wix_context__={client:this}:t.elevated?globalThis.__wix_context__.elevatedClient=this:globalThis.__wix_context__.client=this:t.elevated?$.elevatedClient=this:$.client=this},fetch:(t,n)=>{let r=e.host?.apiBaseUrl??`www.wixapis.com`,i=new URL(t,`https://${r}`);return i.host=r,i.protocol=`https`,d(i.toString(),n)},fetchWithAuth:o,async graphql(t,n,r={apiVersion:`alpha`}){let i=await d(`https://${e?.host?.apiBaseUrl??`www.wixapis.com`}/graphql/${r.apiVersion}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({query:t,variables:n})});if(i.status!==200)throw new _d(`GraphQL request failed with status ${i.status}
5`,i);let{data:a,errors:o}=await i.json();return{data:a??{},errors:o}},webhooks:l,servicePlugins:s}}function mf(e){return e.headers?.get(`X-Wix-Consistent`)??e.headers?.get(`x-wix-consistent`)}export{z as A,M as B,Kr as C,B as D,Pr as E,L as F,Je as G,ot as H,zt as I,b as J,Ue as K,I as L,Tn as M,fn as N,er as O,R as P,P as R,Gr as S,Yr as T,D as U,k as V,T as W,y as X,v as Y,h as Z,ki as _,Us as a,V as b,yo as c,oo as d,Pa as f,U as g,sa as h,dc as i,On as j,$n as k,fo as l,ka as m,ud as n,To as o,Na as p,Ve as q,ul as r,wo as s,pf as t,G as u,Ti as v,Jr as w,Xr as x,Ei as y,F as z};
6//# sourceMappingURL=vendor-integrations-BXeksRug.js.map

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