import{c as Gi,g as U1}from"./_commonjsHelpers-CETEcg1t.js";import"./_sentry-release-injection-file-DtsqSwVK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="99fcb658-1fe6-498e-9d1f-867bfcf1c357",e._sentryDebugIdIdentifier="sentry-dbid-99fcb658-1fe6-498e-9d1f-867bfcf1c357")}catch{}})();const Im=Object.prototype.toString;function Hl(e){switch(Im.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Sr(e,Error)}}function vi(e,t){return Im.call(e)===`[object ${t}]`}function Tm(e){return vi(e,"ErrorEvent")}function xp(e){return vi(e,"DOMError")}function W1(e){return vi(e,"DOMException")}function Sn(e){return vi(e,"String")}function Kl(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function zl(e){return e===null||Kl(e)||typeof e!="object"&&typeof e!="function"}function ai(e){return vi(e,"Object")}function Ea(e){return typeof Event<"u"&&Sr(e,Event)}function H1(e){return typeof Element<"u"&&Sr(e,Element)}function K1(e){return vi(e,"RegExp")}function xa(e){return!!(e&&e.then&&typeof e.then=="function")}function z1(e){return ai(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Sr(e,t){try{return e instanceof t}catch{return!1}}function Cm(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function oi(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ip(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Cm(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function q1(e,t,n=!1){return Sn(e)?K1(t)?t.test(e):Sn(t)?n?e===t:e.includes(t):!1:!1}function gs(e,t=[],n=!1){return t.some(r=>q1(e,r,n))}function j1(e,t,n=250,r,s,o,u){if(!o.exception||!o.exception.values||!u||!Sr(u.originalException,Error))return;const c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;c&&(o.exception.values=G1(Uc(e,t,s,u.originalException,r,o.exception.values,c,0),n))}function Uc(e,t,n,r,s,o,u,c){if(o.length>=n+1)return o;let f=[...o];if(Sr(r[s],Error)){Tp(u,c);const d=e(t,r[s]),p=f.length;Cp(d,s,p,c),f=Uc(e,t,n,r[s],s,[d,...f],d,p)}return Array.isArray(r.errors)&&r.errors.forEach((d,p)=>{if(Sr(d,Error)){Tp(u,c);const _=e(t,d),v=f.length;Cp(_,`errors[${p}]`,v,c),f=Uc(e,t,n,d,s,[_,...f],_,v)}}),f}function Tp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Cp(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function G1(e,t){return e.map(n=>(n.value&&(n.value=oi(n.value,t)),n))}function Om(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const pr="8.35.0",ye=globalThis;function Ia(e,t,n){const r=n||ye,s=r.__SENTRY__=r.__SENTRY__||{},o=s[pr]=s[pr]||{};return o[e]||(o[e]=t())}const ql=ye,V1=80;function Ta(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,u=0;const c=" > ",f=c.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,_=!Array.isArray(t)&&t.maxStringLength||V1;for(;n&&o++<r&&(d=Y1(n,p),!(d==="html"||o>1&&u+s.length*f+d.length>=_));)s.push(d),u+=d.length,n=n.parentNode;return s.reverse().join(c)}catch{return"<unknown>"}}function Y1(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(ql.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(u=>n.getAttribute(u)).map(u=>[u,n.getAttribute(u)]):null;if(s&&s.length)s.forEach(u=>{r.push(`[${u[0]}="${u[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const u=n.className;if(u&&Sn(u)){const c=u.split(/\s+/);for(const f of c)r.push(`.${f}`)}}const o=["aria-label","type","name","title","alt"];for(const u of o){const c=n.getAttribute(u);c&&r.push(`[${u}="${c}"]`)}return r.join("")}function Rm(){try{return ql.document.location.href}catch{return""}}function J1(e){if(!ql.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const ys=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,X1="Sentry Logger ",Wc=["debug","info","warn","error","log","assert","trace"],ea={};function bi(e){if(!("console"in ye))return e();const t=ye.console,n={},r=Object.keys(ea);r.forEach(s=>{const o=ea[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Z1(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ys?Wc.forEach(n=>{t[n]=(...r)=>{e&&bi(()=>{ye.console[n](`${X1}[${n}]:`,...r)})}}):Wc.forEach(n=>{t[n]=()=>{}}),t}const Z=Ia("logger",Z1),Q1=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eT(e){return e==="http"||e==="https"}function Ca(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:u,protocol:c,publicKey:f}=e;return`${c}://${f}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${u}`}function tT(e){const t=Q1.exec(e);if(!t){bi(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",u="",c=""]=t.slice(1);let f="",d=c;const p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){const _=d.match(/^\d+/);_&&(d=_[0])}return km({host:o,pass:s,path:f,projectId:d,port:u,protocol:n,publicKey:r})}function km(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function nT(e){if(!ys)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(u=>e[u]?!1:(Z.error(`Invalid Sentry Dsn: ${u} missing`),!0))?!1:n.match(/^\d+$/)?eT(r)?t&&isNaN(parseInt(t,10))?(Z.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Z.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Z.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function rT(e){const t=typeof e=="string"?tT(e):km(e);if(!(!t||!nT(t)))return t}class on extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function ht(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Am(s,r),e[t]=s}function wr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ys&&Z.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Am(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,wr(e,"__sentry_original__",t)}catch{}}function jl(e){return e.__sentry_original__}function iT(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Mm(e){if(Hl(e))return{message:e.message,name:e.name,stack:e.stack,...Rp(e)};if(Ea(e)){const t={type:e.type,target:Op(e.target),currentTarget:Op(e.currentTarget),...Rp(e)};return typeof CustomEvent<"u"&&Sr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Op(e){try{return H1(e)?Ta(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Rp(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function sT(e,t=40){const n=Object.keys(Mm(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return oi(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:oi(o,t)}return""}function pt(e){return Hc(e,new Map)}function Hc(e,t){if(oT(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Hc(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Hc(s,t))}),r}return e}function oT(e){if(!ai(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Dm=50,Er="?",kp=/\(error: (.*)\)/,Ap=/captureMessage|captureException/;function Lm(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],u=n.split(`
`);for(let c=r;c<u.length;c++){const f=u[c];if(f.length>1024)continue;const d=kp.test(f)?f.replace(kp,"$1"):f;if(!d.match(/\S*Error: /)){for(const p of t){const _=p(d);if(_){o.push(_);break}}if(o.length>=Dm+s)break}}return uT(o.slice(s))}}function aT(e){return Array.isArray(e)?Lm(...e):e}function uT(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Eo(t).function||"")&&t.pop(),t.reverse(),Ap.test(Eo(t).function||"")&&(t.pop(),Ap.test(Eo(t).function||"")&&t.pop()),t.slice(0,Dm).map(n=>({...n,filename:n.filename||Eo(t).filename,function:n.function||Er}))}function Eo(e){return e[e.length-1]||{}}const Sc="<anonymous>";function xn(e){try{return!e||typeof e!="function"?Sc:e.name||Sc}catch{return Sc}}function Mp(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const zo={},Dp={};function Or(e,t){zo[e]=zo[e]||[],zo[e].push(t)}function Rr(e,t){Dp[e]||(t(),Dp[e]=!0)}function Gt(e,t){const n=e&&zo[e];if(n)for(const r of n)try{r(t)}catch(s){ys&&Z.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${xn(r)}
Error:`,s)}}function cT(e){const t="console";Or(t,e),Rr(t,lT)}function lT(){"console"in ye&&Wc.forEach(function(e){e in ye.console&&ht(ye.console,e,function(t){return ea[e]=t,function(...n){Gt("console",{args:n,level:e});const s=ea[e];s&&s.apply(ye.console,n)}})})}const Kc=ye;function Nm(){if(!("fetch"in Kc))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function zc(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function fT(){if(typeof EdgeRuntime=="string")return!0;if(!Nm())return!1;if(zc(Kc.fetch))return!0;let e=!1;const t=Kc.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=zc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){ys&&Z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const $m=1e3;function vs(){return Date.now()/$m}function dT(){const{performance:e}=ye;if(!e||!e.now)return vs;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/$m}const wn=dT(),hT=(()=>{const{performance:e}=ye;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,u=e.timing&&e.timing.navigationStart,f=typeof u=="number"?Math.abs(u+n-r):t,d=f<t;return o||d?s<=f?e.timeOrigin:u:r})();function pT(e,t){const n="fetch";Or(n,e),Rr(n,()=>_T(void 0,t))}function _T(e,t=!1){t&&!fT()||ht(ye,"fetch",function(n){return function(...r){const{method:s,url:o}=mT(r),u={args:r,fetchData:{method:s,url:o},startTimestamp:wn()*1e3};Gt("fetch",{...u});const c=new Error().stack;return n.apply(ye,r).then(async f=>(Gt("fetch",{...u,endTimestamp:wn()*1e3,response:f}),f),f=>{throw Gt("fetch",{...u,endTimestamp:wn()*1e3,error:f}),Hl(f)&&f.stack===void 0&&(f.stack=c,wr(f,"framesToPop",1)),f})}})}function qc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Lp(e){return typeof e=="string"?e:e?qc(e,"url")?e.url:e.toString?e.toString():"":""}function mT(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Lp(n),method:qc(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Lp(t),method:qc(t,"method")?String(t.method).toUpperCase():"GET"}}let xo=null;function gT(e){const t="error";Or(t,e),Rr(t,yT)}function yT(){xo=ye.onerror,ye.onerror=function(e,t,n,r,s){return Gt("error",{column:r,error:s,line:n,msg:e,url:t}),xo&&!xo.__SENTRY_LOADER__?xo.apply(this,arguments):!1},ye.onerror.__SENTRY_INSTRUMENTED__=!0}let Io=null;function vT(e){const t="unhandledrejection";Or(t,e),Rr(t,bT)}function bT(){Io=ye.onunhandledrejection,ye.onunhandledrejection=function(e){return Gt("unhandledrejection",e),Io&&!Io.__SENTRY_LOADER__?Io.apply(this,arguments):!0},ye.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ST(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function wT(){return"npm"}function ET(){return!ST()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Np(){return typeof window<"u"&&(!ET()||xT())}function xT(){return ye.process!==void 0&&ye.process.type==="renderer"}function IT(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}function Rt(){const e=ye,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Pm(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Un(e){const{message:t,event_id:n}=e;if(t)return t;const r=Pm(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function jc(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function us(e,t){const n=Pm(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}function $p(e){if(e&&e.__sentry_captured__)return!0;try{wr(e,"__sentry_captured__",!0)}catch{}return!1}function Fm(e){return Array.isArray(e)?e:[e]}function sn(e,t=100,n=1/0){try{return Gc("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Bm(e,t=3,n=100*1024){const r=sn(e,t);return RT(r)>n?Bm(e,t-1,n):r}function Gc(e,t,n=1/0,r=1/0,s=IT()){const[o,u]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=TT(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return c.replace("object ","");if(o(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const w=d.toJSON();return Gc("",w,f-1,r,s)}catch{}const p=Array.isArray(t)?[]:{};let _=0;const v=Mm(t);for(const w in v){if(!Object.prototype.hasOwnProperty.call(v,w))continue;if(_>=r){p[w]="[MaxProperties ~]";break}const S=v[w];p[w]=Gc(w,S,f-1,r,s),_++}return u(t),p}function TT(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Cm(t))return"[VueViewModel]";if(z1(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${xn(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=CT(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function CT(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function OT(e){return~-encodeURI(e).split(/%..|./).length}function RT(e){return OT(JSON.stringify(e))}var vn;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(vn||(vn={}));function In(e){return new Bt(t=>{t(e)})}function ta(e){return new Bt((t,n)=>{n(e)})}class Bt{constructor(t){Bt.prototype.__init.call(this),Bt.prototype.__init2.call(this),Bt.prototype.__init3.call(this),Bt.prototype.__init4.call(this),this._state=vn.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Bt((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(u){s(u)}},o=>{if(!n)s(o);else try{r(n(o))}catch(u){s(u)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Bt((n,r)=>{let s,o;return this.then(u=>{o=!1,s=u,t&&t()},u=>{o=!0,s=u,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(vn.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(vn.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===vn.PENDING){if(xa(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===vn.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===vn.RESOLVED&&n[1](this._value),this._state===vn.REJECTED&&n[2](this._value),n[0]=!0)})}}}function kT(e){const t=[];function n(){return e===void 0||t.length<e}function r(u){return t.splice(t.indexOf(u),1)[0]||Promise.resolve(void 0)}function s(u){if(!n())return ta(new on("Not adding Promise because buffer limit was reached."));const c=u();return t.indexOf(c)===-1&&t.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function o(u){return new Bt((c,f)=>{let d=t.length;if(!d)return c(!0);const p=setTimeout(()=>{u&&u>0&&c(!1)},u);t.forEach(_=>{In(_).then(()=>{--d||(clearTimeout(p),c(!0))},f)})})}return{$:t,add:s,drain:o}}function wc(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const AT=["fatal","error","warning","log","info","debug"];function Um(e){return e==="warn"?"warning":AT.includes(e)?e:"log"}const MT="sentry-",DT=/^sentry-/;function LT(e){const t=NT(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(DT)){const u=s.slice(MT.length);r[u]=o}return r},{});if(Object.keys(n).length>0)return n}function NT(e){if(!(!e||!Sn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Pp(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Pp(e)}function Pp(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Si(e,t=[]){return[e,t]}function $T(e,t){const[n,r]=e;return[n,[...r,t]]}function Fp(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Vc(e){return ye.__SENTRY__&&ye.__SENTRY__.encodePolyfill?ye.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function PT(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Vc(r),o]:r.push(typeof o=="string"?Vc(o):o)}for(const o of n){const[u,c]=o;if(s(`
${JSON.stringify(u)}
`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let f;try{f=JSON.stringify(c)}catch{f=JSON.stringify(sn(c))}s(f)}}return typeof r=="string"?r:FT(r)}function FT(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function BT(e){const t=typeof e.data=="string"?Vc(e.data):e.data;return[pt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const UT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Bp(e){return UT[e]}function Gl(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Wm(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ca(r)},...s&&{trace:pt({...s})}}}function WT(e,t,n){const r=[{type:"client_report"},{timestamp:vs(),discarded_events:e}];return Si(t?{dsn:t}:{},[r])}const HT=60*1e3;function KT(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?HT:r-t}function zT(e,t){return e[t]||e.all||0}function Hm(e,t,n=Date.now()){return zT(e,t)>n}function Km(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],u=n&&n["retry-after"];if(o)for(const c of o.trim().split(",")){const[f,d,,,p]=c.split(":",5),_=parseInt(f,10),v=(isNaN(_)?60:_)*1e3;if(!d)s.all=r+v;else for(const w of d.split(";"))w==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(s[w]=r+v):s[w]=r+v}else u?s.all=r+KT(u,r):t===429&&(s.all=r+60*1e3);return s}function qT(e,t){return e??t()}function _r(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...u)=>n.call(t,...u)),t=void 0)}return n}function Up(){return{traceId:Rt(),spanId:Rt().substring(16)}}const To=ye;function jT(){const e=To.chrome,t=e&&e.app&&e.app.runtime,n="history"in To&&!!To.history.pushState&&!!To.history.replaceState;return!t&&n}const Ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function bs(){return Vl(ye),ye}function Vl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||pr,t[pr]=t[pr]||{}}function GT(e){const t=wn(),n={sid:Rt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>YT(n)};return e&&ui(n,e),n}function ui(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||wn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Rt()),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 n=e.timestamp-e.started;e.duration=n>=0?n: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 VT(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),ui(e,n)}function YT(e){return pt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Yc="_sentrySpan";function Wp(e,t){t?wr(e,Yc,t):delete e[Yc]}function Jc(e){return e[Yc]}const JT=100;class Yl{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Up()}clone(){const t=new Yl;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Wp(t,Jc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ui(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,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},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,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof xr?[n.getScopeData(),n.getRequestSession()]:ai(n)?[t,t.requestSession]:[],{tags:o,extra:u,user:c,contexts:f,level:d,fingerprint:p=[],propagationContext:_}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...u},this._contexts={...this._contexts,...f},c&&Object.keys(c).length&&(this._user=c),d&&(this._level=d),p.length&&(this._fingerprint=p),_&&(this._propagationContext=_),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Wp(this,void 0),this._attachments=[],this._propagationContext=Up(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:JT;if(r<=0)return this;const s={timestamp:vs(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Jc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Rt();if(!this._client)return Z.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:Rt();if(!this._client)return Z.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Rt();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Z.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const xr=Yl;function XT(){return Ia("defaultCurrentScope",()=>new xr)}function ZT(){return Ia("defaultIsolationScope",()=>new xr)}class QT{constructor(t,n){let r;t?r=t:r=new xr;let s;n?s=n:s=new xr,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return xa(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ci(){const e=bs(),t=Vl(e);return t.stack=t.stack||new QT(XT(),ZT())}function eC(e){return ci().withScope(e)}function tC(e,t){const n=ci();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Hp(e){return ci().withScope(()=>e(ci().getIsolationScope()))}function nC(){return{withIsolationScope:Hp,withScope:eC,withSetScope:tC,withSetIsolationScope:(e,t)=>Hp(t),getCurrentScope:()=>ci().getScope(),getIsolationScope:()=>ci().getIsolationScope()}}function Oa(e){const t=Vl(e);return t.acs?t.acs:nC()}function Yt(){const e=bs();return Oa(e).getCurrentScope()}function Yn(){const e=bs();return Oa(e).getIsolationScope()}function rC(){return Ia("globalScope",()=>new xr)}function iC(...e){const t=bs(),n=Oa(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Be(){return Yt().getClient()}const sC="_sentryMetrics";function oC(e){const t=e[sC];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(pt(s));return n}const zm="sentry.source",aC="sentry.sample_rate",uC="sentry.op",cC="sentry.origin",lC=0,fC=1,dC=1;function hC(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=li(e);return pt({parent_span_id:r,span_id:t,trace_id:n})}function Kp(e){return typeof e=="number"?zp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?zp(e.getTime()):wn()}function zp(e){return e>9999999999?e/1e3:e}function li(e){if(_C(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(pC(e)){const{attributes:r,startTime:s,name:o,endTime:u,parentSpanId:c,status:f}=e;return pt({span_id:t,trace_id:n,data:r,description:o,parent_span_id:c,start_timestamp:Kp(s),timestamp:Kp(u)||void 0,status:gC(f),op:r[uC],origin:r[cC],_metrics_summary:oC(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function pC(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function _C(e){return typeof e.getSpanJSON=="function"}function mC(e){const{traceFlags:t}=e.spanContext();return t===dC}function gC(e){if(!(!e||e.code===lC))return e.code===fC?"ok":e.message||"unknown_error"}const yC="_sentryRootSpan";function Jl(e){return e[yC]||e}function qm(){const e=bs(),t=Oa(e);return t.getActiveSpan?t.getActiveSpan():Jc(Yt())}function vC(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Be(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Xl="production",bC="_frozenDsc";function jm(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=pt({environment:n.environment||Xl,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function Gm(e){const t=Be();if(!t)return{};const n=jm(li(e).trace_id||"",t),r=Jl(e),s=r[bC];if(s)return s;const o=r.spanContext().traceState,u=o&&o.get("sentry.dsc"),c=u&&LT(u);if(c)return c;const f=li(r),d=f.data||{},p=d[aC];p!=null&&(n.sample_rate=`${p}`);const _=d[zm],v=f.description;return _!=="url"&&v&&(n.transaction=v),vC()&&(n.sampled=String(mC(r))),t.emit("createDsc",n,r),n}function Xc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Ce&&Z.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function SC(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 wC(e,t,n,r){const s=Gl(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ca(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Si(o,[u])}function EC(e,t,n,r){const s=Gl(n),o=e.type&&e.type!=="replay_event"?e.type:"event";SC(e,n&&n.sdk);const u=Wm(e,s,r,t);return delete e.sdkProcessingMetadata,Si(u,[[{type:o},e]])}function Zc(e,t,n,r=0){return new Bt((s,o)=>{const u=e[r];if(t===null||typeof u!="function")s(t);else{const c=u({...t},n);Ce&&u.id&&c===null&&Z.log(`Event processor "${u.id}" dropped event`),xa(c)?c.then(f=>Zc(e,f,n,r+1).then(s)).then(null,o):Zc(e,c,n,r+1).then(s).then(null,o)}})}function xC(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;IC(e,t),r&&OC(e,r),RC(e,n),TC(e,s),CC(e,o)}function qp(e,t){const{extra:n,tags:r,user:s,contexts:o,level:u,sdkProcessingMetadata:c,breadcrumbs:f,fingerprint:d,eventProcessors:p,attachments:_,propagationContext:v,transactionName:w,span:S}=t;Vi(e,"extra",n),Vi(e,"tags",r),Vi(e,"user",s),Vi(e,"contexts",o),Vi(e,"sdkProcessingMetadata",c),u&&(e.level=u),w&&(e.transactionName=w),S&&(e.span=S),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),_.length&&(e.attachments=[...e.attachments,..._]),e.propagationContext={...e.propagationContext,...v}}function Vi(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function IC(e,t){const{extra:n,tags:r,user:s,contexts:o,level:u,transactionName:c}=t,f=pt(n);f&&Object.keys(f).length&&(e.extra={...f,...e.extra});const d=pt(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const p=pt(s);p&&Object.keys(p).length&&(e.user={...p,...e.user});const _=pt(o);_&&Object.keys(_).length&&(e.contexts={..._,...e.contexts}),u&&(e.level=u),c&&e.type!=="transaction"&&(e.transaction=c)}function TC(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function CC(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function OC(e,t){e.contexts={trace:hC(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Gm(t),...e.sdkProcessingMetadata};const n=Jl(t),r=li(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function RC(e,t){e.fingerprint=e.fingerprint?Fm(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Vm(e,t,n,r,s,o){const{normalizeDepth:u=3,normalizeMaxBreadth:c=1e3}=e,f={...t,event_id:t.event_id||n.event_id||Rt(),timestamp:t.timestamp||vs()},d=n.integrations||e.integrations.map(E=>E.name);kC(f,e),DC(f,d),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&AC(f,e.stackParser);const p=NC(r,n.captureContext);n.mechanism&&us(f,n.mechanism);const _=s?s.getEventProcessors():[],v=rC().getScopeData();if(o){const E=o.getScopeData();qp(v,E)}if(p){const E=p.getScopeData();qp(v,E)}const w=[...n.attachments||[],...v.attachments];w.length&&(n.attachments=w),xC(f,v);const S=[..._,...v.eventProcessors];return Zc(S,f,n).then(E=>(E&&MC(E),typeof u=="number"&&u>0?LC(E,u,c):E))}function kC(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Xl),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=oi(e.message,o));const u=e.exception&&e.exception.values&&e.exception.values[0];u&&u.value&&(u.value=oi(u.value,o));const c=e.request;c&&c.url&&(c.url=oi(c.url,o))}const jp=new WeakMap;function AC(e,t){const n=ye._sentryDebugIds;if(!n)return;let r;const s=jp.get(t);s?r=s:(r=new Map,jp.set(t,r));const o=Object.entries(n).reduce((u,[c,f])=>{let d;const p=r.get(c);p?d=p:(d=t(c),r.set(c,d));for(let _=d.length-1;_>=0;_--){const v=d[_];if(v.filename){u[v.filename]=f;break}}return u},{});try{e.exception.values.forEach(u=>{u.stacktrace.frames.forEach(c=>{c.filename&&(c.debug_id=o[c.filename])})})}catch{}}function MC(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function DC(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function LC(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:sn(s.data,t,n)}}))},...e.user&&{user:sn(e.user,t,n)},...e.contexts&&{contexts:sn(e.contexts,t,n)},...e.extra&&{extra:sn(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=sn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:sn(s.data,t,n)}}))),r}function NC(e,t){if(!t)return e;const n=e?e.clone():new xr;return n.update(t),n}function Ym(e,t){return Yt().captureException(e,void 0)}function Jm(e,t){return Yt().captureEvent(e,t)}function $C(e,t){Yn().setContext(e,t)}function PC(e){Yn().addEventProcessor(e)}function Gp(e){const t=Be(),n=Yn(),r=Yt(),{release:s,environment:o=Xl}=t&&t.getOptions()||{},{userAgent:u}=ye.navigator||{},c=GT({release:s,environment:o,user:r.getUser()||n.getUser(),...u&&{userAgent:u},...e}),f=n.getSession();return f&&f.status==="ok"&&ui(f,{status:"exited"}),Xm(),n.setSession(c),r.setSession(c),c}function Xm(){const e=Yn(),t=Yt(),n=t.getSession()||e.getSession();n&&VT(n),Zm(),e.setSession(),t.setSession()}function Zm(){const e=Yn(),t=Yt(),n=Be(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Vp(e=!1){if(e){Xm();return}Zm()}const FC="7";function BC(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function UC(e){return`${BC(e)}${e.projectId}/envelope/`}function WC(e,t){return iT({sentry_key:e.publicKey,sentry_version:FC,...t&&{sentry_client:`${t.name}/${t.version}`}})}function HC(e,t,n){return t||`${UC(e)}?${WC(e,n)}`}const Yp=[];function KC(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function zC(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(u=>{u.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Fm(n(t)):r=t;const s=KC(r),o=s.findIndex(u=>u.name==="Debug");if(o>-1){const[u]=s.splice(o,1);s.push(u)}return s}function qC(e,t){const n={};return t.forEach(r=>{r&&Qm(e,r,n)}),n}function Jp(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Qm(e,t,n){if(n[t.name]){Ce&&Z.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Yp.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Yp.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,u)=>r(o,u,e),{id:t.name});e.addEventProcessor(s)}Ce&&Z.log(`Integration installed: ${t.name}`)}const Xp="Not capturing exception because it's already been captured.";class jC{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=rT(t.dsn):Ce&&Z.warn("No DSN provided, client will not send events."),this._dsn){const n=HC(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const s=Rt();if($p(t))return Ce&&Z.log(Xp),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(u=>this._captureEvent(u,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:Rt(),...r},u=Kl(t)?t:String(t),c=zl(t)?this.eventFromMessage(u,n,o):this.eventFromException(t,o);return this._process(c.then(f=>this._captureEvent(f,o,s))),o.event_id}captureEvent(t,n,r){const s=Rt();if(n&&n.originalException&&$p(n.originalException))return Ce&&Z.log(Xp),s;const o={event_id:s,...n},c=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,c||r)),o.event_id}captureSession(t){typeof t.release!="string"?Ce&&Z.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ui(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):In(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Qm(this,t,this._integrations),n||Jp(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=EC(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=$T(r,BT(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=wC(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;Ce&&Z.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Ce&&Z.error("Error while sending event:",n),n)):(Ce&&Z.error("Transport disabled"),In({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=qC(this,t),Jp(this,t)}_updateSessionFromEvent(t,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const f of o){const d=f.mechanism;if(d&&d.handled===!1){r=!0;break}}}const u=t.status==="ok";(u&&t.errors===0||u&&r)&&(ui(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Bt(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=Yn()){const o=this.getOptions(),u=Object.keys(this._integrations);return!n.integrations&&u.length>0&&(n.integrations=u),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Vm(o,t,n,r,this,s).then(c=>{if(c===null)return c;const f={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(c.contexts&&c.contexts.trace)&&f){const{traceId:p,spanId:_,parentSpanId:v,dsc:w}=f;c.contexts={trace:pt({trace_id:p,span_id:_,parent_span_id:v}),...c.contexts};const S=w||jm(p,this);c.sdkProcessingMetadata={dynamicSamplingContext:S,...c.sdkProcessingMetadata}}return c})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(Ce){const o=s;o.logLevel==="log"?Z.log(o.message):Z.warn(o)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,u=tg(t),c=eg(t),f=t.type||"error",d=`before send for type \`${f}\``,p=typeof o>"u"?void 0:Xc(o);if(c&&typeof p=="number"&&Math.random()>p)return this.recordDroppedEvent("sample_rate","error",t),ta(new on(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const _=f==="replay_event"?"replay":f,w=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,w).then(S=>{if(S===null)throw this.recordDroppedEvent("event_processor",_,t),new on("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return S;const E=VC(this,s,S,n);return GC(E,d)}).then(S=>{if(S===null){if(this.recordDroppedEvent("before_send",_,t),u){const D=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",D)}throw new on(`${d} returned \`null\`, will not send event.`,"log")}const C=r&&r.getSession();if(!u&&C&&this._updateSessionFromEvent(C,S),u){const O=S.sdkProcessingMetadata&&S.sdkProcessingMetadata.spanCountBeforeProcessing||0,D=S.spans?S.spans.length:0,F=O-D;F>0&&this.recordDroppedEvent("before_send","span",F)}const E=S.transaction_info;if(u&&E&&S.transaction!==t.transaction){const O="custom";S.transaction_info={...E,source:O}}return this.sendEvent(S,n),S}).then(null,S=>{throw S instanceof on?S:(this.captureException(S,{data:{__sentry__:!0},originalException:S}),new on(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${S}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){Ce&&Z.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ce&&Z.log("No outcomes to send");return}if(!this._dsn){Ce&&Z.log("No dsn provided, will not send outcomes");return}Ce&&Z.log("Sending outcomes:",t);const n=WT(t,this._options.tunnel&&Ca(this._dsn));this.sendEnvelope(n)}}function GC(e,t){const n=`${t} must return \`null\` or a valid event.`;if(xa(e))return e.then(r=>{if(!ai(r)&&r!==null)throw new on(n);return r},r=>{throw new on(`${t} rejected with ${r}`)});if(!ai(e)&&e!==null)throw new on(n);return e}function VC(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:u}=t;if(eg(n)&&s)return s(n,r);if(tg(n)){if(n.spans&&u){const c=[];for(const f of n.spans){const d=u(f);d?c.push(d):e.recordDroppedEvent("before_send","span")}n.spans=c}if(o){if(n.spans){const c=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return o(n,r)}}return n}function eg(e){return e.type===void 0}function tg(e){return e.type==="transaction"}function YC(e,t){t.debug===!0&&(Ce?Z.enable():bi(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Yt().update(t.initialScope);const r=new e(t);return JC(r),r.init(),r}function JC(e){Yt().setClient(e)}const XC=64;function ZC(e,t,n=kT(e.bufferSize||XC)){let r={};const s=u=>n.drain(u);function o(u){const c=[];if(Fp(u,(_,v)=>{const w=Bp(v);if(Hm(r,w)){const S=Zp(_,v);e.recordDroppedEvent("ratelimit_backoff",w,S)}else c.push(_)}),c.length===0)return In({});const f=Si(u[0],c),d=_=>{Fp(f,(v,w)=>{const S=Zp(v,w);e.recordDroppedEvent(_,Bp(w),S)})},p=()=>t({body:PT(f)}).then(_=>(_.statusCode!==void 0&&(_.statusCode<200||_.statusCode>=300)&&Ce&&Z.warn(`Sentry responded with status code ${_.statusCode} to sent event.`),r=Km(r,_),_),_=>{throw d("network_error"),_});return n.add(p).then(_=>_,_=>{if(_ instanceof on)return Ce&&Z.error("Skipped sending event because buffer is full."),d("queue_overflow"),In({});throw _})}return{send:o,flush:s}}function Zp(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function QC(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return tO(e,n)||eO(e,r)}function eO(e,t){return t?Qp(e)===Qp(t):!1}function tO(e,t){return t?e.includes(t.host):!1}function Qp(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function nO(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:pr})),version:pr}),e._metadata=s}const rO=100;function jn(e,t){const n=Be(),r=Yn();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=rO}=n.getOptions();if(o<=0)return;const c={timestamp:vs(),...e},f=s?bi(()=>s(c,t)):c;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),r.addBreadcrumb(f,o))}let e_;const iO="FunctionToString",t_=new WeakMap,sO=()=>({name:iO,setupOnce(){e_=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=jl(this),n=t_.has(Be())&&t!==void 0?t:this;return e_.apply(n,e)}}catch{}},setup(e){t_.set(e,!0)}}),oO=sO,aO=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],uO="InboundFilters",cO=(e={})=>({name:uO,processEvent(t,n,r){const s=r.getOptions(),o=fO(e,s);return dO(t,o)?null:t}}),lO=cO;function fO(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:aO],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function dO(e,t){return t.ignoreInternal&&yO(e)?(Ce&&Z.warn(`Event dropped due to being internal Sentry Error.
Event: ${Un(e)}`),!0):hO(e,t.ignoreErrors)?(Ce&&Z.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Un(e)}`),!0):bO(e)?(Ce&&Z.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Un(e)}`),!0):pO(e,t.ignoreTransactions)?(Ce&&Z.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Un(e)}`),!0):_O(e,t.denyUrls)?(Ce&&Z.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Un(e)}.
Url: ${na(e)}`),!0):mO(e,t.allowUrls)?!1:(Ce&&Z.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Un(e)}.
Url: ${na(e)}`),!0)}function hO(e,t){return e.type||!t||!t.length?!1:gO(e).some(n=>gs(n,t))}function pO(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?gs(n,t):!1}function _O(e,t){if(!t||!t.length)return!1;const n=na(e);return n?gs(n,t):!1}function mO(e,t){if(!t||!t.length)return!0;const n=na(e);return n?gs(n,t):!0}function gO(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function yO(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function vO(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function na(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?vO(t):null}catch{return Ce&&Z.error(`Cannot extract url for event ${Un(e)}`),null}}function bO(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const SO="Dedupe",wO=()=>{let e;return{name:SO,processEvent(t){if(t.type)return t;try{if(xO(t,e))return Ce&&Z.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},EO=wO;function xO(e,t){return t?!!(IO(e,t)||TO(e,t)):!1}function IO(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!rg(e,t)||!ng(e,t))}function TO(e,t){const n=n_(t),r=n_(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!rg(e,t)||!ng(e,t))}function ng(e,t){let n=Mp(e),r=Mp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],u=n[s];if(o.filename!==u.filename||o.lineno!==u.lineno||o.colno!==u.colno||o.function!==u.function)return!1}return!0}function rg(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function n_(e){return e.exception&&e.exception.values&&e.exception.values[0]}const Oe=ye;let Qc=0;function ig(){return Qc>0}function CO(){Qc++,setTimeout(()=>{Qc--})}function fi(e,t={},n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(jl(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const o=s.map(u=>fi(u,t));return e.apply(this,o)}catch(o){throw CO(),iC(u=>{u.addEventProcessor(c=>(t.mechanism&&(jc(c,void 0),us(c,t.mechanism)),c.extra={...c.extra,arguments:s},c)),Ym(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Am(r,e),wr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Ss=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Zl(e,t){const n=Ql(e,t),r={type:MO(t),value:DO(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function OO(e,t,n,r){const s=Be(),o=s&&s.getOptions().normalizeDepth,u=FO(t),c={__serialized__:Bm(t,o)};if(u)return{exception:{values:[Zl(e,u)]},extra:c};const f={exception:{values:[{type:Ea(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:$O(t,{isUnhandledRejection:r})}]},extra:c};if(n){const d=Ql(e,n);d.length&&(f.exception.values[0].stacktrace={frames:d})}return f}function Ec(e,t){return{exception:{values:[Zl(e,t)]}}}function Ql(e,t){const n=t.stacktrace||t.stack||"",r=kO(t),s=AO(t);try{return e(n,r,s)}catch{}return[]}const RO=/Minified React error #\d+;/i;function kO(e){return e&&RO.test(e.message)?1:0}function AO(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function sg(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function MO(e){const t=e&&e.name;return!t&&sg(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function DO(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:sg(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function LO(e,t,n,r){const s=n&&n.syntheticException||void 0,o=ef(e,t,s,r);return us(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),In(o)}function NO(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,u=el(e,t,o,s);return u.level=n,r&&r.event_id&&(u.event_id=r.event_id),In(u)}function ef(e,t,n,r,s){let o;if(Tm(t)&&t.error)return Ec(e,t.error);if(xp(t)||W1(t)){const u=t;if("stack"in t)o=Ec(e,t);else{const c=u.name||(xp(u)?"DOMError":"DOMException"),f=u.message?`${c}: ${u.message}`:c;o=el(e,f,n,r),jc(o,f)}return"code"in u&&(o.tags={...o.tags,"DOMException.code":`${u.code}`}),o}return Hl(t)?Ec(e,t):ai(t)||Ea(t)?(o=OO(e,t,n,s),us(o,{synthetic:!0}),o):(o=el(e,t,n,r),jc(o,`${t}`),us(o,{synthetic:!0}),o)}function el(e,t,n,r){const s={};if(r&&n){const o=Ql(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(Kl(t)){const{__sentry_template_string__:o,__sentry_template_values__:u}=t;return s.logentry={message:o,params:u},s}return s.message=t,s}function $O(e,{isUnhandledRejection:t}){const n=sT(e),r=t?"promise rejection":"exception";return Tm(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ea(e)?`Event \`${PO(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function PO(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function FO(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function BO(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ca(r)}},o=UO(e);return Si(s,[o])}function UO(e){return[{type:"user_report"},e]}class WO extends jC{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Oe.SENTRY_SDK_SOURCE||wT();nO(n,"browser",["browser"],r),super(n),n.sendClientReports&&Oe.document&&Oe.document.addEventListener("visibilitychange",()=>{Oe.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return LO(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return NO(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Ss&&Z.warn("SDK not enabled, will not capture user feedback.");return}const n=BO(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const og=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,HO=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ws=(e,t,n,r)=>{let s,o;return u=>{t.value>=0&&(u||r)&&(o=t.value-(s||0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=HO(t.value,n),e(t)))}},be=ye,KO=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ag=()=>be.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],tf=()=>{const e=ag();return e&&e.activationStart||0},Es=(e,t)=>{const n=ag();let r="navigate";return n&&(be.document&&be.document.prerendering||tf()>0?r="prerender":be.document&&be.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:KO(),navigationType:r}},kr=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ra=e=>{const t=n=>{(n.type==="pagehide"||be.document&&be.document.visibilityState==="hidden")&&e(n)};be.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},nf=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let cs=-1;const zO=()=>{cs=be.document.visibilityState==="hidden"&&!be.document.prerendering?0:1/0},ra=e=>{be.document.visibilityState==="hidden"&&cs>-1&&(cs=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",ra,!0),removeEventListener("prerenderingchange",ra,!0))},qO=()=>{addEventListener("visibilitychange",ra,!0),addEventListener("prerenderingchange",ra,!0)},rf=()=>(be.document&&cs<0&&(zO(),qO()),{get firstHiddenTime(){return cs}}),ka=e=>{be.document&&be.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},jO=[1800,3e3],GO=(e,t={})=>{ka(()=>{const n=rf(),r=Es("FCP");let s;const u=kr("paint",c=>{c.forEach(f=>{f.name==="first-contentful-paint"&&(u.disconnect(),f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-tf(),0),r.entries.push(f),s(!0)))})});u&&(s=ws(e,r,jO,t.reportAllChanges))})},VO=[.1,.25],YO=(e,t={})=>{GO(nf(()=>{const n=Es("CLS",0);let r,s=0,o=[];const u=f=>{f.forEach(d=>{if(!d.hadRecentInput){const p=o[0],_=o[o.length-1];s&&p&&_&&d.startTime-_.startTime<1e3&&d.startTime-p.startTime<5e3?(s+=d.value,o.push(d)):(s=d.value,o=[d])}}),s>n.value&&(n.value=s,n.entries=o,r())},c=kr("layout-shift",u);c&&(r=ws(e,n,VO,t.reportAllChanges),Ra(()=>{u(c.takeRecords()),r(!0)}),setTimeout(r,0))}))},JO=[100,300],XO=(e,t={})=>{ka(()=>{const n=rf(),r=Es("FID");let s;const o=f=>{f.startTime<n.firstHiddenTime&&(r.value=f.processingStart-f.startTime,r.entries.push(f),s(!0))},u=f=>{f.forEach(o)},c=kr("first-input",u);s=ws(e,r,JO,t.reportAllChanges),c&&Ra(nf(()=>{u(c.takeRecords()),c.disconnect()}))})};let ug=0,xc=1/0,Co=0;const ZO=e=>{e.forEach(t=>{t.interactionId&&(xc=Math.min(xc,t.interactionId),Co=Math.max(Co,t.interactionId),ug=Co?(Co-xc)/7+1:0)})};let tl;const QO=()=>tl?ug:performance.interactionCount||0,eR=()=>{"interactionCount"in performance||tl||(tl=kr("event",ZO,{type:"event",buffered:!0,durationThreshold:0}))},tR=[200,500],nR=0,cg=()=>QO()-nR,r_=10,bn=[],Ic={},i_=e=>{const t=bn[bn.length-1],n=Ic[e.interactionId];if(n||bn.length<r_||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};Ic[r.id]=r,bn.push(r)}bn.sort((r,s)=>s.latency-r.latency),bn.splice(r_).forEach(r=>{delete Ic[r.id]})}},rR=()=>{const e=Math.min(bn.length-1,Math.floor(cg()/50));return bn[e]},iR=(e,t={})=>{ka(()=>{eR();const n=Es("INP");let r;const s=u=>{u.forEach(f=>{f.interactionId&&i_(f),f.entryType==="first-input"&&!bn.some(p=>p.entries.some(_=>f.duration===_.duration&&f.startTime===_.startTime))&&i_(f)});const c=rR();c&&c.latency!==n.value&&(n.value=c.latency,n.entries=c.entries,r())},o=kr("event",s,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=ws(e,n,tR,t.reportAllChanges),o&&("PerformanceEventTiming"in be&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),Ra(()=>{s(o.takeRecords()),n.value<0&&cg()>0&&(n.value=0,n.entries=[]),r(!0)}))})},sR=[2500,4e3],s_={},oR=(e,t={})=>{ka(()=>{const n=rf(),r=Es("LCP");let s;const o=c=>{const f=c[c.length-1];f&&f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-tf(),0),r.entries=[f],s())},u=kr("largest-contentful-paint",o);if(u){s=ws(e,r,sR,t.reportAllChanges);const c=nf(()=>{s_[r.id]||(o(u.takeRecords()),u.disconnect(),s_[r.id]=!0,s(!0))});["keydown","click"].forEach(f=>{be.document&&addEventListener(f,()=>setTimeout(c,0),!0)}),Ra(c)}})},ns={},ia={};let lg,fg,dg,hg;function aR(e,t=!1){return Aa("cls",e,dR,lg,t)}function uR(e,t=!1){return Aa("lcp",e,pR,dg,t)}function cR(e){return Aa("fid",e,hR,fg)}function lR(e){return Aa("inp",e,_R,hg)}function fR(e,t){return pg(e,t),ia[e]||(mR(e),ia[e]=!0),_g(e,t)}function xs(e,t){const n=ns[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){og&&Z.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${xn(r)}
Error:`,s)}}function dR(){return YO(e=>{xs("cls",{metric:e}),lg=e},{reportAllChanges:!0})}function hR(){return XO(e=>{xs("fid",{metric:e}),fg=e})}function pR(){return oR(e=>{xs("lcp",{metric:e}),dg=e},{reportAllChanges:!0})}function _R(){return iR(e=>{xs("inp",{metric:e}),hg=e})}function Aa(e,t,n,r,s=!1){pg(e,t);let o;return ia[e]||(o=n(),ia[e]=!0),r&&t({metric:r}),_g(e,t,s?o:void 0)}function mR(e){const t={};e==="event"&&(t.durationThreshold=0),kr(e,n=>{xs(e,{entries:n})},t)}function pg(e,t){ns[e]=ns[e]||[],ns[e].push(t)}function _g(e,t,n){return()=>{n&&n();const r=ns[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}const gR=1e3;let o_,nl,rl;function mg(e){const t="dom";Or(t,e),Rr(t,yR)}function yR(){if(!be.document)return;const e=Gt.bind(null,"dom"),t=a_(e,!0);be.document.addEventListener("click",t,!1),be.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=be[n]&&be[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(ht(r,"addEventListener",function(s){return function(o,u,c){if(o==="click"||o=="keypress")try{const f=this,d=f.__sentry_instrumentation_handlers__=f.__sentry_instrumentation_handlers__||{},p=d[o]=d[o]||{refCount:0};if(!p.handler){const _=a_(e);p.handler=_,s.call(this,o,_,c)}p.refCount++}catch{}return s.call(this,o,u,c)}}),ht(r,"removeEventListener",function(s){return function(o,u,c){if(o==="click"||o=="keypress")try{const f=this,d=f.__sentry_instrumentation_handlers__||{},p=d[o];p&&(p.refCount--,p.refCount<=0&&(s.call(this,o,p.handler,c),p.handler=void 0,delete d[o]),Object.keys(d).length===0&&delete f.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,u,c)}}))})}function vR(e){if(e.type!==nl)return!1;try{if(!e.target||e.target._sentryId!==rl)return!1}catch{}return!0}function bR(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function a_(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=SR(n);if(bR(n.type,r))return;wr(n,"_sentryCaptured",!0),r&&!r._sentryId&&wr(r,"_sentryId",Rt());const s=n.type==="keypress"?"input":n.type;vR(n)||(e({event:n,name:s,global:t}),nl=n.type,rl=r?r._sentryId:void 0),clearTimeout(o_),o_=be.setTimeout(()=>{rl=void 0,nl=void 0},gR)}}function SR(e){try{return e.target}catch{return null}}let Oo;function sf(e){const t="history";Or(t,e),Rr(t,wR)}function wR(){if(!jT())return;const e=be.onpopstate;be.onpopstate=function(...n){const r=be.location.href,s=Oo;if(Oo=r,Gt("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=Oo,u=String(s);Oo=u,Gt("history",{from:o,to:u})}return n.apply(this,r)}}ht(be.history,"pushState",t),ht(be.history,"replaceState",t)}const qo={};function gg(e){const t=qo[e];if(t)return t;let n=be[e];if(zc(n))return qo[e]=n.bind(be);const r=be.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){og&&Z.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(qo[e]=n.bind(be))}function u_(e){qo[e]=void 0}function di(...e){return gg("setTimeout")(...e)}const ei="__sentry_xhr_v3__";function ER(e){const t="xhr";Or(t,e),Rr(t,xR)}function xR(){if(!be.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=wn()*1e3,o=Sn(r[0])?r[0].toUpperCase():void 0,u=IR(r[1]);if(!o||!u)return t.apply(n,r);n[ei]={method:o,url:u,request_headers:{}},o==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const f=n[ei];if(f&&n.readyState===4){try{f.status_code=n.status}catch{}const d={endTimestamp:wn()*1e3,startTimestamp:s,xhr:n};Gt("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(f,d,p){return c(),f.apply(d,p)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(f,d,p){const[_,v]=p,w=d[ei];return w&&Sn(_)&&Sn(v)&&(w.request_headers[_.toLowerCase()]=v),f.apply(d,p)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ei];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:wn()*1e3,xhr:n};return Gt("xhr",o),t.apply(n,r)}})}function IR(e){if(Sn(e))return e;try{return e.toString()}catch{}}function TR(e,t=gg("fetch")){let n=0,r=0;function s(o){const u=o.body.length;n+=u,r++;const c={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return u_("fetch"),ta("No fetch implementation available");try{return t(e.url,c).then(f=>(n-=u,r--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return u_("fetch"),n-=u,r--,ta(f)}}return ZC(e,s)}const CR=30,OR=50;function il(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?Er:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const RR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,kR=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,AR=/\((\S*)(?::(\d+))(?::(\d+))\)/,MR=e=>{const t=RR.exec(e);if(t){const[,r,s,o]=t;return il(r,Er,+s,+o)}const n=kR.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const u=AR.exec(n[2]);u&&(n[2]=u[1],n[3]=u[2],n[4]=u[3])}const[s,o]=yg(n[1]||Er,n[2]);return il(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},DR=[CR,MR],LR=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,NR=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$R=e=>{const t=LR.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=NR.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||Er;return[s,r]=yg(s,r),il(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},PR=[OR,$R],FR=[DR,PR],BR=Lm(...FR),yg=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Er,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ro=1024,UR="Breadcrumbs",WR=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:UR,setup(n){t.console&&cT(qR(n)),t.dom&&mg(zR(n,t.dom)),t.xhr&&ER(jR(n)),t.fetch&&pT(GR(n)),t.history&&sf(VR(n)),t.sentry&&n.on("beforeSendEvent",KR(n))}}},HR=WR;function KR(e){return function(n){Be()===e&&jn({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Un(n)},{event:n})}}function zR(e,t){return function(r){if(Be()!==e)return;let s,o,u=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>Ro&&(Ss&&Z.warn(`\`dom.maxStringLength\` cannot exceed ${Ro}, but a value of ${c} was configured. Sentry will use ${Ro} instead.`),c=Ro),typeof u=="string"&&(u=[u]);try{const d=r.event,p=YR(d)?d.target:d;s=Ta(p,{keyAttrs:u,maxStringLength:c}),o=J1(p)}catch{s="<unknown>"}if(s.length===0)return;const f={category:`ui.${r.name}`,message:s};o&&(f.data={"ui.component_name":o}),jn(f,{event:r.event,name:r.name,global:r.global})}}function qR(e){return function(n){if(Be()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Um(n.level),message:Ip(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Ip(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;jn(r,{input:n.args,level:n.level})}}function jR(e){return function(n){if(Be()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ei];if(!r||!s||!o)return;const{method:u,url:c,status_code:f,body:d}=o,p={method:u,url:c,status_code:f},_={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:s},v=Om(f);jn({category:"xhr",data:p,type:"http",level:v},_)}}function GR(e){return function(n){if(Be()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,u={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};jn({category:"fetch",data:o,level:"error",type:"http"},u)}else{const o=n.response,u={...n.fetchData,status_code:o&&o.status},c={input:n.args,response:o,startTimestamp:r,endTimestamp:s},f=Om(u.status_code);jn({category:"fetch",data:u,type:"http",level:f},c)}}}function VR(e){return function(n){if(Be()!==e)return;let r=n.from,s=n.to;const o=wc(Oe.location.href);let u=r?wc(r):void 0;const c=wc(s);(!u||!u.path)&&(u=o),o.protocol===c.protocol&&o.host===c.host&&(s=c.relative),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),jn({category:"navigation",data:{from:r,to:s}})}}function YR(e){return!!e&&!!e.target}const JR=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],XR="BrowserApiErrors",ZR=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:XR,setupOnce(){t.setTimeout&&ht(Oe,"setTimeout",c_),t.setInterval&&ht(Oe,"setInterval",c_),t.requestAnimationFrame&&ht(Oe,"requestAnimationFrame",ek),t.XMLHttpRequest&&"XMLHttpRequest"in Oe&&ht(XMLHttpRequest.prototype,"send",tk);const n=t.eventTarget;n&&(Array.isArray(n)?n:JR).forEach(nk)}}},QR=ZR;function c_(e){return function(...t){const n=t[0];return t[0]=fi(n,{mechanism:{data:{function:xn(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ek(e){return function(t){return e.apply(this,[fi(t,{mechanism:{data:{function:"requestAnimationFrame",handler:xn(e)},handled:!1,type:"instrument"}})])}}function tk(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&ht(n,s,function(o){const u={mechanism:{data:{function:s,handler:xn(o)},handled:!1,type:"instrument"}},c=jl(o);return c&&(u.mechanism.data.handler=xn(c)),fi(o,u)})}),e.apply(this,t)}}function nk(e){const t=Oe,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ht(n,"addEventListener",function(r){return function(s,o,u){try{typeof o.handleEvent=="function"&&(o.handleEvent=fi(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:xn(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,fi(o,{mechanism:{data:{function:"addEventListener",handler:xn(o),target:e},handled:!1,type:"instrument"}}),u])}}),ht(n,"removeEventListener",function(r){return function(s,o,u){const c=o;try{const f=c&&c.__sentry_wrapped__;f&&r.call(this,s,f,u)}catch{}return r.call(this,s,c,u)}}))}const rk="GlobalHandlers",ik=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:rk,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ok(n),l_("onerror")),t.onunhandledrejection&&(ak(n),l_("onunhandledrejection"))}}},sk=ik;function ok(e){gT(t=>{const{stackParser:n,attachStacktrace:r}=vg();if(Be()!==e||ig())return;const{msg:s,url:o,line:u,column:c,error:f}=t,d=lk(ef(n,f||s,void 0,r,!1),o,u,c);d.level="error",Jm(d,{originalException:f,mechanism:{handled:!1,type:"onerror"}})})}function ak(e){vT(t=>{const{stackParser:n,attachStacktrace:r}=vg();if(Be()!==e||ig())return;const s=uk(t),o=zl(s)?ck(s):ef(n,s,void 0,r,!0);o.level="error",Jm(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function uk(e){if(zl(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function ck(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function lk(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],u=o[0]=o[0]||{},c=u.stacktrace=u.stacktrace||{},f=c.frames=c.frames||[],d=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,_=Sn(t)&&t.length>0?t:Rm();return f.length===0&&f.push({colno:d,filename:_,function:Er,in_app:!0,lineno:p}),e}function l_(e){Ss&&Z.log(`Global Handler attached: ${e}`)}function vg(){const e=Be();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const fk=()=>({name:"HttpContext",preprocessEvent(e){if(!Oe.navigator&&!Oe.location&&!Oe.document)return;const t=e.request&&e.request.url||Oe.location&&Oe.location.href,{referrer:n}=Oe.document||{},{userAgent:r}=Oe.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}}),dk="cause",hk=5,pk="LinkedErrors",_k=(e={})=>{const t=e.limit||hk,n=e.key||dk;return{name:pk,preprocessEvent(r,s,o){const u=o.getOptions();j1(Zl,u.stackParser,u.maxValueLength,n,t,r,s)}}},mk=_k;function gk(e){return[lO(),oO(),QR(),HR(),sk(),mk(),EO(),fk()]}function yk(e={}){const t={defaultIntegrations:gk(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Oe.SENTRY_RELEASE&&Oe.SENTRY_RELEASE.id?Oe.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function vk(){const e=typeof Oe.window<"u"&&Oe;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=Oe.location&&Oe.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],u=!!r&&Oe===Oe.top&&o.some(f=>s.startsWith(`${f}//`)),c=typeof e.nw<"u";return!!r&&!u&&!c}function bk(e={}){const t=yk(e);if(vk()){bi(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Ss&&(Nm()||Z.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:aT(t.stackParser||BR),integrations:zC(t),transport:t.transport||TR},r=YC(WO,n);return t.autoSessionTracking&&Sk(),r}function Sk(){if(typeof Oe.document>"u"){Ss&&Z.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Gp({ignoreDuration:!0}),Vp(),sf(({from:e,to:t})=>{e!==void 0&&e!==t&&(Gp({ignoreDuration:!0}),Vp())})}const Ae=ye,of="sentryReplaySession",wk="replay_event",af="Unable to send Replay",Ek=3e5,xk=9e5,Ik=5e3,Tk=5500,Ck=6e4,Ok=5e3,Rk=3,f_=15e4,ko=5e3,kk=3e3,Ak=300,uf=2e7,Mk=4999,Dk=15e3,d_=36e5;function sl(e,t){return e??t()}function ls(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...u)=>n.call(t,...u)),t=void 0)}return n}var Ye;(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"})(Ye||(Ye={}));function Lk(e){return e.nodeType===e.ELEMENT_NODE}function rs(e){const t=ls([e,"optionalAccess",n=>n.host]);return ls([t,"optionalAccess",n=>n.shadowRoot])===e}function is(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Nk(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function $k(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function sa(e){try{const t=e.rules||e.cssRules;return t?Nk(Array.from(t,bg).join("")):null}catch{return null}}function bg(e){let t;if(Fk(e))try{t=sa(e.styleSheet)||$k(e)}catch{}else if(Bk(e)&&e.selectorText.includes(":"))return Pk(e.cssText);return t||e.cssText}function Pk(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Fk(e){return"styleSheet"in e}function Bk(e){return"selectorText"in e}class Sg{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=ls([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return sl(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Uk(){return new Sg}function Ma({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function fs({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function hi(e){return e.toLowerCase()}function ol(e){return e.toUpperCase()}const h_="__rrweb_original__";function Wk(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const o=t.getImageData,u=h_ in o?o[h_]:o;if(new Uint32Array(u.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(f=>f!==0))return!1}return!0}function cf(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hi(t):null}function oa(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function wg(e,t){let n;try{n=new URL(e,sl(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return sl(ls([s,"optionalAccess",o=>o[1]]),()=>null)}const p_={};function Eg(e){const t=p_[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return p_[e]=r.bind(window)}function al(...e){return Eg("setTimeout")(...e)}function xg(...e){return Eg("clearTimeout")(...e)}let Hk=1;const Kk=new RegExp("[^a-z0-9-_:]"),ds=-2;function lf(){return Hk++}function zk(e){if(e instanceof HTMLFormElement)return"form";const t=hi(e.tagName);return Kk.test(t)?"div":t}function qk(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Xr,__;const jk=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Gk=/^(?:[a-z+]+:)?\/\//i,Vk=/^www\..*/i,Yk=/^(data:)([^,]*),(.*)/i;function aa(e,t){return(e||"").replace(jk,(n,r,s,o,u,c)=>{const f=s||u||c,d=r||o||"";if(!f)return n;if(Gk.test(f)||Vk.test(f))return`url(${d}${f}${d})`;if(Yk.test(f))return`url(${d}${f}${d})`;if(f[0]==="/")return`url(${d}${qk(t)+f}${d})`;const p=t.split("/"),_=f.split("/");p.pop();for(const v of _)v!=="."&&(v===".."?p.pop():p.push(v));return`url(${d}${p.join("/")}${d})`})}const Jk=/^[^ \t\n\r\u000c]+/,Xk=/^[, \t\n\r\u000c]+/;function Zk(e,t){if(t.trim()==="")return t;let n=0;function r(o){let u;const c=o.exec(t.substring(n));return c?(u=c[0],n+=u.length,u):""}const s=[];for(;r(Xk),!(n>=t.length);){let o=r(Jk);if(o.slice(-1)===",")o=ti(e,o.substring(0,o.length-1)),s.push(o);else{let u="";o=ti(e,o);let c=!1;for(;;){const f=t.charAt(n);if(f===""){s.push((o+u).trim());break}else if(c)f===")"&&(c=!1);else if(f===","){n+=1,s.push((o+u).trim());break}else f==="("&&(c=!0);u+=f,n+=1}}}return s.join(", ")}const m_=new WeakMap;function ti(e,t){return!t||t.trim()===""?t:Da(e,t)}function Qk(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Da(e,t){let n=m_.get(e);if(n||(n=e.createElement("a"),m_.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Ig(e,t,n,r,s,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ti(e,r):n==="srcset"?Zk(e,r):n==="style"?aa(r,Da(e)):t==="object"&&n==="data"?ti(e,r):typeof o=="function"?o(n,r,s):r)}function Tg(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function eA(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function tA(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function fr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fr(e.parentNode,t,n,r+1)}function ni(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(tA(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function pi(e,t,n,r,s,o){try{const u=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(u===null)return!1;if(u.tagName==="INPUT"){const d=u.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let c=-1,f=-1;if(o){if(f=fr(u,ni(r,s)),f<0)return!0;c=fr(u,ni(t,n),f>=0?f:1/0)}else{if(c=fr(u,ni(t,n)),c<0)return!1;f=fr(u,ni(r,s),c>=0?c:1/0)}return c>=0?f>=0?c<=f:!0:f>=0?!1:!!o}catch{}return!!o}function nA(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const c=al(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{xg(c),s=!0,t()});return}const u="about:blank";if(r.location.href!==u||e.src===u||e.src==="")return al(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function rA(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=al(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{xg(o),r=!0,t()})}function iA(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:u,maskAllText:c,maskAttributeFn:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:_,unmaskTextSelector:v,inlineStylesheet:w,maskInputOptions:S={},maskTextFn:C,maskInputFn:E,dataURLOptions:O={},inlineImages:D,recordCanvas:F,keepIframeSrcFn:K,newlyAddedElement:U=!1}=t,A=sA(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Ye.Document,childNodes:[],compatMode:e.compatMode}:{type:Ye.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ye.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return aA(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:u,inlineStylesheet:w,maskAttributeFn:f,maskInputOptions:S,maskInputFn:E,dataURLOptions:O,inlineImages:D,recordCanvas:F,keepIframeSrcFn:K,newlyAddedElement:U,rootId:A,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:_,unmaskTextSelector:v});case e.TEXT_NODE:return oA(e,{doc:n,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:_,unmaskTextSelector:v,maskTextFn:C,maskInputOptions:S,maskInputFn:E,rootId:A});case e.CDATA_SECTION_NODE:return{type:Ye.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:Ye.Comment,textContent:e.textContent||"",rootId:A};default:return!1}}function sA(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function oA(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:u,maskTextFn:c,maskInputOptions:f,maskInputFn:d,rootId:p}=t,_=e.parentNode&&e.parentNode.tagName;let v=e.textContent;const w=_==="STYLE"?!0:void 0,S=_==="SCRIPT"?!0:void 0,C=_==="TEXTAREA"?!0:void 0;if(w&&v){try{e.nextSibling||e.previousSibling||ls([e,"access",O=>O.parentNode,"access",O=>O.sheet,"optionalAccess",O=>O.cssRules])&&(v=sa(e.parentNode.sheet))}catch(O){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${O}`,e)}v=aa(v,Da(t.doc))}S&&(v="SCRIPT_PLACEHOLDER");const E=pi(e,r,o,s,u,n);if(!w&&!S&&!C&&v&&E&&(v=c?c(v,e.parentElement):v.replace(/[\S]/g,"*")),C&&v&&(f.textarea||E)&&(v=d?d(v,e.parentNode):v.replace(/[\S]/g,"*")),_==="OPTION"&&v){const O=Ma({type:null,tagName:_,maskInputOptions:f});v=fs({isMasked:pi(e,r,o,s,u,O),element:e,value:v,maskInputFn:d})}return{type:Ye.Text,textContent:v||"",isStyle:w,rootId:p}}function aA(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:u,maskInputOptions:c={},maskAttributeFn:f,maskInputFn:d,dataURLOptions:p={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:w,newlyAddedElement:S=!1,rootId:C,maskAllText:E,maskTextClass:O,unmaskTextClass:D,maskTextSelector:F,unmaskTextSelector:K}=t,U=eA(e,r,s,o),A=zk(e);let R={};const W=e.attributes.length;for(let B=0;B<W;B++){const j=e.attributes[B];j.name&&!Tg(A,j.name,j.value)&&(R[j.name]=Ig(n,A,hi(j.name),j.value,e,f))}if(A==="link"&&u){const B=Array.from(n.styleSheets).find(fe=>fe.href===e.href);let j=null;B&&(j=sa(B)),j&&(delete R.rel,delete R.href,R._cssText=aa(j,B.href))}if(A==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const B=sa(e.sheet);B&&(R._cssText=aa(B,Da(n)))}if(A==="input"||A==="textarea"||A==="select"||A==="option"){const B=e,j=cf(B),fe=oa(B,ol(A),j),pe=B.checked;if(j!=="submit"&&j!=="button"&&fe){const Se=pi(B,O,F,D,K,Ma({type:j,tagName:ol(A),maskInputOptions:c}));R.value=fs({isMasked:Se,element:B,value:fe,maskInputFn:d})}pe&&(R.checked=pe)}if(A==="option"&&(e.selected&&!c.select?R.selected=!0:delete R.selected),A==="canvas"&&v){if(e.__context==="2d")Wk(e)||(R.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){const B=e.toDataURL(p.type,p.quality),j=n.createElement("canvas");j.width=e.width,j.height=e.height;const fe=j.toDataURL(p.type,p.quality);B!==fe&&(R.rr_dataURL=B)}}if(A==="img"&&_){Xr||(Xr=n.createElement("canvas"),__=Xr.getContext("2d"));const B=e,j=B.currentSrc||B.getAttribute("src")||"<unknown-src>",fe=B.crossOrigin,pe=()=>{B.removeEventListener("load",pe);try{Xr.width=B.naturalWidth,Xr.height=B.naturalHeight,__.drawImage(B,0,0),R.rr_dataURL=Xr.toDataURL(p.type,p.quality)}catch(Se){if(B.crossOrigin!=="anonymous"){B.crossOrigin="anonymous",B.complete&&B.naturalWidth!==0?pe():B.addEventListener("load",pe);return}else console.warn(`Cannot inline img src=${j}! Error: ${Se}`)}B.crossOrigin==="anonymous"&&(fe?R.crossOrigin=fe:B.removeAttribute("crossorigin"))};B.complete&&B.naturalWidth!==0?pe():B.addEventListener("load",pe)}if((A==="audio"||A==="video")&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),S||(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),U){const{width:B,height:j}=e.getBoundingClientRect();R={class:R.class,rr_width:`${B}px`,rr_height:`${j}px`}}A==="iframe"&&!w(R.src)&&(!U&&!e.contentDocument&&(R.rr_src=R.src),delete R.src);let V;try{customElements.get(A)&&(V=!0)}catch{}return{type:Ye.Element,tagName:A,attributes:R,childNodes:[],isSVG:Qk(e)||void 0,needBlock:U,rootId:C,isCustom:V}}function ke(e){return e==null?"":e.toLowerCase()}function uA(e,t){if(t.comment&&e.type===Ye.Comment)return!0;if(e.type===Ye.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"&&wg(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ke(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ke(e.attributes.name)==="application-name"||ke(e.attributes.rel)==="icon"||ke(e.attributes.rel)==="apple-touch-icon"||ke(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ke(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ke(e.attributes.property).match(/^(og|twitter|fb):/)||ke(e.attributes.name).match(/^(og|twitter):/)||ke(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ke(e.attributes.name)==="robots"||ke(e.attributes.name)==="googlebot"||ke(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ke(e.attributes.name)==="author"||ke(e.attributes.name)==="generator"||ke(e.attributes.name)==="framework"||ke(e.attributes.name)==="publisher"||ke(e.attributes.name)==="progid"||ke(e.attributes.property).match(/^article:/)||ke(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ke(e.attributes.name)==="google-site-verification"||ke(e.attributes.name)==="yandex-verification"||ke(e.attributes.name)==="csrf-token"||ke(e.attributes.name)==="p:domain_verify"||ke(e.attributes.name)==="verify-v1"||ke(e.attributes.name)==="verification"||ke(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ri(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:u,maskAllText:c,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:_,skipChild:v=!1,inlineStylesheet:w=!0,maskInputOptions:S={},maskAttributeFn:C,maskTextFn:E,maskInputFn:O,slimDOMOptions:D,dataURLOptions:F={},inlineImages:K=!1,recordCanvas:U=!1,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:W=5e3,onStylesheetLoad:V,stylesheetLoadTimeout:B=5e3,keepIframeSrcFn:j=()=>!1,newlyAddedElement:fe=!1}=t;let{preserveWhiteSpace:pe=!0}=t;const Se=iA(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:c,unblockSelector:u,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:_,inlineStylesheet:w,maskInputOptions:S,maskAttributeFn:C,maskTextFn:E,maskInputFn:O,dataURLOptions:F,inlineImages:K,recordCanvas:U,keepIframeSrcFn:j,newlyAddedElement:fe});if(!Se)return console.warn(e,"not serialized"),null;let Xe;r.hasNode(e)?Xe=r.getId(e):uA(Se,D)||!pe&&Se.type===Ye.Text&&!Se.isStyle&&!Se.textContent.replace(/^\s+|\s+$/gm,"").length?Xe=ds:Xe=lf();const de=Object.assign(Se,{id:Xe});if(r.add(e,de),Xe===ds)return null;A&&A(e);let Le=!v;if(de.type===Ye.Element){Le=Le&&!de.needBlock,delete de.needBlock;const me=e.shadowRoot;me&&is(me)&&(de.isShadowHost=!0)}if((de.type===Ye.Document||de.type===Ye.Element)&&Le){D.headWhitespace&&de.type===Ye.Element&&de.tagName==="head"&&(pe=!1);const me={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:c,unblockSelector:u,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:_,skipChild:v,inlineStylesheet:w,maskInputOptions:S,maskAttributeFn:C,maskTextFn:E,maskInputFn:O,slimDOMOptions:D,dataURLOptions:F,inlineImages:K,recordCanvas:U,preserveWhiteSpace:pe,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:W,onStylesheetLoad:V,stylesheetLoadTimeout:B,keepIframeSrcFn:j};for(const gt of Array.from(e.childNodes)){const ut=ri(gt,me);ut&&de.childNodes.push(ut)}if(Lk(e)&&e.shadowRoot)for(const gt of Array.from(e.shadowRoot.childNodes)){const ut=ri(gt,me);ut&&(is(e.shadowRoot)&&(ut.isShadow=!0),de.childNodes.push(ut))}}return e.parentNode&&rs(e.parentNode)&&is(e.parentNode)&&(de.isShadow=!0),de.type===Ye.Element&&de.tagName==="iframe"&&nA(e,()=>{const me=e.contentDocument;if(me&&R){const gt=ri(me,{doc:me,mirror:r,blockClass:s,blockSelector:o,unblockSelector:u,maskAllText:c,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:w,maskInputOptions:S,maskAttributeFn:C,maskTextFn:E,maskInputFn:O,slimDOMOptions:D,dataURLOptions:F,inlineImages:K,recordCanvas:U,preserveWhiteSpace:pe,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:W,onStylesheetLoad:V,stylesheetLoadTimeout:B,keepIframeSrcFn:j});gt&&R(e,gt)}},W),de.type===Ye.Element&&de.tagName==="link"&&typeof de.attributes.rel=="string"&&(de.attributes.rel==="stylesheet"||de.attributes.rel==="preload"&&typeof de.attributes.href=="string"&&wg(de.attributes.href)==="css")&&rA(e,()=>{if(V){const me=ri(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:u,maskAllText:c,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:w,maskInputOptions:S,maskAttributeFn:C,maskTextFn:E,maskInputFn:O,slimDOMOptions:D,dataURLOptions:F,inlineImages:K,recordCanvas:U,preserveWhiteSpace:pe,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:W,onStylesheetLoad:V,stylesheetLoadTimeout:B,keepIframeSrcFn:j});me&&V(e,me)}},B),de}function cA(e,t){const{mirror:n=new Sg,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:u=!1,maskTextClass:c="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:_=!0,inlineImages:v=!1,recordCanvas:w=!1,maskAllInputs:S=!1,maskAttributeFn:C,maskTextFn:E,maskInputFn:O,slimDOM:D=!1,dataURLOptions:F,preserveWhiteSpace:K,onSerialize:U,onIframeLoad:A,iframeLoadTimeout:R,onStylesheetLoad:W,stylesheetLoadTimeout:V,keepIframeSrcFn:B=()=>!1}=t||{};return ri(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:c,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:_,maskInputOptions:S===!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}:S===!1?{}:S,maskAttributeFn:C,maskTextFn:E,maskInputFn:O,slimDOMOptions:D===!0||D==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:D==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:D===!1?{}:D,dataURLOptions:F,inlineImages:v,recordCanvas:w,preserveWhiteSpace:K,onSerialize:U,onIframeLoad:A,iframeLoadTimeout:R,onStylesheetLoad:W,stylesheetLoadTimeout:V,keepIframeSrcFn:B,newlyAddedElement:!1})}function Wn(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...u)=>n.call(t,...u)),t=void 0)}return n}function ot(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Zr=`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 g_={map:{},getId(){return console.error(Zr),-1},getNode(){return console.error(Zr),null},removeNodeFromMap(){console.error(Zr)},has(){return console.error(Zr),!1},reset(){console.error(Zr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(g_=new Proxy(g_,{get(e,t,n){return t==="map"&&console.error(Zr),Reflect.get(e,t,n)}}));function hs(e,t,n={}){let r=null,s=0;return function(...o){const u=Date.now();!s&&n.leading===!1&&(s=u);const c=t-(u-s),f=this;c<=0||c>t?(r&&(mA(r),r=null),s=u,e.apply(f,o)):!r&&n.trailing!==!1&&(r=La(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(f,o)},c))}}function Cg(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(u){La(()=>{n.set.call(this,u)},0),o&&o.set&&o.set.call(this,u)}}),()=>Cg(e,t,o||{},!0)}function ff(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let ua=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ua=()=>new Date().getTime());function Og(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Wn([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Wn([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Wn([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Wn([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Wn([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Wn([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Rg(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function kg(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ag(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Ot(e,t,n,r,s){if(!e)return!1;const o=Ag(e);if(!o)return!1;const u=ni(t,n);if(!s){const d=r&&o.matches(r);return u(o)&&!d}const c=fr(o,u);let f=-1;return c<0?!1:(r&&(f=fr(o,ni(null,r))),c>-1&&f<0?!0:c<f)}function lA(e,t){return t.getId(e)!==-1}function Tc(e,t){return t.getId(e)===ds}function Mg(e,t){if(rs(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Mg(e.parentNode,t):!0:!0}function ul(e){return!!e.changedTouches}function fA(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=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Dg(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Lg(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function cl(e){return!!Wn([e,"optionalAccess",t=>t.shadowRoot])}class dA{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return qT(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ng(e){let t=null;return Wn([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function hA(e){let t=e,n;for(;n=Ng(t);)t=n;return t}function pA(e){const t=e.ownerDocument;if(!t)return!1;const n=hA(e);return t.contains(n)}function $g(e){const t=e.ownerDocument;return t?t.contains(e)||pA(e):!1}const y_={};function df(e){const t=y_[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return y_[e]=r.bind(window)}function _A(...e){return df("requestAnimationFrame")(...e)}function La(...e){return df("setTimeout")(...e)}function mA(...e){return df("clearTimeout")(...e)}var ue=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ue||{}),ee=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ee||{}),st=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(st||{}),yn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(yn||{});function gA(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...u)=>n.call(t,...u)),t=void 0)}return n}function v_(e){return"__ln"in e}class yA{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=gA([n,"optionalAccess",s=>s.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&v_(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&v_(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const b_=(e,t)=>`${e}@${t}`;class vA{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new yA,s=f=>{let d=f,p=ds;for(;p===ds;)d=d&&d.nextSibling,p=d&&this.mirror.getId(d);return p},o=f=>{if(!f.parentNode||!$g(f))return;const d=rs(f.parentNode)?this.mirror.getId(Ng(f)):this.mirror.getId(f.parentNode),p=s(f);if(d===-1||p===-1)return r.addNode(f);const _=ri(f,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:v=>{Dg(v,this.mirror)&&!Ot(v,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(v),Lg(v,this.mirror)&&this.stylesheetManager.trackLinkElement(v),cl(f)&&this.shadowDomManager.addShadowRoot(f.shadowRoot,this.doc)},onIframeLoad:(v,w)=>{Ot(v,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(v,w),v.contentWindow&&this.canvasManager.addWindow(v.contentWindow),this.shadowDomManager.observeAttachShadow(v))},onStylesheetLoad:(v,w)=>{this.stylesheetManager.attachLinkElement(v,w)}});_&&(t.push({parentId:d,nextId:p,node:_}),n.add(_.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet)S_(this.removes,f,this.mirror)&&!this.movedSet.has(f.parentNode)||o(f);for(const f of this.addedSet)!w_(this.droppedSet,f)&&!S_(this.removes,f,this.mirror)||w_(this.movedSet,f)?o(f):this.droppedSet.add(f);let u=null;for(;r.length;){let f=null;if(u){const d=this.mirror.getId(u.value.parentNode),p=s(u.value);d!==-1&&p!==-1&&(f=u)}if(!f){let d=r.tail;for(;d;){const p=d;if(d=d.previous,p){const _=this.mirror.getId(p.value.parentNode);if(s(p.value)===-1)continue;if(_!==-1){f=p;break}else{const w=p.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const S=w.parentNode.host;if(this.mirror.getId(S)!==-1){f=p;break}}}}}}if(!f){for(;r.head;)r.removeNode(r.head.value);break}u=f.previous,r.removeNode(f.value),o(f.value)}const c={texts:this.texts.map(f=>({id:this.mirror.getId(f.node),value:f.value})).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{const{attributes:d}=f;if(typeof d.style=="string"){const p=JSON.stringify(f.styleDiff),_=JSON.stringify(f._unchangedStyles);p.length<d.style.length&&(p+_).split("var(").length===d.style.split("var(").length&&(d.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:d}}).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=t=>{if(!Tc(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Ot(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:pi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Ag(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const u=cf(n),c=n.tagName;s=oa(n,c,u);const f=Ma({maskInputOptions:this.maskInputOptions,tagName:c,type:u}),d=pi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,f);s=fs({isMasked:d,element:n,value:s,maskInputFn:this.maskInputFn})}if(Ot(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!n.contentDocument)r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Tg(n.tagName,r)&&(o.attributes[r]=Ig(this.doc,hi(n.tagName),hi(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const u=this.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const f=n.style.getPropertyValue(c),d=n.style.getPropertyPriority(c);f!==u.style.getPropertyValue(c)||d!==u.style.getPropertyPriority(c)?d===""?o.styleDiff[c]=f:o.styleDiff[c]=[f,d]:o._unchangedStyles[c]=[f,d]}for(const c of Array.from(u.style))n.style.getPropertyValue(c)===""&&(o.styleDiff[c]=!1)}break}case"childList":{if(Ot(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=rs(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ot(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Tc(n,this.mirror)||!lA(n,this.mirror)||(this.addedSet.has(n)?(ll(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Mg(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[b_(r,s)]?ll(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:rs(t.target)&&is(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Tc(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[b_(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ot(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),cl(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}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 ll(e,t){e.delete(t),t.childNodes.forEach(n=>ll(e,n))}function S_(e,t,n){return e.length===0?!1:bA(e,t,n)}function bA(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function w_(e,t){return e.size===0?!1:Pg(e,t)}function Pg(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Pg(e,n):!1}let ss;function SA(e){ss=e}function wA(){ss=void 0}const ge=e=>ss?(...n)=>{try{return e(...n)}catch(r){if(ss&&ss(r)===!0)return()=>{};throw r}}:e;function jt(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...u)=>n.call(t,...u)),t=void 0)}return n}const ii=[];function Is(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 Fg(e,t){const n=new vA;ii.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=jt([window,"optionalAccess",u=>u.Zone,"optionalAccess",u=>u.__symbol__,"optionalCall",u=>u("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(ge(u=>{e.onMutation&&e.onMutation(u)===!1||n.processMutations.bind(n)(u)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function EA({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let u=[],c;const f=hs(ge(_=>{const v=Date.now()-c;e(u.map(w=>(w.timeOffset-=v,w)),_),u=[],c=null}),o),d=ge(hs(ge(_=>{const v=Is(_),{clientX:w,clientY:S}=ul(_)?_.changedTouches[0]:_;c||(c=ua()),u.push({x:w,y:S,id:r.getId(v),timeOffset:ua()-c}),f(typeof DragEvent<"u"&&_ instanceof DragEvent?ee.Drag:_ instanceof MouseEvent?ee.MouseMove:ee.TouchMove)}),s,{trailing:!1})),p=[ot("mousemove",d,n),ot("touchmove",d,n),ot("drag",d,n)];return ge(()=>{p.forEach(_=>_())})}function xA({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:u}){if(u.mouseInteraction===!1)return()=>{};const c=u.mouseInteraction===!0||u.mouseInteraction===void 0?{}:u.mouseInteraction,f=[];let d=null;const p=_=>v=>{const w=Is(v);if(Ot(w,r,s,o,!0))return;let S=null,C=_;if("pointerType"in v){switch(v.pointerType){case"mouse":S=yn.Mouse;break;case"touch":S=yn.Touch;break;case"pen":S=yn.Pen;break}S===yn.Touch?st[_]===st.MouseDown?C="TouchStart":st[_]===st.MouseUp&&(C="TouchEnd"):yn.Pen}else ul(v)&&(S=yn.Touch);S!==null?(d=S,(C.startsWith("Touch")&&S===yn.Touch||C.startsWith("Mouse")&&S===yn.Mouse)&&(S=null)):st[_]===st.Click&&(S=d,d=null);const E=ul(v)?v.changedTouches[0]:v;if(!E)return;const O=n.getId(w),{clientX:D,clientY:F}=E;ge(e)({type:st[C],id:O,x:D,y:F,...S!==null&&{pointerType:S}})};return Object.keys(st).filter(_=>Number.isNaN(Number(_))&&!_.endsWith("_Departed")&&c[_]!==!1).forEach(_=>{let v=hi(_);const w=p(_);if(window.PointerEvent)switch(st[_]){case st.MouseDown:case st.MouseUp:v=v.replace("mouse","pointer");break;case st.TouchStart:case st.TouchEnd:return}f.push(ot(v,w,t))}),ge(()=>{f.forEach(_=>_())})}function Bg({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:u}){const c=ge(hs(ge(f=>{const d=Is(f);if(!d||Ot(d,r,s,o,!0))return;const p=n.getId(d);if(d===t&&t.defaultView){const _=Og(t.defaultView);e({id:p,x:_.left,y:_.top})}else e({id:p,x:d.scrollLeft,y:d.scrollTop})}),u.scroll||100));return ot("scroll",c,t)}function IA({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=ge(hs(ge(()=>{const o=Rg(),u=kg();(n!==o||r!==u)&&(e({width:Number(u),height:Number(o)}),n=o,r=u)}),200));return ot("resize",s,t)}const TA=["INPUT","TEXTAREA","SELECT"],E_=new WeakMap;function CA({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:u,ignoreSelector:c,maskInputOptions:f,maskInputFn:d,sampling:p,userTriggeredOnInput:_,maskTextClass:v,unmaskTextClass:w,maskTextSelector:S,unmaskTextSelector:C}){function E(R){let W=Is(R);const V=R.isTrusted,B=W&&ol(W.tagName);if(B==="OPTION"&&(W=W.parentElement),!W||!B||TA.indexOf(B)<0||Ot(W,r,s,o,!0))return;const j=W;if(j.classList.contains(u)||c&&j.matches(c))return;const fe=cf(W);let pe=oa(j,B,fe),Se=!1;const Xe=Ma({maskInputOptions:f,tagName:B,type:fe}),de=pi(W,v,S,w,C,Xe);(fe==="radio"||fe==="checkbox")&&(Se=W.checked),pe=fs({isMasked:de,element:W,value:pe,maskInputFn:d}),O(W,_?{text:pe,isChecked:Se,userTriggered:V}:{text:pe,isChecked:Se});const Le=W.name;fe==="radio"&&Le&&Se&&t.querySelectorAll(`input[type="radio"][name="${Le}"]`).forEach(me=>{if(me!==W){const gt=fs({isMasked:de,element:me,value:oa(me,B,fe),maskInputFn:d});O(me,_?{text:gt,isChecked:!Se,userTriggered:!1}:{text:gt,isChecked:!Se})}})}function O(R,W){const V=E_.get(R);if(!V||V.text!==W.text||V.isChecked!==W.isChecked){E_.set(R,W);const B=n.getId(R);ge(e)({...W,id:B})}}const F=(p.input==="last"?["change"]:["input","change"]).map(R=>ot(R,ge(E),t)),K=t.defaultView;if(!K)return()=>{F.forEach(R=>R())};const U=K.Object.getOwnPropertyDescriptor(K.HTMLInputElement.prototype,"value"),A=[[K.HTMLInputElement.prototype,"value"],[K.HTMLInputElement.prototype,"checked"],[K.HTMLSelectElement.prototype,"value"],[K.HTMLTextAreaElement.prototype,"value"],[K.HTMLSelectElement.prototype,"selectedIndex"],[K.HTMLOptionElement.prototype,"selected"]];return U&&U.set&&F.push(...A.map(R=>Cg(R[0],R[1],{set(){ge(E)({target:this,isTrusted:!1})}},!1,K))),ge(()=>{F.forEach(R=>R())})}function ca(e){const t=[];function n(r,s){if(Ao("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Ao("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Ao("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Ao("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const u=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(u)}else if(r.parentStyleSheet){const u=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(u)}return s}return n(e,t)}function Hn(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function OA({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ge((p,_,v)=>{const[w,S]=v,{id:C,styleId:E}=Hn(_,t,n.styleMirror);return(C&&C!==-1||E&&E!==-1)&&e({id:C,styleId:E,adds:[{rule:w,index:S}]}),p.apply(_,v)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ge((p,_,v)=>{const[w]=v,{id:S,styleId:C}=Hn(_,t,n.styleMirror);return(S&&S!==-1||C&&C!==-1)&&e({id:S,styleId:C,removes:[{index:w}]}),p.apply(_,v)})});let u;r.CSSStyleSheet.prototype.replace&&(u=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:ge((p,_,v)=>{const[w]=v,{id:S,styleId:C}=Hn(_,t,n.styleMirror);return(S&&S!==-1||C&&C!==-1)&&e({id:S,styleId:C,replace:w}),p.apply(_,v)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:ge((p,_,v)=>{const[w]=v,{id:S,styleId:C}=Hn(_,t,n.styleMirror);return(S&&S!==-1||C&&C!==-1)&&e({id:S,styleId:C,replaceSync:w}),p.apply(_,v)})}));const f={};Mo("CSSGroupingRule")?f.CSSGroupingRule=r.CSSGroupingRule:(Mo("CSSMediaRule")&&(f.CSSMediaRule=r.CSSMediaRule),Mo("CSSConditionRule")&&(f.CSSConditionRule=r.CSSConditionRule),Mo("CSSSupportsRule")&&(f.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(f).forEach(([p,_])=>{d[p]={insertRule:_.prototype.insertRule,deleteRule:_.prototype.deleteRule},_.prototype.insertRule=new Proxy(d[p].insertRule,{apply:ge((v,w,S)=>{const[C,E]=S,{id:O,styleId:D}=Hn(w.parentStyleSheet,t,n.styleMirror);return(O&&O!==-1||D&&D!==-1)&&e({id:O,styleId:D,adds:[{rule:C,index:[...ca(w),E||0]}]}),v.apply(w,S)})}),_.prototype.deleteRule=new Proxy(d[p].deleteRule,{apply:ge((v,w,S)=>{const[C]=S,{id:E,styleId:O}=Hn(w.parentStyleSheet,t,n.styleMirror);return(E&&E!==-1||O&&O!==-1)&&e({id:E,styleId:O,removes:[{index:[...ca(w),C]}]}),v.apply(w,S)})})}),ge(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,u&&(r.CSSStyleSheet.prototype.replace=u),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(f).forEach(([p,_])=>{_.prototype.insertRule=d[p].insertRule,_.prototype.deleteRule=d[p].deleteRule})})}function Ug({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?jt([n,"access",u=>u.defaultView,"optionalAccess",u=>u.Document]):jt([n,"access",u=>u.ownerDocument,"optionalAccess",u=>u.defaultView,"optionalAccess",u=>u.ShadowRoot]),o=jt([s,"optionalAccess",u=>u.prototype])?Object.getOwnPropertyDescriptor(jt([s,"optionalAccess",u=>u.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return jt([o,"access",u=>u.get,"optionalAccess",u=>u.call,"call",u=>u(this)])},set(u){const c=jt([o,"access",f=>f.set,"optionalAccess",f=>f.call,"call",f=>f(this,u)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(u,r)}catch{}return c}}),ge(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function RA({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:ge((c,f,d)=>{const[p,_,v]=d;if(n.has(p))return o.apply(f,[p,_,v]);const{id:w,styleId:S}=Hn(jt([f,"access",C=>C.parentRule,"optionalAccess",C=>C.parentStyleSheet]),t,r.styleMirror);return(w&&w!==-1||S&&S!==-1)&&e({id:w,styleId:S,set:{property:p,value:_,priority:v},index:ca(f.parentRule)}),c.apply(f,d)})});const u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:ge((c,f,d)=>{const[p]=d;if(n.has(p))return u.apply(f,[p]);const{id:_,styleId:v}=Hn(jt([f,"access",w=>w.parentRule,"optionalAccess",w=>w.parentStyleSheet]),t,r.styleMirror);return(_&&_!==-1||v&&v!==-1)&&e({id:_,styleId:v,remove:{property:p},index:ca(f.parentRule)}),c.apply(f,d)})}),ge(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=u})}function kA({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:u}){const c=ge(d=>hs(ge(p=>{const _=Is(p);if(!_||Ot(_,t,n,r,!0))return;const{currentTime:v,volume:w,muted:S,playbackRate:C}=_;e({type:d,id:s.getId(_),currentTime:v,volume:w,muted:S,playbackRate:C})}),o.media||500)),f=[ot("play",c(0),u),ot("pause",c(1),u),ot("seeked",c(2),u),ot("volumechange",c(3),u),ot("ratechange",c(4),u)];return ge(()=>{f.forEach(d=>d())})}function AA({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(f,d,p){const _=new o(f,d,p);return s.set(_,{family:f,buffer:typeof d!="string",descriptors:p,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),_};const u=ff(t.fonts,"add",function(c){return function(f){return La(ge(()=>{const d=s.get(f);d&&(e(d),s.delete(f))}),0),c.apply(this,[f])}});return r.push(()=>{n.FontFace=o}),r.push(u),ge(()=>{r.forEach(c=>c())})}function MA(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:u}=e;let c=!0;const f=ge(()=>{const d=t.getSelection();if(!d||c&&jt([d,"optionalAccess",v=>v.isCollapsed]))return;c=d.isCollapsed||!1;const p=[],_=d.rangeCount||0;for(let v=0;v<_;v++){const w=d.getRangeAt(v),{startContainer:S,startOffset:C,endContainer:E,endOffset:O}=w;Ot(S,r,s,o,!0)||Ot(E,r,s,o,!0)||p.push({start:n.getId(S),startOffset:C,end:n.getId(E),endOffset:O})}u({ranges:p})});return f(),ot("selectionchange",f)}function DA({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:ff(n.customElements,"define",function(s){return function(o,u,c){try{t({define:{name:o}})}catch{}return s.apply(this,[o,u,c])}})}function LA(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Fg(e,e.doc));const s=EA(e),o=xA(e),u=Bg(e),c=IA(e,{win:n}),f=CA(e),d=kA(e);let p=()=>{},_=()=>{},v=()=>{},w=()=>{};e.recordDOM&&(p=OA(e,{win:n}),_=Ug(e,e.doc),v=RA(e,{win:n}),e.collectFonts&&(w=AA(e)));const S=MA(e),C=DA(e),E=[];for(const O of e.plugins)E.push(O.observer(O.callback,n,O.options));return ge(()=>{ii.forEach(O=>O.reset()),jt([r,"optionalAccess",O=>O.disconnect,"call",O=>O()]),s(),o(),u(),c(),f(),d(),p(),_(),v(),w(),S(),C(),E.forEach(O=>O())})}function Ao(e){return typeof window[e]<"u"}function Mo(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class fl{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t);let c=o.get(n);return c||(c=this.generateIdFn(),o.set(n,c),u.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function x_(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...u)=>n.call(t,...u)),t=void 0)}return n}class NA{constructor(){this.crossOriginIframeMirror=new fl(lf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class $A{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new fl(lf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new fl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),x_([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case ue.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:ue.IncrementalSnapshot,data:{source:ee.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ue.Meta:case ue.Load:case ue.DomContentLoaded:return!1;case ue.Plugin:return n;case ue.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case ue.IncrementalSnapshot:switch(n.data.source){case ee.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case ee.Drag:case ee.TouchMove:case ee.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case ee.ViewportResize:return!1;case ee.MediaInteraction:case ee.MouseInteraction:case ee.Scroll:case ee.CanvasMutation:case ee.Input:return this.replaceIds(n.data,t,["id"]),n;case ee.StyleSheetRule:case ee.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ee.Font:return n;case ee.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case ee.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),x_([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,t,["styleId"])})]),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Ye.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class PA{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class FA{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!is(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Fg({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Bg({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),La(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Ug({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(ff(t.prototype,"attachShadow",function(s){return function(o){const u=s.call(this,o);return this.shadowRoot&&$g(this)&&r.addShadowRoot(this.shadowRoot,n),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class I_{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class BA{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new dA,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let u;this.styleMirror.has(o)?u=this.styleMirror.getId(o):(u=this.styleMirror.add(o),s.push({styleId:u,rules:Array.from(o.rules||CSSRule,(c,f)=>({rule:bg(c),index:f}))})),r.styleIds.push(u)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class UA{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,_A(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let We,la;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=_r([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const qt=Uk();function En(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:u=null,ignoreClass:c="rr-ignore",ignoreSelector:f=null,maskAllText:d=!1,maskTextClass:p="rr-mask",unmaskTextClass:_=null,maskTextSelector:v=null,unmaskTextSelector:w=null,inlineStylesheet:S=!0,maskAllInputs:C,maskInputOptions:E,slimDOMOptions:O,maskAttributeFn:D,maskInputFn:F,maskTextFn:K,maxCanvasSize:U=null,packFn:A,sampling:R={},dataURLOptions:W={},mousemoveWait:V,recordDOM:B=!0,recordCanvas:j=!1,recordCrossOriginIframes:fe=!1,recordAfter:pe=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:Se=!1,collectFonts:Xe=!1,inlineImages:de=!1,plugins:Le,keepIframeSrcFn:me=()=>!1,ignoreCSSAttributes:gt=new Set([]),errorHandler:ut,onMutation:yt,getCanvasManager:Za}=e;SA(ut);const Dr=fe?window.parent===window:!0;let Xn=!1;if(!Dr)try{window.parent.document&&(Xn=!1)}catch{Xn=!0}if(Dr&&!t)throw new Error("emit function is required");if(!Dr&&!Xn)return()=>{};V!==void 0&&R.mousemove===void 0&&(R.mousemove=V),qt.reset();const Zt=C===!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}:E!==void 0?E:{},Cn=O===!0||O==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:O==="all",headMetaDescKeywords:O==="all"}:O||{};fA();let Oi,un=0;const On=ce=>{for(const $e of Le||[])$e.eventProcessor&&(ce=$e.eventProcessor(ce));return A&&!Xn&&(ce=A(ce)),ce};We=(ce,$e)=>{const se=ce;if(se.timestamp=ua(),_r([ii,"access",Ie=>Ie[0],"optionalAccess",Ie=>Ie.isFrozen,"call",Ie=>Ie()])&&se.type!==ue.FullSnapshot&&!(se.type===ue.IncrementalSnapshot&&se.data.source===ee.Mutation)&&ii.forEach(Ie=>Ie.unfreeze()),Dr)_r([t,"optionalCall",Ie=>Ie(On(se),$e)]);else if(Xn){const Ie={type:"rrweb",event:On(se),origin:window.location.origin,isCheckout:$e};window.parent.postMessage(Ie,"*")}if(se.type===ue.FullSnapshot)Oi=se,un=0;else if(se.type===ue.IncrementalSnapshot){if(se.data.source===ee.Mutation&&se.data.isAttachIframe)return;un++;const Ie=r&&un>=r,ve=n&&Oi&&se.timestamp-Oi.timestamp>n;(Ie||ve)&&ki(!0)}};const Lr=ce=>{We({type:ue.IncrementalSnapshot,data:{source:ee.Mutation,...ce}})},Zn=ce=>We({type:ue.IncrementalSnapshot,data:{source:ee.Scroll,...ce}}),Nr=ce=>We({type:ue.IncrementalSnapshot,data:{source:ee.CanvasMutation,...ce}}),Ds=ce=>We({type:ue.IncrementalSnapshot,data:{source:ee.AdoptedStyleSheet,...ce}}),je=new BA({mutationCb:Lr,adoptedStyleSheetCb:Ds}),vt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new NA:new $A({mirror:qt,mutationCb:Lr,stylesheetManager:je,recordCrossOriginIframes:fe,wrappedEmit:We});for(const ce of Le||[])ce.getMirror&&ce.getMirror({nodeMirror:qt,crossOriginIframeMirror:vt.crossOriginIframeMirror,crossOriginIframeStyleMirror:vt.crossOriginIframeStyleMirror});const Ri=new UA,bt=HA(Za,{mirror:qt,win:window,mutationCb:ce=>We({type:ue.IncrementalSnapshot,data:{source:ee.CanvasMutation,...ce}}),recordCanvas:j,blockClass:s,blockSelector:o,unblockSelector:u,maxCanvasSize:U,sampling:R.canvas,dataURLOptions:W,errorHandler:ut}),Qn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new PA:new FA({mutationCb:Lr,scrollCb:Zn,bypassOptions:{onMutation:yt,blockClass:s,blockSelector:o,unblockSelector:u,maskAllText:d,maskTextClass:p,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:w,inlineStylesheet:S,maskInputOptions:Zt,dataURLOptions:W,maskAttributeFn:D,maskTextFn:K,maskInputFn:F,recordCanvas:j,inlineImages:de,sampling:R,slimDOMOptions:Cn,iframeManager:vt,stylesheetManager:je,canvasManager:bt,keepIframeSrcFn:me,processedNodeManager:Ri},mirror:qt}),ki=(ce=!1)=>{if(!B)return;We({type:ue.Meta,data:{href:window.location.href,width:kg(),height:Rg()}},ce),je.reset(),Qn.init(),ii.forEach(se=>se.lock());const $e=cA(document,{mirror:qt,blockClass:s,blockSelector:o,unblockSelector:u,maskAllText:d,maskTextClass:p,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:w,inlineStylesheet:S,maskAllInputs:Zt,maskAttributeFn:D,maskInputFn:F,maskTextFn:K,slimDOM:Cn,dataURLOptions:W,recordCanvas:j,inlineImages:de,onSerialize:se=>{Dg(se,qt)&&vt.addIframe(se),Lg(se,qt)&&je.trackLinkElement(se),cl(se)&&Qn.addShadowRoot(se.shadowRoot,document)},onIframeLoad:(se,Ie)=>{vt.attachIframe(se,Ie),se.contentWindow&&bt.addWindow(se.contentWindow),Qn.observeAttachShadow(se)},onStylesheetLoad:(se,Ie)=>{je.attachLinkElement(se,Ie)},keepIframeSrcFn:me});if(!$e)return console.warn("Failed to snapshot the document");We({type:ue.FullSnapshot,data:{node:$e,initialOffset:Og(window)}}),ii.forEach(se=>se.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&je.adoptStyleSheets(document.adoptedStyleSheets,qt.getId(document))};la=ki;try{const ce=[],$e=Ie=>ge(LA)({onMutation:yt,mutationCb:Lr,mousemoveCb:(ve,St)=>We({type:ue.IncrementalSnapshot,data:{source:St,positions:ve}}),mouseInteractionCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.MouseInteraction,...ve}}),scrollCb:Zn,viewportResizeCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.ViewportResize,...ve}}),inputCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.Input,...ve}}),mediaInteractionCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.MediaInteraction,...ve}}),styleSheetRuleCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.StyleSheetRule,...ve}}),styleDeclarationCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.StyleDeclaration,...ve}}),canvasMutationCb:Nr,fontCb:ve=>We({type:ue.IncrementalSnapshot,data:{source:ee.Font,...ve}}),selectionCb:ve=>{We({type:ue.IncrementalSnapshot,data:{source:ee.Selection,...ve}})},customElementCb:ve=>{We({type:ue.IncrementalSnapshot,data:{source:ee.CustomElement,...ve}})},blockClass:s,ignoreClass:c,ignoreSelector:f,maskAllText:d,maskTextClass:p,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:w,maskInputOptions:Zt,inlineStylesheet:S,sampling:R,recordDOM:B,recordCanvas:j,inlineImages:de,userTriggeredOnInput:Se,collectFonts:Xe,doc:Ie,maskAttributeFn:D,maskInputFn:F,maskTextFn:K,keepIframeSrcFn:me,blockSelector:o,unblockSelector:u,slimDOMOptions:Cn,dataURLOptions:W,mirror:qt,iframeManager:vt,stylesheetManager:je,shadowDomManager:Qn,processedNodeManager:Ri,canvasManager:bt,ignoreCSSAttributes:gt,plugins:_r([Le,"optionalAccess",ve=>ve.filter,"call",ve=>ve(St=>St.observer),"optionalAccess",ve=>ve.map,"call",ve=>ve(St=>({observer:St.observer,options:St.options,callback:Qa=>We({type:ue.Plugin,data:{plugin:St.name,payload:Qa}})}))])||[]},{});vt.addLoadListener(Ie=>{try{ce.push($e(Ie.contentDocument))}catch(ve){console.warn(ve)}});const se=()=>{ki(),ce.push($e(document))};return document.readyState==="interactive"||document.readyState==="complete"?se():(ce.push(ot("DOMContentLoaded",()=>{We({type:ue.DomContentLoaded,data:{}}),pe==="DOMContentLoaded"&&se()})),ce.push(ot("load",()=>{We({type:ue.Load,data:{}}),pe==="load"&&se()},window))),()=>{ce.forEach(Ie=>Ie()),Ri.destroy(),la=void 0,wA()}}catch(ce){console.warn(ce)}}function WA(e){if(!la)throw new Error("please take full snapshot after start recording");la(e)}En.mirror=qt;En.takeFullSnapshot=WA;function HA(e,t){try{return e?e(t):new I_}catch{return console.warn("Unable to initialize CanvasManager"),new I_}}const X=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,T_=["info","warn","error","log"],jo="[Replay] ";function Cc(e,t="info"){jn({category:"console",data:{logger:"replay"},level:t,message:`${jo}${e}`},{level:t})}function KA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return X?(T_.forEach(r=>{n[r]=(...s)=>{Z[r](jo,...s),t&&Cc(s.join(""),Um(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),Z.error(jo,r),e?Ym(r):t&&Cc(r,"error")},n.infoTick=(...r)=>{Z.info(jo,...r),t&&setTimeout(()=>Cc(r[0]),0)}):T_.forEach(r=>{n[r]=()=>{}}),n}const Q=KA(),zA=3,qA=5;function hf(e){return e>9999999999?e:e*1e3}function Oc(e){return e>9999999999?e/1e3:e}function Ts(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:ue.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:sn(t,10,1e3)}}),t.category==="console")))}const jA="button,a";function Wg(e){return e.closest(jA)||e}function Hg(e){const t=Kg(e);return!t||!(t instanceof Element)?t:Wg(t)}function Kg(e){return GA(e)?e.target:e}function GA(e){return typeof e=="object"&&!!e&&"target"in e}let Kn;function VA(e){return Kn||(Kn=[],YA()),Kn.push(e),()=>{const t=Kn?Kn.indexOf(e):-1;t>-1&&Kn.splice(t,1)}}function YA(){ht(Ae,"open",function(e){return function(...t){if(Kn)try{Kn.forEach(n=>n())}catch{}return e.apply(Ae,t)}})}const JA=new Set([ee.Mutation,ee.StyleSheetRule,ee.StyleDeclaration,ee.AdoptedStyleSheet,ee.CanvasMutation,ee.Selection,ee.MediaInteraction]);function XA(e,t,n){e.handleClick(t,n)}class ZA{constructor(t,n,r=Ts){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=VA(()=>{this._lastMutation=C_()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(eM(n,this._ignoreSelector)||!tM(t))return;const r={timestamp:Oc(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Oc(t)}registerScroll(t=Date.now()){this._lastScroll=Oc(t)}registerClick(t){const n=Wg(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=C_();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:u,clickBreadcrumb:c}=t;if(o){const f=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=f<this._timeout*1e3?"mutation":"timeout",p={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:Ae.location.href,route:n.getCurrentRoute(),timeAfterClickMs:f,endReason:d,clickCount:u||1}};this._addBreadcrumbEvent(n,p);return}if(u>1){const f={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:Ae.location.href,route:n.getCurrentRoute(),clickCount:u,metric:!0}};this._addBreadcrumbEvent(n,f)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=di(()=>this._checkClicks(),1e3)}}const QA=["A","BUTTON","INPUT"];function eM(e,t){return!!(!QA.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function tM(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function C_(){return Date.now()/1e3}function nM(e,t){try{if(!rM(t))return;const{source:n}=t.data;if(JA.has(n)&&e.registerMutation(t.timestamp),n===ee.Scroll&&e.registerScroll(t.timestamp),iM(t)){const{type:r,id:s}=t.data,o=En.mirror.getNode(s);o instanceof HTMLElement&&r===st.Click&&e.registerClick(o)}}catch{}}function rM(e){return e.type===zA}function iM(e){return e.data.source===ee.MouseInteraction}function an(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fa;(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"})(fa||(fa={}));const sM=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function oM(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(sM.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const aM=e=>t=>{if(!e.isEnabled())return;const n=uM(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&XA(e.clickDetector,n,Hg(t.event)),Ts(e,n)};function zg(e,t){const n=En.mirror.getId(e),r=n&&En.mirror.getNode(n),s=r&&En.mirror.getMeta(r),o=s&&lM(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(u=>u.type===fa.Text&&u.textContent).filter(Boolean).map(u=>u.trim()).join(""),attributes:oM(o.attributes)}}:{}}}function uM(e){const{target:t,message:n}=cM(e);return an({category:`ui.${e.name}`,...zg(t,n)})}function cM(e){const t=e.name==="click";let n,r=null;try{r=t?Hg(e.event):Kg(e.event),n=Ta(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function lM(e){return e.type===fa.Element}function fM(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=dM(t);n&&Ts(e,n)}function dM(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:u}=e;if(!u||hM(u)||!o)return null;const c=t||r||s,f=o.length===1;if(!c&&f)return null;const d=Ta(u,{maxStringLength:200})||"<unknown>",p=zg(u,d);return an({category:"ui.keyDown",message:d,data:{...p.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function hM(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const pM={resource:vM,paint:gM,navigation:yM};function Do(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function _M(e){return e.map(mM).filter(Boolean)}function mM(e){const t=pM[e.entryType];return t?t(e):null}function _i(e){return((hT||Ae.performance.timeOrigin)+e)/1e3}function gM(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=_i(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function yM(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:f,domInteractive:d,loadEventStart:p,loadEventEnd:_,redirectCount:v,startTime:w,transferSize:S,type:C}=e;return s===0?null:{type:`${t}.${C}`,start:_i(w),end:_i(o),name:n,data:{size:S,decodedBodySize:r,encodedBodySize:u,duration:s,domInteractive:d,domContentLoadedEventStart:c,domContentLoadedEventEnd:f,loadEventStart:p,loadEventEnd:_,domComplete:o,redirectCount:v}}}function vM(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:u,encodedBodySize:c,responseStatus:f,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:_i(o),end:_i(s),name:r,data:{size:d,statusCode:f,decodedBodySize:u,encodedBodySize:c}}}function bM(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return Na(e,"largest-contentful-paint",n)}function SM(e){return e.sources!==void 0}function wM(e){const t=[],n=[];for(const r of e.entries)if(SM(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const u=En.mirror.getId(o.node);u&&s.push(u)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Na(e,"cumulative-layout-shift",n,t)}function EM(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Na(e,"first-input-delay",n)}function xM(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return Na(e,"interaction-to-next-paint",n)}function Na(e,t,n,r){const s=e.value,o=e.rating,u=_i(s);return{type:"web-vital",name:t,start:u,end:u,data:{value:s,size:s,rating:o,nodeIds:n?n.map(c=>En.mirror.getId(c)):void 0,attributions:r}}}function IM(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(fR(s,n))}),r.push(uR(Do(bM,e)),aR(Do(wM,e)),cR(Do(EM,e)),lR(Do(xM,e))),()=>{r.forEach(s=>s())}}const TM='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function CM(){const e=new Blob([TM]);return URL.createObjectURL(e)}class pf extends Error{constructor(){super(`Event buffer exceeded maximum size of ${uf}.`)}}class qg{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>uf)throw new pf;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?hf(t):null}}class OM{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){X&&Q.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const u=({data:c})=>{const f=c;if(f.method===t&&f.id===r){if(this._worker.removeEventListener("message",u),!f.success){X&&Q.error("Error in compression worker: ",f.response),o(new Error("Error in compression worker"));return}s(f.response)}};this._worker.addEventListener("message",u),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class RM{constructor(t){this._worker=new OM(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=hf(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>uf?Promise.reject(new pf):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{X&&Q.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class kM{constructor(t){this._fallback=new qg,this._compression=new RM(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){X&&Q.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const s of t)r.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(s){X&&Q.exception(s,"Failed to add events when switching buffers.")}}}function AM({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=MM(t);if(n)return n}return X&&Q.info("Using simple buffer"),new qg}function MM(e){try{const t=e||DM();if(!t)return;X&&Q.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new kM(n)}catch(t){X&&Q.exception(t,"Failed to create compression worker")}}function DM(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?CM():""}function _f(){try{return"sessionStorage"in Ae&&!!Ae.sessionStorage}catch{return!1}}function LM(e){NM(),e.session=void 0}function NM(){if(_f())try{Ae.sessionStorage.removeItem(of)}catch{}}function jg(e){return e===void 0?!1:Math.random()<e}function Gg(e){const t=Date.now(),n=e.id||Rt(),r=e.started||t,s=e.lastActivity||t,o=e.segmentId||0,u=e.sampled,c=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:u,previousSessionId:c}}function mf(e){if(_f())try{Ae.sessionStorage.setItem(of,JSON.stringify(e))}catch{}}function $M(e,t){return jg(e)?"session":t?"buffer":!1}function O_({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=$M(e,t),o=Gg({sampled:s,previousSessionId:r});return n&&mf(o),o}function PM(){if(!_f())return null;try{const e=Ae.sessionStorage.getItem(of);if(!e)return null;const t=JSON.parse(e);return X&&Q.infoTick("Loading existing session"),Gg(t)}catch{return null}}function dl(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Vg(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return dl(e.started,t,r)||dl(e.lastActivity,n,r)}function Yg(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Vg(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Rc({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&PM();return s?Yg(s,{sessionIdleExpire:e,maxReplayDuration:t})?(X&&Q.infoTick("Session in sessionStorage is expired, creating new one..."),O_(r,{previousSessionId:s.id})):s:(X&&Q.infoTick("Creating new session"),O_(r,{previousSessionId:n}))}function FM(e){return e.type===ue.Custom}function gf(e,t,n){return Xg(e,t)?(Jg(e,t,n),!0):!1}function BM(e,t,n){return Xg(e,t)?Jg(e,t,n):Promise.resolve(null)}async function Jg(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),s=UM(t,r.beforeAddRecordingEvent);return s?await e.eventBuffer.addEvent(s):void 0}catch(r){const s=r&&r instanceof pf?"addEventSizeExceeded":"addEvent";e.handleException(r),await e.stop({reason:s});const o=Be();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}function Xg(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=hf(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(X&&Q.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function UM(e,t){try{if(typeof t=="function"&&FM(e))return t(e)}catch(n){return X&&Q.exception(n,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function yf(e){return!e.type}function hl(e){return e.type==="transaction"}function WM(e){return e.type==="replay_event"}function R_(e){return e.type==="feedback"}function HM(e){return(t,n)=>{if(!e.isEnabled()||!yf(t)&&!hl(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(hl(t)){KM(e,t);return}zM(e,t)}}}function KM(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function zM(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||di(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function qM(e){return t=>{!e.isEnabled()||!yf(t)||jM(e,t)}}function jM(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=an({category:"replay.hydrate-error",data:{url:Rm()}});Ts(e,r)}}function GM(e){const t=Be();t&&t.on("beforeAddBreadcrumb",n=>VM(e,n))}function VM(e,t){if(!e.isEnabled()||!Zg(t))return;const n=YM(t);n&&Ts(e,n)}function YM(e){return!Zg(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?JM(e):an(e)}function JM(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return an(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>ko?(n=!0,`${s.slice(0,ko)}…`):s;if(typeof s=="object")try{const o=sn(s,7);return JSON.stringify(o).length>ko?(n=!0,`${JSON.stringify(o,null,2).slice(0,ko)}…`):o}catch{}return s});return an({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Zg(e){return!!e.category}function XM(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function ZM(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:ue.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function QM(e,t){return e.recordingMode!=="buffer"||t.message===af||!t.exception||t.type?!1:jg(e.getOptions().errorSampleRate)}function eD(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:WM(t)?(delete t.breadcrumbs,t):!yf(t)&&!hl(t)&&!R_(t)||!e.checkAndHandleExpiredSession()?t:R_(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),ZM(e,t),t):XM(t,n)&&!e.getOptions()._experiments.captureExceptions?(X&&Q.log("Ignoring error from rrweb internals",t),null):((QM(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t),{id:"Replay"})}function $a(e,t){return t.map(({type:n,start:r,end:s,name:o,data:u})=>{const c=e.throttledAddEvent({type:ue.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:u}}});return typeof c=="string"?Promise.resolve(null):c})}function tD(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function nD(e){return t=>{if(!e.isEnabled())return;const n=tD(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>($a(e,[n]),!1)))}}function rD(e,t){return X&&e.getOptions()._experiments.traceInternals?!1:QC(t,Be())}function Qg(e,t){e.isEnabled()&&t!==null&&(rD(e,t.name)||e.addUpdate(()=>($a(e,[t]),!0)))}function Pa(e){if(!e)return;const t=new TextEncoder;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 n=ry(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ey(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ty(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ry(e)];if(!e)return[void 0]}catch(t){return X&&Q.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return X&&Q.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function da(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ny(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:u,request:c,response:f}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:pt({method:o,statusCode:u,request:c,response:f})}}function ps(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function qn(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=iD(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function pl(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function ry(e){return new URLSearchParams(e).toString()}function iD(e){if(!e||typeof e!="string")return{body:e};const t=e.length>f_,n=sD(e);if(t){const r=e.slice(0,f_);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function sD(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function ha(e,t){const n=oD(e);return gs(n,t)}function oD(e,t=Ae.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ae.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function aD(e,t,n){try{const r=await cD(e,t,n),s=ny("resource.fetch",r);Qg(n.replay,s)}catch(r){X&&Q.exception(r,"Failed to capture fetch breadcrumb")}}function uD(e,t){const{input:n,response:r}=t,s=n?iy(n):void 0,o=Pa(s),u=r?ey(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),u!==void 0&&(e.data.response_body_size=u)}async function cD(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:u,method:c,status_code:f=0,request_body_size:d,response_body_size:p}=e.data,_=ha(u,n.networkDetailAllowUrls)&&!ha(u,n.networkDetailDenyUrls),v=_?lD(n,t.input,d):ps(d),w=await fD(_,n,t.response,p);return{startTimestamp:s,endTimestamp:o,url:u,method:c,statusCode:f,request:v,response:w}}function lD({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?pD(n,t):{};if(!e)return qn(s,r,void 0);const o=iy(n),[u,c]=ty(o),f=qn(s,r,u);return c?da(f,c):f}async function fD(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return ps(s);const o=r?sy(r.headers,n):{};if(!r||!t&&s!==void 0)return qn(o,s,void 0);const[u,c]=await hD(r),f=dD(u,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return c?da(f,c):f}function dD(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&n===void 0?Pa(e):n;return r?t?qn(s,o,e):qn(s,o,void 0):ps(o)}catch(o){return X&&Q.exception(o,"Failed to serialize response body"),qn(s,n,void 0)}}async function hD(e){const t=_D(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await mD(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(X&&Q.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(X&&Q.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function iy(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function sy(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function pD(e,t){return e.length===1&&typeof e[0]!="string"?k_(e[0],t):e.length===2?k_(e[1],t):{}}function k_(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?sy(n,t):Array.isArray(n)?{}:pl(n,t):{}}function _D(e){try{return e.clone()}catch(t){X&&Q.exception(t,"Failed to clone response body")}}function mD(e){return new Promise((t,n)=>{const r=di(()=>n(new Error("Timeout while trying to read response body")),500);gD(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function gD(e){return await e.text()}async function yD(e,t,n){try{const r=bD(e,t,n),s=ny("resource.xhr",r);Qg(n.replay,s)}catch(r){X&&Q.exception(r,"Failed to capture xhr breadcrumb")}}function vD(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Pa(r),o=n.getResponseHeader("content-length")?ey(n.getResponseHeader("content-length")):xD(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function bD(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:u,xhr:c}=t,{url:f,method:d,status_code:p=0,request_body_size:_,response_body_size:v}=e.data;if(!f)return null;if(!c||!ha(f,n.networkDetailAllowUrls)||ha(f,n.networkDetailDenyUrls)){const A=ps(_),R=ps(v);return{startTimestamp:s,endTimestamp:o,url:f,method:d,statusCode:p,request:A,response:R}}const w=c[ei],S=w?pl(w.request_headers,n.networkRequestHeaders):{},C=pl(SD(c),n.networkResponseHeaders),[E,O]=n.networkCaptureBodies?ty(u):[void 0],[D,F]=n.networkCaptureBodies?wD(c):[void 0],K=qn(S,_,E),U=qn(C,v,D);return{startTimestamp:s,endTimestamp:o,url:f,method:d,statusCode:p,request:O?da(K,O):K,response:F?da(U,F):U}}function SD(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}function wD(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return ED(e.response,e.responseType)}catch(n){t.push(n)}return X&&Q.warn("Failed to get xhr response body",...t),[void 0]}function ED(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return X&&Q.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return X&&Q.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function xD(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Pa(n)}catch{return}}function ID(e){const t=Be();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:u}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:u};t&&t.on("beforeAddBreadcrumb",(f,d)=>TD(c,f,d))}catch{}}function TD(e,t,n){if(t.data)try{CD(t)&&RD(n)&&(vD(t,n),yD(t,n,e)),OD(t)&&kD(n)&&(uD(t,n),aD(t,n,e))}catch(r){X&&Q.exception(r,"Error when enriching network breadcrumb")}}function CD(e){return e.category==="xhr"}function OD(e){return e.category==="fetch"}function RD(e){return e&&e.xhr}function kD(e){return e&&e.response}function AD(e){const t=Be();mg(aM(e)),sf(nD(e)),GM(e),ID(e);const n=eD(e);PC(n),t&&(t.on("beforeSendEvent",qM(e)),t.on("afterSendEvent",HM(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,s)=>{const o=e.getSessionId();s&&s.includeReplay&&e.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}async function MD(e){try{return Promise.all($a(e,[DD(Ae.performance.memory)]))}catch{return[]}}function DD(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function LD(e,t,n){let r,s,o;const u=n&&n.maxWait?Math.max(n.maxWait,t):0;function c(){return f(),r=e(),r}function f(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function d(){return s!==void 0||o!==void 0?c():r}function p(){return s&&clearTimeout(s),s=di(c,t),u&&o===void 0&&(o=di(c,u)),r}return p.cancel=f,p.flush=d,p}function ND(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){X&&Q.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&nM(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!gf(e,n,s))return!0;if(!s)return!1;const o=e.session;if(PD(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer){const u=e.eventBuffer.getEarliestTimestamp();u&&(X&&Q.info(`Updating session start time to earliest event in buffer to ${new Date(u)}`),o.started=u,e.getOptions().stickySession&&mf(o))}return o&&o.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function $D(e){const t=e.getOptions();return{type:ue.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function PD(e,t){!t||!e.session||e.session.segmentId!==0||gf(e,$D(e),!1)}function FD(){const e=Yt().getPropagationContext().dsc;e&&delete e.replay_id;const t=qm();if(t){const n=Gm(t);delete n.replay_id}}function BD(e,t,n,r){return Si(Wm(e,Gl(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function UD({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function WD({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const u=await Vm(e.getOptions(),r,o,t,e,Yn());if(!u)return null;u.platform=u.platform||"javascript";const c=e.getSdkMetadata(),{name:f,version:d}=c&&c.sdk||{};return u.sdk={...u.sdk,name:f||"sentry.javascript.unknown",version:d||"0.0.0"},u}async function HD({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const u=UD({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:f,traceIds:d,initialTimestamp:p}=r,_=Be(),v=Yt(),w=_&&_.getTransport(),S=_&&_.getDsn();if(!_||!w||!S||!o.sampled)return In({});const C={type:wk,replay_start_timestamp:p/1e3,timestamp:s/1e3,error_ids:f,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:o.sampled},E=await WD({scope:v,client:_,replayId:t,event:C});if(!E)return _.recordDroppedEvent("event_processor","replay",C),X&&Q.info("An event processor returned `null`, will not send event."),In({});delete E.sdkProcessingMetadata;const O=BD(E,u,S,_.getOptions().tunnel);let D;try{D=await w.send(O)}catch(K){const U=new Error(af);try{U.cause=K}catch{}throw U}if(typeof D.statusCode=="number"&&(D.statusCode<200||D.statusCode>=300))throw new oy(D.statusCode);const F=Km({},D);if(Hm(F,"replay"))throw new vf(F);return D}class oy extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class vf extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function ay(e,t={count:0,interval:Ok}){const{recordingData:n,onError:r}=e;if(n.length)try{return await HD(e),!0}catch(s){if(s instanceof oy||s instanceof vf)throw s;if($C("Replays",{_retryCount:t.count}),r&&r(s),t.count>=Rk){const o=new Error(`${af} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,u)=>{di(async()=>{try{await ay(e,t),o(!0)}catch(c){u(c)}},t.interval)})}}const uy="__THROTTLED",KD="__SKIPPED";function zD(e,t,n){const r=new Map,s=c=>{const f=c-n;r.forEach((d,p)=>{p<f&&r.delete(p)})},o=()=>[...r.values()].reduce((c,f)=>c+f,0);let u=!1;return(...c)=>{const f=Math.floor(Date.now()/1e3);if(s(f),o()>=t){const p=u;return u=!0,p?KD:uy}u=!1;const d=r.get(f)||0;return r.set(f,d+1),e(...c)}}class zn{constructor({options:t,recordingOptions:n}){zn.prototype.__init.call(this),zn.prototype.__init2.call(this),zn.prototype.__init3.call(this),zn.prototype.__init4.call(this),zn.prototype.__init5.call(this),zn.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Ek,sessionIdleExpire:xk},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=LD(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=zD((u,c)=>BM(this,u,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(kk,r),timeout:r,scrollTimeout:Ak,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new ZA(this,o)),X){const u=t._experiments;Q.setConfig({captureExceptions:!!u.captureExceptions,traceInternals:!!u.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){X&&Q.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){X&&Q.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",X&&Q.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){X&&Q.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){X&&Q.info("Buffering is in progress, call `flush()` to save the replay");return}X&&Q.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Rc({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){X&&Q.info("Buffering is in progress, call `flush()` to save the replay");return}X&&Q.infoTick("Starting replay in buffer mode");const t=Rc({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=En({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Ck}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:ND(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{X&&Q.info(`Stopping Replay${n?` triggered by ${n}`:""}`),FD(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,LM(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),X&&Q.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),X&&Q.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();X&&Q.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&dl(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ae.location.pathname}${Ae.location.hash}${Ae.location.search}`,n=`${Ae.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===uy){const s=an({category:"replay.throttled"});this.addUpdate(()=>!gf(this,{type:qA,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||qm(),n=t&&Jl(t),s=(n&&li(n).data||{})[zm];if(!(!n||!s||!["route","custom"].includes(s)))return li(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=AM({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Rc({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Yg(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ae.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ae.addEventListener("blur",this._handleWindowBlur),Ae.addEventListener("focus",this._handleWindowFocus),Ae.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(AD(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=IM(this)}_removeListeners(){try{Ae.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ae.removeEventListener("blur",this._handleWindowBlur),Ae.removeEventListener("focus",this._handleWindowFocus),Ae.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{Ae.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=an({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=an({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{fM(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Vg(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){X&&Q.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:ue.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=_M(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all($a(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){X&&Q.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await MD(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await ay({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:u=>this.handleException(u)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Be();if(r){const s=n instanceof vf?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){X&&Q.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const o=s<this._options.minReplayDuration,u=s>this._options.maxReplayDuration+5e3;if(o||u){X&&Q.info(`Session duration (${Math.floor(s/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&X&&Q.info("Flushing initial segment without checkout.");const f=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,f&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&mf(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>s||o){const u=an({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(u)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Yi(e,t){return[...e,...t].join(",")}function qD({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const o=['base[href="/"]'],u=Yi(e,[".sentry-mask","[data-sentry-mask]"]),c=Yi(t,[]);return{maskTextSelector:u,unmaskTextSelector:c,blockSelector:Yi(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:Yi(r,[]),ignoreSelector:Yi(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function jD({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const A_='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',GD=["content-length","content-type","accept"];let M_=!1;const VD=e=>new Fa(e);class Fa{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Ik,flushMaxDelay:n=Tk,minReplayDuration:r=Mk,maxReplayDuration:s=d_,stickySession:o=!0,useCompression:u=!0,workerUrl:c,_experiments:f={},maskAllText:d=!0,maskAllInputs:p=!0,blockAllMedia:_=!0,mutationBreadcrumbLimit:v=750,mutationLimit:w=1e4,slowClickTimeout:S=7e3,slowClickIgnoreSelectors:C=[],networkDetailAllowUrls:E=[],networkDetailDenyUrls:O=[],networkCaptureBodies:D=!0,networkRequestHeaders:F=[],networkResponseHeaders:K=[],mask:U=[],maskAttributes:A=["title","placeholder"],unmask:R=[],block:W=[],unblock:V=[],ignore:B=[],maskFn:j,beforeAddRecordingEvent:fe,beforeErrorSampling:pe}={}){this.name=Fa.id;const Se=qD({mask:U,unmask:R,block:W,unblock:V,ignore:B});if(this._recordingOptions={maskAllInputs:p,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:j,maskInputFn:j,maskAttributeFn:(Xe,de,Le)=>jD({maskAttributes:A,maskAllText:d,privacyOptions:Se,key:Xe,value:de,el:Le}),...Se,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Xe=>{try{Xe.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Dk),maxReplayDuration:Math.min(s,d_),stickySession:o,useCompression:u,workerUrl:c,blockAllMedia:_,maskAllInputs:p,maskAllText:d,mutationBreadcrumbLimit:v,mutationLimit:w,slowClickTimeout:S,slowClickIgnoreSelectors:C,networkDetailAllowUrls:E,networkDetailDenyUrls:O,networkCaptureBodies:D,networkRequestHeaders:D_(F),networkResponseHeaders:D_(K),beforeAddRecordingEvent:fe,beforeErrorSampling:pe,_experiments:f},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${A_}`:A_),this._isInitialized&&Np())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return M_}set _isInitialized(t){M_=t}afterAllSetup(t){!Np()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=YD(this._initialOptions,t);this._replay=new zn({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Fa.__initStatic();function YD(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...pt(e)},s=Xc(n.replaysSessionSampleRate),o=Xc(n.replaysOnErrorSampleRate);return s==null&&o==null&&bi(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function D_(e){return[...GD,...e.map(t=>t.toLowerCase())]}var L_;(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"})(L_||(L_={}));function JD(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function _l(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_l(e.parentNode,t,n,r+1)}function N_(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(JD(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Qr=`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 $_={map:{},getId(){return console.error(Qr),-1},getNode(){return console.error(Qr),null},removeNodeFromMap(){console.error(Qr)},has(){return console.error(Qr),!1},reset(){console.error(Qr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&($_=new Proxy($_,{get(e,t,n){return t==="map"&&console.error(Qr),Reflect.get(e,t,n)}}));function bf(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(u){ly(()=>{n.set.call(this,u)},0),o&&o.set&&o.set.call(this,u)}}),()=>bf(e,t,o||{},!0)}function Sf(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function XD(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Ba(e,t,n,r,s){if(!e)return!1;const o=XD(e);if(!o)return!1;const u=N_(t,n),c=_l(o,u);let f=-1;return c<0?!1:(r&&(f=_l(o,N_(null,r))),c>-1&&f<0?!0:c<f)}const P_={};function cy(e){const t=P_[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return P_[e]=r.bind(window)}function cr(...e){return cy("requestAnimationFrame")(...e)}function ly(...e){return cy("setTimeout")(...e)}var mi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(mi||{});let Go;function ZD(e){Go=e}const kc=e=>Go?(...n)=>{try{return e(...n)}catch(r){if(Go&&Go(r)===!0)return()=>{};throw r}}:e;var si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QD=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Lo=0;Lo<si.length;Lo++)QD[si.charCodeAt(Lo)]=Lo;var eL=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=si[t[n]>>2],s+=si[(t[n]&3)<<4|t[n+1]>>4],s+=si[(t[n+1]&15)<<2|t[n+2]>>6],s+=si[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const F_=new Map;function tL(e,t){let n=F_.get(e);return n||(n=new Map,F_.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const fy=(e,t,n)=>{if(!e||!(hy(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=tL(n,r);let o=s.indexOf(e);return o===-1&&(o=s.length,s.push(e)),o};function Vo(e,t,n){if(e instanceof Array)return e.map(r=>Vo(r,t,n));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 r=e.constructor.name,s=eL(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Vo(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Vo(e.data,t,n),e.width,e.height]};if(hy(e,t)||typeof e=="object"){const r=e.constructor.name,s=fy(e,t,n);return{rr_type:r,index:s}}}}return e}const dy=(e,t,n)=>e.map(r=>Vo(r,t,n)),hy=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function nL(e,t,n,r,s){const o=[],u=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const c of u)try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")continue;const f=Sf(t.CanvasRenderingContext2D.prototype,c,function(d){return function(...p){return Ba(this.canvas,n,r,s,!0)||ly(()=>{const _=dy(p,t,this);e(this.canvas,{type:mi["2D"],property:c,args:_})},0),d.apply(this,p)}});o.push(f)}catch{const d=bf(t.CanvasRenderingContext2D.prototype,c,{set(p){e(this.canvas,{type:mi["2D"],property:c,args:[p],setter:!0})}});o.push(d)}return()=>{o.forEach(c=>c())}}function rL(e){return e==="experimental-webgl"?"webgl":e}function B_(e,t,n,r,s){const o=[];try{const u=Sf(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(f,...d){if(!Ba(this,t,n,r,!0)){const p=rL(f);if("__context"in this||(this.__context=p),s&&["webgl","webgl2"].includes(p))if(d[0]&&typeof d[0]=="object"){const _=d[0];_.preserveDrawingBuffer||(_.preserveDrawingBuffer=!0)}else d.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[f,...d])}});o.push(u)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(u=>u())}}function U_(e,t,n,r,s,o,u,c){const f=[],d=Object.getOwnPropertyNames(e);for(const p of d)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(p))try{if(typeof e[p]!="function")continue;const _=Sf(e,p,function(v){return function(...w){const S=v.apply(this,w);if(fy(S,c,this),"tagName"in this.canvas&&!Ba(this.canvas,r,s,o,!0)){const C=dy(w,c,this),E={type:t,property:p,args:C};n(this.canvas,E)}return S}});f.push(_)}catch{const v=bf(e,p,{set(w){n(this.canvas,{type:t,property:p,args:[w],setter:!0})}});f.push(v)}return f}function iL(e,t,n,r,s,o){const u=[];return u.push(...U_(t.WebGLRenderingContext.prototype,mi.WebGL,e,n,r,s,o,t)),typeof t.WebGL2RenderingContext<"u"&&u.push(...U_(t.WebGL2RenderingContext.prototype,mi.WebGL2,e,n,r,s,o,t)),()=>{u.forEach(c=>c())}}var sL='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function oL(){const e=new Blob([sL]);return URL.createObjectURL(e)}class aL{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,_r([this,"access",t=>t.worker,"optionalAccess",t=>t.terminate,"call",t=>t()]),this.worker=null,this.snapshotInProgressMap=new Map,(this.options.recordCanvas&&typeof this.options.sampling=="number"||this.options.enableManualSnapshot)&&(this.worker=this.initFPSWorker())}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.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(_,v)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(_)||this.pendingCanvasMutations.set(_,[]),this.pendingCanvasMutations.get(_).push(v)};const{sampling:n="all",win:r,blockClass:s,blockSelector:o,unblockSelector:u,maxCanvasSize:c,recordCanvas:f,dataURLOptions:d,errorHandler:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,p&&ZD(p),(f&&typeof n=="number"||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t.enableManualSnapshot&&kc(()=>{f&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),f&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,o,u,c,{dataURLOptions:d})})()}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:s,unblockSelector:o,recordCanvas:u,enableManualSnapshot:c}=this.options;if(!this.windowsSet.has(t)){if(c){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}kc(()=>{if(u&&n==="all"&&this.initCanvasMutationObserver(t,r,s,o),u&&typeof n=="number"){const f=B_(t,r,s,o,!0);this.restoreHandlers.push(()=>{f()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const t=new Worker(oL());return t.onmessage=n=>{const r=n.data,{id:s}=r;if(this.snapshotInProgressMap.set(s,!1),!("base64"in r))return;const{base64:o,type:u,width:c,height:f}=r;this.mutationCb({id:s,type:mi["2D"],commands:[{property:"clearRect",args:[0,0,c,f]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:u}]},0,0,c,f]}]})},t}initCanvasFPSObserver(t,n,r,s,o,u){const c=this.takeSnapshot(!1,t,n,r,s,o,u.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(c)})}initCanvasMutationObserver(t,n,r,s){const o=B_(t,n,r,s,!1),u=nL(this.processMutation.bind(this),t,n,r,s),c=iL(this.processMutation.bind(this),t,n,r,s,this.mirror);this.restoreHandlers.push(()=>{o(),u(),c()})}snapshot(t){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(t,n,r,s,o,u,c,f){const d=1e3/n;let p=0,_;const v=S=>{if(S)return[S];const C=[],E=O=>{O.querySelectorAll("canvas").forEach(D=>{Ba(D,r,s,o)||C.push(D)})};for(const O of this.windows){const D=O.deref();D&&E(D.document)}for(const O of this.shadowDoms){const D=O.deref();D&&E(D)}return C},w=S=>{if(this.windows.length){if(p&&S-p<d){_=cr(w);return}p=S,v(f).forEach(C=>{if(!this.mirror.hasNode(C))return;const E=this.mirror.getId(C);if(!this.snapshotInProgressMap.get(E)&&!(!C.width||!C.height)){if(this.snapshotInProgressMap.set(E,!0),!t&&["webgl","webgl2"].includes(C.__context)){const O=C.getContext(C.__context);_r([O,"optionalAccess",D=>D.getContextAttributes,"call",D=>D(),"optionalAccess",D=>D.preserveDrawingBuffer])===!1&&O.clear(O.COLOR_BUFFER_BIT)}createImageBitmap(C).then(O=>{_r([this,"access",D=>D.worker,"optionalAccess",D=>D.postMessage,"call",D=>D({id:E,bitmap:O,width:C.width,height:C.height,dataURLOptions:c,maxCanvasSize:u},[O])])}).catch(O=>{kc(()=>{throw O})()})}}),t||(_=cr(w))}};return _=cr(w),_}startPendingCanvasMutationFlusher(){cr(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,cr(t)};cr(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),cr(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(u=>{const{type:c,...f}=u;return f}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:s}),this.pendingCanvasMutations.delete(t)}}const W_={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},uL="ReplayCanvas",No=1280,cL=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,No):No,n?Math.min(n,No):No]};let s;const o=new Promise(u=>s=u);return{name:uL,getOptions(){const{quality:u,enableManualSnapshot:c,maxCanvasSize:f}=r;return{enableManualSnapshot:c,recordCanvas:!0,getCanvasManager:d=>{const p=new aL({...d,enableManualSnapshot:c,maxCanvasSize:f,errorHandler:_=>{try{typeof _=="object"&&(_.__rrweb__=!0)}catch{}}});return s(p),p},...W_[u||"medium"]||W_.medium}},async snapshot(u){(await o).snapshot(u)}}},lL=cL;var pa={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */pa.exports;(function(e,t){(function(){var n,r="4.17.21",s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",_=1,v=2,w=4,S=1,C=2,E=1,O=2,D=4,F=8,K=16,U=32,A=64,R=128,W=256,V=512,B=30,j="...",fe=800,pe=16,Se=1,Xe=2,de=3,Le=1/0,me=9007199254740991,gt=17976931348623157e292,ut=NaN,yt=4294967295,Za=yt-1,Dr=yt>>>1,Xn=[["ary",R],["bind",E],["bindKey",O],["curry",F],["curryRight",K],["flip",V],["partial",U],["partialRight",A],["rearg",W]],Zt="[object Arguments]",Cn="[object Array]",Oi="[object AsyncFunction]",un="[object Boolean]",On="[object Date]",Lr="[object DOMException]",Zn="[object Error]",Nr="[object Function]",Ds="[object GeneratorFunction]",je="[object Map]",vt="[object Number]",Ri="[object Null]",bt="[object Object]",Qn="[object Promise]",ki="[object Proxy]",ce="[object RegExp]",$e="[object Set]",se="[object String]",Ie="[object Symbol]",ve="[object Undefined]",St="[object WeakMap]",Qa="[object WeakSet]",Ai="[object ArrayBuffer]",$r="[object DataView]",eu="[object Float32Array]",tu="[object Float64Array]",nu="[object Int8Array]",ru="[object Int16Array]",iu="[object Int32Array]",su="[object Uint8Array]",ou="[object Uint8ClampedArray]",au="[object Uint16Array]",uu="[object Uint32Array]",ab=/\b__p \+= '';/g,ub=/\b(__p \+=) '' \+/g,cb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yf=/&(?:amp|lt|gt|quot|#39);/g,Jf=/[&<>"']/g,lb=RegExp(Yf.source),fb=RegExp(Jf.source),db=/<%-([\s\S]+?)%>/g,hb=/<%([\s\S]+?)%>/g,Xf=/<%=([\s\S]+?)%>/g,pb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_b=/^\w*$/,mb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cu=/[\\^$.*+?()[\]{}|]/g,gb=RegExp(cu.source),lu=/^\s+/,yb=/\s/,vb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bb=/\{\n\/\* \[wrapped with (.+)\] \*/,Sb=/,? & /,wb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Eb=/[()=,{}\[\]\/\s]/,xb=/\\(\\)?/g,Ib=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zf=/\w*$/,Tb=/^[-+]0x[0-9a-f]+$/i,Cb=/^0b[01]+$/i,Ob=/^\[object .+?Constructor\]$/,Rb=/^0o[0-7]+$/i,kb=/^(?:0|[1-9]\d*)$/,Ab=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ls=/($^)/,Mb=/['\n\r\u2028\u2029\\]/g,Ns="\\ud800-\\udfff",Db="\\u0300-\\u036f",Lb="\\ufe20-\\ufe2f",Nb="\\u20d0-\\u20ff",Qf=Db+Lb+Nb,ed="\\u2700-\\u27bf",td="a-z\\xdf-\\xf6\\xf8-\\xff",$b="\\xac\\xb1\\xd7\\xf7",Pb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fb="\\u2000-\\u206f",Bb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nd="A-Z\\xc0-\\xd6\\xd8-\\xde",rd="\\ufe0e\\ufe0f",id=$b+Pb+Fb+Bb,fu="['’]",Ub="["+Ns+"]",sd="["+id+"]",$s="["+Qf+"]",od="\\d+",Wb="["+ed+"]",ad="["+td+"]",ud="[^"+Ns+id+od+ed+td+nd+"]",du="\\ud83c[\\udffb-\\udfff]",Hb="(?:"+$s+"|"+du+")",cd="[^"+Ns+"]",hu="(?:\\ud83c[\\udde6-\\uddff]){2}",pu="[\\ud800-\\udbff][\\udc00-\\udfff]",Pr="["+nd+"]",ld="\\u200d",fd="(?:"+ad+"|"+ud+")",Kb="(?:"+Pr+"|"+ud+")",dd="(?:"+fu+"(?:d|ll|m|re|s|t|ve))?",hd="(?:"+fu+"(?:D|LL|M|RE|S|T|VE))?",pd=Hb+"?",_d="["+rd+"]?",zb="(?:"+ld+"(?:"+[cd,hu,pu].join("|")+")"+_d+pd+")*",qb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",md=_d+pd+zb,Gb="(?:"+[Wb,hu,pu].join("|")+")"+md,Vb="(?:"+[cd+$s+"?",$s,hu,pu,Ub].join("|")+")",Yb=RegExp(fu,"g"),Jb=RegExp($s,"g"),_u=RegExp(du+"(?="+du+")|"+Vb+md,"g"),Xb=RegExp([Pr+"?"+ad+"+"+dd+"(?="+[sd,Pr,"$"].join("|")+")",Kb+"+"+hd+"(?="+[sd,Pr+fd,"$"].join("|")+")",Pr+"?"+fd+"+"+dd,Pr+"+"+hd,jb,qb,od,Gb].join("|"),"g"),Zb=RegExp("["+ld+Ns+Qf+rd+"]"),Qb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tS=-1,Me={};Me[eu]=Me[tu]=Me[nu]=Me[ru]=Me[iu]=Me[su]=Me[ou]=Me[au]=Me[uu]=!0,Me[Zt]=Me[Cn]=Me[Ai]=Me[un]=Me[$r]=Me[On]=Me[Zn]=Me[Nr]=Me[je]=Me[vt]=Me[bt]=Me[ce]=Me[$e]=Me[se]=Me[St]=!1;var Re={};Re[Zt]=Re[Cn]=Re[Ai]=Re[$r]=Re[un]=Re[On]=Re[eu]=Re[tu]=Re[nu]=Re[ru]=Re[iu]=Re[je]=Re[vt]=Re[bt]=Re[ce]=Re[$e]=Re[se]=Re[Ie]=Re[su]=Re[ou]=Re[au]=Re[uu]=!0,Re[Zn]=Re[Nr]=Re[St]=!1;var nS={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},rS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},iS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},sS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oS=parseFloat,aS=parseInt,gd=typeof Gi=="object"&&Gi&&Gi.Object===Object&&Gi,uS=typeof self=="object"&&self&&self.Object===Object&&self,Ze=gd||uS||Function("return this")(),mu=t&&!t.nodeType&&t,er=mu&&!0&&e&&!e.nodeType&&e,yd=er&&er.exports===mu,gu=yd&&gd.process,At=function(){try{var I=er&&er.require&&er.require("util").types;return I||gu&&gu.binding&&gu.binding("util")}catch{}}(),vd=At&&At.isArrayBuffer,bd=At&&At.isDate,Sd=At&&At.isMap,wd=At&&At.isRegExp,Ed=At&&At.isSet,xd=At&&At.isTypedArray;function wt(I,L,k){switch(k.length){case 0:return I.call(L);case 1:return I.call(L,k[0]);case 2:return I.call(L,k[0],k[1]);case 3:return I.call(L,k[0],k[1],k[2])}return I.apply(L,k)}function cS(I,L,k,z){for(var te=-1,we=I==null?0:I.length;++te<we;){var Ge=I[te];L(z,Ge,k(Ge),I)}return z}function Mt(I,L){for(var k=-1,z=I==null?0:I.length;++k<z&&L(I[k],k,I)!==!1;);return I}function lS(I,L){for(var k=I==null?0:I.length;k--&&L(I[k],k,I)!==!1;);return I}function Id(I,L){for(var k=-1,z=I==null?0:I.length;++k<z;)if(!L(I[k],k,I))return!1;return!0}function Rn(I,L){for(var k=-1,z=I==null?0:I.length,te=0,we=[];++k<z;){var Ge=I[k];L(Ge,k,I)&&(we[te++]=Ge)}return we}function Ps(I,L){var k=I==null?0:I.length;return!!k&&Fr(I,L,0)>-1}function yu(I,L,k){for(var z=-1,te=I==null?0:I.length;++z<te;)if(k(L,I[z]))return!0;return!1}function Ne(I,L){for(var k=-1,z=I==null?0:I.length,te=Array(z);++k<z;)te[k]=L(I[k],k,I);return te}function kn(I,L){for(var k=-1,z=L.length,te=I.length;++k<z;)I[te+k]=L[k];return I}function vu(I,L,k,z){var te=-1,we=I==null?0:I.length;for(z&&we&&(k=I[++te]);++te<we;)k=L(k,I[te],te,I);return k}function fS(I,L,k,z){var te=I==null?0:I.length;for(z&&te&&(k=I[--te]);te--;)k=L(k,I[te],te,I);return k}function bu(I,L){for(var k=-1,z=I==null?0:I.length;++k<z;)if(L(I[k],k,I))return!0;return!1}var dS=Su("length");function hS(I){return I.split("")}function pS(I){return I.match(wb)||[]}function Td(I,L,k){var z;return k(I,function(te,we,Ge){if(L(te,we,Ge))return z=we,!1}),z}function Fs(I,L,k,z){for(var te=I.length,we=k+(z?1:-1);z?we--:++we<te;)if(L(I[we],we,I))return we;return-1}function Fr(I,L,k){return L===L?TS(I,L,k):Fs(I,Cd,k)}function _S(I,L,k,z){for(var te=k-1,we=I.length;++te<we;)if(z(I[te],L))return te;return-1}function Cd(I){return I!==I}function Od(I,L){var k=I==null?0:I.length;return k?Eu(I,L)/k:ut}function Su(I){return function(L){return L==null?n:L[I]}}function wu(I){return function(L){return I==null?n:I[L]}}function Rd(I,L,k,z,te){return te(I,function(we,Ge,Te){k=z?(z=!1,we):L(k,we,Ge,Te)}),k}function mS(I,L){var k=I.length;for(I.sort(L);k--;)I[k]=I[k].value;return I}function Eu(I,L){for(var k,z=-1,te=I.length;++z<te;){var we=L(I[z]);we!==n&&(k=k===n?we:k+we)}return k}function xu(I,L){for(var k=-1,z=Array(I);++k<I;)z[k]=L(k);return z}function gS(I,L){return Ne(L,function(k){return[k,I[k]]})}function kd(I){return I&&I.slice(0,Ld(I)+1).replace(lu,"")}function Et(I){return function(L){return I(L)}}function Iu(I,L){return Ne(L,function(k){return I[k]})}function Mi(I,L){return I.has(L)}function Ad(I,L){for(var k=-1,z=I.length;++k<z&&Fr(L,I[k],0)>-1;);return k}function Md(I,L){for(var k=I.length;k--&&Fr(L,I[k],0)>-1;);return k}function yS(I,L){for(var k=I.length,z=0;k--;)I[k]===L&&++z;return z}var vS=wu(nS),bS=wu(rS);function SS(I){return"\\"+sS[I]}function wS(I,L){return I==null?n:I[L]}function Br(I){return Zb.test(I)}function ES(I){return Qb.test(I)}function xS(I){for(var L,k=[];!(L=I.next()).done;)k.push(L.value);return k}function Tu(I){var L=-1,k=Array(I.size);return I.forEach(function(z,te){k[++L]=[te,z]}),k}function Dd(I,L){return function(k){return I(L(k))}}function An(I,L){for(var k=-1,z=I.length,te=0,we=[];++k<z;){var Ge=I[k];(Ge===L||Ge===p)&&(I[k]=p,we[te++]=k)}return we}function Bs(I){var L=-1,k=Array(I.size);return I.forEach(function(z){k[++L]=z}),k}function IS(I){var L=-1,k=Array(I.size);return I.forEach(function(z){k[++L]=[z,z]}),k}function TS(I,L,k){for(var z=k-1,te=I.length;++z<te;)if(I[z]===L)return z;return-1}function CS(I,L,k){for(var z=k+1;z--;)if(I[z]===L)return z;return z}function Ur(I){return Br(I)?RS(I):dS(I)}function Wt(I){return Br(I)?kS(I):hS(I)}function Ld(I){for(var L=I.length;L--&&yb.test(I.charAt(L)););return L}var OS=wu(iS);function RS(I){for(var L=_u.lastIndex=0;_u.test(I);)++L;return L}function kS(I){return I.match(_u)||[]}function AS(I){return I.match(Xb)||[]}var MS=function I(L){L=L==null?Ze:Wr.defaults(Ze.Object(),L,Wr.pick(Ze,eS));var k=L.Array,z=L.Date,te=L.Error,we=L.Function,Ge=L.Math,Te=L.Object,Cu=L.RegExp,DS=L.String,Dt=L.TypeError,Us=k.prototype,LS=we.prototype,Hr=Te.prototype,Ws=L["__core-js_shared__"],Hs=LS.toString,xe=Hr.hasOwnProperty,NS=0,Nd=function(){var i=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Ks=Hr.toString,$S=Hs.call(Te),PS=Ze._,FS=Cu("^"+Hs.call(xe).replace(cu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zs=yd?L.Buffer:n,Mn=L.Symbol,qs=L.Uint8Array,$d=zs?zs.allocUnsafe:n,js=Dd(Te.getPrototypeOf,Te),Pd=Te.create,Fd=Hr.propertyIsEnumerable,Gs=Us.splice,Bd=Mn?Mn.isConcatSpreadable:n,Di=Mn?Mn.iterator:n,tr=Mn?Mn.toStringTag:n,Vs=function(){try{var i=or(Te,"defineProperty");return i({},"",{}),i}catch{}}(),BS=L.clearTimeout!==Ze.clearTimeout&&L.clearTimeout,US=z&&z.now!==Ze.Date.now&&z.now,WS=L.setTimeout!==Ze.setTimeout&&L.setTimeout,Ys=Ge.ceil,Js=Ge.floor,Ou=Te.getOwnPropertySymbols,HS=zs?zs.isBuffer:n,Ud=L.isFinite,KS=Us.join,zS=Dd(Te.keys,Te),Ve=Ge.max,et=Ge.min,qS=z.now,jS=L.parseInt,Wd=Ge.random,GS=Us.reverse,Ru=or(L,"DataView"),Li=or(L,"Map"),ku=or(L,"Promise"),Kr=or(L,"Set"),Ni=or(L,"WeakMap"),$i=or(Te,"create"),Xs=Ni&&new Ni,zr={},VS=ar(Ru),YS=ar(Li),JS=ar(ku),XS=ar(Kr),ZS=ar(Ni),Zs=Mn?Mn.prototype:n,Pi=Zs?Zs.valueOf:n,Hd=Zs?Zs.toString:n;function g(i){if(Ue(i)&&!ne(i)&&!(i instanceof he)){if(i instanceof Lt)return i;if(xe.call(i,"__wrapped__"))return Kh(i)}return new Lt(i)}var qr=function(){function i(){}return function(a){if(!Pe(a))return{};if(Pd)return Pd(a);i.prototype=a;var l=new i;return i.prototype=n,l}}();function Qs(){}function Lt(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}g.templateSettings={escape:db,evaluate:hb,interpolate:Xf,variable:"",imports:{_:g}},g.prototype=Qs.prototype,g.prototype.constructor=g,Lt.prototype=qr(Qs.prototype),Lt.prototype.constructor=Lt;function he(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function QS(){var i=new he(this.__wrapped__);return i.__actions__=ct(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=ct(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=ct(this.__views__),i}function ew(){if(this.__filtered__){var i=new he(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function tw(){var i=this.__wrapped__.value(),a=this.__dir__,l=ne(i),h=a<0,m=l?i.length:0,y=hE(0,m,this.__views__),b=y.start,x=y.end,T=x-b,N=h?x:b-1,$=this.__iteratees__,P=$.length,H=0,q=et(T,this.__takeCount__);if(!l||!h&&m==T&&q==T)return dh(i,this.__actions__);var Y=[];e:for(;T--&&H<q;){N+=a;for(var oe=-1,J=i[N];++oe<P;){var le=$[oe],_e=le.iteratee,Tt=le.type,it=_e(J);if(Tt==Xe)J=it;else if(!it){if(Tt==Se)continue e;break e}}Y[H++]=J}return Y}he.prototype=qr(Qs.prototype),he.prototype.constructor=he;function nr(i){var a=-1,l=i==null?0:i.length;for(this.clear();++a<l;){var h=i[a];this.set(h[0],h[1])}}function nw(){this.__data__=$i?$i(null):{},this.size=0}function rw(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function iw(i){var a=this.__data__;if($i){var l=a[i];return l===f?n:l}return xe.call(a,i)?a[i]:n}function sw(i){var a=this.__data__;return $i?a[i]!==n:xe.call(a,i)}function ow(i,a){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=$i&&a===n?f:a,this}nr.prototype.clear=nw,nr.prototype.delete=rw,nr.prototype.get=iw,nr.prototype.has=sw,nr.prototype.set=ow;function cn(i){var a=-1,l=i==null?0:i.length;for(this.clear();++a<l;){var h=i[a];this.set(h[0],h[1])}}function aw(){this.__data__=[],this.size=0}function uw(i){var a=this.__data__,l=eo(a,i);if(l<0)return!1;var h=a.length-1;return l==h?a.pop():Gs.call(a,l,1),--this.size,!0}function cw(i){var a=this.__data__,l=eo(a,i);return l<0?n:a[l][1]}function lw(i){return eo(this.__data__,i)>-1}function fw(i,a){var l=this.__data__,h=eo(l,i);return h<0?(++this.size,l.push([i,a])):l[h][1]=a,this}cn.prototype.clear=aw,cn.prototype.delete=uw,cn.prototype.get=cw,cn.prototype.has=lw,cn.prototype.set=fw;function ln(i){var a=-1,l=i==null?0:i.length;for(this.clear();++a<l;){var h=i[a];this.set(h[0],h[1])}}function dw(){this.size=0,this.__data__={hash:new nr,map:new(Li||cn),string:new nr}}function hw(i){var a=ho(this,i).delete(i);return this.size-=a?1:0,a}function pw(i){return ho(this,i).get(i)}function _w(i){return ho(this,i).has(i)}function mw(i,a){var l=ho(this,i),h=l.size;return l.set(i,a),this.size+=l.size==h?0:1,this}ln.prototype.clear=dw,ln.prototype.delete=hw,ln.prototype.get=pw,ln.prototype.has=_w,ln.prototype.set=mw;function rr(i){var a=-1,l=i==null?0:i.length;for(this.__data__=new ln;++a<l;)this.add(i[a])}function gw(i){return this.__data__.set(i,f),this}function yw(i){return this.__data__.has(i)}rr.prototype.add=rr.prototype.push=gw,rr.prototype.has=yw;function Ht(i){var a=this.__data__=new cn(i);this.size=a.size}function vw(){this.__data__=new cn,this.size=0}function bw(i){var a=this.__data__,l=a.delete(i);return this.size=a.size,l}function Sw(i){return this.__data__.get(i)}function ww(i){return this.__data__.has(i)}function Ew(i,a){var l=this.__data__;if(l instanceof cn){var h=l.__data__;if(!Li||h.length<s-1)return h.push([i,a]),this.size=++l.size,this;l=this.__data__=new ln(h)}return l.set(i,a),this.size=l.size,this}Ht.prototype.clear=vw,Ht.prototype.delete=bw,Ht.prototype.get=Sw,Ht.prototype.has=ww,Ht.prototype.set=Ew;function Kd(i,a){var l=ne(i),h=!l&&ur(i),m=!l&&!h&&Pn(i),y=!l&&!h&&!m&&Yr(i),b=l||h||m||y,x=b?xu(i.length,DS):[],T=x.length;for(var N in i)(a||xe.call(i,N))&&!(b&&(N=="length"||m&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||pn(N,T)))&&x.push(N);return x}function zd(i){var a=i.length;return a?i[Wu(0,a-1)]:n}function xw(i,a){return po(ct(i),ir(a,0,i.length))}function Iw(i){return po(ct(i))}function Au(i,a,l){(l!==n&&!Kt(i[a],l)||l===n&&!(a in i))&&fn(i,a,l)}function Fi(i,a,l){var h=i[a];(!(xe.call(i,a)&&Kt(h,l))||l===n&&!(a in i))&&fn(i,a,l)}function eo(i,a){for(var l=i.length;l--;)if(Kt(i[l][0],a))return l;return-1}function Tw(i,a,l,h){return Dn(i,function(m,y,b){a(h,m,l(m),b)}),h}function qd(i,a){return i&&en(a,Je(a),i)}function Cw(i,a){return i&&en(a,ft(a),i)}function fn(i,a,l){a=="__proto__"&&Vs?Vs(i,a,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[a]=l}function Mu(i,a){for(var l=-1,h=a.length,m=k(h),y=i==null;++l<h;)m[l]=y?n:dc(i,a[l]);return m}function ir(i,a,l){return i===i&&(l!==n&&(i=i<=l?i:l),a!==n&&(i=i>=a?i:a)),i}function Nt(i,a,l,h,m,y){var b,x=a&_,T=a&v,N=a&w;if(l&&(b=m?l(i,h,m,y):l(i)),b!==n)return b;if(!Pe(i))return i;var $=ne(i);if($){if(b=_E(i),!x)return ct(i,b)}else{var P=tt(i),H=P==Nr||P==Ds;if(Pn(i))return _h(i,x);if(P==bt||P==Zt||H&&!m){if(b=T||H?{}:Lh(i),!x)return T?iE(i,Cw(b,i)):rE(i,qd(b,i))}else{if(!Re[P])return m?i:{};b=mE(i,P,x)}}y||(y=new Ht);var q=y.get(i);if(q)return q;y.set(i,b),cp(i)?i.forEach(function(J){b.add(Nt(J,a,l,J,i,y))}):ap(i)&&i.forEach(function(J,le){b.set(le,Nt(J,a,l,le,i,y))});var Y=N?T?Zu:Xu:T?ft:Je,oe=$?n:Y(i);return Mt(oe||i,function(J,le){oe&&(le=J,J=i[le]),Fi(b,le,Nt(J,a,l,le,i,y))}),b}function Ow(i){var a=Je(i);return function(l){return jd(l,i,a)}}function jd(i,a,l){var h=l.length;if(i==null)return!h;for(i=Te(i);h--;){var m=l[h],y=a[m],b=i[m];if(b===n&&!(m in i)||!y(b))return!1}return!0}function Gd(i,a,l){if(typeof i!="function")throw new Dt(u);return qi(function(){i.apply(n,l)},a)}function Bi(i,a,l,h){var m=-1,y=Ps,b=!0,x=i.length,T=[],N=a.length;if(!x)return T;l&&(a=Ne(a,Et(l))),h?(y=yu,b=!1):a.length>=s&&(y=Mi,b=!1,a=new rr(a));e:for(;++m<x;){var $=i[m],P=l==null?$:l($);if($=h||$!==0?$:0,b&&P===P){for(var H=N;H--;)if(a[H]===P)continue e;T.push($)}else y(a,P,h)||T.push($)}return T}var Dn=bh(Qt),Vd=bh(Lu,!0);function Rw(i,a){var l=!0;return Dn(i,function(h,m,y){return l=!!a(h,m,y),l}),l}function to(i,a,l){for(var h=-1,m=i.length;++h<m;){var y=i[h],b=a(y);if(b!=null&&(x===n?b===b&&!It(b):l(b,x)))var x=b,T=y}return T}function kw(i,a,l,h){var m=i.length;for(l=ie(l),l<0&&(l=-l>m?0:m+l),h=h===n||h>m?m:ie(h),h<0&&(h+=m),h=l>h?0:fp(h);l<h;)i[l++]=a;return i}function Yd(i,a){var l=[];return Dn(i,function(h,m,y){a(h,m,y)&&l.push(h)}),l}function Qe(i,a,l,h,m){var y=-1,b=i.length;for(l||(l=yE),m||(m=[]);++y<b;){var x=i[y];a>0&&l(x)?a>1?Qe(x,a-1,l,h,m):kn(m,x):h||(m[m.length]=x)}return m}var Du=Sh(),Jd=Sh(!0);function Qt(i,a){return i&&Du(i,a,Je)}function Lu(i,a){return i&&Jd(i,a,Je)}function no(i,a){return Rn(a,function(l){return _n(i[l])})}function sr(i,a){a=Nn(a,i);for(var l=0,h=a.length;i!=null&&l<h;)i=i[tn(a[l++])];return l&&l==h?i:n}function Xd(i,a,l){var h=a(i);return ne(i)?h:kn(h,l(i))}function nt(i){return i==null?i===n?ve:Ri:tr&&tr in Te(i)?dE(i):IE(i)}function Nu(i,a){return i>a}function Aw(i,a){return i!=null&&xe.call(i,a)}function Mw(i,a){return i!=null&&a in Te(i)}function Dw(i,a,l){return i>=et(a,l)&&i<Ve(a,l)}function $u(i,a,l){for(var h=l?yu:Ps,m=i[0].length,y=i.length,b=y,x=k(y),T=1/0,N=[];b--;){var $=i[b];b&&a&&($=Ne($,Et(a))),T=et($.length,T),x[b]=!l&&(a||m>=120&&$.length>=120)?new rr(b&&$):n}$=i[0];var P=-1,H=x[0];e:for(;++P<m&&N.length<T;){var q=$[P],Y=a?a(q):q;if(q=l||q!==0?q:0,!(H?Mi(H,Y):h(N,Y,l))){for(b=y;--b;){var oe=x[b];if(!(oe?Mi(oe,Y):h(i[b],Y,l)))continue e}H&&H.push(Y),N.push(q)}}return N}function Lw(i,a,l,h){return Qt(i,function(m,y,b){a(h,l(m),y,b)}),h}function Ui(i,a,l){a=Nn(a,i),i=Fh(i,a);var h=i==null?i:i[tn(Pt(a))];return h==null?n:wt(h,i,l)}function Zd(i){return Ue(i)&&nt(i)==Zt}function Nw(i){return Ue(i)&&nt(i)==Ai}function $w(i){return Ue(i)&&nt(i)==On}function Wi(i,a,l,h,m){return i===a?!0:i==null||a==null||!Ue(i)&&!Ue(a)?i!==i&&a!==a:Pw(i,a,l,h,Wi,m)}function Pw(i,a,l,h,m,y){var b=ne(i),x=ne(a),T=b?Cn:tt(i),N=x?Cn:tt(a);T=T==Zt?bt:T,N=N==Zt?bt:N;var $=T==bt,P=N==bt,H=T==N;if(H&&Pn(i)){if(!Pn(a))return!1;b=!0,$=!1}if(H&&!$)return y||(y=new Ht),b||Yr(i)?Ah(i,a,l,h,m,y):lE(i,a,T,l,h,m,y);if(!(l&S)){var q=$&&xe.call(i,"__wrapped__"),Y=P&&xe.call(a,"__wrapped__");if(q||Y){var oe=q?i.value():i,J=Y?a.value():a;return y||(y=new Ht),m(oe,J,l,h,y)}}return H?(y||(y=new Ht),fE(i,a,l,h,m,y)):!1}function Fw(i){return Ue(i)&&tt(i)==je}function Pu(i,a,l,h){var m=l.length,y=m,b=!h;if(i==null)return!y;for(i=Te(i);m--;){var x=l[m];if(b&&x[2]?x[1]!==i[x[0]]:!(x[0]in i))return!1}for(;++m<y;){x=l[m];var T=x[0],N=i[T],$=x[1];if(b&&x[2]){if(N===n&&!(T in i))return!1}else{var P=new Ht;if(h)var H=h(N,$,T,i,a,P);if(!(H===n?Wi($,N,S|C,h,P):H))return!1}}return!0}function Qd(i){if(!Pe(i)||bE(i))return!1;var a=_n(i)?FS:Ob;return a.test(ar(i))}function Bw(i){return Ue(i)&&nt(i)==ce}function Uw(i){return Ue(i)&&tt(i)==$e}function Ww(i){return Ue(i)&&bo(i.length)&&!!Me[nt(i)]}function eh(i){return typeof i=="function"?i:i==null?dt:typeof i=="object"?ne(i)?rh(i[0],i[1]):nh(i):wp(i)}function Fu(i){if(!zi(i))return zS(i);var a=[];for(var l in Te(i))xe.call(i,l)&&l!="constructor"&&a.push(l);return a}function Hw(i){if(!Pe(i))return xE(i);var a=zi(i),l=[];for(var h in i)h=="constructor"&&(a||!xe.call(i,h))||l.push(h);return l}function Bu(i,a){return i<a}function th(i,a){var l=-1,h=lt(i)?k(i.length):[];return Dn(i,function(m,y,b){h[++l]=a(m,y,b)}),h}function nh(i){var a=ec(i);return a.length==1&&a[0][2]?$h(a[0][0],a[0][1]):function(l){return l===i||Pu(l,i,a)}}function rh(i,a){return nc(i)&&Nh(a)?$h(tn(i),a):function(l){var h=dc(l,i);return h===n&&h===a?hc(l,i):Wi(a,h,S|C)}}function ro(i,a,l,h,m){i!==a&&Du(a,function(y,b){if(m||(m=new Ht),Pe(y))Kw(i,a,b,l,ro,h,m);else{var x=h?h(ic(i,b),y,b+"",i,a,m):n;x===n&&(x=y),Au(i,b,x)}},ft)}function Kw(i,a,l,h,m,y,b){var x=ic(i,l),T=ic(a,l),N=b.get(T);if(N){Au(i,l,N);return}var $=y?y(x,T,l+"",i,a,b):n,P=$===n;if(P){var H=ne(T),q=!H&&Pn(T),Y=!H&&!q&&Yr(T);$=T,H||q||Y?ne(x)?$=x:He(x)?$=ct(x):q?(P=!1,$=_h(T,!0)):Y?(P=!1,$=mh(T,!0)):$=[]:ji(T)||ur(T)?($=x,ur(x)?$=dp(x):(!Pe(x)||_n(x))&&($=Lh(T))):P=!1}P&&(b.set(T,$),m($,T,h,y,b),b.delete(T)),Au(i,l,$)}function ih(i,a){var l=i.length;if(l)return a+=a<0?l:0,pn(a,l)?i[a]:n}function sh(i,a,l){a.length?a=Ne(a,function(y){return ne(y)?function(b){return sr(b,y.length===1?y[0]:y)}:y}):a=[dt];var h=-1;a=Ne(a,Et(G()));var m=th(i,function(y,b,x){var T=Ne(a,function(N){return N(y)});return{criteria:T,index:++h,value:y}});return mS(m,function(y,b){return nE(y,b,l)})}function zw(i,a){return oh(i,a,function(l,h){return hc(i,h)})}function oh(i,a,l){for(var h=-1,m=a.length,y={};++h<m;){var b=a[h],x=sr(i,b);l(x,b)&&Hi(y,Nn(b,i),x)}return y}function qw(i){return function(a){return sr(a,i)}}function Uu(i,a,l,h){var m=h?_S:Fr,y=-1,b=a.length,x=i;for(i===a&&(a=ct(a)),l&&(x=Ne(i,Et(l)));++y<b;)for(var T=0,N=a[y],$=l?l(N):N;(T=m(x,$,T,h))>-1;)x!==i&&Gs.call(x,T,1),Gs.call(i,T,1);return i}function ah(i,a){for(var l=i?a.length:0,h=l-1;l--;){var m=a[l];if(l==h||m!==y){var y=m;pn(m)?Gs.call(i,m,1):zu(i,m)}}return i}function Wu(i,a){return i+Js(Wd()*(a-i+1))}function jw(i,a,l,h){for(var m=-1,y=Ve(Ys((a-i)/(l||1)),0),b=k(y);y--;)b[h?y:++m]=i,i+=l;return b}function Hu(i,a){var l="";if(!i||a<1||a>me)return l;do a%2&&(l+=i),a=Js(a/2),a&&(i+=i);while(a);return l}function ae(i,a){return sc(Ph(i,a,dt),i+"")}function Gw(i){return zd(Jr(i))}function Vw(i,a){var l=Jr(i);return po(l,ir(a,0,l.length))}function Hi(i,a,l,h){if(!Pe(i))return i;a=Nn(a,i);for(var m=-1,y=a.length,b=y-1,x=i;x!=null&&++m<y;){var T=tn(a[m]),N=l;if(T==="__proto__"||T==="constructor"||T==="prototype")return i;if(m!=b){var $=x[T];N=h?h($,T,x):n,N===n&&(N=Pe($)?$:pn(a[m+1])?[]:{})}Fi(x,T,N),x=x[T]}return i}var uh=Xs?function(i,a){return Xs.set(i,a),i}:dt,Yw=Vs?function(i,a){return Vs(i,"toString",{configurable:!0,enumerable:!1,value:_c(a),writable:!0})}:dt;function Jw(i){return po(Jr(i))}function $t(i,a,l){var h=-1,m=i.length;a<0&&(a=-a>m?0:m+a),l=l>m?m:l,l<0&&(l+=m),m=a>l?0:l-a>>>0,a>>>=0;for(var y=k(m);++h<m;)y[h]=i[h+a];return y}function Xw(i,a){var l;return Dn(i,function(h,m,y){return l=a(h,m,y),!l}),!!l}function io(i,a,l){var h=0,m=i==null?h:i.length;if(typeof a=="number"&&a===a&&m<=Dr){for(;h<m;){var y=h+m>>>1,b=i[y];b!==null&&!It(b)&&(l?b<=a:b<a)?h=y+1:m=y}return m}return Ku(i,a,dt,l)}function Ku(i,a,l,h){var m=0,y=i==null?0:i.length;if(y===0)return 0;a=l(a);for(var b=a!==a,x=a===null,T=It(a),N=a===n;m<y;){var $=Js((m+y)/2),P=l(i[$]),H=P!==n,q=P===null,Y=P===P,oe=It(P);if(b)var J=h||Y;else N?J=Y&&(h||H):x?J=Y&&H&&(h||!q):T?J=Y&&H&&!q&&(h||!oe):q||oe?J=!1:J=h?P<=a:P<a;J?m=$+1:y=$}return et(y,Za)}function ch(i,a){for(var l=-1,h=i.length,m=0,y=[];++l<h;){var b=i[l],x=a?a(b):b;if(!l||!Kt(x,T)){var T=x;y[m++]=b===0?0:b}}return y}function lh(i){return typeof i=="number"?i:It(i)?ut:+i}function xt(i){if(typeof i=="string")return i;if(ne(i))return Ne(i,xt)+"";if(It(i))return Hd?Hd.call(i):"";var a=i+"";return a=="0"&&1/i==-Le?"-0":a}function Ln(i,a,l){var h=-1,m=Ps,y=i.length,b=!0,x=[],T=x;if(l)b=!1,m=yu;else if(y>=s){var N=a?null:uE(i);if(N)return Bs(N);b=!1,m=Mi,T=new rr}else T=a?[]:x;e:for(;++h<y;){var $=i[h],P=a?a($):$;if($=l||$!==0?$:0,b&&P===P){for(var H=T.length;H--;)if(T[H]===P)continue e;a&&T.push(P),x.push($)}else m(T,P,l)||(T!==x&&T.push(P),x.push($))}return x}function zu(i,a){return a=Nn(a,i),i=Fh(i,a),i==null||delete i[tn(Pt(a))]}function fh(i,a,l,h){return Hi(i,a,l(sr(i,a)),h)}function so(i,a,l,h){for(var m=i.length,y=h?m:-1;(h?y--:++y<m)&&a(i[y],y,i););return l?$t(i,h?0:y,h?y+1:m):$t(i,h?y+1:0,h?m:y)}function dh(i,a){var l=i;return l instanceof he&&(l=l.value()),vu(a,function(h,m){return m.func.apply(m.thisArg,kn([h],m.args))},l)}function qu(i,a,l){var h=i.length;if(h<2)return h?Ln(i[0]):[];for(var m=-1,y=k(h);++m<h;)for(var b=i[m],x=-1;++x<h;)x!=m&&(y[m]=Bi(y[m]||b,i[x],a,l));return Ln(Qe(y,1),a,l)}function hh(i,a,l){for(var h=-1,m=i.length,y=a.length,b={};++h<m;){var x=h<y?a[h]:n;l(b,i[h],x)}return b}function ju(i){return He(i)?i:[]}function Gu(i){return typeof i=="function"?i:dt}function Nn(i,a){return ne(i)?i:nc(i,a)?[i]:Hh(Ee(i))}var Zw=ae;function $n(i,a,l){var h=i.length;return l=l===n?h:l,!a&&l>=h?i:$t(i,a,l)}var ph=BS||function(i){return Ze.clearTimeout(i)};function _h(i,a){if(a)return i.slice();var l=i.length,h=$d?$d(l):new i.constructor(l);return i.copy(h),h}function Vu(i){var a=new i.constructor(i.byteLength);return new qs(a).set(new qs(i)),a}function Qw(i,a){var l=a?Vu(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.byteLength)}function eE(i){var a=new i.constructor(i.source,Zf.exec(i));return a.lastIndex=i.lastIndex,a}function tE(i){return Pi?Te(Pi.call(i)):{}}function mh(i,a){var l=a?Vu(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.length)}function gh(i,a){if(i!==a){var l=i!==n,h=i===null,m=i===i,y=It(i),b=a!==n,x=a===null,T=a===a,N=It(a);if(!x&&!N&&!y&&i>a||y&&b&&T&&!x&&!N||h&&b&&T||!l&&T||!m)return 1;if(!h&&!y&&!N&&i<a||N&&l&&m&&!h&&!y||x&&l&&m||!b&&m||!T)return-1}return 0}function nE(i,a,l){for(var h=-1,m=i.criteria,y=a.criteria,b=m.length,x=l.length;++h<b;){var T=gh(m[h],y[h]);if(T){if(h>=x)return T;var N=l[h];return T*(N=="desc"?-1:1)}}return i.index-a.index}function yh(i,a,l,h){for(var m=-1,y=i.length,b=l.length,x=-1,T=a.length,N=Ve(y-b,0),$=k(T+N),P=!h;++x<T;)$[x]=a[x];for(;++m<b;)(P||m<y)&&($[l[m]]=i[m]);for(;N--;)$[x++]=i[m++];return $}function vh(i,a,l,h){for(var m=-1,y=i.length,b=-1,x=l.length,T=-1,N=a.length,$=Ve(y-x,0),P=k($+N),H=!h;++m<$;)P[m]=i[m];for(var q=m;++T<N;)P[q+T]=a[T];for(;++b<x;)(H||m<y)&&(P[q+l[b]]=i[m++]);return P}function ct(i,a){var l=-1,h=i.length;for(a||(a=k(h));++l<h;)a[l]=i[l];return a}function en(i,a,l,h){var m=!l;l||(l={});for(var y=-1,b=a.length;++y<b;){var x=a[y],T=h?h(l[x],i[x],x,l,i):n;T===n&&(T=i[x]),m?fn(l,x,T):Fi(l,x,T)}return l}function rE(i,a){return en(i,tc(i),a)}function iE(i,a){return en(i,Mh(i),a)}function oo(i,a){return function(l,h){var m=ne(l)?cS:Tw,y=a?a():{};return m(l,i,G(h,2),y)}}function jr(i){return ae(function(a,l){var h=-1,m=l.length,y=m>1?l[m-1]:n,b=m>2?l[2]:n;for(y=i.length>3&&typeof y=="function"?(m--,y):n,b&&rt(l[0],l[1],b)&&(y=m<3?n:y,m=1),a=Te(a);++h<m;){var x=l[h];x&&i(a,x,h,y)}return a})}function bh(i,a){return function(l,h){if(l==null)return l;if(!lt(l))return i(l,h);for(var m=l.length,y=a?m:-1,b=Te(l);(a?y--:++y<m)&&h(b[y],y,b)!==!1;);return l}}function Sh(i){return function(a,l,h){for(var m=-1,y=Te(a),b=h(a),x=b.length;x--;){var T=b[i?x:++m];if(l(y[T],T,y)===!1)break}return a}}function sE(i,a,l){var h=a&E,m=Ki(i);function y(){var b=this&&this!==Ze&&this instanceof y?m:i;return b.apply(h?l:this,arguments)}return y}function wh(i){return function(a){a=Ee(a);var l=Br(a)?Wt(a):n,h=l?l[0]:a.charAt(0),m=l?$n(l,1).join(""):a.slice(1);return h[i]()+m}}function Gr(i){return function(a){return vu(bp(vp(a).replace(Yb,"")),i,"")}}function Ki(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var l=qr(i.prototype),h=i.apply(l,a);return Pe(h)?h:l}}function oE(i,a,l){var h=Ki(i);function m(){for(var y=arguments.length,b=k(y),x=y,T=Vr(m);x--;)b[x]=arguments[x];var N=y<3&&b[0]!==T&&b[y-1]!==T?[]:An(b,T);if(y-=N.length,y<l)return Ch(i,a,ao,m.placeholder,n,b,N,n,n,l-y);var $=this&&this!==Ze&&this instanceof m?h:i;return wt($,this,b)}return m}function Eh(i){return function(a,l,h){var m=Te(a);if(!lt(a)){var y=G(l,3);a=Je(a),l=function(x){return y(m[x],x,m)}}var b=i(a,l,h);return b>-1?m[y?a[b]:b]:n}}function xh(i){return hn(function(a){var l=a.length,h=l,m=Lt.prototype.thru;for(i&&a.reverse();h--;){var y=a[h];if(typeof y!="function")throw new Dt(u);if(m&&!b&&fo(y)=="wrapper")var b=new Lt([],!0)}for(h=b?h:l;++h<l;){y=a[h];var x=fo(y),T=x=="wrapper"?Qu(y):n;T&&rc(T[0])&&T[1]==(R|F|U|W)&&!T[4].length&&T[9]==1?b=b[fo(T[0])].apply(b,T[3]):b=y.length==1&&rc(y)?b[x]():b.thru(y)}return function(){var N=arguments,$=N[0];if(b&&N.length==1&&ne($))return b.plant($).value();for(var P=0,H=l?a[P].apply(this,N):$;++P<l;)H=a[P].call(this,H);return H}})}function ao(i,a,l,h,m,y,b,x,T,N){var $=a&R,P=a&E,H=a&O,q=a&(F|K),Y=a&V,oe=H?n:Ki(i);function J(){for(var le=arguments.length,_e=k(le),Tt=le;Tt--;)_e[Tt]=arguments[Tt];if(q)var it=Vr(J),Ct=yS(_e,it);if(h&&(_e=yh(_e,h,m,q)),y&&(_e=vh(_e,y,b,q)),le-=Ct,q&&le<N){var Ke=An(_e,it);return Ch(i,a,ao,J.placeholder,l,_e,Ke,x,T,N-le)}var zt=P?l:this,gn=H?zt[i]:i;return le=_e.length,x?_e=TE(_e,x):Y&&le>1&&_e.reverse(),$&&T<le&&(_e.length=T),this&&this!==Ze&&this instanceof J&&(gn=oe||Ki(gn)),gn.apply(zt,_e)}return J}function Ih(i,a){return function(l,h){return Lw(l,i,a(h),{})}}function uo(i,a){return function(l,h){var m;if(l===n&&h===n)return a;if(l!==n&&(m=l),h!==n){if(m===n)return h;typeof l=="string"||typeof h=="string"?(l=xt(l),h=xt(h)):(l=lh(l),h=lh(h)),m=i(l,h)}return m}}function Yu(i){return hn(function(a){return a=Ne(a,Et(G())),ae(function(l){var h=this;return i(a,function(m){return wt(m,h,l)})})})}function co(i,a){a=a===n?" ":xt(a);var l=a.length;if(l<2)return l?Hu(a,i):a;var h=Hu(a,Ys(i/Ur(a)));return Br(a)?$n(Wt(h),0,i).join(""):h.slice(0,i)}function aE(i,a,l,h){var m=a&E,y=Ki(i);function b(){for(var x=-1,T=arguments.length,N=-1,$=h.length,P=k($+T),H=this&&this!==Ze&&this instanceof b?y:i;++N<$;)P[N]=h[N];for(;T--;)P[N++]=arguments[++x];return wt(H,m?l:this,P)}return b}function Th(i){return function(a,l,h){return h&&typeof h!="number"&&rt(a,l,h)&&(l=h=n),a=mn(a),l===n?(l=a,a=0):l=mn(l),h=h===n?a<l?1:-1:mn(h),jw(a,l,h,i)}}function lo(i){return function(a,l){return typeof a=="string"&&typeof l=="string"||(a=Ft(a),l=Ft(l)),i(a,l)}}function Ch(i,a,l,h,m,y,b,x,T,N){var $=a&F,P=$?b:n,H=$?n:b,q=$?y:n,Y=$?n:y;a|=$?U:A,a&=~($?A:U),a&D||(a&=~(E|O));var oe=[i,a,m,q,P,Y,H,x,T,N],J=l.apply(n,oe);return rc(i)&&Bh(J,oe),J.placeholder=h,Uh(J,i,a)}function Ju(i){var a=Ge[i];return function(l,h){if(l=Ft(l),h=h==null?0:et(ie(h),292),h&&Ud(l)){var m=(Ee(l)+"e").split("e"),y=a(m[0]+"e"+(+m[1]+h));return m=(Ee(y)+"e").split("e"),+(m[0]+"e"+(+m[1]-h))}return a(l)}}var uE=Kr&&1/Bs(new Kr([,-0]))[1]==Le?function(i){return new Kr(i)}:yc;function Oh(i){return function(a){var l=tt(a);return l==je?Tu(a):l==$e?IS(a):gS(a,i(a))}}function dn(i,a,l,h,m,y,b,x){var T=a&O;if(!T&&typeof i!="function")throw new Dt(u);var N=h?h.length:0;if(N||(a&=~(U|A),h=m=n),b=b===n?b:Ve(ie(b),0),x=x===n?x:ie(x),N-=m?m.length:0,a&A){var $=h,P=m;h=m=n}var H=T?n:Qu(i),q=[i,a,l,h,m,$,P,y,b,x];if(H&&EE(q,H),i=q[0],a=q[1],l=q[2],h=q[3],m=q[4],x=q[9]=q[9]===n?T?0:i.length:Ve(q[9]-N,0),!x&&a&(F|K)&&(a&=~(F|K)),!a||a==E)var Y=sE(i,a,l);else a==F||a==K?Y=oE(i,a,x):(a==U||a==(E|U))&&!m.length?Y=aE(i,a,l,h):Y=ao.apply(n,q);var oe=H?uh:Bh;return Uh(oe(Y,q),i,a)}function Rh(i,a,l,h){return i===n||Kt(i,Hr[l])&&!xe.call(h,l)?a:i}function kh(i,a,l,h,m,y){return Pe(i)&&Pe(a)&&(y.set(a,i),ro(i,a,n,kh,y),y.delete(a)),i}function cE(i){return ji(i)?n:i}function Ah(i,a,l,h,m,y){var b=l&S,x=i.length,T=a.length;if(x!=T&&!(b&&T>x))return!1;var N=y.get(i),$=y.get(a);if(N&&$)return N==a&&$==i;var P=-1,H=!0,q=l&C?new rr:n;for(y.set(i,a),y.set(a,i);++P<x;){var Y=i[P],oe=a[P];if(h)var J=b?h(oe,Y,P,a,i,y):h(Y,oe,P,i,a,y);if(J!==n){if(J)continue;H=!1;break}if(q){if(!bu(a,function(le,_e){if(!Mi(q,_e)&&(Y===le||m(Y,le,l,h,y)))return q.push(_e)})){H=!1;break}}else if(!(Y===oe||m(Y,oe,l,h,y))){H=!1;break}}return y.delete(i),y.delete(a),H}function lE(i,a,l,h,m,y,b){switch(l){case $r:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case Ai:return!(i.byteLength!=a.byteLength||!y(new qs(i),new qs(a)));case un:case On:case vt:return Kt(+i,+a);case Zn:return i.name==a.name&&i.message==a.message;case ce:case se:return i==a+"";case je:var x=Tu;case $e:var T=h&S;if(x||(x=Bs),i.size!=a.size&&!T)return!1;var N=b.get(i);if(N)return N==a;h|=C,b.set(i,a);var $=Ah(x(i),x(a),h,m,y,b);return b.delete(i),$;case Ie:if(Pi)return Pi.call(i)==Pi.call(a)}return!1}function fE(i,a,l,h,m,y){var b=l&S,x=Xu(i),T=x.length,N=Xu(a),$=N.length;if(T!=$&&!b)return!1;for(var P=T;P--;){var H=x[P];if(!(b?H in a:xe.call(a,H)))return!1}var q=y.get(i),Y=y.get(a);if(q&&Y)return q==a&&Y==i;var oe=!0;y.set(i,a),y.set(a,i);for(var J=b;++P<T;){H=x[P];var le=i[H],_e=a[H];if(h)var Tt=b?h(_e,le,H,a,i,y):h(le,_e,H,i,a,y);if(!(Tt===n?le===_e||m(le,_e,l,h,y):Tt)){oe=!1;break}J||(J=H=="constructor")}if(oe&&!J){var it=i.constructor,Ct=a.constructor;it!=Ct&&"constructor"in i&&"constructor"in a&&!(typeof it=="function"&&it instanceof it&&typeof Ct=="function"&&Ct instanceof Ct)&&(oe=!1)}return y.delete(i),y.delete(a),oe}function hn(i){return sc(Ph(i,n,jh),i+"")}function Xu(i){return Xd(i,Je,tc)}function Zu(i){return Xd(i,ft,Mh)}var Qu=Xs?function(i){return Xs.get(i)}:yc;function fo(i){for(var a=i.name+"",l=zr[a],h=xe.call(zr,a)?l.length:0;h--;){var m=l[h],y=m.func;if(y==null||y==i)return m.name}return a}function Vr(i){var a=xe.call(g,"placeholder")?g:i;return a.placeholder}function G(){var i=g.iteratee||mc;return i=i===mc?eh:i,arguments.length?i(arguments[0],arguments[1]):i}function ho(i,a){var l=i.__data__;return vE(a)?l[typeof a=="string"?"string":"hash"]:l.map}function ec(i){for(var a=Je(i),l=a.length;l--;){var h=a[l],m=i[h];a[l]=[h,m,Nh(m)]}return a}function or(i,a){var l=wS(i,a);return Qd(l)?l:n}function dE(i){var a=xe.call(i,tr),l=i[tr];try{i[tr]=n;var h=!0}catch{}var m=Ks.call(i);return h&&(a?i[tr]=l:delete i[tr]),m}var tc=Ou?function(i){return i==null?[]:(i=Te(i),Rn(Ou(i),function(a){return Fd.call(i,a)}))}:vc,Mh=Ou?function(i){for(var a=[];i;)kn(a,tc(i)),i=js(i);return a}:vc,tt=nt;(Ru&&tt(new Ru(new ArrayBuffer(1)))!=$r||Li&&tt(new Li)!=je||ku&&tt(ku.resolve())!=Qn||Kr&&tt(new Kr)!=$e||Ni&&tt(new Ni)!=St)&&(tt=function(i){var a=nt(i),l=a==bt?i.constructor:n,h=l?ar(l):"";if(h)switch(h){case VS:return $r;case YS:return je;case JS:return Qn;case XS:return $e;case ZS:return St}return a});function hE(i,a,l){for(var h=-1,m=l.length;++h<m;){var y=l[h],b=y.size;switch(y.type){case"drop":i+=b;break;case"dropRight":a-=b;break;case"take":a=et(a,i+b);break;case"takeRight":i=Ve(i,a-b);break}}return{start:i,end:a}}function pE(i){var a=i.match(bb);return a?a[1].split(Sb):[]}function Dh(i,a,l){a=Nn(a,i);for(var h=-1,m=a.length,y=!1;++h<m;){var b=tn(a[h]);if(!(y=i!=null&&l(i,b)))break;i=i[b]}return y||++h!=m?y:(m=i==null?0:i.length,!!m&&bo(m)&&pn(b,m)&&(ne(i)||ur(i)))}function _E(i){var a=i.length,l=new i.constructor(a);return a&&typeof i[0]=="string"&&xe.call(i,"index")&&(l.index=i.index,l.input=i.input),l}function Lh(i){return typeof i.constructor=="function"&&!zi(i)?qr(js(i)):{}}function mE(i,a,l){var h=i.constructor;switch(a){case Ai:return Vu(i);case un:case On:return new h(+i);case $r:return Qw(i,l);case eu:case tu:case nu:case ru:case iu:case su:case ou:case au:case uu:return mh(i,l);case je:return new h;case vt:case se:return new h(i);case ce:return eE(i);case $e:return new h;case Ie:return tE(i)}}function gE(i,a){var l=a.length;if(!l)return i;var h=l-1;return a[h]=(l>1?"& ":"")+a[h],a=a.join(l>2?", ":" "),i.replace(vb,`{
/* [wrapped with `+a+`] */
`)}function yE(i){return ne(i)||ur(i)||!!(Bd&&i&&i[Bd])}function pn(i,a){var l=typeof i;return a=a??me,!!a&&(l=="number"||l!="symbol"&&kb.test(i))&&i>-1&&i%1==0&&i<a}function rt(i,a,l){if(!Pe(l))return!1;var h=typeof a;return(h=="number"?lt(l)&&pn(a,l.length):h=="string"&&a in l)?Kt(l[a],i):!1}function nc(i,a){if(ne(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||It(i)?!0:_b.test(i)||!pb.test(i)||a!=null&&i in Te(a)}function vE(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function rc(i){var a=fo(i),l=g[a];if(typeof l!="function"||!(a in he.prototype))return!1;if(i===l)return!0;var h=Qu(l);return!!h&&i===h[0]}function bE(i){return!!Nd&&Nd in i}var SE=Ws?_n:bc;function zi(i){var a=i&&i.constructor,l=typeof a=="function"&&a.prototype||Hr;return i===l}function Nh(i){return i===i&&!Pe(i)}function $h(i,a){return function(l){return l==null?!1:l[i]===a&&(a!==n||i in Te(l))}}function wE(i){var a=yo(i,function(h){return l.size===d&&l.clear(),h}),l=a.cache;return a}function EE(i,a){var l=i[1],h=a[1],m=l|h,y=m<(E|O|R),b=h==R&&l==F||h==R&&l==W&&i[7].length<=a[8]||h==(R|W)&&a[7].length<=a[8]&&l==F;if(!(y||b))return i;h&E&&(i[2]=a[2],m|=l&E?0:D);var x=a[3];if(x){var T=i[3];i[3]=T?yh(T,x,a[4]):x,i[4]=T?An(i[3],p):a[4]}return x=a[5],x&&(T=i[5],i[5]=T?vh(T,x,a[6]):x,i[6]=T?An(i[5],p):a[6]),x=a[7],x&&(i[7]=x),h&R&&(i[8]=i[8]==null?a[8]:et(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=m,i}function xE(i){var a=[];if(i!=null)for(var l in Te(i))a.push(l);return a}function IE(i){return Ks.call(i)}function Ph(i,a,l){return a=Ve(a===n?i.length-1:a,0),function(){for(var h=arguments,m=-1,y=Ve(h.length-a,0),b=k(y);++m<y;)b[m]=h[a+m];m=-1;for(var x=k(a+1);++m<a;)x[m]=h[m];return x[a]=l(b),wt(i,this,x)}}function Fh(i,a){return a.length<2?i:sr(i,$t(a,0,-1))}function TE(i,a){for(var l=i.length,h=et(a.length,l),m=ct(i);h--;){var y=a[h];i[h]=pn(y,l)?m[y]:n}return i}function ic(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var Bh=Wh(uh),qi=WS||function(i,a){return Ze.setTimeout(i,a)},sc=Wh(Yw);function Uh(i,a,l){var h=a+"";return sc(i,gE(h,CE(pE(h),l)))}function Wh(i){var a=0,l=0;return function(){var h=qS(),m=pe-(h-l);if(l=h,m>0){if(++a>=fe)return arguments[0]}else a=0;return i.apply(n,arguments)}}function po(i,a){var l=-1,h=i.length,m=h-1;for(a=a===n?h:a;++l<a;){var y=Wu(l,m),b=i[y];i[y]=i[l],i[l]=b}return i.length=a,i}var Hh=wE(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(mb,function(l,h,m,y){a.push(m?y.replace(xb,"$1"):h||l)}),a});function tn(i){if(typeof i=="string"||It(i))return i;var a=i+"";return a=="0"&&1/i==-Le?"-0":a}function ar(i){if(i!=null){try{return Hs.call(i)}catch{}try{return i+""}catch{}}return""}function CE(i,a){return Mt(Xn,function(l){var h="_."+l[0];a&l[1]&&!Ps(i,h)&&i.push(h)}),i.sort()}function Kh(i){if(i instanceof he)return i.clone();var a=new Lt(i.__wrapped__,i.__chain__);return a.__actions__=ct(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function OE(i,a,l){(l?rt(i,a,l):a===n)?a=1:a=Ve(ie(a),0);var h=i==null?0:i.length;if(!h||a<1)return[];for(var m=0,y=0,b=k(Ys(h/a));m<h;)b[y++]=$t(i,m,m+=a);return b}function RE(i){for(var a=-1,l=i==null?0:i.length,h=0,m=[];++a<l;){var y=i[a];y&&(m[h++]=y)}return m}function kE(){var i=arguments.length;if(!i)return[];for(var a=k(i-1),l=arguments[0],h=i;h--;)a[h-1]=arguments[h];return kn(ne(l)?ct(l):[l],Qe(a,1))}var AE=ae(function(i,a){return He(i)?Bi(i,Qe(a,1,He,!0)):[]}),ME=ae(function(i,a){var l=Pt(a);return He(l)&&(l=n),He(i)?Bi(i,Qe(a,1,He,!0),G(l,2)):[]}),DE=ae(function(i,a){var l=Pt(a);return He(l)&&(l=n),He(i)?Bi(i,Qe(a,1,He,!0),n,l):[]});function LE(i,a,l){var h=i==null?0:i.length;return h?(a=l||a===n?1:ie(a),$t(i,a<0?0:a,h)):[]}function NE(i,a,l){var h=i==null?0:i.length;return h?(a=l||a===n?1:ie(a),a=h-a,$t(i,0,a<0?0:a)):[]}function $E(i,a){return i&&i.length?so(i,G(a,3),!0,!0):[]}function PE(i,a){return i&&i.length?so(i,G(a,3),!0):[]}function FE(i,a,l,h){var m=i==null?0:i.length;return m?(l&&typeof l!="number"&&rt(i,a,l)&&(l=0,h=m),kw(i,a,l,h)):[]}function zh(i,a,l){var h=i==null?0:i.length;if(!h)return-1;var m=l==null?0:ie(l);return m<0&&(m=Ve(h+m,0)),Fs(i,G(a,3),m)}function qh(i,a,l){var h=i==null?0:i.length;if(!h)return-1;var m=h-1;return l!==n&&(m=ie(l),m=l<0?Ve(h+m,0):et(m,h-1)),Fs(i,G(a,3),m,!0)}function jh(i){var a=i==null?0:i.length;return a?Qe(i,1):[]}function BE(i){var a=i==null?0:i.length;return a?Qe(i,Le):[]}function UE(i,a){var l=i==null?0:i.length;return l?(a=a===n?1:ie(a),Qe(i,a)):[]}function WE(i){for(var a=-1,l=i==null?0:i.length,h={};++a<l;){var m=i[a];h[m[0]]=m[1]}return h}function Gh(i){return i&&i.length?i[0]:n}function HE(i,a,l){var h=i==null?0:i.length;if(!h)return-1;var m=l==null?0:ie(l);return m<0&&(m=Ve(h+m,0)),Fr(i,a,m)}function KE(i){var a=i==null?0:i.length;return a?$t(i,0,-1):[]}var zE=ae(function(i){var a=Ne(i,ju);return a.length&&a[0]===i[0]?$u(a):[]}),qE=ae(function(i){var a=Pt(i),l=Ne(i,ju);return a===Pt(l)?a=n:l.pop(),l.length&&l[0]===i[0]?$u(l,G(a,2)):[]}),jE=ae(function(i){var a=Pt(i),l=Ne(i,ju);return a=typeof a=="function"?a:n,a&&l.pop(),l.length&&l[0]===i[0]?$u(l,n,a):[]});function GE(i,a){return i==null?"":KS.call(i,a)}function Pt(i){var a=i==null?0:i.length;return a?i[a-1]:n}function VE(i,a,l){var h=i==null?0:i.length;if(!h)return-1;var m=h;return l!==n&&(m=ie(l),m=m<0?Ve(h+m,0):et(m,h-1)),a===a?CS(i,a,m):Fs(i,Cd,m,!0)}function YE(i,a){return i&&i.length?ih(i,ie(a)):n}var JE=ae(Vh);function Vh(i,a){return i&&i.length&&a&&a.length?Uu(i,a):i}function XE(i,a,l){return i&&i.length&&a&&a.length?Uu(i,a,G(l,2)):i}function ZE(i,a,l){return i&&i.length&&a&&a.length?Uu(i,a,n,l):i}var QE=hn(function(i,a){var l=i==null?0:i.length,h=Mu(i,a);return ah(i,Ne(a,function(m){return pn(m,l)?+m:m}).sort(gh)),h});function e0(i,a){var l=[];if(!(i&&i.length))return l;var h=-1,m=[],y=i.length;for(a=G(a,3);++h<y;){var b=i[h];a(b,h,i)&&(l.push(b),m.push(h))}return ah(i,m),l}function oc(i){return i==null?i:GS.call(i)}function t0(i,a,l){var h=i==null?0:i.length;return h?(l&&typeof l!="number"&&rt(i,a,l)?(a=0,l=h):(a=a==null?0:ie(a),l=l===n?h:ie(l)),$t(i,a,l)):[]}function n0(i,a){return io(i,a)}function r0(i,a,l){return Ku(i,a,G(l,2))}function i0(i,a){var l=i==null?0:i.length;if(l){var h=io(i,a);if(h<l&&Kt(i[h],a))return h}return-1}function s0(i,a){return io(i,a,!0)}function o0(i,a,l){return Ku(i,a,G(l,2),!0)}function a0(i,a){var l=i==null?0:i.length;if(l){var h=io(i,a,!0)-1;if(Kt(i[h],a))return h}return-1}function u0(i){return i&&i.length?ch(i):[]}function c0(i,a){return i&&i.length?ch(i,G(a,2)):[]}function l0(i){var a=i==null?0:i.length;return a?$t(i,1,a):[]}function f0(i,a,l){return i&&i.length?(a=l||a===n?1:ie(a),$t(i,0,a<0?0:a)):[]}function d0(i,a,l){var h=i==null?0:i.length;return h?(a=l||a===n?1:ie(a),a=h-a,$t(i,a<0?0:a,h)):[]}function h0(i,a){return i&&i.length?so(i,G(a,3),!1,!0):[]}function p0(i,a){return i&&i.length?so(i,G(a,3)):[]}var _0=ae(function(i){return Ln(Qe(i,1,He,!0))}),m0=ae(function(i){var a=Pt(i);return He(a)&&(a=n),Ln(Qe(i,1,He,!0),G(a,2))}),g0=ae(function(i){var a=Pt(i);return a=typeof a=="function"?a:n,Ln(Qe(i,1,He,!0),n,a)});function y0(i){return i&&i.length?Ln(i):[]}function v0(i,a){return i&&i.length?Ln(i,G(a,2)):[]}function b0(i,a){return a=typeof a=="function"?a:n,i&&i.length?Ln(i,n,a):[]}function ac(i){if(!(i&&i.length))return[];var a=0;return i=Rn(i,function(l){if(He(l))return a=Ve(l.length,a),!0}),xu(a,function(l){return Ne(i,Su(l))})}function Yh(i,a){if(!(i&&i.length))return[];var l=ac(i);return a==null?l:Ne(l,function(h){return wt(a,n,h)})}var S0=ae(function(i,a){return He(i)?Bi(i,a):[]}),w0=ae(function(i){return qu(Rn(i,He))}),E0=ae(function(i){var a=Pt(i);return He(a)&&(a=n),qu(Rn(i,He),G(a,2))}),x0=ae(function(i){var a=Pt(i);return a=typeof a=="function"?a:n,qu(Rn(i,He),n,a)}),I0=ae(ac);function T0(i,a){return hh(i||[],a||[],Fi)}function C0(i,a){return hh(i||[],a||[],Hi)}var O0=ae(function(i){var a=i.length,l=a>1?i[a-1]:n;return l=typeof l=="function"?(i.pop(),l):n,Yh(i,l)});function Jh(i){var a=g(i);return a.__chain__=!0,a}function R0(i,a){return a(i),i}function _o(i,a){return a(i)}var k0=hn(function(i){var a=i.length,l=a?i[0]:0,h=this.__wrapped__,m=function(y){return Mu(y,i)};return a>1||this.__actions__.length||!(h instanceof he)||!pn(l)?this.thru(m):(h=h.slice(l,+l+(a?1:0)),h.__actions__.push({func:_o,args:[m],thisArg:n}),new Lt(h,this.__chain__).thru(function(y){return a&&!y.length&&y.push(n),y}))});function A0(){return Jh(this)}function M0(){return new Lt(this.value(),this.__chain__)}function D0(){this.__values__===n&&(this.__values__=lp(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function L0(){return this}function N0(i){for(var a,l=this;l instanceof Qs;){var h=Kh(l);h.__index__=0,h.__values__=n,a?m.__wrapped__=h:a=h;var m=h;l=l.__wrapped__}return m.__wrapped__=i,a}function $0(){var i=this.__wrapped__;if(i instanceof he){var a=i;return this.__actions__.length&&(a=new he(this)),a=a.reverse(),a.__actions__.push({func:_o,args:[oc],thisArg:n}),new Lt(a,this.__chain__)}return this.thru(oc)}function P0(){return dh(this.__wrapped__,this.__actions__)}var F0=oo(function(i,a,l){xe.call(i,l)?++i[l]:fn(i,l,1)});function B0(i,a,l){var h=ne(i)?Id:Rw;return l&&rt(i,a,l)&&(a=n),h(i,G(a,3))}function U0(i,a){var l=ne(i)?Rn:Yd;return l(i,G(a,3))}var W0=Eh(zh),H0=Eh(qh);function K0(i,a){return Qe(mo(i,a),1)}function z0(i,a){return Qe(mo(i,a),Le)}function q0(i,a,l){return l=l===n?1:ie(l),Qe(mo(i,a),l)}function Xh(i,a){var l=ne(i)?Mt:Dn;return l(i,G(a,3))}function Zh(i,a){var l=ne(i)?lS:Vd;return l(i,G(a,3))}var j0=oo(function(i,a,l){xe.call(i,l)?i[l].push(a):fn(i,l,[a])});function G0(i,a,l,h){i=lt(i)?i:Jr(i),l=l&&!h?ie(l):0;var m=i.length;return l<0&&(l=Ve(m+l,0)),So(i)?l<=m&&i.indexOf(a,l)>-1:!!m&&Fr(i,a,l)>-1}var V0=ae(function(i,a,l){var h=-1,m=typeof a=="function",y=lt(i)?k(i.length):[];return Dn(i,function(b){y[++h]=m?wt(a,b,l):Ui(b,a,l)}),y}),Y0=oo(function(i,a,l){fn(i,l,a)});function mo(i,a){var l=ne(i)?Ne:th;return l(i,G(a,3))}function J0(i,a,l,h){return i==null?[]:(ne(a)||(a=a==null?[]:[a]),l=h?n:l,ne(l)||(l=l==null?[]:[l]),sh(i,a,l))}var X0=oo(function(i,a,l){i[l?0:1].push(a)},function(){return[[],[]]});function Z0(i,a,l){var h=ne(i)?vu:Rd,m=arguments.length<3;return h(i,G(a,4),l,m,Dn)}function Q0(i,a,l){var h=ne(i)?fS:Rd,m=arguments.length<3;return h(i,G(a,4),l,m,Vd)}function ex(i,a){var l=ne(i)?Rn:Yd;return l(i,vo(G(a,3)))}function tx(i){var a=ne(i)?zd:Gw;return a(i)}function nx(i,a,l){(l?rt(i,a,l):a===n)?a=1:a=ie(a);var h=ne(i)?xw:Vw;return h(i,a)}function rx(i){var a=ne(i)?Iw:Jw;return a(i)}function ix(i){if(i==null)return 0;if(lt(i))return So(i)?Ur(i):i.length;var a=tt(i);return a==je||a==$e?i.size:Fu(i).length}function sx(i,a,l){var h=ne(i)?bu:Xw;return l&&rt(i,a,l)&&(a=n),h(i,G(a,3))}var ox=ae(function(i,a){if(i==null)return[];var l=a.length;return l>1&&rt(i,a[0],a[1])?a=[]:l>2&&rt(a[0],a[1],a[2])&&(a=[a[0]]),sh(i,Qe(a,1),[])}),go=US||function(){return Ze.Date.now()};function ax(i,a){if(typeof a!="function")throw new Dt(u);return i=ie(i),function(){if(--i<1)return a.apply(this,arguments)}}function Qh(i,a,l){return a=l?n:a,a=i&&a==null?i.length:a,dn(i,R,n,n,n,n,a)}function ep(i,a){var l;if(typeof a!="function")throw new Dt(u);return i=ie(i),function(){return--i>0&&(l=a.apply(this,arguments)),i<=1&&(a=n),l}}var uc=ae(function(i,a,l){var h=E;if(l.length){var m=An(l,Vr(uc));h|=U}return dn(i,h,a,l,m)}),tp=ae(function(i,a,l){var h=E|O;if(l.length){var m=An(l,Vr(tp));h|=U}return dn(a,h,i,l,m)});function np(i,a,l){a=l?n:a;var h=dn(i,F,n,n,n,n,n,a);return h.placeholder=np.placeholder,h}function rp(i,a,l){a=l?n:a;var h=dn(i,K,n,n,n,n,n,a);return h.placeholder=rp.placeholder,h}function ip(i,a,l){var h,m,y,b,x,T,N=0,$=!1,P=!1,H=!0;if(typeof i!="function")throw new Dt(u);a=Ft(a)||0,Pe(l)&&($=!!l.leading,P="maxWait"in l,y=P?Ve(Ft(l.maxWait)||0,a):y,H="trailing"in l?!!l.trailing:H);function q(Ke){var zt=h,gn=m;return h=m=n,N=Ke,b=i.apply(gn,zt),b}function Y(Ke){return N=Ke,x=qi(le,a),$?q(Ke):b}function oe(Ke){var zt=Ke-T,gn=Ke-N,Ep=a-zt;return P?et(Ep,y-gn):Ep}function J(Ke){var zt=Ke-T,gn=Ke-N;return T===n||zt>=a||zt<0||P&&gn>=y}function le(){var Ke=go();if(J(Ke))return _e(Ke);x=qi(le,oe(Ke))}function _e(Ke){return x=n,H&&h?q(Ke):(h=m=n,b)}function Tt(){x!==n&&ph(x),N=0,h=T=m=x=n}function it(){return x===n?b:_e(go())}function Ct(){var Ke=go(),zt=J(Ke);if(h=arguments,m=this,T=Ke,zt){if(x===n)return Y(T);if(P)return ph(x),x=qi(le,a),q(T)}return x===n&&(x=qi(le,a)),b}return Ct.cancel=Tt,Ct.flush=it,Ct}var ux=ae(function(i,a){return Gd(i,1,a)}),cx=ae(function(i,a,l){return Gd(i,Ft(a)||0,l)});function lx(i){return dn(i,V)}function yo(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Dt(u);var l=function(){var h=arguments,m=a?a.apply(this,h):h[0],y=l.cache;if(y.has(m))return y.get(m);var b=i.apply(this,h);return l.cache=y.set(m,b)||y,b};return l.cache=new(yo.Cache||ln),l}yo.Cache=ln;function vo(i){if(typeof i!="function")throw new Dt(u);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function fx(i){return ep(2,i)}var dx=Zw(function(i,a){a=a.length==1&&ne(a[0])?Ne(a[0],Et(G())):Ne(Qe(a,1),Et(G()));var l=a.length;return ae(function(h){for(var m=-1,y=et(h.length,l);++m<y;)h[m]=a[m].call(this,h[m]);return wt(i,this,h)})}),cc=ae(function(i,a){var l=An(a,Vr(cc));return dn(i,U,n,a,l)}),sp=ae(function(i,a){var l=An(a,Vr(sp));return dn(i,A,n,a,l)}),hx=hn(function(i,a){return dn(i,W,n,n,n,a)});function px(i,a){if(typeof i!="function")throw new Dt(u);return a=a===n?a:ie(a),ae(i,a)}function _x(i,a){if(typeof i!="function")throw new Dt(u);return a=a==null?0:Ve(ie(a),0),ae(function(l){var h=l[a],m=$n(l,0,a);return h&&kn(m,h),wt(i,this,m)})}function mx(i,a,l){var h=!0,m=!0;if(typeof i!="function")throw new Dt(u);return Pe(l)&&(h="leading"in l?!!l.leading:h,m="trailing"in l?!!l.trailing:m),ip(i,a,{leading:h,maxWait:a,trailing:m})}function gx(i){return Qh(i,1)}function yx(i,a){return cc(Gu(a),i)}function vx(){if(!arguments.length)return[];var i=arguments[0];return ne(i)?i:[i]}function bx(i){return Nt(i,w)}function Sx(i,a){return a=typeof a=="function"?a:n,Nt(i,w,a)}function wx(i){return Nt(i,_|w)}function Ex(i,a){return a=typeof a=="function"?a:n,Nt(i,_|w,a)}function xx(i,a){return a==null||jd(i,a,Je(a))}function Kt(i,a){return i===a||i!==i&&a!==a}var Ix=lo(Nu),Tx=lo(function(i,a){return i>=a}),ur=Zd(function(){return arguments}())?Zd:function(i){return Ue(i)&&xe.call(i,"callee")&&!Fd.call(i,"callee")},ne=k.isArray,Cx=vd?Et(vd):Nw;function lt(i){return i!=null&&bo(i.length)&&!_n(i)}function He(i){return Ue(i)&&lt(i)}function Ox(i){return i===!0||i===!1||Ue(i)&&nt(i)==un}var Pn=HS||bc,Rx=bd?Et(bd):$w;function kx(i){return Ue(i)&&i.nodeType===1&&!ji(i)}function Ax(i){if(i==null)return!0;if(lt(i)&&(ne(i)||typeof i=="string"||typeof i.splice=="function"||Pn(i)||Yr(i)||ur(i)))return!i.length;var a=tt(i);if(a==je||a==$e)return!i.size;if(zi(i))return!Fu(i).length;for(var l in i)if(xe.call(i,l))return!1;return!0}function Mx(i,a){return Wi(i,a)}function Dx(i,a,l){l=typeof l=="function"?l:n;var h=l?l(i,a):n;return h===n?Wi(i,a,n,l):!!h}function lc(i){if(!Ue(i))return!1;var a=nt(i);return a==Zn||a==Lr||typeof i.message=="string"&&typeof i.name=="string"&&!ji(i)}function Lx(i){return typeof i=="number"&&Ud(i)}function _n(i){if(!Pe(i))return!1;var a=nt(i);return a==Nr||a==Ds||a==Oi||a==ki}function op(i){return typeof i=="number"&&i==ie(i)}function bo(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=me}function Pe(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function Ue(i){return i!=null&&typeof i=="object"}var ap=Sd?Et(Sd):Fw;function Nx(i,a){return i===a||Pu(i,a,ec(a))}function $x(i,a,l){return l=typeof l=="function"?l:n,Pu(i,a,ec(a),l)}function Px(i){return up(i)&&i!=+i}function Fx(i){if(SE(i))throw new te(o);return Qd(i)}function Bx(i){return i===null}function Ux(i){return i==null}function up(i){return typeof i=="number"||Ue(i)&&nt(i)==vt}function ji(i){if(!Ue(i)||nt(i)!=bt)return!1;var a=js(i);if(a===null)return!0;var l=xe.call(a,"constructor")&&a.constructor;return typeof l=="function"&&l instanceof l&&Hs.call(l)==$S}var fc=wd?Et(wd):Bw;function Wx(i){return op(i)&&i>=-me&&i<=me}var cp=Ed?Et(Ed):Uw;function So(i){return typeof i=="string"||!ne(i)&&Ue(i)&&nt(i)==se}function It(i){return typeof i=="symbol"||Ue(i)&&nt(i)==Ie}var Yr=xd?Et(xd):Ww;function Hx(i){return i===n}function Kx(i){return Ue(i)&&tt(i)==St}function zx(i){return Ue(i)&&nt(i)==Qa}var qx=lo(Bu),jx=lo(function(i,a){return i<=a});function lp(i){if(!i)return[];if(lt(i))return So(i)?Wt(i):ct(i);if(Di&&i[Di])return xS(i[Di]());var a=tt(i),l=a==je?Tu:a==$e?Bs:Jr;return l(i)}function mn(i){if(!i)return i===0?i:0;if(i=Ft(i),i===Le||i===-Le){var a=i<0?-1:1;return a*gt}return i===i?i:0}function ie(i){var a=mn(i),l=a%1;return a===a?l?a-l:a:0}function fp(i){return i?ir(ie(i),0,yt):0}function Ft(i){if(typeof i=="number")return i;if(It(i))return ut;if(Pe(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=Pe(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=kd(i);var l=Cb.test(i);return l||Rb.test(i)?aS(i.slice(2),l?2:8):Tb.test(i)?ut:+i}function dp(i){return en(i,ft(i))}function Gx(i){return i?ir(ie(i),-me,me):i===0?i:0}function Ee(i){return i==null?"":xt(i)}var Vx=jr(function(i,a){if(zi(a)||lt(a)){en(a,Je(a),i);return}for(var l in a)xe.call(a,l)&&Fi(i,l,a[l])}),hp=jr(function(i,a){en(a,ft(a),i)}),wo=jr(function(i,a,l,h){en(a,ft(a),i,h)}),Yx=jr(function(i,a,l,h){en(a,Je(a),i,h)}),Jx=hn(Mu);function Xx(i,a){var l=qr(i);return a==null?l:qd(l,a)}var Zx=ae(function(i,a){i=Te(i);var l=-1,h=a.length,m=h>2?a[2]:n;for(m&&rt(a[0],a[1],m)&&(h=1);++l<h;)for(var y=a[l],b=ft(y),x=-1,T=b.length;++x<T;){var N=b[x],$=i[N];($===n||Kt($,Hr[N])&&!xe.call(i,N))&&(i[N]=y[N])}return i}),Qx=ae(function(i){return i.push(n,kh),wt(pp,n,i)});function eI(i,a){return Td(i,G(a,3),Qt)}function tI(i,a){return Td(i,G(a,3),Lu)}function nI(i,a){return i==null?i:Du(i,G(a,3),ft)}function rI(i,a){return i==null?i:Jd(i,G(a,3),ft)}function iI(i,a){return i&&Qt(i,G(a,3))}function sI(i,a){return i&&Lu(i,G(a,3))}function oI(i){return i==null?[]:no(i,Je(i))}function aI(i){return i==null?[]:no(i,ft(i))}function dc(i,a,l){var h=i==null?n:sr(i,a);return h===n?l:h}function uI(i,a){return i!=null&&Dh(i,a,Aw)}function hc(i,a){return i!=null&&Dh(i,a,Mw)}var cI=Ih(function(i,a,l){a!=null&&typeof a.toString!="function"&&(a=Ks.call(a)),i[a]=l},_c(dt)),lI=Ih(function(i,a,l){a!=null&&typeof a.toString!="function"&&(a=Ks.call(a)),xe.call(i,a)?i[a].push(l):i[a]=[l]},G),fI=ae(Ui);function Je(i){return lt(i)?Kd(i):Fu(i)}function ft(i){return lt(i)?Kd(i,!0):Hw(i)}function dI(i,a){var l={};return a=G(a,3),Qt(i,function(h,m,y){fn(l,a(h,m,y),h)}),l}function hI(i,a){var l={};return a=G(a,3),Qt(i,function(h,m,y){fn(l,m,a(h,m,y))}),l}var pI=jr(function(i,a,l){ro(i,a,l)}),pp=jr(function(i,a,l,h){ro(i,a,l,h)}),_I=hn(function(i,a){var l={};if(i==null)return l;var h=!1;a=Ne(a,function(y){return y=Nn(y,i),h||(h=y.length>1),y}),en(i,Zu(i),l),h&&(l=Nt(l,_|v|w,cE));for(var m=a.length;m--;)zu(l,a[m]);return l});function mI(i,a){return _p(i,vo(G(a)))}var gI=hn(function(i,a){return i==null?{}:zw(i,a)});function _p(i,a){if(i==null)return{};var l=Ne(Zu(i),function(h){return[h]});return a=G(a),oh(i,l,function(h,m){return a(h,m[0])})}function yI(i,a,l){a=Nn(a,i);var h=-1,m=a.length;for(m||(m=1,i=n);++h<m;){var y=i==null?n:i[tn(a[h])];y===n&&(h=m,y=l),i=_n(y)?y.call(i):y}return i}function vI(i,a,l){return i==null?i:Hi(i,a,l)}function bI(i,a,l,h){return h=typeof h=="function"?h:n,i==null?i:Hi(i,a,l,h)}var mp=Oh(Je),gp=Oh(ft);function SI(i,a,l){var h=ne(i),m=h||Pn(i)||Yr(i);if(a=G(a,4),l==null){var y=i&&i.constructor;m?l=h?new y:[]:Pe(i)?l=_n(y)?qr(js(i)):{}:l={}}return(m?Mt:Qt)(i,function(b,x,T){return a(l,b,x,T)}),l}function wI(i,a){return i==null?!0:zu(i,a)}function EI(i,a,l){return i==null?i:fh(i,a,Gu(l))}function xI(i,a,l,h){return h=typeof h=="function"?h:n,i==null?i:fh(i,a,Gu(l),h)}function Jr(i){return i==null?[]:Iu(i,Je(i))}function II(i){return i==null?[]:Iu(i,ft(i))}function TI(i,a,l){return l===n&&(l=a,a=n),l!==n&&(l=Ft(l),l=l===l?l:0),a!==n&&(a=Ft(a),a=a===a?a:0),ir(Ft(i),a,l)}function CI(i,a,l){return a=mn(a),l===n?(l=a,a=0):l=mn(l),i=Ft(i),Dw(i,a,l)}function OI(i,a,l){if(l&&typeof l!="boolean"&&rt(i,a,l)&&(a=l=n),l===n&&(typeof a=="boolean"?(l=a,a=n):typeof i=="boolean"&&(l=i,i=n)),i===n&&a===n?(i=0,a=1):(i=mn(i),a===n?(a=i,i=0):a=mn(a)),i>a){var h=i;i=a,a=h}if(l||i%1||a%1){var m=Wd();return et(i+m*(a-i+oS("1e-"+((m+"").length-1))),a)}return Wu(i,a)}var RI=Gr(function(i,a,l){return a=a.toLowerCase(),i+(l?yp(a):a)});function yp(i){return pc(Ee(i).toLowerCase())}function vp(i){return i=Ee(i),i&&i.replace(Ab,vS).replace(Jb,"")}function kI(i,a,l){i=Ee(i),a=xt(a);var h=i.length;l=l===n?h:ir(ie(l),0,h);var m=l;return l-=a.length,l>=0&&i.slice(l,m)==a}function AI(i){return i=Ee(i),i&&fb.test(i)?i.replace(Jf,bS):i}function MI(i){return i=Ee(i),i&&gb.test(i)?i.replace(cu,"\\$&"):i}var DI=Gr(function(i,a,l){return i+(l?"-":"")+a.toLowerCase()}),LI=Gr(function(i,a,l){return i+(l?" ":"")+a.toLowerCase()}),NI=wh("toLowerCase");function $I(i,a,l){i=Ee(i),a=ie(a);var h=a?Ur(i):0;if(!a||h>=a)return i;var m=(a-h)/2;return co(Js(m),l)+i+co(Ys(m),l)}function PI(i,a,l){i=Ee(i),a=ie(a);var h=a?Ur(i):0;return a&&h<a?i+co(a-h,l):i}function FI(i,a,l){i=Ee(i),a=ie(a);var h=a?Ur(i):0;return a&&h<a?co(a-h,l)+i:i}function BI(i,a,l){return l||a==null?a=0:a&&(a=+a),jS(Ee(i).replace(lu,""),a||0)}function UI(i,a,l){return(l?rt(i,a,l):a===n)?a=1:a=ie(a),Hu(Ee(i),a)}function WI(){var i=arguments,a=Ee(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var HI=Gr(function(i,a,l){return i+(l?"_":"")+a.toLowerCase()});function KI(i,a,l){return l&&typeof l!="number"&&rt(i,a,l)&&(a=l=n),l=l===n?yt:l>>>0,l?(i=Ee(i),i&&(typeof a=="string"||a!=null&&!fc(a))&&(a=xt(a),!a&&Br(i))?$n(Wt(i),0,l):i.split(a,l)):[]}var zI=Gr(function(i,a,l){return i+(l?" ":"")+pc(a)});function qI(i,a,l){return i=Ee(i),l=l==null?0:ir(ie(l),0,i.length),a=xt(a),i.slice(l,l+a.length)==a}function jI(i,a,l){var h=g.templateSettings;l&&rt(i,a,l)&&(a=n),i=Ee(i),a=wo({},a,h,Rh);var m=wo({},a.imports,h.imports,Rh),y=Je(m),b=Iu(m,y),x,T,N=0,$=a.interpolate||Ls,P="__p += '",H=Cu((a.escape||Ls).source+"|"+$.source+"|"+($===Xf?Ib:Ls).source+"|"+(a.evaluate||Ls).source+"|$","g"),q="//# sourceURL="+(xe.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tS+"]")+`
`;i.replace(H,function(J,le,_e,Tt,it,Ct){return _e||(_e=Tt),P+=i.slice(N,Ct).replace(Mb,SS),le&&(x=!0,P+=`' +
__e(`+le+`) +
'`),it&&(T=!0,P+=`';
`+it+`;
__p += '`),_e&&(P+=`' +
((__t = (`+_e+`)) == null ? '' : __t) +
'`),N=Ct+J.length,J}),P+=`';
`;var Y=xe.call(a,"variable")&&a.variable;if(!Y)P=`with (obj) {
`+P+`
}
`;else if(Eb.test(Y))throw new te(c);P=(T?P.replace(ab,""):P).replace(ub,"$1").replace(cb,"$1;"),P="function("+(Y||"obj")+`) {
`+(Y?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(x?", __e = _.escape":"")+(T?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+P+`return __p
}`;var oe=Sp(function(){return we(y,q+"return "+P).apply(n,b)});if(oe.source=P,lc(oe))throw oe;return oe}function GI(i){return Ee(i).toLowerCase()}function VI(i){return Ee(i).toUpperCase()}function YI(i,a,l){if(i=Ee(i),i&&(l||a===n))return kd(i);if(!i||!(a=xt(a)))return i;var h=Wt(i),m=Wt(a),y=Ad(h,m),b=Md(h,m)+1;return $n(h,y,b).join("")}function JI(i,a,l){if(i=Ee(i),i&&(l||a===n))return i.slice(0,Ld(i)+1);if(!i||!(a=xt(a)))return i;var h=Wt(i),m=Md(h,Wt(a))+1;return $n(h,0,m).join("")}function XI(i,a,l){if(i=Ee(i),i&&(l||a===n))return i.replace(lu,"");if(!i||!(a=xt(a)))return i;var h=Wt(i),m=Ad(h,Wt(a));return $n(h,m).join("")}function ZI(i,a){var l=B,h=j;if(Pe(a)){var m="separator"in a?a.separator:m;l="length"in a?ie(a.length):l,h="omission"in a?xt(a.omission):h}i=Ee(i);var y=i.length;if(Br(i)){var b=Wt(i);y=b.length}if(l>=y)return i;var x=l-Ur(h);if(x<1)return h;var T=b?$n(b,0,x).join(""):i.slice(0,x);if(m===n)return T+h;if(b&&(x+=T.length-x),fc(m)){if(i.slice(x).search(m)){var N,$=T;for(m.global||(m=Cu(m.source,Ee(Zf.exec(m))+"g")),m.lastIndex=0;N=m.exec($);)var P=N.index;T=T.slice(0,P===n?x:P)}}else if(i.indexOf(xt(m),x)!=x){var H=T.lastIndexOf(m);H>-1&&(T=T.slice(0,H))}return T+h}function QI(i){return i=Ee(i),i&&lb.test(i)?i.replace(Yf,OS):i}var e1=Gr(function(i,a,l){return i+(l?" ":"")+a.toUpperCase()}),pc=wh("toUpperCase");function bp(i,a,l){return i=Ee(i),a=l?n:a,a===n?ES(i)?AS(i):pS(i):i.match(a)||[]}var Sp=ae(function(i,a){try{return wt(i,n,a)}catch(l){return lc(l)?l:new te(l)}}),t1=hn(function(i,a){return Mt(a,function(l){l=tn(l),fn(i,l,uc(i[l],i))}),i});function n1(i){var a=i==null?0:i.length,l=G();return i=a?Ne(i,function(h){if(typeof h[1]!="function")throw new Dt(u);return[l(h[0]),h[1]]}):[],ae(function(h){for(var m=-1;++m<a;){var y=i[m];if(wt(y[0],this,h))return wt(y[1],this,h)}})}function r1(i){return Ow(Nt(i,_))}function _c(i){return function(){return i}}function i1(i,a){return i==null||i!==i?a:i}var s1=xh(),o1=xh(!0);function dt(i){return i}function mc(i){return eh(typeof i=="function"?i:Nt(i,_))}function a1(i){return nh(Nt(i,_))}function u1(i,a){return rh(i,Nt(a,_))}var c1=ae(function(i,a){return function(l){return Ui(l,i,a)}}),l1=ae(function(i,a){return function(l){return Ui(i,l,a)}});function gc(i,a,l){var h=Je(a),m=no(a,h);l==null&&!(Pe(a)&&(m.length||!h.length))&&(l=a,a=i,i=this,m=no(a,Je(a)));var y=!(Pe(l)&&"chain"in l)||!!l.chain,b=_n(i);return Mt(m,function(x){var T=a[x];i[x]=T,b&&(i.prototype[x]=function(){var N=this.__chain__;if(y||N){var $=i(this.__wrapped__),P=$.__actions__=ct(this.__actions__);return P.push({func:T,args:arguments,thisArg:i}),$.__chain__=N,$}return T.apply(i,kn([this.value()],arguments))})}),i}function f1(){return Ze._===this&&(Ze._=PS),this}function yc(){}function d1(i){return i=ie(i),ae(function(a){return ih(a,i)})}var h1=Yu(Ne),p1=Yu(Id),_1=Yu(bu);function wp(i){return nc(i)?Su(tn(i)):qw(i)}function m1(i){return function(a){return i==null?n:sr(i,a)}}var g1=Th(),y1=Th(!0);function vc(){return[]}function bc(){return!1}function v1(){return{}}function b1(){return""}function S1(){return!0}function w1(i,a){if(i=ie(i),i<1||i>me)return[];var l=yt,h=et(i,yt);a=G(a),i-=yt;for(var m=xu(h,a);++l<i;)a(l);return m}function E1(i){return ne(i)?Ne(i,tn):It(i)?[i]:ct(Hh(Ee(i)))}function x1(i){var a=++NS;return Ee(i)+a}var I1=uo(function(i,a){return i+a},0),T1=Ju("ceil"),C1=uo(function(i,a){return i/a},1),O1=Ju("floor");function R1(i){return i&&i.length?to(i,dt,Nu):n}function k1(i,a){return i&&i.length?to(i,G(a,2),Nu):n}function A1(i){return Od(i,dt)}function M1(i,a){return Od(i,G(a,2))}function D1(i){return i&&i.length?to(i,dt,Bu):n}function L1(i,a){return i&&i.length?to(i,G(a,2),Bu):n}var N1=uo(function(i,a){return i*a},1),$1=Ju("round"),P1=uo(function(i,a){return i-a},0);function F1(i){return i&&i.length?Eu(i,dt):0}function B1(i,a){return i&&i.length?Eu(i,G(a,2)):0}return g.after=ax,g.ary=Qh,g.assign=Vx,g.assignIn=hp,g.assignInWith=wo,g.assignWith=Yx,g.at=Jx,g.before=ep,g.bind=uc,g.bindAll=t1,g.bindKey=tp,g.castArray=vx,g.chain=Jh,g.chunk=OE,g.compact=RE,g.concat=kE,g.cond=n1,g.conforms=r1,g.constant=_c,g.countBy=F0,g.create=Xx,g.curry=np,g.curryRight=rp,g.debounce=ip,g.defaults=Zx,g.defaultsDeep=Qx,g.defer=ux,g.delay=cx,g.difference=AE,g.differenceBy=ME,g.differenceWith=DE,g.drop=LE,g.dropRight=NE,g.dropRightWhile=$E,g.dropWhile=PE,g.fill=FE,g.filter=U0,g.flatMap=K0,g.flatMapDeep=z0,g.flatMapDepth=q0,g.flatten=jh,g.flattenDeep=BE,g.flattenDepth=UE,g.flip=lx,g.flow=s1,g.flowRight=o1,g.fromPairs=WE,g.functions=oI,g.functionsIn=aI,g.groupBy=j0,g.initial=KE,g.intersection=zE,g.intersectionBy=qE,g.intersectionWith=jE,g.invert=cI,g.invertBy=lI,g.invokeMap=V0,g.iteratee=mc,g.keyBy=Y0,g.keys=Je,g.keysIn=ft,g.map=mo,g.mapKeys=dI,g.mapValues=hI,g.matches=a1,g.matchesProperty=u1,g.memoize=yo,g.merge=pI,g.mergeWith=pp,g.method=c1,g.methodOf=l1,g.mixin=gc,g.negate=vo,g.nthArg=d1,g.omit=_I,g.omitBy=mI,g.once=fx,g.orderBy=J0,g.over=h1,g.overArgs=dx,g.overEvery=p1,g.overSome=_1,g.partial=cc,g.partialRight=sp,g.partition=X0,g.pick=gI,g.pickBy=_p,g.property=wp,g.propertyOf=m1,g.pull=JE,g.pullAll=Vh,g.pullAllBy=XE,g.pullAllWith=ZE,g.pullAt=QE,g.range=g1,g.rangeRight=y1,g.rearg=hx,g.reject=ex,g.remove=e0,g.rest=px,g.reverse=oc,g.sampleSize=nx,g.set=vI,g.setWith=bI,g.shuffle=rx,g.slice=t0,g.sortBy=ox,g.sortedUniq=u0,g.sortedUniqBy=c0,g.split=KI,g.spread=_x,g.tail=l0,g.take=f0,g.takeRight=d0,g.takeRightWhile=h0,g.takeWhile=p0,g.tap=R0,g.throttle=mx,g.thru=_o,g.toArray=lp,g.toPairs=mp,g.toPairsIn=gp,g.toPath=E1,g.toPlainObject=dp,g.transform=SI,g.unary=gx,g.union=_0,g.unionBy=m0,g.unionWith=g0,g.uniq=y0,g.uniqBy=v0,g.uniqWith=b0,g.unset=wI,g.unzip=ac,g.unzipWith=Yh,g.update=EI,g.updateWith=xI,g.values=Jr,g.valuesIn=II,g.without=S0,g.words=bp,g.wrap=yx,g.xor=w0,g.xorBy=E0,g.xorWith=x0,g.zip=I0,g.zipObject=T0,g.zipObjectDeep=C0,g.zipWith=O0,g.entries=mp,g.entriesIn=gp,g.extend=hp,g.extendWith=wo,gc(g,g),g.add=I1,g.attempt=Sp,g.camelCase=RI,g.capitalize=yp,g.ceil=T1,g.clamp=TI,g.clone=bx,g.cloneDeep=wx,g.cloneDeepWith=Ex,g.cloneWith=Sx,g.conformsTo=xx,g.deburr=vp,g.defaultTo=i1,g.divide=C1,g.endsWith=kI,g.eq=Kt,g.escape=AI,g.escapeRegExp=MI,g.every=B0,g.find=W0,g.findIndex=zh,g.findKey=eI,g.findLast=H0,g.findLastIndex=qh,g.findLastKey=tI,g.floor=O1,g.forEach=Xh,g.forEachRight=Zh,g.forIn=nI,g.forInRight=rI,g.forOwn=iI,g.forOwnRight=sI,g.get=dc,g.gt=Ix,g.gte=Tx,g.has=uI,g.hasIn=hc,g.head=Gh,g.identity=dt,g.includes=G0,g.indexOf=HE,g.inRange=CI,g.invoke=fI,g.isArguments=ur,g.isArray=ne,g.isArrayBuffer=Cx,g.isArrayLike=lt,g.isArrayLikeObject=He,g.isBoolean=Ox,g.isBuffer=Pn,g.isDate=Rx,g.isElement=kx,g.isEmpty=Ax,g.isEqual=Mx,g.isEqualWith=Dx,g.isError=lc,g.isFinite=Lx,g.isFunction=_n,g.isInteger=op,g.isLength=bo,g.isMap=ap,g.isMatch=Nx,g.isMatchWith=$x,g.isNaN=Px,g.isNative=Fx,g.isNil=Ux,g.isNull=Bx,g.isNumber=up,g.isObject=Pe,g.isObjectLike=Ue,g.isPlainObject=ji,g.isRegExp=fc,g.isSafeInteger=Wx,g.isSet=cp,g.isString=So,g.isSymbol=It,g.isTypedArray=Yr,g.isUndefined=Hx,g.isWeakMap=Kx,g.isWeakSet=zx,g.join=GE,g.kebabCase=DI,g.last=Pt,g.lastIndexOf=VE,g.lowerCase=LI,g.lowerFirst=NI,g.lt=qx,g.lte=jx,g.max=R1,g.maxBy=k1,g.mean=A1,g.meanBy=M1,g.min=D1,g.minBy=L1,g.stubArray=vc,g.stubFalse=bc,g.stubObject=v1,g.stubString=b1,g.stubTrue=S1,g.multiply=N1,g.nth=YE,g.noConflict=f1,g.noop=yc,g.now=go,g.pad=$I,g.padEnd=PI,g.padStart=FI,g.parseInt=BI,g.random=OI,g.reduce=Z0,g.reduceRight=Q0,g.repeat=UI,g.replace=WI,g.result=yI,g.round=$1,g.runInContext=I,g.sample=tx,g.size=ix,g.snakeCase=HI,g.some=sx,g.sortedIndex=n0,g.sortedIndexBy=r0,g.sortedIndexOf=i0,g.sortedLastIndex=s0,g.sortedLastIndexBy=o0,g.sortedLastIndexOf=a0,g.startCase=zI,g.startsWith=qI,g.subtract=P1,g.sum=F1,g.sumBy=B1,g.template=jI,g.times=w1,g.toFinite=mn,g.toInteger=ie,g.toLength=fp,g.toLower=GI,g.toNumber=Ft,g.toSafeInteger=Gx,g.toString=Ee,g.toUpper=VI,g.trim=YI,g.trimEnd=JI,g.trimStart=XI,g.truncate=ZI,g.unescape=QI,g.uniqueId=x1,g.upperCase=e1,g.upperFirst=pc,g.each=Xh,g.eachRight=Zh,g.first=Gh,gc(g,function(){var i={};return Qt(g,function(a,l){xe.call(g.prototype,l)||(i[l]=a)}),i}(),{chain:!1}),g.VERSION=r,Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){g[i].placeholder=g}),Mt(["drop","take"],function(i,a){he.prototype[i]=function(l){l=l===n?1:Ve(ie(l),0);var h=this.__filtered__&&!a?new he(this):this.clone();return h.__filtered__?h.__takeCount__=et(l,h.__takeCount__):h.__views__.push({size:et(l,yt),type:i+(h.__dir__<0?"Right":"")}),h},he.prototype[i+"Right"]=function(l){return this.reverse()[i](l).reverse()}}),Mt(["filter","map","takeWhile"],function(i,a){var l=a+1,h=l==Se||l==de;he.prototype[i]=function(m){var y=this.clone();return y.__iteratees__.push({iteratee:G(m,3),type:l}),y.__filtered__=y.__filtered__||h,y}}),Mt(["head","last"],function(i,a){var l="take"+(a?"Right":"");he.prototype[i]=function(){return this[l](1).value()[0]}}),Mt(["initial","tail"],function(i,a){var l="drop"+(a?"":"Right");he.prototype[i]=function(){return this.__filtered__?new he(this):this[l](1)}}),he.prototype.compact=function(){return this.filter(dt)},he.prototype.find=function(i){return this.filter(i).head()},he.prototype.findLast=function(i){return this.reverse().find(i)},he.prototype.invokeMap=ae(function(i,a){return typeof i=="function"?new he(this):this.map(function(l){return Ui(l,i,a)})}),he.prototype.reject=function(i){return this.filter(vo(G(i)))},he.prototype.slice=function(i,a){i=ie(i);var l=this;return l.__filtered__&&(i>0||a<0)?new he(l):(i<0?l=l.takeRight(-i):i&&(l=l.drop(i)),a!==n&&(a=ie(a),l=a<0?l.dropRight(-a):l.take(a-i)),l)},he.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},he.prototype.toArray=function(){return this.take(yt)},Qt(he.prototype,function(i,a){var l=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),m=g[h?"take"+(a=="last"?"Right":""):a],y=h||/^find/.test(a);m&&(g.prototype[a]=function(){var b=this.__wrapped__,x=h?[1]:arguments,T=b instanceof he,N=x[0],$=T||ne(b),P=function(le){var _e=m.apply(g,kn([le],x));return h&&H?_e[0]:_e};$&&l&&typeof N=="function"&&N.length!=1&&(T=$=!1);var H=this.__chain__,q=!!this.__actions__.length,Y=y&&!H,oe=T&&!q;if(!y&&$){b=oe?b:new he(this);var J=i.apply(b,x);return J.__actions__.push({func:_o,args:[P],thisArg:n}),new Lt(J,H)}return Y&&oe?i.apply(this,x):(J=this.thru(P),Y?h?J.value()[0]:J.value():J)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(i){var a=Us[i],l=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",h=/^(?:pop|shift)$/.test(i);g.prototype[i]=function(){var m=arguments;if(h&&!this.__chain__){var y=this.value();return a.apply(ne(y)?y:[],m)}return this[l](function(b){return a.apply(ne(b)?b:[],m)})}}),Qt(he.prototype,function(i,a){var l=g[a];if(l){var h=l.name+"";xe.call(zr,h)||(zr[h]=[]),zr[h].push({name:a,func:l})}}),zr[ao(n,O).name]=[{name:"wrapper",func:n}],he.prototype.clone=QS,he.prototype.reverse=ew,he.prototype.value=tw,g.prototype.at=k0,g.prototype.chain=A0,g.prototype.commit=M0,g.prototype.next=D0,g.prototype.plant=N0,g.prototype.reverse=$0,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=P0,g.prototype.first=g.prototype.head,Di&&(g.prototype[Di]=L0),g},Wr=MS();er?((er.exports=Wr)._=Wr,mu._=Wr):Ze._=Wr}).call(Gi)})(pa,pa.exports);var fL=pa.exports;const dL=U1(fL);function py(e,t){return function(){return e.apply(t,arguments)}}const{toString:hL}=Object.prototype,{getPrototypeOf:wf}=Object,Ua=(e=>t=>{const n=hL.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=e=>(e=e.toLowerCase(),t=>Ua(t)===e),Wa=e=>t=>typeof t===e,{isArray:wi}=Array,_s=Wa("undefined");function pL(e){return e!==null&&!_s(e)&&e.constructor!==null&&!_s(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _y=Jt("ArrayBuffer");function _L(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_y(e.buffer),t}const mL=Wa("string"),kt=Wa("function"),my=Wa("number"),Ha=e=>e!==null&&typeof e=="object",gL=e=>e===!0||e===!1,Yo=e=>{if(Ua(e)!=="object")return!1;const t=wf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},yL=Jt("Date"),vL=Jt("File"),bL=Jt("Blob"),SL=Jt("FileList"),wL=e=>Ha(e)&&kt(e.pipe),EL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kt(e.append)&&((t=Ua(e))==="formdata"||t==="object"&&kt(e.toString)&&e.toString()==="[object FormData]"))},xL=Jt("URLSearchParams"),[IL,TL,CL,OL]=["ReadableStream","Request","Response","Headers"].map(Jt),RL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),wi(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),u=o.length;let c;for(r=0;r<u;r++)c=o[r],t.call(null,e[c],c,e)}}function gy(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yy=e=>!_s(e)&&e!==dr;function ml(){const{caseless:e}=yy(this)&&this||{},t={},n=(r,s)=>{const o=e&&gy(t,s)||s;Yo(t[o])&&Yo(r)?t[o]=ml(t[o],r):Yo(r)?t[o]=ml({},r):wi(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Cs(arguments[r],n);return t}const kL=(e,t,n,{allOwnKeys:r}={})=>(Cs(t,(s,o)=>{n&&kt(s)?e[o]=py(s,n):e[o]=s},{allOwnKeys:r}),e),AL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ML=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},DL=(e,t,n,r)=>{let s,o,u;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)u=s[o],(!r||r(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&wf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},LL=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},NL=e=>{if(!e)return null;if(wi(e))return e;let t=e.length;if(!my(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$L=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wf(Uint8Array)),PL=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},FL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},BL=Jt("HTMLFormElement"),UL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),H_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),WL=Jt("RegExp"),vy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cs(n,(s,o)=>{let u;(u=t(s,o,e))!==!1&&(r[o]=u||s)}),Object.defineProperties(e,r)},HL=e=>{vy(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(kt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},KL=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return wi(e)?r(e):r(String(e).split(t)),n},zL=()=>{},qL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ac="abcdefghijklmnopqrstuvwxyz",K_="0123456789",by={DIGIT:K_,ALPHA:Ac,ALPHA_DIGIT:Ac+Ac.toUpperCase()+K_},jL=(e=16,t=by.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function GL(e){return!!(e&&kt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const VL=e=>{const t=new Array(10),n=(r,s)=>{if(Ha(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=wi(r)?[]:{};return Cs(r,(u,c)=>{const f=n(u,s+1);!_s(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},YL=Jt("AsyncFunction"),JL=e=>e&&(Ha(e)||kt(e))&&kt(e.then)&&kt(e.catch),Sy=((e,t)=>e?setImmediate:t?((n,r)=>(dr.addEventListener("message",({source:s,data:o})=>{s===dr&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",kt(dr.postMessage)),XL=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||Sy,M={isArray:wi,isArrayBuffer:_y,isBuffer:pL,isFormData:EL,isArrayBufferView:_L,isString:mL,isNumber:my,isBoolean:gL,isObject:Ha,isPlainObject:Yo,isReadableStream:IL,isRequest:TL,isResponse:CL,isHeaders:OL,isUndefined:_s,isDate:yL,isFile:vL,isBlob:bL,isRegExp:WL,isFunction:kt,isStream:wL,isURLSearchParams:xL,isTypedArray:$L,isFileList:SL,forEach:Cs,merge:ml,extend:kL,trim:RL,stripBOM:AL,inherits:ML,toFlatObject:DL,kindOf:Ua,kindOfTest:Jt,endsWith:LL,toArray:NL,forEachEntry:PL,matchAll:FL,isHTMLForm:BL,hasOwnProperty:H_,hasOwnProp:H_,reduceDescriptors:vy,freezeMethods:HL,toObjectSet:KL,toCamelCase:UL,noop:zL,toFiniteNumber:qL,findKey:gy,global:dr,isContextDefined:yy,ALPHABET:by,generateString:jL,isSpecCompliantForm:GL,toJSONObject:VL,isAsyncFn:YL,isThenable:JL,setImmediate:Sy,asap:XL};function re(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}M.inherits(re,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}});const wy=re.prototype,Ey={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ey[e]={value:e}});Object.defineProperties(re,Ey);Object.defineProperty(wy,"isAxiosError",{value:!0});re.from=(e,t,n,r,s,o)=>{const u=Object.create(wy);return M.toFlatObject(e,u,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),re.call(u,e.message,t,n,r,s),u.cause=e,u.name=e.name,o&&Object.assign(u,o),u};const ZL=null;function gl(e){return M.isPlainObject(e)||M.isArray(e)}function xy(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function z_(e,t,n){return e?e.concat(t).map(function(s,o){return s=xy(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function QL(e){return M.isArray(e)&&!e.some(gl)}const eN=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Ka(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,E){return!M.isUndefined(E[C])});const r=n.metaTokens,s=n.visitor||p,o=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(s))throw new TypeError("visitor must be a function");function d(S){if(S===null)return"";if(M.isDate(S))return S.toISOString();if(!f&&M.isBlob(S))throw new re("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(S)||M.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function p(S,C,E){let O=S;if(S&&!E&&typeof S=="object"){if(M.endsWith(C,"{}"))C=r?C:C.slice(0,-2),S=JSON.stringify(S);else if(M.isArray(S)&&QL(S)||(M.isFileList(S)||M.endsWith(C,"[]"))&&(O=M.toArray(S)))return C=xy(C),O.forEach(function(F,K){!(M.isUndefined(F)||F===null)&&t.append(u===!0?z_([C],K,o):u===null?C:C+"[]",d(F))}),!1}return gl(S)?!0:(t.append(z_(E,C,o),d(S)),!1)}const _=[],v=Object.assign(eN,{defaultVisitor:p,convertValue:d,isVisitable:gl});function w(S,C){if(!M.isUndefined(S)){if(_.indexOf(S)!==-1)throw Error("Circular reference detected in "+C.join("."));_.push(S),M.forEach(S,function(O,D){(!(M.isUndefined(O)||O===null)&&s.call(t,O,M.isString(D)?D.trim():D,C,v))===!0&&w(O,C?C.concat(D):[D])}),_.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return w(e),t}function q_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ef(e,t){this._pairs=[],e&&Ka(e,this,t)}const Iy=Ef.prototype;Iy.append=function(t,n){this._pairs.push([t,n])};Iy.toString=function(t){const n=t?function(r){return t.call(this,r,q_)}:q_;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function tN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ty(e,t,n){if(!t)return e;const r=n&&n.encode||tN,s=n&&n.serialize;let o;if(s?o=s(t,n):o=M.isURLSearchParams(t)?t.toString():new Ef(t,n).toString(r),o){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class j_{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Cy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nN=typeof URLSearchParams<"u"?URLSearchParams:Ef,rN=typeof FormData<"u"?FormData:null,iN=typeof Blob<"u"?Blob:null,sN={isBrowser:!0,classes:{URLSearchParams:nN,FormData:rN,Blob:iN},protocols:["http","https","file","blob","url","data"]},xf=typeof window<"u"&&typeof document<"u",yl=typeof navigator=="object"&&navigator||void 0,oN=xf&&(!yl||["ReactNative","NativeScript","NS"].indexOf(yl.product)<0),aN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uN=xf&&window.location.href||"http://localhost",cN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xf,hasStandardBrowserEnv:oN,hasStandardBrowserWebWorkerEnv:aN,navigator:yl,origin:uN},Symbol.toStringTag,{value:"Module"})),_t={...cN,...sN};function lN(e,t){return Ka(e,new _t.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return _t.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function fN(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dN(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Oy(e){function t(n,r,s,o){let u=n[o++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=o>=n.length;return u=!u&&M.isArray(s)?s.length:u,f?(M.hasOwnProp(s,u)?s[u]=[s[u],r]:s[u]=r,!c):((!s[u]||!M.isObject(s[u]))&&(s[u]=[]),t(n,r,s[u],o)&&M.isArray(s[u])&&(s[u]=dN(s[u])),!c)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,s)=>{t(fN(r),s,n,0)}),n}return null}function hN(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Os={transitional:Cy,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=M.isObject(t);if(o&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return s?JSON.stringify(Oy(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lN(t,this.formSerializer).toString();if((c=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ka(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),hN(t)):t}],transformResponse:[function(t){const n=this.transitional||Os.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(r&&!this.responseType||s)){const u=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(u)throw c.name==="SyntaxError"?re.from(c,re.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_t.classes.FormData,Blob:_t.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Os.headers[e]={}});const pN=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_N=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(u){s=u.indexOf(":"),n=u.substring(0,s).trim().toLowerCase(),r=u.substring(s+1).trim(),!(!n||t[n]&&pN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},G_=Symbol("internals");function Ji(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:M.isArray(e)?e.map(Jo):String(e)}function mN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mc(e,t,n,r,s){if(M.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function yN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function vN(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,u){return this[r].call(this,t,s,o,u)},configurable:!0})})}class mt{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,d){const p=Ji(f);if(!p)throw new Error("header name must be a non-empty string");const _=M.findKey(s,p);(!_||s[_]===void 0||d===!0||d===void 0&&s[_]!==!1)&&(s[_||f]=Jo(c))}const u=(c,f)=>M.forEach(c,(d,p)=>o(d,p,f));if(M.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(M.isString(t)&&(t=t.trim())&&!gN(t))u(_N(t),n);else if(M.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ji(t),t){const r=M.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return mN(s);if(M.isFunction(n))return n.call(this,s,r);if(M.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ji(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Mc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(u){if(u=Ji(u),u){const c=M.findKey(r,u);c&&(!n||Mc(r,r[c],c,n))&&(delete r[c],s=!0)}}return M.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Mc(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return M.forEach(this,(s,o)=>{const u=M.findKey(r,o);if(u){n[u]=Jo(s),delete n[o];return}const c=t?yN(o):String(o).trim();c!==o&&delete n[o],n[c]=Jo(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[G_]=this[G_]={accessors:{}}).accessors,s=this.prototype;function o(u){const c=Ji(u);r[c]||(vN(s,u),r[c]=!0)}return M.isArray(t)?t.forEach(o):o(t),this}}mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(mt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(mt);function Dc(e,t){const n=this||Os,r=t||n,s=mt.from(r.headers);let o=r.data;return M.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ry(e){return!!(e&&e.__CANCEL__)}function Ei(e,t,n){re.call(this,e??"canceled",re.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(Ei,re,{__CANCEL__:!0});function ky(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function bN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function SN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),p=r[o];u||(u=d),n[s]=f,r[s]=d;let _=o,v=0;for(;_!==s;)v+=n[_++],_=_%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-u<t)return;const w=p&&d-p;return w?Math.round(v*1e3/w):void 0}}function wN(e,t){let n=0,r=1e3/t,s,o;const u=(d,p=Date.now())=>{n=p,s=null,o&&(clearTimeout(o),o=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),_=p-n;_>=r?u(d,p):(s=d,o||(o=setTimeout(()=>{o=null,u(s)},r-_)))},()=>s&&u(s)]}const _a=(e,t,n=3)=>{let r=0;const s=SN(50,250);return wN(o=>{const u=o.loaded,c=o.lengthComputable?o.total:void 0,f=u-r,d=s(f),p=u<=c;r=u;const _={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:d||void 0,estimated:d&&c&&p?(c-u)/d:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(_)},n)},V_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Y_=e=>(...t)=>M.asap(()=>e(...t)),EN=_t.hasStandardBrowserEnv?function(){const t=_t.navigator&&/(msie|trident)/i.test(_t.navigator.userAgent),n=document.createElement("a");let r;function s(o){let u=o;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(u){const c=M.isString(u)?s(u):u;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),xN=_t.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const u=[e+"="+encodeURIComponent(t)];M.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),M.isString(r)&&u.push("path="+r),M.isString(s)&&u.push("domain="+s),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function IN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ay(e,t){return e&&!IN(t)?TN(e,t):t}const J_=e=>e instanceof mt?{...e}:e;function Ir(e,t){t=t||{};const n={};function r(d,p,_){return M.isPlainObject(d)&&M.isPlainObject(p)?M.merge.call({caseless:_},d,p):M.isPlainObject(p)?M.merge({},p):M.isArray(p)?p.slice():p}function s(d,p,_){if(M.isUndefined(p)){if(!M.isUndefined(d))return r(void 0,d,_)}else return r(d,p,_)}function o(d,p){if(!M.isUndefined(p))return r(void 0,p)}function u(d,p){if(M.isUndefined(p)){if(!M.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,_){if(_ in t)return r(d,p);if(_ in e)return r(void 0,d)}const f={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(d,p)=>s(J_(d),J_(p),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(p){const _=f[p]||s,v=_(e[p],t[p],p);M.isUndefined(v)&&_!==c||(n[p]=v)}),n}const My=e=>{const t=Ir({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:u,auth:c}=t;t.headers=u=mt.from(u),t.url=Ty(Ay(t.baseURL,t.url),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(M.isFormData(n)){if(_t.hasStandardBrowserEnv||_t.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[d,...p]=f?f.split(";").map(_=>_.trim()).filter(Boolean):[];u.setContentType([d||"multipart/form-data",...p].join("; "))}}if(_t.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(t)),r||r!==!1&&EN(t.url))){const d=s&&o&&xN.read(o);d&&u.set(s,d)}return t},CN=typeof XMLHttpRequest<"u",ON=CN&&function(e){return new Promise(function(n,r){const s=My(e);let o=s.data;const u=mt.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:d}=s,p,_,v,w,S;function C(){w&&w(),S&&S(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function O(){if(!E)return;const F=mt.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),U={data:!c||c==="text"||c==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:F,config:e,request:E};ky(function(R){n(R),C()},function(R){r(R),C()},U),E=null}"onloadend"in E?E.onloadend=O:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(O)},E.onabort=function(){E&&(r(new re("Request aborted",re.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new re("Network Error",re.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let K=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const U=s.transitional||Cy;s.timeoutErrorMessage&&(K=s.timeoutErrorMessage),r(new re(K,U.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,E)),E=null},o===void 0&&u.setContentType(null),"setRequestHeader"in E&&M.forEach(u.toJSON(),function(K,U){E.setRequestHeader(U,K)}),M.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),c&&c!=="json"&&(E.responseType=s.responseType),d&&([v,S]=_a(d,!0),E.addEventListener("progress",v)),f&&E.upload&&([_,w]=_a(f),E.upload.addEventListener("progress",_),E.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(p=F=>{E&&(r(!F||F.type?new Ei(null,e,E):F),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const D=bN(s.url);if(D&&_t.protocols.indexOf(D)===-1){r(new re("Unsupported protocol "+D+":",re.ERR_BAD_REQUEST,e));return}E.send(o||null)})},RN=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(d){if(!s){s=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof re?p:new Ei(p instanceof Error?p.message:p))}};let u=t&&setTimeout(()=>{u=null,o(new re(`timeout ${t} of ms exceeded`,re.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>M.asap(c),f}},kN=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},AN=async function*(e,t){for await(const n of MN(e))yield*kN(n,t)},MN=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},X_=(e,t,n,r)=>{const s=AN(e,t);let o=0,u,c=f=>{u||(u=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:d,value:p}=await s.next();if(d){c(),f.close();return}let _=p.byteLength;if(n){let v=o+=_;n(v)}f.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},za=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dy=za&&typeof ReadableStream=="function",DN=za&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ly=(e,...t)=>{try{return!!e(...t)}catch{return!1}},LN=Dy&&Ly(()=>{let e=!1;const t=new Request(_t.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Z_=64*1024,vl=Dy&&Ly(()=>M.isReadableStream(new Response("").body)),ma={stream:vl&&(e=>e.body)};za&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ma[t]&&(ma[t]=M.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new re(`Response type '${t}' is not supported`,re.ERR_NOT_SUPPORT,r)})})})(new Response);const NN=async e=>{if(e==null)return 0;if(M.isBlob(e))return e.size;if(M.isSpecCompliantForm(e))return(await new Request(_t.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(M.isArrayBufferView(e)||M.isArrayBuffer(e))return e.byteLength;if(M.isURLSearchParams(e)&&(e=e+""),M.isString(e))return(await DN(e)).byteLength},$N=async(e,t)=>{const n=M.toFiniteNumber(e.getContentLength());return n??NN(t)},PN=za&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:u,onDownloadProgress:c,onUploadProgress:f,responseType:d,headers:p,withCredentials:_="same-origin",fetchOptions:v}=My(e);d=d?(d+"").toLowerCase():"text";let w=RN([s,o&&o.toAbortSignal()],u),S;const C=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(f&&LN&&n!=="get"&&n!=="head"&&(E=await $N(p,r))!==0){let U=new Request(t,{method:"POST",body:r,duplex:"half"}),A;if(M.isFormData(r)&&(A=U.headers.get("content-type"))&&p.setContentType(A),U.body){const[R,W]=V_(E,_a(Y_(f)));r=X_(U.body,Z_,R,W)}}M.isString(_)||(_=_?"include":"omit");const O="credentials"in Request.prototype;S=new Request(t,{...v,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:O?_:void 0});let D=await fetch(S);const F=vl&&(d==="stream"||d==="response");if(vl&&(c||F&&C)){const U={};["status","statusText","headers"].forEach(V=>{U[V]=D[V]});const A=M.toFiniteNumber(D.headers.get("content-length")),[R,W]=c&&V_(A,_a(Y_(c),!0))||[];D=new Response(X_(D.body,Z_,R,()=>{W&&W(),C&&C()}),U)}d=d||"text";let K=await ma[M.findKey(ma,d)||"text"](D,e);return!F&&C&&C(),await new Promise((U,A)=>{ky(U,A,{data:K,headers:mt.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:S})})}catch(O){throw C&&C(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,e,S),{cause:O.cause||O}):re.from(O,O&&O.code,e,S)}}),bl={http:ZL,xhr:ON,fetch:PN};M.forEach(bl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Q_=e=>`- ${e}`,FN=e=>M.isFunction(e)||e===null||e===!1,Ny={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let u;if(r=n,!FN(n)&&(r=bl[(u=String(n)).toLowerCase()],r===void 0))throw new re(`Unknown adapter '${u}'`);if(r)break;s[u||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?o.length>1?`since :
`+o.map(Q_).join(`
`):" "+Q_(o[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:bl};function Lc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ei(null,e)}function em(e){return Lc(e),e.headers=mt.from(e.headers),e.data=Dc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ny.getAdapter(e.adapter||Os.adapter)(e).then(function(r){return Lc(e),r.data=Dc.call(e,e.transformResponse,r),r.headers=mt.from(r.headers),r},function(r){return Ry(r)||(Lc(e),r&&r.response&&(r.response.data=Dc.call(e,e.transformResponse,r.response),r.response.headers=mt.from(r.response.headers))),Promise.reject(r)})}const $y="1.7.7",If={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{If[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tm={};If.transitional=function(t,n,r){function s(o,u){return"[Axios v"+$y+"] Transitional option '"+o+"'"+u+(r?". "+r:"")}return(o,u,c)=>{if(t===!1)throw new re(s(u," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!tm[u]&&(tm[u]=!0,console.warn(s(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,u,c):!0}};function BN(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],u=t[o];if(u){const c=e[o],f=c===void 0||u(c,o,e);if(f!==!0)throw new re("option "+o+" must be "+f,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+o,re.ERR_BAD_OPTION)}}const Sl={assertOptions:BN,validators:If},Fn=Sl.validators;class mr{constructor(t){this.defaults=t,this.interceptors={request:new j_,response:new j_}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ir(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean)},!1),s!=null&&(M.isFunction(s)?n.paramsSerializer={serialize:s}:Sl.assertOptions(s,{encode:Fn.function,serialize:Fn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=o&&M.merge(o.common,o[n.method]);o&&M.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=mt.concat(u,o);const c=[];let f=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(f=f&&C.synchronous,c.unshift(C.fulfilled,C.rejected))});const d=[];this.interceptors.response.forEach(function(C){d.push(C.fulfilled,C.rejected)});let p,_=0,v;if(!f){const S=[em.bind(this),void 0];for(S.unshift.apply(S,c),S.push.apply(S,d),v=S.length,p=Promise.resolve(n);_<v;)p=p.then(S[_++],S[_++]);return p}v=c.length;let w=n;for(_=0;_<v;){const S=c[_++],C=c[_++];try{w=S(w)}catch(E){C.call(this,E);break}}try{p=em.call(this,w)}catch(S){return Promise.reject(S)}for(_=0,v=d.length;_<v;)p=p.then(d[_++],d[_++]);return p}getUri(t){t=Ir(this.defaults,t);const n=Ay(t.baseURL,t.url);return Ty(n,t.params,t.paramsSerializer)}}M.forEach(["delete","get","head","options"],function(t){mr.prototype[t]=function(n,r){return this.request(Ir(r||{},{method:t,url:n,data:(r||{}).data}))}});M.forEach(["post","put","patch"],function(t){function n(r){return function(o,u,c){return this.request(Ir(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:u}))}}mr.prototype[t]=n(),mr.prototype[t+"Form"]=n(!0)});class Tf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const u=new Promise(c=>{r.subscribe(c),o=c}).then(s);return u.cancel=function(){r.unsubscribe(o)},u},t(function(o,u,c){r.reason||(r.reason=new Ei(o,u,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Tf(function(s){t=s}),cancel:t}}}function UN(e){return function(n){return e.apply(null,n)}}function WN(e){return M.isObject(e)&&e.isAxiosError===!0}const wl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wl).forEach(([e,t])=>{wl[t]=e});function Py(e){const t=new mr(e),n=py(mr.prototype.request,t);return M.extend(n,mr.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Py(Ir(e,s))},n}const ze=Py(Os);ze.Axios=mr;ze.CanceledError=Ei;ze.CancelToken=Tf;ze.isCancel=Ry;ze.VERSION=$y;ze.toFormData=Ka;ze.AxiosError=re;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=UN;ze.isAxiosError=WN;ze.mergeConfig=Ir;ze.AxiosHeaders=mt;ze.formToJSON=e=>Oy(M.isHTMLForm(e)?new FormData(e):e);ze.getAdapter=Ny.getAdapter;ze.HttpStatusCode=wl;ze.default=ze;window._=dL;window.axios=ze;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";const HN={dsn:"https://f2fa7b1d8dd54657ac866fa790b2deb3@o467496.ingest.sentry.io/5547125",replaysSessionSampleRate:"0.1",replaysOnErrorSampleRate:"1.0",integrations:[VD({maskAllText:!1}),lL()]};bk(HN);var El=!1,xl=!1,gr=[],Il=-1;function KN(e){zN(e)}function zN(e){gr.includes(e)||gr.push(e),jN()}function qN(e){let t=gr.indexOf(e);t!==-1&&t>Il&&gr.splice(t,1)}function jN(){!xl&&!El&&(El=!0,queueMicrotask(GN))}function GN(){El=!1,xl=!0;for(let e=0;e<gr.length;e++)gr[e](),Il=e;gr.length=0,Il=-1,xl=!1}var xi,Ar,Ii,Fy,Tl=!0;function VN(e){Tl=!1,e(),Tl=!0}function YN(e){xi=e.reactive,Ii=e.release,Ar=t=>e.effect(t,{scheduler:n=>{Tl?KN(n):n()}}),Fy=e.raw}function nm(e){Ar=e}function JN(e){let t=()=>{};return[r=>{let s=Ar(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(s),t=()=>{s!==void 0&&(e._x_effects.delete(s),Ii(s))},s},()=>{t()}]}function By(e,t){let n=!0,r,s=Ar(()=>{let o=e();JSON.stringify(o),n?r=o:queueMicrotask(()=>{t(o,r),r=o}),n=!1});return()=>Ii(s)}var Uy=[],Wy=[],Hy=[];function XN(e){Hy.push(e)}function Cf(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Wy.push(t))}function Ky(e){Uy.push(e)}function zy(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function qy(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(s=>s()),delete e._x_attributeCleanups[n])})}function ZN(e){var t,n;for((t=e._x_effects)==null||t.forEach(qN);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var Of=new MutationObserver(Mf),Rf=!1;function kf(){Of.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Rf=!0}function jy(){QN(),Of.disconnect(),Rf=!1}var Xi=[];function QN(){let e=Of.takeRecords();Xi.push(()=>e.length>0&&Mf(e));let t=Xi.length;queueMicrotask(()=>{if(Xi.length===t)for(;Xi.length>0;)Xi.shift()()})}function Fe(e){if(!Rf)return e();jy();let t=e();return kf(),t}var Af=!1,ga=[];function e$(){Af=!0}function t$(){Af=!1,Mf(ga),ga=[]}function Mf(e){if(Af){ga=ga.concat(e);return}let t=new Set,n=new Set,r=new Map,s=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].addedNodes.forEach(u=>u.nodeType===1&&t.add(u)),e[o].removedNodes.forEach(u=>u.nodeType===1&&n.add(u))),e[o].type==="attributes")){let u=e[o].target,c=e[o].attributeName,f=e[o].oldValue,d=()=>{r.has(u)||r.set(u,[]),r.get(u).push({name:c,value:u.getAttribute(c)})},p=()=>{s.has(u)||s.set(u,[]),s.get(u).push(c)};u.hasAttribute(c)&&f===null?d():u.hasAttribute(c)?(p(),d()):p()}s.forEach((o,u)=>{qy(u,o)}),r.forEach((o,u)=>{Uy.forEach(c=>c(u,o))});for(let o of n)t.has(o)||Wy.forEach(u=>u(o));t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,Hy.forEach(u=>u(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,s=null}function Gy(e){return ks(gi(e))}function Rs(e,t,n){return e._x_dataStack=[t,...gi(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function gi(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?gi(e.host):e.parentNode?gi(e.parentNode):[]}function ks(e){return new Proxy({objects:e},n$)}var n$={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?r$:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){const s=e.find(u=>Object.prototype.hasOwnProperty.call(u,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(s,t);return o!=null&&o.set&&(o!=null&&o.get)?o.set.call(r,n)||!0:Reflect.set(s,t,n)}};function r$(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function Vy(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:u,enumerable:c}])=>{if(c===!1||u===void 0||typeof u=="object"&&u!==null&&u.__v_skip)return;let f=s===""?o:`${s}.${o}`;typeof u=="object"&&u!==null&&u._x_interceptor?r[o]=u.initialize(e,f,o):t(u)&&u!==r&&!(u instanceof Element)&&n(u,f)})};return n(e)}function Yy(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,s,o){return e(this.initialValue,()=>i$(r,s),u=>Cl(r,s,u),s,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let s=n.initialize.bind(n);n.initialize=(o,u,c)=>{let f=r.initialize(o,u,c);return n.initialValue=f,s(o,u,c)}}else n.initialValue=r;return n}}function i$(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Cl(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Cl(e[t[0]],t.slice(1),n)}}var Jy={};function Xt(e,t){Jy[e]=t}function Ol(e,t){let n=s$(t);return Object.entries(Jy).forEach(([r,s])=>{Object.defineProperty(e,`$${r}`,{get(){return s(t,n)},enumerable:!1})}),e}function s$(e){let[t,n]=nv(e),r={interceptor:Yy,...t};return Cf(e,n),r}function o$(e,t,n,...r){try{return n(...r)}catch(s){ms(s,e,t)}}function ms(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}

${n?'Expression: "'+n+`"

`:""}`,t),setTimeout(()=>{throw e},0)}var Xo=!0;function Xy(e){let t=Xo;Xo=!1;let n=e();return Xo=t,n}function yr(e,t,n={}){let r;return at(e,t)(s=>r=s,n),r}function at(...e){return Zy(...e)}var Zy=Qy;function a$(e){Zy=e}function Qy(e,t){let n={};Ol(n,e);let r=[n,...gi(e)],s=typeof t=="function"?u$(r,t):l$(r,t,e);return o$.bind(null,e,t,s)}function u$(e,t){return(n=()=>{},{scope:r={},params:s=[]}={})=>{let o=t.apply(ks([r,...e]),s);ya(n,o)}}var Nc={};function c$(e,t){if(Nc[e])return Nc[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let u=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(u,"name",{value:`[Alpine] ${e}`}),u}catch(u){return ms(u,t,e),Promise.resolve()}})();return Nc[e]=o,o}function l$(e,t,n){let r=c$(t,n);return(s=()=>{},{scope:o={},params:u=[]}={})=>{r.result=void 0,r.finished=!1;let c=ks([o,...e]);if(typeof r=="function"){let f=r(r,c).catch(d=>ms(d,n,t));r.finished?(ya(s,r.result,c,u,n),r.result=void 0):f.then(d=>{ya(s,d,c,u,n)}).catch(d=>ms(d,n,t)).finally(()=>r.result=void 0)}}}function ya(e,t,n,r,s){if(Xo&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(u=>ya(e,u,n,r)).catch(u=>ms(u,s,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var Df="x-";function Ti(e=""){return Df+e}function f$(e){Df=e}var va={};function qe(e,t){return va[e]=t,{before(n){if(!va[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const r=hr.indexOf(n);hr.splice(r>=0?r:hr.indexOf("DEFAULT"),0,e)}}}function d$(e){return Object.keys(va).includes(e)}function Lf(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([c,f])=>({name:c,value:f})),u=ev(o);o=o.map(c=>u.find(f=>f.name===c.name)?{name:`x-bind:${c.name}`,value:`"${c.value}"`}:c),t=t.concat(o)}let r={};return t.map(sv((o,u)=>r[o]=u)).filter(av).map(_$(r,n)).sort(m$).map(o=>p$(e,o))}function ev(e){return Array.from(e).map(sv()).filter(t=>!av(t))}var Rl=!1,ts=new Map,tv=Symbol();function h$(e){Rl=!0;let t=Symbol();tv=t,ts.set(t,[]);let n=()=>{for(;ts.get(t).length;)ts.get(t).shift()();ts.delete(t)},r=()=>{Rl=!1,n()};e(n),r()}function nv(e){let t=[],n=c=>t.push(c),[r,s]=JN(e);return t.push(s),[{Alpine:Ms,effect:r,cleanup:n,evaluateLater:at.bind(at,e),evaluate:yr.bind(yr,e)},()=>t.forEach(c=>c())]}function p$(e,t){let n=()=>{},r=va[t.type]||n,[s,o]=nv(e);zy(e,t.original,o);let u=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,s),r=r.bind(r,e,t,s),Rl?ts.get(tv).push(r):r())};return u.runCleanups=o,u}var rv=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),iv=e=>e;function sv(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:s}=ov.reduce((o,u)=>u(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:s}}}var ov=[];function Nf(e){ov.push(e)}function av({name:e}){return uv().test(e)}var uv=()=>new RegExp(`^${Df}([^:^.]+)\\b`);function _$(e,t){return({name:n,value:r})=>{let s=n.match(uv()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),u=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],c=t||e[n]||n;return{type:s?s[1]:null,value:o?o[1]:null,modifiers:u.map(f=>f.replace(".","")),expression:r,original:c}}}var kl="DEFAULT",hr=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",kl,"teleport"];function m$(e,t){let n=hr.indexOf(e.type)===-1?kl:e.type,r=hr.indexOf(t.type)===-1?kl:t.type;return hr.indexOf(n)-hr.indexOf(r)}function os(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Tr(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(s=>Tr(s,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Tr(r,t),r=r.nextElementSibling}function Ut(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var rm=!1;function g$(){rm&&Ut("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),rm=!0,document.body||Ut("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),os(document,"alpine:init"),os(document,"alpine:initializing"),kf(),XN(t=>Tn(t,Tr)),Cf(t=>Ci(t)),Ky((t,n)=>{Lf(t,n).forEach(r=>r())});let e=t=>!qa(t.parentElement,!0);Array.from(document.querySelectorAll(fv().join(","))).filter(e).forEach(t=>{Tn(t)}),os(document,"alpine:initialized"),setTimeout(()=>{b$()})}var $f=[],cv=[];function lv(){return $f.map(e=>e())}function fv(){return $f.concat(cv).map(e=>e())}function dv(e){$f.push(e)}function hv(e){cv.push(e)}function qa(e,t=!1){return As(e,n=>{if((t?fv():lv()).some(s=>n.matches(s)))return!0})}function As(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return As(e.parentElement,t)}}function y$(e){return lv().some(t=>e.matches(t))}var pv=[];function v$(e){pv.push(e)}function Tn(e,t=Tr,n=()=>{}){h$(()=>{t(e,(r,s)=>{n(r,s),pv.forEach(o=>o(r,s)),Lf(r,r.attributes).forEach(o=>o()),r._x_ignore&&s()})})}function Ci(e,t=Tr){t(e,n=>{ZN(n),qy(n)})}function b$(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,r])=>{d$(n)||r.some(s=>{if(document.querySelector(s))return Ut(`found "${s}", but missing ${t} plugin`),!0})})}var Al=[],Pf=!1;function Ff(e=()=>{}){return queueMicrotask(()=>{Pf||setTimeout(()=>{Ml()})}),new Promise(t=>{Al.push(()=>{e(),t()})})}function Ml(){for(Pf=!1;Al.length;)Al.shift()()}function S$(){Pf=!0}function Bf(e,t){return Array.isArray(t)?im(e,t.join(" ")):typeof t=="object"&&t!==null?w$(e,t):typeof t=="function"?Bf(e,t()):im(e,t)}function im(e,t){let n=s=>s.split(" ").filter(o=>!e.classList.contains(o)).filter(Boolean),r=s=>(e.classList.add(...s),()=>{e.classList.remove(...s)});return t=t===!0?t="":t||"",r(n(t))}function w$(e,t){let n=c=>c.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([c,f])=>f?n(c):!1).filter(Boolean),s=Object.entries(t).flatMap(([c,f])=>f?!1:n(c)).filter(Boolean),o=[],u=[];return s.forEach(c=>{e.classList.contains(c)&&(e.classList.remove(c),u.push(c))}),r.forEach(c=>{e.classList.contains(c)||(e.classList.add(c),o.push(c))}),()=>{u.forEach(c=>e.classList.add(c)),o.forEach(c=>e.classList.remove(c))}}function ja(e,t){return typeof t=="object"&&t!==null?E$(e,t):x$(e,t)}function E$(e,t){let n={};return Object.entries(t).forEach(([r,s])=>{n[r]=e.style[r],r.startsWith("--")||(r=I$(r)),e.style.setProperty(r,s)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{ja(e,n)}}function x$(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function I$(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dl(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}qe("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:s})=>{typeof r=="function"&&(r=s(r)),r!==!1&&(!r||typeof r=="boolean"?C$(e,n,t):T$(e,r,t))});function T$(e,t,n){_v(e,Bf,""),{enter:s=>{e._x_transition.enter.during=s},"enter-start":s=>{e._x_transition.enter.start=s},"enter-end":s=>{e._x_transition.enter.end=s},leave:s=>{e._x_transition.leave.during=s},"leave-start":s=>{e._x_transition.leave.start=s},"leave-end":s=>{e._x_transition.leave.end=s}}[n](t)}function C$(e,t,n){_v(e,ja);let r=!t.includes("in")&&!t.includes("out")&&!n,s=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((O,D)=>D<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((O,D)=>D>t.indexOf("out")));let u=!t.includes("opacity")&&!t.includes("scale"),c=u||t.includes("opacity"),f=u||t.includes("scale"),d=c?0:1,p=f?Zi(t,"scale",95)/100:1,_=Zi(t,"delay",0)/1e3,v=Zi(t,"origin","center"),w="opacity, transform",S=Zi(t,"duration",150)/1e3,C=Zi(t,"duration",75)/1e3,E="cubic-bezier(0.4, 0.0, 0.2, 1)";s&&(e._x_transition.enter.during={transformOrigin:v,transitionDelay:`${_}s`,transitionProperty:w,transitionDuration:`${S}s`,transitionTimingFunction:E},e._x_transition.enter.start={opacity:d,transform:`scale(${p})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:v,transitionDelay:`${_}s`,transitionProperty:w,transitionDuration:`${C}s`,transitionTimingFunction:E},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:d,transform:`scale(${p})`})}function _v(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},s=()=>{}){Ll(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,s)},out(r=()=>{},s=()=>{}){Ll(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,s)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){const s=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>s(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o();return}e._x_hidePromise=e._x_transition?new Promise((u,c)=>{e._x_transition.out(()=>{},()=>u(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>c({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let u=mv(e);u?(u._x_hideChildren||(u._x_hideChildren=[]),u._x_hideChildren.push(e)):s(()=>{let c=f=>{let d=Promise.all([f._x_hidePromise,...(f._x_hideChildren||[]).map(c)]).then(([p])=>p==null?void 0:p());return delete f._x_hidePromise,delete f._x_hideChildren,d};c(e).catch(f=>{if(!f.isFromCancelledTransition)throw f})})})};function mv(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:mv(t)}function Ll(e,t,{during:n,start:r,end:s}={},o=()=>{},u=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(s).length===0){o(),u();return}let c,f,d;O$(e,{start(){c=t(e,r)},during(){f=t(e,n)},before:o,end(){c(),d=t(e,s)},after:u,cleanup(){f(),d()}})}function O$(e,t){let n,r,s,o=Dl(()=>{Fe(()=>{n=!0,r||t.before(),s||(t.end(),Ml()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(u){this.beforeCancels.push(u)},cancel:Dl(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},Fe(()=>{t.start(),t.during()}),S$(),requestAnimationFrame(()=>{if(n)return;let u=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,c=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;u===0&&(u=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),Fe(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(Fe(()=>{t.end()}),Ml(),setTimeout(e._x_transitioning.finish,u+c),s=!0)})})}function Zi(e,t,n){if(e.indexOf(t)===-1)return n;const r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"||t==="delay"){let s=r.match(/([0-9]+)ms/);if(s)return s[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}var Gn=!1;function Jn(e,t=()=>{}){return(...n)=>Gn?t(...n):e(...n)}function R$(e){return(...t)=>Gn&&e(...t)}var gv=[];function Ga(e){gv.push(e)}function k$(e,t){gv.forEach(n=>n(e,t)),Gn=!0,yv(()=>{Tn(t,(n,r)=>{r(n,()=>{})})}),Gn=!1}var Nl=!1;function A$(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Gn=!0,Nl=!0,yv(()=>{M$(t)}),Gn=!1,Nl=!1}function M$(e){let t=!1;Tn(e,(r,s)=>{Tr(r,(o,u)=>{if(t&&y$(o))return u();t=!0,s(o,u)})})}function yv(e){let t=Ar;nm((n,r)=>{let s=t(n);return Ii(s),()=>{}}),e(),nm(t)}function vv(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=xi({})),e._x_bindings[t]=n,t=r.includes("camel")?U$(t):t,t){case"value":D$(e,n);break;case"style":N$(e,n);break;case"class":L$(e,n);break;case"selected":case"checked":$$(e,t,n);break;default:bv(e,t,n);break}}function D$(e,t){if(Ev(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Zo(e.value)===t:e.checked=sm(e.value,t));else if(Uf(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>sm(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")B$(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function L$(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Bf(e,t)}function N$(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=ja(e,t)}function $$(e,t,n){bv(e,t,n),F$(e,t,n)}function bv(e,t,n){[null,void 0,!1].includes(n)&&H$(t)?e.removeAttribute(t):(Sv(t)&&(n=t),P$(e,t,n))}function P$(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function F$(e,t,n){e[t]!==n&&(e[t]=n)}function B$(e,t){const n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function U$(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function sm(e,t){return e==t}function Zo(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var W$=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Sv(e){return W$.has(e)}function H$(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function K$(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:wv(e,t,n)}function z$(e,t,n,r=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let s=e._x_inlineBindings[t];return s.extract=r,Xy(()=>yr(e,s.expression))}return wv(e,t,n)}function wv(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:Sv(t)?!![t,"true"].includes(r):r}function Uf(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Ev(e){return e.type==="radio"||e.localName==="ui-radio"}function xv(e,t){var n;return function(){var r=this,s=arguments,o=function(){n=null,e.apply(r,s)};clearTimeout(n),n=setTimeout(o,t)}}function Iv(e,t){let n;return function(){let r=this,s=arguments;n||(e.apply(r,s),n=!0,setTimeout(()=>n=!1,t))}}function Tv({get:e,set:t},{get:n,set:r}){let s=!0,o,u=Ar(()=>{let c=e(),f=n();if(s)r($c(c)),s=!1;else{let d=JSON.stringify(c),p=JSON.stringify(f);d!==o?r($c(c)):d!==p&&t($c(f))}o=JSON.stringify(e()),JSON.stringify(n())});return()=>{Ii(u)}}function $c(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function q$(e){(Array.isArray(e)?e:[e]).forEach(n=>n(Ms))}var lr={},om=!1;function j$(e,t){if(om||(lr=xi(lr),om=!0),t===void 0)return lr[e];lr[e]=t,Vy(lr[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&lr[e].init()}function G$(){return lr}var Cv={};function V$(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?Ov(e,n()):(Cv[e]=n,()=>{})}function Y$(e){return Object.entries(Cv).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function Ov(e,t,n){let r=[];for(;r.length;)r.pop()();let s=Object.entries(t).map(([u,c])=>({name:u,value:c})),o=ev(s);return s=s.map(u=>o.find(c=>c.name===u.name)?{name:`x-bind:${u.name}`,value:`"${u.value}"`}:u),Lf(e,s,n).map(u=>{r.push(u.runCleanups),u()}),()=>{for(;r.length;)r.pop()()}}var Rv={};function J$(e,t){Rv[e]=t}function X$(e,t){return Object.entries(Rv).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...s)=>r.bind(t)(...s)},enumerable:!1})}),e}var Z$={get reactive(){return xi},get release(){return Ii},get effect(){return Ar},get raw(){return Fy},version:"3.14.3",flushAndStopDeferringMutations:t$,dontAutoEvaluateFunctions:Xy,disableEffectScheduling:VN,startObservingMutations:kf,stopObservingMutations:jy,setReactivityEngine:YN,onAttributeRemoved:zy,onAttributesAdded:Ky,closestDataStack:gi,skipDuringClone:Jn,onlyDuringClone:R$,addRootSelector:dv,addInitSelector:hv,interceptClone:Ga,addScopeToNode:Rs,deferMutations:e$,mapAttributes:Nf,evaluateLater:at,interceptInit:v$,setEvaluator:a$,mergeProxies:ks,extractProp:z$,findClosest:As,onElRemoved:Cf,closestRoot:qa,destroyTree:Ci,interceptor:Yy,transition:Ll,setStyles:ja,mutateDom:Fe,directive:qe,entangle:Tv,throttle:Iv,debounce:xv,evaluate:yr,initTree:Tn,nextTick:Ff,prefixed:Ti,prefix:f$,plugin:q$,magic:Xt,store:j$,start:g$,clone:A$,cloneNode:k$,bound:K$,$data:Gy,watch:By,walk:Tr,data:J$,bind:V$},Ms=Z$;function Q$(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return s=>!!n[s]}var eP=Object.freeze({}),tP=Object.prototype.hasOwnProperty,Va=(e,t)=>tP.call(e,t),vr=Array.isArray,as=e=>kv(e)==="[object Map]",nP=e=>typeof e=="string",Wf=e=>typeof e=="symbol",Ya=e=>e!==null&&typeof e=="object",rP=Object.prototype.toString,kv=e=>rP.call(e),Av=e=>kv(e).slice(8,-1),Hf=e=>nP(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,iP=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sP=iP(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mv=(e,t)=>e!==t&&(e===e||t===t),$l=new WeakMap,Qi=[],rn,br=Symbol("iterate"),Pl=Symbol("Map key iterate");function oP(e){return e&&e._isEffect===!0}function aP(e,t=eP){oP(e)&&(e=e.raw);const n=lP(e,t);return t.lazy||n(),n}function uP(e){e.active&&(Dv(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var cP=0;function lP(e,t){const n=function(){if(!n.active)return e();if(!Qi.includes(n)){Dv(n);try{return dP(),Qi.push(n),rn=n,e()}finally{Qi.pop(),Lv(),rn=Qi[Qi.length-1]}}};return n.id=cP++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Dv(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var yi=!0,Kf=[];function fP(){Kf.push(yi),yi=!1}function dP(){Kf.push(yi),yi=!0}function Lv(){const e=Kf.pop();yi=e===void 0?!0:e}function Vt(e,t,n){if(!yi||rn===void 0)return;let r=$l.get(e);r||$l.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=new Set),s.has(rn)||(s.add(rn),rn.deps.push(s),rn.options.onTrack&&rn.options.onTrack({effect:rn,target:e,type:t,key:n}))}function Vn(e,t,n,r,s,o){const u=$l.get(e);if(!u)return;const c=new Set,f=p=>{p&&p.forEach(_=>{(_!==rn||_.allowRecurse)&&c.add(_)})};if(t==="clear")u.forEach(f);else if(n==="length"&&vr(e))u.forEach((p,_)=>{(_==="length"||_>=r)&&f(p)});else switch(n!==void 0&&f(u.get(n)),t){case"add":vr(e)?Hf(n)&&f(u.get("length")):(f(u.get(br)),as(e)&&f(u.get(Pl)));break;case"delete":vr(e)||(f(u.get(br)),as(e)&&f(u.get(Pl)));break;case"set":as(e)&&f(u.get(br));break}const d=p=>{p.options.onTrigger&&p.options.onTrigger({effect:p,target:e,key:n,type:t,newValue:r,oldValue:s,oldTarget:o}),p.options.scheduler?p.options.scheduler(p):p()};c.forEach(d)}var hP=Q$("__proto__,__v_isRef,__isVue"),Nv=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Wf)),pP=$v(),_P=$v(!0),am=mP();function mP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=De(this);for(let o=0,u=this.length;o<u;o++)Vt(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(De)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){fP();const r=De(this)[t].apply(this,n);return Lv(),r}}),e}function $v(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_raw"&&o===(e?t?kP:Uv:t?RP:Bv).get(r))return r;const u=vr(r);if(!e&&u&&Va(am,s))return Reflect.get(am,s,o);const c=Reflect.get(r,s,o);return(Wf(s)?Nv.has(s):hP(s))||(e||Vt(r,"get",s),t)?c:Fl(c)?!u||!Hf(s)?c.value:c:Ya(c)?e?Wv(c):Gf(c):c}}var gP=yP();function yP(e=!1){return function(n,r,s,o){let u=n[r];if(!e&&(s=De(s),u=De(u),!vr(n)&&Fl(u)&&!Fl(s)))return u.value=s,!0;const c=vr(n)&&Hf(r)?Number(r)<n.length:Va(n,r),f=Reflect.set(n,r,s,o);return n===De(o)&&(c?Mv(s,u)&&Vn(n,"set",r,s,u):Vn(n,"add",r,s)),f}}function vP(e,t){const n=Va(e,t),r=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&Vn(e,"delete",t,void 0,r),s}function bP(e,t){const n=Reflect.has(e,t);return(!Wf(t)||!Nv.has(t))&&Vt(e,"has",t),n}function SP(e){return Vt(e,"iterate",vr(e)?"length":br),Reflect.ownKeys(e)}var wP={get:pP,set:gP,deleteProperty:vP,has:bP,ownKeys:SP},EP={get:_P,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},zf=e=>Ya(e)?Gf(e):e,qf=e=>Ya(e)?Wv(e):e,jf=e=>e,Ja=e=>Reflect.getPrototypeOf(e);function $o(e,t,n=!1,r=!1){e=e.__v_raw;const s=De(e),o=De(t);t!==o&&!n&&Vt(s,"get",t),!n&&Vt(s,"get",o);const{has:u}=Ja(s),c=r?jf:n?qf:zf;if(u.call(s,t))return c(e.get(t));if(u.call(s,o))return c(e.get(o));e!==s&&e.get(t)}function Po(e,t=!1){const n=this.__v_raw,r=De(n),s=De(e);return e!==s&&!t&&Vt(r,"has",e),!t&&Vt(r,"has",s),e===s?n.has(e):n.has(e)||n.has(s)}function Fo(e,t=!1){return e=e.__v_raw,!t&&Vt(De(e),"iterate",br),Reflect.get(e,"size",e)}function um(e){e=De(e);const t=De(this);return Ja(t).has.call(t,e)||(t.add(e),Vn(t,"add",e,e)),this}function cm(e,t){t=De(t);const n=De(this),{has:r,get:s}=Ja(n);let o=r.call(n,e);o?Fv(n,r,e):(e=De(e),o=r.call(n,e));const u=s.call(n,e);return n.set(e,t),o?Mv(t,u)&&Vn(n,"set",e,t,u):Vn(n,"add",e,t),this}function lm(e){const t=De(this),{has:n,get:r}=Ja(t);let s=n.call(t,e);s?Fv(t,n,e):(e=De(e),s=n.call(t,e));const o=r?r.call(t,e):void 0,u=t.delete(e);return s&&Vn(t,"delete",e,void 0,o),u}function fm(){const e=De(this),t=e.size!==0,n=as(e)?new Map(e):new Set(e),r=e.clear();return t&&Vn(e,"clear",void 0,void 0,n),r}function Bo(e,t){return function(r,s){const o=this,u=o.__v_raw,c=De(u),f=t?jf:e?qf:zf;return!e&&Vt(c,"iterate",br),u.forEach((d,p)=>r.call(s,f(d),f(p),o))}}function Uo(e,t,n){return function(...r){const s=this.__v_raw,o=De(s),u=as(o),c=e==="entries"||e===Symbol.iterator&&u,f=e==="keys"&&u,d=s[e](...r),p=n?jf:t?qf:zf;return!t&&Vt(o,"iterate",f?Pl:br),{next(){const{value:_,done:v}=d.next();return v?{value:_,done:v}:{value:c?[p(_[0]),p(_[1])]:p(_),done:v}},[Symbol.iterator](){return this}}}}function Bn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${sP(e)} operation ${n}failed: target is readonly.`,De(this))}return e==="delete"?!1:this}}function xP(){const e={get(o){return $o(this,o)},get size(){return Fo(this)},has:Po,add:um,set:cm,delete:lm,clear:fm,forEach:Bo(!1,!1)},t={get(o){return $o(this,o,!1,!0)},get size(){return Fo(this)},has:Po,add:um,set:cm,delete:lm,clear:fm,forEach:Bo(!1,!0)},n={get(o){return $o(this,o,!0)},get size(){return Fo(this,!0)},has(o){return Po.call(this,o,!0)},add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear"),forEach:Bo(!0,!1)},r={get(o){return $o(this,o,!0,!0)},get size(){return Fo(this,!0)},has(o){return Po.call(this,o,!0)},add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear"),forEach:Bo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Uo(o,!1,!1),n[o]=Uo(o,!0,!1),t[o]=Uo(o,!1,!0),r[o]=Uo(o,!0,!0)}),[e,n,t,r]}var[IP,TP,WB,HB]=xP();function Pv(e,t){const n=e?TP:IP;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Va(n,s)&&s in r?n:r,s,o)}var CP={get:Pv(!1)},OP={get:Pv(!0)};function Fv(e,t,n){const r=De(n);if(r!==n&&t.call(e,r)){const s=Av(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Bv=new WeakMap,RP=new WeakMap,Uv=new WeakMap,kP=new WeakMap;function AP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function MP(e){return e.__v_skip||!Object.isExtensible(e)?0:AP(Av(e))}function Gf(e){return e&&e.__v_isReadonly?e:Hv(e,!1,wP,CP,Bv)}function Wv(e){return Hv(e,!0,EP,OP,Uv)}function Hv(e,t,n,r,s){if(!Ya(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const u=MP(e);if(u===0)return e;const c=new Proxy(e,u===2?r:n);return s.set(e,c),c}function De(e){return e&&De(e.__v_raw)||e}function Fl(e){return!!(e&&e.__v_isRef===!0)}Xt("nextTick",()=>Ff);Xt("dispatch",e=>os.bind(os,e));Xt("watch",(e,{evaluateLater:t,cleanup:n})=>(r,s)=>{let o=t(r),c=By(()=>{let f;return o(d=>f=d),f},s);n(c)});Xt("store",G$);Xt("data",e=>Gy(e));Xt("root",e=>qa(e));Xt("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=ks(DP(e))),e._x_refs_proxy));function DP(e){let t=[];return As(e,n=>{n._x_refs&&t.push(n._x_refs)}),t}var Pc={};function Kv(e){return Pc[e]||(Pc[e]=0),++Pc[e]}function LP(e,t){return As(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function NP(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Kv(t))}Xt("id",(e,{cleanup:t})=>(n,r=null)=>{let s=`${n}${r?`-${r}`:""}`;return $P(e,s,t,()=>{let o=LP(e,n),u=o?o._x_ids[n]:Kv(n);return r?`${n}-${u}-${r}`:`${n}-${u}`})});Ga((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function $P(e,t,n,r){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let s=r();return e._x_id[t]=s,n(()=>{delete e._x_id[t]}),s}Xt("el",e=>e);zv("Focus","focus","focus");zv("Persist","persist","persist");function zv(e,t,n){Xt(t,r=>Ut(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}qe("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:s})=>{let o=r(t),u=()=>{let p;return o(_=>p=_),p},c=r(`${t} = __placeholder`),f=p=>c(()=>{},{scope:{__placeholder:p}}),d=u();f(d),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let p=e._x_model.get,_=e._x_model.set,v=Tv({get(){return p()},set(w){_(w)}},{get(){return u()},set(w){f(w)}});s(v)})});qe("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&Ut("x-teleport can only be used on a <template> tag",e);let s=dm(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(c=>{o.addEventListener(c,f=>{f.stopPropagation(),e.dispatchEvent(new f.constructor(f.type,f))})}),Rs(o,{},e);let u=(c,f,d)=>{d.includes("prepend")?f.parentNode.insertBefore(c,f):d.includes("append")?f.parentNode.insertBefore(c,f.nextSibling):f.appendChild(c)};Fe(()=>{u(o,s,t),Jn(()=>{Tn(o),o._x_ignore=!0})()}),e._x_teleportPutBack=()=>{let c=dm(n);Fe(()=>{u(e._x_teleport,c,t)})},r(()=>Fe(()=>{o.remove(),Ci(o)}))});var PP=document.createElement("div");function dm(e){let t=Jn(()=>document.querySelector(e),()=>PP)();return t||Ut(`Cannot find x-teleport element for selector: "${e}"`),t}var qv=()=>{};qv.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};qe("ignore",qv);qe("effect",Jn((e,{expression:t},{effect:n})=>{n(at(e,t))}));function Bl(e,t,n,r){let s=e,o=f=>r(f),u={},c=(f,d)=>p=>d(f,p);if(n.includes("dot")&&(t=FP(t)),n.includes("camel")&&(t=BP(t)),n.includes("passive")&&(u.passive=!0),n.includes("capture")&&(u.capture=!0),n.includes("window")&&(s=window),n.includes("document")&&(s=document),n.includes("debounce")){let f=n[n.indexOf("debounce")+1]||"invalid-wait",d=ba(f.split("ms")[0])?Number(f.split("ms")[0]):250;o=xv(o,d)}if(n.includes("throttle")){let f=n[n.indexOf("throttle")+1]||"invalid-wait",d=ba(f.split("ms")[0])?Number(f.split("ms")[0]):250;o=Iv(o,d)}return n.includes("prevent")&&(o=c(o,(f,d)=>{d.preventDefault(),f(d)})),n.includes("stop")&&(o=c(o,(f,d)=>{d.stopPropagation(),f(d)})),n.includes("once")&&(o=c(o,(f,d)=>{f(d),s.removeEventListener(t,o,u)})),(n.includes("away")||n.includes("outside"))&&(s=document,o=c(o,(f,d)=>{e.contains(d.target)||d.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&f(d))})),n.includes("self")&&(o=c(o,(f,d)=>{d.target===e&&f(d)})),(WP(t)||jv(t))&&(o=c(o,(f,d)=>{HP(d,n)||f(d)})),s.addEventListener(t,o,u),()=>{s.removeEventListener(t,o,u)}}function FP(e){return e.replace(/-/g,".")}function BP(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function ba(e){return!Array.isArray(e)&&!isNaN(e)}function UP(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function WP(e){return["keydown","keyup"].includes(e)}function jv(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function HP(e,t){let n=t.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,ba((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,ba((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&hm(e.key).includes(n[0]))return!1;const s=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!s.includes(o)),!(s.length>0&&s.filter(u=>((u==="cmd"||u==="super")&&(u="meta"),e[`${u}Key`])).length===s.length&&(jv(e.type)||hm(e.key).includes(n[0])))}function hm(e){if(!e)return[];e=UP(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}qe("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:s})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let u=at(o,n),c;typeof n=="string"?c=at(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?c=at(o,`${n()} = __placeholder`):c=()=>{};let f=()=>{let v;return u(w=>v=w),pm(v)?v.get():v},d=v=>{let w;u(S=>w=S),pm(w)?w.set(v):c(()=>{},{scope:{__placeholder:v}})};typeof n=="string"&&e.type==="radio"&&Fe(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});var p=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let _=Gn?()=>{}:Bl(e,p,t,v=>{d(Fc(e,t,v,f()))});if(t.includes("fill")&&([void 0,null,""].includes(f())||Uf(e)&&Array.isArray(f())||e.tagName.toLowerCase()==="select"&&e.multiple)&&d(Fc(e,t,{target:e},f())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=_,s(()=>e._x_removeModelListeners.default()),e.form){let v=Bl(e.form,"reset",[],w=>{Ff(()=>e._x_model&&e._x_model.set(Fc(e,t,{target:e},f())))});s(()=>v())}e._x_model={get(){return f()},set(v){d(v)}},e._x_forceModelUpdate=v=>{v===void 0&&typeof n=="string"&&n.match(/\./)&&(v=""),window.fromModel=!0,Fe(()=>vv(e,"value",v)),delete window.fromModel},r(()=>{let v=f();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(v)})});function Fc(e,t,n,r){return Fe(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(Uf(e))if(Array.isArray(r)){let s=null;return t.includes("number")?s=Bc(n.target.value):t.includes("boolean")?s=Zo(n.target.value):s=n.target.value,n.target.checked?r.includes(s)?r:r.concat([s]):r.filter(o=>!KP(o,s))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(s=>{let o=s.value||s.text;return Bc(o)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(s=>{let o=s.value||s.text;return Zo(o)}):Array.from(n.target.selectedOptions).map(s=>s.value||s.text);{let s;return Ev(e)?n.target.checked?s=n.target.value:s=r:s=n.target.value,t.includes("number")?Bc(s):t.includes("boolean")?Zo(s):t.includes("trim")?s.trim():s}}})}function Bc(e){let t=e?parseFloat(e):null;return zP(t)?t:e}function KP(e,t){return e==t}function zP(e){return!Array.isArray(e)&&!isNaN(e)}function pm(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}qe("cloak",e=>queueMicrotask(()=>Fe(()=>e.removeAttribute(Ti("cloak")))));hv(()=>`[${Ti("init")}]`);qe("init",Jn((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));qe("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let s=r(t);n(()=>{s(o=>{Fe(()=>{e.textContent=o})})})});qe("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let s=r(t);n(()=>{s(o=>{Fe(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,Tn(e),delete e._x_ignoreSelf})})})});Nf(rv(":",iv(Ti("bind:"))));var Gv=(e,{value:t,modifiers:n,expression:r,original:s},{effect:o,cleanup:u})=>{if(!t){let f={};Y$(f),at(e,r)(p=>{Ov(e,p,s)},{scope:f});return}if(t==="key")return qP(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let c=at(e,r);o(()=>c(f=>{f===void 0&&typeof r=="string"&&r.match(/\./)&&(f=""),Fe(()=>vv(e,t,f,n))})),u(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Gv.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};qe("bind",Gv);function qP(e,t){e._x_keyExpression=t}dv(()=>`[${Ti("data")}]`);qe("data",(e,{expression:t},{cleanup:n})=>{if(jP(e))return;t=t===""?"{}":t;let r={};Ol(r,e);let s={};X$(s,r);let o=yr(e,t,{scope:s});(o===void 0||o===!0)&&(o={}),Ol(o,e);let u=xi(o);Vy(u);let c=Rs(e,u);u.init&&yr(e,u.init),n(()=>{u.destroy&&yr(e,u.destroy),c()})});Ga((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function jP(e){return Gn?Nl?!0:e.hasAttribute("data-has-alpine-state"):!1}qe("show",(e,{modifiers:t,expression:n},{effect:r})=>{let s=at(e,n);e._x_doHide||(e._x_doHide=()=>{Fe(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{Fe(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},u=()=>{e._x_doShow(),e._x_isShown=!0},c=()=>setTimeout(u),f=Dl(_=>_?u():o(),_=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,_,u,o):_?c():o()}),d,p=!0;r(()=>s(_=>{!p&&_===d||(t.includes("immediate")&&(_?c():o()),f(_),d=_,p=!1)}))});qe("for",(e,{expression:t},{effect:n,cleanup:r})=>{let s=VP(t),o=at(e,s.items),u=at(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>GP(e,s,o,u)),r(()=>{Object.values(e._x_lookup).forEach(c=>Fe(()=>{Ci(c),c.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function GP(e,t,n,r){let s=u=>typeof u=="object"&&!Array.isArray(u),o=e;n(u=>{YP(u)&&u>=0&&(u=Array.from(Array(u).keys(),E=>E+1)),u===void 0&&(u=[]);let c=e._x_lookup,f=e._x_prevKeys,d=[],p=[];if(s(u))u=Object.entries(u).map(([E,O])=>{let D=_m(t,O,E,u);r(F=>{p.includes(F)&&Ut("Duplicate key on x-for",e),p.push(F)},{scope:{index:E,...D}}),d.push(D)});else for(let E=0;E<u.length;E++){let O=_m(t,u[E],E,u);r(D=>{p.includes(D)&&Ut("Duplicate key on x-for",e),p.push(D)},{scope:{index:E,...O}}),d.push(O)}let _=[],v=[],w=[],S=[];for(let E=0;E<f.length;E++){let O=f[E];p.indexOf(O)===-1&&w.push(O)}f=f.filter(E=>!w.includes(E));let C="template";for(let E=0;E<p.length;E++){let O=p[E],D=f.indexOf(O);if(D===-1)f.splice(E,0,O),_.push([C,E]);else if(D!==E){let F=f.splice(E,1)[0],K=f.splice(D-1,1)[0];f.splice(E,0,K),f.splice(D,0,F),v.push([F,K])}else S.push(O);C=O}for(let E=0;E<w.length;E++){let O=w[E];O in c&&(Fe(()=>{Ci(c[O]),c[O].remove()}),delete c[O])}for(let E=0;E<v.length;E++){let[O,D]=v[E],F=c[O],K=c[D],U=document.createElement("div");Fe(()=>{K||Ut('x-for ":key" is undefined or invalid',o,D,c),K.after(U),F.after(K),K._x_currentIfEl&&K.after(K._x_currentIfEl),U.before(F),F._x_currentIfEl&&F.after(F._x_currentIfEl),U.remove()}),K._x_refreshXForScope(d[p.indexOf(D)])}for(let E=0;E<_.length;E++){let[O,D]=_[E],F=O==="template"?o:c[O];F._x_currentIfEl&&(F=F._x_currentIfEl);let K=d[D],U=p[D],A=document.importNode(o.content,!0).firstElementChild,R=xi(K);Rs(A,R,o),A._x_refreshXForScope=W=>{Object.entries(W).forEach(([V,B])=>{R[V]=B})},Fe(()=>{F.after(A),Jn(()=>Tn(A))()}),typeof U=="object"&&Ut("x-for key cannot be an object, it must be a string or an integer",o),c[U]=A}for(let E=0;E<S.length;E++)c[S[E]]._x_refreshXForScope(d[p.indexOf(S[E])]);o._x_prevKeys=p})}function VP(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,s=e.match(r);if(!s)return;let o={};o.items=s[2].trim();let u=s[1].replace(n,"").trim(),c=u.match(t);return c?(o.item=u.replace(t,"").trim(),o.index=c[1].trim(),c[2]&&(o.collection=c[2].trim())):o.item=u,o}function _m(e,t,n,r){let s={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(u=>u.trim()).forEach((u,c)=>{s[u]=t[c]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(u=>u.trim()).forEach(u=>{s[u]=t[u]}):s[e.item]=t,e.index&&(s[e.index]=n),e.collection&&(s[e.collection]=r),s}function YP(e){return!Array.isArray(e)&&!isNaN(e)}function Vv(){}Vv.inline=(e,{expression:t},{cleanup:n})=>{let r=qa(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};qe("ref",Vv);qe("if",(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&Ut("x-if can only be used on a <template> tag",e);let s=at(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let c=e.content.cloneNode(!0).firstElementChild;return Rs(c,{},e),Fe(()=>{e.after(c),Jn(()=>Tn(c))()}),e._x_currentIfEl=c,e._x_undoIf=()=>{Fe(()=>{Ci(c),c.remove()}),delete e._x_currentIfEl},c},u=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>s(c=>{c?o():u()})),r(()=>e._x_undoIf&&e._x_undoIf())});qe("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(s=>NP(e,s))});Ga((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Nf(rv("@",iv(Ti("on:"))));qe("on",Jn((e,{value:t,modifiers:n,expression:r},{cleanup:s})=>{let o=r?at(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let u=Bl(e,t,n,c=>{o(()=>{},{scope:{$event:c},params:[c]})});s(()=>u())}));Xa("Collapse","collapse","collapse");Xa("Intersect","intersect","intersect");Xa("Focus","trap","focus");Xa("Mask","mask","mask");function Xa(e,t,n){qe(t,r=>Ut(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}Ms.setEvaluator(Qy);Ms.setReactivityEngine({reactive:Gf,effect:aP,release:uP,raw:De});var JP=Ms,Mr=JP;function XP(e){e.directive("collapse",t),t.inline=(n,{modifiers:r})=>{r.includes("min")&&(n._x_doShow=()=>{},n._x_doHide=()=>{})};function t(n,{modifiers:r}){let s=mm(r,"duration",250)/1e3,o=mm(r,"min",0),u=!r.includes("min");n._x_isShown||(n.style.height=`${o}px`),!n._x_isShown&&u&&(n.hidden=!0),n._x_isShown||(n.style.overflow="hidden");let c=(d,p)=>{let _=e.setStyles(d,p);return p.height?()=>{}:_},f={transitionProperty:"height",transitionDuration:`${s}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};n._x_transition={in(d=()=>{},p=()=>{}){u&&(n.hidden=!1),u&&(n.style.display=null);let _=n.getBoundingClientRect().height;n.style.height="auto";let v=n.getBoundingClientRect().height;_===v&&(_=o),e.transition(n,e.setStyles,{during:f,start:{height:_+"px"},end:{height:v+"px"}},()=>n._x_isShown=!0,()=>{Math.abs(n.getBoundingClientRect().height-v)<1&&(n.style.overflow=null)})},out(d=()=>{},p=()=>{}){let _=n.getBoundingClientRect().height;e.transition(n,c,{during:f,start:{height:_+"px"},end:{height:o+"px"}},()=>n.style.overflow="hidden",()=>{n._x_isShown=!1,n.style.height==`${o}px`&&u&&(n.style.display="none",n.hidden=!0)})}}}}function mm(e,t,n){if(e.indexOf(t)===-1)return n;const r=e[e.indexOf(t)+1];if(!r)return n;if(t==="duration"){let s=r.match(/([0-9]+)ms/);if(s)return s[1]}if(t==="min"){let s=r.match(/([0-9]+)px/);if(s)return s[1]}return r}var ZP=XP;function QP(e){e.directive("intersect",e.skipDuringClone((t,{value:n,expression:r,modifiers:s},{evaluateLater:o,cleanup:u})=>{let c=o(r),f={rootMargin:nF(s),threshold:eF(s)},d=new IntersectionObserver(p=>{p.forEach(_=>{_.isIntersecting!==(n==="leave")&&(c(),s.includes("once")&&d.disconnect())})},f);d.observe(t),u(()=>{d.disconnect()})}))}function eF(e){if(e.includes("full"))return .99;if(e.includes("half"))return .5;if(!e.includes("threshold"))return 0;let t=e[e.indexOf("threshold")+1];return t==="100"?1:t==="0"?0:+`.${t}`}function tF(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||"px"):void 0}function nF(e){const t="margin",n="0px 0px 0px 0px",r=e.indexOf(t);if(r===-1)return n;let s=[];for(let o=1;o<5;o++)s.push(tF(e[r+o]||""));return s=s.filter(o=>o!==void 0),s.length?s.join(" ").trim():n}var rF=QP,Yv=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Sa=Yv.join(","),Jv=typeof Element>"u",Cr=Jv?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ul=!Jv&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Xv=function(t,n,r){var s=Array.prototype.slice.apply(t.querySelectorAll(Sa));return n&&Cr.call(t,Sa)&&s.unshift(t),s=s.filter(r),s},Zv=function e(t,n,r){for(var s=[],o=Array.from(t);o.length;){var u=o.shift();if(u.tagName==="SLOT"){var c=u.assignedElements(),f=c.length?c:u.children,d=e(f,!0,r);r.flatten?s.push.apply(s,d):s.push({scope:u,candidates:d})}else{var p=Cr.call(u,Sa);p&&r.filter(u)&&(n||!t.includes(u))&&s.push(u);var _=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),v=!r.shadowRootFilter||r.shadowRootFilter(u);if(_&&v){var w=e(_===!0?u.children:_.children,!0,r);r.flatten?s.push.apply(s,w):s.push({scope:u,candidates:w})}else o.unshift.apply(o,u.children)}}return s},Qv=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},iF=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},eb=function(t){return t.tagName==="INPUT"},sF=function(t){return eb(t)&&t.type==="hidden"},oF=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},aF=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},uF=function(t){if(!t.name)return!0;var n=t.form||Ul(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(t.name));else try{s=r(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var o=aF(s,t.form);return!o||o===t},cF=function(t){return eb(t)&&t.type==="radio"},lF=function(t){return cF(t)&&!uF(t)},gm=function(t){var n=t.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},fF=function(t,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Cr.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(Cr.call(u,"details:not([open]) *"))return!0;var c=Ul(t).host,f=(c==null?void 0:c.ownerDocument.contains(c))||t.ownerDocument.contains(t);if(!r||r==="full"){if(typeof s=="function"){for(var d=t;t;){var p=t.parentElement,_=Ul(t);if(p&&!p.shadowRoot&&s(p)===!0)return gm(t);t.assignedSlot?t=t.assignedSlot:!p&&_!==t.ownerDocument?t=_.host:t=p}t=d}if(f)return!t.getClientRects().length}else if(r==="non-zero-area")return gm(t);return!1},dF=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return Cr.call(n,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}n=n.parentElement}return!1},wa=function(t,n){return!(n.disabled||sF(n)||fF(n,t)||oF(n)||dF(n))},Wl=function(t,n){return!(lF(n)||Qv(n)<0||!wa(t,n))},hF=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},pF=function e(t){var n=[],r=[];return t.forEach(function(s,o){var u=!!s.scope,c=u?s.scope:s,f=Qv(c,u),d=u?e(s.candidates):c;f===0?u?n.push.apply(n,d):n.push(c):r.push({documentOrder:o,tabIndex:f,item:s,isScope:u,content:d})}),r.sort(iF).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(n)},_F=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Zv([t],n.includeContainer,{filter:Wl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:hF}):r=Xv(t,n.includeContainer,Wl.bind(null,n)),pF(r)},tb=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Zv([t],n.includeContainer,{filter:wa.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Xv(t,n.includeContainer,wa.bind(null,n)),r},Wo=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Cr.call(t,Sa)===!1?!1:Wl(n,t)},mF=Yv.concat("iframe").join(","),Qo=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Cr.call(t,mF)===!1?!1:wa(n,t)};function ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ym(Object(n),!0).forEach(function(r){gF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bm=function(){var e=[];return{activateTrap:function(n){if(e.length>0){var r=e[e.length-1];r!==n&&r.pause()}var s=e.indexOf(n);s===-1||e.splice(s,1),e.push(n)},deactivateTrap:function(n){var r=e.indexOf(n);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),yF=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},vF=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},bF=function(t){return t.key==="Tab"||t.keyCode===9},Sm=function(t){return setTimeout(t,0)},wm=function(t,n){var r=-1;return t.every(function(s,o){return n(s)?(r=o,!1):!0}),r},es=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return typeof t=="function"?t.apply(void 0,r):t},Ho=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},SF=function(t,n){var r=(n==null?void 0:n.document)||document,s=vm({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},u,c=function(A,R,W){return A&&A[R]!==void 0?A[R]:s[W||R]},f=function(A){return o.containerGroups.findIndex(function(R){var W=R.container,V=R.tabbableNodes;return W.contains(A)||V.find(function(B){return B===A})})},d=function(A){var R=s[A];if(typeof R=="function"){for(var W=arguments.length,V=new Array(W>1?W-1:0),B=1;B<W;B++)V[B-1]=arguments[B];R=R.apply(void 0,V)}if(R===!0&&(R=void 0),!R){if(R===void 0||R===!1)return R;throw new Error("`".concat(A,"` was specified but was not a node, or did not return a node"))}var j=R;if(typeof R=="string"&&(j=r.querySelector(R),!j))throw new Error("`".concat(A,"` as selector refers to no known node"));return j},p=function(){var A=d("initialFocus");if(A===!1)return!1;if(A===void 0)if(f(r.activeElement)>=0)A=r.activeElement;else{var R=o.tabbableGroups[0],W=R&&R.firstTabbableNode;A=W||d("fallbackFocus")}if(!A)throw new Error("Your focus-trap needs to have at least one focusable element");return A},_=function(){if(o.containerGroups=o.containers.map(function(A){var R=_F(A,s.tabbableOptions),W=tb(A,s.tabbableOptions);return{container:A,tabbableNodes:R,focusableNodes:W,firstTabbableNode:R.length>0?R[0]:null,lastTabbableNode:R.length>0?R[R.length-1]:null,nextTabbableNode:function(B){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fe=W.findIndex(function(pe){return pe===B});if(!(fe<0))return j?W.slice(fe+1).find(function(pe){return Wo(pe,s.tabbableOptions)}):W.slice(0,fe).reverse().find(function(pe){return Wo(pe,s.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(A){return A.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function U(A){if(A!==!1&&A!==r.activeElement){if(!A||!A.focus){U(p());return}A.focus({preventScroll:!!s.preventScroll}),o.mostRecentlyFocusedNode=A,yF(A)&&A.select()}},w=function(A){var R=d("setReturnFocus",A);return R||(R===!1?!1:A)},S=function(A){var R=Ho(A);if(!(f(R)>=0)){if(es(s.clickOutsideDeactivates,A)){u.deactivate({returnFocus:s.returnFocusOnDeactivate&&!Qo(R,s.tabbableOptions)});return}es(s.allowOutsideClick,A)||A.preventDefault()}},C=function(A){var R=Ho(A),W=f(R)>=0;W||R instanceof Document?W&&(o.mostRecentlyFocusedNode=R):(A.stopImmediatePropagation(),v(o.mostRecentlyFocusedNode||p()))},E=function(A){var R=Ho(A);_();var W=null;if(o.tabbableGroups.length>0){var V=f(R),B=V>=0?o.containerGroups[V]:void 0;if(V<0)A.shiftKey?W=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:W=o.tabbableGroups[0].firstTabbableNode;else if(A.shiftKey){var j=wm(o.tabbableGroups,function(Le){var me=Le.firstTabbableNode;return R===me});if(j<0&&(B.container===R||Qo(R,s.tabbableOptions)&&!Wo(R,s.tabbableOptions)&&!B.nextTabbableNode(R,!1))&&(j=V),j>=0){var fe=j===0?o.tabbableGroups.length-1:j-1,pe=o.tabbableGroups[fe];W=pe.lastTabbableNode}}else{var Se=wm(o.tabbableGroups,function(Le){var me=Le.lastTabbableNode;return R===me});if(Se<0&&(B.container===R||Qo(R,s.tabbableOptions)&&!Wo(R,s.tabbableOptions)&&!B.nextTabbableNode(R))&&(Se=V),Se>=0){var Xe=Se===o.tabbableGroups.length-1?0:Se+1,de=o.tabbableGroups[Xe];W=de.firstTabbableNode}}}else W=d("fallbackFocus");W&&(A.preventDefault(),v(W))},O=function(A){if(vF(A)&&es(s.escapeDeactivates,A)!==!1){A.preventDefault(),u.deactivate();return}if(bF(A)){E(A);return}},D=function(A){var R=Ho(A);f(R)>=0||es(s.clickOutsideDeactivates,A)||es(s.allowOutsideClick,A)||(A.preventDefault(),A.stopImmediatePropagation())},F=function(){if(o.active)return bm.activateTrap(u),o.delayInitialFocusTimer=s.delayInitialFocus?Sm(function(){v(p())}):v(p()),r.addEventListener("focusin",C,!0),r.addEventListener("mousedown",S,{capture:!0,passive:!1}),r.addEventListener("touchstart",S,{capture:!0,passive:!1}),r.addEventListener("click",D,{capture:!0,passive:!1}),r.addEventListener("keydown",O,{capture:!0,passive:!1}),u},K=function(){if(o.active)return r.removeEventListener("focusin",C,!0),r.removeEventListener("mousedown",S,!0),r.removeEventListener("touchstart",S,!0),r.removeEventListener("click",D,!0),r.removeEventListener("keydown",O,!0),u};return u={get active(){return o.active},get paused(){return o.paused},activate:function(A){if(o.active)return this;var R=c(A,"onActivate"),W=c(A,"onPostActivate"),V=c(A,"checkCanFocusTrap");V||_(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,R&&R();var B=function(){V&&_(),F(),W&&W()};return V?(V(o.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(A){if(!o.active)return this;var R=vm({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},A);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,K(),o.active=!1,o.paused=!1,bm.deactivateTrap(u);var W=c(R,"onDeactivate"),V=c(R,"onPostDeactivate"),B=c(R,"checkCanReturnFocus"),j=c(R,"returnFocus","returnFocusOnDeactivate");W&&W();var fe=function(){Sm(function(){j&&v(w(o.nodeFocusedBeforeActivation)),V&&V()})};return j&&B?(B(w(o.nodeFocusedBeforeActivation)).then(fe,fe),this):(fe(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,K(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,_(),F(),this)},updateContainerElements:function(A){var R=[].concat(A).filter(Boolean);return o.containers=R.map(function(W){return typeof W=="string"?r.querySelector(W):W}),o.active&&_(),this}},u.updateContainerElements(t),u};function wF(e){let t,n;window.addEventListener("focusin",()=>{t=n,n=document.activeElement}),e.magic("focus",r=>{let s=r;return{__noscroll:!1,__wrapAround:!1,within(o){return s=o,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(o){return Qo(o)},previouslyFocused(){return t},lastFocused(){return t},focused(){return n},focusables(){return Array.isArray(s)?s:tb(s,{displayCheck:"none"})},all(){return this.focusables()},isFirst(o){let u=this.all();return u[0]&&u[0].isSameNode(o)},isLast(o){let u=this.all();return u.length&&u.slice(-1)[0].isSameNode(o)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let o=this.all(),u=document.activeElement;if(o.indexOf(u)!==-1)return this.__wrapAround&&o.indexOf(u)===o.length-1?o[0]:o[o.indexOf(u)+1]},getPrevious(){let o=this.all(),u=document.activeElement;if(o.indexOf(u)!==-1)return this.__wrapAround&&o.indexOf(u)===0?o.slice(-1)[0]:o[o.indexOf(u)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(o){o&&setTimeout(()=>{o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),o.focus({preventScroll:this.__noscroll})})}}}),e.directive("trap",e.skipDuringClone((r,{expression:s,modifiers:o},{effect:u,evaluateLater:c,cleanup:f})=>{let d=c(s),p=!1,_={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>r};if(o.includes("noautofocus"))_.initialFocus=!1;else{let E=r.querySelector("[autofocus]");E&&(_.initialFocus=E)}let v=SF(r,_),w=()=>{},S=()=>{};const C=()=>{w(),w=()=>{},S(),S=()=>{},v.deactivate({returnFocus:!o.includes("noreturn")})};u(()=>d(E=>{p!==E&&(E&&!p&&(o.includes("noscroll")&&(S=EF()),o.includes("inert")&&(w=Em(r)),setTimeout(()=>{v.activate()},15)),!E&&p&&C(),p=!!E)})),f(C)},(r,{expression:s,modifiers:o},{evaluate:u})=>{o.includes("inert")&&u(s)&&Em(r)}))}function Em(e){let t=[];return nb(e,n=>{let r=n.hasAttribute("aria-hidden");n.setAttribute("aria-hidden","true"),t.push(()=>r||n.removeAttribute("aria-hidden"))}),()=>{for(;t.length;)t.pop()()}}function nb(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(n=>{n.isSameNode(e)?nb(e.parentNode,t):t(n)})}function EF(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${n}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}var xF=wF;/*! Bundled license information:

tabbable/dist/index.esm.js:
  (*!
  * tabbable 5.3.3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
  *)

focus-trap/dist/focus-trap.esm.js:
  (*!
  * focus-trap 6.9.4
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
  *)
*/var IF=Object.create,Vf=Object.defineProperty,TF=Object.getPrototypeOf,CF=Object.prototype.hasOwnProperty,OF=Object.getOwnPropertyNames,RF=Object.getOwnPropertyDescriptor,kF=e=>Vf(e,"__esModule",{value:!0}),AF=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports),MF=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of OF(t))!CF.call(e,r)&&r!=="default"&&Vf(e,r,{get:()=>t[r],enumerable:!(n=RF(t,r))||n.enumerable});return e},DF=e=>MF(kF(Vf(e!=null?IF(TF(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),LF=AF((e,t)=>{(function(r,s){typeof e=="object"&&typeof t=="object"?t.exports=s():typeof define=="function"&&define.amd?define([],s):typeof e=="object"?e.Cleave=s():r.Cleave=s()})(e,function(){return function(n){var r={};function s(o){if(r[o])return r[o].exports;var u=r[o]={exports:{},id:o,loaded:!1};return n[o].call(u.exports,u,u.exports,s),u.loaded=!0,u.exports}return s.m=n,s.c=r,s.p="",s(0)}([function(n,r,s){(function(o){var u=function(c,f){var d=this,p=!1;if(typeof c=="string"?(d.element=document.querySelector(c),p=document.querySelectorAll(c).length>1):typeof c.length<"u"&&c.length>0?(d.element=c[0],p=c.length>1):d.element=c,!d.element)throw new Error("[cleave.js] Please check the element");if(p)try{console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.")}catch{}f.initValue=d.element.value,d.properties=u.DefaultProperties.assign({},f),d.init()};u.prototype={init:function(){var c=this,f=c.properties;if(!f.numeral&&!f.phone&&!f.creditCard&&!f.time&&!f.date&&f.blocksLength===0&&!f.prefix){c.onInput(f.initValue);return}f.maxLength=u.Util.getMaxLength(f.blocks),c.isAndroid=u.Util.isAndroid(),c.lastInputValue="",c.isBackward="",c.onChangeListener=c.onChange.bind(c),c.onKeyDownListener=c.onKeyDown.bind(c),c.onFocusListener=c.onFocus.bind(c),c.onCutListener=c.onCut.bind(c),c.onCopyListener=c.onCopy.bind(c),c.initSwapHiddenInput(),c.element.addEventListener("input",c.onChangeListener),c.element.addEventListener("keydown",c.onKeyDownListener),c.element.addEventListener("focus",c.onFocusListener),c.element.addEventListener("cut",c.onCutListener),c.element.addEventListener("copy",c.onCopyListener),c.initPhoneFormatter(),c.initDateFormatter(),c.initTimeFormatter(),c.initNumeralFormatter(),(f.initValue||f.prefix&&!f.noImmediatePrefix)&&c.onInput(f.initValue)},initSwapHiddenInput:function(){var c=this,f=c.properties;if(f.swapHiddenInput){var d=c.element.cloneNode(!0);c.element.parentNode.insertBefore(d,c.element),c.elementSwapHidden=c.element,c.elementSwapHidden.type="hidden",c.element=d,c.element.id=""}},initNumeralFormatter:function(){var c=this,f=c.properties;f.numeral&&(f.numeralFormatter=new u.NumeralFormatter(f.numeralDecimalMark,f.numeralIntegerScale,f.numeralDecimalScale,f.numeralThousandsGroupStyle,f.numeralPositiveOnly,f.stripLeadingZeroes,f.prefix,f.signBeforePrefix,f.tailPrefix,f.delimiter))},initTimeFormatter:function(){var c=this,f=c.properties;f.time&&(f.timeFormatter=new u.TimeFormatter(f.timePattern,f.timeFormat),f.blocks=f.timeFormatter.getBlocks(),f.blocksLength=f.blocks.length,f.maxLength=u.Util.getMaxLength(f.blocks))},initDateFormatter:function(){var c=this,f=c.properties;f.date&&(f.dateFormatter=new u.DateFormatter(f.datePattern,f.dateMin,f.dateMax),f.blocks=f.dateFormatter.getBlocks(),f.blocksLength=f.blocks.length,f.maxLength=u.Util.getMaxLength(f.blocks))},initPhoneFormatter:function(){var c=this,f=c.properties;if(f.phone)try{f.phoneFormatter=new u.PhoneFormatter(new f.root.Cleave.AsYouTypeFormatter(f.phoneRegionCode),f.delimiter)}catch{throw new Error("[cleave.js] Please include phone-type-formatter.{country}.js lib")}},onKeyDown:function(c){var f=this,d=c.which||c.keyCode;f.lastInputValue=f.element.value,f.isBackward=d===8},onChange:function(c){var f=this,d=f.properties,p=u.Util;f.isBackward=f.isBackward||c.inputType==="deleteContentBackward";var _=p.getPostDelimiter(f.lastInputValue,d.delimiter,d.delimiters);f.isBackward&&_?d.postDelimiterBackspace=_:d.postDelimiterBackspace=!1,this.onInput(this.element.value)},onFocus:function(){var c=this,f=c.properties;c.lastInputValue=c.element.value,f.prefix&&f.noImmediatePrefix&&!c.element.value&&this.onInput(f.prefix),u.Util.fixPrefixCursor(c.element,f.prefix,f.delimiter,f.delimiters)},onCut:function(c){u.Util.checkFullSelection(this.element.value)&&(this.copyClipboardData(c),this.onInput(""))},onCopy:function(c){u.Util.checkFullSelection(this.element.value)&&this.copyClipboardData(c)},copyClipboardData:function(c){var f=this,d=f.properties,p=u.Util,_=f.element.value,v="";d.copyDelimiter?v=_:v=p.stripDelimiters(_,d.delimiter,d.delimiters);try{c.clipboardData?c.clipboardData.setData("Text",v):window.clipboardData.setData("Text",v),c.preventDefault()}catch{}},onInput:function(c){var f=this,d=f.properties,p=u.Util,_=p.getPostDelimiter(c,d.delimiter,d.delimiters);if(!d.numeral&&d.postDelimiterBackspace&&!_&&(c=p.headStr(c,c.length-d.postDelimiterBackspace.length)),d.phone){d.prefix&&(!d.noImmediatePrefix||c.length)?d.result=d.prefix+d.phoneFormatter.format(c).slice(d.prefix.length):d.result=d.phoneFormatter.format(c),f.updateValueState();return}if(d.numeral){d.prefix&&d.noImmediatePrefix&&c.length===0?d.result="":d.result=d.numeralFormatter.format(c),f.updateValueState();return}if(d.date&&(c=d.dateFormatter.getValidatedDate(c)),d.time&&(c=d.timeFormatter.getValidatedTime(c)),c=p.stripDelimiters(c,d.delimiter,d.delimiters),c=p.getPrefixStrippedValue(c,d.prefix,d.prefixLength,d.result,d.delimiter,d.delimiters,d.noImmediatePrefix,d.tailPrefix,d.signBeforePrefix),c=d.numericOnly?p.strip(c,/[^\d]/g):c,c=d.uppercase?c.toUpperCase():c,c=d.lowercase?c.toLowerCase():c,d.prefix&&(d.tailPrefix?c=c+d.prefix:c=d.prefix+c,d.blocksLength===0)){d.result=c,f.updateValueState();return}d.creditCard&&f.updateCreditCardPropsByValue(c),c=p.headStr(c,d.maxLength),d.result=p.getFormattedValue(c,d.blocks,d.blocksLength,d.delimiter,d.delimiters,d.delimiterLazyShow),f.updateValueState()},updateCreditCardPropsByValue:function(c){var f=this,d=f.properties,p=u.Util,_;p.headStr(d.result,4)!==p.headStr(c,4)&&(_=u.CreditCardDetector.getInfo(c,d.creditCardStrictMode),d.blocks=_.blocks,d.blocksLength=d.blocks.length,d.maxLength=p.getMaxLength(d.blocks),d.creditCardType!==_.type&&(d.creditCardType=_.type,d.onCreditCardTypeChanged.call(f,d.creditCardType)))},updateValueState:function(){var c=this,f=u.Util,d=c.properties;if(c.element){var p=c.element.selectionEnd,_=c.element.value,v=d.result;if(p=f.getNextCursorPosition(p,_,v,d.delimiter,d.delimiters),c.isAndroid){window.setTimeout(function(){c.element.value=v,f.setSelection(c.element,p,d.document,!1),c.callOnValueChanged()},1);return}c.element.value=v,d.swapHiddenInput&&(c.elementSwapHidden.value=c.getRawValue()),f.setSelection(c.element,p,d.document,!1),c.callOnValueChanged()}},callOnValueChanged:function(){var c=this,f=c.properties;f.onValueChanged.call(c,{target:{name:c.element.name,value:f.result,rawValue:c.getRawValue()}})},setPhoneRegionCode:function(c){var f=this,d=f.properties;d.phoneRegionCode=c,f.initPhoneFormatter(),f.onChange()},setRawValue:function(c){var f=this,d=f.properties;c=c!=null?c.toString():"",d.numeral&&(c=c.replace(".",d.numeralDecimalMark)),d.postDelimiterBackspace=!1,f.element.value=c,f.onInput(c)},getRawValue:function(){var c=this,f=c.properties,d=u.Util,p=c.element.value;return f.rawValueTrimPrefix&&(p=d.getPrefixStrippedValue(p,f.prefix,f.prefixLength,f.result,f.delimiter,f.delimiters,f.noImmediatePrefix,f.tailPrefix,f.signBeforePrefix)),f.numeral?p=f.numeralFormatter.getRawValue(p):p=d.stripDelimiters(p,f.delimiter,f.delimiters),p},getISOFormatDate:function(){var c=this,f=c.properties;return f.date?f.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var c=this,f=c.properties;return f.time?f.timeFormatter.getISOFormatTime():""},getFormattedValue:function(){return this.element.value},destroy:function(){var c=this;c.element.removeEventListener("input",c.onChangeListener),c.element.removeEventListener("keydown",c.onKeyDownListener),c.element.removeEventListener("focus",c.onFocusListener),c.element.removeEventListener("cut",c.onCutListener),c.element.removeEventListener("copy",c.onCopyListener)},toString:function(){return"[Cleave Object]"}},u.NumeralFormatter=s(1),u.DateFormatter=s(2),u.TimeFormatter=s(3),u.PhoneFormatter=s(4),u.CreditCardDetector=s(5),u.Util=s(6),u.DefaultProperties=s(7),(typeof o=="object"&&o?o:window).Cleave=u,n.exports=u}).call(r,function(){return this}())},function(n,r){var s=function(o,u,c,f,d,p,_,v,w,S){var C=this;C.numeralDecimalMark=o||".",C.numeralIntegerScale=u>0?u:0,C.numeralDecimalScale=c>=0?c:2,C.numeralThousandsGroupStyle=f||s.groupStyle.thousand,C.numeralPositiveOnly=!!d,C.stripLeadingZeroes=p!==!1,C.prefix=_||_===""?_:"",C.signBeforePrefix=!!v,C.tailPrefix=!!w,C.delimiter=S||S===""?S:",",C.delimiterRE=S?new RegExp("\\"+S,"g"):""};s.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"},s.prototype={getRawValue:function(o){return o.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(o){var u=this,c,f,d,p,_="";switch(o=o.replace(/[A-Za-z]/g,"").replace(u.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",u.numeralPositiveOnly?"":"-").replace("M",u.numeralDecimalMark),u.stripLeadingZeroes&&(o=o.replace(/^(-)?0+(?=\d)/,"$1")),f=o.slice(0,1)==="-"?"-":"",typeof u.prefix<"u"?u.signBeforePrefix?d=f+u.prefix:d=u.prefix+f:d=f,p=o,o.indexOf(u.numeralDecimalMark)>=0&&(c=o.split(u.numeralDecimalMark),p=c[0],_=u.numeralDecimalMark+c[1].slice(0,u.numeralDecimalScale)),f==="-"&&(p=p.slice(1)),u.numeralIntegerScale>0&&(p=p.slice(0,u.numeralIntegerScale)),u.numeralThousandsGroupStyle){case s.groupStyle.lakh:p=p.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+u.delimiter);break;case s.groupStyle.wan:p=p.replace(/(\d)(?=(\d{4})+$)/g,"$1"+u.delimiter);break;case s.groupStyle.thousand:p=p.replace(/(\d)(?=(\d{3})+$)/g,"$1"+u.delimiter);break}return u.tailPrefix?f+p.toString()+(u.numeralDecimalScale>0?_.toString():"")+u.prefix:d+p.toString()+(u.numeralDecimalScale>0?_.toString():"")}},n.exports=s},function(n,r){var s=function(o,u,c){var f=this;f.date=[],f.blocks=[],f.datePattern=o,f.dateMin=u.split("-").reverse().map(function(d){return parseInt(d,10)}),f.dateMin.length===2&&f.dateMin.unshift(0),f.dateMax=c.split("-").reverse().map(function(d){return parseInt(d,10)}),f.dateMax.length===2&&f.dateMax.unshift(0),f.initBlocks()};s.prototype={initBlocks:function(){var o=this;o.datePattern.forEach(function(u){u==="Y"?o.blocks.push(4):o.blocks.push(2)})},getISOFormatDate:function(){var o=this,u=o.date;return u[2]?u[2]+"-"+o.addLeadingZero(u[1])+"-"+o.addLeadingZero(u[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(o){var u=this,c="";return o=o.replace(/[^\d]/g,""),u.blocks.forEach(function(f,d){if(o.length>0){var p=o.slice(0,f),_=p.slice(0,1),v=o.slice(f);switch(u.datePattern[d]){case"d":p==="00"?p="01":parseInt(_,10)>3?p="0"+_:parseInt(p,10)>31&&(p="31");break;case"m":p==="00"?p="01":parseInt(_,10)>1?p="0"+_:parseInt(p,10)>12&&(p="12");break}c+=p,o=v}}),this.getFixedDateString(c)},getFixedDateString:function(o){var u=this,c=u.datePattern,f=[],d=0,p=0,_=0,v=0,w=0,S=0,C,E,O,D=!1;o.length===4&&c[0].toLowerCase()!=="y"&&c[1].toLowerCase()!=="y"&&(v=c[0]==="d"?0:2,w=2-v,C=parseInt(o.slice(v,v+2),10),E=parseInt(o.slice(w,w+2),10),f=this.getFixedDate(C,E,0)),o.length===8&&(c.forEach(function(K,U){switch(K){case"d":d=U;break;case"m":p=U;break;default:_=U;break}}),S=_*2,v=d<=_?d*2:d*2+2,w=p<=_?p*2:p*2+2,C=parseInt(o.slice(v,v+2),10),E=parseInt(o.slice(w,w+2),10),O=parseInt(o.slice(S,S+4),10),D=o.slice(S,S+4).length===4,f=this.getFixedDate(C,E,O)),o.length===4&&(c[0]==="y"||c[1]==="y")&&(w=c[0]==="m"?0:2,S=2-w,E=parseInt(o.slice(w,w+2),10),O=parseInt(o.slice(S,S+2),10),D=o.slice(S,S+2).length===2,f=[0,E,O]),o.length===6&&(c[0]==="Y"||c[1]==="Y")&&(w=c[0]==="m"?0:4,S=2-.5*w,E=parseInt(o.slice(w,w+2),10),O=parseInt(o.slice(S,S+4),10),D=o.slice(S,S+4).length===4,f=[0,E,O]),f=u.getRangeFixedDate(f),u.date=f;var F=f.length===0?o:c.reduce(function(K,U){switch(U){case"d":return K+(f[0]===0?"":u.addLeadingZero(f[0]));case"m":return K+(f[1]===0?"":u.addLeadingZero(f[1]));case"y":return K+(D?u.addLeadingZeroForYear(f[2],!1):"");case"Y":return K+(D?u.addLeadingZeroForYear(f[2],!0):"")}},"");return F},getRangeFixedDate:function(o){var u=this,c=u.datePattern,f=u.dateMin||[],d=u.dateMax||[];return!o.length||f.length<3&&d.length<3||c.find(function(p){return p.toLowerCase()==="y"})&&o[2]===0?o:d.length&&(d[2]<o[2]||d[2]===o[2]&&(d[1]<o[1]||d[1]===o[1]&&d[0]<o[0]))?d:f.length&&(f[2]>o[2]||f[2]===o[2]&&(f[1]>o[1]||f[1]===o[1]&&f[0]>o[0]))?f:o},getFixedDate:function(o,u,c){return o=Math.min(o,31),u=Math.min(u,12),c=parseInt(c||0,10),(u<7&&u%2===0||u>8&&u%2===1)&&(o=Math.min(o,u===2?this.isLeapYear(c)?29:28:30)),[o,u,c]},isLeapYear:function(o){return o%4===0&&o%100!==0||o%400===0},addLeadingZero:function(o){return(o<10?"0":"")+o},addLeadingZeroForYear:function(o,u){return u?(o<10?"000":o<100?"00":o<1e3?"0":"")+o:(o<10?"0":"")+o}},n.exports=s},function(n,r){var s=function(o,u){var c=this;c.time=[],c.blocks=[],c.timePattern=o,c.timeFormat=u,c.initBlocks()};s.prototype={initBlocks:function(){var o=this;o.timePattern.forEach(function(){o.blocks.push(2)})},getISOFormatTime:function(){var o=this,u=o.time;return u[2]?o.addLeadingZero(u[0])+":"+o.addLeadingZero(u[1])+":"+o.addLeadingZero(u[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){var o=this;return String(o.timeFormat)==="12"?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(o){var u=this,c="";o=o.replace(/[^\d]/g,"");var f=u.getTimeFormatOptions();return u.blocks.forEach(function(d,p){if(o.length>0){var _=o.slice(0,d),v=_.slice(0,1),w=o.slice(d);switch(u.timePattern[p]){case"h":parseInt(v,10)>f.maxHourFirstDigit?_="0"+v:parseInt(_,10)>f.maxHours&&(_=f.maxHours+"");break;case"m":case"s":parseInt(v,10)>f.maxMinutesFirstDigit?_="0"+v:parseInt(_,10)>f.maxMinutes&&(_=f.maxMinutes+"");break}c+=_,o=w}}),this.getFixedTimeString(c)},getFixedTimeString:function(o){var u=this,c=u.timePattern,f=[],d=0,p=0,_=0,v=0,w=0,S=0,C,E,O;return o.length===6&&(c.forEach(function(D,F){switch(D){case"s":d=F*2;break;case"m":p=F*2;break;case"h":_=F*2;break}}),S=_,w=p,v=d,C=parseInt(o.slice(v,v+2),10),E=parseInt(o.slice(w,w+2),10),O=parseInt(o.slice(S,S+2),10),f=this.getFixedTime(O,E,C)),o.length===4&&u.timePattern.indexOf("s")<0&&(c.forEach(function(D,F){switch(D){case"m":p=F*2;break;case"h":_=F*2;break}}),S=_,w=p,C=0,E=parseInt(o.slice(w,w+2),10),O=parseInt(o.slice(S,S+2),10),f=this.getFixedTime(O,E,C)),u.time=f,f.length===0?o:c.reduce(function(D,F){switch(F){case"s":return D+u.addLeadingZero(f[2]);case"m":return D+u.addLeadingZero(f[1]);case"h":return D+u.addLeadingZero(f[0])}},"")},getFixedTime:function(o,u,c){return c=Math.min(parseInt(c||0,10),60),u=Math.min(u,60),o=Math.min(o,60),[o,u,c]},addLeadingZero:function(o){return(o<10?"0":"")+o}},n.exports=s},function(n,r){var s=function(o,u){var c=this;c.delimiter=u||u===""?u:" ",c.delimiterRE=u?new RegExp("\\"+u,"g"):"",c.formatter=o};s.prototype={setFormatter:function(o){this.formatter=o},format:function(o){var u=this;u.formatter.clear(),o=o.replace(/[^\d+]/g,""),o=o.replace(/^\+/,"B").replace(/\+/g,"").replace("B","+"),o=o.replace(u.delimiterRE,"");for(var c="",f,d=!1,p=0,_=o.length;p<_;p++)f=u.formatter.inputDigit(o.charAt(p)),/[\s()-]/g.test(f)?(c=f,d=!0):d||(c=f);return c=c.replace(/[()]/g,""),c=c.replace(/[\s-]/g,u.delimiter),c}},n.exports=s},function(n,r){var s={blocks:{uatp:[4,5,6],amex:[4,6,5],diners:[4,6,4],discover:[4,4,4,4],mastercard:[4,4,4,4],dankort:[4,4,4,4],instapayment:[4,4,4,4],jcb15:[4,6,5],jcb:[4,4,4,4],maestro:[4,4,4,4],visa:[4,4,4,4],mir:[4,4,4,4],unionPay:[4,4,4,4],general:[4,4,4,4]},re:{uatp:/^(?!1800)1\d{0,14}/,amex:/^3[47]\d{0,13}/,discover:/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,diners:/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,mastercard:/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,dankort:/^(5019|4175|4571)\d{0,12}/,instapayment:/^63[7-9]\d{0,13}/,jcb15:/^(?:2131|1800)\d{0,11}/,jcb:/^(?:35\d{0,2})\d{0,12}/,maestro:/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,mir:/^220[0-4]\d{0,12}/,visa:/^4\d{0,15}/,unionPay:/^(62|81)\d{0,14}/},getStrictBlocks:function(o){var u=o.reduce(function(c,f){return c+f},0);return o.concat(19-u)},getInfo:function(o,u){var c=s.blocks,f=s.re;u=!!u;for(var d in f)if(f[d].test(o)){var p=c[d];return{type:d,blocks:u?this.getStrictBlocks(p):p}}return{type:"unknown",blocks:u?this.getStrictBlocks(c.general):c.general}}};n.exports=s},function(n,r){var s={noop:function(){},strip:function(o,u){return o.replace(u,"")},getPostDelimiter:function(o,u,c){if(c.length===0)return o.slice(-u.length)===u?u:"";var f="";return c.forEach(function(d){o.slice(-d.length)===d&&(f=d)}),f},getDelimiterREByDelimiter:function(o){return new RegExp(o.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g")},getNextCursorPosition:function(o,u,c,f,d){return u.length===o?c.length:o+this.getPositionOffset(o,u,c,f,d)},getPositionOffset:function(o,u,c,f,d){var p,_,v;return p=this.stripDelimiters(u.slice(0,o),f,d),_=this.stripDelimiters(c.slice(0,o),f,d),v=p.length-_.length,v!==0?v/Math.abs(v):0},stripDelimiters:function(o,u,c){var f=this;if(c.length===0){var d=u?f.getDelimiterREByDelimiter(u):"";return o.replace(d,"")}return c.forEach(function(p){p.split("").forEach(function(_){o=o.replace(f.getDelimiterREByDelimiter(_),"")})}),o},headStr:function(o,u){return o.slice(0,u)},getMaxLength:function(o){return o.reduce(function(u,c){return u+c},0)},getPrefixStrippedValue:function(o,u,c,f,d,p,_,v,w){if(c===0)return o;if(o===u&&o!=="")return"";if(w&&o.slice(0,1)=="-"){var S=f.slice(0,1)=="-"?f.slice(1):f;return"-"+this.getPrefixStrippedValue(o.slice(1),u,c,S,d,p,_,v,w)}if(f.slice(0,c)!==u&&!v)return _&&!f&&o?o:"";if(f.slice(-c)!==u&&v)return _&&!f&&o?o:"";var C=this.stripDelimiters(f,d,p);return o.slice(0,c)!==u&&!v?C.slice(c):o.slice(-c)!==u&&v?C.slice(0,-c-1):v?o.slice(0,-c):o.slice(c)},getFirstDiffIndex:function(o,u){for(var c=0;o.charAt(c)===u.charAt(c);)if(o.charAt(c++)==="")return-1;return c},getFormattedValue:function(o,u,c,f,d,p){var _="",v=d.length>0,w="";return c===0?o:(u.forEach(function(S,C){if(o.length>0){var E=o.slice(0,S),O=o.slice(S);v?w=d[p?C-1:C]||w:w=f,p?(C>0&&(_+=w),_+=E):(_+=E,E.length===S&&C<c-1&&(_+=w)),o=O}}),_)},fixPrefixCursor:function(o,u,c,f){if(o){var d=o.value,p=c||f[0]||" ";if(!(!o.setSelectionRange||!u||u.length+p.length<=d.length)){var _=d.length*2;setTimeout(function(){o.setSelectionRange(_,_)},1)}}},checkFullSelection:function(o){try{var u=window.getSelection()||document.getSelection()||{};return u.toString().length===o.length}catch{}return!1},setSelection:function(o,u,c){if(o===this.getActiveElement(c)&&!(o&&o.value.length<=u))if(o.createTextRange){var f=o.createTextRange();f.move("character",u),f.select()}else try{o.setSelectionRange(u,u)}catch{console.warn("The input element type does not support selection")}},getActiveElement:function(o){var u=o.activeElement;return u&&u.shadowRoot?this.getActiveElement(u.shadowRoot):u},isAndroid:function(){return navigator&&/android/i.test(navigator.userAgent)},isAndroidBackspaceKeydown:function(o,u){return!this.isAndroid()||!o||!u?!1:u===o.slice(0,-1)}};n.exports=s},function(n,r){(function(s){var o={assign:function(u,c){return u=u||{},c=c||{},u.creditCard=!!c.creditCard,u.creditCardStrictMode=!!c.creditCardStrictMode,u.creditCardType="",u.onCreditCardTypeChanged=c.onCreditCardTypeChanged||function(){},u.phone=!!c.phone,u.phoneRegionCode=c.phoneRegionCode||"AU",u.phoneFormatter={},u.time=!!c.time,u.timePattern=c.timePattern||["h","m","s"],u.timeFormat=c.timeFormat||"24",u.timeFormatter={},u.date=!!c.date,u.datePattern=c.datePattern||["d","m","Y"],u.dateMin=c.dateMin||"",u.dateMax=c.dateMax||"",u.dateFormatter={},u.numeral=!!c.numeral,u.numeralIntegerScale=c.numeralIntegerScale>0?c.numeralIntegerScale:0,u.numeralDecimalScale=c.numeralDecimalScale>=0?c.numeralDecimalScale:2,u.numeralDecimalMark=c.numeralDecimalMark||".",u.numeralThousandsGroupStyle=c.numeralThousandsGroupStyle||"thousand",u.numeralPositiveOnly=!!c.numeralPositiveOnly,u.stripLeadingZeroes=c.stripLeadingZeroes!==!1,u.signBeforePrefix=!!c.signBeforePrefix,u.tailPrefix=!!c.tailPrefix,u.swapHiddenInput=!!c.swapHiddenInput,u.numericOnly=u.creditCard||u.date||!!c.numericOnly,u.uppercase=!!c.uppercase,u.lowercase=!!c.lowercase,u.prefix=u.creditCard||u.date?"":c.prefix||"",u.noImmediatePrefix=!!c.noImmediatePrefix,u.prefixLength=u.prefix.length,u.rawValueTrimPrefix=!!c.rawValueTrimPrefix,u.copyDelimiter=!!c.copyDelimiter,u.initValue=c.initValue!==void 0&&c.initValue!==null?c.initValue.toString():"",u.delimiter=c.delimiter||c.delimiter===""?c.delimiter:c.date?"/":c.time?":":c.numeral?",":(c.phone," "),u.delimiterLength=u.delimiter.length,u.delimiterLazyShow=!!c.delimiterLazyShow,u.delimiters=c.delimiters||[],u.blocks=c.blocks||[],u.blocksLength=u.blocks.length,u.root=typeof s=="object"&&s?s:window,u.document=c.document||u.root.document,u.maxLength=0,u.backspace=!1,u.result="",u.onValueChanged=c.onValueChanged||function(){},u}};n.exports=o}).call(r,function(){return this}())}])})}),NF=DF(LF()),Ko=(e,t,n=1)=>e[e.indexOf(t)+n],$F=(e,t,n)=>{const r={};return e.includes("card")?(r.creditCard=!0,r.creditCardStrictMode=e.includes("strict")):e.includes("date")?(r.date=!0,r.datePattern=t?n(t):null):e.includes("time")?(r.time=!0,r.timePattern=t?n(t):null):e.includes("numeral")?(r.numeral=!0,e.includes("thousands")&&(r.numeralThousandsGroupStyle=Ko(e,"thousands")),e.includes("delimiter")&&(r.delimiter=Ko(e,"delimiter")==="dot"?".":","),e.includes("decimal")&&(r.numeralDecimalMark=Ko(e,"decimal")==="comma"?",":"."),e.includes("positive")&&(r.numeralPositiveOnly=!0),e.includes("prefix")&&(r.prefix=Ko(e,"prefix"))):e.includes("blocks")&&(r.blocks=n(t)),r},xm=e=>t=>{e._x_model&&e._x_model.set(t.target.rawValue)};function PF(e){e.magic("mask",t=>{if(t.__cleave)return t.__cleave}),e.directive("mask",(t,{modifiers:n,expression:r},{effect:s,evaluate:o})=>{if(t._x_model){const c=e.prefixed("model");Object.keys(t._x_attributeCleanups).forEach(f=>{f.startsWith(c)&&(t._x_attributeCleanups[c][0](),delete t._x_attributeCleanups[c])}),t._x_forceModelUpdate=()=>{}}const u=n.length===0?{...o(r),onValueChanged:xm(t)}:{...$F(n,r,o),onValueChanged:xm(t)};t.__cleave||(t.__cleave=new NF.default(t,u)),t._x_model&&s(()=>{e.mutateDom(()=>t.__cleave.setRawValue(t._x_model.get()))})})}var FF=PF;function rb(e,t,n,r){return{items:[],activeKey:UF(),orderedKeys:[],activatedByKeyPress:!1,activateSelectedOrFirst:e.debounce(function(){r(!1)}),registerItemsQueue:[],registerItem(s,o,u,c){this.registerItemsQueue.length===0&&queueMicrotask(()=>{this.registerItemsQueue.length>0&&(this.items=this.items.concat(this.registerItemsQueue),this.registerItemsQueue=[],this.reorderKeys(),this.activateSelectedOrFirst())});let f={key:s,el:o,value:u,disabled:c};this.registerItemsQueue.push(f)},unregisterKeysQueue:[],unregisterItem(s){this.unregisterKeysQueue.length===0&&queueMicrotask(()=>{this.unregisterKeysQueue.length>0&&(this.items=this.items.filter(o=>!this.unregisterKeysQueue.includes(o.key)),this.orderedKeys=this.orderedKeys.filter(o=>!this.unregisterKeysQueue.includes(o)),this.unregisterKeysQueue=[],this.reorderKeys(),this.activateSelectedOrFirst())}),this.unregisterKeysQueue.push(s)},getItemByKey(s){return this.items.find(o=>o.key===s)},getItemByValue(s){return this.items.find(o=>e.raw(o.value)===e.raw(s))},getItemByEl(s){return this.items.find(o=>o.el===s)},getItemsByValues(s){let o=s.map(c=>e.raw(c)),u=this.items.filter(c=>o.includes(e.raw(c.value)));return u=u.slice().sort((c,f)=>{let d=c.el.compareDocumentPosition(f.el);return d&Node.DOCUMENT_POSITION_FOLLOWING?-1:d&Node.DOCUMENT_POSITION_PRECEDING?1:0}),u},getActiveItem(){if(!this.hasActive())return null;let s=this.items.find(o=>o.key===this.activeKey.get());return s||this.deactivateKey(this.activeKey.get()),s},activateItem(s){s&&this.activateKey(s.key)},reorderKeys:e.debounce(function(){this.orderedKeys=this.items.map(s=>s.key),this.orderedKeys=this.orderedKeys.slice().sort((s,o)=>{if(s===null||o===null)return 0;let u=this.items.find(d=>d.key===s).el,c=this.items.find(d=>d.key===o).el,f=u.compareDocumentPosition(c);return f&Node.DOCUMENT_POSITION_FOLLOWING?-1:f&Node.DOCUMENT_POSITION_PRECEDING?1:0}),this.orderedKeys.includes(this.activeKey.get())||this.deactivateKey(this.activeKey.get())}),getActiveKey(){return this.activeKey.get()},activeEl(){if(this.activeKey.get())return this.items.find(s=>s.key===this.activeKey.get()).el},isActiveEl(s){let o=this.items.find(u=>u.el===s);return this.activeKey.is(o)},activateEl(s){let o=this.items.find(u=>u.el===s);this.activateKey(o.key)},isDisabledEl(s){return this.items.find(o=>o.el===s).disabled},get isScrollingTo(){return this.scrollingCount>0},scrollingCount:0,activateAndScrollToKey(s,o){if(!this.getItemByKey(s))return;this.scrollingCount++,this.activateKey(s,o),this.items.find(c=>c.key===s).el.scrollIntoView({block:"nearest"}),setTimeout(()=>{this.scrollingCount--},25)},isDisabled(s){let o=this.items.find(u=>u.key===s);return o?o.disabled:!1},get nonDisabledOrderedKeys(){return this.orderedKeys.filter(s=>!this.isDisabled(s))},hasActive(){return!!this.activeKey.get()},wasActivatedByKeyPress(){return this.activatedByKeyPress},isActiveKey(s){return this.activeKey.is(s)},activateKey(s,o=!1){this.isDisabled(s)||(this.activeKey.set(s),this.activatedByKeyPress=o)},deactivateKey(s){this.activeKey.get()===s&&(this.activeKey.set(null),this.activatedByKeyPress=!1)},deactivate(){this.activeKey.get()&&(this.isScrollingTo||(this.activeKey.set(null),this.activatedByKeyPress=!1))},nextKey(){if(!this.activeKey.get())return;let s=this.nonDisabledOrderedKeys.findIndex(o=>o===this.activeKey.get());return this.nonDisabledOrderedKeys[s+1]},prevKey(){if(!this.activeKey.get())return;let s=this.nonDisabledOrderedKeys.findIndex(o=>o===this.activeKey.get());return this.nonDisabledOrderedKeys[s-1]},firstKey(){return this.nonDisabledOrderedKeys[0]},lastKey(){return this.nonDisabledOrderedKeys[this.nonDisabledOrderedKeys.length-1]},searchQuery:"",clearSearch:e.debounce(function(){this.searchQuery=""},350),searchKey(s){this.clearSearch(),this.searchQuery+=s;let o;for(let u in this.items)if(this.items[u].el.textContent.trim().toLowerCase().startsWith(this.searchQuery)){o=this.items[u].key;break}if(this.nonDisabledOrderedKeys.includes(o))return o},activateByKeyEvent(s,o=!1,u=()=>!1,c=()=>{},f){let d,p;f(!0);let _=!0;switch(s.key){case["ArrowDown","ArrowRight"][n==="vertical"?0:1]:if(s.preventDefault(),s.stopPropagation(),f(!1),!u()){c();break}this.reorderKeys(),p=this.hasActive(),d=p?this.nextKey():this.firstKey();break;case["ArrowUp","ArrowLeft"][n==="vertical"?0:1]:if(s.preventDefault(),s.stopPropagation(),f(!1),!u()){c();break}this.reorderKeys(),p=this.hasActive(),d=p?this.prevKey():this.lastKey();break;case"Home":case"PageUp":if(s.key=="Home"&&s.shiftKey)return;s.preventDefault(),s.stopPropagation(),f(!1),this.reorderKeys(),p=this.hasActive(),d=this.firstKey();break;case"End":case"PageDown":if(s.key=="End"&&s.shiftKey)return;s.preventDefault(),s.stopPropagation(),f(!1),this.reorderKeys(),p=this.hasActive(),d=this.lastKey();break;default:_=this.activatedByKeyPress,o&&s.key.length===1&&(d=this.searchKey(s.key));break}d&&this.activateAndScrollToKey(d,_)}}}function ib(e,t,n,r){let s=sb(n,r);s.forEach(c=>c._x_hiddenInput=!0),s.forEach(c=>c._x_ignore=!0);let o=t.children,u=[];for(let c=0;c<o.length;c++){let f=o[c];if(f._x_hiddenInput)u.push(f);else break}e.mutateDom(()=>{u.forEach(c=>c.remove()),s.reverse().forEach(c=>t.prepend(c))})}function sb(e,t,n=[]){if(BF(t))for(let r in t)n=n.concat(sb(`${e}[${r}]`,t[r]));else{let r=document.createElement("input");return r.setAttribute("type","hidden"),r.setAttribute("name",e),r.setAttribute("value",""+t),[r]}return n}function BF(e){return typeof e=="object"&&e!==null}function UF(e){let t={},n,r=Alpine.reactive({state:!1});return{get:()=>(r.state,n),set:c=>{c!==n&&(n!==void 0&&(t[n].state=!1),n=c,t[c]===void 0?t[c]=Alpine.reactive({state:!0}):t[c].state=!0,r.state=!r.state)},is:c=>t[c]===void 0?(t[c]=Alpine.reactive({state:!1}),t[c].state):!!t[c].state}}function WF(e){e.directive("combobox",(t,n,{evaluate:r})=>{n.value==="input"?KF(t,e):n.value==="button"?zF(t,e):n.value==="label"?qF(t,e):n.value==="options"?jF(t,e):n.value==="option"?GF(t,e):HF(t,e)}).before("bind"),e.magic("combobox",t=>{let n=e.$data(t);return{get value(){return n.__value},get isOpen(){return n.__isOpen},get isDisabled(){return n.__isDisabled},get activeOption(){var s;let r=(s=n.__context)==null?void 0:s.getActiveItem();return r&&r.value},get activeIndex(){var s;let r=(s=n.__context)==null?void 0:s.getActiveItem();return r?Object.values(e.raw(n.__context.items)).findIndex(o=>e.raw(r)==e.raw(o)):null}}}),e.magic("comboboxOption",t=>{let n=e.$data(t),r=e.findClosest(t,s=>s.hasAttribute("x-combobox:option"));if(!r)throw"No x-combobox:option directive found...";return{get isActive(){return n.__context.isActiveKey(e.$data(r).__optionKey)},get isSelected(){return n.__isSelected(r)},get isDisabled(){return n.__context.isDisabled(e.$data(r).__optionKey)}}})}function HF(e,t){t.bind(e,{"x-id"(){return["alpine-combobox-button","alpine-combobox-options","alpine-combobox-label"]},"x-modelable":"__value","x-data"(){return{__ready:!1,__value:null,__isOpen:!1,__context:void 0,__isMultiple:void 0,__isStatic:!1,__isDisabled:void 0,__displayValue:void 0,__compareBy:null,__inputName:null,__isTyping:!1,__hold:!1,init(){this.__isMultiple=t.extractProp(e,"multiple",!1),this.__isDisabled=t.extractProp(e,"disabled",!1),this.__inputName=t.extractProp(e,"name",null),this.__nullable=t.extractProp(e,"nullable",!1),this.__compareBy=t.extractProp(e,"by"),this.__context=rb(t,this.__isMultiple,"vertical",()=>this.__activateSelectedOrFirst());let n=t.extractProp(e,"default-value",this.__isMultiple?[]:null);this.__value=n,queueMicrotask(()=>{t.effect(()=>{this.__inputName&&ib(t,this.$el,this.__inputName,this.__value)}),t.effect(()=>!this.__isMultiple&&this.__resetInput())})},__startTyping(){this.__isTyping=!0},__stopTyping(){this.__isTyping=!1},__resetInput(){let n=this.$refs.__input;if(!n)return;let r=this.__getCurrentValue();n.value=r},__getCurrentValue(){return!this.$refs.__input||!this.__value?"":this.__displayValue?this.__displayValue(this.__value):typeof this.__value=="string"?this.__value:""},__open(){if(this.__isOpen)return;this.__isOpen=!0;let n=this.$refs.__input;if(n){let s=n.value,{selectionStart:o,selectionEnd:u,selectionDirection:c}=n;n.value="",n.dispatchEvent(new Event("change")),n.value=s,c!==null?n.setSelectionRange(o,u,c):n.setSelectionRange(o,u)}(s=>requestAnimationFrame(()=>requestAnimationFrame(s)))(()=>{this.$refs.__input.focus({preventScroll:!0}),this.__activateSelectedOrFirst()})},__close(){this.__isOpen=!1,this.__context.deactivate()},__activateSelectedOrFirst(n=!0){if(!this.__isOpen||this.__context.hasActive()&&this.__context.wasActivatedByKeyPress())return;let r;if(this.__isMultiple){let o=this.__context.getItemsByValues(this.__value);r=o.length?o[0].value:null}else r=this.__value;let s=null;if(n&&r&&(s=this.__context.getItemByValue(r)),s){this.__context.activateAndScrollToKey(s.key);return}this.__context.activateAndScrollToKey(this.__context.firstKey())},__selectActive(){let n=this.__context.getActiveItem();n&&this.__toggleSelected(n.value)},__selectOption(n){let r=this.__context.getItemByEl(n);r&&this.__toggleSelected(r.value)},__isSelected(n){let r=this.__context.getItemByEl(n);return!r||r.value===null||r.value===void 0?!1:this.__hasSelected(r.value)},__toggleSelected(n){if(!this.__isMultiple){this.__value=n;return}let r=this.__value.findIndex(s=>this.__compare(s,n));r===-1?this.__value.push(n):this.__value.splice(r,1)},__hasSelected(n){return this.__isMultiple?this.__value.some(r=>this.__compare(r,n)):this.__compare(this.__value,n)},__compare(n,r){let s=this.__compareBy;if(s||(s=(o,u)=>t.raw(o)===t.raw(u)),typeof s=="string"){let o=s;s=(u,c)=>!u||typeof u!="object"||!c||typeof c!="object"?t.raw(u)===t.raw(c):u[o]===c[o]}return s(n,r)}}},"@mousedown.window"(n){!this.$refs.__input.contains(n.target)&&!this.$refs.__button.contains(n.target)&&!this.$refs.__options.contains(n.target)&&(this.__close(),this.__resetInput())}})}function KF(e,t){t.bind(e,{"x-ref":"__input",":id"(){return this.$id("alpine-combobox-input")},role:"combobox",tabindex:"0","aria-autocomplete":"list",async":aria-controls"(){return await ob(()=>this.$refs.__options&&this.$refs.__options.id)},":aria-expanded"(){return this.$data.__isDisabled?void 0:this.$data.__isOpen},":aria-multiselectable"(){return this.$data.__isMultiple?!0:void 0},":aria-activedescendant"(){if(!this.$data.__context.hasActive())return;let n=this.$data.__context.getActiveItem();return n?n.el.id:null},":aria-labelledby"(){return this.$refs.__label?this.$refs.__label.id:this.$refs.__button?this.$refs.__button.id:null},"x-init"(){let n=t.extractProp(this.$el,"display-value");n&&(this.$data.__displayValue=n)},"@input.stop"(n){this.$data.__isTyping&&(this.$data.__open(),this.$dispatch("change"))},"@blur"(){this.$data.__stopTyping(!1)},"@keydown"(n){queueMicrotask(()=>this.$data.__context.activateByKeyEvent(n,!1,()=>this.$data.__isOpen,()=>this.$data.__open(),r=>this.$data.__isTyping=r))},"@keydown.enter.prevent.stop"(){this.$data.__selectActive(),this.$data.__stopTyping(),this.$data.__isMultiple||(this.$data.__close(),this.$data.__resetInput())},"@keydown.escape.prevent"(n){this.$data.__static||n.stopPropagation(),this.$data.__stopTyping(),this.$data.__close(),this.$data.__resetInput()},"@keydown.tab"(){this.$data.__stopTyping(),this.$data.__isOpen&&this.$data.__close(),this.$data.__resetInput()},"@keydown.backspace"(n){if(this.$data.__isMultiple||!this.$data.__nullable)return;let r=n.target;requestAnimationFrame(()=>{if(r.value===""){this.$data.__value=null;let s=this.$refs.__options;s&&(s.scrollTop=0),this.$data.__context.deactivate()}})}})}function zF(e,t){t.bind(e,{"x-ref":"__button",":id"(){return this.$id("alpine-combobox-button")},"aria-haspopup":"true",async":aria-controls"(){return await ob(()=>this.$refs.__options&&this.$refs.__options.id)},":aria-labelledby"(){return this.$refs.__label?[this.$refs.__label.id,this.$el.id].join(" "):null},":aria-expanded"(){return this.$data.__isDisabled?null:this.$data.__isOpen},":disabled"(){return this.$data.__isDisabled},tabindex:"-1","x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(n){this.$data.__isDisabled||(this.$data.__isOpen?(this.$data.__close(),this.$data.__resetInput()):(n.preventDefault(),this.$data.__open()),this.$nextTick(()=>this.$refs.__input.focus({preventScroll:!0})))}})}function qF(e,t){t.bind(e,{"x-ref":"__label",":id"(){return this.$id("alpine-combobox-label")},"@click"(){this.$refs.__input.focus({preventScroll:!0})}})}function jF(e,t){t.bind(e,{"x-ref":"__options",":id"(){return this.$id("alpine-combobox-options")},role:"listbox",":aria-labelledby"(){return this.$refs.__label?this.$refs.__label.id:this.$refs.__button?this.$refs.__button.id:null},"x-init"(){this.$data.__isStatic=t.bound(this.$el,"static",!1),t.bound(this.$el,"hold")&&(this.$data.__hold=!0)},"x-show"(){return this.$data.__isStatic?!0:this.$data.__isOpen}})}function GF(e,t){t.bind(e,{"x-id"(){return["alpine-combobox-option"]},":id"(){return this.$id("alpine-combobox-option")},role:"option",":tabindex"(){return this.$comboboxOption.isDisabled?void 0:"-1"},"x-effect"(){this.$comboboxOption.isSelected?e.setAttribute("aria-selected",!0):e.setAttribute("aria-selected",!1)},":aria-disabled"(){return this.$comboboxOption.isDisabled},"x-data"(){return{__optionKey:null,init(){this.__optionKey=(Math.random()+1).toString(36).substring(7);let n=t.extractProp(this.$el,"value"),r=t.extractProp(this.$el,"disabled",!1,!1);this.__context.registerItem(this.__optionKey,this.$el,n,r)},destroy(){this.__context.unregisterItem(this.__optionKey)}}},"@click"(){this.$comboboxOption.isDisabled||(this.__selectOption(this.$el),this.__isMultiple||(this.__close(),this.__resetInput()),this.$nextTick(()=>this.$refs.__input.focus({preventScroll:!0})))},"@mouseenter"(n){this.__context.activateEl(this.$el)},"@mousemove"(n){this.__context.isActiveEl(this.$el)||this.__context.activateEl(this.$el)},"@mouseleave"(n){this.__hold||this.__context.deactivate()}})}function ob(e){return new Promise(t=>queueMicrotask(()=>t(e())))}function VF(e){e.directive("dialog",(t,n)=>{n.value==="overlay"?JF(t,e):n.value==="panel"?XF(t,e):n.value==="title"?ZF(t,e):n.value==="description"?QF(t,e):YF(t,e)}),e.magic("dialog",t=>{let n=e.$data(t);return{get open(){return n.__isOpen},get isOpen(){return n.__isOpen},close(){n.__close()}}})}function YF(e,t){t.bind(e,{"x-data"(){return{init(){t.bound(e,"open")!==void 0&&t.effect(()=>{this.__isOpenState=t.bound(e,"open")}),t.bound(e,"initial-focus")!==void 0&&this.$watch("__isOpenState",()=>{this.__isOpenState&&setTimeout(()=>{t.bound(e,"initial-focus").focus()},0)})},__isOpenState:!1,__close(){t.bound(e,"open")?this.$dispatch("close"):this.__isOpenState=!1},get __isOpen(){return t.bound(e,"static",this.__isOpenState)}}},"x-modelable":"__isOpenState","x-id"(){return["alpine-dialog-title","alpine-dialog-description"]},"x-show"(){return this.__isOpen},"x-trap.inert.noscroll"(){return this.__isOpen},"@keydown.escape"(){this.__close()},":aria-labelledby"(){return this.$id("alpine-dialog-title")},":aria-describedby"(){return this.$id("alpine-dialog-description")},role:"dialog","aria-modal":"true"})}function JF(e,t){t.bind(e,{"x-init"(){this.$data.__isOpen===void 0&&console.warn('"x-dialog:overlay" is missing a parent element with "x-dialog".')},"x-show"(){return this.__isOpen},"@click.prevent.stop"(){this.$data.__close()}})}function XF(e,t){t.bind(e,{"@click.outside"(){this.$data.__close()},"x-show"(){return this.$data.__isOpen}})}function ZF(e,t){t.bind(e,{"x-init"(){this.$data.__isOpen===void 0&&console.warn('"x-dialog:title" is missing a parent element with "x-dialog".')},":id"(){return this.$id("alpine-dialog-title")}})}function QF(e,t){t.bind(e,{":id"(){return this.$id("alpine-dialog-description")}})}function eB(e){e.directive("disclosure",(t,n)=>{n.value?n.value==="panel"?rB(t,e):n.value==="button"&&nB(t,e):tB(t,e)}).before("bind"),e.magic("disclosure",t=>{let n=e.$data(t);return{get isOpen(){return n.__isOpen},close(){n.__close()}}})}function tB(e,t){t.bind(e,{"x-modelable":"__isOpen","x-data"(){return{__determineDefaultOpenState(){let n=!!t.bound(this.$el,"default-open",!1);n&&(this.__isOpen=n)},__isOpen:!1,__close(){this.__isOpen=!1},__toggle(){this.__isOpen=!this.__isOpen}}},"x-id"(){return["alpine-disclosure-panel"]}})}function nB(e,t){t.bind(e,{"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(){this.$data.__isOpen=!this.$data.__isOpen},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.$id("alpine-disclosure-panel")},"@keydown.space.prevent.stop"(){this.$data.__toggle()},"@keydown.enter.prevent.stop"(){this.$data.__toggle()},"@keyup.space.prevent"(){}})}function rB(e,t){t.bind(e,{"x-init"(){this.$data.__determineDefaultOpenState()},"x-show"(){return this.$data.__isOpen},":id"(){return this.$data.$id("alpine-disclosure-panel")}})}function iB(e){e.directive("listbox",(t,n)=>{n.value?n.value==="label"?oB(t,e):n.value==="button"?aB(t,e):n.value==="options"?uB(t,e):n.value==="option"&&cB(t,e):sB(t,e)}).before("bind"),e.magic("listbox",t=>{let n=e.$data(t);return{get selected(){return n.__value},get active(){let r=n.__context.getActiveItem();return r&&r.value},get value(){return n.__value},get isOpen(){return n.__isOpen},get isDisabled(){return n.__isDisabled},get activeOption(){let r=n.__context.getActiveItem();return r&&r.value},get activeIndex(){let r=n.__context.getActiveItem();return r&&r.key}}}),e.magic("listboxOption",t=>{let n=e.$data(t),r=e.findClosest(t,s=>s.hasAttribute("x-listbox:option"));if(!r)throw"No x-listbox:option directive found...";return{get isActive(){return n.__context.isActiveKey(e.$data(r).__optionKey)},get isSelected(){return n.__isSelected(r)},get isDisabled(){return n.__context.isDisabled(e.$data(r).__optionKey)}}})}function sB(e,t){t.bind(e,{"x-id"(){return["alpine-listbox-button","alpine-listbox-options","alpine-listbox-label"]},"x-modelable":"__value","x-data"(){return{__ready:!1,__value:null,__isOpen:!1,__context:void 0,__isMultiple:void 0,__isStatic:!1,__isDisabled:void 0,__compareBy:null,__inputName:null,__orientation:"vertical",__hold:!1,init(){this.__isMultiple=t.extractProp(e,"multiple",!1),this.__isDisabled=t.extractProp(e,"disabled",!1),this.__inputName=t.extractProp(e,"name",null),this.__compareBy=t.extractProp(e,"by"),this.__orientation=t.extractProp(e,"horizontal",!1)?"horizontal":"vertical",this.__context=rb(t,this.__isMultiple,this.__orientation,()=>this.__activateSelectedOrFirst());let n=t.extractProp(e,"default-value",this.__isMultiple?[]:null);this.__value=n,queueMicrotask(()=>{t.effect(()=>{this.__inputName&&ib(t,this.$el,this.__inputName,this.__value)}),t.effect(()=>{this.__resetInput()})})},__resetInput(){let n=this.$refs.__input;if(!n)return;let r=this.$data.__getCurrentValue();n.value=r},__getCurrentValue(){return!this.$refs.__input||!this.__value?"":this.$data.__displayValue&&this.__value!==void 0?this.$data.__displayValue(this.__value):typeof this.__value=="string"?this.__value:""},__open(){if(this.__isOpen)return;this.__isOpen=!0,this.__activateSelectedOrFirst(),(r=>requestAnimationFrame(()=>requestAnimationFrame(r)))(()=>this.$refs.__options.focus({preventScroll:!0}))},__close(){this.__isOpen=!1,this.__context.deactivate(),this.$nextTick(()=>this.$refs.__button.focus({preventScroll:!0}))},__activateSelectedOrFirst(n=!0){if(!this.__isOpen)return;if(this.__context.getActiveKey()){this.__context.activateAndScrollToKey(this.__context.getActiveKey());return}let r;if(this.__isMultiple?r=this.__value.find(s=>!!this.__context.getItemByValue(s)):r=this.__value,n&&r){let s=this.__context.getItemByValue(r);s&&this.__context.activateAndScrollToKey(s.key)}else this.__context.activateAndScrollToKey(this.__context.firstKey())},__selectActive(){let n=this.$data.__context.getActiveItem();n&&this.__toggleSelected(n.value)},__selectOption(n){let r=this.__context.getItemByEl(n);r&&this.__toggleSelected(r.value)},__isSelected(n){let r=this.__context.getItemByEl(n);return!r||r.value===null||r.value===void 0?!1:this.__hasSelected(r.value)},__toggleSelected(n){if(!this.__isMultiple){this.__value=n;return}let r=this.__value.findIndex(s=>this.__compare(s,n));r===-1?this.__value.push(n):this.__value.splice(r,1)},__hasSelected(n){return this.__isMultiple?this.__value.some(r=>this.__compare(r,n)):this.__compare(this.__value,n)},__compare(n,r){let s=this.__compareBy;if(s||(s=(o,u)=>t.raw(o)===t.raw(u)),typeof s=="string"){let o=s;s=(u,c)=>!u||typeof u!="object"||!c||typeof c!="object"?t.raw(u)===t.raw(c):u[o]===c[o]}return s(n,r)}}}})}function oB(e,t){t.bind(e,{"x-ref":"__label",":id"(){return this.$id("alpine-listbox-label")},"@click"(){this.$refs.__button.focus({preventScroll:!0})}})}function aB(e,t){t.bind(e,{"x-ref":"__button",":id"(){return this.$id("alpine-listbox-button")},"aria-haspopup":"true",":aria-labelledby"(){return this.$id("alpine-listbox-label")},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.__isOpen&&this.$id("alpine-listbox-options")},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(){this.$data.__open()},"@keydown"(n){["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n.key)&&(n.stopPropagation(),n.preventDefault(),this.$data.__open())},"@keydown.space.stop.prevent"(){this.$data.__open()},"@keydown.enter.stop.prevent"(){this.$data.__open()}})}function uB(e,t){t.bind(e,{"x-ref":"__options",":id"(){return this.$id("alpine-listbox-options")},role:"listbox",tabindex:"0",":aria-orientation"(){return this.$data.__orientation},":aria-labelledby"(){return this.$id("alpine-listbox-button")},":aria-activedescendant"(){if(!this.$data.__context.hasActive())return;let n=this.$data.__context.getActiveItem();return n?n.el.id:null},"x-init"(){this.$data.__isStatic=t.extractProp(this.$el,"static",!1),t.bound(this.$el,"hold")&&(this.$data.__hold=!0)},"x-show"(){return this.$data.__isStatic?!0:this.$data.__isOpen},"x-trap"(){return this.$data.__isOpen},"@click.outside"(){this.$data.__close()},"@keydown.escape.stop.prevent"(){this.$data.__close()},"@focus"(){this.$data.__activateSelectedOrFirst()},"@keydown"(n){queueMicrotask(()=>this.$data.__context.activateByKeyEvent(n,!0,()=>this.$data.__isOpen,()=>this.$data.__open(),()=>{}))},"@keydown.enter.stop.prevent"(){this.$data.__selectActive(),this.$data.__isMultiple||this.$data.__close()},"@keydown.space.stop.prevent"(){this.$data.__selectActive(),this.$data.__isMultiple||this.$data.__close()}})}function cB(e,t){t.bind(e,()=>({"x-id"(){return["alpine-listbox-option"]},":id"(){return this.$id("alpine-listbox-option")},role:"option",":tabindex"(){return this.$listboxOption.isDisabled?!1:"-1"},":aria-selected"(){return this.$listboxOption.isSelected},"x-data"(){return{__optionKey:null,init(){this.__optionKey=(Math.random()+1).toString(36).substring(7);let n=t.extractProp(e,"value"),r=t.extractProp(e,"disabled",!1,!1);this.$data.__context.registerItem(this.__optionKey,e,n,r)},destroy(){this.$data.__context.unregisterItem(this.__optionKey)}}},"@click"(){this.$listboxOption.isDisabled||(this.$data.__selectOption(e),this.$data.__isMultiple||this.$data.__close())},"@mouseenter"(){this.$data.__context.activateEl(e)},"@mouseleave"(){this.$data.__hold||this.$data.__context.deactivate()}}))}function lB(e){e.directive("popover",(t,n)=>{n.value?n.value==="overlay"?_B(t,e):n.value==="button"?dB(t,e):n.value==="panel"?hB(t,e):n.value==="group"&&pB(t,e):fB(t,e)}),e.magic("popover",t=>{let n=e.$data(t);return{get isOpen(){return n.__isOpenState},open(){n.__open()},close(){n.__close()}}})}function fB(e,t){t.bind(e,{"x-id"(){return["alpine-popover-button","alpine-popover-panel"]},"x-modelable":"__isOpenState","x-data"(){return{init(){this.$data.__groupEl&&this.$data.__groupEl.addEventListener("__close-others",({detail:n})=>{n.el.isSameNode(this.$el)||this.__close(!1)})},__buttonEl:void 0,__panelEl:void 0,__isStatic:!1,get __isOpen(){return this.__isStatic?!0:this.__isOpenState},__isOpenState:!1,__open(){this.__isOpenState=!0,this.$dispatch("__close-others",{el:this.$el})},__toggle(){this.__isOpenState?this.__close():this.__open()},__close(n){this.__isStatic||(this.__isOpenState=!1,n!==!1&&(n=n||this.$data.__buttonEl,!document.activeElement.isSameNode(n)&&setTimeout(()=>n.focus())))},__contains(n,r){return!!t.findClosest(r,s=>s.isSameNode(n))}}},"@keydown.escape.stop.prevent"(){this.__close()},"@focusin.window"(){if(this.$data.__groupEl){this.$data.__contains(this.$data.__groupEl,document.activeElement)||this.$data.__close(!1);return}this.$data.__contains(this.$el,document.activeElement)||this.$data.__close(!1)}})}function dB(e,t){t.bind(e,{"x-ref":"button",":id"(){return this.$id("alpine-popover-button")},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.__isOpen&&this.$id("alpine-popover-panel")},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button"),this.$data.__buttonEl=this.$el},"@click"(){this.$data.__toggle()},"@keydown.tab"(n){if(!n.shiftKey&&this.$data.__isOpen){let r=this.$focus.within(this.$data.__panelEl).getFirst();r&&(n.preventDefault(),n.stopPropagation(),this.$focus.focus(r))}},"@keyup.tab"(n){if(this.$data.__isOpen){let r=this.$focus.previouslyFocused();if(!r)return;!this.$data.__buttonEl.contains(r)&&!this.$data.__panelEl.contains(r)&&r&&this.$el.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING&&(n.preventDefault(),n.stopPropagation(),this.$focus.within(this.$data.__panelEl).last())}},"@keydown.space.stop.prevent"(){this.$data.__toggle()},"@keydown.enter.stop.prevent"(){this.$data.__toggle()},"@keyup.space.stop.prevent"(){}})}function hB(e,t){t.bind(e,{"x-init"(){this.$data.__isStatic=t.bound(this.$el,"static",!1),this.$data.__panelEl=this.$el},"x-effect"(){this.$data.__isOpen&&t.bound(e,"focus")&&this.$focus.first()},"x-ref":"panel",":id"(){return this.$id("alpine-popover-panel")},"x-show"(){return this.$data.__isOpen},"@mousedown.window"(n){this.$data.__isOpen&&(this.$data.__contains(this.$data.__buttonEl,n.target)||this.$data.__contains(this.$el,n.target)||this.$focus.focusable(n.target)||this.$data.__close())},"@keydown.tab"(n){if(n.shiftKey&&this.$focus.isFirst(n.target))n.preventDefault(),n.stopPropagation(),t.bound(e,"focus")?this.$data.__close():this.$data.__buttonEl.focus();else if(!n.shiftKey&&this.$focus.isLast(n.target)){n.preventDefault(),n.stopPropagation();let r=this.$focus.within(document).all(),s=r.indexOf(this.$data.__buttonEl);r.splice(s+1).filter(u=>!this.$el.contains(u))[0].focus(),t.bound(e,"focus")&&this.$data.__close(!1)}}})}function pB(e,t){t.bind(e,{"x-ref":"container","x-data"(){return{__groupEl:this.$el}}})}function _B(e,t){t.bind(e,{"x-show"(){return this.$data.__isOpen}})}function mB(e){e.directive("menu",(t,n)=>{n.value?n.value==="items"?vB(t,e):n.value==="item"?bB(t,e):n.value==="button"&&yB(t,e):gB(t,e)}).before("bind"),e.magic("menuItem",t=>{let n=e.$data(t);return{get isActive(){return n.__activeEl==n.__itemEl},get isDisabled(){return n.__itemEl.__isDisabled.value}}})}function gB(e,t){t.bind(e,{"x-id"(){return["alpine-menu-button","alpine-menu-items"]},"x-modelable":"__isOpen","x-data"(){return{__itemEls:[],__activeEl:null,__isOpen:!1,__open(n){this.__isOpen=!0,(s=>requestAnimationFrame(()=>requestAnimationFrame(s)))(()=>{this.$refs.__items.focus({preventScroll:!0}),n&&n(t,this.$refs.__items,s=>s.__activate())})},__close(n=!0){this.__isOpen=!1,n&&this.$nextTick(()=>this.$refs.__button.focus({preventScroll:!0}))},__contains(n,r){return!!t.findClosest(r,s=>s.isSameNode(n))}}},"@focusin.window"(){this.$data.__contains(this.$el,document.activeElement)||this.$data.__close(!1)}})}function yB(e,t){t.bind(e,{"x-ref":"__button","aria-haspopup":"true",":aria-labelledby"(){return this.$id("alpine-menu-label")},":id"(){return this.$id("alpine-menu-button")},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.__isOpen&&this.$id("alpine-menu-items")},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(){this.$data.__open()},"@keydown.down.stop.prevent"(){this.$data.__open()},"@keydown.up.stop.prevent"(){this.$data.__open(nn.last)},"@keydown.space.stop.prevent"(){this.$data.__open()},"@keydown.enter.stop.prevent"(){this.$data.__open()}})}function vB(e,t){t.bind(e,{"x-ref":"__items","aria-orientation":"vertical",role:"menu",":id"(){return this.$id("alpine-menu-items")},":aria-labelledby"(){return this.$id("alpine-menu-button")},":aria-activedescendant"(){return this.$data.__activeEl&&this.$data.__activeEl.id},"x-show"(){return this.$data.__isOpen},tabindex:"0","@click.outside"(){this.$data.__close()},"@keydown"(n){nn.search(t,this.$refs.__items,n.key,r=>r.__activate())},"@keydown.down.stop.prevent"(){this.$data.__activeEl?nn.next(t,this.$data.__activeEl,n=>n.__activate()):nn.first(t,this.$refs.__items,n=>n.__activate())},"@keydown.up.stop.prevent"(){this.$data.__activeEl?nn.previous(t,this.$data.__activeEl,n=>n.__activate()):nn.last(t,this.$refs.__items,n=>n.__activate())},"@keydown.home.stop.prevent"(){nn.first(t,this.$refs.__items,n=>n.__activate())},"@keydown.end.stop.prevent"(){nn.last(t,this.$refs.__items,n=>n.__activate())},"@keydown.page-up.stop.prevent"(){nn.first(t,this.$refs.__items,n=>n.__activate())},"@keydown.page-down.stop.prevent"(){nn.last(t,this.$refs.__items,n=>n.__activate())},"@keydown.escape.stop.prevent"(){this.$data.__close()},"@keydown.space.stop.prevent"(){this.$data.__activeEl&&this.$data.__activeEl.click()},"@keydown.enter.stop.prevent"(){this.$data.__activeEl&&this.$data.__activeEl.click()},"@keyup.space.prevent"(){}})}function bB(e,t){t.bind(e,()=>({"x-data"(){return{__itemEl:this.$el,init(){let n=t.raw(this.$data.__itemEls),r=!1;for(let s=0;s<n.length;s++)if(n[s].compareDocumentPosition(this.$el)&Node.DOCUMENT_POSITION_PRECEDING){n.splice(s,0,this.$el),r=!0;break}r||n.push(this.$el),this.$el.__activate=()=>{this.$data.__activeEl=this.$el,this.$el.scrollIntoView({block:"nearest"})},this.$el.__deactivate=()=>{this.$data.__activeEl=null},this.$el.__isDisabled=t.reactive({value:!1}),queueMicrotask(()=>{this.$el.__isDisabled.value=t.bound(this.$el,"disabled",!1)})},destroy(){let n=this.$data.__itemEls;n.splice(n.indexOf(this.$el),1)}}},"x-id"(){return["alpine-menu-item"]},":id"(){return this.$id("alpine-menu-item")},":tabindex"(){return this.__itemEl.__isDisabled.value?!1:"-1"},role:"menuitem","@mousemove"(){this.__itemEl.__isDisabled.value||this.$menuItem.isActive||this.__itemEl.__activate()},"@mouseleave"(){this.__itemEl.__isDisabled.value||!this.$menuItem.isActive||this.__itemEl.__deactivate()}}))}var nn={first(e,t,n=s=>s,r=()=>{}){let s=e.$data(t).__itemEls[0];return s?s.tagName.toLowerCase()==="template"?this.next(e,s,n):s.__isDisabled.value?this.next(e,s,n):n(s):r()},last(e,t,n=s=>s,r=()=>{}){let s=e.$data(t).__itemEls.slice(-1)[0];return s?s.__isDisabled.value?this.previous(e,s,n):n(s):r()},next(e,t,n=s=>s,r=()=>{}){if(!t)return r();let s=e.$data(t).__itemEls,o=s[s.indexOf(t)+1];return o?o.__isDisabled.value||o.tagName.toLowerCase()==="template"?this.next(e,o,n,r):n(o):r()},previous(e,t,n=s=>s,r=()=>{}){if(!t)return r();let s=e.$data(t).__itemEls,o=s[s.indexOf(t)-1];return o?o.__isDisabled.value||o.tagName.toLowerCase()==="template"?this.previous(e,o,n,r):n(o):r()},searchQuery:"",debouncedClearSearch:void 0,clearSearch(e){this.debouncedClearSearch||(this.debouncedClearSearch=e.debounce(function(){this.searchQuery=""},350)),this.debouncedClearSearch()},search(e,t,n,r){if(n.length>1)return;this.searchQuery+=n;let o=e.raw(e.$data(t).__itemEls).find(u=>u.textContent.trim().toLowerCase().startsWith(this.searchQuery));o&&!o.__isDisabled.value&&r(o),this.clearSearch(e)}};function SB(e){e.directive("switch",(t,n)=>{n.value==="group"?wB(t,e):n.value==="label"?xB(t,e):n.value==="description"?IB(t,e):EB(t,e)}).before("bind"),e.magic("switch",t=>{let n=e.$data(t);return{get isChecked(){return n.__value===!0}}})}function wB(e,t){t.bind(e,{"x-id"(){return["alpine-switch-label","alpine-switch-description"]},"x-data"(){return{__hasLabel:!1,__hasDescription:!1,__switchEl:void 0}}})}function EB(e,t){t.bind(e,{"x-modelable":"__value","x-data"(){return{init(){queueMicrotask(()=>{this.__value=t.bound(this.$el,"default-checked",!1),this.__inputName=t.bound(this.$el,"name",!1),this.__inputValue=t.bound(this.$el,"value","on"),this.__inputId="alpine-switch-"+Date.now()})},__value:void 0,__inputName:void 0,__inputValue:void 0,__inputId:void 0,__toggle(){this.__value=!this.__value}}},"x-effect"(){let n=this.__value;if(!this.__inputName)return;let r=this.$el.nextElementSibling;if(r&&String(r.id)===String(this.__inputId)&&r.remove(),n){let s=document.createElement("input");s.type="hidden",s.value=this.__inputValue,s.name=this.__inputName,s.id=this.__inputId,this.$el.after(s)}},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button"),this.$data.__switchEl=this.$el},role:"switch",tabindex:"0",":aria-checked"(){return!!this.__value},":aria-labelledby"(){return this.$data.__hasLabel&&this.$id("alpine-switch-label")},":aria-describedby"(){return this.$data.__hasDescription&&this.$id("alpine-switch-description")},"@click.prevent"(){this.__toggle()},"@keyup"(n){n.key!=="Tab"&&n.preventDefault(),n.key===" "&&this.__toggle()},"@keypress.prevent"(){}})}function xB(e,t){t.bind(e,{"x-init"(){this.$data.__hasLabel=!0},":id"(){return this.$id("alpine-switch-label")},"@click"(){this.$data.__switchEl.click(),this.$data.__switchEl.focus({preventScroll:!0})}})}function IB(e,t){t.bind(e,{"x-init"(){this.$data.__hasDescription=!0},":id"(){return this.$id("alpine-switch-description")}})}function TB(e){e.directive("radio",(t,n)=>{n.value?n.value==="option"?OB(t,e):n.value==="label"?RB(t,e):n.value==="description"&&kB(t,e):CB(t,e)}).before("bind"),e.magic("radioOption",t=>{let n=e.$data(t);return{get isActive(){return n.__option===n.__active},get isChecked(){return n.__option===n.__value},get isDisabled(){let r=n.__disabled;return n.__rootDisabled?!0:r}}})}function CB(e,t){t.bind(e,{"x-modelable":"__value","x-data"(){return{init(){queueMicrotask(()=>{this.__rootDisabled=t.bound(e,"disabled",!1),this.__value=t.bound(this.$el,"default-value",!1),this.__inputName=t.bound(this.$el,"name",!1),this.__inputId="alpine-radio-"+Date.now()}),this.$nextTick(()=>{let n=document.createTreeWalker(this.$el,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:r.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},!1);for(;n.nextNode();)n.currentNode.setAttribute("role","none")})},__value:void 0,__active:void 0,__rootEl:this.$el,__optionValues:[],__disabledOptions:new Set,__optionElsByValue:new Map,__hasLabel:!1,__hasDescription:!1,__rootDisabled:!1,__inputName:void 0,__inputId:void 0,__change(n){this.__rootDisabled||(this.__value=n)},__addOption(n,r,s){let o=t.raw(this.__optionValues),u=o.map(f=>this.__optionElsByValue.get(f)),c=!1;for(let f=0;f<u.length;f++)if(u[f].compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING){o.splice(f,0,n),this.__optionElsByValue.set(n,r),c=!0;break}c||(o.push(n),this.__optionElsByValue.set(n,r)),s&&this.__disabledOptions.add(n)},__isFirstOption(n){return this.__optionValues.indexOf(n)===0},__setActive(n){this.__active=n},__focusOptionNext(){let n=this.__active,r=this.__optionValues.filter(o=>!this.__disabledOptions.has(o)),s=r[this.__optionValues.indexOf(n)+1];s=s||r[0],this.__optionElsByValue.get(s).focus(),this.__change(s)},__focusOptionPrev(){let n=this.__active,r=this.__optionValues.filter(o=>!this.__disabledOptions.has(o)),s=r[r.indexOf(n)-1];s=s||r.slice(-1)[0],this.__optionElsByValue.get(s).focus(),this.__change(s)}}},"x-effect"(){let n=this.__value;if(!this.__inputName)return;let r=this.$el.nextElementSibling;if(r&&String(r.id)===String(this.__inputId)&&r.remove(),n){let s=document.createElement("input");s.type="hidden",s.value=n,s.name=this.__inputName,s.id=this.__inputId,this.$el.after(s)}},role:"radiogroup","x-id"(){return["alpine-radio-label","alpine-radio-description"]},":aria-labelledby"(){return this.__hasLabel&&this.$id("alpine-radio-label")},":aria-describedby"(){return this.__hasDescription&&this.$id("alpine-radio-description")},"@keydown.up.prevent.stop"(){this.__focusOptionPrev()},"@keydown.left.prevent.stop"(){this.__focusOptionPrev()},"@keydown.down.prevent.stop"(){this.__focusOptionNext()},"@keydown.right.prevent.stop"(){this.__focusOptionNext()}})}function OB(e,t){t.bind(e,{"x-data"(){return{init(){queueMicrotask(()=>{this.__disabled=t.bound(e,"disabled",!1),this.__option=t.bound(e,"value"),this.$data.__addOption(this.__option,this.$el,this.__disabled)})},__option:void 0,__disabled:!1,__hasLabel:!1,__hasDescription:!1}},"x-id"(){return["alpine-radio-label","alpine-radio-description"]},role:"radio",":aria-checked"(){return this.$radioOption.isChecked},":aria-disabled"(){return this.$radioOption.isDisabled},":aria-labelledby"(){return this.__hasLabel&&this.$id("alpine-radio-label")},":aria-describedby"(){return this.__hasDescription&&this.$id("alpine-radio-description")},":tabindex"(){return this.$radioOption.isDisabled?-1:this.$radioOption.isChecked||!this.$data.__value&&this.$data.__isFirstOption(this.$data.__option)?0:-1},"@click"(){this.$radioOption.isDisabled||(this.$data.__change(this.$data.__option),this.$el.focus())},"@focus"(){this.$radioOption.isDisabled||this.$data.__setActive(this.$data.__option)},"@blur"(){this.$data.__active===this.$data.__option&&this.$data.__setActive(void 0)},"@keydown.space.stop.prevent"(){this.$data.__change(this.$data.__option)}})}function RB(e,t){t.bind(e,{"x-init"(){this.$data.__hasLabel=!0},":id"(){return this.$id("alpine-radio-label")}})}function kB(e,t){t.bind(e,{"x-init"(){this.$data.__hasDescription=!0},":id"(){return this.$id("alpine-radio-description")}})}function AB(e){e.directive("tabs",(t,n)=>{n.value?n.value==="list"?DB(t,e):n.value==="tab"?LB(t,e):n.value==="panels"?NB(t,e):n.value==="panel"&&$B(t,e):MB(t,e)}).before("bind"),e.magic("tab",t=>{let n=e.$data(t);return{get isSelected(){return n.__selectedIndex===n.__tabs.indexOf(n.__tabEl)},get isDisabled(){return n.__isDisabled}}}),e.magic("panel",t=>{let n=e.$data(t);return{get isSelected(){return n.__selectedIndex===n.__panels.indexOf(n.__panelEl)}}})}function MB(e,t){t.bind(e,{"x-modelable":"__selectedIndex","x-data"(){return{init(){queueMicrotask(()=>{let n=this.__selectedIndex||Number(t.bound(this.$el,"default-index",0)),r=this.__activeTabs(),s=(o,u,c)=>Math.min(Math.max(o,u),c);this.__selectedIndex=s(n,0,r.length-1),t.effect(()=>{this.__manualActivation=t.bound(this.$el,"manual",!1)})})},__tabs:[],__panels:[],__selectedIndex:null,__tabGroupEl:void 0,__manualActivation:!1,__addTab(n){this.__tabs.push(n)},__addPanel(n){this.__panels.push(n)},__selectTab(n){this.__selectedIndex=this.__tabs.indexOf(n)},__activeTabs(){return this.__tabs.filter(n=>!n.__disabled)}}}})}function DB(e,t){t.bind(e,{"x-init"(){this.$data.__tabGroupEl=this.$el}})}function LB(e,t){t.bind(e,{"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"x-data"(){return{init(){this.__tabEl=this.$el,this.$data.__addTab(this.$el),this.__tabEl.__disabled=t.bound(this.$el,"disabled",!1),this.__isDisabled=this.__tabEl.__disabled},__tabEl:void 0,__isDisabled:!1}},"@click"(){this.$el.__disabled||(this.$data.__selectTab(this.$el),this.$el.focus())},"@keydown.enter.prevent.stop"(){this.__selectTab(this.$el)},"@keydown.space.prevent.stop"(){this.__selectTab(this.$el)},"@keydown.home.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).first()},"@keydown.page-up.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).first()},"@keydown.end.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).last()},"@keydown.page-down.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).last()},"@keydown.down.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().next()},"@keydown.right.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().next()},"@keydown.up.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().prev()},"@keydown.left.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().prev()},":tabindex"(){return this.$tab.isSelected?0:-1},"@focus"(){if(this.$data.__manualActivation)this.$el.focus();else{if(this.$el.__disabled)return;this.$data.__selectTab(this.$el),this.$el.focus()}}})}function NB(e,t){t.bind(e,{})}function $B(e,t){t.bind(e,{":tabindex"(){return this.$panel.isSelected?0:-1},"x-data"(){return{init(){this.__panelEl=this.$el,this.$data.__addPanel(this.$el)},__panelEl:void 0}},"x-show"(){return this.$panel.isSelected}})}function PB(e){WF(e),VF(e),eB(e),iB(e),mB(e),SB(e),lB(e),TB(e),AB(e)}var FB=PB;Mr.plugin(rF);Mr.plugin(ZP);Mr.plugin(xF);Mr.plugin(FF);Mr.plugin(FB);window.Alpine=Mr;Mr.start();document.addEventListener("touchstart",function(){},{passive:!0});
//# sourceMappingURL=app-CruN29A_.js.map
