!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="35eb012c-ca30-5ac1-88f4-4f607742b147")}catch(e){}}();
(()=>{var e,t,n,r={1035(e,t,n){"use strict";var r=n(5959),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var s=l(n);d&&(s=s.concat(d(n)));for(var a=c(t),m=c(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},1609(e){"use strict";e.exports=window.React},4406(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,s=void 0!==i&&i,a=e.findChunks,c=void 0===a?r:a,u=e.sanitize,l=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:s,sanitize:u,searchWords:l,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),s=void 0;s=i.exec(a);){var c=s.index,u=i.lastIndex;u>c&&e.push({highlight:!1,start:c,end:u}),s.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},4463(e,t,n){"use strict";var r={};n.r(r),n.d(r,{getState:()=>bc});var o={};n.r(o),n.d(o,{createConnection:()=>wc});var i={};n.r(i),n.d(i,{Text:()=>gy,block:()=>yy,destructive:()=>by,highlighterText:()=>Sy,muted:()=>wy,positive:()=>vy,upperCase:()=>_y});var s=n(9576);const a=window.wp.data,c=window.wp.dataControls,u=window.lodash;var l=n.n(u);const d=(window.wc.wcSettings,window.wp.date,window.wp.i18n),f=((0,u.memoize)((e=>(0,u.groupBy)(e,"serviceId"))),e=>{try{return new ActiveXObject(e)}catch{}});(0,u.memoize)((()=>(0,u.get)(window,"navigator.msSaveOrOpenBlob")?"ie":/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent)&&!window.MSStream?"addon":(0,u.includes)(navigator.userAgent,"Firefox")?parseFloat(navigator.userAgent.split("Firefox/")[1])>=94?"native_ff":"addon":(0,u.includes)(navigator.userAgent,"Safari")&&!(0,u.includes)(navigator.userAgent,"Chrome")?"addon":navigator.mimeTypes?.["application/pdf"]||navigator.pdfViewerEnabled?"native":!(!f("AcroPDF.PDF")&&!f("PDF.PdfCtrl"))&&"addon")),Error,window.wp.url;const p="9.1.0",h=globalThis;function m(){return g(h),h}function g(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||p,t[p]=t[p]||{}}function y(e,t,n=h){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[p]=r[p]||{};return o[e]||(o[e]=t())}const v=Object.prototype.toString;function b(e){switch(v.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return O(e,Error)}}function w(e,t){return v.call(e)===`[object ${t}]`}function S(e){return w(e,"ErrorEvent")}function _(e){return w(e,"DOMError")}function x(e){return w(e,"String")}function k(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function E(e){return null===e||k(e)||"object"!=typeof e&&"function"!=typeof e}function C(e){return w(e,"Object")}function T(e){return"undefined"!=typeof Event&&O(e,Event)}function I(e){return Boolean(e?.then&&"function"==typeof e.then)}function O(e,t){try{return e instanceof t}catch(e){return!1}}function M(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const R=h;function A(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(u=N(n,l),!("html"===u||i>1&&s+o.length*c+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return"<unknown>"}}function N(e,t){const n=e,r=[];if(!n?.tagName)return"";if(R.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());const o=t?.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(o?.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&x(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const i=["aria-label","type","name","title","alt"];for(const e of i){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function D(){try{return R.document.location.href}catch(e){return""}}const P="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,L=["debug","info","warn","error","log","assert","trace"],j={};function $(e){if(!("console"in h))return e();const t=h.console,n={},r=Object.keys(j);r.forEach((e=>{const r=j[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const F=y("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return P?L.forEach((n=>{t[n]=(...t)=>{e&&$((()=>{h.console[n](`Sentry Logger [${n}]:`,...t)}))}})):L.forEach((e=>{t[e]=()=>{}})),t}));function B(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function z(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{M(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function U(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!x(e)&&(w(t,"RegExp")?t.test(e):!!x(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function H(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&q(o,r);try{e[t]=o}catch{P&&F.log(`Failed to replace method "${t}" in object`,e)}}function W(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){P&&F.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function q(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,W(e,"__sentry_original__",t)}catch(e){}}function V(e){return e.__sentry_original__}function Y(e){if(b(e))return{message:e.message,name:e.name,stack:e.stack,...K(e)};if(T(e)){const t={type:e.type,target:G(e.target),currentTarget:G(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&O(e,CustomEvent)&&(t.detail=e.detail),t}return e}function G(e){try{return"undefined"!=typeof Element&&O(e,Element)?A(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function K(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function X(e){return J(e,new Map)}function J(e,t){if(function(e){if(!C(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(r[n]=J(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(J(e,t))})),r}return e}function Q(){return Date.now()/1e3}const Z=function(){const{performance:e}=h;if(!e?.now)return Q;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let ee;function te(){const e=h,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function ne(e){return e.exception?.values?.[0]}function re(e){const{message:t,event_id:n}=e;if(t)return t;const r=ne(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function oe(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ie(e,t){const n=ne(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function se(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{W(e,"__sentry_captured__",!0)}catch(e){}return!1}function ae(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||Z(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:te()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ce(){return te()}function ue(){return te().substring(16)}function le(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=le(r[e],t[e],n-1));return r}const de="_sentrySpan";function fe(e,t){t?W(e,de,t):delete e[de]}function pe(e){return e[de]}class he{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:ce(),sampleRand:Math.random()}}clone(){const e=new he;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,fe(e,pe(this)),e}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&&ae(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof he?t.getScopeData():C(t)?e:void 0,{tags:r,extra:o,user:i,contexts:s,level:a,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),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._session=void 0,fe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ce(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Q(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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:pe(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=le(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||te();if(!this._client)return F.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n?.event_id||te();if(!this._client)return F.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t?.event_id||te();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(F.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}class me{constructor(e,t){let n,r;n=e||new he,r=t||new he,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return I(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(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function ge(){const e=g(m());return e.stack=e.stack||new me(y("defaultCurrentScope",(()=>new he)),y("defaultIsolationScope",(()=>new he)))}function ye(e){return ge().withScope(e)}function ve(e,t){const n=ge();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function be(e){return ge().withScope((()=>e(ge().getIsolationScope())))}function we(e){const t=g(e);return t.acs?t.acs:{withIsolationScope:be,withScope:ye,withSetScope:ve,withSetIsolationScope:(e,t)=>be(t),getCurrentScope:()=>ge().getScope(),getIsolationScope:()=>ge().getIsolationScope()}}function Se(){return we(m()).getCurrentScope()}function _e(){return we(m()).getIsolationScope()}function xe(){return Se().getClient()}function ke(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t;return X({trace_id:n,span_id:o||ue(),parent_span_id:r})}const Ee="production",Ce="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Te;function Ie(e){return new Me((t=>{t(e)}))}function Oe(e){return new Me(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Te||(Te={}));class Me{constructor(e){this._state=Te.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new Me(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Me(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}_executeHandlers(){if(this._state===Te.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Te.RESOLVED&&e[1](this._value),this._state===Te.REJECTED&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=(e,t)=>{this._state===Te.PENDING&&(I(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(Te.RESOLVED,e)},r=e=>{t(Te.REJECTED,e)};try{e(n,r)}catch(e){r(e)}}}function Re(e,t,n,r=0){return new Me(((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);Ce&&s.id&&null===a&&F.log(`Event processor "${s.id}" dropped event`),I(a)?a.then((t=>Re(e,t,n,r+1).then(o))).then(null,i):Re(e,a,n,r+1).then(o).then(null,i)}}))}let Ae,Ne,De;const Pe="?",Le=/\(error: (.*)\)/,je=/captureMessage|captureException/;function $e(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const s=Le.test(n)?n.replace(Le,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Fe(t).function||"")&&t.pop(),t.reverse(),je.test(Fe(t).function||"")&&(t.pop(),je.test(Fe(t).function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||Fe(t).filename,function:e.function||Pe})))}(o.slice(r))}}function Fe(e){return e[e.length-1]||{}}const Be="<anonymous>";function ze(e){try{return e&&"function"==typeof e&&e.name||Be}catch(e){return Be}}function Ue(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}function He(e,t=100,n=1/0){try{return qe("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function We(e,t=3,n=102400){const r=He(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?We(e,t-1,n):r;var o}function qe(e,t,n=1/0,r=1/0,o=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof globalThis&&t===globalThis)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(M(t))return"[VueViewModel]";if(C(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${ze(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return qe("",u.toJSON(),c-1,r,o)}catch(e){}const l=Array.isArray(t)?[]:{};let d=0;const f=Y(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=f[e];l[e]=qe(e,t,c-1,r,o),d++}return s(t),l}const Ve="sentry.source",Ye="sentry.profile_id",Ge="sentry.exclusive_time",Ke=/^sentry-/;function Xe(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}function Je(e){return{scope:e._sentryScope,isolationScope:e._sentryIsolationScope}}let Qe=!1;function Ze(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:nt(e).parent_span_id,i=Je(e).scope;return X({parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||ue():t,trace_id:n})}function et(e){return"number"==typeof e?tt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tt(e.getTime()):Z()}function tt(e){return e>9999999999?e/1e3:e}function nt(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return X({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:et(o),timestamp:et(s)||void 0,status:rt(c),op:r["sentry.op"],origin:r["sentry.origin"]})}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function rt(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function ot(e){return e._sentryRootSpan||e}function it(){const e=we(m());return e.getActiveSpan?e.getActiveSpan():pe(Se())}function st(){Qe||($((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),Qe=!0)}function at(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=X({environment:n.environment||Ee,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function ct(e){const t=xe();if(!t)return{};const n=ot(e),r=nt(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o["sentry.sample_rate"];function a(e){return"number"!=typeof s&&"string"!=typeof s||(e.sample_rate=`${s}`),e}const c=n._frozenDsc;if(c)return a(c);const u=i?.get("sentry.dsc"),l=u&&function(e){const t=function(e){if(e&&(x(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Xe(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Xe(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ke)&&(e[t.slice(7)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(u);if(l)return a(l);const d=at(e.spanContext().traceId,t),f=o[Ve],p=r.description;return"url"!==f&&p&&(d.transaction=p),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||xe()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}()&&(d.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n)),d.sample_rand=i?.get("sentry.sample_rand")??Je(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}function ut(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:h}=t;lt(e,"extra",n),lt(e,"tags",r),lt(e,"user",o),lt(e,"contexts",i),e.sdkProcessingMetadata=le(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function lt(e,t,n){e[t]=le(e[t],n,1)}function dt(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||te(),timestamp:t.timestamp||Q()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||Ee,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=B(e.message,i));const s=e.exception?.values?.[0];s?.value&&(s.value=B(s.value,i));const a=e.request;a?.url&&(a.url=B(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=h._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return De&&n.length===Ne||(Ne=n.length,De=n.reduce(((n,r)=>{Ae||(Ae={});const o=Ae[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=i?.filename,a=t[r];if(s&&a){n[s]=a,Ae[r]=[s,a];break}}}return n}),{})),De}(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=n[e.filename])}))}))}(c,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new he;return n.update(t),n}(r,n.captureContext);n.mechanism&&ie(c,n.mechanism);const d=o?o.getEventProcessors():[],f=y("globalScope",(()=>new he)).getScopeData();i&&ut(f,i.getScopeData()),l&&ut(f,l.getScopeData());const p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),function(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=X(n);Object.keys(c).length&&(e.extra={...c,...e.extra});const u=X(r);Object.keys(u).length&&(e.tags={...u,...e.tags});const l=X(o);Object.keys(l).length&&(e.user={...l,...e.user});const d=X(i);Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ze(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ct(t),...e.sdkProcessingMetadata};const n=nt(ot(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}(c,f),Re([...d,...f.eventProcessors],c,n).then((e=>(e&&function(e){const t={};if(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)}))})),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:He(e.data,t,n)}})))},...e.user&&{user:He(e.user,t,n)},...e.contexts&&{contexts:He(e.contexts,t,n)},...e.extra&&{extra:He(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=He(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:He(e.data,t,n)}})))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=He(e.contexts.flags,3,n)),r}(e,s,a):e)))}const ft=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function pt(e,t){return Se().captureException(e,function(e){if(e)return function(e){return e instanceof he||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>ft.includes(e)))}(e)?{captureContext:e}:e}(t))}function ht(e,t){return Se().captureEvent(e,t)}function mt(e,t){_e().setContext(e,t)}function gt(e){const t=_e(),n=Se(),{userAgent:r}=h.navigator||{},o=function(e){const t=Z(),n={sid:te(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return X({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${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}})}(n)};return e&&ae(n,e),n}({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return"ok"===i?.status&&ae(i,{status:"exited"}),yt(),t.setSession(o),o}function yt(){const e=_e(),t=Se().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),ae(e,t)}(t),vt(),e.setSession()}function vt(){const e=_e(),t=xe(),n=e.getSession();n&&t&&t.captureSession(n)}function bt(e=!1){e?yt():vt()}const wt=[];function St(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r)}function _t(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function xt(e,t,n){if(n[t.name])Ce&&F.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===wt.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),wt.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Ce&&F.log(`Integration installed: ${t.name}`)}}function kt(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch(e){}return t}const Et=[/^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+$/],Ct=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const o=r.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Et],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(Ce&&F.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${re(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&kt(e).some((e=>U(e,t)))}(e,t.ignoreErrors)?(Ce&&F.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${re(e)}`),!0):function(e){return!e.type&&(!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e)?(Ce&&F.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${re(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&U(n,t)}(e,t.ignoreTransactions)?(Ce&&F.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${re(e)}`),!0):function(e,t){if(!t?.length)return!1;const n=Tt(e);return!!n&&U(n,t)}(e,t.denyUrls)?(Ce&&F.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${re(e)}.\nUrl: ${Tt(e)}`),!0):!function(e,t){if(!t?.length)return!0;const n=Tt(e);return!n||U(n,t)}(e,t.allowUrls)&&(Ce&&F.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${re(e)}.\nUrl: ${Tt(e)}`),!0)}(t,i)?null:t}});function Tt(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Ce&&F.error(`Cannot extract url for event ${re(e)}`),null}}let It;const Ot=new WeakMap,Mt=()=>({name:"FunctionToString",setupOnce(){It=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=V(this),n=Ot.has(xe())&&void 0!==t?t:this;return It.apply(n,e)}}catch{}},setup(e){Ot.set(e,!0)}}),Rt=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Nt(e,t)&&!!At(e,t))))}(e,t)||!!function(e,t){const n=Dt(t),r=Dt(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Nt(e,t)&&!!At(e,t)))}(e,t))}(t,e))return Ce&&F.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function At(e,t){let n=Ue(e),r=Ue(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function Nt(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Dt(e){return e.exception?.values&&e.exception.values[0]}const Pt=h;function Lt(){if(!("fetch"in Pt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function jt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const $t=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ft(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function Bt(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function zt(e,t=[]){return[e,t]}function Ut(e,t){const[n,r]=e;return[n,[...r,t]]}function Ht(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Wt(e){const t=g(h);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function qt(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[Wt(r),e]:r.push("string"==typeof e?Wt(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(He(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function Vt(e){const t="string"==typeof e.data?Wt(e.data):e.data;return[X({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Yt={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",raw_security:"security"};function Gt(e){return Yt[e]}function Kt(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Xt(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ft(r)},...o&&{trace:X({...o})}}}class Jt extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}function Qt(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}const Zt="Not capturing exception because it's already been captured.",en="Discarded session because of missing or non-string release";class tn{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=$t.exec(e);if(!t)return void $((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return Bt({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(e):Bt(e);if(t&&function(e){if(!P)return!0;const{port:t,projectId:n,protocol:r}=e,o=["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(F.error(`Invalid Sentry Dsn: ${t} missing`),!0)));return!(o||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(F.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(F.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(F.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Ce&&F.warn("No DSN provided, client will not send events."),this._dsn){const o=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(t)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(t,r)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:o})}var t,n,r}captureException(e,t,n){const r=te();if(se(e))return Ce&&F.log(Zt),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,n)))),o.event_id}captureMessage(e,t,n,r){const o={event_id:te(),...n},i=k(e)?e:String(e),s=E(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then((e=>this._captureEvent(e,o,r)))),o.event_id}captureEvent(e,t,n){const r=te();if(t?.originalException&&se(t.originalException))return Ce&&F.log(Zt),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,a=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,s||n,a)),o.event_id}captureSession(e){this.sendSession(e),ae(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Ie(!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){const t=this._integrations[e.name];xt(this,e,this._integrations),t||_t(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=Kt(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n?.sdk);const s=Xt(e,o,r,t);return delete e.sdkProcessingMetadata,zt(s,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Ut(n,Vt(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const{release:t,environment:n=Ee}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(Ce&&F.warn(en));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(Ce&&F.warn(en));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=function(e,t,n,r){const o=Kt(n);return zt({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Ft(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;Ce&&F.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const 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=>(Ce&&F.error("Error while sending envelope:",e),e))):(Ce&&F.error("Transport disabled"),Ie({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&xt(e,t,n)})),n}(this,e),_t(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(!1===t?.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(ae(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Me((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),dt(o,e,t,n,this,r).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:ke(n),...e.contexts};const r=function(e,t){const n=t.getPropagationContext();return n.dsc||at(n.traceId,e)}(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},n=Se(),r=_e()){return Ce&&nn(e)&&F.log(`Captured error event \`${kt(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then((e=>e.event_id),(e=>{Ce&&(e instanceof Jt&&"log"===e.logLevel?F.log(e.message):F.warn(e))}))}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=rn(e),a=nn(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===i?void 0:Qt(i);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),Oe(new Jt(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d="replay_event"===c?"replay":c;return this._prepareEvent(e,t,n,r).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),new Jt("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;let a=n;if(nn(a)&&o)return o(a,r);if(rn(a)){if(s){const e=s(function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return X({data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Ye],exclusive_time:s?.[Ge],measurements:e.measurements,is_segment:!0})}(a));if(e?a=le(n,X({type:"transaction",timestamp:(c=e).timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:{...c.data,...c.profile_id&&{[Ye]:c.profile_id},...c.exclusive_time&&{[Ge]:c.exclusive_time}}}},measurements:c.measurements})):st(),a.spans){const e=[];for(const t of a.spans){const n=s(t);n?e.push(n):(st(),e.push(t))}a.spans=e}}if(i){if(a.spans){const e=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(a,r)}}var c;return a}(0,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(I(e))return e.then((e=>{if(!C(e)&&null!==e)throw new Jt(n);return e}),(e=>{throw new Jt(`${t} rejected with ${e}`)}));if(!C(e)&&null!==e)throw new Jt(n);return e}(n,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Jt(`${u} returned \`null\`, will not send event.`,"log")}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=o.transaction_info;if(s&&c&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...c,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(e instanceof Jt)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Jt(`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(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){Ce&&F.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(Ce&&F.log("No outcomes to send"));if(!this._dsn)return void(Ce&&F.log("No dsn provided, will not send outcomes"));Ce&&F.log("Sending outcomes:",e);const t=(n=e,zt((r=this._options.tunnel&&Ft(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Q(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function nn(e){return void 0===e.type}function rn(e){return"transaction"===e.type}function on(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:p}))),version:p}),e._metadata=o}function sn(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function an(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function cn(e,t){const n=ln(e,t),r={type:pn(t),value:hn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function un(e,t){return{exception:{values:[cn(e,t)]}}}function ln(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&dn.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch(e){}return[]}const dn=/Minified React error #\d+;/i;function fn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function pn(e){const t=e?.name;return!t&&fn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function hn(e){const t=e?.message;return fn(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function mn(e,t,n,r,o){let i;if(S(t)&&t.error)return un(e,t.error);if(_(t)||w(t,"DOMException")){const o=t;if("stack"in t)i=un(e,t);else{const t=o.name||(_(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=gn(e,s,n,r),oe(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return b(t)?un(e,t):C(t)||T(t)?(i=function(e,t,n,r){const o=xe(),i=o?.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:We(t,i)};if(s)return{exception:{values:[cn(e,s)]},extra:a};const c={exception:{values:[{type:T(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:yn(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=ln(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,o),ie(i,{synthetic:!0}),i):(i=gn(e,t,n,r),oe(i,`${t}`,void 0),ie(i,{synthetic:!0}),i)}function gn(e,t,n,r){const o={};if(r&&n){const r=ln(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),ie(o,{synthetic:!0})}if(k(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function yn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Y(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return B(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:B(r,t)}return""}(e),r=t?"promise rejection":"exception";return S(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:T(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const vn=h;let bn=0;function wn(){return bn>0}function Sn(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(V(e))return e}catch(t){return e}const n=function(...n){try{const r=n.map((e=>Sn(e,t)));return e.apply(this,r)}catch(e){throw bn++,setTimeout((()=>{bn--})),function(...e){const t=we(m());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}((r=>{r.addEventProcessor((e=>(t.mechanism&&(oe(e,void 0,void 0),ie(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),pt(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}q(n,e),W(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}class xn extends tn{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};on(t,"browser",["browser"],vn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&vn.document&&vn.document.addEventListener("visibilitychange",(()=>{"hidden"===vn.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",sn),this.on("beforeSendSession",an))}eventFromException(e,t){return function(e,t,n,r){const o=mn(e,t,n?.syntheticException||void 0,r);return ie(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Ie(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=gn(e,t,r?.syntheticException||void 0,o);return i.level=n,r?.event_id&&(i.event_id=r.event_id),Ie(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}const kn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,En={},Cn={};function Tn(e,t){En[e]=En[e]||[],En[e].push(t)}function In(e,t){if(!Cn[e]){Cn[e]=!0;try{t()}catch(t){P&&F.error(`Error while instrumenting ${e}`,t)}}}function On(e,t){const n=e&&En[e];if(n)for(const r of n)try{r(t)}catch(t){P&&F.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ze(r)}\nError:`,t)}}const Mn=h;let Rn,An,Nn;function Dn(e){Tn("dom",e),In("dom",Pn)}function Pn(){if(!Mn.document)return;const e=On.bind(null,"dom"),t=Ln(e,!0);Mn.document.addEventListener("click",t,!1),Mn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Mn,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(H(r,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=Ln(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(e){}return t.call(this,n,r,o)}})),H(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function Ln(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;W(n,"_sentryCaptured",!0),r&&!r._sentryId&&W(r,"_sentryId",te());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==An)return!1;try{if(!e.target||e.target._sentryId!==Nn)return!1}catch(e){}return!0})(n)||(e({event:n,name:o,global:t}),An=n.type,Nn=r?r._sentryId:void 0),clearTimeout(Rn),Rn=Mn.setTimeout((()=>{Nn=void 0,An=void 0}),1e3)}}const jn="__sentry_xhr_v3__";function $n(){if(!Mn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*Z(),i=x(n[0])?n[0].toUpperCase():void 0,s=function(e){if(x(e))return e;try{return e.toString()}catch{}}(n[1]);if(!i||!s)return e.apply(t,n);t[jn]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[jn];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}On("xhr",{endTimestamp:1e3*Z(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[jn];return i&&x(r)&&x(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[jn];return r?(void 0!==n[0]&&(r.body=n[0]),On("xhr",{startTimestamp:1e3*Z(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}let Fn;function Bn(e){const t="history";Tn(t,e),In(t,zn)}function zn(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Fn,t=String(n);if(Fn=t,e===t)return;On("history",{from:e,to:t})}return e.apply(this,t)}}Mn.addEventListener("popstate",(()=>{const e=Mn.location.href,t=Fn;Fn=e,t!==e&&On("history",{from:t,to:e})})),"history"in Pt&&(H(Mn.history,"pushState",e),H(Mn.history,"replaceState",e))}function Un(){"console"in h&&L.forEach((function(e){e in h.console&&H(h.console,e,(function(t){return j[e]=t,function(...t){On("console",{args:t,level:e});const n=j[e];n?.apply(h.console,t)}}))}))}function Hn(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Wn(e){return"string"==typeof e?e:e?Hn(e,"url")?e.url:e.toString?e.toString():"":""}const qn=100;function Vn(e,t){const n=xe(),r=_e();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=qn}=n.getOptions();if(i<=0)return;const s={timestamp:Q(),...e},a=o?$((()=>o(s,t))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}function Yn(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function Gn(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function Kn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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}}const Xn=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";Tn(t,e),In(t,Un)}(function(e){return function(t){if(xe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Yn(t.level),message:z(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${z(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Vn(n,{input:t.args,level:t.level})}}(e)),t.dom&&Dn(function(e,t){return function(n){if(xe()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>1024&&(kn&&F.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=A(t,{keyAttrs:i,maxStringLength:s}),o=function(e){if(!R.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}(t)}catch(e){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),Vn(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(n=function(e){return function(t){if(xe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[jn];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,u={method:i,url:s,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:Gn(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Vn(d,l)}}(e),Tn("xhr",n),In("xhr",$n)),t.fetch&&function(e){const t="fetch";Tn(t,e),In(t,(()=>function(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!Lt())return!1;if(jt(Pt.fetch))return!0;let e=!1;const t=Pt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=jt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){P&&F.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||H(h,"fetch",(function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Wn(t),method:Hn(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Wn(t),method:Hn(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*Z(),virtualError:r};return e||On("fetch",{...s}),t.apply(h,n).then((async t=>(e?e(t):On("fetch",{...s,endTimestamp:1e3*Z(),response:t}),t)),(e=>{throw On("fetch",{...s,endTimestamp:1e3*Z(),error:e}),b(e)&&void 0===e.stack&&(e.stack=r.stack,W(e,"framesToPop",1)),e}))}}))}(void 0,undefined)))}(function(e){return function(t){if(xe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),Vn(s,i)}else{const o=t.response,i={...t.fetchData,status_code:o?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const s={input:t.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:Gn(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),Vn(a,s)}}}(e)),t.history&&Bn(function(e){return function(t){if(xe()!==e)return;let n=t.from,r=t.to;const o=Kn(vn.location.href);let i=n?Kn(n):void 0;const s=Kn(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Vn({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){xe()===e&&Vn({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:re(t)},{event:t})}}(e))}}},Jn=["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"],Qn=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&H(vn,"setTimeout",Zn),t.setInterval&&H(vn,"setInterval",Zn),t.requestAnimationFrame&&H(vn,"requestAnimationFrame",er),t.XMLHttpRequest&&"XMLHttpRequest"in vn&&H(XMLHttpRequest.prototype,"send",tr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Jn).forEach(nr)}}};function Zn(e){return function(...t){const n=t[0];return t[0]=Sn(n,{mechanism:{data:{function:ze(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function er(e){return function(t){return e.apply(this,[Sn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ze(e)},handled:!1,type:"instrument"}})])}}function tr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&H(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ze(t)},handled:!1,type:"instrument"}},r=V(t);return r&&(n.mechanism.data.handler=ze(r)),Sn(t,n)}))})),e.apply(this,t)}}function nr(e){const t=vn,n=t[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(H(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Sn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ze(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,Sn(r,{mechanism:{data:{function:"addEventListener",handler:ze(r),target:e},handled:!1,type:"instrument"}}),o])}})),H(n,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,n,r)}})))}let rr=null;function or(){rr=h.onerror,h.onerror=function(e,t,n,r,o){return On("error",{column:r,error:o,line:n,msg:e,url:t}),!!rr&&rr.apply(this,arguments)},h.onerror.__SENTRY_INSTRUMENTED__=!0}let ir=null;function sr(){ir=h.onunhandledrejection,h.onunhandledrejection=function(e){return On("unhandledrejection",e),!ir||ir.apply(this,arguments)},h.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ar=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";Tn(t,(t=>{const{stackParser:n,attachStacktrace:r}=ur();if(xe()!==e||wn())return;const{msg:o,url:i,line:s,column:a,error:c}=t,u=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=x(t)&&t.length>0?t:D();return 0===c.length&&c.push({colno:u,filename:d,function:Pe,in_app:!0,lineno:l}),e}(mn(n,c||o,void 0,r,!1),i,s,a);u.level="error",ht(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})),In(t,or)}()}(e),cr("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";Tn(t,(t=>{const{stackParser:n,attachStacktrace:r}=ur();if(xe()!==e||wn())return;const o=function(e){if(E(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}(t),i=E(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:mn(n,o,void 0,r,!0);i.level="error",ht(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})),In(t,sr)}()}(e),cr("onunhandledrejection"))}}};function cr(e){kn&&F.log(`Global Handler attached: ${e}`)}function ur(){const e=xe();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function lr(e,t,n=250,r,o,i,s){if(!i.exception?.values||!s||!O(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,u;a&&(i.exception.values=(c=dr(e,t,o,s.originalException,r,i.exception.values,a,0),u=n,c.map((e=>(e.value&&(e.value=B(e.value,u)),e)))))}function dr(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(O(r[o],Error)){fr(s,a);const i=e(t,r[o]),u=c.length;pr(i,o,u,a),c=dr(e,t,n,r[o],o,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(O(r,Error)){fr(s,a);const u=e(t,r),l=c.length;pr(u,`errors[${i}]`,l,a),c=dr(e,t,n,r,o,[u,...c],u,l)}})),c}function fr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function pr(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}}const hr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();lr(cn,i.stackParser,i.maxValueLength,n,t,e,r)}}};function mr(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?Pe:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const gr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,yr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vr=/\((\S*)(?::(\d+))(?::(\d+))\)/,br=[30,e=>{const t=gr.exec(e);if(t){const[,e,n,r]=t;return mr(e,Pe,+n,+r)}const n=yr.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=vr.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=kr(n[1]||Pe,n[2]);return mr(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],wr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_r=[50,e=>{const t=wr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Sr.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]||Pe;return[n,e]=kr(n,e),mr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],xr=$e(br,_r),kr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Pe,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Er="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Cr={};function Tr(e){const t=Cr[e];if(t)return t;let n=Mn[e];if(jt(n))return Cr[e]=n.bind(Mn);const r=Mn.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){Er&&F.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?Cr[e]=n.bind(Mn):n}function Ir(e){Cr[e]=void 0}function Or(...e){return Tr("setTimeout")(...e)}function Mr(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Rr(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function Ar(e,t=Tr("fetch")){let n=0,r=0;return function(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return Oe(new Jt("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new Me(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Ie(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||64)){let r={};return{send:function(o){const i=[];if(Ht(o,((t,n)=>{const o=Gt(n);Mr(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):i.push(t)})),0===i.length)return Ie({});const s=zt(o[0],i),a=t=>{Ht(s,((n,r)=>{e.recordDroppedEvent(t,Gt(r))}))};return n.add((()=>t({body:qt(s)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Ce&&F.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Rr(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Jt)return Ce&&F.error("Skipped sending event because buffer is full."),a("queue_overflow"),Ie({});throw e}))},flush:e=>n.drain(e)}}(e,(function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Ir("fetch"),Oe("No fetch implementation available");try{return t(e.url,s).then((e=>(n-=i,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 Ir("fetch"),n-=i,r--,Oe(e)}}))}function Nr(e){const t={};for(const n of Object.getOwnPropertyNames(e)){const r=n;void 0!==e[r]&&(t[r]=e[r])}return t}function Dr(e={}){const t=function(e={}){return{defaultIntegrations:[Ct(),Mt(),Qn(),Xn(),ar(),hr(),Rt(),{name:"HttpContext",preprocessEvent(e){if(!vn.navigator&&!vn.location&&!vn.document)return;const t=e.request?.url||D(),{referrer:n}=vn.document||{},{userAgent:r}=vn.navigator||{},o={...e.request?.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}},{name:"BrowserSession",setupOnce(){void 0!==vn.document?(gt({ignoreDuration:!0}),bt(),Bn((({from:e,to:t})=>{void 0!==e&&e!==t&&(gt({ignoreDuration:!0}),bt())}))):kn&&F.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:vn.SENTRY_RELEASE?.id,sendClientReports:!0,...Nr(e)}}(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==vn.window&&vn;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t?.runtime?.id,r=D()||"",o=!!n&&vn===vn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>r.startsWith(`${e}//`))),i=void 0!==e.nw;return!!n&&!o&&!i}())return void(kn&&$((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})));kn&&!Lt()&&F.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");const n={...t,stackParser:(r=t.stackParser||xr,Array.isArray(r)?$e(...r):r),integrations:St(t),transport:t.transport||Ar};var r;return function(e,t){!0===t.debug&&(Ce?F.enable():$((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Se().update(t.initialScope);const n=new e(t);return function(e){Se().setClient(e)}(n),n.init(),n}(xn,n)}var Pr=n(1609),Lr=n.t(Pr,2);function jr(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function $r(){return"undefined"!=typeof window&&(!(("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||function(){const e=h.process;return"renderer"===e?.type}())}const Fr=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o||0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Br=(e=!0)=>{const t=Mn.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},zr=()=>{const e=Br();return e?.activationStart||0},Ur=(e,t)=>{const n=Br();let r="navigate";return n&&(Mn.document?.prerendering||zr()>0?r="prerender":Mn.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Hr=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Wr=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==Mn.document?.visibilityState||e(t)};Mn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},qr=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Vr=-1;const Yr=e=>{"hidden"===Mn.document.visibilityState&&Vr>-1&&(Vr="visibilitychange"===e.type?e.timeStamp:0,Gr())},Gr=()=>{removeEventListener("visibilitychange",Yr,!0),removeEventListener("prerenderingchange",Yr,!0)},Kr=()=>(Mn.document&&Vr<0&&(Vr="hidden"!==Mn.document.visibilityState||Mn.document.prerendering?1/0:0,addEventListener("visibilitychange",Yr,!0),addEventListener("prerenderingchange",Yr,!0)),{get firstHiddenTime(){return Vr}}),Xr=e=>{Mn.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Jr=[1800,3e3],Qr=[.1,.25],Zr=[100,300];let eo=0,to=1/0,no=0;const ro=e=>{e.forEach((e=>{e.interactionId&&(to=Math.min(to,e.interactionId),no=Math.max(no,e.interactionId),eo=no?(no-to)/7+1:0)}))};let oo;const io=()=>{"interactionCount"in performance||oo||(oo=Hr("event",ro,{type:"event",buffered:!0,durationThreshold:0}))},so=[],ao=new Map,co=()=>(oo?eo:performance.interactionCount||0)-0,uo=[],lo=e=>{if(uo.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=so[so.length-1],n=ao.get(e.interactionId);if(n||so.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0]?.startTime&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};ao.set(t.id,t),so.push(t)}so.sort(((e,t)=>t.latency-e.latency)),so.length>10&&so.splice(10).forEach((e=>ao.delete(e.id)))}},fo=e=>{const t=Mn.requestIdleCallback||Mn.setTimeout;let n=-1;return e=qr(e),"hidden"===Mn.document?.visibilityState?e():(n=t(e),Wr(e)),n},po=[200,500],ho=[2500,4e3],mo={},go={},yo={};let vo,bo,wo,So;function _o(e,t){const n=go[e];if(n?.length)for(const r of n)try{r(t)}catch(t){Er&&F.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ze(r)}\nError:`,t)}}function xo(){return((e,t={})=>{((e,t={})=>{Xr((()=>{const n=Kr(),r=Ur("FCP");let o;const i=Hr("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-zr(),0),r.entries.push(e),o(!0)))}))}));i&&(o=Fr(e,r,Jr,t.reportAllChanges))}))})(qr((()=>{const n=Ur("CLS",0);let r,o=0,i=[];const s=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=i[0],n=i[i.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}})),o>n.value&&(n.value=o,n.entries=i,r())},a=Hr("layout-shift",s);a&&(r=Fr(e,n,Qr,t.reportAllChanges),Wr((()=>{s(a.takeRecords()),r(!0)})),setTimeout(r,0))})))})((e=>{_o("cls",{metric:e}),vo=e}),{reportAllChanges:!0})}function ko(){return((e,t={})=>{Xr((()=>{const n=Kr(),r=Ur("FID");let o;const i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},s=e=>{e.forEach(i)},a=Hr("first-input",s);o=Fr(e,r,Zr,t.reportAllChanges),a&&Wr(qr((()=>{s(a.takeRecords()),a.disconnect()})))}))})((e=>{_o("fid",{metric:e}),bo=e}))}function Eo(){return((e,t={})=>{Xr((()=>{const n=Kr(),r=Ur("LCP");let o;const i=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-zr(),0),r.entries=[e],o())}))},s=Hr("largest-contentful-paint",i);if(s){o=Fr(e,r,ho,t.reportAllChanges);const n=qr((()=>{mo[r.id]||(i(s.takeRecords()),s.disconnect(),mo[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{Mn.document&&addEventListener(e,(()=>fo(n)),{once:!0,capture:!0})})),Wr(n)}}))})((e=>{_o("lcp",{metric:e}),wo=e}),{reportAllChanges:!0})}function Co(){return((e,t={})=>{"PerformanceEventTiming"in Mn&&"interactionId"in PerformanceEventTiming.prototype&&Xr((()=>{io();const n=Ur("INP");let r;const o=e=>{fo((()=>{e.forEach(lo);const t=(()=>{const e=Math.min(so.length-1,Math.floor(co()/50));return so[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},i=Hr("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=Fr(e,n,po,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Wr((()=>{o(i.takeRecords()),r(!0)})))}))})((e=>{_o("inp",{metric:e}),So=e}))}function To(e,t,n,r,o=!1){let i;return Io(e,t),yo[e]||(i=n(),yo[e]=!0),r&&t({metric:r}),Oo(e,t,o?i:void 0)}function Io(e,t){go[e]=go[e]||[],go[e].push(t)}function Oo(e,t,n){return()=>{n&&n();const r=go[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function Mo(e){return new URLSearchParams(e).toString()}function Ro(e,t=F){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Mo(e)];if(!e)return[void 0]}catch(n){return Er&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Er&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ao(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}const No=h,Do="sentryReplaySession",Po="Unable to send Replay",Lo=15e4,jo=5e3,$o=2e7;var Fo;function Bo(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function zo(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Uo(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Ho).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Ho(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Uo(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Fo||(Fo={}));class Wo{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qo({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Vo({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Yo(e){return e.toLowerCase()}function Go(e){return e.toUpperCase()}const Ko="__rrweb_original__";function Xo(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Yo(t):null}function Jo(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Qo(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const Zo={};function ei(e){const t=Zo[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Zo[e]=r.bind(window)}function ti(...e){return ei("setTimeout")(...e)}function ni(...e){return ei("clearTimeout")(...e)}function ri(e){try{return e.contentDocument}catch(e){}}let oi=1;const ii=new RegExp("[^a-z0-9-_:]");function si(){return oi++}let ai,ci;const ui=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,li=/^(?:[a-z+]+:)?\/\//i,di=/^www\..*/i,fi=/^(data:)([^,]*),(.*)/i;function pi(e,t){return(e||"").replace(ui,((e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(li.test(a)||di.test(a))return`url(${c}${a}${c})`;if(fi.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const hi=/^[^ \t\n\r\u000c]+/,mi=/^[, \t\n\r\u000c]+/,gi=new WeakMap;function yi(e,t){return t&&""!==t.trim()?vi(e,t):t}function vi(e,t){let n=gi.get(e);if(n||(n=e.createElement("a"),gi.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function bi(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?yi(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(mi),!(n>=t.length);){let i=r(hi);if(","===i.slice(-1))i=yi(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=yi(e,i);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?pi(r,vi(e)):"object"===t&&"data"===n?yi(e,r):"function"==typeof i?i(n,r,o):r:yi(e,r):r}function wi(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Si(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Si(e.parentNode,t,n,r+1):-1}function _i(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function xi(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Si(s,_i(r,o)),c<0)return!0;a=Si(s,_i(t,n),c>=0?c:1/0)}else{if(a=Si(s,_i(t,n)),a<0)return!1;c=Si(s,_i(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!i)}catch(e){}return!!i}function ki(e){return null==e?"":e.toLowerCase()}function Ei(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:w=!1,recordCanvas:S=!1,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:k=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:O=!0}=t;const M=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:S=!1}=t,_=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Fo.Document,childNodes:[],compatMode:e.compatMode}:{type:Fo.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Fo.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:w}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=Yo(e.tagName);return ii.test(t)?"div":t}(e);let x={};const k=e.attributes.length;for(let t=0;t<k;t++){const r=e.attributes[t];r.name&&!wi(_,r.name,r.value)&&(x[r.name]=bi(n,_,Yo(r.name),r.value,e,c))}if("link"===_&&s){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Uo(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=pi(r,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Uo(e.sheet);t&&(x._cssText=pi(t,vi(n)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,n=Xo(t),r=Jo(t,Go(_),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=xi(t,y,b,v,w,qo({type:n,tagName:Go(_),maskInputOptions:a}));x.value=Vo({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(x.checked=o)}if("option"===_&&(e.selected&&!a.select?x.selected=!0:delete x.selected),"canvas"===_&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,i=Ko in o?o[Ko]:o;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(x.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(x.rr_dataURL=t)}if("img"===_&&d){ai||(ai=n.createElement("canvas"),ci=ai.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{ai.width=t.naturalWidth,ai.height=t.naturalHeight,ci.drawImage(t,0,0),x.rr_dataURL=ai.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?x.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"!==_&&"video"!==_||(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"!==_||p(x.src)||(S||ri(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(_)&&(E=!0)}catch(e){}return{type:Fo.Element,tagName:_,attributes:x,childNodes:[],isSVG:(C=e,Boolean("svg"===C.tagName||C.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:E};var C}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:S,rootId:_,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Uo(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=pi(f,vi(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=xi(e,r,i,o,s,n);return p||h||m||!f||!g||(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||g)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===d&&f&&(f=Vo({isMasked:xi(e,r,i,o,s,qo({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:u})),{type:Fo.Text,textContent:f||"",isStyle:p,rootId:l}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:_});case e.CDATA_SECTION_NODE:return{type:Fo.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:Fo.Comment,textContent:e.textContent||"",rootId:_};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:w,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I});if(!M)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Fo.Comment)return!0;if(e.type===Fo.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Qo(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ki(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ki(e.attributes.name)||"icon"===ki(e.attributes.rel)||"apple-touch-icon"===ki(e.attributes.rel)||"shortcut icon"===ki(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ki(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ki(e.attributes.property).match(/^(og|twitter|fb):/)||ki(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ki(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ki(e.attributes.name)||"googlebot"===ki(e.attributes.name)||"bingbot"===ki(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ki(e.attributes.name)||"generator"===ki(e.attributes.name)||"framework"===ki(e.attributes.name)||"publisher"===ki(e.attributes.name)||"progid"===ki(e.attributes.name)||ki(e.attributes.property).match(/^article:/)||ki(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ki(e.attributes.name)||"yandex-verification"===ki(e.attributes.name)||"csrf-token"===ki(e.attributes.name)||"p:domain_verify"===ki(e.attributes.name)||"verify-v1"===ki(e.attributes.name)||"verification"===ki(e.attributes.name)||"shopify-checkout-api-token"===ki(e.attributes.name)))return!0}}return!1}(M,v)&&(O||M.type!==Fo.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?si():-2;const A=Object.assign(M,{id:R});if(r.add(e,A),-2===R)return null;_&&_(e);let N=!f;if(A.type===Fo.Element){N=N&&!A.needBlock,delete A.needBlock;const t=e.shadowRoot;t&&zo(t)&&(A.isShadowHost=!0)}if((A.type===Fo.Document||A.type===Fo.Element)&&N){v.headWhitespace&&A.type===Fo.Element&&"head"===A.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:S,preserveWhiteSpace:O,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Ei(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Ei(n,t);r&&(zo(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&Bo(e.parentNode)&&zo(e.parentNode)&&(A.isShadow=!0),A.type===Fo.Element&&"iframe"===A.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=ti((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{ni(r),i=!0,t()}))}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return ti(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=ri(e);if(t&&x){const n=Ei(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:S,preserveWhiteSpace:O,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});n&&x(e,n)}}),k),A.type===Fo.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===Qo(A.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=ti((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{ni(i),o=!0,t()}))}(e,(()=>{if(E){const t=Ei(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:S,preserveWhiteSpace:O,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});t&&E(e,t)}}),C),A}function Ci(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ti="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Ii={map:{},getId:()=>(console.error(Ti),-1),getNode:()=>(console.error(Ti),null),removeNodeFromMap(){console.error(Ti)},has:()=>(console.error(Ti),!1),reset(){console.error(Ti)}};function Oi(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();o||!1!==n.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(function(...e){Gi("clearTimeout")(...e)}(r),r=null),o=s,e.apply(c,i)):r||!1===n.trailing||(r=Ki((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)}),a))}}function Mi(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Ki((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Mi(e,t,i||{},!0)}function Ri(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ii=new Proxy(Ii,{get:(e,t,n)=>("map"===t&&console.error(Ti),Reflect.get(e,t,n))}));let Ai=Date.now;function Ni(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Di(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Pi(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Li(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ji(e,t,n,r,o){if(!e)return!1;const i=Li(e);if(!i)return!1;const s=_i(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=Si(i,s);let c=-1;return!(a<0)&&(r&&(c=Si(i,_i(null,r))),a>-1&&c<0||a<c)}function $i(e,t){return-2===t.getId(e)}function Fi(e,t){if(Bo(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Fi(e.parentNode,t))}function Bi(e){return Boolean(e.changedTouches)}function zi(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ui(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Hi(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ai=()=>(new Date).getTime());class Wi{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function qi(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Vi(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=qi(n);)n=t;return n}(e);return t.contains(n)}(e))}const Yi={};function Gi(e){const t=Yi[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Yi[e]=r.bind(window)}function Ki(...e){return Gi("setTimeout")(...e)}var Xi,Ji,Qi=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Qi||{}),Zi=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Zi||{}),es=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(es||{}),ts=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ts||{});function ns(e){try{return e.contentDocument}catch(e){}}function rs(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Xi||(Xi={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Ji||(Ji={}));class os{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&rs(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&rs(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const is=(e,t)=>`${e}@${t}`;class ss{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new os,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Vi(o))return;const i=Bo(o.parentNode)?this.mirror.getId(qi(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=Ei(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{zi(e,this.mirror)&&!ji(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ui(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Hi(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ji(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)cs(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)us(this.droppedSet,e)||cs(this.removes,e,this.mirror)?us(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!$i(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:xi(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Li(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Xo(t),o=t.tagName;r=Jo(t,o,n);const i=qo({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Vo({isMasked:xi(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(ns(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!wi(t.tagName,n)&&(o.attributes[n]=bi(this.doc,Yo(t.tagName),Yo(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Bo(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$i(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(as(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Fi(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[is(n,r)]?as(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Bo(e.target)||!zo(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if($i(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[is(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ji(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Hi(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function as(e,t){e.delete(t),t.childNodes.forEach((t=>as(e,t)))}function cs(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}(e,t,n)}function us(e,t){return 0!==e.size&&ls(e,t)}function ls(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ls(e,n))}let ds;function fs(e){ds=e}function ps(){ds=void 0}const hs=e=>ds?(...t)=>{try{return e(...t)}catch(e){if(ds&&!0===ds(e))return()=>{};throw e}}:e,ms=[];function gs(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function ys(e,t){const n=new ss;ms.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r(hs((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function vs({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return Ci("scroll",hs(Oi(hs((s=>{const a=gs(s);if(!a||ji(a,r,o,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Ni(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),t)}const bs=["INPUT","TEXTAREA","SELECT"],ws=new WeakMap;function Ss({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=gs(e);const l=e.isTrusted,g=n&&Go(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||bs.indexOf(g)<0||ji(n,r,o,i,!0))return;const v=n;if(v.classList.contains(s)||a&&v.matches(a))return;const b=Xo(n);let w=Jo(v,g,b),S=!1;const _=qo({maskInputOptions:c,tagName:g,type:b}),x=xi(n,f,h,p,m,_);"radio"!==b&&"checkbox"!==b||(S=n.checked),w=Vo({isMasked:x,element:n,value:w,maskInputFn:u}),y(n,d?{text:w,isChecked:S,userTriggered:l}:{text:w,isChecked:S});const k=n.name;"radio"===b&&k&&S&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach((e=>{if(e!==n){const t=Vo({isMasked:x,element:e,value:Jo(e,g,b),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(t,r){const o=ws.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){ws.set(t,r);const o=n.getId(t);hs(e)({...r,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>Ci(e,hs(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&v.push(...S.map((e=>Mi(e[0],e[1],{set(){hs(g)({target:this,isTrusted:!1})}},!1,b)))),hs((()=>{v.forEach((e=>e()))}))}function _s(e){return function(e,t){if(Cs("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Cs("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Cs("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Cs("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function xs(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function ks({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const n=i.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),hs((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function Es(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=ys(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=Oi(hs((t=>{const n=Date.now()-s;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],s=null})),i),u=hs(Oi(hs((e=>{const t=gs(e),{clientX:n,clientY:o}=Bi(e)?e.changedTouches[0]:e;s||(s=Ai()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Ai()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Zi.Drag:e instanceof MouseEvent?Zi.MouseMove:Zi.TouchMove)})),o,{trailing:!1})),l=[Ci("mousemove",u,n),Ci("touchmove",u,n),Ci("drag",u,n)];return hs((()=>{l.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(es).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((s=>{let a=Yo(s);const l=(t=>s=>{const a=gs(s);if(ji(a,r,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=ts.Mouse;break;case"touch":c=ts.Touch;break;case"pen":c=ts.Pen}c===ts.Touch?es[t]===es.MouseDown?l="TouchStart":es[t]===es.MouseUp&&(l="TouchEnd"):ts.Pen}else Bi(s)&&(c=ts.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===ts.Touch||l.startsWith("Mouse")&&c===ts.Mouse)&&(c=null)):es[t]===es.Click&&(c=u,u=null);const d=Bi(s)?s.changedTouches[0]:s;if(!d)return;const f=n.getId(a),{clientX:p,clientY:h}=d;hs(e)({type:es[l],id:f,x:p,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(es[s]){case es.MouseDown:case es.MouseUp:a=a.replace("mouse","pointer");break;case es.TouchStart:case es.TouchEnd:return}c.push(Ci(a,l,t))})),hs((()=>{c.forEach((e=>e()))}))}(e),s=vs(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ci("resize",hs(Oi(hs((()=>{const t=Di(),o=Pi();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=Ss(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=hs((s=>Oi(hs((i=>{const a=gs(i);if(!a||ji(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),i.media||500))),c=[Ci("play",a(0),s),Ci("pause",a(1),s),Ci("seeked",a(2),s),Ci("volumechange",a(3),s),Ci("ratechange",a(4),s)];return hs((()=>{c.forEach((e=>e()))}))}(e);let l=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:hs(((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=xs(o,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:hs(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=xs(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:hs(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=xs(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:hs(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=xs(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(o,i)}))}));const c={};Ts("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Ts("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Ts("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Ts("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:hs(((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=xs(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[..._s(o),a||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:hs(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=xs(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[..._s(o),s]}]}),r.apply(o,i)}))})})),hs((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=ks(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:hs(((o,s,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(s,[c,u,l]);const{id:d,styleId:f}=xs(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:c,value:u,priority:l},index:_s(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:hs(((o,i,a)=>{const[c]=a;if(n.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=xs(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:_s(i.parentRule)}),o.apply(i,a)}))}),hs((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=Ri(t.fonts,"add",(function(t){return function(n){return Ki(hs((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(s),hs((()=>{r.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=hs((()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const s=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=s;ji(a,r,o,i,!0)||ji(l,r,o,i,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}s({ranges:c})}));return c(),Ci("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ri(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return hs((()=>{ms.forEach((e=>e.reset())),r?.disconnect(),o(),i(),s(),a(),c(),u(),l(),d(),f(),p(),h(),m(),g.forEach((e=>e()))}))}function Cs(e){return void 0!==window[e]}function Ts(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Is{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Os{constructor(){this.crossOriginIframeMirror=new Is(si),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ms{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Is(si),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Is(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.loadListener?.(e);const n=ns(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Qi.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Qi.IncrementalSnapshot,data:{source:Zi.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Qi.Meta:case Qi.Load:case Qi.DomContentLoaded:return!1;case Qi.Plugin:return t;case Qi.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Qi.IncrementalSnapshot:switch(t.data.source){case Zi.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Zi.Drag:case Zi.TouchMove:case Zi.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Zi.ViewportResize:return!1;case Zi.MediaInteraction:case Zi.MouseInteraction:case Zi.Scroll:case Zi.CanvasMutation:case Zi.Input:return this.replaceIds(t.data,e,["id"]),t;case Zi.StyleSheetRule:case Zi.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Zi.Font:return t;case Zi.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Zi.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Fo.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Rs{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class As{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!zo(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=ys({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(vs({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ki((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ks({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=ns(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ri(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Vi(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Ns{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ds{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Wi,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Ho(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Ps{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){Gi("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Ls,js;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const $s=new Wo;function Fs(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,maxCanvasSize:S=null,packFn:_,sampling:x={},dataURLOptions:k={},mousemoveWait:E,recordDOM:C=!0,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:O=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:R=!1,inlineImages:A=!1,plugins:N,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:L,onMutation:j,getCanvasManager:$}=e;fs(L);const F=!I||window.parent===window;let B=!1;if(!F)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!B)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),$s.reset();const z=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},U=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const q=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!B&&(e=_(e)),e};Ls=(e,o)=>{const i=e;if(i.timestamp=Ai(),!ms[0]?.isFrozen()||i.type===Qi.FullSnapshot||i.type===Qi.IncrementalSnapshot&&i.data.source===Zi.Mutation||ms.forEach((e=>e.unfreeze())),F)t?.(q(i),o);else if(B){const e={type:"rrweb",event:q(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Qi.FullSnapshot)H=i,W=0;else if(i.type===Qi.IncrementalSnapshot){if(i.data.source===Zi.Mutation&&i.data.isAttachIframe)return;W++;const e=r&&W>=r,t=n&&H&&i.timestamp-H.timestamp>n;(e||t)&&ee(!0)}};const V=e=>{Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.Mutation,...e}})},Y=e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.Scroll,...e}}),G=e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.CanvasMutation,...e}}),K=new Ds({mutationCb:V,adoptedStyleSheetCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Os:new Ms({mirror:$s,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:I,wrappedEmit:Ls});for(const e of N||[])e.getMirror&&e.getMirror({nodeMirror:$s,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const J=new Ps,Q=function(e,t){try{return e?e(t):new Ns}catch{return console.warn("Unable to initialize CanvasManager"),new Ns}}($,{mirror:$s,win:window,mutationCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:S,sampling:x.canvas,dataURLOptions:k,errorHandler:L}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Rs:new As({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:j,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:z,dataURLOptions:k,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,recordCanvas:T,inlineImages:A,sampling:x,slimDOMOptions:U,iframeManager:X,stylesheetManager:K,canvasManager:Q,keepIframeSrcFn:D,processedNodeManager:J},mirror:$s}),ee=(e=!1)=>{if(!C)return;Ls({type:Qi.Meta,data:{href:window.location.href,width:Pi(),height:Di()}},e),K.reset(),Z.init(),ms.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Wo,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:C=()=>!1}=t;return Ei(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:$s,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:z,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,slimDOM:U,dataURLOptions:k,recordCanvas:T,inlineImages:A,onSerialize:e=>{zi(e,$s)&&X.addIframe(e),Ui(e,$s)&&K.trackLinkElement(e),Hi(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Q.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");Ls({type:Qi.FullSnapshot,data:{node:t,initialOffset:Ni(window)}}),ms.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,$s.getId(document))};js=ee;try{const e=[],t=e=>hs(Es)({onMutation:j,mutationCb:V,mousemoveCb:(e,t)=>Ls({type:Qi.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.ViewportResize,...e}}),inputCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.Input,...e}}),mediaInteractionCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.MediaInteraction,...e}}),styleSheetRuleCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.StyleSheetRule,...e}}),styleDeclarationCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.Font,...e}}),selectionCb:e=>{Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.Selection,...e}})},customElementCb:e=>{Ls({type:Qi.IncrementalSnapshot,data:{source:Zi.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:z,inlineStylesheet:h,sampling:x,recordDOM:C,recordCanvas:T,inlineImages:A,userTriggeredOnInput:M,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,keepIframeSrcFn:D,blockSelector:i,unblockSelector:s,slimDOMOptions:U,dataURLOptions:k,mirror:$s,iframeManager:X,stylesheetManager:K,shadowDomManager:Z,processedNodeManager:J,canvasManager:Q,ignoreCSSAttributes:P,plugins:N?.filter((e=>e.observer))?.map((e=>({observer:e.observer,options:e.options,callback:t=>Ls({type:Qi.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{});X.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ci("DOMContentLoaded",(()=>{Ls({type:Qi.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()}))),e.push(Ci("load",(()=>{Ls({type:Qi.Load,data:{}}),"load"===O&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),js=void 0,ps()}}catch(e){console.warn(e)}}function Bs(e){return e>9999999999?e:1e3*e}function zs(e){return e>9999999999?e/1e3:e}function Us(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Qi.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:He(t,10,1e3)}}),"console"===t.category))))}function Hs(e){return e.closest("button,a")||e}function Ws(e){const t=qs(e);return t&&t instanceof Element?Hs(t):t}function qs(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Vs;Fs.mirror=$s,Fs.takeFullSnapshot=function(e){if(!js)throw new Error("please take full snapshot after start recording");js(e)};const Ys=new Set([Zi.Mutation,Zi.StyleSheetRule,Zi.StyleDeclaration,Zi.AdoptedStyleSheet,Zi.CanvasMutation,Zi.Selection,Zi.MediaInteraction]);class Gs{constructor(e,t,n=Us){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Xs()},Vs||(Vs=[],H(No,"open",(function(e){return function(...t){if(Vs)try{Vs.forEach((e=>e()))}catch(e){}return e.apply(No,t)}}))),Vs.push(t),()=>{const e=Vs?Vs.indexOf(t):-1;e>-1&&Vs.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Ks.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:zs(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=zs(e)}registerScroll(e=Date.now()){this._lastScroll=zs(e)}registerClick(e){const t=Hs(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Xs();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:No.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:No.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Or((()=>this._checkClicks()),1e3)}}const Ks=["A","BUTTON","INPUT"];function Xs(){return Date.now()/1e3}function Js(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Qs;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Qs||(Qs={}));const Zs=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ea(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Zs.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function ta(e,t){const n=Fs.mirror.getId(e),r=n&&Fs.mirror.getNode(n),o=r&&Fs.mirror.getMeta(r),i=o&&function(e){return e.type===Qs.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===Qs.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:ea(i.attributes)}}:{}}}const na={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:ia(i),end:ia(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=ia(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:ia(p),end:ia(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}};function ra(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function oa(e){const t=na[e.entryType];return t?t(e):null}function ia(e){return ee||(ee=function(){const{performance:e}=h;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing?.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;return i||a<t?o<=a?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}()),((ee[0]||No.performance.timeOrigin)+e)/1e3}function sa(e){const t=e.entries[e.entries.length-1];return da(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function aa(e){return void 0!==e.sources}function ca(e){const t=[],n=[];for(const r of e.entries)if(aa(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Fs.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return da(e,"cumulative-layout-shift",n,t)}function ua(e){const t=e.entries[e.entries.length-1];return da(e,"first-input-delay",t?.target?[t.target]:void 0)}function la(e){const t=e.entries[e.entries.length-1];return da(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function da(e,t,n,r){const o=e.value,i=e.rating,s=ia(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map((e=>Fs.mirror.getId(e))):void 0,attributions:r}}}function fa(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(function(e,t){return Io(e,t),yo[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),Hr(e,(t=>{_o(e,{entries:t})}),t)}(e),yo[e]=!0),Oo(e,t)}(e,n))})),r.push(function(e,t=!1){return To("lcp",e,Eo,wo,t)}(ra(sa,e)),function(e,t=!1){return To("cls",e,xo,vo,t)}(ra(ca,e)),To("fid",ra(ua,e),ko,bo),To("inp",ra(la,e),Co,So)),()=>{r.forEach((e=>e()))}}const pa="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ha=["info","warn","error","log"],ma="[Replay] ";function ga(e,t="info"){Vn({category:"console",data:{logger:"replay"},level:t,message:`${ma}${e}`},{level:t})}const ya=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return pa?(ha.forEach((e=>{n[e]=(...n)=>{F[e](ma,...n),t&&ga(n.join(""),Yn(e))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),F.error(ma,r),e?pt(r):t&&ga(r,"error")},n.infoTick=(...e)=>{F.info(ma,...e),t&&setTimeout((()=>ga(e[0])),0)}):ha.forEach((e=>{n[e]=()=>{}})),n}();class va extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ba{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>$o)throw new va;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Bs(e):null}}class wa{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){pa&&ya.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return pa&&ya.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Sa{constructor(e){this._worker=new wa(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Bs(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>$o?Promise.reject(new va):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{pa&&ya.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class _a{constructor(e){this._fallback=new ba,this._compression=new Sa(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(pa&&ya.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){pa&&ya.exception(e,"Failed to add events when switching buffers.")}}}function xa(){try{return"sessionStorage"in No&&!!No.sessionStorage}catch{return!1}}function ka(e){return void 0!==e&&Math.random()<e}function Ea(e){const t=Date.now();return{id:e.id||te(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Ca(e){if(xa())try{No.sessionStorage.setItem(Do,JSON.stringify(e))}catch{}}function Ta({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return ka(e)?"session":!!t&&"buffer"}(e,t),i=Ea({sampled:o,previousSessionId:r});return n&&Ca(i),i}function Ia(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Oa(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ia(e.started,t,r)||Ia(e.lastActivity,n,r)}function Ma(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Oa(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Ra({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!xa())return null;try{const e=No.sessionStorage.getItem(Do);if(!e)return null;const t=JSON.parse(e);return pa&&ya.infoTick("Loading existing session"),Ea(t)}catch{return null}}();return o?Ma(o,{sessionIdleExpire:e,maxReplayDuration:t})?(pa&&ya.infoTick("Session in sessionStorage is expired, creating new one..."),Ta(r,{previousSessionId:o.id})):o:(pa&&ya.infoTick("Creating new session"),Ta(r,{previousSessionId:n}))}function Aa(e,t,n){return!!Da(e,t)&&(Na(e,t,n),!0)}async function Na(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Qi.Custom}(e))return t(e)}catch(e){return pa&&ya.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await r.addEvent(i)}catch(t){const n=t&&t instanceof va,i=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i});const s=xe();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function Da(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Bs(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(pa&&ya.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function Pa(e){return!e.type}function La(e){return"transaction"===e.type}function ja(e){return"feedback"===e.type}function $a(e){return!!e.category}function Fa(){const e=Se().getPropagationContext().dsc;e&&delete e.replay_id;const t=it();t&&delete ct(t).replay_id}function Ba(e,t){return t.map((({type:t,start:n,end:r,name:o,data:i})=>{const s=e.throttledAddEvent({type:Qi.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function za(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!pa||!e.getOptions()._experiments.traceInternals)&&function(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&jr(e)===jr(t)}(e,r)}(t,xe())}(e,t.name)||e.addUpdate((()=>(Ba(e,[t]),!0))))}function Ua(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Mo(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Ha(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Wa(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function qa(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:X({method:i,statusCode:s,request:a,response:c})}}function Va(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Ya(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Lo,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Lo);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function Ga(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n}),{})}function Ka(e,t){const n=function(e,t=No.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(No.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return U(n,t)}function Xa(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Ja(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Xa(n,t):Array.isArray(n)?{}:Ga(n,t):{}}function Qa(e){const t=xe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(function(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=Ua(r),i=n.getResponseHeader("content-length")?Ha(n.getResponseHeader("content-length")):function(e,t){try{return Ua("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!a||!Ka(c,n.networkDetailAllowUrls)||Ka(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:Va(d),response:Va(f)};const p=a[jn],h=p?Ga(p.request_headers,n.networkRequestHeaders):{},m=Ga(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?Ro(s,ya):[void 0],[v,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return pa&&ya.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return pa&&ya.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return pa&&ya.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],w=Ya(h,d,g),S=Ya(m,f,v);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:y?Wa(w,y):w,response:b?Wa(S,b):S}}(e,t,n),o=qa("resource.xhr",r);za(n.replay,o)}catch(e){pa&&ya.exception(e,"Failed to capture xhr breadcrumb")}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(n)&&(function(e,t){const{input:n,response:r}=t,o=Ua(n?Ao(n):void 0),i=r?Ha(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Ka(s,n.networkDetailAllowUrls)&&!Ka(s,n.networkDetailDenyUrls),f=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(s=t,1===(i=n).length&&"string"!=typeof i[0]?Ja(i[0],s):2===i.length?Ja(i[1],s):{}):{};var i,s;if(!e)return Ya(o,r,void 0);const a=Ao(n),[c,u]=Ro(a,ya),l=Ya(o,r,c);return u?Wa(l,u):l}(n,t.input,u):Va(u),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return Va(o);const i=r?Xa(r.headers,n):{};if(!r||!t&&void 0!==o)return Ya(i,o,void 0);const[s,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){pa&&ya.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=Or((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(pa&&ya.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(pa&&ya.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e?.length&&void 0===n?Ua(e):n;return r?Ya(o,i,t?e:void 0):Va(i)}catch(e){return pa&&ya.exception(e,"Failed to serialize response body"),Ya(o,n,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return a?Wa(c,a):c}(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:f,response:p}}(e,t,n),o=qa("resource.fetch",r);za(n.replay,o)}catch(e){pa&&ya.exception(e,"Failed to capture fetch breadcrumb")}}(t,n,e))}catch(e){pa&&ya.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch{}}function Za(e,{autoFlushOnFeedback:t}){const n=xe();Dn((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Ws(e.event):qs(e.event),n=A(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return Js({category:`ui.${e.name}`,...ta(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,Ws(t.event)),Us(e,n)})(e)),Bn(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Ba(e,[n]),!1))))}}(e)),function(e){const t=xe();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!$a(t))return;const n=function(e){return!$a(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return Js(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>jo?(n=!0,`${e.slice(0,jo)}…`):e;if("object"==typeof e)try{const t=He(e,7);return JSON.stringify(t).length>jo?(n=!0,`${JSON.stringify(t,null,2).slice(0,jo)}…`):t}catch{}return e}));return Js({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Js(e)}(t);n&&Us(e,n)}(e,t)))}(e),Qa(e);const r=function(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Pa(t)&&!La(t)&&!ja(t))return t;if(!e.checkAndHandleExpiredSession())return Fa(),t;if(ja(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Qi.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return pa&&ya.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==Po&&!(!t.exception||t.type)&&ka(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}(e);var o;o=r,_e().addEventProcessor(o),n&&(n.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&Pa(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Us(e,Js({category:"replay.hydrate-error",data:{url:D()}}))}(e,t)}}(e)),n.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!Pa(t)&&!La(t))return;const r=n?.statusCode;!r||r<200||r>=300||(La(t)?function(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&Or((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("spanStart",(t=>{e.lastActiveSpan=t})),n.on("spanEnd",(t=>{e.lastActiveSpan=t})),n.on("beforeSendFeedback",(async(n,r)=>{const o=e.getSessionId();r?.includeReplay&&e.isEnabled()&&o&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&t&&await e.flush(),n.contexts.feedback.replay_id=o)})),t&&n.on("openFeedbackWidget",(async()=>{await e.flush()})))}function ec(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const tc=h.navigator;function nc(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(pa&&ya.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(Ys.has(n)&&e.registerMutation(t.timestamp),n===Zi.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Zi.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=Fs.mirror.getNode(r);o instanceof HTMLElement&&n===es.Click&&e.registerClick(o)}}catch{}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Aa(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){t&&e.session&&0===e.session.segmentId&&Aa(e,function(e){const t=e.getOptions();return{type:Qi.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(pa&&ya.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Ca(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}class rc extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class oc extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function ic(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=xe(),f=Se(),p=d?.getTransport(),h=d?.getDsn();if(!(d&&p&&h&&i.sampled))return Ie({});const m={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const i=await dt(e.getOptions(),r,o,t,e,_e());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:a,version:c}=s?.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:f,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),pa&&ya.info("An event processor returned `null`, will not send event."),Ie({});delete g.sdkProcessingMetadata;const y=function(e,t,n,r){return zt(Xt(e,Kt(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,h,d.getOptions().tunnel);let v;try{v=await p.send(y)}catch(e){const t=new Error(Po);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new rc(v.statusCode);const b=Rr({},v);if(Mr(b,"replay"))throw new oc(b);return v}(e),!0}catch(n){if(n instanceof rc||n instanceof oc)throw n;if(mt("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Po} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{Or((async()=>{try{await ic(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const sc="__THROTTLED";class ac{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=Or(a,t),s&&void 0===i&&(i=Or(a,s)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(s),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":sc}o=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...i)}}(((e,t)=>function(e,t,n){return Da(e,t)?Na(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new Gs(this,o)),pa){const t=e._experiments;ya.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===No.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=Js({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=Js({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!i)return null;const a=t||r||o,c=1===i.length;if(!a&&c)return null;const u=A(s,{maxStringLength:200})||"<unknown>";return Js({category:"ui.keyDown",message:u,data:{...ta(s,u).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&Us(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){pa&&ya.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",pa&&ya.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):pa&&ya.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(pa&&ya.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(pa&&ya.info("Buffering is in progress, call `flush()` to save the replay"));pa&&ya.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Ra({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(pa&&ya.info("Buffering is in progress, call `flush()` to save the replay"));pa&&ya.infoTick("Starting replay in buffer mode");const e=Ra({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Fs({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:nc(this),.../iPhone|iPad|iPod/i.test(tc?.userAgent??"")||/Macintosh/i.test(tc?.userAgent??"")&&tc?.maxTouchPoints&&tc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{pa&&ya.info("Stopping Replay"+(t?` triggered by ${t}`:"")),Fa(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,n=this,function(){if(xa())try{No.sessionStorage.removeItem(Do)}catch{}}(),n.session=void 0}catch(e){this.handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),pa&&ya.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),pa&&ya.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();pa&&ya.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Ia(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${No.location.pathname}${No.location.hash}${No.location.search}`,t=`${No.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===sc){const e=Js({category:"replay.throttled"});this.addUpdate((()=>!Aa(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||it(),t=e&&ot(e),n=(t&&nt(t).data||{})[Ve];if(t&&n&&["route","custom"].includes(n))return nt(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort((function(t,n){return p[n.s]-p[t.s]||t.f-n.f}));s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;pa&&ya.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new _a(n)}catch(e){pa&&ya.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return pa&&ya.info("Using simple buffer"),new ba}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Ra({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Ma(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{No.document.addEventListener("visibilitychange",this._handleVisibilityChange),No.addEventListener("blur",this._handleWindowBlur),No.addEventListener("focus",this._handleWindowFocus),No.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Za(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=fa(this)}_removeListeners(){try{No.document.removeEventListener("visibilitychange",this._handleVisibilityChange),No.removeEventListener("blur",this._handleWindowBlur),No.removeEventListener("focus",this._handleWindowFocus),No.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(Oa(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):pa&&ya.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Qi.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(oa).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(Ba(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(Ba(e,[ec(No.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await ic({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=xe();if(t){const n=e instanceof oc?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else pa&&ya.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(pa&&ya.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return pa&&ya.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&pa&&ya.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ca(this.session)}_onMutationHandler(e){const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Js({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function cc(e,t){return[...e,...t].join(",")}const uc='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lc=["content-length","content-type","accept"];let dc=!1;function fc(e){return[...lc,...e.map((e=>e.toLowerCase()))]}const pc=window.wp.domReady;var hc=n.n(pc);const mc=(e,t={})=>{window.wcShippingSettings&&(Object.assign(t,window.wcShippingSettings),l().omitBy(t,l().isNil)),e=`wcshipping_${e}`,hc()((()=>{var n;(null!==(n=window.wc?.tracks?.recordEvent)&&void 0!==n?n:window.wcTracks.recordEvent)(e,t)}))};window.wc.date,window.wp.apiFetch;const gc="WPCOM_CONNECTION/CREATE_CONNECTION",yc="WPCOM_CONNECTION/CONNECTION_FAILED",vc=(e=>{const t={},n=()=>(n=e,r)=>{const o=t[r.type];return"function"==typeof o?o(n,r):n},r=(e,o)=>(t[e]=o,{on:r,bind:n});return{on:r,bind:n}})({error:!1,redirectUrl:!1}).on(gc,((e,{payload:t})=>({...e,error:!1,redirectUrl:t.redirectUrl}))).on(yc,((e,{payload:t})=>({...e,error:t.error.message}))).bind(),bc=e=>e;function*wc({payload:e}){try{const{redirect_url:t}=yield(0,c.apiFetch)({path:"/wcshipping/v1/wpcom-connection",method:"POST",data:{return_url:e.returnUrl,source:e.source}});return{type:gc,payload:{redirectUrl:t}}}catch(e){return{type:yc,payload:{error:e}}}}let Sc;const _c=window.wp.element,xc=(window.wp.warning,"data-wp-component"),kc="data-wp-c16t",Ec="__contextSystemKey__";var Cc=function(){return Cc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cc.apply(this,arguments)};function Tc(e){return e.toLowerCase()}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ic=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Oc=/[^A-Z0-9]+/gi;function Mc(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Rc(e,t){var n,r,o=0;function i(){var i,s,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<c;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(c),s=0;s<c;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const Ac=Rc((function(e){var t;return`components-${void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?Ic:n,o=t.stripRegexp,i=void 0===o?Oc:o,s=t.transform,a=void 0===s?Tc:s,c=t.delimiter,u=void 0===c?" ":c,l=Mc(Mc(e,r,"$1\0$2"),i,"\0"),d=0,f=l.length;"\0"===l.charAt(d);)d++;for(;"\0"===l.charAt(f-1);)f--;return l.slice(d,f).split("\0").map(a).join(u)}(e,Cc({delimiter:"."},t))}(e,Cc({delimiter:"-"},t))}`}));function Nc(e,t){return function(e,t,n){const r=n?.forwardsRef?(0,_c.forwardRef)(e):e;let o=r[Ec]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[Ec]:[...new Set(o)],displayName:t,selector:`.${Ac(t)}`})}(e,t,{forwardsRef:!0})}function Dc(e){if(!e)return[];let t=[];return e[Ec]&&(t=e[Ec]),e.type&&e.type[Ec]&&(t=e.type[Ec]),t}function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pc.apply(null,arguments)}var Lc=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),jc=Math.abs,$c=String.fromCharCode,Fc=Object.assign;function Bc(e){return e.trim()}function zc(e,t,n){return e.replace(t,n)}function Uc(e,t){return e.indexOf(t)}function Hc(e,t){return 0|e.charCodeAt(t)}function Wc(e,t,n){return e.slice(t,n)}function qc(e){return e.length}function Vc(e){return e.length}function Yc(e,t){return t.push(e),e}var Gc=1,Kc=1,Xc=0,Jc=0,Qc=0,Zc="";function eu(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Gc,column:Kc,length:s,return:""}}function tu(e,t){return Fc(eu("",null,null,"",null,null,0),e,{length:-e.length},t)}function nu(){return Qc=Jc>0?Hc(Zc,--Jc):0,Kc--,10===Qc&&(Kc=1,Gc--),Qc}function ru(){return Qc=Jc<Xc?Hc(Zc,Jc++):0,Kc++,10===Qc&&(Kc=1,Gc++),Qc}function ou(){return Hc(Zc,Jc)}function iu(){return Jc}function su(e,t){return Wc(Zc,e,t)}function au(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cu(e){return Gc=Kc=1,Xc=qc(Zc=e),Jc=0,[]}function uu(e){return Zc="",e}function lu(e){return Bc(su(Jc-1,pu(91===e?e+2:40===e?e+1:e)))}function du(e){for(;(Qc=ou())&&Qc<33;)ru();return au(e)>2||au(Qc)>3?"":" "}function fu(e,t){for(;--t&&ru()&&!(Qc<48||Qc>102||Qc>57&&Qc<65||Qc>70&&Qc<97););return su(e,iu()+(t<6&&32==ou()&&32==ru()))}function pu(e){for(;ru();)switch(Qc){case e:return Jc;case 34:case 39:34!==e&&39!==e&&pu(Qc);break;case 40:41===e&&pu(e);break;case 92:ru()}return Jc}function hu(e,t){for(;ru()&&e+Qc!==57&&(e+Qc!==84||47!==ou()););return"/*"+su(t,Jc-1)+"*"+$c(47===e?e:ru())}function mu(e){for(;!au(ou());)ru();return su(e,Jc)}var gu="-ms-",yu="-moz-",vu="-webkit-",bu="comm",wu="rule",Su="decl",_u="@keyframes";function xu(e,t){for(var n="",r=Vc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ku(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Su:return e.return=e.return||e.value;case bu:return"";case _u:return e.return=e.value+"{"+xu(e.children,r)+"}";case wu:e.value=e.props.join(",")}return qc(n=xu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Eu(e){return uu(Cu("",null,null,null,[""],e=cu(e),0,[0],e))}function Cu(e,t,n,r,o,i,s,a,c){for(var u=0,l=0,d=s,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,S=i,_=r,x=b;g;)switch(h=v,v=ru()){case 40:if(108!=h&&58==Hc(x,d-1)){-1!=Uc(x+=zc(lu(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:x+=lu(v);break;case 9:case 10:case 13:case 32:x+=du(h);break;case 92:x+=fu(iu()-1,7);continue;case 47:switch(ou()){case 42:case 47:Yc(Iu(hu(ru(),iu()),t,n),c);break;default:x+="/"}break;case 123*m:a[u++]=qc(x)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:-1==y&&(x=zc(x,/\f/g,"")),p>0&&qc(x)-d&&Yc(p>32?Ou(x+";",r,n,d-1):Ou(zc(x," ","")+";",r,n,d-2),c);break;case 59:x+=";";default:if(Yc(_=Tu(x,t,n,u,l,o,a,b,w=[],S=[],d),i),123===v)if(0===l)Cu(x,t,_,_,w,i,d,a,S);else switch(99===f&&110===Hc(x,3)?100:f){case 100:case 108:case 109:case 115:Cu(e,_,_,r&&Yc(Tu(e,_,_,0,0,o,a,b,o,w=[],d),S),o,S,d,a,r?w:S);break;default:Cu(x,_,_,_,[""],S,0,a,S)}}u=l=p=0,m=y=1,b=x="",d=s;break;case 58:d=1+qc(x),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==nu())continue;switch(x+=$c(v),v*m){case 38:y=l>0?1:(x+="\f",-1);break;case 44:a[u++]=(qc(x)-1)*y,y=1;break;case 64:45===ou()&&(x+=lu(ru())),f=ou(),l=d=qc(b=x+=mu(iu())),v++;break;case 45:45===h&&2==qc(x)&&(m=0)}}return i}function Tu(e,t,n,r,o,i,s,a,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Vc(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=Wc(e,d+1,d=jc(m=s[h])),b=e;y<p;++y)(b=Bc(m>0?f[y]+" "+v:zc(v,/&\f/g,f[y])))&&(c[g++]=b);return eu(e,t,n,0===o?wu:a,c,u,l)}function Iu(e,t,n){return eu(e,t,n,bu,$c(Qc),Wc(e,2,-2),0)}function Ou(e,t,n,r){return eu(e,t,n,Su,Wc(e,0,r),Wc(e,r+1,-1),r)}var Mu=function(e,t,n){for(var r=0,o=0;r=o,o=ou(),38===r&&12===o&&(t[n]=1),!au(o);)ru();return su(e,Jc)},Ru=new WeakMap,Au=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ru.get(n))&&!r){Ru.set(e,!0);for(var o=[],i=function(e,t){return uu(function(e,t){var n=-1,r=44;do{switch(au(r)){case 0:38===r&&12===ou()&&(t[n]=1),e[n]+=Mu(Jc-1,t,n);break;case 2:e[n]+=lu(r);break;case 4:if(44===r){e[++n]=58===ou()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$c(r)}}while(r=ru());return e}(cu(e),t))}(t,o),s=n.props,a=0,c=0;a<i.length;a++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},Nu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Du(e,t){switch(function(e,t){return 45^Hc(e,0)?(((t<<2^Hc(e,0))<<2^Hc(e,1))<<2^Hc(e,2))<<2^Hc(e,3):0}(e,t)){case 5103:return vu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return vu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vu+e+yu+e+gu+e+e;case 6828:case 4268:return vu+e+gu+e+e;case 6165:return vu+e+gu+"flex-"+e+e;case 5187:return vu+e+zc(e,/(\w+).+(:[^]+)/,vu+"box-$1$2"+gu+"flex-$1$2")+e;case 5443:return vu+e+gu+"flex-item-"+zc(e,/flex-|-self/,"")+e;case 4675:return vu+e+gu+"flex-line-pack"+zc(e,/align-content|flex-|-self/,"")+e;case 5548:return vu+e+gu+zc(e,"shrink","negative")+e;case 5292:return vu+e+gu+zc(e,"basis","preferred-size")+e;case 6060:return vu+"box-"+zc(e,"-grow","")+vu+e+gu+zc(e,"grow","positive")+e;case 4554:return vu+zc(e,/([^-])(transform)/g,"$1"+vu+"$2")+e;case 6187:return zc(zc(zc(e,/(zoom-|grab)/,vu+"$1"),/(image-set)/,vu+"$1"),e,"")+e;case 5495:case 3959:return zc(e,/(image-set\([^]*)/,vu+"$1$`$1");case 4968:return zc(zc(e,/(.+:)(flex-)?(.*)/,vu+"box-pack:$3"+gu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vu+e+e;case 4095:case 3583:case 4068:case 2532:return zc(e,/(.+)-inline(.+)/,vu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qc(e)-1-t>6)switch(Hc(e,t+1)){case 109:if(45!==Hc(e,t+4))break;case 102:return zc(e,/(.+:)(.+)-([^]+)/,"$1"+vu+"$2-$3$1"+yu+(108==Hc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Uc(e,"stretch")?Du(zc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Hc(e,t+1))break;case 6444:switch(Hc(e,qc(e)-3-(~Uc(e,"!important")&&10))){case 107:return zc(e,":",":"+vu)+e;case 101:return zc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vu+(45===Hc(e,14)?"inline-":"")+"box$3$1"+vu+"$2$3$1"+gu+"$2box$3")+e}break;case 5936:switch(Hc(e,t+11)){case 114:return vu+e+gu+zc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vu+e+gu+zc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vu+e+gu+zc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vu+e+gu+e+e}return e}var Pu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Su:e.return=Du(e.value,e.length);break;case _u:return xu([tu(e,{value:zc(e.value,"@","@"+vu)})],r);case wu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return xu([tu(e,{props:[zc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return xu([tu(e,{props:[zc(t,/:(plac\w+)/,":"+vu+"input-$1")]}),tu(e,{props:[zc(t,/:(plac\w+)/,":-moz-$1")]}),tu(e,{props:[zc(t,/:(plac\w+)/,gu+"input-$1")]})],r)}return""}))}}],Lu=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Pu,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var c,u,l,d,f=[ku,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Au,Nu].concat(i,f),l=Vc(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,xu(Eu(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Lc({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(a),h};function ju(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var $u=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Fu=function(e,t,n){$u(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Bu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function zu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Uu=/[A-Z]|^ms/g,Hu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wu=function(e){return 45===e.charCodeAt(1)},qu=function(e){return null!=e&&"boolean"!=typeof e},Vu=zu((function(e){return Wu(e)?e:e.replace(Uu,"-$&").toLowerCase()})),Yu=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Hu,(function(e,t,n){return Ku={name:t,styles:n,next:Ku},t}))}return 1===Bu[e]||Wu(e)||"number"!=typeof t||0===t?t:t+"px"};function Gu(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ku={name:o.name,styles:o.styles,next:Ku},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)Ku={name:s.name,styles:s.styles,next:Ku},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Gu(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":qu(a)&&(r+=Vu(i)+":"+Yu(i,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=Gu(e,t,s);switch(i){case"animation":case"animationName":r+=Vu(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var u=0;u<s.length;u++)qu(s[u])&&(r+=Vu(i)+":"+Yu(i,s[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=Ku,c=n(e);return Ku=a,Gu(e,t,c)}}var u=n;if(null==t)return u;var l=t[u];return void 0!==l?l:u}var Ku,Xu=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ju(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ku=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Gu(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=Gu(n,t,e[s]),r&&(o+=i[s]);Xu.lastIndex=0;for(var a,c="";null!==(a=Xu.exec(o));)c+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:u,styles:o,next:Ku}}var Qu=!!Pr.useInsertionEffect&&Pr.useInsertionEffect,Zu=Qu||function(e){return e()},el=(Qu||Pr.useLayoutEffect,Pr.createContext("undefined"!=typeof HTMLElement?Lu({key:"css"}):null)),tl=(el.Provider,function(e){return(0,Pr.forwardRef)((function(t,n){var r=(0,Pr.useContext)(el);return e(t,r,n)}))}),nl=Pr.createContext({}),rl={}.hasOwnProperty,ol="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",il=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $u(t,n,r),Zu((function(){return Fu(t,n,r)})),null},sl=tl((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ol],i=[r],s="";"string"==typeof e.className?s=ju(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var a=Ju(i,void 0,Pr.useContext(nl));s+=t.key+"-"+a.name;var c={};for(var u in e)rl.call(e,u)&&"css"!==u&&u!==ol&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),Pr.createElement(Pr.Fragment,null,Pr.createElement(il,{cache:t,serialized:a,isStringTag:"string"==typeof o}),Pr.createElement(o,c))})),al=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cl=zu((function(e){return al.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ul=function(e){return"theme"!==e},ll=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?cl:ul},dl=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},fl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $u(t,n,r),Zu((function(){return Fu(t,n,r)})),null},pl=function e(t,n){var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=dl(t,n,i),c=a||ll(s),u=!c("as");return function(){var l=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==l[0]||void 0===l[0].raw)d.push.apply(d,l);else{var f=l[0];d.push(f[0]);for(var p=l.length,h=1;h<p;h++)d.push(l[h],f[h])}var m=tl((function(e,t,n){var r=u&&e.as||s,i="",l=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=Pr.useContext(nl)}"string"==typeof e.className?i=ju(t.registered,l,e.className):null!=e.className&&(i=e.className+" ");var h=Ju(d.concat(l),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===a?ll(r):c,g={};for(var y in e)u&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),Pr.createElement(Pr.Fragment,null,Pr.createElement(fl,{cache:t,serialized:h,isStringTag:"string"==typeof r}),Pr.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=d,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Pc({},n,r,{shouldForwardProp:dl(m,r,!0)})).apply(void 0,d)},m}};const hl=window.ReactJSXRuntime,ml=pl("div",{target:"e19lxcc00"})(""),gl=Object.assign((0,_c.forwardRef)((function({as:e,...t},n){return(0,hl.jsx)(ml,{as:e,ref:n,...t})})),{selector:".components-view"});var yl=n(7314),vl=n.n(yl),bl=n(6489),wl=n.n(bl);function Sl(e){return"[object Object]"===Object.prototype.toString.call(e)}function _l(e){var t,n;return!1!==Sl(e)&&(void 0===(t=e.constructor)||!1!==Sl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const xl=(0,_c.createContext)({}),kl=()=>(0,_c.useContext)(xl),El=(0,_c.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=kl(),n=(0,_c.useRef)(e);return function(e,t){const n=(0,_c.useRef)(!1);(0,_c.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,_c.useEffect)((()=>()=>{n.current=!1}),[])}((()=>{wl()(n.current,e)&&n.current}),[e]),(0,_c.useMemo)((()=>vl()(null!=t?t:{},null!=e?e:{},{isMergeableObject:_l})),[t,e])}({value:t});return(0,hl.jsx)(xl.Provider,{value:n,children:e})}));function Cl(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Tl(e,t,n){var r=[],o=ju(e,r,n);return r.length<2?n:o+t(r)}var Il=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Ol=function(){var e=Lu({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ju(n,e.registered,void 0);return Fu(e,o,!1),e.key+"-"+o.name};return{css:t,cx:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Tl(e.registered,t,Il(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ju(n,e.registered);Cl(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ju(n,e.registered),i="animation-"+o.name;return Cl(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:ju.bind(null,e.registered),merge:Tl.bind(null,e.registered,t)}}(),Ml=(Ol.flush,Ol.hydrate,Ol.cx);Ol.merge,Ol.getRegisteredStyles,Ol.injectGlobal,Ol.keyframes,Ol.css,Ol.sheet,Ol.cache;const Rl=()=>{const e=(0,Pr.useContext)(el),t=(0,_c.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Ml(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Fu(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Al(e,t){const n=kl(),r=n?.[t]||{},o={[kc]:!0,...(i=t,{[xc]:i})};var i;const{_overrides:s,...a}=r,c=Object.entries(a).length?Object.assign({},a,e):e,u=Rl()(Ac(t),e.className),l="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in s)o[e]=s[e];return void 0!==l&&(o.children=l),o.className=u,o}n(1035);var Nl,Dl,Pl=function(e,t){var n=arguments;if(null==t||!rl.call(t,"css"))return Pr.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=sl,o[1]=function(e,t){var n={};for(var r in t)rl.call(t,r)&&(n[r]=t[r]);return n[ol]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return Pr.createElement.apply(null,o)};function Ll(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ju(t)}function jl(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(4px * ${e})`}Nl=Pl||(Pl={}),Dl||(Dl=Nl.JSX||(Nl.JSX={}));const $l="#fff",Fl={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Bl={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${$l})`,background:`var(--wp-components-color-background, ${$l})`,foreground:`var(--wp-components-color-foreground, ${Fl[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${$l})`,gray:{900:`var(--wp-components-color-foreground, ${Fl[900]})`,800:`var(--wp-components-color-gray-800, ${Fl[800]})`,700:`var(--wp-components-color-gray-700, ${Fl[700]})`,600:`var(--wp-components-color-gray-600, ${Fl[600]})`,400:`var(--wp-components-color-gray-400, ${Fl[400]})`,300:`var(--wp-components-color-gray-300, ${Fl[300]})`,200:`var(--wp-components-color-gray-200, ${Fl[200]})`,100:`var(--wp-components-color-gray-100, ${Fl[100]})`}},zl={background:Bl.background,backgroundDisabled:Bl.gray[100],border:Bl.gray[600],borderHover:Bl.gray[700],borderFocus:Bl.accent,borderDisabled:Bl.gray[400],textDisabled:Bl.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Bl.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Bl.background}, transparent 35%)`},Ul=Object.freeze({gray:Fl,white:$l,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Bl,ui:zl}),Hl="36px",Wl={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBoxShadowFocus:`0 0 0 0.5px ${Ul.theme.accent}`,controlHeight:Hl,controlHeightXSmall:`calc( ${Hl} * 0.6 )`,controlHeightSmall:`calc( ${Hl} * 0.8 )`,controlHeightLarge:`calc( ${Hl} * 1.2 )`,controlHeightXLarge:`calc( ${Hl} * 1.4 )`},ql=Object.assign({},Wl,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardPaddingXSmall:`${jl(2)}`,cardPaddingSmall:`${jl(4)}`,cardPaddingMedium:`${jl(4)} ${jl(6)}`,cardPaddingLarge:`${jl(6)} ${jl(8)}`,elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:Ul.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Ul.white,surfaceColor:Ul.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),Vl=Ll("background-color:",ql.surfaceColor,";color:",Ul.gray[900],";position:relative;","");function Yl({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${ql.surfaceBorderColor}`;return Ll({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}ql.surfaceBackgroundColor;const Gl=Ll("",""),Kl=Ll("background:",ql.surfaceBackgroundTintColor,";",""),Xl=Ll("background:",ql.surfaceBackgroundTertiaryColor,";",""),Jl=e=>[e,e].join(" "),Ql=e=>["90deg",[ql.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Zl=e=>[[ql.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),ed=[`linear-gradient( ${[`${ql.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${ql.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),td=(e,t,n)=>{switch(e){case"dotted":return((e,t)=>Ll("background:",(e=>[`linear-gradient( ${Ql(e)} ) center`,`linear-gradient( ${Zl(e)} ) center`,ql.surfaceBorderBoldColor].join(","))(t),";background-size:",Jl(e),";",""))(t,n);case"grid":return(e=>Ll("background:",ql.surfaceBackgroundColor,";background-image:",ed,";background-size:",Jl(e),";",""))(t);case"primary":return Gl;case"secondary":return Kl;case"tertiary":return Xl}};function nd(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:a="primary",...c}=Al(e,"Surface"),u=Rl();return{...c,className:(0,_c.useMemo)((()=>{const e={borders:Yl({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(Vl,e.borders,td(a,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,a])}}const rd=Nc((function(e,t){const n=nd(e);return(0,hl.jsx)(gl,{...n,ref:t})}),"Surface"),od=window.wp.deprecated;var id=n.n(od);const sd=["40em","52em","64em"],ad={name:"zjik7",styles:"display:flex"},cd={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},ud={name:"82a6rk",styles:"flex:1"},ld={name:"13nosa1",styles:">*{min-height:0;}"},dd={name:"1pwxzk4",styles:">*{min-width:0;}"};function fd(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:a=!1,...c}=Al(function(e){const{isReversed:t,...n}=e;return void 0!==t?(id()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=function(e,t={}){const n=((e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>sd.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${sd.length} breakpoints, got index ${t}`);const[n,r]=(0,_c.useState)(t);return(0,_c.useEffect)((()=>{const e=()=>{const e=sd.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n})(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}(Array.isArray(r)?r:[r]),l="string"==typeof u&&!!u.includes("column"),d=Rl();return{...c,className:(0,_c.useMemo)((()=>{const e=Ll({alignItems:null!=t?t:l?"normal":"center",flexDirection:u,flexWrap:a?"wrap":void 0,gap:jl(i),justifyContent:s,height:l&&o?"100%":void 0,width:!l&&o?"100%":void 0},"","");return d(ad,e,l?ld:dd,n)}),[t,n,d,u,o,i,l,s,a]),isColumn:l}}const pd=(0,_c.createContext)({flexItemDisplay:void 0}),hd=Nc((function(e,t){const{children:n,isColumn:r,...o}=fd(e);return(0,hl.jsx)(pd.Provider,{value:{flexItemDisplay:r?"block":void 0},children:(0,hl.jsx)(gl,{...o,ref:t,children:n})})}),"Flex");const md=Nc((function(e,t){const n=function(e){const{className:t,display:n,isBlock:r=!1,...o}=Al(e,"FlexItem"),i={},s=(0,_c.useContext)(pd).flexItemDisplay;return i.Base=Ll({display:n||s},"",""),{...o,className:Rl()(cd,i.Base,r&&ud,t)}}(e);return(0,hl.jsx)(gl,{...n,ref:t})}),"FlexItem"),gd={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function yd(e){return null!=e}function vd(e){return`0 ${e}px ${2*e}px 0\n\trgba(0, 0, 0, ${e/20})`}const bd=Nc((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:a=0,value:c=0,...u}=Al(e,"Elevation"),l=Rl();return{...u,className:(0,_c.useMemo)((()=>{let e=yd(i)?i:2*c,u=yd(t)?t:c/2;s||(e=yd(i)?i:void 0,u=yd(t)?t:void 0);const d=`box-shadow ${ql.transitionDuration} ${ql.transitionTimingFunction}`,f={};return f.Base=Ll({borderRadius:n,bottom:a,boxShadow:vd(c),opacity:ql.elevationIntensity,left:a,right:a,top:a},Ll("@media not ( prefers-reduced-motion ){transition:",d,";}",""),"",""),yd(e)&&(f.hover=Ll("*:hover>&{box-shadow:",vd(e),";}","")),yd(u)&&(f.active=Ll("*:active>&{box-shadow:",vd(u),";}","")),yd(o)&&(f.focus=Ll("*:focus>&{box-shadow:",vd(o),";}","")),l(gd,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,l,o,i,s,a,c]),"aria-hidden":!0}}(e);return(0,hl.jsx)(gl,{...n,ref:t})}),"Elevation"),wd=bd,Sd=window.wp.compose,_d=n.p+"images/wcshipping-fallback.c271d9c9.jpg",xd=({imageSrc:e,imageBackground:t,children:n})=>{const r=(0,Sd.useViewportMatch)("large","<");return(0,hl.jsxs)(rd,{className:"wcshipping-onboarding-container",children:[(0,hl.jsxs)(hd,{className:"wcshipping-onboarding-container__row",direction:r?"column":"row",children:[(0,hl.jsx)(md,{className:"wcshipping-onboarding-container__content",children:n}),(0,hl.jsx)(md,{display:"flex",className:"wcshipping-onboarding-container__media",style:{background:null!=t?t:"#F2EDFF"},children:(0,hl.jsx)("img",{className:"wcshipping-onboarding-container__image",src:null!=e?e:_d,alt:""})})]}),(0,hl.jsx)(wd,{value:3})]})};function kd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Ed=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kd(e))&&(r&&(r+=" "),r+=t);return r};var Cd=Object.defineProperty,Td=Object.defineProperties,Id=Object.getOwnPropertyDescriptors,Od=Object.getOwnPropertySymbols,Md=Object.prototype.hasOwnProperty,Rd=Object.prototype.propertyIsEnumerable,Ad=(e,t,n)=>t in e?Cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nd=(e,t)=>{for(var n in t||(t={}))Md.call(t,n)&&Ad(e,n,t[n]);if(Od)for(var n of Od(t))Rd.call(t,n)&&Ad(e,n,t[n]);return e},Dd=(e,t)=>Td(e,Id(t)),Pd=(e,t)=>{var n={};for(var r in e)Md.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Od)for(var r of Od(e))t.indexOf(r)<0&&Rd.call(e,r)&&(n[r]=e[r]);return n},Ld=Object.defineProperty,jd=Object.defineProperties,$d=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,Bd=Object.prototype.hasOwnProperty,zd=Object.prototype.propertyIsEnumerable,Ud=(e,t,n)=>t in e?Ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hd=(e,t)=>{for(var n in t||(t={}))Bd.call(t,n)&&Ud(e,n,t[n]);if(Fd)for(var n of Fd(t))zd.call(t,n)&&Ud(e,n,t[n]);return e},Wd=(e,t)=>jd(e,$d(t));function qd(...e){}function Vd(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function Yd(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Gd(e){return e}function Kd(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function Xd(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function Jd(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function Qd(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function Zd(...e){for(const t of e)if(void 0!==t)return t}function ef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var tf,nf="undefined"!=typeof window&&!!(null==(tf=window.document)?void 0:tf.createElement);function rf(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function of(e){return e?"self"in e?e.self:rf(e).defaultView||window:self}function sf(e,t=!1){const{activeElement:n}=rf(e);if(!(null==n?void 0:n.nodeName))return null;if(cf(n)&&n.contentDocument)return sf(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=rf(n).getElementById(e);if(t)return t}}return n}function af(e,t){return e===t||e.contains(t)}function cf(e){return"IFRAME"===e.tagName}function uf(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==lf.indexOf(e.type)}var lf=["button","color","file","image","reset","submit"];function df(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ff(e){return e.target===e.currentTarget}function pf(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!af(n,r)}function hf(e,t,n,r){const o=(e=>{if(r){const t=setTimeout(e,r);return()=>clearTimeout(t)}const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function mf(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(mf(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var gf=Nd({},Lr),yf=gf.useId,vf=(gf.useDeferredValue,gf.useInsertionEffect),bf=nf?Pr.useLayoutEffect:Pr.useEffect;function wf(e){const t=(0,Pr.useRef)(e);return bf((()=>{t.current=e})),t}function Sf(e){const t=(0,Pr.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return vf?vf((()=>{t.current=e})):t.current=e,(0,Pr.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function _f(...e){return(0,Pr.useMemo)((()=>{if(e.some(Boolean))return t=>{for(const n of e)ef(n,t)}}),e)}function xf(e){if(yf){const t=yf();return e||t}const[t,n]=(0,Pr.useState)(e);return bf((()=>{if(e||t)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)}),[e,t]),e||t}function kf(e,t){const n=(0,Pr.useRef)(!1);(0,Pr.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,Pr.useEffect)((()=>()=>{n.current=!1}),[])}function Ef(e){return Sf("function"==typeof e?e:()=>e)}function Cf(e,t,n=[]){const r=(0,Pr.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return Dd(Nd({},e),{wrapElement:r})}function Tf(e=!1,t){const[n,r]=(0,Pr.useState)(null);return{portalRef:_f(r,t),portalNode:n,domReady:!e||n}}function If(){return(0,Pr.useEffect)((()=>{mf("mousemove",Af,!0),mf("mousedown",Nf,!0),mf("mouseup",Nf,!0),mf("keydown",Nf,!0),mf("scroll",Nf,!0)}),[]),Sf((()=>Of))}var Of=!1,Mf=0,Rf=0;function Af(e){(function(e){const t=e.movementX||e.screenX-Mf,n=e.movementY||e.screenY-Rf;return Mf=e.screenX,Rf=e.screenY,t||n||!1})(e)&&(Of=!0)}function Nf(){Of=!1}function Df(e,t){const n=e.__unstableInternals;return Kd(n,"Invalid store"),n[t]}function Pf(e,...t){let n=e,r=n,o=Symbol(),i=qd;const s=new Set,a=new Set,c=new Set,u=new Set,l=new Set,d=new WeakMap,f=new WeakMap,p=(e,t,n=u)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),h=(e,i,s=!1)=>{var c;if(!Vd(n,e))return;const p=(h=i,m=n[e],function(e){return"function"==typeof e}(h)?h(function(e){return"function"==typeof e}(m)?m():m):h);var h,m;if(p===n[e])return;if(!s)for(const n of t)null==(c=null==n?void 0:n.setState)||c.call(n,e,p);const g=n;n=Wd(Hd({},n),{[e]:p});const y=Symbol();o=y,a.add(e);const v=(t,r,o)=>{var i;const s=f.get(t);s&&!s.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of u)v(e,g);queueMicrotask((()=>{if(o!==y)return;const e=n;for(const e of l)v(e,r,a);r=e,a.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(c.add(e),()=>c.delete(e)),init:()=>{const e=s.size,r=Symbol();s.add(r);const o=()=>{s.delete(r),s.size||i()};if(e)return o;const a=(u=n,Object.keys(u)).map((e=>Yd(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&Vd(r,e))return Ff(t,[e],(t=>{h(e,t[e],!0)}))})))));var u;const l=[];for(const e of c)l.push(e());const d=t.map(jf);return i=Yd(...a,...l,...d),o},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,l)),pick:e=>Pf(function(e,t){const n={};for(const r of t)Vd(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>Pf(function(e,t){const n=Hd({},e);for(const e of t)Vd(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Lf(e,...t){if(e)return Df(e,"setup")(...t)}function jf(e,...t){if(e)return Df(e,"init")(...t)}function $f(e,...t){if(e)return Df(e,"subscribe")(...t)}function Ff(e,...t){if(e)return Df(e,"sync")(...t)}function Bf(e,...t){if(e)return Df(e,"omit")(...t)}function zf(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?Object.assign(e,r):e}),{}),n=Pf(t,...e);return Object.assign({},...e,n)}var Uf=n(9835),{useSyncExternalStore:Hf}=Uf;function Wf(e,t=Gd){const n=Pr.useCallback((t=>e?$f(e,null,t):()=>{}),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&Vd(o,n)?o[n]:void 0};return Hf(n,r,r)}function qf(e,t,n,r){const o=Vd(t,n)?t[n]:void 0,i=r?t[r]:void 0,s=wf({value:o,setValue:i});bf((()=>Ff(e,[n],((e,t)=>{const{value:r,setValue:o}=s.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),bf((()=>{if(void 0!==o)return e.setState(n,o),function(e,...t){if(e)return Df(e,"batch")(...t)}(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Vf(e,t){const[n,r]=Pr.useState((()=>e(t)));bf((()=>jf(n)),[n]);const o=Pr.useCallback((e=>Wf(n,e)),[n]);return[Pr.useMemo((()=>Dd(Nd({},n),{useState:o})),[n,o]),Sf((()=>{r((n=>e(Nd(Nd({},t),n.getState()))))}))]}function Yf(e={}){const t=zf(e.store,Bf(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=Zd(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=Zd(e.animated,null==n?void 0:n.animated,!1),i=Pf({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:Zd(null==n?void 0:n.contentElement,null),disclosureElement:Zd(null==n?void 0:n.disclosureElement,null)},t);return Lf(i,(()=>Ff(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Lf(i,(()=>$f(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Lf(i,(()=>Ff(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),Wd(Hd({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Gf(e,t,n){return kf(t,[n.store,n.disclosure]),qf(e,n,"open","setOpen"),qf(e,n,"mounted","setMounted"),qf(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Kf(e={}){return Yf(e)}function Xf(e,t,n){return Gf(e,t,n)}function Jf(e,t,n){return qf(e,n,"timeout"),qf(e,n,"showTimeout"),qf(e,n,"hideTimeout"),function(e,t,n){return kf(t,[n.popover]),qf(e,n,"placement"),Xf(e,t,n)}(e,t,n)}function Qf(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=((e,t)=>{var n={};for(var r in e)Bd.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Fd)for(var r of Fd(e))t.indexOf(r)<0&&zd.call(e,r)&&(n[r]=e[r]);return n})(t,["popover"]);const o=zf(r.store,Bf(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),s=Kf(Wd(Hd({},r),{store:o})),a=Zd(r.placement,null==i?void 0:i.placement,"bottom"),c=Pf(Wd(Hd({},s.getState()),{placement:a,currentPlacement:a,anchorElement:Zd(null==i?void 0:i.anchorElement,null),popoverElement:Zd(null==i?void 0:i.popoverElement,null),arrowElement:Zd(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),s,o);return Wd(Hd(Hd({},s),c),{setAnchorElement:e=>c.setState("anchorElement",e),setPopoverElement:e=>c.setState("popoverElement",e),setArrowElement:e=>c.setState("arrowElement",e),render:()=>c.setState("rendered",Symbol("rendered"))})}(Wd(Hd({},e),{placement:Zd(e.placement,null==n?void 0:n.placement,"bottom")})),o=Zd(e.timeout,null==n?void 0:n.timeout,500),i=Pf(Wd(Hd({},r.getState()),{timeout:o,showTimeout:Zd(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:Zd(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:Zd(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return Wd(Hd(Hd({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}(Wd(Hd({},e),{placement:Zd(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:Zd(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Pf(Wd(Hd({},r.getState()),{type:Zd(e.type,null==n?void 0:n.type,"description"),skipTimeout:Zd(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return Hd(Hd({},r),o)}function Zf(e){const t=Pr.forwardRef(((t,n)=>e(Dd(Nd({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function ep(e,t){const n=t,{wrapElement:r,render:o}=n,i=Pd(n,["wrapElement","render"]),s=_f(t.ref,function(e){return function(e){return!!e&&!!(0,Pr.isValidElement)(e)&&("ref"in e.props||"ref"in e)}(e)?Nd({},e.props).ref||e.ref:null}(o));let a;if(Pr.isValidElement(o)){const e=Dd(Nd({},o.props),{ref:s});a=Pr.cloneElement(o,function(e,t){const n=Nd({},e);for(const r in t){if(!Vd(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?Nd(Nd({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(i,e))}else a=o?o(i):(0,hl.jsx)(e,Nd({},i));return r?r(a):a}function tp(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function np(e=[],t=[]){const n=Pr.createContext(void 0),r=Pr.createContext(void 0),o=()=>Pr.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,hl.jsx)(n,Dd(Nd({},t),{children:e}))),(0,hl.jsx)(n.Provider,Nd({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=Pr.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=Pr.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,hl.jsx)(i,Dd(Nd({},e),{children:t.reduceRight(((t,n)=>(0,hl.jsx)(n,Dd(Nd({},e),{children:t}))),(0,hl.jsx)(r.Provider,Nd({},e)))}))}}tp((function(e){return e}));var rp=Zf((function(e){return ep("div",e)}));Object.assign(rp,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Zf((function(e){return ep(t,e)})),e)),{}));var op=np(),ip=(op.useContext,op.useScopedContext,op.useProviderContext),sp=np([op.ContextProvider],[op.ScopedContextProvider]),ap=(sp.useContext,sp.useScopedContext,sp.useProviderContext),cp=sp.ContextProvider,up=sp.ScopedContextProvider,lp=(0,Pr.createContext)(void 0),dp=(0,Pr.createContext)(void 0),fp=np([cp],[up]),pp=(fp.useContext,fp.useScopedContext,fp.useProviderContext),hp=fp.ContextProvider,mp=fp.ScopedContextProvider,gp=np([hp],[mp]),yp=(gp.useContext,gp.useScopedContext,gp.useProviderContext),vp=gp.ContextProvider,bp=gp.ScopedContextProvider,wp=(0,Pr.createContext)(!0),Sp="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function _p(e){return!!e.matches(Sp)&&!!df(e)&&!e.closest("[inert]")}function xp(e){if(!_p(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=sf(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function kp(e,t){const n=Array.from(e.querySelectorAll(Sp));t&&n.unshift(e);const r=n.filter(_p);return r.forEach(((e,t)=>{if(cf(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...kp(n))}})),r}function Ep(e,t,n){const r=Array.from(e.querySelectorAll(Sp)),o=r.filter(xp);return t&&xp(e)&&o.unshift(e),o.forEach(((e,t)=>{if(cf(e)&&e.contentDocument){const r=Ep(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Cp(e,t){return function(e,t,n,r){const o=sf(e),i=kp(e,!1),s=i.indexOf(o),a=i.slice(s+1);return a.find(xp)||(n?i.find(xp):null)||(r?a[0]:null)||null}(document.body,0,e,t)}function Tp(e,t){return function(e,t,n,r){const o=sf(e),i=kp(e,!1).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(xp)||(n?i.find(xp):null)||(r?a[0]:null)||null}(document.body,0,e,t)}function Ip(e){const t=sf(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Op(e){const t=sf(e);if(!t)return!1;if(af(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}function Mp(e){!Op(e)&&_p(e)&&e.focus()}function Rp(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function Ap(){return!!nf&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function Np(){return nf&&Ap()&&/apple/i.test(navigator.vendor)}var Dp=Np(),Pp=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],Lp=Symbol("safariFocusAncestor");function jp(e,t){e&&(e[Lp]=t)}function $p(e){return!("input"!==e.tagName.toLowerCase()||!e.type||"radio"!==e.type&&"checkbox"!==e.type)}function Fp(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function Bp(e,t){return Sf((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var zp=!0;function Up(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(zp=!1))}function Hp(e){e.metaKey||e.ctrlKey||e.altKey||(zp=!0)}var Wp=tp((function(e){var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=Pd(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const a=(0,Pr.useRef)(null);(0,Pr.useEffect)((()=>{n&&(mf("mousedown",Up,!0),mf("keydown",Hp,!0))}),[n]),Dp&&(0,Pr.useEffect)((()=>{if(!n)return;const e=a.current;if(!e)return;if(!$p(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",r);return()=>{for(const e of t)e.removeEventListener("mouseup",r)}}),[n]);const c=n&&Jd(s),u=!!c&&!r,[l,d]=(0,Pr.useState)(!1);(0,Pr.useEffect)((()=>{n&&u&&l&&d(!1)}),[n,u,l]),(0,Pr.useEffect)((()=>{if(!n)return;if(!l)return;const e=a.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{_p(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,l]);const f=Bp(s.onKeyPressCapture,c),p=Bp(s.onMouseDownCapture,c),h=Bp(s.onClickCapture,c),m=s.onMouseDown,g=Sf((e=>{if(null==m||m(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!Dp)return;if(function(e){return Boolean(e.currentTarget&&!af(e.currentTarget,e.target))}(e))return;if(!uf(t)&&!$p(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!_p(e);)e=e.closest(Sp);return e||null}(t.parentElement);jp(i,!0),hf(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),jp(i,!1),r||Mp(t)}))})),y=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ip(r)&&(null==i||i(e),e.defaultPrevented||(r.dataset.focusVisible="true",d(!0)))},v=s.onKeyDownCapture,b=Sf((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;if(l)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ff(e))return;const t=e.currentTarget;hf(t,"focusout",(()=>y(e,t)))})),w=s.onFocusCapture,S=Sf((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(!ff(e))return void d(!1);const t=e.currentTarget;zp||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):Pp.includes(r))}(e.target)?hf(e.target,"focusout",(()=>y(e,t))):d(!1)})),_=s.onBlur,x=Sf((e=>{null==_||_(e),n&&pf(e)&&d(!1)})),k=(0,Pr.useContext)(wp),E=Sf((e=>{n&&o&&e&&k&&queueMicrotask((()=>{Ip(e)||_p(e)&&e.focus()}))})),C=function(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,Pr.useState)((()=>n(t)));return bf((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}(a),T=n&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(C),I=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(C),O=s.style,M=(0,Pr.useMemo)((()=>u?Nd({pointerEvents:"none"},O):O),[u,O]);return Qd(s=Dd(Nd({"data-focus-visible":n&&l||void 0,"data-autofocus":o||void 0,"aria-disabled":c||void 0},s),{ref:_f(a,E,s.ref),style:M,tabIndex:Fp(n,u,T,I,s.tabIndex),disabled:!(!I||!u)||void 0,contentEditable:c?void 0:s.contentEditable,onKeyPressCapture:f,onClickCapture:h,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:b,onFocusCapture:S,onBlur:x}))})),qp=(Zf((function(e){return ep("div",Wp(e))})),tp((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Pd(t,["store","showOnHover"]);const i=yp();Kd(n=n||i,!1);const s=Jd(o),a=(0,Pr.useRef)(0);(0,Pr.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,Pr.useEffect)((()=>mf("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(a.current),a.current=0)}),!0)),[n]);const c=o.onMouseMove,u=Ef(r),l=If(),d=Sf((e=>{if(null==c||c(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(a.current)return;if(!l())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{a.current=0,l()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},d=null!=r?r:o;0===d?i():a.current=window.setTimeout(i,d)})),f=o.onClick,p=Sf((e=>{null==f||f(e),n&&(window.clearTimeout(a.current),a.current=0)})),h=(0,Pr.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=Dd(Nd({},o),{ref:_f(h,o.ref),onMouseMove:d,onClick:p}),Wp(o)}))),Vp=(Zf((function(e){return ep("a",qp(e))})),np([vp],[bp])),Yp=(Vp.useContext,Vp.useScopedContext,Vp.useProviderContext),Gp=(Vp.ContextProvider,Vp.ScopedContextProvider),Kp=Pf({activeStore:null});function Xp(e){return()=>{const{activeStore:t}=Kp.getState();t===e&&Kp.setState("activeStore",null)}}var Jp=tp((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Pd(t,["store","showOnHover"]);const i=Yp();Kd(n=n||i,!1);const s=(0,Pr.useRef)(!1);(0,Pr.useEffect)((()=>Ff(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,Pr.useEffect)((()=>{if(n)return Yd(Xp(n),Ff(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=Kp.getState();return e!==n&&(null==e||e.hide()),Kp.setState("activeStore",n)}const t=setTimeout(Xp(n),e.skipTimeout);return()=>clearTimeout(t)})))}),[n]);const a=o.onMouseEnter,c=Sf((e=>{null==a||a(e),s.current=!0})),u=o.onFocusVisible,l=Sf((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,f=Sf((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=Kp.getState();s.current=!1,t===n&&Kp.setState("activeStore",null)})),p=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=Dd(Nd({"aria-labelledby":"label"===p?h:void 0},o),{onMouseEnter:c,onFocusVisible:l,onBlur:f}),qp(Nd({store:n,showOnHover(e){if(!s.current)return!1;if(Xd(r,e))return!1;const{activeStore:t}=Kp.getState();return!t||(null==n||n.show(),!1)}},o))})),Qp=Zf((function(e){return ep("div",Jp(e))}));function Zp(e){return[e.clientX,e.clientY]}function eh(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,s=e-1;i<e;s=i++){const[a,c]=t[i],[u,l]=t[s],[,d]=t[0===s?e-1:s-1]||[0,0],f=(c-l)*(n-a)-(a-u)*(r-c);if(l<c){if(r>=l&&r<c){if(0===f)return!0;f>0&&(r===l?r>d&&(o=!o):o=!o)}}else if(c<l){if(r>c&&r<=l){if(0===f)return!0;f<0&&(r===l?r<d&&(o=!o):o=!o)}}else if(r===c&&(n>=u&&n<=a||n>=a&&n<=u))return!0}return o}function th(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,c]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e;return[s<i?"left":s>r?"right":null,a<n?"top":a>o?"bottom":null]}(t,n),u=[t];return a?("top"!==c&&u.push(["left"===a?s:o,r]),u.push(["left"===a?o:s,r]),u.push(["left"===a?o:s,i]),"bottom"!==c&&u.push(["left"===a?s:o,i])):"top"===c?(u.push([s,r]),u.push([s,i]),u.push([o,i]),u.push([o,r])):(u.push([s,i]),u.push([s,r]),u.push([o,r]),u.push([o,i])),u}function nh(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||"true"===n||!t.length||t.some((e=>n===e)))}var rh=new WeakMap;function oh(e,t,n){rh.has(e)||rh.set(e,new Map);const r=rh.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),s=()=>{i(),o(),r.delete(t)};return r.set(t,s),()=>{r.get(t)===s&&(i(),r.set(t,o))}}function ih(e,t,n){return oh(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function sh(e,t,n){return oh(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function ah(e,t){return e?oh(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}})):()=>{}}var ch=["SCRIPT","STYLE"];function uh(e){return`__ariakit-dialog-snapshot-${e}`}function lh(e,t,n){return!ch.includes(t.tagName)&&!!function(e,t){const n=rf(t),r=uh(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&af(t,e)))}function dh(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&e!==o&&e.contains(o))),s=rf(o),a=o;for(;o.parentElement&&o!==s.body;){if(null==r||r(o.parentElement,a),!i)for(const r of o.parentElement.children)lh(e,r,t)&&n(r,a);o=o.parentElement}}}function fh(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function ph(e,t=""){return Yd(sh(e,fh("",!0),!0),sh(e,fh(t,!0),!0))}function hh(e,t){if(e[fh(t,!0)])return!0;const n=fh(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function mh(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return dh(e,t,(t=>{nh(t,...r)||n.unshift(function(e,t=""){return Yd(sh(e,fh(),!0),sh(e,fh(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(ph(t,e))})),()=>{for(const e of n)e()}}var gh=n(5795);function yh(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function vh(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function bh(e,t,n){return!(n||!1===t||e&&!t)}var wh=tp((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Pd(t,["store","alwaysVisible"]);const i=ip();Kd(n=n||i,!1);const s=(0,Pr.useRef)(null),a=xf(o.id),[c,u]=(0,Pr.useState)(null),l=n.useState("open"),d=n.useState("mounted"),f=n.useState("animated"),p=n.useState("contentElement"),h=Wf(n.disclosure,"contentElement");bf((()=>{s.current&&(null==n||n.setContentElement(s.current))}),[n]),bf((()=>{let e;return null==n||n.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==n||n.setState("animated",e))}}),[n]),bf((()=>{if(f){if(null==p?void 0:p.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{u(l?"enter":d?"leave":null)}));u(null)}}),[f,p,l,d]),bf((()=>{if(!n)return;if(!f)return;if(!c)return;if(!p)return;const e=()=>null==n?void 0:n.setState("animating",!1),t=()=>(0,gh.flushSync)(e);if("leave"===c&&l)return;if("enter"===c&&!l)return;if("number"==typeof f)return yh(f,t);const{transitionDuration:r,animationDuration:o,transitionDelay:i,animationDelay:s}=getComputedStyle(p),{transitionDuration:a="0",animationDuration:u="0",transitionDelay:d="0",animationDelay:m="0"}=h?getComputedStyle(h):{},g=vh(i,s,d,m)+vh(r,o,a,u);return g?yh(Math.max(g-1e3/60,0),t):("enter"===c&&n.setState("animated",!1),void e())}),[n,f,p,h,l,c]),o=Cf(o,(e=>(0,hl.jsx)(up,{value:n,children:e})),[n]);const m=bh(d,o.hidden,r),g=o.style,y=(0,Pr.useMemo)((()=>m?Dd(Nd({},g),{display:"none"}):g),[m,g]);return Qd(o=Dd(Nd({id:a,"data-open":l||void 0,"data-enter":"enter"===c||void 0,"data-leave":"leave"===c||void 0,hidden:m},o),{ref:_f(a?n.setContentElement:null,s,o.ref),style:y}))})),Sh=Zf((function(e){return ep("div",wh(e))}));function _h({store:e,backdrop:t,alwaysVisible:n,hidden:r}){const o=(0,Pr.useRef)(null),i=function(e={}){const[t,n]=Vf(Yf,e);return Gf(t,n,e)}({disclosure:e}),s=Wf(e,"contentElement");(0,Pr.useEffect)((()=>{const e=o.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),bf((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=o.current;return t?ph(t,e):void 0}),[s]);const a=wh({ref:o,store:i,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:n,hidden:null!=r?r:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if((0,Pr.isValidElement)(t))return(0,hl.jsx)(rp,Dd(Nd({},a),{render:t}));const c="boolean"!=typeof t?t:"div";return(0,hl.jsx)(rp,Dd(Nd({},a),{render:(0,hl.jsx)(c,{})}))}function xh(){return"inert"in HTMLElement.prototype}function kh(e,t){if(!("style"in e))return qd;if(xh())return sh(e,"inert",!0);const n=Ep(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&af(t,e))))return qd;const n=oh(e,"focus",(()=>(e.focus=qd,()=>{delete e.focus})));return Yd(ih(e,"tabindex","-1"),n)}));return Yd(...n,function(e){return ih(e,"aria-hidden","true")}(e),ah(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function Eh(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=(0,Pr.useReducer)((()=>[]),[]),s=(0,Pr.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=rf(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,Pr.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=rf(n);if(s())return o.setAttribute(e,t),()=>o.removeAttribute(e);const a=new MutationObserver((()=>(0,gh.flushSync)(i)));return a.observe(o,{attributeFilter:[e]}),()=>a.disconnect()}),[o,r,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,Pr.useEffect)((()=>{if(!r())return;if(!e)return;const t=rf(e),n=of(e),{documentElement:o,body:i}=t,s=o.style.getPropertyValue("--scrollbar-width"),a=s?Number.parseInt(s):n.innerWidth-o.clientWidth,c=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),u=Ap()&&!(nf&&navigator.platform.startsWith("Mac")&&(!nf||!navigator.maxTouchPoints));return Yd((d="--scrollbar-width",f=`${a}px`,(l=o)?oh(l,d,(()=>{const e=l.style.getPropertyValue(d);return l.style.setProperty(d,f),()=>{e?l.style.setProperty(d,e):l.style.removeProperty(d)}})):()=>{}),u?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:s}=n,u=null!=(e=null==s?void 0:s.offsetLeft)?e:0,l=null!=(t=null==s?void 0:s.offsetTop)?t:0,d=ah(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(l))+"px",left:-(r-Math.floor(u))+"px",right:"0",[c]:`${a}px`});return()=>{d(),n.scrollTo({left:r,top:o,behavior:"instant"})}})():ah(i,{overflow:"hidden",[c]:`${a}px`}));var l,d,f}),[r,e])}Zf((function(e){var t=e,{unmountOnHide:n}=t,r=Pd(t,["unmountOnHide"]);const o=ip();return!1===Wf(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,hl.jsx)(Sh,Nd({},r))}));var Ch=(0,Pr.createContext)({});function Th({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Sf(n),s=Wf(e,"open"),a=(0,Pr.useRef)(!1);bf((()=>{if(!s)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{a.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,o]),(0,Pr.useEffect)((()=>{if(s)return mf(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;var s;n&&(o&&function(e){return"HTML"===e.tagName||af(rf(e).body,e)}(o)&&(af(n,o)||function(e,t){if(!e)return!1;if(af(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=rf(e).getElementById(n);if(t)return af(e,t)}return!1}(r,o)||o.hasAttribute("data-focus-trap")||function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n)||a.current&&!hh(o,n.id)||(s=o)&&s[Lp]||i(t)))}),r)}),[s,r])}function Ih(e,t){return"function"==typeof e?e(t):!!e}var Oh=tp((function(e){var t=e,{autoFocusOnShow:n=!0}=t,r=Pd(t,["autoFocusOnShow"]);return Cf(r,(e=>(0,hl.jsx)(wp.Provider,{value:n,children:e})),[n])})),Mh=(Zf((function(e){return ep("div",Oh(e))})),(0,Pr.createContext)(0));function Rh({level:e,children:t}){const n=(0,Pr.useContext)(Mh),r=Math.max(Math.min(e||n+1,6),1);return(0,hl.jsx)(Mh.Provider,{value:r,children:t})}var Ah=tp((function(e){return Dd(Nd({},e),{style:Nd({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})})),Nh=(Zf((function(e){return ep("span",Ah(e))})),tp((function(e){return e=Dd(Nd({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:Nd({position:"fixed",top:0,left:0},e.style)}),Ah(e)}))),Dh=Zf((function(e){return ep("span",Nh(e))})),Ph=(0,Pr.createContext)(null);function Lh(e){queueMicrotask((()=>{null==e||e.focus()}))}var jh=tp((function(e){var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:s=!0}=t,a=Pd(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=(0,Pr.useRef)(null),u=_f(c,a.ref),l=(0,Pr.useContext)(Ph),[d,f]=(0,Pr.useState)(null),[p,h]=(0,Pr.useState)(null),m=(0,Pr.useRef)(null),g=(0,Pr.useRef)(null),y=(0,Pr.useRef)(null),v=(0,Pr.useRef)(null);return bf((()=>{const e=c.current;if(!e||!s)return void f(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:rf(e).createElement("div")}(e,o);if(!t)return void f(null);const n=t.isConnected;if(!n){const n=l||function(e){return rf(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}()),f(t),ef(i,t),n?void 0:()=>{t.remove(),ef(i,null)}}),[s,o,l,i]),bf((()=>{if(!s)return;if(!n)return;if(!r)return;const e=rf(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),h(e),()=>{e.remove(),h(null)}}),[s,n,r]),(0,Pr.useEffect)((()=>{if(!d)return;if(!n)return;let e=0;const t=t=>{if(!pf(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}(d);e=requestAnimationFrame((()=>{!function(e){const t=Ep(e,!0);for(const e of t)Rp(e)}(d)}))};return d.addEventListener("focusin",t,!0),d.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),d.removeEventListener("focusin",t,!0),d.removeEventListener("focusout",t,!0)}}),[d,n]),a=Cf(a,(e=>{if(e=(0,hl.jsx)(Ph.Provider,{value:d||l,children:e}),!s)return e;if(!d)return(0,hl.jsx)("span",{ref:u,id:a.id,style:{position:"fixed"},hidden:!0});e=(0,hl.jsxs)(hl.Fragment,{children:[n&&d&&(0,hl.jsx)(Dh,{ref:g,"data-focus-trap":a.id,className:"__focus-trap-inner-before",onFocus:e=>{pf(e,d)?Lh(Cp()):Lh(m.current)}}),e,n&&d&&(0,hl.jsx)(Dh,{ref:y,"data-focus-trap":a.id,className:"__focus-trap-inner-after",onFocus:e=>{pf(e,d)?Lh(Tp()):Lh(v.current)}})]}),d&&(e=(0,gh.createPortal)(e,d));let t=(0,hl.jsxs)(hl.Fragment,{children:[n&&d&&(0,hl.jsx)(Dh,{ref:m,"data-focus-trap":a.id,className:"__focus-trap-outer-before",onFocus:e=>{e.relatedTarget!==v.current&&pf(e,d)?Lh(g.current):Lh(Tp())}}),n&&(0,hl.jsx)("span",{"aria-owns":null==d?void 0:d.id,style:{position:"fixed"}}),n&&d&&(0,hl.jsx)(Dh,{ref:v,"data-focus-trap":a.id,className:"__focus-trap-outer-after",onFocus:e=>{if(pf(e,d))Lh(y.current);else{const e=Cp();if(e===g.current)return void requestAnimationFrame((()=>{var e;return null==(e=Cp())?void 0:e.focus()}));Lh(e)}}})]});return p&&n&&(t=(0,gh.createPortal)(t,p)),(0,hl.jsxs)(hl.Fragment,{children:[t,e]})}),[d,l,s,a.id,n,p]),a=Dd(Nd({},a),{ref:u})})),$h=(Zf((function(e){return ep("div",jh(e))})),Np());function Fh(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?_p(n)?n:null:n:null}var Bh=tp((function(e){var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:s=!0,portal:a=!!s,backdrop:c=!!s,hideOnEscape:u=!0,hideOnInteractOutside:l=!0,getPersistentElements:d,preventBodyScroll:f=!!s,autoFocusOnShow:p=!0,autoFocusOnHide:h=!0,initialFocus:m,finalFocus:g,unmountOnHide:y,unstable_treeSnapshotKey:v}=t,b=Pd(t,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const w=ap(),S=(0,Pr.useRef)(null),_=function(e={}){const[t,n]=Vf(Kf,e);return Xf(t,n,e)}({store:n||w,open:r,setOpen(e){if(e)return;const t=S.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});o&&t.addEventListener("close",o,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&_.setOpen(!0)}}),{portalRef:x,domReady:k}=Tf(a,b.portalRef),E=b.preserveTabOrder,C=Wf(_,(e=>E&&!s&&e.mounted)),T=xf(b.id),I=Wf(_,"open"),O=Wf(_,"mounted"),M=Wf(_,"contentElement"),R=bh(O,b.hidden,b.alwaysVisible);Eh(M,T,f&&!R),function(e,t,n){const r=function(e){const t=(0,Pr.useRef)();return(0,Pr.useEffect)((()=>{if(e)return mf("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(Wf(e,"open")),o={store:e,domReady:n,capture:!0};Th(Dd(Nd({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&df(i)&&hh(i,null==o?void 0:o.id)&&Ih(t,n)&&e.hide()}})),Th(Dd(Nd({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==rf(r)&&Ih(t,n)&&e.hide()}})),Th(Dd(Nd({},o),{type:"contextmenu",listener:n=>{Ih(t,n)&&e.hide()}}))}(_,l,k);const{wrapElement:A,nestedDialogs:N}=function(e){const t=(0,Pr.useContext)(Ch),[n,r]=(0,Pr.useState)([]),o=(0,Pr.useCallback)((e=>{var n;return r((t=>[...t,e])),Yd(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);bf((()=>Ff(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const i=(0,Pr.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,Pr.useCallback)((e=>(0,hl.jsx)(Ch.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(_);b=Cf(b,A,[A]),bf((()=>{if(!I)return;const e=S.current,t=sf(e,!0);t&&"BODY"!==t.tagName&&(e&&af(e,t)||_.setDisclosureElement(t))}),[_,I]),$h&&(0,Pr.useEffect)((()=>{if(!O)return;const{disclosureElement:e}=_.getState();if(!e)return;if(!uf(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),hf(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Mp(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[_,O]),(0,Pr.useEffect)((()=>{if(!O)return;if(!k)return;const e=S.current;if(!e)return;const t=of(e),n=t.visualViewport||t,r=()=>{var n,r;const o=null!=(r=null==(n=t.visualViewport)?void 0:n.height)?r:t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[O,k]),(0,Pr.useEffect)((()=>{if(!s)return;if(!O)return;if(!k)return;const e=S.current;return e?e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=rf(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,_.hide):void 0}),[_,s,O,k]),bf((()=>{if(!xh())return;if(I)return;if(!O)return;if(!k)return;const e=S.current;return e?kh(e):void 0}),[I,O,k]);const D=I&&k;bf((()=>{if(!T)return;if(!D)return;const e=S.current;return function(e,t){const{body:n}=rf(t[0]),r=[];return dh(e,t,(t=>{r.push(sh(t,uh(e),!0))})),Yd(sh(n,uh(e),!0),(()=>{for(const e of r)e()}))}(T,[e])}),[T,D,v]);const P=Sf(d);bf((()=>{if(!T)return;if(!D)return;const{disclosureElement:e}=_.getState(),t=[S.current,...P()||[],...N.map((e=>e.getState().contentElement))];return s?Yd(mh(T,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return dh(e,t,(e=>{nh(e,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some((e=>n===e)))}(e,...r)||n.unshift(kh(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&af(t,e)))||n.unshift(ih(e,"role","none")))})),()=>{for(const e of n)e()}}(T,t)):mh(T,[e,...t])}),[T,_,D,P,N,s,v]);const L=!!p,j=Ef(p),[$,F]=(0,Pr.useState)(!1);(0,Pr.useEffect)((()=>{if(!I)return;if(!L)return;if(!k)return;if(!(null==M?void 0:M.isConnected))return;const e=Fh(m,!0)||M.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=Ep(e,t,n);return r||null}(M,!0,a&&C)||M,t=_p(e);j(t?e:null)&&(F(!0),queueMicrotask((()=>{e.focus(),$h&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[I,L,k,M,m,a,C,j]);const B=!!h,z=Ef(h),[U,H]=(0,Pr.useState)(!1);(0,Pr.useEffect)((()=>{if(I)return H(!0),()=>H(!1)}),[I]);const W=(0,Pr.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=_.getState();if(function(e){const t=sf();return!(!t||e&&af(e,t)||!_p(t))}(e))return;let r=Fh(g)||n;if(null==r?void 0:r.id){const e=rf(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!_p(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=rf(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&_p(r);o||!t?z(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>W(e,!1)))}),[_,g,z]),q=(0,Pr.useRef)(!1);bf((()=>{if(I)return;if(!U)return;if(!B)return;const e=S.current;q.current=!0,W(e)}),[I,U,k,B,W]),(0,Pr.useEffect)((()=>{if(!U)return;if(!B)return;const e=S.current;return()=>{q.current?q.current=!1:W(e)}}),[U,B,W]);const V=Ef(u);(0,Pr.useEffect)((()=>{if(k&&O)return mf("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=S.current;if(!t)return;if(hh(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=_.getState();("BODY"===n.tagName||af(t,n)||!r||af(r,n))&&V(e)&&_.hide()}),!0)}),[_,k,O,V]);const Y=(b=Cf(b,(e=>(0,hl.jsx)(Rh,{level:s?1:void 0,children:e})),[s])).hidden,G=b.alwaysVisible;b=Cf(b,(e=>c?(0,hl.jsxs)(hl.Fragment,{children:[(0,hl.jsx)(_h,{store:_,backdrop:c,hidden:Y,alwaysVisible:G}),e]}):e),[_,c,Y,G]);const[K,X]=(0,Pr.useState)(),[J,Q]=(0,Pr.useState)();return b=Cf(b,(e=>(0,hl.jsx)(up,{value:_,children:(0,hl.jsx)(lp.Provider,{value:X,children:(0,hl.jsx)(dp.Provider,{value:Q,children:e})})})),[_]),b=Dd(Nd({id:T,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":K,"aria-describedby":J},b),{ref:_f(S,b.ref)}),b=Oh(Dd(Nd({},b),{autoFocusOnShow:$})),b=wh(Nd({store:_},b)),b=Wp(Dd(Nd({},b),{focusable:i})),jh(Dd(Nd({portal:a},b),{portalRef:x,preserveTabOrder:C}))}));function zh(e,t=ap){return Zf((function(n){const r=t();return Wf(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,hl.jsx)(e,Nd({},n)):null}))}zh(Zf((function(e){return ep("div",Bh(e))})),ap);const Uh=Math.min,Hh=Math.max,Wh=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),qh={start:"end",end:"start"};function Vh(e,t,n){return Hh(e,Uh(t,n))}function Yh(e,t){return"function"==typeof e?e(t):e}function Gh(e){return e.split("-")[0]}function Kh(e){return e.split("-")[1]}function Xh(e){return"x"===e?"y":"x"}function Jh(e){return"y"===e?"height":"width"}const Qh=new Set(["top","bottom"]);function Zh(e){return Qh.has(Gh(e))?"y":"x"}function em(e){return Xh(Zh(e))}function tm(e){return e.replace(/start|end/g,(e=>qh[e]))}const nm=["left","right"],rm=["right","left"],om=["top","bottom"],im=["bottom","top"];function sm(e){return e.replace(/left|right|bottom|top/g,(e=>Wh[e]))}function am(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function cm(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function um(e,t,n){let{reference:r,floating:o}=e;const i=Zh(t),s=em(t),a=Jh(s),c=Gh(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Kh(t)){case"start":p[s]-=f*(n&&u?-1:1);break;case"end":p[s]+=f*(n&&u?-1:1)}return p}async function lm(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Yh(t,e),h=am(p),m=a[f?"floating"===d?"reference":"floating":d],g=cm(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=cm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const dm=Math.min,fm=Math.max,pm=Math.round,hm=Math.floor,mm=e=>({x:e,y:e});function gm(){return"undefined"!=typeof window}function ym(e){return wm(e)?(e.nodeName||"").toLowerCase():"#document"}function vm(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bm(e){var t;return null==(t=(wm(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function wm(e){return!!gm()&&(e instanceof Node||e instanceof vm(e).Node)}function Sm(e){return!!gm()&&(e instanceof Element||e instanceof vm(e).Element)}function _m(e){return!!gm()&&(e instanceof HTMLElement||e instanceof vm(e).HTMLElement)}function xm(e){return!(!gm()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vm(e).ShadowRoot)}function km(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mm(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Em(e){return["table","td","th"].includes(ym(e))}function Cm(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Tm(e){const t=Im(),n=Sm(e)?Mm(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Im(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Om(e){return["html","body","#document"].includes(ym(e))}function Mm(e){return vm(e).getComputedStyle(e)}function Rm(e){return Sm(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Am(e){if("html"===ym(e))return e;const t=e.assignedSlot||e.parentNode||xm(e)&&e.host||bm(e);return xm(t)?t.host:t}function Nm(e){const t=Am(e);return Om(t)?e.ownerDocument?e.ownerDocument.body:e.body:_m(t)&&km(t)?t:Nm(t)}function Dm(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Nm(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=vm(o);if(i){const e=Pm(s);return t.concat(s,s.visualViewport||[],km(o)?o:[],e&&n?Dm(e):[])}return t.concat(o,Dm(o,[],n))}function Pm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lm(e){const t=Mm(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_m(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=pm(n)!==i||pm(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function jm(e){return Sm(e)?e:e.contextElement}function $m(e){const t=jm(e);if(!_m(t))return mm(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lm(t);let s=(i?pm(n.width):n.width)/r,a=(i?pm(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Fm=mm(0);function Bm(e){const t=vm(e);return Im()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fm}function zm(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=jm(e);let s=mm(1);t&&(r?Sm(r)&&(s=$m(r)):s=$m(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vm(e))&&t}(i,n,r)?Bm(i):mm(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,l=o.width/s.x,d=o.height/s.y;if(i){const e=vm(i),t=r&&Sm(r)?vm(r):r;let n=e,o=Pm(n);for(;o&&r&&t!==n;){const e=$m(o),t=o.getBoundingClientRect(),r=Mm(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=s,n=vm(o),o=Pm(n)}}return cm({width:l,height:d,x:c,y:u})}function Um(e,t){const n=Rm(e).scrollLeft;return t?t.left+n:zm(bm(e)).left+n}function Hm(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Um(e,r)),y:r.top+t.scrollTop}}function Wm(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=vm(e),r=bm(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=Im();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=bm(e),n=Rm(e),r=e.ownerDocument.body,o=fm(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=fm(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Um(e);const a=-n.scrollTop;return"rtl"===Mm(r).direction&&(s+=fm(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(bm(e));else if(Sm(t))r=function(e,t){const n=zm(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_m(e)?$m(e):mm(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Bm(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cm(r)}function qm(e,t){const n=Am(e);return!(n===t||!Sm(n)||Om(n))&&("fixed"===Mm(n).position||qm(n,t))}function Vm(e,t,n){const r=_m(t),o=bm(t),i="fixed"===n,s=zm(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=mm(0);if(r||!r&&!i)if(("body"!==ym(t)||km(o))&&(a=Rm(t)),r){const e=zm(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Um(o));const u=!o||r||i?mm(0):Hm(o,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}function Ym(e){return"static"===Mm(e).position}function Gm(e,t){if(!_m(e)||"fixed"===Mm(e).position)return null;if(t)return t(e);let n=e.offsetParent;return bm(e)===n&&(n=n.ownerDocument.body),n}function Km(e,t){const n=vm(e);if(Cm(e))return n;if(!_m(e)){let t=Am(e);for(;t&&!Om(t);){if(Sm(t)&&!Ym(t))return t;t=Am(t)}return n}let r=Gm(e,t);for(;r&&Em(r)&&Ym(r);)r=Gm(r,t);return r&&Om(r)&&Ym(r)&&!Tm(r)?n:r||function(e){let t=Am(e);for(;_m(t)&&!Om(t);){if(Tm(t))return t;if(Cm(t))return null;t=Am(t)}return null}(e)||n}const Xm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=bm(r),a=!!t&&Cm(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=mm(1);const l=mm(0),d=_m(r);if((d||!d&&!i)&&(("body"!==ym(r)||km(s))&&(c=Rm(r)),_m(r))){const e=zm(r);u=$m(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const f=!s||d||i?mm(0):Hm(s,c,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:n.y*u.y-c.scrollTop*u.y+l.y+f.y}},getDocumentElement:bm,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Cm(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Dm(e,[],!1).filter((e=>Sm(e)&&"body"!==ym(e))),o=null;const i="fixed"===Mm(e).position;let s=i?Am(e):e;for(;Sm(s)&&!Om(s);){const t=Mm(s),n=Tm(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||km(s)&&!n&&qm(e,s))?r=r.filter((e=>e!==s)):o=t,s=Am(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],c=s.reduce(((e,n)=>{const r=Wm(t,n,o);return e.top=fm(r.top,e.top),e.right=dm(r.right,e.right),e.bottom=dm(r.bottom,e.bottom),e.left=fm(r.left,e.left),e}),Wm(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Km,getElementRects:async function(e){const t=this.getOffsetParent||Km,n=this.getDimensions,r=await n(e.floating);return{reference:Vm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Lm(e);return{width:t,height:n}},getScale:$m,isElement:Sm,isRTL:function(e){return"rtl"===Mm(e).direction}};function Jm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Qm=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Yh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Gh(o),v=Zh(a),b=Gh(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(u.floating)),S=f||(b||!m?[sm(a)]:function(e){const t=sm(e);return[tm(e),t,tm(t)]}(a)),_="none"!==h;!f&&_&&S.push(...function(e,t,n,r){const o=Kh(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?rm:nm:t?nm:rm;case"left":case"right":return t?om:im;default:return[]}}(Gh(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(tm)))),i}(a,m,h,w));const x=[a,...S],k=await lm(t,g),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&E.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Kh(e),o=em(e),i=Jh(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=sm(s)),[s,sm(s)]}(o,s,w);E.push(k[e[0]],k[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every((e=>e<=0))){var T,I;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=C.filter((e=>{if(_){const t=Zh(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Zm=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Yh(e,t),l={x:n,y:r},d=Zh(o),f=Xh(d);let p=l[f],h=l[d];const m=Yh(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;const e="y"===f?"width":"height",t=["top","left"].includes(Gh(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=s.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(v=s.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}};function eg(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return Dd(Nd({},o),{toJSON:()=>o})}function tg(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function ng(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function rg(e,t){return function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Gh(n),a=Kh(n),c="y"===Zh(n),u=["left","top"].includes(s)?-1:1,l=i&&c?-1:1,d=Yh(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*l,y:f*u}:{x:f*u,y:p*l}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}}((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function og(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return Kd(!t||t.every(tg),!1),Qm({padding:e.overflowPadding,fallbackPlacements:t})}function ig(e){if(e.slide||e.overlap)return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Yh(e,t),u={x:n,y:r},l=await lm(t,c),d=Zh(Gh(o)),f=Xh(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=Vh(p+l["y"===f?"top":"left"],p,p-l[e])}if(s){const e="y"===d?"bottom":"right";h=Vh(h+l["y"===d?"top":"left"],h,h-l[e])}const m=a.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:s}}}}}}({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Zm()})}function sg(e){return function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Yh(e,t),l=await lm(t,u),d=Gh(o),f=Kh(o),p="y"===Zh(o),{width:h,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-l.top-l.bottom,b=h-l.left-l.right,w=Uh(m-l[g],v),S=Uh(h-l[y],b),_=!t.middlewareData.shift;let x=w,k=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=v),_&&!f){const e=Hh(l.left,0),t=Hh(l.right,0),n=Hh(l.top,0),r=Hh(l.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Hh(l.left,l.right)):x=m-2*(0!==n||0!==r?n+r:Hh(l.top,l.bottom))}await c({...t,availableWidth:k,availableHeight:x});const E=await s.getDimensions(a.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}}({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,s=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${s}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${s}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function ag(e,t){if(e)return(e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:l=0}=Yh(e,t)||{};if(null==u)return{};const d=am(l),f={x:n,y:r},p=em(o),h=Jh(p),m=await s.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],S=f[p]-i.reference[p],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let x=_?_[b]:0;x&&await(null==s.isElement?void 0:s.isElement(_))||(x=a.floating[b]||i.floating[h]);const k=w/2-S/2,E=x/2-m[h]/2-1,C=Uh(d[y],E),T=Uh(d[v],E),I=C,O=x-m[h]-T,M=x/2-m[h]/2+k,R=Vh(I,M,O),A=!c.arrow&&null!=Kh(o)&&M!==R&&i.reference[h]/2-(M<I?C:T)-m[h]/2<0,N=A?M<I?M-I:M-O:0;return{[p]:f[p]+N,data:{[p]:R,centerOffset:M-R-N,...A&&{alignmentOffset:N}},reset:A}}}))({element:e,padding:t.arrowPadding})}var cg=tp((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:s=!0,wrapperProps:a,fixed:c=!1,flip:u=!0,shift:l=0,slide:d=!0,overlap:f=!1,sameWidth:p=!1,fitViewport:h=!1,gutter:m,arrowPadding:g=4,overflowPadding:y=8,getAnchorRect:v,updatePosition:b}=t,w=Pd(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const S=pp();Kd(n=n||S,!1);const _=n.useState("arrowElement"),x=n.useState("anchorElement"),k=n.useState("disclosureElement"),E=n.useState("popoverElement"),C=n.useState("contentElement"),T=n.useState("placement"),I=n.useState("mounted"),O=n.useState("rendered"),M=(0,Pr.useRef)(null),[R,A]=(0,Pr.useState)(!1),{portalRef:N,domReady:D}=Tf(o,w.portalRef),P=Sf(v),L=Sf(b),j=!!b;bf((()=>{if(!(null==E?void 0:E.isConnected))return;E.style.setProperty("--popover-overflow-padding",`${y}px`);const e=function(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return eg();const{x:t,y:n,width:r,height:o}=e;return eg(t,n,r,o)}(r):n.getBoundingClientRect()}}}(x,P),t=async()=>{if(!I)return;_||(M.current=M.current||document.createElement("div"));const t=_||M.current,r=[rg(t,{gutter:m,shift:l}),og({flip:u,overflowPadding:y}),ig({slide:d,shift:l,overlap:f,overflowPadding:y}),ag(t,{arrowPadding:g}),sg({sameWidth:p,fitViewport:h,overflowPadding:y})],o=await((e,t,n)=>{const r=new Map,o={platform:Xm,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=um(u,r,c),f=r,p={},h=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y,data:v,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=um(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})})(e,E,{placement:T,strategy:c?"fixed":"absolute",middleware:r});null==n||n.setState("currentPlacement",o.placement),A(!0);const i=ng(o.x),s=ng(o.y);if(Object.assign(E.style,{top:"0",left:"0",transform:`translate3d(${i}px,${s}px,0)`}),t&&o.middlewareData.arrow){const{x:e,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],i=t.clientWidth/2,s=t.clientHeight/2,a=null!=e?e+i:-i,c=null!=n?n+s:-s;E.style.setProperty("--popover-transform-origin",{top:`${a}px calc(100% + ${s}px)`,bottom:`${a}px ${-s}px`,left:`calc(100% + ${i}px) ${c}px`,right:`${-i}px ${c}px`}[r]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},r=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=jm(e),l=o||i?[...u?Dm(u):[],...Dm(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&a?function(e,t){let n,r=null;const o=bm(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const u=e.getBoundingClientRect(),{left:l,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;const h={rootMargin:-hm(d)+"px "+-hm(o.clientWidth-(l+f))+"px "+-hm(o.clientHeight-(d+p))+"px "+-hm(l)+"px",threshold:fm(0,dm(1,c))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==c){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Jm(u,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?zm(e):null;return c&&function t(){const r=zm(e);m&&!Jm(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(f)}}(e,E,(async()=>{j?(await L({updatePosition:t}),A(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{A(!1),r()}}),[n,O,E,_,x,E,T,I,D,c,u,l,d,f,p,h,m,g,y,P,j,L]),bf((()=>{if(!I)return;if(!D)return;if(!(null==E?void 0:E.isConnected))return;if(!(null==C?void 0:C.isConnected))return;const e=()=>{E.style.zIndex=getComputedStyle(C).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[I,D,E,C]);const $=c?"fixed":"absolute";return w=Cf(w,(e=>(0,hl.jsx)("div",Dd(Nd({},a),{style:Nd({position:$,top:0,left:0,width:"max-content"},null==a?void 0:a.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,$,a]),w=Cf(w,(e=>(0,hl.jsx)(mp,{value:n,children:e})),[n]),w=Dd(Nd({"data-placing":!R||void 0},w),{style:Nd({position:"relative"},w.style)}),Bh(Dd(Nd({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:k||x,autoFocusOnShow:R&&s},w),{portalRef:N}))}));function ug(e,t,n,r){return!!(Op(t)||e&&(af(t,e)||n&&af(n,e)||(null==r?void 0:r.some((t=>ug(e,t,n))))))}zh(Zf((function(e){return ep("div",cg(e))})),pp);var lg=(0,Pr.createContext)(null),dg=tp((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:a=!!s}=t,c=Pd(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=yp();Kd(n=n||u,!1);const l=(0,Pr.useRef)(null),[d,f]=(0,Pr.useState)([]),p=(0,Pr.useRef)(0),h=(0,Pr.useRef)(null),{portalRef:m,domReady:g}=Tf(o,c.portalRef),y=If(),v=!!s,b=Ef(s),w=!!a,S=Ef(a),_=n.useState("open"),x=n.useState("mounted");(0,Pr.useEffect)((()=>{if(!g)return;if(!x)return;if(!v&&!w)return;const e=l.current;return e?Yd(mf("mousemove",(t=>{if(!n)return;if(!y())return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),s=h.current,[a]=t.composedPath(),c=r;if(ug(a,e,c,d))return h.current=a&&c&&af(c,a)?Zp(t):null,window.clearTimeout(p.current),void(p.current=0);if(!p.current){if(s){const n=Zp(t);if(eh(n,th(e,s))){if(h.current=n,!S(t))return;return t.preventDefault(),void t.stopPropagation()}}b(t)&&(p.current=window.setTimeout((()=>{p.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(p.current))):void 0}),[n,y,g,x,v,w,d,S,b]),(0,Pr.useEffect)((()=>{if(!g)return;if(!x)return;if(!w)return;const e=e=>{const t=l.current;if(!t)return;const n=h.current;if(!n)return;const r=th(t,n);if(eh(Zp(e),r)){if(!S(e))return;e.preventDefault(),e.stopPropagation()}};return Yd(mf("mouseenter",e,!0),mf("mouseover",e,!0),mf("mouseout",e,!0),mf("mouseleave",e,!0))}),[g,x,w,S]),(0,Pr.useEffect)((()=>{g&&(_||null==n||n.setAutoFocusOnShow(!1))}),[n,g,_]);const k=wf(_);(0,Pr.useEffect)((()=>{if(g)return()=>{k.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,g]);const E=(0,Pr.useContext)(lg);bf((()=>{if(r)return;if(!o)return;if(!x)return;if(!g)return;const e=l.current;return e?null==E?void 0:E(e):void 0}),[r,o,x,g]);const C=(0,Pr.useCallback)((e=>{f((t=>[...t,e]));const t=null==E?void 0:E(e);return()=>{f((t=>t.filter((t=>t!==e)))),null==t||t()}}),[E]);c=Cf(c,(e=>(0,hl.jsx)(bp,{value:n,children:(0,hl.jsx)(lg.Provider,{value:C,children:e})})),[n,C]),c=Dd(Nd({},c),{ref:_f(l,c.ref)}),c=function(e){var t=e,{store:n}=t,r=Pd(t,["store"]);const[o,i]=(0,Pr.useState)(!1),s=n.useState("mounted");(0,Pr.useEffect)((()=>{s||i(!1)}),[s]);const a=r.onFocus,c=Sf((e=>{null==a||a(e),e.defaultPrevented||i(!0)})),u=(0,Pr.useRef)(null);return(0,Pr.useEffect)((()=>Ff(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),Dd(Nd({autoFocusOnHide:o,finalFocus:u},r),{onFocus:c})}(Nd({store:n},c));const T=n.useState((e=>r||e.autoFocusOnShow));return cg(Dd(Nd({store:n,modal:r,portal:o,autoFocusOnShow:T},c),{portalRef:m,hideOnEscape:e=>!Xd(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))})),fg=(zh(Zf((function(e){return ep("div",dg(e))})),yp),tp((function(e){var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:a=!0}=t,c=Pd(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=Yp();Kd(n=n||u,!1),c=Cf(c,(e=>(0,hl.jsx)(Gp,{value:n,children:e})),[n]);const l=n.useState((e=>"description"===e.type?"tooltip":"none"));return c=Nd({role:l},c),dg(Dd(Nd({},c),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside(e){if(Xd(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(Xd(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!af(t,e.target)}}))}))),pg=zh(Zf((function(e){return ep("div",fg(e))})),Yp);const hg=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,hl.jsx)("span",{className:n,"aria-label":o,children:r})},mg={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},gg=e=>{var t;return null!==(t=mg[e])&&void 0!==t?t:"bottom"},yg=(0,_c.createContext)({isNestedInTooltip:!1}),vg=700,bg={isNestedInTooltip:!0},wg=(0,_c.forwardRef)((function(e,t){const{children:n,className:r,delay:o=vg,hideOnClick:i=!0,placement:s,position:a,shortcut:c,text:u,...l}=e,{isNestedInTooltip:d}=(0,_c.useContext)(yg),f=(0,Sd.useInstanceId)(wg,"tooltip"),p=u||c?f:void 0,h=1===_c.Children.count(n);let m;void 0!==s?m=s:void 0!==a&&(m=gg(a),id()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),m=m||"bottom";const g=function(e={}){const[t,n]=Vf(Qf,e);return function(e,t,n){return qf(e,n,"type"),qf(e,n,"skipTimeout"),Jf(e,t,n)}(t,n,e)}({placement:m,showTimeout:o}),y=Wf(g,"mounted");return d?h?(0,hl.jsx)(rp,{...l,render:n}):n:(0,hl.jsxs)(yg.Provider,{value:bg,children:[(0,hl.jsx)(Qp,{onClick:i?g.hide:void 0,store:g,render:h?(v=n,p&&y&&void 0===v.props["aria-describedby"]&&v.props["aria-label"]!==u?(0,_c.cloneElement)(v,{"aria-describedby":p}):v):void 0,ref:t,children:h?void 0:n}),h&&(u||c)&&(0,hl.jsxs)(pg,{...l,className:Ed("components-tooltip",r),unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:g,children:[u,c&&(0,hl.jsx)(hg,{className:u?"components-tooltip__shortcut":"",shortcut:c})]})]});var v})),Sg=wg,_g=window.wp.primitives,xg=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,hl.jsx)("span",{className:i,style:s,...o})},kg=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,hl.jsx)(xg,{icon:e,size:t,...n});if((0,_c.isValidElement)(e)&&xg===e.type)return(0,_c.cloneElement)(e,{...n});if("function"==typeof e)return(0,_c.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===_g.SVG)){const r={...e.props,width:t,height:t,...n};return(0,hl.jsx)(_g.SVG,{...r})}return(0,_c.isValidElement)(e)?(0,_c.cloneElement)(e,{size:t,...n}):e},Eg={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"},Cg=Nc((function(e,t){const{style:n,...r}=Al(e,"VisuallyHidden");return(0,hl.jsx)(gl,{ref:t,...r,style:{...Eg,...n||{}}})}),"VisuallyHidden"),Tg=["onMouseDown","onClick"],Ig=(0,_c.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:r,isBusy:o,isDestructive:i,className:s,disabled:a,icon:c,iconPosition:u="left",iconSize:l,showTooltip:d,tooltipPosition:f,shortcut:p,label:h,children:m,size:g="default",text:y,variant:v,description:b,...w}=function({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,isPressed:s,isSmall:a,size:c,variant:u,describedBy:l,...d}){let f=c,p=u;const h={accessibleWhenDisabled:e,"aria-pressed":s,description:l};var m,g,y,v,b,w;return a&&(null!==(m=f)&&void 0!==m||(f="small")),n&&(null!==(g=p)&&void 0!==g||(p="primary")),o&&(null!==(y=p)&&void 0!==y||(p="tertiary")),r&&(null!==(v=p)&&void 0!==v||(p="secondary")),t&&(id()("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(b=p)&&void 0!==b||(p="secondary")),i&&(null!==(w=p)&&void 0!==w||(p="link")),{...h,...d,size:f,variant:p}}(e),{href:S,target:_,"aria-checked":x,"aria-pressed":k,"aria-selected":E,...C}="href"in w?w:{href:void 0,target:void 0,...w},T=(0,Sd.useInstanceId)(Ig,"components-button__description"),I="string"==typeof m&&!!m||Array.isArray(m)&&m?.[0]&&null!==m[0]&&"components-tooltip"!==m?.[0]?.props?.className,O=Ed("components-button",s,{"is-next-40px-default-size":n,"is-secondary":"secondary"===v,"is-primary":"primary"===v,"is-small":"small"===g,"is-compact":"compact"===g,"is-tertiary":"tertiary"===v,"is-pressed":[!0,"true","mixed"].includes(k),"is-pressed-mixed":"mixed"===k,"is-busy":o,"is-link":"link"===v,"is-destructive":i,"has-text":!!c&&(I||y),"has-icon":!!c}),M=a&&!r,R=void 0===S||a?"button":"a",A="button"===R?{type:"button",disabled:M,"aria-checked":x,"aria-pressed":k,"aria-selected":E}:{},N="a"===R?{href:S,target:_}:{},D={};if(a&&r){A["aria-disabled"]=!0,N["aria-disabled"]=!0;for(const e of Tg)D[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const P=!M&&(d&&!!h||!!p||!!h&&!m?.length&&!1!==d),L=b?T:void 0,j=C["aria-describedby"]||L,$={className:O,"aria-label":C["aria-label"]||h,"aria-describedby":j,ref:t},F=(0,hl.jsxs)(hl.Fragment,{children:[c&&"left"===u&&(0,hl.jsx)(kg,{icon:c,size:l}),y&&(0,hl.jsx)(hl.Fragment,{children:y}),m,c&&"right"===u&&(0,hl.jsx)(kg,{icon:c,size:l})]}),B="a"===R?(0,hl.jsx)("a",{...N,...C,...D,...$,children:F}):(0,hl.jsx)("button",{...A,...C,...D,...$,children:F}),z=P?{text:m?.length&&b?b:h,shortcut:p,placement:f&&gg(f)}:{};return(0,hl.jsxs)(hl.Fragment,{children:[(0,hl.jsx)(Sg,{...z,children:B}),b&&(0,hl.jsx)(Cg,{children:(0,hl.jsx)("span",{id:L,children:b})})]})})),Og=Ig,Mg=window.wp.a11y,Rg=(0,hl.jsx)(_g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,hl.jsx)(_g.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),Ag=()=>{};function Ng(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function Dg(e){switch(e){case"warning":return(0,d.__)("Warning notice");case"info":return(0,d.__)("Information notice");case"error":return(0,d.__)("Error notice");default:return(0,d.__)("Notice")}}const Pg=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=Ag,isDismissible:i=!0,actions:s=[],politeness:a=Ng(t),__unstableHTML:c,onDismiss:u=Ag}){!function(e,t){const n="string"==typeof e?e:(0,_c.renderToString)(e);(0,_c.useEffect)((()=>{n&&(0,Mg.speak)(n,t)}),[n,t])}(r,a);const l=Ed(e,"components-notice","is-"+t,{"is-dismissible":i});return c&&"string"==typeof n&&(n=(0,hl.jsx)(_c.RawHTML,{children:n})),(0,hl.jsxs)("div",{className:l,children:[(0,hl.jsx)(Cg,{children:Dg(t)}),(0,hl.jsxs)("div",{className:"components-notice__content",children:[n,(0,hl.jsx)("div",{className:"components-notice__actions",children:s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},a)=>{let c=r;return"primary"===r||o||(c=s?"link":"secondary"),void 0===c&&n&&(c="primary"),(0,hl.jsx)(Og,{__next40pxDefaultSize:!0,href:s,variant:c,onClick:s?void 0:i,className:Ed("components-notice__action",e),children:t},a)}))})]}),i&&(0,hl.jsx)(Og,{size:"small",className:"components-notice__dismiss",icon:Rg,label:(0,d.__)("Close"),onClick:()=>{u(),o()}})]})},Lg={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},jg="…",$g={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Fg={ellipsis:jg,ellipsizeMode:$g.auto,limit:0,numberOfLines:0};var Bg={grad:.9,turn:360,rad:360/(2*Math.PI)},zg=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Ug=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Hg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Wg=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},qg=function(e){return{r:Hg(e.r,0,255),g:Hg(e.g,0,255),b:Hg(e.b,0,255),a:Hg(e.a)}},Vg=function(e){return{r:Ug(e.r),g:Ug(e.g),b:Ug(e.b),a:Ug(e.a,3)}},Yg=/^#([0-9a-f]{3,8})$/i,Gg=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Kg=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Xg=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,a,s,s,c,r][u],g:255*[c,r,r,a,s,s][u],b:255*[s,s,c,r,r,a][u],a:o}},Jg=function(e){return{h:Wg(e.h),s:Hg(e.s,0,100),l:Hg(e.l,0,100),a:Hg(e.a)}},Qg=function(e){return{h:Ug(e.h),s:Ug(e.s),l:Ug(e.l),a:Ug(e.a,3)}},Zg=function(e){return Xg((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},ey=function(e){return{h:(t=Kg(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},ty=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ny=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ry=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,oy=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,iy={string:[[function(e){var t=Yg.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Ug(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Ug(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ry.exec(e)||oy.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:qg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ty.exec(e)||ny.exec(e);if(!t)return null;var n,r,o=Jg({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Bg[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Zg(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return zg(t)&&zg(n)&&zg(r)?qg({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!zg(t)||!zg(n)||!zg(r))return null;var s=Jg({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Zg(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!zg(t)||!zg(n)||!zg(r))return null;var s=function(e){return{h:Wg(e.h),s:Hg(e.s,0,100),v:Hg(e.v,0,100),a:Hg(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Xg(s)},"hsv"]]},sy=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},ay=function(e,t){var n=ey(e);return{h:n.h,s:Hg(n.s+100*t,0,100),l:n.l,a:n.a}},cy=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},uy=function(e,t){var n=ey(e);return{h:n.h,s:n.s,l:Hg(n.l+100*t,0,100),a:n.a}},ly=function(){function e(e){this.parsed=function(e){return"string"==typeof e?sy(e.trim(),iy.string):"object"==typeof e&&null!==e?sy(e,iy.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Ug(cy(this.rgba),2)},e.prototype.isDark=function(){return cy(this.rgba)<.5},e.prototype.isLight=function(){return cy(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Vg(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Gg(Ug(255*o)):"","#"+Gg(t)+Gg(n)+Gg(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Vg(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Vg(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Qg(ey(this.rgba))},e.prototype.toHslString=function(){return t=(e=Qg(ey(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Kg(this.rgba),{h:Ug(e.h),s:Ug(e.s),v:Ug(e.v),a:Ug(e.a,3)};var e},e.prototype.invert=function(){return dy({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),dy(ay(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),dy(ay(this.rgba,-e))},e.prototype.grayscale=function(){return dy(ay(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),dy(uy(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),dy(uy(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?dy({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ug(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ey(this.rgba);return"number"==typeof e?dy({h:e,s:t.s,l:t.l,a:t.a}):Ug(t.h)},e.prototype.isEqual=function(e){return this.toHex()===dy(e).toHex()},e}(),dy=function(e){return e instanceof ly?e:new ly(e)},fy=[];let py;var hy;hy=[function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,s,a=r[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var c=this.toRgb(),u=1/0,l="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=c,s=i[f],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));p<u&&(u=p,l=f)}return l}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}],hy.forEach((function(e){fy.indexOf(e)<0&&(e(ly,iy),fy.push(e))}));const my=Rc((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&dy(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!py){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),py=e}return py}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));const gy=Ll("color:",Ul.theme.foreground,";line-height:",ql.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),yy={name:"4zleql",styles:"display:block"},vy=Ll("color:",Ul.alert.green,";",""),by=Ll("color:",Ul.alert.red,";",""),wy=Ll("color:",Ul.gray[700],";",""),Sy=Ll("mark{background:",Ul.alert.yellow,";border-radius:",ql.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),_y={name:"50zrmy",styles:"text-transform:uppercase"};var xy=n(4406);const ky=Rc((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t})),Ey={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Cy=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Ty(e=13){if(e in Ey)return Ty(Ey[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / 13) * ${ql.fontSize})`}function Iy(e=3){return Cy.includes(e)?ql[`fontSizeH${e}`]:Ty(e)}var Oy={name:"50zrmy",styles:"text-transform:uppercase"};function My(e){const{adjustLineHeightForInnerControls:t,align:n,children:r,className:o,color:s,ellipsizeMode:a,isDestructive:c=!1,display:u,highlightEscape:l=!1,highlightCaseSensitive:d=!1,highlightWords:f,highlightSanitize:p,isBlock:h=!1,letterSpacing:m,lineHeight:g,optimizeReadabilityFor:y,size:v,truncate:b=!1,upperCase:w=!1,variant:S,weight:_=ql.fontWeight,...x}=Al(e,"Text");let k=r;const E=Array.isArray(f),C="caption"===v;if(E){if("string"!=typeof r)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:a="",highlightStyle:c={},highlightTag:u="mark",sanitize:l,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:p}){if(!i)return null;if("string"!=typeof i)return i;const h=i,m=(0,xy.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:l,searchWords:d,textToHighlight:h}),g=u;let y,v=-1,b="";return m.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;v++,r="object"==typeof a?o?a[s]:(a=ky(a))[s.toLowerCase()]:a;const u=v===+t;b=`${r} ${u?e:""}`,y=!0===u&&null!==n?Object.assign({},c,n):c;const l={children:s,className:b,key:i,style:y};return"string"!=typeof g&&(l.highlightIndex=v),(0,_c.createElement)(g,l)}return(0,_c.createElement)("span",{children:s,className:f,key:i,style:p})}))}({autoEscape:l,children:r,caseSensitive:d,searchWords:f,sanitize:p})}const T=Rl();let I;!0===b&&(I="auto"),!1===b&&(I="none");const O=function(e){const{className:t,children:n,ellipsis:r=jg,ellipsizeMode:o=$g.auto,limit:i=0,numberOfLines:s=0,...a}=Al(e,"Truncate"),c=Rl();let u;"string"==typeof n?u=n:"number"==typeof n&&(u=n.toString());const l=u?function(e="",t){const n={...Fg,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===$g.none)return e;let s,a;switch(o){case $g.head:s=0,a=i;break;case $g.middle:s=Math.floor(i/2),a=Math.floor(i/2);break;default:s=i,a=0}const c=o!==$g.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,s=~~n,a=yd(r)?r:jg;return 0===i&&0===s||i>=o||s>=o||i+s>=o?e:0===s?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(o-s)}(e,s,a,r):e;return c}(u,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}):n,d=!!u&&o===$g.auto;return{...a,className:(0,_c.useMemo)((()=>c(d&&!s&&Lg,d&&!!s&&Ll(1===s?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:l}}({...x,className:(0,_c.useMemo)((()=>{const e={},r=function(e,t){if(t)return t;if(!e)return;let n=`calc(${ql.controlHeight} + ${jl(2)})`;switch(e){case"large":n=`calc(${ql.controlHeightLarge} + ${jl(2)})`;break;case"small":n=`calc(${ql.controlHeightSmall} + ${jl(2)})`;break;case"xSmall":n=`calc(${ql.controlHeightXSmall} + ${jl(2)})`}return n}(t,g);if(e.Base=Ll({color:s,display:u,fontSize:Ty(v),fontWeight:_,lineHeight:r,letterSpacing:m,textAlign:n},"",""),e.upperCase=Oy,e.optimalTextColor=null,y){const t="dark"==("#000000"===function(e){const t=my(e);return dy(t).isLight()?"#000000":"#ffffff"}(y)?"dark":"light");e.optimalTextColor=Ll(t?{color:Ul.gray[900]}:{color:Ul.white},"","")}return T(gy,e.Base,e.optimalTextColor,c&&by,!!E&&Sy,h&&yy,C&&wy,S&&i[S],w&&e.upperCase,o)}),[t,n,o,s,T,u,h,C,c,E,m,g,y,v,w,S,_]),children:r,ellipsizeMode:a||I});return!b&&Array.isArray(r)&&(k=_c.Children.map(r,(e=>{return"object"==typeof e&&null!==e&&"props"in e?(n=["Link"],(t=e)&&("string"==typeof n?Dc(t).includes(n):Array.isArray(n)&&n.some((e=>Dc(t).includes(e))))?(0,_c.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,n}))),{...O,children:b?O.children:k}}const Ry=Nc((function(e,t){const n=My(e);return(0,hl.jsx)(gl,{as:"span",...n,ref:t})}),"Text"),Ay=(0,_c.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...s}=e,a=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),c=Ed("components-external-link",o),u=!!n?.startsWith("#");return(0,hl.jsxs)("a",{...s,className:c,href:n,onClick:t=>{u&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:a,ref:t,children:[(0,hl.jsx)("span",{className:"components-external-link__contents",children:r}),(0,hl.jsx)("span",{className:"components-external-link__icon","aria-label":/* translators: accessibility text */ /* translators: accessibility text */
(0,d.__)("(opens in a new tab)"),children:"↗"})]})})),Ny=Nc((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=Ul.theme.foreground,isBlock:o=!0,weight:i=ql.fontWeightHeading,...s}=Al(e,"Heading"),a=t||`h${n}`,c={};return"string"==typeof a&&"h"!==a[0]&&(c.role="heading",c["aria-level"]="string"==typeof n?parseInt(n):n),{...My({color:r,isBlock:o,weight:i,size:Iy(n),...s}),...c,as:a}}(e);return(0,hl.jsx)(gl,{...n,ref:t})}),"Heading"),Dy=({countryName:e,currency:t,isCountrySupported:n,isCurrencySupported:r})=>(0,hl.jsxs)(Pg,{status:"warning",isDismissible:!1,className:"wcshipping-onboarding-requirements",children:[(0,hl.jsx)(Ny,{level:5,children:(0,d.__)("The site is unable to use WooCommerce Shipping for the following reason(s):","woocommerce-shipping")}),(0,hl.jsxs)("ul",{className:"wcshipping-onboarding-requirements__list",children:[!n&&(0,hl.jsx)("li",{children:(0,_c.createInterpolateElement)((0,d.sprintf)(
// translators: %s The full country name of the store's address.
// translators: %s The full country name of the store's address.
(0,d.__)("Your country, <strong>%s</strong>, is not supported yet.","woocommerce-shipping"),e),{strong:(0,hl.jsx)("strong",{})})}),!r&&(0,hl.jsx)("li",{children:(0,_c.createInterpolateElement)((0,d.sprintf)(
// translators: %s The store's selected currency in short-form (e.g. USD).
// translators: %s The store's selected currency in short-form (e.g. USD).
(0,d.__)("Your currency, <strong>%s</strong>, is not supported yet.","woocommerce-shipping"),t),{strong:(0,hl.jsx)("strong",{})})})]}),(0,hl.jsx)(Ry,{size:"footnote",className:"wcshipping-onboarding-requirements__footnote",children:(0,d.__)("We are actively expanding our international support and will notify you as soon as your store is fully supported..","woocommerce-shipping")})]}),Py=({authReturnUrl:e,countryName:t,currency:n,isCountrySupported:r,isCurrencySupported:o})=>{const[i,s]=(0,_c.useState)(!1),c=!(r&&o),{redirectUrl:u,error:l}=(0,a.select)(Sc).getState();(0,_c.useEffect)((()=>{u&&(window.location.href=u)}),[u]),(0,_c.useEffect)((()=>{mc("onboarding_connect_component_viewed",{can_connect:c,is_country_supported:r,is_currency_supported:o})}),[c,r,o]),(0,_c.useEffect)((()=>{l&&mc("onboarding_connect_component_connect_error_viewed",{error:l})}),[l]);const f=(0,_c.useCallback)((async()=>{s(!0),mc("onboarding_connect_component_connect_button_clicked"),await(0,a.dispatch)(Sc).createConnection({payload:{returnUrl:e,source:"onboarding-connect-button"}}),s(!1)}),[e]);return(0,hl.jsxs)("div",{className:"wcshipping-onboarding-connect",children:[(!r||!o)&&(0,hl.jsx)(Dy,{isCountrySupported:r,isCurrencySupported:o,countryName:t,currency:n}),(0,hl.jsxs)(Og,{className:"wcshipping-onboarding-connect__button",variant:"primary",disabled:c||i,onClick:f,isBusy:i||!!u,children:[(0,d.__)("Connect your store","woocommerce-shipping"),(0,hl.jsx)(kg,{icon:"external"})]}),l&&(0,hl.jsx)(Pg,{status:"error",isDismissible:!1,className:"wcshipping-onboarding-connect__error",children:l}),(0,hl.jsx)(Ry,{className:"wcshipping-onboarding-connect__footnote",size:"footnote",children:(0,_c.createInterpolateElement)((0,d.__)("By clicking Connect your store, you agree to the <tos>Terms of Service<icon /></tos> and have read our <privacy_policy>Privacy Policy<icon /></privacy_policy>.","woocommerce-shipping"),{tos:(0,hl.jsx)(Ay,{href:"https://wordpress.com/tos/",children:" "}),privacy_policy:(0,hl.jsx)(Ay,{href:"https://automattic.com/privacy/",children:" "}),icon:(0,hl.jsx)(kg,{icon:"external"})})})]})},Ly=`calc(${ql.radiusLarge} - 1px)`,jy=Ll("box-shadow:0 0 0 1px ",ql.surfaceBorderColor,";outline:none;",""),$y={name:"13udsys",styles:"height:100%"},Fy={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},By={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},zy=Ll("&:first-of-type{border-top-left-radius:",Ly,";border-top-right-radius:",Ly,";}&:last-of-type{border-bottom-left-radius:",Ly,";border-bottom-right-radius:",Ly,";}",""),Uy=Ll("border-color:",ql.colorDivider,";",""),Hy={name:"1t90u8d",styles:"box-shadow:none"},Wy=Ll("border-radius:",Ly,";",""),qy=Ll("padding:",ql.cardPaddingXSmall,";",""),Vy={large:Ll("padding:",ql.cardPaddingLarge,";",""),medium:Ll("padding:",ql.cardPaddingMedium,";",""),small:Ll("padding:",ql.cardPaddingSmall,";",""),xSmall:qy,extraSmall:qy},Yy=Ll("background-color:",Ul.ui.backgroundDisabled,";","");const Gy=Nc((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...a}=function(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Al(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(id()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),a=Rl();return{...nd({...s,className:(0,_c.useMemo)((()=>a(jy,r&&Hy,o&&Wy,t)),[t,a,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}(e),c=i?ql.radiusLarge:0,u=Rl(),l=(0,_c.useMemo)((()=>u(Ll({borderRadius:c},"",""))),[u,c]),d=(0,_c.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,hl.jsx)(El,{value:d,children:(0,hl.jsxs)(gl,{...a,ref:t,children:[(0,hl.jsx)(gl,{className:u($y),children:n}),(0,hl.jsx)(wd,{className:l,isInteractive:!1,value:r?1:0}),(0,hl.jsx)(wd,{className:l,isInteractive:!1,value:r})]})})}),"Card"),Ky=Ll("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",ql.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",ql.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",ql.colorScrollbarThumbHover,";}}",""),Xy={name:"13udsys",styles:"height:100%"},Jy={name:"7zq9w",styles:"scroll-behavior:smooth"},Qy={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},Zy={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},ev={name:"umwchj",styles:"overflow-y:auto"},tv=Nc((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Al(e,"Scrollable"),i=Rl();return{...o,className:(0,_c.useMemo)((()=>i(Xy,Ky,r&&Jy,"x"===n&&Qy,"y"===n&&Zy,"auto"===n&&ev,t)),[t,i,n,r])}}(e);return(0,hl.jsx)(gl,{...n,ref:t})}),"Scrollable"),nv=Nc((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Al(e,"CardBody"),s=Rl();return{...i,className:(0,_c.useMemo)((()=>s(Fy,zy,Vy[o],r&&Yy,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,hl.jsx)(tv,{...r,ref:t}):(0,hl.jsx)(gl,{...r,ref:t})}),"CardBody");var rv=tp((function(e){var t=e,{orientation:n="horizontal"}=t,r=Pd(t,["orientation"]);return Nd({role:"separator","aria-orientation":n},r)})),ov=Zf((function(e){return ep("hr",rv(e))}));const iv=new RegExp(/-left/g),sv=new RegExp(/-right/g),av=new RegExp(/Left/g),cv=new RegExp(/Right/g);function uv(e){return"left"===e?"right":"right"===e?"left":iv.test(e)?e.replace(iv,"-right"):sv.test(e)?e.replace(sv,"-left"):av.test(e)?e.replace(av,"Right"):cv.test(e)?e.replace(cv,"Left"):e}function lv(e={},t){return()=>t?(0,d.isRTL)()?Ll(t,"",""):Ll(e,"",""):(0,d.isRTL)()?Ll(((e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[uv(e),t]))))(e),"",""):Ll(e,"","")}lv.watch=()=>(0,d.isRTL)();const dv={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}},fv=({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Ll(lv({[dv[e].start]:jl(null!=n?n:t),[dv[e].end]:jl(null!=r?r:t)})(),"","");var pv={name:"1u4hpl4",styles:"display:inline"};const hv=({"aria-orientation":e="horizontal"})=>"vertical"===e?pv:void 0,mv=({"aria-orientation":e="horizontal"})=>Ll({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""),gv=({"aria-orientation":e="horizontal"})=>Ll({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""),yv=pl("hr",{target:"e19on6iw0"})("border:0;margin:0;",hv," ",mv," ",gv," ",fv,";"),vv=Nc((function(e,t){const n=Al(e,"Divider");return(0,hl.jsx)(ov,{render:(0,hl.jsx)(yv,{}),...n,ref:t})}),"Divider"),bv=Nc((function(e,t){const n=function(e){const{className:t,...n}=Al(e,"CardDivider"),r=Rl();return{...n,className:(0,_c.useMemo)((()=>r(By,Uy,"components-card__divider",t)),[t,r])}}(e);return(0,hl.jsx)(vv,{...n,ref:t})}),"CardDivider"),wv=({authReturnUrl:e,isCountrySupported:t,isCurrencySupported:n,storeCountryName:r,storeCurrency:o})=>(0,hl.jsx)(xd,{children:(0,hl.jsx)(Gy,{className:"wcshipping-onboarding",isBorderless:!0,size:"large",children:(0,hl.jsxs)(nv,{className:"wcshipping-onboarding__content",children:[(0,hl.jsx)(Ny,{className:"wcshipping-onboarding__title",level:2,children:(0,d.__)("Connect your store to WordPress.com","woocommerce-shipping")}),(0,hl.jsx)(bv,{}),(0,hl.jsx)("p",{children:(0,d.__)("Save time and money with WooCommerce Shipping by printing discounted shipping labels with just a few clicks from your WooCommerce dashboard.","woocommerce-shipping")}),(0,hl.jsx)("p",{children:(0,d.__)("With WooCommerce Shipping, critical services are hosted on Automattic’s best-in-class infrastructure, rather than relying on your store’s hosting. That means your store will be more stable and faster.","woocommerce-shipping")}),(0,hl.jsx)(Py,{authReturnUrl:e,isCountrySupported:t,isCurrencySupported:n,countryName:r,currency:o})]})})}),Sv=document.getElementById("woocommerce-shipping-onboarding"),_v=(0,s.H)(Sv),{authReturnUrl:xv,isCurrencySupported:kv,isCountrySupported:Ev,storeCountryName:Cv,storeCurrency:Tv}=window.WCShipping_Config||{};var Iv,Ov;Sc=Sc||(0,a.createReduxStore)("wcshipping/wpcom-connection",{reducer:vc,actions:o,selectors:r,controls:c.controls,resolvers:{}}),(0,a.register)(Sc),function(e){const t={...e};on(t,"react"),mt("react",{version:Pr.version}),Dr(t)}({dsn:"https://971a8d22e72fade3cc3bc7ee7c0c2093@o248881.ingest.us.sentry.io/4506903329046528",integrations:[new class{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:S=["title","placeholder"],unmask:_=[],block:x=[],unblock:k=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:O}={}){this.name="Replay";const M=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:cc(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:cc(t,[]),blockSelector:cc(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:cc(r,[]),ignoreSelector:cc(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:_,block:x,unblock:k,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:c,privacyOptions:M,key:e,value:t,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:fc(v),networkResponseHeaders:fc(b),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${uc}`:uc),this._isInitialized&&$r())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return dc}set _isInitialized(e){dc=e}afterAllSetup(e){$r()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...X(e)},o=Qt(n.replaysSessionSampleRate),i=Qt(n.replaysOnErrorSampleRate);return null==o&&null==i&&$((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=i&&(r.errorSampleRate=i),r}(this._initialOptions,e);this._replay=new ac({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}(undefined)],environment:window.wcShippingSettings?.environment,release:"wcshipping@"+window.wcShippingSettings?.version,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.3,allowUrls:[/woocommerce\/assets\//,..."local"===window.wcShippingSettings?.environment?[/\/woocommerce-shipping-/]:[],/woocommerce-shipping\/assets/,/woocommerce-shipping\/dist/,/wp-json\/wcshipping\//]}),Ov=null!==(Iv=window.wc?.wcSettings.WC_VERSION)&&void 0!==Iv?Iv:"unknown version",_e().setTag("wc_version",Ov),_v.render((0,hl.jsx)(wv,{authReturnUrl:xv,isCountrySupported:Ev,isCurrencySupported:kv,storeCountryName:Cv,storeCurrency:Tv}))},5795(e){"use strict";e.exports=window.ReactDOM},5843(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function _(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||S(e)===l},t.isConcurrentMode=_,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},5959(e,t,n){"use strict";e.exports=n(5843)},6489(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},7314(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?c.arrayMerge(e,n,c):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,c):r(n,c)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var c=a;e.exports=c},8880(e,t,n){"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return a((function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})}),[e,n,t]),s((function(){return u(o)&&l({inst:o}),e((function(){u(o)&&l({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},9576(e,t,n){"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},9835(e,t,n){"use strict";e.exports=n(8880)}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,i),n.exports}i.m=r,e=[],i.O=(t,n,r,o)=>{if(!n){var s=1/0;for(l=0;l<e.length;l++){for(var[n,r,o]=e[l],a=!0,c=0;c<n.length;c++)(!1&o||s>=o)&&Object.keys(i.O).every((e=>i.O[e](n[c])))?n.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(l--,1);var u=r();void 0!==u&&(t=u)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[n,r,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var s={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>s[t]=()=>e[t]));return s.default=()=>e,i.d(o,s),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={534:0,569:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[s,a,c]=n,u=0;if(s.some((t=>0!==e[t]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(c)var l=c(i)}for(t&&t(n);u<s.length;u++)o=s[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(l)},n=globalThis.webpackChunkwoocommerce_shipping=globalThis.webpackChunkwoocommerce_shipping||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s=i.O(void 0,[569],(()=>i(4463)));s=i.O(s)})();
//# sourceMappingURL=woocommerce-shipping-onboarding.js.map
//# debugId=35eb012c-ca30-5ac1-88f4-4f607742b147