PageSourceSearch

https://www.averroes-elearning.com/main.js

js averroes-elearning.com collected 2026-10-01 23:47:25 UTC 180,589 bytes, 21 lines download raw bytes

vendor: 4,859 bytes, line 1
1import{a as tc,d as sc}from"./chunk-RDIEB3S2.js";import{a as Va,c as Qa}from"./chunk-BBGX55PE.js";import{a as qa,b as Ka}from"./chunk-VHEF2MKY.js";import{a as Da,b as Ir,c as $a,f as ac,g as cc,h as lc,i as uc,j as dc,l as Ar}from"./chunk-T6WUQBZQ.js";import{a as Ja,b as Xa,c as Za,d as ec,e as nc,f as rc,g as ic,h as oc}from"./chunk-XVBK7WRR.js";import{a as za}from"./chunk-JXNTFI2V.js";import{b as Ya}from"./chunk-TABYCDZQ.js";import{$b as _r,Ac as Tr,Ae as Ga,Bc as Oa,Cc as Vi,Da as ga,Dc as br,De as Wa,Ea as Me,Ec as ka,Fc as Bt,Ha as _a,Hc as Qi,Ib as Ea,Ic as Ji,Jc as Ze,K as da,Ka as Ki,Kc as La,L,Mc as an,N as fe,O as Pe,P as pa,Pc as Fa,Q as z,Qc as Ua,Rb as Ta,Sa,Sc as vr,Ta as ya,Tc as Ba,Ua as gr,Uc as Ha,Vb as ba,Xc as Ht,Yc as cn,a as p,ac as va,b as P,bc as Ia,ca as mr,cc as Aa,d as fr,da as fa,ec as Na,fc as Ra,g as sn,gc as Sr,hc as Wi,i as ca,ic as yr,j as la,ja as hr,jc as wa,ka as zi,kc as Ca,l as Mn,lc as Pa,mc as Ma,pc as O,q as ua,qc as $e,tc as xa,ua as ma,uc as Yi,ue as On,ve as ja,wa as ha,xc as Ut,ya as Ft,yc as Er,zc as xn}from"./chunk-QZHA7CGP.js";function pc(t){return new L(3e3,!1)}function Bd(){return new L(3100,!1)}function Hd(){return new L(3101,!1)}function $d(t){return new L(3001,!1)}function jd(t){return new L(3003,!1)}function Gd(t){return new L(3004,!1)}function mc(t,e){return new L(3005,!1)}function hc(){return new L(3006,!1)}function gc(){return new L(3007,!1)}function _c(t,e){return new L(3008,!1)}function Sc(t){return new L(3002,!1)}function yc(t,e,n,r,i){return new L(3010,!1)}function Ec(){return new L(3011,!1)}function Tc(){return new L(3012,!1)}function bc(){return new L(3200,!1)}function vc(){return new L(3202,!1)}function Ic(){return new L(3013,!1)}function Ac(t){return new L(3014,!1)}function Nc(t){return new L(3015,!1)}function Rc(t){return new L(3016,!1)}function wc(t,e){return new L(3404,!1)}function qd(t){return new L(3502,!1)}function Cc(t){return new L(3503,!1)}function Pc(){return new L(3300,!1)}function Mc(t){return new L(3504,!1)}function xc(t){return new L(3301,!1)}function Oc(t,e){return new L(3302,!1)}function kc(t){return new L(3303,!1)}function Dc(t,e){return new L(3400,!1)}function Lc(t){return new L(3401,!1)}function Fc(t){return new L(3402,!1)}function Uc(t,e){return new L(3505,!1)}function mt(t){switch(t.length){case 0:return new Ut;case 1:return t[0];default:return new Er(t)}}function to(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((m,g)=>{let f=g,_=m;if(g!=="offset")switch(f=t.normalizePropertyName(f,i),_){case xn:_=n.get(g);break;case $e:_=r.get(g);break;default:_=t.normalizeStyleValue(g,f,_,i);break}d.set(f,_)}),u||o.push(d),a=d,s=l}),i.length)throw qd(i);return o}function Nr(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Xi(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Xi(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Xi(n,"destroy",t)));break}}function Xi(t,e,n){let r=n.totalTime,i=!!n.disabled,o=Rr(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function Rr(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Se(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function no(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var zd=typeof document>"u"?null:document.documentElement;function wr(t){let e=t.parentNode||t.host||null;return e===zd?null:e}function Kd(t){return t.substring(1,6)=="ebkit"}var $t=null,fc=!1;function Bc(t){$t||($t=Wd()||{},fc=$t.style?"WebkitAppearance"in $t.style:!1);let e=!0;return $t.style&&!Kd(t)&&(e=t in $t.style,!e&&fc&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in $t.style)),e}function Wd(){return typeof document<"u"?document.body:null}function ro(t,e){for(;e;){if(e===t)return!0;e=wr(e)}return!1}function io(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Yd=1e3,oo="{{",Vd="}}",so="ng-enter",Cr="ng-leave",kn="ng-trigger",Dn=".ng-trigger",ao="ng-animating",Pr=".ng-animating";function et(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Zi(parseFloat(e[1]),e[2])}function Zi(t,e){switch(e){case"s":return t*Yd;default:return t}}function Ln(t,e,n){return t.hasOwnProperty("duration")?t:Qd(t,e,n)}function Qd(t,e,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof t=="string"){let a=t.match(r);if(a===null)return e.push(pc(t)),{duration:0,delay:0,easing:""};i=Zi(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Zi(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else i=t;if(!n){let a=!1,c=e.length;i<0&&(e.push(Bd()),a=!0),o<0&&(e.push(Hd()),a=!0),a&&e.splice(c,0,pc(t))}return{duration:i,delay:o,easing:s}}
vendor: 48,759 bytes, line 1
1function Hc(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function je(t,e,n){e.forEach((r,i)=>{let o=Mr(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function It(t,e){e.forEach((n,r)=>{let i=Mr(r);t.style[i]=""})}function ln(t){return Array.isArray(t)?t.length==1?t[0]:xa(t):t}function $c(t,e,n){let r=e.params||{},i=co(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push($d(o))})}var eo=new RegExp(`${oo}\\s*(.+?)\\s*${Vd}`,"g");function co(t){let e=[];if(typeof t=="string"){let n;for(;n=eo.exec(t);)e.push(n[1]);eo.lastIndex=0}return e}function un(t,e,n){let r=`${t}`,i=r.replace(eo,(o,s)=>{let a=e[s];return a==null&&(n.push(jd(s)),a=""),a.toString()});return i==r?t:i}var Jd=/-+([a-z0-9])/g;function Mr(t){return t.replace(Jd,(...e)=>e[1].toUpperCase())}function jc(t,e){return t===0||e===0}function Gc(t,e,n){if(n.size&&e.length){let r=e[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<e.length;o++){let s=e[o];i.forEach(a=>s.set(a,xr(t,a)))}}return e}function ye(t,e,n){switch(e.type){case O.Trigger:return t.visitTrigger(e,n);case O.State:return t.visitState(e,n);case O.Transition:return t.visitTransition(e,n);case O.Sequence:return t.visitSequence(e,n);case O.Group:return t.visitGroup(e,n);case O.Animate:return t.visitAnimate(e,n);case O.Keyframes:return t.visitKeyframes(e,n);case O.Style:return t.visitStyle(e,n);case O.Reference:return t.visitReference(e,n);case O.AnimateChild:return t.visitAnimateChild(e,n);case O.AnimateRef:return t.visitAnimateRef(e,n);case O.Query:return t.visitQuery(e,n);case O.Stagger:return t.visitStagger(e,n);default:throw Gd(e.type)}}function xr(t,e){return window.getComputedStyle(t)[e]}var No=(()=>{class t{validateStyleProperty(n){return Bc(n)}containsElement(n,r){return ro(n,r)}getParentElement(n){return wr(n)}query(n,r,i){return io(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,s,a=[],c){return new Ut(i,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})(),Gt=class{static NOOP=new No},qt=class{};var Xd=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Fr=class extends qt{normalizePropertyName(e,n){return Mr(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(Xd.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(mc(e,r))}return s+o}};var Ur="*";function Zd(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>ep(r,n,e)):n.push(t),n}function ep(t,e,n){if(t[0]==":"){let c=tp(t,n);if(typeof c=="function"){e.push(c);return}t=c}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(Nc(t)),e;let i=r[1],o=r[2],s=r[3];e.push(qc(i,s));let a=i==Ur&&s==Ur;o[0]=="<"&&!a&&e.push(qc(s,i))}function tp(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(Rc(t)),"* => *"}}var Or=new Set(["true","1"]),kr=new Set(["false","0"]);function qc(t,e){let n=Or.has(t)||kr.has(t),r=Or.has(e)||kr.has(e);return(i,o)=>{let s=t==Ur||t==i,a=e==Ur||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?Or.has(t):kr.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?Or.has(e):kr.has(e)),s&&a}}var el=":self",np=new RegExp(`s*${el}s*,?`,"g");function tl(t,e,n,r){return new ho(t).build(e,n,r)}var zc="",ho=class{_driver;constructor(e){this._driver=e}build(e,n,r){let i=new go(n);return this._resetContextStyleTimingState(i),ye(this,ln(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=zc,e.collectedStyles=new Map,e.collectedStyles.set(zc,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(hc()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==O.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,n))}),c.name=l}else if(a.type==O.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(gc())}),{type:O.Trigger,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{co(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&n.errors.push(_c(e.name,[...o.values()]))}return{type:O.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=ye(this,ln(e.animation),n),i=Zd(e.expr,n.errors);return{type:O.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:jt(e.options)}}visitSequence(e,n){return{type:O.Sequence,steps:e.steps.map(r=>ye(this,r,n)),options:jt(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=ye(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:O.Group,steps:o,options:jt(e.options)}}visitAnimate(e,n){let r=sp(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Yi({});if(o.type==O.Keyframes)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=Yi(l)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:O.Animate,timings:r,style:i,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===$e?r.push(a):n.errors.push(Sc(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(oo)>=0){o=!0;break}}}),{type:O.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(n.errors.push(yc(c,u.startTime,u.endTime,o,i)),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:i}),n.options&&$c(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:O.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(Ec()),r;let i=1,o=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(U=>{let B=this._makeStyleAst(U,n),W=B.offset!=null?B.offset:op(B.styles),D=0;return W!=null&&(o++,D=B.offset=W),c=c||D<0||D>1,a=a||D<l,l=D,s.push(D),B});c&&n.errors.push(Tc()),a&&n.errors.push(bc());let d=e.steps.length,m=0;o>0&&o<d?n.errors.push(vc()):o==0&&(m=i/(d-1));let g=d-1,f=n.currentTime,_=n.currentAnimateTimings,w=_.duration;return u.forEach((U,B)=>{let W=m>0?B==g?1:m*B:s[B],D=W*w;n.currentTime=f+_.delay+D,_.duration=D,this._validateStyleAst(U,n),U.offset=W,r.styles.push(U)}),r}visitReference(e,n){return{type:O.Reference,animation:ye(this,ln(e.animation),n),options:jt(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:O.AnimateChild,options:jt(e.options)}}visitAnimateRef(e,n){return{type:O.AnimateRef,animation:this.visitReference(e.animation,n),options:jt(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=rp(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Se(n.collectedStyles,n.currentQuerySelector,new Map);let a=ye(this,ln(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:O.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:jt(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(Ic());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ln(e.timings,n.errors,!0);return{type:O.Stagger,animation:ye(this,ln(e.animation),n),timings:r,options:null}}};function rp(t){let e=!!t.split(/\s*,\s*/).find(n=>n==el);return e&&(t=t.replace(np,"")),t=t.replace(/@\*/g,Dn).replace(/@\w+/g,n=>Dn+"-"+n.slice(1)).replace(/:animating/g,Pr),[t,e]}function ip(t){return t?p({},t):null}var go=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function op(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function sp(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Ln(t,e).duration;return lo(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=lo(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=Ln(n,e);return lo(i.duration,i.delay,i.easing)}function jt(t){return t?(t=p({},t),t.params&&(t.params=ip(t.params))):t={},t}function lo(t,e,n){return{duration:t,delay:e,easing:n}}function Ro(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Un=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},ap=1,cp=":enter",lp=new RegExp(cp,"g"),up=":leave",dp=new RegExp(up,"g");function nl(t,e,n,r,i,o=new Map,s=new Map,a,c,l=[]){return new _o().buildKeyframes(t,e,n,r,i,o,s,a,c,l)}var _o=class{buildKeyframes(e,n,r,i,o,s,a,c,l,u=[]){l=l||new Un;let d=new So(e,n,l,i,o,u,[]);d.options=c;let m=c.delay?et(c.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([s],null,d.errors,c),ye(this,r,d);let g=d.timelines.filter(f=>f.containsAnimation());if(g.length&&a.size){let f;for(let _=g.length-1;_>=0;_--){let w=g[_];if(w.element===n){f=w;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,c)}return g.length?g.map(f=>f.buildKeyframes()):[Ro(n,[],[],[],0,m,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let i of e){let o=i?.delay;if(o){let s=typeof o=="number"?o:et(un(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?et(r.duration):null,a=r.delay!=null?et(r.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),ye(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,i=n,o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==O.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Br);let s=et(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ye(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],i=n.currentTimeline.currentTime,o=e.options&&e.options.delay?et(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),ye(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,i=n.params?un(r,n.params,n.errors):r;return Ln(i,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=e.style;o.type==O.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?et(i.delay):0;o&&(n.previousNode.type===O.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Br);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);o&&d.delayNextStep(o),l===n.element&&(c=d.currentTimeline),ye(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;s=Math.max(s,m)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,i=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;ye(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},Br={},So=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Br;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,i,o,s,a,c){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=c||new Hr(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,i=this.options;r.duration!=null&&(i.duration=et(r.duration)),r.delay!=null&&(i.delay=et(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=un(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){let i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Br,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let i={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},o=new yo(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(lp,"."+this._enterClassName),e=e.replace(dp,"."+this._leaveClassName);let c=r!=1,l=this._driver.query(this.element,e,c);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!o&&a.length==0&&s.push(Ac(n)),a}},Hr=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=ap,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||$e),this._currentKeyframe.set(n,$e);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=pp(e,this._globalTimelineStyles);for(let[a,c]of s){let l=un(c,o,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$e),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===xn?e.add(d):u===$e&&n.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return Ro(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},yo=class extends Hr{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,i,o,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let l=new Map(e[0]);l.set("offset",Kc(a)),o.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let m=new Map(e[d]),g=m.get("offset"),f=n+g*r;m.set("offset",Kc(f/s)),o.push(m)}r=s,n=0,i="",e=o}return Ro(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function Kc(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function pp(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??=e.keys();for(let o of r)n.set(o,$e)}else for(let[o,s]of i)n.set(o,s)}),n}function Wc(t,e,n,r,i,o,s,a,c,l,u,d,m){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:m}}var uo={},$r=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return fp(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,c,l,u){let d=[],m=this.ast.options&&this.ast.options.params||uo,g=a&&a.params||uo,f=this.buildStyles(r,g,d),_=c&&c.params||uo,w=this.buildStyles(i,_,d),U=new Set,B=new Map,W=new Map,D=i==="void",q={params:rl(_,m),delay:this.ast.options?.delay},C=u?[]:nl(e,n,this.ast.animation,o,s,f,w,q,l,d),R=0;return C.forEach(F=>{R=Math.max(F.duration+F.delay,R)}),d.length?Wc(n,this._triggerName,r,i,D,f,w,[],[],B,W,R,d):(C.forEach(F=>{let ne=F.element,J=Se(B,ne,new Set);F.preStyleProps.forEach(Y=>J.add(Y));let we=Se(W,ne,new Set);F.postStyleProps.forEach(Y=>we.add(Y)),ne!==n&&U.add(ne)}),Wc(n,this._triggerName,r,i,D,f,w,C,[...U.values()],B,W,R))}};function fp(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function rl(t,e){let n=p({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var Eo=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=rl(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=un(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function mp(t,e,n){return new To(t,e,n)}var To=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new Eo(i.style,o,r))}),Yc(this.states,"true","1"),Yc(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new $r(e,i,this.states))}),this.fallbackTransition=hp(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(s=>s.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function hp(t,e,n){let r=[(s,a)=>!0],i={type:O.Sequence,steps:[],options:null},o={type:O.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new $r(t,o,e)}function Yc(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var gp=new Un,bo=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],i=[],o=tl(this._driver,n,r,i);if(r.length)throw Cc(r);this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=to(this._normalizer,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let i=[],o=this._animations.get(e),s,a=new Map;if(o?(s=nl(this._driver,n,o,so,Cr,new Map,new Map,r,gp,i),s.forEach(u=>{let d=Se(a,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(i.push(Pc()),s=[]),i.length)throw Mc(i);a.forEach((u,d)=>{u.forEach((m,g)=>{u.set(g,this._driver.computeStyle(d,g,$e))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=mt(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw xc(e);return n}listen(e,n,r,i){let o=Rr(n,"","","");return Nr(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if(r=="register"){this.register(e,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(e,n,s);return}let o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Vc="ng-animate-queued",_p=".ng-animate-queued",po="ng-animate-disabled",Sp=".ng-animate-disabled",yp="ng-star-inserted",Ep=".ng-star-inserted",Tp=[],il={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ge="__ng_removed",Bn=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),i=r?e.value:e;if(this.value=Ip(i),r){let o=e,{value:s}=o,a=fr(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},Fn="void",fo=new Bn(Fn),vo=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,xe(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw Oc(r,n);if(r==null||r.length==0)throw kc(n);if(!Ap(r))throw Dc(r,n);let o=Se(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=Se(this._engine.statesByElement,e,new Map);return a.has(n)||(xe(e,kn),xe(e,kn+"-"+n),a.set(n,fo)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw Lc(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new Hn(this.id,n,e),a=this._engine.statesByElement.get(e);a||(xe(e,kn),xe(e,kn+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new Bn(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=fo),!(l.value===Fn)&&c.value===l.value){if(!wp(c.params,l.params)){let _=[],w=o.matchStyles(c.value,c.params,_),U=o.matchStyles(l.value,l.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{It(e,w),je(e,U)})}return}let m=Se(this._engine.playersByElement,e,[]);m.forEach(_=>{_.namespaceId==this.id&&_.triggerName==n&&_.queued&&_.destroy()});let g=o.matchTransition(c.value,l.value,e,l.params),f=!1;if(!g){if(!i)return;g=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:g,fromState:c,toState:l,player:s,isFallbackTransition:f}),f||(xe(e,Vc),s.onStart(()=>{dn(e,Vc)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let w=this._engine.playersByElement.get(e);if(w){let U=w.indexOf(s);U>=0&&w.splice(U,1)}}),this.players.push(s),m.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,Dn,!0);r.forEach(i=>{if(i[Ge])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Fn,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&mt(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,l=r.get(s)||fo,u=new Bn(Fn),d=new Hn(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{let o=e[Ge];(!o||o===il)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){xe(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=Rr(o,r.triggerName,r.fromState.value,r.toState.value);c._data=e,Nr(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Io=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new vo(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=i.get(a);if(c){let l=r.indexOf(c);r.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(e,n,r,i){if(Dr(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Dr(n))return;let o=n[Ge];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),xe(e,po)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),dn(e,po))}removeNode(e,n,r){if(Dr(n)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[Ge]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return Dr(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,Dn,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Pr,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return mt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Ge];if(n&&n.setForRemoval){if(e[Ge]=il,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(po)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Sp,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let i=this.collectedEnterElements[r];xe(i,yp)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let i=this.collectedLeaveElements[r];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?mt(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw Fc(e)}_flushAnimations(e,n){let r=new Un,i=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(S=>{u.add(S);let E=this.driver.query(S,_p,!0);for(let T=0;T<E.length;T++)u.add(E[T])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),g=Xc(m,this.collectedEnterElements),f=new Map,_=0;g.forEach((S,E)=>{let T=so+_++;f.set(E,T),S.forEach(x=>xe(x,T))});let w=[],U=new Set,B=new Set;for(let S=0;S<this.collectedLeaveElements.length;S++){let E=this.collectedLeaveElements[S],T=E[Ge];T&&T.setForRemoval&&(w.push(E),U.add(E),T.hasAnimation?this.driver.query(E,Ep,!0).forEach(x=>U.add(x)):B.add(E))}let W=new Map,D=Xc(m,Array.from(U));D.forEach((S,E)=>{let T=Cr+_++;W.set(E,T),S.forEach(x=>xe(x,T))}),e.push(()=>{g.forEach((S,E)=>{let T=f.get(E);S.forEach(x=>dn(x,T))}),D.forEach((S,E)=>{let T=W.get(E);S.forEach(x=>dn(x,T))}),w.forEach(S=>{this.processLeaveNode(S)})});let q=[],C=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(n).forEach(T=>{let x=T.player,re=T.element;if(q.push(x),this.collectedEnterElements.length){let ce=re[Ge];if(ce&&ce.setForMove){if(ce.previousTriggersValues&&ce.previousTriggersValues.has(T.triggerName)){let Lt=ce.previousTriggersValues.get(T.triggerName),Ce=this.statesByElement.get(T.element);if(Ce&&Ce.has(T.triggerName)){let pr=Ce.get(T.triggerName);pr.value=Lt,Ce.set(T.triggerName,pr)}}x.destroy();return}}let Xe=!d||!this.driver.containsElement(d,re),ve=W.get(re),vt=f.get(re),V=this._buildInstruction(T,r,vt,ve,Xe);if(V.errors&&V.errors.length){C.push(V);return}if(Xe){x.onStart(()=>It(re,V.fromStyles)),x.onDestroy(()=>je(re,V.toStyles)),i.push(x);return}if(T.isFallbackTransition){x.onStart(()=>It(re,V.fromStyles)),x.onDestroy(()=>je(re,V.toStyles)),i.push(x);return}let aa=[];V.timelines.forEach(ce=>{ce.stretchStartingKeyframe=!0,this.disabledNodes.has(ce.element)||aa.push(ce)}),V.timelines=aa,r.append(re,V.timelines);let Ud={instruction:V,player:x,element:re};s.push(Ud),V.queriedElements.forEach(ce=>Se(a,ce,[]).push(x)),V.preStyleProps.forEach((ce,Lt)=>{if(ce.size){let Ce=c.get(Lt);Ce||c.set(Lt,Ce=new Set),ce.forEach((pr,qi)=>Ce.add(qi))}}),V.postStyleProps.forEach((ce,Lt)=>{let Ce=l.get(Lt);Ce||l.set(Lt,Ce=new Set),ce.forEach((pr,qi)=>Ce.add(qi))})});if(C.length){let S=[];C.forEach(E=>{S.push(Uc(E.triggerName,E.errors))}),q.forEach(E=>E.destroy()),this.reportError(S)}let R=new Map,F=new Map;s.forEach(S=>{let E=S.element;r.has(E)&&(F.set(E,E),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,R))}),i.forEach(S=>{let E=S.element;this._getPreviousPlayers(E,!1,S.namespaceId,S.triggerName,null).forEach(x=>{Se(R,E,[]).push(x),x.destroy()})});let ne=w.filter(S=>Zc(S,c,l)),J=new Map;Jc(J,this.driver,B,l,$e).forEach(S=>{Zc(S,c,l)&&ne.push(S)});let Y=new Map;g.forEach((S,E)=>{Jc(Y,this.driver,new Set(S),c,xn)}),ne.forEach(S=>{let E=J.get(S),T=Y.get(S);J.set(S,new Map([...E?.entries()??[],...T?.entries()??[]]))});let bt=[],kt=[],Dt={};s.forEach(S=>{let{element:E,player:T,instruction:x}=S;if(r.has(E)){if(u.has(E)){T.onDestroy(()=>je(E,x.toStyles)),T.disabled=!0,T.overrideTotalTime(x.totalTime),i.push(T);return}let re=Dt;if(F.size>1){let ve=E,vt=[];for(;ve=ve.parentNode;){let V=F.get(ve);if(V){re=V;break}vt.push(ve)}vt.forEach(V=>F.set(V,re))}let Xe=this._buildAnimation(T.namespaceId,x,R,o,Y,J);if(T.setRealPlayer(Xe),re===Dt)bt.push(T);else{let ve=this.playersByElement.get(re);ve&&ve.length&&(T.parentPlayer=mt(ve)),i.push(T)}}else It(E,x.fromStyles),T.onDestroy(()=>je(E,x.toStyles)),kt.push(T),u.has(E)&&i.push(T)}),kt.forEach(S=>{let E=o.get(S.element);if(E&&E.length){let T=mt(E);S.setRealPlayer(T)}}),i.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S<w.length;S++){let E=w[S],T=E[Ge];if(dn(E,Cr),T&&T.hasAnimation)continue;let x=[];if(a.size){let Xe=a.get(E);Xe&&Xe.length&&x.push(...Xe);let ve=this.driver.query(E,Pr,!0);for(let vt=0;vt<ve.length;vt++){let V=a.get(ve[vt]);V&&V.length&&x.push(...V)}}let re=x.filter(Xe=>!Xe.destroyed);re.length?Np(this,E,re):this.processLeaveNode(E)}return w.length=0,bt.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();let E=this.players.indexOf(S);this.players.splice(E,1)}),S.play()}),bt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==Fn;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||s.push(l)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:i;for(let c of n.timelines){let l=c.element,u=l!==o,d=Se(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(g=>{let f=g.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),g.destroy(),d.push(g)})}It(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,m=n.timelines.map(f=>{let _=f.element;u.add(_);let w=_[Ge];if(w&&w.removedBeforeQueried)return new Ut(f.duration,f.delay);let U=_!==c,B=Rp((r.get(_)||Tp).map(R=>R.getRealPlayer())).filter(R=>{let F=R;return F.element?F.element===_:!1}),W=o.get(_),D=s.get(_),q=to(this._normalizer,f.keyframes,W,D),C=this._buildPlayer(f,q,B);if(f.subTimeline&&i&&d.add(_),U){let R=new Hn(e,a,_);R.setRealPlayer(C),l.push(R)}return C});l.forEach(f=>{Se(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>vp(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>xe(f,ao));let g=mt(m);return g.onDestroy(()=>{u.forEach(f=>dn(f,ao)),je(c,n.toStyles)}),d.forEach(f=>{Se(i,f,[]).push(g)}),g}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Ut(e.duration,e.delay)}},Hn=class{namespaceId;triggerName;element;_player=new Ut;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>Nr(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Se(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function vp(t,e,n){let r=t.get(e);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&t.delete(e)}return r}function Ip(t){return t??null}function Dr(t){return t&&t.nodeType===1}function Ap(t){return t=="start"||t=="done"}function Qc(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Jc(t,e,n,r,i){let o=[];n.forEach(c=>o.push(Qc(c)));let s=[];r.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let m=e.computeStyle(l,d,i);u.set(d,m),(!m||m.length==0)&&(l[Ge]=bp,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>Qc(c,o[a++])),s}function Xc(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,i=new Set(e),o=new Map;function s(a){if(!a)return r;let c=o.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:i.has(l)?c=r:c=s(l),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function xe(t,e){t.classList?.add(e)}function dn(t,e){t.classList?.remove(e)}function Np(t,e,n){mt(n).onDone(()=>t.processLeaveNode(e))}function Rp(t){let e=[];return ol(t,e),e}function ol(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Er?ol(r.players,e):e.push(r)}}function wp(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){let o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function Zc(t,e,n){let r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}var pn=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Io(e.body,n,r),this._timelineEngine=new bo(e.body,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){let s=e+"-"+i,a=this._triggerCache[s];if(!a){let c=[],l=[],u=tl(this._driver,o,c,l);if(c.length)throw wc(i,c);a=mp(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if(r.charAt(0)=="@"){let[o,s]=no(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=no(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Cp(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=mo(e[0]),e.length>1&&(r=mo(e[e.length-1]))):e instanceof Map&&(n=mo(e)),n||r?new Pp(t,n,r):null}var Pp=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&je(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(je(this._element,this._initialStyles),this._endStyles&&(je(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(It(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(It(this._element,this._endStyles),this._endStyles=null),je(this._element,this._initialStyles),this._state=3)}}return t})();function mo(t){let e=null;return t.forEach((n,r)=>{Mp(r)&&(e=e||new Map,e.set(r,n))}),e}function Mp(t){return t==="display"||t==="position"}var jr=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){return e.animate(this._convertKeyframesToObject(n),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&e.set(i,this._finished?r:xr(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Gr=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return ro(e,n)}getParentElement(e){return wr(e)}query(e,n,r){return io(e,n,r)}computeStyle(e,n,r){return xr(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",c={duration:r,delay:i,fill:a};o&&(c.easing=o);let l=new Map,u=s.filter(g=>g instanceof jr);jc(r,i)&&u.forEach(g=>{g.currentSnapshot.forEach((f,_)=>l.set(_,f))});let d=Hc(n).map(g=>new Map(g));d=Gc(e,d,l);let m=Cp(e,d);return new jr(e,d,c,m)}};var Lr="@",sl="@.disabled",qr=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.parentNode(n)&&this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==Lr&&n==sl?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,i){return this.delegate.listen(e,n,r,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Ao=class extends qr{factory;constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==Lr?n.charAt(1)=="."&&n==sl?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r,i){if(n.charAt(0)==Lr){let o=xp(e),s=n.slice(1),a="";return s.charAt(0)!=Lr&&([s,a]=Op(s)),this.engine.listen(this.namespaceId,o,s,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,r,c)})}return this.delegate.listen(e,n,r,i)}};function xp(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Op(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var zr=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(e,n){let r="",i=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(i);if(!u){let d=()=>l.delete(i);u=new qr(r,i,this.engine,d),l.set(i,u)}return u}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return n.data.animation.forEach(a),new Ao(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>
1{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var Dp=(()=>{class t extends pn{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||t)(z(Ta),z(Gt),z(qt))};static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})();function Lp(){return new Fr}function Fp(t,e,n){return new zr(t,e,n)}var cl=[{provide:qt,useFactory:Lp},{provide:pn,useClass:Dp},{provide:ha,useFactory:Fp,deps:[Na,pn,mr]}],Up=[{provide:Gt,useClass:No},{provide:zi,useValue:"NoopAnimations"},...cl],al=[{provide:Gt,useFactory:()=>new Gr},{provide:zi,useFactory:()=>"BrowserAnimations"},...cl],ll=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?Up:al}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Me({type:t});static \u0275inj=Pe({providers:al,imports:[Sr]})}return t})();var Bp=[],Kr=(()=>{class t{constructor(n){this.router=n,this.trees=Bp}add(n){this.trees.push(n)}shouldPrefetch(n){let r=this.router.parseUrl(n);return this.trees.some($p.bind(null,r))}static{this.\u0275fac=function(r){return new(r||t)(z(Bt))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hp(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>e[n]===t[n])}function $p(t,e){return Hp(e.queryParams,t.queryParams)&&Co(e.root,t.root,t.root.segments)}function Co(t,e,n){if(t.segments.length>n.length){let r=t.segments.slice(0,n.length);return!(!wo(r,n)||e.hasChildren())}else if(t.segments.length===n.length){if(!wo(t.segments,n))return!1;if(!e.hasChildren())return!0;for(let r in e.children){if(!t.children[r])break;if(Co(t.children[r],e.children[r],e.children[r].segments))return!0}return!1}else{let r=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!wo(t.segments,r)||!t.children[Tr]?!1:Co(t.children[Tr],e,i)}}function wo(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path||n.path.startsWith(":")||e[r].path.startsWith(":"))}var fl=typeof window<"u"?window.requestIdleCallback||function(t){let e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)}:()=>{},ul=()=>typeof window<"u"?!!window.IntersectionObserver:!1,dl=new pa("LinkHandler"),jp=(()=>{class t{constructor(n,r,i){this.loader=n,this.registry=r,this.ngZone=i,this.elementLink=new Map,this.observer=ul()?new IntersectionObserver(o=>{o.forEach(s=>{if(this.observer&&s.isIntersecting){let a=s.target,c=this.elementLink.get(a);if(!c||!c.urlTree)return;this.registry.add(c.urlTree),this.observer.unobserve(a),fl(()=>{this.loader.preload().subscribe(()=>{})})}})}):null}register(n){this.elementLink.set(n.element,n),this.ngZone.runOutsideAngular(()=>{this.observer&&this.observer.observe(n.element)})}unregister(n){this.observer&&this.elementLink.has(n.element)&&(this.observer.unobserve(n.element),this.elementLink.delete(n.element))}supported(){return ul()}static{this.\u0275fac=function(r){return new(r||t)(z(Qi),z(Kr),z(mr))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Gp=(()=>{class t{constructor(n,r){this.loader=n,this.registry=r}register(n){this.registry.add(n.urlTree),fl(()=>this.loader.preload().subscribe(()=>{}))}unregister(n){}supported(){return!0}static{this.\u0275fac=function(r){return new(r||t)(z(Qi),z(Kr))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qp=(t,e)=>{t=t.slice();let n=new Map,r=new Set;for(;t.length;){let s=t.shift();if(!s)continue;if(r.add(s),s===e)break;let a=s.children||[],c=s._loadedRoutes||[];for(let l of c)l&&l.children&&(a=a.concat(l.children));a.forEach(l=>{r.has(l)||(n.set(l,s),t.push(l))})}let i="",o=e;for(;o;)zp(o)?i=`/${o.path}${i}`:i=`/(${o.outlet}:${o.path}${i})`,o=n.get(o);return i.replace(/[\/]+/,"/")};function zp(t){return t.outlet===Tr||!t.outlet}var Po=(()=>{class t{constructor(n,r){this.registry=n,this.router=r,this.loading=new Set}preload(n,r){if(this.loading.has(n))return Mn;let i=typeof navigator<"u"?navigator.connection:void 0;if(i&&((i.effectiveType||"").includes("2g")||i.saveData))return Mn;if(n.data&&n.data.preload===!1)return Mn;let o=qp(this.router.config,n);return this.registry.shouldPrefetch(o)?(this.loading.add(n),r()):Mn}static{this.\u0275fac=function(r){return new(r||t)(z(Kr),z(Bt))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Kp=[{provide:dl,useClass:jp,multi:!0},{provide:dl,useClass:Gp,multi:!0},Kr,Po],ml=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Me({type:t})}static{this.\u0275inj=Pe({providers:Kp})}}return t})();var Wp=[{path:"connexion",loadChildren:()=>import("./chunk-5OGLUHBF.js").then(t=>t.AuthModule)},{path:"mon-compte",loadChildren:()=>import("./chunk-MQCDXVOM.js").then(t=>t.AccountModule)},{path:"administration",loadChildren:()=>import("./chunk-KJ4AVAMP.js").then(t=>t.AdminModule)},{path:"",loadChildren:()=>import("./chunk-2FFWTDTZ.js").then(t=>t.FrontModule)},{path:"sitemap.xml",component:$a},{path:"**",component:Ir}],hl=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Me({type:t})}static{this.\u0275inj=Pe({imports:[Ji.forRoot(Wp,{preloadingStrategy:Po,scrollPositionRestoration:"top",initialNavigation:"enabledNonBlocking",onSameUrlNavigation:"reload"}),Ji]})}}return t})();function Qp(t,e){t&1&&gr(0,"router-outlet")}function Jp(t,e){t&1&&(Sa(0,"div"),gr(1,"app-not-found"),ya())}var gl=(()=>{class t{constructor(n,r,i,o,s){this.router=n,this.metaService=r,this.authService=i,this.activatedRoute=o,this.platformId=s}ngOnInit(){this.router.events.subscribe(n=>{this.activatedRoute.snapshot.queryParams.hasOwnProperty("themes")||this.activatedRoute.snapshot.queryParams.hasOwnProperty("filter")||(n instanceof Vi&&Ze.noindex==="true"&&this.metaService.updateTag({name:"robots",content:"noindex, follow"}
1),n instanceof Oa&&(this.authService.notFound=!1),n instanceof Vi&&va(this.platformId)&&window.scrollTo(0,0))})}static{this.\u0275fac=function(r){return new(r||t)(Ft(Bt),Ft(Ma),Ft(an),Ft(br),Ft(hr))}}static{this.\u0275cmp=ga({type:t,selectors:[["app-root"]],standalone:!1,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(r,i){r&1&&(_a(0,Qp,1,0,"router-outlet",0)(1,Jp,2,0,"div",0),gr(2,"notifier-container")),r&2&&(Ki("ngIf",!i.authService.notFound),ma(),Ki("ngIf",i.authService.notFound))},dependencies:[ka,ba,Ir,Fa],encapsulation:2})}}return t})();var _l=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Me({type:t})}static{this.\u0275inj=Pe({imports:[_r,Ar,Ya,sc,Ht,On]})}}return t})();var Sl=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Me({type:t})}static{this.\u0275inj=Pe({providers:[Ja,vr,Va,Wa,cn,nc,Za,rc,tc,qa,za,ec,Xa,Ka,oc,ic],imports:[_r,dc,Ht]})}}return t})();var yl=Object.prototype.toString;function zt(t){switch(yl.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ie(t,Error)}}function fn(t,e){return yl.call(t)===`[object ${e}]`}function Wr(t){return fn(t,"ErrorEvent")}function Yr(t){return fn(t,"DOMError")}function Mo(t){return fn(t,"DOMException")}function me(t){return fn(t,"String")}function mn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Kt(t){return t===null||mn(t)||typeof t!="object"&&typeof t!="function"}function qe(t){return fn(t,"Object")}function Wt(t){return typeof Event<"u"&&Ie(t,Event)}function xo(t){return typeof Element<"u"&&Ie(t,Element)}function Oo(t){return fn(t,"RegExp")}function nt(t){return!!(t&&t.then&&typeof t.then=="function")}function ko(t){return qe(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Ie(t,e){try{return t instanceof e}catch{return!1}}function $n(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function rt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Vr(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{$n(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function El(t,e,n=!1){return me(t)?Oo(e)?e.test(t):me(e)?n?t===e:t.includes(e):!1:!1}function it(t,e=[],n=!1){return e.some(r=>El(t,r,n))}function Lo(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!Ie(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Xp(Do(t,e,i,s.originalException,r,o.exception.values,a,0),n))}function Do(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let c=[...o];if(Ie(r[i],Error)){Tl(s,a);let l=t(e,r[i]),u=c.length;bl(l,i,u,a),c=Do(t,e,n,r[i],i,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(Ie(l,Error)){Tl(s,a);let d=t(e,l),m=c.length;bl(d,`errors[${u}]`,m,a),c=Do(t,e,n,l,i,[d,...c],d,m)}}),c}function Tl(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=P(p(p({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function bl(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=P(p({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function Xp(t,e){return t.map(n=>(n.value&&(n.value=rt(n.value,e)),n))}function Qr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}var Oe="8.33.0";var I=globalThis;function At(t,e,n){let r=n||I,i=r.__SENTRY__=r.__SENTRY__||{},o=i[Oe]=i[Oe]||{};return o[t]||(o[t]=e())}var hn=I,Zp=80;function Ae(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",c=a.length,l,u=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||Zp;for(;n&&o++<r&&(l=ef(n,u),!(l==="html"||o>1&&s+i.length*c+l.length>=d));)i.push(l),s+=l.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function ef(t,e){let n=t,r=[];if(!n||!n.tagName)return"";if(hn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=e&&e.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&me(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`)}}let o=["aria-label","type","name","title","alt"];for(let s of o){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Fo(){try{return hn.document.location.href}catch{return""}}function Uo(t){return hn.document&&hn.document.querySelector?hn.document.querySelector(t):null}function jn(t){if(!hn.HTMLElement)return null;let e=t,n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}var ke=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var tf="Sentry Logger ",Gn=["debug","info","warn","error","log","assert","trace"],gn={};function ot(t){if(!("console"in I))return t();let e=I.console,n={},r=Object.keys(gn);r.forEach(i=>
1{let o=gn[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function nf(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return ke?Gn.forEach(n=>{e[n]=(...r)=>{t&&ot(()=>{I.console[n](`${tf}[${n}]:`,...r)})}}):Gn.forEach(n=>{e[n]=()=>{}}),e}var h=At("logger",nf);var rf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function of(t){return t==="http"||t==="https"}function ze(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function vl(t){let e=rf.exec(t);if(!e){ot(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),c="",l=a,u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){let d=l.match(/^\d+/);d&&(l=d[0])}return Il({host:o,pass:i,path:c,projectId:l,port:s,protocol:n,publicKey:r})}function Il(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function sf(t){if(!ke)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(h.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?of(r)?e&&isNaN(parseInt(e,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Jr(t){let e=typeof t=="string"?vl(t):Il(t);if(!(!e||!sf(e)))return e}var le=class extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};function te(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);typeof i=="function"&&Xr(i,r),t[e]=i}function X(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{ke&&h.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Xr(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,X(t,"__sentry_original__",e)}catch{}}function Yt(t){return t.__sentry_original__}function Ho(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function Zr(t){if(zt(t))return p({message:t.message,name:t.name,stack:t.stack},Nl(t));if(Wt(t)){let e=p({type:t.type,target:Al(t.target),currentTarget:Al(t.currentTarget)},Nl(t));return typeof CustomEvent<"u"&&Ie(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Al(t){try{return xo(t)?Ae(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Nl(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function $o(t,e=40){let n=Object.keys(Zr(t));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return rt(r,e);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>e))return i===n.length?o:rt(o,e)}return""}function $(t){return Bo(t,new Map)}function Bo(t,e){if(af(t)){let n=e.get(t);if(n!==void 0)return n;let r={};e.set(t,r);for(let i of Object.getOwnPropertyNames(t))typeof t[i]<"u"&&(r[i]=Bo(t[i],e));return r}if(Array.isArray(t)){let n=e.get(t);if(n!==void 0)return n;let r=[];return e.set(t,r),t.forEach(i=>{r.push(Bo(i,e))}),r}return t}function af(t){if(!qe(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}var st="?",Rl=/\(error: (.*)\)/,wl=/captureMessage|captureException/;function ti(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
2`);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let l=Rl.test(c)?c.replace(Rl,"$1"):c;if(!l.match(/\S*Error: /)){for(let u of e){let d=u(l);if(d){o.push(d);break}}if(o.length>=50+i)break}}return Cl(o.slice(i))}}function Go(t){return Array.isArray(t)?ti(...t):t}function Cl(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(ei(e).function||"")&&e.pop(),e.reverse(),wl.test(ei(e).function||"")&&(e.pop(),wl.test(ei(e).function||"")&&e.pop()),e.slice(0,50).map(n=>P(p({},n),{filename:n.filename||ei(e).filename,function:n.function||st}))}function ei(t){return t[t.length-1]||{}}var jo="<anonymous>";function Ee(t){try{return!t||typeof t!="function"?jo:t.name||jo}catch{return jo}}function ni(t){let e=t.exception;if(e){let n=[];
2try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var ri={},Pl={};function ue(t,e){ri[t]=ri[t]||[],ri[t].push(e)}function de(t,e){Pl[t]||(e(),Pl[t]=!0)}function Z(t,e){let n=t&&ri[t];if(n)for(let r of n)try{r(e)}catch(i){ke&&h.error(`Error while triggering instrumentation handler.
3Type: ${t}
4Name: ${Ee(r)}
5Error:`,i)}}function qo(t){let e="console";ue(e,t),de(e,cf)}function cf(){"console"in I&&Gn.forEach(function(t){t in I.console&&te(I.console,t,function(e){return gn[t]=e,function(...n){Z("console",{args:n,level:t});let i=gn[t];i&&i.apply(I.console,n)}})})}var zo=I;function ii(){if(!("fetch"in zo))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function qn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ko(){if(typeof EdgeRuntime=="string")return!0;if(!ii())return!1;if(qn(zo.fetch))return!0;let t=!1,e=zo.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");
5n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=qn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){ke&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}var Ml=1e3;function at(){return Date.now()/Ml}function lf(){let{performance:t}=I;if(!t||!t.now)return at;let e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/Ml}var Q=lf(),zn,ee=(()=>{let{performance:t}=I;if(!t||!t.now){zn="none";return}let e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):e,l=c<e;return o||l?i<=c?(zn="timeOrigin",t.timeOrigin):(zn="navigationStart",s):(zn="dateNow",r)})();function Kn(t,e){let n="fetch";ue(n,t),de(n,()=>Ol(void 0,e))}function Yo(t){let e="fetch-body-resolved";ue(e,t),de(e,()=>Ol(df))}function Ol(t,e=!1){e&&!Ko()||te(I,"fetch",function(n){return function(...r){let{method:i,url:o}=pf(r),s={args:r,fetchData:{method:i,url:o},startTimestamp:Q()*1e3};t||Z("fetch",p({},s));let a=new Error().stack;return n.apply(I,r).then(c=>sn(null,null,function*(){return t?t(c):Z("fetch",P(p({},s),{endTimestamp:Q()*1e3,response:c})),c}),c=>{throw Z("fetch",P(p({},s),{endTimestamp:Q()*1e3,error:c})),zt(c)&&c.stack===void 0&&(c.stack=a,X(c,"framesToPop",1)),c})}})}function uf(t,e){return sn(this,null,function*(){if(t&&t.body&&t.body.getReader){let n=t.body.getReader();function r(o){return sn(this,arguments,function*({done:i}){if(i)return Promise.resolve();try{let s=yield Promise.race([n.read(),new Promise(a=>{setTimeout(()=>{a({done:!0})},5e3)})]);yield r(s)}catch{}})}return n.read().then(r).then(e).catch(()=>{})}})}function df(t){return sn(this,null,function*(){let e;try{e=t.clone()}catch{return}yield uf(e,()=>{Z("fetch-body-resolved",{endTimestamp:Q()*1e3,response:t})})})}function Wo(t,e){return!!t&&typeof t=="object"&&!!t[e]}function xl(t){return typeof t=="string"?t:t?Wo(t,"url")?t.url:t.toString?t.toString():"":""}function pf(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:xl(n),method:Wo(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:xl(e),method:Wo(e,"method")?String(e.method).toUpperCase():"GET"}}var oi=null;function Wn(t){let e="error";ue(e,t),de(e,ff)}function ff(){oi=I.onerror,I.onerror=function(t,e,n,r,i){return Z("error",{column:r,error:i,line:n,msg:t,url:e}),oi&&!oi.__SENTRY_LOADER__?oi.apply(this,arguments):!1},I.onerror.__SENTRY_INSTRUMENTED__=!0}var si=null;function Yn(t){let e="unhandledrejection";ue(e,t),de(e,mf)}function mf(){si=I.onunhandledrejection,I.onunhandledrejection=function(t){return Z("unhandledrejection",t),si&&!si.__SENTRY_LOADER__?si.apply(this,arguments):!0},I.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Vo(){return"npm"}function kl(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let o=0;o<e.length;o++)if(e[o]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let o=0;o<e.length;o++)if(e[o]===i){e.splice(o,1);break}}return[n,r]}function k(){let t=I,e=t.crypto||t.msCrypto,n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Dl(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Ke(t){let{message:e,event_id:n}=t;if(e)return e;let r=Dl(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function _n(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function ht(t,e){let n=Dl(t);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=p(p(p({},r),i),e),e&&"data"in e){let o=p(p({},i&&i.data),e.data);n.mechanism.data=o}}function ai(t){if(t&&t.__sentry_captured__)return!0;try{X(t,"__sentry_captured__",!0)}catch{}return!1}function Vn(t){return Array.isArray(t)?t:[t]}function We(t,e=100,n=1/0){try{return Qo("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ci(t,e=3,n=100*1024){let r=We(t,e);return Sf(r)>n?ci(t,e-1,n):r}function Qo(t,e,n=1/0,r=1/0,i=kl()){let[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=hf(t,e);if(!a.startsWith("[object "))return a;
5if(e.__sentry_skip_normalization__)return e;let c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let g=l.toJSON();return Qo("",g,c-1,r,i)}catch{}let u=Array.isArray(e)?[]:{},d=0,m=Zr(e);for(let g in m){if(!Object.prototype.hasOwnProperty.call(m,g))continue;if(d>=r){u[g]="[MaxProperties ~]";break}let f=m[g];u[g]=Qo(g,f,c-1,r,i),d++}return s(e),u}function hf(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if($n(e))return"[VueViewModel]";if(ko(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Ee(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=gf(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function gf(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function _f(t){return~-encodeURI(t).split(/%..|./).length}function Sf(t){return _f(JSON.stringify(t))}var gt;(function(t){t[t.PENDING=0]="PENDING";let n=1;t[t.RESOLVED=n]="RESOLVED";let r=2;t[t.REJECTED=r]="REJECTED"})(gt||(gt={}));function De(t){return new Ye(e=>{e(t)})}function Nt(t){return new Ye((e,n)=>{n(t)})}var Ye=class t{constructor(e){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=gt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new t((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new t((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=e=>{this._setResult(gt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(gt.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===gt.PENDING){if(nt(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===gt.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===gt.RESOLVED&&n[1](this._value),this._state===gt.REJECTED&&n[2](this._value),n[0]=!0)})}}};function Jo(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return Nt(new le("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Ye((a,c)=>{let l=e.length;if(!l)return a(!0);let u=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(d=>{De(d).then(()=>{--l||(clearTimeout(u),a(!0))},c)})})}return{$:e,add:i,drain:o}}function Le(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}var Ll=["fatal","error","warning","log","info","debug"];function Xo(t){return t==="warn"?"warning":Ll.includes(t)?t:"log"}var Sn="baggage",Zo="sentry-",Ul=/^sentry-/,Bl=8192;function Qn(t){let e=Hl(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(Ul)){let s=i.slice(Zo.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function yn(t){if(!t)return;let e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${Zo}${r}`]=i),n),{});return yf(e)}function Hl(t){if(!(!t||!me(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Fl(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):Fl(t)}function Fl(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function yf(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{let o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${e},${o}`;return s.length>Bl?(ke&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}var $l=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function jl(t){if(!t)return;let e=t.match($l);
5if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function es(t,e){let n=jl(t),r=Qn(e),{traceId:i,parentSpanId:o,parentSampled:s}=n||{};return n?{traceId:i||k(),parentSpanId:o||k().substring(16),spanId:k().substring(16),sampled:s,dsc:r||{}}:{traceId:i||k(),spanId:k().substring(16)}}function Vt(t=k(),e=k().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Ve(t,e=[]){return[t,e]}function ns(t,e){let[n,r]=t;return[n,[...r,e]]}function li(t,e){let n=t[1];for(let r of n){let i=r[0].type;if(e(r,i))return!0}return!1}function ts(t){return I.__SENTRY__&&I.__SENTRY__.encodePolyfill?I.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function rs(t){let[e,n]=t,r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[ts(r),o]:r.push(typeof o=="string"?ts(o):o)}for(let o of n){let[s,a]=o;if(i(`
6${JSON.stringify(s)}
7`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(We(a))}i(c)}}return typeof r=="string"?r:Ef(r)}function Ef(t){let e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e),r=0;for(let i of t)n.set(i,r),r+=i.length;return n}function is(t){return[{type:"span"},t]}function os(t){let e=typeof t.data=="string"?ts(t.data):t.data;return[$({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}var Tf={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 ui(t){return Tf[t]}function di(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function ss(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return p(p(p({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:ze(r)}),i&&{trace:$(p({},i))})}function as(t,e,n){let r=[{type:"client_report"},{timestamp:n||at(),discarded_events:t}];return Ve(e?{dsn:e}:{},[r])}function Gl(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function ql(t,e){return t[e]||t.all||0}function cs(t,e,n=Date.now()){return ql(t,e)>n}function ls(t,{statusCode:e,headers:n},r=Date.now()){let i=p({},t),o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let a of o.trim().split(",")){let[c,l,,,u]=a.split(":",5),d=parseInt(c,10),m=(isNaN(d)?60:d)*1e3;if(!l)i.all=r+m;else for(let g of l.split(";"))g==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[g]=r+m):i[g]=r+m}else s?i.all=r+Gl(s,r):e===429&&(i.all=r+60*1e3);return i}function Fe(t){let e,n=t[0],r=1;for(;r<t.length;){let i=t[r],o=t[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(e=n,n=o(n)):(i==="call"||i==="optionalCall")&&(n=o((...s)=>n.call(e,...s)),e=void 0)}return n}function Qt(){return{traceId:k(),spanId:k().substring(16)}}var pi=I;function us(){let t=pi.chrome,e=t&&t.app&&t.app.runtime,n="history"in pi&&!!pi.history.pushState&&!!pi.history.replaceState;return!e&&n}var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Qe(){return Jn(I),I}function Jn(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Oe,e[Oe]=e[Oe]||{}}function zl(t){let e=Q(),n={sid:k(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>bf(n)};return t&&_t(n,t),n}function _t(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Q(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:k()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),t
7ypeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Kl(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),_t(t,n)}function bf(t){return $({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}var ds="_sentrySpan";function Rt(t,e){e?X(t,ds,e):delete t[ds]}function Jt(t){return t[ds]}var vf=100,ps=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Qt()}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags=p({},this._tags),e._extra=p({},this._extra),e._contexts=p({},this._contexts),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata=p({},this._sdkProcessingMetadata),e._propagationContext=p({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,Rt(e,Jt(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&_t(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=p(p({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this._tags=P(p({},this._tags),{[e]:n}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=p(p({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=P(p({},this._extra),{[e]:n}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,[r,i]=n instanceof Ne?[n.getScopeData(),n.getRequestSession()]:qe(n)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:c,level:l,fingerprint:u=[],propagationContext:d}=r||{};return this._tags=p(p({},this._tags),o),this._extra=p(p({},this._extra),s),this._contexts=p(p({},this._contexts),c),a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),i&&(this._requestSession=i),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,Rt(this,void 0),this._attachments=[],this._propagationContext=Qt(),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:vf;if(r<=0)return this;let i=p({timestamp:at()},e),o=this._breadcrumbs;return o.push(i),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(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Jt(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=p(p({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n&&n.event_id?n.event_id:k();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,P(p({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r&&r.event_id?r.event_id:k();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),i;let o=new Error(e);return this._client.captureMessage(e,n,P(p({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=n&&n.event_id?n.event_id:k();return this._client?(this._client.captureEvent(e,P(p({},n),{event_id:r}),this),r):(h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
7h(e=>{e(this)}),this._notifyingListeners=!1)}},Ne=ps;function Wl(){return At("defaultCurrentScope",()=>new Ne)}function Yl(){return At("defaultIsolationScope",()=>new Ne)}var fs=class{constructor(e,n){let r;e?r=e:r=new Ne;let i;n?i=n:i=new Ne,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){let n=this._pushScope(),r;try{r=e(n)}catch(i){throw this._popScope(),i}return nt(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(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(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function En(){let t=Qe(),e=Jn(t);return e.stack=e.stack||new fs(Wl(),Yl())}function If(t){return En().withScope(t)}function Af(t,e){let n=En();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Vl(t){return En().withScope(()=>t(En().getIsolationScope()))}function Ql(){return{withIsolationScope:Vl,withScope:If,withSetScope:Af,withSetIsolationScope:(t,e)=>Vl(e),getCurrentScope:()=>En().getScope(),getIsolationScope:()=>En().getIsolationScope()}}function wt(t){let e=Jn(t);return e.acs?e.acs:Ql()}function M(){let t=Qe();return wt(t).getCurrentScope()}function ie(){let t=Qe();return wt(t).getIsolationScope()}function fi(){return At("globalScope",()=>new Ne)}function Xt(...t){let e=Qe(),n=wt(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function A(){return M().getClient()}var Nf="_sentryMetrics";function Xn(t){let e=t[Nf];if(!e)return;let n={};for(let[,[r,i]]of e)(n[r]||(n[r]=[])).push($(i));return n}var Te="sentry.source",Tn="sentry.sample_rate",he="sentry.op",j="sentry.origin",bn="sentry.idle_span_finish_reason",Ct="sentry.measurement_unit",Pt="sentry.measurement_value",ms="sentry.profile_id",Zt="sentry.exclusive_time";function hs(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}function vn(t,e){t.setAttribute("http.response.status_code",e);let n=hs(e);n.message!=="unknown_error"&&t.setStatus(n)}var mi=0,_s=1;function Xl(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a}=N(t);return $({parent_span_id:o,span_id:e,trace_id:n,data:r,op:i,status:s,origin:a})}function Ss(t){let{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=N(t);return $({parent_span_id:r,span_id:e,trace_id:n})}function In(t){let{traceId:e,spanId:n}=t.spanContext(),r=Ue(t);return Vt(e,n,r)}function Je(t){return typeof t=="number"?Jl(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Jl(t.getTime()):Q()}function Jl(t){return t>9999999999?t/1e3:t}function N(t){if(Pf(t))return t.getSpanJSON();try{let{spanId:e,traceId:n}=t.spanContext();if(Cf(t)){let{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:c}=t;return $({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Je(i),timestamp:Je(s)||void 0,status:hi(c),op:r[he],origin:r[j],_metrics_summary:Xn(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function Cf(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Pf(t){return typeof t.getSpanJSON=="function"}function Ue(t){let{traceFlags:e}=t.spanContext();return e===_s}function hi(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var en="_sentryChildSpans",gs="_sentryRootSpan";function gi(t,e){let n=t[gs]||t;X(e,gs,n),t[en]?t[en].add(e):X(t,en,new Set([e]))}function Zl(t,e){t[en]&&t[en].delete(e)}function Mt(t){let e=new Set;function n(r){if(!e.has(r)&&Ue(r)){e.add(r);let i=r[en]?Array.from(r[en]):[];for(let o of i)n(o)}}return n(t),Array.from(e)}function H(t){return t[gs]||t}function G(){let t=Qe(),e=wt(t);
7return e.getActiveSpan?e.getActiveSpan():Jt(M())}var eu=!1;function _i(){eu||(eu=!0,Wn(ys),Yn(ys))}function ys(){let t=G(),e=t&&H(t);if(e){let n="internal_error";b&&h.log(`[Tracing] Root span: ${n} -> Global error occured`),e.setStatus({code:2,message:n})}}ys.tag="sentry_tracingErrorCallback";var tu="_sentryScope",nu="_sentryIsolationScope";function ru(t,e,n){t&&(X(t,nu,n),X(t,tu,e))}function Es(t){return{scope:t[tu],isolationScope:t[nu]}}function pe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=A(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var Re=class{constructor(e={}){this._traceId=e.traceId||k(),this._spanId=e.spanId||k().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:mi}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}};var An="production";var iu="_frozenDsc";function Ts(t,e){X(t,iu,e)}function xt(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=$({environment:n.environment||An,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function ge(t){let e=A();if(!e)return{};let n=xt(N(t).trace_id||"",e),r=H(t),i=r[iu];if(i)return i;let o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&Qn(s);if(a)return a;let c=N(r),l=c.data||{},u=l[Tn];u!=null&&(n.sample_rate=`${u}`);let d=l[Te],m=c.description;return d!=="url"&&m&&(n.transaction=m),pe()&&(n.sampled=String(Ue(r))),e.emit("createDsc",n,r),n}function ou(t){if(!b)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=N(t),{spanId:i}=t.spanContext(),o=Ue(t),s=H(t),a=s===t,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!a){let{op:u,description:d}=N(s);l.push(`root ID: ${s.spanContext().spanId}`),u&&l.push(`root op: ${u}`),d&&l.push(`root description: ${d}`)}h.log(`${c}
8  ${l.join(`
9  `)}`)}function su(t){if(!b)return;let{description:e="< unknown name >",op:n="< unknown op >"}=N(t),{spanId:r}=t.spanContext(),o=H(t)===t,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${e}" with ID ${r}`;h.log(s)}function Si(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){b&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}function au(t,e){if(!pe(t))return[!1];let n;typeof t.tracesSampler=="function"?n=t.tracesSampler(e):e.parentSampled!==void 0?n=e.parentSampled:typeof t.tracesSampleRate<"u"?n=t.tracesSampleRate:n=1;let r=Si(n);return r===void 0?(b&&h.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(b&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(b&&h.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r])}function Mf(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function cu(t,e,n,r){let i=di(n),o=p(p({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:ze(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Ve(o,[s])}function lu(t,e,n,r){let i=di(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Mf(t,n&&n.sdk);let s=ss(t,i,r,e);return delete t.sdkProcessingMetadata,Ve(s,[[{type:o},t]])}function uu(t,e){function n(u){return!!u.trace_id&&!!u.public_key}let r=ge(t[0]),i=e&&e.getDsn(),o=e&&e.getOptions().tunnel,s=p(p({sent_at:new Date().toISOString()},n(r)&&{trace:r}),!!o&&i&&{dsn:ze(i)}),a=e&&e.getOptions().beforeSendSpan,c=a?u=>a(N(u)):u=>N(u),l=[];for(let u of t){let d=c(u);d&&l.push(is(d))}return Ve(s,l)}function yi(t,e,n,r=G()){let i=r&&H(r);i&&i.addEvent(t,{[Pt]:e,[Ct]:n})}function Ei(t){if(!t||t.length===0)return;let e={};return t.forEach(n=>{let r=n.attributes||{},i=r[Ct],o=r[Pt];typeof i=="string"&&typeof o=="number"&&(e[n.name]={value:o,unit:i})}),e}var du=1e3,Nn=class{constructor(e={}){this._traceId=e.traceId||k(),this._spanId=e.spanId||k().substring(16),this._startTime=e.startTimestamp||Q(),this._attributes={},this.setAttributes(p({[j]:"manual",[he]:e.op},e.attributes)),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
9addLink(e){return this}addLinks(e){return this}recordException(e,n){}spanContext(){let{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?_s:mi}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=Je(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=Je(e),su(this),this._onSpanEnded())}getSpanJSON(){return $({data:this._attributes,description:this._name,op:this._attributes[he],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:hi(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[j],_metrics_summary:Xn(this),profile_id:this._attributes[ms],exclusive_time:this._attributes[Zt],measurements:Ei(this._events),is_segment:this._isStandaloneSpan&&H(this)===this||void 0,segment_id:this._isStandaloneSpan?H(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){b&&h.log("[Tracing] Adding an event to span:",e);let i=pu(n)?n:r||Q(),o=pu(n)?{}:n||{},s={name:e,time:Je(i),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=A();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===H(this)))return;if(this._isStandaloneSpan){this._sampled?Of(uu([this],e)):(b&&h.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();r&&(Es(this).scope||M()).captureEvent(r)}_convertSpanToTransaction(){if(!fu(N(this)))return;this._name||(b&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:n}=Es(this),i=(e||M()).getClient()||A();if(this._sampled!==!0){b&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}let s=Mt(this).filter(d=>d!==this&&!xf(d)).map(d=>N(d)).filter(fu),a=this._attributes[Te],c=p({contexts:{trace:Xl(this)},spans:s.length>du?s.sort((d,m)=>d.start_timestamp-m.start_timestamp).slice(0,du):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:p({capturedSpanScope:e,capturedSpanIsolationScope:n},$({dynamicSamplingContext:ge(this)})),_metrics_summary:Xn(this)},a&&{transaction_info:{source:a}}),l=Ei(this._events);return l&&Object.keys(l).length&&(b&&h.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}};function pu(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function fu(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function xf(t){return t instanceof Nn&&t.isStandaloneSpan()}function Of(t){let e=A();if(!e)return;let n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}let r=e.getTransport();r&&r.send(t).then(null,i=>{b&&h.error("Error while sending span:",i)})}var hu="__SENTRY_SUPPRESS_TRACING__";function _e(t){let e=gu();if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=Df(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?s=>Xt(t.scope,s):i!==void 0?s=>Zn(i,s):s=>s())(()=>{let s=M(),a=Ff(s);return t.onlyIfParent&&!a?new Re:kf({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}function Zn(t,e){let n=gu();return n.withActiveSpan?n.withActiveSpan(t,e):Xt(r=>(Rt(r,t||void 0),e(r)))}function kf({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!pe())return new Re;let i=ie(),o;if(t&&!n)o=Lf(t,r,e),gi(t,o);else if(t){let s=ge(t),{traceId:a,spanId:c}=t.spanContext(),l=Ue(t);o=mu(p({traceId:a,parentSpanId:c},e),r,l),Ts(o,s)}else{let{traceId:s,dsc:a,parentSpanId:c,sampled:l}=p(p({},i.getPropagationContext()),r.getPropagationContext());o=mu(p({traceId:s,parentSpanId:c},e),r,l),a&&Ts(o,a)}
9return ou(o),ru(o,r,i),o}function Df(t){let e=t.experimental||{},n=p({isStandalone:e.standalone},t);if(t.startTime){let r=p({},n);return r.startTimestamp=Je(t.startTime),delete r.startTime,r}return n}function gu(){let t=Qe();return wt(t)}function mu(t,e,n){let r=A(),i=r&&r.getOptions()||{},{name:o="",attributes:s}=t,[a,c]=e.getScopeData().sdkProcessingMetadata[hu]?[!1]:au(i,{name:o,parentSampled:n,attributes:s,transactionContext:{name:o,parentSampled:n}}),l=new Nn(P(p({},t),{attributes:p({[Te]:"custom"},t.attributes),sampled:a}));return c!==void 0&&l.setAttribute(Tn,c),r&&r.emit("spanStart",l),l}function Lf(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),o=e.getScopeData().sdkProcessingMetadata[hu]?!1:Ue(t),s=o?new Nn(P(p({},n),{parentSpanId:r,traceId:i,sampled:o})):new Re({traceId:i});gi(t,s);let a=A();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function Ff(t){let e=Jt(t);if(!e)return;let n=A();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?H(e):e}var Rn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Uf="heartbeatFailed",Bf="idleTimeout",Hf="finalTimeout",$f="externalFinish";function Ti(t,e={}){let n=new Map,r=!1,i,o=$f,s=!e.disableAutoFinish,a=[],{idleTimeout:c=Rn.idleTimeout,finalTimeout:l=Rn.finalTimeout,childSpanTimeout:u=Rn.childSpanTimeout,beforeSpanEnd:d}=e,m=A();if(!m||!pe())return new Re;let g=M(),f=G(),_=jf(t);_.end=new Proxy(_.end,{apply(C,R,F){d&&d(_);let[ne,...J]=F,we=ne||Q(),Y=Je(we),bt=Mt(_).filter(T=>T!==_);if(!bt.length)return q(Y),Reflect.apply(C,R,[Y,...J]);let kt=bt.map(T=>N(T).timestamp).filter(T=>!!T),Dt=kt.length?Math.max(...kt):void 0,S=N(_).start_timestamp,E=Math.min(S?S+l/1e3:1/0,Math.max(S||-1/0,Math.min(Y,Dt||1/0)));return q(E),Reflect.apply(C,R,[E,...J])}});function w(){i&&(clearTimeout(i),i=void 0)}function U(C){w(),i=setTimeout(()=>{!r&&n.size===0&&s&&(o=Bf,_.end(C))},c)}function B(C){i=setTimeout(()=>{!r&&s&&(o=Uf,_.end(C))},u)}function W(C){w(),n.set(C,!0);let R=Q();B(R+u/1e3)}function D(C){if(n.has(C)&&n.delete(C),n.size===0){let R=Q();U(R+c/1e3)}}function q(C){r=!0,n.clear(),a.forEach(Y=>Y()),Rt(g,f);let R=N(_),{start_timestamp:F}=R;if(!F)return;(R.data||{})[bn]||_.setAttribute(bn,o),h.log(`[Tracing] Idle span "${R.op}" finished`);let J=Mt(_).filter(Y=>Y!==_),we=0;J.forEach(Y=>{Y.isRecording()&&(Y.setStatus({code:2,message:"cancelled"}),Y.end(C),b&&h.log("[Tracing] Cancelling span since span ended early",JSON.stringify(Y,void 0,2)));let bt=N(Y),{timestamp:kt=0,start_timestamp:Dt=0}=bt,S=Dt<=C,E=(l+c)/1e3,T=kt-Dt<=E;if(b){let x=JSON.stringify(Y,void 0,2);S?T||h.log("[Tracing] Discarding span since it finished after idle span final timeout",x):h.log("[Tracing] Discarding span since it happened after idle span was finished",x)}(!T||!S)&&(Zl(_,Y),we++)}),we>0&&_.setAttribute("sentry.idle_span_discarded_spans",we)}return a.push(m.on("spanStart",C=>{if(r||C===_||N(C).timestamp)return;Mt(_).includes(C)&&W(C.spanContext().spanId)})),a.push(m.on("spanEnd",C=>{r||D(C.spanContext().spanId)})),a.push(m.on("idleSpanEnableAutoFinish",C=>{C===_&&(s=!0,U(),n.size&&B())})),e.disableAutoFinish||U(),setTimeout(()=>{r||(_.setStatus({code:2,message:"deadline_exceeded"}),o=Hf,_.end())},l),_}function jf(t){let e=_e(t);return Rt(M(),e),b&&h.log("[Tracing] Started span is an idle span"),e}function bi(t,e,n,r=0){return new Ye((i,o)=>{let s=t[r];if(e===null||typeof s!="function")i(e);else{let a=s(p({},e),n);b&&s.id&&a===null&&h.log(`Event processor "${s.id}" dropped event`),nt(a)?a.then(c=>bi(t,c,n,r+1).then(i)).then(null,o):bi(t,a,n,r+1).then(i).then(null,o)}})}function _u(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;Gf(t,e),r&&Kf(t,r),Wf(t,n),qf(t,i),zf(t,o)}function bs(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:m,transactionName:g,span:f}=e;er(t,"extra",n),er(t,"tags",r),er(t,"user",i),er(t,"contexts",o),er(t,"sdkProcessingMetadata",a),s&&(t.level=s),g&&(t.transactionName=g),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),u.length&&(t.eventProcessors=[...t.eventProcessors,...u]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext=p(p({},t.propagationContext),m)}function er(t,e,n){if(n&&Object.keys(n).length){t[e]=p({},t[e]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Gf(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,c=$(n);c&&Object.keys(c).length&&(t.extra=p(p({},c),t.extra));let l=$(r);l&&Object.keys(l).length&&(t.tags=p(p({},l),t.tags));let u=$(i);u&&Object.keys(u).length&&(t.user=p(p({},u),t.user));let d=$(o);d&&Object.keys(d).length&&(t.contexts=p(p({},d),t.contexts)),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function qf(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function zf(t,e){t.sdkProcessingMetadata=p(p({},t.sdkProcessingMetadata),e)}function Kf(t,e){t.contexts=p({trace:Ss(e)},t.contexts),t.sdkProcessingMetadata=p({dynamicSamplingContext:ge(e)},t.sdkProcessingMetadata);let n=H(e),r=N(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Wf(t,e){t.fingerprint=t.fingerprint?Vn(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function yu(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,c=P(p({},e),{event_id:e.event_id||n.event_id||k(),timestamp:e.timestamp||at()}),l=n.integrations||t.integrations.map(w=>w.name);Yf(c,t),Jf(c,l),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&Vf(c,t.stackParser);let u=Zf(r,n.captureContext);n.mechanism&&ht(c,n.mechanism);let d=i?i.getEventProcessors():[],m=fi().getScopeData();if(o){let w=o.getScopeData();bs(m,w)}if(u){let w=u.getScopeData();bs(m,w)}let g=[...n.attachments||[],...m.attachments];g.length&&(n.attachments=g),_u(c,m);let f=[...d,...m.eventProcessors];return bi(f,c,n).then(w=>
9(w&&Qf(w),typeof s=="number"&&s>0?Xf(w,s,a):w))}function Yf(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:An),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=rt(t.message,o));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=rt(s.value,o));let a=t.request;a&&a.url&&(a.url=rt(a.url,o))}var Su=new WeakMap;function Vf(t,e){let n=I._sentryDebugIds;if(!n)return;let r,i=Su.get(e);i?r=i:(r=new Map,Su.set(e,r));let o=Object.entries(n).reduce((s,[a,c])=>{let l,u=r.get(a);u?l=u:(l=e(a),r.set(a,l));for(let d=l.length-1;d>=0;d--){let m=l[d];if(m.filename){s[m.filename]=c;break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function Qf(t){let e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function Jf(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Xf(t,e,n){if(!t)return null;let r=p(p(p(p(p({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>p(p({},i),i.data&&{data:We(i.data,e,n)}))}),t.user&&{user:We(t.user,e,n)}),t.contexts&&{contexts:We(t.contexts,e,n)}),t.extra&&{extra:We(t.extra,e,n)});return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=We(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>p(p({},i),i.data&&{data:We(i.data,e,n)}))),r}function Zf(t,e){if(!e)return t;let n=t?t.clone():new Ne;return n.update(e),n}function Eu(t){if(t)return em(t)?{captureContext:t}:nm(t)?{captureContext:t}:t}function em(t){return t instanceof Ne||typeof t=="function"}var tm=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function nm(t){return Object.keys(t).some(e=>tm.includes(e))}function wn(t,e){return M().captureException(t,Eu(e))}function tr(t,e){return M().captureEvent(t,e)}function nr(t){let e=A(),n=ie(),r=M(),{release:i,environment:o=An}=e&&e.getOptions()||{},{userAgent:s}=I.navigator||{},a=zl(p(p({release:i,environment:o,user:r.getUser()||n.getUser()},s&&{userAgent:s}),t)),c=n.getSession();return c&&c.status==="ok"&&_t(c,{status:"exited"}),vi(),n.setSession(a),r.setSession(a),a}function vi(){let t=ie(),e=M(),n=e.getSession()||t.getSession();n&&Kl(n),bu(),t.setSession(),e.setSession()}function bu(){let t=ie(),e=M(),n=A(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function rr(t=!1){if(t){vi();return}bu()}var rm="7";function im(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function om(t){return`${im(t)}${t.projectId}/envelope/`}function sm(t,e){return Ho(p({sentry_key:t.publicKey,sentry_version:rm},e&&{sentry_client:`${e.name}/${e.version}`}))}function vu(t,e,n){return e||`${om(t)}?${sm(t,n)}`}var Iu=[];function am(t){let e={};return t.forEach(n=>{let{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function vs(t){let e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=Vn(n(e)):r=e;let i=am(r),o=i.findIndex(s=>s.name==="Debug");if(o>-1){let[s]=i.splice(o,1);i.push(s)}return i}function Au(t,e){let n={};return e.forEach(r=>{r&&As(t,r,n)}),n}function Is(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function As(t,e,n){if(n[e.name]){b&&h.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,Iu.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),Iu.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}b&&h.log(`Integration installed: ${e.name}`)}var Nu="Not capturing exception because it's already been captured.",ir=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Jr(e.dsn):b&&h.warn("No DSN provided, client will not send events."),this._dsn){let n=vu(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(P(p({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:n}))}}captureException(e,n,r){let i=k();if(ai(e))return b&&h.log(Nu),i;let o=p({event_id:i},n);return this._process(this.eventFromException(e,o).then(s=>this._captureEvent(s,o,r))),o.event_id}captureMessage(e,n,r,i){let o=p({event_id:k()},r),s=mn(e)?e:String(e),a=Kt(e)?this.eventFromMessage(s,n,o):this.eventFromException(e,o);return this._process(a.then(c=>this._captureEvent(c,o,i))),o.event_id}captureEvent(e,n,r){let i=k();if(n&&n.originalException&&ai(n.originalException))return b&&h.log(Nu),i;let o=p({event_id:i},n),a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,a||r)),o.event_id}captureSession(e){typeof e.release!="string"?b&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),_t(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let n=this._transport;
9return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i))):De(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let n=this._integrations[e.name];As(this,e,this._integrations),n||Is(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=lu(e,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=ns(r,os(o));let i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){let n=cu(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){let i=typeof r=="number"?r:1,o=`${e}:${n}`;b&&h.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}on(e,n){let r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{let i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(e,...n){let r=this._hooks[e];r&&r.forEach(i=>i(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(b&&h.error("Error while sending event:",n),n)):(b&&h.error("Transport disabled"),De({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Au(this,e),Is(this,e)}_updateSessionFromEvent(e,n){let r=!1,i=!1,o=n.exception&&n.exception.values;if(o){i=!0;for(let c of o){let l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&r)&&(_t(e,P(p({},r&&{status:"crashed"}),{errors:e.errors||Number(i||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new Ye(n=>{let r=0,i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,e&&r>=e&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i=ie()){let o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),yu(o,e,n,r,this,i).then(a=>{if(a===null)return a;let c=p(p({},i.getPropagationContext()),r?r.getPropagationContext():void 0);if(!(a.contexts&&a.contexts.trace)&&c){let{traceId:u,spanId:d,parentSpanId:m,dsc:g}=c;a.contexts=p({trace:$({trace_id:u,span_id:d,parent_span_id:m})},a.contexts);let f=g||xt(u,this);a.sdkProcessingMetadata=p({dynamicSamplingContext:f},a.sdkProcessingMetadata)}return a})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(i=>i.event_id,i=>{if(b){let o=i;o.logLevel==="log"?h.log(o.message):h.warn(o)}})}_processEvent(e,n,r){let i=this.getOptions(),{sampleRate:o}=i,s=wu(e),a=Ru(e),c=e.type||"error",l=`before send for type \`${c}\``,u=typeof o>"u"?void 0:Si(o);if(a&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),Nt(new le(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));let d=c==="replay_event"?"replay":c,g=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,g).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",d,e),new le("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;let w=lm(this,i,f,n);return cm(w,l)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",d,e),s){let B=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",B)}throw new le(`${l} returned \`null\`, will not send event.`,"log")}let _=r&&r.getSession();if(!s&&_&&this._updateSessionFromEvent(_,f),s){let U=f.sdkProcessingMetadata&&f.sdkProcessingMetadata.spanCountBeforeProcessing||0,B=f.spans?f.spans.length:0,W=U-B;W>0&&this.recordDroppedEvent("before_send","span",W)}let w=f.transaction_info;if(s&&w&&f.transaction!==e.transaction){let U="custom";f.transaction_info=P(p({},w),{source:U})}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof le?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new le(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${f}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{let[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){b&&h.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){b&&h.log("No outcomes to send");return}if(!this._dsn){b&&h.log("No dsn provided, will not send outcomes");return}b&&h.log("Sending outcomes:",e);let n=as(e,this._options.tunnel&&ze(this._dsn));this.sendEnvelope(n)}};function cm(t,e){let n=`${e} must return \`null\` or a valid event.`;if(nt(t))return t.then(r=>{if(!qe(r)&&r!==null)throw new le(n);return r},r=>{throw new le(`${e} rejected with ${r}`)});if(!qe(t)&&t!==null)throw new le(n);return t}function lm(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e;
10if(Ru(n)&&i)return i(n,r);if(wu(n)){if(n.spans&&s){let a=[];for(let c of n.spans){let l=s(c);l?a.push(l):t.recordDroppedEvent("before_send","span")}n.spans=a}if(o){if(n.spans){let a=n.spans.length;n.sdkProcessingMetadata=P(p({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:a})}return o(n,r)}}return n}function Ru(t){return t.type===void 0}function wu(t){return t.type==="transaction"}function Ns(t,e){e.debug===!0&&(b?h.enable():ot(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),M().update(e.initialScope);let r=new t(e);return Rs(r),r.init(),r}function Rs(t){M().setClient(t)}var um=64;function Ii(t,e,n=Jo(t.bufferSize||um)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(li(s,(d,m)=>{let g=ui(m);if(cs(r,g)){let f=Cu(d,m);t.recordDroppedEvent("ratelimit_backoff",g,f)}else a.push(d)}),a.length===0)return De({});let c=Ve(s[0],a),l=d=>{li(c,(m,g)=>{let f=Cu(m,g);t.recordDroppedEvent(d,ui(g),f)})},u=()=>e({body:rs(c)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&b&&h.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=ls(r,d),d),d=>{throw l("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof le)return b&&h.error("Skipped sending event because buffer is full."),l("queue_overflow"),De({});throw d})}return{send:o,flush:i}}function Cu(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function ws(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Oe})),version:Oe}),t._metadata=i}var dm=100;function ct(t,e){let n=A(),r=ie();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=dm}=n.getOptions();if(o<=0)return;let s=at(),a=p({timestamp:s},t),c=i?ot(()=>i(a,e)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,o))}var Pu,pm="FunctionToString",Mu=new WeakMap,fm=()=>({name:pm,setupOnce(){Pu=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Yt(this),n=Mu.has(A())&&e!==void 0?e:this;return Pu.apply(n,t)}}catch{}},setup(t){Mu.set(t,!0)}}),Ai=fm;var mm=[/^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"],hm="InboundFilters",gm=(t={})=>({name:hm,processEvent(e,n,r){let i=r.getOptions(),o=_m(t,i);return Sm(e,o)?null:e}}),Ri=gm;function _m(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:mm],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Sm(t,e){return e.ignoreInternal&&Im(t)?(b&&h.warn(`Event dropped due to being internal Sentry Error.
11Event: ${Ke(t)}`),!0):ym(t,e.ignoreErrors)?(b&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12Event: ${Ke(t)}`),!0):Nm(t)?(b&&h.warn(`Event dropped due to not having an error message, error type or stacktrace.
13Event: ${Ke(t)}`),!0):Em(t,e.ignoreTransactions)?(b&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
14Event: ${Ke(t)}`),!0):Tm(t,e.denyUrls)?(b&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.
15Event: ${Ke(t)}.
16Url: ${Ni(t)}`),!0):bm(t,e.allowUrls)?!1:(b&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
17Event: ${Ke(t)}.
18Url: ${Ni(t)}`),!0)}function ym(t,e){return t.type||!e||!e.length?!1:vm(t).some(n=>it(n,e))}function Em(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let n=t.transaction;return n?it(n,e):!1}function Tm(t,e){if(!e||!e.length)return!1;let n=Ni(t);return n?it(n,e):!1}function bm(t,e){if(!e||!e.length)return!0;let n=Ni(t);return n?it(n,e):!0}function vm(t){let e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}function Im(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Am(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ni(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Am(e):null}catch{return b&&h.error(`Cannot extract url for event ${Ke(t)}`),null}}function Nm(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}var Rm="Dedupe",wm=()=>{let t;return{name:Rm,processEvent(e){if(e.type)return e;try{if(Cm(e,t))return b&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},wi=wm;function Cm(t,e){return e?!!(Pm(t,e)||Mm(t,e)):!1}function Pm(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ku(t,e)||!Ou(t,e))}function Mm(t,e){let n=xu(e),r=xu(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ku(t,e)||!Ou(t,e))}function Ou(t,e){let n=ni(t),r=ni(e);if(!n&&!r)return!0;
18if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function ku(t,e){let n=t.fingerprint,r=e.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 xu(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Cs(t,e,n,r,i="auto.http.browser"){if(!t.fetchData)return;let o=pe()&&e(t.fetchData.url);if(t.endTimestamp&&o){let f=t.fetchData.__span;if(!f)return;let _=r[f];_&&(Om(_,t),delete r[f]);return}let s=M(),a=A(),{method:c,url:l}=t.fetchData,u=xm(l),d=u?Le(u).host:void 0,m=!!G(),g=o&&m?_e({name:`${c} ${l}`,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":d,[j]:i,[he]:"http.client"}}):new Re;if(t.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(t.fetchData.url)&&a){let f=t.args[0];t.args[1]=t.args[1]||{};let _=t.args[1];_.headers=Du(f,a,s,_,pe()&&m?g:void 0)}return g}function Du(t,e,n,r,i){let o=ie(),{traceId:s,spanId:a,sampled:c,dsc:l}=p(p({},o.getPropagationContext()),n.getPropagationContext()),u=i?In(i):Vt(s,a,c),d=yn(l||(i?ge(i):xt(s,e))),m=r.headers||(typeof Request<"u"&&Ie(t,Request)?t.headers:void 0);if(m)if(typeof Headers<"u"&&Ie(m,Headers)){let g=new Headers(m);return g.append("sentry-trace",u),d&&g.append(Sn,d),g}else if(Array.isArray(m)){let g=[...m,["sentry-trace",u]];return d&&g.push([Sn,d]),g}else{let g="baggage"in m?m.baggage:void 0,f=[];return Array.isArray(g)?f.push(...g):g&&f.push(g),d&&f.push(d),P(p({},m),{"sentry-trace":u,baggage:f.length>0?f.join(","):void 0})}else return{"sentry-trace":u,baggage:d}}function xm(t){try{return new URL(t).href}catch{return}}function Om(t,e){if(e.response){vn(t,e.response.status);let n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){let r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus({code:2,message:"internal_error"});t.end()}var v=I,Ps=0;function Ms(){return Ps>0}function Jm(){Ps++,setTimeout(()=>{Ps--})}function nn(t,e={},n){if(typeof t!="function")return t;try{let i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(Yt(t))return t}catch{return t}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let o=i.map(s=>nn(s,e));return t.apply(this,o)}catch(o){throw Jm(),Xt(s=>{s.addEventProcessor(a=>(e.mechanism&&(_n(a,void 0,void 0),ht(a,e.mechanism)),a.extra=P(p({},a.extra),{arguments:i}),a)),wn(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Xr(r,t),X(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}var oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ci(t,e){let n=ks(t,e),r={type:e&&e.name,value:nh(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Xm(t,e,n,r){let i=A(),o=i&&i.getOptions().normalizeDepth,s=oh(e),a={__serialized__:ci(e,o)};if(s)return{exception:{values:[Ci(t,s)]},extra:a};let c={exception:{values:[{type:Wt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:rh(e,{isUnhandledRejection:r})}]},extra:a};if(n){let l=ks(t,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function xs(t,e){return{exception:{values:[Ci(t,e)]}}}function ks(t,e){let n=e.stacktrace||e.stack||"",r=eh(e),i=th(e);try{return t(n,r,i)}catch{}return[]}var Zm=/Minified React error #\d+;/i;function eh(t){return t&&Zm.test(t.message)?1:0}function th(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function nh(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Uu(t,e,n,r){let i=n&&n.syntheticException||void 0,o=Pi(t,e,i,r);return ht(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),De(o)}function Bu(t,e,n="info",r,i){let o=r&&r.syntheticException||void 0,s=Os(t,e,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),De(s)}function Pi(t,e,n,r,i){let o;if(Wr(e)&&e.error)return xs(t,e.error);if(Yr(e)||Mo(e)){let s=e;if("stack"in e)o=xs(t,e);else{let a=s.name||(Yr(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;o=Os(t,c,n,r),_n(o,c)}return"code"in s&&(o.tags=P(p({},o.tags),{"DOMException.code":`${s.code}`})),o}return zt(e)?xs(t,e):qe(e)||Wt(e)?(o=Xm(t,e,n,i),ht(o,{synthetic:!0}),o):(o=Os(t,e,n,r),_n(o,`${e}`,void 0),ht(o,{synthetic:!0}),o)}function Os(t,e,n,r){let i={};if(r&&n){let o=ks(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}
18if(mn(e)){let{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function rh(t,{isUnhandledRejection:e}){let n=$o(t),r=e?"promise rejection":"exception";return Wr(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Wt(t)?`Event \`${ih(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ih(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function oh(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}function Hu(t,{metadata:e,tunnel:n,dsn:r}){let i=p(p({event_id:t.event_id,sent_at:new Date().toISOString()},e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}}),!!n&&!!r&&{dsn:ze(r)}),o=sh(t);return Ve(i,[o])}function sh(t){return[{type:"user_report"},t]}var Mi=class extends ir{constructor(e){let n=p({parentSpanIsAlwaysRootSpan:!0},e),r=v.SENTRY_SDK_SOURCE||Vo();ws(n,"browser",["browser"],r),super(n),n.sendClientReports&&v.document&&v.document.addEventListener("visibilitychange",()=>{v.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Uu(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Bu(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){oe&&h.warn("SDK not enabled, will not capture user feedback.");return}let n=Hu(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}};var se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ah=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",Be=(t,e,n,r)=>{let i,o;return s=>{e.value>=0&&(s||r)&&(o=e.value-(i||0),(o||i===void 0)&&(i=e.value,e.delta=o,e.rating=ah(e.value,n),t(e)))}};var y=I;var $u=()=>`v3-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var St=()=>y.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];var lt=()=>{let t=St();return t&&t.activationStart||0};var He=(t,e)=>{let n=St(),r="navigate";return n&&(y.document&&y.document.prerendering||lt()>0?r="prerender":y.document&&y.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:$u(),navigationType:r}};var be=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{e(i.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}};var ut=t=>{let e=n=>{(n.type==="pagehide"||y.document&&y.document.visibilityState==="hidden")&&t(n)};y.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))};var Cn=t=>{let e=!1;return n=>{e||(t(n),e=!0)}};var or=-1,ch=()=>{or=y.document.visibilityState==="hidden"&&!y.document.prerendering?0:1/0},xi=t=>{y.document.visibilityState==="hidden"&&or>-1&&(or=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("visibilitychange",xi,!0),removeEventListener("prerenderingchange",xi,!0))},lh=()=>{addEventListener("visibilitychange",xi,!0),addEventListener("prerenderingchange",xi,!0)},Ot=()=>(y.document&&or<0&&(ch(),lh()),{get firstHiddenTime(){return or}});var dt=t=>{y.document&&y.document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()};var uh=[1800,3e3],ju=(t,e={})=>{dt(()=>{let n=Ot(),r=He("FCP"),i,s=be("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-lt(),0),r.entries.push(c),i(!0)))})});s&&(i=Be(t,r,uh,e.reportAllChanges))})};var dh=[.1,.25],Gu=(t,e={})=>{ju(Cn(()=>{let n=He("CLS",0),r,i=0,o=[],s=c=>{c.forEach(l=>{if(!l.hadRecentInput){let u=o[0],d=o[o.length-1];i&&u&&d&&l.startTime-d.startTime<1e3&&l.startTime-u.startTime<5e3?(i+=l.value,o.push(l)):(i=l.value,o=[l])}}),i>n.value&&(n.value=i,n.entries=o,r())},a=be("layout-shift",s);a&&(r=Be(t,n,dh,e.reportAllChanges),ut(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))};var ph=[100,300],qu=(t,e={})=>{dt(()=>{let n=Ot(),r=He("FID"),i,o=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),i(!0))},s=c=>
18{c.forEach(o)},a=be("first-input",s);i=Be(t,r,ph,e.reportAllChanges),a&&ut(Cn(()=>{s(a.takeRecords()),a.disconnect()}))})};var zu=0,Ds=1/0,Oi=0,fh=t=>{t.forEach(e=>{e.interactionId&&(Ds=Math.min(Ds,e.interactionId),Oi=Math.max(Oi,e.interactionId),zu=Oi?(Oi-Ds)/7+1:0)})},Ls,Ku=()=>Ls?zu:performance.interactionCount||0,Wu=()=>{"interactionCount"in performance||Ls||(Ls=be("event",fh,{type:"event",buffered:!0,durationThreshold:0}))};var mh=[200,500],hh=0,Qu=()=>Ku()-hh,Yu=10,yt=[],Fs={},Vu=t=>{let e=yt[yt.length-1],n=Fs[t.interactionId];if(n||yt.length<Yu||e&&t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{let r={id:t.interactionId,latency:t.duration,entries:[t]};Fs[r.id]=r,yt.push(r)}yt.sort((r,i)=>i.latency-r.latency),yt.splice(Yu).forEach(r=>{delete Fs[r.id]})}},gh=()=>{let t=Math.min(yt.length-1,Math.floor(Qu()/50));return yt[t]},Ju=(t,e={})=>{dt(()=>{Wu();let n=He("INP"),r,i=s=>{s.forEach(c=>{c.interactionId&&Vu(c),c.entryType==="first-input"&&!yt.some(u=>u.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&Vu(c)});let a=gh();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},o=be("event",i,{durationThreshold:e.durationThreshold!=null?e.durationThreshold:40});r=Be(t,n,mh,e.reportAllChanges),o&&("PerformanceEventTiming"in y&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),ut(()=>{i(o.takeRecords()),n.value<0&&Qu()>0&&(n.value=0,n.entries=[]),r(!0)}))})};var _h=[2500,4e3],Xu={},Zu=(t,e={})=>{dt(()=>{let n=Ot(),r=He("LCP"),i,o=a=>{let c=a[a.length-1];c&&c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-lt(),0),r.entries=[c],i())},s=be("largest-contentful-paint",o);if(s){i=Be(t,r,_h,e.reportAllChanges);let a=Cn(()=>{Xu[r.id]||(o(s.takeRecords()),s.disconnect(),Xu[r.id]=!0,i(!0))});["keydown","click"].forEach(c=>{y.document&&addEventListener(c,()=>setTimeout(a,0),!0)}),ut(a)}})};var Sh=[800,1800],Us=t=>{y.document&&y.document.prerendering?dt(()=>Us(t)):y.document&&y.document.readyState!=="complete"?addEventListener("load",()=>Us(t),!0):setTimeout(t,0)},ed=(t,e={})=>{let n=He("TTFB"),r=Be(t,n,Sh,e.reportAllChanges);Us(()=>{let i=St();if(i){let o=i.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-lt(),0),n.entries=[i],r(!0)}})};var sr={},ki={},td,nd,rd,id,od;function ar(t,e=!1){return cr("cls",t,yh,td,e)}function Bs(t,e=!1){return cr("lcp",t,Th,rd,e)}function Hs(t){return cr("fid",t,Eh,nd)}function $s(t){return cr("ttfb",t,bh,id)}function js(t){return cr("inp",t,vh,od)}function Et(t,e){return sd(t,e),ki[t]||(Ih(t),ki[t]=!0),ad(t,e)}function Pn(t,e){let n=sr[t];if(!(!n||!n.length))for(let r of n)try{r(e)}catch(i){se&&h.error(`Error while triggering instrumentation handler.
19Type: ${t}
20Name: ${Ee(r)}
21Error:`,i)}}function yh(){return Gu(t=>{Pn("cls",{metric:t}),td=t},{reportAllChanges:!0})}function Eh(){return qu(t=>{Pn("fid",{metric:t}),nd=t})}function Th(){return Zu(t=>{Pn("lcp",{metric:t}),rd=t},{reportAllChanges:!0})}function bh(){return ed(t=>{Pn("ttfb",{metric:t}),id=t})}function vh(){return Ju(t=>{Pn("inp",{metric:t}),od=t})}function cr(t,e,n,r,i=!1){sd(t,e);let o;return ki[t]||(o=n(),ki[t]=!0),r&&e({metric:r}),ad(t,e,i?o:void 0)}function Ih(t){let e={};t==="event"&&(e.durationThreshold=0),be(t,n=>{Pn(t,{entries:n})},e)}function sd(t,e){sr[t]=sr[t]||[],sr[t].push(e)}function ad(t,e,n){return()=>{n&&n();let r=sr[t];if(!r)return;let i=r.indexOf(e);i!==-1&&r.splice(i,1)}}function cd(t){return"duration"in t}function Di(t){return typeof t=="number"&&isFinite(t)}function rn(t,e,n,i){var r=fr(i,[]);let o=N(t).start_timestamp;return o&&o>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),Zn(t,()=>{let s=_e(p({startTime:e},r));return s&&s.end(n),s})}function Li(t){let e=A();if(!e)return;let{name:n,transaction:r,attributes:i,startTime:o}=t,{release:s,environment:a}=e.getOptions(),c=e.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=M(),d=u.getUser(),m=d!==void 0?d.email||d.id||d.ip_address:void 0,g;try{g=u.getScopeData().contexts.profile.profile_id}catch{}let f=p({release:s,environment:a,user:m||void 0,profile_id:g||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":y.navigator&&y.navigator.userAgent},i);return _e({name:n,attributes:f,startTime:o,experimental:{standalone:!0}})}function lr(){return y&&y.addEventListener&&y.performance}function K(t){return t/1e3}function ld(){let t=0,e,n;if(!Nh())return;let r=!1;function i(){r||(r=!0,n&&Ah(t,e,n),o())}let o=ar(({metric:s})=>{let a=s.entries[s.entries.length-1];a&&(t=s.value,e=a)},!0);ut(()=>{i()}),setTimeout(()=>{let s=A(),a=Fe([s,"optionalAccess",d=>d.on,"call",d=>d("startNavigationSpan",()=>{i(),a&&a()})]),c=G(),l=c&&H(c),u=l&&N(l);u&&u.op==="pageload"&&(n=l.spanContext().spanId)},0)}function Ah(t,e,n){se&&h.log(`Sending CLS span (${t})`);let r=K((ee||0)+(Fe([e,"optionalAccess",c=>c.startTime])||0)),i=M().getScopeData().transactionName,o=e?Ae(Fe([e,"access",c=>c.sources,"access",c=>c[0],"optionalAccess",c=>c.node])):"Layout shift",s=$({[j]:"auto.http.browser.cls",[he]:"ui.webvital.cls",[Zt]:Fe([e,"optionalAccess",c=>c.duration])||0,"sentry.pageload.span_id":n}),a=Li({name:o,transaction:i,attributes:s,startTime:r});Fe([a,"optionalAccess",c=>c.addEvent,"call",c=>c("cls",{[Ct]:"",[Pt]:t})]),Fe([a,"optionalAccess",c=>c.end,"call",c=>c(r)])}function Nh(){try{return Fe([PerformanceObserver,"access",t=>t.supportedEntryTypes,"optionalAccess",t=>t.includes,"call",t=>t("layout-shift")])}catch{return!1}}var Rh=2147483647,ud=0,ae={},pt,ur;function qs({recordClsStandaloneSpans:t}){let e=lr();if(e&&ee){e.mark&&y.performance.mark("sentry-tracing-init");let n=Ph(),r=Ch(),i=Mh(),o=t?ld():wh();return()=>{n(),r(),i(),o&&o()}}return()=>{}}function zs(){Et("longtask",({entries:t})=>{if(G())for(let e of t){let n=K(ee+e.startTime),r=K(e.duration),i=_e({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[j]:"auto.ui.browser.metrics"}});i&&i.end(n+r)}})}function Ks(){new PerformanceObserver(e=>{if(G())for(let n of e.getEntries()){if(!n.scripts[0])continue;let r=K(ee+n.startTime),i=K(n.duration),o={[j]:"auto.ui.browser.metrics"},s=n.scripts[0],{invoker:a,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=s;o["browser.script.invoker"]=a,o["browser.script.invoker_type"]=c,l&&(o["code.filepath"]=l),u&&(o["code.function"]=u),d!==-1&&(o["browser.script.source_char_position"]=d);let m=_e({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:o});m&&m.end(r+i)}}).observe({type:"long-animation-frame",buffered:!0})}function Ws(){Et("event",({entries:t})=>{if(G()){for(let e of t)if(e.name==="click"){let n=K(ee+e.startTime),r=K(e.duration),i={name:Ae(e.target),op:`ui.interaction.${e.name}`,startTime:n,attributes:{[j]:"auto.ui.browser.metrics"}},o=jn(e.target);o&&(i.attributes["ui.component_name"]=o);let s=_e(i);s&&s.end(n+r)}}})}function wh(){return ar(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(se&&h.log(`[Measurements] Adding CLS ${t.value}`),ae.cls={value:t.value,unit:""},ur=e)},!0)}function Ch(){return Bs(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(se&&h.log("[Measurements] Adding LCP"),ae.lcp={value:t.value,unit:"millisecond"},pt=e)},!0)}function Ph(){return Hs(({metric:t})=>{let e=t.entries[t.entries.length-1];if(!e)return;let n=K(ee),r=K(e.startTime);se&&h.log("[Measurements] Adding FID"),ae.fid={value:t.value,unit:"millisecond"},ae["mark.fid"]={value:n+r,unit:"second"}})}function Mh(){return $s(({metric:t})=>{t.entries[t.entries.length-1]&&(se&&h.log("[Measurements] Adding TTFB"),ae.ttfb
21={value:t.value,unit:"millisecond"})})}function Ys(t,e){let n=lr();if(!n||!y.performance.getEntries||!ee)return;se&&h.log("[Tracing] Adding & adjusting spans using Performance API");let r=K(ee),i=n.getEntries(),{op:o,start_timestamp:s}=N(t);if(i.slice(ud).forEach(a=>{let c=K(a.startTime),l=K(Math.max(0,a.duration));if(!(o==="navigation"&&s&&r+c<s))switch(a.entryType){case"navigation":{Oh(t,a,r);break}case"mark":case"paint":case"measure":{xh(t,a,c,l,r);let u=Ot(),d=a.startTime<u.firstHiddenTime;a.name==="first-paint"&&d&&(se&&h.log("[Measurements] Adding FP"),ae.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&d&&(se&&h.log("[Measurements] Adding FCP"),ae.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{Dh(t,a,a.name,c,l,r);break}}}),ud=Math.max(i.length-1,0),Lh(t),o==="pageload"){Uh(ae);let a=ae["mark.fid"];a&&ae.fid&&(rn(t,a.value,a.value+K(ae.fid.value),{name:"first input delay",op:"ui.action",attributes:{[j]:"auto.ui.browser.metrics"}}),delete ae["mark.fid"]),(!("fcp"in ae)||!e.recordClsOnPageloadSpan)&&delete ae.cls,Object.entries(ae).forEach(([c,l])=>{yi(c,l.value,l.unit)}),t.setAttribute("performance.timeOrigin",r),t.setAttribute("performance.activationStart",lt()),Fh(t)}pt=void 0,ur=void 0,ae={}}function xh(t,e,n,r,i){let o=St(),s=K(o?o.requestStart:0),a=i+Math.max(n,s),c=i+n,l=c+r,u={[j]:"auto.resource.browser.metrics"};return a!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a),rn(t,a,l,{name:e.name,op:e.entryType,attributes:u}),a}function Oh(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Fi(t,e,r,n)}),Fi(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Fi(t,e,"fetch",n,"cache","domainLookupStart"),Fi(t,e,"domainLookup",n,"DNS"),kh(t,e,n)}function Fi(t,e,n,r,i,o){let s=o?e[o]:e[`${n}End`],a=e[`${n}Start`];!a||!s||rn(t,r+K(a),r+K(s),{op:`browser.${i||n}`,name:e.name,attributes:{[j]:"auto.ui.browser.metrics"}})}function kh(t,e,n){let r=n+K(e.requestStart),i=n+K(e.responseEnd),o=n+K(e.responseStart);e.responseEnd&&(rn(t,r,i,{op:"browser.request",name:e.name,attributes:{[j]:"auto.ui.browser.metrics"}}),rn(t,o,i,{op:"browser.response",name:e.name,attributes:{[j]:"auto.ui.browser.metrics"}}))}function Dh(t,e,n,r,i,o){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;let s=Le(n),a={[j]:"auto.resource.browser.metrics"};Gs(a,e,"transferSize","http.response_transfer_size"),Gs(a,e,"encodedBodySize","http.response_content_length"),Gs(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(y.location.origin);let c=o+r,l=c+i;rn(t,c,l,{name:n.replace(y.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:a})}function Lh(t){let e=y.navigator;if(!e)return;let n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),Di(n.rtt)&&(ae["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Di(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),Di(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}function Fh(t){pt&&(se&&h.log("[Measurements] Adding LCP Data"),pt.element&&t.setAttribute("lcp.element",Ae(pt.element)),pt.id&&t.setAttribute("lcp.id",pt.id),pt.url&&t.setAttribute("lcp.url",pt.url.trim().slice(0,200)),t.setAttribute("lcp.size",pt.size)),ur&&ur.sources&&(se&&h.log("[Measurements] Adding CLS Data"),ur.sources.forEach((e,n)=>t.setAttribute(`cls.source.${n+1}`,Ae(e.node))))}function Gs(t,e,n,r){let i=e[n];i!=null&&i<Rh&&(t[r]=i)}function Uh(t){let e=St();if(!e)return;let{responseStart:n,requestStart:r}=e;r<=n&&(se&&h.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}var Bh=1e3,dd,Vs,Qs;function Js(t){let e="dom";ue(e,t),de(e,Hh)}function Hh(){if(!y.document)return;let t=Z.bind(null,"dom"),e=pd(t,!0);y.document.addEventListener("click",e,!1),y.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let r=y[n]&&y[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(te(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[o]=l[o]||{refCount:0};if(!u.handler){let d=pd(t);u.handler=d,i.call(this,o,d,a)}u.refCount++}catch{}return i.call(this,o,s,a)}}),te(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[o];u&&(u.refCount--,u.refCount<=0&&(i.call(this,o,u.handler,a),u.handler=void 0,delete l[o]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function $h(t){if(t.type!==Vs)return!1;try{if(!t.target||t.target._sentryId!==Qs)return!1}catch{}return!0}function jh(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function pd(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Gh(n);if(jh(n.type,r))return;X(n,"_sentryCaptured",!0),r&&!r._sentryId&&X(r,"_sentryId",k());
21let i=n.type==="keypress"?"input":n.type;$h(n)||(t({event:n,name:i,global:e}),Vs=n.type,Qs=r?r._sentryId:void 0),clearTimeout(dd),dd=y.setTimeout(()=>{Qs=void 0,Vs=void 0},Bh)}}function Gh(t){try{return t.target}catch{return null}}var Ui;function on(t){let e="history";ue(e,t),de(e,qh)}function qh(){if(!us())return;let t=y.onpopstate;y.onpopstate=function(...n){let r=y.location.href,i=Ui;if(Ui=r,Z("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let o=Ui,s=String(i);Ui=s,Z("history",{from:o,to:s})}return n.apply(this,r)}}te(y.history,"pushState",e),te(y.history,"replaceState",e)}var Bi={};function Xs(t){let e=Bi[t];if(e)return e;let n=y[t];if(qn(n))return Bi[t]=n.bind(y);let r=y.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){se&&h.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(Bi[t]=n.bind(y))}function Hi(t){Bi[t]=void 0}var Tt="__sentry_xhr_v3__";function dr(t){let e="xhr";ue(e,t),de(e,zh)}function zh(){if(!y.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let i=Q()*1e3,o=me(r[0])?r[0].toUpperCase():void 0,s=Kh(r[1]);if(!o||!s)return e.apply(n,r);n[Tt]={method:o,url:s,request_headers:{}},o==="POST"&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let a=()=>{let c=n[Tt];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}let l={endTimestamp:Q()*1e3,startTimestamp:i,xhr:n};Z("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,l,u){return a(),c.apply(l,u)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,l,u){let[d,m]=u,g=l[Tt];return g&&me(d)&&me(m)&&(g.request_headers[d.toLowerCase()]=m),c.apply(l,u)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){let i=n[Tt];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);let o={startTimestamp:Q()*1e3,xhr:n};return Z("xhr",o),e.apply(n,r)}})}function Kh(t){if(me(t))return t;try{return t.toString()}catch{}}var Zs=[],$i=new Map;function ea(){if(lr()&&ee){let e=Wh();return()=>{e()}}return()=>{}}var fd={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Wh(){return js(({metric:t})=>{if(t.value==null)return;let e=t.entries.find(f=>f.duration===t.value&&fd[f.name]);if(!e)return;let{interactionId:n}=e,r=fd[e.name],i=K(ee+e.startTime),o=K(t.value),s=G(),a=s?H(s):void 0,l=(n!=null?$i.get(n):void 0)||a,u=l?N(l).description:M().getScopeData().transactionName,d=Ae(e.target),m=$({[j]:"auto.http.browser.inp",[he]:`ui.interaction.${r}`,[Zt]:e.duration}),g=Li({name:d,transaction:u,attributes:m,startTime:i});Fe([g,"optionalAccess",f=>f.addEvent,"call",f=>f("inp",{[Ct]:"millisecond",[Pt]:t.value})]),Fe([g,"optionalAccess",f=>f.end,"call",f=>f(i+o)])})}function ta(t){let e=({entries:n})=>{let r=G(),i=r&&H(r);n.forEach(o=>{if(!cd(o)||!i)return;let s=o.interactionId;if(s!=null&&!$i.has(s)){if(Zs.length>10){let a=Zs.shift();$i.delete(a)}Zs.push(s),$i.set(s,i)}})};Et("event",e),Et("first-input",e)}function md(t,e=Xs("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=p({body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);if(!e)return Hi("fetch"),Nt("No fetch implementation available");try{return e(t.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Hi("fetch"),n-=s,r--,Nt(c)}}return Ii(t,i)}var Yh=30;var Vh=50;function na(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?st:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Qh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Jh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xh=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zh=t=>{let e=Qh.exec(t);if(e){let[,r,i,o]=e;return na(r,st,+i,+o)}let n=Jh.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let s=Xh.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}let[i,o]=gd(n[1]||st,n[2]);return na(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},eg=[Yh,Zh],tg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ng=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rg=t=>{let e=tg.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let o=ng.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||st;return[i,r]=gd(i,r),na(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},ig=[Vh,rg];var og=[eg,ig],hd=ti(...og),gd=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:st,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var ji=1024,sg="Breadcrumbs",ag=(t={})=>{let e=p({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:sg,setup(n){e.console&&qo(ug(n)),e.dom&&Js(lg(n,e.dom)),e.xhr&&dr(dg(n)),e.fetch&&Kn(pg(n)),e.history&&on(fg(n)),e.sentry&&n.on("beforeSendEvent",cg(n))}}},_d=ag;function cg(t){return function(n){A()===t&&ct({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ke(n)},{event:n})}}function lg(t,e){return function(r){if(A()!==t)return;let i,o,s=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>ji&&(oe&&h.warn(`\`dom.maxStringLength\` cannot exceed ${ji}, but a value of ${a} was configured. Sentry will use ${ji} instead.`),a=ji),typeof s=="string"&&(s=[s]);try{let l=r.event,u=mg(l)?l.target:l;i=Ae(u,{keyAttrs:s,maxStringLength:a}),o=jn(u)}catch{i="<unknown>"}if(i.length===0)return;let c={category:`ui.${r.name}`,message:i};o&&(c.data={"ui.component_name":o}),ct(c,{event:r.event,name:r.name,global:r.global})}}function ug(t){return function(n){if(A()!==t)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Xo(n.level),message:Vr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Vr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ct(r,{input:n.args,level:n.level})}}function dg(t){return function(n){if(A()!==t)return;let{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[Tt];if(!r||!i||!o)return;let{method:s,url:a,status_code:c,body:l}=o,u={method:s,url:a,status_code:c},d={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:i},m=Qr(c);ct({category:"xhr",data:u,type:"http",level:m},d)}}function pg(t){return function(n){if(A()!==t)return;let{startTimestamp:r,endTimestamp:i}=n;
21if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){let o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ct({category:"fetch",data:o,level:"error",type:"http"},s)}else{let o=n.response,s=P(p({},n.fetchData),{status_code:o&&o.status}),a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},c=Qr(s.status_code);ct({category:"fetch",data:s,type:"http",level:c},a)}}}function fg(t){return function(n){if(A()!==t)return;let r=n.from,i=n.to,o=Le(v.location.href),s=r?Le(r):void 0,a=Le(i);(!s||!s.path)&&(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),ct({category:"navigation",data:{from:r,to:i}})}}function mg(t){return!!t&&!!t.target}var hg=["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"],gg="BrowserApiErrors",_g=(t={})=>{let e=p({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t);return{name:gg,setupOnce(){e.setTimeout&&te(v,"setTimeout",Sd),e.setInterval&&te(v,"setInterval",Sd),e.requestAnimationFrame&&te(v,"requestAnimationFrame",Sg),e.XMLHttpRequest&&"XMLHttpRequest"in v&&te(XMLHttpRequest.prototype,"send",yg);let n=e.eventTarget;n&&(Array.isArray(n)?n:hg).forEach(Eg)}}},yd=_g;function Sd(t){return function(...e){let n=e[0];return e[0]=nn(n,{mechanism:{data:{function:Ee(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Sg(t){return function(e){return t.apply(this,[nn(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ee(t)},handled:!1,type:"instrument"}})])}}function yg(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&te(n,i,function(o){let s={mechanism:{data:{function:i,handler:Ee(o)},handled:!1,type:"instrument"}},a=Yt(o);return a&&(s.mechanism.data.handler=Ee(a)),nn(o,s)})}),t.apply(this,e)}}function Eg(t){let e=v,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(te(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=nn(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ee(o),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,nn(o,{mechanism:{data:{function:"addEventListener",handler:Ee(o),target:t},handled:!1,type:"instrument"}}),s])}}),te(n,"removeEventListener",function(r){return function(i,o,s){let a=o;try{let c=a&&a.__sentry_wrapped__;c&&r.call(this,i,c,s)}catch{}return r.call(this,i,a,s)}}))}var Tg="GlobalHandlers",bg=(t={})=>{let e=p({onerror:!0,onunhandledrejection:!0},t);return{name:Tg,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(vg(n),Ed("onerror")),e.onunhandledrejection&&(Ig(n),Ed("onunhandledrejection"))}}},Td=bg;function vg(t){Wn(e=>{let{stackParser:n,attachStacktrace:r}=bd();if(A()!==t||Ms())return;let{msg:i,url:o,line:s,column:a,error:c}=e,l=Rg(Pi(n,c||i,void 0,r,!1),o,s,a);l.level="error",tr(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Ig(t){Yn(e=>{let{stackParser:n,attachStacktrace:r}=bd();if(A()!==t||Ms())return;let i=Ag(e),o=Kt(i)?Ng(i):Pi(n,i,void 0,r,!0);o.level="error",tr(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Ag(t){if(Kt(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function Ng(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Rg(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=me(e)&&e.length>0?e:Fo();
21return c.length===0&&c.push({colno:l,filename:d,function:st,in_app:!0,lineno:u}),t}function Ed(t){oe&&h.log(`Global Handler attached: ${t}`)}function bd(){let t=A();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var vd=()=>({name:"HttpContext",preprocessEvent(t){if(!v.navigator&&!v.location&&!v.document)return;let e=t.request&&t.request.url||v.location&&v.location.href,{referrer:n}=v.document||{},{userAgent:r}=v.navigator||{},i=p(p(p({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=P(p(p({},t.request),e&&{url:e}),{headers:i});t.request=o}});var wg="cause",Cg=5,Pg="LinkedErrors",Mg=(t={})=>{let e=t.limit||Cg,n=t.key||wg;return{name:Pg,preprocessEvent(r,i,o){let s=o.getOptions();Lo(Ci,s.stackParser,s.maxValueLength,n,e,r,i)}}},Id=Mg;function Ad(t){return[Ri(),Ai(),yd(),_d(),Td(),Id(),wi(),vd()]}function xg(t={}){let e={defaultIntegrations:Ad(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:v.SENTRY_RELEASE&&v.SENTRY_RELEASE.id?v.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,p(p({},e),t)}function Og(){let t=typeof v.window<"u"&&v;if(!t)return!1;let e=t.chrome?"chrome":"browser",n=t[e],r=n&&n.runtime&&n.runtime.id,i=v.location&&v.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!r&&v===v.top&&o.some(c=>i.startsWith(`${c}//`)),a=typeof t.nw<"u";return!!r&&!s&&!a}function ra(t={}){let e=xg(t);if(Og()){ot(()=>{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}oe&&(ii()||h.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));let n=P(p({},e),{stackParser:Go(e.stackParser||hd),integrations:vs(e),transport:e.transport||md}),r=Ns(Mi,n);return e.autoSessionTracking&&kg(),r}function kg(){if(typeof v.document>"u"){oe&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}nr({ignoreDuration:!0}),rr(),on(({from:t,to:e})=>{t!==void 0&&t!==e&&(nr({ignoreDuration:!0}),rr())})}var Nd=new WeakMap,ia=new Map,Gi={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function wd(t,e){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:s}=p({traceFetch:Gi.traceFetch,traceXHR:Gi.traceXHR},e),a=typeof i=="function"?i:u=>!0,c=u=>Ug(u,s),l={};n&&(t.addEventProcessor(u=>(u.type==="transaction"&&u.spans&&u.spans.forEach(d=>{if(d.op==="http.client"){let m=ia.get(d.span_id);m&&(d.timestamp=m/1e3,ia.delete(d.span_id))}}),u)),Yo(u=>{if(u.response){let d=Nd.get(u.response);d&&u.endTimestamp&&ia.set(d,u.endTimestamp)}}),Kn(u=>{let d=Cs(u,a,c,l);if(u.response&&u.fetchData.__span&&Nd.set(u.response,u.fetchData.__span),d){let m=Cd(u.fetchData.url),g=m?Le(m).host:void 0;d.setAttributes({"http.url":m,"server.address":g})}o&&d&&Rd(d)})),r&&dr(u=>{let d=Bg(u,a,c,l);o&&d&&Rd(d)})}function Dg(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function Rd(t){let{url:e}=N(t).data||{};if(!e||typeof e!="string")return;let n=Et("resource",({entries:r})=>{r.forEach(i=>{Dg(i)&&i.name.endsWith(e)&&(Fg(i).forEach(s=>t.setAttribute(...s)),setTimeout(n))})})}function Lg(t){let e="unknown",n="unknown",r="";for(let i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function ft(t=0){return((ee||performance.timeOrigin)+t)/1e3}function Fg(t){let{name:e,version:n}=Lg(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),ee?[...r,["http.request.redirect_start",ft(t.redirectStart)],["http.request.fetch_start",ft(t.fetchStart)],["http.request.domain_lookup_start",ft(t.domainLookupStart)],["http.request.domain_lookup_end",ft(t.domainLookupEnd)],["http.request.connect_start",ft(t.connectStart)],["http.request.secure_connection_start",ft(t.secureConnectionStart)],["http.request.connection_end",ft(t.connectEnd)],["http.request.request_start",ft(t.requestStart)],["http.request.response_start",ft(t.responseStart)],["http.request.response_end",ft(t.responseEnd)]]:r}function Ug(t,e){let n=v.location&&v.location.href;if(n){let r,i;try{r=new URL(t,n),i=new URL(n).origin}catch{return!1}let o=r.origin===i;return e?it(r.toString(),e)||o&&it(r.pathname,e):o}else{let r=!!t.match(/^\/(?!\/)/);return e?it(t,e):r}}function Bg(t,e,n,r){let i=t.xhr,o=i&&i[Tt];if(!i||i.__sentry_own_request__||!o)return;let s=pe()&&e(o.url);if(t.endTimestamp&&s){let m=i.__sentry_xhr_span_id__;if(!m)return;let g=r[m];g&&o.status_code!==void 0&&(vn(g,o.status_code),g.end(),delete r[m]);return}let a=Cd(o.url),c=a?Le(a).host:void 0,l=!!G(),u=s&&l?_e({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":c,[j]:"auto.http.browser",[he]:"http.client"}}):new Re;i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u;let d=A();return i.setRequestHeader&&n(o.url)&&d&&Hg(i,d,pe()&&l?u:void 0),u}function Hg(t,e,n){let r=M(),i=ie(),{traceId:o,spanId:s,sampled:a,dsc:c}=p(p({},i.getPropagationContext()),r.getPropagationContext()),l=n&&pe()?In(n):Vt(o,s,a),u=yn(c||(n?ge(n):xt(o,e)));$g(t,l,u)}function $g(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(Sn,n)}catch{}}function Cd(t){try{return new URL(t,v.location.origin).href}catch{return}}function Pd(){v&&v.document?v.document.addEventListener("visibilitychange",()=>{let t=G();if(!t)return;let e=H(t);if(v.document.hidden&&e){let n="cancelled",{op:r,status:i}=N(e);oe&&h.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||e.setStatus({code:2,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):oe&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var jg="BrowserTracing",Gg=p(P(p({},Rn),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
21dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{}}),Gi),oa=(t={})=>{_i();let{enableInp:e,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:i,enableStandaloneClsSpans:o},beforeStartSpan:s,idleTimeout:a,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:m,shouldCreateSpanForRequest:g,enableHTTPTimings:f,instrumentPageLoad:_,instrumentNavigation:w}=p(p({},Gg),t),U=qs({recordClsStandaloneSpans:o||!1});e&&ea(),r&&I.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Ks():n&&zs(),i&&Ws();let B={name:void 0,source:void 0};function W(D,q){let C=q.op==="pageload",R=s?s(q):q,F=R.attributes||{};q.name!==R.name&&(F[Te]="custom",R.attributes=F),B.name=R.name,B.source=F[Te];let ne=Ti(R,{idleTimeout:a,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:C,beforeSpanEnd:we=>{U(),Ys(we,{recordClsOnPageloadSpan:!o})}});function J(){["interactive","complete"].includes(v.document.readyState)&&D.emit("idleSpanEnableAutoFinish",ne)}return C&&v.document&&(v.document.addEventListener("readystatechange",()=>{J()}),J()),ne}return{name:jg,afterAllSetup(D){let q,C=v.location&&v.location.href;D.on("startNavigationSpan",R=>{A()===D&&(q&&!N(q).timestamp&&(oe&&h.log(`[Tracing] Finishing current root span with op: ${N(q).op}`),q.end()),q=W(D,p({op:"navigation"},R)))}),D.on("startPageLoadSpan",(R,F={})=>{if(A()!==D)return;q&&!N(q).timestamp&&(oe&&h.log(`[Tracing] Finishing current root span with op: ${N(q).op}`),q.end());let ne=F.sentryTrace||Md("sentry-trace"),J=F.baggage||Md("baggage"),we=es(ne,J);M().setPropagationContext(we),q=W(D,p({op:"pageload"},R))}),D.on("spanEnd",R=>{let F=N(R).op;if(R!==H(R)||F!=="navigation"&&F!=="pageload")return;let ne=M(),J=ne.getPropagationContext();ne.setPropagationContext(P(p({},J),{sampled:J.sampled!==void 0?J.sampled:Ue(R),dsc:J.dsc||ge(R)}))}),v.location&&(_&&xd(D,{name:v.location.pathname,startTime:ee?ee/1e3:void 0,attributes:{[Te]:"url",[j]:"auto.pageload.browser"}}),w&&on(({to:R,from:F})=>{if(F===void 0&&C&&C.indexOf(R)!==-1){C=void 0;return}F!==R&&(C=void 0,Od(D,{name:v.location.pathname,attributes:{[Te]:"url",[j]:"auto.navigation.browser"}}))})),u&&Pd(),i&&qg(a,c,l,B),e&&ta(),wd(D,{traceFetch:d,traceXHR:m,tracePropagationTargets:D.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:f})}}};function xd(t,e,n){t.emit("startPageLoadSpan",e,n),M().setTransactionName(e.name);let r=G();return(r&&N(r).op)==="pageload"?r:void 0}function Od(t,e){ie().setPropagationContext(Qt()),M().setPropagationContext(Qt()),t.emit("startNavigationSpan",e),M().setTransactionName(e.name);let n=G();return(n&&N(n).op)==="navigation"?n:void 0}function Md(t){let e=Uo(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function qg(t,e,n,r){let i,o=()=>{let s="ui.action.click",a=G(),c=a&&H(a);if(c){let l=N(c).op;if(["navigation","pageload"].includes(l)){oe&&h.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(bn,"interactionInterrupted"),i.end(),i=void 0),!r.name){oe&&h.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}i=Ti({name:r.name,op:s,attributes:{[Te]:r.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n})};v.document&&addEventListener("click",o,{once:!1,capture:!0})}var Dd=(()=>{class t{handleError(n){/Loading chunk [\d]+ failed/.test(n.message)?window.location.reload():(wn(n),console.error(n.stack?n.stack.toString():n))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac})}}return t})();var sa=(()=>{class t{constructor(n,r,i,o,s,a){this.router=n,this.authService=r,this.activatedRoute=i,this.notifier=o,this.platformId=s,this.response=a,this.requestInProgressSubject=ne
21w la,this.requestInProgress=0,this.needToGoBack=!1,this.disconnected=!1,this.notConnected=!1,this.serverError=!1,this.response=a,this.requestInProgressSubject.subscribe(c=>{this.requestInProgress=c,c===0&&(this.needToGoBack?(this.needToGoBack=!1,document.location.hostname!=="localhost"&&this.router.navigate(["/"+this.activatedRoute.snapshot.firstChild.url[0].path]).then(),this.notifier.errorNotAuthorized()):this.disconnected?(this.disconnected=!1,localStorage.clear(),this.router.navigate(["/connexion"]).then(()=>{}),this.notifier.errorDisconnected()):this.notConnected?(this.notConnected=!1,localStorage.clear(),this.router.navigate(["/connexion"]).then(()=>{}),this.notifier.errorNotConnected()):this.serverError&&(this.serverError=!1,this.notifier.errorRequest()))})}static addLanguage(n){let r=localStorage.getItem("language");return r||(r=navigator.language.split("-").join("_"),localStorage.setItem("language",r)),n.clone({setHeaders:{Language:r}})}intercept(n,r){return this.requestInProgressSubject.next(this.requestInProgress+1),n=t.addLanguage(n),Ia(this.platformId)?(n=n.clone({url:`${n.url}`}),r.handle(n).pipe(da(i=>{i instanceof Wi&&(this.requestInProgressSubject.next(this.requestInProgress-1),i.body.success?i.body.filterLink?(this.response.status(301),this.response.setHeader("Location",Ze.ERP_HOST+"/"+i.body.filterLink)):i.body.themeLink&&(this.response.status(301),this.response.setHeader("Location",Ze.ERP_HOST+"/"+i.body.themeLink)):i.body.errors&&"general"in i.body.errors&&i.body.errors.general.code==="ENTITY_NOT_FOUND"&&(this.authService.notFound=!0))}))):r.handle(n).pipe(ua(i=>new ca(o=>{i instanceof Wi&&(i.body.errors&&"general"in i.body.errors&&i.body.errors.general.code==="NOT_CONNECTED"?(this.authService.logout(),this.notifier.errorDisconnected(),this.router.navigate(["/connexion"]).then(),this.requestInProgressSubject.next(this.requestInProgress-1)):i.body.errors&&"general"in i.body.errors&&i.body.errors.general.code==="NOT_AUTHORIZED"?(this.needToGoBack=!0,this.requestInProgressSubject.next(this.requestInProgress-1)):(this.requestInProgressSubject.next(this.requestInProgress-1),i.body.success?o.next(i):i.body.errors&&"general"in i.body.errors&&i.body.errors.general.code==="ENTITY_NOT_FOUND"?this.authService.notFound=!0:o.next(i)))})))}static{this.\u0275fac=function(r){return new(r||t)(z(Bt),z(an),z(br),z(cn),z(hr),z(Da,8))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac})}}return t})();var Ld=(()=>{class t{http;prefix;suffix;constructor(n,r="/assets/i18n/",i=".json"){this.http=n,this.prefix=r,this.suffix=i}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}static \u0275fac=function(r){return new(r||t)(z(yr),z(String),z(String))};static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})();Aa(La);function zg(){return localStorage.getItem("language")}function Kg(t){return new Ld(t,"./assets/i18n/",".json")}var Fd=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Me({type:t,bootstrap:[gl]})}static{this.\u0275inj=Pe({providers:[Ba,sa,cn,lc,{provide:Ea,useValue:"fr"},{provide:wa,useClass:sa,multi:!0},{provide:fa,useClass:Dd},an,vr,Ca(Pa())],imports:[hl,_l,Sr,Sl,ac,uc,ll,ja.forRoot(),Ga,Qa,cc,Ar,On,ml,Ua.withConfig({position:{horizontal:{position:"middle"},vertical:{distance:0,gap:0}},behaviour:{stacking:1,autoHide:5e3,onMouseover:!1,onClick:"hide"},animations:{hide:{preset:"slide"}}}),Ht.forRoot({defaultLanguage:zg(),loader:{provide:Ha,useFactory:Kg,deps:[yr]}}),Ht,On]})}}return t})();Ze.production&&void 0;ra({dsn:Ze.SENTRY_DNS,tracesSampleRate:Ze.SENTRY_TRACES_SAMPLE_RATE,tracePropagationTargets:[Ze.API_PATH],integrations:[oa()]});document.addEventListener("DOMContentLoaded",()=>{Ra().bootstrapModule(Fd).catch(t=>console.error(t))});

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