From f2cb3e90b524b78c6062ef0a73b695603bcff818 Mon Sep 17 00:00:00 2001 From: Devin Baeten <71613313+devinbaeten@users.noreply.github.com> Date: Fri, 16 Jun 2023 21:48:23 -0500 Subject: [PATCH] Rebuilt --- .../{index-2c3c0506.js => index-1b4cc8a5.js} | 52 +++++++++---------- docs/index.html | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) rename docs/assets/{index-2c3c0506.js => index-1b4cc8a5.js} (86%) diff --git a/docs/assets/index-2c3c0506.js b/docs/assets/index-1b4cc8a5.js similarity index 86% rename from docs/assets/index-2c3c0506.js rename to docs/assets/index-1b4cc8a5.js index 29fa17d..de4d90d 100644 --- a/docs/assets/index-2c3c0506.js +++ b/docs/assets/index-1b4cc8a5.js @@ -1,33 +1,33 @@ -var lf=Object.defineProperty;var uf=(e,t,o)=>t in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var ff=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var a0=(e,t,o)=>(uf(e,typeof t!="symbol"?t+"":t,o),o);var FS=ff((YS,Xn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const M of i)if(M.type==="childList")for(const p of M.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&n(p)}).observe(document,{childList:!0,subtree:!0});function o(i){const M={};return i.integrity&&(M.integrity=i.integrity),i.referrerPolicy&&(M.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?M.credentials="include":i.crossOrigin==="anonymous"?M.credentials="omit":M.credentials="same-origin",M}function n(i){if(i.ep)return;i.ep=!0;const M=o(i);fetch(i.href,M)}})();var J1="top",ft="bottom",qt="right",Z1="left",Ap="auto",Co=[J1,ft,qt,Z1],S2="start",Wo="end",A3="clippingParents",ec="viewport",oo="popper",l3="reference",os=Co.reduce(function(e,t){return e.concat([t+"-"+S2,t+"-"+Wo])},[]),oc=[].concat(Co,[Ap]).reduce(function(e,t){return e.concat([t,t+"-"+S2,t+"-"+Wo])},[]),u3="beforeRead",f3="read",q3="afterRead",h3="beforeMain",W3="main",g3="afterMain",_3="beforeWrite",m3="write",R3="afterWrite",L3=[u3,f3,q3,h3,W3,g3,_3,m3,R3];function te(e){return e?(e.nodeName||"").toLowerCase():null}function ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function w2(e){var t=ht(e).Element;return e instanceof t||e instanceof Element}function Nt(e){var t=ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nc(e){if(typeof ShadowRoot>"u")return!1;var t=ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qf(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},i=t.attributes[o]||{},M=t.elements[o];!Nt(M)||!te(M)||(Object.assign(M.style,n),Object.keys(i).forEach(function(p){var b=i[p];b===!1?M.removeAttribute(p):M.setAttribute(p,b===!0?"":b)}))})}function hf(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],M=t.attributes[n]||{},p=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),b=p.reduce(function(s,r){return s[r]="",s},{});!Nt(i)||!te(i)||(Object.assign(i.style,b),Object.keys(M).forEach(function(s){i.removeAttribute(s)}))})}}const ic={name:"applyStyles",enabled:!0,phase:"write",fn:qf,effect:hf,requires:["computeStyles"]};function Kt(e){return e.split("-")[0]}var B2=Math.max,DM=Math.min,go=Math.round;function ns(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function y3(){return!/^((?!chrome|android).)*safari/i.test(ns())}function _o(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var n=e.getBoundingClientRect(),i=1,M=1;t&&Nt(e)&&(i=e.offsetWidth>0&&go(n.width)/e.offsetWidth||1,M=e.offsetHeight>0&&go(n.height)/e.offsetHeight||1);var p=w2(e)?ht(e):window,b=p.visualViewport,s=!y3()&&o,r=(n.left+(s&&b?b.offsetLeft:0))/i,a=(n.top+(s&&b?b.offsetTop:0))/M,A=n.width/i,u=n.height/M;return{width:A,height:u,top:a,right:r+A,bottom:a+u,left:r,x:r,y:a}}function Mc(e){var t=_o(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function N3(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&nc(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function me(e){return ht(e).getComputedStyle(e)}function Wf(e){return["table","td","th"].indexOf(te(e))>=0}function i2(e){return((w2(e)?e.ownerDocument:e.document)||window.document).documentElement}function lp(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(nc(e)?e.host:null)||i2(e)}function rz(e){return!Nt(e)||me(e).position==="fixed"?null:e.offsetParent}function gf(e){var t=/firefox/i.test(ns()),o=/Trident/i.test(ns());if(o&&Nt(e)){var n=me(e);if(n.position==="fixed")return null}var i=lp(e);for(nc(i)&&(i=i.host);Nt(i)&&["html","body"].indexOf(te(i))<0;){var M=me(i);if(M.transform!=="none"||M.perspective!=="none"||M.contain==="paint"||["transform","perspective"].indexOf(M.willChange)!==-1||t&&M.willChange==="filter"||t&&M.filter&&M.filter!=="none")return i;i=i.parentNode}return null}function ni(e){for(var t=ht(e),o=rz(e);o&&Wf(o)&&me(o).position==="static";)o=rz(o);return o&&(te(o)==="html"||te(o)==="body"&&me(o).position==="static")?t:o||gf(e)||t}function pc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qn(e,t,o){return B2(e,DM(t,o))}function _f(e,t,o){var n=qn(e,t,o);return n>o?o:n}function B3(){return{top:0,right:0,bottom:0,left:0}}function v3(e){return Object.assign({},B3(),e)}function T3(e,t){return t.reduce(function(o,n){return o[n]=e,o},{})}var mf=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,v3(typeof t!="number"?t:T3(t,Co))};function Rf(e){var t,o=e.state,n=e.name,i=e.options,M=o.elements.arrow,p=o.modifiersData.popperOffsets,b=Kt(o.placement),s=pc(b),r=[Z1,qt].indexOf(b)>=0,a=r?"height":"width";if(!(!M||!p)){var A=mf(i.padding,o),u=Mc(M),f=s==="y"?J1:Z1,W=s==="y"?ft:qt,_=o.rects.reference[a]+o.rects.reference[s]-p[s]-o.rects.popper[a],R=p[s]-o.rects.reference[s],L=ni(M),E=L?s==="y"?L.clientHeight||0:L.clientWidth||0:0,k=_/2-R/2,w=A[f],T=E-u[a]-A[W],d=E/2-u[a]/2+k,I=qn(w,d,T),C=s;o.modifiersData[n]=(t={},t[C]=I,t.centerOffset=I-d,t)}}function Lf(e){var t=e.state,o=e.options,n=o.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||N3(t.elements.popper,i)&&(t.elements.arrow=i))}const E3={name:"arrow",enabled:!0,phase:"main",fn:Rf,effect:Lf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mo(e){return e.split("-")[1]}var yf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nf(e,t){var o=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:go(o*i)/i||0,y:go(n*i)/i||0}}function zz(e){var t,o=e.popper,n=e.popperRect,i=e.placement,M=e.variation,p=e.offsets,b=e.position,s=e.gpuAcceleration,r=e.adaptive,a=e.roundOffsets,A=e.isFixed,u=p.x,f=u===void 0?0:u,W=p.y,_=W===void 0?0:W,R=typeof a=="function"?a({x:f,y:_}):{x:f,y:_};f=R.x,_=R.y;var L=p.hasOwnProperty("x"),E=p.hasOwnProperty("y"),k=Z1,w=J1,T=window;if(r){var d=ni(o),I="clientHeight",C="clientWidth";if(d===ht(o)&&(d=i2(o),me(d).position!=="static"&&b==="absolute"&&(I="scrollHeight",C="scrollWidth")),d=d,i===J1||(i===Z1||i===qt)&&M===Wo){w=ft;var J=A&&d===T&&T.visualViewport?T.visualViewport.height:d[I];_-=J-n.height,_*=s?1:-1}if(i===Z1||(i===J1||i===ft)&&M===Wo){k=qt;var G=A&&d===T&&T.visualViewport?T.visualViewport.width:d[C];f-=G-n.width,f*=s?1:-1}}var K=Object.assign({position:b},r&&yf),n0=a===!0?Nf({x:f,y:_},ht(o)):{x:f,y:_};if(f=n0.x,_=n0.y,s){var e0;return Object.assign({},K,(e0={},e0[w]=E?"0":"",e0[k]=L?"0":"",e0.transform=(T.devicePixelRatio||1)<=1?"translate("+f+"px, "+_+"px)":"translate3d("+f+"px, "+_+"px, 0)",e0))}return Object.assign({},K,(t={},t[w]=E?_+"px":"",t[k]=L?f+"px":"",t.transform="",t))}function Bf(e){var t=e.state,o=e.options,n=o.gpuAcceleration,i=n===void 0?!0:n,M=o.adaptive,p=M===void 0?!0:M,b=o.roundOffsets,s=b===void 0?!0:b,r={placement:Kt(t.placement),variation:mo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zz(Object.assign({},r,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:p,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zz(Object.assign({},r,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bf,data:{}};var Si={passive:!0};function vf(e){var t=e.state,o=e.instance,n=e.options,i=n.scroll,M=i===void 0?!0:i,p=n.resize,b=p===void 0?!0:p,s=ht(t.elements.popper),r=[].concat(t.scrollParents.reference,t.scrollParents.popper);return M&&r.forEach(function(a){a.addEventListener("scroll",o.update,Si)}),b&&s.addEventListener("resize",o.update,Si),function(){M&&r.forEach(function(a){a.removeEventListener("scroll",o.update,Si)}),b&&s.removeEventListener("resize",o.update,Si)}}const sc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vf,data:{}};var Tf={left:"right",right:"left",bottom:"top",top:"bottom"};function dM(e){return e.replace(/left|right|bottom|top/g,function(t){return Tf[t]})}var Ef={start:"end",end:"start"};function az(e){return e.replace(/start|end/g,function(t){return Ef[t]})}function cc(e){var t=ht(e),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function rc(e){return _o(i2(e)).left+cc(e).scrollLeft}function Sf(e,t){var o=ht(e),n=i2(e),i=o.visualViewport,M=n.clientWidth,p=n.clientHeight,b=0,s=0;if(i){M=i.width,p=i.height;var r=y3();(r||!r&&t==="fixed")&&(b=i.offsetLeft,s=i.offsetTop)}return{width:M,height:p,x:b+rc(e),y:s}}function wf(e){var t,o=i2(e),n=cc(e),i=(t=e.ownerDocument)==null?void 0:t.body,M=B2(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),p=B2(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),b=-n.scrollLeft+rc(e),s=-n.scrollTop;return me(i||o).direction==="rtl"&&(b+=B2(o.clientWidth,i?i.clientWidth:0)-M),{width:M,height:p,x:b,y:s}}function zc(e){var t=me(e),o=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+n)}function S3(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Nt(e)&&zc(e)?e:S3(lp(e))}function hn(e,t){var o;t===void 0&&(t=[]);var n=S3(e),i=n===((o=e.ownerDocument)==null?void 0:o.body),M=ht(n),p=i?[M].concat(M.visualViewport||[],zc(n)?n:[]):n,b=t.concat(p);return i?b:b.concat(hn(lp(p)))}function is(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xf(e,t){var o=_o(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function Oz(e,t,o){return t===ec?is(Sf(e,o)):w2(t)?xf(t,o):is(wf(i2(e)))}function Xf(e){var t=hn(lp(e)),o=["absolute","fixed"].indexOf(me(e).position)>=0,n=o&&Nt(e)?ni(e):e;return w2(n)?t.filter(function(i){return w2(i)&&N3(i,n)&&te(i)!=="body"}):[]}function kf(e,t,o,n){var i=t==="clippingParents"?Xf(e):[].concat(t),M=[].concat(i,[o]),p=M[0],b=M.reduce(function(s,r){var a=Oz(e,r,n);return s.top=B2(a.top,s.top),s.right=DM(a.right,s.right),s.bottom=DM(a.bottom,s.bottom),s.left=B2(a.left,s.left),s},Oz(e,p,n));return b.width=b.right-b.left,b.height=b.bottom-b.top,b.x=b.left,b.y=b.top,b}function w3(e){var t=e.reference,o=e.element,n=e.placement,i=n?Kt(n):null,M=n?mo(n):null,p=t.x+t.width/2-o.width/2,b=t.y+t.height/2-o.height/2,s;switch(i){case J1:s={x:p,y:t.y-o.height};break;case ft:s={x:p,y:t.y+t.height};break;case qt:s={x:t.x+t.width,y:b};break;case Z1:s={x:t.x-o.width,y:b};break;default:s={x:t.x,y:t.y}}var r=i?pc(i):null;if(r!=null){var a=r==="y"?"height":"width";switch(M){case S2:s[r]=s[r]-(t[a]/2-o[a]/2);break;case Wo:s[r]=s[r]+(t[a]/2-o[a]/2);break}}return s}function Ro(e,t){t===void 0&&(t={});var o=t,n=o.placement,i=n===void 0?e.placement:n,M=o.strategy,p=M===void 0?e.strategy:M,b=o.boundary,s=b===void 0?A3:b,r=o.rootBoundary,a=r===void 0?ec:r,A=o.elementContext,u=A===void 0?oo:A,f=o.altBoundary,W=f===void 0?!1:f,_=o.padding,R=_===void 0?0:_,L=v3(typeof R!="number"?R:T3(R,Co)),E=u===oo?l3:oo,k=e.rects.popper,w=e.elements[W?E:u],T=kf(w2(w)?w:w.contextElement||i2(e.elements.popper),s,a,p),d=_o(e.elements.reference),I=w3({reference:d,element:k,strategy:"absolute",placement:i}),C=is(Object.assign({},k,I)),J=u===oo?C:d,G={top:T.top-J.top+L.top,bottom:J.bottom-T.bottom+L.bottom,left:T.left-J.left+L.left,right:J.right-T.right+L.right},K=e.modifiersData.offset;if(u===oo&&K){var n0=K[i];Object.keys(G).forEach(function(e0){var O0=[qt,ft].indexOf(e0)>=0?1:-1,p0=[J1,ft].indexOf(e0)>=0?"y":"x";G[e0]+=n0[p0]*O0})}return G}function Cf(e,t){t===void 0&&(t={});var o=t,n=o.placement,i=o.boundary,M=o.rootBoundary,p=o.padding,b=o.flipVariations,s=o.allowedAutoPlacements,r=s===void 0?oc:s,a=mo(n),A=a?b?os:os.filter(function(W){return mo(W)===a}):Co,u=A.filter(function(W){return r.indexOf(W)>=0});u.length===0&&(u=A);var f=u.reduce(function(W,_){return W[_]=Ro(e,{placement:_,boundary:i,rootBoundary:M,padding:p})[Kt(_)],W},{});return Object.keys(f).sort(function(W,_){return f[W]-f[_]})}function Df(e){if(Kt(e)===Ap)return[];var t=dM(e);return[az(e),t,az(t)]}function Pf(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=o.mainAxis,M=i===void 0?!0:i,p=o.altAxis,b=p===void 0?!0:p,s=o.fallbackPlacements,r=o.padding,a=o.boundary,A=o.rootBoundary,u=o.altBoundary,f=o.flipVariations,W=f===void 0?!0:f,_=o.allowedAutoPlacements,R=t.options.placement,L=Kt(R),E=L===R,k=s||(E||!W?[dM(R)]:Df(R)),w=[R].concat(k).reduce(function(G0,U0){return G0.concat(Kt(U0)===Ap?Cf(t,{placement:U0,boundary:a,rootBoundary:A,padding:r,flipVariations:W,allowedAutoPlacements:_}):U0)},[]),T=t.rects.reference,d=t.rects.popper,I=new Map,C=!0,J=w[0],G=0;G=0,p0=O0?"width":"height",l0=Ro(t,{placement:K,boundary:a,rootBoundary:A,altBoundary:u,padding:r}),m0=O0?e0?qt:Z1:e0?ft:J1;T[p0]>d[p0]&&(m0=dM(m0));var c1=dM(m0),C0=[];if(M&&C0.push(l0[n0]<=0),b&&C0.push(l0[m0]<=0,l0[c1]<=0),C0.every(function(G0){return G0})){J=K,C=!1;break}I.set(K,C0)}if(C)for(var w1=W?3:1,i1=function(U0){var N0=w.find(function(f0){var V0=I.get(f0);if(V0)return V0.slice(0,U0).every(function(K0){return K0})});if(N0)return J=N0,"break"},R1=w1;R1>0;R1--){var r1=i1(R1);if(r1==="break")break}t.placement!==J&&(t.modifiersData[n]._skip=!0,t.placement=J,t.reset=!0)}}const x3={name:"flip",enabled:!0,phase:"main",fn:Pf,requiresIfExists:["offset"],data:{_skip:!1}};function dz(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Az(e){return[J1,qt,ft,Z1].some(function(t){return e[t]>=0})}function If(e){var t=e.state,o=e.name,n=t.rects.reference,i=t.rects.popper,M=t.modifiersData.preventOverflow,p=Ro(t,{elementContext:"reference"}),b=Ro(t,{altBoundary:!0}),s=dz(p,n),r=dz(b,i,M),a=Az(s),A=Az(r);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:r,isReferenceHidden:a,hasPopperEscaped:A},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":A})}const X3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:If};function Ff(e,t,o){var n=Kt(e),i=[Z1,J1].indexOf(n)>=0?-1:1,M=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,p=M[0],b=M[1];return p=p||0,b=(b||0)*i,[Z1,qt].indexOf(n)>=0?{x:b,y:p}:{x:p,y:b}}function Hf(e){var t=e.state,o=e.options,n=e.name,i=o.offset,M=i===void 0?[0,0]:i,p=oc.reduce(function(a,A){return a[A]=Ff(A,t.rects,M),a},{}),b=p[t.placement],s=b.x,r=b.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=r),t.modifiersData[n]=p}const k3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hf};function Uf(e){var t=e.state,o=e.name;t.modifiersData[o]=w3({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ac={name:"popperOffsets",enabled:!0,phase:"read",fn:Uf,data:{}};function jf(e){return e==="x"?"y":"x"}function Yf(e){var t=e.state,o=e.options,n=e.name,i=o.mainAxis,M=i===void 0?!0:i,p=o.altAxis,b=p===void 0?!1:p,s=o.boundary,r=o.rootBoundary,a=o.altBoundary,A=o.padding,u=o.tether,f=u===void 0?!0:u,W=o.tetherOffset,_=W===void 0?0:W,R=Ro(t,{boundary:s,rootBoundary:r,padding:A,altBoundary:a}),L=Kt(t.placement),E=mo(t.placement),k=!E,w=pc(L),T=jf(w),d=t.modifiersData.popperOffsets,I=t.rects.reference,C=t.rects.popper,J=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,G=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,n0={x:0,y:0};if(d){if(M){var e0,O0=w==="y"?J1:Z1,p0=w==="y"?ft:qt,l0=w==="y"?"height":"width",m0=d[w],c1=m0+R[O0],C0=m0-R[p0],w1=f?-C[l0]/2:0,i1=E===S2?I[l0]:C[l0],R1=E===S2?-C[l0]:-I[l0],r1=t.elements.arrow,G0=f&&r1?Mc(r1):{width:0,height:0},U0=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B3(),N0=U0[O0],f0=U0[p0],V0=qn(0,I[l0],G0[l0]),K0=k?I[l0]/2-w1-V0-N0-G.mainAxis:i1-V0-N0-G.mainAxis,L1=k?-I[l0]/2+w1+V0+f0+G.mainAxis:R1+V0+f0+G.mainAxis,A1=t.elements.arrow&&ni(t.elements.arrow),v=A1?w==="y"?A1.clientTop||0:A1.clientLeft||0:0,Y=(e0=K==null?void 0:K[w])!=null?e0:0,j=m0+K0-Y-v,b0=m0+L1-Y,Q=qn(f?DM(c1,j):c1,m0,f?B2(C0,b0):C0);d[w]=Q,n0[w]=Q-m0}if(b){var R0,g1=w==="x"?J1:Z1,k1=w==="x"?ft:qt,j0=d[T],ve=T==="y"?"height":"width",jo=j0+R[g1],Te=j0-R[k1],ct=[J1,Z1].indexOf(L)!==-1,jt=(R0=K==null?void 0:K[T])!=null?R0:0,ie=ct?jo:j0-I[ve]-C[ve]-jt+G.altAxis,Wi=ct?j0+I[ve]+C[ve]-jt-G.altAxis:Te,s2=f&&ct?_f(ie,j0,Wi):qn(f?ie:jo,j0,f?Wi:Te);d[T]=s2,n0[T]=s2-j0}t.modifiersData[n]=n0}}const C3={name:"preventOverflow",enabled:!0,phase:"main",fn:Yf,requiresIfExists:["offset"]};function $f(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gf(e){return e===ht(e)||!Nt(e)?cc(e):$f(e)}function Vf(e){var t=e.getBoundingClientRect(),o=go(t.width)/e.offsetWidth||1,n=go(t.height)/e.offsetHeight||1;return o!==1||n!==1}function Kf(e,t,o){o===void 0&&(o=!1);var n=Nt(t),i=Nt(t)&&Vf(t),M=i2(t),p=_o(e,i,o),b={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!o)&&((te(t)!=="body"||zc(M))&&(b=Gf(t)),Nt(t)?(s=_o(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):M&&(s.x=rc(M))),{x:p.left+b.scrollLeft-s.x,y:p.top+b.scrollTop-s.y,width:p.width,height:p.height}}function Qf(e){var t=new Map,o=new Set,n=[];e.forEach(function(M){t.set(M.name,M)});function i(M){o.add(M.name);var p=[].concat(M.requires||[],M.requiresIfExists||[]);p.forEach(function(b){if(!o.has(b)){var s=t.get(b);s&&i(s)}}),n.push(M)}return e.forEach(function(M){o.has(M.name)||i(M)}),n}function Jf(e){var t=Qf(e);return L3.reduce(function(o,n){return o.concat(t.filter(function(i){return i.phase===n}))},[])}function Zf(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function tq(e){var t=e.reduce(function(o,n){var i=o[n.name];return o[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}var lz={placement:"bottom",modifiers:[],strategy:"absolute"};function uz(){for(var e=arguments.length,t=new Array(e),o=0;ot in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var ff=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var a0=(e,t,o)=>(uf(e,typeof t!="symbol"?t+"":t,o),o);var FS=ff((YS,Xn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const p of i)if(p.type==="childList")for(const M of p.addedNodes)M.tagName==="LINK"&&M.rel==="modulepreload"&&n(M)}).observe(document,{childList:!0,subtree:!0});function o(i){const p={};return i.integrity&&(p.integrity=i.integrity),i.referrerPolicy&&(p.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?p.credentials="include":i.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function n(i){if(i.ep)return;i.ep=!0;const p=o(i);fetch(i.href,p)}})();var J1="top",ft="bottom",qt="right",Z1="left",AM="auto",Co=[J1,ft,qt,Z1],S2="start",Wo="end",A3="clippingParents",ec="viewport",oo="popper",l3="reference",os=Co.reduce(function(e,t){return e.concat([t+"-"+S2,t+"-"+Wo])},[]),oc=[].concat(Co,[AM]).reduce(function(e,t){return e.concat([t,t+"-"+S2,t+"-"+Wo])},[]),u3="beforeRead",f3="read",q3="afterRead",h3="beforeMain",W3="main",g3="afterMain",_3="beforeWrite",m3="write",R3="afterWrite",L3=[u3,f3,q3,h3,W3,g3,_3,m3,R3];function te(e){return e?(e.nodeName||"").toLowerCase():null}function ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function w2(e){var t=ht(e).Element;return e instanceof t||e instanceof Element}function Nt(e){var t=ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nc(e){if(typeof ShadowRoot>"u")return!1;var t=ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qf(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},i=t.attributes[o]||{},p=t.elements[o];!Nt(p)||!te(p)||(Object.assign(p.style,n),Object.keys(i).forEach(function(M){var b=i[M];b===!1?p.removeAttribute(M):p.setAttribute(M,b===!0?"":b)}))})}function hf(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],p=t.attributes[n]||{},M=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),b=M.reduce(function(s,r){return s[r]="",s},{});!Nt(i)||!te(i)||(Object.assign(i.style,b),Object.keys(p).forEach(function(s){i.removeAttribute(s)}))})}}const ic={name:"applyStyles",enabled:!0,phase:"write",fn:qf,effect:hf,requires:["computeStyles"]};function Kt(e){return e.split("-")[0]}var B2=Math.max,Dp=Math.min,go=Math.round;function ns(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function y3(){return!/^((?!chrome|android).)*safari/i.test(ns())}function _o(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var n=e.getBoundingClientRect(),i=1,p=1;t&&Nt(e)&&(i=e.offsetWidth>0&&go(n.width)/e.offsetWidth||1,p=e.offsetHeight>0&&go(n.height)/e.offsetHeight||1);var M=w2(e)?ht(e):window,b=M.visualViewport,s=!y3()&&o,r=(n.left+(s&&b?b.offsetLeft:0))/i,a=(n.top+(s&&b?b.offsetTop:0))/p,A=n.width/i,u=n.height/p;return{width:A,height:u,top:a,right:r+A,bottom:a+u,left:r,x:r,y:a}}function pc(e){var t=_o(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function N3(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&nc(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function me(e){return ht(e).getComputedStyle(e)}function Wf(e){return["table","td","th"].indexOf(te(e))>=0}function i2(e){return((w2(e)?e.ownerDocument:e.document)||window.document).documentElement}function lM(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(nc(e)?e.host:null)||i2(e)}function rz(e){return!Nt(e)||me(e).position==="fixed"?null:e.offsetParent}function gf(e){var t=/firefox/i.test(ns()),o=/Trident/i.test(ns());if(o&&Nt(e)){var n=me(e);if(n.position==="fixed")return null}var i=lM(e);for(nc(i)&&(i=i.host);Nt(i)&&["html","body"].indexOf(te(i))<0;){var p=me(i);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||t&&p.willChange==="filter"||t&&p.filter&&p.filter!=="none")return i;i=i.parentNode}return null}function ni(e){for(var t=ht(e),o=rz(e);o&&Wf(o)&&me(o).position==="static";)o=rz(o);return o&&(te(o)==="html"||te(o)==="body"&&me(o).position==="static")?t:o||gf(e)||t}function Mc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qn(e,t,o){return B2(e,Dp(t,o))}function _f(e,t,o){var n=qn(e,t,o);return n>o?o:n}function B3(){return{top:0,right:0,bottom:0,left:0}}function v3(e){return Object.assign({},B3(),e)}function T3(e,t){return t.reduce(function(o,n){return o[n]=e,o},{})}var mf=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,v3(typeof t!="number"?t:T3(t,Co))};function Rf(e){var t,o=e.state,n=e.name,i=e.options,p=o.elements.arrow,M=o.modifiersData.popperOffsets,b=Kt(o.placement),s=Mc(b),r=[Z1,qt].indexOf(b)>=0,a=r?"height":"width";if(!(!p||!M)){var A=mf(i.padding,o),u=pc(p),f=s==="y"?J1:Z1,W=s==="y"?ft:qt,_=o.rects.reference[a]+o.rects.reference[s]-M[s]-o.rects.popper[a],R=M[s]-o.rects.reference[s],L=ni(p),E=L?s==="y"?L.clientHeight||0:L.clientWidth||0:0,k=_/2-R/2,w=A[f],T=E-u[a]-A[W],d=E/2-u[a]/2+k,I=qn(w,d,T),D=s;o.modifiersData[n]=(t={},t[D]=I,t.centerOffset=I-d,t)}}function Lf(e){var t=e.state,o=e.options,n=o.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||N3(t.elements.popper,i)&&(t.elements.arrow=i))}const E3={name:"arrow",enabled:!0,phase:"main",fn:Rf,effect:Lf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mo(e){return e.split("-")[1]}var yf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nf(e,t){var o=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:go(o*i)/i||0,y:go(n*i)/i||0}}function zz(e){var t,o=e.popper,n=e.popperRect,i=e.placement,p=e.variation,M=e.offsets,b=e.position,s=e.gpuAcceleration,r=e.adaptive,a=e.roundOffsets,A=e.isFixed,u=M.x,f=u===void 0?0:u,W=M.y,_=W===void 0?0:W,R=typeof a=="function"?a({x:f,y:_}):{x:f,y:_};f=R.x,_=R.y;var L=M.hasOwnProperty("x"),E=M.hasOwnProperty("y"),k=Z1,w=J1,T=window;if(r){var d=ni(o),I="clientHeight",D="clientWidth";if(d===ht(o)&&(d=i2(o),me(d).position!=="static"&&b==="absolute"&&(I="scrollHeight",D="scrollWidth")),d=d,i===J1||(i===Z1||i===qt)&&p===Wo){w=ft;var J=A&&d===T&&T.visualViewport?T.visualViewport.height:d[I];_-=J-n.height,_*=s?1:-1}if(i===Z1||(i===J1||i===ft)&&p===Wo){k=qt;var G=A&&d===T&&T.visualViewport?T.visualViewport.width:d[D];f-=G-n.width,f*=s?1:-1}}var K=Object.assign({position:b},r&&yf),n0=a===!0?Nf({x:f,y:_},ht(o)):{x:f,y:_};if(f=n0.x,_=n0.y,s){var e0;return Object.assign({},K,(e0={},e0[w]=E?"0":"",e0[k]=L?"0":"",e0.transform=(T.devicePixelRatio||1)<=1?"translate("+f+"px, "+_+"px)":"translate3d("+f+"px, "+_+"px, 0)",e0))}return Object.assign({},K,(t={},t[w]=E?_+"px":"",t[k]=L?f+"px":"",t.transform="",t))}function Bf(e){var t=e.state,o=e.options,n=o.gpuAcceleration,i=n===void 0?!0:n,p=o.adaptive,M=p===void 0?!0:p,b=o.roundOffsets,s=b===void 0?!0:b,r={placement:Kt(t.placement),variation:mo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zz(Object.assign({},r,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:M,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zz(Object.assign({},r,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bf,data:{}};var Si={passive:!0};function vf(e){var t=e.state,o=e.instance,n=e.options,i=n.scroll,p=i===void 0?!0:i,M=n.resize,b=M===void 0?!0:M,s=ht(t.elements.popper),r=[].concat(t.scrollParents.reference,t.scrollParents.popper);return p&&r.forEach(function(a){a.addEventListener("scroll",o.update,Si)}),b&&s.addEventListener("resize",o.update,Si),function(){p&&r.forEach(function(a){a.removeEventListener("scroll",o.update,Si)}),b&&s.removeEventListener("resize",o.update,Si)}}const sc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vf,data:{}};var Tf={left:"right",right:"left",bottom:"top",top:"bottom"};function dp(e){return e.replace(/left|right|bottom|top/g,function(t){return Tf[t]})}var Ef={start:"end",end:"start"};function az(e){return e.replace(/start|end/g,function(t){return Ef[t]})}function cc(e){var t=ht(e),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function rc(e){return _o(i2(e)).left+cc(e).scrollLeft}function Sf(e,t){var o=ht(e),n=i2(e),i=o.visualViewport,p=n.clientWidth,M=n.clientHeight,b=0,s=0;if(i){p=i.width,M=i.height;var r=y3();(r||!r&&t==="fixed")&&(b=i.offsetLeft,s=i.offsetTop)}return{width:p,height:M,x:b+rc(e),y:s}}function wf(e){var t,o=i2(e),n=cc(e),i=(t=e.ownerDocument)==null?void 0:t.body,p=B2(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),M=B2(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),b=-n.scrollLeft+rc(e),s=-n.scrollTop;return me(i||o).direction==="rtl"&&(b+=B2(o.clientWidth,i?i.clientWidth:0)-p),{width:p,height:M,x:b,y:s}}function zc(e){var t=me(e),o=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+n)}function S3(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Nt(e)&&zc(e)?e:S3(lM(e))}function hn(e,t){var o;t===void 0&&(t=[]);var n=S3(e),i=n===((o=e.ownerDocument)==null?void 0:o.body),p=ht(n),M=i?[p].concat(p.visualViewport||[],zc(n)?n:[]):n,b=t.concat(M);return i?b:b.concat(hn(lM(M)))}function is(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xf(e,t){var o=_o(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function Oz(e,t,o){return t===ec?is(Sf(e,o)):w2(t)?xf(t,o):is(wf(i2(e)))}function Xf(e){var t=hn(lM(e)),o=["absolute","fixed"].indexOf(me(e).position)>=0,n=o&&Nt(e)?ni(e):e;return w2(n)?t.filter(function(i){return w2(i)&&N3(i,n)&&te(i)!=="body"}):[]}function kf(e,t,o,n){var i=t==="clippingParents"?Xf(e):[].concat(t),p=[].concat(i,[o]),M=p[0],b=p.reduce(function(s,r){var a=Oz(e,r,n);return s.top=B2(a.top,s.top),s.right=Dp(a.right,s.right),s.bottom=Dp(a.bottom,s.bottom),s.left=B2(a.left,s.left),s},Oz(e,M,n));return b.width=b.right-b.left,b.height=b.bottom-b.top,b.x=b.left,b.y=b.top,b}function w3(e){var t=e.reference,o=e.element,n=e.placement,i=n?Kt(n):null,p=n?mo(n):null,M=t.x+t.width/2-o.width/2,b=t.y+t.height/2-o.height/2,s;switch(i){case J1:s={x:M,y:t.y-o.height};break;case ft:s={x:M,y:t.y+t.height};break;case qt:s={x:t.x+t.width,y:b};break;case Z1:s={x:t.x-o.width,y:b};break;default:s={x:t.x,y:t.y}}var r=i?Mc(i):null;if(r!=null){var a=r==="y"?"height":"width";switch(p){case S2:s[r]=s[r]-(t[a]/2-o[a]/2);break;case Wo:s[r]=s[r]+(t[a]/2-o[a]/2);break}}return s}function Ro(e,t){t===void 0&&(t={});var o=t,n=o.placement,i=n===void 0?e.placement:n,p=o.strategy,M=p===void 0?e.strategy:p,b=o.boundary,s=b===void 0?A3:b,r=o.rootBoundary,a=r===void 0?ec:r,A=o.elementContext,u=A===void 0?oo:A,f=o.altBoundary,W=f===void 0?!1:f,_=o.padding,R=_===void 0?0:_,L=v3(typeof R!="number"?R:T3(R,Co)),E=u===oo?l3:oo,k=e.rects.popper,w=e.elements[W?E:u],T=kf(w2(w)?w:w.contextElement||i2(e.elements.popper),s,a,M),d=_o(e.elements.reference),I=w3({reference:d,element:k,strategy:"absolute",placement:i}),D=is(Object.assign({},k,I)),J=u===oo?D:d,G={top:T.top-J.top+L.top,bottom:J.bottom-T.bottom+L.bottom,left:T.left-J.left+L.left,right:J.right-T.right+L.right},K=e.modifiersData.offset;if(u===oo&&K){var n0=K[i];Object.keys(G).forEach(function(e0){var O0=[qt,ft].indexOf(e0)>=0?1:-1,M0=[J1,ft].indexOf(e0)>=0?"y":"x";G[e0]+=n0[M0]*O0})}return G}function Cf(e,t){t===void 0&&(t={});var o=t,n=o.placement,i=o.boundary,p=o.rootBoundary,M=o.padding,b=o.flipVariations,s=o.allowedAutoPlacements,r=s===void 0?oc:s,a=mo(n),A=a?b?os:os.filter(function(W){return mo(W)===a}):Co,u=A.filter(function(W){return r.indexOf(W)>=0});u.length===0&&(u=A);var f=u.reduce(function(W,_){return W[_]=Ro(e,{placement:_,boundary:i,rootBoundary:p,padding:M})[Kt(_)],W},{});return Object.keys(f).sort(function(W,_){return f[W]-f[_]})}function Df(e){if(Kt(e)===AM)return[];var t=dp(e);return[az(e),t,az(t)]}function Pf(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=o.mainAxis,p=i===void 0?!0:i,M=o.altAxis,b=M===void 0?!0:M,s=o.fallbackPlacements,r=o.padding,a=o.boundary,A=o.rootBoundary,u=o.altBoundary,f=o.flipVariations,W=f===void 0?!0:f,_=o.allowedAutoPlacements,R=t.options.placement,L=Kt(R),E=L===R,k=s||(E||!W?[dp(R)]:Df(R)),w=[R].concat(k).reduce(function(G0,U0){return G0.concat(Kt(U0)===AM?Cf(t,{placement:U0,boundary:a,rootBoundary:A,padding:r,flipVariations:W,allowedAutoPlacements:_}):U0)},[]),T=t.rects.reference,d=t.rects.popper,I=new Map,D=!0,J=w[0],G=0;G=0,M0=O0?"width":"height",l0=Ro(t,{placement:K,boundary:a,rootBoundary:A,altBoundary:u,padding:r}),m0=O0?e0?qt:Z1:e0?ft:J1;T[M0]>d[M0]&&(m0=dp(m0));var c1=dp(m0),C0=[];if(p&&C0.push(l0[n0]<=0),b&&C0.push(l0[m0]<=0,l0[c1]<=0),C0.every(function(G0){return G0})){J=K,D=!1;break}I.set(K,C0)}if(D)for(var w1=W?3:1,i1=function(U0){var N0=w.find(function(f0){var V0=I.get(f0);if(V0)return V0.slice(0,U0).every(function(K0){return K0})});if(N0)return J=N0,"break"},R1=w1;R1>0;R1--){var r1=i1(R1);if(r1==="break")break}t.placement!==J&&(t.modifiersData[n]._skip=!0,t.placement=J,t.reset=!0)}}const x3={name:"flip",enabled:!0,phase:"main",fn:Pf,requiresIfExists:["offset"],data:{_skip:!1}};function dz(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Az(e){return[J1,qt,ft,Z1].some(function(t){return e[t]>=0})}function If(e){var t=e.state,o=e.name,n=t.rects.reference,i=t.rects.popper,p=t.modifiersData.preventOverflow,M=Ro(t,{elementContext:"reference"}),b=Ro(t,{altBoundary:!0}),s=dz(M,n),r=dz(b,i,p),a=Az(s),A=Az(r);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:r,isReferenceHidden:a,hasPopperEscaped:A},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":A})}const X3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:If};function Ff(e,t,o){var n=Kt(e),i=[Z1,J1].indexOf(n)>=0?-1:1,p=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,M=p[0],b=p[1];return M=M||0,b=(b||0)*i,[Z1,qt].indexOf(n)>=0?{x:b,y:M}:{x:M,y:b}}function Hf(e){var t=e.state,o=e.options,n=e.name,i=o.offset,p=i===void 0?[0,0]:i,M=oc.reduce(function(a,A){return a[A]=Ff(A,t.rects,p),a},{}),b=M[t.placement],s=b.x,r=b.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=r),t.modifiersData[n]=M}const k3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hf};function Uf(e){var t=e.state,o=e.name;t.modifiersData[o]=w3({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ac={name:"popperOffsets",enabled:!0,phase:"read",fn:Uf,data:{}};function jf(e){return e==="x"?"y":"x"}function Yf(e){var t=e.state,o=e.options,n=e.name,i=o.mainAxis,p=i===void 0?!0:i,M=o.altAxis,b=M===void 0?!1:M,s=o.boundary,r=o.rootBoundary,a=o.altBoundary,A=o.padding,u=o.tether,f=u===void 0?!0:u,W=o.tetherOffset,_=W===void 0?0:W,R=Ro(t,{boundary:s,rootBoundary:r,padding:A,altBoundary:a}),L=Kt(t.placement),E=mo(t.placement),k=!E,w=Mc(L),T=jf(w),d=t.modifiersData.popperOffsets,I=t.rects.reference,D=t.rects.popper,J=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,G=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,n0={x:0,y:0};if(d){if(p){var e0,O0=w==="y"?J1:Z1,M0=w==="y"?ft:qt,l0=w==="y"?"height":"width",m0=d[w],c1=m0+R[O0],C0=m0-R[M0],w1=f?-D[l0]/2:0,i1=E===S2?I[l0]:D[l0],R1=E===S2?-D[l0]:-I[l0],r1=t.elements.arrow,G0=f&&r1?pc(r1):{width:0,height:0},U0=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B3(),N0=U0[O0],f0=U0[M0],V0=qn(0,I[l0],G0[l0]),K0=k?I[l0]/2-w1-V0-N0-G.mainAxis:i1-V0-N0-G.mainAxis,L1=k?-I[l0]/2+w1+V0+f0+G.mainAxis:R1+V0+f0+G.mainAxis,A1=t.elements.arrow&&ni(t.elements.arrow),v=A1?w==="y"?A1.clientTop||0:A1.clientLeft||0:0,Y=(e0=K==null?void 0:K[w])!=null?e0:0,j=m0+K0-Y-v,b0=m0+L1-Y,Q=qn(f?Dp(c1,j):c1,m0,f?B2(C0,b0):C0);d[w]=Q,n0[w]=Q-m0}if(b){var R0,g1=w==="x"?J1:Z1,k1=w==="x"?ft:qt,j0=d[T],ve=T==="y"?"height":"width",jo=j0+R[g1],Te=j0-R[k1],ct=[J1,Z1].indexOf(L)!==-1,jt=(R0=K==null?void 0:K[T])!=null?R0:0,ie=ct?jo:j0-I[ve]-D[ve]-jt+G.altAxis,Wi=ct?j0+I[ve]+D[ve]-jt-G.altAxis:Te,s2=f&&ct?_f(ie,j0,Wi):qn(f?ie:jo,j0,f?Wi:Te);d[T]=s2,n0[T]=s2-j0}t.modifiersData[n]=n0}}const C3={name:"preventOverflow",enabled:!0,phase:"main",fn:Yf,requiresIfExists:["offset"]};function $f(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gf(e){return e===ht(e)||!Nt(e)?cc(e):$f(e)}function Vf(e){var t=e.getBoundingClientRect(),o=go(t.width)/e.offsetWidth||1,n=go(t.height)/e.offsetHeight||1;return o!==1||n!==1}function Kf(e,t,o){o===void 0&&(o=!1);var n=Nt(t),i=Nt(t)&&Vf(t),p=i2(t),M=_o(e,i,o),b={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!o)&&((te(t)!=="body"||zc(p))&&(b=Gf(t)),Nt(t)?(s=_o(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):p&&(s.x=rc(p))),{x:M.left+b.scrollLeft-s.x,y:M.top+b.scrollTop-s.y,width:M.width,height:M.height}}function Qf(e){var t=new Map,o=new Set,n=[];e.forEach(function(p){t.set(p.name,p)});function i(p){o.add(p.name);var M=[].concat(p.requires||[],p.requiresIfExists||[]);M.forEach(function(b){if(!o.has(b)){var s=t.get(b);s&&i(s)}}),n.push(p)}return e.forEach(function(p){o.has(p.name)||i(p)}),n}function Jf(e){var t=Qf(e);return L3.reduce(function(o,n){return o.concat(t.filter(function(i){return i.phase===n}))},[])}function Zf(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function tq(e){var t=e.reduce(function(o,n){var i=o[n.name];return o[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}var lz={placement:"bottom",modifiers:[],strategy:"absolute"};function uz(){for(var e=arguments.length,t=new Array(e),o=0;o(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),e),bq=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),sq=e=>{do e+=Math.floor(Math.random()*Mq);while(document.getElementById(e));return e},cq=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const n=Number.parseFloat(t),i=Number.parseFloat(o);return!n&&!i?0:(t=t.split(",")[0],o=o.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(o))*pq)},I3=e=>{e.dispatchEvent(new Event(Ms))},he=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),Ve=e=>he(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(P3(e)):null,Do=e=>{if(!he(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",o=e.closest("details:not([open])");if(!o)return t;if(o!==e){const n=e.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return t},Ke=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",F3=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?F3(e.parentNode):null},PM=()=>{},ii=e=>{e.offsetHeight},H3=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,hb=[],rq=e=>{document.readyState==="loading"?(hb.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of hb)t()}),hb.push(e)):e()},Bt=()=>document.documentElement.dir==="rtl",Et=e=>{rq(()=>{const t=H3();if(t){const o=e.NAME,n=t.fn[o];t.fn[o]=e.jQueryInterface,t.fn[o].Constructor=e,t.fn[o].noConflict=()=>(t.fn[o]=n,e.jQueryInterface)}})},pt=(e,t=[],o=e)=>typeof e=="function"?e(...t):o,U3=(e,t,o=!0)=>{if(!o){pt(e);return}const n=5,i=cq(t)+n;let M=!1;const p=({target:b})=>{b===t&&(M=!0,t.removeEventListener(Ms,p),pt(e))};t.addEventListener(Ms,p),setTimeout(()=>{M||I3(t)},i)},dc=(e,t,o,n)=>{const i=e.length;let M=e.indexOf(t);return M===-1?!o&&n?e[i-1]:e[0]:(M+=o?1:-1,n&&(M=(M+i)%i),e[Math.max(0,Math.min(M,i-1))])},zq=/[^.]*(?=\..*)\.|.*/,aq=/\..*/,Oq=/::\d+$/,Wb={};let fz=1;const j3={mouseenter:"mouseover",mouseleave:"mouseout"},dq=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Y3(e,t){return t&&`${t}::${fz++}`||e.uidEvent||fz++}function $3(e){const t=Y3(e);return e.uidEvent=t,Wb[t]=Wb[t]||{},Wb[t]}function Aq(e,t){return function o(n){return Ac(n,{delegateTarget:e}),o.oneOff&&o0.off(e,n.type,t),t.apply(e,[n])}}function lq(e,t,o){return function n(i){const M=e.querySelectorAll(t);for(let{target:p}=i;p&&p!==this;p=p.parentNode)for(const b of M)if(b===p)return Ac(i,{delegateTarget:p}),n.oneOff&&o0.off(e,i.type,t,o),o.apply(p,[i])}}function G3(e,t,o=null){return Object.values(e).find(n=>n.callable===t&&n.delegationSelector===o)}function V3(e,t,o){const n=typeof t=="string",i=n?o:t||o;let M=K3(e);return dq.has(M)||(M=e),[n,i,M]}function qz(e,t,o,n,i){if(typeof t!="string"||!e)return;let[M,p,b]=V3(t,o,n);t in j3&&(p=(W=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return W.call(this,_)})(p));const s=$3(e),r=s[b]||(s[b]={}),a=G3(r,p,M?o:null);if(a){a.oneOff=a.oneOff&&i;return}const A=Y3(p,t.replace(zq,"")),u=M?lq(e,o,p):Aq(e,p);u.delegationSelector=M?o:null,u.callable=p,u.oneOff=i,u.uidEvent=A,r[A]=u,e.addEventListener(b,u,M)}function ps(e,t,o,n,i){const M=G3(t[o],n,i);M&&(e.removeEventListener(o,M,!!i),delete t[o][M.uidEvent])}function uq(e,t,o,n){const i=t[o]||{};for(const[M,p]of Object.entries(i))M.includes(n)&&ps(e,t,o,p.callable,p.delegationSelector)}function K3(e){return e=e.replace(aq,""),j3[e]||e}const o0={on(e,t,o,n){qz(e,t,o,n,!1)},one(e,t,o,n){qz(e,t,o,n,!0)},off(e,t,o,n){if(typeof t!="string"||!e)return;const[i,M,p]=V3(t,o,n),b=p!==t,s=$3(e),r=s[p]||{},a=t.startsWith(".");if(typeof M<"u"){if(!Object.keys(r).length)return;ps(e,s,p,M,i?o:null);return}if(a)for(const A of Object.keys(s))uq(e,s,A,t.slice(1));for(const[A,u]of Object.entries(r)){const f=A.replace(Oq,"");(!b||t.includes(f))&&ps(e,s,p,u.callable,u.delegationSelector)}},trigger(e,t,o){if(typeof t!="string"||!e)return null;const n=H3(),i=K3(t),M=t!==i;let p=null,b=!0,s=!0,r=!1;M&&n&&(p=n.Event(t,o),n(e).trigger(p),b=!p.isPropagationStopped(),s=!p.isImmediatePropagationStopped(),r=p.isDefaultPrevented());const a=Ac(new Event(t,{bubbles:b,cancelable:!0}),o);return r&&a.preventDefault(),s&&e.dispatchEvent(a),a.defaultPrevented&&p&&p.preventDefault(),a}};function Ac(e,t={}){for(const[o,n]of Object.entries(t))try{e[o]=n}catch{Object.defineProperty(e,o,{configurable:!0,get(){return n}})}return e}function hz(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function gb(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const We={setDataAttribute(e,t,o){e.setAttribute(`data-bs-${gb(t)}`,o)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${gb(t)}`)},getDataAttributes(e){if(!e)return{};const t={},o=Object.keys(e.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=hz(e.dataset[n])}return t},getDataAttribute(e,t){return hz(e.getAttribute(`data-bs-${gb(t)}`))}};let Mi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,o){const n=he(o)?We.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...he(o)?We.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[n,i]of Object.entries(o)){const M=t[n],p=he(M)?"element":bq(M);if(!new RegExp(i).test(p))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${p}" but expected type "${i}".`)}}};const fq="5.3.0-alpha2";class Ht extends Mi{constructor(t,o){super(),t=Ve(t),t&&(this._element=t,this._config=this._getConfig(o),qb.set(this._element,this.constructor.DATA_KEY,this))}dispose(){qb.remove(this._element,this.constructor.DATA_KEY),o0.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,n=!0){U3(t,o,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return qb.get(Ve(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return fq}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const _b=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return P3(t)},h0={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(o=>o.matches(t))},parents(e,t){const o=[];let n=e.parentNode.closest(t);for(;n;)o.push(n),n=n.parentNode.closest(t);return o},prev(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(o=>!Ke(o)&&Do(o))},getSelectorFromElement(e){const t=_b(e);return t&&h0.findOne(t)?t:null},getElementFromSelector(e){const t=_b(e);return t?h0.findOne(t):null},getMultipleElementsFromSelector(e){const t=_b(e);return t?h0.find(t):[]}},fp=(e,t="hide")=>{const o=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;o0.on(document,o,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ke(this))return;const M=h0.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(M)[t]()})},qq="alert",hq="bs.alert",Q3=`.${hq}`,Wq=`close${Q3}`,gq=`closed${Q3}`,_q="fade",mq="show";class qp extends Ht{static get NAME(){return qq}close(){if(o0.trigger(this._element,Wq).defaultPrevented)return;this._element.classList.remove(mq);const o=this._element.classList.contains(_q);this._queueCallback(()=>this._destroyElement(),this._element,o)}_destroyElement(){this._element.remove(),o0.trigger(this._element,gq),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=qp.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}fp(qp,"close");Et(qp);const Rq="button",Lq="bs.button",yq=`.${Lq}`,Nq=".data-api",Bq="active",Wz='[data-bs-toggle="button"]',vq=`click${yq}${Nq}`;class hp extends Ht{static get NAME(){return Rq}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Bq))}static jQueryInterface(t){return this.each(function(){const o=hp.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}o0.on(document,vq,Wz,e=>{e.preventDefault();const t=e.target.closest(Wz);hp.getOrCreateInstance(t).toggle()});Et(hp);const Tq="swipe",Po=".bs.swipe",Eq=`touchstart${Po}`,Sq=`touchmove${Po}`,wq=`touchend${Po}`,xq=`pointerdown${Po}`,Xq=`pointerup${Po}`,kq="touch",Cq="pen",Dq="pointer-event",Pq=40,Iq={endCallback:null,leftCallback:null,rightCallback:null},Fq={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class IM extends Mi{constructor(t,o){super(),this._element=t,!(!t||!IM.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Iq}static get DefaultType(){return Fq}static get NAME(){return Tq}dispose(){o0.off(this._element,Po)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),pt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Pq)return;const o=t/this._deltaX;this._deltaX=0,o&&pt(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(o0.on(this._element,xq,t=>this._start(t)),o0.on(this._element,Xq,t=>this._end(t)),this._element.classList.add(Dq)):(o0.on(this._element,Eq,t=>this._start(t)),o0.on(this._element,Sq,t=>this._move(t)),o0.on(this._element,wq,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Cq||t.pointerType===kq)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Hq="carousel",Uq="bs.carousel",M2=`.${Uq}`,J3=".data-api",jq="ArrowLeft",Yq="ArrowRight",$q=500,en="next",V2="prev",no="left",AM="right",Gq=`slide${M2}`,mb=`slid${M2}`,Vq=`keydown${M2}`,Kq=`mouseenter${M2}`,Qq=`mouseleave${M2}`,Jq=`dragstart${M2}`,Zq=`load${M2}${J3}`,th=`click${M2}${J3}`,Z3="carousel",wi="active",eh="slide",oh="carousel-item-end",nh="carousel-item-start",ih="carousel-item-next",Mh="carousel-item-prev",td=".active",ed=".carousel-item",ph=td+ed,bh=".carousel-item img",sh=".carousel-indicators",ch="[data-bs-slide], [data-bs-slide-to]",rh='[data-bs-ride="carousel"]',zh={[jq]:AM,[Yq]:no},ah={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Oh={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class pi extends Ht{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=h0.findOne(sh,this._element),this._addEventListeners(),this._config.ride===Z3&&this.cycle()}static get Default(){return ah}static get DefaultType(){return Oh}static get NAME(){return Hq}next(){this._slide(en)}nextWhenVisible(){!document.hidden&&Do(this._element)&&this.next()}prev(){this._slide(V2)}pause(){this._isSliding&&I3(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){o0.one(this._element,mb,()=>this.cycle());return}this.cycle()}}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding){o0.one(this._element,mb,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?en:V2;this._slide(i,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&o0.on(this._element,Vq,t=>this._keydown(t)),this._config.pause==="hover"&&(o0.on(this._element,Kq,()=>this.pause()),o0.on(this._element,Qq,()=>this._maybeEnableCycle())),this._config.touch&&IM.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of h0.find(bh,this._element))o0.on(n,Jq,i=>i.preventDefault());const o={leftCallback:()=>this._slide(this._directionToOrder(no)),rightCallback:()=>this._slide(this._directionToOrder(AM)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$q+this._config.interval))}};this._swipeHelper=new IM(this._element,o)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=zh[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=h0.findOne(td,this._indicatorsElement);o.classList.remove(wi),o.removeAttribute("aria-current");const n=h0.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(wi),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const n=this._getActive(),i=t===en,M=o||dc(this._getItems(),n,i,this._config.wrap);if(M===n)return;const p=this._getItemIndex(M),b=f=>o0.trigger(this._element,f,{relatedTarget:M,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:p});if(b(Gq).defaultPrevented||!n||!M)return;const r=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(p),this._activeElement=M;const a=i?nh:oh,A=i?ih:Mh;M.classList.add(A),ii(M),n.classList.add(a),M.classList.add(a);const u=()=>{M.classList.remove(a,A),M.classList.add(wi),n.classList.remove(wi,A,a),this._isSliding=!1,b(mb)};this._queueCallback(u,n,this._isAnimated()),r&&this.cycle()}_isAnimated(){return this._element.classList.contains(eh)}_getActive(){return h0.findOne(ph,this._element)}_getItems(){return h0.find(ed,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Bt()?t===no?V2:en:t===no?en:V2}_orderToDirection(t){return Bt()?t===V2?no:AM:t===V2?AM:no}static jQueryInterface(t){return this.each(function(){const o=pi.getOrCreateInstance(this,t);if(typeof t=="number"){o.to(t);return}if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}o0.on(document,th,ch,function(e){const t=h0.getElementFromSelector(this);if(!t||!t.classList.contains(Z3))return;e.preventDefault();const o=pi.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(We.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});o0.on(window,Zq,()=>{const e=h0.find(rh);for(const t of e)pi.getOrCreateInstance(t)});Et(pi);const dh="collapse",Ah="bs.collapse",bi=`.${Ah}`,lh=".data-api",uh=`show${bi}`,fh=`shown${bi}`,qh=`hide${bi}`,hh=`hidden${bi}`,Wh=`click${bi}${lh}`,Rb="show",bo="collapse",xi="collapsing",gh="collapsed",_h=`:scope .${bo} .${bo}`,mh="collapse-horizontal",Rh="width",Lh="height",yh=".collapse.show, .collapse.collapsing",bs='[data-bs-toggle="collapse"]',Nh={parent:null,toggle:!0},Bh={parent:"(null|element)",toggle:"boolean"};class kn extends Ht{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const n=h0.find(bs);for(const i of n){const M=h0.getSelectorFromElement(i),p=h0.find(M).filter(b=>b===this._element);M!==null&&p.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Nh}static get DefaultType(){return Bh}static get NAME(){return dh}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(yh).filter(b=>b!==this._element).map(b=>kn.getOrCreateInstance(b,{toggle:!1}))),t.length&&t[0]._isTransitioning||o0.trigger(this._element,uh).defaultPrevented)return;for(const b of t)b.hide();const n=this._getDimension();this._element.classList.remove(bo),this._element.classList.add(xi),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(xi),this._element.classList.add(bo,Rb),this._element.style[n]="",o0.trigger(this._element,fh)},p=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[p]}px`}hide(){if(this._isTransitioning||!this._isShown()||o0.trigger(this._element,qh).defaultPrevented)return;const o=this._getDimension();this._element.style[o]=`${this._element.getBoundingClientRect()[o]}px`,ii(this._element),this._element.classList.add(xi),this._element.classList.remove(bo,Rb);for(const i of this._triggerArray){const M=h0.getElementFromSelector(i);M&&!this._isShown(M)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(xi),this._element.classList.add(bo),o0.trigger(this._element,hh)};this._element.style[o]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Rb)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Ve(t.parent),t}_getDimension(){return this._element.classList.contains(mh)?Rh:Lh}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(bs);for(const o of t){const n=h0.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(t){const o=h0.find(_h,this._config.parent);return h0.find(t,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const n of t)n.classList.toggle(gh,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const n=kn.getOrCreateInstance(this,o);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}o0.on(document,Wh,bs,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of h0.getMultipleElementsFromSelector(this))kn.getOrCreateInstance(t,{toggle:!1}).toggle()});Et(kn);const gz="dropdown",vh="bs.dropdown",P2=`.${vh}`,lc=".data-api",Th="Escape",_z="Tab",Eh="ArrowUp",mz="ArrowDown",Sh=2,wh=`hide${P2}`,xh=`hidden${P2}`,Xh=`show${P2}`,kh=`shown${P2}`,od=`click${P2}${lc}`,nd=`keydown${P2}${lc}`,Ch=`keyup${P2}${lc}`,io="show",Dh="dropup",Ph="dropend",Ih="dropstart",Fh="dropup-center",Hh="dropdown-center",m2='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Uh=`${m2}.${io}`,lM=".dropdown-menu",jh=".navbar",Yh=".navbar-nav",$h=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Gh=Bt()?"top-end":"top-start",Vh=Bt()?"top-start":"top-end",Kh=Bt()?"bottom-end":"bottom-start",Qh=Bt()?"bottom-start":"bottom-end",Jh=Bt()?"left-start":"right-start",Zh=Bt()?"right-start":"left-start",t4="top",e4="bottom",o4={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},n4={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Qt extends Ht{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=h0.next(this._element,lM)[0]||h0.prev(this._element,lM)[0]||h0.findOne(lM,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return o4}static get DefaultType(){return n4}static get NAME(){return gz}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ke(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!o0.trigger(this._element,Xh,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Yh))for(const n of[].concat(...document.body.children))o0.on(n,"mouseover",PM);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(io),this._element.classList.add(io),o0.trigger(this._element,kh,t)}}hide(){if(Ke(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!o0.trigger(this._element,wh,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))o0.off(n,"mouseover",PM);this._popper&&this._popper.destroy(),this._menu.classList.remove(io),this._element.classList.remove(io),this._element.setAttribute("aria-expanded","false"),We.removeDataAttribute(this._menu,"popper"),o0.trigger(this._element,xh,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!he(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${gz.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof D3>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:he(this._config.reference)?t=Ve(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Oc(t,this._menu,o)}_isShown(){return this._menu.classList.contains(io)}_getPlacement(){const t=this._parent;if(t.classList.contains(Ph))return Jh;if(t.classList.contains(Ih))return Zh;if(t.classList.contains(Fh))return t4;if(t.classList.contains(Hh))return e4;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Dh)?o?Vh:Gh:o?Qh:Kh}_detectNavbar(){return this._element.closest(jh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(We.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...pt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:o}){const n=h0.find($h,this._menu).filter(i=>Do(i));n.length&&dc(n,o,t===mz,!n.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=Qt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===Sh||t.type==="keyup"&&t.key!==_z)return;const o=h0.find(Uh);for(const n of o){const i=Qt.getInstance(n);if(!i||i._config.autoClose===!1)continue;const M=t.composedPath(),p=M.includes(i._menu);if(M.includes(i._element)||i._config.autoClose==="inside"&&!p||i._config.autoClose==="outside"&&p||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===_z||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const b={relatedTarget:i._element};t.type==="click"&&(b.clickEvent=t),i._completeHide(b)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),n=t.key===Th,i=[Eh,mz].includes(t.key);if(!i&&!n||o&&!n)return;t.preventDefault();const M=this.matches(m2)?this:h0.prev(this,m2)[0]||h0.next(this,m2)[0]||h0.findOne(m2,t.delegateTarget.parentNode),p=Qt.getOrCreateInstance(M);if(i){t.stopPropagation(),p.show(),p._selectMenuItem(t);return}p._isShown()&&(t.stopPropagation(),p.hide(),M.focus())}}o0.on(document,nd,m2,Qt.dataApiKeydownHandler);o0.on(document,nd,lM,Qt.dataApiKeydownHandler);o0.on(document,od,Qt.clearMenus);o0.on(document,Ch,Qt.clearMenus);o0.on(document,od,m2,function(e){e.preventDefault(),Qt.getOrCreateInstance(this).toggle()});Et(Qt);const id="backdrop",i4="fade",Rz="show",Lz=`mousedown.bs.${id}`,M4={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},p4={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Md extends Mi{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return M4}static get DefaultType(){return p4}static get NAME(){return id}show(t){if(!this._config.isVisible){pt(t);return}this._append();const o=this._getElement();this._config.isAnimated&&ii(o),o.classList.add(Rz),this._emulateAnimation(()=>{pt(t)})}hide(t){if(!this._config.isVisible){pt(t);return}this._getElement().classList.remove(Rz),this._emulateAnimation(()=>{this.dispose(),pt(t)})}dispose(){this._isAppended&&(o0.off(this._element,Lz),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(i4),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ve(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),o0.on(t,Lz,()=>{pt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){U3(t,this._getElement(),this._config.isAnimated)}}const b4="focustrap",s4="bs.focustrap",FM=`.${s4}`,c4=`focusin${FM}`,r4=`keydown.tab${FM}`,z4="Tab",a4="forward",yz="backward",O4={autofocus:!0,trapElement:null},d4={autofocus:"boolean",trapElement:"element"};class pd extends Mi{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return O4}static get DefaultType(){return d4}static get NAME(){return b4}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o0.off(document,FM),o0.on(document,c4,t=>this._handleFocusin(t)),o0.on(document,r4,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o0.off(document,FM))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const n=h0.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===yz?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===z4&&(this._lastTabNavDirection=t.shiftKey?yz:a4)}}const Nz=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bz=".sticky-top",Xi="padding-right",vz="margin-right";class ss{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Xi,o=>o+t),this._setElementAttributes(Nz,Xi,o=>o+t),this._setElementAttributes(Bz,vz,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Xi),this._resetElementAttributes(Nz,Xi),this._resetElementAttributes(Bz,vz)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,n){const i=this.getWidth(),M=p=>{if(p!==this._element&&window.innerWidth>p.clientWidth+i)return;this._saveInitialAttribute(p,o);const b=window.getComputedStyle(p).getPropertyValue(o);p.style.setProperty(o,`${n(Number.parseFloat(b))}px`)};this._applyManipulationCallback(t,M)}_saveInitialAttribute(t,o){const n=t.style.getPropertyValue(o);n&&We.setDataAttribute(t,o,n)}_resetElementAttributes(t,o){const n=i=>{const M=We.getDataAttribute(i,o);if(M===null){i.style.removeProperty(o);return}We.removeDataAttribute(i,o),i.style.setProperty(o,M)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,o){if(he(t)){o(t);return}for(const n of h0.find(t,this._element))o(n)}}const A4="modal",l4="bs.modal",vt=`.${l4}`,u4=".data-api",f4="Escape",q4=`hide${vt}`,h4=`hidePrevented${vt}`,bd=`hidden${vt}`,sd=`show${vt}`,W4=`shown${vt}`,g4=`resize${vt}`,_4=`click.dismiss${vt}`,m4=`mousedown.dismiss${vt}`,R4=`keydown.dismiss${vt}`,L4=`click${vt}${u4}`,Tz="modal-open",y4="fade",Ez="show",Lb="modal-static",N4=".modal.show",B4=".modal-dialog",v4=".modal-body",T4='[data-bs-toggle="modal"]',E4={backdrop:!0,focus:!0,keyboard:!0},S4={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Lo extends Ht{constructor(t,o){super(t,o),this._dialog=h0.findOne(B4,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ss,this._addEventListeners()}static get Default(){return E4}static get DefaultType(){return S4}static get NAME(){return A4}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||o0.trigger(this._element,sd,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tz),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||o0.trigger(this._element,q4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ez),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){o0.off(window,vt),o0.off(this._dialog,vt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Md({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new pd({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=h0.findOne(v4,this._dialog);o&&(o.scrollTop=0),ii(this._element),this._element.classList.add(Ez);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,o0.trigger(this._element,W4,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){o0.on(this._element,R4,t=>{if(t.key===f4){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),o0.on(window,g4,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),o0.on(this._element,m4,t=>{o0.one(this._element,_4,o=>{if(!(this._element!==t.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Tz),this._resetAdjustments(),this._scrollBar.reset(),o0.trigger(this._element,bd)})}_isAnimated(){return this._element.classList.contains(y4)}_triggerBackdropTransition(){if(o0.trigger(this._element,h4).defaultPrevented)return;const o=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Lb)||(o||(this._element.style.overflowY="hidden"),this._element.classList.add(Lb),this._queueCallback(()=>{this._element.classList.remove(Lb),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!t){const i=Bt()?"paddingLeft":"paddingRight";this._element.style[i]=`${o}px`}if(!n&&t){const i=Bt()?"paddingRight":"paddingLeft";this._element.style[i]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const n=Lo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](o)}})}}o0.on(document,L4,T4,function(e){const t=h0.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),o0.one(t,sd,i=>{i.defaultPrevented||o0.one(t,bd,()=>{Do(this)&&this.focus()})});const o=h0.findOne(N4);o&&Lo.getInstance(o).hide(),Lo.getOrCreateInstance(t).toggle(this)});fp(Lo);Et(Lo);const w4="offcanvas",x4="bs.offcanvas",Le=`.${x4}`,cd=".data-api",X4=`load${Le}${cd}`,k4="Escape",Sz="show",wz="showing",xz="hiding",C4="offcanvas-backdrop",rd=".offcanvas.show",D4=`show${Le}`,P4=`shown${Le}`,I4=`hide${Le}`,Xz=`hidePrevented${Le}`,zd=`hidden${Le}`,F4=`resize${Le}`,H4=`click${Le}${cd}`,U4=`keydown.dismiss${Le}`,j4='[data-bs-toggle="offcanvas"]',Y4={backdrop:!0,keyboard:!0,scroll:!1},$4={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Qe extends Ht{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Y4}static get DefaultType(){return $4}static get NAME(){return w4}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||o0.trigger(this._element,D4,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ss().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(wz);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Sz),this._element.classList.remove(wz),o0.trigger(this._element,P4,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||o0.trigger(this._element,I4).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(xz),this._backdrop.hide();const o=()=>{this._element.classList.remove(Sz,xz),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ss().reset(),o0.trigger(this._element,zd)};this._queueCallback(o,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){o0.trigger(this._element,Xz);return}this.hide()},o=!!this._config.backdrop;return new Md({className:C4,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?t:null})}_initializeFocusTrap(){return new pd({trapElement:this._element})}_addEventListeners(){o0.on(this._element,U4,t=>{if(t.key===k4){if(this._config.keyboard){this.hide();return}o0.trigger(this._element,Xz)}})}static jQueryInterface(t){return this.each(function(){const o=Qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}o0.on(document,H4,j4,function(e){const t=h0.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ke(this))return;o0.one(t,zd,()=>{Do(this)&&this.focus()});const o=h0.findOne(rd);o&&o!==t&&Qe.getInstance(o).hide(),Qe.getOrCreateInstance(t).toggle(this)});o0.on(window,X4,()=>{for(const e of h0.find(rd))Qe.getOrCreateInstance(e).show()});o0.on(window,F4,()=>{for(const e of h0.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Qe.getOrCreateInstance(e).hide()});fp(Qe);Et(Qe);const G4=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),V4=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,K4=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Q4=(e,t)=>{const o=e.nodeName.toLowerCase();return t.includes(o)?G4.has(o)?!!(V4.test(e.nodeValue)||K4.test(e.nodeValue)):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(o))},J4=/^aria-[\w-]*$/i,ad={"*":["class","dir","id","lang","role",J4],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Z4(e,t,o){if(!e.length)return e;if(o&&typeof o=="function")return o(e);const i=new window.DOMParser().parseFromString(e,"text/html"),M=[].concat(...i.body.querySelectorAll("*"));for(const p of M){const b=p.nodeName.toLowerCase();if(!Object.keys(t).includes(b)){p.remove();continue}const s=[].concat(...p.attributes),r=[].concat(t["*"]||[],t[b]||[]);for(const a of s)Q4(a,r)||p.removeAttribute(a.nodeName)}return i.body.innerHTML}const t5="TemplateFactory",e5={allowList:ad,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},o5={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},n5={entry:"(string|element|function|null)",selector:"(string|element)"};class i5 extends Mi{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return e5}static get DefaultType(){return o5}static get NAME(){return t5}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,M]of Object.entries(this._config.content))this._setContent(t,M,i);const o=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,n]of Object.entries(t))super._typeCheckConfig({selector:o,entry:n},n5)}_setContent(t,o,n){const i=h0.findOne(n,t);if(i){if(o=this._resolvePossibleFunction(o),!o){i.remove();return}if(he(o)){this._putElementInTemplate(Ve(o),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(o);return}i.textContent=o}}_maybeSanitize(t){return this._config.sanitize?Z4(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return pt(t,[this])}_putElementInTemplate(t,o){if(this._config.html){o.innerHTML="",o.append(t);return}o.textContent=t.textContent}}const M5="tooltip",p5=new Set(["sanitize","allowList","sanitizeFn"]),yb="fade",b5="modal",ki="show",s5=".tooltip-inner",kz=`.${b5}`,Cz="hide.bs.modal",on="hover",Nb="focus",c5="click",r5="manual",z5="hide",a5="hidden",O5="show",d5="shown",A5="inserted",l5="click",u5="focusin",f5="focusout",q5="mouseenter",h5="mouseleave",W5={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},g5={allowList:ad,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},_5={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let Wp=class Od extends Ht{constructor(t,o){if(typeof D3>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return g5}static get DefaultType(){return _5}static get NAME(){return M5}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),o0.off(this._element.closest(kz),Cz,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=o0.trigger(this._element,this.constructor.eventName(O5)),n=(F3(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:M}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(M.append(i),o0.trigger(this._element,this.constructor.eventName(A5))),this._popper=this._createPopper(i),i.classList.add(ki),"ontouchstart"in document.documentElement)for(const b of[].concat(...document.body.children))o0.on(b,"mouseover",PM);const p=()=>{o0.trigger(this._element,this.constructor.eventName(d5)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(p,this.tip,this._isAnimated())}hide(){if(!this._isShown()||o0.trigger(this._element,this.constructor.eventName(z5)).defaultPrevented)return;if(this._getTipElement().classList.remove(ki),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))o0.off(i,"mouseover",PM);this._activeTrigger[c5]=!1,this._activeTrigger[Nb]=!1,this._activeTrigger[on]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),o0.trigger(this._element,this.constructor.eventName(a5)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(yb,ki),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=sq(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(yb),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new i5({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[s5]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(yb)}_isShown(){return this.tip&&this.tip.classList.contains(ki)}_createPopper(t){const o=pt(this._config.placement,[this,t,this._element]),n=W5[o.toUpperCase()];return Oc(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return pt(t,[this._element])}_getPopperConfig(t){const o={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...pt(this._config.popperConfig,[o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")o0.on(this._element,this.constructor.eventName(l5),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(o!==r5){const n=o===on?this.constructor.eventName(q5):this.constructor.eventName(u5),i=o===on?this.constructor.eventName(h5):this.constructor.eventName(f5);o0.on(this._element,n,this._config.selector,M=>{const p=this._initializeOnDelegatedTarget(M);p._activeTrigger[M.type==="focusin"?Nb:on]=!0,p._enter()}),o0.on(this._element,i,this._config.selector,M=>{const p=this._initializeOnDelegatedTarget(M);p._activeTrigger[M.type==="focusout"?Nb:on]=p._element.contains(M.relatedTarget),p._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},o0.on(this._element.closest(kz),Cz,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=We.getDataAttributes(this._element);for(const n of Object.keys(o))p5.has(n)&&delete o[n];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Ve(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(t[o]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const o=Od.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}};Et(Wp);const m5="popover",R5=".popover-header",L5=".popover-body",y5={...Wp.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},N5={...Wp.DefaultType,content:"(null|string|element|function)"};class uc extends Wp{static get Default(){return y5}static get DefaultType(){return N5}static get NAME(){return m5}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[R5]:this._getTitle(),[L5]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=uc.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}}Et(uc);const B5="scrollspy",v5="bs.scrollspy",fc=`.${v5}`,T5=".data-api",E5=`activate${fc}`,Dz=`click${fc}`,S5=`load${fc}${T5}`,w5="dropdown-item",K2="active",x5='[data-bs-spy="scroll"]',Bb="[href]",X5=".nav, .list-group",Pz=".nav-link",k5=".nav-item",C5=".list-group-item",D5=`${Pz}, ${k5} > ${Pz}, ${C5}`,P5=".dropdown",I5=".dropdown-toggle",F5={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},H5={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class gp extends Ht{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return F5}static get DefaultType(){return H5}static get NAME(){return B5}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ve(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(o0.off(this._config.target,Dz),o0.on(this._config.target,Dz,Bb,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const n=this._rootElement||window,i=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=p=>this._targetLinks.get(`#${p.target.id}`),n=p=>{this._previousScrollData.visibleEntryTop=p.target.offsetTop,this._process(o(p))},i=(this._rootElement||document.documentElement).scrollTop,M=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const p of t){if(!p.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(p));continue}const b=p.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(M&&b){if(n(p),!i)return;continue}!M&&!b&&n(p)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=h0.find(Bb,this._config.target);for(const o of t){if(!o.hash||Ke(o))continue;const n=h0.findOne(o.hash,this._element);Do(n)&&(this._targetLinks.set(o.hash,o),this._observableSections.set(o.hash,n))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(K2),this._activateParents(t),o0.trigger(this._element,E5,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(w5)){h0.findOne(I5,t.closest(P5)).classList.add(K2);return}for(const o of h0.parents(t,X5))for(const n of h0.prev(o,D5))n.classList.add(K2)}_clearActiveClass(t){t.classList.remove(K2);const o=h0.find(`${Bb}.${K2}`,t);for(const n of o)n.classList.remove(K2)}static jQueryInterface(t){return this.each(function(){const o=gp.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}o0.on(window,S5,()=>{for(const e of h0.find(x5))gp.getOrCreateInstance(e)});Et(gp);const U5="tab",j5="bs.tab",I2=`.${j5}`,Y5=`hide${I2}`,$5=`hidden${I2}`,G5=`show${I2}`,V5=`shown${I2}`,K5=`click${I2}`,Q5=`keydown${I2}`,J5=`load${I2}`,Z5="ArrowLeft",Iz="ArrowRight",tW="ArrowUp",Fz="ArrowDown",R2="active",Hz="fade",vb="show",eW="dropdown",oW=".dropdown-toggle",nW=".dropdown-menu",Tb=":not(.dropdown-toggle)",iW='.list-group, .nav, [role="tablist"]',MW=".nav-item, .list-group-item",pW=`.nav-link${Tb}, .list-group-item${Tb}, [role="tab"]${Tb}`,dd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Eb=`${pW}, ${dd}`,bW=`.${R2}[data-bs-toggle="tab"], .${R2}[data-bs-toggle="pill"], .${R2}[data-bs-toggle="list"]`;class yo extends Ht{constructor(t){super(t),this._parent=this._element.closest(iW),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),o0.on(this._element,Q5,o=>this._keydown(o)))}static get NAME(){return U5}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),n=o?o0.trigger(o,Y5,{relatedTarget:t}):null;o0.trigger(t,G5,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){if(!t)return;t.classList.add(R2),this._activate(h0.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(vb);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),o0.trigger(t,V5,{relatedTarget:o})};this._queueCallback(n,t,t.classList.contains(Hz))}_deactivate(t,o){if(!t)return;t.classList.remove(R2),t.blur(),this._deactivate(h0.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(vb);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),o0.trigger(t,$5,{relatedTarget:o})};this._queueCallback(n,t,t.classList.contains(Hz))}_keydown(t){if(![Z5,Iz,tW,Fz].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=[Iz,Fz].includes(t.key),n=dc(this._getChildren().filter(i=>!Ke(i)),t.target,o,!0);n&&(n.focus({preventScroll:!0}),yo.getOrCreateInstance(n).show())}_getChildren(){return h0.find(Eb,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",o),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=h0.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const n=this._getOuterElement(t);if(!n.classList.contains(eW))return;const i=(M,p)=>{const b=h0.findOne(M,n);b&&b.classList.toggle(p,o)};i(oW,R2),i(nW,vb),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,n){t.hasAttribute(o)||t.setAttribute(o,n)}_elemIsActive(t){return t.classList.contains(R2)}_getInnerElement(t){return t.matches(Eb)?t:h0.findOne(Eb,t)}_getOuterElement(t){return t.closest(MW)||t}static jQueryInterface(t){return this.each(function(){const o=yo.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}o0.on(document,K5,dd,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ke(this)&&yo.getOrCreateInstance(this).show()});o0.on(window,J5,()=>{for(const e of h0.find(bW))yo.getOrCreateInstance(e)});Et(yo);const sW="toast",cW="bs.toast",p2=`.${cW}`,rW=`mouseover${p2}`,zW=`mouseout${p2}`,aW=`focusin${p2}`,OW=`focusout${p2}`,dW=`hide${p2}`,AW=`hidden${p2}`,lW=`show${p2}`,uW=`shown${p2}`,fW="fade",Uz="hide",Ci="show",Di="showing",qW={animation:"boolean",autohide:"boolean",delay:"number"},hW={animation:!0,autohide:!0,delay:5e3};class _p extends Ht{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return hW}static get DefaultType(){return qW}static get NAME(){return sW}show(){if(o0.trigger(this._element,lW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(fW);const o=()=>{this._element.classList.remove(Di),o0.trigger(this._element,uW),this._maybeScheduleHide()};this._element.classList.remove(Uz),ii(this._element),this._element.classList.add(Ci,Di),this._queueCallback(o,this._element,this._config.animation)}hide(){if(!this.isShown()||o0.trigger(this._element,dW).defaultPrevented)return;const o=()=>{this._element.classList.add(Uz),this._element.classList.remove(Di,Ci),o0.trigger(this._element,AW)};this._element.classList.add(Di),this._queueCallback(o,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ci),super.dispose()}isShown(){return this._element.classList.contains(Ci)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){o0.on(this._element,rW,t=>this._onInteraction(t,!0)),o0.on(this._element,zW,t=>this._onInteraction(t,!1)),o0.on(this._element,aW,t=>this._onInteraction(t,!0)),o0.on(this._element,OW,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=_p.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}fp(_p);Et(_p);const Ad=Object.prototype.toString;function ld(e){switch(Ad.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ze(e,Error)}}function Io(e,t){return Ad.call(e)===`[object ${t}]`}function ud(e){return Io(e,"ErrorEvent")}function jz(e){return Io(e,"DOMError")}function WW(e){return Io(e,"DOMException")}function Je(e){return Io(e,"String")}function fd(e){return e===null||typeof e!="object"&&typeof e!="function"}function No(e){return Io(e,"Object")}function qc(e){return typeof Event<"u"&&Ze(e,Event)}function gW(e){return typeof Element<"u"&&Ze(e,Element)}function _W(e){return Io(e,"RegExp")}function hc(e){return!!(e&&e.then&&typeof e.then=="function")}function mW(e){return No(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function qd(e){return typeof e=="number"&&e!==e}function Ze(e,t){try{return e instanceof t}catch{return!1}}function Pi(e){return e&&e.Math==Math?e:void 0}const st=typeof globalThis=="object"&&Pi(globalThis)||typeof window=="object"&&Pi(window)||typeof self=="object"&&Pi(self)||typeof global=="object"&&Pi(global)||function(){return this}()||{};function si(){return st}function Wc(e,t,o){const n=o||st,i=n.__SENTRY__=n.__SENTRY__||{};return i[e]||(i[e]=t())}const uM=si(),RW=80;function x2(e,t={}){try{let o=e;const n=5,i=[];let M=0,p=0;const b=" > ",s=b.length;let r;const a=Array.isArray(t)?t:t.keyAttrs,A=!Array.isArray(t)&&t.maxStringLength||RW;for(;o&&M++1&&p+i.length*s+r.length>=A));)i.push(r),p+=r.length,o=o.parentNode;return i.reverse().join(b)}catch{return""}}function LW(e,t){const o=e,n=[];let i,M,p,b,s;if(!o||!o.tagName)return"";n.push(o.tagName.toLowerCase());const r=t&&t.length?t.filter(A=>o.getAttribute(A)).map(A=>[A,o.getAttribute(A)]):null;if(r&&r.length)r.forEach(A=>{n.push(`[${A[0]}="${A[1]}"]`)});else if(o.id&&n.push(`#${o.id}`),i=o.className,i&&Je(i))for(M=i.split(/\s+/),s=0;s1&&(s=a.slice(0,-1).join("/"),r=a.pop()),r){const A=r.match(/^\d+/);A&&(r=A[0])}return hd({host:M,pass:i,path:s,projectId:r,port:p,protocol:o,publicKey:n})}function hd(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function EW(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:o,protocol:n}=e;if(["protocol","publicKey","host","projectId"].forEach(M=>{if(!e[M])throw new U1(`Invalid Sentry Dsn: ${M} missing`)}),!o.match(/^\d+$/))throw new U1(`Invalid Sentry Dsn: Invalid projectId ${o}`);if(!vW(n))throw new U1(`Invalid Sentry Dsn: Invalid protocol ${n}`);if(t&&isNaN(parseInt(t,10)))throw new U1(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function SW(e){const t=typeof e=="string"?TW(e):hd(e);return EW(t),t}const wW="Sentry Logger ",HM=["debug","info","warn","error","log","assert","trace"];function Wd(e){if(!("console"in st))return e();const t=st.console,o={};HM.forEach(n=>{const i=t[n]&&t[n].__sentry_original__;n in t&&i&&(o[n]=t[n],t[n]=i)});try{return e()}finally{Object.keys(o).forEach(n=>{t[n]=o[n]})}}function Yz(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?HM.forEach(o=>{t[o]=(...n)=>{e&&Wd(()=>{st.console[o](`${wW}[${o}]:`,...n)})}}):HM.forEach(o=>{t[o]=()=>{}}),t}let V;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?V=Wc("logger",Yz):V=Yz();function Wn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function $z(e,t){if(!Array.isArray(e))return"";const o=[];for(let n=0;nxW(e,n,o))}function I1(e,t,o){if(!(t in e))return;const n=e[t],i=o(n);if(typeof i=="function")try{gd(i,n)}catch{}e[t]=i}function gc(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0})}function gd(e,t){const o=t.prototype||{};e.prototype=t.prototype=o,gc(e,"__sentry_original__",t)}function _c(e){return e.__sentry_original__}function XW(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function _d(e){if(ld(e))return{message:e.message,name:e.name,stack:e.stack,...Vz(e)};if(qc(e)){const t={type:e.type,target:Gz(e.target),currentTarget:Gz(e.currentTarget),...Vz(e)};return typeof CustomEvent<"u"&&Ze(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Gz(e){try{return gW(e)?x2(e):Object.prototype.toString.call(e)}catch{return""}}function Vz(e){if(typeof e=="object"&&e!==null){const t={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}else return{}}function kW(e,t=40){const o=Object.keys(_d(e));if(o.sort(),!o.length)return"[object has no keys]";if(o[0].length>=t)return Wn(o[0],t);for(let n=o.length;n>0;n--){const i=o.slice(0,n).join(", ");if(!(i.length>t))return n===o.length?i:Wn(i,t)}return""}function Jt(e){return cs(e,new Map)}function cs(e,t){if(No(e)){const o=t.get(e);if(o!==void 0)return o;const n={};t.set(e,n);for(const i of Object.keys(e))typeof e[i]<"u"&&(n[i]=cs(e[i],t));return n}if(Array.isArray(e)){const o=t.get(e);if(o!==void 0)return o;const n=[];return t.set(e,n),e.forEach(i=>{n.push(cs(i,t))}),n}return e}const md=50,Kz=/\(error: (.*)\)/;function Rd(...e){const t=e.sort((o,n)=>o[0]-n[0]).map(o=>o[1]);return(o,n=0)=>{const i=[],M=o.split(` -`);for(let p=n;p1024)continue;const s=Kz.test(b)?b.replace(Kz,"$1"):b;for(const r of t){const a=r(s);if(a){i.push(a);break}}if(i.length>=md)break}return DW(i)}}function CW(e){return Array.isArray(e)?Rd(...e):e}function DW(e){if(!e.length)return[];const t=e.slice(0,md),o=t[t.length-1].function;o&&/sentryWrapped/.test(o)&&t.pop(),t.reverse();const n=t[t.length-1].function;return n&&/captureMessage|captureException/.test(n)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const Sb="";function t2(e){try{return!e||typeof e!="function"?Sb:e.name||Sb}catch{return Sb}}const rs=si();function Ld(){if(!("fetch"in rs))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function zs(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function PW(){if(!Ld())return!1;if(zs(rs.fetch))return!0;let e=!1;const t=rs.document;if(t&&typeof t.createElement=="function")try{const o=t.createElement("iframe");o.hidden=!0,t.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(e=zs(o.contentWindow.fetch)),t.head.removeChild(o)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return e}const Ii=si();function IW(){const e=Ii.chrome,t=e&&e.app&&e.app.runtime,o="history"in Ii&&!!Ii.history.pushState&&!!Ii.history.replaceState;return!t&&o}const O1=si(),gn={},Qz={};function FW(e){if(!Qz[e])switch(Qz[e]=!0,e){case"console":HW();break;case"dom":QW();break;case"xhr":YW();break;case"fetch":UW();break;case"history":$W();break;case"error":JW();break;case"unhandledrejection":ZW();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("unknown instrumentation type:",e);return}}function P1(e,t){gn[e]=gn[e]||[],gn[e].push(t),FW(e)}function Dt(e,t){if(!(!e||!gn[e]))for(const o of gn[e]||[])try{o(t)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Error while triggering instrumentation handler. + */const we=new Map,qb={set(e,t,o){we.has(e)||we.set(e,new Map);const n=we.get(e);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,o)},get(e,t){return we.has(e)&&we.get(e).get(t)||null},remove(e,t){if(!we.has(e))return;const o=we.get(e);o.delete(t),o.size===0&&we.delete(e)}},pq=1e6,Mq=1e3,ps="transitionend",P3=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,o)=>`#${CSS.escape(o)}`)),e),bq=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),sq=e=>{do e+=Math.floor(Math.random()*pq);while(document.getElementById(e));return e},cq=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const n=Number.parseFloat(t),i=Number.parseFloat(o);return!n&&!i?0:(t=t.split(",")[0],o=o.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(o))*Mq)},I3=e=>{e.dispatchEvent(new Event(ps))},he=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),Ve=e=>he(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(P3(e)):null,Do=e=>{if(!he(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",o=e.closest("details:not([open])");if(!o)return t;if(o!==e){const n=e.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return t},Ke=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",F3=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?F3(e.parentNode):null},Pp=()=>{},ii=e=>{e.offsetHeight},H3=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,hb=[],rq=e=>{document.readyState==="loading"?(hb.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of hb)t()}),hb.push(e)):e()},Bt=()=>document.documentElement.dir==="rtl",Et=e=>{rq(()=>{const t=H3();if(t){const o=e.NAME,n=t.fn[o];t.fn[o]=e.jQueryInterface,t.fn[o].Constructor=e,t.fn[o].noConflict=()=>(t.fn[o]=n,e.jQueryInterface)}})},Mt=(e,t=[],o=e)=>typeof e=="function"?e(...t):o,U3=(e,t,o=!0)=>{if(!o){Mt(e);return}const n=5,i=cq(t)+n;let p=!1;const M=({target:b})=>{b===t&&(p=!0,t.removeEventListener(ps,M),Mt(e))};t.addEventListener(ps,M),setTimeout(()=>{p||I3(t)},i)},dc=(e,t,o,n)=>{const i=e.length;let p=e.indexOf(t);return p===-1?!o&&n?e[i-1]:e[0]:(p+=o?1:-1,n&&(p=(p+i)%i),e[Math.max(0,Math.min(p,i-1))])},zq=/[^.]*(?=\..*)\.|.*/,aq=/\..*/,Oq=/::\d+$/,Wb={};let fz=1;const j3={mouseenter:"mouseover",mouseleave:"mouseout"},dq=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Y3(e,t){return t&&`${t}::${fz++}`||e.uidEvent||fz++}function $3(e){const t=Y3(e);return e.uidEvent=t,Wb[t]=Wb[t]||{},Wb[t]}function Aq(e,t){return function o(n){return Ac(n,{delegateTarget:e}),o.oneOff&&o0.off(e,n.type,t),t.apply(e,[n])}}function lq(e,t,o){return function n(i){const p=e.querySelectorAll(t);for(let{target:M}=i;M&&M!==this;M=M.parentNode)for(const b of p)if(b===M)return Ac(i,{delegateTarget:M}),n.oneOff&&o0.off(e,i.type,t,o),o.apply(M,[i])}}function G3(e,t,o=null){return Object.values(e).find(n=>n.callable===t&&n.delegationSelector===o)}function V3(e,t,o){const n=typeof t=="string",i=n?o:t||o;let p=K3(e);return dq.has(p)||(p=e),[n,i,p]}function qz(e,t,o,n,i){if(typeof t!="string"||!e)return;let[p,M,b]=V3(t,o,n);t in j3&&(M=(W=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return W.call(this,_)})(M));const s=$3(e),r=s[b]||(s[b]={}),a=G3(r,M,p?o:null);if(a){a.oneOff=a.oneOff&&i;return}const A=Y3(M,t.replace(zq,"")),u=p?lq(e,o,M):Aq(e,M);u.delegationSelector=p?o:null,u.callable=M,u.oneOff=i,u.uidEvent=A,r[A]=u,e.addEventListener(b,u,p)}function Ms(e,t,o,n,i){const p=G3(t[o],n,i);p&&(e.removeEventListener(o,p,!!i),delete t[o][p.uidEvent])}function uq(e,t,o,n){const i=t[o]||{};for(const[p,M]of Object.entries(i))p.includes(n)&&Ms(e,t,o,M.callable,M.delegationSelector)}function K3(e){return e=e.replace(aq,""),j3[e]||e}const o0={on(e,t,o,n){qz(e,t,o,n,!1)},one(e,t,o,n){qz(e,t,o,n,!0)},off(e,t,o,n){if(typeof t!="string"||!e)return;const[i,p,M]=V3(t,o,n),b=M!==t,s=$3(e),r=s[M]||{},a=t.startsWith(".");if(typeof p<"u"){if(!Object.keys(r).length)return;Ms(e,s,M,p,i?o:null);return}if(a)for(const A of Object.keys(s))uq(e,s,A,t.slice(1));for(const[A,u]of Object.entries(r)){const f=A.replace(Oq,"");(!b||t.includes(f))&&Ms(e,s,M,u.callable,u.delegationSelector)}},trigger(e,t,o){if(typeof t!="string"||!e)return null;const n=H3(),i=K3(t),p=t!==i;let M=null,b=!0,s=!0,r=!1;p&&n&&(M=n.Event(t,o),n(e).trigger(M),b=!M.isPropagationStopped(),s=!M.isImmediatePropagationStopped(),r=M.isDefaultPrevented());const a=Ac(new Event(t,{bubbles:b,cancelable:!0}),o);return r&&a.preventDefault(),s&&e.dispatchEvent(a),a.defaultPrevented&&M&&M.preventDefault(),a}};function Ac(e,t={}){for(const[o,n]of Object.entries(t))try{e[o]=n}catch{Object.defineProperty(e,o,{configurable:!0,get(){return n}})}return e}function hz(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function gb(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const We={setDataAttribute(e,t,o){e.setAttribute(`data-bs-${gb(t)}`,o)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${gb(t)}`)},getDataAttributes(e){if(!e)return{};const t={},o=Object.keys(e.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=hz(e.dataset[n])}return t},getDataAttribute(e,t){return hz(e.getAttribute(`data-bs-${gb(t)}`))}};let pi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,o){const n=he(o)?We.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...he(o)?We.getDataAttributes(o):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,o=this.constructor.DefaultType){for(const[n,i]of Object.entries(o)){const p=t[n],M=he(p)?"element":bq(p);if(!new RegExp(i).test(M))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${M}" but expected type "${i}".`)}}};const fq="5.3.0-alpha2";class Ht extends pi{constructor(t,o){super(),t=Ve(t),t&&(this._element=t,this._config=this._getConfig(o),qb.set(this._element,this.constructor.DATA_KEY,this))}dispose(){qb.remove(this._element,this.constructor.DATA_KEY),o0.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,o,n=!0){U3(t,o,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return qb.get(Ve(t),this.DATA_KEY)}static getOrCreateInstance(t,o={}){return this.getInstance(t)||new this(t,typeof o=="object"?o:null)}static get VERSION(){return fq}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const _b=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&o!=="#"?o.trim():null}return P3(t)},h0={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(o=>o.matches(t))},parents(e,t){const o=[];let n=e.parentNode.closest(t);for(;n;)o.push(n),n=n.parentNode.closest(t);return o},prev(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(o=>!Ke(o)&&Do(o))},getSelectorFromElement(e){const t=_b(e);return t&&h0.findOne(t)?t:null},getElementFromSelector(e){const t=_b(e);return t?h0.findOne(t):null},getMultipleElementsFromSelector(e){const t=_b(e);return t?h0.find(t):[]}},fM=(e,t="hide")=>{const o=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;o0.on(document,o,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ke(this))return;const p=h0.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(p)[t]()})},qq="alert",hq="bs.alert",Q3=`.${hq}`,Wq=`close${Q3}`,gq=`closed${Q3}`,_q="fade",mq="show";class qM extends Ht{static get NAME(){return qq}close(){if(o0.trigger(this._element,Wq).defaultPrevented)return;this._element.classList.remove(mq);const o=this._element.classList.contains(_q);this._queueCallback(()=>this._destroyElement(),this._element,o)}_destroyElement(){this._element.remove(),o0.trigger(this._element,gq),this.dispose()}static jQueryInterface(t){return this.each(function(){const o=qM.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}fM(qM,"close");Et(qM);const Rq="button",Lq="bs.button",yq=`.${Lq}`,Nq=".data-api",Bq="active",Wz='[data-bs-toggle="button"]',vq=`click${yq}${Nq}`;class hM extends Ht{static get NAME(){return Rq}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Bq))}static jQueryInterface(t){return this.each(function(){const o=hM.getOrCreateInstance(this);t==="toggle"&&o[t]()})}}o0.on(document,vq,Wz,e=>{e.preventDefault();const t=e.target.closest(Wz);hM.getOrCreateInstance(t).toggle()});Et(hM);const Tq="swipe",Po=".bs.swipe",Eq=`touchstart${Po}`,Sq=`touchmove${Po}`,wq=`touchend${Po}`,xq=`pointerdown${Po}`,Xq=`pointerup${Po}`,kq="touch",Cq="pen",Dq="pointer-event",Pq=40,Iq={endCallback:null,leftCallback:null,rightCallback:null},Fq={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ip extends pi{constructor(t,o){super(),this._element=t,!(!t||!Ip.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Iq}static get DefaultType(){return Fq}static get NAME(){return Tq}dispose(){o0.off(this._element,Po)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Mt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Pq)return;const o=t/this._deltaX;this._deltaX=0,o&&Mt(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(o0.on(this._element,xq,t=>this._start(t)),o0.on(this._element,Xq,t=>this._end(t)),this._element.classList.add(Dq)):(o0.on(this._element,Eq,t=>this._start(t)),o0.on(this._element,Sq,t=>this._move(t)),o0.on(this._element,wq,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Cq||t.pointerType===kq)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Hq="carousel",Uq="bs.carousel",p2=`.${Uq}`,J3=".data-api",jq="ArrowLeft",Yq="ArrowRight",$q=500,en="next",V2="prev",no="left",Ap="right",Gq=`slide${p2}`,mb=`slid${p2}`,Vq=`keydown${p2}`,Kq=`mouseenter${p2}`,Qq=`mouseleave${p2}`,Jq=`dragstart${p2}`,Zq=`load${p2}${J3}`,th=`click${p2}${J3}`,Z3="carousel",wi="active",eh="slide",oh="carousel-item-end",nh="carousel-item-start",ih="carousel-item-next",ph="carousel-item-prev",td=".active",ed=".carousel-item",Mh=td+ed,bh=".carousel-item img",sh=".carousel-indicators",ch="[data-bs-slide], [data-bs-slide-to]",rh='[data-bs-ride="carousel"]',zh={[jq]:Ap,[Yq]:no},ah={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Oh={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Mi extends Ht{constructor(t,o){super(t,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=h0.findOne(sh,this._element),this._addEventListeners(),this._config.ride===Z3&&this.cycle()}static get Default(){return ah}static get DefaultType(){return Oh}static get NAME(){return Hq}next(){this._slide(en)}nextWhenVisible(){!document.hidden&&Do(this._element)&&this.next()}prev(){this._slide(V2)}pause(){this._isSliding&&I3(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){o0.one(this._element,mb,()=>this.cycle());return}this.cycle()}}to(t){const o=this._getItems();if(t>o.length-1||t<0)return;if(this._isSliding){o0.one(this._element,mb,()=>this.to(t));return}const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?en:V2;this._slide(i,o[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&o0.on(this._element,Vq,t=>this._keydown(t)),this._config.pause==="hover"&&(o0.on(this._element,Kq,()=>this.pause()),o0.on(this._element,Qq,()=>this._maybeEnableCycle())),this._config.touch&&Ip.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of h0.find(bh,this._element))o0.on(n,Jq,i=>i.preventDefault());const o={leftCallback:()=>this._slide(this._directionToOrder(no)),rightCallback:()=>this._slide(this._directionToOrder(Ap)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$q+this._config.interval))}};this._swipeHelper=new Ip(this._element,o)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const o=zh[t.key];o&&(t.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const o=h0.findOne(td,this._indicatorsElement);o.classList.remove(wi),o.removeAttribute("aria-current");const n=h0.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(wi),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const o=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(t,o=null){if(this._isSliding)return;const n=this._getActive(),i=t===en,p=o||dc(this._getItems(),n,i,this._config.wrap);if(p===n)return;const M=this._getItemIndex(p),b=f=>o0.trigger(this._element,f,{relatedTarget:p,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:M});if(b(Gq).defaultPrevented||!n||!p)return;const r=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(M),this._activeElement=p;const a=i?nh:oh,A=i?ih:ph;p.classList.add(A),ii(p),n.classList.add(a),p.classList.add(a);const u=()=>{p.classList.remove(a,A),p.classList.add(wi),n.classList.remove(wi,A,a),this._isSliding=!1,b(mb)};this._queueCallback(u,n,this._isAnimated()),r&&this.cycle()}_isAnimated(){return this._element.classList.contains(eh)}_getActive(){return h0.findOne(Mh,this._element)}_getItems(){return h0.find(ed,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Bt()?t===no?V2:en:t===no?en:V2}_orderToDirection(t){return Bt()?t===V2?no:Ap:t===V2?Ap:no}static jQueryInterface(t){return this.each(function(){const o=Mi.getOrCreateInstance(this,t);if(typeof t=="number"){o.to(t);return}if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}o0.on(document,th,ch,function(e){const t=h0.getElementFromSelector(this);if(!t||!t.classList.contains(Z3))return;e.preventDefault();const o=Mi.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(We.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});o0.on(window,Zq,()=>{const e=h0.find(rh);for(const t of e)Mi.getOrCreateInstance(t)});Et(Mi);const dh="collapse",Ah="bs.collapse",bi=`.${Ah}`,lh=".data-api",uh=`show${bi}`,fh=`shown${bi}`,qh=`hide${bi}`,hh=`hidden${bi}`,Wh=`click${bi}${lh}`,Rb="show",bo="collapse",xi="collapsing",gh="collapsed",_h=`:scope .${bo} .${bo}`,mh="collapse-horizontal",Rh="width",Lh="height",yh=".collapse.show, .collapse.collapsing",bs='[data-bs-toggle="collapse"]',Nh={parent:null,toggle:!0},Bh={parent:"(null|element)",toggle:"boolean"};class kn extends Ht{constructor(t,o){super(t,o),this._isTransitioning=!1,this._triggerArray=[];const n=h0.find(bs);for(const i of n){const p=h0.getSelectorFromElement(i),M=h0.find(p).filter(b=>b===this._element);p!==null&&M.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Nh}static get DefaultType(){return Bh}static get NAME(){return dh}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(yh).filter(b=>b!==this._element).map(b=>kn.getOrCreateInstance(b,{toggle:!1}))),t.length&&t[0]._isTransitioning||o0.trigger(this._element,uh).defaultPrevented)return;for(const b of t)b.hide();const n=this._getDimension();this._element.classList.remove(bo),this._element.classList.add(xi),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(xi),this._element.classList.add(bo,Rb),this._element.style[n]="",o0.trigger(this._element,fh)},M=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[M]}px`}hide(){if(this._isTransitioning||!this._isShown()||o0.trigger(this._element,qh).defaultPrevented)return;const o=this._getDimension();this._element.style[o]=`${this._element.getBoundingClientRect()[o]}px`,ii(this._element),this._element.classList.add(xi),this._element.classList.remove(bo,Rb);for(const i of this._triggerArray){const p=h0.getElementFromSelector(i);p&&!this._isShown(p)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(xi),this._element.classList.add(bo),o0.trigger(this._element,hh)};this._element.style[o]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Rb)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Ve(t.parent),t}_getDimension(){return this._element.classList.contains(mh)?Rh:Lh}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(bs);for(const o of t){const n=h0.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(t){const o=h0.find(_h,this._config.parent);return h0.find(t,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(t,o){if(t.length)for(const n of t)n.classList.toggle(gh,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(t){const o={};return typeof t=="string"&&/show|hide/.test(t)&&(o.toggle=!1),this.each(function(){const n=kn.getOrCreateInstance(this,o);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}o0.on(document,Wh,bs,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of h0.getMultipleElementsFromSelector(this))kn.getOrCreateInstance(t,{toggle:!1}).toggle()});Et(kn);const gz="dropdown",vh="bs.dropdown",P2=`.${vh}`,lc=".data-api",Th="Escape",_z="Tab",Eh="ArrowUp",mz="ArrowDown",Sh=2,wh=`hide${P2}`,xh=`hidden${P2}`,Xh=`show${P2}`,kh=`shown${P2}`,od=`click${P2}${lc}`,nd=`keydown${P2}${lc}`,Ch=`keyup${P2}${lc}`,io="show",Dh="dropup",Ph="dropend",Ih="dropstart",Fh="dropup-center",Hh="dropdown-center",m2='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Uh=`${m2}.${io}`,lp=".dropdown-menu",jh=".navbar",Yh=".navbar-nav",$h=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Gh=Bt()?"top-end":"top-start",Vh=Bt()?"top-start":"top-end",Kh=Bt()?"bottom-end":"bottom-start",Qh=Bt()?"bottom-start":"bottom-end",Jh=Bt()?"left-start":"right-start",Zh=Bt()?"right-start":"left-start",t4="top",e4="bottom",o4={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},n4={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Qt extends Ht{constructor(t,o){super(t,o),this._popper=null,this._parent=this._element.parentNode,this._menu=h0.next(this._element,lp)[0]||h0.prev(this._element,lp)[0]||h0.findOne(lp,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return o4}static get DefaultType(){return n4}static get NAME(){return gz}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ke(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!o0.trigger(this._element,Xh,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Yh))for(const n of[].concat(...document.body.children))o0.on(n,"mouseover",Pp);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(io),this._element.classList.add(io),o0.trigger(this._element,kh,t)}}hide(){if(Ke(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!o0.trigger(this._element,wh,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))o0.off(n,"mouseover",Pp);this._popper&&this._popper.destroy(),this._menu.classList.remove(io),this._element.classList.remove(io),this._element.setAttribute("aria-expanded","false"),We.removeDataAttribute(this._menu,"popper"),o0.trigger(this._element,xh,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!he(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${gz.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof D3>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:he(this._config.reference)?t=Ve(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const o=this._getPopperConfig();this._popper=Oc(t,this._menu,o)}_isShown(){return this._menu.classList.contains(io)}_getPlacement(){const t=this._parent;if(t.classList.contains(Ph))return Jh;if(t.classList.contains(Ih))return Zh;if(t.classList.contains(Fh))return t4;if(t.classList.contains(Hh))return e4;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Dh)?o?Vh:Gh:o?Qh:Kh}_detectNavbar(){return this._element.closest(jh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(We.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Mt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:o}){const n=h0.find($h,this._menu).filter(i=>Do(i));n.length&&dc(n,o,t===mz,!n.includes(o)).focus()}static jQueryInterface(t){return this.each(function(){const o=Qt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}static clearMenus(t){if(t.button===Sh||t.type==="keyup"&&t.key!==_z)return;const o=h0.find(Uh);for(const n of o){const i=Qt.getInstance(n);if(!i||i._config.autoClose===!1)continue;const p=t.composedPath(),M=p.includes(i._menu);if(p.includes(i._element)||i._config.autoClose==="inside"&&!M||i._config.autoClose==="outside"&&M||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===_z||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const b={relatedTarget:i._element};t.type==="click"&&(b.clickEvent=t),i._completeHide(b)}}static dataApiKeydownHandler(t){const o=/input|textarea/i.test(t.target.tagName),n=t.key===Th,i=[Eh,mz].includes(t.key);if(!i&&!n||o&&!n)return;t.preventDefault();const p=this.matches(m2)?this:h0.prev(this,m2)[0]||h0.next(this,m2)[0]||h0.findOne(m2,t.delegateTarget.parentNode),M=Qt.getOrCreateInstance(p);if(i){t.stopPropagation(),M.show(),M._selectMenuItem(t);return}M._isShown()&&(t.stopPropagation(),M.hide(),p.focus())}}o0.on(document,nd,m2,Qt.dataApiKeydownHandler);o0.on(document,nd,lp,Qt.dataApiKeydownHandler);o0.on(document,od,Qt.clearMenus);o0.on(document,Ch,Qt.clearMenus);o0.on(document,od,m2,function(e){e.preventDefault(),Qt.getOrCreateInstance(this).toggle()});Et(Qt);const id="backdrop",i4="fade",Rz="show",Lz=`mousedown.bs.${id}`,p4={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},M4={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class pd extends pi{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return p4}static get DefaultType(){return M4}static get NAME(){return id}show(t){if(!this._config.isVisible){Mt(t);return}this._append();const o=this._getElement();this._config.isAnimated&&ii(o),o.classList.add(Rz),this._emulateAnimation(()=>{Mt(t)})}hide(t){if(!this._config.isVisible){Mt(t);return}this._getElement().classList.remove(Rz),this._emulateAnimation(()=>{this.dispose(),Mt(t)})}dispose(){this._isAppended&&(o0.off(this._element,Lz),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(i4),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ve(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),o0.on(t,Lz,()=>{Mt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){U3(t,this._getElement(),this._config.isAnimated)}}const b4="focustrap",s4="bs.focustrap",Fp=`.${s4}`,c4=`focusin${Fp}`,r4=`keydown.tab${Fp}`,z4="Tab",a4="forward",yz="backward",O4={autofocus:!0,trapElement:null},d4={autofocus:"boolean",trapElement:"element"};class Md extends pi{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return O4}static get DefaultType(){return d4}static get NAME(){return b4}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o0.off(document,Fp),o0.on(document,c4,t=>this._handleFocusin(t)),o0.on(document,r4,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o0.off(document,Fp))}_handleFocusin(t){const{trapElement:o}=this._config;if(t.target===document||t.target===o||o.contains(t.target))return;const n=h0.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===yz?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===z4&&(this._lastTabNavDirection=t.shiftKey?yz:a4)}}const Nz=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bz=".sticky-top",Xi="padding-right",vz="margin-right";class ss{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Xi,o=>o+t),this._setElementAttributes(Nz,Xi,o=>o+t),this._setElementAttributes(Bz,vz,o=>o-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Xi),this._resetElementAttributes(Nz,Xi),this._resetElementAttributes(Bz,vz)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,o,n){const i=this.getWidth(),p=M=>{if(M!==this._element&&window.innerWidth>M.clientWidth+i)return;this._saveInitialAttribute(M,o);const b=window.getComputedStyle(M).getPropertyValue(o);M.style.setProperty(o,`${n(Number.parseFloat(b))}px`)};this._applyManipulationCallback(t,p)}_saveInitialAttribute(t,o){const n=t.style.getPropertyValue(o);n&&We.setDataAttribute(t,o,n)}_resetElementAttributes(t,o){const n=i=>{const p=We.getDataAttribute(i,o);if(p===null){i.style.removeProperty(o);return}We.removeDataAttribute(i,o),i.style.setProperty(o,p)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,o){if(he(t)){o(t);return}for(const n of h0.find(t,this._element))o(n)}}const A4="modal",l4="bs.modal",vt=`.${l4}`,u4=".data-api",f4="Escape",q4=`hide${vt}`,h4=`hidePrevented${vt}`,bd=`hidden${vt}`,sd=`show${vt}`,W4=`shown${vt}`,g4=`resize${vt}`,_4=`click.dismiss${vt}`,m4=`mousedown.dismiss${vt}`,R4=`keydown.dismiss${vt}`,L4=`click${vt}${u4}`,Tz="modal-open",y4="fade",Ez="show",Lb="modal-static",N4=".modal.show",B4=".modal-dialog",v4=".modal-body",T4='[data-bs-toggle="modal"]',E4={backdrop:!0,focus:!0,keyboard:!0},S4={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Lo extends Ht{constructor(t,o){super(t,o),this._dialog=h0.findOne(B4,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ss,this._addEventListeners()}static get Default(){return E4}static get DefaultType(){return S4}static get NAME(){return A4}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||o0.trigger(this._element,sd,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tz),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||o0.trigger(this._element,q4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ez),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){o0.off(window,vt),o0.off(this._dialog,vt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new pd({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Md({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=h0.findOne(v4,this._dialog);o&&(o.scrollTop=0),ii(this._element),this._element.classList.add(Ez);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,o0.trigger(this._element,W4,{relatedTarget:t})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){o0.on(this._element,R4,t=>{if(t.key===f4){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),o0.on(window,g4,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),o0.on(this._element,m4,t=>{o0.one(this._element,_4,o=>{if(!(this._element!==t.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Tz),this._resetAdjustments(),this._scrollBar.reset(),o0.trigger(this._element,bd)})}_isAnimated(){return this._element.classList.contains(y4)}_triggerBackdropTransition(){if(o0.trigger(this._element,h4).defaultPrevented)return;const o=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Lb)||(o||(this._element.style.overflowY="hidden"),this._element.classList.add(Lb),this._queueCallback(()=>{this._element.classList.remove(Lb),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!t){const i=Bt()?"paddingLeft":"paddingRight";this._element.style[i]=`${o}px`}if(!n&&t){const i=Bt()?"paddingRight":"paddingLeft";this._element.style[i]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,o){return this.each(function(){const n=Lo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](o)}})}}o0.on(document,L4,T4,function(e){const t=h0.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),o0.one(t,sd,i=>{i.defaultPrevented||o0.one(t,bd,()=>{Do(this)&&this.focus()})});const o=h0.findOne(N4);o&&Lo.getInstance(o).hide(),Lo.getOrCreateInstance(t).toggle(this)});fM(Lo);Et(Lo);const w4="offcanvas",x4="bs.offcanvas",Le=`.${x4}`,cd=".data-api",X4=`load${Le}${cd}`,k4="Escape",Sz="show",wz="showing",xz="hiding",C4="offcanvas-backdrop",rd=".offcanvas.show",D4=`show${Le}`,P4=`shown${Le}`,I4=`hide${Le}`,Xz=`hidePrevented${Le}`,zd=`hidden${Le}`,F4=`resize${Le}`,H4=`click${Le}${cd}`,U4=`keydown.dismiss${Le}`,j4='[data-bs-toggle="offcanvas"]',Y4={backdrop:!0,keyboard:!0,scroll:!1},$4={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Qe extends Ht{constructor(t,o){super(t,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Y4}static get DefaultType(){return $4}static get NAME(){return w4}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||o0.trigger(this._element,D4,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ss().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(wz);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Sz),this._element.classList.remove(wz),o0.trigger(this._element,P4,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||o0.trigger(this._element,I4).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(xz),this._backdrop.hide();const o=()=>{this._element.classList.remove(Sz,xz),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ss().reset(),o0.trigger(this._element,zd)};this._queueCallback(o,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){o0.trigger(this._element,Xz);return}this.hide()},o=!!this._config.backdrop;return new pd({className:C4,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?t:null})}_initializeFocusTrap(){return new Md({trapElement:this._element})}_addEventListeners(){o0.on(this._element,U4,t=>{if(t.key===k4){if(this._config.keyboard){this.hide();return}o0.trigger(this._element,Xz)}})}static jQueryInterface(t){return this.each(function(){const o=Qe.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}o0.on(document,H4,j4,function(e){const t=h0.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ke(this))return;o0.one(t,zd,()=>{Do(this)&&this.focus()});const o=h0.findOne(rd);o&&o!==t&&Qe.getInstance(o).hide(),Qe.getOrCreateInstance(t).toggle(this)});o0.on(window,X4,()=>{for(const e of h0.find(rd))Qe.getOrCreateInstance(e).show()});o0.on(window,F4,()=>{for(const e of h0.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Qe.getOrCreateInstance(e).hide()});fM(Qe);Et(Qe);const G4=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),V4=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,K4=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Q4=(e,t)=>{const o=e.nodeName.toLowerCase();return t.includes(o)?G4.has(o)?!!(V4.test(e.nodeValue)||K4.test(e.nodeValue)):!0:t.filter(n=>n instanceof RegExp).some(n=>n.test(o))},J4=/^aria-[\w-]*$/i,ad={"*":["class","dir","id","lang","role",J4],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Z4(e,t,o){if(!e.length)return e;if(o&&typeof o=="function")return o(e);const i=new window.DOMParser().parseFromString(e,"text/html"),p=[].concat(...i.body.querySelectorAll("*"));for(const M of p){const b=M.nodeName.toLowerCase();if(!Object.keys(t).includes(b)){M.remove();continue}const s=[].concat(...M.attributes),r=[].concat(t["*"]||[],t[b]||[]);for(const a of s)Q4(a,r)||M.removeAttribute(a.nodeName)}return i.body.innerHTML}const t5="TemplateFactory",e5={allowList:ad,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},o5={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},n5={entry:"(string|element|function|null)",selector:"(string|element)"};class i5 extends pi{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return e5}static get DefaultType(){return o5}static get NAME(){return t5}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,p]of Object.entries(this._config.content))this._setContent(t,p,i);const o=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[o,n]of Object.entries(t))super._typeCheckConfig({selector:o,entry:n},n5)}_setContent(t,o,n){const i=h0.findOne(n,t);if(i){if(o=this._resolvePossibleFunction(o),!o){i.remove();return}if(he(o)){this._putElementInTemplate(Ve(o),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(o);return}i.textContent=o}}_maybeSanitize(t){return this._config.sanitize?Z4(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Mt(t,[this])}_putElementInTemplate(t,o){if(this._config.html){o.innerHTML="",o.append(t);return}o.textContent=t.textContent}}const p5="tooltip",M5=new Set(["sanitize","allowList","sanitizeFn"]),yb="fade",b5="modal",ki="show",s5=".tooltip-inner",kz=`.${b5}`,Cz="hide.bs.modal",on="hover",Nb="focus",c5="click",r5="manual",z5="hide",a5="hidden",O5="show",d5="shown",A5="inserted",l5="click",u5="focusin",f5="focusout",q5="mouseenter",h5="mouseleave",W5={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},g5={allowList:ad,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},_5={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let WM=class Od extends Ht{constructor(t,o){if(typeof D3>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return g5}static get DefaultType(){return _5}static get NAME(){return p5}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),o0.off(this._element.closest(kz),Cz,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=o0.trigger(this._element,this.constructor.eventName(O5)),n=(F3(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:p}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(p.append(i),o0.trigger(this._element,this.constructor.eventName(A5))),this._popper=this._createPopper(i),i.classList.add(ki),"ontouchstart"in document.documentElement)for(const b of[].concat(...document.body.children))o0.on(b,"mouseover",Pp);const M=()=>{o0.trigger(this._element,this.constructor.eventName(d5)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(M,this.tip,this._isAnimated())}hide(){if(!this._isShown()||o0.trigger(this._element,this.constructor.eventName(z5)).defaultPrevented)return;if(this._getTipElement().classList.remove(ki),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))o0.off(i,"mouseover",Pp);this._activeTrigger[c5]=!1,this._activeTrigger[Nb]=!1,this._activeTrigger[on]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),o0.trigger(this._element,this.constructor.eventName(a5)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const o=this._getTemplateFactory(t).toHtml();if(!o)return null;o.classList.remove(yb,ki),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=sq(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(yb),o}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new i5({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[s5]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(yb)}_isShown(){return this.tip&&this.tip.classList.contains(ki)}_createPopper(t){const o=Mt(this._config.placement,[this,t,this._element]),n=W5[o.toUpperCase()];return Oc(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(o=>Number.parseInt(o,10)):typeof t=="function"?o=>t(o,this._element):t}_resolvePossibleFunction(t){return Mt(t,[this._element])}_getPopperConfig(t){const o={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...Mt(this._config.popperConfig,[o])}}_setListeners(){const t=this._config.trigger.split(" ");for(const o of t)if(o==="click")o0.on(this._element,this.constructor.eventName(l5),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(o!==r5){const n=o===on?this.constructor.eventName(q5):this.constructor.eventName(u5),i=o===on?this.constructor.eventName(h5):this.constructor.eventName(f5);o0.on(this._element,n,this._config.selector,p=>{const M=this._initializeOnDelegatedTarget(p);M._activeTrigger[p.type==="focusin"?Nb:on]=!0,M._enter()}),o0.on(this._element,i,this._config.selector,p=>{const M=this._initializeOnDelegatedTarget(p);M._activeTrigger[p.type==="focusout"?Nb:on]=M._element.contains(p.relatedTarget),M._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},o0.on(this._element.closest(kz),Cz,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,o){clearTimeout(this._timeout),this._timeout=setTimeout(t,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const o=We.getDataAttributes(this._element);for(const n of Object.keys(o))M5.has(n)&&delete o[n];return t={...o,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Ve(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(t[o]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const o=Od.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}};Et(WM);const m5="popover",R5=".popover-header",L5=".popover-body",y5={...WM.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},N5={...WM.DefaultType,content:"(null|string|element|function)"};class uc extends WM{static get Default(){return y5}static get DefaultType(){return N5}static get NAME(){return m5}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[R5]:this._getTitle(),[L5]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const o=uc.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}}Et(uc);const B5="scrollspy",v5="bs.scrollspy",fc=`.${v5}`,T5=".data-api",E5=`activate${fc}`,Dz=`click${fc}`,S5=`load${fc}${T5}`,w5="dropdown-item",K2="active",x5='[data-bs-spy="scroll"]',Bb="[href]",X5=".nav, .list-group",Pz=".nav-link",k5=".nav-item",C5=".list-group-item",D5=`${Pz}, ${k5} > ${Pz}, ${C5}`,P5=".dropdown",I5=".dropdown-toggle",F5={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},H5={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class gM extends Ht{constructor(t,o){super(t,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return F5}static get DefaultType(){return H5}static get NAME(){return B5}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ve(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(o=>Number.parseFloat(o))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(o0.off(this._config.target,Dz),o0.on(this._config.target,Dz,Bb,t=>{const o=this._observableSections.get(t.target.hash);if(o){t.preventDefault();const n=this._rootElement||window,i=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),t)}_observerCallback(t){const o=M=>this._targetLinks.get(`#${M.target.id}`),n=M=>{this._previousScrollData.visibleEntryTop=M.target.offsetTop,this._process(o(M))},i=(this._rootElement||document.documentElement).scrollTop,p=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const M of t){if(!M.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(M));continue}const b=M.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(p&&b){if(n(M),!i)return;continue}!p&&!b&&n(M)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=h0.find(Bb,this._config.target);for(const o of t){if(!o.hash||Ke(o))continue;const n=h0.findOne(o.hash,this._element);Do(n)&&(this._targetLinks.set(o.hash,o),this._observableSections.set(o.hash,n))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(K2),this._activateParents(t),o0.trigger(this._element,E5,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(w5)){h0.findOne(I5,t.closest(P5)).classList.add(K2);return}for(const o of h0.parents(t,X5))for(const n of h0.prev(o,D5))n.classList.add(K2)}_clearActiveClass(t){t.classList.remove(K2);const o=h0.find(`${Bb}.${K2}`,t);for(const n of o)n.classList.remove(K2)}static jQueryInterface(t){return this.each(function(){const o=gM.getOrCreateInstance(this,t);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}o0.on(window,S5,()=>{for(const e of h0.find(x5))gM.getOrCreateInstance(e)});Et(gM);const U5="tab",j5="bs.tab",I2=`.${j5}`,Y5=`hide${I2}`,$5=`hidden${I2}`,G5=`show${I2}`,V5=`shown${I2}`,K5=`click${I2}`,Q5=`keydown${I2}`,J5=`load${I2}`,Z5="ArrowLeft",Iz="ArrowRight",tW="ArrowUp",Fz="ArrowDown",R2="active",Hz="fade",vb="show",eW="dropdown",oW=".dropdown-toggle",nW=".dropdown-menu",Tb=":not(.dropdown-toggle)",iW='.list-group, .nav, [role="tablist"]',pW=".nav-item, .list-group-item",MW=`.nav-link${Tb}, .list-group-item${Tb}, [role="tab"]${Tb}`,dd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Eb=`${MW}, ${dd}`,bW=`.${R2}[data-bs-toggle="tab"], .${R2}[data-bs-toggle="pill"], .${R2}[data-bs-toggle="list"]`;class yo extends Ht{constructor(t){super(t),this._parent=this._element.closest(iW),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),o0.on(this._element,Q5,o=>this._keydown(o)))}static get NAME(){return U5}show(){const t=this._element;if(this._elemIsActive(t))return;const o=this._getActiveElem(),n=o?o0.trigger(o,Y5,{relatedTarget:t}):null;o0.trigger(t,G5,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,t),this._activate(t,o))}_activate(t,o){if(!t)return;t.classList.add(R2),this._activate(h0.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(vb);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),o0.trigger(t,V5,{relatedTarget:o})};this._queueCallback(n,t,t.classList.contains(Hz))}_deactivate(t,o){if(!t)return;t.classList.remove(R2),t.blur(),this._deactivate(h0.getElementFromSelector(t));const n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(vb);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),o0.trigger(t,$5,{relatedTarget:o})};this._queueCallback(n,t,t.classList.contains(Hz))}_keydown(t){if(![Z5,Iz,tW,Fz].includes(t.key))return;t.stopPropagation(),t.preventDefault();const o=[Iz,Fz].includes(t.key),n=dc(this._getChildren().filter(i=>!Ke(i)),t.target,o,!0);n&&(n.focus({preventScroll:!0}),yo.getOrCreateInstance(n).show())}_getChildren(){return h0.find(Eb,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,o){this._setAttributeIfNotExists(t,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const o=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",o),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),o||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const o=h0.getElementFromSelector(t);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,o){const n=this._getOuterElement(t);if(!n.classList.contains(eW))return;const i=(p,M)=>{const b=h0.findOne(p,n);b&&b.classList.toggle(M,o)};i(oW,R2),i(nW,vb),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(t,o,n){t.hasAttribute(o)||t.setAttribute(o,n)}_elemIsActive(t){return t.classList.contains(R2)}_getInnerElement(t){return t.matches(Eb)?t:h0.findOne(Eb,t)}_getOuterElement(t){return t.closest(pW)||t}static jQueryInterface(t){return this.each(function(){const o=yo.getOrCreateInstance(this);if(typeof t=="string"){if(o[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);o[t]()}})}}o0.on(document,K5,dd,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ke(this)&&yo.getOrCreateInstance(this).show()});o0.on(window,J5,()=>{for(const e of h0.find(bW))yo.getOrCreateInstance(e)});Et(yo);const sW="toast",cW="bs.toast",M2=`.${cW}`,rW=`mouseover${M2}`,zW=`mouseout${M2}`,aW=`focusin${M2}`,OW=`focusout${M2}`,dW=`hide${M2}`,AW=`hidden${M2}`,lW=`show${M2}`,uW=`shown${M2}`,fW="fade",Uz="hide",Ci="show",Di="showing",qW={animation:"boolean",autohide:"boolean",delay:"number"},hW={animation:!0,autohide:!0,delay:5e3};class _M extends Ht{constructor(t,o){super(t,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return hW}static get DefaultType(){return qW}static get NAME(){return sW}show(){if(o0.trigger(this._element,lW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(fW);const o=()=>{this._element.classList.remove(Di),o0.trigger(this._element,uW),this._maybeScheduleHide()};this._element.classList.remove(Uz),ii(this._element),this._element.classList.add(Ci,Di),this._queueCallback(o,this._element,this._config.animation)}hide(){if(!this.isShown()||o0.trigger(this._element,dW).defaultPrevented)return;const o=()=>{this._element.classList.add(Uz),this._element.classList.remove(Di,Ci),o0.trigger(this._element,AW)};this._element.classList.add(Di),this._queueCallback(o,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ci),super.dispose()}isShown(){return this._element.classList.contains(Ci)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,o){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){o0.on(this._element,rW,t=>this._onInteraction(t,!0)),o0.on(this._element,zW,t=>this._onInteraction(t,!1)),o0.on(this._element,aW,t=>this._onInteraction(t,!0)),o0.on(this._element,OW,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const o=_M.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t](this)}})}}fM(_M);Et(_M);const Ad=Object.prototype.toString;function ld(e){switch(Ad.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ze(e,Error)}}function Io(e,t){return Ad.call(e)===`[object ${t}]`}function ud(e){return Io(e,"ErrorEvent")}function jz(e){return Io(e,"DOMError")}function WW(e){return Io(e,"DOMException")}function Je(e){return Io(e,"String")}function fd(e){return e===null||typeof e!="object"&&typeof e!="function"}function No(e){return Io(e,"Object")}function qc(e){return typeof Event<"u"&&Ze(e,Event)}function gW(e){return typeof Element<"u"&&Ze(e,Element)}function _W(e){return Io(e,"RegExp")}function hc(e){return!!(e&&e.then&&typeof e.then=="function")}function mW(e){return No(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function qd(e){return typeof e=="number"&&e!==e}function Ze(e,t){try{return e instanceof t}catch{return!1}}function Pi(e){return e&&e.Math==Math?e:void 0}const st=typeof globalThis=="object"&&Pi(globalThis)||typeof window=="object"&&Pi(window)||typeof self=="object"&&Pi(self)||typeof global=="object"&&Pi(global)||function(){return this}()||{};function si(){return st}function Wc(e,t,o){const n=o||st,i=n.__SENTRY__=n.__SENTRY__||{};return i[e]||(i[e]=t())}const up=si(),RW=80;function x2(e,t={}){try{let o=e;const n=5,i=[];let p=0,M=0;const b=" > ",s=b.length;let r;const a=Array.isArray(t)?t:t.keyAttrs,A=!Array.isArray(t)&&t.maxStringLength||RW;for(;o&&p++1&&M+i.length*s+r.length>=A));)i.push(r),M+=r.length,o=o.parentNode;return i.reverse().join(b)}catch{return""}}function LW(e,t){const o=e,n=[];let i,p,M,b,s;if(!o||!o.tagName)return"";n.push(o.tagName.toLowerCase());const r=t&&t.length?t.filter(A=>o.getAttribute(A)).map(A=>[A,o.getAttribute(A)]):null;if(r&&r.length)r.forEach(A=>{n.push(`[${A[0]}="${A[1]}"]`)});else if(o.id&&n.push(`#${o.id}`),i=o.className,i&&Je(i))for(p=i.split(/\s+/),s=0;s1&&(s=a.slice(0,-1).join("/"),r=a.pop()),r){const A=r.match(/^\d+/);A&&(r=A[0])}return hd({host:p,pass:i,path:s,projectId:r,port:M,protocol:o,publicKey:n})}function hd(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function EW(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:o,protocol:n}=e;if(["protocol","publicKey","host","projectId"].forEach(p=>{if(!e[p])throw new U1(`Invalid Sentry Dsn: ${p} missing`)}),!o.match(/^\d+$/))throw new U1(`Invalid Sentry Dsn: Invalid projectId ${o}`);if(!vW(n))throw new U1(`Invalid Sentry Dsn: Invalid protocol ${n}`);if(t&&isNaN(parseInt(t,10)))throw new U1(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function SW(e){const t=typeof e=="string"?TW(e):hd(e);return EW(t),t}const wW="Sentry Logger ",Hp=["debug","info","warn","error","log","assert","trace"];function Wd(e){if(!("console"in st))return e();const t=st.console,o={};Hp.forEach(n=>{const i=t[n]&&t[n].__sentry_original__;n in t&&i&&(o[n]=t[n],t[n]=i)});try{return e()}finally{Object.keys(o).forEach(n=>{t[n]=o[n]})}}function Yz(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Hp.forEach(o=>{t[o]=(...n)=>{e&&Wd(()=>{st.console[o](`${wW}[${o}]:`,...n)})}}):Hp.forEach(o=>{t[o]=()=>{}}),t}let V;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?V=Wc("logger",Yz):V=Yz();function Wn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function $z(e,t){if(!Array.isArray(e))return"";const o=[];for(let n=0;nxW(e,n,o))}function I1(e,t,o){if(!(t in e))return;const n=e[t],i=o(n);if(typeof i=="function")try{gd(i,n)}catch{}e[t]=i}function gc(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,configurable:!0})}function gd(e,t){const o=t.prototype||{};e.prototype=t.prototype=o,gc(e,"__sentry_original__",t)}function _c(e){return e.__sentry_original__}function XW(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function _d(e){if(ld(e))return{message:e.message,name:e.name,stack:e.stack,...Vz(e)};if(qc(e)){const t={type:e.type,target:Gz(e.target),currentTarget:Gz(e.currentTarget),...Vz(e)};return typeof CustomEvent<"u"&&Ze(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Gz(e){try{return gW(e)?x2(e):Object.prototype.toString.call(e)}catch{return""}}function Vz(e){if(typeof e=="object"&&e!==null){const t={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}else return{}}function kW(e,t=40){const o=Object.keys(_d(e));if(o.sort(),!o.length)return"[object has no keys]";if(o[0].length>=t)return Wn(o[0],t);for(let n=o.length;n>0;n--){const i=o.slice(0,n).join(", ");if(!(i.length>t))return n===o.length?i:Wn(i,t)}return""}function Jt(e){return cs(e,new Map)}function cs(e,t){if(No(e)){const o=t.get(e);if(o!==void 0)return o;const n={};t.set(e,n);for(const i of Object.keys(e))typeof e[i]<"u"&&(n[i]=cs(e[i],t));return n}if(Array.isArray(e)){const o=t.get(e);if(o!==void 0)return o;const n=[];return t.set(e,n),e.forEach(i=>{n.push(cs(i,t))}),n}return e}const md=50,Kz=/\(error: (.*)\)/;function Rd(...e){const t=e.sort((o,n)=>o[0]-n[0]).map(o=>o[1]);return(o,n=0)=>{const i=[],p=o.split(` +`);for(let M=n;M1024)continue;const s=Kz.test(b)?b.replace(Kz,"$1"):b;for(const r of t){const a=r(s);if(a){i.push(a);break}}if(i.length>=md)break}return DW(i)}}function CW(e){return Array.isArray(e)?Rd(...e):e}function DW(e){if(!e.length)return[];const t=e.slice(0,md),o=t[t.length-1].function;o&&/sentryWrapped/.test(o)&&t.pop(),t.reverse();const n=t[t.length-1].function;return n&&/captureMessage|captureException/.test(n)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const Sb="";function t2(e){try{return!e||typeof e!="function"?Sb:e.name||Sb}catch{return Sb}}const rs=si();function Ld(){if(!("fetch"in rs))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function zs(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function PW(){if(!Ld())return!1;if(zs(rs.fetch))return!0;let e=!1;const t=rs.document;if(t&&typeof t.createElement=="function")try{const o=t.createElement("iframe");o.hidden=!0,t.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(e=zs(o.contentWindow.fetch)),t.head.removeChild(o)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return e}const Ii=si();function IW(){const e=Ii.chrome,t=e&&e.app&&e.app.runtime,o="history"in Ii&&!!Ii.history.pushState&&!!Ii.history.replaceState;return!t&&o}const O1=si(),gn={},Qz={};function FW(e){if(!Qz[e])switch(Qz[e]=!0,e){case"console":HW();break;case"dom":QW();break;case"xhr":YW();break;case"fetch":UW();break;case"history":$W();break;case"error":JW();break;case"unhandledrejection":ZW();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("unknown instrumentation type:",e);return}}function P1(e,t){gn[e]=gn[e]||[],gn[e].push(t),FW(e)}function Dt(e,t){if(!(!e||!gn[e]))for(const o of gn[e]||[])try{o(t)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${t2(o)} -Error:`,n)}}function HW(){"console"in O1&&HM.forEach(function(e){e in O1.console&&I1(O1.console,e,function(t){return function(...o){Dt("console",{args:o,level:e}),t&&t.apply(O1.console,o)}})})}function UW(){PW()&&I1(O1,"fetch",function(e){return function(...t){const{method:o,url:n}=jW(t),i={args:t,fetchData:{method:o,url:n},startTimestamp:Date.now()};return Dt("fetch",{...i}),e.apply(O1,t).then(M=>(Dt("fetch",{...i,endTimestamp:Date.now(),response:M}),M),M=>{throw Dt("fetch",{...i,endTimestamp:Date.now(),error:M}),M})}})}function as(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Jz(e){return typeof e=="string"?e:e?as(e,"url")?e.url:e.toString?e.toString():"":""}function jW(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[o,n]=e;return{url:Jz(o),method:as(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Jz(t),method:as(t,"method")?String(t.method).toUpperCase():"GET"}}function YW(){if(!("XMLHttpRequest"in O1))return;const e=XMLHttpRequest.prototype;I1(e,"open",function(t){return function(...o){const n=o[1],i=this.__sentry_xhr__={method:Je(o[0])?o[0].toUpperCase():o[0],url:o[1],request_headers:{}};Je(n)&&i.method==="POST"&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const M=()=>{const p=this.__sentry_xhr__;if(p&&this.readyState===4){try{p.status_code=this.status}catch{}Dt("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?I1(this,"onreadystatechange",function(p){return function(...b){return M(),p.apply(this,b)}}):this.addEventListener("readystatechange",M),I1(this,"setRequestHeader",function(p){return function(...b){const[s,r]=b,a=this.__sentry_xhr__;return a&&(a.request_headers[s]=r),p.apply(this,b)}}),t.apply(this,o)}}),I1(e,"send",function(t){return function(...o){return this.__sentry_xhr__&&o[0]!==void 0&&(this.__sentry_xhr__.body=o[0]),Dt("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),t.apply(this,o)}})}let Fi;function $W(){if(!IW())return;const e=O1.onpopstate;O1.onpopstate=function(...o){const n=O1.location.href,i=Fi;if(Fi=n,Dt("history",{from:i,to:n}),e)try{return e.apply(this,o)}catch{}};function t(o){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const M=Fi,p=String(i);Fi=p,Dt("history",{from:M,to:p})}return o.apply(this,n)}}I1(O1.history,"pushState",t),I1(O1.history,"replaceState",t)}const GW=1e3;let Hi,Ui;function VW(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function KW(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function Zz(e,t=!1){return o=>{if(!o||Ui===o||KW(o))return;const n=o.type==="keypress"?"input":o.type;Hi===void 0?(e({event:o,name:n,global:t}),Ui=o):VW(Ui,o)&&(e({event:o,name:n,global:t}),Ui=o),clearTimeout(Hi),Hi=O1.setTimeout(()=>{Hi=void 0},GW)}}function QW(){if(!("document"in O1))return;const e=Dt.bind(null,"dom"),t=Zz(e,!0);O1.document.addEventListener("click",t,!1),O1.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(o=>{const n=O1[o]&&O1[o].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(I1(n,"addEventListener",function(i){return function(M,p,b){if(M==="click"||M=="keypress")try{const s=this,r=s.__sentry_instrumentation_handlers__=s.__sentry_instrumentation_handlers__||{},a=r[M]=r[M]||{refCount:0};if(!a.handler){const A=Zz(e);a.handler=A,i.call(this,M,A,b)}a.refCount++}catch{}return i.call(this,M,p,b)}}),I1(n,"removeEventListener",function(i){return function(M,p,b){if(M==="click"||M=="keypress")try{const s=this,r=s.__sentry_instrumentation_handlers__||{},a=r[M];a&&(a.refCount--,a.refCount<=0&&(i.call(this,M,a.handler,b),a.handler=void 0,delete r[M]),Object.keys(r).length===0&&delete s.__sentry_instrumentation_handlers__)}catch{}return i.call(this,M,p,b)}}))})}let ji=null;function JW(){ji=O1.onerror,O1.onerror=function(e,t,o,n,i){return Dt("error",{column:n,error:i,line:o,msg:e,url:t}),ji&&!ji.__SENTRY_LOADER__?ji.apply(this,arguments):!1},O1.onerror.__SENTRY_INSTRUMENTED__=!0}let Yi=null;function ZW(){Yi=O1.onunhandledrejection,O1.onunhandledrejection=function(e){return Dt("unhandledrejection",e),Yi&&!Yi.__SENTRY_LOADER__?Yi.apply(this,arguments):!0},O1.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function t6(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function o(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let M=0;Mt.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(o()&15)>>n/4).toString(16))}function yd(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Xe(e){const{message:t,event_id:o}=e;if(t)return t;const n=yd(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||o||"":o||""}function Os(e,t,o){const n=e.exception=e.exception||{},i=n.values=n.values||[],M=i[0]=i[0]||{};M.value||(M.value=t||""),M.type||(M.type=o||"Error")}function Cn(e,t){const o=yd(e);if(!o)return;const n={type:"generic",handled:!0},i=o.mechanism;if(o.mechanism={...n,...i,...t},t&&"data"in t){const M={...i&&i.data,...t.data};o.mechanism.data=M}}function ta(e){if(e&&e.__sentry_captured__)return!0;try{gc(e,"__sentry_captured__",!0)}catch{}return!1}function Nd(e){return Array.isArray(e)?e:[e]}function e6(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function o6(){return"npm"}function mc(){return!e6()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function n6(e,t){return e.require(t)}function de(e,t=1/0,o=1/0){try{return ds("",e,t,o)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Bd(e,t=3,o=100*1024){const n=de(e,t);return b6(n)>o?Bd(e,t-1,o):n}function ds(e,t,o=1/0,n=1/0,i=t6()){const[M,p]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!qd(t))return t;const b=i6(e,t);if(!b.startsWith("[object "))return b;if(t.__sentry_skip_normalization__)return t;let s=o;if(typeof t.__sentry_override_normalization_depth__=="number"&&(s=t.__sentry_override_normalization_depth__),s===0)return b.replace("object ","");if(M(t))return"[Circular ~]";const r=t;if(r&&typeof r.toJSON=="function")try{const f=r.toJSON();return ds("",f,s-1,n,i)}catch{}const a=Array.isArray(t)?[]:{};let A=0;const u=_d(t);for(const f in u){if(!Object.prototype.hasOwnProperty.call(u,f))continue;if(A>=n){a[f]="[MaxProperties ~]";break}const W=u[f];a[f]=ds(f,W,s-1,n,i),A++}return p(t),a}function i6(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":mW(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${t2(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${M6(t)}]`}catch(o){return`**non-serializable** (${o})`}}function M6(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function p6(e){return~-encodeURI(e).split(/%..|./).length}function b6(e){return p6(JSON.stringify(e))}var ze;(function(e){e[e.PENDING=0]="PENDING";const o=1;e[e.RESOLVED=o]="RESOLVED";const n=2;e[e.REJECTED=n]="REJECTED"})(ze||(ze={}));function X2(e){return new K1(t=>{t(e)})}function UM(e){return new K1((t,o)=>{o(e)})}class K1{__init(){this._state=ze.PENDING}__init2(){this._handlers=[]}constructor(t){K1.prototype.__init.call(this),K1.prototype.__init2.call(this),K1.prototype.__init3.call(this),K1.prototype.__init4.call(this),K1.prototype.__init5.call(this),K1.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(o){this._reject(o)}}then(t,o){return new K1((n,i)=>{this._handlers.push([!1,M=>{if(!t)n(M);else try{n(t(M))}catch(p){i(p)}},M=>{if(!o)i(M);else try{n(o(M))}catch(p){i(p)}}]),this._executeHandlers()})}catch(t){return this.then(o=>o,t)}finally(t){return new K1((o,n)=>{let i,M;return this.then(p=>{M=!1,i=p,t&&t()},p=>{M=!0,i=p,t&&t()}).then(()=>{if(M){n(i);return}o(i)})})}__init3(){this._resolve=t=>{this._setResult(ze.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(ze.REJECTED,t)}}__init5(){this._setResult=(t,o)=>{if(this._state===ze.PENDING){if(hc(o)){o.then(this._resolve,this._reject);return}this._state=t,this._value=o,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===ze.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(o=>{o[0]||(this._state===ze.RESOLVED&&o[1](this._value),this._state===ze.REJECTED&&o[2](this._value),o[0]=!0)})}}}function s6(e){const t=[];function o(){return e===void 0||t.lengthn(b)).then(null,()=>n(b).then(null,()=>{})),b}function M(p){return new K1((b,s)=>{let r=t.length;if(!r)return b(!0);const a=setTimeout(()=>{p&&p>0&&b(!1)},p);t.forEach(A=>{X2(A).then(()=>{--r||(clearTimeout(a),b(!0))},s)})})}return{$:t,add:i,drain:M}}function wb(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const o=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:o,hash:n,relative:t[5]+o+n}}const c6=["fatal","error","warning","log","info","debug"];function r6(e){return e==="warn"?"warning":c6.includes(e)?e:"log"}const vd=si(),As={nowSeconds:()=>Date.now()/1e3};function z6(){const{performance:e}=vd;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function a6(){try{return n6(Xn,"perf_hooks").performance}catch{return}}const xb=mc()?a6():z6(),ea=xb===void 0?As:{nowSeconds:()=>(xb.timeOrigin+xb.now())/1e3},Rp=As.nowSeconds.bind(As),Rc=ea.nowSeconds.bind(ea),Dn=Rc,e2=(()=>{const{performance:e}=vd;if(!e||!e.now)return;const t=3600*1e3,o=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+o-n):t,M=i(Dt("fetch",{...i,endTimestamp:Date.now(),response:p}),p),p=>{throw Dt("fetch",{...i,endTimestamp:Date.now(),error:p}),p})}})}function as(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Jz(e){return typeof e=="string"?e:e?as(e,"url")?e.url:e.toString?e.toString():"":""}function jW(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[o,n]=e;return{url:Jz(o),method:as(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Jz(t),method:as(t,"method")?String(t.method).toUpperCase():"GET"}}function YW(){if(!("XMLHttpRequest"in O1))return;const e=XMLHttpRequest.prototype;I1(e,"open",function(t){return function(...o){const n=o[1],i=this.__sentry_xhr__={method:Je(o[0])?o[0].toUpperCase():o[0],url:o[1],request_headers:{}};Je(n)&&i.method==="POST"&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const p=()=>{const M=this.__sentry_xhr__;if(M&&this.readyState===4){try{M.status_code=this.status}catch{}Dt("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?I1(this,"onreadystatechange",function(M){return function(...b){return p(),M.apply(this,b)}}):this.addEventListener("readystatechange",p),I1(this,"setRequestHeader",function(M){return function(...b){const[s,r]=b,a=this.__sentry_xhr__;return a&&(a.request_headers[s]=r),M.apply(this,b)}}),t.apply(this,o)}}),I1(e,"send",function(t){return function(...o){return this.__sentry_xhr__&&o[0]!==void 0&&(this.__sentry_xhr__.body=o[0]),Dt("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),t.apply(this,o)}})}let Fi;function $W(){if(!IW())return;const e=O1.onpopstate;O1.onpopstate=function(...o){const n=O1.location.href,i=Fi;if(Fi=n,Dt("history",{from:i,to:n}),e)try{return e.apply(this,o)}catch{}};function t(o){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const p=Fi,M=String(i);Fi=M,Dt("history",{from:p,to:M})}return o.apply(this,n)}}I1(O1.history,"pushState",t),I1(O1.history,"replaceState",t)}const GW=1e3;let Hi,Ui;function VW(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function KW(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function Zz(e,t=!1){return o=>{if(!o||Ui===o||KW(o))return;const n=o.type==="keypress"?"input":o.type;Hi===void 0?(e({event:o,name:n,global:t}),Ui=o):VW(Ui,o)&&(e({event:o,name:n,global:t}),Ui=o),clearTimeout(Hi),Hi=O1.setTimeout(()=>{Hi=void 0},GW)}}function QW(){if(!("document"in O1))return;const e=Dt.bind(null,"dom"),t=Zz(e,!0);O1.document.addEventListener("click",t,!1),O1.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(o=>{const n=O1[o]&&O1[o].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(I1(n,"addEventListener",function(i){return function(p,M,b){if(p==="click"||p=="keypress")try{const s=this,r=s.__sentry_instrumentation_handlers__=s.__sentry_instrumentation_handlers__||{},a=r[p]=r[p]||{refCount:0};if(!a.handler){const A=Zz(e);a.handler=A,i.call(this,p,A,b)}a.refCount++}catch{}return i.call(this,p,M,b)}}),I1(n,"removeEventListener",function(i){return function(p,M,b){if(p==="click"||p=="keypress")try{const s=this,r=s.__sentry_instrumentation_handlers__||{},a=r[p];a&&(a.refCount--,a.refCount<=0&&(i.call(this,p,a.handler,b),a.handler=void 0,delete r[p]),Object.keys(r).length===0&&delete s.__sentry_instrumentation_handlers__)}catch{}return i.call(this,p,M,b)}}))})}let ji=null;function JW(){ji=O1.onerror,O1.onerror=function(e,t,o,n,i){return Dt("error",{column:n,error:i,line:o,msg:e,url:t}),ji&&!ji.__SENTRY_LOADER__?ji.apply(this,arguments):!1},O1.onerror.__SENTRY_INSTRUMENTED__=!0}let Yi=null;function ZW(){Yi=O1.onunhandledrejection,O1.onunhandledrejection=function(e){return Dt("unhandledrejection",e),Yi&&!Yi.__SENTRY_LOADER__?Yi.apply(this,arguments):!0},O1.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function t6(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function o(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let p=0;pt.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(o()&15)>>n/4).toString(16))}function yd(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Xe(e){const{message:t,event_id:o}=e;if(t)return t;const n=yd(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||o||"":o||""}function Os(e,t,o){const n=e.exception=e.exception||{},i=n.values=n.values||[],p=i[0]=i[0]||{};p.value||(p.value=t||""),p.type||(p.type=o||"Error")}function Cn(e,t){const o=yd(e);if(!o)return;const n={type:"generic",handled:!0},i=o.mechanism;if(o.mechanism={...n,...i,...t},t&&"data"in t){const p={...i&&i.data,...t.data};o.mechanism.data=p}}function ta(e){if(e&&e.__sentry_captured__)return!0;try{gc(e,"__sentry_captured__",!0)}catch{}return!1}function Nd(e){return Array.isArray(e)?e:[e]}function e6(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function o6(){return"npm"}function mc(){return!e6()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function n6(e,t){return e.require(t)}function de(e,t=1/0,o=1/0){try{return ds("",e,t,o)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Bd(e,t=3,o=100*1024){const n=de(e,t);return b6(n)>o?Bd(e,t-1,o):n}function ds(e,t,o=1/0,n=1/0,i=t6()){const[p,M]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!qd(t))return t;const b=i6(e,t);if(!b.startsWith("[object "))return b;if(t.__sentry_skip_normalization__)return t;let s=o;if(typeof t.__sentry_override_normalization_depth__=="number"&&(s=t.__sentry_override_normalization_depth__),s===0)return b.replace("object ","");if(p(t))return"[Circular ~]";const r=t;if(r&&typeof r.toJSON=="function")try{const f=r.toJSON();return ds("",f,s-1,n,i)}catch{}const a=Array.isArray(t)?[]:{};let A=0;const u=_d(t);for(const f in u){if(!Object.prototype.hasOwnProperty.call(u,f))continue;if(A>=n){a[f]="[MaxProperties ~]";break}const W=u[f];a[f]=ds(f,W,s-1,n,i),A++}return M(t),a}function i6(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":mW(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${t2(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${p6(t)}]`}catch(o){return`**non-serializable** (${o})`}}function p6(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function M6(e){return~-encodeURI(e).split(/%..|./).length}function b6(e){return M6(JSON.stringify(e))}var ze;(function(e){e[e.PENDING=0]="PENDING";const o=1;e[e.RESOLVED=o]="RESOLVED";const n=2;e[e.REJECTED=n]="REJECTED"})(ze||(ze={}));function X2(e){return new K1(t=>{t(e)})}function Up(e){return new K1((t,o)=>{o(e)})}class K1{__init(){this._state=ze.PENDING}__init2(){this._handlers=[]}constructor(t){K1.prototype.__init.call(this),K1.prototype.__init2.call(this),K1.prototype.__init3.call(this),K1.prototype.__init4.call(this),K1.prototype.__init5.call(this),K1.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(o){this._reject(o)}}then(t,o){return new K1((n,i)=>{this._handlers.push([!1,p=>{if(!t)n(p);else try{n(t(p))}catch(M){i(M)}},p=>{if(!o)i(p);else try{n(o(p))}catch(M){i(M)}}]),this._executeHandlers()})}catch(t){return this.then(o=>o,t)}finally(t){return new K1((o,n)=>{let i,p;return this.then(M=>{p=!1,i=M,t&&t()},M=>{p=!0,i=M,t&&t()}).then(()=>{if(p){n(i);return}o(i)})})}__init3(){this._resolve=t=>{this._setResult(ze.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(ze.REJECTED,t)}}__init5(){this._setResult=(t,o)=>{if(this._state===ze.PENDING){if(hc(o)){o.then(this._resolve,this._reject);return}this._state=t,this._value=o,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===ze.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(o=>{o[0]||(this._state===ze.RESOLVED&&o[1](this._value),this._state===ze.REJECTED&&o[2](this._value),o[0]=!0)})}}}function s6(e){const t=[];function o(){return e===void 0||t.lengthn(b)).then(null,()=>n(b).then(null,()=>{})),b}function p(M){return new K1((b,s)=>{let r=t.length;if(!r)return b(!0);const a=setTimeout(()=>{M&&M>0&&b(!1)},M);t.forEach(A=>{X2(A).then(()=>{--r||(clearTimeout(a),b(!0))},s)})})}return{$:t,add:i,drain:p}}function wb(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const o=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:o,hash:n,relative:t[5]+o+n}}const c6=["fatal","error","warning","log","info","debug"];function r6(e){return e==="warn"?"warning":c6.includes(e)?e:"log"}const vd=si(),As={nowSeconds:()=>Date.now()/1e3};function z6(){const{performance:e}=vd;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function a6(){try{return n6(Xn,"perf_hooks").performance}catch{return}}const xb=mc()?a6():z6(),ea=xb===void 0?As:{nowSeconds:()=>(xb.timeOrigin+xb.now())/1e3},RM=As.nowSeconds.bind(As),Rc=ea.nowSeconds.bind(ea),Dn=Rc,e2=(()=>{const{performance:e}=vd;if(!e||!e.now)return;const t=3600*1e3,o=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+o-n):t,p=ii+M.length,0),o=new Uint8Array(t);let n=0;for(const i of e)o.set(i,n),n+=i.length;return o}function f6(e,t){const o=typeof e.data=="string"?ls(e.data,t):e.data;return[Jt({type:"attachment",length:o.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),o]}const q6={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function na(e){return q6[e]}function Lc(e){if(!e||!e.sdk)return;const{name:t,version:o}=e.sdk;return{name:t,version:o}}function Td(e,t,o,n){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!o&&{dsn:mp(n)},...e.type==="transaction"&&i&&{trace:Jt({...i})}}}function h6(e,t,o){const n=[{type:"client_report"},{timestamp:o||Rp(),discarded_events:e}];return Fo(t?{dsn:t}:{},[n])}const W6=60*1e3;function g6(e,t=Date.now()){const o=parseInt(`${e}`,10);if(!isNaN(o))return o*1e3;const n=Date.parse(`${e}`);return isNaN(n)?W6:n-t}function _6(e,t){return e[t]||e.all||0}function m6(e,t,o=Date.now()){return _6(e,t)>o}function R6(e,{statusCode:t,headers:o},n=Date.now()){const i={...e},M=o&&o["x-sentry-rate-limits"],p=o&&o["retry-after"];if(M)for(const b of M.trim().split(",")){const[s,r]=b.split(":",2),a=parseInt(s,10),A=(isNaN(a)?60:a)*1e3;if(!r)i.all=n+A;else for(const u of r.split(";"))i[u]=n+A}else p?i.all=n+g6(p,n):t===429&&(i.all=n+60*1e3);return i}const us="baggage",Ed="sentry-",L6=/^sentry-/,y6=8192;function N6(e){if(!Je(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((n,i)=>{const M=ia(i);return{...n,...M}},{});else{if(!e)return;t=ia(e)}const o=Object.entries(t).reduce((n,[i,M])=>{if(i.match(L6)){const p=i.slice(Ed.length);n[p]=M}return n},{});if(Object.keys(o).length>0)return o}function Sd(e){const t=Object.entries(e).reduce((o,[n,i])=>(i&&(o[`${Ed}${n}`]=i),o),{});return B6(t)}function ia(e){return e.split(",").map(t=>t.split("=").map(o=>decodeURIComponent(o.trim()))).reduce((t,[o,n])=>(t[o]=n,t),{})}function B6(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[o,n],i)=>{const M=`${encodeURIComponent(o)}=${encodeURIComponent(n)}`,p=i===0?M:`${t},${M}`;return p.length>y6?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Not adding key: ${o} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):p},"")}const yc="production";function v6(e){const t=Rc(),o={sid:ge(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>E6(o)};return e&&Bo(o,e),o}function Bo(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Rc(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ge()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const o=e.timestamp-e.started;e.duration=o>=0?o:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function T6(e,t){let o={};t?o={status:t}:e.status==="ok"&&(o={status:"exited"}),Bo(e,o)}function E6(e){return Jt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const S6=100;class je{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const o=new je;return t&&(o._breadcrumbs=[...t._breadcrumbs],o._tags={...t._tags},o._extra={...t._extra},o._contexts={...t._contexts},o._user=t._user,o._level=t._level,o._span=t._span,o._session=t._session,o._transactionName=t._transactionName,o._fingerprint=t._fingerprint,o._eventProcessors=[...t._eventProcessors],o._requestSession=t._requestSession,o._attachments=[...t._attachments],o._sdkProcessingMetadata={...t._sdkProcessingMetadata}),o}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Bo(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,o){return this._tags={...this._tags,[t]:o},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,o){return this._extra={...this._extra,[t]:o},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,o){return o===null?delete this._contexts[t]:this._contexts[t]=o,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const o=t(this);return o instanceof je?o:this}return t instanceof je?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):No(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,o){const n=typeof o=="number"?o:S6;if(n<=0)return this;const i={timestamp:Rp(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-n),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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,o={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const n=this._span.transaction&&this._span.transaction.name;n&&(t.tags={transaction:n,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...wd(),...this._eventProcessors],t,o)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,o,n,i=0){return new K1((M,p)=>{const b=t[i];if(o===null||typeof b!="function")M(o);else{const s=b({...o},n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&b.id&&s===null&&V.log(`Event processor "${b.id}" dropped event`),hc(s)?s.then(r=>this._notifyEventProcessors(t,r,n,i+1).then(M)).then(null,p):this._notifyEventProcessors(t,s,n,i+1).then(M).then(null,p)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Nd(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function wd(){return Wc("globalEventProcessors",()=>[])}function Lp(e){wd().push(e)}const Nc=4,w6=100;class Bc{constructor(t,o=new je,n=Nc){this._version=n,this._stack=[{scope:o}],t&&this.bindClient(t)}isOlderThan(t){return this._version{M.captureException(t,{originalException:t,syntheticException:i,...o,event_id:n},p)}),n}captureMessage(t,o,n){const i=this._lastEventId=n&&n.event_id?n.event_id:ge(),M=new Error(t);return this._withClient((p,b)=>{p.captureMessage(t,o,{originalException:t,syntheticException:M,...n,event_id:i},b)}),i}captureEvent(t,o){const n=o&&o.event_id?o.event_id:ge();return t.type||(this._lastEventId=n),this._withClient((i,M)=>{i.captureEvent(t,{...o,event_id:n},M)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,o){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:M=null,maxBreadcrumbs:p=w6}=i.getOptions&&i.getOptions()||{};if(p<=0)return;const s={timestamp:Rp(),...t},r=M?Wd(()=>M(s,o)):s;r!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",r,o),n.addBreadcrumb(r,p))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,o){this.getScope().setTag(t,o)}setExtra(t,o){this.getScope().setExtra(t,o)}setContext(t,o){this.getScope().setContext(t,o)}configureScope(t){const{scope:o,client:n}=this.getStackTop();n&&t(o)}run(t){const o=Ma(this);try{t(this)}finally{Ma(o)}}getIntegration(t){const o=this.getClient();if(!o)return null;try{return o.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,o){return this._callExtensionMethod("startTransaction",t,o)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const o=this.getStackTop().scope,n=o.getSession();n&&T6(n),this._sendSessionUpdate(),o.setSession()}startSession(t){const{scope:o,client:n}=this.getStackTop(),{release:i,environment:M=yc}=n&&n.getOptions()||{},{userAgent:p}=st.navigator||{},b=v6({release:i,environment:M,user:o.getUser(),...p&&{userAgent:p},...t}),s=o.getSession&&o.getSession();return s&&s.status==="ok"&&Bo(s,{status:"exited"}),this.endSession(),o.setSession(b),b}shouldSendDefaultPii(){const t=this.getClient(),o=t&&t.getOptions();return!!(o&&o.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:o}=this.getStackTop(),n=t.getSession();n&&o&&o.captureSession&&o.captureSession(n)}_withClient(t){const{scope:o,client:n}=this.getStackTop();n&&t(n,o)}_callExtensionMethod(t,...o){const i=ri().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,o);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ri(){return st.__SENTRY__=st.__SENTRY__||{extensions:{},hub:void 0},st}function Ma(e){const t=ri(),o=ke(t);return vc(t,e),o}function w0(){const e=ri();return(!xd(e)||ke(e).isOlderThan(Nc))&&vc(e,new Bc),mc()?x6(e):ke(e)}function x6(e){try{const t=ri().__SENTRY__,o=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!o)return ke(e);if(!xd(o)||ke(o).isOlderThan(Nc)){const n=ke(e).getStackTop();vc(o,new Bc(n.client,je.clone(n.scope)))}return ke(o)}catch{return ke(e)}}function xd(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ke(e){return Wc("hub",()=>new Bc,e)}function vc(e,t){if(!e)return!1;const o=e.__SENTRY__=e.__SENTRY__||{};return o.hub=t,!0}function Tc(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=w0().getClient(),o=e||t&&t.getOptions();return!!o&&(o.enableTracing||"tracesSampleRate"in o||"tracesSampler"in o)}function zi(e){return(e||w0()).getScope().getTransaction()}let pa=!1;function X6(){pa||(pa=!0,P1("error",fs),P1("unhandledrejection",fs))}function fs(){const e=zi();if(e){const t="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}fs.tag="sentry_tracingErrorCallback";class yp{__init(){this.spans=[]}constructor(t=1e3){yp.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class ae{__init2(){this.traceId=ge()}__init3(){this.spanId=ge().substring(16)}__init4(){this.startTimestamp=Dn()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(ae.prototype.__init2.call(this),ae.prototype.__init3.call(this),ae.prototype.__init4.call(this),ae.prototype.__init5.call(this),ae.prototype.__init6.call(this),ae.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const o=new ae({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(o.spanRecorder=this.spanRecorder,o.spanRecorder&&o.spanRecorder.add(o),o.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&o.transaction){const n=t&&t.op||"< unknown op >",i=o.transaction.name||"< unknown name >",M=o.transaction.spanId,p=`[Tracing] Starting '${n}' span on transaction '${i}' (${M}).`;o.transaction.metadata.spanMetadata[o.spanId]={logMessage:p},V.log(p)}return o}setTag(t,o){return this.tags={...this.tags,[t]:o},this}setData(t,o){return this.data={...this.data,[t]:o},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const o=k6(t);return o!=="unknown_error"&&this.setStatus(o),this}isSuccess(){return this.status==="ok"}finish(t){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:o}=this.transaction.metadata.spanMetadata[this.spanId];o&&V.log(o.replace("Starting","Finishing"))}this.endTimestamp=typeof t=="number"?t:Dn()}toTraceparent(){let t="";return this.sampled!==void 0&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return Jt({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Jt({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Jt({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function k6(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}class zo extends ae{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(t,o){super(t),zo.prototype.__init.call(this),zo.prototype.__init2.call(this),zo.prototype.__init3.call(this),this._hub=o||w0(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,o="custom"){this._name=t,this.metadata.source=o}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new yp(t)),this.spanRecorder.add(this)}setContext(t,o){o===null?delete this._contexts[t]:this._contexts[t]=o}setMeasurement(t,o,n=""){this._measurements[t]={value:o,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(t);const o=this._hub.getClient();if(o&&o.emit&&o.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(b=>b!==this&&b.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((b,s)=>b.endTimestamp&&s.endTimestamp?b.endTimestamp>s.endTimestamp?b:s:b).endTimestamp);const i=this.metadata,M={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),M.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(M)}toContext(){const t=super.toContext();return Jt({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||w0(),o=t&&t.getClient();if(!o)return{};const{environment:n,release:i}=o.getOptions()||{},{publicKey:M}=o.getDsn()||{},p=this.metadata.sampleRate,b=p!==void 0?p.toString():void 0,{segment:s}=t.getScope().getUser()||{},r=this.metadata.source,a=r&&r!=="url"?this.name:void 0,A=Jt({environment:n||yc,release:i,transaction:a,user_segment:s,public_key:M,trace_id:this.traceId,sample_rate:b});return o.emit&&o.emit("createDsc",A),A}setHub(t){this._hub=t}}const fM={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},C6="finishReason",Q2=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class D6 extends yp{constructor(t,o,n,i){super(i),this._pushActivity=t,this._popActivity=o,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=o=>{t.endTimestamp=typeof o=="number"?o:Dn(),this._popActivity(t.spanId)},t.endTimestamp===void 0&&this._pushActivity(t.spanId)),super.add(t)}}class xe extends zo{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=Q2[4]}constructor(t,o,n=fM.idleTimeout,i=fM.finalTimeout,M=fM.heartbeatInterval,p=!1){super(t,o),this._idleHub=o,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=M,this._onScope=p,xe.prototype.__init.call(this),xe.prototype.__init2.call(this),xe.prototype.__init3.call(this),xe.prototype.__init4.call(this),xe.prototype.__init5.call(this),xe.prototype.__init6.call(this),p&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),o.configureScope(b=>b.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Q2[3],this.finish())},this._finalTimeout)}finish(t=Dn()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(C6,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const o of this._beforeFinishCallbacks)o(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(o=>{if(o.spanId===this.spanId)return!0;o.endTimestamp||(o.endTimestamp=t,o.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(o,void 0,2)));const n=o.startTimestamp"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(o,void 0,2)),n}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] No active IdleTransaction");if(this._onScope){const o=this._idleHub.getScope();o.getTransaction()===this&&o.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const o=i=>{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new D6(o,n,this.spanId,t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:o}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=o===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Q2[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Q2[1],this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] popActivity ${t}`),delete this.activities[t],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const o=Dn();this._idleTimeoutCanceledPermanently?(this._finishReason=Q2[5],this.finish(o)):this._restartIdleTimeout(o+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Q2[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function P6(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function Xd(e,t,o){if(!Tc(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let n;return typeof t.tracesSampler=="function"?(n=t.tracesSampler(o),e.setMetadata({sampleRate:Number(n)})):o.parentSampled!==void 0?n=o.parentSampled:typeof t.tracesSampleRate<"u"?(n=t.tracesSampleRate,e.setMetadata({sampleRate:Number(n)})):(n=1,e.setMetadata({sampleRate:n})),I6(n)?n?(e.sampled=Math.random()"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),e)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function I6(e){return qd(e)||!(typeof e=="number"||typeof e=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function F6(e,t){const o=this.getClient(),n=o&&o.getOptions()||{},i=n.instrumenter||"sentry",M=e.instrumenter||"sentry";i!==M&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`A transaction was started with instrumenter=\`${M}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let p=new zo(e,this);return p=Xd(p,n,{parentSampled:e.parentSampled,transactionContext:e,...t}),p.sampled&&p.initSpanRecorder(n._experiments&&n._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",p),p}function ba(e,t,o,n,i,M,p){const b=e.getClient(),s=b&&b.getOptions()||{};let r=new xe(t,e,o,n,p,i);return r=Xd(r,s,{parentSampled:t.parentSampled,transactionContext:t,...M}),r.sampled&&r.initSpanRecorder(s._experiments&&s._experiments.maxSpans),b&&b.emit&&b.emit("startTransaction",r),r}function H6(){const e=ri();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=F6),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=P6),X6())}function Ec(e,t){return w0().captureException(e,{captureContext:t})}function U6(e){w0().addBreadcrumb(e)}function j6(e,t){w0().setContext(e,t)}function Y6(e){w0().withScope(e)}const $6="7";function G6(e){const t=e.protocol?`${e.protocol}:`:"",o=e.port?`:${e.port}`:"";return`${t}//${e.host}${o}${e.path?`/${e.path}`:""}/api/`}function V6(e){return`${G6(e)}${e.projectId}/envelope/`}function K6(e,t){return XW({sentry_key:e.publicKey,sentry_version:$6,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Q6(e,t={}){const o=typeof t=="string"?t:t.tunnel,n=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return o||`${V6(e)}?${K6(e,n)}`}function J6(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Z6(e,t,o,n){const i=Lc(o),M={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&{dsn:mp(t)}},p="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Fo(M,[p])}function tg(e,t,o,n){const i=Lc(o),M=e.type&&e.type!=="replay_event"?e.type:"event";J6(e,o&&o.sdk);const p=Td(e,i,n,t);return delete e.sdkProcessingMetadata,Fo(p,[[{type:M},e]])}const sa=[];function eg(e){const t={};return e.forEach(o=>{const{name:n}=o,i=t[n];i&&!i.isDefaultInstance&&o.isDefaultInstance||(t[n]=o)}),Object.keys(t).map(o=>t[o])}function og(e){const t=e.defaultIntegrations||[],o=e.integrations;t.forEach(p=>{p.isDefaultInstance=!0});let n;Array.isArray(o)?n=[...t,...o]:typeof o=="function"?n=Nd(o(t)):n=t;const i=eg(n),M=ig(i,p=>p.name==="Debug");if(M!==-1){const[p]=i.splice(M,1);i.push(p)}return i}function ng(e){const t={};return e.forEach(o=>{o&&kd(o,t)}),t}function kd(e,t){t[e.name]=e,sa.indexOf(e.name)===-1&&(e.setupOnce(Lp,w0),sa.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Integration installed: ${e.name}`))}function ig(e,t){for(let o=0;oa.name);Mg(p,e),bg(p,b),pg(p,e.stackParser);let s=n;o.captureContext&&(s=je.clone(s).update(o.captureContext));let r=X2(p);if(s){if(s.getAttachments){const a=[...o.attachments||[],...s.getAttachments()];a.length&&(o.attachments=a)}r=s.applyToEvent(p,o)}return r.then(a=>typeof i=="number"&&i>0?sg(a,i,M):a)}function Mg(e,t){const{environment:o,release:n,dist:i,maxValueLength:M=250}=t;"environment"in e||(e.environment="environment"in t?o:yc),e.release===void 0&&n!==void 0&&(e.release=n),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Wn(e.message,M));const p=e.exception&&e.exception.values&&e.exception.values[0];p&&p.value&&(p.value=Wn(p.value,M));const b=e.request;b&&b.url&&(b.url=Wn(b.url,M))}function pg(e,t){const o=st._sentryDebugIds;if(!o)return;const n=Object.keys(o).reduce((p,b)=>{const s=t(b);for(let r=s.length-1;r>=0;r--){const a=s[r];if(a.filename){p[a.filename]=o[b];break}}return p},{}),i=new Set;try{e.exception.values.forEach(p=>{p.stacktrace.frames.forEach(b=>{b.filename&&i.add(b.filename)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const M=e.debug_meta.images;i.forEach(p=>{n[p]&&M.push({type:"sourcemap",code_file:p,debug_id:n[p]})})}function bg(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function sg(e,t,o){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:de(i.data,t,o)}}))},...e.user&&{user:de(e.user,t,o)},...e.contexts&&{contexts:de(e.contexts,t,o)},...e.extra&&{extra:de(e.extra,t,o)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=de(e.contexts.trace.data,t,o))),e.spans&&(n.spans=e.spans.map(i=>(i.data&&(i.data=de(i.data,t,o)),i))),n}const ca="Not capturing exception because it's already been captured.";class _2{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(_2.prototype.__init.call(this),_2.prototype.__init2.call(this),_2.prototype.__init3.call(this),_2.prototype.__init4.call(this),_2.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=SW(t.dsn);const o=Q6(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("No DSN provided, client will not do anything.")}captureException(t,o,n){if(ta(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(ca);return}let i=o&&o.event_id;return this._process(this.eventFromException(t,o).then(M=>this._captureEvent(M,o,n)).then(M=>{i=M})),i}captureMessage(t,o,n,i){let M=n&&n.event_id;const p=fd(t)?this.eventFromMessage(String(t),o,n):this.eventFromException(t,n);return this._process(p.then(b=>this._captureEvent(b,n,i)).then(b=>{M=b})),M}captureEvent(t,o,n){if(o&&o.originalException&&ta(o.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(ca);return}let i=o&&o.event_id;return this._process(this._captureEvent(t,o,n).then(M=>{i=M})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Bo(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const o=this._transport;return o?this._isClientDoneProcessing(t).then(n=>o.flush(t).then(i=>n&&i)):X2(!0)}close(t){return this.flush(t).then(o=>(this.getOptions().enabled=!1,o))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=ng(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){kd(t,this._integrations)}sendEvent(t,o={}){if(this._dsn){let n=tg(t,this._dsn,this._options._metadata,this._options.tunnel);for(const M of o.attachments||[])n=A6(n,f6(M,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then(M=>this.emit("afterSendEvent",t,M),null)}}sendSession(t){if(this._dsn){const o=Z6(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(o)}}recordDroppedEvent(t,o,n){if(this._options.sendClientReports){const i=`${t}:${o}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,o){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(o)}emit(t,...o){this._hooks[t]&&this._hooks[t].forEach(n=>n(...o))}_updateSessionFromEvent(t,o){let n=!1,i=!1;const M=o.exception&&o.exception.values;if(M){i=!0;for(const s of M){const r=s.mechanism;if(r&&r.handled===!1){n=!0;break}}}const p=t.status==="ok";(p&&t.errors===0||p&&n)&&(Bo(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new K1(o=>{let n=0;const i=1,M=setInterval(()=>{this._numProcessing==0?(clearInterval(M),o(!0)):(n+=i,t&&n>=t&&(clearInterval(M),o(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,o,n){const i=this.getOptions(),M=Object.keys(this._integrations);return!o.integrations&&M.length>0&&(o.integrations=M),Cd(i,t,o,n)}_captureEvent(t,o={},n){return this._processEvent(t,o,n).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const M=i;M.logLevel==="log"?V.log(M.message):V.warn(M)}})}_processEvent(t,o,n){const i=this.getOptions(),{sampleRate:M}=i;if(!this._isEnabled())return UM(new U1("SDK not enabled, will not capture event.","log"));const p=Pd(t),b=Dd(t),s=t.type||"error",r=`before send for type \`${s}\``;if(b&&typeof M=="number"&&Math.random()>M)return this.recordDroppedEvent("sample_rate","error",t),UM(new U1(`Discarding event because it's not included in the random sample (sampling rate = ${M})`,"log"));const a=s==="replay_event"?"replay":s;return this._prepareEvent(t,o,n).then(A=>{if(A===null)throw this.recordDroppedEvent("event_processor",a,t),new U1("An event processor returned `null`, will not send event.","log");if(o.data&&o.data.__sentry__===!0)return A;const f=rg(i,A,o);return cg(f,r)}).then(A=>{if(A===null)throw this.recordDroppedEvent("before_send",a,t),new U1(`${r} returned \`null\`, will not send event.`,"log");const u=n&&n.getSession();!p&&u&&this._updateSessionFromEvent(u,A);const f=A.transaction_info;if(p&&f&&A.transaction!==t.transaction){const W="custom";A.transaction_info={...f,source:W}}return this.sendEvent(A,o),A}).then(null,A=>{throw A instanceof U1?A:(this.captureException(A,{data:{__sentry__:!0},originalException:A}),new U1(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${A}`))})}_process(t){this._numProcessing++,t.then(o=>(this._numProcessing--,o),o=>(this._numProcessing--,o))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,o=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Error while sending event:",o)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(o=>{const[n,i]=o.split(":");return{reason:n,category:i,quantity:t[o]}})}}function cg(e,t){const o=`${t} must return \`null\` or a valid event.`;if(hc(e))return e.then(n=>{if(!No(n)&&n!==null)throw new U1(o);return n},n=>{throw new U1(`${t} rejected with ${n}`)});if(!No(e)&&e!==null)throw new U1(o);return e}function rg(e,t,o){const{beforeSend:n,beforeSendTransaction:i}=e;return Dd(t)&&n?n(t,o):Pd(t)&&i?i(t,o):t}function Dd(e){return e.type===void 0}function Pd(e){return e.type==="transaction"}function zg(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?V.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const o=w0();o.getScope().update(t.initialScope);const i=new e(t);o.bindClient(i)}const ag=30;function Id(e,t,o=s6(e.bufferSize||ag)){let n={};const i=p=>o.drain(p);function M(p){const b=[];if(oa(p,(A,u)=>{const f=na(u);if(m6(n,f)){const W=ra(A,u);e.recordDroppedEvent("ratelimit_backoff",f,W)}else b.push(A)}),b.length===0)return X2();const s=Fo(p[0],b),r=A=>{oa(s,(u,f)=>{const W=ra(u,f);e.recordDroppedEvent(A,na(f),W)})},a=()=>t({body:l6(s,e.textEncoder)}).then(A=>(A.statusCode!==void 0&&(A.statusCode<200||A.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Sentry responded with status code ${A.statusCode} to sent event.`),n=R6(n,A),A),A=>{throw r("network_error"),A});return o.add(a).then(A=>A,A=>{if(A instanceof U1)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Skipped sending event because buffer is full."),r("queue_overflow"),X2();throw A})}return M.__sentry__baseTransport__=!0,{send:M,flush:i}}function ra(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const za="7.47.0";let aa;class Pn{constructor(){Pn.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Pn.id}setupOnce(){aa=Function.prototype.toString,Function.prototype.toString=function(...t){const o=_c(this)||this;return aa.apply(o,t)}}}Pn.__initStatic();const Og=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ao{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ao.id}constructor(t={}){this._options=t,ao.prototype.__init.call(this)}setupOnce(t,o){const n=i=>{const M=o();if(M){const p=M.getIntegration(ao);if(p){const b=M.getClient(),s=b?b.getOptions():{},r=dg(p._options,s);return Ag(i,r)?null:i}}return i};n.id=this.name,t(n)}}ao.__initStatic();function dg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...Og],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Ag(e,t){return t.ignoreInternal&&Wg(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being internal Sentry Error. +`),typeof s=="string"||s instanceof Uint8Array)p(s);else{let r;try{r=JSON.stringify(s)}catch{r=JSON.stringify(de(s))}p(r)}}return typeof i=="string"?i:u6(i)}function u6(e){const t=e.reduce((i,p)=>i+p.length,0),o=new Uint8Array(t);let n=0;for(const i of e)o.set(i,n),n+=i.length;return o}function f6(e,t){const o=typeof e.data=="string"?ls(e.data,t):e.data;return[Jt({type:"attachment",length:o.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),o]}const q6={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function na(e){return q6[e]}function Lc(e){if(!e||!e.sdk)return;const{name:t,version:o}=e.sdk;return{name:t,version:o}}function Td(e,t,o,n){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!o&&{dsn:mM(n)},...e.type==="transaction"&&i&&{trace:Jt({...i})}}}function h6(e,t,o){const n=[{type:"client_report"},{timestamp:o||RM(),discarded_events:e}];return Fo(t?{dsn:t}:{},[n])}const W6=60*1e3;function g6(e,t=Date.now()){const o=parseInt(`${e}`,10);if(!isNaN(o))return o*1e3;const n=Date.parse(`${e}`);return isNaN(n)?W6:n-t}function _6(e,t){return e[t]||e.all||0}function m6(e,t,o=Date.now()){return _6(e,t)>o}function R6(e,{statusCode:t,headers:o},n=Date.now()){const i={...e},p=o&&o["x-sentry-rate-limits"],M=o&&o["retry-after"];if(p)for(const b of p.trim().split(",")){const[s,r]=b.split(":",2),a=parseInt(s,10),A=(isNaN(a)?60:a)*1e3;if(!r)i.all=n+A;else for(const u of r.split(";"))i[u]=n+A}else M?i.all=n+g6(M,n):t===429&&(i.all=n+60*1e3);return i}const us="baggage",Ed="sentry-",L6=/^sentry-/,y6=8192;function N6(e){if(!Je(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((n,i)=>{const p=ia(i);return{...n,...p}},{});else{if(!e)return;t=ia(e)}const o=Object.entries(t).reduce((n,[i,p])=>{if(i.match(L6)){const M=i.slice(Ed.length);n[M]=p}return n},{});if(Object.keys(o).length>0)return o}function Sd(e){const t=Object.entries(e).reduce((o,[n,i])=>(i&&(o[`${Ed}${n}`]=i),o),{});return B6(t)}function ia(e){return e.split(",").map(t=>t.split("=").map(o=>decodeURIComponent(o.trim()))).reduce((t,[o,n])=>(t[o]=n,t),{})}function B6(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[o,n],i)=>{const p=`${encodeURIComponent(o)}=${encodeURIComponent(n)}`,M=i===0?p:`${t},${p}`;return M.length>y6?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Not adding key: ${o} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):M},"")}const yc="production";function v6(e){const t=Rc(),o={sid:ge(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>E6(o)};return e&&Bo(o,e),o}function Bo(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Rc(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ge()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const o=e.timestamp-e.started;e.duration=o>=0?o:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function T6(e,t){let o={};t?o={status:t}:e.status==="ok"&&(o={status:"exited"}),Bo(e,o)}function E6(e){return Jt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const S6=100;class je{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const o=new je;return t&&(o._breadcrumbs=[...t._breadcrumbs],o._tags={...t._tags},o._extra={...t._extra},o._contexts={...t._contexts},o._user=t._user,o._level=t._level,o._span=t._span,o._session=t._session,o._transactionName=t._transactionName,o._fingerprint=t._fingerprint,o._eventProcessors=[...t._eventProcessors],o._requestSession=t._requestSession,o._attachments=[...t._attachments],o._sdkProcessingMetadata={...t._sdkProcessingMetadata}),o}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Bo(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,o){return this._tags={...this._tags,[t]:o},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,o){return this._extra={...this._extra,[t]:o},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,o){return o===null?delete this._contexts[t]:this._contexts[t]=o,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const o=t(this);return o instanceof je?o:this}return t instanceof je?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):No(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,o){const n=typeof o=="number"?o:S6;if(n<=0)return this;const i={timestamp:RM(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-n),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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,o={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const n=this._span.transaction&&this._span.transaction.name;n&&(t.tags={transaction:n,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...wd(),...this._eventProcessors],t,o)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,o,n,i=0){return new K1((p,M)=>{const b=t[i];if(o===null||typeof b!="function")p(o);else{const s=b({...o},n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&b.id&&s===null&&V.log(`Event processor "${b.id}" dropped event`),hc(s)?s.then(r=>this._notifyEventProcessors(t,r,n,i+1).then(p)).then(null,M):this._notifyEventProcessors(t,s,n,i+1).then(p).then(null,M)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Nd(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function wd(){return Wc("globalEventProcessors",()=>[])}function LM(e){wd().push(e)}const Nc=4,w6=100;class Bc{constructor(t,o=new je,n=Nc){this._version=n,this._stack=[{scope:o}],t&&this.bindClient(t)}isOlderThan(t){return this._version{p.captureException(t,{originalException:t,syntheticException:i,...o,event_id:n},M)}),n}captureMessage(t,o,n){const i=this._lastEventId=n&&n.event_id?n.event_id:ge(),p=new Error(t);return this._withClient((M,b)=>{M.captureMessage(t,o,{originalException:t,syntheticException:p,...n,event_id:i},b)}),i}captureEvent(t,o){const n=o&&o.event_id?o.event_id:ge();return t.type||(this._lastEventId=n),this._withClient((i,p)=>{i.captureEvent(t,{...o,event_id:n},p)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,o){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:p=null,maxBreadcrumbs:M=w6}=i.getOptions&&i.getOptions()||{};if(M<=0)return;const s={timestamp:RM(),...t},r=p?Wd(()=>p(s,o)):s;r!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",r,o),n.addBreadcrumb(r,M))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,o){this.getScope().setTag(t,o)}setExtra(t,o){this.getScope().setExtra(t,o)}setContext(t,o){this.getScope().setContext(t,o)}configureScope(t){const{scope:o,client:n}=this.getStackTop();n&&t(o)}run(t){const o=pa(this);try{t(this)}finally{pa(o)}}getIntegration(t){const o=this.getClient();if(!o)return null;try{return o.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,o){return this._callExtensionMethod("startTransaction",t,o)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const o=this.getStackTop().scope,n=o.getSession();n&&T6(n),this._sendSessionUpdate(),o.setSession()}startSession(t){const{scope:o,client:n}=this.getStackTop(),{release:i,environment:p=yc}=n&&n.getOptions()||{},{userAgent:M}=st.navigator||{},b=v6({release:i,environment:p,user:o.getUser(),...M&&{userAgent:M},...t}),s=o.getSession&&o.getSession();return s&&s.status==="ok"&&Bo(s,{status:"exited"}),this.endSession(),o.setSession(b),b}shouldSendDefaultPii(){const t=this.getClient(),o=t&&t.getOptions();return!!(o&&o.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:o}=this.getStackTop(),n=t.getSession();n&&o&&o.captureSession&&o.captureSession(n)}_withClient(t){const{scope:o,client:n}=this.getStackTop();n&&t(n,o)}_callExtensionMethod(t,...o){const i=ri().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,o);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ri(){return st.__SENTRY__=st.__SENTRY__||{extensions:{},hub:void 0},st}function pa(e){const t=ri(),o=ke(t);return vc(t,e),o}function w0(){const e=ri();return(!xd(e)||ke(e).isOlderThan(Nc))&&vc(e,new Bc),mc()?x6(e):ke(e)}function x6(e){try{const t=ri().__SENTRY__,o=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!o)return ke(e);if(!xd(o)||ke(o).isOlderThan(Nc)){const n=ke(e).getStackTop();vc(o,new Bc(n.client,je.clone(n.scope)))}return ke(o)}catch{return ke(e)}}function xd(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ke(e){return Wc("hub",()=>new Bc,e)}function vc(e,t){if(!e)return!1;const o=e.__SENTRY__=e.__SENTRY__||{};return o.hub=t,!0}function Tc(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=w0().getClient(),o=e||t&&t.getOptions();return!!o&&(o.enableTracing||"tracesSampleRate"in o||"tracesSampler"in o)}function zi(e){return(e||w0()).getScope().getTransaction()}let Ma=!1;function X6(){Ma||(Ma=!0,P1("error",fs),P1("unhandledrejection",fs))}function fs(){const e=zi();if(e){const t="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}fs.tag="sentry_tracingErrorCallback";class yM{__init(){this.spans=[]}constructor(t=1e3){yM.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class ae{__init2(){this.traceId=ge()}__init3(){this.spanId=ge().substring(16)}__init4(){this.startTimestamp=Dn()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(ae.prototype.__init2.call(this),ae.prototype.__init3.call(this),ae.prototype.__init4.call(this),ae.prototype.__init5.call(this),ae.prototype.__init6.call(this),ae.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const o=new ae({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(o.spanRecorder=this.spanRecorder,o.spanRecorder&&o.spanRecorder.add(o),o.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&o.transaction){const n=t&&t.op||"< unknown op >",i=o.transaction.name||"< unknown name >",p=o.transaction.spanId,M=`[Tracing] Starting '${n}' span on transaction '${i}' (${p}).`;o.transaction.metadata.spanMetadata[o.spanId]={logMessage:M},V.log(M)}return o}setTag(t,o){return this.tags={...this.tags,[t]:o},this}setData(t,o){return this.data={...this.data,[t]:o},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const o=k6(t);return o!=="unknown_error"&&this.setStatus(o),this}isSuccess(){return this.status==="ok"}finish(t){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:o}=this.transaction.metadata.spanMetadata[this.spanId];o&&V.log(o.replace("Starting","Finishing"))}this.endTimestamp=typeof t=="number"?t:Dn()}toTraceparent(){let t="";return this.sampled!==void 0&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return Jt({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Jt({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Jt({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function k6(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}class zo extends ae{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(t,o){super(t),zo.prototype.__init.call(this),zo.prototype.__init2.call(this),zo.prototype.__init3.call(this),this._hub=o||w0(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,o="custom"){this._name=t,this.metadata.source=o}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new yM(t)),this.spanRecorder.add(this)}setContext(t,o){o===null?delete this._contexts[t]:this._contexts[t]=o}setMeasurement(t,o,n=""){this._measurements[t]={value:o,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(t);const o=this._hub.getClient();if(o&&o.emit&&o.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(b=>b!==this&&b.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((b,s)=>b.endTimestamp&&s.endTimestamp?b.endTimestamp>s.endTimestamp?b:s:b).endTimestamp);const i=this.metadata,p={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),p.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(p)}toContext(){const t=super.toContext();return Jt({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||w0(),o=t&&t.getClient();if(!o)return{};const{environment:n,release:i}=o.getOptions()||{},{publicKey:p}=o.getDsn()||{},M=this.metadata.sampleRate,b=M!==void 0?M.toString():void 0,{segment:s}=t.getScope().getUser()||{},r=this.metadata.source,a=r&&r!=="url"?this.name:void 0,A=Jt({environment:n||yc,release:i,transaction:a,user_segment:s,public_key:p,trace_id:this.traceId,sample_rate:b});return o.emit&&o.emit("createDsc",A),A}setHub(t){this._hub=t}}const fp={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},C6="finishReason",Q2=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class D6 extends yM{constructor(t,o,n,i){super(i),this._pushActivity=t,this._popActivity=o,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=o=>{t.endTimestamp=typeof o=="number"?o:Dn(),this._popActivity(t.spanId)},t.endTimestamp===void 0&&this._pushActivity(t.spanId)),super.add(t)}}class xe extends zo{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=Q2[4]}constructor(t,o,n=fp.idleTimeout,i=fp.finalTimeout,p=fp.heartbeatInterval,M=!1){super(t,o),this._idleHub=o,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=p,this._onScope=M,xe.prototype.__init.call(this),xe.prototype.__init2.call(this),xe.prototype.__init3.call(this),xe.prototype.__init4.call(this),xe.prototype.__init5.call(this),xe.prototype.__init6.call(this),M&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),o.configureScope(b=>b.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Q2[3],this.finish())},this._finalTimeout)}finish(t=Dn()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(C6,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const o of this._beforeFinishCallbacks)o(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(o=>{if(o.spanId===this.spanId)return!0;o.endTimestamp||(o.endTimestamp=t,o.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(o,void 0,2)));const n=o.startTimestamp"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(o,void 0,2)),n}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] No active IdleTransaction");if(this._onScope){const o=this._idleHub.getScope();o.getTransaction()===this&&o.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const o=i=>{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new D6(o,n,this.spanId,t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:o}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=o===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Q2[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Q2[1],this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] popActivity ${t}`),delete this.activities[t],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const o=Dn();this._idleTimeoutCanceledPermanently?(this._finishReason=Q2[5],this.finish(o)):this._restartIdleTimeout(o+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Q2[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function P6(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function Xd(e,t,o){if(!Tc(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let n;return typeof t.tracesSampler=="function"?(n=t.tracesSampler(o),e.setMetadata({sampleRate:Number(n)})):o.parentSampled!==void 0?n=o.parentSampled:typeof t.tracesSampleRate<"u"?(n=t.tracesSampleRate,e.setMetadata({sampleRate:Number(n)})):(n=1,e.setMetadata({sampleRate:n})),I6(n)?n?(e.sampled=Math.random()"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),e)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function I6(e){return qd(e)||!(typeof e=="number"||typeof e=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function F6(e,t){const o=this.getClient(),n=o&&o.getOptions()||{},i=n.instrumenter||"sentry",p=e.instrumenter||"sentry";i!==p&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`A transaction was started with instrumenter=\`${p}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let M=new zo(e,this);return M=Xd(M,n,{parentSampled:e.parentSampled,transactionContext:e,...t}),M.sampled&&M.initSpanRecorder(n._experiments&&n._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",M),M}function ba(e,t,o,n,i,p,M){const b=e.getClient(),s=b&&b.getOptions()||{};let r=new xe(t,e,o,n,M,i);return r=Xd(r,s,{parentSampled:t.parentSampled,transactionContext:t,...p}),r.sampled&&r.initSpanRecorder(s._experiments&&s._experiments.maxSpans),b&&b.emit&&b.emit("startTransaction",r),r}function H6(){const e=ri();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=F6),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=P6),X6())}function Ec(e,t){return w0().captureException(e,{captureContext:t})}function U6(e){w0().addBreadcrumb(e)}function j6(e,t){w0().setContext(e,t)}function Y6(e){w0().withScope(e)}const $6="7";function G6(e){const t=e.protocol?`${e.protocol}:`:"",o=e.port?`:${e.port}`:"";return`${t}//${e.host}${o}${e.path?`/${e.path}`:""}/api/`}function V6(e){return`${G6(e)}${e.projectId}/envelope/`}function K6(e,t){return XW({sentry_key:e.publicKey,sentry_version:$6,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Q6(e,t={}){const o=typeof t=="string"?t:t.tunnel,n=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return o||`${V6(e)}?${K6(e,n)}`}function J6(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Z6(e,t,o,n){const i=Lc(o),p={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&{dsn:mM(t)}},M="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Fo(p,[M])}function tg(e,t,o,n){const i=Lc(o),p=e.type&&e.type!=="replay_event"?e.type:"event";J6(e,o&&o.sdk);const M=Td(e,i,n,t);return delete e.sdkProcessingMetadata,Fo(M,[[{type:p},e]])}const sa=[];function eg(e){const t={};return e.forEach(o=>{const{name:n}=o,i=t[n];i&&!i.isDefaultInstance&&o.isDefaultInstance||(t[n]=o)}),Object.keys(t).map(o=>t[o])}function og(e){const t=e.defaultIntegrations||[],o=e.integrations;t.forEach(M=>{M.isDefaultInstance=!0});let n;Array.isArray(o)?n=[...t,...o]:typeof o=="function"?n=Nd(o(t)):n=t;const i=eg(n),p=ig(i,M=>M.name==="Debug");if(p!==-1){const[M]=i.splice(p,1);i.push(M)}return i}function ng(e){const t={};return e.forEach(o=>{o&&kd(o,t)}),t}function kd(e,t){t[e.name]=e,sa.indexOf(e.name)===-1&&(e.setupOnce(LM,w0),sa.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Integration installed: ${e.name}`))}function ig(e,t){for(let o=0;oa.name);pg(M,e),bg(M,b),Mg(M,e.stackParser);let s=n;o.captureContext&&(s=je.clone(s).update(o.captureContext));let r=X2(M);if(s){if(s.getAttachments){const a=[...o.attachments||[],...s.getAttachments()];a.length&&(o.attachments=a)}r=s.applyToEvent(M,o)}return r.then(a=>typeof i=="number"&&i>0?sg(a,i,p):a)}function pg(e,t){const{environment:o,release:n,dist:i,maxValueLength:p=250}=t;"environment"in e||(e.environment="environment"in t?o:yc),e.release===void 0&&n!==void 0&&(e.release=n),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Wn(e.message,p));const M=e.exception&&e.exception.values&&e.exception.values[0];M&&M.value&&(M.value=Wn(M.value,p));const b=e.request;b&&b.url&&(b.url=Wn(b.url,p))}function Mg(e,t){const o=st._sentryDebugIds;if(!o)return;const n=Object.keys(o).reduce((M,b)=>{const s=t(b);for(let r=s.length-1;r>=0;r--){const a=s[r];if(a.filename){M[a.filename]=o[b];break}}return M},{}),i=new Set;try{e.exception.values.forEach(M=>{M.stacktrace.frames.forEach(b=>{b.filename&&i.add(b.filename)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const p=e.debug_meta.images;i.forEach(M=>{n[M]&&p.push({type:"sourcemap",code_file:M,debug_id:n[M]})})}function bg(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function sg(e,t,o){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:de(i.data,t,o)}}))},...e.user&&{user:de(e.user,t,o)},...e.contexts&&{contexts:de(e.contexts,t,o)},...e.extra&&{extra:de(e.extra,t,o)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=de(e.contexts.trace.data,t,o))),e.spans&&(n.spans=e.spans.map(i=>(i.data&&(i.data=de(i.data,t,o)),i))),n}const ca="Not capturing exception because it's already been captured.";class _2{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(_2.prototype.__init.call(this),_2.prototype.__init2.call(this),_2.prototype.__init3.call(this),_2.prototype.__init4.call(this),_2.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=SW(t.dsn);const o=Q6(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("No DSN provided, client will not do anything.")}captureException(t,o,n){if(ta(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(ca);return}let i=o&&o.event_id;return this._process(this.eventFromException(t,o).then(p=>this._captureEvent(p,o,n)).then(p=>{i=p})),i}captureMessage(t,o,n,i){let p=n&&n.event_id;const M=fd(t)?this.eventFromMessage(String(t),o,n):this.eventFromException(t,n);return this._process(M.then(b=>this._captureEvent(b,n,i)).then(b=>{p=b})),p}captureEvent(t,o,n){if(o&&o.originalException&&ta(o.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(ca);return}let i=o&&o.event_id;return this._process(this._captureEvent(t,o,n).then(p=>{i=p})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Bo(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const o=this._transport;return o?this._isClientDoneProcessing(t).then(n=>o.flush(t).then(i=>n&&i)):X2(!0)}close(t){return this.flush(t).then(o=>(this.getOptions().enabled=!1,o))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=ng(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){kd(t,this._integrations)}sendEvent(t,o={}){if(this._dsn){let n=tg(t,this._dsn,this._options._metadata,this._options.tunnel);for(const p of o.attachments||[])n=A6(n,f6(p,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then(p=>this.emit("afterSendEvent",t,p),null)}}sendSession(t){if(this._dsn){const o=Z6(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(o)}}recordDroppedEvent(t,o,n){if(this._options.sendClientReports){const i=`${t}:${o}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,o){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(o)}emit(t,...o){this._hooks[t]&&this._hooks[t].forEach(n=>n(...o))}_updateSessionFromEvent(t,o){let n=!1,i=!1;const p=o.exception&&o.exception.values;if(p){i=!0;for(const s of p){const r=s.mechanism;if(r&&r.handled===!1){n=!0;break}}}const M=t.status==="ok";(M&&t.errors===0||M&&n)&&(Bo(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new K1(o=>{let n=0;const i=1,p=setInterval(()=>{this._numProcessing==0?(clearInterval(p),o(!0)):(n+=i,t&&n>=t&&(clearInterval(p),o(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,o,n){const i=this.getOptions(),p=Object.keys(this._integrations);return!o.integrations&&p.length>0&&(o.integrations=p),Cd(i,t,o,n)}_captureEvent(t,o={},n){return this._processEvent(t,o,n).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const p=i;p.logLevel==="log"?V.log(p.message):V.warn(p)}})}_processEvent(t,o,n){const i=this.getOptions(),{sampleRate:p}=i;if(!this._isEnabled())return Up(new U1("SDK not enabled, will not capture event.","log"));const M=Pd(t),b=Dd(t),s=t.type||"error",r=`before send for type \`${s}\``;if(b&&typeof p=="number"&&Math.random()>p)return this.recordDroppedEvent("sample_rate","error",t),Up(new U1(`Discarding event because it's not included in the random sample (sampling rate = ${p})`,"log"));const a=s==="replay_event"?"replay":s;return this._prepareEvent(t,o,n).then(A=>{if(A===null)throw this.recordDroppedEvent("event_processor",a,t),new U1("An event processor returned `null`, will not send event.","log");if(o.data&&o.data.__sentry__===!0)return A;const f=rg(i,A,o);return cg(f,r)}).then(A=>{if(A===null)throw this.recordDroppedEvent("before_send",a,t),new U1(`${r} returned \`null\`, will not send event.`,"log");const u=n&&n.getSession();!M&&u&&this._updateSessionFromEvent(u,A);const f=A.transaction_info;if(M&&f&&A.transaction!==t.transaction){const W="custom";A.transaction_info={...f,source:W}}return this.sendEvent(A,o),A}).then(null,A=>{throw A instanceof U1?A:(this.captureException(A,{data:{__sentry__:!0},originalException:A}),new U1(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${A}`))})}_process(t){this._numProcessing++,t.then(o=>(this._numProcessing--,o),o=>(this._numProcessing--,o))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,o=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Error while sending event:",o)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(o=>{const[n,i]=o.split(":");return{reason:n,category:i,quantity:t[o]}})}}function cg(e,t){const o=`${t} must return \`null\` or a valid event.`;if(hc(e))return e.then(n=>{if(!No(n)&&n!==null)throw new U1(o);return n},n=>{throw new U1(`${t} rejected with ${n}`)});if(!No(e)&&e!==null)throw new U1(o);return e}function rg(e,t,o){const{beforeSend:n,beforeSendTransaction:i}=e;return Dd(t)&&n?n(t,o):Pd(t)&&i?i(t,o):t}function Dd(e){return e.type===void 0}function Pd(e){return e.type==="transaction"}function zg(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?V.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const o=w0();o.getScope().update(t.initialScope);const i=new e(t);o.bindClient(i)}const ag=30;function Id(e,t,o=s6(e.bufferSize||ag)){let n={};const i=M=>o.drain(M);function p(M){const b=[];if(oa(M,(A,u)=>{const f=na(u);if(m6(n,f)){const W=ra(A,u);e.recordDroppedEvent("ratelimit_backoff",f,W)}else b.push(A)}),b.length===0)return X2();const s=Fo(M[0],b),r=A=>{oa(s,(u,f)=>{const W=ra(u,f);e.recordDroppedEvent(A,na(f),W)})},a=()=>t({body:l6(s,e.textEncoder)}).then(A=>(A.statusCode!==void 0&&(A.statusCode<200||A.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Sentry responded with status code ${A.statusCode} to sent event.`),n=R6(n,A),A),A=>{throw r("network_error"),A});return o.add(a).then(A=>A,A=>{if(A instanceof U1)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Skipped sending event because buffer is full."),r("queue_overflow"),X2();throw A})}return p.__sentry__baseTransport__=!0,{send:p,flush:i}}function ra(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const za="7.47.0";let aa;class Pn{constructor(){Pn.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Pn.id}setupOnce(){aa=Function.prototype.toString,Function.prototype.toString=function(...t){const o=_c(this)||this;return aa.apply(o,t)}}}Pn.__initStatic();const Og=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ao{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ao.id}constructor(t={}){this._options=t,ao.prototype.__init.call(this)}setupOnce(t,o){const n=i=>{const p=o();if(p){const M=p.getIntegration(ao);if(M){const b=p.getClient(),s=b?b.getOptions():{},r=dg(M._options,s);return Ag(i,r)?null:i}}return i};n.id=this.name,t(n)}}ao.__initStatic();function dg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...Og],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Ag(e,t){return t.ignoreInternal&&Wg(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being internal Sentry Error. Event: ${Xe(e)}`),!0):lg(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Xe(e)}`),!0):ug(e,t.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Xe(e)}`),!0):fg(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Xe(e)}. -Url: ${jM(e)}`),!0):qg(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Url: ${jp(e)}`),!0):qg(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Xe(e)}. -Url: ${jM(e)}`),!0)}function lg(e,t){return e.type||!t||!t.length?!1:hg(e).some(o=>ci(o,t))}function ug(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const o=e.transaction;return o?ci(o,t):!1}function fg(e,t){if(!t||!t.length)return!1;const o=jM(e);return o?ci(o,t):!1}function qg(e,t){if(!t||!t.length)return!0;const o=jM(e);return o?ci(o,t):!0}function hg(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${t}: ${o}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Cannot extract message for event ${Xe(e)}`),[]}return[]}function Wg(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function gg(e=[]){for(let t=e.length-1;t>=0;t--){const o=e[t];if(o&&o.filename!==""&&o.filename!=="[native code]")return o.filename||null}return null}function jM(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?gg(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Cannot extract url for event ${Xe(e)}`),null}}const Z0=st;let qs=0;function Fd(){return qs>0}function _g(){qs++,setTimeout(()=>{qs--})}function vo(e,t={},o){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(_c(e))return e}catch{return e}const n=function(){const i=Array.prototype.slice.call(arguments);try{o&&typeof o=="function"&&o.apply(this,arguments);const M=i.map(p=>vo(p,t));return e.apply(this,M)}catch(M){throw _g(),Y6(p=>{p.addEventProcessor(b=>(t.mechanism&&(Os(b,void 0,void 0),Cn(b,t.mechanism)),b.extra={...b.extra,arguments:i},b)),Ec(M)}),M}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch{}gd(n,e),gc(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch{}return n}function Hd(e,t){const o=Sc(e,t),n={type:t&&t.name,value:yg(t)};return o.length&&(n.stacktrace={frames:o}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function mg(e,t,o,n){const M=w0().getClient(),p=M&&M.getOptions().normalizeDepth,b={exception:{values:[{type:qc(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${kW(t)}`}]},extra:{__serialized__:Bd(t,p)}};if(o){const s=Sc(e,o);s.length&&(b.exception.values[0].stacktrace={frames:s})}return b}function Xb(e,t){return{exception:{values:[Hd(e,t)]}}}function Sc(e,t){const o=t.stacktrace||t.stack||"",n=Lg(t);try{return e(o,n)}catch{}return[]}const Rg=/Minified React error #\d+;/i;function Lg(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Rg.test(e.message))return 1}return 0}function yg(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Ng(e,t,o,n){const i=o&&o.syntheticException||void 0,M=wc(e,t,i,n);return Cn(M),M.level="error",o&&o.event_id&&(M.event_id=o.event_id),X2(M)}function Bg(e,t,o="info",n,i){const M=n&&n.syntheticException||void 0,p=hs(e,t,M,i);return p.level=o,n&&n.event_id&&(p.event_id=n.event_id),X2(p)}function wc(e,t,o,n,i){let M;if(ud(t)&&t.error)return Xb(e,t.error);if(jz(t)||WW(t)){const p=t;if("stack"in t)M=Xb(e,t);else{const b=p.name||(jz(p)?"DOMError":"DOMException"),s=p.message?`${b}: ${p.message}`:b;M=hs(e,s,o,n),Os(M,s)}return"code"in p&&(M.tags={...M.tags,"DOMException.code":`${p.code}`}),M}return ld(t)?Xb(e,t):No(t)||qc(t)?(M=mg(e,t,o,i),Cn(M,{synthetic:!0}),M):(M=hs(e,t,o,n),Os(M,`${t}`,void 0),Cn(M,{synthetic:!0}),M)}function hs(e,t,o,n){const i={message:t};if(n&&o){const M=Sc(e,o);M.length&&(i.exception={values:[{value:t,stacktrace:{frames:M}}]})}return i}const $i=1024,Ud="Breadcrumbs";class In{static __initStatic(){this.id=Ud}__init(){this.name=In.id}constructor(t){In.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&P1("console",Tg),this.options.dom&&P1("dom",vg(this.options.dom)),this.options.xhr&&P1("xhr",Eg),this.options.fetch&&P1("fetch",Sg),this.options.history&&P1("history",wg)}addSentryBreadcrumb(t){this.options.sentry&&w0().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Xe(t)},{event:t})}}In.__initStatic();function vg(e){function t(o){let n,i=typeof e=="object"?e.serializeAttribute:void 0,M=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;M&&M>$i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`\`dom.maxStringLength\` cannot exceed ${$i}, but a value of ${M} was configured. Sentry will use ${$i} instead.`),M=$i),typeof i=="string"&&(i=[i]);try{const p=o.event;n=xg(p)?x2(p.target,{keyAttrs:i,maxStringLength:M}):x2(p,{keyAttrs:i,maxStringLength:M})}catch{n=""}n.length!==0&&w0().addBreadcrumb({category:`ui.${o.name}`,message:n},{event:o.event,name:o.name,global:o.global})}return t}function Tg(e){for(let o=0;o{Z0.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,o){return Ng(this._options.stackParser,t,o,this._options.attachStacktrace)}eventFromMessage(t,o="info",n){return Bg(this._options.stackParser,t,o,n,this._options.attachStacktrace)}sendEvent(t,o){const n=this.getIntegrationById(Ud);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,o)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("SDK not enabled, will not capture user feedback.");return}const o=Xg(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(o)}_prepareEvent(t,o,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,o,n)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("Sending outcomes:",t);const o=h6(t,this._options.tunnel&&mp(this._dsn));this._sendEnvelope(o)}}let an;function Dg(){if(an)return an;if(zs(Z0.fetch))return an=Z0.fetch.bind(Z0);const e=Z0.document;let t=Z0.fetch;if(e&&typeof e.createElement=="function")try{const o=e.createElement("iframe");o.hidden=!0,e.head.appendChild(o);const n=o.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(o)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return an=t.bind(Z0)}function Pg(){an=void 0}function Ig(e,t=Dg()){let o=0,n=0;function i(M){const p=M.body.length;o+=p,n++;const b={body:M.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:o<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,b).then(s=>(o-=p,n--,{statusCode:s.status,headers:{"x-sentry-rate-limits":s.headers.get("X-Sentry-Rate-Limits"),"retry-after":s.headers.get("Retry-After")}}))}catch(s){return Pg(),o-=p,n--,UM(s)}}return Id(e,i)}const Fg=4;function Hg(e){function t(o){return new K1((n,i)=>{const M=new XMLHttpRequest;M.onerror=i,M.onreadystatechange=()=>{M.readyState===Fg&&n({statusCode:M.status,headers:{"x-sentry-rate-limits":M.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":M.getResponseHeader("Retry-After")}})},M.open("POST",e.url);for(const p in e.headers)Object.prototype.hasOwnProperty.call(e.headers,p)&&M.setRequestHeader(p,e.headers[p]);M.send(o.body)})}return Id(e,t)}const Np="?",Ug=30,jg=40,Yg=50;function xc(e,t,o,n){const i={filename:e,function:t,in_app:!0};return o!==void 0&&(i.lineno=o),n!==void 0&&(i.colno=n),i}const $g=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gg=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vg=e=>{const t=$g.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const M=Gg.exec(t[2]);M&&(t[2]=M[1],t[3]=M[2],t[4]=M[3])}const[n,i]=jd(t[1]||Np,t[2]);return xc(i,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Kg=[Ug,Vg],Qg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Jg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zg=e=>{const t=Qg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const M=Jg.exec(t[3]);M&&(t[1]=t[1]||"eval",t[3]=M[1],t[4]=M[2],t[5]="")}let n=t[3],i=t[1]||Np;return[i,n]=jd(i,n),xc(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},t_=[Yg,Zg],e_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o_=e=>{const t=e_.exec(e);return t?xc(t[2],t[1]||Np,+t[3],t[4]?+t[4]:void 0):void 0},n_=[jg,o_],i_=[Kg,t_,n_],M_=Rd(...i_),jd=(e,t)=>{const o=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return o||n?[e.indexOf("@")!==-1?e.split("@")[0]:Np,o?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Ye{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Ye.id}__init2(){this._installFunc={onerror:p_,onunhandledrejection:b_}}constructor(t){Ye.prototype.__init.call(this),Ye.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const o in t){const n=this._installFunc[o];n&&t[o]&&(r_(o),n(),this._installFunc[o]=void 0)}}}Ye.__initStatic();function p_(){P1("error",e=>{const[t,o,n]=Gd();if(!t.getIntegration(Ye))return;const{msg:i,url:M,line:p,column:b,error:s}=e;if(Fd()||s&&s.__sentry_own_request__)return;const r=s===void 0&&Je(i)?c_(i,M,p,b):Yd(wc(o,s||i,void 0,n,!1),M,p,b);r.level="error",$d(t,s,r,"onerror")})}function b_(){P1("unhandledrejection",e=>{const[t,o,n]=Gd();if(!t.getIntegration(Ye))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Fd()||i&&i.__sentry_own_request__)return!0;const M=fd(i)?s_(i):wc(o,i,void 0,n,!0);M.level="error",$d(t,i,M,"onunhandledrejection")})}function s_(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function c_(e,t,o,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let M=ud(e)?e.message:e,p="Error";const b=M.match(i);return b&&(p=b[1],M=b[2]),Yd({exception:{values:[{type:p,value:M}]}},t,o,n)}function Yd(e,t,o,n){const i=e.exception=e.exception||{},M=i.values=i.values||[],p=M[0]=M[0]||{},b=p.stacktrace=p.stacktrace||{},s=b.frames=b.frames||[],r=isNaN(parseInt(n,10))?void 0:n,a=isNaN(parseInt(o,10))?void 0:o,A=Je(t)&&t.length>0?t:yW();return s.length===0&&s.push({colno:r,filename:A,function:"?",in_app:!0,lineno:a}),e}function r_(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Global Handler attached: ${e}`)}function $d(e,t,o,n){Cn(o,{handled:!1,type:n}),e.captureEvent(o,{originalException:t})}function Gd(){const e=w0(),t=e.getClient(),o=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,o.stackParser,o.attachStacktrace]}const z_=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Fn{static __initStatic(){this.id="TryCatch"}__init(){this.name=Fn.id}constructor(t){Fn.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&I1(Z0,"setTimeout",Oa),this._options.setInterval&&I1(Z0,"setInterval",Oa),this._options.requestAnimationFrame&&I1(Z0,"requestAnimationFrame",a_),this._options.XMLHttpRequest&&"XMLHttpRequest"in Z0&&I1(XMLHttpRequest.prototype,"send",O_);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:z_).forEach(d_)}}Fn.__initStatic();function Oa(e){return function(...t){const o=t[0];return t[0]=vo(o,{mechanism:{data:{function:t2(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function a_(e){return function(t){return e.apply(this,[vo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:t2(e)},handled:!0,type:"instrument"}})])}}function O_(e){return function(...t){const o=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in o&&typeof o[i]=="function"&&I1(o,i,function(M){const p={mechanism:{data:{function:i,handler:t2(M)},handled:!0,type:"instrument"}},b=_c(M);return b&&(p.mechanism.data.handler=t2(b)),vo(M,p)})}),e.apply(this,t)}}function d_(e){const t=Z0,o=t[e]&&t[e].prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(I1(o,"addEventListener",function(n){return function(i,M,p){try{typeof M.handleEvent=="function"&&(M.handleEvent=vo(M.handleEvent,{mechanism:{data:{function:"handleEvent",handler:t2(M),target:e},handled:!0,type:"instrument"}}))}catch{}return n.apply(this,[i,vo(M,{mechanism:{data:{function:"addEventListener",handler:t2(M),target:e},handled:!0,type:"instrument"}}),p])}}),I1(o,"removeEventListener",function(n){return function(i,M,p){const b=M;try{const s=b&&b.__sentry_wrapped__;s&&n.call(this,i,s,p)}catch{}return n.call(this,i,b,p)}}))}const A_="cause",l_=5;class Oo{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Oo.id}constructor(t={}){Oo.prototype.__init.call(this),this._key=t.key||A_,this._limit=t.limit||l_}setupOnce(){const t=w0().getClient();t&&Lp((o,n)=>{const i=w0().getIntegration(Oo);return i?u_(t.getOptions().stackParser,i._key,i._limit,o,n):o})}}Oo.__initStatic();function u_(e,t,o,n,i){if(!n.exception||!n.exception.values||!i||!Ze(i.originalException,Error))return n;const M=Vd(e,o,i.originalException,t);return n.exception.values=[...M,...n.exception.values],n}function Vd(e,t,o,n,i=[]){if(!Ze(o[n],Error)||i.length+1>=t)return i;const M=Hd(e,o[n]);return Vd(e,t,o[n],n,[M,...i])}class Ao{constructor(){Ao.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Ao.id}setupOnce(){Lp(t=>{if(w0().getIntegration(Ao)){if(!Z0.navigator&&!Z0.location&&!Z0.document)return t;const o=t.request&&t.request.url||Z0.location&&Z0.location.href,{referrer:n}=Z0.document||{},{userAgent:i}=Z0.navigator||{},M={...t.request&&t.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},p={...t.request,...o&&{url:o},headers:M};return{...t,request:p}}return t})}}Ao.__initStatic();class lo{constructor(){lo.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=lo.id}setupOnce(t,o){const n=i=>{if(i.type)return i;const M=o().getIntegration(lo);if(M){try{if(f_(i,M._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return M._previousEvent=i}return M._previousEvent=i}return i};n.id=this.name,t(n)}}lo.__initStatic();function f_(e,t){return t?!!(q_(e,t)||h_(e,t)):!1}function q_(e,t){const o=e.message,n=t.message;return!(!o&&!n||o&&!n||!o&&n||o!==n||!Qd(e,t)||!Kd(e,t))}function h_(e,t){const o=da(t),n=da(e);return!(!o||!n||o.type!==n.type||o.value!==n.value||!Qd(e,t)||!Kd(e,t))}function Kd(e,t){let o=Aa(e),n=Aa(t);if(!o&&!n)return!0;if(o&&!n||!o&&n||(o=o,n=n,n.length!==o.length))return!1;for(let i=0;i"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=w0();e.captureSession&&(la(e),P1("history",({from:t,to:o})=>{t===void 0||t===o||la(w0())}))}const m1=st,Jd="sentryReplaySession",m_="replay_event",Xc="Unable to send Replay",R_=3e5,L_=36e5,y_=5e3,N_=5500,B_=6e4,v_=5e3,T_=3,E_=3e5;var x1;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(x1||(x1={}));function S_(e){return e.nodeType===e.ELEMENT_NODE}function _n(e){const t=e==null?void 0:e.host;return!!(t&&t.shadowRoot&&t.shadowRoot===e)}function Zd({maskInputOptions:e,tagName:t,type:o}){t.toLowerCase()==="option"&&(t="select");const n=typeof o=="string"?o.toLowerCase():void 0;return e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="input"&&!o&&e.text}function w_({tagName:e,type:t,maskInputOptions:o,maskInputSelector:n}){return n||Zd({maskInputOptions:o,tagName:e,type:t})}function YM({input:e,maskInputSelector:t,unmaskInputSelector:o,maskInputOptions:n,tagName:i,type:M,value:p,maskInputFn:b}){let s=p||"";return o&&e.matches(o)||(e.hasAttribute("rr_is_password")&&(M="password"),(Zd({maskInputOptions:n,tagName:i,type:M})||t&&e.matches(t))&&(b?s=b(s):s="*".repeat(s.length))),s}const ua="__rrweb_original__";function x_(e){const t=e.getContext("2d");if(!t)return!0;const o=50;for(let n=0;ns!==0))return!1}return!0}let X_=1;const k_=new RegExp("[^a-z0-9-_:]"),Hn=-2;function tA(e){return e?e.replace(/[\S]/g,"*"):""}function C_(){return X_++}function D_(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return k_.test(t)?"div":t}function Ws(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(P_).join(""):null}catch{return null}}function P_(e){let t=e.cssText;if(I_(e))try{t=Ws(e.styleSheet)||t}catch{}return t}function I_(e){return"styleSheet"in e}function F_(e){return e.cssRules?Array.from(e.cssRules).map(t=>t.cssText||"").join(""):""}function H_(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let J2,fa;const U_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,j_=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Y_=/^(data:)([^,]*),(.*)/i;function qM(e,t){return(e||"").replace(U_,(o,n,i,M,p,b)=>{const s=i||p||b,r=n||M||"";if(!s)return o;if(!j_.test(s))return`url(${r}${s}${r})`;if(Y_.test(s))return`url(${r}${s}${r})`;if(s[0]==="/")return`url(${r}${H_(t)+s}${r})`;const a=t.split("/"),A=s.split("/");a.pop();for(const u of A)u!=="."&&(u===".."?a.pop():a.push(u));return`url(${r}${a.join("/")}${r})`})}const $_=/^[^ \t\n\r\u000c]+/,G_=/^[, \t\n\r\u000c]+/;function V_(e,t){if(t.trim()==="")return t;let o=0;function n(M){let p,b=M.exec(t.substring(o));return b?(p=b[0],o+=p.length,p):""}let i=[];for(;n(G_),!(o>=t.length);){let M=n($_);if(M.slice(-1)===",")M=so(e,M.substring(0,M.length-1)),i.push(M);else{let p="";M=so(e,M);let b=!1;for(;;){let s=t.charAt(o);if(s===""){i.push((M+p).trim());break}else if(b)s===")"&&(b=!1);else if(s===","){o+=1,i.push((M+p).trim());break}else s==="("&&(b=!0);p+=s,o+=1}}}return i.join(", ")}function so(e,t){if(!t||t.trim()==="")return t;const o=e.createElement("a");return o.href=t,o.href}function K_(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function gs(){const e=document.createElement("a");return e.href="",e.href}function eA(e,t,o,n,i,M,p,b){if(!i)return i;const s=n.toLowerCase(),r=o.toLowerCase();return s==="src"||s==="href"||s==="xlink:href"&&i[0]!=="#"||s==="background"&&(r==="table"||r==="td"||r==="th")?so(e,i):s==="srcset"?V_(e,i):s==="style"?qM(i,gs()):r==="object"&&s==="data"?so(e,i):M&&Q_(t,s,r,p)?b?b(i):tA(i):i}function Q_(e,t,o,n){return n&&e.matches(n)?!1:["placeholder","title","aria-label"].indexOf(t)>-1||o==="input"&&t==="value"&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}function J_(e,t,o,n){if(n&&e.matches(n))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=0;i{i||(t(),i=!0)},o);e.addEventListener("load",()=>{clearTimeout(b),i=!0,t()});return}const p="about:blank";if(n.location.href!==p||e.src===p||e.src===""){setTimeout(t,0);return}e.addEventListener("load",t)}function tm(e,t){var o;const{doc:n,blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,inlineStylesheet:a,maskInputSelector:A,unmaskInputSelector:u,maskAllText:f,maskInputOptions:W={},maskTextFn:_,maskInputFn:R,dataURLOptions:L={},inlineImages:E,recordCanvas:k,keepIframeSrcFn:w}=t;let T;if(n.__sn){const d=n.__sn.id;T=d===1?void 0:d}switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:x1.Document,childNodes:[],compatMode:e.compatMode,rootId:T}:{type:x1.Document,childNodes:[],rootId:T};case e.DOCUMENT_TYPE_NODE:return{type:x1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:const d=J_(e,i,M,p),I=D_(e);let C={};for(const{name:e0,value:O0}of Array.from(e.attributes))nm(I,e0)||(C[e0]=eA(n,e,I,e0,O0,f,r,_));if(I==="link"&&a){const e0=Array.from(n.styleSheets).find(p0=>p0.href===e.href);let O0=null;e0&&(O0=Ws(e0)),O0&&(delete C.rel,delete C.href,C._cssText=qM(O0,e0.href))}if(I==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const e0=Ws(e.sheet);e0&&(C._cssText=qM(e0,gs()))}if(I==="input"||I==="textarea"||I==="select"||I==="option"){const e0=e,O0=im(I,e0,C),p0=e.checked;C.type!=="submit"&&C.type!=="button"&&O0&&(C.value=YM({input:e0,type:C.type,tagName:I,value:O0,maskInputSelector:A,unmaskInputSelector:u,maskInputOptions:W,maskInputFn:R})),p0&&(C.checked=p0)}if(I==="option"&&(e.selected&&!W.select?C.selected=!0:delete C.selected),I==="canvas"&&k){if(e.__context==="2d")x_(e)||(C.rr_dataURL=e.toDataURL(L.type,L.quality));else if(!("__context"in e)){const e0=e.toDataURL(L.type,L.quality),O0=document.createElement("canvas");O0.width=e.width,O0.height=e.height;const p0=O0.toDataURL(L.type,L.quality);e0!==p0&&(C.rr_dataURL=e0)}}if(I==="img"&&E){J2||(J2=n.createElement("canvas"),fa=J2.getContext("2d"));const e0=e,O0=e0.crossOrigin;e0.crossOrigin="anonymous";const p0=()=>{try{J2.width=e0.naturalWidth,J2.height=e0.naturalHeight,fa.drawImage(e0,0,0),C.rr_dataURL=J2.toDataURL(L.type,L.quality)}catch(l0){console.warn(`Cannot inline img src=${e0.currentSrc}! Error: ${l0}`)}O0?C.crossOrigin=O0:delete C.crossOrigin};e0.complete&&e0.naturalWidth!==0?p0():e0.onload=p0}if((I==="audio"||I==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop),d){const{width:e0,height:O0}=e.getBoundingClientRect();C={class:C.class,rr_width:`${e0}px`,rr_height:`${O0}px`}}return I==="iframe"&&!w(C.src)&&(e.contentDocument||(C.rr_src=C.src),delete C.src),{type:x1.Element,tagName:I,attributes:C,childNodes:[],isSVG:K_(e)||void 0,needBlock:d,rootId:T};case e.TEXT_NODE:const J=e.parentNode&&e.parentNode.tagName;let G=e.textContent;const K=J==="STYLE"?!0:void 0,n0=J==="SCRIPT"?!0:void 0;if(K&&G){try{e.nextSibling||e.previousSibling||!((o=e.parentNode.sheet)===null||o===void 0)&&o.cssRules&&(G=F_(e.parentNode.sheet))}catch(e0){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e0}`,e)}G=qM(G,gs())}if(n0&&(G="SCRIPT_PLACEHOLDER"),J==="TEXTAREA"&&G)G="";else if(J==="OPTION"&&G){const e0=e.parentNode;G=YM({input:e0,type:null,tagName:J,value:G,maskInputSelector:A,unmaskInputSelector:u,maskInputOptions:W,maskInputFn:R})}else!K&&!n0&&$M(e,b,s,r,f)&&G&&(G=_?_(G):tA(G));return{type:x1.Text,textContent:G||"",isStyle:K,rootId:T};case e.CDATA_SECTION_NODE:return{type:x1.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:x1.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function e1(e){return e==null?"":e.toLowerCase()}function em(e,t){if(t.comment&&e.type===x1.Comment)return!0;if(e.type===x1.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(e1(e.attributes.name).match(/^msapplication-tile(image|color)$/)||e1(e.attributes.name)==="application-name"||e1(e.attributes.rel)==="icon"||e1(e.attributes.rel)==="apple-touch-icon"||e1(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&e1(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(e1(e.attributes.property).match(/^(og|twitter|fb):/)||e1(e.attributes.name).match(/^(og|twitter):/)||e1(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(e1(e.attributes.name)==="robots"||e1(e.attributes.name)==="googlebot"||e1(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(e1(e.attributes.name)==="author"||e1(e.attributes.name)==="generator"||e1(e.attributes.name)==="framework"||e1(e.attributes.name)==="publisher"||e1(e.attributes.name)==="progid"||e1(e.attributes.property).match(/^article:/)||e1(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(e1(e.attributes.name)==="google-site-verification"||e1(e.attributes.name)==="yandex-verification"||e1(e.attributes.name)==="csrf-token"||e1(e.attributes.name)==="p:domain_verify"||e1(e.attributes.name)==="verify-v1"||e1(e.attributes.name)==="verification"||e1(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function mn(e,t){const{doc:o,map:n,blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,skipChild:a=!1,inlineStylesheet:A=!0,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_={},maskTextFn:R,maskInputFn:L,slimDOMOptions:E,dataURLOptions:k={},inlineImages:w=!1,recordCanvas:T=!1,onSerialize:d,onIframeLoad:I,iframeLoadTimeout:C=5e3,keepIframeSrcFn:J=()=>!1}=t;let{preserveWhiteSpace:G=!0}=t;const K=tm(e,{doc:o,blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,inlineStylesheet:A,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_,maskTextFn:R,maskInputFn:L,dataURLOptions:k,inlineImages:w,recordCanvas:T,keepIframeSrcFn:J});if(!K)return console.warn(e,"not serialized"),null;let n0;"__sn"in e?n0=e.__sn.id:em(K,E)||!G&&K.type===x1.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?n0=Hn:n0=C_();const e0=Object.assign(K,{id:n0});if(e.__sn=e0,n0===Hn)return null;n[n0]=e,d&&d(e);let O0=!a;if(e0.type===x1.Element&&(O0=O0&&!e0.needBlock,delete e0.needBlock,e.shadowRoot&&(e0.isShadowHost=!0)),(e0.type===x1.Document||e0.type===x1.Element)&&O0){E.headWhitespace&&K.type===x1.Element&&K.tagName==="head"&&(G=!1);const p0={doc:o,map:n,blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,skipChild:a,inlineStylesheet:A,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_,maskTextFn:R,maskInputFn:L,slimDOMOptions:E,dataURLOptions:k,inlineImages:w,recordCanvas:T,preserveWhiteSpace:G,onSerialize:d,onIframeLoad:I,iframeLoadTimeout:C,keepIframeSrcFn:J};for(const l0 of Array.from(e.childNodes)){const m0=mn(l0,p0);m0&&e0.childNodes.push(m0)}if(S_(e)&&e.shadowRoot)for(const l0 of Array.from(e.shadowRoot.childNodes)){const m0=mn(l0,p0);m0&&(m0.isShadow=!0,e0.childNodes.push(m0))}}return e.parentNode&&_n(e.parentNode)&&(e0.isShadow=!0),e0.type===x1.Element&&e0.tagName==="iframe"&&Z_(e,()=>{const p0=e.contentDocument;if(p0&&I){const l0=mn(p0,{doc:p0,map:n,blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,skipChild:!1,inlineStylesheet:A,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_,maskTextFn:R,maskInputFn:L,slimDOMOptions:E,dataURLOptions:k,inlineImages:w,recordCanvas:T,preserveWhiteSpace:G,onSerialize:d,onIframeLoad:I,iframeLoadTimeout:C,keepIframeSrcFn:J});l0&&I(e,l0)}},C),e0}function om(e,t){const{blockClass:o="rr-block",blockSelector:n=null,unblockSelector:i=null,maskTextClass:M="rr-mask",maskTextSelector:p=null,unmaskTextSelector:b=null,inlineStylesheet:s=!0,inlineImages:r=!1,recordCanvas:a=!1,maskInputSelector:A=null,unmaskInputSelector:u=null,maskAllText:f=!1,maskAllInputs:W=!1,maskTextFn:_,maskInputFn:R,slimDOM:L=!1,dataURLOptions:E,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:d,keepIframeSrcFn:I=()=>!1}=t||{},C={};return[mn(e,{doc:e,map:C,blockClass:o,blockSelector:n,unblockSelector:i,maskTextClass:M,maskTextSelector:p,unmaskTextSelector:b,skipChild:!1,inlineStylesheet:s,maskInputSelector:A,unmaskInputSelector:u,maskAllText:f,maskInputOptions:W===!0?{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}:W===!1?{}:W,maskTextFn:_,maskInputFn:R,slimDOMOptions:L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:L==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:L===!1?{}:L,dataURLOptions:E,inlineImages:r,recordCanvas:a,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:d,keepIframeSrcFn:I}),C]}function nm(e,t,o){return(e==="video"||e==="audio")&&t==="autoplay"}function im(e,t,o){return e==="input"&&(o.type==="radio"||o.type==="checkbox")?t.getAttribute("value")||"":t.value}var o1;(function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"})(o1||(o1={}));var D1;(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"})(D1||(D1={}));var GM;(function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"})(GM||(GM={}));var To;(function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"})(To||(To={}));var qa;(function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"})(qa||(qa={}));var ha;(function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"})(ha||(ha={}));function ut(e,t,o=document){const n={capture:!0,passive:!0};return o.addEventListener(e,t,n),()=>o.removeEventListener(e,t,n)}function Mm(){return{map:{},getId(e){return!e||!e.__sn?-1:e.__sn.id},getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach(o=>this.removeNodeFromMap(o))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}}}const Mo=`Please stop import mirror directly. Instead of that,\r +Url: ${jp(e)}`),!0)}function lg(e,t){return e.type||!t||!t.length?!1:hg(e).some(o=>ci(o,t))}function ug(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const o=e.transaction;return o?ci(o,t):!1}function fg(e,t){if(!t||!t.length)return!1;const o=jp(e);return o?ci(o,t):!1}function qg(e,t){if(!t||!t.length)return!0;const o=jp(e);return o?ci(o,t):!0}function hg(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${t}: ${o}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Cannot extract message for event ${Xe(e)}`),[]}return[]}function Wg(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function gg(e=[]){for(let t=e.length-1;t>=0;t--){const o=e[t];if(o&&o.filename!==""&&o.filename!=="[native code]")return o.filename||null}return null}function jp(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?gg(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Cannot extract url for event ${Xe(e)}`),null}}const Z0=st;let qs=0;function Fd(){return qs>0}function _g(){qs++,setTimeout(()=>{qs--})}function vo(e,t={},o){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(_c(e))return e}catch{return e}const n=function(){const i=Array.prototype.slice.call(arguments);try{o&&typeof o=="function"&&o.apply(this,arguments);const p=i.map(M=>vo(M,t));return e.apply(this,p)}catch(p){throw _g(),Y6(M=>{M.addEventProcessor(b=>(t.mechanism&&(Os(b,void 0,void 0),Cn(b,t.mechanism)),b.extra={...b.extra,arguments:i},b)),Ec(p)}),p}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch{}gd(n,e),gc(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch{}return n}function Hd(e,t){const o=Sc(e,t),n={type:t&&t.name,value:yg(t)};return o.length&&(n.stacktrace={frames:o}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function mg(e,t,o,n){const p=w0().getClient(),M=p&&p.getOptions().normalizeDepth,b={exception:{values:[{type:qc(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${kW(t)}`}]},extra:{__serialized__:Bd(t,M)}};if(o){const s=Sc(e,o);s.length&&(b.exception.values[0].stacktrace={frames:s})}return b}function Xb(e,t){return{exception:{values:[Hd(e,t)]}}}function Sc(e,t){const o=t.stacktrace||t.stack||"",n=Lg(t);try{return e(o,n)}catch{}return[]}const Rg=/Minified React error #\d+;/i;function Lg(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Rg.test(e.message))return 1}return 0}function yg(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Ng(e,t,o,n){const i=o&&o.syntheticException||void 0,p=wc(e,t,i,n);return Cn(p),p.level="error",o&&o.event_id&&(p.event_id=o.event_id),X2(p)}function Bg(e,t,o="info",n,i){const p=n&&n.syntheticException||void 0,M=hs(e,t,p,i);return M.level=o,n&&n.event_id&&(M.event_id=n.event_id),X2(M)}function wc(e,t,o,n,i){let p;if(ud(t)&&t.error)return Xb(e,t.error);if(jz(t)||WW(t)){const M=t;if("stack"in t)p=Xb(e,t);else{const b=M.name||(jz(M)?"DOMError":"DOMException"),s=M.message?`${b}: ${M.message}`:b;p=hs(e,s,o,n),Os(p,s)}return"code"in M&&(p.tags={...p.tags,"DOMException.code":`${M.code}`}),p}return ld(t)?Xb(e,t):No(t)||qc(t)?(p=mg(e,t,o,i),Cn(p,{synthetic:!0}),p):(p=hs(e,t,o,n),Os(p,`${t}`,void 0),Cn(p,{synthetic:!0}),p)}function hs(e,t,o,n){const i={message:t};if(n&&o){const p=Sc(e,o);p.length&&(i.exception={values:[{value:t,stacktrace:{frames:p}}]})}return i}const $i=1024,Ud="Breadcrumbs";class In{static __initStatic(){this.id=Ud}__init(){this.name=In.id}constructor(t){In.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&P1("console",Tg),this.options.dom&&P1("dom",vg(this.options.dom)),this.options.xhr&&P1("xhr",Eg),this.options.fetch&&P1("fetch",Sg),this.options.history&&P1("history",wg)}addSentryBreadcrumb(t){this.options.sentry&&w0().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Xe(t)},{event:t})}}In.__initStatic();function vg(e){function t(o){let n,i=typeof e=="object"?e.serializeAttribute:void 0,p=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;p&&p>$i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`\`dom.maxStringLength\` cannot exceed ${$i}, but a value of ${p} was configured. Sentry will use ${$i} instead.`),p=$i),typeof i=="string"&&(i=[i]);try{const M=o.event;n=xg(M)?x2(M.target,{keyAttrs:i,maxStringLength:p}):x2(M,{keyAttrs:i,maxStringLength:p})}catch{n=""}n.length!==0&&w0().addBreadcrumb({category:`ui.${o.name}`,message:n},{event:o.event,name:o.name,global:o.global})}return t}function Tg(e){for(let o=0;o{Z0.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,o){return Ng(this._options.stackParser,t,o,this._options.attachStacktrace)}eventFromMessage(t,o="info",n){return Bg(this._options.stackParser,t,o,n,this._options.attachStacktrace)}sendEvent(t,o){const n=this.getIntegrationById(Ud);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,o)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("SDK not enabled, will not capture user feedback.");return}const o=Xg(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(o)}_prepareEvent(t,o,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,o,n)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("Sending outcomes:",t);const o=h6(t,this._options.tunnel&&mM(this._dsn));this._sendEnvelope(o)}}let an;function Dg(){if(an)return an;if(zs(Z0.fetch))return an=Z0.fetch.bind(Z0);const e=Z0.document;let t=Z0.fetch;if(e&&typeof e.createElement=="function")try{const o=e.createElement("iframe");o.hidden=!0,e.head.appendChild(o);const n=o.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(o)}catch(o){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return an=t.bind(Z0)}function Pg(){an=void 0}function Ig(e,t=Dg()){let o=0,n=0;function i(p){const M=p.body.length;o+=M,n++;const b={body:p.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:o<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,b).then(s=>(o-=M,n--,{statusCode:s.status,headers:{"x-sentry-rate-limits":s.headers.get("X-Sentry-Rate-Limits"),"retry-after":s.headers.get("Retry-After")}}))}catch(s){return Pg(),o-=M,n--,Up(s)}}return Id(e,i)}const Fg=4;function Hg(e){function t(o){return new K1((n,i)=>{const p=new XMLHttpRequest;p.onerror=i,p.onreadystatechange=()=>{p.readyState===Fg&&n({statusCode:p.status,headers:{"x-sentry-rate-limits":p.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":p.getResponseHeader("Retry-After")}})},p.open("POST",e.url);for(const M in e.headers)Object.prototype.hasOwnProperty.call(e.headers,M)&&p.setRequestHeader(M,e.headers[M]);p.send(o.body)})}return Id(e,t)}const NM="?",Ug=30,jg=40,Yg=50;function xc(e,t,o,n){const i={filename:e,function:t,in_app:!0};return o!==void 0&&(i.lineno=o),n!==void 0&&(i.colno=n),i}const $g=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gg=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vg=e=>{const t=$g.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const p=Gg.exec(t[2]);p&&(t[2]=p[1],t[3]=p[2],t[4]=p[3])}const[n,i]=jd(t[1]||NM,t[2]);return xc(i,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Kg=[Ug,Vg],Qg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Jg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zg=e=>{const t=Qg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const p=Jg.exec(t[3]);p&&(t[1]=t[1]||"eval",t[3]=p[1],t[4]=p[2],t[5]="")}let n=t[3],i=t[1]||NM;return[i,n]=jd(i,n),xc(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},t_=[Yg,Zg],e_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o_=e=>{const t=e_.exec(e);return t?xc(t[2],t[1]||NM,+t[3],t[4]?+t[4]:void 0):void 0},n_=[jg,o_],i_=[Kg,t_,n_],p_=Rd(...i_),jd=(e,t)=>{const o=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return o||n?[e.indexOf("@")!==-1?e.split("@")[0]:NM,o?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Ye{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Ye.id}__init2(){this._installFunc={onerror:M_,onunhandledrejection:b_}}constructor(t){Ye.prototype.__init.call(this),Ye.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const o in t){const n=this._installFunc[o];n&&t[o]&&(r_(o),n(),this._installFunc[o]=void 0)}}}Ye.__initStatic();function M_(){P1("error",e=>{const[t,o,n]=Gd();if(!t.getIntegration(Ye))return;const{msg:i,url:p,line:M,column:b,error:s}=e;if(Fd()||s&&s.__sentry_own_request__)return;const r=s===void 0&&Je(i)?c_(i,p,M,b):Yd(wc(o,s||i,void 0,n,!1),p,M,b);r.level="error",$d(t,s,r,"onerror")})}function b_(){P1("unhandledrejection",e=>{const[t,o,n]=Gd();if(!t.getIntegration(Ye))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Fd()||i&&i.__sentry_own_request__)return!0;const p=fd(i)?s_(i):wc(o,i,void 0,n,!0);p.level="error",$d(t,i,p,"onunhandledrejection")})}function s_(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function c_(e,t,o,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let p=ud(e)?e.message:e,M="Error";const b=p.match(i);return b&&(M=b[1],p=b[2]),Yd({exception:{values:[{type:M,value:p}]}},t,o,n)}function Yd(e,t,o,n){const i=e.exception=e.exception||{},p=i.values=i.values||[],M=p[0]=p[0]||{},b=M.stacktrace=M.stacktrace||{},s=b.frames=b.frames||[],r=isNaN(parseInt(n,10))?void 0:n,a=isNaN(parseInt(o,10))?void 0:o,A=Je(t)&&t.length>0?t:yW();return s.length===0&&s.push({colno:r,filename:A,function:"?",in_app:!0,lineno:a}),e}function r_(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Global Handler attached: ${e}`)}function $d(e,t,o,n){Cn(o,{handled:!1,type:n}),e.captureEvent(o,{originalException:t})}function Gd(){const e=w0(),t=e.getClient(),o=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,o.stackParser,o.attachStacktrace]}const z_=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Fn{static __initStatic(){this.id="TryCatch"}__init(){this.name=Fn.id}constructor(t){Fn.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&I1(Z0,"setTimeout",Oa),this._options.setInterval&&I1(Z0,"setInterval",Oa),this._options.requestAnimationFrame&&I1(Z0,"requestAnimationFrame",a_),this._options.XMLHttpRequest&&"XMLHttpRequest"in Z0&&I1(XMLHttpRequest.prototype,"send",O_);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:z_).forEach(d_)}}Fn.__initStatic();function Oa(e){return function(...t){const o=t[0];return t[0]=vo(o,{mechanism:{data:{function:t2(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function a_(e){return function(t){return e.apply(this,[vo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:t2(e)},handled:!0,type:"instrument"}})])}}function O_(e){return function(...t){const o=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in o&&typeof o[i]=="function"&&I1(o,i,function(p){const M={mechanism:{data:{function:i,handler:t2(p)},handled:!0,type:"instrument"}},b=_c(p);return b&&(M.mechanism.data.handler=t2(b)),vo(p,M)})}),e.apply(this,t)}}function d_(e){const t=Z0,o=t[e]&&t[e].prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(I1(o,"addEventListener",function(n){return function(i,p,M){try{typeof p.handleEvent=="function"&&(p.handleEvent=vo(p.handleEvent,{mechanism:{data:{function:"handleEvent",handler:t2(p),target:e},handled:!0,type:"instrument"}}))}catch{}return n.apply(this,[i,vo(p,{mechanism:{data:{function:"addEventListener",handler:t2(p),target:e},handled:!0,type:"instrument"}}),M])}}),I1(o,"removeEventListener",function(n){return function(i,p,M){const b=p;try{const s=b&&b.__sentry_wrapped__;s&&n.call(this,i,s,M)}catch{}return n.call(this,i,b,M)}}))}const A_="cause",l_=5;class Oo{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Oo.id}constructor(t={}){Oo.prototype.__init.call(this),this._key=t.key||A_,this._limit=t.limit||l_}setupOnce(){const t=w0().getClient();t&&LM((o,n)=>{const i=w0().getIntegration(Oo);return i?u_(t.getOptions().stackParser,i._key,i._limit,o,n):o})}}Oo.__initStatic();function u_(e,t,o,n,i){if(!n.exception||!n.exception.values||!i||!Ze(i.originalException,Error))return n;const p=Vd(e,o,i.originalException,t);return n.exception.values=[...p,...n.exception.values],n}function Vd(e,t,o,n,i=[]){if(!Ze(o[n],Error)||i.length+1>=t)return i;const p=Hd(e,o[n]);return Vd(e,t,o[n],n,[p,...i])}class Ao{constructor(){Ao.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Ao.id}setupOnce(){LM(t=>{if(w0().getIntegration(Ao)){if(!Z0.navigator&&!Z0.location&&!Z0.document)return t;const o=t.request&&t.request.url||Z0.location&&Z0.location.href,{referrer:n}=Z0.document||{},{userAgent:i}=Z0.navigator||{},p={...t.request&&t.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},M={...t.request,...o&&{url:o},headers:p};return{...t,request:M}}return t})}}Ao.__initStatic();class lo{constructor(){lo.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=lo.id}setupOnce(t,o){const n=i=>{if(i.type)return i;const p=o().getIntegration(lo);if(p){try{if(f_(i,p._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return p._previousEvent=i}return p._previousEvent=i}return i};n.id=this.name,t(n)}}lo.__initStatic();function f_(e,t){return t?!!(q_(e,t)||h_(e,t)):!1}function q_(e,t){const o=e.message,n=t.message;return!(!o&&!n||o&&!n||!o&&n||o!==n||!Qd(e,t)||!Kd(e,t))}function h_(e,t){const o=da(t),n=da(e);return!(!o||!n||o.type!==n.type||o.value!==n.value||!Qd(e,t)||!Kd(e,t))}function Kd(e,t){let o=Aa(e),n=Aa(t);if(!o&&!n)return!0;if(o&&!n||!o&&n||(o=o,n=n,n.length!==o.length))return!1;for(let i=0;i"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=w0();e.captureSession&&(la(e),P1("history",({from:t,to:o})=>{t===void 0||t===o||la(w0())}))}const m1=st,Jd="sentryReplaySession",m_="replay_event",Xc="Unable to send Replay",R_=3e5,L_=36e5,y_=5e3,N_=5500,B_=6e4,v_=5e3,T_=3,E_=3e5;var x1;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(x1||(x1={}));function S_(e){return e.nodeType===e.ELEMENT_NODE}function _n(e){const t=e==null?void 0:e.host;return!!(t&&t.shadowRoot&&t.shadowRoot===e)}function Zd({maskInputOptions:e,tagName:t,type:o}){t.toLowerCase()==="option"&&(t="select");const n=typeof o=="string"?o.toLowerCase():void 0;return e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="input"&&!o&&e.text}function w_({tagName:e,type:t,maskInputOptions:o,maskInputSelector:n}){return n||Zd({maskInputOptions:o,tagName:e,type:t})}function Yp({input:e,maskInputSelector:t,unmaskInputSelector:o,maskInputOptions:n,tagName:i,type:p,value:M,maskInputFn:b}){let s=M||"";return o&&e.matches(o)||(e.hasAttribute("rr_is_password")&&(p="password"),(Zd({maskInputOptions:n,tagName:i,type:p})||t&&e.matches(t))&&(b?s=b(s):s="*".repeat(s.length))),s}const ua="__rrweb_original__";function x_(e){const t=e.getContext("2d");if(!t)return!0;const o=50;for(let n=0;ns!==0))return!1}return!0}let X_=1;const k_=new RegExp("[^a-z0-9-_:]"),Hn=-2;function tA(e){return e?e.replace(/[\S]/g,"*"):""}function C_(){return X_++}function D_(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return k_.test(t)?"div":t}function Ws(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(P_).join(""):null}catch{return null}}function P_(e){let t=e.cssText;if(I_(e))try{t=Ws(e.styleSheet)||t}catch{}return t}function I_(e){return"styleSheet"in e}function F_(e){return e.cssRules?Array.from(e.cssRules).map(t=>t.cssText||"").join(""):""}function H_(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let J2,fa;const U_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,j_=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Y_=/^(data:)([^,]*),(.*)/i;function qp(e,t){return(e||"").replace(U_,(o,n,i,p,M,b)=>{const s=i||M||b,r=n||p||"";if(!s)return o;if(!j_.test(s))return`url(${r}${s}${r})`;if(Y_.test(s))return`url(${r}${s}${r})`;if(s[0]==="/")return`url(${r}${H_(t)+s}${r})`;const a=t.split("/"),A=s.split("/");a.pop();for(const u of A)u!=="."&&(u===".."?a.pop():a.push(u));return`url(${r}${a.join("/")}${r})`})}const $_=/^[^ \t\n\r\u000c]+/,G_=/^[, \t\n\r\u000c]+/;function V_(e,t){if(t.trim()==="")return t;let o=0;function n(p){let M,b=p.exec(t.substring(o));return b?(M=b[0],o+=M.length,M):""}let i=[];for(;n(G_),!(o>=t.length);){let p=n($_);if(p.slice(-1)===",")p=so(e,p.substring(0,p.length-1)),i.push(p);else{let M="";p=so(e,p);let b=!1;for(;;){let s=t.charAt(o);if(s===""){i.push((p+M).trim());break}else if(b)s===")"&&(b=!1);else if(s===","){o+=1,i.push((p+M).trim());break}else s==="("&&(b=!0);M+=s,o+=1}}}return i.join(", ")}function so(e,t){if(!t||t.trim()==="")return t;const o=e.createElement("a");return o.href=t,o.href}function K_(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function gs(){const e=document.createElement("a");return e.href="",e.href}function eA(e,t,o,n,i,p,M,b){if(!i)return i;const s=n.toLowerCase(),r=o.toLowerCase();return s==="src"||s==="href"||s==="xlink:href"&&i[0]!=="#"||s==="background"&&(r==="table"||r==="td"||r==="th")?so(e,i):s==="srcset"?V_(e,i):s==="style"?qp(i,gs()):r==="object"&&s==="data"?so(e,i):p&&Q_(t,s,r,M)?b?b(i):tA(i):i}function Q_(e,t,o,n){return n&&e.matches(n)?!1:["placeholder","title","aria-label"].indexOf(t)>-1||o==="input"&&t==="value"&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}function J_(e,t,o,n){if(n&&e.matches(n))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=0;i{i||(t(),i=!0)},o);e.addEventListener("load",()=>{clearTimeout(b),i=!0,t()});return}const M="about:blank";if(n.location.href!==M||e.src===M||e.src===""){setTimeout(t,0);return}e.addEventListener("load",t)}function tm(e,t){var o;const{doc:n,blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,inlineStylesheet:a,maskInputSelector:A,unmaskInputSelector:u,maskAllText:f,maskInputOptions:W={},maskTextFn:_,maskInputFn:R,dataURLOptions:L={},inlineImages:E,recordCanvas:k,keepIframeSrcFn:w}=t;let T;if(n.__sn){const d=n.__sn.id;T=d===1?void 0:d}switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:x1.Document,childNodes:[],compatMode:e.compatMode,rootId:T}:{type:x1.Document,childNodes:[],rootId:T};case e.DOCUMENT_TYPE_NODE:return{type:x1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:const d=J_(e,i,p,M),I=D_(e);let D={};for(const{name:e0,value:O0}of Array.from(e.attributes))nm(I,e0)||(D[e0]=eA(n,e,I,e0,O0,f,r,_));if(I==="link"&&a){const e0=Array.from(n.styleSheets).find(M0=>M0.href===e.href);let O0=null;e0&&(O0=Ws(e0)),O0&&(delete D.rel,delete D.href,D._cssText=qp(O0,e0.href))}if(I==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const e0=Ws(e.sheet);e0&&(D._cssText=qp(e0,gs()))}if(I==="input"||I==="textarea"||I==="select"||I==="option"){const e0=e,O0=im(I,e0,D),M0=e.checked;D.type!=="submit"&&D.type!=="button"&&O0&&(D.value=Yp({input:e0,type:D.type,tagName:I,value:O0,maskInputSelector:A,unmaskInputSelector:u,maskInputOptions:W,maskInputFn:R})),M0&&(D.checked=M0)}if(I==="option"&&(e.selected&&!W.select?D.selected=!0:delete D.selected),I==="canvas"&&k){if(e.__context==="2d")x_(e)||(D.rr_dataURL=e.toDataURL(L.type,L.quality));else if(!("__context"in e)){const e0=e.toDataURL(L.type,L.quality),O0=document.createElement("canvas");O0.width=e.width,O0.height=e.height;const M0=O0.toDataURL(L.type,L.quality);e0!==M0&&(D.rr_dataURL=e0)}}if(I==="img"&&E){J2||(J2=n.createElement("canvas"),fa=J2.getContext("2d"));const e0=e,O0=e0.crossOrigin;e0.crossOrigin="anonymous";const M0=()=>{try{J2.width=e0.naturalWidth,J2.height=e0.naturalHeight,fa.drawImage(e0,0,0),D.rr_dataURL=J2.toDataURL(L.type,L.quality)}catch(l0){console.warn(`Cannot inline img src=${e0.currentSrc}! Error: ${l0}`)}O0?D.crossOrigin=O0:delete D.crossOrigin};e0.complete&&e0.naturalWidth!==0?M0():e0.onload=M0}if((I==="audio"||I==="video")&&(D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(D.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(D.rr_scrollTop=e.scrollTop),d){const{width:e0,height:O0}=e.getBoundingClientRect();D={class:D.class,rr_width:`${e0}px`,rr_height:`${O0}px`}}return I==="iframe"&&!w(D.src)&&(e.contentDocument||(D.rr_src=D.src),delete D.src),{type:x1.Element,tagName:I,attributes:D,childNodes:[],isSVG:K_(e)||void 0,needBlock:d,rootId:T};case e.TEXT_NODE:const J=e.parentNode&&e.parentNode.tagName;let G=e.textContent;const K=J==="STYLE"?!0:void 0,n0=J==="SCRIPT"?!0:void 0;if(K&&G){try{e.nextSibling||e.previousSibling||!((o=e.parentNode.sheet)===null||o===void 0)&&o.cssRules&&(G=F_(e.parentNode.sheet))}catch(e0){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e0}`,e)}G=qp(G,gs())}if(n0&&(G="SCRIPT_PLACEHOLDER"),J==="TEXTAREA"&&G)G="";else if(J==="OPTION"&&G){const e0=e.parentNode;G=Yp({input:e0,type:null,tagName:J,value:G,maskInputSelector:A,unmaskInputSelector:u,maskInputOptions:W,maskInputFn:R})}else!K&&!n0&&$p(e,b,s,r,f)&&G&&(G=_?_(G):tA(G));return{type:x1.Text,textContent:G||"",isStyle:K,rootId:T};case e.CDATA_SECTION_NODE:return{type:x1.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:x1.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function e1(e){return e==null?"":e.toLowerCase()}function em(e,t){if(t.comment&&e.type===x1.Comment)return!0;if(e.type===x1.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(e1(e.attributes.name).match(/^msapplication-tile(image|color)$/)||e1(e.attributes.name)==="application-name"||e1(e.attributes.rel)==="icon"||e1(e.attributes.rel)==="apple-touch-icon"||e1(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&e1(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(e1(e.attributes.property).match(/^(og|twitter|fb):/)||e1(e.attributes.name).match(/^(og|twitter):/)||e1(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(e1(e.attributes.name)==="robots"||e1(e.attributes.name)==="googlebot"||e1(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(e1(e.attributes.name)==="author"||e1(e.attributes.name)==="generator"||e1(e.attributes.name)==="framework"||e1(e.attributes.name)==="publisher"||e1(e.attributes.name)==="progid"||e1(e.attributes.property).match(/^article:/)||e1(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(e1(e.attributes.name)==="google-site-verification"||e1(e.attributes.name)==="yandex-verification"||e1(e.attributes.name)==="csrf-token"||e1(e.attributes.name)==="p:domain_verify"||e1(e.attributes.name)==="verify-v1"||e1(e.attributes.name)==="verification"||e1(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function mn(e,t){const{doc:o,map:n,blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,skipChild:a=!1,inlineStylesheet:A=!0,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_={},maskTextFn:R,maskInputFn:L,slimDOMOptions:E,dataURLOptions:k={},inlineImages:w=!1,recordCanvas:T=!1,onSerialize:d,onIframeLoad:I,iframeLoadTimeout:D=5e3,keepIframeSrcFn:J=()=>!1}=t;let{preserveWhiteSpace:G=!0}=t;const K=tm(e,{doc:o,blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,inlineStylesheet:A,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_,maskTextFn:R,maskInputFn:L,dataURLOptions:k,inlineImages:w,recordCanvas:T,keepIframeSrcFn:J});if(!K)return console.warn(e,"not serialized"),null;let n0;"__sn"in e?n0=e.__sn.id:em(K,E)||!G&&K.type===x1.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?n0=Hn:n0=C_();const e0=Object.assign(K,{id:n0});if(e.__sn=e0,n0===Hn)return null;n[n0]=e,d&&d(e);let O0=!a;if(e0.type===x1.Element&&(O0=O0&&!e0.needBlock,delete e0.needBlock,e.shadowRoot&&(e0.isShadowHost=!0)),(e0.type===x1.Document||e0.type===x1.Element)&&O0){E.headWhitespace&&K.type===x1.Element&&K.tagName==="head"&&(G=!1);const M0={doc:o,map:n,blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,skipChild:a,inlineStylesheet:A,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_,maskTextFn:R,maskInputFn:L,slimDOMOptions:E,dataURLOptions:k,inlineImages:w,recordCanvas:T,preserveWhiteSpace:G,onSerialize:d,onIframeLoad:I,iframeLoadTimeout:D,keepIframeSrcFn:J};for(const l0 of Array.from(e.childNodes)){const m0=mn(l0,M0);m0&&e0.childNodes.push(m0)}if(S_(e)&&e.shadowRoot)for(const l0 of Array.from(e.shadowRoot.childNodes)){const m0=mn(l0,M0);m0&&(m0.isShadow=!0,e0.childNodes.push(m0))}}return e.parentNode&&_n(e.parentNode)&&(e0.isShadow=!0),e0.type===x1.Element&&e0.tagName==="iframe"&&Z_(e,()=>{const M0=e.contentDocument;if(M0&&I){const l0=mn(M0,{doc:M0,map:n,blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:b,maskTextSelector:s,unmaskTextSelector:r,skipChild:!1,inlineStylesheet:A,maskInputSelector:u,unmaskInputSelector:f,maskAllText:W,maskInputOptions:_,maskTextFn:R,maskInputFn:L,slimDOMOptions:E,dataURLOptions:k,inlineImages:w,recordCanvas:T,preserveWhiteSpace:G,onSerialize:d,onIframeLoad:I,iframeLoadTimeout:D,keepIframeSrcFn:J});l0&&I(e,l0)}},D),e0}function om(e,t){const{blockClass:o="rr-block",blockSelector:n=null,unblockSelector:i=null,maskTextClass:p="rr-mask",maskTextSelector:M=null,unmaskTextSelector:b=null,inlineStylesheet:s=!0,inlineImages:r=!1,recordCanvas:a=!1,maskInputSelector:A=null,unmaskInputSelector:u=null,maskAllText:f=!1,maskAllInputs:W=!1,maskTextFn:_,maskInputFn:R,slimDOM:L=!1,dataURLOptions:E,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:d,keepIframeSrcFn:I=()=>!1}=t||{},D={};return[mn(e,{doc:e,map:D,blockClass:o,blockSelector:n,unblockSelector:i,maskTextClass:p,maskTextSelector:M,unmaskTextSelector:b,skipChild:!1,inlineStylesheet:s,maskInputSelector:A,unmaskInputSelector:u,maskAllText:f,maskInputOptions:W===!0?{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}:W===!1?{}:W,maskTextFn:_,maskInputFn:R,slimDOMOptions:L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:L==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:L===!1?{}:L,dataURLOptions:E,inlineImages:r,recordCanvas:a,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:d,keepIframeSrcFn:I}),D]}function nm(e,t,o){return(e==="video"||e==="audio")&&t==="autoplay"}function im(e,t,o){return e==="input"&&(o.type==="radio"||o.type==="checkbox")?t.getAttribute("value")||"":t.value}var o1;(function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"})(o1||(o1={}));var D1;(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"})(D1||(D1={}));var Gp;(function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"})(Gp||(Gp={}));var To;(function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"})(To||(To={}));var qa;(function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"})(qa||(qa={}));var ha;(function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"})(ha||(ha={}));function ut(e,t,o=document){const n={capture:!0,passive:!0};return o.addEventListener(e,t,n),()=>o.removeEventListener(e,t,n)}function pm(){return{map:{},getId(e){return!e||!e.__sn?-1:e.__sn.id},getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach(o=>this.removeNodeFromMap(o))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}}}const po=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`;let Wa={map:{},getId(){return console.error(Mo),-1},getNode(){return console.error(Mo),null},removeNodeFromMap(){console.error(Mo)},has(){return console.error(Mo),!1},reset(){console.error(Mo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Wa=new Proxy(Wa,{get(e,t,o){return t==="map"&&console.error(Mo),Reflect.get(e,t,o)}}));function Un(e,t,o={}){let n=null,i=0;return function(M){let p=Date.now();!i&&o.leading===!1&&(i=p);let b=t-(p-i),s=this,r=arguments;b<=0||b>t?(n&&(clearTimeout(n),n=null),i=p,e.apply(s,r)):!n&&o.trailing!==!1&&(n=setTimeout(()=>{i=o.leading===!1?0:Date.now(),n=null,e.apply(s,r)},b))}}function Bp(e,t,o,n,i=window){const M=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?o:{set(p){setTimeout(()=>{o.set.call(this,p)},0),M&&M.set&&M.set.call(this,p)}}),()=>Bp(e,t,M||{},!0)}function Eo(e,t,o){try{if(!(t in e))return()=>{};const n=e[t],i=o(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}function oA(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nA(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Q1(e,t,o,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1;const M=n&&e.matches(n);return typeof t=="string"?e.closest!==void 0?i=!M&&e.closest("."+t)!==null:i=!M&&e.classList.contains(t):!M&&e.classList.forEach(p=>{t.test(p)&&(i=!0)}),!i&&o&&(i=e.matches(o)),!M&&i||Q1(e.parentNode,t,o,n)}return e.nodeType===e.TEXT_NODE,Q1(e.parentNode,t,o,n)}function kb(e){return"__sn"in e?e.__sn.id===Hn:!1}function iA(e,t){if(_n(e))return!1;const o=t.getId(e);return t.has(o)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?iA(e.parentNode,t):!0:!0}function MA(e){return!!e.changedTouches}function pm(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(o){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===o)return!0;while(o=o&&o.parentNode);return!1})}function pA(e){return"__sn"in e?e.__sn.type===x1.Element&&e.__sn.tagName==="iframe":!1}function bA(e){return!!(e!=null&&e.shadowRoot)}function ga(e){return"__ln"in e}class bm{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let o=this.head;for(let n=0;n`${e}@${t}`;function ma(e){return"__sn"in e}class sm{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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=[],o=new bm,n=b=>{let s=b,r=Hn;for(;r===Hn;)s=s&&s.nextSibling,r=s&&this.mirror.getId(s);return r},i=b=>{var s,r,a,A,u;const f=b.getRootNode?(s=b.getRootNode())===null||s===void 0?void 0:s.host:null;let W=f;for(;!((a=(r=W==null?void 0:W.getRootNode)===null||r===void 0?void 0:r.call(W))===null||a===void 0)&&a.host;)W=((u=(A=W==null?void 0:W.getRootNode)===null||A===void 0?void 0:A.call(W))===null||u===void 0?void 0:u.host)||null;const _=!this.doc.contains(b)&&(!W||!this.doc.contains(W));if(!b.parentNode||_)return;const R=_n(b.parentNode)?this.mirror.getId(f):this.mirror.getId(b.parentNode),L=n(b);if(R===-1||L===-1)return o.addNode(b);let E=mn(b,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:k=>{pA(k)&&this.iframeManager.addIframe(k),bA(b)&&this.shadowDomManager.addShadowRoot(b.shadowRoot,document)},onIframeLoad:(k,w)=>{this.iframeManager.attachIframe(k,w),this.shadowDomManager.observeAttachShadow(k)}});E&&t.push({parentId:R,nextId:L,node:E})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const b of this.movedSet)ms(this.removes,b,this.mirror)&&!this.movedSet.has(b.parentNode)||i(b);for(const b of this.addedSet)!Rs(this.droppedSet,b)&&!ms(this.removes,b,this.mirror)||Rs(this.movedSet,b)?i(b):this.droppedSet.add(b);let M=null;for(;o.length;){let b=null;if(M){const s=this.mirror.getId(M.value.parentNode),r=n(M.value);s!==-1&&r!==-1&&(b=M)}if(!b)for(let s=o.length-1;s>=0;s--){const r=o.get(s);if(r){const a=this.mirror.getId(r.value.parentNode),A=n(r.value);if(a!==-1&&A!==-1){b=r;break}}}if(!b){for(;o.head;)o.removeNode(o.head.value);break}M=b.previous,o.removeNode(b.value),i(b.value)}const p={texts:this.texts.map(b=>({id:this.mirror.getId(b.node),value:b.value})).filter(b=>this.mirror.has(b.id)),attributes:this.attributes.map(b=>({id:this.mirror.getId(b.node),attributes:b.attributes})).filter(b=>this.mirror.has(b.id)),removes:this.removes,adds:t};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(p))},this.processMutation=t=>{if(!kb(t.target))switch(t.type){case"characterData":{const o=t.target.textContent;!Q1(t.target,this.blockClass,this.blockSelector,this.unblockSelector)&&o!==t.oldValue&&this.texts.push({value:$M(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&o?this.maskTextFn?this.maskTextFn(o):o.replace(/[\S]/g,"*"):o,node:t.target});break}case"attributes":{const o=t.target;let n=o.getAttribute(t.attributeName);if(t.attributeName==="value"&&(n=YM({input:o,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:o.tagName,type:o.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Q1(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let i=this.attributes.find(M=>M.node===t.target);if(i||(i={node:t.target,attributes:{}},this.attributes.push(i)),t.attributeName==="type"&&t.target.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&t.target.setAttribute("rr_is_password","true"),t.attributeName==="style"){const M=this.doc.createElement("span");t.oldValue&&M.setAttribute("style",t.oldValue),(i.attributes.style===void 0||i.attributes.style===null)&&(i.attributes.style={});try{const p=i.attributes.style;for(const b of Array.from(o.style)){const s=o.style.getPropertyValue(b),r=o.style.getPropertyPriority(b);(s!==M.style.getPropertyValue(b)||r!==M.style.getPropertyPriority(b))&&(r===""?p[b]=s:p[b]=[s,r])}for(const b of Array.from(M.style))o.style.getPropertyValue(b)===""&&(p[b]=!1)}catch(p){console.warn("[rrweb] Error when parsing update to style attribute:",p)}}else{const M=t.target;i.attributes[t.attributeName]=eA(this.doc,M,M.tagName,t.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":{t.addedNodes.forEach(o=>this.genAdds(o,t.target)),t.removedNodes.forEach(o=>{const n=this.mirror.getId(o),i=_n(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Q1(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||kb(o)||(this.addedSet.has(o)?(_s(this.addedSet,o),this.droppedSet.add(o)):this.addedSet.has(t.target)&&n===-1||iA(t.target,this.mirror)||(this.movedSet.has(o)&&this.movedMap[_a(n,i)]?_s(this.movedSet,o):this.removes.push({parentId:i,id:n,isShadow:_n(t.target)?!0:void 0})),this.mapRemoves.push(o))});break}}},this.genAdds=(t,o)=>{if(!(o&&Q1(o,this.blockClass,this.blockSelector,this.unblockSelector))){if(ma(t)){if(kb(t))return;this.movedSet.add(t);let n=null;o&&ma(o)&&(n=o.__sn.id),n&&(this.movedMap[_a(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Q1(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(n=>this.genAdds(n))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(o=>{this[o]=t[o]})}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 _s(e,t){e.delete(t),t.childNodes.forEach(o=>_s(e,o))}function ms(e,t,o){const{parentNode:n}=t;if(!n)return!1;const i=o.getId(n);return e.some(M=>M.id===i)?!0:ms(e,n,o)}function Rs(e,t){const{parentNode:o}=t;return o?e.has(o)?!0:Rs(e,o):!1}const D0=e=>(...o)=>{try{return e(...o)}catch(n){try{n.__rrweb__=!0}catch{}throw n}},L2=[];function ai(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sA(e,t){var o,n;const i=new sm;L2.push(i),i.init(e);let M=window.MutationObserver||window.__rrMutationObserver;const p=(n=(o=window==null?void 0:window.Zone)===null||o===void 0?void 0:o.__symbol__)===null||n===void 0?void 0:n.call(o,"MutationObserver");p&&window[p]&&(M=window[p]);const b=new M(D0(s=>{e.onMutation&&e.onMutation(s)===!1||i.processMutations(s)}));return b.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),b}function cm({mousemoveCb:e,sampling:t,doc:o,mirror:n}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,M=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let p=[],b;const s=Un(A=>{const u=Date.now()-b;D0(e)(p.map(f=>(f.timeOffset-=u,f)),A),p=[],b=null},M),r=Un(A=>{const u=ai(A),{clientX:f,clientY:W}=MA(A)?A.changedTouches[0]:A;b||(b=Date.now()),p.push({x:f,y:W,id:n.getId(u),timeOffset:Date.now()-b}),s(typeof DragEvent<"u"&&A instanceof DragEvent?D1.Drag:A instanceof MouseEvent?D1.MouseMove:D1.TouchMove)},i,{trailing:!1}),a=[ut("mousemove",D0(r),o),ut("touchmove",D0(r),o),ut("drag",D0(r),o)];return D0(()=>{a.forEach(A=>A())})}function rm({mouseInteractionCb:e,doc:t,mirror:o,blockClass:n,blockSelector:i,unblockSelector:M,sampling:p}){if(p.mouseInteraction===!1)return()=>{};const b=p.mouseInteraction===!0||p.mouseInteraction===void 0?{}:p.mouseInteraction,s=[],r=a=>A=>{const u=ai(A);if(Q1(u,n,i,M))return;const f=MA(A)?A.changedTouches[0]:A;if(!f)return;const W=o.getId(u),{clientX:_,clientY:R}=f;D0(e)({type:GM[a],id:W,x:_,y:R})};return Object.keys(GM).filter(a=>Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&b[a]!==!1).forEach(a=>{const A=a.toLowerCase(),u=D0(r(a));s.push(ut(A,u,t))}),D0(()=>{s.forEach(a=>a())})}function cA({scrollCb:e,doc:t,mirror:o,blockClass:n,blockSelector:i,unblockSelector:M,sampling:p}){const b=Un(s=>{const r=ai(s);if(!r||Q1(r,n,i,M))return;const a=o.getId(r);if(r===t){const A=t.scrollingElement||t.documentElement;D0(e)({id:a,x:A.scrollLeft,y:A.scrollTop})}else D0(e)({id:a,x:r.scrollLeft,y:r.scrollTop})},p.scroll||100);return ut("scroll",D0(b),t)}function zm({viewportResizeCb:e}){let t=-1,o=-1;const n=Un(()=>{const i=oA(),M=nA();(t!==i||o!==M)&&(D0(e)({width:Number(M),height:Number(i)}),t=i,o=M)},200);return ut("resize",D0(n),window)}function Ra(e,t){const o=Object.assign({},e);return t||delete o.userTriggered,o}const am=["INPUT","TEXTAREA","SELECT"],La=new WeakMap;function Om({inputCb:e,doc:t,mirror:o,blockClass:n,blockSelector:i,unblockSelector:M,ignoreClass:p,ignoreSelector:b,maskInputSelector:s,unmaskInputSelector:r,maskInputOptions:a,maskInputFn:A,sampling:u,userTriggeredOnInput:f}){function W(w){let T=ai(w);const d=T&&T.tagName,I=w.isTrusted;if(d==="OPTION"&&(T=T.parentElement),!T||!d||am.indexOf(d)<0||Q1(T,n,i,M))return;let C=T.type;if(T.classList.contains(p)||b&&T.matches(b))return;let J=T.value,G=!1;T.hasAttribute("rr_is_password")&&(C="password"),C==="radio"||C==="checkbox"?G=T.checked:w_({maskInputOptions:a,maskInputSelector:s,tagName:d,type:C})&&(J=YM({input:T,maskInputOptions:a,maskInputSelector:s,unmaskInputSelector:r,tagName:d,type:C,value:J,maskInputFn:A})),_(T,D0(Ra)({text:J,isChecked:G,userTriggered:I},f));const K=T.name;C==="radio"&&K&&G&&t.querySelectorAll(`input[type="radio"][name="${K}"]`).forEach(n0=>{n0!==T&&_(n0,D0(Ra)({text:n0.value,isChecked:!G,userTriggered:!1},f))})}function _(w,T){const d=La.get(w);if(!d||d.text!==T.text||d.isChecked!==T.isChecked){La.set(w,T);const I=o.getId(w);e(Object.assign(Object.assign({},T),{id:I}))}}const L=(u.input==="last"?["change"]:["input","change"]).map(w=>ut(w,D0(W),t)),E=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),k=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return E&&E.set&&L.push(...k.map(w=>Bp(w[0],w[1],{set(){D0(W)({target:this})}}))),D0(()=>{L.forEach(w=>w())})}function VM(e){const t=[];function o(n,i){if(Gi("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||Gi("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||Gi("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||Gi("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const p=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(p)}else{const p=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(p)}return i}return o(e,t)}function dm({styleSheetRuleCb:e,mirror:t},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const n=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:D0((b,s,r)=>{const[a,A]=r,u=t.getId(s.ownerNode);return u!==-1&&e({id:u,adds:[{rule:a,index:A}]}),b.apply(s,r)})});const i=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:D0((b,s,r)=>{const[a]=r,A=t.getId(s.ownerNode);return A!==-1&&e({id:A,removes:[{index:a}]}),b.apply(s,r)})});const M={};Vi("CSSGroupingRule")?M.CSSGroupingRule=o.CSSGroupingRule:(Vi("CSSMediaRule")&&(M.CSSMediaRule=o.CSSMediaRule),Vi("CSSConditionRule")&&(M.CSSConditionRule=o.CSSConditionRule),Vi("CSSSupportsRule")&&(M.CSSSupportsRule=o.CSSSupportsRule));const p={};return Object.entries(M).forEach(([b,s])=>{p[b]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(p[b].insertRule,{apply:D0((r,a,A)=>{const[u,f]=A,W=t.getId(a.parentStyleSheet.ownerNode);return W!==-1&&e({id:W,adds:[{rule:u,index:[...VM(a),f||0]}]}),r.apply(a,A)})}),s.prototype.deleteRule=new Proxy(p[b].deleteRule,{apply:D0((r,a,A)=>{const[u]=A,f=t.getId(a.parentStyleSheet.ownerNode);return f!==-1&&e({id:f,removes:[{index:[...VM(a),u]}]}),r.apply(a,A)})})}),D0(()=>{o.CSSStyleSheet.prototype.insertRule=n,o.CSSStyleSheet.prototype.deleteRule=i,Object.entries(M).forEach(([b,s])=>{s.prototype.insertRule=p[b].insertRule,s.prototype.deleteRule=p[b].deleteRule})})}function Am({styleDeclarationCb:e,mirror:t},{win:o}){const n=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:D0((M,p,b)=>{var s,r;const[a,A,u]=b,f=t.getId((r=(s=p.parentRule)===null||s===void 0?void 0:s.parentStyleSheet)===null||r===void 0?void 0:r.ownerNode);return f!==-1&&e({id:f,set:{property:a,value:A,priority:u},index:VM(p.parentRule)}),M.apply(p,b)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:D0((M,p,b)=>{var s,r;const[a]=b,A=t.getId((r=(s=p.parentRule)===null||s===void 0?void 0:s.parentStyleSheet)===null||r===void 0?void 0:r.ownerNode);return A!==-1&&e({id:A,remove:{property:a},index:VM(p.parentRule)}),M.apply(p,b)})}),D0(()=>{o.CSSStyleDeclaration.prototype.setProperty=n,o.CSSStyleDeclaration.prototype.removeProperty=i})}function lm({mediaInteractionCb:e,blockClass:t,blockSelector:o,unblockSelector:n,mirror:i,sampling:M}){const p=s=>Un(D0(r=>{const a=ai(r);if(!a||Q1(a,t,o,n))return;const{currentTime:A,volume:u,muted:f}=a;e({type:s,id:i.getId(a),currentTime:A,volume:u,muted:f})}),M.media||500),b=[ut("play",p(0)),ut("pause",p(1)),ut("seeked",p(2)),ut("volumechange",p(3))];return D0(()=>{b.forEach(s=>s())})}function um({fontCb:e,doc:t}){const o=t.defaultView;if(!o)return()=>{};const n=[],i=new WeakMap,M=o.FontFace;o.FontFace=function(s,r,a){const A=new M(s,r,a);return i.set(A,{family:s,buffer:typeof r!="string",descriptors:a,fontSource:typeof r=="string"?r:JSON.stringify(Array.from(new Uint8Array(r)))}),A};const p=Eo(t.fonts,"add",function(b){return function(s){return setTimeout(()=>{const r=i.get(s);r&&(e(r),i.delete(s))},0),b.apply(this,[s])}});return n.push(()=>{o.FontFace=M}),n.push(p),D0(()=>{n.forEach(b=>b())})}function fm(e,t){const{mutationCb:o,mousemoveCb:n,mouseInteractionCb:i,scrollCb:M,viewportResizeCb:p,inputCb:b,mediaInteractionCb:s,styleSheetRuleCb:r,styleDeclarationCb:a,canvasMutationCb:A,fontCb:u}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),o(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),n(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),i(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),M(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),p(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),b(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),s(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),r(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),a(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),A(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),u(...f)}}function qm(e,t={}){const o=e.doc.defaultView;if(!o)return()=>{};fm(e,t);const n=sA(e,e.doc),i=cm(e),M=rm(e),p=cA(e),b=zm(e),s=Om(e),r=lm(e),a=dm(e,{win:o}),A=Am(e,{win:o}),u=e.collectFonts?um(e):()=>{},f=[];for(const W of e.plugins)f.push(W.observer(W.callback,o,W.options));return D0(()=>{L2.forEach(W=>W.reset()),n.disconnect(),i(),M(),p(),b(),s(),r();try{a(),A()}catch{}u(),f.forEach(W=>W())})}function Gi(e){return typeof window[e]<"u"}function Vi(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class hm{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,o){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:o}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(n=this.loadListener)===null||n===void 0||n.call(this,t)}}class Wm{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const o=this;this.restorePatches.push(Eo(HTMLElement.prototype,"attachShadow",function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&o.addShadowRoot(this.shadowRoot,this.ownerDocument),i}}))}addShadowRoot(t,o){sA(Object.assign(Object.assign({},this.bypassOptions),{doc:o,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),cA(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const o=this;this.restorePatches.push(Eo(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&o.addShadowRoot(this.shadowRoot,t.contentDocument),i}}))}}reset(){this.restorePatches.forEach(t=>t())}}function gm(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const u=[...A];if(s==="drawImage"&&u[0]&&u[0]instanceof HTMLCanvasElement){const f=u[0],W=f.getContext("2d");let _=W==null?void 0:W.getImageData(0,0,f.width,f.height),R=_==null?void 0:_.data;u[0]=JSON.stringify(R)}e(this.canvas,{type:To["2D"],property:s,args:u})},0),a.apply(this,A)}});p.push(r)}catch{const a=Bp(t.CanvasRenderingContext2D.prototype,s,{set(A){e(this.canvas,{type:To["2D"],property:s,args:[A],setter:!0})}});p.push(a)}return()=>{p.forEach(s=>s())}}function mm(e,t,o,n){const i=[];try{const M=Eo(e.HTMLCanvasElement.prototype,"getContext",function(p){return function(b,...s){return Q1(this,t,o,n)||"__context"in this||(this.__context=b),p.apply(this,[b,...s])}});i.push(M)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(M=>M())}}var co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ki=0;Ki>2],i+=co[(t[o]&3)<<4|t[o+1]>>4],i+=co[(t[o+1]&15)<<2|t[o+2]>>6],i+=co[t[o+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const ya=new Map;function ym(e,t){let o=ya.get(e);return o||(o=new Map,ya.set(e,o)),o.has(t)||o.set(t,[]),o.get(t)}const rA=(e,t,o)=>{if(!e||!(zA(e,t)||typeof e=="object"))return;const n=e.constructor.name,i=ym(o,n);let M=i.indexOf(e);return M===-1&&(M=i.length,i.push(e)),M};function hM(e,t,o){if(e instanceof Array)return e.map(n=>hM(n,t,o));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,i=Lm(e);return{rr_type:n,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[hM(e.buffer,t,o),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:i}=e;return{rr_type:n,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[hM(e.data,t,o),e.width,e.height]};if(zA(e,t)||typeof e=="object"){const n=e.constructor.name,i=rA(e,t,o);return{rr_type:n,index:i}}}}return e}const Nm=(e,t,o)=>[...e].map(n=>hM(n,t,o)),zA=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Na(e,t,o,n,i,M,p,b){const s=[],r=Object.getOwnPropertyNames(e);for(const a of r)try{if(typeof e[a]!="function")continue;const A=Eo(e,a,function(u){return function(...f){const W=u.apply(this,f);if(rA(W,b,e),!Q1(this.canvas,n,M,i)){const _=p.getId(this.canvas),R=Nm([...f],b,e),L={type:t,property:a,args:R};o(this.canvas,L)}return W}});s.push(A)}catch{const u=Bp(e,a,{set(f){o(this.canvas,{type:t,property:a,args:[f],setter:!0})}});s.push(u)}return s}function Bm(e,t,o,n,i,M){const p=[];return p.push(...Na(t.WebGLRenderingContext.prototype,To.WebGL,e,o,n,i,M,t)),typeof t.WebGL2RenderingContext<"u"&&p.push(...Na(t.WebGL2RenderingContext.prototype,To.WebGL2,e,o,n,i,M,t)),()=>{p.forEach(b=>b())}}class vm{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(o,n){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(n)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,t.recordCanvas===!0&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,o,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const M=mm(t,o,i,n),p=_m(this.processMutation.bind(this),t,o,i,n,this.mirror),b=Bm(this.processMutation.bind(this),t,o,i,n,this.mirror);this.resetObservers=()=>{M(),p(),b()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=o=>{this.rafStamps.latestId=o,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,o)=>{const n=this.mirror.getId(o);this.flushPendingCanvasMutationFor(o,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,o){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||o===-1)return;const i=n.map(p=>gm(p,["type"])),{type:M}=n[0];this.mutationCb({id:o,type:M,commands:i}),this.pendingCanvasMutations.delete(t)}}function C1(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let B1,Rn;const On=Mm();function k2(e={}){const{emit:t,checkoutEveryNms:o,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:M=null,unblockSelector:p=null,ignoreClass:b="rr-ignore",ignoreSelector:s=null,maskTextClass:r="rr-mask",maskTextSelector:a=null,maskInputSelector:A=null,unmaskTextSelector:u=null,unmaskInputSelector:f=null,inlineStylesheet:W=!0,maskAllText:_=!1,maskAllInputs:R,maskInputOptions:L,slimDOMOptions:E,maskInputFn:k,maskTextFn:w,hooks:T,packFn:d,sampling:I={},mousemoveWait:C,recordCanvas:J=!1,userTriggeredOnInput:G=!1,collectFonts:K=!1,inlineImages:n0=!1,plugins:e0,keepIframeSrcFn:O0=()=>!1,onMutation:p0}=e;if(!t)throw new Error("emit function is required");C!==void 0&&I.mousemove===void 0&&(I.mousemove=C);const l0=R===!0?{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}:L!==void 0?L:{},m0=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all"}:E||{};pm();let c1,C0=0;const w1=f0=>{for(const V0 of e0||[])V0.eventProcessor&&(f0=V0.eventProcessor(f0));return d&&(f0=d(f0)),f0};B1=(f0,V0)=>{var K0;if(!((K0=L2[0])===null||K0===void 0)&&K0.isFrozen()&&f0.type!==o1.FullSnapshot&&!(f0.type===o1.IncrementalSnapshot&&f0.data.source===D1.Mutation)&&L2.forEach(L1=>L1.unfreeze()),t(w1(f0),V0),f0.type===o1.FullSnapshot)c1=f0,C0=0;else if(f0.type===o1.IncrementalSnapshot){if(f0.data.source===D1.Mutation&&f0.data.isAttachIframe)return;C0++;const L1=n&&C0>=n,A1=o&&f0.timestamp-c1.timestamp>o;(L1||A1)&&Rn(!0)}};const i1=f0=>{B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Mutation},f0)}))},R1=f0=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Scroll},f0)})),r1=f0=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.CanvasMutation},f0)})),G0=new hm({mutationCb:i1}),U0=new vm({recordCanvas:J,mutationCb:r1,win:window,blockClass:i,blockSelector:M,unblockSelector:p,mirror:On}),N0=new Wm({mutationCb:i1,scrollCb:R1,bypassOptions:{onMutation:p0,blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:f,inlineStylesheet:W,maskAllText:_,maskInputOptions:l0,maskTextFn:w,maskInputFn:k,recordCanvas:J,inlineImages:n0,sampling:I,slimDOMOptions:m0,iframeManager:G0,canvasManager:U0},mirror:On});Rn=(f0=!1)=>{var V0,K0,L1,A1;B1(C1({type:o1.Meta,data:{href:window.location.href,width:nA(),height:oA()}}),f0),L2.forEach(j=>j.lock());const[v,Y]=om(document,{blockClass:i,blockSelector:M,unblockSelector:p,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:f,inlineStylesheet:W,maskAllText:_,maskAllInputs:l0,maskTextFn:w,slimDOM:m0,recordCanvas:J,inlineImages:n0,onSerialize:j=>{pA(j)&&G0.addIframe(j),bA(j)&&N0.addShadowRoot(j.shadowRoot,document)},onIframeLoad:(j,b0)=>{G0.attachIframe(j,b0),N0.observeAttachShadow(j)},keepIframeSrcFn:O0});if(!v)return console.warn("Failed to snapshot the document");On.map=Y,B1(C1({type:o1.FullSnapshot,data:{node:v,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((K0=(V0=document==null?void 0:document.body)===null||V0===void 0?void 0:V0.parentElement)===null||K0===void 0?void 0:K0.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((A1=(L1=document==null?void 0:document.body)===null||L1===void 0?void 0:L1.parentElement)===null||A1===void 0?void 0:A1.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),L2.forEach(j=>j.unlock())};try{const f0=[];f0.push(ut("DOMContentLoaded",()=>{B1(C1({type:o1.DomContentLoaded,data:{}}))}));const V0=L1=>{var A1;return D0(qm)({onMutation:p0,mutationCb:i1,mousemoveCb:(v,Y)=>B1(C1({type:o1.IncrementalSnapshot,data:{source:Y,positions:v}})),mouseInteractionCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.MouseInteraction},v)})),scrollCb:R1,viewportResizeCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.ViewportResize},v)})),inputCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Input},v)})),mediaInteractionCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.MediaInteraction},v)})),styleSheetRuleCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.StyleSheetRule},v)})),styleDeclarationCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.StyleDeclaration},v)})),canvasMutationCb:r1,fontCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Font},v)})),blockClass:i,ignoreClass:b,ignoreSelector:s,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:f,maskInputOptions:l0,inlineStylesheet:W,sampling:I,recordCanvas:J,inlineImages:n0,userTriggeredOnInput:G,collectFonts:K,doc:L1,maskAllText:_,maskInputFn:k,maskTextFn:w,blockSelector:M,unblockSelector:p,slimDOMOptions:m0,mirror:On,iframeManager:G0,shadowDomManager:N0,canvasManager:U0,plugins:((A1=e0==null?void 0:e0.filter(v=>v.observer))===null||A1===void 0?void 0:A1.map(v=>({observer:v.observer,options:v.options,callback:Y=>B1(C1({type:o1.Plugin,data:{plugin:v.name,payload:Y}}))})))||[]},T)};G0.addLoadListener(L1=>{try{f0.push(V0(L1.contentDocument))}catch(A1){console.warn(A1)}});const K0=()=>{Rn(),f0.push(V0(document))};return document.readyState==="interactive"||document.readyState==="complete"?K0():f0.push(ut("load",()=>{B1(C1({type:o1.Load,data:{}})),K0()},window)),()=>{f0.forEach(L1=>L1())}}catch(f0){console.warn(f0)}}k2.addCustomEvent=(e,t)=>{if(!B1)throw new Error("please add custom event after start recording");B1(C1({type:o1.Custom,data:{tag:e,payload:t}}))};k2.freezePage=()=>{L2.forEach(e=>e.freeze())};k2.takeFullSnapshot=e=>{if(!Rn)throw new Error("please take full snapshot after start recording");Rn(e)};k2.mirror=On;const Tm=["name","type","startTime","transferSize","duration"];function Ba(e){return function(t){return Tm.every(o=>e[o]===t[o])}}function Em(e,t){const[o,n,i]=e.reduce((s,r)=>(r.entryType==="navigation"?s[0].push(r):r.entryType==="largest-contentful-paint"?s[1].push(r):s[2].push(r),s),[[],[],[]]),M=[],p=[];let b=n.length?n[n.length-1]:void 0;return t.forEach(s=>{if(s.entryType==="largest-contentful-paint"){(!b||b.startTime0&&!o.find(Ba(r))&&!p.find(Ba(r))&&p.push(r);return}M.push(s)}),[...b?[b]:[],...o,...i,...M,...p].sort((s,r)=>s.startTime-r.startTime)}function Sm(e){const t=n=>{const i=Em(e.performanceEvents,n.getEntries());e.performanceEvents=i},o=new PerformanceObserver(t);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(n=>{try{o.observe({type:n,buffered:!0})}catch{}}),o}const wm=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ -function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&sr){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watern&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<>>=p,c-=p),c<15&&(f+=z[a++]<>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a>3,a-=k,c-=k<<3,f&=(1<{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavexe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function xm(){const e=new Blob([wm]);return URL.createObjectURL(e)}class aA{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}destroy(){this.events=[]}async addEvent(t,o){if(o){this.events=[t];return}this.events.push(t)}finish(){return new Promise(t=>{const o=this.events;this.events=[],t(JSON.stringify(o))})}}class Xm{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,o)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():o()},{once:!0}),this._worker.addEventListener("error",n=>{o(n)},{once:!0})}),this._ensureReadyPromise)}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,o){const n=this._getAndIncrementId();return new Promise((i,M)=>{const p=({data:b})=>{const s=b;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",p),!s.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay]",s.response),M(new Error("Error in compression worker"));return}i(s.response)}};this._worker.addEventListener("message",p),this._worker.postMessage({id:n,method:t,arg:o})})}_getAndIncrementId(){return this._id++}}class km{constructor(t){this._worker=new Xm(t),this.hasEvents=!1}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}async addEvent(t,o){return this.hasEvents=!0,o&&await this._clear(),this._sendEventToWorker(t)}finish(){return this._finishRequest()}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this.hasEvents=!1,t}_clear(){return this._worker.postMessage("clear")}}class Cm{constructor(t){this._fallback=new aA,this._compression=new km(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}addEvent(t,o){return this._used.addEvent(t,o)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,o=[];for(const n of t)o.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(o)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Replay] Failed to add events when switching buffers.",n)}}}function Dm({useCompression:e}){if(e&&window.Worker)try{const t=xm();(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Using compression worker");const o=new Worker(t);return new Cm(o)}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Failed to create compression worker")}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Using simple buffer"),new aA}function Ls(e,t,o=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=o}function OA(e,t,o=+new Date){return Ls(e.started,t.maxSessionLife,o)||Ls(e.lastActivity,t.sessionIdle,o)}function kc(e){if("sessionStorage"in m1)try{m1.sessionStorage.setItem(Jd,JSON.stringify(e))}catch{}}function va(e){return e===void 0?!1:Math.random()"u"||__SENTRY_DEBUG__)&&V.log(`[Replay] Creating new session: ${i.id}`),o&&kc(i),i}function Fm(){if(!("sessionStorage"in m1))return null;try{const t=m1.sessionStorage.getItem(Jd);if(!t)return null;const o=JSON.parse(t);return Cc(o)}catch{return null}}function Hm({timeouts:e,currentSession:t,stickySession:o,sessionSampleRate:n,errorSampleRate:i}){const M=t||o&&Fm();if(M)if(OA(M,e)){if(M.sampled==="error")return{type:"new",session:Cc({sampled:!1})};(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Session has expired")}else return{type:"saved",session:M};return{type:"new",session:Im({stickySession:o,sessionSampleRate:n,errorSampleRate:i})}}async function vp(e,t,o){if(!e.eventBuffer||e.isPaused())return null;const i=t.timestamp>9999999999?t.timestamp:t.timestamp*1e3;if(i+e.timeouts.sessionIdle"u"||__SENTRY_DEBUG__)&&V.error(p),e.stop("addEvent");const b=w0().getClient();b&&b.recordDroppedEvent("internal_sdk_error","replay")}}function Ln(e){return!e.type}function KM(e){return e.type==="transaction"}function Um(e){return e.type==="replay_event"}function dA(e){const t=jm();return(o,n)=>{if(!Ln(o)&&!KM(o))return;const i=n&&n.statusCode;if(!(t&&(!i||i<200||i>=300))){if(KM(o)&&o.contexts&&o.contexts.trace&&o.contexts.trace.trace_id){e.getContext().traceIds.add(o.contexts.trace.trace_id);return}Ln(o)&&(o.event_id&&e.getContext().errorIds.add(o.event_id),e.recordingMode==="error"&&o.exception&&o.message!==Xc&&setTimeout(async()=>{await e.flushImmediate(),e.stopRecording()&&(e.recordingMode="session",e.startRecording())}))}}}function jm(){const e=w0().getClient();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}var QM;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(QM||(QM={}));function yn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}function AA(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(vp(e,{type:o1.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:de(t)}}),t.category==="console")))}const Ym=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function $m(e){const t={};for(const o in e)if(Ym.has(o)){let n=o;(o==="data-testid"||o==="data-test-id")&&(n="testId"),t[n]=e[o]}return t}const Gm=e=>t=>{if(!e.isEnabled())return;const o=Vm(t);o&&AA(e,o)};function Vm(e){let t,o;try{o=Km(e),t=x2(o)}catch{t=""}const n=o&&"__sn"in o&&o.__sn.type===QM.Element?o.__sn:null;return yn({category:`ui.${e.name}`,message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:o?Array.from(o.childNodes).map(i=>"__sn"in i&&i.__sn.type===QM.Text&&i.__sn.textContent).filter(Boolean).map(i=>i.trim()).join(""):"",attributes:$m(n.attributes)}}:{}})}function Km(e){return Qm(e.event)?e.event.target:e.event}function Qm(e){return!!e.target}function Jm(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:t.originalException&&t.originalException.__rrweb__?!0:e.exception.values.some(o=>!o.stacktrace||!o.stacktrace.frames||!o.stacktrace.frames.length?!1:o.stacktrace.frames.some(n=>n.filename&&n.filename.includes("/rrweb/src/")))}function Zm(e,t=!1){const o=t?dA(e):void 0;return(n,i)=>{if(Um(n))return delete n.breadcrumbs,n;if(!Ln(n)&&!KM(n))return n;if(Jm(n,i)&&!e.getOptions()._experiments.captureExceptions)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Ignoring error from rrweb internals",n),null;if((Ln(n)||KM(n)&&e.recordingMode==="session")&&(n.tags={...n.tags,replayId:e.getSessionId()}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals&&Ln(n)){const M=eR(n);tR({message:`Tagging event (${n.event_id}) - ${n.message} - ${M.type}: ${M.value}`})}return o&&o(n,{statusCode:200}),n}}function tR(e){const{category:t,level:o,message:n,...i}=e;U6({category:t||"console",level:o||"debug",message:`[debug]: ${n}`,...i})}function eR(e){return{type:"Unknown",value:"n/a",...e.exception&&e.exception.values&&e.exception.values[0]}}function Tp(e,t){return t.map(({type:o,start:n,end:i,name:M,data:p})=>vp(e,{type:o1.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:o,description:M,startTimestamp:n,endTimestamp:i,data:p}}}))}function oR(e){const{from:t,to:o}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:o,data:{previous:t}}}function nR(e){return t=>{if(!e.isEnabled())return;const o=oR(t);o!==null&&(e.getContext().urls.push(o.name),e.triggerUserActivity(),e.addUpdate(()=>(Tp(e,[o]),!1)))}}function iR(e,t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals?!1:MR(t)}function MR(e){const t=w0().getClient(),o=t&&t.getDsn();return o?e.includes(o.host):!1}function Ep(e,t){e.isEnabled()&&t!==null&&(iR(e,t.name)||e.addUpdate(()=>(Tp(e,[t]),!0)))}function pR(e){const{startTimestamp:t,endTimestamp:o,fetchData:n,response:i}=e;if(!o)return null;const{method:M,url:p}=n;return{type:"resource.fetch",start:t/1e3,end:o/1e3,name:p,data:{method:M,statusCode:i&&i.status}}}function bR(e){return t=>{if(!e.isEnabled())return;const o=pR(t);Ep(e,o)}}function sR(e){const{startTimestamp:t,endTimestamp:o,xhr:n}=e;if(!t||!o||!n.__sentry_xhr__)return null;const{method:i,url:M,status_code:p}=n.__sentry_xhr__;return M===void 0?null:{type:"resource.xhr",name:M,start:t/1e3,end:o/1e3,data:{method:i,statusCode:p}}}function cR(e){return t=>{if(!e.isEnabled())return;const o=sR(t);Ep(e,o)}}function JM(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const o=qA(e);return t.encode(o).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function lA(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function uA(e){if(typeof e=="string")return e;if(e instanceof URLSearchParams)return e.toString();if(e instanceof FormData)return qA(e)}function fA(e,t){if(!t)return null;const{startTimestamp:o,endTimestamp:n,url:i,method:M,statusCode:p,request:b,response:s}=t;return{type:e,start:o/1e3,end:n/1e3,name:i,data:Jt({method:M,statusCode:p,request:b,response:s})}}function ys(e){if(e){try{return JSON.parse(e)}catch{}return e}}function Ce(e,t){if(!e)return;if(!t)return{size:e};const o={size:e};return e"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Failed to capture fetch breadcrumb",n)}}function zR(e,t,o){const{input:n,response:i}=t,M=hA(n),p=JM(M,o.textEncoder),b=i?lA(i.headers.get("content-length")):void 0;p!==void 0&&(e.data.request_body_size=p),b!==void 0&&(e.data.response_body_size=b)}async function aR(e,t,o){const{startTimestamp:n,endTimestamp:i}=t,{url:M,method:p,status_code:b,request_body_size:s,response_body_size:r}=e.data,a=OR(o,t.input,s),A=await dR(o,t.response,r);return{startTimestamp:n,endTimestamp:i,url:M,method:p,statusCode:b||0,request:a,response:A}}function OR({captureBodies:e},t,o){if(!e)return Ce(o,void 0);const n=hA(t),i=ys(uA(n));return Ce(o,i)}async function dR({captureBodies:e,textEncoder:t},o,n){if(!e&&n!==void 0)return Ce(n,void 0);try{const i=o.clone(),{body:M,bodyText:p}=await AR(i),b=p&&p.length&&n===void 0?JM(p,t):n;return e?Ce(b,M):Ce(b,void 0)}catch{return Ce(n,void 0)}}async function AR(e){let t;try{t=await e.text()}catch{return{}}try{return{body:JSON.parse(t),bodyText:t}}catch{}return{bodyText:t,body:t}}function hA(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}async function lR(e,t,o){try{const n=fR(e,t,o),i=fA("resource.xhr",n);Ep(o.replay,i)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Failed to capture fetch breadcrumb",n)}}function uR(e,t,o){const{xhr:n,input:i}=t,M=JM(i,o.textEncoder),p=n.getResponseHeader("content-length")?lA(n.getResponseHeader("content-length")):JM(n.response,o.textEncoder);M!==void 0&&(e.data.request_body_size=M),p!==void 0&&(e.data.response_body_size=p)}function fR(e,t,o){const{startTimestamp:n,endTimestamp:i,input:M}=t,{url:p,method:b,status_code:s,request_body_size:r,response_body_size:a}=e.data;if(!p)return null;const A=Ce(r,o.captureBodies?ys(uA(M)):void 0),u=Ce(a,o.captureBodies?ys(t.xhr.responseText):void 0);return{startTimestamp:n,endTimestamp:i,url:p,method:b,statusCode:s||0,request:A,response:u}}function qR(e){const t=w0().getClient();try{const o=new TextEncoder,n={replay:e,textEncoder:o,captureBodies:e.getOptions()._experiments.captureNetworkBodies||!1};t&&t.on?t.on("beforeAddBreadcrumb",(i,M)=>hR(n,i,M)):(P1("fetch",bR(e)),P1("xhr",cR(e)))}catch{}}function hR(e,t,o){if(t.data)try{WR(t)&&_R(o)&&(uR(t,o,e),lR(t,o,e)),gR(t)&&mR(o)&&(zR(t,o,e),rR(t,o,e))}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Error when enriching network breadcrumb")}}function WR(e){return e.category==="xhr"}function gR(e){return e.category==="fetch"}function _R(e){return e&&e.xhr}function mR(e){return e&&e.response}let Ta=null;const RR=e=>t=>{if(!e.isEnabled())return;const o=LR(t);o&&AA(e,o)};function LR(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Ta===t||!t||(Ta=t,t.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")))?null:yn(t)}function yR(e){const t=w0().getScope(),o=w0().getClient();t&&t.addScopeListener(RR(e)),P1("dom",Gm(e)),P1("history",nR(e)),qR(e),Lp(Zm(e,!Ea(o))),Ea(o)&&(o.on("afterSendEvent",dA(e)),o.on("createDsc",n=>{const i=e.getSessionId();i&&(n.replay_id=i)}))}function Ea(e){return!!(e&&e.on)}async function NR(e){try{return Promise.all(Tp(e,[BR(m1.performance.memory)]))}catch{return[]}}function BR(e){const{jsHeapSizeLimit:t,totalJSHeapSize:o,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:o,usedJSHeapSize:n}}}}const Sa={resource:wR,paint:ER,navigation:SR,["largest-contentful-paint"]:xR};function vR(e){return e.map(TR).filter(Boolean)}function TR(e){return Sa[e.entryType]===void 0?null:Sa[e.entryType](e)}function So(e){return((e2||m1.performance.timeOrigin)+e)/1e3}function ER(e){const{duration:t,entryType:o,name:n,startTime:i}=e,M=So(i);return{type:o,name:n,start:M,end:M+t,data:void 0}}function SR(e){const{entryType:t,name:o,decodedBodySize:n,duration:i,domComplete:M,encodedBodySize:p,domContentLoadedEventStart:b,domContentLoadedEventEnd:s,domInteractive:r,loadEventStart:a,loadEventEnd:A,redirectCount:u,startTime:f,transferSize:W,type:_}=e;return i===0?null:{type:`${t}.${_}`,start:So(f),end:So(M),name:o,data:{size:W,decodedBodySize:n,encodedBodySize:p,duration:i,domInteractive:r,domContentLoadedEventStart:b,domContentLoadedEventEnd:s,loadEventStart:a,loadEventEnd:A,domComplete:M,redirectCount:u}}}function wR(e){const{entryType:t,initiatorType:o,name:n,responseEnd:i,startTime:M,decodedBodySize:p,encodedBodySize:b,responseStatus:s,transferSize:r}=e;return["fetch","xmlhttprequest"].includes(o)?null:{type:`${t}.${o}`,start:So(M),end:So(i),name:n,data:{size:r,statusCode:s,decodedBodySize:p,encodedBodySize:b}}}function xR(e){const{entryType:t,startTime:o,size:n}=e;let i=0;if(m1.performance){const b=m1.performance.getEntriesByType("navigation")[0];i=b&&b.activationStart||0}const M=Math.max(o-i,0),p=So(i)+M/1e3;return{type:t,name:t,start:p,end:p,data:{value:M,size:n,nodeId:k2.mirror.getId(e.element)}}}function XR(e,t,o){let n,i,M;const p=o&&o.maxWait?Math.max(o.maxWait,t):0;function b(){return s(),n=e(),n}function s(){i!==void 0&&clearTimeout(i),M!==void 0&&clearTimeout(M),i=M=void 0}function r(){return i!==void 0||M!==void 0?b():n}function a(){return i&&clearTimeout(i),i=setTimeout(b,t),p&&M===void 0&&(M=setTimeout(b,p)),n}return a.cancel=s,a.flush=r,a}function kR(e){let t=!1;return(o,n)=>{if(!e.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Replay] Received replay event after session expired.");return}const i=n||!t;t=!0,e.addUpdate(()=>{if(e.recordingMode==="error"&&i&&e.setInitialState(),vp(e,o,i),!i)return!1;if(e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="error"&&e.session){const{earliestEvent:M}=e.getContext();M&&(e.session.started=M,e.getOptions().stickySession&&kc(e.session))}return e.recordingMode==="session"&&e.flushImmediate(),!0})}}function CR(e,t,o,n){return Fo(Td(e,Lc(e),n,o),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function DR({recordingData:e,headers:t}){let o;const n=`${JSON.stringify(t)} -`;if(typeof e=="string")o=`${n}${e}`;else{const M=new TextEncoder().encode(n);o=new Uint8Array(M.length+e.length),o.set(M),o.set(e,M.length)}return o}async function PR({client:e,scope:t,replayId:o,event:n}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,M=await Cd(e.getOptions(),n,{event_id:o,integrations:i},t);if(!M)return null;M.platform=M.platform||"javascript";const p=e.getSdkMetadata&&e.getSdkMetadata(),{name:b,version:s}=p&&p.sdk||{};return M.sdk={...M.sdk,name:b||"sentry.javascript.unknown",version:s||"0.0.0"},M}async function IR({recordingData:e,replayId:t,segmentId:o,includeReplayStartTimestamp:n,eventContext:i,timestamp:M,session:p,options:b}){const s=DR({recordingData:e,headers:{segment_id:o}}),{urls:r,errorIds:a,traceIds:A,initialTimestamp:u}=i,f=w0(),W=f.getClient(),_=f.getScope(),R=W&&W.getTransport(),L=W&&W.getDsn();if(!W||!_||!R||!L||!p.sampled)return;const E={type:m_,...n?{replay_start_timestamp:u/1e3}:{},timestamp:M/1e3,error_ids:a,trace_ids:A,urls:r,replay_id:t,segment_id:o,replay_type:p.sampled},k=await PR({scope:_,client:W,replayId:t,event:E});if(!k){W.recordDroppedEvent("event_processor","replay",E),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("An event processor returned `null`, will not send event.");return}k.contexts={...k.contexts,replay:{...k.contexts&&k.contexts.replay,session_sample_rate:b.sessionSampleRate,error_sample_rate:b.errorSampleRate}};const w=CR(k,s,L,W.getOptions().tunnel);let T;try{T=await R.send(w)}catch(d){const I=new Error(Xc);try{I.cause=d}catch{}throw I}if(!T)return T;if(typeof T.statusCode=="number"&&(T.statusCode<200||T.statusCode>=300))throw new WA(T.statusCode);return T}class WA extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function gA(e,t={count:0,interval:v_}){const{recordingData:o,options:n}=e;if(o.length)try{return await IR(e),!0}catch(i){if(i instanceof WA)throw i;if(j6("Replays",{_retryCount:t.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n._experiments&&n._experiments.captureExceptions&&Ec(i),t.count>=T_){const M=new Error(`${Xc} - max retries exceeded`);try{M.cause=i}catch{}throw M}return t.interval*=++t.count,await new Promise((M,p)=>{setTimeout(async()=>{try{await gA(e,t),M(!0)}catch(b){p(b)}},t.interval)})}}class v1{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdle:R_,maxSessionLife:L_}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:o}){v1.prototype.__init.call(this),v1.prototype.__init2.call(this),v1.prototype.__init3.call(this),v1.prototype.__init4.call(this),v1.prototype.__init5.call(this),v1.prototype.__init6.call(this),v1.prototype.__init7.call(this),v1.prototype.__init8.call(this),v1.prototype.__init9.call(this),v1.prototype.__init10.call(this),v1.prototype.__init11.call(this),v1.prototype.__init12.call(this),v1.prototype.__init13.call(this),v1.prototype.__init14.call(this),v1.prototype.__init15.call(this),v1.prototype.__init16.call(this),v1.prototype.__init17.call(this),this._recordingOptions=o,this._options=t,this._debouncedFlush=XR(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){if(this.setInitialState(),!!this._loadAndCheckSession()){if(!this.session){this._handleException(new Error("No session found"));return}this.session.sampled&&(this.session.sampled==="error"&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=Dm({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording())}}startRecording(){try{this._stopRecording=k2({...this._recordingOptions,...this.recordingMode==="error"&&{checkoutEveryNms:B_},emit:kR(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording?(this._stopRecording(),this._stopRecording=void 0,!0):!1}catch(t){return this._handleException(t),!1}}stop(t){if(this._isEnabled)try{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`;(this.getOptions()._experiments.traceInternals?console.warn:V.log)(o)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(o){this._handleException(o)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}addUpdate(t){const o=t();this.recordingMode!=="error"&&o!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._loadAndCheckSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&Ls(this._lastActivity,this.timeouts.sessionIdle)&&this.session&&this.session.sampled==="session"){this.pause();return}return this._loadAndCheckSession()?t!==this.getSessionId()?(this._triggerFullSnapshot(),!1):!0:void 0}setInitialState(){const t=`${m1.location.pathname}${m1.location.hash}${m1.location.search}`,o=`${m1.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=o,this._context.initialTimestamp=Date.now(),this._context.urls.push(o)}_handleException(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay]",t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&Ec(t)}_loadAndCheckSession(){const{type:t,session:o}=Hm({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});t==="new"&&this.setInitialState();const n=this.getSessionId();return o.id!==n&&(o.previousSessionId=n),this.session=o,this.session.sampled?!0:(this.stop("session unsampled"),!1)}_addListeners(){try{m1.document.addEventListener("visibilitychange",this._handleVisibilityChange),m1.addEventListener("blur",this._handleWindowBlur),m1.addEventListener("focus",this._handleWindowFocus),this._hasInitializedCoreListeners||(yR(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in m1&&(this._performanceObserver=Sm(this))}_removeListeners(){try{m1.document.removeEventListener("visibilitychange",this._handleVisibilityChange),m1.removeEventListener("blur",this._handleWindowBlur),m1.removeEventListener("focus",this._handleWindowFocus),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{m1.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=yn({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=yn({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const o=OA(this.session,this.timeouts);t&&!o&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_triggerFullSnapshot(t=!0){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Taking full rrweb snapshot"),k2.takeFullSnapshot(t)}catch(o){this._handleException(o)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{vp(this,{type:o1.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Tp(this,vR(t)))}_conditionalFlush(){this.recordingMode!=="error"&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}_popEventContext(){this._context.earliestEvent&&this._context.earliestEvent"u"||__SENTRY_DEBUG__)&&V.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await NR(this),!!this.eventBuffer))try{const t=await this.eventBuffer.finish(),o=this.session.id,n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession(),await gA({replayId:o,recordingData:t,segmentId:i,includeReplayStartTimestamp:i===0,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const o=w0().getClient();o&&o.recordDroppedEvent("send_error","replay")}}__init16(){this._flush=async()=>{if(this._isEnabled){if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] No session found to flush.");return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(t)}finally{this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&kc(this.session)}__init17(){this._onMutationHandler=t=>{const o=t.length,n=this._options._experiments.mutationLimit||0,i=this._options._experiments.mutationBreadcrumbLimit||1e3,M=n&&o>n;if(o>i||M){const p=yn({category:"replay.mutations",data:{count:o}});this._createCustomBreadcrumb(p)}return M?(this._triggerFullSnapshot(!1),!1):!0}}}function nn(e,t,o,n){const i=typeof n=="string"?n.split(","):[],M=[...e,...i,...t];return typeof o<"u"&&(typeof o=="string"&&M.push(`.${o}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),M.join(",")}function FR({mask:e,unmask:t,block:o,unblock:n,ignore:i,blockClass:M,blockSelector:p,maskTextClass:b,maskTextSelector:s,ignoreClass:r}){const a=['base[href="/"]'],A=nn(e,[".sentry-mask","[data-sentry-mask]"],b,s),u=nn(t,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:A,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:u,blockSelector:nn(o,[".sentry-block","[data-sentry-block]",...a],M,p),unblockSelector:nn(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:nn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],r)};return M instanceof RegExp&&(f.blockClass=M),b instanceof RegExp&&(f.maskTextClass=b),f}function wa(){return typeof window<"u"&&(!mc()||HR())}function HR(){return typeof process<"u"&&process.type==="renderer"}const xa='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]';let Xa=!1;class jn{static __initStatic(){this.id="Replay"}__init(){this.name=jn.id}constructor({flushMinDelay:t=y_,flushMaxDelay:o=N_,stickySession:n=!0,useCompression:i=!0,_experiments:M={},sessionSampleRate:p,errorSampleRate:b,maskAllText:s=!0,maskAllInputs:r=!0,blockAllMedia:a=!0,mask:A=[],unmask:u=[],block:f=[],unblock:W=[],ignore:_=[],maskFn:R,blockClass:L,blockSelector:E,maskInputOptions:k,maskTextClass:w,maskTextSelector:T,ignoreClass:d}={}){if(jn.prototype.__init.call(this),this._recordingOptions={maskAllInputs:r,maskAllText:s,maskInputOptions:{...k||{},password:!0},maskTextFn:R,maskInputFn:R,...FR({mask:A,unmask:u,block:f,unblock:W,ignore:_,blockClass:L,blockSelector:E,maskTextClass:w,maskTextSelector:T,ignoreClass:d}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:o,stickySession:n,sessionSampleRate:p,errorSampleRate:b,useCompression:i,blockAllMedia:a,_experiments:M},typeof p=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. +or you can use record.mirror to access the mirror instance during recording.`;let Wa={map:{},getId(){return console.error(po),-1},getNode(){return console.error(po),null},removeNodeFromMap(){console.error(po)},has(){return console.error(po),!1},reset(){console.error(po)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Wa=new Proxy(Wa,{get(e,t,o){return t==="map"&&console.error(po),Reflect.get(e,t,o)}}));function Un(e,t,o={}){let n=null,i=0;return function(p){let M=Date.now();!i&&o.leading===!1&&(i=M);let b=t-(M-i),s=this,r=arguments;b<=0||b>t?(n&&(clearTimeout(n),n=null),i=M,e.apply(s,r)):!n&&o.trailing!==!1&&(n=setTimeout(()=>{i=o.leading===!1?0:Date.now(),n=null,e.apply(s,r)},b))}}function BM(e,t,o,n,i=window){const p=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?o:{set(M){setTimeout(()=>{o.set.call(this,M)},0),p&&p.set&&p.set.call(this,M)}}),()=>BM(e,t,p||{},!0)}function Eo(e,t,o){try{if(!(t in e))return()=>{};const n=e[t],i=o(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}function oA(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nA(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Q1(e,t,o,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1;const p=n&&e.matches(n);return typeof t=="string"?e.closest!==void 0?i=!p&&e.closest("."+t)!==null:i=!p&&e.classList.contains(t):!p&&e.classList.forEach(M=>{t.test(M)&&(i=!0)}),!i&&o&&(i=e.matches(o)),!p&&i||Q1(e.parentNode,t,o,n)}return e.nodeType===e.TEXT_NODE,Q1(e.parentNode,t,o,n)}function kb(e){return"__sn"in e?e.__sn.id===Hn:!1}function iA(e,t){if(_n(e))return!1;const o=t.getId(e);return t.has(o)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?iA(e.parentNode,t):!0:!0}function pA(e){return!!e.changedTouches}function Mm(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(o){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===o)return!0;while(o=o&&o.parentNode);return!1})}function MA(e){return"__sn"in e?e.__sn.type===x1.Element&&e.__sn.tagName==="iframe":!1}function bA(e){return!!(e!=null&&e.shadowRoot)}function ga(e){return"__ln"in e}class bm{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let o=this.head;for(let n=0;n`${e}@${t}`;function ma(e){return"__sn"in e}class sm{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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=[],o=new bm,n=b=>{let s=b,r=Hn;for(;r===Hn;)s=s&&s.nextSibling,r=s&&this.mirror.getId(s);return r},i=b=>{var s,r,a,A,u;const f=b.getRootNode?(s=b.getRootNode())===null||s===void 0?void 0:s.host:null;let W=f;for(;!((a=(r=W==null?void 0:W.getRootNode)===null||r===void 0?void 0:r.call(W))===null||a===void 0)&&a.host;)W=((u=(A=W==null?void 0:W.getRootNode)===null||A===void 0?void 0:A.call(W))===null||u===void 0?void 0:u.host)||null;const _=!this.doc.contains(b)&&(!W||!this.doc.contains(W));if(!b.parentNode||_)return;const R=_n(b.parentNode)?this.mirror.getId(f):this.mirror.getId(b.parentNode),L=n(b);if(R===-1||L===-1)return o.addNode(b);let E=mn(b,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:k=>{MA(k)&&this.iframeManager.addIframe(k),bA(b)&&this.shadowDomManager.addShadowRoot(b.shadowRoot,document)},onIframeLoad:(k,w)=>{this.iframeManager.attachIframe(k,w),this.shadowDomManager.observeAttachShadow(k)}});E&&t.push({parentId:R,nextId:L,node:E})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const b of this.movedSet)ms(this.removes,b,this.mirror)&&!this.movedSet.has(b.parentNode)||i(b);for(const b of this.addedSet)!Rs(this.droppedSet,b)&&!ms(this.removes,b,this.mirror)||Rs(this.movedSet,b)?i(b):this.droppedSet.add(b);let p=null;for(;o.length;){let b=null;if(p){const s=this.mirror.getId(p.value.parentNode),r=n(p.value);s!==-1&&r!==-1&&(b=p)}if(!b)for(let s=o.length-1;s>=0;s--){const r=o.get(s);if(r){const a=this.mirror.getId(r.value.parentNode),A=n(r.value);if(a!==-1&&A!==-1){b=r;break}}}if(!b){for(;o.head;)o.removeNode(o.head.value);break}p=b.previous,o.removeNode(b.value),i(b.value)}const M={texts:this.texts.map(b=>({id:this.mirror.getId(b.node),value:b.value})).filter(b=>this.mirror.has(b.id)),attributes:this.attributes.map(b=>({id:this.mirror.getId(b.node),attributes:b.attributes})).filter(b=>this.mirror.has(b.id)),removes:this.removes,adds:t};!M.texts.length&&!M.attributes.length&&!M.removes.length&&!M.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(M))},this.processMutation=t=>{if(!kb(t.target))switch(t.type){case"characterData":{const o=t.target.textContent;!Q1(t.target,this.blockClass,this.blockSelector,this.unblockSelector)&&o!==t.oldValue&&this.texts.push({value:$p(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&o?this.maskTextFn?this.maskTextFn(o):o.replace(/[\S]/g,"*"):o,node:t.target});break}case"attributes":{const o=t.target;let n=o.getAttribute(t.attributeName);if(t.attributeName==="value"&&(n=Yp({input:o,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:o.tagName,type:o.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Q1(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let i=this.attributes.find(p=>p.node===t.target);if(i||(i={node:t.target,attributes:{}},this.attributes.push(i)),t.attributeName==="type"&&t.target.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&t.target.setAttribute("rr_is_password","true"),t.attributeName==="style"){const p=this.doc.createElement("span");t.oldValue&&p.setAttribute("style",t.oldValue),(i.attributes.style===void 0||i.attributes.style===null)&&(i.attributes.style={});try{const M=i.attributes.style;for(const b of Array.from(o.style)){const s=o.style.getPropertyValue(b),r=o.style.getPropertyPriority(b);(s!==p.style.getPropertyValue(b)||r!==p.style.getPropertyPriority(b))&&(r===""?M[b]=s:M[b]=[s,r])}for(const b of Array.from(p.style))o.style.getPropertyValue(b)===""&&(M[b]=!1)}catch(M){console.warn("[rrweb] Error when parsing update to style attribute:",M)}}else{const p=t.target;i.attributes[t.attributeName]=eA(this.doc,p,p.tagName,t.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":{t.addedNodes.forEach(o=>this.genAdds(o,t.target)),t.removedNodes.forEach(o=>{const n=this.mirror.getId(o),i=_n(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Q1(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||kb(o)||(this.addedSet.has(o)?(_s(this.addedSet,o),this.droppedSet.add(o)):this.addedSet.has(t.target)&&n===-1||iA(t.target,this.mirror)||(this.movedSet.has(o)&&this.movedMap[_a(n,i)]?_s(this.movedSet,o):this.removes.push({parentId:i,id:n,isShadow:_n(t.target)?!0:void 0})),this.mapRemoves.push(o))});break}}},this.genAdds=(t,o)=>{if(!(o&&Q1(o,this.blockClass,this.blockSelector,this.unblockSelector))){if(ma(t)){if(kb(t))return;this.movedSet.add(t);let n=null;o&&ma(o)&&(n=o.__sn.id),n&&(this.movedMap[_a(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Q1(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(n=>this.genAdds(n))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(o=>{this[o]=t[o]})}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 _s(e,t){e.delete(t),t.childNodes.forEach(o=>_s(e,o))}function ms(e,t,o){const{parentNode:n}=t;if(!n)return!1;const i=o.getId(n);return e.some(p=>p.id===i)?!0:ms(e,n,o)}function Rs(e,t){const{parentNode:o}=t;return o?e.has(o)?!0:Rs(e,o):!1}const D0=e=>(...o)=>{try{return e(...o)}catch(n){try{n.__rrweb__=!0}catch{}throw n}},L2=[];function ai(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sA(e,t){var o,n;const i=new sm;L2.push(i),i.init(e);let p=window.MutationObserver||window.__rrMutationObserver;const M=(n=(o=window==null?void 0:window.Zone)===null||o===void 0?void 0:o.__symbol__)===null||n===void 0?void 0:n.call(o,"MutationObserver");M&&window[M]&&(p=window[M]);const b=new p(D0(s=>{e.onMutation&&e.onMutation(s)===!1||i.processMutations(s)}));return b.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),b}function cm({mousemoveCb:e,sampling:t,doc:o,mirror:n}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,p=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let M=[],b;const s=Un(A=>{const u=Date.now()-b;D0(e)(M.map(f=>(f.timeOffset-=u,f)),A),M=[],b=null},p),r=Un(A=>{const u=ai(A),{clientX:f,clientY:W}=pA(A)?A.changedTouches[0]:A;b||(b=Date.now()),M.push({x:f,y:W,id:n.getId(u),timeOffset:Date.now()-b}),s(typeof DragEvent<"u"&&A instanceof DragEvent?D1.Drag:A instanceof MouseEvent?D1.MouseMove:D1.TouchMove)},i,{trailing:!1}),a=[ut("mousemove",D0(r),o),ut("touchmove",D0(r),o),ut("drag",D0(r),o)];return D0(()=>{a.forEach(A=>A())})}function rm({mouseInteractionCb:e,doc:t,mirror:o,blockClass:n,blockSelector:i,unblockSelector:p,sampling:M}){if(M.mouseInteraction===!1)return()=>{};const b=M.mouseInteraction===!0||M.mouseInteraction===void 0?{}:M.mouseInteraction,s=[],r=a=>A=>{const u=ai(A);if(Q1(u,n,i,p))return;const f=pA(A)?A.changedTouches[0]:A;if(!f)return;const W=o.getId(u),{clientX:_,clientY:R}=f;D0(e)({type:Gp[a],id:W,x:_,y:R})};return Object.keys(Gp).filter(a=>Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&b[a]!==!1).forEach(a=>{const A=a.toLowerCase(),u=D0(r(a));s.push(ut(A,u,t))}),D0(()=>{s.forEach(a=>a())})}function cA({scrollCb:e,doc:t,mirror:o,blockClass:n,blockSelector:i,unblockSelector:p,sampling:M}){const b=Un(s=>{const r=ai(s);if(!r||Q1(r,n,i,p))return;const a=o.getId(r);if(r===t){const A=t.scrollingElement||t.documentElement;D0(e)({id:a,x:A.scrollLeft,y:A.scrollTop})}else D0(e)({id:a,x:r.scrollLeft,y:r.scrollTop})},M.scroll||100);return ut("scroll",D0(b),t)}function zm({viewportResizeCb:e}){let t=-1,o=-1;const n=Un(()=>{const i=oA(),p=nA();(t!==i||o!==p)&&(D0(e)({width:Number(p),height:Number(i)}),t=i,o=p)},200);return ut("resize",D0(n),window)}function Ra(e,t){const o=Object.assign({},e);return t||delete o.userTriggered,o}const am=["INPUT","TEXTAREA","SELECT"],La=new WeakMap;function Om({inputCb:e,doc:t,mirror:o,blockClass:n,blockSelector:i,unblockSelector:p,ignoreClass:M,ignoreSelector:b,maskInputSelector:s,unmaskInputSelector:r,maskInputOptions:a,maskInputFn:A,sampling:u,userTriggeredOnInput:f}){function W(w){let T=ai(w);const d=T&&T.tagName,I=w.isTrusted;if(d==="OPTION"&&(T=T.parentElement),!T||!d||am.indexOf(d)<0||Q1(T,n,i,p))return;let D=T.type;if(T.classList.contains(M)||b&&T.matches(b))return;let J=T.value,G=!1;T.hasAttribute("rr_is_password")&&(D="password"),D==="radio"||D==="checkbox"?G=T.checked:w_({maskInputOptions:a,maskInputSelector:s,tagName:d,type:D})&&(J=Yp({input:T,maskInputOptions:a,maskInputSelector:s,unmaskInputSelector:r,tagName:d,type:D,value:J,maskInputFn:A})),_(T,D0(Ra)({text:J,isChecked:G,userTriggered:I},f));const K=T.name;D==="radio"&&K&&G&&t.querySelectorAll(`input[type="radio"][name="${K}"]`).forEach(n0=>{n0!==T&&_(n0,D0(Ra)({text:n0.value,isChecked:!G,userTriggered:!1},f))})}function _(w,T){const d=La.get(w);if(!d||d.text!==T.text||d.isChecked!==T.isChecked){La.set(w,T);const I=o.getId(w);e(Object.assign(Object.assign({},T),{id:I}))}}const L=(u.input==="last"?["change"]:["input","change"]).map(w=>ut(w,D0(W),t)),E=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),k=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return E&&E.set&&L.push(...k.map(w=>BM(w[0],w[1],{set(){D0(W)({target:this})}}))),D0(()=>{L.forEach(w=>w())})}function Vp(e){const t=[];function o(n,i){if(Gi("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||Gi("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||Gi("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||Gi("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const M=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(M)}else{const M=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(M)}return i}return o(e,t)}function dm({styleSheetRuleCb:e,mirror:t},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const n=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:D0((b,s,r)=>{const[a,A]=r,u=t.getId(s.ownerNode);return u!==-1&&e({id:u,adds:[{rule:a,index:A}]}),b.apply(s,r)})});const i=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:D0((b,s,r)=>{const[a]=r,A=t.getId(s.ownerNode);return A!==-1&&e({id:A,removes:[{index:a}]}),b.apply(s,r)})});const p={};Vi("CSSGroupingRule")?p.CSSGroupingRule=o.CSSGroupingRule:(Vi("CSSMediaRule")&&(p.CSSMediaRule=o.CSSMediaRule),Vi("CSSConditionRule")&&(p.CSSConditionRule=o.CSSConditionRule),Vi("CSSSupportsRule")&&(p.CSSSupportsRule=o.CSSSupportsRule));const M={};return Object.entries(p).forEach(([b,s])=>{M[b]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(M[b].insertRule,{apply:D0((r,a,A)=>{const[u,f]=A,W=t.getId(a.parentStyleSheet.ownerNode);return W!==-1&&e({id:W,adds:[{rule:u,index:[...Vp(a),f||0]}]}),r.apply(a,A)})}),s.prototype.deleteRule=new Proxy(M[b].deleteRule,{apply:D0((r,a,A)=>{const[u]=A,f=t.getId(a.parentStyleSheet.ownerNode);return f!==-1&&e({id:f,removes:[{index:[...Vp(a),u]}]}),r.apply(a,A)})})}),D0(()=>{o.CSSStyleSheet.prototype.insertRule=n,o.CSSStyleSheet.prototype.deleteRule=i,Object.entries(p).forEach(([b,s])=>{s.prototype.insertRule=M[b].insertRule,s.prototype.deleteRule=M[b].deleteRule})})}function Am({styleDeclarationCb:e,mirror:t},{win:o}){const n=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:D0((p,M,b)=>{var s,r;const[a,A,u]=b,f=t.getId((r=(s=M.parentRule)===null||s===void 0?void 0:s.parentStyleSheet)===null||r===void 0?void 0:r.ownerNode);return f!==-1&&e({id:f,set:{property:a,value:A,priority:u},index:Vp(M.parentRule)}),p.apply(M,b)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:D0((p,M,b)=>{var s,r;const[a]=b,A=t.getId((r=(s=M.parentRule)===null||s===void 0?void 0:s.parentStyleSheet)===null||r===void 0?void 0:r.ownerNode);return A!==-1&&e({id:A,remove:{property:a},index:Vp(M.parentRule)}),p.apply(M,b)})}),D0(()=>{o.CSSStyleDeclaration.prototype.setProperty=n,o.CSSStyleDeclaration.prototype.removeProperty=i})}function lm({mediaInteractionCb:e,blockClass:t,blockSelector:o,unblockSelector:n,mirror:i,sampling:p}){const M=s=>Un(D0(r=>{const a=ai(r);if(!a||Q1(a,t,o,n))return;const{currentTime:A,volume:u,muted:f}=a;e({type:s,id:i.getId(a),currentTime:A,volume:u,muted:f})}),p.media||500),b=[ut("play",M(0)),ut("pause",M(1)),ut("seeked",M(2)),ut("volumechange",M(3))];return D0(()=>{b.forEach(s=>s())})}function um({fontCb:e,doc:t}){const o=t.defaultView;if(!o)return()=>{};const n=[],i=new WeakMap,p=o.FontFace;o.FontFace=function(s,r,a){const A=new p(s,r,a);return i.set(A,{family:s,buffer:typeof r!="string",descriptors:a,fontSource:typeof r=="string"?r:JSON.stringify(Array.from(new Uint8Array(r)))}),A};const M=Eo(t.fonts,"add",function(b){return function(s){return setTimeout(()=>{const r=i.get(s);r&&(e(r),i.delete(s))},0),b.apply(this,[s])}});return n.push(()=>{o.FontFace=p}),n.push(M),D0(()=>{n.forEach(b=>b())})}function fm(e,t){const{mutationCb:o,mousemoveCb:n,mouseInteractionCb:i,scrollCb:p,viewportResizeCb:M,inputCb:b,mediaInteractionCb:s,styleSheetRuleCb:r,styleDeclarationCb:a,canvasMutationCb:A,fontCb:u}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),o(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),n(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),i(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),p(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),M(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),b(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),s(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),r(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),a(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),A(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),u(...f)}}function qm(e,t={}){const o=e.doc.defaultView;if(!o)return()=>{};fm(e,t);const n=sA(e,e.doc),i=cm(e),p=rm(e),M=cA(e),b=zm(e),s=Om(e),r=lm(e),a=dm(e,{win:o}),A=Am(e,{win:o}),u=e.collectFonts?um(e):()=>{},f=[];for(const W of e.plugins)f.push(W.observer(W.callback,o,W.options));return D0(()=>{L2.forEach(W=>W.reset()),n.disconnect(),i(),p(),M(),b(),s(),r();try{a(),A()}catch{}u(),f.forEach(W=>W())})}function Gi(e){return typeof window[e]<"u"}function Vi(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class hm{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,o){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:o}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(n=this.loadListener)===null||n===void 0||n.call(this,t)}}class Wm{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const o=this;this.restorePatches.push(Eo(HTMLElement.prototype,"attachShadow",function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&o.addShadowRoot(this.shadowRoot,this.ownerDocument),i}}))}addShadowRoot(t,o){sA(Object.assign(Object.assign({},this.bypassOptions),{doc:o,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),cA(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const o=this;this.restorePatches.push(Eo(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&o.addShadowRoot(this.shadowRoot,t.contentDocument),i}}))}}reset(){this.restorePatches.forEach(t=>t())}}function gm(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const u=[...A];if(s==="drawImage"&&u[0]&&u[0]instanceof HTMLCanvasElement){const f=u[0],W=f.getContext("2d");let _=W==null?void 0:W.getImageData(0,0,f.width,f.height),R=_==null?void 0:_.data;u[0]=JSON.stringify(R)}e(this.canvas,{type:To["2D"],property:s,args:u})},0),a.apply(this,A)}});M.push(r)}catch{const a=BM(t.CanvasRenderingContext2D.prototype,s,{set(A){e(this.canvas,{type:To["2D"],property:s,args:[A],setter:!0})}});M.push(a)}return()=>{M.forEach(s=>s())}}function mm(e,t,o,n){const i=[];try{const p=Eo(e.HTMLCanvasElement.prototype,"getContext",function(M){return function(b,...s){return Q1(this,t,o,n)||"__context"in this||(this.__context=b),M.apply(this,[b,...s])}});i.push(p)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(p=>p())}}var co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ki=0;Ki>2],i+=co[(t[o]&3)<<4|t[o+1]>>4],i+=co[(t[o+1]&15)<<2|t[o+2]>>6],i+=co[t[o+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const ya=new Map;function ym(e,t){let o=ya.get(e);return o||(o=new Map,ya.set(e,o)),o.has(t)||o.set(t,[]),o.get(t)}const rA=(e,t,o)=>{if(!e||!(zA(e,t)||typeof e=="object"))return;const n=e.constructor.name,i=ym(o,n);let p=i.indexOf(e);return p===-1&&(p=i.length,i.push(e)),p};function hp(e,t,o){if(e instanceof Array)return e.map(n=>hp(n,t,o));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,i=Lm(e);return{rr_type:n,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[hp(e.buffer,t,o),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:i}=e;return{rr_type:n,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[hp(e.data,t,o),e.width,e.height]};if(zA(e,t)||typeof e=="object"){const n=e.constructor.name,i=rA(e,t,o);return{rr_type:n,index:i}}}}return e}const Nm=(e,t,o)=>[...e].map(n=>hp(n,t,o)),zA=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Na(e,t,o,n,i,p,M,b){const s=[],r=Object.getOwnPropertyNames(e);for(const a of r)try{if(typeof e[a]!="function")continue;const A=Eo(e,a,function(u){return function(...f){const W=u.apply(this,f);if(rA(W,b,e),!Q1(this.canvas,n,p,i)){const _=M.getId(this.canvas),R=Nm([...f],b,e),L={type:t,property:a,args:R};o(this.canvas,L)}return W}});s.push(A)}catch{const u=BM(e,a,{set(f){o(this.canvas,{type:t,property:a,args:[f],setter:!0})}});s.push(u)}return s}function Bm(e,t,o,n,i,p){const M=[];return M.push(...Na(t.WebGLRenderingContext.prototype,To.WebGL,e,o,n,i,p,t)),typeof t.WebGL2RenderingContext<"u"&&M.push(...Na(t.WebGL2RenderingContext.prototype,To.WebGL2,e,o,n,i,p,t)),()=>{M.forEach(b=>b())}}class vm{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(o,n){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(n)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,t.recordCanvas===!0&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,o,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const p=mm(t,o,i,n),M=_m(this.processMutation.bind(this),t,o,i,n,this.mirror),b=Bm(this.processMutation.bind(this),t,o,i,n,this.mirror);this.resetObservers=()=>{p(),M(),b()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=o=>{this.rafStamps.latestId=o,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,o)=>{const n=this.mirror.getId(o);this.flushPendingCanvasMutationFor(o,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,o){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||o===-1)return;const i=n.map(M=>gm(M,["type"])),{type:p}=n[0];this.mutationCb({id:o,type:p,commands:i}),this.pendingCanvasMutations.delete(t)}}function C1(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let B1,Rn;const On=pm();function k2(e={}){const{emit:t,checkoutEveryNms:o,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:p=null,unblockSelector:M=null,ignoreClass:b="rr-ignore",ignoreSelector:s=null,maskTextClass:r="rr-mask",maskTextSelector:a=null,maskInputSelector:A=null,unmaskTextSelector:u=null,unmaskInputSelector:f=null,inlineStylesheet:W=!0,maskAllText:_=!1,maskAllInputs:R,maskInputOptions:L,slimDOMOptions:E,maskInputFn:k,maskTextFn:w,hooks:T,packFn:d,sampling:I={},mousemoveWait:D,recordCanvas:J=!1,userTriggeredOnInput:G=!1,collectFonts:K=!1,inlineImages:n0=!1,plugins:e0,keepIframeSrcFn:O0=()=>!1,onMutation:M0}=e;if(!t)throw new Error("emit function is required");D!==void 0&&I.mousemove===void 0&&(I.mousemove=D);const l0=R===!0?{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}:L!==void 0?L:{},m0=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all"}:E||{};Mm();let c1,C0=0;const w1=f0=>{for(const V0 of e0||[])V0.eventProcessor&&(f0=V0.eventProcessor(f0));return d&&(f0=d(f0)),f0};B1=(f0,V0)=>{var K0;if(!((K0=L2[0])===null||K0===void 0)&&K0.isFrozen()&&f0.type!==o1.FullSnapshot&&!(f0.type===o1.IncrementalSnapshot&&f0.data.source===D1.Mutation)&&L2.forEach(L1=>L1.unfreeze()),t(w1(f0),V0),f0.type===o1.FullSnapshot)c1=f0,C0=0;else if(f0.type===o1.IncrementalSnapshot){if(f0.data.source===D1.Mutation&&f0.data.isAttachIframe)return;C0++;const L1=n&&C0>=n,A1=o&&f0.timestamp-c1.timestamp>o;(L1||A1)&&Rn(!0)}};const i1=f0=>{B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Mutation},f0)}))},R1=f0=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Scroll},f0)})),r1=f0=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.CanvasMutation},f0)})),G0=new hm({mutationCb:i1}),U0=new vm({recordCanvas:J,mutationCb:r1,win:window,blockClass:i,blockSelector:p,unblockSelector:M,mirror:On}),N0=new Wm({mutationCb:i1,scrollCb:R1,bypassOptions:{onMutation:M0,blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:f,inlineStylesheet:W,maskAllText:_,maskInputOptions:l0,maskTextFn:w,maskInputFn:k,recordCanvas:J,inlineImages:n0,sampling:I,slimDOMOptions:m0,iframeManager:G0,canvasManager:U0},mirror:On});Rn=(f0=!1)=>{var V0,K0,L1,A1;B1(C1({type:o1.Meta,data:{href:window.location.href,width:nA(),height:oA()}}),f0),L2.forEach(j=>j.lock());const[v,Y]=om(document,{blockClass:i,blockSelector:p,unblockSelector:M,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:f,inlineStylesheet:W,maskAllText:_,maskAllInputs:l0,maskTextFn:w,slimDOM:m0,recordCanvas:J,inlineImages:n0,onSerialize:j=>{MA(j)&&G0.addIframe(j),bA(j)&&N0.addShadowRoot(j.shadowRoot,document)},onIframeLoad:(j,b0)=>{G0.attachIframe(j,b0),N0.observeAttachShadow(j)},keepIframeSrcFn:O0});if(!v)return console.warn("Failed to snapshot the document");On.map=Y,B1(C1({type:o1.FullSnapshot,data:{node:v,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((K0=(V0=document==null?void 0:document.body)===null||V0===void 0?void 0:V0.parentElement)===null||K0===void 0?void 0:K0.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((A1=(L1=document==null?void 0:document.body)===null||L1===void 0?void 0:L1.parentElement)===null||A1===void 0?void 0:A1.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),L2.forEach(j=>j.unlock())};try{const f0=[];f0.push(ut("DOMContentLoaded",()=>{B1(C1({type:o1.DomContentLoaded,data:{}}))}));const V0=L1=>{var A1;return D0(qm)({onMutation:M0,mutationCb:i1,mousemoveCb:(v,Y)=>B1(C1({type:o1.IncrementalSnapshot,data:{source:Y,positions:v}})),mouseInteractionCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.MouseInteraction},v)})),scrollCb:R1,viewportResizeCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.ViewportResize},v)})),inputCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Input},v)})),mediaInteractionCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.MediaInteraction},v)})),styleSheetRuleCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.StyleSheetRule},v)})),styleDeclarationCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.StyleDeclaration},v)})),canvasMutationCb:r1,fontCb:v=>B1(C1({type:o1.IncrementalSnapshot,data:Object.assign({source:D1.Font},v)})),blockClass:i,ignoreClass:b,ignoreSelector:s,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:f,maskInputOptions:l0,inlineStylesheet:W,sampling:I,recordCanvas:J,inlineImages:n0,userTriggeredOnInput:G,collectFonts:K,doc:L1,maskAllText:_,maskInputFn:k,maskTextFn:w,blockSelector:p,unblockSelector:M,slimDOMOptions:m0,mirror:On,iframeManager:G0,shadowDomManager:N0,canvasManager:U0,plugins:((A1=e0==null?void 0:e0.filter(v=>v.observer))===null||A1===void 0?void 0:A1.map(v=>({observer:v.observer,options:v.options,callback:Y=>B1(C1({type:o1.Plugin,data:{plugin:v.name,payload:Y}}))})))||[]},T)};G0.addLoadListener(L1=>{try{f0.push(V0(L1.contentDocument))}catch(A1){console.warn(A1)}});const K0=()=>{Rn(),f0.push(V0(document))};return document.readyState==="interactive"||document.readyState==="complete"?K0():f0.push(ut("load",()=>{B1(C1({type:o1.Load,data:{}})),K0()},window)),()=>{f0.forEach(L1=>L1())}}catch(f0){console.warn(f0)}}k2.addCustomEvent=(e,t)=>{if(!B1)throw new Error("please add custom event after start recording");B1(C1({type:o1.Custom,data:{tag:e,payload:t}}))};k2.freezePage=()=>{L2.forEach(e=>e.freeze())};k2.takeFullSnapshot=e=>{if(!Rn)throw new Error("please take full snapshot after start recording");Rn(e)};k2.mirror=On;const Tm=["name","type","startTime","transferSize","duration"];function Ba(e){return function(t){return Tm.every(o=>e[o]===t[o])}}function Em(e,t){const[o,n,i]=e.reduce((s,r)=>(r.entryType==="navigation"?s[0].push(r):r.entryType==="largest-contentful-paint"?s[1].push(r):s[2].push(r),s),[[],[],[]]),p=[],M=[];let b=n.length?n[n.length-1]:void 0;return t.forEach(s=>{if(s.entryType==="largest-contentful-paint"){(!b||b.startTime0&&!o.find(Ba(r))&&!M.find(Ba(r))&&M.push(r);return}p.push(s)}),[...b?[b]:[],...o,...i,...p,...M].sort((s,r)=>s.startTime-r.startTime)}function Sm(e){const t=n=>{const i=Em(e.performanceEvents,n.getEntries());e.performanceEvents=i},o=new PerformanceObserver(t);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(n=>{try{o.observe({type:n,buffered:!0})}catch{}}),o}const wm=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ +function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&sr){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watern&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindexi&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<>>=p,c-=p),c<15&&(f+=z[a++]<>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a>3,a-=k,c-=k<<3,f&=(1<{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavexe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function xm(){const e=new Blob([wm]);return URL.createObjectURL(e)}class aA{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}destroy(){this.events=[]}async addEvent(t,o){if(o){this.events=[t];return}this.events.push(t)}finish(){return new Promise(t=>{const o=this.events;this.events=[],t(JSON.stringify(o))})}}class Xm{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,o)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():o()},{once:!0}),this._worker.addEventListener("error",n=>{o(n)},{once:!0})}),this._ensureReadyPromise)}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,o){const n=this._getAndIncrementId();return new Promise((i,p)=>{const M=({data:b})=>{const s=b;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",M),!s.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay]",s.response),p(new Error("Error in compression worker"));return}i(s.response)}};this._worker.addEventListener("message",M),this._worker.postMessage({id:n,method:t,arg:o})})}_getAndIncrementId(){return this._id++}}class km{constructor(t){this._worker=new Xm(t),this.hasEvents=!1}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}async addEvent(t,o){return this.hasEvents=!0,o&&await this._clear(),this._sendEventToWorker(t)}finish(){return this._finishRequest()}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this.hasEvents=!1,t}_clear(){return this._worker.postMessage("clear")}}class Cm{constructor(t){this._fallback=new aA,this._compression=new km(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}addEvent(t,o){return this._used.addEvent(t,o)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,o=[];for(const n of t)o.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(o)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Replay] Failed to add events when switching buffers.",n)}}}function Dm({useCompression:e}){if(e&&window.Worker)try{const t=xm();(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Using compression worker");const o=new Worker(t);return new Cm(o)}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Failed to create compression worker")}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Using simple buffer"),new aA}function Ls(e,t,o=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=o}function OA(e,t,o=+new Date){return Ls(e.started,t.maxSessionLife,o)||Ls(e.lastActivity,t.sessionIdle,o)}function kc(e){if("sessionStorage"in m1)try{m1.sessionStorage.setItem(Jd,JSON.stringify(e))}catch{}}function va(e){return e===void 0?!1:Math.random()"u"||__SENTRY_DEBUG__)&&V.log(`[Replay] Creating new session: ${i.id}`),o&&kc(i),i}function Fm(){if(!("sessionStorage"in m1))return null;try{const t=m1.sessionStorage.getItem(Jd);if(!t)return null;const o=JSON.parse(t);return Cc(o)}catch{return null}}function Hm({timeouts:e,currentSession:t,stickySession:o,sessionSampleRate:n,errorSampleRate:i}){const p=t||o&&Fm();if(p)if(OA(p,e)){if(p.sampled==="error")return{type:"new",session:Cc({sampled:!1})};(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Session has expired")}else return{type:"saved",session:p};return{type:"new",session:Im({stickySession:o,sessionSampleRate:n,errorSampleRate:i})}}async function vM(e,t,o){if(!e.eventBuffer||e.isPaused())return null;const i=t.timestamp>9999999999?t.timestamp:t.timestamp*1e3;if(i+e.timeouts.sessionIdle"u"||__SENTRY_DEBUG__)&&V.error(M),e.stop("addEvent");const b=w0().getClient();b&&b.recordDroppedEvent("internal_sdk_error","replay")}}function Ln(e){return!e.type}function Kp(e){return e.type==="transaction"}function Um(e){return e.type==="replay_event"}function dA(e){const t=jm();return(o,n)=>{if(!Ln(o)&&!Kp(o))return;const i=n&&n.statusCode;if(!(t&&(!i||i<200||i>=300))){if(Kp(o)&&o.contexts&&o.contexts.trace&&o.contexts.trace.trace_id){e.getContext().traceIds.add(o.contexts.trace.trace_id);return}Ln(o)&&(o.event_id&&e.getContext().errorIds.add(o.event_id),e.recordingMode==="error"&&o.exception&&o.message!==Xc&&setTimeout(async()=>{await e.flushImmediate(),e.stopRecording()&&(e.recordingMode="session",e.startRecording())}))}}}function jm(){const e=w0().getClient();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}var Qp;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Qp||(Qp={}));function yn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}function AA(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(vM(e,{type:o1.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:de(t)}}),t.category==="console")))}const Ym=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function $m(e){const t={};for(const o in e)if(Ym.has(o)){let n=o;(o==="data-testid"||o==="data-test-id")&&(n="testId"),t[n]=e[o]}return t}const Gm=e=>t=>{if(!e.isEnabled())return;const o=Vm(t);o&&AA(e,o)};function Vm(e){let t,o;try{o=Km(e),t=x2(o)}catch{t=""}const n=o&&"__sn"in o&&o.__sn.type===Qp.Element?o.__sn:null;return yn({category:`ui.${e.name}`,message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:o?Array.from(o.childNodes).map(i=>"__sn"in i&&i.__sn.type===Qp.Text&&i.__sn.textContent).filter(Boolean).map(i=>i.trim()).join(""):"",attributes:$m(n.attributes)}}:{}})}function Km(e){return Qm(e.event)?e.event.target:e.event}function Qm(e){return!!e.target}function Jm(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:t.originalException&&t.originalException.__rrweb__?!0:e.exception.values.some(o=>!o.stacktrace||!o.stacktrace.frames||!o.stacktrace.frames.length?!1:o.stacktrace.frames.some(n=>n.filename&&n.filename.includes("/rrweb/src/")))}function Zm(e,t=!1){const o=t?dA(e):void 0;return(n,i)=>{if(Um(n))return delete n.breadcrumbs,n;if(!Ln(n)&&!Kp(n))return n;if(Jm(n,i)&&!e.getOptions()._experiments.captureExceptions)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Ignoring error from rrweb internals",n),null;if((Ln(n)||Kp(n)&&e.recordingMode==="session")&&(n.tags={...n.tags,replayId:e.getSessionId()}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals&&Ln(n)){const p=eR(n);tR({message:`Tagging event (${n.event_id}) - ${n.message} - ${p.type}: ${p.value}`})}return o&&o(n,{statusCode:200}),n}}function tR(e){const{category:t,level:o,message:n,...i}=e;U6({category:t||"console",level:o||"debug",message:`[debug]: ${n}`,...i})}function eR(e){return{type:"Unknown",value:"n/a",...e.exception&&e.exception.values&&e.exception.values[0]}}function TM(e,t){return t.map(({type:o,start:n,end:i,name:p,data:M})=>vM(e,{type:o1.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:o,description:p,startTimestamp:n,endTimestamp:i,data:M}}}))}function oR(e){const{from:t,to:o}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:o,data:{previous:t}}}function nR(e){return t=>{if(!e.isEnabled())return;const o=oR(t);o!==null&&(e.getContext().urls.push(o.name),e.triggerUserActivity(),e.addUpdate(()=>(TM(e,[o]),!1)))}}function iR(e,t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals?!1:pR(t)}function pR(e){const t=w0().getClient(),o=t&&t.getDsn();return o?e.includes(o.host):!1}function EM(e,t){e.isEnabled()&&t!==null&&(iR(e,t.name)||e.addUpdate(()=>(TM(e,[t]),!0)))}function MR(e){const{startTimestamp:t,endTimestamp:o,fetchData:n,response:i}=e;if(!o)return null;const{method:p,url:M}=n;return{type:"resource.fetch",start:t/1e3,end:o/1e3,name:M,data:{method:p,statusCode:i&&i.status}}}function bR(e){return t=>{if(!e.isEnabled())return;const o=MR(t);EM(e,o)}}function sR(e){const{startTimestamp:t,endTimestamp:o,xhr:n}=e;if(!t||!o||!n.__sentry_xhr__)return null;const{method:i,url:p,status_code:M}=n.__sentry_xhr__;return p===void 0?null:{type:"resource.xhr",name:p,start:t/1e3,end:o/1e3,data:{method:i,statusCode:M}}}function cR(e){return t=>{if(!e.isEnabled())return;const o=sR(t);EM(e,o)}}function Jp(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const o=qA(e);return t.encode(o).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function lA(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function uA(e){if(typeof e=="string")return e;if(e instanceof URLSearchParams)return e.toString();if(e instanceof FormData)return qA(e)}function fA(e,t){if(!t)return null;const{startTimestamp:o,endTimestamp:n,url:i,method:p,statusCode:M,request:b,response:s}=t;return{type:e,start:o/1e3,end:n/1e3,name:i,data:Jt({method:p,statusCode:M,request:b,response:s})}}function ys(e){if(e){try{return JSON.parse(e)}catch{}return e}}function Ce(e,t){if(!e)return;if(!t)return{size:e};const o={size:e};return e"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Failed to capture fetch breadcrumb",n)}}function zR(e,t,o){const{input:n,response:i}=t,p=hA(n),M=Jp(p,o.textEncoder),b=i?lA(i.headers.get("content-length")):void 0;M!==void 0&&(e.data.request_body_size=M),b!==void 0&&(e.data.response_body_size=b)}async function aR(e,t,o){const{startTimestamp:n,endTimestamp:i}=t,{url:p,method:M,status_code:b,request_body_size:s,response_body_size:r}=e.data,a=OR(o,t.input,s),A=await dR(o,t.response,r);return{startTimestamp:n,endTimestamp:i,url:p,method:M,statusCode:b||0,request:a,response:A}}function OR({captureBodies:e},t,o){if(!e)return Ce(o,void 0);const n=hA(t),i=ys(uA(n));return Ce(o,i)}async function dR({captureBodies:e,textEncoder:t},o,n){if(!e&&n!==void 0)return Ce(n,void 0);try{const i=o.clone(),{body:p,bodyText:M}=await AR(i),b=M&&M.length&&n===void 0?Jp(M,t):n;return e?Ce(b,p):Ce(b,void 0)}catch{return Ce(n,void 0)}}async function AR(e){let t;try{t=await e.text()}catch{return{}}try{return{body:JSON.parse(t),bodyText:t}}catch{}return{bodyText:t,body:t}}function hA(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}async function lR(e,t,o){try{const n=fR(e,t,o),i=fA("resource.xhr",n);EM(o.replay,i)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Failed to capture fetch breadcrumb",n)}}function uR(e,t,o){const{xhr:n,input:i}=t,p=Jp(i,o.textEncoder),M=n.getResponseHeader("content-length")?lA(n.getResponseHeader("content-length")):Jp(n.response,o.textEncoder);p!==void 0&&(e.data.request_body_size=p),M!==void 0&&(e.data.response_body_size=M)}function fR(e,t,o){const{startTimestamp:n,endTimestamp:i,input:p}=t,{url:M,method:b,status_code:s,request_body_size:r,response_body_size:a}=e.data;if(!M)return null;const A=Ce(r,o.captureBodies?ys(uA(p)):void 0),u=Ce(a,o.captureBodies?ys(t.xhr.responseText):void 0);return{startTimestamp:n,endTimestamp:i,url:M,method:b,statusCode:s||0,request:A,response:u}}function qR(e){const t=w0().getClient();try{const o=new TextEncoder,n={replay:e,textEncoder:o,captureBodies:e.getOptions()._experiments.captureNetworkBodies||!1};t&&t.on?t.on("beforeAddBreadcrumb",(i,p)=>hR(n,i,p)):(P1("fetch",bR(e)),P1("xhr",cR(e)))}catch{}}function hR(e,t,o){if(t.data)try{WR(t)&&_R(o)&&(uR(t,o,e),lR(t,o,e)),gR(t)&&mR(o)&&(zR(t,o,e),rR(t,o,e))}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Error when enriching network breadcrumb")}}function WR(e){return e.category==="xhr"}function gR(e){return e.category==="fetch"}function _R(e){return e&&e.xhr}function mR(e){return e&&e.response}let Ta=null;const RR=e=>t=>{if(!e.isEnabled())return;const o=LR(t);o&&AA(e,o)};function LR(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Ta===t||!t||(Ta=t,t.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")))?null:yn(t)}function yR(e){const t=w0().getScope(),o=w0().getClient();t&&t.addScopeListener(RR(e)),P1("dom",Gm(e)),P1("history",nR(e)),qR(e),LM(Zm(e,!Ea(o))),Ea(o)&&(o.on("afterSendEvent",dA(e)),o.on("createDsc",n=>{const i=e.getSessionId();i&&(n.replay_id=i)}))}function Ea(e){return!!(e&&e.on)}async function NR(e){try{return Promise.all(TM(e,[BR(m1.performance.memory)]))}catch{return[]}}function BR(e){const{jsHeapSizeLimit:t,totalJSHeapSize:o,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:o,usedJSHeapSize:n}}}}const Sa={resource:wR,paint:ER,navigation:SR,["largest-contentful-paint"]:xR};function vR(e){return e.map(TR).filter(Boolean)}function TR(e){return Sa[e.entryType]===void 0?null:Sa[e.entryType](e)}function So(e){return((e2||m1.performance.timeOrigin)+e)/1e3}function ER(e){const{duration:t,entryType:o,name:n,startTime:i}=e,p=So(i);return{type:o,name:n,start:p,end:p+t,data:void 0}}function SR(e){const{entryType:t,name:o,decodedBodySize:n,duration:i,domComplete:p,encodedBodySize:M,domContentLoadedEventStart:b,domContentLoadedEventEnd:s,domInteractive:r,loadEventStart:a,loadEventEnd:A,redirectCount:u,startTime:f,transferSize:W,type:_}=e;return i===0?null:{type:`${t}.${_}`,start:So(f),end:So(p),name:o,data:{size:W,decodedBodySize:n,encodedBodySize:M,duration:i,domInteractive:r,domContentLoadedEventStart:b,domContentLoadedEventEnd:s,loadEventStart:a,loadEventEnd:A,domComplete:p,redirectCount:u}}}function wR(e){const{entryType:t,initiatorType:o,name:n,responseEnd:i,startTime:p,decodedBodySize:M,encodedBodySize:b,responseStatus:s,transferSize:r}=e;return["fetch","xmlhttprequest"].includes(o)?null:{type:`${t}.${o}`,start:So(p),end:So(i),name:n,data:{size:r,statusCode:s,decodedBodySize:M,encodedBodySize:b}}}function xR(e){const{entryType:t,startTime:o,size:n}=e;let i=0;if(m1.performance){const b=m1.performance.getEntriesByType("navigation")[0];i=b&&b.activationStart||0}const p=Math.max(o-i,0),M=So(i)+p/1e3;return{type:t,name:t,start:M,end:M,data:{value:p,size:n,nodeId:k2.mirror.getId(e.element)}}}function XR(e,t,o){let n,i,p;const M=o&&o.maxWait?Math.max(o.maxWait,t):0;function b(){return s(),n=e(),n}function s(){i!==void 0&&clearTimeout(i),p!==void 0&&clearTimeout(p),i=p=void 0}function r(){return i!==void 0||p!==void 0?b():n}function a(){return i&&clearTimeout(i),i=setTimeout(b,t),M&&p===void 0&&(p=setTimeout(b,M)),n}return a.cancel=s,a.flush=r,a}function kR(e){let t=!1;return(o,n)=>{if(!e.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Replay] Received replay event after session expired.");return}const i=n||!t;t=!0,e.addUpdate(()=>{if(e.recordingMode==="error"&&i&&e.setInitialState(),vM(e,o,i),!i)return!1;if(e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="error"&&e.session){const{earliestEvent:p}=e.getContext();p&&(e.session.started=p,e.getOptions().stickySession&&kc(e.session))}return e.recordingMode==="session"&&e.flushImmediate(),!0})}}function CR(e,t,o,n){return Fo(Td(e,Lc(e),n,o),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function DR({recordingData:e,headers:t}){let o;const n=`${JSON.stringify(t)} +`;if(typeof e=="string")o=`${n}${e}`;else{const p=new TextEncoder().encode(n);o=new Uint8Array(p.length+e.length),o.set(p),o.set(e,p.length)}return o}async function PR({client:e,scope:t,replayId:o,event:n}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,p=await Cd(e.getOptions(),n,{event_id:o,integrations:i},t);if(!p)return null;p.platform=p.platform||"javascript";const M=e.getSdkMetadata&&e.getSdkMetadata(),{name:b,version:s}=M&&M.sdk||{};return p.sdk={...p.sdk,name:b||"sentry.javascript.unknown",version:s||"0.0.0"},p}async function IR({recordingData:e,replayId:t,segmentId:o,includeReplayStartTimestamp:n,eventContext:i,timestamp:p,session:M,options:b}){const s=DR({recordingData:e,headers:{segment_id:o}}),{urls:r,errorIds:a,traceIds:A,initialTimestamp:u}=i,f=w0(),W=f.getClient(),_=f.getScope(),R=W&&W.getTransport(),L=W&&W.getDsn();if(!W||!_||!R||!L||!M.sampled)return;const E={type:m_,...n?{replay_start_timestamp:u/1e3}:{},timestamp:p/1e3,error_ids:a,trace_ids:A,urls:r,replay_id:t,segment_id:o,replay_type:M.sampled},k=await PR({scope:_,client:W,replayId:t,event:E});if(!k){W.recordDroppedEvent("event_processor","replay",E),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("An event processor returned `null`, will not send event.");return}k.contexts={...k.contexts,replay:{...k.contexts&&k.contexts.replay,session_sample_rate:b.sessionSampleRate,error_sample_rate:b.errorSampleRate}};const w=CR(k,s,L,W.getOptions().tunnel);let T;try{T=await R.send(w)}catch(d){const I=new Error(Xc);try{I.cause=d}catch{}throw I}if(!T)return T;if(typeof T.statusCode=="number"&&(T.statusCode<200||T.statusCode>=300))throw new WA(T.statusCode);return T}class WA extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function gA(e,t={count:0,interval:v_}){const{recordingData:o,options:n}=e;if(o.length)try{return await IR(e),!0}catch(i){if(i instanceof WA)throw i;if(j6("Replays",{_retryCount:t.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n._experiments&&n._experiments.captureExceptions&&Ec(i),t.count>=T_){const p=new Error(`${Xc} - max retries exceeded`);try{p.cause=i}catch{}throw p}return t.interval*=++t.count,await new Promise((p,M)=>{setTimeout(async()=>{try{await gA(e,t),p(!0)}catch(b){M(b)}},t.interval)})}}class v1{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdle:R_,maxSessionLife:L_}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:o}){v1.prototype.__init.call(this),v1.prototype.__init2.call(this),v1.prototype.__init3.call(this),v1.prototype.__init4.call(this),v1.prototype.__init5.call(this),v1.prototype.__init6.call(this),v1.prototype.__init7.call(this),v1.prototype.__init8.call(this),v1.prototype.__init9.call(this),v1.prototype.__init10.call(this),v1.prototype.__init11.call(this),v1.prototype.__init12.call(this),v1.prototype.__init13.call(this),v1.prototype.__init14.call(this),v1.prototype.__init15.call(this),v1.prototype.__init16.call(this),v1.prototype.__init17.call(this),this._recordingOptions=o,this._options=t,this._debouncedFlush=XR(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){if(this.setInitialState(),!!this._loadAndCheckSession()){if(!this.session){this._handleException(new Error("No session found"));return}this.session.sampled&&(this.session.sampled==="error"&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=Dm({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording())}}startRecording(){try{this._stopRecording=k2({...this._recordingOptions,...this.recordingMode==="error"&&{checkoutEveryNms:B_},emit:kR(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording?(this._stopRecording(),this._stopRecording=void 0,!0):!1}catch(t){return this._handleException(t),!1}}stop(t){if(this._isEnabled)try{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`;(this.getOptions()._experiments.traceInternals?console.warn:V.log)(o)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(o){this._handleException(o)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}addUpdate(t){const o=t();this.recordingMode!=="error"&&o!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._loadAndCheckSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&Ls(this._lastActivity,this.timeouts.sessionIdle)&&this.session&&this.session.sampled==="session"){this.pause();return}return this._loadAndCheckSession()?t!==this.getSessionId()?(this._triggerFullSnapshot(),!1):!0:void 0}setInitialState(){const t=`${m1.location.pathname}${m1.location.hash}${m1.location.search}`,o=`${m1.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=o,this._context.initialTimestamp=Date.now(),this._context.urls.push(o)}_handleException(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay]",t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&Ec(t)}_loadAndCheckSession(){const{type:t,session:o}=Hm({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});t==="new"&&this.setInitialState();const n=this.getSessionId();return o.id!==n&&(o.previousSessionId=n),this.session=o,this.session.sampled?!0:(this.stop("session unsampled"),!1)}_addListeners(){try{m1.document.addEventListener("visibilitychange",this._handleVisibilityChange),m1.addEventListener("blur",this._handleWindowBlur),m1.addEventListener("focus",this._handleWindowFocus),this._hasInitializedCoreListeners||(yR(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in m1&&(this._performanceObserver=Sm(this))}_removeListeners(){try{m1.document.removeEventListener("visibilitychange",this._handleVisibilityChange),m1.removeEventListener("blur",this._handleWindowBlur),m1.removeEventListener("focus",this._handleWindowFocus),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{m1.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=yn({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=yn({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const o=OA(this.session,this.timeouts);t&&!o&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_triggerFullSnapshot(t=!0){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Taking full rrweb snapshot"),k2.takeFullSnapshot(t)}catch(o){this._handleException(o)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{vM(this,{type:o1.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(TM(this,vR(t)))}_conditionalFlush(){this.recordingMode!=="error"&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}_popEventContext(){this._context.earliestEvent&&this._context.earliestEvent"u"||__SENTRY_DEBUG__)&&V.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await NR(this),!!this.eventBuffer))try{const t=await this.eventBuffer.finish(),o=this.session.id,n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession(),await gA({replayId:o,recordingData:t,segmentId:i,includeReplayStartTimestamp:i===0,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const o=w0().getClient();o&&o.recordDroppedEvent("send_error","replay")}}__init16(){this._flush=async()=>{if(this._isEnabled){if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] No session found to flush.");return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(t)}finally{this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&kc(this.session)}__init17(){this._onMutationHandler=t=>{const o=t.length,n=this._options._experiments.mutationLimit||0,i=this._options._experiments.mutationBreadcrumbLimit||1e3,p=n&&o>n;if(o>i||p){const M=yn({category:"replay.mutations",data:{count:o}});this._createCustomBreadcrumb(M)}return p?(this._triggerFullSnapshot(!1),!1):!0}}}function nn(e,t,o,n){const i=typeof n=="string"?n.split(","):[],p=[...e,...i,...t];return typeof o<"u"&&(typeof o=="string"&&p.push(`.${o}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),p.join(",")}function FR({mask:e,unmask:t,block:o,unblock:n,ignore:i,blockClass:p,blockSelector:M,maskTextClass:b,maskTextSelector:s,ignoreClass:r}){const a=['base[href="/"]'],A=nn(e,[".sentry-mask","[data-sentry-mask]"],b,s),u=nn(t,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:A,unmaskTextSelector:u,maskInputSelector:A,unmaskInputSelector:u,blockSelector:nn(o,[".sentry-block","[data-sentry-block]",...a],p,M),unblockSelector:nn(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:nn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],r)};return p instanceof RegExp&&(f.blockClass=p),b instanceof RegExp&&(f.maskTextClass=b),f}function wa(){return typeof window<"u"&&(!mc()||HR())}function HR(){return typeof process<"u"&&process.type==="renderer"}const xa='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]';let Xa=!1;class jn{static __initStatic(){this.id="Replay"}__init(){this.name=jn.id}constructor({flushMinDelay:t=y_,flushMaxDelay:o=N_,stickySession:n=!0,useCompression:i=!0,_experiments:p={},sessionSampleRate:M,errorSampleRate:b,maskAllText:s=!0,maskAllInputs:r=!0,blockAllMedia:a=!0,mask:A=[],unmask:u=[],block:f=[],unblock:W=[],ignore:_=[],maskFn:R,blockClass:L,blockSelector:E,maskInputOptions:k,maskTextClass:w,maskTextSelector:T,ignoreClass:d}={}){if(jn.prototype.__init.call(this),this._recordingOptions={maskAllInputs:r,maskAllText:s,maskInputOptions:{...k||{},password:!0},maskTextFn:R,maskInputFn:R,...FR({mask:A,unmask:u,block:f,unblock:W,ignore:_,blockClass:L,blockSelector:E,maskTextClass:w,maskTextSelector:T,ignoreClass:d}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:o,stickySession:n,sessionSampleRate:M,errorSampleRate:b,useCompression:i,blockAllMedia:a,_experiments:p},typeof M=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: -Sentry.init({ replaysSessionSampleRate: ${p} })`),this._initialOptions.sessionSampleRate=p),typeof b=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. +Sentry.init({ replaysSessionSampleRate: ${M} })`),this._initialOptions.sessionSampleRate=M),typeof b=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: -Sentry.init({ replaysOnErrorSampleRate: ${b} })`),this._initialOptions.errorSampleRate=b),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${xa}`:xa),this._isInitialized&&wa())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Xa}set _isInitialized(t){Xa=t}setupOnce(){wa()&&(this._setup(),setTimeout(()=>this.start()))}start(){this._replay&&this._replay.start()}stop(){this._replay&&this._replay.stop()}flush(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.flushImmediate()}_setup(){const t=UR(this._initialOptions);this._replay=new v1({options:t,recordingOptions:this._recordingOptions})}}jn.__initStatic();function UR(e){const t=w0().getClient(),o=t&&t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...Jt(e)};return o?(e.sessionSampleRate==null&&e.errorSampleRate==null&&o.replaysSessionSampleRate==null&&o.replaysOnErrorSampleRate==null&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),typeof o.replaysSessionSampleRate=="number"&&(n.sessionSampleRate=o.replaysSessionSampleRate),typeof o.replaysOnErrorSampleRate=="number"&&(n.errorSampleRate=o.replaysOnErrorSampleRate),n):(console.warn("SDK client is not available."),n)}const t1=st;function jR(){t1&&t1.document?t1.document.addEventListener("visibilitychange",()=>{const e=zi();if(t1.document.hidden&&e){const t="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Dc=(e,t,o)=>{let n,i;return M=>{t.value>=0&&(M||o)&&(i=t.value-(n||0),(i||n===void 0)&&(n=t.value,t.delta=i,e(t)))}},YR=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,$R=()=>{const e=t1.performance.timing,t=t1.performance.navigation.type,o={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const n in e)n!=="navigationStart"&&n!=="toJSON"&&(o[n]=Math.max(e[n]-e.navigationStart,0));return o},_A=()=>t1.__WEB_VITALS_POLYFILL__?t1.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||$R()):t1.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],mA=()=>{const e=_A();return e&&e.activationStart||0},Pc=(e,t)=>{const o=_A();let n="navigate";return o&&(t1.document.prerendering||mA()>0?n="prerender":n=o.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:YR(),navigationType:n}},Oi=(e,t,o)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(i=>{t(i.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},o||{})),n}}catch{}},Sp=(e,t)=>{const o=n=>{(n.type==="pagehide"||t1.document.visibilityState==="hidden")&&(e(n),t&&(removeEventListener("visibilitychange",o,!0),removeEventListener("pagehide",o,!0)))};addEventListener("visibilitychange",o,!0),addEventListener("pagehide",o,!0)},GR=e=>{const t=Pc("CLS",0);let o,n=0,i=[];const M=b=>{b.forEach(s=>{if(!s.hadRecentInput){const r=i[0],a=i[i.length-1];n&&i.length!==0&&s.startTime-a.startTime<1e3&&s.startTime-r.startTime<5e3?(n+=s.value,i.push(s)):(n=s.value,i=[s]),n>t.value&&(t.value=n,t.entries=i,o&&o())}})},p=Oi("layout-shift",M);if(p){o=Dc(e,t);const b=()=>{M(p.takeRecords()),o(!0)};return Sp(b),b}};let WM=-1;const VR=()=>t1.document.visibilityState==="hidden"&&!t1.document.prerendering?0:1/0,KR=()=>{Sp(({timeStamp:e})=>{WM=e},!0)},Ic=()=>(WM<0&&(WM=VR(),KR()),{get firstHiddenTime(){return WM}}),QR=e=>{const t=Ic(),o=Pc("FID");let n;const i=b=>{b.startTime{b.forEach(i)},p=Oi("first-input",M);n=Dc(e,o),p&&Sp(()=>{M(p.takeRecords()),p.disconnect()},!0)},ka={},JR=e=>{const t=Ic(),o=Pc("LCP");let n;const i=p=>{const b=p[p.length-1];if(b){const s=Math.max(b.startTime-mA(),0);s{ka[o.id]||(i(M.takeRecords()),M.disconnect(),ka[o.id]=!0,n(!0))};return["keydown","click"].forEach(b=>{addEventListener(b,p,{once:!0,capture:!0})}),Sp(p,!0),p}};function Cb(e){return typeof e=="number"&&isFinite(e)}function wo(e,{startTimestamp:t,...o}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...o})}function T1(e){return e/1e3}function RA(){return t1&&t1.addEventListener&&t1.performance}let Ca=0,u1={},$t,Nn;function ZR(){const e=RA();if(e&&e2){e.mark&&t1.performance.mark("sentry-tracing-init"),iL();const t=oL(),o=nL();return()=>{t&&t(),o&&o()}}return()=>{}}function tL(){Oi("longtask",t=>{for(const o of t){const n=zi();if(!n)return;const i=T1(e2+o.startTime),M=T1(o.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+M})}})}function eL(){Oi("event",t=>{for(const o of t){const n=zi();if(!n)return;if(o.name==="click"){const i=T1(e2+o.startTime),M=T1(o.duration);n.startChild({description:x2(o.target),op:`ui.interaction.${o.name}`,startTimestamp:i,endTimestamp:i+M})}}},{durationThreshold:0})}function oL(){return GR(e=>{const t=e.entries.pop();t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding CLS"),u1.cls={value:e.value,unit:""},Nn=t)})}function nL(){return JR(e=>{const t=e.entries.pop();t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding LCP"),u1.lcp={value:e.value,unit:"millisecond"},$t=t)})}function iL(){QR(e=>{const t=e.entries.pop();if(!t)return;const o=T1(e2),n=T1(t.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FID"),u1.fid={value:e.value,unit:"millisecond"},u1["mark.fid"]={value:o+n,unit:"second"}})}function ML(e){const t=RA();if(!t||!t1.performance.getEntries||!e2)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Adding & adjusting spans using Performance API");const o=T1(e2),n=t.getEntries();let i,M;if(n.slice(Ca).forEach(p=>{const b=T1(p.startTime),s=T1(p.duration);if(!(e.op==="navigation"&&o+b"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FP"),u1.fp={value:p.startTime,unit:"millisecond"}),p.name==="first-contentful-paint"&&a&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FCP"),u1.fcp={value:p.startTime,unit:"millisecond"});break}case"resource":{const r=p.name.replace(t1.location.origin,"");cL(e,p,r,b,s,o);break}}}),Ca=Math.max(n.length-1,0),rL(e),e.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding TTFB"),u1.ttfb={value:(i-e.startTimestamp)*1e3,unit:"millisecond"},typeof M=="number"&&M<=i&&(u1["ttfb.requestTime"]={value:(i-M)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(b=>{if(!u1[b]||o>=e.startTimestamp)return;const s=u1[b].value,r=o+T1(s),a=Math.abs((r-e.startTimestamp)*1e3),A=a-s;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Measurements] Normalized ${b} from ${s} to ${a} (${A})`),u1[b].value=a});const p=u1["mark.fid"];p&&u1.fid&&(wo(e,{description:"first input delay",endTimestamp:p.value+T1(u1.fid.value),op:"ui.action",startTimestamp:p.value}),delete u1["mark.fid"]),"fcp"in u1||delete u1.cls,Object.keys(u1).forEach(b=>{e.setMeasurement(b,u1[b].value,u1[b].unit)}),zL(e)}$t=void 0,Nn=void 0,u1={}}function pL(e,t,o,n,i){const M=i+o,p=M+n;return wo(e,{description:t.name,endTimestamp:p,op:t.entryType,startTimestamp:M}),M}function bL(e,t,o){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{Qi(e,t,n,o)}),Qi(e,t,"secureConnection",o,"TLS/SSL","connectEnd"),Qi(e,t,"fetch",o,"cache","domainLookupStart"),Qi(e,t,"domainLookup",o,"DNS"),sL(e,t,o)}function Qi(e,t,o,n,i,M){const p=M?t[M]:t[`${o}End`],b=t[`${o}Start`];!b||!p||wo(e,{op:"browser",description:i||o,startTimestamp:n+T1(b),endTimestamp:n+T1(p)})}function sL(e,t,o){wo(e,{op:"browser",description:"request",startTimestamp:o+T1(t.requestStart),endTimestamp:o+T1(t.responseEnd)}),wo(e,{op:"browser",description:"response",startTimestamp:o+T1(t.responseStart),endTimestamp:o+T1(t.responseEnd)})}function cL(e,t,o,n,i,M){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const p={};"transferSize"in t&&(p["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(p["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(p["Decoded Body Size"]=t.decodedBodySize),"renderBlockingStatus"in t&&(p["resource.render_blocking_status"]=t.renderBlockingStatus);const b=M+n,s=b+i;wo(e,{description:o,endTimestamp:s,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:b,data:p})}function rL(e){const t=t1.navigator;if(!t)return;const o=t.connection;o&&(o.effectiveType&&e.setTag("effectiveConnectionType",o.effectiveType),o.type&&e.setTag("connectionType",o.type),Cb(o.rtt)&&(u1["connection.rtt"]={value:o.rtt,unit:"millisecond"})),Cb(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Cb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function zL(e){$t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding LCP Data"),$t.element&&e.setTag("lcp.element",x2($t.element)),$t.id&&e.setTag("lcp.id",$t.id),$t.url&&e.setTag("lcp.url",$t.url.trim().slice(0,200)),e.setTag("lcp.size",$t.size)),Nn&&Nn.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding CLS Data"),Nn.sources.forEach((t,o)=>e.setTag(`cls.source.${o+1}`,x2(t.node))))}const Ns=["localhost",/^\//],Bs={traceFetch:!0,traceXHR:!0,tracingOrigins:Ns,tracePropagationTargets:Ns};function aL(e){const{traceFetch:t,traceXHR:o,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:M}={traceFetch:Bs.traceFetch,traceXHR:Bs.traceXHR,...e},p=typeof M=="function"?M:r=>!0,b=r=>OL(r,n||i),s={};t&&P1("fetch",r=>{dL(r,p,b,s)}),o&&P1("xhr",r=>{lL(r,p,b,s)})}function OL(e,t){return ci(e,t||Ns)}function dL(e,t,o,n){if(!Tc()||!(e.fetchData&&t(e.fetchData.url)))return;if(e.endTimestamp){const b=e.fetchData.__span;if(!b)return;const s=n[b];s&&(e.response?s.setHttpStatus(e.response.status):e.error&&s.setStatus("internal_error"),s.finish(),delete n[b]);return}const i=w0().getScope(),M=i&&i.getSpan(),p=M&&M.transaction;if(M&&p){const b=M.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=b.spanId,n[b.spanId]=b;const s=e.args[0];e.args[1]=e.args[1]||{};const r=e.args[1];o(e.fetchData.url)&&(r.headers=AL(s,p.getDynamicSamplingContext(),b,r))}}function AL(e,t,o,n){const i=Sd(t),M=o.toTraceparent(),p=typeof Request<"u"&&Ze(e,Request)?e.headers:n.headers;if(p)if(typeof Headers<"u"&&Ze(p,Headers)){const b=new Headers(p);return b.append("sentry-trace",M),i&&b.append(us,i),b}else if(Array.isArray(p)){const b=[...p,["sentry-trace",M]];return i&&b.push([us,i]),b}else{const b="baggage"in p?p.baggage:void 0,s=[];return Array.isArray(b)?s.push(...b):b&&s.push(b),i&&s.push(i),{...p,"sentry-trace":M,baggage:s.length>0?s.join(","):void 0}}else return{"sentry-trace":M,baggage:i}}function lL(e,t,o,n){if(!Tc()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;const i=e.xhr.__sentry_xhr__;if(e.endTimestamp){const s=e.xhr.__sentry_xhr_span_id__;if(!s)return;const r=n[s];r&&(r.setHttpStatus(i.status_code),r.finish(),delete n[s]);return}const M=w0().getScope(),p=M&&M.getSpan(),b=p&&p.transaction;if(p&&b){const s=p.startChild({data:{...i.data,type:"xhr",method:i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader&&o(e.xhr.__sentry_xhr__.url))try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent());const r=b.getDynamicSamplingContext(),a=Sd(r);a&&e.xhr.setRequestHeader(us,a)}catch{}}}function uL(e,t=!0,o=!0){if(!t1||!t1.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not initialize routing instrumentation due to invalid location");return}let n=t1.location.href,i;t&&(i=e({name:t1.location.pathname,startTimestamp:e2,op:"pageload",metadata:{source:"url"}})),o&&P1("history",({to:M,from:p})=>{if(p===void 0&&n&&n.indexOf(M)!==-1){n=void 0;return}p!==M&&(n=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:t1.location.pathname,op:"navigation",metadata:{source:"url"}}))})}const fL="BrowserTracing",qL={...fM,markBackgroundTransactions:!0,routingInstrumentation:uL,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Bs};class Fc{__init(){this.name=fL}constructor(t){Fc.prototype.__init.call(this),H6(),this.options={...qL,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=ZR(),this.options.enableLongTask&&tL(),this.options._experiments.enableInteractions&&eL()}setupOnce(t,o){this._getCurrentHub=o;const{routingInstrumentation:n,startTransactionOnLocationChange:i,startTransactionOnPageLoad:M,markBackgroundTransactions:p,traceFetch:b,traceXHR:s,tracePropagationTargets:r,shouldCreateSpanForRequest:a,_experiments:A}=this.options;n(u=>{const f=this._createRouteTransaction(u);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(f,u,o),f},M,i),p&&jR(),A.enableInteractions&&this._registerInteractionListener(),aL({traceFetch:b,traceXHR:s,tracePropagationTargets:r,shouldCreateSpanForRequest:a})}_createRouteTransaction(t){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const{beforeNavigate:o,idleTimeout:n,finalTimeout:i,heartbeatInterval:M}=this.options,p=t.op==="pageload",b=p?Da("sentry-trace"):null,s=p?Da("baggage"):null,r=b?d6(b):void 0,a=s?N6(s):void 0,A={...t,...r,metadata:{...t.metadata,dynamicSamplingContext:r&&!a?{}:a},trimEnd:!0},u=typeof o=="function"?o(A):A,f=u===void 0?{...A,sampled:!1}:u;f.metadata=f.name!==A.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,f.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Starting ${f.op} transaction on scope`);const W=this._getCurrentHub(),{location:_}=t1,R=ba(W,f,n,i,!0,{location:_},M);return R.registerBeforeFinishCallback(L=>{this._collectWebVitals(),ML(L)}),R}_registerInteractionListener(){let t;const o=()=>{const{idleTimeout:n,finalTimeout:i,heartbeatInterval:M}=this.options,p="ui.action.click",b=zi();if(b&&b.op&&["navigation","pageload"].includes(b.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${p} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${p} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${p} transaction because _latestRouteName is missing.`);return}const s=this._getCurrentHub(),{location:r}=t1,a={name:this._latestRouteName,op:p,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=ba(s,a,n,i,!0,{location:r},M)};["click"].forEach(n=>{addEventListener(n,o,{once:!1,capture:!0})})}}function Da(e){const t=NW(`meta[name=${e}]`);return t?t.getAttribute("content"):null}var LA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var M=Function.bind.apply(t,i);return new M}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),o}var vs={},gL={get exports(){return vs},set exports(e){vs=e}};/*! +Sentry.init({ replaysOnErrorSampleRate: ${b} })`),this._initialOptions.errorSampleRate=b),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${xa}`:xa),this._isInitialized&&wa())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Xa}set _isInitialized(t){Xa=t}setupOnce(){wa()&&(this._setup(),setTimeout(()=>this.start()))}start(){this._replay&&this._replay.start()}stop(){this._replay&&this._replay.stop()}flush(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.flushImmediate()}_setup(){const t=UR(this._initialOptions);this._replay=new v1({options:t,recordingOptions:this._recordingOptions})}}jn.__initStatic();function UR(e){const t=w0().getClient(),o=t&&t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...Jt(e)};return o?(e.sessionSampleRate==null&&e.errorSampleRate==null&&o.replaysSessionSampleRate==null&&o.replaysOnErrorSampleRate==null&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),typeof o.replaysSessionSampleRate=="number"&&(n.sessionSampleRate=o.replaysSessionSampleRate),typeof o.replaysOnErrorSampleRate=="number"&&(n.errorSampleRate=o.replaysOnErrorSampleRate),n):(console.warn("SDK client is not available."),n)}const t1=st;function jR(){t1&&t1.document?t1.document.addEventListener("visibilitychange",()=>{const e=zi();if(t1.document.hidden&&e){const t="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Dc=(e,t,o)=>{let n,i;return p=>{t.value>=0&&(p||o)&&(i=t.value-(n||0),(i||n===void 0)&&(n=t.value,t.delta=i,e(t)))}},YR=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,$R=()=>{const e=t1.performance.timing,t=t1.performance.navigation.type,o={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const n in e)n!=="navigationStart"&&n!=="toJSON"&&(o[n]=Math.max(e[n]-e.navigationStart,0));return o},_A=()=>t1.__WEB_VITALS_POLYFILL__?t1.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||$R()):t1.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],mA=()=>{const e=_A();return e&&e.activationStart||0},Pc=(e,t)=>{const o=_A();let n="navigate";return o&&(t1.document.prerendering||mA()>0?n="prerender":n=o.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:YR(),navigationType:n}},Oi=(e,t,o)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(i=>{t(i.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},o||{})),n}}catch{}},SM=(e,t)=>{const o=n=>{(n.type==="pagehide"||t1.document.visibilityState==="hidden")&&(e(n),t&&(removeEventListener("visibilitychange",o,!0),removeEventListener("pagehide",o,!0)))};addEventListener("visibilitychange",o,!0),addEventListener("pagehide",o,!0)},GR=e=>{const t=Pc("CLS",0);let o,n=0,i=[];const p=b=>{b.forEach(s=>{if(!s.hadRecentInput){const r=i[0],a=i[i.length-1];n&&i.length!==0&&s.startTime-a.startTime<1e3&&s.startTime-r.startTime<5e3?(n+=s.value,i.push(s)):(n=s.value,i=[s]),n>t.value&&(t.value=n,t.entries=i,o&&o())}})},M=Oi("layout-shift",p);if(M){o=Dc(e,t);const b=()=>{p(M.takeRecords()),o(!0)};return SM(b),b}};let Wp=-1;const VR=()=>t1.document.visibilityState==="hidden"&&!t1.document.prerendering?0:1/0,KR=()=>{SM(({timeStamp:e})=>{Wp=e},!0)},Ic=()=>(Wp<0&&(Wp=VR(),KR()),{get firstHiddenTime(){return Wp}}),QR=e=>{const t=Ic(),o=Pc("FID");let n;const i=b=>{b.startTime{b.forEach(i)},M=Oi("first-input",p);n=Dc(e,o),M&&SM(()=>{p(M.takeRecords()),M.disconnect()},!0)},ka={},JR=e=>{const t=Ic(),o=Pc("LCP");let n;const i=M=>{const b=M[M.length-1];if(b){const s=Math.max(b.startTime-mA(),0);s{ka[o.id]||(i(p.takeRecords()),p.disconnect(),ka[o.id]=!0,n(!0))};return["keydown","click"].forEach(b=>{addEventListener(b,M,{once:!0,capture:!0})}),SM(M,!0),M}};function Cb(e){return typeof e=="number"&&isFinite(e)}function wo(e,{startTimestamp:t,...o}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...o})}function T1(e){return e/1e3}function RA(){return t1&&t1.addEventListener&&t1.performance}let Ca=0,u1={},$t,Nn;function ZR(){const e=RA();if(e&&e2){e.mark&&t1.performance.mark("sentry-tracing-init"),iL();const t=oL(),o=nL();return()=>{t&&t(),o&&o()}}return()=>{}}function tL(){Oi("longtask",t=>{for(const o of t){const n=zi();if(!n)return;const i=T1(e2+o.startTime),p=T1(o.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+p})}})}function eL(){Oi("event",t=>{for(const o of t){const n=zi();if(!n)return;if(o.name==="click"){const i=T1(e2+o.startTime),p=T1(o.duration);n.startChild({description:x2(o.target),op:`ui.interaction.${o.name}`,startTimestamp:i,endTimestamp:i+p})}}},{durationThreshold:0})}function oL(){return GR(e=>{const t=e.entries.pop();t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding CLS"),u1.cls={value:e.value,unit:""},Nn=t)})}function nL(){return JR(e=>{const t=e.entries.pop();t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding LCP"),u1.lcp={value:e.value,unit:"millisecond"},$t=t)})}function iL(){QR(e=>{const t=e.entries.pop();if(!t)return;const o=T1(e2),n=T1(t.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FID"),u1.fid={value:e.value,unit:"millisecond"},u1["mark.fid"]={value:o+n,unit:"second"}})}function pL(e){const t=RA();if(!t||!t1.performance.getEntries||!e2)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Adding & adjusting spans using Performance API");const o=T1(e2),n=t.getEntries();let i,p;if(n.slice(Ca).forEach(M=>{const b=T1(M.startTime),s=T1(M.duration);if(!(e.op==="navigation"&&o+b"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FP"),u1.fp={value:M.startTime,unit:"millisecond"}),M.name==="first-contentful-paint"&&a&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FCP"),u1.fcp={value:M.startTime,unit:"millisecond"});break}case"resource":{const r=M.name.replace(t1.location.origin,"");cL(e,M,r,b,s,o);break}}}),Ca=Math.max(n.length-1,0),rL(e),e.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding TTFB"),u1.ttfb={value:(i-e.startTimestamp)*1e3,unit:"millisecond"},typeof p=="number"&&p<=i&&(u1["ttfb.requestTime"]={value:(i-p)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(b=>{if(!u1[b]||o>=e.startTimestamp)return;const s=u1[b].value,r=o+T1(s),a=Math.abs((r-e.startTimestamp)*1e3),A=a-s;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Measurements] Normalized ${b} from ${s} to ${a} (${A})`),u1[b].value=a});const M=u1["mark.fid"];M&&u1.fid&&(wo(e,{description:"first input delay",endTimestamp:M.value+T1(u1.fid.value),op:"ui.action",startTimestamp:M.value}),delete u1["mark.fid"]),"fcp"in u1||delete u1.cls,Object.keys(u1).forEach(b=>{e.setMeasurement(b,u1[b].value,u1[b].unit)}),zL(e)}$t=void 0,Nn=void 0,u1={}}function ML(e,t,o,n,i){const p=i+o,M=p+n;return wo(e,{description:t.name,endTimestamp:M,op:t.entryType,startTimestamp:p}),p}function bL(e,t,o){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{Qi(e,t,n,o)}),Qi(e,t,"secureConnection",o,"TLS/SSL","connectEnd"),Qi(e,t,"fetch",o,"cache","domainLookupStart"),Qi(e,t,"domainLookup",o,"DNS"),sL(e,t,o)}function Qi(e,t,o,n,i,p){const M=p?t[p]:t[`${o}End`],b=t[`${o}Start`];!b||!M||wo(e,{op:"browser",description:i||o,startTimestamp:n+T1(b),endTimestamp:n+T1(M)})}function sL(e,t,o){wo(e,{op:"browser",description:"request",startTimestamp:o+T1(t.requestStart),endTimestamp:o+T1(t.responseEnd)}),wo(e,{op:"browser",description:"response",startTimestamp:o+T1(t.responseStart),endTimestamp:o+T1(t.responseEnd)})}function cL(e,t,o,n,i,p){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const M={};"transferSize"in t&&(M["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(M["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(M["Decoded Body Size"]=t.decodedBodySize),"renderBlockingStatus"in t&&(M["resource.render_blocking_status"]=t.renderBlockingStatus);const b=p+n,s=b+i;wo(e,{description:o,endTimestamp:s,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:b,data:M})}function rL(e){const t=t1.navigator;if(!t)return;const o=t.connection;o&&(o.effectiveType&&e.setTag("effectiveConnectionType",o.effectiveType),o.type&&e.setTag("connectionType",o.type),Cb(o.rtt)&&(u1["connection.rtt"]={value:o.rtt,unit:"millisecond"})),Cb(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Cb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function zL(e){$t&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding LCP Data"),$t.element&&e.setTag("lcp.element",x2($t.element)),$t.id&&e.setTag("lcp.id",$t.id),$t.url&&e.setTag("lcp.url",$t.url.trim().slice(0,200)),e.setTag("lcp.size",$t.size)),Nn&&Nn.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding CLS Data"),Nn.sources.forEach((t,o)=>e.setTag(`cls.source.${o+1}`,x2(t.node))))}const Ns=["localhost",/^\//],Bs={traceFetch:!0,traceXHR:!0,tracingOrigins:Ns,tracePropagationTargets:Ns};function aL(e){const{traceFetch:t,traceXHR:o,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:p}={traceFetch:Bs.traceFetch,traceXHR:Bs.traceXHR,...e},M=typeof p=="function"?p:r=>!0,b=r=>OL(r,n||i),s={};t&&P1("fetch",r=>{dL(r,M,b,s)}),o&&P1("xhr",r=>{lL(r,M,b,s)})}function OL(e,t){return ci(e,t||Ns)}function dL(e,t,o,n){if(!Tc()||!(e.fetchData&&t(e.fetchData.url)))return;if(e.endTimestamp){const b=e.fetchData.__span;if(!b)return;const s=n[b];s&&(e.response?s.setHttpStatus(e.response.status):e.error&&s.setStatus("internal_error"),s.finish(),delete n[b]);return}const i=w0().getScope(),p=i&&i.getSpan(),M=p&&p.transaction;if(p&&M){const b=p.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=b.spanId,n[b.spanId]=b;const s=e.args[0];e.args[1]=e.args[1]||{};const r=e.args[1];o(e.fetchData.url)&&(r.headers=AL(s,M.getDynamicSamplingContext(),b,r))}}function AL(e,t,o,n){const i=Sd(t),p=o.toTraceparent(),M=typeof Request<"u"&&Ze(e,Request)?e.headers:n.headers;if(M)if(typeof Headers<"u"&&Ze(M,Headers)){const b=new Headers(M);return b.append("sentry-trace",p),i&&b.append(us,i),b}else if(Array.isArray(M)){const b=[...M,["sentry-trace",p]];return i&&b.push([us,i]),b}else{const b="baggage"in M?M.baggage:void 0,s=[];return Array.isArray(b)?s.push(...b):b&&s.push(b),i&&s.push(i),{...M,"sentry-trace":p,baggage:s.length>0?s.join(","):void 0}}else return{"sentry-trace":p,baggage:i}}function lL(e,t,o,n){if(!Tc()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;const i=e.xhr.__sentry_xhr__;if(e.endTimestamp){const s=e.xhr.__sentry_xhr_span_id__;if(!s)return;const r=n[s];r&&(r.setHttpStatus(i.status_code),r.finish(),delete n[s]);return}const p=w0().getScope(),M=p&&p.getSpan(),b=M&&M.transaction;if(M&&b){const s=M.startChild({data:{...i.data,type:"xhr",method:i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader&&o(e.xhr.__sentry_xhr__.url))try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent());const r=b.getDynamicSamplingContext(),a=Sd(r);a&&e.xhr.setRequestHeader(us,a)}catch{}}}function uL(e,t=!0,o=!0){if(!t1||!t1.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not initialize routing instrumentation due to invalid location");return}let n=t1.location.href,i;t&&(i=e({name:t1.location.pathname,startTimestamp:e2,op:"pageload",metadata:{source:"url"}})),o&&P1("history",({to:p,from:M})=>{if(M===void 0&&n&&n.indexOf(p)!==-1){n=void 0;return}M!==p&&(n=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:t1.location.pathname,op:"navigation",metadata:{source:"url"}}))})}const fL="BrowserTracing",qL={...fp,markBackgroundTransactions:!0,routingInstrumentation:uL,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Bs};class Fc{__init(){this.name=fL}constructor(t){Fc.prototype.__init.call(this),H6(),this.options={...qL,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=ZR(),this.options.enableLongTask&&tL(),this.options._experiments.enableInteractions&&eL()}setupOnce(t,o){this._getCurrentHub=o;const{routingInstrumentation:n,startTransactionOnLocationChange:i,startTransactionOnPageLoad:p,markBackgroundTransactions:M,traceFetch:b,traceXHR:s,tracePropagationTargets:r,shouldCreateSpanForRequest:a,_experiments:A}=this.options;n(u=>{const f=this._createRouteTransaction(u);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(f,u,o),f},p,i),M&&jR(),A.enableInteractions&&this._registerInteractionListener(),aL({traceFetch:b,traceXHR:s,tracePropagationTargets:r,shouldCreateSpanForRequest:a})}_createRouteTransaction(t){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const{beforeNavigate:o,idleTimeout:n,finalTimeout:i,heartbeatInterval:p}=this.options,M=t.op==="pageload",b=M?Da("sentry-trace"):null,s=M?Da("baggage"):null,r=b?d6(b):void 0,a=s?N6(s):void 0,A={...t,...r,metadata:{...t.metadata,dynamicSamplingContext:r&&!a?{}:a},trimEnd:!0},u=typeof o=="function"?o(A):A,f=u===void 0?{...A,sampled:!1}:u;f.metadata=f.name!==A.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,f.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Starting ${f.op} transaction on scope`);const W=this._getCurrentHub(),{location:_}=t1,R=ba(W,f,n,i,!0,{location:_},p);return R.registerBeforeFinishCallback(L=>{this._collectWebVitals(),pL(L)}),R}_registerInteractionListener(){let t;const o=()=>{const{idleTimeout:n,finalTimeout:i,heartbeatInterval:p}=this.options,M="ui.action.click",b=zi();if(b&&b.op&&["navigation","pageload"].includes(b.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${M} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${M} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${M} transaction because _latestRouteName is missing.`);return}const s=this._getCurrentHub(),{location:r}=t1,a={name:this._latestRouteName,op:M,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=ba(s,a,n,i,!0,{location:r},p)};["click"].forEach(n=>{addEventListener(n,o,{once:!1,capture:!0})})}}function Da(e){const t=NW(`meta[name=${e}]`);return t?t.getAttribute("content"):null}var LA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var p=Function.bind.apply(t,i);return new p}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),o}var vs={},gL={get exports(){return vs},set exports(e){vs=e}};/*! * jQuery JavaScript Library v3.6.4 * https://jquery.com/ * @@ -39,38 +39,38 @@ Sentry.init({ replaysOnErrorSampleRate: ${b} })`),this._initialOptions.errorSamp * https://jquery.org/license * * Date: 2023-03-08T15:28Z - */(function(e){(function(t,o){e.exports=t.document?o(t,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return o(n)}})(typeof window<"u"?window:LA,function(t,o){var n=[],i=Object.getPrototypeOf,M=n.slice,p=n.flat?function(c){return n.flat.call(c)}:function(c){return n.concat.apply([],c)},b=n.push,s=n.indexOf,r={},a=r.toString,A=r.hasOwnProperty,u=A.toString,f=u.call(Object),W={},_=function(z){return typeof z=="function"&&typeof z.nodeType!="number"&&typeof z.item!="function"},R=function(z){return z!=null&&z===z.window},L=t.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function k(c,z,O){O=O||L;var l,q,h=O.createElement("script");if(h.text=c,z)for(l in E)q=z[l]||z.getAttribute&&z.getAttribute(l),q&&h.setAttribute(l,q);O.head.appendChild(h).parentNode.removeChild(h)}function w(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?r[a.call(c)]||"object":typeof c}var T="3.6.4",d=function(c,z){return new d.fn.init(c,z)};d.fn=d.prototype={jquery:T,constructor:d,length:0,toArray:function(){return M.call(this)},get:function(c){return c==null?M.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var z=d.merge(this.constructor(),c);return z.prevObject=this,z},each:function(c){return d.each(this,c)},map:function(c){return this.pushStack(d.map(this,function(z,O){return c.call(z,O,z)}))},slice:function(){return this.pushStack(M.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(c,z){return(z+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(c,z){return z%2}))},eq:function(c){var z=this.length,O=+c+(c<0?z:0);return this.pushStack(O>=0&&O0&&z-1 in c}var C=function(c){var z,O,l,q,h,g,B,y,X,F,Z,P,H,A0,y0,d0,y1,_1,rt,Y0="sizzle"+1*new Date,L0=c.document,ot=0,X0=0,l1=Bi(),Qo=Bi(),Li=Bi(),zt=Bi(),z2=function(m,N){return m===N&&(Z=!0),0},a2={}.hasOwnProperty,nt=[],Ee=nt.pop,_t=nt.push,Se=nt.push,ez=nt.slice,O2=function(m,N){for(var S=0,U=m.length;S+~]|"+F0+")"+F0+"*"),nf=new RegExp(F0+"|>"),Mf=new RegExp(ab),pf=new RegExp("^"+d2+"$"),Ni={ID:new RegExp("^#("+d2+")"),CLASS:new RegExp("^\\.("+d2+")"),TAG:new RegExp("^("+d2+"|[*])"),ATTR:new RegExp("^"+oz),PSEUDO:new RegExp("^"+ab),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F0+"*(even|odd|(([+-]|)(\\d*)n|)"+F0+"*(?:([+-]|)"+F0+"*(\\d+)|))"+F0+"*\\)|)","i"),bool:new RegExp("^(?:"+zb+")$","i"),needsContext:new RegExp("^"+F0+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F0+"*((?:-\\d)?\\d*)"+F0+"*\\)|)(?=[^-]|$)","i")},bf=/HTML$/i,sf=/^(?:input|select|textarea|button)$/i,cf=/^h\d$/i,Jo=/^[^{]+\{\s*\[native \w/,rf=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ob=/[+~]/,Me=new RegExp("\\\\[\\da-fA-F]{1,6}"+F0+"?|\\\\([^\\r\\n\\f])","g"),pe=function(m,N){var S="0x"+m.slice(1)-65536;return N||(S<0?String.fromCharCode(S+65536):String.fromCharCode(S>>10|55296,S&1023|56320))},iz=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Mz=function(m,N){return N?m==="\0"?"�":m.slice(0,-1)+"\\"+m.charCodeAt(m.length-1).toString(16)+" ":"\\"+m},pz=function(){P()},zf=Ti(function(m){return m.disabled===!0&&m.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Se.apply(nt=ez.call(L0.childNodes),L0.childNodes),nt[L0.childNodes.length].nodeType}catch{Se={apply:nt.length?function(N,S){_t.apply(N,ez.call(S))}:function(N,S){for(var U=N.length,x=0;N[U++]=S[x++];);N.length=U-1}}}function Q0(m,N,S,U){var x,$,t0,M0,s0,W0,q0,_0=N&&N.ownerDocument,T0=N?N.nodeType:9;if(S=S||[],typeof m!="string"||!m||T0!==1&&T0!==9&&T0!==11)return S;if(!U&&(P(N),N=N||H,y0)){if(T0!==11&&(s0=rf.exec(m)))if(x=s0[1]){if(T0===9)if(t0=N.getElementById(x)){if(t0.id===x)return S.push(t0),S}else return S;else if(_0&&(t0=_0.getElementById(x))&&rt(N,t0)&&t0.id===x)return S.push(t0),S}else{if(s0[2])return Se.apply(S,N.getElementsByTagName(m)),S;if((x=s0[3])&&O.getElementsByClassName&&N.getElementsByClassName)return Se.apply(S,N.getElementsByClassName(x)),S}if(O.qsa&&!zt[m+" "]&&(!d0||!d0.test(m))&&(T0!==1||N.nodeName.toLowerCase()!=="object")){if(q0=m,_0=N,T0===1&&(nf.test(m)||nz.test(m))){for(_0=Ob.test(m)&&Ab(N.parentNode)||N,(_0!==N||!O.scope)&&((M0=N.getAttribute("id"))?M0=M0.replace(iz,Mz):N.setAttribute("id",M0=Y0)),W0=g(m),$=W0.length;$--;)W0[$]=(M0?"#"+M0:":scope")+" "+vi(W0[$]);q0=W0.join(",")}try{return Se.apply(S,_0.querySelectorAll(q0)),S}catch{zt(m,!0)}finally{M0===Y0&&N.removeAttribute("id")}}}return y(m.replace(yi,"$1"),N,S,U)}function Bi(){var m=[];function N(S,U){return m.push(S+" ")>l.cacheLength&&delete N[m.shift()],N[S+" "]=U}return N}function Xt(m){return m[Y0]=!0,m}function mt(m){var N=H.createElement("fieldset");try{return!!m(N)}catch{return!1}finally{N.parentNode&&N.parentNode.removeChild(N),N=null}}function db(m,N){for(var S=m.split("|"),U=S.length;U--;)l.attrHandle[S[U]]=N}function bz(m,N){var S=N&&m,U=S&&m.nodeType===1&&N.nodeType===1&&m.sourceIndex-N.sourceIndex;if(U)return U;if(S){for(;S=S.nextSibling;)if(S===N)return-1}return m?1:-1}function af(m){return function(N){var S=N.nodeName.toLowerCase();return S==="input"&&N.type===m}}function Of(m){return function(N){var S=N.nodeName.toLowerCase();return(S==="input"||S==="button")&&N.type===m}}function sz(m){return function(N){return"form"in N?N.parentNode&&N.disabled===!1?"label"in N?"label"in N.parentNode?N.parentNode.disabled===m:N.disabled===m:N.isDisabled===m||N.isDisabled!==!m&&zf(N)===m:N.disabled===m:"label"in N?N.disabled===m:!1}}function A2(m){return Xt(function(N){return N=+N,Xt(function(S,U){for(var x,$=m([],S.length,N),t0=$.length;t0--;)S[x=$[t0]]&&(S[x]=!(U[x]=S[x]))})})}function Ab(m){return m&&typeof m.getElementsByTagName<"u"&&m}O=Q0.support={},h=Q0.isXML=function(m){var N=m&&m.namespaceURI,S=m&&(m.ownerDocument||m).documentElement;return!bf.test(N||S&&S.nodeName||"HTML")},P=Q0.setDocument=function(m){var N,S,U=m?m.ownerDocument||m:L0;return U==H||U.nodeType!==9||!U.documentElement||(H=U,A0=H.documentElement,y0=!h(H),L0!=H&&(S=H.defaultView)&&S.top!==S&&(S.addEventListener?S.addEventListener("unload",pz,!1):S.attachEvent&&S.attachEvent("onunload",pz)),O.scope=mt(function(x){return A0.appendChild(x).appendChild(H.createElement("div")),typeof x.querySelectorAll<"u"&&!x.querySelectorAll(":scope fieldset div").length}),O.cssHas=mt(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),O.attributes=mt(function(x){return x.className="i",!x.getAttribute("className")}),O.getElementsByTagName=mt(function(x){return x.appendChild(H.createComment("")),!x.getElementsByTagName("*").length}),O.getElementsByClassName=Jo.test(H.getElementsByClassName),O.getById=mt(function(x){return A0.appendChild(x).id=Y0,!H.getElementsByName||!H.getElementsByName(Y0).length}),O.getById?(l.filter.ID=function(x){var $=x.replace(Me,pe);return function(t0){return t0.getAttribute("id")===$}},l.find.ID=function(x,$){if(typeof $.getElementById<"u"&&y0){var t0=$.getElementById(x);return t0?[t0]:[]}}):(l.filter.ID=function(x){var $=x.replace(Me,pe);return function(t0){var M0=typeof t0.getAttributeNode<"u"&&t0.getAttributeNode("id");return M0&&M0.value===$}},l.find.ID=function(x,$){if(typeof $.getElementById<"u"&&y0){var t0,M0,s0,W0=$.getElementById(x);if(W0){if(t0=W0.getAttributeNode("id"),t0&&t0.value===x)return[W0];for(s0=$.getElementsByName(x),M0=0;W0=s0[M0++];)if(t0=W0.getAttributeNode("id"),t0&&t0.value===x)return[W0]}return[]}}),l.find.TAG=O.getElementsByTagName?function(x,$){if(typeof $.getElementsByTagName<"u")return $.getElementsByTagName(x);if(O.qsa)return $.querySelectorAll(x)}:function(x,$){var t0,M0=[],s0=0,W0=$.getElementsByTagName(x);if(x==="*"){for(;t0=W0[s0++];)t0.nodeType===1&&M0.push(t0);return M0}return W0},l.find.CLASS=O.getElementsByClassName&&function(x,$){if(typeof $.getElementsByClassName<"u"&&y0)return $.getElementsByClassName(x)},y1=[],d0=[],(O.qsa=Jo.test(H.querySelectorAll))&&(mt(function(x){var $;A0.appendChild(x).innerHTML="",x.querySelectorAll("[msallowcapture^='']").length&&d0.push("[*^$]="+F0+`*(?:''|"")`),x.querySelectorAll("[selected]").length||d0.push("\\["+F0+"*(?:value|"+zb+")"),x.querySelectorAll("[id~="+Y0+"-]").length||d0.push("~="),$=H.createElement("input"),$.setAttribute("name",""),x.appendChild($),x.querySelectorAll("[name='']").length||d0.push("\\["+F0+"*name"+F0+"*="+F0+`*(?:''|"")`),x.querySelectorAll(":checked").length||d0.push(":checked"),x.querySelectorAll("a#"+Y0+"+*").length||d0.push(".#.+[+~]"),x.querySelectorAll("\\\f"),d0.push("[\\r\\n\\f]")}),mt(function(x){x.innerHTML="";var $=H.createElement("input");$.setAttribute("type","hidden"),x.appendChild($).setAttribute("name","D"),x.querySelectorAll("[name=d]").length&&d0.push("name"+F0+"*[*^$|!~]?="),x.querySelectorAll(":enabled").length!==2&&d0.push(":enabled",":disabled"),A0.appendChild(x).disabled=!0,x.querySelectorAll(":disabled").length!==2&&d0.push(":enabled",":disabled"),x.querySelectorAll("*,:x"),d0.push(",.*:")})),(O.matchesSelector=Jo.test(_1=A0.matches||A0.webkitMatchesSelector||A0.mozMatchesSelector||A0.oMatchesSelector||A0.msMatchesSelector))&&mt(function(x){O.disconnectedMatch=_1.call(x,"*"),_1.call(x,"[s!='']:x"),y1.push("!=",ab)}),O.cssHas||d0.push(":has"),d0=d0.length&&new RegExp(d0.join("|")),y1=y1.length&&new RegExp(y1.join("|")),N=Jo.test(A0.compareDocumentPosition),rt=N||Jo.test(A0.contains)?function(x,$){var t0=x.nodeType===9&&x.documentElement||x,M0=$&&$.parentNode;return x===M0||!!(M0&&M0.nodeType===1&&(t0.contains?t0.contains(M0):x.compareDocumentPosition&&x.compareDocumentPosition(M0)&16))}:function(x,$){if($){for(;$=$.parentNode;)if($===x)return!0}return!1},z2=N?function(x,$){if(x===$)return Z=!0,0;var t0=!x.compareDocumentPosition-!$.compareDocumentPosition;return t0||(t0=(x.ownerDocument||x)==($.ownerDocument||$)?x.compareDocumentPosition($):1,t0&1||!O.sortDetached&&$.compareDocumentPosition(x)===t0?x==H||x.ownerDocument==L0&&rt(L0,x)?-1:$==H||$.ownerDocument==L0&&rt(L0,$)?1:F?O2(F,x)-O2(F,$):0:t0&4?-1:1)}:function(x,$){if(x===$)return Z=!0,0;var t0,M0=0,s0=x.parentNode,W0=$.parentNode,q0=[x],_0=[$];if(!s0||!W0)return x==H?-1:$==H?1:s0?-1:W0?1:F?O2(F,x)-O2(F,$):0;if(s0===W0)return bz(x,$);for(t0=x;t0=t0.parentNode;)q0.unshift(t0);for(t0=$;t0=t0.parentNode;)_0.unshift(t0);for(;q0[M0]===_0[M0];)M0++;return M0?bz(q0[M0],_0[M0]):q0[M0]==L0?-1:_0[M0]==L0?1:0}),H},Q0.matches=function(m,N){return Q0(m,null,null,N)},Q0.matchesSelector=function(m,N){if(P(m),O.matchesSelector&&y0&&!zt[N+" "]&&(!y1||!y1.test(N))&&(!d0||!d0.test(N)))try{var S=_1.call(m,N);if(S||O.disconnectedMatch||m.document&&m.document.nodeType!==11)return S}catch{zt(N,!0)}return Q0(N,H,null,[m]).length>0},Q0.contains=function(m,N){return(m.ownerDocument||m)!=H&&P(m),rt(m,N)},Q0.attr=function(m,N){(m.ownerDocument||m)!=H&&P(m);var S=l.attrHandle[N.toLowerCase()],U=S&&a2.call(l.attrHandle,N.toLowerCase())?S(m,N,!y0):void 0;return U!==void 0?U:O.attributes||!y0?m.getAttribute(N):(U=m.getAttributeNode(N))&&U.specified?U.value:null},Q0.escape=function(m){return(m+"").replace(iz,Mz)},Q0.error=function(m){throw new Error("Syntax error, unrecognized expression: "+m)},Q0.uniqueSort=function(m){var N,S=[],U=0,x=0;if(Z=!O.detectDuplicates,F=!O.sortStable&&m.slice(0),m.sort(z2),Z){for(;N=m[x++];)N===m[x]&&(U=S.push(x));for(;U--;)m.splice(S[U],1)}return F=null,m},q=Q0.getText=function(m){var N,S="",U=0,x=m.nodeType;if(x){if(x===1||x===9||x===11){if(typeof m.textContent=="string")return m.textContent;for(m=m.firstChild;m;m=m.nextSibling)S+=q(m)}else if(x===3||x===4)return m.nodeValue}else for(;N=m[U++];)S+=q(N);return S},l=Q0.selectors={cacheLength:50,createPseudo:Xt,match:Ni,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(m){return m[1]=m[1].replace(Me,pe),m[3]=(m[3]||m[4]||m[5]||"").replace(Me,pe),m[2]==="~="&&(m[3]=" "+m[3]+" "),m.slice(0,4)},CHILD:function(m){return m[1]=m[1].toLowerCase(),m[1].slice(0,3)==="nth"?(m[3]||Q0.error(m[0]),m[4]=+(m[4]?m[5]+(m[6]||1):2*(m[3]==="even"||m[3]==="odd")),m[5]=+(m[7]+m[8]||m[3]==="odd")):m[3]&&Q0.error(m[0]),m},PSEUDO:function(m){var N,S=!m[6]&&m[2];return Ni.CHILD.test(m[0])?null:(m[3]?m[2]=m[4]||m[5]||"":S&&Mf.test(S)&&(N=g(S,!0))&&(N=S.indexOf(")",S.length-N)-S.length)&&(m[0]=m[0].slice(0,N),m[2]=S.slice(0,N)),m.slice(0,3))}},filter:{TAG:function(m){var N=m.replace(Me,pe).toLowerCase();return m==="*"?function(){return!0}:function(S){return S.nodeName&&S.nodeName.toLowerCase()===N}},CLASS:function(m){var N=l1[m+" "];return N||(N=new RegExp("(^|"+F0+")"+m+"("+F0+"|$)"))&&l1(m,function(S){return N.test(typeof S.className=="string"&&S.className||typeof S.getAttribute<"u"&&S.getAttribute("class")||"")})},ATTR:function(m,N,S){return function(U){var x=Q0.attr(U,m);return x==null?N==="!=":N?(x+="",N==="="?x===S:N==="!="?x!==S:N==="^="?S&&x.indexOf(S)===0:N==="*="?S&&x.indexOf(S)>-1:N==="$="?S&&x.slice(-S.length)===S:N==="~="?(" "+x.replace(ef," ")+" ").indexOf(S)>-1:N==="|="?x===S||x.slice(0,S.length+1)===S+"-":!1):!0}},CHILD:function(m,N,S,U,x){var $=m.slice(0,3)!=="nth",t0=m.slice(-4)!=="last",M0=N==="of-type";return U===1&&x===0?function(s0){return!!s0.parentNode}:function(s0,W0,q0){var _0,T0,J0,g0,N1,F1,at=$!==t0?"nextSibling":"previousSibling",z1=s0.parentNode,Zo=M0&&s0.nodeName.toLowerCase(),tn=!q0&&!M0,Ot=!1;if(z1){if($){for(;at;){for(g0=s0;g0=g0[at];)if(M0?g0.nodeName.toLowerCase()===Zo:g0.nodeType===1)return!1;F1=at=m==="only"&&!F1&&"nextSibling"}return!0}if(F1=[t0?z1.firstChild:z1.lastChild],t0&&tn){for(g0=z1,J0=g0[Y0]||(g0[Y0]={}),T0=J0[g0.uniqueID]||(J0[g0.uniqueID]={}),_0=T0[m]||[],N1=_0[0]===ot&&_0[1],Ot=N1&&_0[2],g0=N1&&z1.childNodes[N1];g0=++N1&&g0&&g0[at]||(Ot=N1=0)||F1.pop();)if(g0.nodeType===1&&++Ot&&g0===s0){T0[m]=[ot,N1,Ot];break}}else if(tn&&(g0=s0,J0=g0[Y0]||(g0[Y0]={}),T0=J0[g0.uniqueID]||(J0[g0.uniqueID]={}),_0=T0[m]||[],N1=_0[0]===ot&&_0[1],Ot=N1),Ot===!1)for(;(g0=++N1&&g0&&g0[at]||(Ot=N1=0)||F1.pop())&&!((M0?g0.nodeName.toLowerCase()===Zo:g0.nodeType===1)&&++Ot&&(tn&&(J0=g0[Y0]||(g0[Y0]={}),T0=J0[g0.uniqueID]||(J0[g0.uniqueID]={}),T0[m]=[ot,Ot]),g0===s0)););return Ot-=x,Ot===U||Ot%U===0&&Ot/U>=0}}},PSEUDO:function(m,N){var S,U=l.pseudos[m]||l.setFilters[m.toLowerCase()]||Q0.error("unsupported pseudo: "+m);return U[Y0]?U(N):U.length>1?(S=[m,m,"",N],l.setFilters.hasOwnProperty(m.toLowerCase())?Xt(function(x,$){for(var t0,M0=U(x,N),s0=M0.length;s0--;)t0=O2(x,M0[s0]),x[t0]=!($[t0]=M0[s0])}):function(x){return U(x,0,S)}):U}},pseudos:{not:Xt(function(m){var N=[],S=[],U=B(m.replace(yi,"$1"));return U[Y0]?Xt(function(x,$,t0,M0){for(var s0,W0=U(x,null,M0,[]),q0=x.length;q0--;)(s0=W0[q0])&&(x[q0]=!($[q0]=s0))}):function(x,$,t0){return N[0]=x,U(N,null,t0,S),N[0]=null,!S.pop()}}),has:Xt(function(m){return function(N){return Q0(m,N).length>0}}),contains:Xt(function(m){return m=m.replace(Me,pe),function(N){return(N.textContent||q(N)).indexOf(m)>-1}}),lang:Xt(function(m){return pf.test(m||"")||Q0.error("unsupported lang: "+m),m=m.replace(Me,pe).toLowerCase(),function(N){var S;do if(S=y0?N.lang:N.getAttribute("xml:lang")||N.getAttribute("lang"))return S=S.toLowerCase(),S===m||S.indexOf(m+"-")===0;while((N=N.parentNode)&&N.nodeType===1);return!1}}),target:function(m){var N=c.location&&c.location.hash;return N&&N.slice(1)===m.id},root:function(m){return m===A0},focus:function(m){return m===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(m.type||m.href||~m.tabIndex)},enabled:sz(!1),disabled:sz(!0),checked:function(m){var N=m.nodeName.toLowerCase();return N==="input"&&!!m.checked||N==="option"&&!!m.selected},selected:function(m){return m.parentNode&&m.parentNode.selectedIndex,m.selected===!0},empty:function(m){for(m=m.firstChild;m;m=m.nextSibling)if(m.nodeType<6)return!1;return!0},parent:function(m){return!l.pseudos.empty(m)},header:function(m){return cf.test(m.nodeName)},input:function(m){return sf.test(m.nodeName)},button:function(m){var N=m.nodeName.toLowerCase();return N==="input"&&m.type==="button"||N==="button"},text:function(m){var N;return m.nodeName.toLowerCase()==="input"&&m.type==="text"&&((N=m.getAttribute("type"))==null||N.toLowerCase()==="text")},first:A2(function(){return[0]}),last:A2(function(m,N){return[N-1]}),eq:A2(function(m,N,S){return[S<0?S+N:S]}),even:A2(function(m,N){for(var S=0;SN?N:S;--U>=0;)m.push(U);return m}),gt:A2(function(m,N,S){for(var U=S<0?S+N:S;++U1?function(N,S,U){for(var x=m.length;x--;)if(!m[x](N,S,U))return!1;return!0}:m[0]}function df(m,N,S){for(var U=0,x=N.length;U-1&&(t0[q0]=!(M0[q0]=T0))}}else z1=Ei(z1===M0?z1.splice(N1,z1.length):z1),x?x(null,M0,z1,W0):Se.apply(M0,z1)})}function fb(m){for(var N,S,U,x=m.length,$=l.relative[m[0].type],t0=$||l.relative[" "],M0=$?1:0,s0=Ti(function(_0){return _0===N},t0,!0),W0=Ti(function(_0){return O2(N,_0)>-1},t0,!0),q0=[function(_0,T0,J0){var g0=!$&&(J0||T0!==X)||((N=T0).nodeType?s0(_0,T0,J0):W0(_0,T0,J0));return N=null,g0}];M01&&lb(q0),M0>1&&vi(m.slice(0,M0-1).concat({value:m[M0-2].type===" "?"*":""})).replace(yi,"$1"),S,M00,U=m.length>0,x=function($,t0,M0,s0,W0){var q0,_0,T0,J0=0,g0="0",N1=$&&[],F1=[],at=X,z1=$||U&&l.find.TAG("*",W0),Zo=ot+=at==null?1:Math.random()||.1,tn=z1.length;for(W0&&(X=t0==H||t0||W0);g0!==tn&&(q0=z1[g0])!=null;g0++){if(U&&q0){for(_0=0,!t0&&q0.ownerDocument!=H&&(P(q0),M0=!y0);T0=m[_0++];)if(T0(q0,t0||H,M0)){s0.push(q0);break}W0&&(ot=Zo)}S&&((q0=!T0&&q0)&&J0--,$&&N1.push(q0))}if(J0+=g0,S&&g0!==J0){for(_0=0;T0=N[_0++];)T0(N1,F1,t0,M0);if($){if(J0>0)for(;g0--;)N1[g0]||F1[g0]||(F1[g0]=Ee.call(s0));F1=Ei(F1)}Se.apply(s0,F1),W0&&!$&&F1.length>0&&J0+N.length>1&&Q0.uniqueSort(s0)}return W0&&(ot=Zo,X=at),N1};return S?Xt(x):x}return B=Q0.compile=function(m,N){var S,U=[],x=[],$=Li[m+" "];if(!$){for(N||(N=g(m)),S=N.length;S--;)$=fb(N[S]),$[Y0]?U.push($):x.push($);$=Li(m,Af(x,U)),$.selector=m}return $},y=Q0.select=function(m,N,S,U){var x,$,t0,M0,s0,W0=typeof m=="function"&&m,q0=!U&&g(m=W0.selector||m);if(S=S||[],q0.length===1){if($=q0[0]=q0[0].slice(0),$.length>2&&(t0=$[0]).type==="ID"&&N.nodeType===9&&y0&&l.relative[$[1].type]){if(N=(l.find.ID(t0.matches[0].replace(Me,pe),N)||[])[0],N)W0&&(N=N.parentNode);else return S;m=m.slice($.shift().value.length)}for(x=Ni.needsContext.test(m)?0:$.length;x--&&(t0=$[x],!l.relative[M0=t0.type]);)if((s0=l.find[M0])&&(U=s0(t0.matches[0].replace(Me,pe),Ob.test($[0].type)&&Ab(N.parentNode)||N))){if($.splice(x,1),m=U.length&&vi($),!m)return Se.apply(S,U),S;break}}return(W0||B(m,q0))(U,N,!y0,S,!N||Ob.test(m)&&Ab(N.parentNode)||N),S},O.sortStable=Y0.split("").sort(z2).join("")===Y0,O.detectDuplicates=!!Z,P(),O.sortDetached=mt(function(m){return m.compareDocumentPosition(H.createElement("fieldset"))&1}),mt(function(m){return m.innerHTML="",m.firstChild.getAttribute("href")==="#"})||db("type|href|height|width",function(m,N,S){if(!S)return m.getAttribute(N,N.toLowerCase()==="type"?1:2)}),(!O.attributes||!mt(function(m){return m.innerHTML="",m.firstChild.setAttribute("value",""),m.firstChild.getAttribute("value")===""}))&&db("value",function(m,N,S){if(!S&&m.nodeName.toLowerCase()==="input")return m.defaultValue}),mt(function(m){return m.getAttribute("disabled")==null})||db(zb,function(m,N,S){var U;if(!S)return m[N]===!0?N.toLowerCase():(U=m.getAttributeNode(N))&&U.specified?U.value:null}),Q0}(t);d.find=C,d.expr=C.selectors,d.expr[":"]=d.expr.pseudos,d.uniqueSort=d.unique=C.uniqueSort,d.text=C.getText,d.isXMLDoc=C.isXML,d.contains=C.contains,d.escapeSelector=C.escape;var J=function(c,z,O){for(var l=[],q=O!==void 0;(c=c[z])&&c.nodeType!==9;)if(c.nodeType===1){if(q&&d(c).is(O))break;l.push(c)}return l},G=function(c,z){for(var O=[];c;c=c.nextSibling)c.nodeType===1&&c!==z&&O.push(c);return O},K=d.expr.match.needsContext;function n0(c,z){return c.nodeName&&c.nodeName.toLowerCase()===z.toLowerCase()}var e0=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O0(c,z,O){return _(z)?d.grep(c,function(l,q){return!!z.call(l,q,l)!==O}):z.nodeType?d.grep(c,function(l){return l===z!==O}):typeof z!="string"?d.grep(c,function(l){return s.call(z,l)>-1!==O}):d.filter(z,c,O)}d.filter=function(c,z,O){var l=z[0];return O&&(c=":not("+c+")"),z.length===1&&l.nodeType===1?d.find.matchesSelector(l,c)?[l]:[]:d.find.matches(c,d.grep(z,function(q){return q.nodeType===1}))},d.fn.extend({find:function(c){var z,O,l=this.length,q=this;if(typeof c!="string")return this.pushStack(d(c).filter(function(){for(z=0;z1?d.uniqueSort(O):O},filter:function(c){return this.pushStack(O0(this,c||[],!1))},not:function(c){return this.pushStack(O0(this,c||[],!0))},is:function(c){return!!O0(this,typeof c=="string"&&K.test(c)?d(c):c||[],!1).length}});var p0,l0=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,m0=d.fn.init=function(c,z,O){var l,q;if(!c)return this;if(O=O||p0,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?l=[null,c,null]:l=l0.exec(c),l&&(l[1]||!z))if(l[1]){if(z=z instanceof d?z[0]:z,d.merge(this,d.parseHTML(l[1],z&&z.nodeType?z.ownerDocument||z:L,!0)),e0.test(l[1])&&d.isPlainObject(z))for(l in z)_(this[l])?this[l](z[l]):this.attr(l,z[l]);return this}else return q=L.getElementById(l[2]),q&&(this[0]=q,this.length=1),this;else return!z||z.jquery?(z||O).find(c):this.constructor(z).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(_(c))return O.ready!==void 0?O.ready(c):c(d)}return d.makeArray(c,this)};m0.prototype=d.fn,p0=d(L);var c1=/^(?:parents|prev(?:Until|All))/,C0={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(c){var z=d(c,this),O=z.length;return this.filter(function(){for(var l=0;l-1:O.nodeType===1&&d.find.matchesSelector(O,c))){h.push(O);break}}return this.pushStack(h.length>1?d.uniqueSort(h):h)},index:function(c){return c?typeof c=="string"?s.call(d(c),this[0]):s.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,z){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(c,z))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function w1(c,z){for(;(c=c[z])&&c.nodeType!==1;);return c}d.each({parent:function(c){var z=c.parentNode;return z&&z.nodeType!==11?z:null},parents:function(c){return J(c,"parentNode")},parentsUntil:function(c,z,O){return J(c,"parentNode",O)},next:function(c){return w1(c,"nextSibling")},prev:function(c){return w1(c,"previousSibling")},nextAll:function(c){return J(c,"nextSibling")},prevAll:function(c){return J(c,"previousSibling")},nextUntil:function(c,z,O){return J(c,"nextSibling",O)},prevUntil:function(c,z,O){return J(c,"previousSibling",O)},siblings:function(c){return G((c.parentNode||{}).firstChild,c)},children:function(c){return G(c.firstChild)},contents:function(c){return c.contentDocument!=null&&i(c.contentDocument)?c.contentDocument:(n0(c,"template")&&(c=c.content||c),d.merge([],c.childNodes))}},function(c,z){d.fn[c]=function(O,l){var q=d.map(this,z,O);return c.slice(-5)!=="Until"&&(l=O),l&&typeof l=="string"&&(q=d.filter(l,q)),this.length>1&&(C0[c]||d.uniqueSort(q),c1.test(c)&&q.reverse()),this.pushStack(q)}});var i1=/[^\x20\t\r\n\f]+/g;function R1(c){var z={};return d.each(c.match(i1)||[],function(O,l){z[l]=!0}),z}d.Callbacks=function(c){c=typeof c=="string"?R1(c):d.extend({},c);var z,O,l,q,h=[],g=[],B=-1,y=function(){for(q=q||c.once,l=z=!0;g.length;B=-1)for(O=g.shift();++B-1;)h.splice(P,1),P<=B&&B--}),this},has:function(F){return F?d.inArray(F,h)>-1:h.length>0},empty:function(){return h&&(h=[]),this},disable:function(){return q=g=[],h=O="",this},disabled:function(){return!h},lock:function(){return q=g=[],!O&&!z&&(h=O=""),this},locked:function(){return!!q},fireWith:function(F,Z){return q||(Z=Z||[],Z=[F,Z.slice?Z.slice():Z],g.push(Z),z||y()),this},fire:function(){return X.fireWith(this,arguments),this},fired:function(){return!!l}};return X};function r1(c){return c}function G0(c){throw c}function U0(c,z,O,l){var q;try{c&&_(q=c.promise)?q.call(c).done(z).fail(O):c&&_(q=c.then)?q.call(c,z,O):z.apply(void 0,[c].slice(l))}catch(h){O.apply(void 0,[h])}}d.extend({Deferred:function(c){var z=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],O="pending",l={state:function(){return O},always:function(){return q.done(arguments).fail(arguments),this},catch:function(h){return l.then(null,h)},pipe:function(){var h=arguments;return d.Deferred(function(g){d.each(z,function(B,y){var X=_(h[y[4]])&&h[y[4]];q[y[1]](function(){var F=X&&X.apply(this,arguments);F&&_(F.promise)?F.promise().progress(g.notify).done(g.resolve).fail(g.reject):g[y[0]+"With"](this,X?[F]:arguments)})}),h=null}).promise()},then:function(h,g,B){var y=0;function X(F,Z,P,H){return function(){var A0=this,y0=arguments,d0=function(){var _1,rt;if(!(F=y&&(P!==G0&&(A0=void 0,y0=[_1]),Z.rejectWith(A0,y0))}};F?y1():(d.Deferred.getStackHook&&(y1.stackTrace=d.Deferred.getStackHook()),t.setTimeout(y1))}}return d.Deferred(function(F){z[0][3].add(X(0,F,_(B)?B:r1,F.notifyWith)),z[1][3].add(X(0,F,_(h)?h:r1)),z[2][3].add(X(0,F,_(g)?g:G0))}).promise()},promise:function(h){return h!=null?d.extend(h,l):l}},q={};return d.each(z,function(h,g){var B=g[2],y=g[5];l[g[1]]=B.add,y&&B.add(function(){O=y},z[3-h][2].disable,z[3-h][3].disable,z[0][2].lock,z[0][3].lock),B.add(g[3].fire),q[g[0]]=function(){return q[g[0]+"With"](this===q?void 0:this,arguments),this},q[g[0]+"With"]=B.fireWith}),l.promise(q),c&&c.call(q,q),q},when:function(c){var z=arguments.length,O=z,l=Array(O),q=M.call(arguments),h=d.Deferred(),g=function(B){return function(y){l[B]=this,q[B]=arguments.length>1?M.call(arguments):y,--z||h.resolveWith(l,q)}};if(z<=1&&(U0(c,h.done(g(O)).resolve,h.reject,!z),h.state()==="pending"||_(q[O]&&q[O].then)))return h.then();for(;O--;)U0(q[O],g(O),h.reject);return h.promise()}});var N0=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(c,z){t.console&&t.console.warn&&c&&N0.test(c.name)&&t.console.warn("jQuery.Deferred exception: "+c.message,c.stack,z)},d.readyException=function(c){t.setTimeout(function(){throw c})};var f0=d.Deferred();d.fn.ready=function(c){return f0.then(c).catch(function(z){d.readyException(z)}),this},d.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(c!==!0&&--d.readyWait>0)&&f0.resolveWith(L,[d]))}}),d.ready.then=f0.then;function V0(){L.removeEventListener("DOMContentLoaded",V0),t.removeEventListener("load",V0),d.ready()}L.readyState==="complete"||L.readyState!=="loading"&&!L.documentElement.doScroll?t.setTimeout(d.ready):(L.addEventListener("DOMContentLoaded",V0),t.addEventListener("load",V0));var K0=function(c,z,O,l,q,h,g){var B=0,y=c.length,X=O==null;if(w(O)==="object"){q=!0;for(B in O)K0(c,z,B,O[B],!0,h,g)}else if(l!==void 0&&(q=!0,_(l)||(g=!0),X&&(g?(z.call(c,l),z=null):(X=z,z=function(F,Z,P){return X.call(d(F),P)})),z))for(;B1,null,!0)},removeData:function(c){return this.each(function(){R0.remove(this,c)})}}),d.extend({queue:function(c,z,O){var l;if(c)return z=(z||"fx")+"queue",l=Q.get(c,z),O&&(!l||Array.isArray(O)?l=Q.access(c,z,d.makeArray(O)):l.push(O)),l||[]},dequeue:function(c,z){z=z||"fx";var O=d.queue(c,z),l=O.length,q=O.shift(),h=d._queueHooks(c,z),g=function(){d.dequeue(c,z)};q==="inprogress"&&(q=O.shift(),l--),q&&(z==="fx"&&O.unshift("inprogress"),delete h.stop,q.call(c,g,h)),!l&&h&&h.empty.fire()},_queueHooks:function(c,z){var O=z+"queueHooks";return Q.get(c,O)||Q.access(c,O,{empty:d.Callbacks("once memory").add(function(){Q.remove(c,[z+"queue",O])})})}}),d.fn.extend({queue:function(c,z){var O=2;return typeof c!="string"&&(z=c,c="fx",O--),arguments.length\x20\t\r\n\f]*)/i,Nr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=L.createDocumentFragment(),z=c.appendChild(L.createElement("div")),O=L.createElement("input");O.setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),z.appendChild(O),W.checkClone=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="",W.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue,z.innerHTML="",W.option=!!z.lastChild})();var gt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,W.option||(gt.optgroup=gt.option=[1,""]);function tt(c,z){var O;return typeof c.getElementsByTagName<"u"?O=c.getElementsByTagName(z||"*"):typeof c.querySelectorAll<"u"?O=c.querySelectorAll(z||"*"):O=[],z===void 0||z&&n0(c,z)?d.merge([c],O):O}function Qp(c,z){for(var O=0,l=c.length;O-1){q&&q.push(h);continue}if(X=ie(h),g=tt(Z.appendChild(h),"script"),X&&Qp(g),O)for(F=0;h=g[F++];)Nr.test(h.type||"")&&O.push(h)}return Z}var vr=/^([^.]*)(?:\.(.+)|)/;function j2(){return!0}function Y2(){return!1}function qu(c,z){return c===hu()==(z==="focus")}function hu(){try{return L.activeElement}catch{}}function Jp(c,z,O,l,q,h){var g,B;if(typeof z=="object"){typeof O!="string"&&(l=l||O,O=void 0);for(B in z)Jp(c,B,O,l,z[B],h);return c}if(l==null&&q==null?(q=O,l=O=void 0):q==null&&(typeof O=="string"?(q=l,l=void 0):(q=l,l=O,O=void 0)),q===!1)q=Y2;else if(!q)return c;return h===1&&(g=q,q=function(y){return d().off(y),g.apply(this,arguments)},q.guid=g.guid||(g.guid=d.guid++)),c.each(function(){d.event.add(this,z,q,l,O)})}d.event={global:{},add:function(c,z,O,l,q){var h,g,B,y,X,F,Z,P,H,A0,y0,d0=Q.get(c);if(j(c))for(O.handler&&(h=O,O=h.handler,q=h.selector),q&&d.find.matchesSelector(jt,q),O.guid||(O.guid=d.guid++),(y=d0.events)||(y=d0.events=Object.create(null)),(g=d0.handle)||(g=d0.handle=function(y1){return typeof d<"u"&&d.event.triggered!==y1.type?d.event.dispatch.apply(c,arguments):void 0}),z=(z||"").match(i1)||[""],X=z.length;X--;)B=vr.exec(z[X])||[],H=y0=B[1],A0=(B[2]||"").split(".").sort(),H&&(Z=d.event.special[H]||{},H=(q?Z.delegateType:Z.bindType)||H,Z=d.event.special[H]||{},F=d.extend({type:H,origType:y0,data:l,handler:O,guid:O.guid,selector:q,needsContext:q&&d.expr.match.needsContext.test(q),namespace:A0.join(".")},h),(P=y[H])||(P=y[H]=[],P.delegateCount=0,(!Z.setup||Z.setup.call(c,l,A0,g)===!1)&&c.addEventListener&&c.addEventListener(H,g)),Z.add&&(Z.add.call(c,F),F.handler.guid||(F.handler.guid=O.guid)),q?P.splice(P.delegateCount++,0,F):P.push(F),d.event.global[H]=!0)},remove:function(c,z,O,l,q){var h,g,B,y,X,F,Z,P,H,A0,y0,d0=Q.hasData(c)&&Q.get(c);if(!(!d0||!(y=d0.events))){for(z=(z||"").match(i1)||[""],X=z.length;X--;){if(B=vr.exec(z[X])||[],H=y0=B[1],A0=(B[2]||"").split(".").sort(),!H){for(H in y)d.event.remove(c,H+z[X],O,l,!0);continue}for(Z=d.event.special[H]||{},H=(l?Z.delegateType:Z.bindType)||H,P=y[H]||[],B=B[2]&&new RegExp("(^|\\.)"+A0.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=h=P.length;h--;)F=P[h],(q||y0===F.origType)&&(!O||O.guid===F.guid)&&(!B||B.test(F.namespace))&&(!l||l===F.selector||l==="**"&&F.selector)&&(P.splice(h,1),F.selector&&P.delegateCount--,Z.remove&&Z.remove.call(c,F));g&&!P.length&&((!Z.teardown||Z.teardown.call(c,A0,d0.handle)===!1)&&d.removeEvent(c,H,d0.handle),delete y[H])}d.isEmptyObject(y)&&Q.remove(c,"handle events")}},dispatch:function(c){var z,O,l,q,h,g,B=new Array(arguments.length),y=d.event.fix(c),X=(Q.get(this,"events")||Object.create(null))[y.type]||[],F=d.event.special[y.type]||{};for(B[0]=y,z=1;z=1)){for(;X!==this;X=X.parentNode||this)if(X.nodeType===1&&!(c.type==="click"&&X.disabled===!0)){for(h=[],g={},O=0;O-1:d.find(q,this,null,[X]).length),g[q]&&h.push(l);h.length&&B.push({elem:X,handlers:h})}}return X=this,y\s*$/g;function Tr(c,z){return n0(c,"table")&&n0(z.nodeType!==11?z:z.firstChild,"tr")&&d(c).children("tbody")[0]||c}function mu(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function Ru(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Er(c,z){var O,l,q,h,g,B,y;if(z.nodeType===1){if(Q.hasData(c)&&(h=Q.get(c),y=h.events,y)){Q.remove(z,"handle events");for(q in y)for(O=0,l=y[q].length;O1&&typeof H=="string"&&!W.checkClone&&gu.test(H))return c.each(function(y0){var d0=c.eq(y0);A0&&(z[0]=H.call(this,y0,d0.html())),$2(d0,z,O,l)});if(Z&&(q=Br(z,c[0].ownerDocument,!1,c,l),h=q.firstChild,q.childNodes.length===1&&(q=h),h||l)){for(g=d.map(tt(q,"script"),mu),B=g.length;F0&&Qp(g,!y&&tt(c,"script")),B},cleanData:function(c){for(var z,O,l,q=d.event.special,h=0;(O=c[h])!==void 0;h++)if(j(O)){if(z=O[Q.expando]){if(z.events)for(l in z.events)q[l]?d.event.remove(O,l):d.removeEvent(O,l,z.handle);O[Q.expando]=void 0}O[R0.expando]&&(O[R0.expando]=void 0)}}}),d.fn.extend({detach:function(c){return Sr(this,c,!0)},remove:function(c){return Sr(this,c)},text:function(c){return K0(this,function(z){return z===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=z)})},null,c,arguments.length)},append:function(){return $2(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=Tr(this,c);z.appendChild(c)}})},prepend:function(){return $2(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=Tr(this,c);z.insertBefore(c,z.firstChild)}})},before:function(){return $2(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return $2(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,z=0;(c=this[z])!=null;z++)c.nodeType===1&&(d.cleanData(tt(c,!1)),c.textContent="");return this},clone:function(c,z){return c=c??!1,z=z??c,this.map(function(){return d.clone(this,c,z)})},html:function(c){return K0(this,function(z){var O=this[0]||{},l=0,q=this.length;if(z===void 0&&O.nodeType===1)return O.innerHTML;if(typeof z=="string"&&!Wu.test(z)&&!gt[(yr.exec(z)||["",""])[1].toLowerCase()]){z=d.htmlPrefilter(z);try{for(;l=0&&(y+=Math.max(0,Math.ceil(c["offset"+z[0].toUpperCase()+z.slice(1)]-h-y-B-.5))||0),y}function Fr(c,z,O){var l=_i(c),q=!W.boxSizingReliable()||O,h=q&&d.css(c,"boxSizing",!1,l)==="border-box",g=h,B=$o(c,z,l),y="offset"+z[0].toUpperCase()+z.slice(1);if(Zp.test(B)){if(!O)return B;B="auto"}return(!W.boxSizingReliable()&&h||!W.reliableTrDimensions()&&n0(c,"tr")||B==="auto"||!parseFloat(B)&&d.css(c,"display",!1,l)==="inline")&&c.getClientRects().length&&(h=d.css(c,"boxSizing",!1,l)==="border-box",g=y in c,g&&(B=c[y])),B=parseFloat(B)||0,B+ob(c,z,O||(h?"border":"content"),g,l,B)+"px"}d.extend({cssHooks:{opacity:{get:function(c,z){if(z){var O=$o(c,"opacity");return O===""?"1":O}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(c,z,O,l){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var q,h,g,B=Y(z),y=tb.test(z),X=c.style;if(y||(z=eb(B)),g=d.cssHooks[z]||d.cssHooks[B],O!==void 0){if(h=typeof O,h==="string"&&(q=Te.exec(O))&&q[1]&&(O=Rr(c,z,q),h="number"),O==null||O!==O)return;h==="number"&&!y&&(O+=q&&q[3]||(d.cssNumber[B]?"":"px")),!W.clearCloneStyle&&O===""&&z.indexOf("background")===0&&(X[z]="inherit"),(!g||!("set"in g)||(O=g.set(c,O,l))!==void 0)&&(y?X.setProperty(z,O):X[z]=O)}else return g&&"get"in g&&(q=g.get(c,!1,l))!==void 0?q:X[z]}},css:function(c,z,O,l){var q,h,g,B=Y(z),y=tb.test(z);return y||(z=eb(B)),g=d.cssHooks[z]||d.cssHooks[B],g&&"get"in g&&(q=g.get(c,!0,O)),q===void 0&&(q=$o(c,z,l)),q==="normal"&&z in Pr&&(q=Pr[z]),O===""||O?(h=parseFloat(q),O===!0||isFinite(h)?h||0:q):q}}),d.each(["height","width"],function(c,z){d.cssHooks[z]={get:function(O,l,q){if(l)return vu.test(d.css(O,"display"))&&(!O.getClientRects().length||!O.getBoundingClientRect().width)?wr(O,Tu,function(){return Fr(O,z,q)}):Fr(O,z,q)},set:function(O,l,q){var h,g=_i(O),B=!W.scrollboxSize()&&g.position==="absolute",y=B||q,X=y&&d.css(O,"boxSizing",!1,g)==="border-box",F=q?ob(O,z,q,X,g):0;return X&&B&&(F-=Math.ceil(O["offset"+z[0].toUpperCase()+z.slice(1)]-parseFloat(g[z])-ob(O,z,"border",!1,g)-.5)),F&&(h=Te.exec(l))&&(h[3]||"px")!=="px"&&(O.style[z]=l,l=d.css(O,z)),Ir(O,l,F)}}}),d.cssHooks.marginLeft=Xr(W.reliableMarginLeft,function(c,z){if(z)return(parseFloat($o(c,"marginLeft"))||c.getBoundingClientRect().left-wr(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(c,z){d.cssHooks[c+z]={expand:function(O){for(var l=0,q={},h=typeof O=="string"?O.split(" "):[O];l<4;l++)q[c+ct[l]+z]=h[l]||h[l-2]||h[0];return q}},c!=="margin"&&(d.cssHooks[c+z].set=Ir)}),d.fn.extend({css:function(c,z){return K0(this,function(O,l,q){var h,g,B={},y=0;if(Array.isArray(l)){for(h=_i(O),g=l.length;y1)}});function et(c,z,O,l,q){return new et.prototype.init(c,z,O,l,q)}d.Tween=et,et.prototype={constructor:et,init:function(c,z,O,l,q,h){this.elem=c,this.prop=O,this.easing=q||d.easing._default,this.options=z,this.start=this.now=this.cur(),this.end=l,this.unit=h||(d.cssNumber[O]?"":"px")},cur:function(){var c=et.propHooks[this.prop];return c&&c.get?c.get(this):et.propHooks._default.get(this)},run:function(c){var z,O=et.propHooks[this.prop];return this.options.duration?this.pos=z=d.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=z=c,this.now=(this.end-this.start)*z+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),O&&O.set?O.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(c){var z;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(z=d.css(c.elem,c.prop,""),!z||z==="auto"?0:z)},set:function(c){d.fx.step[c.prop]?d.fx.step[c.prop](c):c.elem.nodeType===1&&(d.cssHooks[c.prop]||c.elem.style[eb(c.prop)]!=null)?d.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},d.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},d.fx=et.prototype.init,d.fx.step={};var G2,mi,Eu=/^(?:toggle|show|hide)$/,Su=/queueHooks$/;function nb(){mi&&(L.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(nb):t.setTimeout(nb,d.fx.interval),d.fx.tick())}function Hr(){return t.setTimeout(function(){G2=void 0}),G2=Date.now()}function Ri(c,z){var O,l=0,q={height:c};for(z=z?1:0;l<4;l+=2-z)O=ct[l],q["margin"+O]=q["padding"+O]=c;return z&&(q.opacity=q.width=c),q}function Ur(c,z,O){for(var l,q=(xt.tweeners[z]||[]).concat(xt.tweeners["*"]),h=0,g=q.length;h1)},removeAttr:function(c){return this.each(function(){d.removeAttr(this,c)})}}),d.extend({attr:function(c,z,O){var l,q,h=c.nodeType;if(!(h===3||h===8||h===2)){if(typeof c.getAttribute>"u")return d.prop(c,z,O);if((h!==1||!d.isXMLDoc(c))&&(q=d.attrHooks[z.toLowerCase()]||(d.expr.match.bool.test(z)?jr:void 0)),O!==void 0){if(O===null){d.removeAttr(c,z);return}return q&&"set"in q&&(l=q.set(c,O,z))!==void 0?l:(c.setAttribute(z,O+""),O)}return q&&"get"in q&&(l=q.get(c,z))!==null?l:(l=d.find.attr(c,z),l??void 0)}},attrHooks:{type:{set:function(c,z){if(!W.radioValue&&z==="radio"&&n0(c,"input")){var O=c.value;return c.setAttribute("type",z),O&&(c.value=O),z}}}},removeAttr:function(c,z){var O,l=0,q=z&&z.match(i1);if(q&&c.nodeType===1)for(;O=q[l++];)c.removeAttribute(O)}}),jr={set:function(c,z,O){return z===!1?d.removeAttr(c,O):c.setAttribute(O,O),O}},d.each(d.expr.match.bool.source.match(/\w+/g),function(c,z){var O=Go[z]||d.find.attr;Go[z]=function(l,q,h){var g,B,y=q.toLowerCase();return h||(B=Go[y],Go[y]=g,g=O(l,q,h)!=null?y:null,Go[y]=B),g}});var Xu=/^(?:input|select|textarea|button)$/i,ku=/^(?:a|area)$/i;d.fn.extend({prop:function(c,z){return K0(this,d.prop,c,z,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[d.propFix[c]||c]})}}),d.extend({prop:function(c,z,O){var l,q,h=c.nodeType;if(!(h===3||h===8||h===2))return(h!==1||!d.isXMLDoc(c))&&(z=d.propFix[z]||z,q=d.propHooks[z]),O!==void 0?q&&"set"in q&&(l=q.set(c,O,z))!==void 0?l:c[z]=O:q&&"get"in q&&(l=q.get(c,z))!==null?l:c[z]},propHooks:{tabIndex:{get:function(c){var z=d.find.attr(c,"tabindex");return z?parseInt(z,10):Xu.test(c.nodeName)||ku.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),W.optSelected||(d.propHooks.selected={get:function(c){var z=c.parentNode;return z&&z.parentNode&&z.parentNode.selectedIndex,null},set:function(c){var z=c.parentNode;z&&(z.selectedIndex,z.parentNode&&z.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function c2(c){var z=c.match(i1)||[];return z.join(" ")}function r2(c){return c.getAttribute&&c.getAttribute("class")||""}function ib(c){return Array.isArray(c)?c:typeof c=="string"?c.match(i1)||[]:[]}d.fn.extend({addClass:function(c){var z,O,l,q,h,g;return _(c)?this.each(function(B){d(this).addClass(c.call(this,B,r2(this)))}):(z=ib(c),z.length?this.each(function(){if(l=r2(this),O=this.nodeType===1&&" "+c2(l)+" ",O){for(h=0;h-1;)O=O.replace(" "+q+" "," ");g=c2(O),l!==g&&this.setAttribute("class",g)}}):this):this.attr("class","")},toggleClass:function(c,z){var O,l,q,h,g=typeof c,B=g==="string"||Array.isArray(c);return _(c)?this.each(function(y){d(this).toggleClass(c.call(this,y,r2(this),z),z)}):typeof z=="boolean"&&B?z?this.addClass(c):this.removeClass(c):(O=ib(c),this.each(function(){if(B)for(h=d(this),q=0;q-1)return!0;return!1}});var Cu=/\r/g;d.fn.extend({val:function(c){var z,O,l,q=this[0];return arguments.length?(l=_(c),this.each(function(h){var g;this.nodeType===1&&(l?g=c.call(this,h,d(this).val()):g=c,g==null?g="":typeof g=="number"?g+="":Array.isArray(g)&&(g=d.map(g,function(B){return B==null?"":B+""})),z=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!z||!("set"in z)||z.set(this,g,"value")===void 0)&&(this.value=g))})):q?(z=d.valHooks[q.type]||d.valHooks[q.nodeName.toLowerCase()],z&&"get"in z&&(O=z.get(q,"value"))!==void 0?O:(O=q.value,typeof O=="string"?O.replace(Cu,""):O??"")):void 0}}),d.extend({valHooks:{option:{get:function(c){var z=d.find.attr(c,"value");return z??c2(d.text(c))}},select:{get:function(c){var z,O,l,q=c.options,h=c.selectedIndex,g=c.type==="select-one",B=g?null:[],y=g?h+1:q.length;for(h<0?l=y:l=g?h:0;l-1)&&(O=!0);return O||(c.selectedIndex=-1),h}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(c,z){if(Array.isArray(z))return c.checked=d.inArray(d(c).val(),z)>-1}},W.checkOn||(d.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})}),W.focusin="onfocusin"in t;var Yr=/^(?:focusinfocus|focusoutblur)$/,$r=function(c){c.stopPropagation()};d.extend(d.event,{trigger:function(c,z,O,l){var q,h,g,B,y,X,F,Z,P=[O||L],H=A.call(c,"type")?c.type:c,A0=A.call(c,"namespace")?c.namespace.split("."):[];if(h=Z=g=O=O||L,!(O.nodeType===3||O.nodeType===8)&&!Yr.test(H+d.event.triggered)&&(H.indexOf(".")>-1&&(A0=H.split("."),H=A0.shift(),A0.sort()),y=H.indexOf(":")<0&&"on"+H,c=c[d.expando]?c:new d.Event(H,typeof c=="object"&&c),c.isTrigger=l?2:3,c.namespace=A0.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+A0.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=O),z=z==null?[c]:d.makeArray(z,[c]),F=d.event.special[H]||{},!(!l&&F.trigger&&F.trigger.apply(O,z)===!1))){if(!l&&!F.noBubble&&!R(O)){for(B=F.delegateType||H,Yr.test(B+H)||(h=h.parentNode);h;h=h.parentNode)P.push(h),g=h;g===(O.ownerDocument||L)&&P.push(g.defaultView||g.parentWindow||t)}for(q=0;(h=P[q++])&&!c.isPropagationStopped();)Z=h,c.type=q>1?B:F.bindType||H,X=(Q.get(h,"events")||Object.create(null))[c.type]&&Q.get(h,"handle"),X&&X.apply(h,z),X=y&&h[y],X&&X.apply&&j(h)&&(c.result=X.apply(h,z),c.result===!1&&c.preventDefault());return c.type=H,!l&&!c.isDefaultPrevented()&&(!F._default||F._default.apply(P.pop(),z)===!1)&&j(O)&&y&&_(O[H])&&!R(O)&&(g=O[y],g&&(O[y]=null),d.event.triggered=H,c.isPropagationStopped()&&Z.addEventListener(H,$r),O[H](),c.isPropagationStopped()&&Z.removeEventListener(H,$r),d.event.triggered=void 0,g&&(O[y]=g)),c.result}},simulate:function(c,z,O){var l=d.extend(new d.Event,O,{type:c,isSimulated:!0});d.event.trigger(l,null,z)}}),d.fn.extend({trigger:function(c,z){return this.each(function(){d.event.trigger(c,z,this)})},triggerHandler:function(c,z){var O=this[0];if(O)return d.event.trigger(c,z,O,!0)}}),W.focusin||d.each({focus:"focusin",blur:"focusout"},function(c,z){var O=function(l){d.event.simulate(z,l.target,d.event.fix(l))};d.event.special[z]={setup:function(){var l=this.ownerDocument||this.document||this,q=Q.access(l,z);q||l.addEventListener(c,O,!0),Q.access(l,z,(q||0)+1)},teardown:function(){var l=this.ownerDocument||this.document||this,q=Q.access(l,z)-1;q?Q.access(l,z,q):(l.removeEventListener(c,O,!0),Q.remove(l,z))}}});var Vo=t.location,Gr={guid:Date.now()},Mb=/\?/;d.parseXML=function(c){var z,O;if(!c||typeof c!="string")return null;try{z=new t.DOMParser().parseFromString(c,"text/xml")}catch{}return O=z&&z.getElementsByTagName("parsererror")[0],(!z||O)&&d.error("Invalid XML: "+(O?d.map(O.childNodes,function(l){return l.textContent}).join(` -`):c)),z};var Du=/\[\]$/,Vr=/\r?\n/g,Pu=/^(?:submit|button|image|reset|file)$/i,Iu=/^(?:input|select|textarea|keygen)/i;function pb(c,z,O,l){var q;if(Array.isArray(z))d.each(z,function(h,g){O||Du.test(c)?l(c,g):pb(c+"["+(typeof g=="object"&&g!=null?h:"")+"]",g,O,l)});else if(!O&&w(z)==="object")for(q in z)pb(c+"["+q+"]",z[q],O,l);else l(c,z)}d.param=function(c,z){var O,l=[],q=function(h,g){var B=_(g)?g():g;l[l.length]=encodeURIComponent(h)+"="+encodeURIComponent(B??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!d.isPlainObject(c))d.each(c,function(){q(this.name,this.value)});else for(O in c)pb(O,c[O],z,q);return l.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=d.prop(this,"elements");return c?d.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!d(this).is(":disabled")&&Iu.test(this.nodeName)&&!Pu.test(c)&&(this.checked||!Yo.test(c))}).map(function(c,z){var O=d(this).val();return O==null?null:Array.isArray(O)?d.map(O,function(l){return{name:z.name,value:l.replace(Vr,`\r + */(function(e){(function(t,o){e.exports=t.document?o(t,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return o(n)}})(typeof window<"u"?window:LA,function(t,o){var n=[],i=Object.getPrototypeOf,p=n.slice,M=n.flat?function(c){return n.flat.call(c)}:function(c){return n.concat.apply([],c)},b=n.push,s=n.indexOf,r={},a=r.toString,A=r.hasOwnProperty,u=A.toString,f=u.call(Object),W={},_=function(z){return typeof z=="function"&&typeof z.nodeType!="number"&&typeof z.item!="function"},R=function(z){return z!=null&&z===z.window},L=t.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function k(c,z,O){O=O||L;var l,q,h=O.createElement("script");if(h.text=c,z)for(l in E)q=z[l]||z.getAttribute&&z.getAttribute(l),q&&h.setAttribute(l,q);O.head.appendChild(h).parentNode.removeChild(h)}function w(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?r[a.call(c)]||"object":typeof c}var T="3.6.4",d=function(c,z){return new d.fn.init(c,z)};d.fn=d.prototype={jquery:T,constructor:d,length:0,toArray:function(){return p.call(this)},get:function(c){return c==null?p.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var z=d.merge(this.constructor(),c);return z.prevObject=this,z},each:function(c){return d.each(this,c)},map:function(c){return this.pushStack(d.map(this,function(z,O){return c.call(z,O,z)}))},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(c,z){return(z+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(c,z){return z%2}))},eq:function(c){var z=this.length,O=+c+(c<0?z:0);return this.pushStack(O>=0&&O0&&z-1 in c}var D=function(c){var z,O,l,q,h,g,B,y,X,F,Z,P,H,A0,y0,d0,y1,_1,rt,Y0="sizzle"+1*new Date,L0=c.document,ot=0,X0=0,l1=Bi(),Qo=Bi(),Li=Bi(),zt=Bi(),z2=function(m,N){return m===N&&(Z=!0),0},a2={}.hasOwnProperty,nt=[],Ee=nt.pop,_t=nt.push,Se=nt.push,ez=nt.slice,O2=function(m,N){for(var S=0,U=m.length;S+~]|"+F0+")"+F0+"*"),nf=new RegExp(F0+"|>"),pf=new RegExp(ab),Mf=new RegExp("^"+d2+"$"),Ni={ID:new RegExp("^#("+d2+")"),CLASS:new RegExp("^\\.("+d2+")"),TAG:new RegExp("^("+d2+"|[*])"),ATTR:new RegExp("^"+oz),PSEUDO:new RegExp("^"+ab),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F0+"*(even|odd|(([+-]|)(\\d*)n|)"+F0+"*(?:([+-]|)"+F0+"*(\\d+)|))"+F0+"*\\)|)","i"),bool:new RegExp("^(?:"+zb+")$","i"),needsContext:new RegExp("^"+F0+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F0+"*((?:-\\d)?\\d*)"+F0+"*\\)|)(?=[^-]|$)","i")},bf=/HTML$/i,sf=/^(?:input|select|textarea|button)$/i,cf=/^h\d$/i,Jo=/^[^{]+\{\s*\[native \w/,rf=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ob=/[+~]/,pe=new RegExp("\\\\[\\da-fA-F]{1,6}"+F0+"?|\\\\([^\\r\\n\\f])","g"),Me=function(m,N){var S="0x"+m.slice(1)-65536;return N||(S<0?String.fromCharCode(S+65536):String.fromCharCode(S>>10|55296,S&1023|56320))},iz=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pz=function(m,N){return N?m==="\0"?"�":m.slice(0,-1)+"\\"+m.charCodeAt(m.length-1).toString(16)+" ":"\\"+m},Mz=function(){P()},zf=Ti(function(m){return m.disabled===!0&&m.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Se.apply(nt=ez.call(L0.childNodes),L0.childNodes),nt[L0.childNodes.length].nodeType}catch{Se={apply:nt.length?function(N,S){_t.apply(N,ez.call(S))}:function(N,S){for(var U=N.length,x=0;N[U++]=S[x++];);N.length=U-1}}}function Q0(m,N,S,U){var x,$,t0,p0,s0,W0,q0,_0=N&&N.ownerDocument,T0=N?N.nodeType:9;if(S=S||[],typeof m!="string"||!m||T0!==1&&T0!==9&&T0!==11)return S;if(!U&&(P(N),N=N||H,y0)){if(T0!==11&&(s0=rf.exec(m)))if(x=s0[1]){if(T0===9)if(t0=N.getElementById(x)){if(t0.id===x)return S.push(t0),S}else return S;else if(_0&&(t0=_0.getElementById(x))&&rt(N,t0)&&t0.id===x)return S.push(t0),S}else{if(s0[2])return Se.apply(S,N.getElementsByTagName(m)),S;if((x=s0[3])&&O.getElementsByClassName&&N.getElementsByClassName)return Se.apply(S,N.getElementsByClassName(x)),S}if(O.qsa&&!zt[m+" "]&&(!d0||!d0.test(m))&&(T0!==1||N.nodeName.toLowerCase()!=="object")){if(q0=m,_0=N,T0===1&&(nf.test(m)||nz.test(m))){for(_0=Ob.test(m)&&Ab(N.parentNode)||N,(_0!==N||!O.scope)&&((p0=N.getAttribute("id"))?p0=p0.replace(iz,pz):N.setAttribute("id",p0=Y0)),W0=g(m),$=W0.length;$--;)W0[$]=(p0?"#"+p0:":scope")+" "+vi(W0[$]);q0=W0.join(",")}try{return Se.apply(S,_0.querySelectorAll(q0)),S}catch{zt(m,!0)}finally{p0===Y0&&N.removeAttribute("id")}}}return y(m.replace(yi,"$1"),N,S,U)}function Bi(){var m=[];function N(S,U){return m.push(S+" ")>l.cacheLength&&delete N[m.shift()],N[S+" "]=U}return N}function Xt(m){return m[Y0]=!0,m}function mt(m){var N=H.createElement("fieldset");try{return!!m(N)}catch{return!1}finally{N.parentNode&&N.parentNode.removeChild(N),N=null}}function db(m,N){for(var S=m.split("|"),U=S.length;U--;)l.attrHandle[S[U]]=N}function bz(m,N){var S=N&&m,U=S&&m.nodeType===1&&N.nodeType===1&&m.sourceIndex-N.sourceIndex;if(U)return U;if(S){for(;S=S.nextSibling;)if(S===N)return-1}return m?1:-1}function af(m){return function(N){var S=N.nodeName.toLowerCase();return S==="input"&&N.type===m}}function Of(m){return function(N){var S=N.nodeName.toLowerCase();return(S==="input"||S==="button")&&N.type===m}}function sz(m){return function(N){return"form"in N?N.parentNode&&N.disabled===!1?"label"in N?"label"in N.parentNode?N.parentNode.disabled===m:N.disabled===m:N.isDisabled===m||N.isDisabled!==!m&&zf(N)===m:N.disabled===m:"label"in N?N.disabled===m:!1}}function A2(m){return Xt(function(N){return N=+N,Xt(function(S,U){for(var x,$=m([],S.length,N),t0=$.length;t0--;)S[x=$[t0]]&&(S[x]=!(U[x]=S[x]))})})}function Ab(m){return m&&typeof m.getElementsByTagName<"u"&&m}O=Q0.support={},h=Q0.isXML=function(m){var N=m&&m.namespaceURI,S=m&&(m.ownerDocument||m).documentElement;return!bf.test(N||S&&S.nodeName||"HTML")},P=Q0.setDocument=function(m){var N,S,U=m?m.ownerDocument||m:L0;return U==H||U.nodeType!==9||!U.documentElement||(H=U,A0=H.documentElement,y0=!h(H),L0!=H&&(S=H.defaultView)&&S.top!==S&&(S.addEventListener?S.addEventListener("unload",Mz,!1):S.attachEvent&&S.attachEvent("onunload",Mz)),O.scope=mt(function(x){return A0.appendChild(x).appendChild(H.createElement("div")),typeof x.querySelectorAll<"u"&&!x.querySelectorAll(":scope fieldset div").length}),O.cssHas=mt(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),O.attributes=mt(function(x){return x.className="i",!x.getAttribute("className")}),O.getElementsByTagName=mt(function(x){return x.appendChild(H.createComment("")),!x.getElementsByTagName("*").length}),O.getElementsByClassName=Jo.test(H.getElementsByClassName),O.getById=mt(function(x){return A0.appendChild(x).id=Y0,!H.getElementsByName||!H.getElementsByName(Y0).length}),O.getById?(l.filter.ID=function(x){var $=x.replace(pe,Me);return function(t0){return t0.getAttribute("id")===$}},l.find.ID=function(x,$){if(typeof $.getElementById<"u"&&y0){var t0=$.getElementById(x);return t0?[t0]:[]}}):(l.filter.ID=function(x){var $=x.replace(pe,Me);return function(t0){var p0=typeof t0.getAttributeNode<"u"&&t0.getAttributeNode("id");return p0&&p0.value===$}},l.find.ID=function(x,$){if(typeof $.getElementById<"u"&&y0){var t0,p0,s0,W0=$.getElementById(x);if(W0){if(t0=W0.getAttributeNode("id"),t0&&t0.value===x)return[W0];for(s0=$.getElementsByName(x),p0=0;W0=s0[p0++];)if(t0=W0.getAttributeNode("id"),t0&&t0.value===x)return[W0]}return[]}}),l.find.TAG=O.getElementsByTagName?function(x,$){if(typeof $.getElementsByTagName<"u")return $.getElementsByTagName(x);if(O.qsa)return $.querySelectorAll(x)}:function(x,$){var t0,p0=[],s0=0,W0=$.getElementsByTagName(x);if(x==="*"){for(;t0=W0[s0++];)t0.nodeType===1&&p0.push(t0);return p0}return W0},l.find.CLASS=O.getElementsByClassName&&function(x,$){if(typeof $.getElementsByClassName<"u"&&y0)return $.getElementsByClassName(x)},y1=[],d0=[],(O.qsa=Jo.test(H.querySelectorAll))&&(mt(function(x){var $;A0.appendChild(x).innerHTML="",x.querySelectorAll("[msallowcapture^='']").length&&d0.push("[*^$]="+F0+`*(?:''|"")`),x.querySelectorAll("[selected]").length||d0.push("\\["+F0+"*(?:value|"+zb+")"),x.querySelectorAll("[id~="+Y0+"-]").length||d0.push("~="),$=H.createElement("input"),$.setAttribute("name",""),x.appendChild($),x.querySelectorAll("[name='']").length||d0.push("\\["+F0+"*name"+F0+"*="+F0+`*(?:''|"")`),x.querySelectorAll(":checked").length||d0.push(":checked"),x.querySelectorAll("a#"+Y0+"+*").length||d0.push(".#.+[+~]"),x.querySelectorAll("\\\f"),d0.push("[\\r\\n\\f]")}),mt(function(x){x.innerHTML="";var $=H.createElement("input");$.setAttribute("type","hidden"),x.appendChild($).setAttribute("name","D"),x.querySelectorAll("[name=d]").length&&d0.push("name"+F0+"*[*^$|!~]?="),x.querySelectorAll(":enabled").length!==2&&d0.push(":enabled",":disabled"),A0.appendChild(x).disabled=!0,x.querySelectorAll(":disabled").length!==2&&d0.push(":enabled",":disabled"),x.querySelectorAll("*,:x"),d0.push(",.*:")})),(O.matchesSelector=Jo.test(_1=A0.matches||A0.webkitMatchesSelector||A0.mozMatchesSelector||A0.oMatchesSelector||A0.msMatchesSelector))&&mt(function(x){O.disconnectedMatch=_1.call(x,"*"),_1.call(x,"[s!='']:x"),y1.push("!=",ab)}),O.cssHas||d0.push(":has"),d0=d0.length&&new RegExp(d0.join("|")),y1=y1.length&&new RegExp(y1.join("|")),N=Jo.test(A0.compareDocumentPosition),rt=N||Jo.test(A0.contains)?function(x,$){var t0=x.nodeType===9&&x.documentElement||x,p0=$&&$.parentNode;return x===p0||!!(p0&&p0.nodeType===1&&(t0.contains?t0.contains(p0):x.compareDocumentPosition&&x.compareDocumentPosition(p0)&16))}:function(x,$){if($){for(;$=$.parentNode;)if($===x)return!0}return!1},z2=N?function(x,$){if(x===$)return Z=!0,0;var t0=!x.compareDocumentPosition-!$.compareDocumentPosition;return t0||(t0=(x.ownerDocument||x)==($.ownerDocument||$)?x.compareDocumentPosition($):1,t0&1||!O.sortDetached&&$.compareDocumentPosition(x)===t0?x==H||x.ownerDocument==L0&&rt(L0,x)?-1:$==H||$.ownerDocument==L0&&rt(L0,$)?1:F?O2(F,x)-O2(F,$):0:t0&4?-1:1)}:function(x,$){if(x===$)return Z=!0,0;var t0,p0=0,s0=x.parentNode,W0=$.parentNode,q0=[x],_0=[$];if(!s0||!W0)return x==H?-1:$==H?1:s0?-1:W0?1:F?O2(F,x)-O2(F,$):0;if(s0===W0)return bz(x,$);for(t0=x;t0=t0.parentNode;)q0.unshift(t0);for(t0=$;t0=t0.parentNode;)_0.unshift(t0);for(;q0[p0]===_0[p0];)p0++;return p0?bz(q0[p0],_0[p0]):q0[p0]==L0?-1:_0[p0]==L0?1:0}),H},Q0.matches=function(m,N){return Q0(m,null,null,N)},Q0.matchesSelector=function(m,N){if(P(m),O.matchesSelector&&y0&&!zt[N+" "]&&(!y1||!y1.test(N))&&(!d0||!d0.test(N)))try{var S=_1.call(m,N);if(S||O.disconnectedMatch||m.document&&m.document.nodeType!==11)return S}catch{zt(N,!0)}return Q0(N,H,null,[m]).length>0},Q0.contains=function(m,N){return(m.ownerDocument||m)!=H&&P(m),rt(m,N)},Q0.attr=function(m,N){(m.ownerDocument||m)!=H&&P(m);var S=l.attrHandle[N.toLowerCase()],U=S&&a2.call(l.attrHandle,N.toLowerCase())?S(m,N,!y0):void 0;return U!==void 0?U:O.attributes||!y0?m.getAttribute(N):(U=m.getAttributeNode(N))&&U.specified?U.value:null},Q0.escape=function(m){return(m+"").replace(iz,pz)},Q0.error=function(m){throw new Error("Syntax error, unrecognized expression: "+m)},Q0.uniqueSort=function(m){var N,S=[],U=0,x=0;if(Z=!O.detectDuplicates,F=!O.sortStable&&m.slice(0),m.sort(z2),Z){for(;N=m[x++];)N===m[x]&&(U=S.push(x));for(;U--;)m.splice(S[U],1)}return F=null,m},q=Q0.getText=function(m){var N,S="",U=0,x=m.nodeType;if(x){if(x===1||x===9||x===11){if(typeof m.textContent=="string")return m.textContent;for(m=m.firstChild;m;m=m.nextSibling)S+=q(m)}else if(x===3||x===4)return m.nodeValue}else for(;N=m[U++];)S+=q(N);return S},l=Q0.selectors={cacheLength:50,createPseudo:Xt,match:Ni,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(m){return m[1]=m[1].replace(pe,Me),m[3]=(m[3]||m[4]||m[5]||"").replace(pe,Me),m[2]==="~="&&(m[3]=" "+m[3]+" "),m.slice(0,4)},CHILD:function(m){return m[1]=m[1].toLowerCase(),m[1].slice(0,3)==="nth"?(m[3]||Q0.error(m[0]),m[4]=+(m[4]?m[5]+(m[6]||1):2*(m[3]==="even"||m[3]==="odd")),m[5]=+(m[7]+m[8]||m[3]==="odd")):m[3]&&Q0.error(m[0]),m},PSEUDO:function(m){var N,S=!m[6]&&m[2];return Ni.CHILD.test(m[0])?null:(m[3]?m[2]=m[4]||m[5]||"":S&&pf.test(S)&&(N=g(S,!0))&&(N=S.indexOf(")",S.length-N)-S.length)&&(m[0]=m[0].slice(0,N),m[2]=S.slice(0,N)),m.slice(0,3))}},filter:{TAG:function(m){var N=m.replace(pe,Me).toLowerCase();return m==="*"?function(){return!0}:function(S){return S.nodeName&&S.nodeName.toLowerCase()===N}},CLASS:function(m){var N=l1[m+" "];return N||(N=new RegExp("(^|"+F0+")"+m+"("+F0+"|$)"))&&l1(m,function(S){return N.test(typeof S.className=="string"&&S.className||typeof S.getAttribute<"u"&&S.getAttribute("class")||"")})},ATTR:function(m,N,S){return function(U){var x=Q0.attr(U,m);return x==null?N==="!=":N?(x+="",N==="="?x===S:N==="!="?x!==S:N==="^="?S&&x.indexOf(S)===0:N==="*="?S&&x.indexOf(S)>-1:N==="$="?S&&x.slice(-S.length)===S:N==="~="?(" "+x.replace(ef," ")+" ").indexOf(S)>-1:N==="|="?x===S||x.slice(0,S.length+1)===S+"-":!1):!0}},CHILD:function(m,N,S,U,x){var $=m.slice(0,3)!=="nth",t0=m.slice(-4)!=="last",p0=N==="of-type";return U===1&&x===0?function(s0){return!!s0.parentNode}:function(s0,W0,q0){var _0,T0,J0,g0,N1,F1,at=$!==t0?"nextSibling":"previousSibling",z1=s0.parentNode,Zo=p0&&s0.nodeName.toLowerCase(),tn=!q0&&!p0,Ot=!1;if(z1){if($){for(;at;){for(g0=s0;g0=g0[at];)if(p0?g0.nodeName.toLowerCase()===Zo:g0.nodeType===1)return!1;F1=at=m==="only"&&!F1&&"nextSibling"}return!0}if(F1=[t0?z1.firstChild:z1.lastChild],t0&&tn){for(g0=z1,J0=g0[Y0]||(g0[Y0]={}),T0=J0[g0.uniqueID]||(J0[g0.uniqueID]={}),_0=T0[m]||[],N1=_0[0]===ot&&_0[1],Ot=N1&&_0[2],g0=N1&&z1.childNodes[N1];g0=++N1&&g0&&g0[at]||(Ot=N1=0)||F1.pop();)if(g0.nodeType===1&&++Ot&&g0===s0){T0[m]=[ot,N1,Ot];break}}else if(tn&&(g0=s0,J0=g0[Y0]||(g0[Y0]={}),T0=J0[g0.uniqueID]||(J0[g0.uniqueID]={}),_0=T0[m]||[],N1=_0[0]===ot&&_0[1],Ot=N1),Ot===!1)for(;(g0=++N1&&g0&&g0[at]||(Ot=N1=0)||F1.pop())&&!((p0?g0.nodeName.toLowerCase()===Zo:g0.nodeType===1)&&++Ot&&(tn&&(J0=g0[Y0]||(g0[Y0]={}),T0=J0[g0.uniqueID]||(J0[g0.uniqueID]={}),T0[m]=[ot,Ot]),g0===s0)););return Ot-=x,Ot===U||Ot%U===0&&Ot/U>=0}}},PSEUDO:function(m,N){var S,U=l.pseudos[m]||l.setFilters[m.toLowerCase()]||Q0.error("unsupported pseudo: "+m);return U[Y0]?U(N):U.length>1?(S=[m,m,"",N],l.setFilters.hasOwnProperty(m.toLowerCase())?Xt(function(x,$){for(var t0,p0=U(x,N),s0=p0.length;s0--;)t0=O2(x,p0[s0]),x[t0]=!($[t0]=p0[s0])}):function(x){return U(x,0,S)}):U}},pseudos:{not:Xt(function(m){var N=[],S=[],U=B(m.replace(yi,"$1"));return U[Y0]?Xt(function(x,$,t0,p0){for(var s0,W0=U(x,null,p0,[]),q0=x.length;q0--;)(s0=W0[q0])&&(x[q0]=!($[q0]=s0))}):function(x,$,t0){return N[0]=x,U(N,null,t0,S),N[0]=null,!S.pop()}}),has:Xt(function(m){return function(N){return Q0(m,N).length>0}}),contains:Xt(function(m){return m=m.replace(pe,Me),function(N){return(N.textContent||q(N)).indexOf(m)>-1}}),lang:Xt(function(m){return Mf.test(m||"")||Q0.error("unsupported lang: "+m),m=m.replace(pe,Me).toLowerCase(),function(N){var S;do if(S=y0?N.lang:N.getAttribute("xml:lang")||N.getAttribute("lang"))return S=S.toLowerCase(),S===m||S.indexOf(m+"-")===0;while((N=N.parentNode)&&N.nodeType===1);return!1}}),target:function(m){var N=c.location&&c.location.hash;return N&&N.slice(1)===m.id},root:function(m){return m===A0},focus:function(m){return m===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(m.type||m.href||~m.tabIndex)},enabled:sz(!1),disabled:sz(!0),checked:function(m){var N=m.nodeName.toLowerCase();return N==="input"&&!!m.checked||N==="option"&&!!m.selected},selected:function(m){return m.parentNode&&m.parentNode.selectedIndex,m.selected===!0},empty:function(m){for(m=m.firstChild;m;m=m.nextSibling)if(m.nodeType<6)return!1;return!0},parent:function(m){return!l.pseudos.empty(m)},header:function(m){return cf.test(m.nodeName)},input:function(m){return sf.test(m.nodeName)},button:function(m){var N=m.nodeName.toLowerCase();return N==="input"&&m.type==="button"||N==="button"},text:function(m){var N;return m.nodeName.toLowerCase()==="input"&&m.type==="text"&&((N=m.getAttribute("type"))==null||N.toLowerCase()==="text")},first:A2(function(){return[0]}),last:A2(function(m,N){return[N-1]}),eq:A2(function(m,N,S){return[S<0?S+N:S]}),even:A2(function(m,N){for(var S=0;SN?N:S;--U>=0;)m.push(U);return m}),gt:A2(function(m,N,S){for(var U=S<0?S+N:S;++U1?function(N,S,U){for(var x=m.length;x--;)if(!m[x](N,S,U))return!1;return!0}:m[0]}function df(m,N,S){for(var U=0,x=N.length;U-1&&(t0[q0]=!(p0[q0]=T0))}}else z1=Ei(z1===p0?z1.splice(N1,z1.length):z1),x?x(null,p0,z1,W0):Se.apply(p0,z1)})}function fb(m){for(var N,S,U,x=m.length,$=l.relative[m[0].type],t0=$||l.relative[" "],p0=$?1:0,s0=Ti(function(_0){return _0===N},t0,!0),W0=Ti(function(_0){return O2(N,_0)>-1},t0,!0),q0=[function(_0,T0,J0){var g0=!$&&(J0||T0!==X)||((N=T0).nodeType?s0(_0,T0,J0):W0(_0,T0,J0));return N=null,g0}];p01&&lb(q0),p0>1&&vi(m.slice(0,p0-1).concat({value:m[p0-2].type===" "?"*":""})).replace(yi,"$1"),S,p00,U=m.length>0,x=function($,t0,p0,s0,W0){var q0,_0,T0,J0=0,g0="0",N1=$&&[],F1=[],at=X,z1=$||U&&l.find.TAG("*",W0),Zo=ot+=at==null?1:Math.random()||.1,tn=z1.length;for(W0&&(X=t0==H||t0||W0);g0!==tn&&(q0=z1[g0])!=null;g0++){if(U&&q0){for(_0=0,!t0&&q0.ownerDocument!=H&&(P(q0),p0=!y0);T0=m[_0++];)if(T0(q0,t0||H,p0)){s0.push(q0);break}W0&&(ot=Zo)}S&&((q0=!T0&&q0)&&J0--,$&&N1.push(q0))}if(J0+=g0,S&&g0!==J0){for(_0=0;T0=N[_0++];)T0(N1,F1,t0,p0);if($){if(J0>0)for(;g0--;)N1[g0]||F1[g0]||(F1[g0]=Ee.call(s0));F1=Ei(F1)}Se.apply(s0,F1),W0&&!$&&F1.length>0&&J0+N.length>1&&Q0.uniqueSort(s0)}return W0&&(ot=Zo,X=at),N1};return S?Xt(x):x}return B=Q0.compile=function(m,N){var S,U=[],x=[],$=Li[m+" "];if(!$){for(N||(N=g(m)),S=N.length;S--;)$=fb(N[S]),$[Y0]?U.push($):x.push($);$=Li(m,Af(x,U)),$.selector=m}return $},y=Q0.select=function(m,N,S,U){var x,$,t0,p0,s0,W0=typeof m=="function"&&m,q0=!U&&g(m=W0.selector||m);if(S=S||[],q0.length===1){if($=q0[0]=q0[0].slice(0),$.length>2&&(t0=$[0]).type==="ID"&&N.nodeType===9&&y0&&l.relative[$[1].type]){if(N=(l.find.ID(t0.matches[0].replace(pe,Me),N)||[])[0],N)W0&&(N=N.parentNode);else return S;m=m.slice($.shift().value.length)}for(x=Ni.needsContext.test(m)?0:$.length;x--&&(t0=$[x],!l.relative[p0=t0.type]);)if((s0=l.find[p0])&&(U=s0(t0.matches[0].replace(pe,Me),Ob.test($[0].type)&&Ab(N.parentNode)||N))){if($.splice(x,1),m=U.length&&vi($),!m)return Se.apply(S,U),S;break}}return(W0||B(m,q0))(U,N,!y0,S,!N||Ob.test(m)&&Ab(N.parentNode)||N),S},O.sortStable=Y0.split("").sort(z2).join("")===Y0,O.detectDuplicates=!!Z,P(),O.sortDetached=mt(function(m){return m.compareDocumentPosition(H.createElement("fieldset"))&1}),mt(function(m){return m.innerHTML="",m.firstChild.getAttribute("href")==="#"})||db("type|href|height|width",function(m,N,S){if(!S)return m.getAttribute(N,N.toLowerCase()==="type"?1:2)}),(!O.attributes||!mt(function(m){return m.innerHTML="",m.firstChild.setAttribute("value",""),m.firstChild.getAttribute("value")===""}))&&db("value",function(m,N,S){if(!S&&m.nodeName.toLowerCase()==="input")return m.defaultValue}),mt(function(m){return m.getAttribute("disabled")==null})||db(zb,function(m,N,S){var U;if(!S)return m[N]===!0?N.toLowerCase():(U=m.getAttributeNode(N))&&U.specified?U.value:null}),Q0}(t);d.find=D,d.expr=D.selectors,d.expr[":"]=d.expr.pseudos,d.uniqueSort=d.unique=D.uniqueSort,d.text=D.getText,d.isXMLDoc=D.isXML,d.contains=D.contains,d.escapeSelector=D.escape;var J=function(c,z,O){for(var l=[],q=O!==void 0;(c=c[z])&&c.nodeType!==9;)if(c.nodeType===1){if(q&&d(c).is(O))break;l.push(c)}return l},G=function(c,z){for(var O=[];c;c=c.nextSibling)c.nodeType===1&&c!==z&&O.push(c);return O},K=d.expr.match.needsContext;function n0(c,z){return c.nodeName&&c.nodeName.toLowerCase()===z.toLowerCase()}var e0=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O0(c,z,O){return _(z)?d.grep(c,function(l,q){return!!z.call(l,q,l)!==O}):z.nodeType?d.grep(c,function(l){return l===z!==O}):typeof z!="string"?d.grep(c,function(l){return s.call(z,l)>-1!==O}):d.filter(z,c,O)}d.filter=function(c,z,O){var l=z[0];return O&&(c=":not("+c+")"),z.length===1&&l.nodeType===1?d.find.matchesSelector(l,c)?[l]:[]:d.find.matches(c,d.grep(z,function(q){return q.nodeType===1}))},d.fn.extend({find:function(c){var z,O,l=this.length,q=this;if(typeof c!="string")return this.pushStack(d(c).filter(function(){for(z=0;z1?d.uniqueSort(O):O},filter:function(c){return this.pushStack(O0(this,c||[],!1))},not:function(c){return this.pushStack(O0(this,c||[],!0))},is:function(c){return!!O0(this,typeof c=="string"&&K.test(c)?d(c):c||[],!1).length}});var M0,l0=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,m0=d.fn.init=function(c,z,O){var l,q;if(!c)return this;if(O=O||M0,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?l=[null,c,null]:l=l0.exec(c),l&&(l[1]||!z))if(l[1]){if(z=z instanceof d?z[0]:z,d.merge(this,d.parseHTML(l[1],z&&z.nodeType?z.ownerDocument||z:L,!0)),e0.test(l[1])&&d.isPlainObject(z))for(l in z)_(this[l])?this[l](z[l]):this.attr(l,z[l]);return this}else return q=L.getElementById(l[2]),q&&(this[0]=q,this.length=1),this;else return!z||z.jquery?(z||O).find(c):this.constructor(z).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(_(c))return O.ready!==void 0?O.ready(c):c(d)}return d.makeArray(c,this)};m0.prototype=d.fn,M0=d(L);var c1=/^(?:parents|prev(?:Until|All))/,C0={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(c){var z=d(c,this),O=z.length;return this.filter(function(){for(var l=0;l-1:O.nodeType===1&&d.find.matchesSelector(O,c))){h.push(O);break}}return this.pushStack(h.length>1?d.uniqueSort(h):h)},index:function(c){return c?typeof c=="string"?s.call(d(c),this[0]):s.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,z){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(c,z))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function w1(c,z){for(;(c=c[z])&&c.nodeType!==1;);return c}d.each({parent:function(c){var z=c.parentNode;return z&&z.nodeType!==11?z:null},parents:function(c){return J(c,"parentNode")},parentsUntil:function(c,z,O){return J(c,"parentNode",O)},next:function(c){return w1(c,"nextSibling")},prev:function(c){return w1(c,"previousSibling")},nextAll:function(c){return J(c,"nextSibling")},prevAll:function(c){return J(c,"previousSibling")},nextUntil:function(c,z,O){return J(c,"nextSibling",O)},prevUntil:function(c,z,O){return J(c,"previousSibling",O)},siblings:function(c){return G((c.parentNode||{}).firstChild,c)},children:function(c){return G(c.firstChild)},contents:function(c){return c.contentDocument!=null&&i(c.contentDocument)?c.contentDocument:(n0(c,"template")&&(c=c.content||c),d.merge([],c.childNodes))}},function(c,z){d.fn[c]=function(O,l){var q=d.map(this,z,O);return c.slice(-5)!=="Until"&&(l=O),l&&typeof l=="string"&&(q=d.filter(l,q)),this.length>1&&(C0[c]||d.uniqueSort(q),c1.test(c)&&q.reverse()),this.pushStack(q)}});var i1=/[^\x20\t\r\n\f]+/g;function R1(c){var z={};return d.each(c.match(i1)||[],function(O,l){z[l]=!0}),z}d.Callbacks=function(c){c=typeof c=="string"?R1(c):d.extend({},c);var z,O,l,q,h=[],g=[],B=-1,y=function(){for(q=q||c.once,l=z=!0;g.length;B=-1)for(O=g.shift();++B-1;)h.splice(P,1),P<=B&&B--}),this},has:function(F){return F?d.inArray(F,h)>-1:h.length>0},empty:function(){return h&&(h=[]),this},disable:function(){return q=g=[],h=O="",this},disabled:function(){return!h},lock:function(){return q=g=[],!O&&!z&&(h=O=""),this},locked:function(){return!!q},fireWith:function(F,Z){return q||(Z=Z||[],Z=[F,Z.slice?Z.slice():Z],g.push(Z),z||y()),this},fire:function(){return X.fireWith(this,arguments),this},fired:function(){return!!l}};return X};function r1(c){return c}function G0(c){throw c}function U0(c,z,O,l){var q;try{c&&_(q=c.promise)?q.call(c).done(z).fail(O):c&&_(q=c.then)?q.call(c,z,O):z.apply(void 0,[c].slice(l))}catch(h){O.apply(void 0,[h])}}d.extend({Deferred:function(c){var z=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],O="pending",l={state:function(){return O},always:function(){return q.done(arguments).fail(arguments),this},catch:function(h){return l.then(null,h)},pipe:function(){var h=arguments;return d.Deferred(function(g){d.each(z,function(B,y){var X=_(h[y[4]])&&h[y[4]];q[y[1]](function(){var F=X&&X.apply(this,arguments);F&&_(F.promise)?F.promise().progress(g.notify).done(g.resolve).fail(g.reject):g[y[0]+"With"](this,X?[F]:arguments)})}),h=null}).promise()},then:function(h,g,B){var y=0;function X(F,Z,P,H){return function(){var A0=this,y0=arguments,d0=function(){var _1,rt;if(!(F=y&&(P!==G0&&(A0=void 0,y0=[_1]),Z.rejectWith(A0,y0))}};F?y1():(d.Deferred.getStackHook&&(y1.stackTrace=d.Deferred.getStackHook()),t.setTimeout(y1))}}return d.Deferred(function(F){z[0][3].add(X(0,F,_(B)?B:r1,F.notifyWith)),z[1][3].add(X(0,F,_(h)?h:r1)),z[2][3].add(X(0,F,_(g)?g:G0))}).promise()},promise:function(h){return h!=null?d.extend(h,l):l}},q={};return d.each(z,function(h,g){var B=g[2],y=g[5];l[g[1]]=B.add,y&&B.add(function(){O=y},z[3-h][2].disable,z[3-h][3].disable,z[0][2].lock,z[0][3].lock),B.add(g[3].fire),q[g[0]]=function(){return q[g[0]+"With"](this===q?void 0:this,arguments),this},q[g[0]+"With"]=B.fireWith}),l.promise(q),c&&c.call(q,q),q},when:function(c){var z=arguments.length,O=z,l=Array(O),q=p.call(arguments),h=d.Deferred(),g=function(B){return function(y){l[B]=this,q[B]=arguments.length>1?p.call(arguments):y,--z||h.resolveWith(l,q)}};if(z<=1&&(U0(c,h.done(g(O)).resolve,h.reject,!z),h.state()==="pending"||_(q[O]&&q[O].then)))return h.then();for(;O--;)U0(q[O],g(O),h.reject);return h.promise()}});var N0=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(c,z){t.console&&t.console.warn&&c&&N0.test(c.name)&&t.console.warn("jQuery.Deferred exception: "+c.message,c.stack,z)},d.readyException=function(c){t.setTimeout(function(){throw c})};var f0=d.Deferred();d.fn.ready=function(c){return f0.then(c).catch(function(z){d.readyException(z)}),this},d.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(c!==!0&&--d.readyWait>0)&&f0.resolveWith(L,[d]))}}),d.ready.then=f0.then;function V0(){L.removeEventListener("DOMContentLoaded",V0),t.removeEventListener("load",V0),d.ready()}L.readyState==="complete"||L.readyState!=="loading"&&!L.documentElement.doScroll?t.setTimeout(d.ready):(L.addEventListener("DOMContentLoaded",V0),t.addEventListener("load",V0));var K0=function(c,z,O,l,q,h,g){var B=0,y=c.length,X=O==null;if(w(O)==="object"){q=!0;for(B in O)K0(c,z,B,O[B],!0,h,g)}else if(l!==void 0&&(q=!0,_(l)||(g=!0),X&&(g?(z.call(c,l),z=null):(X=z,z=function(F,Z,P){return X.call(d(F),P)})),z))for(;B1,null,!0)},removeData:function(c){return this.each(function(){R0.remove(this,c)})}}),d.extend({queue:function(c,z,O){var l;if(c)return z=(z||"fx")+"queue",l=Q.get(c,z),O&&(!l||Array.isArray(O)?l=Q.access(c,z,d.makeArray(O)):l.push(O)),l||[]},dequeue:function(c,z){z=z||"fx";var O=d.queue(c,z),l=O.length,q=O.shift(),h=d._queueHooks(c,z),g=function(){d.dequeue(c,z)};q==="inprogress"&&(q=O.shift(),l--),q&&(z==="fx"&&O.unshift("inprogress"),delete h.stop,q.call(c,g,h)),!l&&h&&h.empty.fire()},_queueHooks:function(c,z){var O=z+"queueHooks";return Q.get(c,O)||Q.access(c,O,{empty:d.Callbacks("once memory").add(function(){Q.remove(c,[z+"queue",O])})})}}),d.fn.extend({queue:function(c,z){var O=2;return typeof c!="string"&&(z=c,c="fx",O--),arguments.length\x20\t\r\n\f]*)/i,Nr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=L.createDocumentFragment(),z=c.appendChild(L.createElement("div")),O=L.createElement("input");O.setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),z.appendChild(O),W.checkClone=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="",W.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue,z.innerHTML="",W.option=!!z.lastChild})();var gt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,W.option||(gt.optgroup=gt.option=[1,""]);function tt(c,z){var O;return typeof c.getElementsByTagName<"u"?O=c.getElementsByTagName(z||"*"):typeof c.querySelectorAll<"u"?O=c.querySelectorAll(z||"*"):O=[],z===void 0||z&&n0(c,z)?d.merge([c],O):O}function QM(c,z){for(var O=0,l=c.length;O-1){q&&q.push(h);continue}if(X=ie(h),g=tt(Z.appendChild(h),"script"),X&&QM(g),O)for(F=0;h=g[F++];)Nr.test(h.type||"")&&O.push(h)}return Z}var vr=/^([^.]*)(?:\.(.+)|)/;function j2(){return!0}function Y2(){return!1}function qu(c,z){return c===hu()==(z==="focus")}function hu(){try{return L.activeElement}catch{}}function JM(c,z,O,l,q,h){var g,B;if(typeof z=="object"){typeof O!="string"&&(l=l||O,O=void 0);for(B in z)JM(c,B,O,l,z[B],h);return c}if(l==null&&q==null?(q=O,l=O=void 0):q==null&&(typeof O=="string"?(q=l,l=void 0):(q=l,l=O,O=void 0)),q===!1)q=Y2;else if(!q)return c;return h===1&&(g=q,q=function(y){return d().off(y),g.apply(this,arguments)},q.guid=g.guid||(g.guid=d.guid++)),c.each(function(){d.event.add(this,z,q,l,O)})}d.event={global:{},add:function(c,z,O,l,q){var h,g,B,y,X,F,Z,P,H,A0,y0,d0=Q.get(c);if(j(c))for(O.handler&&(h=O,O=h.handler,q=h.selector),q&&d.find.matchesSelector(jt,q),O.guid||(O.guid=d.guid++),(y=d0.events)||(y=d0.events=Object.create(null)),(g=d0.handle)||(g=d0.handle=function(y1){return typeof d<"u"&&d.event.triggered!==y1.type?d.event.dispatch.apply(c,arguments):void 0}),z=(z||"").match(i1)||[""],X=z.length;X--;)B=vr.exec(z[X])||[],H=y0=B[1],A0=(B[2]||"").split(".").sort(),H&&(Z=d.event.special[H]||{},H=(q?Z.delegateType:Z.bindType)||H,Z=d.event.special[H]||{},F=d.extend({type:H,origType:y0,data:l,handler:O,guid:O.guid,selector:q,needsContext:q&&d.expr.match.needsContext.test(q),namespace:A0.join(".")},h),(P=y[H])||(P=y[H]=[],P.delegateCount=0,(!Z.setup||Z.setup.call(c,l,A0,g)===!1)&&c.addEventListener&&c.addEventListener(H,g)),Z.add&&(Z.add.call(c,F),F.handler.guid||(F.handler.guid=O.guid)),q?P.splice(P.delegateCount++,0,F):P.push(F),d.event.global[H]=!0)},remove:function(c,z,O,l,q){var h,g,B,y,X,F,Z,P,H,A0,y0,d0=Q.hasData(c)&&Q.get(c);if(!(!d0||!(y=d0.events))){for(z=(z||"").match(i1)||[""],X=z.length;X--;){if(B=vr.exec(z[X])||[],H=y0=B[1],A0=(B[2]||"").split(".").sort(),!H){for(H in y)d.event.remove(c,H+z[X],O,l,!0);continue}for(Z=d.event.special[H]||{},H=(l?Z.delegateType:Z.bindType)||H,P=y[H]||[],B=B[2]&&new RegExp("(^|\\.)"+A0.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=h=P.length;h--;)F=P[h],(q||y0===F.origType)&&(!O||O.guid===F.guid)&&(!B||B.test(F.namespace))&&(!l||l===F.selector||l==="**"&&F.selector)&&(P.splice(h,1),F.selector&&P.delegateCount--,Z.remove&&Z.remove.call(c,F));g&&!P.length&&((!Z.teardown||Z.teardown.call(c,A0,d0.handle)===!1)&&d.removeEvent(c,H,d0.handle),delete y[H])}d.isEmptyObject(y)&&Q.remove(c,"handle events")}},dispatch:function(c){var z,O,l,q,h,g,B=new Array(arguments.length),y=d.event.fix(c),X=(Q.get(this,"events")||Object.create(null))[y.type]||[],F=d.event.special[y.type]||{};for(B[0]=y,z=1;z=1)){for(;X!==this;X=X.parentNode||this)if(X.nodeType===1&&!(c.type==="click"&&X.disabled===!0)){for(h=[],g={},O=0;O-1:d.find(q,this,null,[X]).length),g[q]&&h.push(l);h.length&&B.push({elem:X,handlers:h})}}return X=this,y\s*$/g;function Tr(c,z){return n0(c,"table")&&n0(z.nodeType!==11?z:z.firstChild,"tr")&&d(c).children("tbody")[0]||c}function mu(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function Ru(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Er(c,z){var O,l,q,h,g,B,y;if(z.nodeType===1){if(Q.hasData(c)&&(h=Q.get(c),y=h.events,y)){Q.remove(z,"handle events");for(q in y)for(O=0,l=y[q].length;O1&&typeof H=="string"&&!W.checkClone&&gu.test(H))return c.each(function(y0){var d0=c.eq(y0);A0&&(z[0]=H.call(this,y0,d0.html())),$2(d0,z,O,l)});if(Z&&(q=Br(z,c[0].ownerDocument,!1,c,l),h=q.firstChild,q.childNodes.length===1&&(q=h),h||l)){for(g=d.map(tt(q,"script"),mu),B=g.length;F0&&QM(g,!y&&tt(c,"script")),B},cleanData:function(c){for(var z,O,l,q=d.event.special,h=0;(O=c[h])!==void 0;h++)if(j(O)){if(z=O[Q.expando]){if(z.events)for(l in z.events)q[l]?d.event.remove(O,l):d.removeEvent(O,l,z.handle);O[Q.expando]=void 0}O[R0.expando]&&(O[R0.expando]=void 0)}}}),d.fn.extend({detach:function(c){return Sr(this,c,!0)},remove:function(c){return Sr(this,c)},text:function(c){return K0(this,function(z){return z===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=z)})},null,c,arguments.length)},append:function(){return $2(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=Tr(this,c);z.appendChild(c)}})},prepend:function(){return $2(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var z=Tr(this,c);z.insertBefore(c,z.firstChild)}})},before:function(){return $2(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return $2(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,z=0;(c=this[z])!=null;z++)c.nodeType===1&&(d.cleanData(tt(c,!1)),c.textContent="");return this},clone:function(c,z){return c=c??!1,z=z??c,this.map(function(){return d.clone(this,c,z)})},html:function(c){return K0(this,function(z){var O=this[0]||{},l=0,q=this.length;if(z===void 0&&O.nodeType===1)return O.innerHTML;if(typeof z=="string"&&!Wu.test(z)&&!gt[(yr.exec(z)||["",""])[1].toLowerCase()]){z=d.htmlPrefilter(z);try{for(;l=0&&(y+=Math.max(0,Math.ceil(c["offset"+z[0].toUpperCase()+z.slice(1)]-h-y-B-.5))||0),y}function Fr(c,z,O){var l=_i(c),q=!W.boxSizingReliable()||O,h=q&&d.css(c,"boxSizing",!1,l)==="border-box",g=h,B=$o(c,z,l),y="offset"+z[0].toUpperCase()+z.slice(1);if(ZM.test(B)){if(!O)return B;B="auto"}return(!W.boxSizingReliable()&&h||!W.reliableTrDimensions()&&n0(c,"tr")||B==="auto"||!parseFloat(B)&&d.css(c,"display",!1,l)==="inline")&&c.getClientRects().length&&(h=d.css(c,"boxSizing",!1,l)==="border-box",g=y in c,g&&(B=c[y])),B=parseFloat(B)||0,B+ob(c,z,O||(h?"border":"content"),g,l,B)+"px"}d.extend({cssHooks:{opacity:{get:function(c,z){if(z){var O=$o(c,"opacity");return O===""?"1":O}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(c,z,O,l){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var q,h,g,B=Y(z),y=tb.test(z),X=c.style;if(y||(z=eb(B)),g=d.cssHooks[z]||d.cssHooks[B],O!==void 0){if(h=typeof O,h==="string"&&(q=Te.exec(O))&&q[1]&&(O=Rr(c,z,q),h="number"),O==null||O!==O)return;h==="number"&&!y&&(O+=q&&q[3]||(d.cssNumber[B]?"":"px")),!W.clearCloneStyle&&O===""&&z.indexOf("background")===0&&(X[z]="inherit"),(!g||!("set"in g)||(O=g.set(c,O,l))!==void 0)&&(y?X.setProperty(z,O):X[z]=O)}else return g&&"get"in g&&(q=g.get(c,!1,l))!==void 0?q:X[z]}},css:function(c,z,O,l){var q,h,g,B=Y(z),y=tb.test(z);return y||(z=eb(B)),g=d.cssHooks[z]||d.cssHooks[B],g&&"get"in g&&(q=g.get(c,!0,O)),q===void 0&&(q=$o(c,z,l)),q==="normal"&&z in Pr&&(q=Pr[z]),O===""||O?(h=parseFloat(q),O===!0||isFinite(h)?h||0:q):q}}),d.each(["height","width"],function(c,z){d.cssHooks[z]={get:function(O,l,q){if(l)return vu.test(d.css(O,"display"))&&(!O.getClientRects().length||!O.getBoundingClientRect().width)?wr(O,Tu,function(){return Fr(O,z,q)}):Fr(O,z,q)},set:function(O,l,q){var h,g=_i(O),B=!W.scrollboxSize()&&g.position==="absolute",y=B||q,X=y&&d.css(O,"boxSizing",!1,g)==="border-box",F=q?ob(O,z,q,X,g):0;return X&&B&&(F-=Math.ceil(O["offset"+z[0].toUpperCase()+z.slice(1)]-parseFloat(g[z])-ob(O,z,"border",!1,g)-.5)),F&&(h=Te.exec(l))&&(h[3]||"px")!=="px"&&(O.style[z]=l,l=d.css(O,z)),Ir(O,l,F)}}}),d.cssHooks.marginLeft=Xr(W.reliableMarginLeft,function(c,z){if(z)return(parseFloat($o(c,"marginLeft"))||c.getBoundingClientRect().left-wr(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(c,z){d.cssHooks[c+z]={expand:function(O){for(var l=0,q={},h=typeof O=="string"?O.split(" "):[O];l<4;l++)q[c+ct[l]+z]=h[l]||h[l-2]||h[0];return q}},c!=="margin"&&(d.cssHooks[c+z].set=Ir)}),d.fn.extend({css:function(c,z){return K0(this,function(O,l,q){var h,g,B={},y=0;if(Array.isArray(l)){for(h=_i(O),g=l.length;y1)}});function et(c,z,O,l,q){return new et.prototype.init(c,z,O,l,q)}d.Tween=et,et.prototype={constructor:et,init:function(c,z,O,l,q,h){this.elem=c,this.prop=O,this.easing=q||d.easing._default,this.options=z,this.start=this.now=this.cur(),this.end=l,this.unit=h||(d.cssNumber[O]?"":"px")},cur:function(){var c=et.propHooks[this.prop];return c&&c.get?c.get(this):et.propHooks._default.get(this)},run:function(c){var z,O=et.propHooks[this.prop];return this.options.duration?this.pos=z=d.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=z=c,this.now=(this.end-this.start)*z+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),O&&O.set?O.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(c){var z;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(z=d.css(c.elem,c.prop,""),!z||z==="auto"?0:z)},set:function(c){d.fx.step[c.prop]?d.fx.step[c.prop](c):c.elem.nodeType===1&&(d.cssHooks[c.prop]||c.elem.style[eb(c.prop)]!=null)?d.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},d.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},d.fx=et.prototype.init,d.fx.step={};var G2,mi,Eu=/^(?:toggle|show|hide)$/,Su=/queueHooks$/;function nb(){mi&&(L.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(nb):t.setTimeout(nb,d.fx.interval),d.fx.tick())}function Hr(){return t.setTimeout(function(){G2=void 0}),G2=Date.now()}function Ri(c,z){var O,l=0,q={height:c};for(z=z?1:0;l<4;l+=2-z)O=ct[l],q["margin"+O]=q["padding"+O]=c;return z&&(q.opacity=q.width=c),q}function Ur(c,z,O){for(var l,q=(xt.tweeners[z]||[]).concat(xt.tweeners["*"]),h=0,g=q.length;h1)},removeAttr:function(c){return this.each(function(){d.removeAttr(this,c)})}}),d.extend({attr:function(c,z,O){var l,q,h=c.nodeType;if(!(h===3||h===8||h===2)){if(typeof c.getAttribute>"u")return d.prop(c,z,O);if((h!==1||!d.isXMLDoc(c))&&(q=d.attrHooks[z.toLowerCase()]||(d.expr.match.bool.test(z)?jr:void 0)),O!==void 0){if(O===null){d.removeAttr(c,z);return}return q&&"set"in q&&(l=q.set(c,O,z))!==void 0?l:(c.setAttribute(z,O+""),O)}return q&&"get"in q&&(l=q.get(c,z))!==null?l:(l=d.find.attr(c,z),l??void 0)}},attrHooks:{type:{set:function(c,z){if(!W.radioValue&&z==="radio"&&n0(c,"input")){var O=c.value;return c.setAttribute("type",z),O&&(c.value=O),z}}}},removeAttr:function(c,z){var O,l=0,q=z&&z.match(i1);if(q&&c.nodeType===1)for(;O=q[l++];)c.removeAttribute(O)}}),jr={set:function(c,z,O){return z===!1?d.removeAttr(c,O):c.setAttribute(O,O),O}},d.each(d.expr.match.bool.source.match(/\w+/g),function(c,z){var O=Go[z]||d.find.attr;Go[z]=function(l,q,h){var g,B,y=q.toLowerCase();return h||(B=Go[y],Go[y]=g,g=O(l,q,h)!=null?y:null,Go[y]=B),g}});var Xu=/^(?:input|select|textarea|button)$/i,ku=/^(?:a|area)$/i;d.fn.extend({prop:function(c,z){return K0(this,d.prop,c,z,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[d.propFix[c]||c]})}}),d.extend({prop:function(c,z,O){var l,q,h=c.nodeType;if(!(h===3||h===8||h===2))return(h!==1||!d.isXMLDoc(c))&&(z=d.propFix[z]||z,q=d.propHooks[z]),O!==void 0?q&&"set"in q&&(l=q.set(c,O,z))!==void 0?l:c[z]=O:q&&"get"in q&&(l=q.get(c,z))!==null?l:c[z]},propHooks:{tabIndex:{get:function(c){var z=d.find.attr(c,"tabindex");return z?parseInt(z,10):Xu.test(c.nodeName)||ku.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),W.optSelected||(d.propHooks.selected={get:function(c){var z=c.parentNode;return z&&z.parentNode&&z.parentNode.selectedIndex,null},set:function(c){var z=c.parentNode;z&&(z.selectedIndex,z.parentNode&&z.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function c2(c){var z=c.match(i1)||[];return z.join(" ")}function r2(c){return c.getAttribute&&c.getAttribute("class")||""}function ib(c){return Array.isArray(c)?c:typeof c=="string"?c.match(i1)||[]:[]}d.fn.extend({addClass:function(c){var z,O,l,q,h,g;return _(c)?this.each(function(B){d(this).addClass(c.call(this,B,r2(this)))}):(z=ib(c),z.length?this.each(function(){if(l=r2(this),O=this.nodeType===1&&" "+c2(l)+" ",O){for(h=0;h-1;)O=O.replace(" "+q+" "," ");g=c2(O),l!==g&&this.setAttribute("class",g)}}):this):this.attr("class","")},toggleClass:function(c,z){var O,l,q,h,g=typeof c,B=g==="string"||Array.isArray(c);return _(c)?this.each(function(y){d(this).toggleClass(c.call(this,y,r2(this),z),z)}):typeof z=="boolean"&&B?z?this.addClass(c):this.removeClass(c):(O=ib(c),this.each(function(){if(B)for(h=d(this),q=0;q-1)return!0;return!1}});var Cu=/\r/g;d.fn.extend({val:function(c){var z,O,l,q=this[0];return arguments.length?(l=_(c),this.each(function(h){var g;this.nodeType===1&&(l?g=c.call(this,h,d(this).val()):g=c,g==null?g="":typeof g=="number"?g+="":Array.isArray(g)&&(g=d.map(g,function(B){return B==null?"":B+""})),z=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!z||!("set"in z)||z.set(this,g,"value")===void 0)&&(this.value=g))})):q?(z=d.valHooks[q.type]||d.valHooks[q.nodeName.toLowerCase()],z&&"get"in z&&(O=z.get(q,"value"))!==void 0?O:(O=q.value,typeof O=="string"?O.replace(Cu,""):O??"")):void 0}}),d.extend({valHooks:{option:{get:function(c){var z=d.find.attr(c,"value");return z??c2(d.text(c))}},select:{get:function(c){var z,O,l,q=c.options,h=c.selectedIndex,g=c.type==="select-one",B=g?null:[],y=g?h+1:q.length;for(h<0?l=y:l=g?h:0;l-1)&&(O=!0);return O||(c.selectedIndex=-1),h}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(c,z){if(Array.isArray(z))return c.checked=d.inArray(d(c).val(),z)>-1}},W.checkOn||(d.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})}),W.focusin="onfocusin"in t;var Yr=/^(?:focusinfocus|focusoutblur)$/,$r=function(c){c.stopPropagation()};d.extend(d.event,{trigger:function(c,z,O,l){var q,h,g,B,y,X,F,Z,P=[O||L],H=A.call(c,"type")?c.type:c,A0=A.call(c,"namespace")?c.namespace.split("."):[];if(h=Z=g=O=O||L,!(O.nodeType===3||O.nodeType===8)&&!Yr.test(H+d.event.triggered)&&(H.indexOf(".")>-1&&(A0=H.split("."),H=A0.shift(),A0.sort()),y=H.indexOf(":")<0&&"on"+H,c=c[d.expando]?c:new d.Event(H,typeof c=="object"&&c),c.isTrigger=l?2:3,c.namespace=A0.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+A0.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=O),z=z==null?[c]:d.makeArray(z,[c]),F=d.event.special[H]||{},!(!l&&F.trigger&&F.trigger.apply(O,z)===!1))){if(!l&&!F.noBubble&&!R(O)){for(B=F.delegateType||H,Yr.test(B+H)||(h=h.parentNode);h;h=h.parentNode)P.push(h),g=h;g===(O.ownerDocument||L)&&P.push(g.defaultView||g.parentWindow||t)}for(q=0;(h=P[q++])&&!c.isPropagationStopped();)Z=h,c.type=q>1?B:F.bindType||H,X=(Q.get(h,"events")||Object.create(null))[c.type]&&Q.get(h,"handle"),X&&X.apply(h,z),X=y&&h[y],X&&X.apply&&j(h)&&(c.result=X.apply(h,z),c.result===!1&&c.preventDefault());return c.type=H,!l&&!c.isDefaultPrevented()&&(!F._default||F._default.apply(P.pop(),z)===!1)&&j(O)&&y&&_(O[H])&&!R(O)&&(g=O[y],g&&(O[y]=null),d.event.triggered=H,c.isPropagationStopped()&&Z.addEventListener(H,$r),O[H](),c.isPropagationStopped()&&Z.removeEventListener(H,$r),d.event.triggered=void 0,g&&(O[y]=g)),c.result}},simulate:function(c,z,O){var l=d.extend(new d.Event,O,{type:c,isSimulated:!0});d.event.trigger(l,null,z)}}),d.fn.extend({trigger:function(c,z){return this.each(function(){d.event.trigger(c,z,this)})},triggerHandler:function(c,z){var O=this[0];if(O)return d.event.trigger(c,z,O,!0)}}),W.focusin||d.each({focus:"focusin",blur:"focusout"},function(c,z){var O=function(l){d.event.simulate(z,l.target,d.event.fix(l))};d.event.special[z]={setup:function(){var l=this.ownerDocument||this.document||this,q=Q.access(l,z);q||l.addEventListener(c,O,!0),Q.access(l,z,(q||0)+1)},teardown:function(){var l=this.ownerDocument||this.document||this,q=Q.access(l,z)-1;q?Q.access(l,z,q):(l.removeEventListener(c,O,!0),Q.remove(l,z))}}});var Vo=t.location,Gr={guid:Date.now()},pb=/\?/;d.parseXML=function(c){var z,O;if(!c||typeof c!="string")return null;try{z=new t.DOMParser().parseFromString(c,"text/xml")}catch{}return O=z&&z.getElementsByTagName("parsererror")[0],(!z||O)&&d.error("Invalid XML: "+(O?d.map(O.childNodes,function(l){return l.textContent}).join(` +`):c)),z};var Du=/\[\]$/,Vr=/\r?\n/g,Pu=/^(?:submit|button|image|reset|file)$/i,Iu=/^(?:input|select|textarea|keygen)/i;function Mb(c,z,O,l){var q;if(Array.isArray(z))d.each(z,function(h,g){O||Du.test(c)?l(c,g):Mb(c+"["+(typeof g=="object"&&g!=null?h:"")+"]",g,O,l)});else if(!O&&w(z)==="object")for(q in z)Mb(c+"["+q+"]",z[q],O,l);else l(c,z)}d.param=function(c,z){var O,l=[],q=function(h,g){var B=_(g)?g():g;l[l.length]=encodeURIComponent(h)+"="+encodeURIComponent(B??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!d.isPlainObject(c))d.each(c,function(){q(this.name,this.value)});else for(O in c)Mb(O,c[O],z,q);return l.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=d.prop(this,"elements");return c?d.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!d(this).is(":disabled")&&Iu.test(this.nodeName)&&!Pu.test(c)&&(this.checked||!Yo.test(c))}).map(function(c,z){var O=d(this).val();return O==null?null:Array.isArray(O)?d.map(O,function(l){return{name:z.name,value:l.replace(Vr,`\r `)}}):{name:z.name,value:O.replace(Vr,`\r -`)}}).get()}});var Fu=/%20/g,Hu=/#.*$/,Uu=/([?&])_=[^&]*/,ju=/^(.*?):[ \t]*([^\r\n]*)$/mg,Yu=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$u=/^(?:GET|HEAD)$/,Gu=/^\/\//,Kr={},bb={},Qr="*/".concat("*"),sb=L.createElement("a");sb.href=Vo.href;function Jr(c){return function(z,O){typeof z!="string"&&(O=z,z="*");var l,q=0,h=z.toLowerCase().match(i1)||[];if(_(O))for(;l=h[q++];)l[0]==="+"?(l=l.slice(1)||"*",(c[l]=c[l]||[]).unshift(O)):(c[l]=c[l]||[]).push(O)}}function Zr(c,z,O,l){var q={},h=c===bb;function g(B){var y;return q[B]=!0,d.each(c[B]||[],function(X,F){var Z=F(z,O,l);if(typeof Z=="string"&&!h&&!q[Z])return z.dataTypes.unshift(Z),g(Z),!1;if(h)return!(y=Z)}),y}return g(z.dataTypes[0])||!q["*"]&&g("*")}function cb(c,z){var O,l,q=d.ajaxSettings.flatOptions||{};for(O in z)z[O]!==void 0&&((q[O]?c:l||(l={}))[O]=z[O]);return l&&d.extend(!0,c,l),c}function Vu(c,z,O){for(var l,q,h,g,B=c.contents,y=c.dataTypes;y[0]==="*";)y.shift(),l===void 0&&(l=c.mimeType||z.getResponseHeader("Content-Type"));if(l){for(q in B)if(B[q]&&B[q].test(l)){y.unshift(q);break}}if(y[0]in O)h=y[0];else{for(q in O){if(!y[0]||c.converters[q+" "+y[0]]){h=q;break}g||(g=q)}h=h||g}if(h)return h!==y[0]&&y.unshift(h),O[h]}function Ku(c,z,O,l){var q,h,g,B,y,X={},F=c.dataTypes.slice();if(F[1])for(g in c.converters)X[g.toLowerCase()]=c.converters[g];for(h=F.shift();h;)if(c.responseFields[h]&&(O[c.responseFields[h]]=z),!y&&l&&c.dataFilter&&(z=c.dataFilter(z,c.dataType)),y=h,h=F.shift(),h){if(h==="*")h=y;else if(y!=="*"&&y!==h){if(g=X[y+" "+h]||X["* "+h],!g){for(q in X)if(B=q.split(" "),B[1]===h&&(g=X[y+" "+B[0]]||X["* "+B[0]],g)){g===!0?g=X[q]:X[q]!==!0&&(h=B[0],F.unshift(B[1]));break}}if(g!==!0)if(g&&c.throws)z=g(z);else try{z=g(z)}catch(Z){return{state:"parsererror",error:g?Z:"No conversion from "+y+" to "+h}}}}return{state:"success",data:z}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Vo.href,type:"GET",isLocal:Yu.test(Vo.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qr,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,z){return z?cb(cb(c,d.ajaxSettings),z):cb(d.ajaxSettings,c)},ajaxPrefilter:Jr(Kr),ajaxTransport:Jr(bb),ajax:function(c,z){typeof c=="object"&&(z=c,c=void 0),z=z||{};var O,l,q,h,g,B,y,X,F,Z,P=d.ajaxSetup({},z),H=P.context||P,A0=P.context&&(H.nodeType||H.jquery)?d(H):d.event,y0=d.Deferred(),d0=d.Callbacks("once memory"),y1=P.statusCode||{},_1={},rt={},Y0="canceled",L0={readyState:0,getResponseHeader:function(X0){var l1;if(y){if(!h)for(h={};l1=ju.exec(q);)h[l1[1].toLowerCase()+" "]=(h[l1[1].toLowerCase()+" "]||[]).concat(l1[2]);l1=h[X0.toLowerCase()+" "]}return l1==null?null:l1.join(", ")},getAllResponseHeaders:function(){return y?q:null},setRequestHeader:function(X0,l1){return y==null&&(X0=rt[X0.toLowerCase()]=rt[X0.toLowerCase()]||X0,_1[X0]=l1),this},overrideMimeType:function(X0){return y==null&&(P.mimeType=X0),this},statusCode:function(X0){var l1;if(X0)if(y)L0.always(X0[L0.status]);else for(l1 in X0)y1[l1]=[y1[l1],X0[l1]];return this},abort:function(X0){var l1=X0||Y0;return O&&O.abort(l1),ot(0,l1),this}};if(y0.promise(L0),P.url=((c||P.url||Vo.href)+"").replace(Gu,Vo.protocol+"//"),P.type=z.method||z.type||P.method||P.type,P.dataTypes=(P.dataType||"*").toLowerCase().match(i1)||[""],P.crossDomain==null){B=L.createElement("a");try{B.href=P.url,B.href=B.href,P.crossDomain=sb.protocol+"//"+sb.host!=B.protocol+"//"+B.host}catch{P.crossDomain=!0}}if(P.data&&P.processData&&typeof P.data!="string"&&(P.data=d.param(P.data,P.traditional)),Zr(Kr,P,z,L0),y)return L0;X=d.event&&P.global,X&&d.active++===0&&d.event.trigger("ajaxStart"),P.type=P.type.toUpperCase(),P.hasContent=!$u.test(P.type),l=P.url.replace(Hu,""),P.hasContent?P.data&&P.processData&&(P.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(P.data=P.data.replace(Fu,"+")):(Z=P.url.slice(l.length),P.data&&(P.processData||typeof P.data=="string")&&(l+=(Mb.test(l)?"&":"?")+P.data,delete P.data),P.cache===!1&&(l=l.replace(Uu,"$1"),Z=(Mb.test(l)?"&":"?")+"_="+Gr.guid+++Z),P.url=l+Z),P.ifModified&&(d.lastModified[l]&&L0.setRequestHeader("If-Modified-Since",d.lastModified[l]),d.etag[l]&&L0.setRequestHeader("If-None-Match",d.etag[l])),(P.data&&P.hasContent&&P.contentType!==!1||z.contentType)&&L0.setRequestHeader("Content-Type",P.contentType),L0.setRequestHeader("Accept",P.dataTypes[0]&&P.accepts[P.dataTypes[0]]?P.accepts[P.dataTypes[0]]+(P.dataTypes[0]!=="*"?", "+Qr+"; q=0.01":""):P.accepts["*"]);for(F in P.headers)L0.setRequestHeader(F,P.headers[F]);if(P.beforeSend&&(P.beforeSend.call(H,L0,P)===!1||y))return L0.abort();if(Y0="abort",d0.add(P.complete),L0.done(P.success),L0.fail(P.error),O=Zr(bb,P,z,L0),!O)ot(-1,"No Transport");else{if(L0.readyState=1,X&&A0.trigger("ajaxSend",[L0,P]),y)return L0;P.async&&P.timeout>0&&(g=t.setTimeout(function(){L0.abort("timeout")},P.timeout));try{y=!1,O.send(_1,ot)}catch(X0){if(y)throw X0;ot(-1,X0)}}function ot(X0,l1,Qo,Li){var zt,z2,a2,nt,Ee,_t=l1;y||(y=!0,g&&t.clearTimeout(g),O=void 0,q=Li||"",L0.readyState=X0>0?4:0,zt=X0>=200&&X0<300||X0===304,Qo&&(nt=Vu(P,L0,Qo)),!zt&&d.inArray("script",P.dataTypes)>-1&&d.inArray("json",P.dataTypes)<0&&(P.converters["text script"]=function(){}),nt=Ku(P,nt,L0,zt),zt?(P.ifModified&&(Ee=L0.getResponseHeader("Last-Modified"),Ee&&(d.lastModified[l]=Ee),Ee=L0.getResponseHeader("etag"),Ee&&(d.etag[l]=Ee)),X0===204||P.type==="HEAD"?_t="nocontent":X0===304?_t="notmodified":(_t=nt.state,z2=nt.data,a2=nt.error,zt=!a2)):(a2=_t,(X0||!_t)&&(_t="error",X0<0&&(X0=0))),L0.status=X0,L0.statusText=(l1||_t)+"",zt?y0.resolveWith(H,[z2,_t,L0]):y0.rejectWith(H,[L0,_t,a2]),L0.statusCode(y1),y1=void 0,X&&A0.trigger(zt?"ajaxSuccess":"ajaxError",[L0,P,zt?z2:a2]),d0.fireWith(H,[L0,_t]),X&&(A0.trigger("ajaxComplete",[L0,P]),--d.active||d.event.trigger("ajaxStop")))}return L0},getJSON:function(c,z,O){return d.get(c,z,O,"json")},getScript:function(c,z){return d.get(c,void 0,z,"script")}}),d.each(["get","post"],function(c,z){d[z]=function(O,l,q,h){return _(l)&&(h=h||q,q=l,l=void 0),d.ajax(d.extend({url:O,type:z,dataType:h,data:l,success:q},d.isPlainObject(O)&&O))}}),d.ajaxPrefilter(function(c){var z;for(z in c.headers)z.toLowerCase()==="content-type"&&(c.contentType=c.headers[z]||"")}),d._evalUrl=function(c,z,O){return d.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(l){d.globalEval(l,z,O)}})},d.fn.extend({wrapAll:function(c){var z;return this[0]&&(_(c)&&(c=c.call(this[0])),z=d(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&z.insertBefore(this[0]),z.map(function(){for(var O=this;O.firstElementChild;)O=O.firstElementChild;return O}).append(this)),this},wrapInner:function(c){return _(c)?this.each(function(z){d(this).wrapInner(c.call(this,z))}):this.each(function(){var z=d(this),O=z.contents();O.length?O.wrapAll(c):z.append(c)})},wrap:function(c){var z=_(c);return this.each(function(O){d(this).wrapAll(z?c.call(this,O):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(c){return!d.expr.pseudos.visible(c)},d.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Qu={0:200,1223:204},Ko=d.ajaxSettings.xhr();W.cors=!!Ko&&"withCredentials"in Ko,W.ajax=Ko=!!Ko,d.ajaxTransport(function(c){var z,O;if(W.cors||Ko&&!c.crossDomain)return{send:function(l,q){var h,g=c.xhr();if(g.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(h in c.xhrFields)g[h]=c.xhrFields[h];c.mimeType&&g.overrideMimeType&&g.overrideMimeType(c.mimeType),!c.crossDomain&&!l["X-Requested-With"]&&(l["X-Requested-With"]="XMLHttpRequest");for(h in l)g.setRequestHeader(h,l[h]);z=function(B){return function(){z&&(z=O=g.onload=g.onerror=g.onabort=g.ontimeout=g.onreadystatechange=null,B==="abort"?g.abort():B==="error"?typeof g.status!="number"?q(0,"error"):q(g.status,g.statusText):q(Qu[g.status]||g.status,g.statusText,(g.responseType||"text")!=="text"||typeof g.responseText!="string"?{binary:g.response}:{text:g.responseText},g.getAllResponseHeaders()))}},g.onload=z(),O=g.onerror=g.ontimeout=z("error"),g.onabort!==void 0?g.onabort=O:g.onreadystatechange=function(){g.readyState===4&&t.setTimeout(function(){z&&O()})},z=z("abort");try{g.send(c.hasContent&&c.data||null)}catch(B){if(z)throw B}},abort:function(){z&&z()}}}),d.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return d.globalEval(c),c}}}),d.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),d.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var z,O;return{send:function(l,q){z=d(" - +