!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]="c8a552df-a1c9-5d89-a5e9-27e493386ede")}catch(e){}}();
(()=>{"use strict";var t,e,n,r={1609(t){t.exports=window.React},5795(t){t.exports=window.ReactDOM},8880(t,e,n){var r=n(1609),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=r.useState,i=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=s({inst:{value:n,getSnapshot:e}}),o=r[0].inst,l=r[1];return a((function(){o.value=n,o.getSnapshot=e,u(o)&&l({inst:o})}),[t,n,e]),i((function(){return u(o)&&l({inst:o}),t((function(){u(o)&&l({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},9576(t,e,n){var r=n(5795);e.H=r.createRoot,r.hydrateRoot},9801(t,e,n){var r=n(9576),o=n(1609),s=n.t(o,2);const i=window.lodash,a=window.wp.date,c=window.wp.i18n;var u=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(t,e,n)=>e in t?u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,g=(t,e)=>{for(var n in e||(e={}))p.call(e,n)&&m(t,n,e[n]);if(f)for(var n of f(e))h.call(e,n)&&m(t,n,e[n]);return t},y=(t,e)=>l(t,d(e)),v=(t,e)=>{var n={};for(var r in t)p.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&f)for(var r of f(t))e.indexOf(r)<0&&h.call(t,r)&&(n[r]=t[r]);return n},b=Object.defineProperty,_=Object.defineProperties,S=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,k=(t,e,n)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e)=>{for(var n in e||(e={}))E.call(e,n)&&k(t,n,e[n]);if(w)for(var n of w(e))x.call(e,n)&&k(t,n,e[n]);return t},T=(t,e)=>_(t,S(e));function I(...t){}function O(t,e){return"function"==typeof Object.hasOwn?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e)}function M(...t){return(...e)=>{for(const n of t)"function"==typeof n&&n(...e)}}function R(t){return t}function A(t,e){if(!t){if("string"!=typeof e)throw new Error("Invariant failed");throw new Error(e)}}function D(t,...e){const n="function"==typeof t?t(...e):t;return null!=n&&!n}function N(t){return t.disabled||!0===t["aria-disabled"]||"true"===t["aria-disabled"]}function P(t){const e={};for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}function L(...t){for(const e of t)if(void 0!==e)return e}function F(t,e){"function"==typeof t?t(e):t&&(t.current=e)}var j,$="undefined"!=typeof window&&!!(null==(j=window.document)?void 0:j.createElement);function B(t){return t?"self"in t?t.document:t.ownerDocument||document:document}function U(t){return t?"self"in t?t.self:B(t).defaultView||window:self}function z(t,e=!1){const{activeElement:n}=B(t);if(!(null==n?void 0:n.nodeName))return null;if(W(n)&&n.contentDocument)return z(n.contentDocument.body,e);if(e){const t=n.getAttribute("aria-activedescendant");if(t){const e=B(n).getElementById(t);if(e)return e}}return n}function H(t,e){return t===e||t.contains(e)}function W(t){return"IFRAME"===t.tagName}function q(t){const e=t.tagName.toLowerCase();return"button"===e||!("input"!==e||!t.type)&&-1!==V.indexOf(t.type)}var V=["button","color","file","image","reset","submit"];function Y(t){if("function"==typeof t.checkVisibility)return t.checkVisibility();const e=t;return e.offsetWidth>0||e.offsetHeight>0||t.getClientRects().length>0}function K(t){return t.target===t.currentTarget}function G(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!H(n,r)}function J(t,e,n,r){const o=(t=>{if(r){const e=setTimeout(t,r);return()=>clearTimeout(e)}const e=requestAnimationFrame(t);return()=>cancelAnimationFrame(e)})((()=>{t.removeEventListener(e,s,!0),n()})),s=()=>{o(),n()};return t.addEventListener(e,s,{once:!0,capture:!0}),o}function X(t,e,n,r=window){const o=[];try{r.document.addEventListener(t,e,n);for(const s of Array.from(r.frames))o.push(X(t,e,n,s))}catch(t){}return()=>{try{r.document.removeEventListener(t,e,n)}catch(t){}for(const t of o)t()}}var Q=g({},s),Z=Q.useId,tt=(Q.useDeferredValue,Q.useInsertionEffect),et=$?o.useLayoutEffect:o.useEffect;function nt(t){const e=(0,o.useRef)(t);return et((()=>{e.current=t})),e}function rt(t){const e=(0,o.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return tt?tt((()=>{e.current=t})):e.current=t,(0,o.useCallback)(((...t)=>{var n;return null==(n=e.current)?void 0:n.call(e,...t)}),[])}function ot(...t){return(0,o.useMemo)((()=>{if(t.some(Boolean))return e=>{for(const n of t)F(n,e)}}),t)}function st(t){if(Z){const e=Z();return t||e}const[e,n]=(0,o.useState)(t);return et((()=>{if(t||e)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)}),[t,e]),t||e}function it(t,e){const n=(0,o.useRef)(!1);(0,o.useEffect)((()=>{if(n.current)return t();n.current=!0}),e),(0,o.useEffect)((()=>()=>{n.current=!1}),[])}function at(t){return rt("function"==typeof t?t:()=>t)}function ct(t,e,n=[]){const r=(0,o.useCallback)((n=>(t.wrapElement&&(n=t.wrapElement(n)),e(n))),[...n,t.wrapElement]);return y(g({},t),{wrapElement:r})}function ut(t=!1,e){const[n,r]=(0,o.useState)(null);return{portalRef:ot(r,e),portalNode:n,domReady:!t||n}}function lt(){return(0,o.useEffect)((()=>{X("mousemove",ht,!0),X("mousedown",mt,!0),X("mouseup",mt,!0),X("keydown",mt,!0),X("scroll",mt,!0)}),[]),rt((()=>dt))}var dt=!1,ft=0,pt=0;function ht(t){(function(t){const e=t.movementX||t.screenX-ft,n=t.movementY||t.screenY-pt;return ft=t.screenX,pt=t.screenY,e||n||!1})(t)&&(dt=!0)}function mt(){dt=!1}function gt(t,e){const n=t.__unstableInternals;return A(n,"Invalid store"),n[e]}function yt(t,...e){let n=t,r=n,o=Symbol(),s=I;const i=new Set,a=new Set,c=new Set,u=new Set,l=new Set,d=new WeakMap,f=new WeakMap,p=(t,e,n=u)=>(n.add(e),f.set(e,t),()=>{var t;null==(t=d.get(e))||t(),d.delete(e),f.delete(e),n.delete(e)}),h=(t,s,i=!1)=>{var c;if(!O(n,t))return;const p=(h=s,m=n[t],function(t){return"function"==typeof t}(h)?h(function(t){return"function"==typeof t}(m)?m():m):h);var h,m;if(p===n[t])return;if(!i)for(const n of e)null==(c=null==n?void 0:n.setState)||c.call(n,t,p);const g=n;n=T(C({},n),{[t]:p});const y=Symbol();o=y,a.add(t);const v=(e,r,o)=>{var s;const i=f.get(e);i&&!i.some((e=>o?o.has(e):e===t))||(null==(s=d.get(e))||s(),d.set(e,e(n,r)))};for(const t of u)v(t,g);queueMicrotask((()=>{if(o!==y)return;const t=n;for(const t of l)v(t,r,a);r=t,a.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:t=>(c.add(t),()=>c.delete(t)),init:()=>{const t=i.size,r=Symbol();i.add(r);const o=()=>{i.delete(r),i.size||s()};if(t)return o;const a=(u=n,Object.keys(u)).map((t=>M(...e.map((e=>{var n;const r=null==(n=null==e?void 0:e.getState)?void 0:n.call(e);if(r&&O(r,t))return St(e,[t],(e=>{h(t,e[t],!0)}))})))));var u;const l=[];for(const t of c)l.push(t());const d=e.map(bt);return s=M(...a,...l,...d),o},subscribe:(t,e)=>p(t,e),sync:(t,e)=>(d.set(e,e(n,n)),p(t,e)),batch:(t,e)=>(d.set(e,e(n,r)),p(t,e,l)),pick:t=>yt(function(t,e){const n={};for(const r of e)O(t,r)&&(n[r]=t[r]);return n}(n,t),m),omit:t=>yt(function(t,e){const n=C({},t);for(const t of e)O(n,t)&&delete n[t];return n}(n,t),m)}};return m}function vt(t,...e){if(t)return gt(t,"setup")(...e)}function bt(t,...e){if(t)return gt(t,"init")(...e)}function _t(t,...e){if(t)return gt(t,"subscribe")(...e)}function St(t,...e){if(t)return gt(t,"sync")(...e)}function wt(t,...e){if(t)return gt(t,"omit")(...e)}function Et(...t){const e=t.reduce(((t,e)=>{var n;const r=null==(n=null==e?void 0:e.getState)?void 0:n.call(e);return r?Object.assign(t,r):t}),{}),n=yt(e,...t);return Object.assign({},...t,n)}var xt=n(9835),{useSyncExternalStore:kt}=xt;function Ct(t,e=R){const n=o.useCallback((e=>t?_t(t,null,e):()=>{}),[t]),r=()=>{const n="string"==typeof e?e:null,r="function"==typeof e?e:null,o=null==t?void 0:t.getState();return r?r(o):o&&n&&O(o,n)?o[n]:void 0};return kt(n,r,r)}function Tt(t,e,n,r){const o=O(e,n)?e[n]:void 0,s=r?e[r]:void 0,i=nt({value:o,setValue:s});et((()=>St(t,[n],((t,e)=>{const{value:r,setValue:o}=i.current;o&&t[n]!==e[n]&&t[n]!==r&&o(t[n])}))),[t,n]),et((()=>{if(void 0!==o)return t.setState(n,o),function(t,...e){if(t)return gt(t,"batch")(...e)}(t,[n],(()=>{void 0!==o&&t.setState(n,o)}))}))}function It(t,e){const[n,r]=o.useState((()=>t(e)));et((()=>bt(n)),[n]);const s=o.useCallback((t=>Ct(n,t)),[n]);return[o.useMemo((()=>y(g({},n),{useState:s})),[n,s]),rt((()=>{r((n=>t(g(g({},e),n.getState()))))}))]}function Ot(t={}){const e=Et(t.store,wt(t.disclosure,["contentElement","disclosureElement"])),n=null==e?void 0:e.getState(),r=L(t.open,null==n?void 0:n.open,t.defaultOpen,!1),o=L(t.animated,null==n?void 0:n.animated,!1),s=yt({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:L(null==n?void 0:n.contentElement,null),disclosureElement:L(null==n?void 0:n.disclosureElement,null)},e);return vt(s,(()=>St(s,["animated","animating"],(t=>{t.animated||s.setState("animating",!1)})))),vt(s,(()=>_t(s,["open"],(()=>{s.getState().animated&&s.setState("animating",!0)})))),vt(s,(()=>St(s,["open","animating"],(t=>{s.setState("mounted",t.open||t.animating)})))),T(C({},s),{disclosure:t.disclosure,setOpen:t=>s.setState("open",t),show:()=>s.setState("open",!0),hide:()=>s.setState("open",!1),toggle:()=>s.setState("open",(t=>!t)),stopAnimation:()=>s.setState("animating",!1),setContentElement:t=>s.setState("contentElement",t),setDisclosureElement:t=>s.setState("disclosureElement",t)})}function Mt(t,e,n){return it(e,[n.store,n.disclosure]),Tt(t,n,"open","setOpen"),Tt(t,n,"mounted","setMounted"),Tt(t,n,"animated"),Object.assign(t,{disclosure:n.disclosure})}function Rt(t={}){return Ot(t)}function At(t,e,n){return Mt(t,e,n)}function Dt(t,e,n){return Tt(t,n,"timeout"),Tt(t,n,"showTimeout"),Tt(t,n,"hideTimeout"),function(t,e,n){return it(e,[n.popover]),Tt(t,n,"placement"),At(t,e,n)}(t,e,n)}function Nt(t={}){var e;const n=null==(e=t.store)?void 0:e.getState(),r=function(t={}){var e;const n=null==(e=t.store)?void 0:e.getState(),r=function(t={}){var e=t,{popover:n}=e,r=((t,e)=>{var n={};for(var r in t)E.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&w)for(var r of w(t))e.indexOf(r)<0&&x.call(t,r)&&(n[r]=t[r]);return n})(e,["popover"]);const o=Et(r.store,wt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=null==o?void 0:o.getState(),i=Rt(T(C({},r),{store:o})),a=L(r.placement,null==s?void 0:s.placement,"bottom"),c=yt(T(C({},i.getState()),{placement:a,currentPlacement:a,anchorElement:L(null==s?void 0:s.anchorElement,null),popoverElement:L(null==s?void 0:s.popoverElement,null),arrowElement:L(null==s?void 0:s.arrowElement,null),rendered:Symbol("rendered")}),i,o);return T(C(C({},i),c),{setAnchorElement:t=>c.setState("anchorElement",t),setPopoverElement:t=>c.setState("popoverElement",t),setArrowElement:t=>c.setState("arrowElement",t),render:()=>c.setState("rendered",Symbol("rendered"))})}(T(C({},t),{placement:L(t.placement,null==n?void 0:n.placement,"bottom")})),o=L(t.timeout,null==n?void 0:n.timeout,500),s=yt(T(C({},r.getState()),{timeout:o,showTimeout:L(t.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:L(t.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:L(null==n?void 0:n.autoFocusOnShow,!1)}),r,t.store);return T(C(C({},r),s),{setAutoFocusOnShow:t=>s.setState("autoFocusOnShow",t)})}(T(C({},t),{placement:L(t.placement,null==n?void 0:n.placement,"top"),hideTimeout:L(t.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=yt(T(C({},r.getState()),{type:L(t.type,null==n?void 0:n.type,"description"),skipTimeout:L(t.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,t.store);return C(C({},r),o)}const Pt=window.ReactJSXRuntime;function Lt(t){const e=o.forwardRef(((e,n)=>t(y(g({},e),{ref:n}))));return e.displayName=t.displayName||t.name,e}function Ft(t,e){const n=e,{wrapElement:r,render:s}=n,i=v(n,["wrapElement","render"]),a=ot(e.ref,function(t){return function(t){return!!t&&!!(0,o.isValidElement)(t)&&("ref"in t.props||"ref"in t)}(t)?g({},t.props).ref||t.ref:null}(s));let c;if(o.isValidElement(s)){const t=y(g({},s.props),{ref:a});c=o.cloneElement(s,function(t,e){const n=g({},t);for(const r in e){if(!O(e,r))continue;if("className"===r){const r="className";n[r]=t[r]?`${t[r]} ${e[r]}`:e[r];continue}if("style"===r){const r="style";n[r]=t[r]?g(g({},t[r]),e[r]):e[r];continue}const o=e[r];if("function"==typeof o&&r.startsWith("on")){const e=t[r];if("function"==typeof e){n[r]=(...t)=>{o(...t),e(...t)};continue}}n[r]=o}return n}(i,t))}else c=s?s(i):(0,Pt.jsx)(t,g({},i));return r?r(c):c}function jt(t){const e=(e={})=>t(e);return e.displayName=t.name,e}function $t(t=[],e=[]){const n=o.createContext(void 0),r=o.createContext(void 0),s=()=>o.useContext(n),i=e=>t.reduceRight(((t,n)=>(0,Pt.jsx)(n,y(g({},e),{children:t}))),(0,Pt.jsx)(n.Provider,g({},e)));return{context:n,scopedContext:r,useContext:s,useScopedContext:(t=!1)=>{const e=o.useContext(r),n=s();return t?e:e||n},useProviderContext:()=>{const t=o.useContext(r),e=s();if(!t||t!==e)return e},ContextProvider:i,ScopedContextProvider:t=>(0,Pt.jsx)(i,y(g({},t),{children:e.reduceRight(((e,n)=>(0,Pt.jsx)(n,y(g({},t),{children:e}))),(0,Pt.jsx)(r.Provider,g({},t)))}))}}jt((function(t){return t}));var Bt=Lt((function(t){return Ft("div",t)}));Object.assign(Bt,["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(((t,e)=>(t[e]=Lt((function(t){return Ft(e,t)})),t)),{}));var Ut=$t(),zt=(Ut.useContext,Ut.useScopedContext,Ut.useProviderContext),Ht=$t([Ut.ContextProvider],[Ut.ScopedContextProvider]),Wt=(Ht.useContext,Ht.useScopedContext,Ht.useProviderContext),qt=Ht.ContextProvider,Vt=Ht.ScopedContextProvider,Yt=(0,o.createContext)(void 0),Kt=(0,o.createContext)(void 0),Gt=$t([qt],[Vt]),Jt=(Gt.useContext,Gt.useScopedContext,Gt.useProviderContext),Xt=Gt.ContextProvider,Qt=Gt.ScopedContextProvider,Zt=$t([Xt],[Qt]),te=(Zt.useContext,Zt.useScopedContext,Zt.useProviderContext),ee=Zt.ContextProvider,ne=Zt.ScopedContextProvider,re=(0,o.createContext)(!0),oe="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 se(t){return!!t.matches(oe)&&!!Y(t)&&!t.closest("[inert]")}function ie(t){if(!se(t))return!1;if(function(t){return Number.parseInt(t.getAttribute("tabindex")||"0",10)<0}(t))return!1;if(!("form"in t))return!0;if(!t.form)return!0;if(t.checked)return!0;if("radio"!==t.type)return!0;const e=t.form.elements.namedItem(t.name);if(!e)return!0;if(!("length"in e))return!0;const n=z(t);return!n||n===t||!("form"in n)||n.form!==t.form||n.name!==t.name}function ae(t,e){const n=Array.from(t.querySelectorAll(oe));e&&n.unshift(t);const r=n.filter(se);return r.forEach(((t,e)=>{if(W(t)&&t.contentDocument){const n=t.contentDocument.body;r.splice(e,1,...ae(n))}})),r}function ce(t,e,n){const r=Array.from(t.querySelectorAll(oe)),o=r.filter(ie);return e&&ie(t)&&o.unshift(t),o.forEach(((t,e)=>{if(W(t)&&t.contentDocument){const r=ce(t.contentDocument.body,!1,n);o.splice(e,1,...r)}})),!o.length&&n?r:o}function ue(t,e){return function(t,e,n,r){const o=z(t),s=ae(t,!1),i=s.indexOf(o),a=s.slice(i+1);return a.find(ie)||(n?s.find(ie):null)||(r?a[0]:null)||null}(document.body,0,t,e)}function le(t,e){return function(t,e,n,r){const o=z(t),s=ae(t,!1).reverse(),i=s.indexOf(o),a=s.slice(i+1);return a.find(ie)||(n?s.find(ie):null)||(r?a[0]:null)||null}(document.body,0,t,e)}function de(t){const e=z(t);if(!e)return!1;if(e===t)return!0;const n=e.getAttribute("aria-activedescendant");return!!n&&n===t.id}function fe(t){const e=z(t);if(!e)return!1;if(H(t,e))return!0;const n=e.getAttribute("aria-activedescendant");return!!n&&"id"in t&&(n===t.id||!!t.querySelector(`#${CSS.escape(n)}`))}function pe(t){!fe(t)&&se(t)&&t.focus()}function he(t){var e;const n=null!=(e=t.getAttribute("tabindex"))?e:"";t.setAttribute("data-tabindex",n),t.setAttribute("tabindex","-1")}function me(){return!!$&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function ge(){return $&&me()&&/apple/i.test(navigator.vendor)}var ye=ge(),ve=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],be=Symbol("safariFocusAncestor");function _e(t,e){t&&(t[be]=e)}function Se(t){return!("input"!==t.tagName.toLowerCase()||!t.type||"radio"!==t.type&&"checkbox"!==t.type)}function we(t,e,n,r,o){return t?e?n&&!r?-1:void 0:n?o:o||0:o}function Ee(t,e){return rt((n=>{null==t||t(n),n.defaultPrevented||e&&(n.stopPropagation(),n.preventDefault())}))}var xe=!0;function ke(t){const e=t.target;e&&"hasAttribute"in e&&(e.hasAttribute("data-focus-visible")||(xe=!1))}function Ce(t){t.metaKey||t.ctrlKey||t.altKey||(xe=!0)}var Te=jt((function(t){var e=t,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:s,onFocusVisible:i}=e,a=v(e,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const c=(0,o.useRef)(null);(0,o.useEffect)((()=>{n&&(X("mousedown",ke,!0),X("keydown",Ce,!0))}),[n]),ye&&(0,o.useEffect)((()=>{if(!n)return;const t=c.current;if(!t)return;if(!Se(t))return;const e=function(t){return"labels"in t?t.labels:null}(t);if(!e)return;const r=()=>queueMicrotask((()=>t.focus()));for(const t of e)t.addEventListener("mouseup",r);return()=>{for(const t of e)t.removeEventListener("mouseup",r)}}),[n]);const u=n&&N(a),l=!!u&&!r,[d,f]=(0,o.useState)(!1);(0,o.useEffect)((()=>{n&&l&&d&&f(!1)}),[n,l,d]),(0,o.useEffect)((()=>{if(!n)return;if(!d)return;const t=c.current;if(!t)return;if("undefined"==typeof IntersectionObserver)return;const e=new IntersectionObserver((()=>{se(t)||f(!1)}));return e.observe(t),()=>e.disconnect()}),[n,d]);const p=Ee(a.onKeyPressCapture,u),h=Ee(a.onMouseDownCapture,u),m=Ee(a.onClickCapture,u),b=a.onMouseDown,_=rt((t=>{if(null==b||b(t),t.defaultPrevented)return;if(!n)return;const e=t.currentTarget;if(!ye)return;if(function(t){return Boolean(t.currentTarget&&!H(t.currentTarget,t.target))}(t))return;if(!q(e)&&!Se(e))return;let r=!1;const o=()=>{r=!0};e.addEventListener("focusin",o,{capture:!0,once:!0});const s=function(t){for(;t&&!se(t);)t=t.closest(oe);return t||null}(e.parentElement);_e(s,!0),J(e,"mouseup",(()=>{e.removeEventListener("focusin",o,!0),_e(s,!1),r||pe(e)}))})),S=(t,e)=>{if(e&&(t.currentTarget=e),!n)return;const r=t.currentTarget;r&&de(r)&&(null==i||i(t),t.defaultPrevented||(r.dataset.focusVisible="true",f(!0)))},w=a.onKeyDownCapture,E=rt((t=>{if(null==w||w(t),t.defaultPrevented)return;if(!n)return;if(d)return;if(t.metaKey)return;if(t.altKey)return;if(t.ctrlKey)return;if(!K(t))return;const e=t.currentTarget;J(e,"focusout",(()=>S(t,e)))})),x=a.onFocusCapture,k=rt((t=>{if(null==x||x(t),t.defaultPrevented)return;if(!n)return;if(!K(t))return void f(!1);const e=t.currentTarget;xe||function(t){const{tagName:e,readOnly:n,type:r}=t;return"TEXTAREA"===e&&!n||"SELECT"===e&&!n||("INPUT"!==e||n?!!t.isContentEditable||!("combobox"!==t.getAttribute("role")||!t.dataset.name):ve.includes(r))}(t.target)?J(t.target,"focusout",(()=>S(t,e))):f(!1)})),C=a.onBlur,T=rt((t=>{null==C||C(t),n&&G(t)&&f(!1)})),I=(0,o.useContext)(re),O=rt((t=>{n&&s&&t&&I&&queueMicrotask((()=>{de(t)||se(t)&&t.focus()}))})),M=function(t,e){const n=t=>{if("string"==typeof t)return t},[r,s]=(0,o.useState)((()=>n(e)));return et((()=>{const r=t&&"current"in t?t.current:t;s((null==r?void 0:r.tagName.toLowerCase())||n(e))}),[t,e]),r}(c),R=n&&function(t){return!t||"button"===t||"summary"===t||"input"===t||"select"===t||"textarea"===t||"a"===t}(M),A=n&&function(t){return!t||"button"===t||"input"===t||"select"===t||"textarea"===t}(M),D=a.style,L=(0,o.useMemo)((()=>l?g({pointerEvents:"none"},D):D),[l,D]);return P(a=y(g({"data-focus-visible":n&&d||void 0,"data-autofocus":s||void 0,"aria-disabled":u||void 0},a),{ref:ot(c,O,a.ref),style:L,tabIndex:we(n,l,R,A,a.tabIndex),disabled:!(!A||!l)||void 0,contentEditable:u?void 0:a.contentEditable,onKeyPressCapture:p,onClickCapture:m,onMouseDownCapture:h,onMouseDown:_,onKeyDownCapture:E,onFocusCapture:k,onBlur:T}))})),Ie=(Lt((function(t){return Ft("div",Te(t))})),jt((function(t){var e=t,{store:n,showOnHover:r=!0}=e,s=v(e,["store","showOnHover"]);const i=te();A(n=n||i,!1);const a=N(s),c=(0,o.useRef)(0);(0,o.useEffect)((()=>()=>window.clearTimeout(c.current)),[]),(0,o.useEffect)((()=>X("mouseleave",(t=>{if(!n)return;const{anchorElement:e}=n.getState();e&&t.target===e&&(window.clearTimeout(c.current),c.current=0)}),!0)),[n]);const u=s.onMouseMove,l=at(r),d=lt(),f=rt((t=>{if(null==u||u(t),a)return;if(!n)return;if(t.defaultPrevented)return;if(c.current)return;if(!d())return;if(!l(t))return;const e=t.currentTarget;n.setAnchorElement(e),n.setDisclosureElement(e);const{showTimeout:r,timeout:o}=n.getState(),s=()=>{c.current=0,d()&&(null==n||n.setAnchorElement(e),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(e)})))},i=null!=r?r:o;0===i?s():c.current=window.setTimeout(s,i)})),p=s.onClick,h=rt((t=>{null==p||p(t),n&&(window.clearTimeout(c.current),c.current=0)})),m=(0,o.useCallback)((t=>{if(!n)return;const{anchorElement:e}=n.getState();(null==e?void 0:e.isConnected)||n.setAnchorElement(t)}),[n]);return s=y(g({},s),{ref:ot(m,s.ref),onMouseMove:f,onClick:h}),Te(s)}))),Oe=(Lt((function(t){return Ft("a",Ie(t))})),$t([ee],[ne])),Me=(Oe.useContext,Oe.useScopedContext,Oe.useProviderContext),Re=(Oe.ContextProvider,Oe.ScopedContextProvider),Ae=yt({activeStore:null});function De(t){return()=>{const{activeStore:e}=Ae.getState();e===t&&Ae.setState("activeStore",null)}}var Ne=jt((function(t){var e=t,{store:n,showOnHover:r=!0}=e,s=v(e,["store","showOnHover"]);const i=Me();A(n=n||i,!1);const a=(0,o.useRef)(!1);(0,o.useEffect)((()=>St(n,["mounted"],(t=>{t.mounted||(a.current=!1)}))),[n]),(0,o.useEffect)((()=>{if(n)return M(De(n),St(n,["mounted","skipTimeout"],(t=>{if(!n)return;if(t.mounted){const{activeStore:t}=Ae.getState();return t!==n&&(null==t||t.hide()),Ae.setState("activeStore",n)}const e=setTimeout(De(n),t.skipTimeout);return()=>clearTimeout(e)})))}),[n]);const c=s.onMouseEnter,u=rt((t=>{null==c||c(t),a.current=!0})),l=s.onFocusVisible,d=rt((t=>{null==l||l(t),t.defaultPrevented||(null==n||n.setAnchorElement(t.currentTarget),null==n||n.show())})),f=s.onBlur,p=rt((t=>{if(null==f||f(t),t.defaultPrevented)return;const{activeStore:e}=Ae.getState();a.current=!1,e===n&&Ae.setState("activeStore",null)})),h=n.useState("type"),m=n.useState((t=>{var e;return null==(e=t.contentElement)?void 0:e.id}));return s=y(g({"aria-labelledby":"label"===h?m:void 0},s),{onMouseEnter:u,onFocusVisible:d,onBlur:p}),Ie(g({store:n,showOnHover(t){if(!a.current)return!1;if(D(r,t))return!1;const{activeStore:e}=Ae.getState();return!e||(null==n||n.show(),!1)}},s))})),Pe=Lt((function(t){return Ft("div",Ne(t))}));function Le(t){return[t.clientX,t.clientY]}function Fe(t,e){const[n,r]=t;let o=!1;for(let t=e.length,s=0,i=t-1;s<t;i=s++){const[a,c]=e[s],[u,l]=e[i],[,d]=e[0===i?t-1:i-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 je(t,e){const n=t.getBoundingClientRect(),{top:r,right:o,bottom:s,left:i}=n,[a,c]=function(t,e){const{top:n,right:r,bottom:o,left:s}=e,[i,a]=t;return[i<s?"left":i>r?"right":null,a<n?"top":a>o?"bottom":null]}(e,n),u=[e];return a?("top"!==c&&u.push(["left"===a?i:o,r]),u.push(["left"===a?o:i,r]),u.push(["left"===a?o:i,s]),"bottom"!==c&&u.push(["left"===a?i:o,s])):"top"===c?(u.push([i,r]),u.push([i,s]),u.push([o,s]),u.push([o,r])):(u.push([i,s]),u.push([i,r]),u.push([o,r]),u.push([o,s])),u}function $e(t,...e){if(!t)return!1;const n=t.getAttribute("data-backdrop");return null!=n&&(""===n||"true"===n||!e.length||e.some((t=>n===t)))}var Be=new WeakMap;function Ue(t,e,n){Be.has(t)||Be.set(t,new Map);const r=Be.get(t),o=r.get(e);if(!o)return r.set(e,n()),()=>{var t;null==(t=r.get(e))||t(),r.delete(e)};const s=n(),i=()=>{s(),o(),r.delete(e)};return r.set(e,i),()=>{r.get(e)===i&&(s(),r.set(e,o))}}function ze(t,e,n){return Ue(t,e,(()=>{const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{null==r?t.removeAttribute(e):t.setAttribute(e,r)}}))}function He(t,e,n){return Ue(t,e,(()=>{const r=e in t,o=t[e];return t[e]=n,()=>{r?t[e]=o:delete t[e]}}))}function We(t,e){return t?Ue(t,"style",(()=>{const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}})):()=>{}}var qe=["SCRIPT","STYLE"];function Ve(t){return`__ariakit-dialog-snapshot-${t}`}function Ye(t,e,n){return!qe.includes(e.tagName)&&!!function(t,e){const n=B(e),r=Ve(t);if(!n.body[r])return!0;for(;;){if(e===n.body)return!1;if(e[r])return!0;if(!e.parentElement)return!1;e=e.parentElement}}(t,e)&&!n.some((t=>t&&H(e,t)))}function Ke(t,e,n,r){for(let o of e){if(!(null==o?void 0:o.isConnected))continue;const s=e.some((t=>!!t&&t!==o&&t.contains(o))),i=B(o),a=o;for(;o.parentElement&&o!==i.body;){if(null==r||r(o.parentElement,a),!s)for(const r of o.parentElement.children)Ye(t,r,e)&&n(r,a);o=o.parentElement}}}function Ge(t="",e=!1){return`__ariakit-dialog-${e?"ancestor":"outside"}${t?`-${t}`:""}`}function Je(t,e=""){return M(He(t,Ge("",!0),!0),He(t,Ge(e,!0),!0))}function Xe(t,e){if(t[Ge(e,!0)])return!0;const n=Ge(e);for(;;){if(t[n])return!0;if(!t.parentElement)return!1;t=t.parentElement}}function Qe(t,e){const n=[],r=e.map((t=>null==t?void 0:t.id));return Ke(t,e,(e=>{$e(e,...r)||n.unshift(function(t,e=""){return M(He(t,Ge(),!0),He(t,Ge(e),!0))}(e,t))}),((e,r)=>{r.hasAttribute("data-dialog")&&r.id!==t||n.unshift(Je(e,t))})),()=>{for(const t of n)t()}}var Ze=n(5795);function tn(t,e){const n=setTimeout(e,t);return()=>clearTimeout(n)}function en(...t){return t.join(", ").split(", ").reduce(((t,e)=>{const n=e.endsWith("ms")?1:1e3,r=Number.parseFloat(e||"0s")*n;return r>t?r:t}),0)}function nn(t,e,n){return!(n||!1===e||t&&!e)}var rn=jt((function(t){var e=t,{store:n,alwaysVisible:r}=e,s=v(e,["store","alwaysVisible"]);const i=zt();A(n=n||i,!1);const a=(0,o.useRef)(null),c=st(s.id),[u,l]=(0,o.useState)(null),d=n.useState("open"),f=n.useState("mounted"),p=n.useState("animated"),h=n.useState("contentElement"),m=Ct(n.disclosure,"contentElement");et((()=>{a.current&&(null==n||n.setContentElement(a.current))}),[n]),et((()=>{let t;return null==n||n.setState("animated",(e=>(t=e,!0))),()=>{void 0!==t&&(null==n||n.setState("animated",t))}}),[n]),et((()=>{if(p){if(null==h?void 0:h.isConnected)return function(t){let e=requestAnimationFrame((()=>{e=requestAnimationFrame(t)}));return()=>cancelAnimationFrame(e)}((()=>{l(d?"enter":f?"leave":null)}));l(null)}}),[p,h,d,f]),et((()=>{if(!n)return;if(!p)return;if(!u)return;if(!h)return;const t=()=>null==n?void 0:n.setState("animating",!1),e=()=>(0,Ze.flushSync)(t);if("leave"===u&&d)return;if("enter"===u&&!d)return;if("number"==typeof p)return tn(p,e);const{transitionDuration:r,animationDuration:o,transitionDelay:s,animationDelay:i}=getComputedStyle(h),{transitionDuration:a="0",animationDuration:c="0",transitionDelay:l="0",animationDelay:f="0"}=m?getComputedStyle(m):{},g=en(s,i,l,f)+en(r,o,a,c);return g?tn(Math.max(g-1e3/60,0),e):("enter"===u&&n.setState("animated",!1),void t())}),[n,p,h,m,d,u]),s=ct(s,(t=>(0,Pt.jsx)(Vt,{value:n,children:t})),[n]);const b=nn(f,s.hidden,r),_=s.style,S=(0,o.useMemo)((()=>b?y(g({},_),{display:"none"}):_),[b,_]);return P(s=y(g({id:c,"data-open":d||void 0,"data-enter":"enter"===u||void 0,"data-leave":"leave"===u||void 0,hidden:b},s),{ref:ot(c?n.setContentElement:null,a,s.ref),style:S}))})),on=Lt((function(t){return Ft("div",rn(t))}));function sn({store:t,backdrop:e,alwaysVisible:n,hidden:r}){const s=(0,o.useRef)(null),i=function(t={}){const[e,n]=It(Ot,t);return Mt(e,n,t)}({disclosure:t}),a=Ct(t,"contentElement");(0,o.useEffect)((()=>{const t=s.current,e=a;t&&e&&(t.style.zIndex=getComputedStyle(e).zIndex)}),[a]),et((()=>{const t=null==a?void 0:a.id;if(!t)return;const e=s.current;return e?Je(e,t):void 0}),[a]);const c=rn({ref:s,store:i,role:"presentation","data-backdrop":(null==a?void 0:a.id)||"",alwaysVisible:n,hidden:null!=r?r:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!e)return null;if((0,o.isValidElement)(e))return(0,Pt.jsx)(Bt,y(g({},c),{render:e}));const u="boolean"!=typeof e?e:"div";return(0,Pt.jsx)(Bt,y(g({},c),{render:(0,Pt.jsx)(u,{})}))}function an(){return"inert"in HTMLElement.prototype}function cn(t,e){if(!("style"in t))return I;if(an())return He(t,"inert",!0);const n=ce(t,!0).map((t=>{if(null==e?void 0:e.some((e=>e&&H(e,t))))return I;const n=Ue(t,"focus",(()=>(t.focus=I,()=>{delete t.focus})));return M(ze(t,"tabindex","-1"),n)}));return M(...n,function(t){return ze(t,"aria-hidden","true")}(t),We(t,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function un(t,e,n){const r=function({attribute:t,contentId:e,contentElement:n,enabled:r}){const[s,i]=(0,o.useReducer)((()=>[]),[]),a=(0,o.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=B(n),s=o.getAttribute(t);return!s||s===e}),[s,r,n,t,e]);return(0,o.useEffect)((()=>{if(!r)return;if(!e)return;if(!n)return;const{body:o}=B(n);if(a())return o.setAttribute(t,e),()=>o.removeAttribute(t);const s=new MutationObserver((()=>(0,Ze.flushSync)(i)));return s.observe(o,{attributeFilter:[t]}),()=>s.disconnect()}),[s,r,e,n,a,t]),a}({attribute:"data-dialog-prevent-body-scroll",contentElement:t,contentId:e,enabled:n});(0,o.useEffect)((()=>{if(!r())return;if(!t)return;const e=B(t),n=U(t),{documentElement:o,body:s}=e,i=o.style.getPropertyValue("--scrollbar-width"),a=i?Number.parseInt(i):n.innerWidth-o.clientWidth,c=function(t){const e=t.getBoundingClientRect().left;return Math.round(e)+t.scrollLeft?"paddingLeft":"paddingRight"}(o),u=me()&&!($&&navigator.platform.startsWith("Mac")&&(!$||!navigator.maxTouchPoints));return M((d="--scrollbar-width",f=`${a}px`,(l=o)?Ue(l,d,(()=>{const t=l.style.getPropertyValue(d);return l.style.setProperty(d,f),()=>{t?l.style.setProperty(d,t):l.style.removeProperty(d)}})):()=>{}),u?(()=>{var t,e;const{scrollX:r,scrollY:o,visualViewport:i}=n,u=null!=(t=null==i?void 0:i.offsetLeft)?t:0,l=null!=(e=null==i?void 0:i.offsetTop)?e:0,d=We(s,{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"})}})():We(s,{overflow:"hidden",[c]:`${a}px`}));var l,d,f}),[r,t])}Lt((function(t){var e=t,{unmountOnHide:n}=e,r=v(e,["unmountOnHide"]);const o=zt();return!1===Ct(r.store||o,(t=>!n||(null==t?void 0:t.mounted)))?null:(0,Pt.jsx)(on,g({},r))}));var ln=(0,o.createContext)({});function dn({store:t,type:e,listener:n,capture:r,domReady:s}){const i=rt(n),a=Ct(t,"open"),c=(0,o.useRef)(!1);et((()=>{if(!a)return;if(!s)return;const{contentElement:e}=t.getState();if(!e)return;const n=()=>{c.current=!0};return e.addEventListener("focusin",n,!0),()=>e.removeEventListener("focusin",n,!0)}),[t,a,s]),(0,o.useEffect)((()=>{if(a)return X(e,(e=>{const{contentElement:n,disclosureElement:r}=t.getState(),o=e.target;var s;n&&(o&&function(t){return"HTML"===t.tagName||H(B(t).body,t)}(o)&&(H(n,o)||function(t,e){if(!t)return!1;if(H(t,e))return!0;const n=e.getAttribute("aria-activedescendant");if(n){const e=B(t).getElementById(n);if(e)return H(t,e)}return!1}(r,o)||o.hasAttribute("data-focus-trap")||function(t,e){if(!("clientY"in t))return!1;const n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,n)||c.current&&!Xe(o,n.id)||(s=o)&&s[be]||i(e)))}),r)}),[a,r])}function fn(t,e){return"function"==typeof t?t(e):!!t}var pn=jt((function(t){var e=t,{autoFocusOnShow:n=!0}=e,r=v(e,["autoFocusOnShow"]);return ct(r,(t=>(0,Pt.jsx)(re.Provider,{value:n,children:t})),[n])})),hn=(Lt((function(t){return Ft("div",pn(t))})),(0,o.createContext)(0));function mn({level:t,children:e}){const n=(0,o.useContext)(hn),r=Math.max(Math.min(t||n+1,6),1);return(0,Pt.jsx)(hn.Provider,{value:r,children:e})}var gn=jt((function(t){return y(g({},t),{style:g({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},t.style)})})),yn=(Lt((function(t){return Ft("span",gn(t))})),jt((function(t){return t=y(g({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},t),{style:g({position:"fixed",top:0,left:0},t.style)}),gn(t)}))),vn=Lt((function(t){return Ft("span",yn(t))})),bn=(0,o.createContext)(null);function Sn(t){queueMicrotask((()=>{null==t||t.focus()}))}var wn=jt((function(t){var e=t,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:s,portalRef:i,portal:a=!0}=e,c=v(e,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const u=(0,o.useRef)(null),l=ot(u,c.ref),d=(0,o.useContext)(bn),[f,p]=(0,o.useState)(null),[h,m]=(0,o.useState)(null),b=(0,o.useRef)(null),_=(0,o.useRef)(null),S=(0,o.useRef)(null),w=(0,o.useRef)(null);return et((()=>{const t=u.current;if(!t||!a)return void p(null);const e=function(t,e){return e?"function"==typeof e?e(t):e:B(t).createElement("div")}(t,s);if(!e)return void p(null);const n=e.isConnected;if(!n){const n=d||function(t){return B(t).body}(t);n.appendChild(e)}return e.id||(e.id=t.id?`portal/${t.id}`:function(t="id"){return`${t?`${t}-`:""}${Math.random().toString(36).slice(2,8)}`}()),p(e),F(i,e),n?void 0:()=>{e.remove(),F(i,null)}}),[a,s,d,i]),et((()=>{if(!a)return;if(!n)return;if(!r)return;const t=B(r).createElement("span");return t.style.position="fixed",r.insertAdjacentElement("afterend",t),m(t),()=>{t.remove(),m(null)}}),[a,n,r]),(0,o.useEffect)((()=>{if(!f)return;if(!n)return;let t=0;const e=e=>{if(!G(e))return;const n="focusin"===e.type;if(cancelAnimationFrame(t),n)return function(t){const e=t.querySelectorAll("[data-tabindex]"),n=t=>{const e=t.getAttribute("data-tabindex");t.removeAttribute("data-tabindex"),e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")};t.hasAttribute("data-tabindex")&&n(t);for(const t of e)n(t)}(f);t=requestAnimationFrame((()=>{!function(t){const e=ce(t,!0);for(const t of e)he(t)}(f)}))};return f.addEventListener("focusin",e,!0),f.addEventListener("focusout",e,!0),()=>{cancelAnimationFrame(t),f.removeEventListener("focusin",e,!0),f.removeEventListener("focusout",e,!0)}}),[f,n]),c=ct(c,(t=>{if(t=(0,Pt.jsx)(bn.Provider,{value:f||d,children:t}),!a)return t;if(!f)return(0,Pt.jsx)("span",{ref:l,id:c.id,style:{position:"fixed"},hidden:!0});t=(0,Pt.jsxs)(Pt.Fragment,{children:[n&&f&&(0,Pt.jsx)(vn,{ref:_,"data-focus-trap":c.id,className:"__focus-trap-inner-before",onFocus:t=>{G(t,f)?Sn(ue()):Sn(b.current)}}),t,n&&f&&(0,Pt.jsx)(vn,{ref:S,"data-focus-trap":c.id,className:"__focus-trap-inner-after",onFocus:t=>{G(t,f)?Sn(le()):Sn(w.current)}})]}),f&&(t=(0,Ze.createPortal)(t,f));let e=(0,Pt.jsxs)(Pt.Fragment,{children:[n&&f&&(0,Pt.jsx)(vn,{ref:b,"data-focus-trap":c.id,className:"__focus-trap-outer-before",onFocus:t=>{t.relatedTarget!==w.current&&G(t,f)?Sn(_.current):Sn(le())}}),n&&(0,Pt.jsx)("span",{"aria-owns":null==f?void 0:f.id,style:{position:"fixed"}}),n&&f&&(0,Pt.jsx)(vn,{ref:w,"data-focus-trap":c.id,className:"__focus-trap-outer-after",onFocus:t=>{if(G(t,f))Sn(S.current);else{const t=ue();if(t===_.current)return void requestAnimationFrame((()=>{var t;return null==(t=ue())?void 0:t.focus()}));Sn(t)}}})]});return h&&n&&(e=(0,Ze.createPortal)(e,h)),(0,Pt.jsxs)(Pt.Fragment,{children:[e,t]})}),[f,d,a,c.id,n,h]),c=y(g({},c),{ref:l})})),En=(Lt((function(t){return Ft("div",wn(t))})),ge());function xn(t,e=!1){if(!t)return null;const n="current"in t?t.current:t;return n?e?se(n)?n:null:n:null}var kn=jt((function(t){var e=t,{store:n,open:r,onClose:s,focusable:i=!0,modal:a=!0,portal:c=!!a,backdrop:u=!!a,hideOnEscape:l=!0,hideOnInteractOutside:d=!0,getPersistentElements:f,preventBodyScroll:p=!!a,autoFocusOnShow:h=!0,autoFocusOnHide:m=!0,initialFocus:b,finalFocus:_,unmountOnHide:S,unstable_treeSnapshotKey:w}=e,E=v(e,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const x=Wt(),k=(0,o.useRef)(null),C=function(t={}){const[e,n]=It(Rt,t);return At(e,n,t)}({store:n||x,open:r,setOpen(t){if(t)return;const e=k.current;if(!e)return;const n=new Event("close",{bubbles:!1,cancelable:!0});s&&e.addEventListener("close",s,{once:!0}),e.dispatchEvent(n),n.defaultPrevented&&C.setOpen(!0)}}),{portalRef:T,domReady:I}=ut(c,E.portalRef),O=E.preserveTabOrder,R=Ct(C,(t=>O&&!a&&t.mounted)),A=st(E.id),D=Ct(C,"open"),N=Ct(C,"mounted"),P=Ct(C,"contentElement"),L=nn(N,E.hidden,E.alwaysVisible);un(P,A,p&&!L),function(t,e,n){const r=function(t){const e=(0,o.useRef)();return(0,o.useEffect)((()=>{if(t)return X("mousedown",(t=>{e.current=t.target}),!0);e.current=null}),[t]),e}(Ct(t,"open")),s={store:t,domReady:n,capture:!0};dn(y(g({},s),{type:"click",listener:n=>{const{contentElement:o}=t.getState(),s=r.current;s&&Y(s)&&Xe(s,null==o?void 0:o.id)&&fn(e,n)&&t.hide()}})),dn(y(g({},s),{type:"focusin",listener:n=>{const{contentElement:r}=t.getState();r&&n.target!==B(r)&&fn(e,n)&&t.hide()}})),dn(y(g({},s),{type:"contextmenu",listener:n=>{fn(e,n)&&t.hide()}}))}(C,d,I);const{wrapElement:F,nestedDialogs:j}=function(t){const e=(0,o.useContext)(ln),[n,r]=(0,o.useState)([]),s=(0,o.useCallback)((t=>{var n;return r((e=>[...e,t])),M(null==(n=e.add)?void 0:n.call(e,t),(()=>{r((e=>e.filter((e=>e!==t))))}))}),[e]);et((()=>St(t,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=e.add)?void 0:r.call(e,t)}))),[t,e]);const i=(0,o.useMemo)((()=>({store:t,add:s})),[t,s]);return{wrapElement:(0,o.useCallback)((t=>(0,Pt.jsx)(ln.Provider,{value:i,children:t})),[i]),nestedDialogs:n}}(C);E=ct(E,F,[F]),et((()=>{if(!D)return;const t=k.current,e=z(t,!0);e&&"BODY"!==e.tagName&&(t&&H(t,e)||C.setDisclosureElement(e))}),[C,D]),En&&(0,o.useEffect)((()=>{if(!N)return;const{disclosureElement:t}=C.getState();if(!t)return;if(!q(t))return;const e=()=>{let e=!1;const n=()=>{e=!0};t.addEventListener("focusin",n,{capture:!0,once:!0}),J(t,"mouseup",(()=>{t.removeEventListener("focusin",n,!0),e||pe(t)}))};return t.addEventListener("mousedown",e),()=>{t.removeEventListener("mousedown",e)}}),[C,N]),(0,o.useEffect)((()=>{if(!N)return;if(!I)return;const t=k.current;if(!t)return;const e=U(t),n=e.visualViewport||e,r=()=>{var n,r;const o=null!=(r=null==(n=e.visualViewport)?void 0:n.height)?r:e.innerHeight;t.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[N,I]),(0,o.useEffect)((()=>{if(!a)return;if(!N)return;if(!I)return;const t=k.current;return t?t.querySelector("[data-dialog-dismiss]")?void 0:function(t,e){const n=B(t).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",e),t.prepend(n),()=>{n.removeEventListener("click",e),n.remove()}}(t,C.hide):void 0}),[C,a,N,I]),et((()=>{if(!an())return;if(D)return;if(!N)return;if(!I)return;const t=k.current;return t?cn(t):void 0}),[D,N,I]);const $=D&&I;et((()=>{if(!A)return;if(!$)return;const t=k.current;return function(t,e){const{body:n}=B(e[0]),r=[];return Ke(t,e,(e=>{r.push(He(e,Ve(t),!0))})),M(He(n,Ve(t),!0),(()=>{for(const t of r)t()}))}(A,[t])}),[A,$,w]);const W=rt(f);et((()=>{if(!A)return;if(!$)return;const{disclosureElement:t}=C.getState(),e=[k.current,...W()||[],...j.map((t=>t.getState().contentElement))];return a?M(Qe(A,e),function(t,e){const n=[],r=e.map((t=>null==t?void 0:t.id));return Ke(t,e,(t=>{$e(t,...r)||function(t,...e){if(!t)return!1;const n=t.getAttribute("data-focus-trap");return null!=n&&(!e.length||""!==n&&e.some((t=>n===t)))}(t,...r)||n.unshift(cn(t,e))}),(t=>{t.hasAttribute("role")&&(e.some((e=>e&&H(e,t)))||n.unshift(ze(t,"role","none")))})),()=>{for(const t of n)t()}}(A,e)):Qe(A,[t,...e])}),[A,C,$,W,j,a,w]);const V=!!h,K=at(h),[G,Q]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(!D)return;if(!V)return;if(!I)return;if(!(null==P?void 0:P.isConnected))return;const t=xn(b,!0)||P.querySelector("[data-autofocus=true],[autofocus]")||function(t,e,n){const[r]=ce(t,e,n);return r||null}(P,!0,c&&R)||P,e=se(t);K(e?t:null)&&(Q(!0),queueMicrotask((()=>{t.focus(),En&&t.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[D,V,I,P,b,c,R,K]);const Z=!!m,tt=at(m),[nt,it]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(D)return it(!0),()=>it(!1)}),[D]);const lt=(0,o.useCallback)(((t,e=!0)=>{const{disclosureElement:n}=C.getState();if(function(t){const e=z();return!(!e||t&&H(t,e)||!se(e))}(t))return;let r=xn(_)||n;if(null==r?void 0:r.id){const t=B(r),e=`[aria-activedescendant="${r.id}"]`,n=t.querySelector(e);n&&(r=n)}if(r&&!se(r)){const t=r.closest("[data-dialog]");if(null==t?void 0:t.id){const e=B(t),n=`[aria-controls~="${t.id}"]`,o=e.querySelector(n);o&&(r=o)}}const o=r&&se(r);o||!e?tt(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>lt(t,!1)))}),[C,_,tt]),dt=(0,o.useRef)(!1);et((()=>{if(D)return;if(!nt)return;if(!Z)return;const t=k.current;dt.current=!0,lt(t)}),[D,nt,I,Z,lt]),(0,o.useEffect)((()=>{if(!nt)return;if(!Z)return;const t=k.current;return()=>{dt.current?dt.current=!1:lt(t)}}),[nt,Z,lt]);const ft=at(l);(0,o.useEffect)((()=>{if(I&&N)return X("keydown",(t=>{if("Escape"!==t.key)return;if(t.defaultPrevented)return;const e=k.current;if(!e)return;if(Xe(e))return;const n=t.target;if(!n)return;const{disclosureElement:r}=C.getState();("BODY"===n.tagName||H(e,n)||!r||H(r,n))&&ft(t)&&C.hide()}),!0)}),[C,I,N,ft]);const pt=(E=ct(E,(t=>(0,Pt.jsx)(mn,{level:a?1:void 0,children:t})),[a])).hidden,ht=E.alwaysVisible;E=ct(E,(t=>u?(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(sn,{store:C,backdrop:u,hidden:pt,alwaysVisible:ht}),t]}):t),[C,u,pt,ht]);const[mt,gt]=(0,o.useState)(),[yt,vt]=(0,o.useState)();return E=ct(E,(t=>(0,Pt.jsx)(Vt,{value:C,children:(0,Pt.jsx)(Yt.Provider,{value:gt,children:(0,Pt.jsx)(Kt.Provider,{value:vt,children:t})})})),[C]),E=y(g({id:A,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":mt,"aria-describedby":yt},E),{ref:ot(k,E.ref)}),E=pn(y(g({},E),{autoFocusOnShow:G})),E=rn(g({store:C},E)),E=Te(y(g({},E),{focusable:i})),wn(y(g({portal:c},E),{portalRef:T,preserveTabOrder:R}))}));function Cn(t,e=Wt){return Lt((function(n){const r=e();return Ct(n.store||r,(t=>!n.unmountOnHide||(null==t?void 0:t.mounted)||!!n.open))?(0,Pt.jsx)(t,g({},n)):null}))}Cn(Lt((function(t){return Ft("div",kn(t))})),Wt);const Tn=Math.min,In=Math.max,On=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),Mn={start:"end",end:"start"};function Rn(t,e,n){return In(t,Tn(e,n))}function An(t,e){return"function"==typeof t?t(e):t}function Dn(t){return t.split("-")[0]}function Nn(t){return t.split("-")[1]}function Pn(t){return"x"===t?"y":"x"}function Ln(t){return"y"===t?"height":"width"}const Fn=new Set(["top","bottom"]);function jn(t){return Fn.has(Dn(t))?"y":"x"}function $n(t){return Pn(jn(t))}function Bn(t){return t.replace(/start|end/g,(t=>Mn[t]))}const Un=["left","right"],zn=["right","left"],Hn=["top","bottom"],Wn=["bottom","top"];function qn(t){return t.replace(/left|right|bottom|top/g,(t=>On[t]))}function Vn(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Yn(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Kn(t,e,n){let{reference:r,floating:o}=t;const s=jn(e),i=$n(e),a=Ln(i),c=Dn(e),u="y"===s,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(Nn(e)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function Gn(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=An(e,t),h=Vn(p),m=a[f?"floating"===d?"reference":"floating":d],g=Yn(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},_=Yn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-_.top+h.top)/b.y,bottom:(_.bottom-g.bottom+h.bottom)/b.y,left:(g.left-_.left+h.left)/b.x,right:(_.right-g.right+h.right)/b.x}}const Jn=Math.min,Xn=Math.max,Qn=Math.round,Zn=Math.floor,tr=t=>({x:t,y:t});function er(){return"undefined"!=typeof window}function nr(t){return sr(t)?(t.nodeName||"").toLowerCase():"#document"}function rr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function or(t){var e;return null==(e=(sr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function sr(t){return!!er()&&(t instanceof Node||t instanceof rr(t).Node)}function ir(t){return!!er()&&(t instanceof Element||t instanceof rr(t).Element)}function ar(t){return!!er()&&(t instanceof HTMLElement||t instanceof rr(t).HTMLElement)}function cr(t){return!(!er()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof rr(t).ShadowRoot)}function ur(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=mr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function lr(t){return["table","td","th"].includes(nr(t))}function dr(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function fr(t){const e=pr(),n=ir(t)?mr(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function pr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function hr(t){return["html","body","#document"].includes(nr(t))}function mr(t){return rr(t).getComputedStyle(t)}function gr(t){return ir(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function yr(t){if("html"===nr(t))return t;const e=t.assignedSlot||t.parentNode||cr(t)&&t.host||or(t);return cr(e)?e.host:e}function vr(t){const e=yr(t);return hr(e)?t.ownerDocument?t.ownerDocument.body:t.body:ar(e)&&ur(e)?e:vr(e)}function br(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=vr(t),s=o===(null==(r=t.ownerDocument)?void 0:r.body),i=rr(o);if(s){const t=_r(i);return e.concat(i,i.visualViewport||[],ur(o)?o:[],t&&n?br(t):[])}return e.concat(o,br(o,[],n))}function _r(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sr(t){const e=mr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=ar(t),s=o?t.offsetWidth:n,i=o?t.offsetHeight:r,a=Qn(n)!==s||Qn(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function wr(t){return ir(t)?t:t.contextElement}function Er(t){const e=wr(t);if(!ar(e))return tr(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:s}=Sr(e);let i=(s?Qn(n.width):n.width)/r,a=(s?Qn(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const xr=tr(0);function kr(t){const e=rr(t);return pr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:xr}function Cr(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),s=wr(t);let i=tr(1);e&&(r?ir(r)&&(i=Er(r)):i=Er(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==rr(t))&&e}(s,n,r)?kr(s):tr(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,l=o.width/i.x,d=o.height/i.y;if(s){const t=rr(s),e=r&&ir(r)?rr(r):r;let n=t,o=_r(n);for(;o&&r&&e!==n;){const t=Er(o),e=o.getBoundingClientRect(),r=mr(o),s=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,i=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,u*=t.y,l*=t.x,d*=t.y,c+=s,u+=i,n=rr(o),o=_r(n)}}return Yn({width:l,height:d,x:c,y:u})}function Tr(t,e){const n=gr(t).scrollLeft;return e?e.left+n:Cr(or(t)).left+n}function Ir(t,e,n){void 0===n&&(n=!1);const r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-(n?0:Tr(t,r)),y:r.top+e.scrollTop}}function Or(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=rr(t),r=or(t),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const t=pr();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}(t,n);else if("document"===e)r=function(t){const e=or(t),n=gr(t),r=t.ownerDocument.body,o=Xn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Xn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Tr(t);const a=-n.scrollTop;return"rtl"===mr(r).direction&&(i+=Xn(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}(or(t));else if(ir(e))r=function(t,e){const n=Cr(t,!0,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft,s=ar(t)?Er(t):tr(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:o*s.x,y:r*s.y}}(e,n);else{const n=kr(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Yn(r)}function Mr(t,e){const n=yr(t);return!(n===e||!ir(n)||hr(n))&&("fixed"===mr(n).position||Mr(n,e))}function Rr(t,e,n){const r=ar(e),o=or(e),s="fixed"===n,i=Cr(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const c=tr(0);if(r||!r&&!s)if(("body"!==nr(e)||ur(o))&&(a=gr(e)),r){const t=Cr(e,!0,s,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else o&&(c.x=Tr(o));const u=!o||r||s?tr(0):Ir(o,a);return{x:i.left+a.scrollLeft-c.x-u.x,y:i.top+a.scrollTop-c.y-u.y,width:i.width,height:i.height}}function Ar(t){return"static"===mr(t).position}function Dr(t,e){if(!ar(t)||"fixed"===mr(t).position)return null;if(e)return e(t);let n=t.offsetParent;return or(t)===n&&(n=n.ownerDocument.body),n}function Nr(t,e){const n=rr(t);if(dr(t))return n;if(!ar(t)){let e=yr(t);for(;e&&!hr(e);){if(ir(e)&&!Ar(e))return e;e=yr(e)}return n}let r=Dr(t,e);for(;r&&lr(r)&&Ar(r);)r=Dr(r,e);return r&&hr(r)&&Ar(r)&&!fr(r)?n:r||function(t){let e=yr(t);for(;ar(e)&&!hr(e);){if(fr(e))return e;if(dr(e))return null;e=yr(e)}return null}(t)||n}const Pr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const s="fixed"===o,i=or(r),a=!!e&&dr(e.floating);if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=tr(1);const l=tr(0),d=ar(r);if((d||!d&&!s)&&(("body"!==nr(r)||ur(i))&&(c=gr(r)),ar(r))){const t=Cr(r);u=Er(r),l.x=t.x+r.clientLeft,l.y=t.y+r.clientTop}const f=!i||d||s?tr(0):Ir(i,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:or,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[..."clippingAncestors"===n?dr(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=br(t,[],!1).filter((t=>ir(t)&&"body"!==nr(t))),o=null;const s="fixed"===mr(t).position;let i=s?yr(t):t;for(;ir(i)&&!hr(i);){const e=mr(i),n=fr(i);n||"fixed"!==e.position||(o=null),(s?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||ur(i)&&!n&&Mr(t,i))?r=r.filter((t=>t!==i)):o=e,i=yr(i)}return e.set(t,r),r}(e,this._c):[].concat(n),r],i=s[0],a=s.reduce(((t,n)=>{const r=Or(e,n,o);return t.top=Xn(r.top,t.top),t.right=Jn(r.right,t.right),t.bottom=Jn(r.bottom,t.bottom),t.left=Xn(r.left,t.left),t}),Or(e,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Nr,getElementRects:async function(t){const e=this.getOffsetParent||Nr,n=this.getDimensions,r=await n(t.floating);return{reference:Rr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Sr(t);return{width:e,height:n}},getScale:Er,isElement:ir,isRTL:function(t){return"rtl"===mr(t).direction}};function Lr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Fr=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=An(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=Dn(o),v=jn(a),b=Dn(a)===a,_=await(null==c.isRTL?void 0:c.isRTL(u.floating)),S=f||(b||!m?[qn(a)]:function(t){const e=qn(t);return[Bn(t),e,Bn(e)]}(a)),w="none"!==h;!f&&w&&S.push(...function(t,e,n,r){const o=Nn(t);let s=function(t,e,n){switch(t){case"top":case"bottom":return n?e?zn:Un:e?Un:zn;case"left":case"right":return e?Hn:Wn;default:return[]}}(Dn(t),"start"===n,r);return o&&(s=s.map((t=>t+"-"+o)),e&&(s=s.concat(s.map(Bn)))),s}(a,m,h,_));const E=[a,...S],x=await Gn(e,g),k=[];let C=(null==(r=s.flip)?void 0:r.overflows)||[];if(l&&k.push(x[y]),d){const t=function(t,e,n){void 0===n&&(n=!1);const r=Nn(t),o=$n(t),s=Ln(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=qn(i)),[i,qn(i)]}(o,i,_);k.push(x[t[0]],x[t[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every((t=>t<=0))){var T,I;const t=((null==(T=s.flip)?void 0:T.index)||0)+1,e=E[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(I=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var O;const t=null==(O=C.filter((t=>{if(w){const e=jn(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:O[0];t&&(n=t);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},jr=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=e,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=An(t,e),l={x:n,y:r},d=jn(o),f=Pn(d);let p=l[f],h=l[d];const m=An(a,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const t="y"===f?"height":"width",e=s.reference[f]-s.floating[t]+g.mainAxis,n=s.reference[f]+s.reference[t]-g.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var y,v;const t="y"===f?"width":"height",e=["top","left"].includes(Dn(o)),n=s.reference[d]-s.floating[t]+(e&&(null==(y=i.offset)?void 0:y[d])||0)+(e?0:g.crossAxis),r=s.reference[d]+s.reference[t]+(e?0:(null==(v=i.offset)?void 0:v[d])||0)-(e?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}};function $r(t=0,e=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(t,e,n,r);const o={x:t,y:e,width:n,height:r,top:e,right:t+n,bottom:e+r,left:t};return y(g({},o),{toJSON:()=>o})}function Br(t){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(t)}function Ur(t){const e=window.devicePixelRatio||1;return Math.round(t*e)/e}function zr(t,e){return function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:r,elements:o}=t,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Dn(n),a=Nn(n),c="y"===jn(n),u=["left","top"].includes(i)?-1:1,l=s&&c?-1:1,d=An(e,t);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}}(e,t);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}}((({placement:n})=>{var r;const o=((null==t?void 0:t.clientHeight)||0)/2,s="number"==typeof e.gutter?e.gutter+o:null!=(r=e.gutter)?r:o;return{crossAxis:n.split("-")[1]?void 0:e.shift,mainAxis:s,alignmentAxis:e.shift}}))}function Hr(t){if(!1===t.flip)return;const e="string"==typeof t.flip?t.flip.split(" "):void 0;return A(!e||e.every(Br),!1),Fr({padding:t.overflowPadding,fallbackPlacements:e})}function Wr(t){if(t.slide||t.overlap)return function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=An(t,e),u={x:n,y:r},l=await Gn(e,c),d=jn(Dn(o)),f=Pn(d);let p=u[f],h=u[d];if(s){const t="y"===f?"bottom":"right";p=Rn(p+l["y"===f?"top":"left"],p,p-l[t])}if(i){const t="y"===d?"bottom":"right";h=Rn(h+l["y"===d?"top":"left"],h,h-l[t])}const m=a.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:s,[d]:i}}}}}}({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding,limiter:jr()})}function qr(t){return function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:s,platform:i,elements:a}=e,{apply:c=()=>{},...u}=An(t,e),l=await Gn(e,u),d=Dn(o),f=Nn(o),p="y"===jn(o),{width:h,height:m}=s.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==i.isRTL?void 0:i.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,_=Tn(m-l[g],v),S=Tn(h-l[y],b),w=!e.middlewareData.shift;let E=_,x=S;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(x=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(E=v),w&&!f){const t=In(l.left,0),e=In(l.right,0),n=In(l.top,0),r=In(l.bottom,0);p?x=h-2*(0!==t||0!==e?t+e:In(l.left,l.right)):E=m-2*(0!==n||0!==r?n+r:In(l.top,l.bottom))}await c({...e,availableWidth:x,availableHeight:E});const k=await i.getDimensions(a.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}}({padding:t.overflowPadding,apply({elements:e,availableWidth:n,availableHeight:r,rects:o}){const s=e.floating,i=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),s.style.setProperty("--popover-anchor-width",`${i}px`),s.style.setProperty("--popover-available-width",`${n}px`),s.style.setProperty("--popover-available-height",`${r}px`),t.sameWidth&&(s.style.width=`${i}px`),t.fitViewport&&(s.style.maxWidth=`${n}px`,s.style.maxHeight=`${r}px`)}})}function Vr(t,e){if(t)return(t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=e,{element:u,padding:l=0}=An(t,e)||{};if(null==u)return{};const d=Vn(l),f={x:n,y:r},p=$n(o),h=Ln(p),m=await i.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",_=s.reference[h]+s.reference[p]-f[p]-s.floating[h],S=f[p]-s.reference[p],w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let E=w?w[b]:0;E&&await(null==i.isElement?void 0:i.isElement(w))||(E=a.floating[b]||s.floating[h]);const x=_/2-S/2,k=E/2-m[h]/2-1,C=Tn(d[y],k),T=Tn(d[v],k),I=C,O=E-m[h]-T,M=E/2-m[h]/2+x,R=Rn(I,M,O),A=!c.arrow&&null!=Nn(o)&&M!==R&&s.reference[h]/2-(M<I?C:T)-m[h]/2<0,D=A?M<I?M-I:M-O:0;return{[p]:f[p]+D,data:{[p]:R,centerOffset:M-R-D,...A&&{alignmentOffset:D}},reset:A}}}))({element:t,padding:e.arrowPadding})}var Yr=jt((function(t){var e=t,{store:n,modal:r=!1,portal:s=!!r,preserveTabOrder:i=!0,autoFocusOnShow:a=!0,wrapperProps:c,fixed:u=!1,flip:l=!0,shift:d=0,slide:f=!0,overlap:p=!1,sameWidth:h=!1,fitViewport:m=!1,gutter:b,arrowPadding:_=4,overflowPadding:S=8,getAnchorRect:w,updatePosition:E}=e,x=v(e,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const k=Jt();A(n=n||k,!1);const C=n.useState("arrowElement"),T=n.useState("anchorElement"),I=n.useState("disclosureElement"),O=n.useState("popoverElement"),M=n.useState("contentElement"),R=n.useState("placement"),D=n.useState("mounted"),N=n.useState("rendered"),P=(0,o.useRef)(null),[L,F]=(0,o.useState)(!1),{portalRef:j,domReady:$}=ut(s,x.portalRef),B=rt(w),U=rt(E),z=!!E;et((()=>{if(!(null==O?void 0:O.isConnected))return;O.style.setProperty("--popover-overflow-padding",`${S}px`);const t=function(t,e){return{contextElement:t||void 0,getBoundingClientRect:()=>{const n=t,r=null==e?void 0:e(n);return r||!n?function(t){if(!t)return $r();const{x:e,y:n,width:r,height:o}=t;return $r(e,n,r,o)}(r):n.getBoundingClientRect()}}}(T,B),e=async()=>{if(!D)return;C||(P.current=P.current||document.createElement("div"));const e=C||P.current,r=[zr(e,{gutter:b,shift:d}),Hr({flip:l,overflowPadding:S}),Wr({slide:f,shift:d,overlap:p,overflowPadding:S}),Vr(e,{arrowPadding:_}),qr({sameWidth:h,fitViewport:m,overflowPadding:S})],o=await((t,e,n)=>{const r=new Map,o={platform:Pr,...n},s={...o.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:l,y:d}=Kn(u,r,c),f=r,p={},h=0;for(let n=0;n<a.length;n++){const{name:s,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:i,elements:{reference:t,floating:e}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[s]:{...p[s],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:t,floating:e,strategy:o}):b.rects),({x:l,y:d}=Kn(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(t,e,{...o,platform:s})})(t,O,{placement:R,strategy:u?"fixed":"absolute",middleware:r});null==n||n.setState("currentPlacement",o.placement),F(!0);const s=Ur(o.x),i=Ur(o.y);if(Object.assign(O.style,{top:"0",left:"0",transform:`translate3d(${s}px,${i}px,0)`}),e&&o.middlewareData.arrow){const{x:t,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],s=e.clientWidth/2,i=e.clientHeight/2,a=null!=t?t+s:-s,c=null!=n?n+i:-i;O.style.setProperty("--popover-transform-origin",{top:`${a}px calc(100% + ${i}px)`,bottom:`${a}px ${-i}px`,left:`calc(100% + ${s}px) ${c}px`,right:`${-s}px ${c}px`}[r]),Object.assign(e.style,{left:null!=t?`${t}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},r=function(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=wr(t),l=o||s?[...u?br(u):[],...br(e)]:[];l.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));const d=u&&a?function(t,e){let n,r=null;const o=or(t);function s(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function i(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),s();const u=t.getBoundingClientRect(),{left:l,top:d,width:f,height:p}=u;if(a||e(),!f||!p)return;const h={rootMargin:-Zn(d)+"px "+-Zn(o.clientWidth-(l+f))+"px "+-Zn(o.clientHeight-(d+p))+"px "+-Zn(l)+"px",threshold:Xn(0,Jn(1,c))||1};let m=!0;function g(e){const r=e[0].intersectionRatio;if(r!==c){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||Lr(u,t.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(t){r=new IntersectionObserver(g,h)}r.observe(t)}(!0),s}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((t=>{let[r]=t;r&&r.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),u&&!c&&h.observe(u),h.observe(e));let m=c?Cr(t):null;return c&&function e(){const r=Cr(t);m&&!Lr(m,r)&&n(),m=r,f=requestAnimationFrame(e)}(),n(),()=>{var t;l.forEach((t=>{o&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=h)||t.disconnect(),h=null,c&&cancelAnimationFrame(f)}}(t,O,(async()=>{z?(await U({updatePosition:e}),F(!0)):await e()}),{elementResize:"function"==typeof ResizeObserver});return()=>{F(!1),r()}}),[n,N,O,C,T,O,R,D,$,u,l,d,f,p,h,m,b,_,S,B,z,U]),et((()=>{if(!D)return;if(!$)return;if(!(null==O?void 0:O.isConnected))return;if(!(null==M?void 0:M.isConnected))return;const t=()=>{O.style.zIndex=getComputedStyle(M).zIndex};t();let e=requestAnimationFrame((()=>{e=requestAnimationFrame(t)}));return()=>cancelAnimationFrame(e)}),[D,$,O,M]);const H=u?"fixed":"absolute";return x=ct(x,(t=>(0,Pt.jsx)("div",y(g({},c),{style:g({position:H,top:0,left:0,width:"max-content"},null==c?void 0:c.style),ref:null==n?void 0:n.setPopoverElement,children:t}))),[n,H,c]),x=ct(x,(t=>(0,Pt.jsx)(Qt,{value:n,children:t})),[n]),x=y(g({"data-placing":!L||void 0},x),{style:g({position:"relative"},x.style)}),kn(y(g({store:n,modal:r,portal:s,preserveTabOrder:i,preserveTabOrderAnchor:I||T,autoFocusOnShow:L&&a},x),{portalRef:j}))}));function Kr(t,e,n,r){return!!(fe(e)||t&&(H(e,t)||n&&H(n,t)||(null==r?void 0:r.some((e=>Kr(t,e,n))))))}Cn(Lt((function(t){return Ft("div",Yr(t))})),Jt);var Gr=(0,o.createContext)(null),Jr=jt((function(t){var e=t,{store:n,modal:r=!1,portal:s=!!r,hideOnEscape:i=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:c=!!a}=e,u=v(e,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const l=te();A(n=n||l,!1);const d=(0,o.useRef)(null),[f,p]=(0,o.useState)([]),h=(0,o.useRef)(0),m=(0,o.useRef)(null),{portalRef:b,domReady:_}=ut(s,u.portalRef),S=lt(),w=!!a,E=at(a),x=!!c,k=at(c),C=n.useState("open"),T=n.useState("mounted");(0,o.useEffect)((()=>{if(!_)return;if(!T)return;if(!w&&!x)return;const t=d.current;return t?M(X("mousemove",(e=>{if(!n)return;if(!S())return;const{anchorElement:r,hideTimeout:o,timeout:s}=n.getState(),i=m.current,[a]=e.composedPath(),c=r;if(Kr(a,t,c,f))return m.current=a&&c&&H(c,a)?Le(e):null,window.clearTimeout(h.current),void(h.current=0);if(!h.current){if(i){const n=Le(e);if(Fe(n,je(t,i))){if(m.current=n,!k(e))return;return e.preventDefault(),void e.stopPropagation()}}E(e)&&(h.current=window.setTimeout((()=>{h.current=0,null==n||n.hide()}),null!=o?o:s))}}),!0),(()=>clearTimeout(h.current))):void 0}),[n,S,_,T,w,x,f,k,E]),(0,o.useEffect)((()=>{if(!_)return;if(!T)return;if(!x)return;const t=t=>{const e=d.current;if(!e)return;const n=m.current;if(!n)return;const r=je(e,n);if(Fe(Le(t),r)){if(!k(t))return;t.preventDefault(),t.stopPropagation()}};return M(X("mouseenter",t,!0),X("mouseover",t,!0),X("mouseout",t,!0),X("mouseleave",t,!0))}),[_,T,x,k]),(0,o.useEffect)((()=>{_&&(C||null==n||n.setAutoFocusOnShow(!1))}),[n,_,C]);const I=nt(C);(0,o.useEffect)((()=>{if(_)return()=>{I.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,_]);const O=(0,o.useContext)(Gr);et((()=>{if(r)return;if(!s)return;if(!T)return;if(!_)return;const t=d.current;return t?null==O?void 0:O(t):void 0}),[r,s,T,_]);const R=(0,o.useCallback)((t=>{p((e=>[...e,t]));const e=null==O?void 0:O(t);return()=>{p((e=>e.filter((e=>e!==t)))),null==e||e()}}),[O]);u=ct(u,(t=>(0,Pt.jsx)(ne,{value:n,children:(0,Pt.jsx)(Gr.Provider,{value:R,children:t})})),[n,R]),u=y(g({},u),{ref:ot(d,u.ref)}),u=function(t){var e=t,{store:n}=e,r=v(e,["store"]);const[s,i]=(0,o.useState)(!1),a=n.useState("mounted");(0,o.useEffect)((()=>{a||i(!1)}),[a]);const c=r.onFocus,u=rt((t=>{null==c||c(t),t.defaultPrevented||i(!0)})),l=(0,o.useRef)(null);return(0,o.useEffect)((()=>St(n,["anchorElement"],(t=>{l.current=t.anchorElement}))),[]),y(g({autoFocusOnHide:s,finalFocus:l},r),{onFocus:u})}(g({store:n},u));const N=n.useState((t=>r||t.autoFocusOnShow));return Yr(y(g({store:n,modal:r,portal:s,autoFocusOnShow:N},u),{portalRef:b,hideOnEscape:t=>!D(i,t)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))})),Xr=(Cn(Lt((function(t){return Ft("div",Jr(t))})),te),jt((function(t){var e=t,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:s=!1,hideOnHoverOutside:i=!0,hideOnInteractOutside:a=!0}=e,c=v(e,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const u=Me();A(n=n||u,!1),c=ct(c,(t=>(0,Pt.jsx)(Re,{value:n,children:t})),[n]);const l=n.useState((t=>"description"===t.type?"tooltip":"none"));return c=g({role:l},c),Jr(y(g({},c),{store:n,portal:r,gutter:o,preserveTabOrder:s,hideOnHoverOutside(t){if(D(i,t))return!1;const e=null==n?void 0:n.getState().anchorElement;return!e||!("focusVisible"in e.dataset)},hideOnInteractOutside:t=>{if(D(a,t))return!1;const e=null==n?void 0:n.getState().anchorElement;return!e||!H(e,t.target)}}))}))),Qr=Cn(Lt((function(t){return Ft("div",Xr(t))})),Me);function Zr(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Zr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}const to=function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Zr(t))&&(r&&(r+=" "),r+=e);return r},eo=window.wp.compose,no=window.wp.element,ro=window.wp.deprecated;var oo=n.n(ro);const so=function(t){const{shortcut:e,className:n}=t;if(!e)return null;let r,o;return"string"==typeof e&&(r=e),null!==e&&"object"==typeof e&&(r=e.display,o=e.ariaLabel),(0,Pt.jsx)("span",{className:n,"aria-label":o,children:r})},io={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"},ao=(0,no.createContext)({isNestedInTooltip:!1}),co=700,uo={isNestedInTooltip:!0},lo=(0,no.forwardRef)((function(t,e){const{children:n,className:r,delay:o=co,hideOnClick:s=!0,placement:i,position:a,shortcut:c,text:u,...l}=t,{isNestedInTooltip:d}=(0,no.useContext)(ao),f=(0,eo.useInstanceId)(lo,"tooltip"),p=u||c?f:void 0,h=1===no.Children.count(n);let m;void 0!==i?m=i:void 0!==a&&(m=(t=>{var e;return null!==(e=io[t])&&void 0!==e?e:"bottom"})(a),oo()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),m=m||"bottom";const g=function(t={}){const[e,n]=It(Nt,t);return function(t,e,n){return Tt(t,n,"type"),Tt(t,n,"skipTimeout"),Dt(t,e,n)}(e,n,t)}({placement:m,showTimeout:o}),y=Ct(g,"mounted");return d?h?(0,Pt.jsx)(Bt,{...l,render:n}):n:(0,Pt.jsxs)(ao.Provider,{value:uo,children:[(0,Pt.jsx)(Pe,{onClick:s?g.hide:void 0,store:g,render:h?(v=n,p&&y&&void 0===v.props["aria-describedby"]&&v.props["aria-label"]!==u?(0,no.cloneElement)(v,{"aria-describedby":p}):v):void 0,ref:e,children:h?void 0:n}),h&&(u||c)&&(0,Pt.jsxs)(Qr,{...l,className:to("components-tooltip",r),unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:g,children:[u,c&&(0,Pt.jsx)(so,{className:u?"components-tooltip__shortcut":"",shortcut:c})]})]});var v})),fo=lo;var po=(0,no.forwardRef)((({icon:t,size:e=24,...n},r)=>(0,no.cloneElement)(t,{width:e,height:e,...n,ref:r})));const ho=window.wp.primitives;var mo=(0,Pt.jsx)(ho.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Pt.jsx)(ho.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),go=(0,Pt.jsx)(ho.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Pt.jsx)(ho.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})});const yo={UNKNOWN:"UNKNOWN",PURCHASE_IN_PROGRESS:"PURCHASE_IN_PROGRESS",PURCHASED:"PURCHASED",PURCHASE_ERROR:"PURCHASE_ERROR",ANONYMIZED:"ANONYMIZED"};var vo=(0,Pt.jsx)(ho.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Pt.jsx)(ho.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});const bo={usps:t=>`https://tools.usps.com/go/TrackConfirmAction.action?tLabels=${t}`,fedex:t=>`https://www.fedex.com/apps/fedextrack/?action=track&tracknumbers=${t}`,ups:t=>`https://www.ups.com/track?loc=en_US&tracknum=${t}`,upsdap:t=>`https://www.ups.com/track?loc=en_US&tracknum=${t}`,dhlexpress:t=>`https://www.dhl.com/en/express/tracking.html?AWB=${t}&brand=DHL`},_o=({label:t})=>{if(!t.tracking)return null;const e=t?.carrierId&&t?.tracking?bo[t.carrierId]?.(t.tracking):"";return""===e?(0,Pt.jsx)("span",{children:t.tracking}):(0,Pt.jsxs)("div",{className:"shipment-tracking__link",children:[!!t?.refund&&(0,Pt.jsx)("small",{className:"shipment-tracking__pending-status",children:(0,c.sprintf)(
// translators: %s: the status of the refund (e.g. "pending").
// translators: %s: the status of the refund (e.g. "pending").
(0,c.__)("[ Refund - %s ]","woocommerce-shipping"),t.refund.status)}),(0,Pt.jsx)("a",{href:e,target:"__blank",rel:"noopener noreferrer",children:t.tracking}),(0,Pt.jsx)(po,{icon:vo,size:15})]})},So=({label:t})=>{const e=t.status===yo.PURCHASED;return(0,Pt.jsxs)("div",{className:"shipment-tracking__event",children:[(0,Pt.jsx)("div",{className:"shipment-tracking__event__meta",children:e&&(t.isReturn?(0,Pt.jsx)(fo,{text:(0,c.__)("Return","woocommerce-shipping"),children:(0,Pt.jsx)("div",{className:"shipment-tracking__event__meta__icon",children:(0,Pt.jsx)(po,{icon:mo,size:30})})}):(0,Pt.jsx)(fo,{text:(0,c.__)("Shipment","woocommerce-shipping"),children:(0,Pt.jsx)("div",{className:"shipment-tracking__event__meta__icon",children:(0,Pt.jsx)(po,{icon:go,size:30})})}))}),(0,Pt.jsxs)("div",{className:"shipment-tracking__event__body",children:[(0,Pt.jsx)(_o,{label:t}),(0,Pt.jsx)("small",{children:`(  ${t.serviceName}  )`})]})]})},wo=({date:t,labels:e})=>(0,Pt.jsxs)("div",{className:"shipment-tracking__date",children:[(0,Pt.jsx)("h3",{children:t}),e.map((t=>(0,Pt.jsx)(So,{label:t},t.id)))]},t),Eo=({labels:t})=>{const e=t.filter((t=>[yo.PURCHASE_IN_PROGRESS,yo.PURCHASED].includes(t.status)));if((0,i.isEmpty)(e))return(0,Pt.jsx)("p",{children:(0,c.__)("No shipping labels have been created for this order yet.","woocommerce-shipping")});const n={};e.forEach((t=>{const e=new Date(t.created),r=(0,a.date)("M d, Y",e,void 0);n[r]||(n[r]=[]),n[r].push(t)}));const r={};return Object.keys(n).forEach((t=>{r[t]=n[t].sort(((t,e)=>new Date(e.created).getTime()-new Date(t.created).getTime()))})),(0,Pt.jsx)("div",{className:"shipment-tracking",children:Object.keys(r).map((t=>(0,Pt.jsx)(wo,{date:t,labels:r[t]},t)))})},xo=t=>(0,i.mapKeys)(t,((t,e)=>(0,i.camelCase)(e))),ko=(window.wc.wcSettings,()=>{const{currentOrderLabels:t=[]}=(window.WCShipping_Config||{}).shippingLabelData;return(0,i.groupBy)(t.map(xo),"id")}),Co=((0,i.memoize)((t=>(0,i.groupBy)(t,"serviceId"))),t=>{try{return new ActiveXObject(t)}catch{}});(0,i.memoize)((()=>(0,i.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,i.includes)(navigator.userAgent,"Firefox")?parseFloat(navigator.userAgent.split("Firefox/")[1])>=94?"native_ff":"addon":(0,i.includes)(navigator.userAgent,"Safari")&&!(0,i.includes)(navigator.userAgent,"Chrome")?"addon":navigator.mimeTypes?.["application/pdf"]||navigator.pdfViewerEnabled?"native":!(!Co("AcroPDF.PDF")&&!Co("PDF.PdfCtrl"))&&"addon")),Error,window.wp.url;const To="9.1.0",Io=globalThis;function Oo(){return Mo(Io),Io}function Mo(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||To,e[To]=e[To]||{}}function Ro(t,e,n=Io){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[To]=r[To]||{};return o[t]||(o[t]=e())}const Ao=Object.prototype.toString;function Do(t){switch(Ao.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ho(t,Error)}}function No(t,e){return Ao.call(t)===`[object ${e}]`}function Po(t){return No(t,"ErrorEvent")}function Lo(t){return No(t,"DOMError")}function Fo(t){return No(t,"String")}function jo(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function $o(t){return null===t||jo(t)||"object"!=typeof t&&"function"!=typeof t}function Bo(t){return No(t,"Object")}function Uo(t){return"undefined"!=typeof Event&&Ho(t,Event)}function zo(t){return Boolean(t?.then&&"function"==typeof t.then)}function Ho(t,e){try{return t instanceof e}catch(t){return!1}}function Wo(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const qo=Io;function Vo(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&s++<r&&(u=Yo(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(t){return"<unknown>"}}function Yo(t,e){const n=t,r=[];if(!n?.tagName)return"";if(qo.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=e?.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(o?.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&Fo(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const s=["aria-label","type","name","title","alt"];for(const t of s){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function Ko(){try{return qo.document.location.href}catch(t){return""}}const Go="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Jo=["debug","info","warn","error","log","assert","trace"],Xo={};function Qo(t){if(!("console"in Io))return t();const e=Io.console,n={},r=Object.keys(Xo);r.forEach((t=>{const r=Xo[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const Zo=Ro("logger",(function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Go?Jo.forEach((n=>{e[n]=(...e)=>{t&&Qo((()=>{Io.console[n](`Sentry Logger [${n}]:`,...e)}))}})):Jo.forEach((t=>{e[t]=()=>{}})),e}));function ts(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function es(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{Wo(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function ns(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!Fo(t)&&(No(e,"RegExp")?e.test(t):!!Fo(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}function rs(t,e,n){if(!(e in t))return;const r=t[e],o=n(r);"function"==typeof o&&ss(o,r);try{t[e]=o}catch{Go&&Zo.log(`Failed to replace method "${e}" in object`,t)}}function os(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){Go&&Zo.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function ss(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,os(t,"__sentry_original__",e)}catch(t){}}function is(t){return t.__sentry_original__}function as(t){if(Do(t))return{message:t.message,name:t.name,stack:t.stack,...us(t)};if(Uo(t)){const e={type:t.type,target:cs(t.target),currentTarget:cs(t.currentTarget),...us(t)};return"undefined"!=typeof CustomEvent&&Ho(t,CustomEvent)&&(e.detail=t.detail),e}return t}function cs(t){try{return"undefined"!=typeof Element&&Ho(t,Element)?Vo(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function us(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function ls(t){return ds(t,new Map)}function ds(t,e){if(function(t){if(!Bo(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch{return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.getOwnPropertyNames(t))void 0!==t[n]&&(r[n]=ds(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(ds(t,e))})),r}return t}function fs(){return Date.now()/1e3}const ps=function(){const{performance:t}=Io;if(!t?.now)return fs;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let hs;function ms(){const t=Io,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function gs(t){return t.exception?.values?.[0]}function ys(t){const{message:e,event_id:n}=t;if(e)return e;const r=gs(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function vs(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function bs(t,e){const n=gs(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function _s(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{os(t,"__sentry_captured__",!0)}catch(t){}return!1}function Ss(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ps(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:ms()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ws(){return ms()}function Es(){return ms().substring(16)}function xs(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=xs(r[t],e[t],n-1));return r}const ks="_sentrySpan";function Cs(t,e){e?os(t,ks,e):delete t[ks]}function Ts(t){return t[ks]}class Is{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:ws(),sampleRand:Math.random()}}clone(){const t=new Is;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Cs(t,Ts(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ss(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof Is?e.getScopeData():Bo(e)?t:void 0,{tags:r,extra:o,user:s,contexts:i,level:a,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...i},s&&Object.keys(s).length&&(this._user=s),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,Cs(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ws(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:fs(),...t};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(t){return this._attachments.push(t),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:Ts(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=xs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||ms();if(!this._client)return Zo.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||ms();if(!this._client)return Zo.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e?.event_id||ms();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(Zo.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}class Os{constructor(t,e){let n,r;n=t||new Is,r=e||new Is,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return zo(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function Ms(){const t=Mo(Oo());return t.stack=t.stack||new Os(Ro("defaultCurrentScope",(()=>new Is)),Ro("defaultIsolationScope",(()=>new Is)))}function Rs(t){return Ms().withScope(t)}function As(t,e){const n=Ms();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Ds(t){return Ms().withScope((()=>t(Ms().getIsolationScope())))}function Ns(t){const e=Mo(t);return e.acs?e.acs:{withIsolationScope:Ds,withScope:Rs,withSetScope:As,withSetIsolationScope:(t,e)=>Ds(e),getCurrentScope:()=>Ms().getScope(),getIsolationScope:()=>Ms().getIsolationScope()}}function Ps(){return Ns(Oo()).getCurrentScope()}function Ls(){return Ns(Oo()).getIsolationScope()}function Fs(){return Ps().getClient()}function js(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=e;return ls({trace_id:n,span_id:o||Es(),parent_span_id:r})}const $s="production",Bs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Us;function zs(t){return new Ws((e=>{e(t)}))}function Hs(t){return new Ws(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(Us||(Us={}));class Ws{constructor(t){this._state=Us.PENDING,this._handlers=[],this._runExecutor(t)}then(t,e){return new Ws(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Ws(((e,n)=>{let r,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}_executeHandlers(){if(this._state===Us.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Us.RESOLVED&&t[1](this._value),this._state===Us.REJECTED&&t[2](this._value),t[0]=!0)}))}_runExecutor(t){const e=(t,e)=>{this._state===Us.PENDING&&(zo(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(Us.RESOLVED,t)},r=t=>{e(Us.REJECTED,t)};try{t(n,r)}catch(t){r(t)}}}function qs(t,e,n,r=0){return new Ws(((o,s)=>{const i=t[r];if(null===e||"function"!=typeof i)o(e);else{const a=i({...e},n);Bs&&i.id&&null===a&&Zo.log(`Event processor "${i.id}" dropped event`),zo(a)?a.then((e=>qs(t,e,n,r+1).then(o))).then(null,s):qs(t,a,n,r+1).then(o).then(null,s)}}))}let Vs,Ys,Ks;const Gs="?",Js=/\(error: (.*)\)/,Xs=/captureMessage|captureException/;function Qs(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,r=0)=>{const o=[],s=t.split("\n");for(let t=n;t<s.length;t++){const n=s[t];if(n.length>1024)continue;const i=Js.test(n)?n.replace(Js,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){o.push(e);break}}if(o.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Zs(e).function||"")&&e.pop(),e.reverse(),Xs.test(Zs(e).function||"")&&(e.pop(),Xs.test(Zs(e).function||"")&&e.pop()),e.slice(0,50).map((t=>({...t,filename:t.filename||Zs(e).filename,function:t.function||Gs})))}(o.slice(r))}}function Zs(t){return t[t.length-1]||{}}const ti="<anonymous>";function ei(t){try{return t&&"function"==typeof t&&t.name||ti}catch(t){return ti}}function ni(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}}function ri(t,e=100,n=1/0){try{return si("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function oi(t,e=3,n=102400){const r=ri(t,e);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>n?oi(t,e-1,n):r;var o}function si(t,e,n=1/0,r=1/0,o=function(){const t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){const[s,i]=o;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof globalThis&&e===globalThis)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(Wo(e))return"[VueViewModel]";if(Bo(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${ei(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(s(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return si("",u.toJSON(),c-1,r,o)}catch(t){}const l=Array.isArray(e)?[]:{};let d=0;const f=as(e);for(const t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(d>=r){l[t]="[MaxProperties ~]";break}const e=f[t];l[t]=si(t,e,c-1,r,o),d++}return i(e),l}const ii="sentry.source",ai="sentry.profile_id",ci="sentry.exclusive_time",ui=/^sentry-/;function li(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}function di(t){return{scope:t._sentryScope,isolationScope:t._sentryIsolationScope}}let fi=!1;function pi(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),o=r?e:gi(t).parent_span_id,s=di(t).scope;return ls({parent_span_id:o,span_id:r?s?.getPropagationContext().propagationSpanId||Es():e,trace_id:n})}function hi(t){return"number"==typeof t?mi(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?mi(t.getTime()):ps()}function mi(t){return t>9999999999?t/1e3:t}function gi(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:c}=t;return ls({span_id:e,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:hi(o),timestamp:hi(i)||void 0,status:yi(c),op:r["sentry.op"],origin:r["sentry.origin"]})}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function yi(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"unknown_error"}function vi(t){return t._sentryRootSpan||t}function bi(){const t=Ns(Oo());return t.getActiveSpan?t.getActiveSpan():Ts(Ps())}function _i(){fi||(Qo((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),fi=!0)}function Si(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},o=ls({environment:n.environment||$s,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function wi(t){const e=Fs();if(!e)return{};const n=vi(t),r=gi(n),o=r.data,s=n.spanContext().traceState,i=s?.get("sentry.sample_rate")??o["sentry.sample_rate"];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n._frozenDsc;if(c)return a(c);const u=s?.get("sentry.dsc"),l=u&&function(t){const e=function(t){if(t&&(Fo(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=li(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):li(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(ui)&&(t[e.slice(7)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(u);if(l)return a(l);const d=Si(t.spanContext().traceId,e),f=o[ii],p=r.description;return"url"!==f&&p&&(d.transaction=p),function(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||Fs()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}()&&(d.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return 1===e}(n)),d.sample_rand=s?.get("sentry.sample_rand")??di(n).scope?.getPropagationContext().sampleRand.toString()),a(d),e.emit("createDsc",d,n),d}function Ei(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:h}=e;xi(t,"extra",n),xi(t,"tags",r),xi(t,"user",o),xi(t,"contexts",s),t.sdkProcessingMetadata=xs(t.sdkProcessingMetadata,a,2),i&&(t.level=i),p&&(t.transactionName=p),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...f}}function xi(t,e,n){t[e]=xs(t[e],n,1)}function ki(t,e,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||ms(),timestamp:e.timestamp||fs()},u=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:o,maxValueLength:s=250}=e;t.environment=t.environment||n||$s,!t.release&&r&&(t.release=r),!t.dist&&o&&(t.dist=o),t.message&&(t.message=ts(t.message,s));const i=t.exception?.values?.[0];i?.value&&(i.value=ts(i.value,s));const a=t.request;a?.url&&(a.url=ts(a.url,s))}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),o&&o.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=function(t){const e=Io._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return Ks&&n.length===Ys||(Ys=n.length,Ks=n.reduce(((n,r)=>{Vs||(Vs={});const o=Vs[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const s=o[t],i=s?.filename,a=e[r];if(i&&a){n[i]=a,Vs[r]=[i,a];break}}}return n}),{})),Ks}(e);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.filename&&(t.debug_id=n[t.filename])}))}))}(c,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new Is;return n.update(e),n}(r,n.captureContext);n.mechanism&&bs(c,n.mechanism);const d=o?o.getEventProcessors():[],f=Ro("globalScope",(()=>new Is)).getScopeData();s&&Ei(f,s.getScopeData()),l&&Ei(f,l.getScopeData());const p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),function(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=e;!function(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=e,c=ls(n);Object.keys(c).length&&(t.extra={...c,...t.extra});const u=ls(r);Object.keys(u).length&&(t.tags={...u,...t.tags});const l=ls(o);Object.keys(l).length&&(t.user={...l,...t.user});const d=ls(s);Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:pi(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:wi(e),...t.sdkProcessingMetadata};const n=gi(vi(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,s)}(c,f),qs([...d,...f.eventProcessors],c,n).then((t=>(t&&function(t){const e={};if(t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))})),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:ri(t.data,e,n)}})))},...t.user&&{user:ri(t.user,e,n)},...t.contexts&&{contexts:ri(t.contexts,e,n)},...t.extra&&{extra:ri(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ri(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:ri(t.data,e,n)}})))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=ri(t.contexts.flags,3,n)),r}(t,i,a):t)))}const Ci=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Ti(t,e){return Ps().captureException(t,function(t){if(t)return function(t){return t instanceof Is||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Ci.includes(t)))}(t)?{captureContext:t}:t}(e))}function Ii(t,e){return Ps().captureEvent(t,e)}function Oi(t,e){Ls().setContext(t,e)}function Mi(t){const e=Ls(),n=Ps(),{userAgent:r}=Io.navigator||{},o=function(t){const e=ps(),n={sid:ms(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return ls({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&Ss(n,t),n}({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),s=e.getSession();return"ok"===s?.status&&Ss(s,{status:"exited"}),Ri(),e.setSession(o),o}function Ri(){const t=Ls(),e=Ps().getSession()||t.getSession();e&&function(t){let e={};"ok"===t.status&&(e={status:"exited"}),Ss(t,e)}(e),Ai(),t.setSession()}function Ai(){const t=Ls(),e=Fs(),n=t.getSession();n&&e&&e.captureSession(n)}function Di(t=!1){t?Ri():Ai()}const Ni=[];function Pi(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r)}function Li(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Fi(t,e,n){if(n[e.name])Bs&&Zo.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===Ni.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),Ni.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}Bs&&Zo.log(`Integration installed: ${e.name}`)}}function ji(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch(t){}return e}const $i=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Bi=(t={})=>({name:"InboundFilters",processEvent(e,n,r){const o=r.getOptions(),s=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:$i],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(Bs&&Zo.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ys(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&ji(t).some((t=>ns(t,e)))}(t,e.ignoreErrors)?(Bs&&Zo.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ys(t)}`),!0):function(t){return!t.type&&(!!t.exception?.values?.length&&(!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))))}(t)?(Bs&&Zo.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ys(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&ns(n,e)}(t,e.ignoreTransactions)?(Bs&&Zo.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ys(t)}`),!0):function(t,e){if(!e?.length)return!1;const n=Ui(t);return!!n&&ns(n,e)}(t,e.denyUrls)?(Bs&&Zo.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ys(t)}.\nUrl: ${Ui(t)}`),!0):!function(t,e){if(!e?.length)return!0;const n=Ui(t);return!n||ns(n,e)}(t,e.allowUrls)&&(Bs&&Zo.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ys(t)}.\nUrl: ${Ui(t)}`),!0)}(e,s)?null:e}});function Ui(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return Bs&&Zo.error(`Cannot extract url for event ${ys(t)}`),null}}let zi;const Hi=new WeakMap,Wi=()=>({name:"FunctionToString",setupOnce(){zi=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=is(this),n=Hi.has(Fs())&&void 0!==e?e:this;return zi.apply(n,t)}}catch{}},setup(t){Hi.set(t,!0)}}),qi=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Yi(t,e)&&!!Vi(t,e))))}(t,e)||!!function(t,e){const n=Ki(e),r=Ki(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Yi(t,e)&&!!Vi(t,e)))}(t,e))}(e,t))return Bs&&Zo.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};function Vi(t,e){let n=ni(t),r=ni(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],o=n[t];if(e.filename!==o.filename||e.lineno!==o.lineno||e.colno!==o.colno||e.function!==o.function)return!1}return!0}function Yi(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Ki(t){return t.exception?.values&&t.exception.values[0]}const Gi=Io;function Ji(){if(!("fetch"in Gi))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Xi(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Qi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Zi(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function ta(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ea(t,e=[]){return[t,e]}function na(t,e){const[n,r]=t;return[n,[...r,e]]}function ra(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function oa(t){const e=Mo(Io);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function sa(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[oa(r),t]:r.push("string"==typeof t?oa(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(ri(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function ia(t){const e="string"==typeof t.data?oa(t.data):t.data;return[ls({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const aa={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 ca(t){return aa[t]}function ua(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function la(t,e,n,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Zi(r)},...o&&{trace:ls({...o})}}}class da extends Error{constructor(t,e="warn"){super(t),this.message=t,this.logLevel=e}}function fa(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}const pa="Not capturing exception because it's already been captured.",ha="Discarded session because of missing or non-string release";class ma{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){const e="string"==typeof t?function(t){const e=Qi.exec(t);if(!e)return void Qo((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,o="",s="",i="",a=""]=e.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 t=u.match(/^\d+/);t&&(u=t[0])}return ta({host:s,pass:o,path:c,projectId:u,port:i,protocol:n,publicKey:r})}(t):ta(t);if(e&&function(t){if(!Go)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(Zo.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(Zo.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(Zo.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Zo.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}(t.dsn):Bs&&Zo.warn("No DSN provided, client will not send events."),this._dsn){const o=(e=this._dsn,n=t.tunnel,r=t._metadata?t._metadata.sdk:void 0,n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(e)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(e,r)}`);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}var e,n,r}captureException(t,e,n){const r=ms();if(_s(t))return Bs&&Zo.log(pa),r;const o={event_id:r,...e};return this._process(this.eventFromException(t,o).then((t=>this._captureEvent(t,o,n)))),o.event_id}captureMessage(t,e,n,r){const o={event_id:ms(),...n},s=jo(t)?t:String(t),i=$o(t)?this.eventFromMessage(s,e,o):this.eventFromException(t,o);return this._process(i.then((t=>this._captureEvent(t,o,r)))),o.event_id}captureEvent(t,e,n){const r=ms();if(e?.originalException&&_s(e.originalException))return Bs&&Zo.log(pa),r;const o={event_id:r,...e},s=t.sdkProcessingMetadata||{},i=s.capturedSpanScope,a=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,o,i||n,a)),o.event_id}captureSession(t){this.sendSession(t),Ss(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):zs(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];Fi(this,t,this._integrations),e||Li(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const o=ua(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n?.sdk);const i=la(t,o,r,e);return delete t.sdkProcessingMetadata,ea(i,[[{type:s},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=na(n,ia(t));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const{release:e,environment:n=$s}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return void(Bs&&Zo.warn(ha));r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return void(Bs&&Zo.warn(ha));t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=function(t,e,n,r){const o=ua(n);return ea({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:Zi(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;Bs&&Zo.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(Bs&&Zo.error("Error while sending envelope:",t),t))):(Bs&&Zo.error("Transport disabled"),zs({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&Fi(t,e,n)})),n}(this,t),Li(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const o=e.exception?.values;if(o){r=!0;for(const t of o){const e=t.mechanism;if(!1===e?.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(Ss(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ws((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const o=this.getOptions(),s=Object.keys(this._integrations);return!e.integrations&&s?.length&&(e.integrations=s),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),ki(o,t,e,n,this,r).then((t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:js(n),...t.contexts};const r=function(t,e){const n=e.getPropagationContext();return n.dsc||Si(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t}))}_captureEvent(t,e={},n=Ps(),r=Ls()){return Bs&&ga(t)&&Zo.log(`Captured error event \`${ji(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then((t=>t.event_id),(t=>{Bs&&(t instanceof da&&"log"===t.logLevel?Zo.log(t.message):Zo.warn(t))}))}_processEvent(t,e,n,r){const o=this.getOptions(),{sampleRate:s}=o,i=ya(t),a=ga(t),c=t.type||"error",u=`before send for type \`${c}\``,l=void 0===s?void 0:fa(s);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),Hs(new da(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const d="replay_event"===c?"replay":c;return this._prepareEvent(t,e,n,r).then((t=>{if(null===t)throw this.recordDroppedEvent("event_processor",d),new da("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=e;let a=n;if(ga(a)&&o)return o(a,r);if(ya(a)){if(i){const t=i(function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:o,origin:s,data:i,op:a}=t.contexts?.trace??{};return ls({data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:s,profile_id:i?.[ai],exclusive_time:i?.[ci],measurements:t.measurements,is_segment:!0})}(a));if(t?a=xs(n,ls({type:"transaction",timestamp:(c=t).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&&{[ai]:c.profile_id},...c.exclusive_time&&{[ci]:c.exclusive_time}}}},measurements:c.measurements})):_i(),a.spans){const t=[];for(const e of a.spans){const n=i(e);n?t.push(n):(_i(),t.push(e))}a.spans=t}}if(s){if(a.spans){const t=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return s(a,r)}}var c;return a}(0,o,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(zo(t))return t.then((t=>{if(!Bo(t)&&null!==t)throw new da(n);return t}),(t=>{throw new da(`${e} rejected with ${t}`)}));if(!Bo(t)&&null!==t)throw new da(n);return t}(n,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new da(`${u} returned \`null\`, will not send event.`,"log")}const s=n.getSession()||r.getSession();if(a&&s&&this._updateSessionFromEvent(s,o),i){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const c=o.transaction_info;if(i&&c&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...c,source:t}}return this.sendEvent(o,e),o})).then(null,(t=>{if(t instanceof da)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new da(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}}))}_flushOutcomes(){Bs&&Zo.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(Bs&&Zo.log("No outcomes to send"));if(!this._dsn)return void(Bs&&Zo.log("No dsn provided, will not send outcomes"));Bs&&Zo.log("Sending outcomes:",t);const e=(n=t,ea((r=this._options.tunnel&&Zi(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:fs(),discarded_events:n}]]));var n,r;this.sendEnvelope(e)}}function ga(t){return void 0===t.type}function ya(t){return"transaction"===t.type}function va(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:To}))),version:To}),t._metadata=o}function ba(t){void 0===t.user?.ip_address&&(t.user={...t.user,ip_address:"{{auto}}"})}function _a(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Sa(t,e){const n=Ea(t,e),r={type:Ca(e),value:Ta(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wa(t,e){return{exception:{values:[Sa(t,e)]}}}function Ea(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&xa.test(t.message)?1:0}(e),o=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,o)}catch(t){}return[]}const xa=/Minified React error #\d+;/i;function ka(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Ca(t){const e=t?.name;return!e&&ka(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":e}function Ta(t){const e=t?.message;return ka(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ia(t,e,n,r,o){let s;if(Po(e)&&e.error)return wa(t,e.error);if(Lo(e)||No(e,"DOMException")){const o=e;if("stack"in e)s=wa(t,e);else{const e=o.name||(Lo(o)?"DOMError":"DOMException"),i=o.message?`${e}: ${o.message}`:e;s=Oa(t,i,n,r),vs(s,i)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return Do(e)?wa(t,e):Bo(e)||Uo(e)?(s=function(t,e,n,r){const o=Fs(),s=o?.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),a={__serialized__:oi(e,s)};if(i)return{exception:{values:[Sa(t,i)]},extra:a};const c={exception:{values:[{type:Uo(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ma(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=Ea(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}(t,e,n,o),bs(s,{synthetic:!0}),s):(s=Oa(t,e,n,r),vs(s,`${e}`,void 0),bs(s,{synthetic:!0}),s)}function Oa(t,e,n,r){const o={};if(r&&n){const r=Ea(t,n);r.length&&(o.exception={values:[{value:e,stacktrace:{frames:r}}]}),bs(o,{synthetic:!0})}if(jo(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return o.logentry={message:t,params:n},o}return o.message=e,o}function Ma(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(as(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return ts(r,e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:ts(r,e)}return""}(t),r=e?"promise rejection":"exception";return Po(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Uo(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Ra=Io;let Aa=0;function Da(){return Aa>0}function Na(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(is(t))return t}catch(e){return t}const n=function(...n){try{const r=n.map((t=>Na(t,e)));return t.apply(this,r)}catch(t){throw Aa++,setTimeout((()=>{Aa--})),function(...t){const e=Ns(Oo());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}((r=>{r.addEventProcessor((t=>(e.mechanism&&(vs(t,void 0,void 0),bs(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),Ti(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}ss(n,t),os(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}class Pa extends ma{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};va(e,"browser",["browser"],Ra.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Ra.document&&Ra.document.addEventListener("visibilitychange",(()=>{"hidden"===Ra.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",ba),this.on("beforeSendSession",_a))}eventFromException(t,e){return function(t,e,n,r){const o=Ia(t,e,n?.syntheticException||void 0,r);return bs(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),zs(o)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,o){const s=Oa(t,e,r?.syntheticException||void 0,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),zs(s)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const La="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Fa={},ja={};function $a(t,e){Fa[t]=Fa[t]||[],Fa[t].push(e)}function Ba(t,e){if(!ja[t]){ja[t]=!0;try{e()}catch(e){Go&&Zo.error(`Error while instrumenting ${t}`,e)}}}function Ua(t,e){const n=t&&Fa[t];if(n)for(const r of n)try{r(e)}catch(e){Go&&Zo.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${ei(r)}\nError:`,e)}}const za=Io;let Ha,Wa,qa;function Va(t){$a("dom",t),Ba("dom",Ya)}function Ya(){if(!za.document)return;const t=Ua.bind(null,"dom"),e=Ka(t,!0);za.document.addEventListener("click",e,!1),za.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=za,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(rs(r,"addEventListener",(function(e){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=Ka(t);s.handler=r,e.call(this,n,r,o)}s.refCount++}catch(t){}return e.call(this,n,r,o)}})),rs(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function Ka(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;os(n,"_sentryCaptured",!0),r&&!r._sentryId&&os(r,"_sentryId",ms());const o="keypress"===n.type?"input":n.type;(function(t){if(t.type!==Wa)return!1;try{if(!t.target||t.target._sentryId!==qa)return!1}catch(t){}return!0})(n)||(t({event:n,name:o,global:e}),Wa=n.type,qa=r?r._sentryId:void 0),clearTimeout(Ha),Ha=za.setTimeout((()=>{qa=void 0,Wa=void 0}),1e3)}}const Ga="__sentry_xhr_v3__";function Ja(){if(!za.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,o=1e3*ps(),s=Fo(n[0])?n[0].toUpperCase():void 0,i=function(t){if(Fo(t))return t;try{return t.toString()}catch{}}(n[1]);if(!s||!i)return t.apply(e,n);e[Ga]={method:s,url:i,request_headers:{}},"POST"===s&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Ga];if(t&&4===e.readyState){try{t.status_code=e.status}catch(t){}Ua("xhr",{endTimestamp:1e3*ps(),startTimestamp:o,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,o]=n,s=e[Ga];return s&&Fo(r)&&Fo(o)&&(s.request_headers[r.toLowerCase()]=o),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Ga];return r?(void 0!==n[0]&&(r.body=n[0]),Ua("xhr",{startTimestamp:1e3*ps(),xhr:e}),t.apply(e,n)):t.apply(e,n)}})}let Xa;function Qa(t){const e="history";$a(e,t),Ba(e,Za)}function Za(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Xa,e=String(n);if(Xa=e,t===e)return;Ua("history",{from:t,to:e})}return t.apply(this,e)}}za.addEventListener("popstate",(()=>{const t=za.location.href,e=Xa;Xa=t,e!==t&&Ua("history",{from:e,to:t})})),"history"in Gi&&(rs(za.history,"pushState",t),rs(za.history,"replaceState",t))}function tc(){"console"in Io&&Jo.forEach((function(t){t in Io.console&&rs(Io.console,t,(function(e){return Xo[t]=e,function(...e){Ua("console",{args:e,level:t});const n=Xo[t];n?.apply(Io.console,e)}}))}))}function ec(t,e){return!!t&&"object"==typeof t&&!!t[e]}function nc(t){return"string"==typeof t?t:t?ec(t,"url")?t.url:t.toString?t.toString():"":""}const rc=100;function oc(t,e){const n=Fs(),r=Ls();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=rc}=n.getOptions();if(s<=0)return;const i={timestamp:fs(),...t},a=o?Qo((()=>o(i,e))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,s))}function sc(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}function ic(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function ac(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const cc=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";$a(e,t),Ba(e,tc)}(function(t){return function(e){if(Fs()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:sc(e.level),message:es(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${es(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}oc(n,{input:e.args,level:e.level})}}(t)),e.dom&&Va(function(t,e){return function(n){if(Fs()!==t)return;let r,o,s="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(La&&Zo.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=Vo(e,{keyAttrs:s,maxStringLength:i}),o=function(t){if(!qo.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(e)}catch(t){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),oc(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&(n=function(t){return function(e){if(Fs()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,o=e.xhr[Ga];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o,u={method:s,url:i,status_code:a},l={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:ic(a)};t.emit("beforeOutgoingRequestBreadcrumb",d,l),oc(d,l)}}(t),$a("xhr",n),Ba("xhr",Ja)),e.fetch&&function(t){const e="fetch";$a(e,t),Ba(e,(()=>function(t,e=!1){e&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!Ji())return!1;if(Xi(Gi.fetch))return!0;let t=!1;const e=Gi.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Xi(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){Go&&Zo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}()||rs(Io,"fetch",(function(e){return function(...n){const r=new Error,{method:o,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:nc(e),method:ec(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:nc(e),method:ec(e,"method")?String(e.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:o,url:s},startTimestamp:1e3*ps(),virtualError:r};return t||Ua("fetch",{...i}),e.apply(Io,n).then((async e=>(t?t(e):Ua("fetch",{...i,endTimestamp:1e3*ps(),response:e}),e)),(t=>{throw Ua("fetch",{...i,endTimestamp:1e3*ps(),error:t}),Do(t)&&void 0===t.stack&&(t.stack=r.stack,os(t,"framesToPop",1)),t}))}}))}(void 0,undefined)))}(function(t){return function(e){if(Fs()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){const o=e.fetchData,s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,s),oc(i,s)}else{const o=e.response,s={...e.fetchData,status_code:o?.status};e.fetchData.request_body_size,e.fetchData.response_body_size;const i={input:e.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:s,type:"http",level:ic(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),oc(a,i)}}}(t)),e.history&&Qa(function(t){return function(e){if(Fs()!==t)return;let n=e.from,r=e.to;const o=ac(Ra.location.href);let s=n?ac(n):void 0;const i=ac(r);s?.path||(s=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),oc({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Fs()===t&&oc({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:ys(e)},{event:e})}}(t))}}},uc=["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"],lc=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&rs(Ra,"setTimeout",dc),e.setInterval&&rs(Ra,"setInterval",dc),e.requestAnimationFrame&&rs(Ra,"requestAnimationFrame",fc),e.XMLHttpRequest&&"XMLHttpRequest"in Ra&&rs(XMLHttpRequest.prototype,"send",pc);const t=e.eventTarget;t&&(Array.isArray(t)?t:uc).forEach(hc)}}};function dc(t){return function(...e){const n=e[0];return e[0]=Na(n,{mechanism:{data:{function:ei(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function fc(t){return function(e){return t.apply(this,[Na(e,{mechanism:{data:{function:"requestAnimationFrame",handler:ei(t)},handled:!1,type:"instrument"}})])}}function pc(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&rs(n,t,(function(e){const n={mechanism:{data:{function:t,handler:ei(e)},handled:!1,type:"instrument"}},r=is(e);return r&&(n.mechanism.data.handler=ei(r)),Na(e,n)}))})),t.apply(this,e)}}function hc(t){const e=Ra,n=e[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(rs(n,"addEventListener",(function(e){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Na(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ei(r),target:t},handled:!1,type:"instrument"}}))}catch{}return e.apply(this,[n,Na(r,{mechanism:{data:{function:"addEventListener",handler:ei(r),target:t},handled:!1,type:"instrument"}}),o])}})),rs(n,"removeEventListener",(function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(t){}return t.call(this,e,n,r)}})))}let mc=null;function gc(){mc=Io.onerror,Io.onerror=function(t,e,n,r,o){return Ua("error",{column:r,error:o,line:n,msg:t,url:e}),!!mc&&mc.apply(this,arguments)},Io.onerror.__SENTRY_INSTRUMENTED__=!0}let yc=null;function vc(){yc=Io.onunhandledrejection,Io.onunhandledrejection=function(t){return Ua("unhandledrejection",t),!yc||yc.apply(this,arguments)},Io.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const bc=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(function(t){!function(){const e="error";$a(e,(e=>{const{stackParser:n,attachStacktrace:r}=Sc();if(Fs()!==t||Da())return;const{msg:o,url:s,line:i,column:a,error:c}=e,u=function(t,e,n,r){const o=t.exception=t.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=Fo(e)&&e.length>0?e:Ko();return 0===c.length&&c.push({colno:u,filename:d,function:Gs,in_app:!0,lineno:l}),t}(Ia(n,c||o,void 0,r,!1),s,i,a);u.level="error",Ii(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})),Ba(e,gc)}()}(t),_c("onerror")),e.onunhandledrejection&&(function(t){!function(){const e="unhandledrejection";$a(e,(e=>{const{stackParser:n,attachStacktrace:r}=Sc();if(Fs()!==t||Da())return;const o=function(t){if($o(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),s=$o(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Ia(n,o,void 0,r,!0);s.level="error",Ii(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})),Ba(e,vc)}()}(t),_c("onunhandledrejection"))}}};function _c(t){La&&Zo.log(`Global Handler attached: ${t}`)}function Sc(){const t=Fs();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function wc(t,e,n=250,r,o,s,i){if(!s.exception?.values||!i||!Ho(i.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,u;a&&(s.exception.values=(c=Ec(t,e,o,i.originalException,r,s.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=ts(t.value,u)),t)))))}function Ec(t,e,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(Ho(r[o],Error)){xc(i,a);const s=t(e,r[o]),u=c.length;kc(s,o,u,a),c=Ec(t,e,n,r[o],o,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(Ho(r,Error)){xc(i,a);const u=t(e,r),l=c.length;kc(u,`errors[${s}]`,l,a),c=Ec(t,e,n,r,o,[u,...c],u,l)}})),c}function xc(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function kc(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const Cc=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){const s=o.getOptions();wc(Sa,s.stackParser,s.maxValueLength,n,e,t,r)}}};function Tc(t,e,n,r){const o={filename:t,function:"<anonymous>"===e?Gs:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Ic=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Oc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Rc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ac=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Dc=Qs([30,t=>{const e=Ic.exec(t);if(e){const[,t,n,r]=e;return Tc(t,Gs,+n,+r)}const n=Oc.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=Mc.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Nc(n[1]||Gs,n[2]);return Tc(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,t=>{const e=Rc.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Ac.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Gs;return[n,t]=Nc(n,t),Tc(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),Nc=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Gs,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Pc="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Lc={};function Fc(t){const e=Lc[t];if(e)return e;let n=za[t];if(Xi(n))return Lc[t]=n.bind(za);const r=za.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const o=e.contentWindow;o?.[t]&&(n=o[t]),r.head.removeChild(e)}catch(e){Pc&&Zo.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?Lc[t]=n.bind(za):n}function jc(t){Lc[t]=void 0}function $c(...t){return Fc("setTimeout")(...t)}function Bc(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}function Uc(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},s=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n,,,s]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(o[t]=r+a);else o.all=r+a}else i?o.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(o.all=r+6e4);return o}function zc(t,e=Fc("fetch")){let n=0,r=0;return function(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return Hs(new da("Not adding Promise because buffer limit was reached."));const o=r();return-1===e.indexOf(o)&&e.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(t){return new Ws(((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{zs(t).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}(t.bufferSize||64)){let r={};return{send:function(o){const s=[];if(ra(o,((e,n)=>{const o=ca(n);Bc(r,o)?t.recordDroppedEvent("ratelimit_backoff",o):s.push(e)})),0===s.length)return zs({});const i=ea(o[0],s),a=e=>{ra(i,((n,r)=>{t.recordDroppedEvent(e,ca(r))}))};return n.add((()=>e({body:sa(i)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&Bs&&Zo.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Uc(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof da)return Bs&&Zo.error("Skipped sending event because buffer is full."),a("queue_overflow"),zs({});throw t}))},flush:t=>n.drain(t)}}(t,(function(o){const s=o.body.length;n+=s,r++;const i={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return jc("fetch"),Hs("No fetch implementation available");try{return e(t.url,i).then((t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return jc("fetch"),n-=s,r--,Hs(t)}}))}function Hc(t){const e={};for(const n of Object.getOwnPropertyNames(t)){const r=n;void 0!==t[r]&&(e[r]=t[r])}return e}function Wc(t={}){const e=function(t={}){return{defaultIntegrations:[Bi(),Wi(),lc(),cc(),bc(),Cc(),qi(),{name:"HttpContext",preprocessEvent(t){if(!Ra.navigator&&!Ra.location&&!Ra.document)return;const e=t.request?.url||Ko(),{referrer:n}=Ra.document||{},{userAgent:r}=Ra.navigator||{},o={...t.request?.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:o};t.request=s}},{name:"BrowserSession",setupOnce(){void 0!==Ra.document?(Mi({ignoreDuration:!0}),Di(),Qa((({from:t,to:e})=>{void 0!==t&&t!==e&&(Mi({ignoreDuration:!0}),Di())}))):La&&Zo.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Ra.SENTRY_RELEASE?.id,sendClientReports:!0,...Hc(t)}}(t);if(!e.skipBrowserExtensionCheck&&function(){const t=void 0!==Ra.window&&Ra;if(!t)return!1;const e=t[t.chrome?"chrome":"browser"],n=e?.runtime?.id,r=Ko()||"",o=!!n&&Ra===Ra.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>r.startsWith(`${t}//`))),s=void 0!==t.nw;return!!n&&!o&&!s}())return void(La&&Qo((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})));La&&!Ji()&&Zo.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={...e,stackParser:(r=e.stackParser||Dc,Array.isArray(r)?Qs(...r):r),integrations:Pi(e),transport:e.transport||zc};var r;return function(t,e){!0===e.debug&&(Bs?Zo.enable():Qo((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Ps().update(e.initialScope);const n=new t(e);return function(t){Ps().setClient(t)}(n),n.init(),n}(Pa,n)}function qc(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function Vc(){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 t=Io.process;return"renderer"===t?.type}())}const Yc=(t,e,n,r)=>{let o,s;return i=>{e.value>=0&&(i||r)&&(s=e.value-(o||0),(s||void 0===o)&&(o=e.value,e.delta=s,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},Kc=(t=!0)=>{const e=za.performance?.getEntriesByType?.("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Gc=()=>{const t=Kc();return t?.activationStart||0},Jc=(t,e)=>{const n=Kc();let r="navigate";return n&&(za.document?.prerendering||Gc()>0?r="prerender":za.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Xc=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},Qc=t=>{const e=e=>{"pagehide"!==e.type&&"hidden"!==za.document?.visibilityState||t(e)};za.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},Zc=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let tu=-1;const eu=t=>{"hidden"===za.document.visibilityState&&tu>-1&&(tu="visibilitychange"===t.type?t.timeStamp:0,nu())},nu=()=>{removeEventListener("visibilitychange",eu,!0),removeEventListener("prerenderingchange",eu,!0)},ru=()=>(za.document&&tu<0&&(tu="hidden"!==za.document.visibilityState||za.document.prerendering?1/0:0,addEventListener("visibilitychange",eu,!0),addEventListener("prerenderingchange",eu,!0)),{get firstHiddenTime(){return tu}}),ou=t=>{za.document?.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},su=[1800,3e3],iu=[.1,.25],au=[100,300];let cu=0,uu=1/0,lu=0;const du=t=>{t.forEach((t=>{t.interactionId&&(uu=Math.min(uu,t.interactionId),lu=Math.max(lu,t.interactionId),cu=lu?(lu-uu)/7+1:0)}))};let fu;const pu=()=>{"interactionCount"in performance||fu||(fu=Xc("event",du,{type:"event",buffered:!0,durationThreshold:0}))},hu=[],mu=new Map,gu=()=>(fu?cu:performance.interactionCount||0)-0,yu=[],vu=t=>{if(yu.forEach((e=>e(t))),!t.interactionId&&"first-input"!==t.entryType)return;const e=hu[hu.length-1],n=mu.get(t.interactionId);if(n||hu.length<10||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0]?.startTime&&n.entries.push(t);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};mu.set(e.id,e),hu.push(e)}hu.sort(((t,e)=>e.latency-t.latency)),hu.length>10&&hu.splice(10).forEach((t=>mu.delete(t.id)))}},bu=t=>{const e=za.requestIdleCallback||za.setTimeout;let n=-1;return t=Zc(t),"hidden"===za.document?.visibilityState?t():(n=e(t),Qc(t)),n},_u=[200,500],Su=[2500,4e3],wu={},Eu={},xu={};let ku,Cu,Tu,Iu;function Ou(t,e){const n=Eu[t];if(n?.length)for(const r of n)try{r(e)}catch(e){Pc&&Zo.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${ei(r)}\nError:`,e)}}function Mu(){return((t,e={})=>{((t,e={})=>{ou((()=>{const n=ru(),r=Jc("FCP");let o;const s=Xc("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Gc(),0),r.entries.push(t),o(!0)))}))}));s&&(o=Yc(t,r,su,e.reportAllChanges))}))})(Zc((()=>{const n=Jc("CLS",0);let r,o=0,s=[];const i=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=s[0],n=s[s.length-1];o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,s.push(t)):(o=t.value,s=[t])}})),o>n.value&&(n.value=o,n.entries=s,r())},a=Xc("layout-shift",i);a&&(r=Yc(t,n,iu,e.reportAllChanges),Qc((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))})((t=>{Ou("cls",{metric:t}),ku=t}),{reportAllChanges:!0})}function Ru(){return((t,e={})=>{ou((()=>{const n=ru(),r=Jc("FID");let o;const s=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),o(!0))},i=t=>{t.forEach(s)},a=Xc("first-input",i);o=Yc(t,r,au,e.reportAllChanges),a&&Qc(Zc((()=>{i(a.takeRecords()),a.disconnect()})))}))})((t=>{Ou("fid",{metric:t}),Cu=t}))}function Au(){return((t,e={})=>{ou((()=>{const n=ru(),r=Jc("LCP");let o;const s=t=>{e.reportAllChanges||(t=t.slice(-1)),t.forEach((t=>{t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Gc(),0),r.entries=[t],o())}))},i=Xc("largest-contentful-paint",s);if(i){o=Yc(t,r,Su,e.reportAllChanges);const n=Zc((()=>{wu[r.id]||(s(i.takeRecords()),i.disconnect(),wu[r.id]=!0,o(!0))}));["keydown","click"].forEach((t=>{za.document&&addEventListener(t,(()=>bu(n)),{once:!0,capture:!0})})),Qc(n)}}))})((t=>{Ou("lcp",{metric:t}),Tu=t}),{reportAllChanges:!0})}function Du(){return((t,e={})=>{"PerformanceEventTiming"in za&&"interactionId"in PerformanceEventTiming.prototype&&ou((()=>{pu();const n=Jc("INP");let r;const o=t=>{bu((()=>{t.forEach(vu);const e=(()=>{const t=Math.min(hu.length-1,Math.floor(gu()/50));return hu[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())}))},s=Xc("event",o,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=Yc(t,n,_u,e.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Qc((()=>{o(s.takeRecords()),r(!0)})))}))})((t=>{Ou("inp",{metric:t}),Iu=t}))}function Nu(t,e,n,r,o=!1){let s;return Pu(t,e),xu[t]||(s=n(),xu[t]=!0),r&&e({metric:r}),Lu(t,e,o?s:void 0)}function Pu(t,e){Eu[t]=Eu[t]||[],Eu[t].push(e)}function Lu(t,e,n){return()=>{n&&n();const r=Eu[t];if(!r)return;const o=r.indexOf(e);-1!==o&&r.splice(o,1)}}function Fu(t){return new URLSearchParams(t).toString()}function ju(t,e=Zo){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Fu(t)];if(!t)return[void 0]}catch(n){return Pc&&e.error(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Pc&&e.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $u(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}const Bu=Io,Uu="sentryReplaySession",zu="Unable to send Replay",Hu=15e4,Wu=5e3,qu=2e7;var Vu;function Yu(t){const e=t?.host;return Boolean(e?.shadowRoot===t)}function Ku(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function Gu(t){try{const n=t.rules||t.cssRules;return n?((e=Array.from(n,Ju).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e):null}catch(t){return null}var e}function Ju(t){let e;if(function(t){return"styleSheet"in t}(t))try{e=Gu(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(t){}else if(function(t){return"selectorText"in t}(t)){let e=t.cssText;const n=t.selectorText.includes(":"),r="string"==typeof t.style.all&&t.style.all;if(r&&(e=function(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,o=r[n],s=r.getPropertyPriority(o);e+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${t.selectorText} { ${e} }`}(t)),n&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return e}return e||t.cssText}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Vu||(Vu={}));class Xu{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const e=this.getMeta(t)?.id;return e??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Qu({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function Zu({isMasked:t,element:e,value:n,maskInputFn:r}){let o=n||"";return t?(r&&(o=r(o,e)),"*".repeat(o.length)):o}function tl(t){return t.toLowerCase()}function el(t){return t.toUpperCase()}const nl="__rrweb_original__";function rl(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?tl(e):null}function ol(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function sl(t,e){let n;try{n=new URL(t,e??window.location.href)}catch(t){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const il={};function al(t){const e=il[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(t){}return il[t]=r.bind(window)}function cl(...t){return al("setTimeout")(...t)}function ul(...t){return al("clearTimeout")(...t)}function ll(t){try{return t.contentDocument}catch(t){}}let dl=1;const fl=new RegExp("[^a-z0-9-_:]");function pl(){return dl++}let hl,ml;const gl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,yl=/^(?:[a-z+]+:)?\/\//i,vl=/^www\..*/i,bl=/^(data:)([^,]*),(.*)/i;function _l(t,e){return(t||"").replace(gl,((t,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return t;if(yl.test(a)||vl.test(a))return`url(${c}${a}${c})`;if(bl.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a}${c})`;const u=e.split("/"),l=a.split("/");u.pop();for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t));return`url(${c}${u.join("/")}${c})`}))}const Sl=/^[^ \t\n\r\u000c]+/,wl=/^[, \t\n\r\u000c]+/,El=new WeakMap;function xl(t,e){return e&&""!==e.trim()?kl(t,e):e}function kl(t,e){let n=El.get(t);if(n||(n=t.createElement("a"),El.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function Cl(t,e,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?xl(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const o=t.exec(e.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(wl),!(n>=e.length);){let s=r(Sl);if(","===s.slice(-1))s=xl(t,s.substring(0,s.length-1)),o.push(s);else{let r="";s=xl(t,s);let i=!1;for(;;){const t=e.charAt(n);if(""===t){o.push((s+r).trim());break}if(i)")"===t&&(i=!1);else{if(","===t){n+=1,o.push((s+r).trim());break}"("===t&&(i=!0)}r+=t,n+=1}}}return o.join(", ")}(t,r):"style"===n?_l(r,kl(t)):"object"===e&&"data"===n?xl(t,r):"function"==typeof s?s(n,r,o):r:xl(t,r):r}function Tl(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Il(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Il(t.parentNode,e,n,r+1):-1}function Ol(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}function Ml(t,e,n,r,o,s){try{const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const t=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,c=-1;if(s){if(c=Il(i,Ol(r,o)),c<0)return!0;a=Il(i,Ol(e,n),c>=0?c:1/0)}else{if(a=Il(i,Ol(e,n)),a<0)return!1;c=Il(i,Ol(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!s)}catch(t){}return!!s}function Rl(t){return null==t?"":t.toLowerCase()}function Al(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,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:_=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:I=!1}=e;let{preserveWhiteSpace:O=!0}=e;const M=function(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,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:_,newlyAddedElement:S=!1}=e,w=function(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Vu.Document,childNodes:[],compatMode:t.compatMode}:{type:Vu.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Vu.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return function(t,e){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,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:_}=e,S=function(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(t){}return!1}(t,r,o,s),w=function(t){if(t instanceof HTMLFormElement)return"form";const e=tl(t.tagName);return fl.test(e)?"div":e}(t);let E={};const x=t.attributes.length;for(let e=0;e<x;e++){const r=t.attributes[e];r.name&&!Tl(w,r.name,r.value)&&(E[r.name]=Cl(n,w,tl(r.name),r.value,t,c))}if("link"===w&&i){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=Gu(e)),r&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=_l(r,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=Gu(t.sheet);e&&(E._cssText=_l(e,kl(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=rl(e),r=ol(e,el(w),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Ml(e,y,b,v,_,Qu({type:n,tagName:el(w),maskInputOptions:a}));E.value=Zu({isMasked:t,element:e,value:r,maskInputFn:u})}o&&(E.checked=o)}if("option"===w&&(t.selected&&!a.select?E.selected=!0:delete E.selected),"canvas"===w&&f)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const o=e.getImageData,s=nl in o?o[nl]:o;if(new Uint32Array(s.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(E.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=t.width,r.height=t.height,e!==r.toDataURL(l.type,l.quality)&&(E.rr_dataURL=e)}if("img"===w&&d){hl||(hl=n.createElement("canvas"),ml=hl.getContext("2d"));const e=t,r=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{hl.width=e.naturalWidth,hl.height=e.naturalHeight,ml.drawImage(e,0,0),E.rr_dataURL=hl.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(o?E.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}if("audio"!==w&&"video"!==w||(E.rr_mediaState=t.paused?"paused":"played",E.rr_mediaCurrentTime=t.currentTime),h||(t.scrollLeft&&(E.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(E.rr_scrollTop=t.scrollTop)),S){const{width:e,height:n}=t.getBoundingClientRect();E={class:E.class,rr_width:`${e}px`,rr_height:`${n}px`}}let k;"iframe"!==w||p(E.src)||(S||ll(t)||(E.rr_src=E.src),delete E.src);try{customElements.get(w)&&(k=!0)}catch(t){}return{type:Vu.Element,tagName:w,attributes:E,childNodes:[],isSVG:(C=t,Boolean("svg"===C.tagName||C.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:k};var C}(t,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case t.TEXT_NODE:return function(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let f=t.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{t.nextSibling||t.previousSibling||t.parentNode.sheet?.cssRules&&(f=Gu(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}f=_l(f,kl(e.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=Ml(t,r,s,o,i,n);return p||h||m||!f||!g||(f=a?a(f,t.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||g)&&(f=u?u(f,t.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===d&&f&&(f=Zu({isMasked:Ml(t,r,s,o,i,Qu({type:null,tagName:d,maskInputOptions:c})),element:t,value:f,maskInputFn:u})),{type:Vu.Text,textContent:f||"",isStyle:p,rootId:l}}(t,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w});case t.CDATA_SECTION_NODE:return{type:Vu.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Vu.Comment,textContent:t.textContent||"",rootId:w};default:return!1}}(t,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I});if(!M)return console.warn(t,"not serialized"),null;let R;R=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===Vu.Comment)return!0;if(t.type===Vu.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===sl(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Rl(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Rl(t.attributes.name)||"icon"===Rl(t.attributes.rel)||"apple-touch-icon"===Rl(t.attributes.rel)||"shortcut icon"===Rl(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Rl(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Rl(t.attributes.property).match(/^(og|twitter|fb):/)||Rl(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Rl(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Rl(t.attributes.name)||"googlebot"===Rl(t.attributes.name)||"bingbot"===Rl(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Rl(t.attributes.name)||"generator"===Rl(t.attributes.name)||"framework"===Rl(t.attributes.name)||"publisher"===Rl(t.attributes.name)||"progid"===Rl(t.attributes.name)||Rl(t.attributes.property).match(/^article:/)||Rl(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Rl(t.attributes.name)||"yandex-verification"===Rl(t.attributes.name)||"csrf-token"===Rl(t.attributes.name)||"p:domain_verify"===Rl(t.attributes.name)||"verify-v1"===Rl(t.attributes.name)||"verification"===Rl(t.attributes.name)||"shopify-checkout-api-token"===Rl(t.attributes.name)))return!0}}return!1}(M,v)&&(O||M.type!==Vu.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?pl():-2;const A=Object.assign(M,{id:R});if(r.add(t,A),-2===R)return null;w&&w(t);let D=!f;if(A.type===Vu.Element){D=D&&!A.needBlock,delete A.needBlock;const e=t.shadowRoot;e&&Ku(e)&&(A.isShadowHost=!0)}if((A.type===Vu.Document||A.type===Vu.Element)&&D){v.headWhitespace&&A.type===Vu.Element&&"head"===A.tagName&&(O=!1);const e={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,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:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:T};for(const n of Array.from(t.childNodes)){const t=Al(n,e);t&&A.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=Al(n,e);r&&(Ku(t.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return t.parentNode&&Yu(t.parentNode)&&Ku(t.parentNode)&&(A.isShadow=!0),A.type===Vu.Element&&"iframe"===A.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(t){return}if("complete"!==o){const r=cl((()=>{s||(e(),s=!0)}),n);return void t.addEventListener("load",(()=>{ul(r),s=!0,e()}))}const i="about:blank";if(r.location.href!==i||t.src===i||""===t.src)return cl(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,(()=>{const e=ll(t);if(e&&E){const n=Al(e,{doc:e,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,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:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:T});n&&E(t,n)}}),x),A.type===Vu.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===sl(A.attributes.href))&&function(t,e,n){let r,o=!1;try{r=t.sheet}catch(t){return}if(r)return;const s=cl((()=>{o||(e(),o=!0)}),n);t.addEventListener("load",(()=>{ul(s),o=!0,e()}))}(t,(()=>{if(k){const e=Al(t,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,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:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:T});e&&k(t,e)}}),C),A}function Dl(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Nl="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 Pl={map:{},getId:()=>(console.error(Nl),-1),getNode:()=>(console.error(Nl),null),removeNodeFromMap(){console.error(Nl)},has:()=>(console.error(Nl),!1),reset(){console.error(Nl)}};function Ll(t,e,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=e-(i-o),c=this;a<=0||a>e?(r&&(function(...t){ed("clearTimeout")(...t)}(r),r=null),o=i,t.apply(c,s)):r||!1===n.trailing||(r=nd((()=>{o=!1===n.leading?0:Date.now(),r=null,t.apply(c,s)}),a))}}function Fl(t,e,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){nd((()=>{n.set.call(this,t)}),0),s&&s.set&&s.set.call(this,t)}}),()=>Fl(t,e,s||{},!0)}function jl(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{t[e]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Pl=new Proxy(Pl,{get:(t,e,n)=>("map"===e&&console.error(Nl),Reflect.get(t,e,n))}));let $l=Date.now;function Bl(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:e?.documentElement.scrollLeft||e?.body?.parentElement?.scrollLeft||e?.body?.scrollLeft||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:e?.documentElement.scrollTop||e?.body?.parentElement?.scrollTop||e?.body?.scrollTop||0}}function Ul(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Hl(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Wl(t,e,n,r,o){if(!t)return!1;const s=Hl(t);if(!s)return!1;const i=Ol(e,n);if(!o){const t=r&&s.matches(r);return i(s)&&!t}const a=Il(s,i);let c=-1;return!(a<0)&&(r&&(c=Il(s,Ol(null,r))),a>-1&&c<0||a<c)}function ql(t,e){return-2===e.getId(t)}function Vl(t,e){if(Yu(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Vl(t.parentNode,e))}function Yl(t){return Boolean(t.changedTouches)}function Kl(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function Gl(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function Jl(t){return Boolean(t?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||($l=()=>(new Date).getTime());class Xl{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ql(t){let e=null;return t.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Zl(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||function(t){const e=t.ownerDocument;if(!e)return!1;const n=function(t){let e,n=t;for(;e=Ql(n);)n=e;return n}(t);return e.contains(n)}(t))}const td={};function ed(t){const e=td[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(t){}return td[t]=r.bind(window)}function nd(...t){return ed("setTimeout")(...t)}var rd,od,sd=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(sd||{}),id=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(id||{}),ad=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(ad||{}),cd=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(cd||{});function ud(t){try{return t.contentDocument}catch(t){}}function ld(t){return"__ln"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(rd||(rd={})),function(t){t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(od||(od={}));class dd{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=e?.next||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&ld(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&ld(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const fd=(t,e)=>`${t}@${e}`;class pd{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new dd,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},o=o=>{if(!o.parentNode||!Zl(o))return;const s=Yu(o.parentNode)?this.mirror.getId(Ql(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=Al(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:t=>{Kl(t,this.mirror)&&!Wl(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),Gl(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),Jl(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{Wl(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:s,nextId:i,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)md(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||o(t);for(const t of this.addedSet)gd(this.droppedSet,t)||md(this.removes,t,this.mirror)?gd(this.movedSet,t)?o(t):this.droppedSet.add(t):o(t);let s=null;for(;n.length;){let t=null;if(s){const e=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==e&&-1!==n&&(t=s)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}s=t.previous,n.removeNode(t.value),o(t.value)}const i={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(i.texts.length||i.attributes.length||i.removes.length||i.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(i))},this.processMutation=t=>{if(!ql(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;Wl(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:Ml(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,Hl(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=rl(e),o=e.tagName;r=ol(e,o,n);const s=Qu({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Zu({isMasked:Ml(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:e,value:r,maskInputFn:this.maskInputFn})}if(Wl(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let o=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(ud(e))return;n="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Tl(e.tagName,n)&&(o.attributes[n]=Cl(this.doc,tl(e.tagName),tl(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),s=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||s!==n.style.getPropertyPriority(t)?o.styleDiff[t]=""===s?r:[r,s]:o._unchangedStyles[t]=[r,s]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(o.styleDiff[t]=!1)}break}case"childList":if(Wl(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=Yu(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Wl(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ql(e,this.mirror)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(hd(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Vl(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[fd(n,r)]?hd(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!Yu(t.target)||!Ku(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(ql(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[fd(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Wl(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),Jl(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["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((e=>{this[e]=t[e]}))}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 hd(t,e){t.delete(e),e.childNodes.forEach((e=>hd(t,e)))}function md(t,e,n){return 0!==t.length&&function(t,e,n){let r=e.parentNode;for(;r;){const e=n.getId(r);if(t.some((t=>t.id===e)))return!0;r=r.parentNode}return!1}(t,e,n)}function gd(t,e){return 0!==t.size&&yd(t,e)}function yd(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||yd(t,n))}let vd;function bd(t){vd=t}function _d(){vd=void 0}const Sd=t=>vd?(...e)=>{try{return t(...e)}catch(t){if(vd&&!0===vd(t))return()=>{};throw t}}:t,wd=[];function Ed(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function xd(t,e){const n=new pd;wd.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const s=new r(Sd((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function kd({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return Dl("scroll",Sd(Ll(Sd((i=>{const a=Ed(i);if(!a||Wl(a,r,o,s,!0))return;const c=n.getId(a);if(a===e&&e.defaultView){const n=Bl(e.defaultView);t({id:c,x:n.left,y:n.top})}else t({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),e)}const Cd=["INPUT","TEXTAREA","SELECT"],Td=new WeakMap;function Id({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(t){let n=Ed(t);const l=t.isTrusted,g=n&&el(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Cd.indexOf(g)<0||Wl(n,r,o,s,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const b=rl(n);let _=ol(v,g,b),S=!1;const w=Qu({maskInputOptions:c,tagName:g,type:b}),E=Ml(n,f,h,p,m,w);"radio"!==b&&"checkbox"!==b||(S=n.checked),_=Zu({isMasked:E,element:n,value:_,maskInputFn:u}),y(n,d?{text:_,isChecked:S,userTriggered:l}:{text:_,isChecked:S});const x=n.name;"radio"===b&&x&&S&&e.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((t=>{if(t!==n){const e=Zu({isMasked:E,element:t,value:ol(t,g,b),maskInputFn:u});y(t,d?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}}))}function y(e,r){const o=Td.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Td.set(e,r);const o=n.getId(e);Sd(t)({...r,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((t=>Dl(t,Sd(g),e))),b=e.defaultView;if(!b)return()=>{v.forEach((t=>t()))};const _=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 _&&_.set&&v.push(...S.map((t=>Fl(t[0],t[1],{set(){Sd(g)({target:this,isTrusted:!1})}},!1,b)))),Sd((()=>{v.forEach((t=>t()))}))}function Od(t){return function(t,e){if(Dd("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Dd("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Dd("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Dd("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Md(t,e,n){let r,o;return t?(t.ownerNode?r=e.getId(t.ownerNode):o=n.getId(t),{styleId:o,id:r}):{}}function Rd({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(t){const n=s.set?.call(this,t);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch(t){}return n}}),Sd((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function Ad(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=xd(t,t.doc));const o=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const o="number"==typeof e.mousemove?e.mousemove:50,s="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let i,a=[];const c=Ll(Sd((e=>{const n=Date.now()-i;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],i=null})),s),u=Sd(Ll(Sd((t=>{const e=Ed(t),{clientX:n,clientY:o}=Yl(t)?t.changedTouches[0]:t;i||(i=$l()),a.push({x:n,y:o,id:r.getId(e),timeOffset:$l()-i}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?id.Drag:t instanceof MouseEvent?id.MouseMove:id.TouchMove)})),o,{trailing:!1})),l=[Dl("mousemove",u,n),Dl("touchmove",u,n),Dl("drag",u,n)];return Sd((()=>{l.forEach((t=>t()))}))}(t),s=function({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let u=null;return Object.keys(ad).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((i=>{let a=tl(i);const l=(e=>i=>{const a=Ed(i);if(Wl(a,r,o,s,!0))return;let c=null,l=e;if("pointerType"in i){switch(i.pointerType){case"mouse":c=cd.Mouse;break;case"touch":c=cd.Touch;break;case"pen":c=cd.Pen}c===cd.Touch?ad[e]===ad.MouseDown?l="TouchStart":ad[e]===ad.MouseUp&&(l="TouchEnd"):cd.Pen}else Yl(i)&&(c=cd.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===cd.Touch||l.startsWith("Mouse")&&c===cd.Mouse)&&(c=null)):ad[e]===ad.Click&&(c=u,u=null);const d=Yl(i)?i.changedTouches[0]:i;if(!d)return;const f=n.getId(a),{clientX:p,clientY:h}=d;Sd(t)({type:ad[l],id:f,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(ad[i]){case ad.MouseDown:case ad.MouseUp:a=a.replace("mouse","pointer");break;case ad.TouchStart:case ad.TouchEnd:return}c.push(Dl(a,l,e))})),Sd((()=>{c.forEach((t=>t()))}))}(t),i=kd(t),a=function({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return Dl("resize",Sd(Ll(Sd((()=>{const e=Ul(),o=zl();n===e&&r===o||(t({width:Number(o),height:Number(e)}),n=e,r=o)})),200)),e)}(t,{win:n}),c=Id(t),u=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=Sd((i=>Ll(Sd((s=>{const a=Ed(s);if(!a||Wl(a,e,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;t({type:i,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),s.media||500))),c=[Dl("play",a(0),i),Dl("pause",a(1),i),Dl("seeked",a(2),i),Dl("volumechange",a(3),i),Dl("ratechange",a(4),i)];return Sd((()=>{c.forEach((t=>t()))}))}(t);let l=()=>{},d=()=>{},f=()=>{},p=()=>{};t.recordDOM&&(l=function({styleSheetRuleCb:t,mirror:e,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:Sd(((r,o,s)=>{const[i,a]=s,{id:c,styleId:u}=Md(o,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Sd(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Md(o,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Sd(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Md(o,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Sd(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Md(o,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replaceSync:i}),r.apply(o,s)}))}));const c={};Nd("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Nd("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Nd("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Nd("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:Sd(((r,o,s)=>{const[i,a]=s,{id:c,styleId:u}=Md(o.parentStyleSheet,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:i,index:[...Od(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Sd(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Md(o.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:[...Od(o),i]}]}),r.apply(o,s)}))})})),Sd((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([t,e])=>{e.prototype.insertRule=u[t].insertRule,e.prototype.deleteRule=u[t].deleteRule}))}))}(t,{win:n}),d=Rd(t,t.doc),f=function({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Sd(((o,i,a)=>{const[c,u,l]=a;if(n.has(c))return s.apply(i,[c,u,l]);const{id:d,styleId:f}=Md(i.parentRule?.parentStyleSheet,e,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&t({id:d,styleId:f,set:{property:c,value:u,priority:l},index:Od(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Sd(((o,s,a)=>{const[c]=a;if(n.has(c))return i.apply(s,[c]);const{id:u,styleId:l}=Md(s.parentRule?.parentStyleSheet,e,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&t({id:u,styleId:l,remove:{property:c},index:Od(s.parentRule)}),o.apply(s,a)}))}),Sd((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),t.collectFonts&&(p=function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(t,e,n){const r=new s(t,e,n);return o.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const i=jl(e.fonts,"add",(function(e){return function(n){return nd(Sd((()=>{const e=o.get(n);e&&(t(e),o.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),Sd((()=>{r.forEach((t=>t()))}))}(t)));const h=function(t){const{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=t;let a=!0;const c=Sd((()=>{const t=e.getSelection();if(!t||a&&t?.isCollapsed)return;a=t.isCollapsed||!1;const c=[],u=t.rangeCount||0;for(let e=0;e<u;e++){const i=t.getRangeAt(e),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i;Wl(a,r,o,s,!0)||Wl(l,r,o,s,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})}));return c(),Dl("selectionchange",c)}(t),m=function({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?jl(n.customElements,"define",(function(t){return function(n,r,o){try{e({define:{name:n}})}catch(t){}return t.apply(this,[n,r,o])}})):()=>{}}(t),g=[];for(const e of t.plugins)g.push(e.observer(e.callback,n,e.options));return Sd((()=>{wd.forEach((t=>t.reset())),r?.disconnect(),o(),s(),i(),a(),c(),u(),l(),d(),f(),p(),h(),m(),g.forEach((t=>t()))}))}function Dd(t){return void 0!==window[t]}function Nd(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Pd{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const o=n||this.getIdToRemoteIdMap(t),s=r||this.getRemoteIdToIdMap(t);let i=o.get(e);return i||(i=this.generateIdFn(),o.set(e,i),s.set(i,e)),i}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;return r.get(e)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}class Ld{constructor(){this.crossOriginIframeMirror=new Pd(pl),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Fd{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Pd(pl),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pd(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.loadListener?.(t);const n=ud(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case sd.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:sd.IncrementalSnapshot,data:{source:id.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sd.Meta:case sd.Load:case sd.DomContentLoaded:return!1;case sd.Plugin:return e;case sd.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case sd.IncrementalSnapshot:switch(e.data.source){case id.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case id.Drag:case id.TouchMove:case id.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case id.ViewportResize:return!1;case id.MediaInteraction:case id.MouseInteraction:case id.Scroll:case id.CanvasMutation:case id.Input:return this.replaceIds(e.data,t,["id"]),e;case id.StyleSheetRule:case id.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case id.Font:return e;case id.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case id.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),e.data.styles?.forEach((e=>{this.replaceStyleIds(e,t,["styleId"])})),e}}return!1}replace(t,e,n,r){for(const o of r)(Array.isArray(e[o])||"number"==typeof e[o])&&(Array.isArray(e[o])?e[o]=t.getIds(n,e[o]):e[o]=t.getId(n,e[o]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type===Vu.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class jd{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class $d{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!Ku(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=xd({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(kd({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),nd((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Rd({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){const e=ud(t),n=function(t){try{return t.contentWindow}catch(t){}}(t);e&&n&&this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(jl(t.prototype,"attachShadow",(function(t){return function(r){const o=t.call(this,r);return this.shadowRoot&&Zl(this)&&n.addShadowRoot(this.shadowRoot,e),o}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Bd{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ud{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Xl,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:Ju(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class zd{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.active||(this.active=!0,function(...t){ed("requestAnimationFrame")(...t)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let Hd,Wd;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=t.contentWindow?.Array.from||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const qd=new Xu;function Vd(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=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:_,maxCanvasSize:S=null,packFn:w,sampling:E={},dataURLOptions:x={},mousemoveWait:k,recordDOM:C=!0,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:O=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:R=!1,inlineImages:A=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:L,onMutation:F,getCanvasManager:j}=t;bd(L);const $=!I||window.parent===window;let B=!1;if(!$)try{window.parent.document&&(B=!1)}catch(t){B=!0}if($&&!e)throw new Error("emit function is required");if(!$&&!B)return()=>{};void 0!==k&&void 0===E.mousemove&&(E.mousemove=k),qd.reset();const U=!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:{},z=!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(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let W=0;const q=t=>{for(const e of D||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!B&&(t=w(t)),t};Hd=(t,o)=>{const s=t;if(s.timestamp=$l(),!wd[0]?.isFrozen()||s.type===sd.FullSnapshot||s.type===sd.IncrementalSnapshot&&s.data.source===id.Mutation||wd.forEach((t=>t.unfreeze())),$)e?.(q(s),o);else if(B){const t={type:"rrweb",event:q(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(s.type===sd.FullSnapshot)H=s,W=0;else if(s.type===sd.IncrementalSnapshot){if(s.data.source===id.Mutation&&s.data.isAttachIframe)return;W++;const t=r&&W>=r,e=n&&H&&s.timestamp-H.timestamp>n;(t||e)&&tt(!0)}};const V=t=>{Hd({type:sd.IncrementalSnapshot,data:{source:id.Mutation,...t}})},Y=t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.Scroll,...t}}),K=t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.CanvasMutation,...t}}),G=new Ud({mutationCb:V,adoptedStyleSheetCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.AdoptedStyleSheet,...t}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ld:new Fd({mirror:qd,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:I,wrappedEmit:Hd});for(const t of D||[])t.getMirror&&t.getMirror({nodeMirror:qd,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const X=new zd,Q=function(t,e){try{return t?t(e):new Bd}catch{return console.warn("Unable to initialize CanvasManager"),new Bd}}(j,{mirror:qd,win:window,mutationCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.CanvasMutation,...t}}),recordCanvas:T,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:E.canvas,dataURLOptions:x,errorHandler:L}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new jd:new $d({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:F,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:U,dataURLOptions:x,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:T,inlineImages:A,sampling:E,slimDOMOptions:z,iframeManager:J,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:X},mirror:qd}),tt=(t=!1)=>{if(!C)return;Hd({type:sd.Meta,data:{href:window.location.href,width:zl(),height:Ul()}},t),G.reset(),Z.init(),wd.forEach((t=>t.lock()));const e=function(t,e){const{mirror:n=new Xu,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!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:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:C=()=>!1}=e;return Al(t,{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,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:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:qd,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:U,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:z,dataURLOptions:x,recordCanvas:T,inlineImages:A,onSerialize:t=>{Kl(t,qd)&&J.addIframe(t),Gl(t,qd)&&G.trackLinkElement(t),Jl(t)&&Z.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{J.attachIframe(t,e),t.contentWindow&&Q.addWindow(t.contentWindow),Z.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:N});if(!e)return console.warn("Failed to snapshot the document");Hd({type:sd.FullSnapshot,data:{node:e,initialOffset:Bl(window)}}),wd.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,qd.getId(document))};Wd=tt;try{const t=[],e=t=>Sd(Ad)({onMutation:F,mutationCb:V,mousemoveCb:(t,e)=>Hd({type:sd.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.MouseInteraction,...t}}),scrollCb:Y,viewportResizeCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.ViewportResize,...t}}),inputCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.Input,...t}}),mediaInteractionCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.MediaInteraction,...t}}),styleSheetRuleCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.StyleSheetRule,...t}}),styleDeclarationCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.StyleDeclaration,...t}}),canvasMutationCb:K,fontCb:t=>Hd({type:sd.IncrementalSnapshot,data:{source:id.Font,...t}}),selectionCb:t=>{Hd({type:sd.IncrementalSnapshot,data:{source:id.Selection,...t}})},customElementCb:t=>{Hd({type:sd.IncrementalSnapshot,data:{source:id.CustomElement,...t}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:U,inlineStylesheet:h,sampling:E,recordDOM:C,recordCanvas:T,inlineImages:A,userTriggeredOnInput:M,collectFonts:R,doc:t,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:N,blockSelector:s,unblockSelector:i,slimDOMOptions:z,dataURLOptions:x,mirror:qd,iframeManager:J,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:P,plugins:D?.filter((t=>t.observer))?.map((t=>({observer:t.observer,options:t.options,callback:e=>Hd({type:sd.Plugin,data:{plugin:t.name,payload:e}})})))||[]},{});J.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{tt(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(Dl("DOMContentLoaded",(()=>{Hd({type:sd.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()}))),t.push(Dl("load",(()=>{Hd({type:sd.Load,data:{}}),"load"===O&&n()}),window))),()=>{t.forEach((t=>t())),X.destroy(),Wd=void 0,_d()}}catch(t){console.warn(t)}}function Yd(t){return t>9999999999?t:1e3*t}function Kd(t){return t>9999999999?t/1e3:t}function Gd(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:sd.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:ri(e,10,1e3)}}),"console"===e.category))))}function Jd(t){return t.closest("button,a")||t}function Xd(t){const e=Qd(t);return e&&e instanceof Element?Jd(e):e}function Qd(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}let Zd;Vd.mirror=qd,Vd.takeFullSnapshot=function(t){if(!Wd)throw new Error("please take full snapshot after start recording");Wd(t)};const tf=new Set([id.Mutation,id.StyleSheetRule,id.StyleDeclaration,id.AdoptedStyleSheet,id.CanvasMutation,id.Selection,id.MediaInteraction]);class ef{constructor(t,e,n=Gd){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scrollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=(e=()=>{this._lastMutation=rf()},Zd||(Zd=[],rs(Bu,"open",(function(t){return function(...e){if(Zd)try{Zd.forEach((t=>t()))}catch(t){}return t.apply(Bu,e)}}))),Zd.push(e),()=>{const t=Zd?Zd.indexOf(e):-1;t>-1&&Zd.splice(t,1)});var e;this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(function(t,e){return!nf.includes(t.tagName)||("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||(!("A"!==t.tagName||!(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))||!(!e||!t.matches(e))))}(e,this._ignoreSelector)||!function(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}(t))return;const n={timestamp:Kd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Kd(t)}registerScroll(t=Date.now()){this._lastScroll=Kd(t)}registerClick(t){const e=Jd(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=rf();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<=e&&t.push(n)}));for(const e of t){const t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=t;if(o){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Bu.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(e,o)}else if(s>1){const t={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Bu.location.href,route:e.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=$c((()=>this._checkClicks()),1e3)}}const nf=["A","BUTTON","INPUT"];function rf(){return Date.now()/1e3}function of(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var sf;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(sf||(sf={}));const af=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function cf(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(af.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}function uf(t,e){const n=Vd.mirror.getId(t),r=n&&Vd.mirror.getNode(n),o=r&&Vd.mirror.getMeta(r),s=o&&function(t){return t.type===sf.Element}(o)?o:null;return{message:e,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((t=>t.type===sf.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:cf(s.attributes)}}:{}}}const lf={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:pf(s),end:pf(o),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:o}=t,s=pf(o);return{type:n,name:r,start:s,end:s+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=t;return 0===o?null:{type:`${e}.${m}`,start:pf(p),end:pf(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:f}}}};function df(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function ff(t){const e=lf[t.entryType];return e?e(t):null}function pf(t){return hs||(hs=function(){const{performance:t}=Io;if(!t?.now)return[void 0,"none"];const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=o<e,i=t.timing?.navigationStart,a="number"==typeof i?Math.abs(i+n-r):e;return s||a<e?o<=a?[t.timeOrigin,"timeOrigin"]:[i,"navigationStart"]:[r,"dateNow"]}()),((hs[0]||Bu.performance.timeOrigin)+t)/1e3}function hf(t){const e=t.entries[t.entries.length-1];return bf(t,"largest-contentful-paint",e?.element?[e.element]:void 0)}function mf(t){return void 0!==t.sources}function gf(t){const e=[],n=[];for(const r of t.entries)if(mf(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=Vd.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return bf(t,"cumulative-layout-shift",n,e)}function yf(t){const e=t.entries[t.entries.length-1];return bf(t,"first-input-delay",e?.target?[e.target]:void 0)}function vf(t){const e=t.entries[t.entries.length-1];return bf(t,"interaction-to-next-paint",e?.target?[e.target]:void 0)}function bf(t,e,n,r){const o=t.value,s=t.rating,i=pf(o);return{type:"web-vital",name:e,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map((t=>Vd.mirror.getId(t))):void 0,attributions:r}}}function _f(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(function(t,e){return Pu(t,e),xu[t]||(function(t){const e={};"event"===t&&(e.durationThreshold=0),Xc(t,(e=>{Ou(t,{entries:e})}),e)}(t),xu[t]=!0),Lu(t,e)}(t,n))})),r.push(function(t,e=!1){return Nu("lcp",t,Au,Tu,e)}(df(hf,t)),function(t,e=!1){return Nu("cls",t,Mu,ku,e)}(df(gf,t)),Nu("fid",df(yf,t),Ru,Cu),function(t){return Nu("inp",t,Du,Iu)}(df(vf,t))),()=>{r.forEach((t=>t()))}}const Sf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,wf=["info","warn","error","log"],Ef="[Replay] ";function xf(t,e="info"){oc({category:"console",data:{logger:"replay"},level:e,message:`${Ef}${t}`},{level:e})}const kf=function(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=!!n.captureExceptions,e=!!n.traceInternals}};return Sf?(wf.forEach((t=>{n[t]=(...n)=>{Zo[t](Ef,...n),e&&xf(n.join(""),sc(t))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),Zo.error(Ef,r),t?Ti(r):e&&xf(r,"error")},n.infoTick=(...t)=>{Zo.info(Ef,...t),e&&setTimeout((()=>xf(t[0])),0)}):wf.forEach((t=>{n[t]=()=>{}})),n}();class Cf extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Tf{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(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>qu)throw new Cf;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?Yd(t):null}}class If{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Sf&&kf.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:e})=>{const i=e;if(i.method===t&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return Sf&&kf.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class Of{constructor(t){this._worker=new If(t),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(t){const e=Yd(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>qu?Promise.reject(new Cf):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{Sf&&kf.exception(t,'Sending "clear" message to worker failed',t)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Mf{constructor(t){this._fallback=new Tf,this._compression=new Of(t),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(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(Sf&&kf.exception(t,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e,waitForCheckout:n}=this._fallback,r=[];for(const e of t)r.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(t){Sf&&kf.exception(t,"Failed to add events when switching buffers.")}}}function Rf(){try{return"sessionStorage"in Bu&&!!Bu.sessionStorage}catch{return!1}}function Af(t){return void 0!==t&&Math.random()<t}function Df(t){const e=Date.now();return{id:t.id||ms(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function Nf(t){if(Rf())try{Bu.sessionStorage.setItem(Uu,JSON.stringify(t))}catch{}}function Pf({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const o=function(t,e){return Af(t)?"session":!!e&&"buffer"}(t,e),s=Df({sampled:o,previousSessionId:r});return n&&Nf(s),s}function Lf(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Ff(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Lf(t.started,e,r)||Lf(t.lastActivity,n,r)}function jf(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!!Ff(t,{sessionIdleExpire:e,maxReplayDuration:n})&&("buffer"!==t.sampled||0!==t.segmentId)}function $f({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const o=r.stickySession&&function(){if(!Rf())return null;try{const t=Bu.sessionStorage.getItem(Uu);if(!t)return null;const e=JSON.parse(t);return Sf&&kf.infoTick("Loading existing session"),Df(e)}catch{return null}}();return o?jf(o,{sessionIdleExpire:t,maxReplayDuration:e})?(Sf&&kf.infoTick("Session in sessionStorage is expired, creating new one..."),Pf(r,{previousSessionId:o.id})):o:(Sf&&kf.infoTick("Creating new session"),Pf(r,{previousSessionId:n}))}function Bf(t,e,n){return!!zf(t,e)&&(Uf(t,e,n),!0)}async function Uf(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===t.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=function(t,e){try{if("function"==typeof e&&function(t){return t.type===sd.Custom}(t))return e(t)}catch(t){return Sf&&kf.exception(t,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}(e,t.getOptions().beforeAddRecordingEvent);if(!s)return;return await r.addEvent(s)}catch(e){const n=e&&e instanceof Cf,s=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;t.handleException(e),await t.stop({reason:s});const i=Fs();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function zf(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Yd(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now()||n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration&&(Sf&&kf.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function Hf(t){return!t.type}function Wf(t){return"transaction"===t.type}function qf(t){return"feedback"===t.type}function Vf(t){return!!t.category}function Yf(){const t=Ps().getPropagationContext().dsc;t&&delete t.replay_id;const e=bi();e&&delete wi(e).replay_id}function Kf(t,e){return e.map((({type:e,start:n,end:r,name:o,data:s})=>{const i=t.throttledAddEvent({type:sd.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function Gf(t,e){t.isEnabled()&&null!==e&&(function(t,e){return(!Sf||!t.getOptions()._experiments.traceInternals)&&function(t,e){const n=e?.getDsn(),r=e?.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){return!!e&&qc(t)===qc(e)}(t,r)}(e,Fs())}(t,e.name)||t.addUpdate((()=>(Kf(t,[e]),!0))))}function Jf(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Fu(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function Xf(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Qf(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function Zf(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:o,data:ls({method:s,statusCode:i,request:a,response:c})}}function tp(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function ep(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:o,warnings:s}=function(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>Hu,n=function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){const e=t.slice(0,Hu);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}(n);return r.body=o,s?.length&&(r._meta={warnings:s}),r}function np(t,e){return Object.entries(t).reduce(((n,[r,o])=>{const s=r.toLowerCase();return e.includes(s)&&t[r]&&(n[s]=o),n}),{})}function rp(t,e){const n=function(t,e=Bu.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Bu.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(t);return ns(n,e)}function op(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function sp(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?op(n,e):Array.isArray(n)?{}:np(n,e):{}}function ip(t){const e=Fs();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};e&&e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(e.data)try{(function(t){return"xhr"===t.category})(e)&&function(t){return t?.xhr}(n)&&(function(t,e){const{xhr:n,input:r}=e;if(!n)return;const o=Jf(r),s=n.getResponseHeader("content-length")?Xf(n.getResponseHeader("content-length")):function(t,e){try{return Jf("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch{return}}(n.response,n.responseType);void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}(e,n),async function(t,e,n){try{const r=function(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=t.data;if(!c)return null;if(!a||!rp(c,n.networkDetailAllowUrls)||rp(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:tp(d),response:tp(f)};const p=a[Ga],h=p?np(p.request_headers,n.networkRequestHeaders):{},m=np(function(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t}),{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?ju(i,kf):[void 0],[v,b]=n.networkCaptureBodies?function(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return function(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(e){return Sf&&kf.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Sf&&kf.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(t){e.push(t)}return Sf&&kf.warn("Failed to get xhr response body",...e),[void 0]}(a):[void 0],_=ep(h,d,g),S=ep(m,f,v);return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:y?Qf(_,y):_,response:b?Qf(S,b):S}}(t,e,n),o=Zf("resource.xhr",r);Gf(n.replay,o)}catch(t){Sf&&kf.exception(t,"Failed to capture xhr breadcrumb")}}(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t?.response}(n)&&(function(t,e){const{input:n,response:r}=e,o=Jf(n?$u(n):void 0),s=r?Xf(r.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}(e,n),async function(t,e,n){try{const r=await async function(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=e,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=rp(i,n.networkDetailAllowUrls)&&!rp(i,n.networkDetailDenyUrls),f=d?function({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const o=n?(i=e,1===(s=n).length&&"string"!=typeof s[0]?sp(s[0],i):2===s.length?sp(s[1],i):{}):{};var s,i;if(!t)return ep(o,r,void 0);const a=$u(n),[c,u]=ju(a,kf),l=ep(o,r,c);return u?Qf(l,u):l}(n,e.input,u):tp(u),p=await async function(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,o){if(!t&&void 0!==o)return tp(o);const s=r?op(r.headers,n):{};if(!r||!e&&void 0!==o)return ep(s,o,void 0);const[i,a]=await async function(t){const e=function(t){try{return t.clone()}catch(t){Sf&&kf.exception(t,"Failed to clone response body")}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{const t=await function(t){return new Promise(((e,n)=>{const r=$c((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(t){return await t.text()})(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}(e);return[t]}catch(t){return t instanceof Error&&t.message.indexOf("Timeout")>-1?(Sf&&kf.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Sf&&kf.exception(t,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:o}){try{const s=t?.length&&void 0===n?Jf(t):n;return r?ep(o,s,e?t:void 0):tp(s)}catch(t){return Sf&&kf.exception(t,"Failed to serialize response body"),ep(o,n,void 0)}}(i,{networkCaptureBodies:e,responseBodySize:o,captureDetails:t,headers:s});return a?Qf(c,a):c}(d,n,e.response,l);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:f,response:p}}(t,e,n),o=Zf("resource.fetch",r);Gf(n.replay,o)}catch(t){Sf&&kf.exception(t,"Failed to capture fetch breadcrumb")}}(e,n,t))}catch(t){Sf&&kf.exception(t,"Error when enriching network breadcrumb")}}(a,t,e)))}catch{}}function ap(t,{autoFlushOnFeedback:e}){const n=Fs();Va((t=>e=>{if(!t.isEnabled())return;const n=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?Xd(t.event):Qd(t.event),n=Vo(r,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:r,message:n}}(t);return of({category:`ui.${t.name}`,...uf(e,n)})}(e);if(!n)return;const r="click"===e.name,o=r?e.event:void 0;var s,i,a;!(r&&t.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=t.clickDetector,i=n,a=Xd(e.event),s.handleClick(i,a)),Gd(t,n)})(t)),Qa(function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(Kf(t,[n]),!1))))}}(t)),function(t){const e=Fs();e&&e.on("beforeAddBreadcrumb",(e=>function(t,e){if(!t.isEnabled()||!Vf(e))return;const n=function(t){return!Vf(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(t){const e=t.data?.arguments;if(!Array.isArray(e)||0===e.length)return of(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>Wu?(n=!0,`${t.slice(0,Wu)}…`):t;if("object"==typeof t)try{const e=ri(t,7);return JSON.stringify(e).length>Wu?(n=!0,`${JSON.stringify(e,null,2).slice(0,Wu)}…`):e}catch{}return t}));return of({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):of(t)}(e);n&&Gd(t,n)}(t,e)))}(t),ip(t);const r=function(t){return Object.assign(((e,n)=>{if(!t.isEnabled()||t.isPaused())return e;if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!Hf(e)&&!Wf(e)&&!qf(e))return e;if(!t.checkAndHandleExpiredSession())return Yf(),e;if(qf(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),function(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:sd.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}(t,e),e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length||!e.originalException?.__rrweb__)}(e,n)&&!t.getOptions()._experiments.captureExceptions)return Sf&&kf.log("Ignoring error from rrweb internals",e),null;const r=function(t,e){return"buffer"===t.recordingMode&&e.message!==zu&&!(!e.exception||e.type)&&Af(t.getOptions().errorSampleRate)}(t,e);return(r||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e}),{id:"Replay"})}(t);var o;o=r,Ls().addEventProcessor(o),n&&(n.on("beforeSendEvent",function(t){return e=>{t.isEnabled()&&Hf(e)&&function(t,e){const n=e.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))&&Gd(t,of({category:"replay.hydrate-error",data:{url:Ko()}}))}(t,e)}}(t)),n.on("afterSendEvent",function(t){return(e,n)=>{if(!t.isEnabled()||!Hf(e)&&!Wf(e))return;const r=n?.statusCode;!r||r<200||r>=300||(Wf(e)?function(t,e){const n=t.getContext();e.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,e):function(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();("function"!=typeof r||r(e))&&$c((async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}}))}(t,e))}}(t)),n.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),n.on("spanStart",(e=>{t.lastActiveSpan=e})),n.on("spanEnd",(e=>{t.lastActiveSpan=e})),n.on("beforeSendFeedback",(async(n,r)=>{const o=t.getSessionId();r?.includeReplay&&t.isEnabled()&&o&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&e&&await t.flush(),n.contexts.feedback.replay_id=o)})),e&&n.on("openFeedbackWidget",(async()=>{await t.flush()})))}function cp(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}const up=Io.navigator;function lp(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(Sf&&kf.warn("Received replay event after session expired."));const o=r||!e;e=!0,t.clickDetector&&function(t,e){try{if(!function(t){return 3===t.type}(e))return;const{source:n}=e.data;if(tf.has(n)&&t.registerMutation(e.timestamp),n===id.Scroll&&t.registerScroll(e.timestamp),function(t){return t.data.source===id.MouseInteraction}(e)){const{type:n,id:r}=e.data,o=Vd.mirror.getNode(r);o instanceof HTMLElement&&n===ad.Click&&t.registerClick(o)}}catch{}}(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&o&&t.setInitialState(),!Bf(t,n,o))return!0;if(!o)return!1;const e=t.session;if(function(t,e){e&&t.session&&0===t.session.segmentId&&Bf(t,function(t){const e=t.getOptions();return{type:sd.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,o),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(Sf&&kf.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),e.started=n,t.getOptions().stickySession&&Nf(e))}return e?.previousSessionId||"session"===t.recordingMode&&t.flush(),!0}))}}class dp extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class fp extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function pp(t,e={count:0,interval:5e3}){const{recordingData:n,onError:r}=t;if(n.length)try{return await async function({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=Fs(),f=Ps(),p=d?.getTransport(),h=d?.getDsn();if(!(d&&p&&h&&s.sampled))return zs({});const m={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:e,segment_id:n,replay_type:s.sampled},g=await async function({client:t,scope:e,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,o);const s=await ki(t.getOptions(),r,o,e,t,Ls());if(!s)return null;t.emit("postprocessEvent",s,o),s.platform=s.platform||"javascript";const i=t.getSdkMetadata(),{name:a,version:c}=i?.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:f,client:d,replayId:e,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),Sf&&kf.info("An event processor returned `null`, will not send event."),zs({});delete g.sdkProcessingMetadata;const y=function(t,e,n,r){return ea(la(t,ua(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(g,i,h,d.getOptions().tunnel);let v;try{v=await p.send(y)}catch(t){const e=new Error(zu);try{e.cause=t}catch{}throw e}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new dp(v.statusCode);const b=Uc({},v);if(Bc(b,"replay"))throw new fp(b);return v}(t),!0}catch(n){if(n instanceof dp||n instanceof fp)throw n;if(Oi("Replays",{_retryCount:e.count}),r&&r(n),e.count>=3){const t=new Error(`${zu} - max retries exceeded`);try{t.cause=n}catch{}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{$c((async()=>{try{await pp(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const hp="__THROTTLED";class mp{constructor({options:t,recordingOptions:e}){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=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,o,s;const i=n?.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function u(){return o&&clearTimeout(o),o=$c(a,e),i&&void 0===s&&(s=$c(a,i)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==s?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(t,e,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(i),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=o;return o=!0,t?"__SKIPPED":hp}o=!1;const a=r.get(i)||0;return r.set(i,a+1),t(...s)}}(((t,e)=>function(t,e,n){return zf(t,e)?Uf(t,e,n):Promise.resolve(null)}(this,t,e)),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 ef(this,o)),Sf){const e=t._experiments;kf.setConfig({captureExceptions:!!e.captureExceptions,traceInternals:!!e.traceInternals})}this._handleVisibilityChange=()=>{"visible"===Bu.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const t=of({category:"ui.blur"});this._doChangeToBackgroundTasks(t)},this._handleWindowFocus=()=>{const t=of({category:"ui.focus"});this._doChangeToForegroundTasks(t)},this._handleKeyboardEvent=t=>{!function(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=t;if(!i||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(i)||!s)return null;const a=e||r||o,c=1===s.length;if(!a&&c)return null;const u=Vo(i,{maxStringLength:200})||"<unknown>";return of({category:"ui.keyDown",message:u,data:{...uf(i,u).data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(e);n&&Gd(t,n)}(this,t)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(t){Sf&&kf.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options,r=e<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(t),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Sf&&kf.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Sf&&kf.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Sf&&kf.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Sf&&kf.info("Buffering is in progress, call `flush()` to save the replay"));Sf&&kf.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=$f({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Sf&&kf.info("Buffering is in progress, call `flush()` to save the replay"));Sf&&kf.infoTick("Starting replay in buffer mode");const t=$f({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Vd({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:lp(this),.../iPhone|iPad|iPod/i.test(up?.userAgent??"")||/Macintosh/i.test(up?.userAgent??"")&&up?.maxTouchPoints&&up?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{Sf&&kf.info("Stopping Replay"+(e?` triggered by ${e}`:"")),Yf(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,n=this,function(){if(Rf())try{Bu.sessionStorage.removeItem(Uu)}catch{}}(),n.session=void 0}catch(t){this.handleException(t)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Sf&&kf.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Sf&&kf.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();Sf&&kf.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&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&&Lf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${Bu.location.pathname}${Bu.location.hash}${Bu.location.search}`,e=`${Bu.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===hp){const t=of({category:"replay.throttled"});this.addUpdate((()=>!Bf(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||bi(),e=t&&vi(t),n=(e&&gi(e).data||{})[ii];if(e&&n&&["route","custom"].includes(n))return gi(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=function(t){try{const e=t||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const t=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(t)}());if(!e)return;Sf&&kf.info("Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new Mf(n)}catch(t){Sf&&kf.exception(t,"Failed to create compression worker")}}(e);if(t)return t}return Sf&&kf.info("Using simple buffer"),new Tf}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=$f({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!jf(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Bu.document.addEventListener("visibilitychange",this._handleVisibilityChange),Bu.addEventListener("blur",this._handleWindowBlur),Bu.addEventListener("focus",this._handleWindowFocus),Bu.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(ap(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=_f(this)}_removeListeners(){try{Bu.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Bu.removeEventListener("blur",this._handleWindowBlur),Bu.removeEventListener("focus",this._handleWindowFocus),Bu.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){this.session&&(Ff(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush()))}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):Sf&&kf.info("Document has become active, but session has expired"))}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:sd.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){let t=(e=this.performanceEntries,e.map(ff).filter(Boolean)).concat(this.replayPerformanceEntries);var e;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const e=this._context.initialTimestamp/1e3;t=t.filter((t=>t.start>=e))}return Promise.all(Kf(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e||this._requiresManualStart)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={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(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(t){try{return Promise.all(Kf(t,[cp(Bu.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-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 pp({replayId:t,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:t=>this.handleException(t)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const e=Fs();if(e){const n=t instanceof fp?"ratelimit_backoff":"send_error";e.recordDroppedEvent(n,"replay")}}}else Sf&&kf.error("No session or eventBuffer found to flush.")}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(Sf&&kf.error("Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return Sf&&kf.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&Sf&&kf.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(t){this.handleException(t)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Nf(this.session)}_onMutationHandler(t){const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=of({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function gp(t,e){return[...t,...e].join(",")}const yp='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',vp=["content-length","content-type","accept"];let bp=!1;function _p(t){return[...vp,...t.map((t=>t.toLowerCase()))]}var Sp,wp,Ep;window.wp.domReady,window.wc.date,window.wp.dataControls,window.wp.apiFetch,function(t){const e={...t};va(e,"react"),Oi("react",{version:o.version}),Wc(e)}({dsn:"https://971a8d22e72fade3cc3bc7ee7c0c2093@o248881.ingest.us.sentry.io/4506903329046528",integrations:[new class{constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_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:_=[],maskAttributes:S=["title","placeholder"],unmask:w=[],block:E=[],unblock:x=[],ignore:k=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:O}={}){this.name="Replay";const M=function({mask:t,unmask:e,block:n,unblock:r,ignore:o}){return{maskTextSelector:gp(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:gp(e,[]),blockSelector:gp(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:gp(r,[]),ignoreSelector:gp(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:_,unmask:w,block:E,unblock:x,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(t,e,n)=>function({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return r?o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?s:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:S,maskAllText:c,privacyOptions:M,key:t,value:e,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:_p(v),networkResponseHeaders:_p(b),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${yp}`:yp),this._isInitialized&&Vc())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return bp}set _isInitialized(t){bp=t}afterAllSetup(t){Vc()&&!this._replay&&(this._setup(t),this._initialize(t))}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(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(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(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const e=function(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ls(t)},o=fa(n.replaysSessionSampleRate),s=fa(n.replaysOnErrorSampleRate);return null==o&&null==s&&Qo((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=s&&(r.errorSampleRate=s),r}(this._initialOptions,t);this._replay=new mp({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.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\//]}),wp=null!==(Sp=window.wc?.wcSettings.WC_VERSION)&&void 0!==Sp?Sp:"unknown version",Ls().setTag("wc_version",wp),Ep=()=>{const t=document.getElementById("woocommerce-shipping-shipping-label-shipment_tracking");t&&(0,r.H)(t).render((0,Pt.jsx)(Eo,{labels:Object.values(ko()).flat()}))},"loading"!==document.readyState?Ep():document.addEventListener("DOMContentLoaded",Ep)},9835(t,e,n){t.exports=n(8880)}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[t](n,n.exports,s),n.exports}s.m=r,t=[],s.O=(e,n,r,o)=>{if(!n){var i=1/0;for(l=0;l<t.length;l++){for(var[n,r,o]=t[l],a=!0,c=0;c<n.length;c++)(!1&o||i>=o)&&Object.keys(s.O).every((t=>s.O[t](n[c])))?n.splice(c--,1):(a=!1,o<i&&(i=o));if(a){t.splice(l--,1);var u=r();void 0!==u&&(e=u)}}return e}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[n,r,o]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);s.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,s.d(o,i),o},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={383:0,206:0};s.O.j=e=>0===t[e];var e=(e,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((e=>0!==t[e]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)var l=c(s)}for(e&&e(n);u<i.length;u++)o=i[u],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(l)},n=globalThis.webpackChunkwoocommerce_shipping=globalThis.webpackChunkwoocommerce_shipping||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var i=s.O(void 0,[206],(()=>s(9801)));i=s.O(i)})();
//# sourceMappingURL=woocommerce-shipping-shipment-tracking.js.map
//# debugId=c8a552df-a1c9-5d89-a5e9-27e493386ede