@autoafleveren/ui 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +917 -895
- package/dist/ui.cjs +18 -18
- package/dist/ui.js +1443 -1421
- package/package.json +2 -2
package/dist/ui.cjs
CHANGED
|
@@ -608,7 +608,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
608
608
|
disabled:border-zinc-100! disabled:cursor-not-allowed focus:border-2 focus:border-primary
|
|
609
609
|
focus-visible:outline-hidden`,nT="rounded-md bg-white checked:bg-primary";function rT(e,t){return{[tT]:!0,[nT]:e==="checkbox","rounded-full":e==="radio","border-error!":t}}function Rn(e,t,n){const a=$e(e,n?.in);return isNaN(t)?mt(n?.in||e,NaN):(t&&a.setDate(a.getDate()+t),a)}function nr(e,t,n){const a=$e(e,n?.in);if(isNaN(t))return mt(e,NaN);if(!t)return a;const o=a.getDate(),i=mt(e,a.getTime());i.setMonth(a.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(a.setFullYear(i.getFullYear(),i.getMonth(),o),a)}function py(e,t,n){const{years:a=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:u=0}=t,d=$e(e,n?.in),f=o||a?nr(d,o+a*12):d,p=s||i?Rn(f,s+i*7):f,m=c+l*60,y=(u+m*60)*1e3;return mt(e,+p+y)}function aT(e,t,n){return mt(e,+$e(e)+t)}function oT(e,t,n){return aT(e,t*uy)}function li(e,t){return ir(e,{...t,weekStartsOn:1})}function my(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=mt(n,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const i=li(o),s=mt(n,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);const l=li(s);return n.getTime()>=i.getTime()?a+1:n.getTime()>=l.getTime()?a:a-1}function uc(e){const t=$e(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Dv(e,t){const n=$e(e,t?.in);return n.setHours(0,0,0,0),n}function hy(e,t,n){const[a,o]=$s(n?.in,e,t),i=Dv(a),s=Dv(o),l=+i-uc(i),c=+s-uc(s);return Math.round((l-c)/z7)}function iT(e,t){const n=my(e,t),a=mt(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),li(a)}function sT(e,t,n){return nr(e,t*3,n)}function Op(e,t,n){return nr(e,t*12,n)}function Rv(e,t){const n=+$e(e)-+$e(t);return n<0?-1:n>0?1:n}function vy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rs(e){return!(!vy(e)&&typeof e!="number"||isNaN(+$e(e)))}function $v(e,t){const n=$e(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function lT(e,t,n){const[a,o]=$s(n?.in,e,t);return a.getFullYear()-o.getFullYear()}function cT(e,t,n){const[a,o]=$s(n?.in,e,t),i=Rv(a,o),s=Math.abs(lT(a,o));a.setFullYear(1584),o.setFullYear(1584);const l=Rv(a,o)===-i,c=i*(s-+l);return c===0?0:c}function gy(e,t){const[n,a]=$s(e,t.start,t.end);return{start:n,end:a}}function yy(e,t){const{start:n,end:a}=gy(t?.in,e);let o=+n>+a;const i=o?+n:+a,s=o?a:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(mt(n,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function Za(e,t){const n=$e(e,t?.in),a=n.getMonth(),o=a-a%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function uT(e,t){const{start:n,end:a}=gy(t?.in,e);let o=+n>+a;const i=o?+Za(n):+Za(a);let s=Za(o?a:n),l=1;const c=[];for(;+s<=i;)c.push(mt(n,s)),s=sT(s,l);return o?c.reverse():c}function dT(e,t){const n=$e(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function by(e,t){const n=$e(e,t?.in),a=n.getFullYear();return n.setFullYear(a+1,0,0),n.setHours(23,59,59,999),n}function bs(e,t){const n=$e(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function wy(e,t){const n=_o(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$e(e,t?.in),i=o.getDay(),s=(i<a?-7:0)+6-(i-a);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function zv(e,t){const n=$e(e,t?.in),a=n.getMonth(),o=a-a%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}function fT(e,t){const n=$e(e,t?.in);return hy(n,bs(n))+1}function Bp(e,t){const n=$e(e,t?.in),a=+li(n)-+iT(n);return Math.round(a/cy)+1}function Lp(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=_o(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=mt(t?.in||e,0);s.setFullYear(a+1,0,i),s.setHours(0,0,0,0);const l=ir(s,t),c=mt(t?.in||e,0);c.setFullYear(a,0,i),c.setHours(0,0,0,0);const u=ir(c,t);return+n>=+l?a+1:+n>=+u?a:a-1}function pT(e,t){const n=_o(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Lp(e,t),i=mt(t?.in||e,0);return i.setFullYear(o,0,a),i.setHours(0,0,0,0),ir(i,t)}function Dp(e,t){const n=$e(e,t?.in),a=+ir(n,t)-+pT(n,t);return Math.round(a/cy)+1}function pt(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const ca={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return pt(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pt(n+1,2)},d(e,t){return pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pt(e.getHours()%12||12,t.length)},H(e,t){return pt(e.getHours(),t.length)},m(e,t){return pt(e.getMinutes(),t.length)},s(e,t){return pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),o=Math.trunc(a*Math.pow(10,n-3));return pt(o,t.length)}},Lo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vv={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return ca.y(e,t)},Y:function(e,t,n,a){const o=Lp(e,a),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return pt(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):pt(i,t.length)},R:function(e,t){const n=my(e);return pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return pt(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return pt(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return pt(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return ca.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return pt(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const o=Dp(e,a);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):pt(o,t.length)},I:function(e,t,n){const a=Bp(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):pt(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ca.d(e,t)},D:function(e,t,n){const a=fT(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):pt(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const o=e.getDay(),i=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return pt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const o=e.getDay(),i=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return pt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return pt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let o;switch(a===12?o=Lo.noon:a===0?o=Lo.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let o;switch(a>=17?o=Lo.evening:a>=12?o=Lo.afternoon:a>=4?o=Lo.morning:o=Lo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return ca.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ca.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):pt(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):pt(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ca.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ca.s(e,t)},S:function(e,t){return ca.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return jv(a);case"XXXX":case"XX":return Ua(a);case"XXXXX":case"XXX":default:return Ua(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return jv(a);case"xxxx":case"xx":return Ua(a);case"xxxxx":case"xxx":default:return Ua(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Fv(a,":");case"OOOO":default:return"GMT"+Ua(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Fv(a,":");case"zzzz":default:return"GMT"+Ua(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return pt(a,t.length)},T:function(e,t,n){return pt(+e,t.length)}};function Fv(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=Math.trunc(a/60),i=a%60;return i===0?n+String(o):n+String(o)+t+pt(i,2)}function jv(e,t){return e%60===0?(e>0?"-":"+")+pt(Math.abs(e)/60,2):Ua(e,t)}function Ua(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=pt(Math.trunc(a/60),2),i=pt(a%60,2);return n+o+t+i}const Hv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ky=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Hv(e,t);let i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Hv(a,t)).replace("{{time}}",ky(o,t))},pf={p:ky,P:mT},hT=/^D+$/,vT=/^Y+$/,gT=["D","DD","YY","YYYY"];function _y(e){return hT.test(e)}function Sy(e){return vT.test(e)}function mf(e,t,n){const a=yT(e,t,n);if(console.warn(a),gT.includes(e))throw new RangeError(a)}function yT(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kT=/^'([^]*?)'?$/,_T=/''/g,ST=/[a-zA-Z]/;function Tr(e,t,n){const a=_o(),o=n?.locale??a.locale??dy,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=$e(e,n?.in);if(!rs(l))throw new RangeError("Invalid time value");let c=t.match(wT).map(d=>{const f=d[0];if(f==="p"||f==="P"){const p=pf[f];return p(d,o.formatLong)}return d}).join("").match(bT).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const f=d[0];if(f==="'")return{isToken:!1,value:CT(d)};if(Vv[f])return{isToken:!0,value:d};if(f.match(ST))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(d=>{if(!d.isToken)return d.value;const f=d.value;(!n?.useAdditionalWeekYearTokens&&Sy(f)||!n?.useAdditionalDayOfYearTokens&&_y(f))&&mf(f,t,String(e));const p=Vv[f[0]];return p(l,f,o.localize,u)}).join("")}function CT(e){const t=e.match(kT);return t?t[1].replace(_T,"'"):e}function xT(e,t){return $e(e,t?.in).getDay()}function ET(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=n.getMonth(),i=mt(n,0);return i.setFullYear(a,o+1,0),i.setHours(0,0,0,0),i.getDate()}function TT(){return Object.assign({},_o())}function Kr(e,t){return $e(e,t?.in).getHours()}function PT(e,t){const n=$e(e,t?.in).getDay();return n===0?7:n}function ka(e,t){return $e(e,t?.in).getMinutes()}function Ke(e,t){return $e(e,t?.in).getMonth()}function ci(e){return $e(e).getSeconds()}function Fe(e,t){return $e(e,t?.in).getFullYear()}function mo(e,t){return+$e(e)>+$e(t)}function ui(e,t){return+$e(e)<+$e(t)}function Wo(e,t){return+$e(e)==+$e(t)}function AT(e,t){const n=IT(t)?new t(0):mt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function IT(e){return typeof e=="function"&&e.prototype?.constructor===e}const MT=10;class Cy{subPriority=0;validate(t,n){return!0}}class NT extends Cy{constructor(t,n,a,o,i){super(),this.value=t,this.validateValue=n,this.setValue=a,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,a){return this.setValue(t,n,this.value,a)}}class OT extends Cy{priority=MT;subPriority=-1;constructor(t,n){super(),this.context=t||(a=>mt(n,a))}set(t,n){return n.timestampIsSet?t:mt(t,AT(t,this.context))}}class it{run(t,n,a,o){const i=this.parse(t,n,a,o);return i?{setter:new NT(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,a){return!0}}class BT extends it{priority=140;parse(t,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,n,a){return n.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Dt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},yr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Rt(e,t){return e&&{value:t(e.value),rest:e.rest}}function At(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function br(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const a=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:a*(o*uy+i*V7+s*F7),rest:t.slice(n[0].length)}}function xy(e){return At(Dt.anyDigitsSigned,e)}function Nt(e,t){switch(e){case 1:return At(Dt.singleDigit,t);case 2:return At(Dt.twoDigits,t);case 3:return At(Dt.threeDigits,t);case 4:return At(Dt.fourDigits,t);default:return At(new RegExp("^\\d{1,"+e+"}"),t)}}function dc(e,t){switch(e){case 1:return At(Dt.singleDigitSigned,t);case 2:return At(Dt.twoDigitsSigned,t);case 3:return At(Dt.threeDigitsSigned,t);case 4:return At(Dt.fourDigitsSigned,t);default:return At(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Rp(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ey(e,t){const n=t>0,a=n?t:1-t;let o;if(a<=50)o=e||100;else{const i=a+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function Ty(e){return e%400===0||e%4===0&&e%100!==0}class LT extends it{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return Rt(Nt(4,t),o);case"yo":return Rt(a.ordinalNumber(t,{unit:"year"}),o);default:return Rt(Nt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=Ey(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class DT extends it{priority=130;parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Rt(Nt(4,t),o);case"Yo":return Rt(a.ordinalNumber(t,{unit:"year"}),o);default:return Rt(Nt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a,o){const i=Lp(t,o);if(a.isTwoDigitYear){const l=Ey(a.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ir(t,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ir(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class RT extends it{priority=130;parse(t,n){return dc(n==="R"?4:n.length,t)}set(t,n,a){const o=mt(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),li(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class $T extends it{priority=130;parse(t,n){return dc(n==="u"?4:n.length,t)}set(t,n,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class zT extends it{priority=120;parse(t,n,a){switch(n){case"Q":case"QQ":return Nt(n.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class VT extends it{priority=120;parse(t,n,a){switch(n){case"q":case"qq":return Nt(n.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class FT extends it{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,a){const o=i=>i-1;switch(n){case"M":return Rt(At(Dt.month,t),o);case"MM":return Rt(Nt(2,t),o);case"Mo":return Rt(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class jT extends it{priority=110;parse(t,n,a){const o=i=>i-1;switch(n){case"L":return Rt(At(Dt.month,t),o);case"LL":return Rt(Nt(2,t),o);case"Lo":return Rt(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function HT(e,t,n){const a=$e(e,n?.in),o=Dp(a,n)-t;return a.setDate(a.getDate()-o*7),$e(a,n?.in)}class UT extends it{priority=100;parse(t,n,a){switch(n){case"w":return At(Dt.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a,o){return ir(HT(t,a,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function WT(e,t,n){const a=$e(e,n?.in),o=Bp(a,n)-t;return a.setDate(a.getDate()-o*7),a}class qT extends it{priority=100;parse(t,n,a){switch(n){case"I":return At(Dt.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a){return li(WT(t,a))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const YT=[31,28,31,30,31,30,31,31,30,31,30,31],GT=[31,29,31,30,31,30,31,31,30,31,30,31];class KT extends it{priority=90;subPriority=1;parse(t,n,a){switch(n){case"d":return At(Dt.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return Nt(n.length,t)}}validate(t,n){const a=t.getFullYear(),o=Ty(a),i=t.getMonth();return o?n>=1&&n<=GT[i]:n>=1&&n<=YT[i]}set(t,n,a){return t.setDate(a),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class XT extends it{priority=90;subpriority=1;parse(t,n,a){switch(n){case"D":case"DD":return At(Dt.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return Nt(n.length,t)}}validate(t,n){const a=t.getFullYear();return Ty(a)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function $p(e,t,n){const a=_o(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=$e(e,n?.in),s=i.getDay(),c=(t%7+7)%7,u=7-o,d=t<0||t>6?t-(s+u)%7:(c+u)%7-(s+u)%7;return Rn(i,d,n)}class JT extends it{priority=90;parse(t,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class QT extends it{priority=90;parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return Rt(Nt(n.length,t),i);case"eo":return Rt(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class ZT extends it{priority=90;parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return Rt(Nt(n.length,t),i);case"co":return Rt(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function eP(e,t,n){const a=$e(e,n?.in),o=PT(a,n),i=t-o;return Rn(a,i,n)}class tP extends it{priority=90;parse(t,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Nt(n.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return Rt(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Rt(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Rt(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Rt(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,a){return t=eP(t,a),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class nP extends it{priority=80;parse(t,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class rP extends it{priority=80;parse(t,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class aP extends it{priority=80;parse(t,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class oP extends it{priority=70;parse(t,n,a){switch(n){case"h":return At(Dt.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class iP extends it{priority=70;parse(t,n,a){switch(n){case"H":return At(Dt.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,a){return t.setHours(a,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class sP extends it{priority=70;parse(t,n,a){switch(n){case"K":return At(Dt.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class lP extends it{priority=70;parse(t,n,a){switch(n){case"k":return At(Dt.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class cP extends it{priority=60;parse(t,n,a){switch(n){case"m":return At(Dt.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setMinutes(a,0,0),t}incompatibleTokens=["t","T"]}class uP extends it{priority=50;parse(t,n,a){switch(n){case"s":return At(Dt.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setSeconds(a,0),t}incompatibleTokens=["t","T"]}class dP extends it{priority=30;parse(t,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Rt(Nt(n.length,t),a)}set(t,n,a){return t.setMilliseconds(a),t}incompatibleTokens=["t","T"]}class fP extends it{priority=10;parse(t,n){switch(n){case"X":return br(yr.basicOptionalMinutes,t);case"XX":return br(yr.basic,t);case"XXXX":return br(yr.basicOptionalSeconds,t);case"XXXXX":return br(yr.extendedOptionalSeconds,t);case"XXX":default:return br(yr.extended,t)}}set(t,n,a){return n.timestampIsSet?t:mt(t,t.getTime()-uc(t)-a)}incompatibleTokens=["t","T","x"]}class pP extends it{priority=10;parse(t,n){switch(n){case"x":return br(yr.basicOptionalMinutes,t);case"xx":return br(yr.basic,t);case"xxxx":return br(yr.basicOptionalSeconds,t);case"xxxxx":return br(yr.extendedOptionalSeconds,t);case"xxx":default:return br(yr.extended,t)}}set(t,n,a){return n.timestampIsSet?t:mt(t,t.getTime()-uc(t)-a)}incompatibleTokens=["t","T","X"]}class mP extends it{priority=40;parse(t){return xy(t)}set(t,n,a){return[mt(t,a*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class hP extends it{priority=20;parse(t){return xy(t)}set(t,n,a){return[mt(t,a),{timestampIsSet:!0}]}incompatibleTokens="*"}const vP={G:new BT,y:new LT,Y:new DT,R:new RT,u:new $T,Q:new zT,q:new VT,M:new FT,L:new jT,w:new UT,I:new qT,d:new KT,D:new XT,E:new JT,e:new QT,c:new ZT,i:new tP,a:new nP,b:new rP,B:new aP,h:new oP,H:new iP,K:new sP,k:new lP,m:new cP,s:new uP,S:new dP,X:new fP,x:new pP,t:new mP,T:new hP},gP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bP=/^'([^]*?)'?$/,wP=/''/g,kP=/\S/,_P=/[a-zA-Z]/;function hf(e,t,n,a){const o=()=>mt(a?.in||n,NaN),i=TT(),s=a?.locale??i.locale??dy,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():$e(n,a?.in);const u={firstWeekContainsDate:l,weekStartsOn:c,locale:s},d=[new OT(a?.in,n)],f=t.match(yP).map(w=>{const b=w[0];if(b in pf){const E=pf[b];return E(w,s.formatLong)}return w}).join("").match(gP),p=[];for(let w of f){!a?.useAdditionalWeekYearTokens&&Sy(w)&&mf(w,t,e),!a?.useAdditionalDayOfYearTokens&&_y(w)&&mf(w,t,e);const b=w[0],E=vP[b];if(E){const{incompatibleTokens:_}=E;if(Array.isArray(_)){const x=p.find(C=>_.includes(C.token)||C.token===b);if(x)throw new RangeError(`The format string mustn't contain \`${x.fullToken}\` and \`${w}\` at the same time`)}else if(E.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);p.push({token:b,fullToken:w});const g=E.run(e,w,s.match,u);if(!g)return o();d.push(g.setter),e=g.rest}else{if(b.match(_P))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(w==="''"?w="'":b==="'"&&(w=SP(w)),e.indexOf(w)===0)e=e.slice(w.length);else return o()}}if(e.length>0&&kP.test(e))return o();const m=d.map(w=>w.priority).sort((w,b)=>b-w).filter((w,b,E)=>E.indexOf(w)===b).map(w=>d.filter(b=>b.priority===w).sort((b,E)=>E.subPriority-b.subPriority)).map(w=>w[0]);let v=$e(n,a?.in);if(isNaN(+v))return o();const y={};for(const w of m){if(!w.validate(v,u))return o();const b=w.set(v,y,u);Array.isArray(b)?(v=b[0],Object.assign(y,b[1])):v=b}return v}function SP(e){return e.match(bP)[1].replace(wP,"'")}function Uv(e,t,n){const[a,o]=$s(n?.in,e,t);return+Za(a)==+Za(o)}function Py(e,t,n){return Rn(e,-t,n)}function Ay(e,t,n){const a=$e(e,n?.in),o=a.getFullYear(),i=a.getDate(),s=mt(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=ET(s);return a.setMonth(t,Math.min(i,l)),a}function ht(e,t,n){let a=$e(e,n?.in);return isNaN(+a)?mt(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=Ay(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function CP(e,t,n){const a=$e(e,n?.in);return a.setHours(t),a}function Iy(e,t,n){const a=$e(e,n?.in);return a.setMilliseconds(t),a}function xP(e,t,n){const a=$e(e,n?.in);return a.setMinutes(t),a}function My(e,t,n){const a=$e(e,n?.in);return a.setSeconds(t),a}function _r(e,t,n){const a=$e(e,n?.in);return isNaN(+a)?mt(e,NaN):(a.setFullYear(t),a)}function di(e,t,n){return nr(e,-t,n)}function EP(e,t,n){const{years:a=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:u=0}=t,d=di(e,o+a*12,n),f=Py(d,s+i*7,n),p=c+l*60,v=(u+p*60)*1e3;return mt(e,+f-v)}function Ny(e,t,n){return Op(e,-t,n)}function Ai(){const e=r.useAttrs();return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...e},[r.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),r.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),r.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),r.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}Ai.compatConfig={MODE:3};function Oy(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),r.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Oy.compatConfig={MODE:3};function zp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}zp.compatConfig={MODE:3};function Vp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Vp.compatConfig={MODE:3};function Fp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),r.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}Fp.compatConfig={MODE:3};function jp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}jp.compatConfig={MODE:3};function Hp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Hp.compatConfig={MODE:3};const Cn=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),Up=(e,t,n)=>vf(e,t,n)||me(),TP=(e,t,n)=>{const a=t.dateInTz?Cn(new Date(e),t.dateInTz):me(e);return n?Gt(a,!0):a},vf=(e,t,n)=>{if(!e)return null;const a=n?Gt(me(e),!0):me(e);return t?t.exactMatch?TP(e,t,n):Cn(a,t.timezone):a},PP=e=>{const t=new Date(e.getFullYear(),0,1).getTimezoneOffset();return e.getTimezoneOffset()<t},AP=(e,t)=>{if(!e)return 0;const n=new Date,a=new Date(n.toLocaleString("en-US",{timeZone:"UTC"})),o=new Date(n.toLocaleString("en-US",{timeZone:e})),i=(PP(t??o)?o:t??o).getTimezoneOffset()/60;return(+a-+o)/(1e3*60*60)-i};var qn=(e=>(e.month="month",e.year="year",e))(qn||{}),Yn=(e=>(e.top="top",e.bottom="bottom",e))(Yn||{}),ao=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ao||{}),ln=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(ln||{});const IP=["timestamp","date","iso"];var un=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(un||{}),_t=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(_t||{}),Qo=(e=>(e.MONTH_AND_YEAR="MM-yyyy",e.YEAR="yyyy",e.DATE="dd-MM-yyyy",e))(Qo||{});function Wv(e){return t=>{const n=new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`));return e==="ar"?n.slice(2,5):n.slice(0,2)}}function MP(e){return t=>Tr(Cn(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const NP=(e,t,n)=>{const a=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=a.map(MP(e))}catch{o=a.map(Wv(t))}else o=a.map(Wv(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},Wp=(e,t,n)=>{const a=[];for(let o=+e[0];o<=+e[1];o++)a.push({value:+o,text:Ry(o,t)});return n?a.reverse():a},By=(e,t,n)=>{const a=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"LLLL":"LLL";return a.map((s,l)=>{const c=Tr(Cn(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return a.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},OP=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],jt=e=>{const t=r.unref(e);return t!=null&&t.$el?t?.$el:t},BP=e=>({type:"dot",...e??{}}),Ly=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,qp={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},qt=e=>e,qv=e=>e===0?e:!e||isNaN(+e)?null:+e,Yv=e=>e===null,Dy=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},LP=e=>{const t=[],n=a=>a.filter(o=>o);for(let a=0;a<e.length;a+=3){const o=[e[a],e[a+1],e[a+2]];t.push(n(o))}return t},ws=(e,t,n)=>{const a=n!=null,o=t!=null;if(!a&&!o)return!1;const i=+n,s=+t;return a&&o?+e>i||+e<s:a?+e>i:o?+e<s:!1},fi=(e,t)=>LP(e).map(n=>n.map(a=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=t(a);return{...a,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),ma=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},DP=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function RP(e,t){let n=[...document.querySelectorAll(DP())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const a=n.indexOf(e);if(a>=0&&(t?a-1>=0:a+1<=n.length))return n[a+(t?-1:1)]}const gf=(e,t)=>e?.querySelector(`[data-dp-element="${t}"]`),Ry=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),Yp=(e,t)=>Tr(e,t??Qo.DATE),td=e=>Array.isArray(e),fc=(e,t,n)=>t.get(Yp(e,n)),$P=(e,t)=>e?t?t instanceof Map?!!fc(e,t):t(me(e)):!1:!0,mn=(e,t,n=!1,a)=>{if(e.key===_t.enter||e.key===_t.space)return n&&e.preventDefault(),t();if(a)return a(e)},zP=()=>"ontouchstart"in window||navigator.maxTouchPoints>0,$y=(e,t)=>e?Qo.MONTH_AND_YEAR:t?Qo.YEAR:Qo.DATE,zy=e=>e<10?`0${e}`:e,Gv=(e,t,n,a,o,i)=>{const s=hf(e,t.slice(0,e.length),new Date,{locale:i});return rs(s)&&vy(s)?a||o?s:ht(s,{hours:+n.hours,minutes:+n?.minutes,seconds:+n?.seconds,milliseconds:0}):null},VP=(e,t,n,a,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof t=="string")return Gv(e,t,s,a,o,i);if(Array.isArray(t)){let l=null;for(const c of t)if(l=Gv(e,c,s,a,o,i),l)break;return l}return typeof t=="function"?t(e):null},me=e=>e?new Date(e):new Date,FP=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const a=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(a).toISOString()},Gt=(e,t)=>{const n=me(JSON.parse(JSON.stringify(e))),a=ht(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?dT(a):a},ha=(e,t,n,a)=>{let o=e?me(e):me();return(t||t===0)&&(o=CP(o,+t)),(n||n===0)&&(o=xP(o,+n)),(a||a===0)&&(o=My(o,+a)),Iy(o,0)},Mt=(e,t)=>!e||!t?!1:ui(Gt(e),Gt(t)),Xe=(e,t)=>!e||!t?!1:Wo(Gt(e),Gt(t)),Lt=(e,t)=>!e||!t?!1:mo(Gt(e),Gt(t)),ks=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?Lt(n,e[0])&&Mt(n,e[1]):e!=null&&e[0]&&t?Lt(n,e[0])&&Mt(n,t)||Mt(n,e[0])&&Lt(n,t):!1,Qn=e=>{const t=ht(new Date(e),{date:1});return Gt(t)},nd=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(a=>a===t?[a,n]:[a,isNaN(+e[a])?void 0:+e[a]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},oo=e=>({hours:Kr(e),minutes:ka(e),seconds:ci(e)}),Vy=(e,t)=>{if(t){const n=Fe(me(t));if(n>e)return 12;if(n===e)return Ke(me(t))}},Fy=(e,t)=>{if(t){const n=Fe(me(t));return n<e?-1:n===e?Ke(me(t)):void 0}},pi=e=>{if(e)return Fe(me(e))},jy=(e,t)=>{const n=Lt(e,t)?t:e,a=Lt(t,e)?t:e;return yy({start:n,end:a})},jP=e=>{const t=nr(e,1);return{month:Ke(t),year:Fe(t)}},Vr=(e,t)=>{const n=ir(e,{weekStartsOn:+t}),a=wy(e,{weekStartsOn:+t});return[n,a]},Hy=(e,t)=>{const n={hours:Kr(me()),minutes:ka(me()),seconds:t?ci(me()):0};return Object.assign(n,e)},pa=(e,t,n)=>[ht(me(e),{date:1}),ht(me(),{month:t,year:n,date:1})],Fr=(e,t,n)=>{let a=e?me(e):me();return(t||t===0)&&(a=Ay(a,t)),n&&(a=_r(a,n)),a},Uy=(e,t,n,a,o)=>{if(!a||o&&!t||!o&&!n)return!1;const i=o?nr(e,1):di(e,1),s=[Ke(i),Fe(i)];return o?!UP(...s,t):!HP(...s,n)},HP=(e,t,n)=>Mt(...pa(n,e,t))||Xe(...pa(n,e,t)),UP=(e,t,n)=>Lt(...pa(n,e,t))||Xe(...pa(n,e,t)),Wy=(e,t,n,a,o,i,s)=>{if(typeof t=="function"&&!s)return t(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${Tr(e[0],i,l)}${o&&!e[1]?"":a}${e[1]?Tr(e[1],i,l):""}`:Tr(e,i,l)},Do=e=>{if(e)return null;throw new Error(qp.prop("partial-range"))},gl=(e,t)=>{if(t)return e();throw new Error(qp.prop("range"))},yf=e=>Array.isArray(e)?rs(e[0])&&(e[1]?rs(e[1]):!0):e?rs(e):!1,WP=(e,t)=>ht(t??me(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),rd=(e,t,n,a)=>{if(!e)return!0;if(a){const o=n==="max"?ui(e,t):mo(e,t),i={seconds:0,milliseconds:0};return o||Wo(ht(e,i),ht(t,i))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},ad=(e,t,n)=>e?WP(e,t):me(n??t),Kv=(e,t,n,a,o)=>{if(Array.isArray(a)){const s=ad(e,a[0],t),l=ad(e,a[1],t);return rd(a[0],s,n,!!t)&&rd(a[1],l,n,!!t)&&o}const i=ad(e,a,t);return rd(a,i,n,!!t)&&o},od=e=>ht(me(),oo(e)),qP=(e,t,n)=>{if(e instanceof Map){const a=`${zy(n+1)}-${t}`;return e.size?e.has(a):!1}return typeof e=="function"?e(Gt(ht(me(),{month:n,year:t}),!0)):!1},YP=(e,t,n)=>{if(e instanceof Map){const a=`${zy(n+1)}-${t}`;return e.size?e.has(a):!0}return!0},qy=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(a=>a.month===t&&a.year===n),Gp=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),bf=e=>`dp-${Tr(e,"yyyy-MM-dd")}`,Xv=(e,t)=>{const n=Py(Gt(t),e),a=Rn(Gt(t),e);return{before:n,after:a}},qi=r.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Yy=()=>{const e=n=>{qi.menuFocused=n},t=n=>{qi.shiftKeyInMenu!==n&&(qi.shiftKeyInMenu=n)};return{control:r.computed(()=>({shiftKeyInMenu:qi.shiftKeyInMenu,menuFocused:qi.menuFocused})),setMenuFocused:e,setShiftKey:t}},kt=r.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),id=r.ref(null),yl=r.ref(!1),sd=r.ref(!1),ld=r.ref(!1),cd=r.ref(!1),on=r.ref(0),Bt=r.ref(0),Oa=()=>{const e=r.computed(()=>yl.value?[...kt.selectionGrid,kt.actionRow].filter(f=>f.length):sd.value?[...kt.timePicker[0],...kt.timePicker[1],cd.value?[]:[id.value],kt.actionRow].filter(f=>f.length):ld.value?[...kt.monthPicker,kt.actionRow]:[kt.monthYear,...kt.calendar,kt.time,kt.actionRow].filter(f=>f.length)),t=f=>{on.value=f?on.value+1:on.value-1;let p=null;e.value[Bt.value]&&(p=e.value[Bt.value][on.value]),!p&&e.value[Bt.value+(f?1:-1)]?(Bt.value=Bt.value+(f?1:-1),on.value=f?0:e.value[Bt.value].length-1):p||(on.value=f?on.value-1:on.value+1)},n=f=>{Bt.value===0&&!f||Bt.value===e.value.length&&f||(Bt.value=f?Bt.value+1:Bt.value-1,e.value[Bt.value]?e.value[Bt.value]&&!e.value[Bt.value][on.value]&&on.value!==0&&(on.value=e.value[Bt.value].length-1):Bt.value=f?Bt.value-1:Bt.value+1)},a=f=>{let p=null;e.value[Bt.value]&&(p=e.value[Bt.value][on.value]),p?p.focus({preventScroll:!yl.value}):on.value=f?on.value-1:on.value+1},o=()=>{t(!0),a(!0)},i=()=>{t(!1),a(!1)},s=()=>{n(!1),a(!0)},l=()=>{n(!0),a(!0)},c=(f,p)=>{kt[p]=f},u=(f,p)=>{kt[p]=f},d=()=>{on.value=0,Bt.value=0};return{buildMatrix:c,buildMultiLevelMatrix:u,setTimePickerBackRef:f=>{id.value=f},setSelectionGrid:f=>{yl.value=f,d(),f||(kt.selectionGrid=[])},setTimePicker:(f,p=!1)=>{sd.value=f,cd.value=p,d(),f||(kt.timePicker[0]=[],kt.timePicker[1]=[])},setTimePickerElements:(f,p=0)=>{kt.timePicker[p]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{kt.monthYear=[],kt.calendar=[],kt.time=[],kt.actionRow=[],kt.selectionGrid=[],kt.timePicker[0]=[],kt.timePicker[1]=[],yl.value=!1,sd.value=!1,cd.value=!1,ld.value=!1,d(),id.value=null},setMonthPicker:f=>{ld.value=f,d()},refSets:kt}},Jv=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),GP=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`,...e??{}}),Qv=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,KP=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:Qv(!1)};const a=t?e:{},o=t?a.count??!0:e,i=Qv(o);return Object.assign(n,a,{count:i})},XP=(e,t,n)=>e||(typeof n=="string"?n:t),JP=e=>typeof e=="boolean"?e?Jv({}):!1:Jv(e),QP=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},ZP=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),eA=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),tA=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},nA=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...e??{}}),rA=e=>{const t={dates:Array.isArray(e)?e.map(n=>me(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},aA=e=>typeof e=="object"?{type:e?.type??"local",hideOnOffsetDates:e?.hideOnOffsetDates??!1}:{type:e,hideOnOffsetDates:!1},oA=e=>{const t={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...t,...e}:{enabled:e,...t}},iA=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},ud=(e,t,n,a)=>new Map(e.map(o=>{const i=Up(o,t,a);return[Yp(i,n),i]})),sA=(e,t)=>e.length?new Map(e.map(n=>{const a=Up(n.date,t);return[Yp(a,Qo.DATE),n]})):null,lA=e=>{var t;const n=$y(e.isMonthPicker,e.isYearPicker);return{minDate:vf(e.minDate,e.timezone,e.isSpecific),maxDate:vf(e.maxDate,e.timezone,e.isSpecific),disabledDates:td(e.disabledDates)?ud(e.disabledDates,e.timezone,n,e.isSpecific):e.disabledDates,allowedDates:td(e.allowedDates)?ud(e.allowedDates,e.timezone,n,e.isSpecific):null,highlight:typeof e.highlight=="object"&&td((t=e.highlight)==null?void 0:t.dates)?ud(e.highlight.dates,e.timezone,n):e.highlight,markers:sA(e.markers,e.timezone)}},cA=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},uA=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,a=e[n],o=typeof e[n]=="string"?{[a]:!0}:Object.fromEntries(a.map(i=>[i,!0]));return[t,o]}))}),Et=e=>{const t=()=>{const C=e.enableSeconds?":ss":"",P=e.enableMinutes?":mm":"";return e.is24?`HH${P}${C}`:`hh${P}${C} aa`},n=()=>{var C;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((C=w.value)==null?void 0:C.type)==="iso"?"II":"ww"}-RR`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},a=C=>Hy(C,e.enableSeconds),o=()=>g.value.enabled?e.startTime&&Array.isArray(e.startTime)?[a(e.startTime[0]),a(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?a(e.startTime):null,i=r.computed(()=>KP(e.multiCalendars)),s=r.computed(()=>o()),l=r.computed(()=>GP(e.ariaLabels)),c=r.computed(()=>ZP(e.filters)),u=r.computed(()=>JP(e.transitions)),d=r.computed(()=>eA(e.actionRow)),f=r.computed(()=>XP(e.previewFormat,e.format,n())),p=r.computed(()=>QP(e.textInput)),m=r.computed(()=>tA(e.inline)),v=r.computed(()=>nA(e.config)),y=r.computed(()=>rA(e.highlight)),w=r.computed(()=>aA(e.weekNumbers)),b=r.computed(()=>iA(e.timezone)),E=r.computed(()=>cA(e.multiDates)),_=r.computed(()=>lA({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:y.value,markers:e.markers,timezone:b.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker,isMonthPicker:e.monthPicker,isYearPicker:e.yearPicker})),g=r.computed(()=>oA(e.range)),x=r.computed(()=>uA(e.ui));return{defaultedTransitions:u,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:d,defaultedPreviewFormat:f,defaultedTextInput:p,defaultedInline:m,defaultedConfig:v,defaultedHighlight:y,defaultedWeekNumbers:w,defaultedRange:g,propDates:_,defaultedTz:b,defaultedMultiDates:E,defaultedUI:x,getDefaultPattern:n,getDefaultStartTime:o,handleEventPropagation:C=>{v.value.allowStopPropagation&&C.stopPropagation(),v.value.allowPreventDefault&&C.preventDefault()}}},dA=(e,t,n)=>{const a=r.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=Et(t),u=r.ref(""),d=r.toRef(t,"format"),f=r.toRef(t,"formatLocale");r.watch(a,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",a.value,H(!0))},{deep:!0}),r.watch(i,(T,J)=>{T.enabled!==J.enabled&&(a.value=null)}),r.watch(d,()=>{K()});const p=T=>s.value.timezone&&s.value.convertModel?Cn(T,s.value.timezone):T,m=T=>{if(s.value.timezone&&s.value.convertModel){const J=AP(s.value.timezone,T);return oT(T,J)}return T},v=(T,J,le=!1)=>Wy(T,t.format,t.formatLocale,o.value.rangeSeparator,t.modelAuto,J??c(),le),y=T=>T?t.modelType?Z(T):{hours:Kr(T),minutes:ka(T),seconds:t.enableSeconds?ci(T):0}:null,w=T=>t.modelType?Z(T):{month:Ke(T),year:Fe(T)},b=T=>Array.isArray(T)?l.value.enabled?T.map(J=>E(J,_r(me(),J))):gl(()=>[_r(me(),T[0]),T[1]?_r(me(),T[1]):Do(i.value.partialRange)],i.value.enabled):_r(me(),+T),E=(T,J)=>(typeof T=="string"||typeof T=="number")&&t.modelType?V(T):J,_=T=>Array.isArray(T)?[E(T[0],ha(null,+T[0].hours,+T[0].minutes,T[0].seconds)),E(T[1],ha(null,+T[1].hours,+T[1].minutes,T[1].seconds))]:E(T,ha(null,T.hours,T.minutes,T.seconds)),g=T=>{const J=ht(me(),{date:1});return Array.isArray(T)?l.value.enabled?T.map(le=>E(le,Fr(J,+le.month,+le.year))):gl(()=>[E(T[0],Fr(J,+T[0].month,+T[0].year)),E(T[1],T[1]?Fr(J,+T[1].month,+T[1].year):Do(i.value.partialRange))],i.value.enabled):E(T,Fr(J,+T.month,+T.year))},x=T=>{if(Array.isArray(T))return T.map(J=>V(J));throw new Error(qp.dateArr("multi-dates"))},C=T=>{if(Array.isArray(T)&&i.value.enabled){const J=T[0],le=T[1];return[me(Array.isArray(J)?J[0]:null),Array.isArray(le)&&le.length?me(le[0]):null]}return me(T[0])},P=T=>t.modelAuto?Array.isArray(T)?[V(T[0]),V(T[1])]:t.autoApply?[V(T)]:[V(T),null]:Array.isArray(T)?gl(()=>T[1]?[V(T[0]),T[1]?V(T[1]):Do(i.value.partialRange)]:[V(T[0])],i.value.enabled):V(T),O=()=>{Array.isArray(a.value)&&i.value.enabled&&a.value.length===1&&a.value.push(Do(i.value.partialRange))},A=()=>{const T=a.value;return[Z(T[0]),T[1]?Z(T[1]):Do(i.value.partialRange)]},L=()=>Array.isArray(a.value)?a.value[1]?A():Z(qt(a.value[0])):[],U=()=>(a.value||[]).map(T=>Z(T)),z=(T=!1)=>(T||O(),t.modelAuto?L():l.value.enabled?U():Array.isArray(a.value)?gl(()=>A(),i.value.enabled):Z(qt(a.value))),R=T=>!T||Array.isArray(T)&&!T.length?null:t.timePicker?_(qt(T)):t.monthPicker?g(qt(T)):t.yearPicker?b(qt(T)):l.value.enabled?x(qt(T)):t.weekPicker?C(qt(T)):P(qt(T)),I=T=>{const J=R(T);yf(qt(J))?(a.value=qt(J),K()):(a.value=null,u.value="")},B=()=>{const T=J=>Tr(J,o.value.format);return`${T(a.value[0])} ${o.value.rangeSeparator} ${a.value[1]?T(a.value[1]):""}`},M=()=>n.value&&a.value?Array.isArray(a.value)?B():Tr(a.value,o.value.format):v(a.value),$=()=>a.value?l.value.enabled?a.value.map(T=>v(T)).join("; "):o.value.enabled&&typeof o.value.format=="string"?M():v(a.value):"",K=()=>{!t.format||typeof t.format=="string"||o.value.enabled&&typeof o.value.format=="string"?u.value=$():u.value=t.format(a.value)},V=T=>{if(t.utc){const J=new Date(T);return t.utc==="preserve"?new Date(J.getTime()+J.getTimezoneOffset()*6e4):J}return t.modelType?IP.includes(t.modelType)?p(new Date(T)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?p(hf(T,c(),new Date,{locale:f.value})):p(hf(T,t.modelType,new Date,{locale:f.value})):p(new Date(T))},Z=T=>T?t.utc?FP(T,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+m(T):t.modelType==="iso"?m(T).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(m(T)):v(m(T),t.modelType,!0):m(T):"",q=(T,J=!1,le=!1)=>{if(le)return T;if(e("update:model-value",T),s.value.emitTimezone&&J){const Oe=Array.isArray(T)?T.map(ee=>Cn(qt(ee),s.value.emitTimezone)):Cn(qt(T),s.value.emitTimezone);e("update:model-timezone-value",Oe)}},oe=T=>Array.isArray(a.value)?l.value.enabled?a.value.map(J=>T(J)):[T(a.value[0]),a.value[1]?T(a.value[1]):Do(i.value.partialRange)]:T(qt(a.value)),j=()=>{if(Array.isArray(a.value)){const T=Vr(a.value[0],t.weekStart),J=a.value[1]?Vr(a.value[1],t.weekStart):[];return[T.map(le=>me(le)),J.map(le=>me(le))]}return Vr(a.value,t.weekStart).map(T=>me(T))},W=(T,J)=>q(qt(oe(T)),!1,J),Y=T=>{const J=j();return T?J:e("update:model-value",j())},H=(T=!1)=>(T||K(),t.monthPicker?W(w,T):t.timePicker?W(y,T):t.yearPicker?W(Fe,T):t.weekPicker?Y(T):q(z(T),!0,T));return{inputValue:u,internalModelValue:a,checkBeforeEmit:()=>a.value?i.value.enabled?i.value.partialRange?a.value.length>=1:a.value.length===2:!!a.value:!1,parseExternalModelValue:I,formatInputValue:K,emitModelValue:H}},fA=(e,t)=>{const{defaultedFilters:n,propDates:a}=Et(e),{validateMonthYearInRange:o}=Ba(e),i=(d,f)=>{let p=d;return n.value.months.includes(Ke(p))?(p=f?nr(d,1):di(d,1),i(p,f)):p},s=(d,f)=>{let p=d;return n.value.years.includes(Fe(p))?(p=f?Op(d,1):Ny(d,1),s(p,f)):p},l=(d,f=!1)=>{const p=ht(me(),{month:e.month,year:e.year});let m=d?nr(p,1):di(p,1);e.disableYearSelect&&(m=_r(m,e.year));let v=Ke(m),y=Fe(m);n.value.months.includes(v)&&(m=i(m,d),v=Ke(m),y=Fe(m)),n.value.years.includes(y)&&(m=s(m,d),y=Fe(m)),o(v,y,d,e.preventMinMaxNavigation)&&c(v,y,f)},c=(d,f,p)=>{t("update-month-year",{month:d,year:f,fromNav:p})},u=r.computed(()=>d=>Uy(ht(me(),{month:e.month,year:e.year}),a.value.maxDate,a.value.minDate,e.preventMinMaxNavigation,d));return{handleMonthYearChange:l,isDisabled:u,updateMonthYear:c}},Zc={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:[Boolean,String],default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},alwaysClearable:{type:Boolean,default:!1},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},ur={...Zc,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},pA=["title"],mA=["disabled"],hA=r.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...ur},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,a=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:u,defaultedMultiDates:d}=Et(a),{isTimeValid:f,isMonthValid:p}=Ba(a),{buildMatrix:m}=Oa(),v=r.ref(null),y=r.ref(null),w=r.ref(!1),b=r.ref({}),E=r.ref(null),_=r.ref(null);r.onMounted(()=>{a.arrowNavigation&&m([jt(v),jt(y)],"actionRow"),g(),window.addEventListener("resize",g)}),r.onUnmounted(()=>{window.removeEventListener("resize",g)});const g=()=>{w.value=!1,setTimeout(()=>{var I,B;const M=(I=E.value)==null?void 0:I.getBoundingClientRect(),$=(B=_.value)==null?void 0:B.getBoundingClientRect();M&&$&&(b.value.maxWidth=`${$.width-M.width-20}px`),w.value=!0},0)},x=r.computed(()=>u.value.enabled&&!u.value.partialRange&&a.internalModelValue?a.internalModelValue.length===2:!0),C=r.computed(()=>!f.value(a.internalModelValue)||!p.value(a.internalModelValue)||!x.value),P=()=>{const I=i.value;return a.timePicker||a.monthPicker,I(qt(a.internalModelValue))},O=()=>{const I=a.internalModelValue;return s.value.count>0?`${A(I[0])} - ${A(I[1])}`:[A(I[0]),A(I[1])]},A=I=>Wy(I,i.value,a.formatLocale,l.value.rangeSeparator,a.modelAuto,i.value),L=r.computed(()=>!a.internalModelValue||!a.menuMount?"":typeof i.value=="string"?Array.isArray(a.internalModelValue)?a.internalModelValue.length===2&&a.internalModelValue[1]?O():d.value.enabled?a.internalModelValue.map(I=>`${A(I)}`):a.modelAuto?`${A(a.internalModelValue[0])}`:`${A(a.internalModelValue[0])} -`:A(a.internalModelValue):P()),U=()=>d.value.enabled?"; ":" - ",z=r.computed(()=>Array.isArray(L.value)?L.value.join(U()):L.value),R=()=>{f.value(a.internalModelValue)&&p.value(a.internalModelValue)&&x.value?n("select-date"):n("invalid-select")};return(I,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"actionRowRef",ref:_,class:"dp__action_row"},[I.$slots["action-row"]?r.renderSlot(I.$slots,"action-row",r.normalizeProps(r.mergeProps({key:0},{internalModelValue:I.internalModelValue,disabled:C.value,selectDate:()=>I.$emit("select-date"),closePicker:()=>I.$emit("close-picker")}))):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.unref(o).showPreview?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__selection_preview",title:z.value,style:r.normalizeStyle(b.value)},[I.$slots["action-preview"]&&w.value?r.renderSlot(I.$slots,"action-preview",{key:0,value:I.internalModelValue}):r.createCommentVNode("",!0),!I.$slots["action-preview"]&&w.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(z.value),1)],64)):r.createCommentVNode("",!0)],12,pA)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"actionBtnContainer",ref:E,class:"dp__action_buttons","data-dp-element":"action-row"},[I.$slots["action-buttons"]?r.renderSlot(I.$slots,"action-buttons",{key:0,value:I.internalModelValue}):r.createCommentVNode("",!0),I.$slots["action-buttons"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[!r.unref(c).enabled&&r.unref(o).showCancel?(r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:v,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=M=>I.$emit("close-picker")),onKeydown:B[1]||(B[1]=M=>r.unref(mn)(M,()=>I.$emit("close-picker")))},r.toDisplayString(I.cancelText),545)):r.createCommentVNode("",!0),r.unref(o).showNow?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=M=>I.$emit("select-now")),onKeydown:B[3]||(B[3]=M=>r.unref(mn)(M,()=>I.$emit("select-now")))},r.toDisplayString(I.nowButtonLabel),33)):r.createCommentVNode("",!0),r.unref(o).showSelect?(r.openBlock(),r.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test-id":"select-button",onKeydown:B[4]||(B[4]=M=>r.unref(mn)(M,()=>R())),onClick:R},r.toDisplayString(I.selectText),41,mA)):r.createCommentVNode("",!0)],64))],512)],64))],512))}}),vA=["role","aria-label","tabindex"],gA={class:"dp__selection_grid_header"},yA=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],bA=["aria-label"],zs=r.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:a,buildMultiLevelMatrix:o,setMonthPicker:i}=Oa(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:u,defaultedConfig:d,handleEventPropagation:f}=Et(l),{hideNavigationButtons:p}=nu(),m=r.ref(!1),v=r.ref(null),y=r.ref(null),w=r.ref([]),b=r.ref(),E=r.ref(null),_=r.ref(0),g=r.ref(null);r.onBeforeUpdate(()=>{v.value=null}),r.onMounted(()=>{r.nextTick().then(()=>z()),l.noOverlayFocus||C(),x(!0)}),r.onUnmounted(()=>x(!1));const x=j=>{var W;l.arrowNavigation&&((W=l.headerRefs)!=null&&W.length?i(j):a(j))},C=()=>{var j;const W=jt(y);W&&(u.value.enabled||(v.value?(j=v.value)==null||j.focus({preventScroll:!0}):W.focus({preventScroll:!0})),m.value=W.clientHeight<W.scrollHeight)},P=r.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),O=r.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),A=r.computed(()=>({dp__overlay_col:!0})),L=r.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:l.isLast})),U=r.computed(()=>{var j,W;return{dp__overlay_container:!0,dp__container_flex:((j=l.items)==null?void 0:j.length)<=6,dp__container_block:((W=l.items)==null?void 0:W.length)>6}});r.watch(()=>l.items,()=>z(!1),{deep:!0});const z=(j=!0)=>{r.nextTick().then(()=>{const W=jt(v),Y=jt(y),H=jt(E),T=jt(g),J=H?H.getBoundingClientRect().height:0;Y&&(Y.getBoundingClientRect().height?_.value=Y.getBoundingClientRect().height-J:_.value=d.value.modeHeight-J),W&&T&&j&&(T.scrollTop=W.offsetTop-T.offsetTop-(_.value/2-W.getBoundingClientRect().height)-J)})},R=j=>{j.disabled||s("selected",j.value)},I=()=>{s("toggle"),s("reset-flow")},B=j=>{l.escClose&&(I(),f(j))},M=(j,W,Y,H)=>{j&&((W.active||W.value===l.focusValue)&&(v.value=j),l.arrowNavigation&&(Array.isArray(w.value[Y])?w.value[Y][H]=j:w.value[Y]=[j],$()))},$=()=>{var j,W;const Y=(j=l.headerRefs)!=null&&j.length?[l.headerRefs].concat(w.value):w.value.concat([l.skipButtonRef?[]:[E.value]]);o(qt(Y),(W=l.headerRefs)!=null&&W.length?"monthPicker":"selectionGrid")},K=j=>{l.arrowNavigation||ma(j,d.value,!0)},V=j=>{b.value=j,s("hover-value",j)},Z=()=>{if(I(),!l.isLast){const j=gf(l.menuWrapRef??null,"action-row");if(j){const W=Dy(j);W?.focus()}}},q=j=>{switch(j.key){case _t.esc:return B(j);case _t.arrowLeft:return K(j);case _t.arrowRight:return K(j);case _t.arrowUp:return K(j);case _t.arrowDown:return K(j);default:return}},oe=j=>{if(j.key===_t.enter)return I();if(j.key===_t.tab)return Z()};return t({focusGrid:C}),(j,W)=>{var Y;return r.openBlock(),r.createElementBlock("div",{ref_key:"gridWrapRef",ref:y,class:r.normalizeClass(P.value),style:r.normalizeStyle(O.value),role:j.useRelative?void 0:"dialog","aria-label":j.overlayLabel,tabindex:j.useRelative?void 0:"0",onKeydown:q,onClick:W[0]||(W[0]=r.withModifiers(()=>{},["prevent"]))},[r.createElementVNode("div",{ref_key:"containerRef",ref:g,class:r.normalizeClass(U.value),style:r.normalizeStyle({"--dp-overlay-height":`${_.value}px`}),role:"grid"},[r.createElementVNode("div",gA,[r.renderSlot(j.$slots,"header")]),j.$slots.overlay?r.renderSlot(j.$slots,"overlay",{key:0}):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(j.items,(H,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:r.normalizeClass(["dp__overlay_row",{dp__flex_row:j.items.length>=3}]),role:"row"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H,(J,le)=>(r.openBlock(),r.createElementBlock("div",{key:J.value,ref_for:!0,ref:Oe=>M(Oe,J,T,le),role:"gridcell",class:r.normalizeClass(A.value),"aria-selected":J.active||void 0,"aria-disabled":J.disabled||void 0,tabindex:"0","data-test-id":J.text,onClick:r.withModifiers(Oe=>R(J),["prevent"]),onKeydown:Oe=>r.unref(mn)(Oe,()=>R(J),!0),onMouseover:Oe=>V(J.value)},[r.createElementVNode("div",{class:r.normalizeClass(J.className)},[j.$slots.item?r.renderSlot(j.$slots,"item",{key:0,item:J}):r.createCommentVNode("",!0),j.$slots.item?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(J.text),1)],64))],2)],42,yA))),128))],2))),128))],6),j.$slots["button-icon"]?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:E,type:"button","aria-label":(Y=r.unref(c))==null?void 0:Y.toggleOverlay,class:r.normalizeClass(L.value),tabindex:"0",onClick:I,onKeydown:oe},[r.renderSlot(j.$slots,"button-icon")],42,bA)),[[r.vShow,!r.unref(p)(j.hideNavigation,j.type)]]):r.createCommentVNode("",!0)],46,vA)}}}),wA=["data-dp-mobile"],eu=r.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(e){const t=e,n=r.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),a=r.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse}),"data-dp-mobile":o.isMobile},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(s,l)=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(a.value)},[r.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],10,wA))}}),kA=["data-dp-element","aria-label","aria-disabled"],as=r.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,a=r.ref(null);return r.onMounted(()=>n("set-ref",a)),(o,i)=>(r.openBlock(),r.createElementBlock("button",{ref_key:"elRef",ref:a,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>r.unref(mn)(s,()=>o.$emit("activate"),!0))},[r.createElementVNode("span",{class:r.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[r.renderSlot(o.$slots,"default")],2)],40,kA))}}),_A=["aria-label","data-test-id"],Gy=r.defineComponent({__name:"YearModePicker",props:{...ur,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,a=e,{showRightIcon:o,showLeftIcon:i}=nu(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:u,defaultedUI:d}=Et(a),{showTransition:f,transitionName:p}=Vs(u),m=r.ref(!1),v=(b=!1,E)=>{m.value=!m.value,n("toggle-year-picker",{flow:b,show:E})},y=b=>{m.value=!1,n("year-select",b)},w=(b=!1)=>{n("handle-year",b)};return(b,E)=>{var _,g,x,C,P;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":m.value}])},[r.unref(i)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:0,ref:"mpPrevIconRef","aria-label":(_=r.unref(c))==null?void 0:_.prevYear,disabled:e.isDisabled(!1),class:r.normalizeClass((g=r.unref(d))==null?void 0:g.navBtnPrev),onActivate:E[0]||(E[0]=O=>w(!1))},{default:r.withCtx(()=>[b.$slots["arrow-left"]?r.renderSlot(b.$slots,"arrow-left",{key:0}):r.createCommentVNode("",!0),b.$slots["arrow-left"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(x=r.unref(c))==null?void 0:x.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,onClick:E[1]||(E[1]=()=>v(!1)),onKeydown:E[2]||(E[2]=r.withKeys(()=>v(!1),["enter"]))},[b.$slots.year?r.renderSlot(b.$slots,"year",{key:0,year:e.year}):r.createCommentVNode("",!0),b.$slots.year?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.year),1)],64))],40,_A),r.unref(o)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:1,ref:"mpNextIconRef","aria-label":(C=r.unref(c))==null?void 0:C.nextYear,disabled:e.isDisabled(!0),class:r.normalizeClass((P=r.unref(d))==null?void 0:P.navBtnNext),onActivate:E[3]||(E[3]=O=>w(!0))},{default:r.withCtx(()=>[b.$slots["arrow-right"]?r.renderSlot(b.$slots,"arrow-right",{key:0}):r.createCommentVNode("",!0),b.$slots["arrow-right"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Vp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0)],2),r.createVNode(r.Transition,{name:r.unref(p)(e.showYearPicker),css:r.unref(f)},{default:r.withCtx(()=>{var O,A;return[e.showYearPicker?(r.openBlock(),r.createBlock(zs,{key:0,items:e.items,"text-input":b.textInput,"esc-close":b.escClose,config:b.config,"is-last":b.autoApply&&!r.unref(s).keepActionRow,"hide-navigation":b.hideNavigation,"aria-labels":b.ariaLabels,"overlay-label":(A=(O=r.unref(c))==null?void 0:O.yearPicker)==null?void 0:A.call(O,!0),type:"year",onToggle:v,onSelected:E[4]||(E[4]=L=>y(L))},r.createSlots({"button-icon":r.withCtx(()=>[b.$slots["calendar-icon"]?r.renderSlot(b.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),b.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))]),_:2},[b.$slots["year-overlay-value"]?{name:"item",fn:r.withCtx(({item:L})=>[r.renderSlot(b.$slots,"year-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):r.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),Kp=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(a=>Xe(e,a))){const a=t.value.filter(o=>!Xe(o,e));t.value=a.length?a:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},Xp=(e,t,n)=>{let a=e.value?e.value.slice():[];return a.length===2&&a[1]!==null&&(a=[]),a.length?(Mt(t,a[0])?a.unshift(t):a[1]=t,n("range-end",t)):(a=[t],n("range-start",t)),a},tu=(e,t,n,a)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&a&&n&&t("auto-apply"))},Ky=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Cn(me(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Cn(me(e.value),e.timezone))},Xy=(e,t,n,a)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&a.value.partialRange)?a.value.fixedStart&&(Lt(e,t.value[0])||Xe(e,t.value[0]))?[t.value[0],e]:a.value.fixedEnd&&(Mt(e,t.value[1])||Xe(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Jy=({multiCalendars:e,range:t,highlight:n,propDates:a,calendars:o,modelValue:i,props:s,filters:l,year:c,month:u,emit:d})=>{const f=r.computed(()=>Wp(s.yearRange,s.locale,s.reverseYears)),p=r.ref([!1]),m=r.computed(()=>(L,U)=>{const z=ht(Qn(new Date),{month:u.value(L),year:c.value(L)}),R=U?by(z):bs(z);return Uy(R,a.value.maxDate,a.value.minDate,s.preventMinMaxNavigation,U)}),v=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],y=()=>{for(let L=0;L<e.value.count;L++)if(L===0)o.value[L]=o.value[0];else if(L===e.value.count-1&&v())o.value[L]={month:Ke(i.value[1]),year:Fe(i.value[1])};else{const U=ht(me(),o.value[L-1]);o.value[L]={month:Ke(U),year:Fe(Op(U,1))}}},w=L=>{if(!L)return y();const U=ht(me(),o.value[L]);return o.value[0].year=Fe(Ny(U,e.value.count-1)),y()},b=(L,U)=>{const z=cT(U,L);return t.value.showLastInRange&&z>1?U:L},E=L=>s.focusStartDate||e.value.solo?L[0]:L[1]?b(L[0],L[1]):L[0],_=()=>{if(i.value){const L=Array.isArray(i.value)?E(i.value):i.value;o.value[0]={month:Ke(L),year:Fe(L)}}},g=()=>{_(),e.value.count&&y()};r.watch(i,(L,U)=>{s.isTextInputDate&&JSON.stringify(L??{})!==JSON.stringify(U??{})&&g()}),r.onMounted(()=>{g()});const x=(L,U)=>{o.value[U].year=L,d("update-month-year",{instance:U,year:L,month:o.value[U].month}),e.value.count&&!e.value.solo&&w(U)},C=r.computed(()=>L=>fi(f.value,U=>{var z;const R=c.value(L)===U.value,I=ws(U.value,pi(a.value.minDate),pi(a.value.maxDate))||((z=l.value.years)==null?void 0:z.includes(c.value(L))),B=Gp(n.value,U.value);return{active:R,disabled:I,highlighted:B}})),P=(L,U)=>{x(L,U),A(U)},O=(L,U=!1)=>{if(!m.value(L,U)){const z=U?c.value(L)+1:c.value(L)-1;x(z,L)}},A=(L,U=!1,z)=>{U||d("reset-flow"),z!==void 0?p.value[L]=z:p.value[L]=!p.value[L],p.value[L]?d("overlay-toggle",{open:!0,overlay:ln.year}):(d("overlay-closed"),d("overlay-toggle",{open:!1,overlay:ln.year}))};return{isDisabled:m,groupedYears:C,showYearPicker:p,selectYear:x,toggleYearPicker:A,handleYearSelect:P,handleYear:O}},SA=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:a,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:u,defaultedFilters:d,defaultedMultiDates:f}=Et(e),p=()=>{e.isTextInputDate&&g(Fe(me(e.startDate)),0)},{modelValue:m,year:v,month:y,calendars:w}=Fs(e,t,p),b=r.computed(()=>By(e.formatLocale,e.locale,e.monthNameFormat)),E=r.ref(null),{checkMinMaxRange:_}=Ba(e),{selectYear:g,groupedYears:x,showYearPicker:C,toggleYearPicker:P,handleYearSelect:O,handleYear:A,isDisabled:L}=Jy({modelValue:m,multiCalendars:n,range:s,highlight:l,calendars:w,year:v,propDates:c,month:y,filters:d,props:e,emit:t});r.onMounted(()=>{e.startDate&&(m.value&&e.focusStartDate||!m.value)&&g(Fe(me(e.startDate)),0)});const U=W=>W?{month:Ke(W),year:Fe(W)}:{month:null,year:null},z=()=>m.value?Array.isArray(m.value)?m.value.map(W=>U(W)):U(m.value):U(),R=(W,Y)=>{const H=w.value[W],T=z();return Array.isArray(T)?T.some(J=>J.year===H?.year&&J.month===Y):H?.year===T.year&&Y===T.month},I=(W,Y,H)=>{var T,J;const le=z();return Array.isArray(le)?v.value(Y)===((T=le[H])==null?void 0:T.year)&&W===((J=le[H])==null?void 0:J.month):!1},B=(W,Y)=>{if(s.value.enabled){const H=z();if(Array.isArray(m.value)&&Array.isArray(H)){const T=I(W,Y,0)||I(W,Y,1),J=Fr(Qn(me()),W,v.value(Y));return ks(m.value,E.value,J)&&!T}return!1}return!1},M=r.computed(()=>W=>fi(b.value,Y=>{var H;const T=R(W,Y.value),J=ws(Y.value,Vy(v.value(W),c.value.minDate),Fy(v.value(W),c.value.maxDate))||qP(c.value.disabledDates,v.value(W),Y.value)||((H=d.value.months)==null?void 0:H.includes(Y.value))||!YP(c.value.allowedDates,v.value(W),Y.value),le=B(Y.value,W),Oe=qy(l.value,Y.value,v.value(W));return{active:T,disabled:J,isBetween:le,highlighted:Oe}})),$=(W,Y)=>Fr(Qn(me()),W,v.value(Y)),K=(W,Y)=>{const H=m.value?m.value:Qn(new Date);m.value=Fr(H,W,v.value(Y)),t("auto-apply"),t("update-flow-step")},V=(W,Y)=>{const H=$(W,Y);s.value.fixedEnd||s.value.fixedStart?m.value=Xy(H,m,t,s):m.value?_(H,m.value)&&(m.value=Xp(m,$(W,Y),t)):m.value=[$(W,Y)],r.nextTick().then(()=>{tu(m.value,t,e.autoApply,e.modelAuto)})},Z=(W,Y)=>{Kp($(W,Y),m,f.value.limit),t("auto-apply",!0)},q=(W,Y)=>(w.value[Y].month=W,j(Y,w.value[Y].year,W),f.value.enabled?Z(W,Y):s.value.enabled?V(W,Y):K(W,Y)),oe=(W,Y)=>{g(W,Y),j(Y,W,null)},j=(W,Y,H)=>{let T=H;if(!T&&T!==0){const J=z();T=Array.isArray(J)?J[W].month:J.month}t("update-month-year",{instance:W,year:Y,month:T})};return{groupedMonths:M,groupedYears:x,year:v,isDisabled:L,defaultedMultiCalendars:n,defaultedAriaLabels:a,defaultedTransitions:o,defaultedConfig:i,showYearPicker:C,modelValue:m,presetDate:(W,Y)=>{Ky({value:W,modelValue:m,range:s.value.enabled,timezone:Y?void 0:u.value.timezone}),t("auto-apply")},setHoverDate:(W,Y)=>{E.value=$(W,Y)},selectMonth:q,selectYear:oe,toggleYearPicker:P,handleYearSelect:O,handleYear:A,getModelMonthYear:z}},CA=r.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...ur},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=r.useSlots(),i=In(o,"yearMode"),s=e;r.onMounted(()=>{s.shadow||a("mount",null)});const{groupedMonths:l,groupedYears:c,year:u,isDisabled:d,defaultedMultiCalendars:f,defaultedConfig:p,showYearPicker:m,modelValue:v,presetDate:y,setHoverDate:w,selectMonth:b,selectYear:E,toggleYearPicker:_,handleYearSelect:g,handleYear:x,getModelMonthYear:C}=SA(s,a);return t({getSidebarProps:()=>({modelValue:v,year:u,getModelMonthYear:C,selectMonth:b,selectYear:E,handleYear:x}),presetDate:y,toggleYearPicker:P=>_(0,P)}),(P,O)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":r.unref(f).count,collapse:P.collapse,stretch:"","is-mobile":P.isMobile},{default:r.withCtx(({instance:A})=>[P.$slots["top-extra"]?r.renderSlot(P.$slots,"top-extra",{key:0,value:P.internalModelValue}):r.createCommentVNode("",!0),P.$slots["month-year"]?r.renderSlot(P.$slots,"month-year",r.normalizeProps(r.mergeProps({key:1},{year:r.unref(u),months:r.unref(l)(A),years:r.unref(c)(A),selectMonth:r.unref(b),selectYear:r.unref(E),instance:A}))):(r.openBlock(),r.createBlock(zs,{key:2,items:r.unref(l)(A),"arrow-navigation":P.arrowNavigation,"is-last":P.autoApply&&!r.unref(p).keepActionRow,"esc-close":P.escClose,height:r.unref(p).modeHeight,config:P.config,"no-overlay-focus":!!(P.noOverlayFocus||P.textInput),"use-relative":"",type:"month",onSelected:L=>r.unref(b)(L,A),onHoverValue:L=>r.unref(w)(L,A)},r.createSlots({header:r.withCtx(()=>[r.createVNode(Gy,r.mergeProps(P.$props,{items:r.unref(c)(A),instance:A,"show-year-picker":r.unref(m)[A],year:r.unref(u)(A),"is-disabled":L=>r.unref(d)(A,L),onHandleYear:L=>r.unref(x)(A,L),onYearSelect:L=>r.unref(g)(L,A),onToggleYearPicker:L=>r.unref(_)(A,L?.flow,L?.show)}),r.createSlots({_:2},[r.renderList(r.unref(i),(L,U)=>({name:L,fn:r.withCtx(z=>[r.renderSlot(P.$slots,L,r.normalizeProps(r.guardReactiveProps(z)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[P.$slots["month-overlay-value"]?{name:"item",fn:r.withCtx(({item:L})=>[r.renderSlot(P.$slots,"month-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),xA=(e,t)=>{const n=()=>{e.isTextInputDate&&(d.value=Fe(me(e.startDate)))},{modelValue:a}=Fs(e,t,n),o=r.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:u}=Et(e),d=r.ref();r.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(d.value=Fe(me(e.startDate)))});const f=b=>Array.isArray(a.value)?a.value.some(E=>Fe(E)===b):a.value?Fe(a.value)===b:!1,p=b=>c.value.enabled&&Array.isArray(a.value)?ks(a.value,o.value,w(b)):!1,m=b=>u.value.allowedDates instanceof Map?u.value.allowedDates.size?u.value.allowedDates.has(`${b}`):!1:!0,v=b=>u.value.disabledDates instanceof Map?u.value.disabledDates.size?u.value.disabledDates.has(`${b}`):!1:!0,y=r.computed(()=>fi(Wp(e.yearRange,e.locale,e.reverseYears),b=>{const E=f(b.value),_=ws(b.value,pi(u.value.minDate),pi(u.value.maxDate))||l.value.years.includes(b.value)||!m(b.value)||v(b.value),g=p(b.value)&&!E,x=Gp(i.value,b.value);return{active:E,disabled:_,isBetween:g,highlighted:x}})),w=b=>_r(Qn(bs(new Date)),b);return{groupedYears:y,modelValue:a,focusYear:d,setHoverValue:b=>{o.value=_r(Qn(new Date),b)},selectYear:b=>{var E;if(t("update-month-year",{instance:0,year:b}),s.value.enabled)return a.value?Array.isArray(a.value)&&(((E=a.value)==null?void 0:E.map(_=>Fe(_))).includes(b)?a.value=a.value.filter(_=>Fe(_)!==b):a.value.push(_r(Gt(me()),b))):a.value=[_r(Gt(bs(me())),b)],t("auto-apply",!0);c.value.enabled?(a.value=Xp(a,w(b),t),r.nextTick().then(()=>{tu(a.value,t,e.autoApply,e.modelAuto)})):(a.value=w(b),t("auto-apply"))}}},EA=r.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...ur},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const a=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:u}=xA(o,a),{defaultedConfig:d}=Et(o);return t({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,p)=>(r.openBlock(),r.createElementBlock("div",null,[f.$slots["top-extra"]?r.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):r.createCommentVNode("",!0),f.$slots["month-year"]?r.renderSlot(f.$slots,"month-year",r.normalizeProps(r.mergeProps({key:1},{years:r.unref(i),selectYear:r.unref(c)}))):(r.openBlock(),r.createBlock(zs,{key:2,items:r.unref(i),"is-last":f.autoApply&&!r.unref(d).keepActionRow,height:r.unref(d).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":r.unref(l),type:"year","use-relative":"",onSelected:r.unref(c),onHoverValue:r.unref(u)},r.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:r.withCtx(({item:m})=>[r.renderSlot(f.$slots,"year-overlay-value",{text:m.text,value:m.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),TA={key:0,class:"dp__time_input"},PA=["data-compact","data-collapsed"],AA=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],IA=["aria-label","disabled","data-test-id","onKeydown","onClick"],MA=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],NA={key:0},OA=["aria-label","data-compact"],BA=r.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...ur},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const a=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=Oa(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:u,defaultedConfig:d,defaultedRange:f,defaultedMultiCalendars:p}=Et(o),{transitionName:m,showTransition:v}=Vs(c),y=r.reactive({hours:!1,minutes:!1,seconds:!1}),w=r.ref("AM"),b=r.ref(null),E=r.ref([]),_=r.ref(),g=r.ref(!1);r.onMounted(()=>{a("mounted")});const x=D=>ht(new Date,{hours:D.hours,minutes:D.minutes,seconds:o.enableSeconds?D.seconds:0,milliseconds:0}),C=r.computed(()=>D=>V(D,o[D])||O(D,o[D])),P=r.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),O=(D,de)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(D,de):!1,A=(D,de)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const fe=de?+o[`${D}Increment`]:-+o[`${D}Increment`],ce=o[D]+fe;return!o.validateTime(D,ce)}return!1},L=r.computed(()=>D=>!W(+o[D]+ +o[`${D}Increment`],D)||A(D,!0)),U=r.computed(()=>D=>!W(+o[D]-+o[`${D}Increment`],D)||A(D,!1)),z=(D,de)=>py(ht(me(),D),de),R=(D,de)=>EP(ht(me(),D),de),I=r.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),B=r.computed(()=>o.timePickerInline&&f.value.enabled&&!p.value.count),M=r.computed(()=>{const D=[{type:"hours"}];return o.enableMinutes&&D.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&D.push({type:"",separator:!0},{type:"seconds"}),D}),$=r.computed(()=>M.value.filter(D=>!D.separator)),K=r.computed(()=>D=>{if(D==="hours"){const de=Oe(+o.hours);return{text:de<10?`0${de}`:`${de}`,value:de}}return{text:o[D]<10?`0${o[D]}`:`${o[D]}`,value:o[D]}}),V=(D,de)=>{var fe;if(!o.disabledTimesConfig)return!1;const ce=o.disabledTimesConfig(o.order,D==="hours"?de:void 0);return ce[D]?!!((fe=ce[D])!=null&&fe.includes(de)):!0},Z=(D,de)=>de!=="hours"||w.value==="AM"?D:D+12,q=D=>{const de=o.is24?24:12,fe=D==="hours"?de:60,ce=+o[`${D}GridIncrement`],Ae=D==="hours"&&!o.is24?ce:0,pe=[];for(let Ie=Ae;Ie<fe;Ie+=ce)pe.push({value:o.is24?Ie:Z(Ie,D),text:Ie<10?`0${Ie}`:`${Ie}`});return D==="hours"&&!o.is24&&pe.unshift({value:w.value==="PM"?12:0,text:"12"}),fi(pe,Ie=>({active:!1,disabled:u.value.times[D].includes(Ie.value)||!W(Ie.value,D)||V(D,Ie.value)||O(D,Ie.value)}))},oe=D=>D>=0?D:59,j=D=>D>=0?D:23,W=(D,de)=>{const fe=o.minTime?x(nd(o.minTime)):null,ce=o.maxTime?x(nd(o.maxTime)):null,Ae=x(nd(P.value,de,de==="minutes"||de==="seconds"?oe(D):j(D)));return fe&&ce?(ui(Ae,ce)||Wo(Ae,ce))&&(mo(Ae,fe)||Wo(Ae,fe)):fe?mo(Ae,fe)||Wo(Ae,fe):ce?ui(Ae,ce)||Wo(Ae,ce):!0},Y=D=>o[`no${D[0].toUpperCase()+D.slice(1)}Overlay`],H=D=>{Y(D)||(y[D]=!y[D],y[D]?(g.value=!0,a("overlay-opened",D)):(g.value=!1,a("overlay-closed",D)))},T=D=>D==="hours"?Kr:D==="minutes"?ka:ci,J=()=>{_.value&&clearTimeout(_.value)},le=(D,de=!0,fe)=>{const ce=de?z:R,Ae=de?+o[`${D}Increment`]:-+o[`${D}Increment`];W(+o[D]+Ae,D)&&a(`update:${D}`,T(D)(ce({[D]:+o[D]},{[D]:+o[`${D}Increment`]}))),!(fe!=null&&fe.keyboard)&&d.value.timeArrowHoldThreshold&&(_.value=setTimeout(()=>{le(D,de)},d.value.timeArrowHoldThreshold))},Oe=D=>o.is24?D:(D>=12?w.value="PM":w.value="AM",OP(D)),ee=()=>{w.value==="PM"?(w.value="AM",a("update:hours",o.hours-12)):(w.value="PM",a("update:hours",o.hours+12)),a("am-pm-change",w.value)},Te=D=>{y[D]=!0},ae=(D,de,fe)=>{if(D&&o.arrowNavigation){Array.isArray(E.value[de])?E.value[de][fe]=D:E.value[de]=[D];const ce=E.value.reduce((Ae,pe)=>pe.map((Ie,xe)=>[...Ae[xe]||[],pe[xe]]),[]);s(o.closeTimePickerBtn),b.value&&(ce[1]=ce[1].concat(b.value)),i(ce,o.order)}},ue=(D,de)=>(H(D),a(`update:${D}`,de));return t({openChildCmp:Te}),(D,de)=>{var fe;return D.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",TA,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,(ce,Ae)=>{var pe,Ie,xe;return r.openBlock(),r.createElementBlock("div",{key:Ae,class:r.normalizeClass(I.value),"data-compact":B.value&&!D.enableSeconds,"data-collapsed":B.value&&D.enableSeconds},[ce.separator?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[g.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(":")],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,0),type:"button",class:r.normalizeClass({dp__btn:!0,dp__inc_dec_button:!D.timePickerInline,dp__inc_dec_button_inline:D.timePickerInline,dp__tp_inline_btn_top:D.timePickerInline,dp__inc_dec_button_disabled:L.value(ce.type),"dp--hidden-el":g.value}),"data-test-id":`${ce.type}-time-inc-btn-${o.order}`,"aria-label":(pe=r.unref(l))==null?void 0:pe.incrementValue(ce.type),tabindex:"0",onKeydown:X=>r.unref(mn)(X,()=>le(ce.type,!0,{keyboard:!0}),!0),onClick:X=>r.unref(d).timeArrowHoldThreshold?void 0:le(ce.type,!0),onMousedown:X=>r.unref(d).timeArrowHoldThreshold?le(ce.type,!0):void 0,onMouseup:J},[o.timePickerInline?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[D.$slots["tp-inline-arrow-up"]?r.renderSlot(D.$slots,"tp-inline-arrow-up",{key:0}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[de[2]||(de[2]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),de[3]||(de[3]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[D.$slots["arrow-up"]?r.renderSlot(D.$slots,"arrow-up",{key:0}):r.createCommentVNode("",!0),D.$slots["arrow-up"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(jp),{key:1}))],64))],42,AA),r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,1),type:"button","aria-label":`${K.value(ce.type).text}-${(Ie=r.unref(l))==null?void 0:Ie.openTpOverlay(ce.type)}`,class:r.normalizeClass({dp__time_display:!0,dp__time_display_block:!D.timePickerInline,dp__time_display_inline:D.timePickerInline,"dp--time-invalid":C.value(ce.type),"dp--time-overlay-btn":!C.value(ce.type),"dp--hidden-el":g.value}),disabled:Y(ce.type),tabindex:"0","data-test-id":`${ce.type}-toggle-overlay-btn-${o.order}`,onKeydown:X=>r.unref(mn)(X,()=>H(ce.type),!0),onClick:X=>H(ce.type)},[D.$slots[ce.type]?r.renderSlot(D.$slots,ce.type,{key:0,text:K.value(ce.type).text,value:K.value(ce.type).value}):r.createCommentVNode("",!0),D.$slots[ce.type]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(K.value(ce.type).text),1)],64))],42,IA),r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,2),type:"button",class:r.normalizeClass({dp__btn:!0,dp__inc_dec_button:!D.timePickerInline,dp__inc_dec_button_inline:D.timePickerInline,dp__tp_inline_btn_bottom:D.timePickerInline,dp__inc_dec_button_disabled:U.value(ce.type),"dp--hidden-el":g.value}),"data-test-id":`${ce.type}-time-dec-btn-${o.order}`,"aria-label":(xe=r.unref(l))==null?void 0:xe.decrementValue(ce.type),tabindex:"0",onKeydown:X=>r.unref(mn)(X,()=>le(ce.type,!1,{keyboard:!0}),!0),onClick:X=>r.unref(d).timeArrowHoldThreshold?void 0:le(ce.type,!1),onMousedown:X=>r.unref(d).timeArrowHoldThreshold?le(ce.type,!1):void 0,onMouseup:J},[o.timePickerInline?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[D.$slots["tp-inline-arrow-down"]?r.renderSlot(D.$slots,"tp-inline-arrow-down",{key:0}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[de[4]||(de[4]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),de[5]||(de[5]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[D.$slots["arrow-down"]?r.renderSlot(D.$slots,"arrow-down",{key:0}):r.createCommentVNode("",!0),D.$slots["arrow-down"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Hp),{key:1}))],64))],42,MA)],64))],10,PA)}),128)),D.is24?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",NA,[D.$slots["am-pm-button"]?r.renderSlot(D.$slots,"am-pm-button",{key:0,toggle:ee,value:w.value}):r.createCommentVNode("",!0),D.$slots["am-pm-button"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:b,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(fe=r.unref(l))==null?void 0:fe.amPmButton,tabindex:"0","data-compact":B.value,onClick:ee,onKeydown:de[0]||(de[0]=ce=>r.unref(mn)(ce,()=>ee(),!0))},r.toDisplayString(w.value),41,OA))])),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList($.value,(ce,Ae)=>(r.openBlock(),r.createBlock(r.Transition,{key:Ae,name:r.unref(m)(y[ce.type]),css:r.unref(v)},{default:r.withCtx(()=>{var pe,Ie;return[y[ce.type]?(r.openBlock(),r.createBlock(zs,{key:0,items:q(ce.type),"is-last":D.autoApply&&!r.unref(d).keepActionRow,"esc-close":D.escClose,type:ce.type,"text-input":D.textInput,config:D.config,"arrow-navigation":D.arrowNavigation,"aria-labels":D.ariaLabels,"overlay-label":(Ie=(pe=r.unref(l)).timeOverlay)==null?void 0:Ie.call(pe,ce.type),onSelected:xe=>ue(ce.type,xe),onToggle:xe=>H(ce.type),onResetFlow:de[1]||(de[1]=xe=>D.$emit("reset-flow"))},r.createSlots({"button-icon":r.withCtx(()=>[D.$slots["clock-icon"]?r.renderSlot(D.$slots,"clock-icon",{key:0}):r.createCommentVNode("",!0),D.$slots["clock-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(D.timePickerInline?r.unref(Ai):r.unref(Fp)),{key:1}))]),_:2},[D.$slots[`${ce.type}-overlay-value`]?{name:"item",fn:r.withCtx(({item:xe})=>[r.renderSlot(D.$slots,`${ce.type}-overlay-value`,{text:xe.text,value:xe.value})]),key:"0"}:void 0,D.$slots[`${ce.type}-overlay-header`]?{name:"header",fn:r.withCtx(()=>[r.renderSlot(D.$slots,`${ce.type}-overlay-header`,{toggle:()=>H(ce.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):r.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),LA=["data-dp-mobile"],DA=["aria-label","tabindex"],RA=["role","aria-label","tabindex"],$A=["aria-label"],Qy=r.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...ur},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const a=n,o=e,{buildMatrix:i,setTimePicker:s}=Oa(),l=r.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:u,defaultedTextInput:d,defaultedConfig:f,defaultedRange:p}=Et(o),{transitionName:m,showTransition:v}=Vs(c),{hideNavigationButtons:y}=nu(),w=r.ref(null),b=r.ref(null),E=r.ref([]),_=r.ref(null),g=r.ref(!1);r.onMounted(()=>{a("mount"),!o.timePicker&&o.arrowNavigation?i([jt(w.value)],"time"):s(!0,o.timePicker)});const x=r.computed(()=>p.value.enabled&&o.modelAuto?Ly(o.internalModelValue):!0),C=r.ref(!1),P=V=>({hours:Array.isArray(o.hours)?o.hours[V]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[V]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[V]:o.seconds}),O=r.computed(()=>{const V=[];if(p.value.enabled)for(let Z=0;Z<2;Z++)V.push(P(Z));else V.push(P(0));return V}),A=(V,Z=!1,q="")=>{Z||a("reset-flow"),C.value=V,a(V?"overlay-opened":"overlay-closed",ln.time),o.arrowNavigation&&s(V),r.nextTick(()=>{q!==""&&E.value[0]&&E.value[0].openChildCmp(q)})},L=r.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),U=In(l,"timePicker"),z=(V,Z,q)=>p.value.enabled?Z===0?[V,O.value[1][q]]:[O.value[0][q],V]:V,R=V=>{a("update:hours",V)},I=V=>{a("update:minutes",V)},B=V=>{a("update:seconds",V)},M=()=>{if(_.value&&!d.value.enabled&&!o.noOverlayFocus){const V=Dy(_.value);V&&V.focus({preventScroll:!0})}},$=V=>{g.value=!1,a("overlay-closed",V)},K=V=>{g.value=!0,a("overlay-opened",V)};return t({toggleTimePicker:A}),(V,Z)=>{var q;return r.openBlock(),r.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":V.isMobile},[!V.timePicker&&!V.timePickerInline?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:w,type:"button",class:r.normalizeClass({...L.value,"dp--hidden-el":C.value}),"aria-label":(q=r.unref(u))==null?void 0:q.openTimePicker,tabindex:V.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:Z[0]||(Z[0]=oe=>r.unref(mn)(oe,()=>A(!0))),onClick:Z[1]||(Z[1]=oe=>A(!0))},[V.$slots["clock-icon"]?r.renderSlot(V.$slots,"clock-icon",{key:0}):r.createCommentVNode("",!0),V.$slots["clock-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Fp),{key:1}))],42,DA)),[[r.vShow,!r.unref(y)(V.hideNavigation,"time")]]):r.createCommentVNode("",!0),r.createVNode(r.Transition,{name:r.unref(m)(C.value),css:r.unref(v)&&!V.timePickerInline},{default:r.withCtx(()=>{var oe,j;return[C.value||V.timePicker||V.timePickerInline?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:_,role:V.timePickerInline?void 0:"dialog",class:r.normalizeClass({dp__overlay:!V.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!V.timePickerInline,"dp--overlay-relative":o.timePicker}),style:r.normalizeStyle(V.timePicker?{height:`${r.unref(f).modeHeight}px`}:void 0),"aria-label":(oe=r.unref(u))==null?void 0:oe.timePicker,tabindex:V.timePickerInline?void 0:0},[r.createElementVNode("div",{class:r.normalizeClass(V.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[V.$slots["time-picker-overlay"]?r.renderSlot(V.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:R,setMinutes:I,setSeconds:B}):r.createCommentVNode("",!0),V.$slots["time-picker-overlay"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(V.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O.value,(W,Y)=>r.withDirectives((r.openBlock(),r.createBlock(BA,r.mergeProps({key:Y,ref_for:!0},{...V.$props,order:Y,hours:W.hours,minutes:W.minutes,seconds:W.seconds,closeTimePickerBtn:b.value,disabledTimesConfig:e.disabledTimesConfig,disabled:Y===0?r.unref(p).fixedStart:r.unref(p).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:E,"validate-time":(H,T)=>e.validateTime(H,z(T,Y,H)),"onUpdate:hours":H=>R(z(H,Y,"hours")),"onUpdate:minutes":H=>I(z(H,Y,"minutes")),"onUpdate:seconds":H=>B(z(H,Y,"seconds")),onMounted:M,onOverlayClosed:$,onOverlayOpened:K,onAmPmChange:Z[2]||(Z[2]=H=>V.$emit("am-pm-change",H))}),r.createSlots({_:2},[r.renderList(r.unref(U),(H,T)=>({name:H,fn:r.withCtx(J=>[r.renderSlot(V.$slots,H,r.mergeProps({ref_for:!0},J))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[r.vShow,Y===0?!0:x.value]])),128))],2)),!V.timePicker&&!V.timePickerInline?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:b,type:"button",class:r.normalizeClass({...L.value,"dp--hidden-el":g.value}),"aria-label":(j=r.unref(u))==null?void 0:j.closeTimePicker,tabindex:"0",onKeydown:Z[3]||(Z[3]=W=>r.unref(mn)(W,()=>A(!1))),onClick:Z[4]||(Z[4]=W=>A(!1))},[V.$slots["calendar-icon"]?r.renderSlot(V.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),V.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))],42,$A)),[[r.vShow,!r.unref(y)(V.hideNavigation,"time")]]):r.createCommentVNode("",!0)],2)],14,RA)):r.createCommentVNode("",!0)]}),_:3},8,["name","css"])],8,LA)}}}),Zy=(e,t,n,a)=>{const{defaultedRange:o}=Et(e),i=(_,g)=>Array.isArray(t[_])?t[_][g]:t[_],s=_=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[_]:t.seconds:0,l=(_,g)=>_?g!==void 0?ha(_,i("hours",g),i("minutes",g),s(g)):ha(_,t.hours,t.minutes,s()):My(me(),s(g)),c=(_,g)=>{t[_]=g},u=r.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),d=(_,g)=>{const x=Object.fromEntries(Object.keys(t).map(C=>C===_?[C,g]:[C,t[C]].slice()));if(u.value&&!o.value.disableTimeRangeValidation){const C=O=>n.value?ha(n.value[O],x.hours[O],x.minutes[O],x.seconds[O]):null,P=O=>Iy(n.value[O],0);return!(Xe(C(0),C(1))&&(mo(C(0),P(1))||ui(C(1),P(0))))}return!0},f=(_,g)=>{d(_,g)&&(c(_,g),a&&a())},p=_=>{f("hours",_)},m=_=>{f("minutes",_)},v=_=>{f("seconds",_)},y=(_,g,x,C)=>{g&&p(_),!g&&!x&&m(_),x&&v(_),n.value&&C(n.value)},w=_=>{if(_){const g=Array.isArray(_),x=g?[+_[0].hours,+_[1].hours]:+_.hours,C=g?[+_[0].minutes,+_[1].minutes]:+_.minutes,P=g?[+_[0].seconds,+_[1].seconds]:+_.seconds;c("hours",x),c("minutes",C),e.enableSeconds&&c("seconds",P)}},b=(_,g)=>{const x={hours:Array.isArray(t.hours)?t.hours[_]:t.hours,disabledArr:[]};return(g||g===0)&&(x.hours=g),Array.isArray(e.disabledTimes)&&(x.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[_])?e.disabledTimes[_]:e.disabledTimes),x},E=r.computed(()=>(_,g)=>{var x;if(Array.isArray(e.disabledTimes)){const{disabledArr:C,hours:P}=b(_,g),O=C.filter(A=>+A.hours===P);return((x=O[0])==null?void 0:x.minutes)==="*"?{hours:[P],minutes:void 0,seconds:void 0}:{hours:[],minutes:O?.map(A=>+A.minutes)??[],seconds:O?.map(A=>A.seconds?+A.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:p,updateMinutes:m,updateSeconds:v,getSetDateTime:l,updateTimeValues:y,getSecondsValue:s,assignStartTime:w,validateTime:d,disabledTimesConfig:E}},zA=(e,t)=>{const n=()=>{e.isTextInputDate&&g()},{modelValue:a,time:o}=Fs(e,t,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=Et(e),{updateTimeValues:c,getSetDateTime:u,setTime:d,assignStartTime:f,disabledTimesConfig:p,validateTime:m}=Zy(e,o,a,v);function v(){t("update-flow-step")}const y=C=>{const{hours:P,minutes:O,seconds:A}=C;return{hours:+P,minutes:+O,seconds:A?+A:0}},w=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const P=y(e.startTime[0]),O=y(e.startTime[1]);return[ht(me(),P),ht(me(),O)]}const C=y(e.startTime);return ht(me(),C)}return s.value.enabled?[null,null]:null},b=()=>{if(s.value.enabled){const[C,P]=w();a.value=[Cn(u(C,0),l.value.timezone),Cn(u(P,1),l.value.timezone)]}else a.value=Cn(u(w()),l.value.timezone)},E=C=>Array.isArray(C)?[oo(me(C[0])),oo(me(C[1]))]:[oo(C??me())],_=(C,P,O)=>{d("hours",C),d("minutes",P),d("seconds",e.enableSeconds?O:0)},g=()=>{const[C,P]=E(a.value);return s.value.enabled?_([C.hours,P.hours],[C.minutes,P.minutes],[C.seconds,P.seconds]):_(C.hours,C.minutes,C.seconds)};r.onMounted(()=>{if(!e.shadow)return f(i.value),a.value?g():b()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((C,P)=>C&&u(C,P)):a.value=u(a.value),t("time-update")};return{modelValue:a,time:o,disabledTimesConfig:p,updateTime:(C,P=!0,O=!1)=>{c(C,P,O,x)},validateTime:m}},VA=r.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...ur},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=In(i,"timePicker"),l=r.ref(null),{time:c,modelValue:u,disabledTimesConfig:d,updateTime:f,validateTime:p}=zA(o,a);return r.onMounted(()=>{o.shadow||a("mount",null)}),t({getSidebarProps:()=>({modelValue:u,time:c,updateTime:f}),toggleTimePicker:(m,v=!1,y="")=>{var w;(w=l.value)==null||w.toggleTimePicker(m,v,y)}}),(m,v)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":0,stretch:"","is-mobile":m.isMobile},{default:r.withCtx(()=>[r.createVNode(Qy,r.mergeProps({ref_key:"tpRef",ref:l},m.$props,{hours:r.unref(c).hours,minutes:r.unref(c).minutes,seconds:r.unref(c).seconds,"internal-model-value":m.internalModelValue,"disabled-times-config":r.unref(d),"validate-time":r.unref(p),"onUpdate:hours":v[0]||(v[0]=y=>r.unref(f)(y)),"onUpdate:minutes":v[1]||(v[1]=y=>r.unref(f)(y,!1)),"onUpdate:seconds":v[2]||(v[2]=y=>r.unref(f)(y,!1,!0)),onAmPmChange:v[3]||(v[3]=y=>m.$emit("am-pm-change",y)),onResetFlow:v[4]||(v[4]=y=>m.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=y=>m.$emit("overlay-toggle",{open:!1,overlay:y})),onOverlayOpened:v[6]||(v[6]=y=>m.$emit("overlay-toggle",{open:!0,overlay:y}))}),r.createSlots({_:2},[r.renderList(r.unref(s),(y,w)=>({name:y,fn:r.withCtx(b=>[r.renderSlot(m.$slots,y,r.normalizeProps(r.guardReactiveProps(b)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),FA={class:"dp--header-wrap"},jA={key:0,class:"dp__month_year_wrap"},HA={key:0},UA={class:"dp__month_year_wrap"},WA=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],qA=r.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...ur},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const a=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:u,defaultedHighlight:d,propDates:f,defaultedUI:p}=Et(o),{transitionName:m,showTransition:v}=Vs(i),{buildMatrix:y}=Oa(),{handleMonthYearChange:w,isDisabled:b,updateMonthYear:E}=fA(o,a),{showLeftIcon:_,showRightIcon:g}=nu(),x=r.ref(!1),C=r.ref(!1),P=r.ref(!1),O=r.ref([null,null,null,null]);r.onMounted(()=>{a("mount")});const A=j=>({get:()=>o[j],set:W=>{const Y=j===qn.month?qn.year:qn.month;a("update-month-year",{[j]:W,[Y]:o[Y]}),j===qn.month?$(!0):K(!0)}}),L=r.computed(A(qn.month)),U=r.computed(A(qn.year)),z=r.computed(()=>j=>({month:o.month,year:o.year,items:j===qn.month?o.months:o.years,instance:o.instance,updateMonthYear:E,toggle:j===qn.month?$:K})),R=r.computed(()=>o.months.find(W=>W.value===o.month)||{text:"",value:0}),I=r.computed(()=>fi(o.months,j=>{const W=o.month===j.value,Y=ws(j.value,Vy(o.year,f.value.minDate),Fy(o.year,f.value.maxDate))||c.value.months.includes(j.value),H=qy(d.value,j.value,o.year);return{active:W,disabled:Y,highlighted:H}})),B=r.computed(()=>fi(o.years,j=>{const W=o.year===j.value,Y=ws(j.value,pi(f.value.minDate),pi(f.value.maxDate))||c.value.years.includes(j.value),H=Gp(d.value,j.value);return{active:W,disabled:Y,highlighted:H}})),M=(j,W,Y)=>{Y!==void 0?j.value=Y:j.value=!j.value,j.value?(P.value=!0,a("overlay-opened",W)):(P.value=!1,a("overlay-closed",W))},$=(j=!1,W)=>{V(j),M(x,ln.month,W)},K=(j=!1,W)=>{V(j),M(C,ln.year,W)},V=j=>{j||a("reset-flow")},Z=(j,W)=>{o.arrowNavigation&&(O.value[W]=jt(j),y(O.value,"monthYear"))},q=r.computed(()=>{var j,W,Y,H,T,J;return[{type:qn.month,index:1,toggle:$,modelValue:L.value,updateModelValue:le=>L.value=le,text:R.value.text,showSelectionGrid:x.value,items:I.value,ariaLabel:(j=s.value)==null?void 0:j.openMonthsOverlay,overlayLabel:((Y=(W=s.value).monthPicker)==null?void 0:Y.call(W,!0))??void 0},{type:qn.year,index:2,toggle:K,modelValue:U.value,updateModelValue:le=>U.value=le,text:Ry(o.year,o.locale),showSelectionGrid:C.value,items:B.value,ariaLabel:(H=s.value)==null?void 0:H.openYearsOverlay,overlayLabel:((J=(T=s.value).yearPicker)==null?void 0:J.call(T,!0))??void 0}]}),oe=r.computed(()=>o.disableYearSelect?[q.value[0]]:o.yearFirst?[...q.value].reverse():q.value);return t({toggleMonthPicker:$,toggleYearPicker:K,handleMonthYearChange:w}),(j,W)=>{var Y,H,T,J,le,Oe;return r.openBlock(),r.createElementBlock("div",FA,[j.$slots["month-year"]?(r.openBlock(),r.createElementBlock("div",jA,[r.renderSlot(j.$slots,"month-year",r.normalizeProps(r.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:r.unref(E),handleMonthYearChange:r.unref(w),instance:e.instance,isDisabled:r.unref(b)})))])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[j.$slots["top-extra"]?(r.openBlock(),r.createElementBlock("div",HA,[r.renderSlot(j.$slots,"top-extra",{value:j.internalModelValue})])):r.createCommentVNode("",!0),r.createElementVNode("div",UA,[r.unref(_)(r.unref(l),e.instance)&&!j.vertical?(r.openBlock(),r.createBlock(as,{key:0,"aria-label":(Y=r.unref(s))==null?void 0:Y.prevMonth,disabled:r.unref(b)(!1),class:r.normalizeClass((H=r.unref(p))==null?void 0:H.navBtnPrev),"el-name":"action-prev",onActivate:W[0]||(W[0]=ee=>r.unref(w)(!1,!0)),onSetRef:W[1]||(W[1]=ee=>Z(ee,0))},{default:r.withCtx(()=>[j.$slots["arrow-left"]?r.renderSlot(j.$slots,"arrow-left",{key:0}):r.createCommentVNode("",!0),j.$slots["arrow-left"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:j.disableYearSelect}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(oe.value,(ee,Te)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:ee.type},[r.createElementVNode("button",{ref_for:!0,ref:ae=>Z(ae,Te+1),type:"button","data-dp-element":`overlay-${ee.type}`,class:r.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":P.value}]),"aria-label":`${ee.text}-${ee.ariaLabel}`,"data-test-id":`${ee.type}-toggle-overlay-${e.instance}`,onClick:ee.toggle,onKeydown:ae=>r.unref(mn)(ae,()=>ee.toggle(),!0)},[j.$slots[ee.type]?r.renderSlot(j.$slots,ee.type,{key:0,text:ee.text,value:o[ee.type]}):r.createCommentVNode("",!0),j.$slots[ee.type]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(ee.text),1)],64))],42,WA),r.createVNode(r.Transition,{name:r.unref(m)(ee.showSelectionGrid),css:r.unref(v)},{default:r.withCtx(()=>[ee.showSelectionGrid?(r.openBlock(),r.createBlock(zs,{key:0,items:ee.items,"arrow-navigation":j.arrowNavigation,"hide-navigation":j.hideNavigation,"is-last":j.autoApply&&!r.unref(u).keepActionRow,"skip-button-ref":!1,config:j.config,type:ee.type,"header-refs":[],"esc-close":j.escClose,"menu-wrap-ref":j.menuWrapRef,"text-input":j.textInput,"aria-labels":j.ariaLabels,"overlay-label":ee.overlayLabel,onSelected:ee.updateModelValue,onToggle:ee.toggle},r.createSlots({"button-icon":r.withCtx(()=>[j.$slots["calendar-icon"]?r.renderSlot(j.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),j.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))]),_:2},[j.$slots[`${ee.type}-overlay-value`]?{name:"item",fn:r.withCtx(({item:ae})=>[r.renderSlot(j.$slots,`${ee.type}-overlay-value`,{text:ae.text,value:ae.value})]),key:"0"}:void 0,j.$slots[`${ee.type}-overlay`]?{name:"overlay",fn:r.withCtx(()=>[r.renderSlot(j.$slots,`${ee.type}-overlay`,r.mergeProps({ref_for:!0},z.value(ee.type)))]),key:"1"}:void 0,j.$slots[`${ee.type}-overlay-header`]?{name:"header",fn:r.withCtx(()=>[r.renderSlot(j.$slots,`${ee.type}-overlay-header`,{toggle:ee.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):r.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),r.unref(_)(r.unref(l),e.instance)&&j.vertical?(r.openBlock(),r.createBlock(as,{key:1,"aria-label":(T=r.unref(s))==null?void 0:T.prevMonth,"el-name":"action-prev",disabled:r.unref(b)(!1),class:r.normalizeClass((J=r.unref(p))==null?void 0:J.navBtnPrev),onActivate:W[2]||(W[2]=ee=>r.unref(w)(!1,!0))},{default:r.withCtx(()=>[j.$slots["arrow-up"]?r.renderSlot(j.$slots,"arrow-up",{key:0}):r.createCommentVNode("",!0),j.$slots["arrow-up"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.unref(g)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:2,ref:"rightIcon","el-name":"action-next",disabled:r.unref(b)(!0),"aria-label":(le=r.unref(s))==null?void 0:le.nextMonth,class:r.normalizeClass((Oe=r.unref(p))==null?void 0:Oe.navBtnNext),onActivate:W[3]||(W[3]=ee=>r.unref(w)(!0,!0)),onSetRef:W[4]||(W[4]=ee=>Z(ee,j.disableYearSelect?2:3))},{default:r.withCtx(()=>[j.$slots[j.vertical?"arrow-down":"arrow-right"]?r.renderSlot(j.$slots,j.vertical?"arrow-down":"arrow-right",{key:0}):r.createCommentVNode("",!0),j.$slots[j.vertical?"arrow-down":"arrow-right"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(j.vertical?r.unref(Hp):r.unref(Vp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):r.createCommentVNode("",!0)])],64))])}}}),YA={class:"dp__calendar_header",role:"row"},GA={key:0,class:"dp__calendar_header_item",role:"gridcell"},KA=["aria-label"],XA={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},JA={class:"dp__cell_inner"},QA=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],ZA=r.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...ur},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const a=n,o=e,{buildMultiLevelMatrix:i}=Oa(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:u,defaultedWeekNumbers:d,defaultedMultiDates:f,defaultedUI:p}=Et(o),m=r.ref(null),v=r.ref({bottom:"",left:"",transform:""}),y=r.ref([]),w=r.ref(null),b=r.ref(!0),E=r.ref(""),_=r.ref({startX:0,endX:0,startY:0,endY:0}),g=r.ref([]),x=r.ref({left:"50%"}),C=r.ref(!1),P=r.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),O=r.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):NP(o.formatLocale,o.locale,+o.weekStart));r.onMounted(()=>{a("mount",{cmp:"calendar",refs:y}),l.value.noSwipe||w.value&&(w.value.addEventListener("touchstart",Z,{passive:!1}),w.value.addEventListener("touchend",q,{passive:!1}),w.value.addEventListener("touchmove",oe,{passive:!1})),o.monthChangeOnScroll&&w.value&&w.value.addEventListener("wheel",Y,{passive:!1})}),r.onUnmounted(()=>{l.value.noSwipe||w.value&&(w.value.removeEventListener("touchstart",Z),w.value.removeEventListener("touchend",q),w.value.removeEventListener("touchmove",oe)),o.monthChangeOnScroll&&w.value&&w.value.removeEventListener("wheel",Y)});const A=ee=>ee?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",L=(ee,Te)=>{if(o.transitions){const ae=Gt(Fr(me(),o.month,o.year));E.value=Lt(Gt(Fr(me(),ee,Te)),ae)?s.value[A(!0)]:s.value[A(!1)],b.value=!1,r.nextTick(()=>{b.value=!0})}},U=r.computed(()=>({...p.value.calendar??{}})),z=r.computed(()=>ee=>{const Te=BP(ee);return{dp__marker_dot:Te.type==="dot",dp__marker_line:Te.type==="line"}}),R=r.computed(()=>ee=>Xe(ee,m.value)),I=r.computed(()=>({dp__calendar:!0,dp__calendar_next:u.value.count>0&&o.instance!==0})),B=r.computed(()=>ee=>o.hideOffsetDates?ee.current:!0),M=async(ee,Te)=>{const{width:ae,height:ue}=ee.getBoundingClientRect();m.value=Te.value;let D={left:`${ae/2}px`},de=-50;if(await r.nextTick(),g.value[0]){const{left:fe,width:ce}=g.value[0].getBoundingClientRect();fe<0&&(D={left:"0"},de=0,x.value.left=`${ae/2}px`),window.innerWidth<fe+ce&&(D={right:"0"},de=0,x.value.left=`${ce-ae/2}px`)}v.value={bottom:`${ue}px`,...D,transform:`translateX(${de}%)`}},$=async(ee,Te,ae)=>{var ue,D,de;const fe=jt(y.value[Te][ae]);fe&&((ue=ee.marker)!=null&&ue.customPosition&&(de=(D=ee.marker)==null?void 0:D.tooltip)!=null&&de.length?v.value=ee.marker.customPosition(fe):await M(fe,ee),a("tooltip-open",ee.marker))},K=async(ee,Te,ae)=>{var ue,D;if(C.value&&f.value.enabled&&f.value.dragSelect)return a("select-date",ee);if(a("set-hover-date",ee),(D=(ue=ee.marker)==null?void 0:ue.tooltip)!=null&&D.length){if(o.hideOffsetDates&&!ee.current)return;await $(ee,Te,ae)}},V=ee=>{m.value&&(m.value=null,v.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),a("tooltip-close",ee.marker))},Z=ee=>{_.value.startX=ee.changedTouches[0].screenX,_.value.startY=ee.changedTouches[0].screenY},q=ee=>{_.value.endX=ee.changedTouches[0].screenX,_.value.endY=ee.changedTouches[0].screenY,j()},oe=ee=>{o.vertical&&!o.inline&&ee.preventDefault()},j=()=>{const ee=o.vertical?"Y":"X";Math.abs(_.value[`start${ee}`]-_.value[`end${ee}`])>10&&a("handle-swipe",_.value[`start${ee}`]>_.value[`end${ee}`]?"right":"left")},W=(ee,Te,ae)=>{ee&&(Array.isArray(y.value[Te])?y.value[Te][ae]=ee:y.value[Te]=[ee]),o.arrowNavigation&&i(y.value,"calendar")},Y=ee=>{o.monthChangeOnScroll&&(ee.preventDefault(),a("handle-scroll",ee))},H=ee=>d.value.type==="local"?Dp(ee.value,{weekStartsOn:+o.weekStart}):d.value.type==="iso"?Bp(ee.value):typeof d.value.type=="function"?d.value.type(ee.value):"",T=ee=>{const Te=ee[0];return d.value.hideOnOffsetDates?ee.some(ae=>ae.current)?H(Te):"":H(Te)},J=(ee,Te,ae=!0)=>{!ae&&zP()||(!f.value.enabled||l.value.allowPreventDefault)&&(ma(ee,l.value),a("select-date",Te))},le=ee=>{ma(ee,l.value)},Oe=ee=>{f.value.enabled&&f.value.dragSelect?(C.value=!0,a("select-date",ee)):f.value.enabled&&a("select-date",ee)};return t({triggerTransition:L}),(ee,Te)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(I.value)},[r.createElementVNode("div",{ref_key:"calendarWrapRef",ref:w,class:r.normalizeClass(U.value),role:"grid"},[r.createElementVNode("div",YA,[ee.weekNumbers?(r.openBlock(),r.createElementBlock("div",GA,r.toDisplayString(ee.weekNumName),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O.value,(ae,ue)=>{var D,de;return r.openBlock(),r.createElementBlock("div",{key:ue,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":(de=(D=r.unref(c))==null?void 0:D.weekDay)==null?void 0:de.call(D,ue)},[ee.$slots["calendar-header"]?r.renderSlot(ee.$slots,"calendar-header",{key:0,day:ae,index:ue}):r.createCommentVNode("",!0),ee.$slots["calendar-header"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(ae),1)],64))],8,KA)}),128))]),Te[2]||(Te[2]=r.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),r.createVNode(r.Transition,{name:E.value,css:!!ee.transitions},{default:r.withCtx(()=>[b.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:Te[1]||(Te[1]=ae=>C.value=!1)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(P.value,(ae,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"dp__calendar_row",role:"row"},[ee.weekNumbers?(r.openBlock(),r.createElementBlock("div",XA,[r.createElementVNode("div",JA,r.toDisplayString(T(ae.days)),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(ae.days,(D,de)=>{var fe,ce,Ae;return r.openBlock(),r.createElementBlock("div",{id:r.unref(bf)(D.value),ref_for:!0,ref:pe=>W(pe,ue,de),key:de+ue,role:"gridcell",class:"dp__calendar_item","aria-pressed":(D.classData.dp__active_date||D.classData.dp__range_start||D.classData.dp__range_start)??void 0,"aria-disabled":D.classData.dp__cell_disabled||void 0,"aria-label":(ce=(fe=r.unref(c))==null?void 0:fe.day)==null?void 0:ce.call(fe,D),tabindex:!D.current&&ee.hideOffsetDates?void 0:0,"data-test-id":r.unref(bf)(D.value),onClick:r.withModifiers(pe=>J(pe,D),["prevent"]),onTouchend:pe=>J(pe,D,!1),onKeydown:pe=>r.unref(mn)(pe,()=>ee.$emit("select-date",D)),onMouseenter:pe=>K(D,ue,de),onMouseleave:pe=>V(D),onMousedown:pe=>Oe(D),onMouseup:Te[0]||(Te[0]=pe=>C.value=!1)},[r.createElementVNode("div",{class:r.normalizeClass(["dp__cell_inner",D.classData])},[ee.$slots.day&&B.value(D)?r.renderSlot(ee.$slots,"day",{key:0,day:+D.text,date:D.value}):r.createCommentVNode("",!0),ee.$slots.day?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(D.text),1)],64)),D.marker&&B.value(D)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[ee.$slots.marker?r.renderSlot(ee.$slots,"marker",{key:0,marker:D.marker,day:+D.text,date:D.value}):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(z.value(D.marker)),style:r.normalizeStyle(D.marker.color?{backgroundColor:D.marker.color}:{})},null,6))],64)):r.createCommentVNode("",!0),R.value(D.value)?(r.openBlock(),r.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:g,class:"dp__marker_tooltip",style:r.normalizeStyle(v.value)},[(Ae=D.marker)!=null&&Ae.tooltip?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:le},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(D.marker.tooltip,(pe,Ie)=>(r.openBlock(),r.createElementBlock("div",{key:Ie,class:"dp__tooltip_text"},[ee.$slots["marker-tooltip"]?r.renderSlot(ee.$slots,"marker-tooltip",{key:0,tooltip:pe,day:D.value}):r.createCommentVNode("",!0),ee.$slots["marker-tooltip"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",{class:"dp__tooltip_mark",style:r.normalizeStyle(pe.color?{backgroundColor:pe.color}:{})},null,4),r.createElementVNode("div",null,r.toDisplayString(pe.text),1)],64))]))),128)),r.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:r.normalizeStyle(x.value)},null,4)])):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)],2)],40,QA)}),128))]))),128))],32)):r.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),Zv=e=>Array.isArray(e),eI=(e,t,n,a)=>{const o=r.ref([]),i=r.ref(new Date),s=r.ref(),l=()=>q(e.isTextInputDate),{modelValue:c,calendars:u,time:d,today:f}=Fs(e,t,l),{defaultedMultiCalendars:p,defaultedStartTime:m,defaultedRange:v,defaultedConfig:y,defaultedTz:w,propDates:b,defaultedMultiDates:E}=Et(e),{validateMonthYearInRange:_,isDisabled:g,isDateRangeAllowed:x,checkMinMaxRange:C}=Ba(e),{updateTimeValues:P,getSetDateTime:O,setTime:A,assignStartTime:L,validateTime:U,disabledTimesConfig:z}=Zy(e,d,c,a),R=r.computed(()=>G=>u.value[G]?u.value[G].month:0),I=r.computed(()=>G=>u.value[G]?u.value[G].year:0),B=G=>!y.value.keepViewOnOffsetClick||G?!0:!s.value,M=(G,se,be,Re=!1)=>{var ne,he;B(Re)&&(u.value[G]||(u.value[G]={month:0,year:0}),u.value[G].month=Yv(se)?(ne=u.value[G])==null?void 0:ne.month:se,u.value[G].year=Yv(be)?(he=u.value[G])==null?void 0:he.year:be)},$=()=>{e.autoApply&&t("select-date")},K=()=>{m.value&&L(m.value)};r.onMounted(()=>{e.shadow||(c.value||(Te(),K()),q(!0),e.focusStartDate&&e.startDate&&Te())});const V=r.computed(()=>{var G;return(G=e.flow)!=null&&G.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),Z=()=>{e.autoApply&&V.value&&t("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},q=(G=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,J(G)):W(c.value,G);if(p.value.count&&G&&!e.startDate)return j(me(),G)},oe=()=>Array.isArray(c.value)&&v.value.enabled?Ke(c.value[0])===Ke(c.value[1]??c.value[0]):!1,j=(G=new Date,se=!1)=>{if((!p.value.count||!p.value.static||se)&&M(0,Ke(G),Fe(G)),p.value.count&&(!c.value||oe()||!p.value.solo)&&(!p.value.solo||se))for(let be=1;be<p.value.count;be++){const Re=ht(me(),{month:R.value(be-1),year:I.value(be-1)}),ne=py(Re,{months:1});u.value[be]={month:Ke(ne),year:Fe(ne)}}},W=(G,se)=>{j(G),A("hours",Kr(G)),A("minutes",ka(G)),A("seconds",ci(G)),p.value.count&&se&&ee()},Y=G=>{if(p.value.count){if(p.value.solo)return 0;const se=Ke(G[0]),be=Ke(G[1]);return Math.abs(be-se)<p.value.count?0:1}return 1},H=(G,se)=>{G[1]&&v.value.showLastInRange?j(G[Y(G)],se):j(G[0],se);const be=(Re,ne)=>[Re(G[0]),G[1]?Re(G[1]):d[ne][1]];A("hours",be(Kr,"hours")),A("minutes",be(ka,"minutes")),A("seconds",be(ci,"seconds"))},T=(G,se)=>{if((v.value.enabled||e.weekPicker)&&!E.value.enabled)return H(G,se);if(E.value.enabled&&se){const be=G[G.length-1];return W(be,se)}},J=G=>{const se=c.value;T(se,G),p.value.count&&p.value.solo&&ee()},le=(G,se)=>{const be=ht(me(),{month:R.value(se),year:I.value(se)}),Re=G<0?nr(be,1):di(be,1);_(Ke(Re),Fe(Re),G<0,e.preventMinMaxNavigation)&&(M(se,Ke(Re),Fe(Re)),t("update-month-year",{instance:se,month:Ke(Re),year:Fe(Re)}),p.value.count&&!p.value.solo&&Oe(se),n())},Oe=G=>{for(let se=G-1;se>=0;se--){const be=di(ht(me(),{month:R.value(se+1),year:I.value(se+1)}),1);M(se,Ke(be),Fe(be))}for(let se=G+1;se<=p.value.count-1;se++){const be=nr(ht(me(),{month:R.value(se-1),year:I.value(se-1)}),1);M(se,Ke(be),Fe(be))}},ee=()=>{if(Array.isArray(c.value)&&c.value.length===2){const G=me(me(c.value[1]?c.value[1]:nr(c.value[0],1))),[se,be]=[Ke(c.value[0]),Fe(c.value[0])],[Re,ne]=[Ke(c.value[1]),Fe(c.value[1])];(se!==Re||se===Re&&be!==ne)&&p.value.solo&&M(1,Ke(G),Fe(G))}else c.value&&!Array.isArray(c.value)&&(M(0,Ke(c.value),Fe(c.value)),j(me()))},Te=()=>{e.startDate&&(M(0,Ke(me(e.startDate)),Fe(me(e.startDate))),p.value.count&&Oe(0))},ae=(G,se)=>{if(e.monthChangeOnScroll){const be=new Date().getTime()-i.value.getTime(),Re=Math.abs(G.deltaY);let ne=500;Re>1&&(ne=100),Re>100&&(ne=0),be>ne&&(i.value=new Date,le(e.monthChangeOnScroll!=="inverse"?-G.deltaY:G.deltaY,se))}},ue=(G,se,be=!1)=>{e.monthChangeOnArrows&&e.vertical===be&&D(G,se)},D=(G,se)=>{le(G==="right"?-1:1,se)},de=G=>{if(b.value.markers)return fc(G.value,b.value.markers)},fe=(G,se)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[G==0,!0];case"fair":return[G==0||se>G,!0];case"append":return[!1,!1];default:return[!1,!1]}},ce=(G,se,be,Re)=>{if(e.sixWeeks&&G.length<6){const ne=6-G.length,he=(se.getDay()+7-Re)%7,Ce=6-(be.getDay()+7-Re)%7,[st,vt]=fe(he,Ce);for(let Ut=1;Ut<=ne;Ut++)if(vt?!!(Ut%2)==st:st){const Vt=G[0].days[0],nn=Ae(Rn(Vt.value,-7),Ke(se));G.unshift({days:nn})}else{const Vt=G[G.length-1],nn=Vt.days[Vt.days.length-1],za=Ae(Rn(nn.value,1),Ke(se));G.push({days:za})}}return G},Ae=(G,se)=>{const be=me(G),Re=[];for(let ne=0;ne<7;ne++){const he=Rn(be,ne),Ce=Ke(he)!==se;Re.push({text:e.hideOffsetDates&&Ce?"":he.getDate(),value:he,current:!Ce,classData:{}})}return Re},pe=(G,se)=>{const be=[],Re=new Date(se,G),ne=new Date(se,G+1,0),he=e.weekStart,Ce=ir(Re,{weekStartsOn:he}),st=vt=>{const Ut=Ae(vt,G);if(be.push({days:Ut}),!be[be.length-1].days.some(Vt=>Xe(Gt(Vt.value),Gt(ne)))){const Vt=Rn(vt,7);st(Vt)}};return st(Ce),ce(be,Re,ne,he)},Ie=G=>{const se=ha(me(G.value),d.hours,d.minutes,Se());t("date-update",se),E.value.enabled?Kp(se,c,E.value.limit):c.value=se,a(),r.nextTick().then(()=>{Z()})},xe=G=>v.value.noDisabledRange?jy(o.value[0],G).some(se=>g(se)):!1,X=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(v.value.fixedStart||v.value.fixedEnd)&&(o.value=[])},re=(G,se)=>{const be=[me(G.value),Rn(me(G.value),+v.value.autoRange)];x(be)?(se&&ye(G.value),o.value=be):t("invalid-date",G.value)},ye=G=>{const se=Ke(me(G)),be=Fe(me(G));if(M(0,se,be),p.value.count>0)for(let Re=1;Re<p.value.count;Re++){const ne=jP(ht(me(G),{year:I.value(Re-1),month:R.value(Re-1)}));M(Re,ne.month,ne.year)}},Ze=G=>{if(xe(G.value)||!C(G.value,c.value,v.value.fixedStart?0:1))return t("invalid-date",G.value);o.value=Xy(me(G.value),c,t,v)},ct=(G,se)=>{if(X(),v.value.autoRange)return re(G,se);if(v.value.fixedStart||v.value.fixedEnd)return Ze(G);o.value[0]?C(me(G.value),c.value)&&!xe(G.value)?Mt(me(G.value),me(o.value[0]))?(o.value.unshift(me(G.value)),t("range-end",o.value[0])):(o.value[1]=me(G.value),t("range-end",o.value[1])):(e.autoApply&&t("auto-apply-invalid",G.value),t("invalid-date",G.value)):(o.value[0]=me(G.value),t("range-start",o.value[0]))},Se=(G=!0)=>e.enableSeconds?Array.isArray(d.seconds)?G?d.seconds[0]:d.seconds[1]:d.seconds:0,ut=G=>{o.value[G]=ha(o.value[G],d.hours[G],d.minutes[G],Se(G!==1))},$t=()=>{var G,se;o.value[0]&&o.value[1]&&+((G=o.value)==null?void 0:G[0])>+((se=o.value)==null?void 0:se[1])&&(o.value.reverse(),t("range-start",o.value[0]),t("range-end",o.value[1]))},xn=()=>{o.value.length&&(o.value[0]&&!o.value[1]?ut(0):(ut(0),ut(1),a()),$t(),c.value=o.value.slice(),tu(o.value,t,e.autoApply,e.modelAuto))},zt=(G,se=!1)=>{if(g(G.value)||!G.current&&e.hideOffsetDates)return t("invalid-date",G.value);if(s.value=JSON.parse(JSON.stringify(G)),!v.value.enabled)return Ie(G);Zv(d.hours)&&Zv(d.minutes)&&!E.value.enabled&&(ct(G,se),xn())},Kt=(G,se)=>{var be;M(G,se.month,se.year,!0),p.value.count&&!p.value.solo&&Oe(G),t("update-month-year",{instance:G,month:se.month,year:se.year}),n(p.value.solo?G:void 0);const Re=(be=e.flow)!=null&&be.length?e.flow[e.flowStep]:void 0;!se.fromNav&&(Re===ln.month||Re===ln.year)&&a()},te=(G,se)=>{Ky({value:G,modelValue:c,range:v.value.enabled,timezone:se?void 0:w.value.timezone}),$(),e.multiCalendars&&r.nextTick().then(()=>q(!0))},_e=()=>{const G=Up(me(),w.value);!v.value.enabled&&!E.value.enabled?c.value=G:c.value&&Array.isArray(c.value)&&c.value[0]?E.value.enabled?c.value=[...c.value,G]:c.value=Mt(G,c.value[0])?[G,c.value[0]]:[c.value[0],G]:c.value=[G],$()},Ee=()=>{if(Array.isArray(c.value))if(E.value.enabled){const G=He();c.value[c.value.length-1]=O(G)}else c.value=c.value.map((G,se)=>G&&O(G,se));else c.value=O(c.value);t("time-update")},He=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:u,modelValue:c,month:R,year:I,time:d,disabledTimesConfig:z,today:f,validateTime:U,getCalendarDays:pe,getMarker:de,handleScroll:ae,handleSwipe:D,handleArrow:ue,selectDate:zt,updateMonthYear:Kt,presetDate:te,selectCurrentDate:_e,updateTime:(G,se=!0,be=!1)=>{P(G,se,be,Ee)},assignMonthAndYear:j,setStartTime:K}},tI={key:0},nI=r.defineComponent({__name:"DatePicker",props:{...ur},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:u,disabledTimesConfig:d,today:f,validateTime:p,getCalendarDays:m,getMarker:v,handleArrow:y,handleScroll:w,handleSwipe:b,selectDate:E,updateMonthYear:_,presetDate:g,selectCurrentDate:x,updateTime:C,assignMonthAndYear:P,setStartTime:O}=eI(o,a,oe,j),A=r.useSlots(),{setHoverDate:L,getDayClassData:U,clearHoverDate:z}=bI(c,o),{defaultedMultiCalendars:R}=Et(o),I=r.ref([]),B=r.ref([]),M=r.ref(null),$=In(A,"calendar"),K=In(A,"monthYear"),V=In(A,"timePicker"),Z=ae=>{o.shadow||a("mount",ae)};r.watch(i,()=>{o.shadow||setTimeout(()=>{a("recalculate-position")},0)},{deep:!0}),r.watch(R,(ae,ue)=>{ae.count-ue.count>0&&P()},{deep:!0});const q=r.computed(()=>ae=>m(s.value(ae),l.value(ae)).map(ue=>({...ue,days:ue.days.map(D=>(D.marker=v(D),D.classData=U(D),D))})));function oe(ae){var ue;ae||ae===0?(ue=B.value[ae])==null||ue.triggerTransition(s.value(ae),l.value(ae)):B.value.forEach((D,de)=>D.triggerTransition(s.value(de),l.value(de)))}function j(){a("update-flow-step")}const W=(ae,ue=!1)=>{E(ae,ue),o.spaceConfirm&&a("select-date")},Y=(ae,ue,D=0)=>{var de;(de=I.value[D])==null||de.toggleMonthPicker(ae,ue)},H=(ae,ue,D=0)=>{var de;(de=I.value[D])==null||de.toggleYearPicker(ae,ue)},T=(ae,ue,D)=>{var de;(de=M.value)==null||de.toggleTimePicker(ae,ue,D)},J=(ae,ue)=>{var D;if(!o.range){const de=c.value?c.value:f,fe=ue?new Date(ue):de,ce=ae?ir(fe,{weekStartsOn:1}):wy(fe,{weekStartsOn:1});E({value:ce,current:Ke(fe)===s.value(0),text:"",classData:{}}),(D=document.getElementById(bf(ce)))==null||D.focus()}},le=ae=>{var ue;(ue=I.value[0])==null||ue.handleMonthYearChange(ae,!0)},Oe=ae=>{_(0,{month:s.value(0),year:l.value(0)+(ae?1:-1),fromNav:!0})},ee=(ae,ue)=>{ae===ln.time&&a(`time-picker-${ue?"open":"close"}`),a("overlay-toggle",{open:ue,overlay:ae})},Te=ae=>{a("overlay-toggle",{open:!1,overlay:ae}),a("focus-menu")};return t({clearHoverDate:z,presetDate:g,selectCurrentDate:x,toggleMonthPicker:Y,toggleYearPicker:H,toggleTimePicker:T,handleArrow:y,updateMonthYear:_,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:u,updateTime:C,updateMonthYear:_,selectDate:E,presetDate:g}),changeMonth:le,changeYear:Oe,selectWeekDate:J,setStartTime:O}),(ae,ue)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(eu,{"multi-calendars":r.unref(R).count,collapse:ae.collapse,"is-mobile":ae.isMobile},{default:r.withCtx(({instance:D,index:de})=>[ae.disableMonthYearSelect?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(qA,r.mergeProps({key:0,ref:fe=>{fe&&(I.value[de]=fe)},months:r.unref(By)(ae.formatLocale,ae.locale,ae.monthNameFormat),years:r.unref(Wp)(ae.yearRange,ae.locale,ae.reverseYears),month:r.unref(s)(D),year:r.unref(l)(D),instance:D},ae.$props,{onMount:ue[0]||(ue[0]=fe=>Z(r.unref(ao).header)),onResetFlow:ue[1]||(ue[1]=fe=>ae.$emit("reset-flow")),onUpdateMonthYear:fe=>r.unref(_)(D,fe),onOverlayClosed:Te,onOverlayOpened:ue[2]||(ue[2]=fe=>ae.$emit("overlay-toggle",{open:!0,overlay:fe}))}),r.createSlots({_:2},[r.renderList(r.unref(K),(fe,ce)=>({name:fe,fn:r.withCtx(Ae=>[r.renderSlot(ae.$slots,fe,r.normalizeProps(r.guardReactiveProps(Ae)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),r.createVNode(ZA,r.mergeProps({ref:fe=>{fe&&(B.value[de]=fe)},"mapped-dates":q.value(D),month:r.unref(s)(D),year:r.unref(l)(D),instance:D},ae.$props,{onSelectDate:fe=>r.unref(E)(fe,D!==1),onHandleSpace:fe=>W(fe,D!==1),onSetHoverDate:ue[3]||(ue[3]=fe=>r.unref(L)(fe)),onHandleScroll:fe=>r.unref(w)(fe,D),onHandleSwipe:fe=>r.unref(b)(fe,D),onMount:ue[4]||(ue[4]=fe=>Z(r.unref(ao).calendar)),onResetFlow:ue[5]||(ue[5]=fe=>ae.$emit("reset-flow")),onTooltipOpen:ue[6]||(ue[6]=fe=>ae.$emit("tooltip-open",fe)),onTooltipClose:ue[7]||(ue[7]=fe=>ae.$emit("tooltip-close",fe))}),r.createSlots({_:2},[r.renderList(r.unref($),(fe,ce)=>({name:fe,fn:r.withCtx(Ae=>[r.renderSlot(ae.$slots,fe,r.normalizeProps(r.guardReactiveProps({...Ae})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),ae.enableTimePicker?(r.openBlock(),r.createElementBlock("div",tI,[ae.$slots["time-picker"]?r.renderSlot(ae.$slots,"time-picker",r.normalizeProps(r.mergeProps({key:0},{time:r.unref(u),updateTime:r.unref(C)}))):(r.openBlock(),r.createBlock(Qy,r.mergeProps({key:1,ref_key:"timePickerRef",ref:M},ae.$props,{hours:r.unref(u).hours,minutes:r.unref(u).minutes,seconds:r.unref(u).seconds,"internal-model-value":ae.internalModelValue,"disabled-times-config":r.unref(d),"validate-time":r.unref(p),onMount:ue[8]||(ue[8]=D=>Z(r.unref(ao).timePicker)),"onUpdate:hours":ue[9]||(ue[9]=D=>r.unref(C)(D)),"onUpdate:minutes":ue[10]||(ue[10]=D=>r.unref(C)(D,!1)),"onUpdate:seconds":ue[11]||(ue[11]=D=>r.unref(C)(D,!1,!0)),onResetFlow:ue[12]||(ue[12]=D=>ae.$emit("reset-flow")),onOverlayClosed:ue[13]||(ue[13]=D=>ee(D,!1)),onOverlayOpened:ue[14]||(ue[14]=D=>ee(D,!0)),onAmPmChange:ue[15]||(ue[15]=D=>ae.$emit("am-pm-change",D))}),r.createSlots({_:2},[r.renderList(r.unref(V),(D,de)=>({name:D,fn:r.withCtx(fe=>[r.renderSlot(ae.$slots,D,r.normalizeProps(r.guardReactiveProps(fe)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):r.createCommentVNode("",!0)],64))}}),rI=(e,t)=>{const n=r.ref(),{defaultedMultiCalendars:a,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:u}=Et(e),{modelValue:d,year:f,month:p,calendars:m}=Fs(e,t),{isDisabled:v}=Ba(e),{selectYear:y,groupedYears:w,showYearPicker:b,isDisabled:E,toggleYearPicker:_,handleYearSelect:g,handleYear:x}=Jy({modelValue:d,multiCalendars:a,range:s,highlight:i,calendars:m,propDates:l,month:p,year:f,filters:c,props:e,emit:t}),C=(B,M)=>[B,M].map($=>Tr($,"MMMM",{locale:e.formatLocale})).join("-"),P=r.computed(()=>B=>d.value?Array.isArray(d.value)?d.value.some(M=>Uv(B,M)):Uv(d.value,B):!1),O=B=>{if(s.value.enabled){if(Array.isArray(d.value)){const M=Xe(B,d.value[0])||Xe(B,d.value[1]);return ks(d.value,n.value,B)&&!M}return!1}return!1},A=(B,M)=>B.quarter===$v(M)&&B.year===Fe(M),L=B=>typeof i.value=="function"?i.value({quarter:$v(B),year:Fe(B)}):!!i.value.quarters.find(M=>A(M,B)),U=r.computed(()=>B=>{const M=ht(new Date,{year:f.value(B)});return uT({start:bs(M),end:by(M)}).map($=>{const K=Za($),V=zv($),Z=v($),q=O(K),oe=L(K);return{text:C(K,V),value:K,active:P.value(K),highlighted:oe,disabled:Z,isBetween:q}})}),z=B=>{Kp(B,d,u.value.limit),t("auto-apply",!0)},R=B=>{d.value=Xp(d,B,t),tu(d.value,t,e.autoApply,e.modelAuto)},I=B=>{d.value=B,t("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:a,groupedYears:w,year:f,isDisabled:E,quarters:U,showYearPicker:b,modelValue:d,setHoverDate:B=>{n.value=B},selectYear:y,selectQuarter:(B,M,$)=>{if(!$)return m.value[M].month=Ke(zv(B)),u.value.enabled?z(B):s.value.enabled?R(B):I(B)},toggleYearPicker:_,handleYearSelect:g,handleYear:x}},aI={class:"dp--quarter-items"},oI=["data-test-id","disabled","onClick","onMouseover"],iI=r.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...ur},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=In(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:u,year:d,isDisabled:f,quarters:p,modelValue:m,showYearPicker:v,setHoverDate:y,selectQuarter:w,toggleYearPicker:b,handleYearSelect:E,handleYear:_}=rI(o,a);return t({getSidebarProps:()=>({modelValue:m,year:d,selectQuarter:w,handleYearSelect:E,handleYear:_})}),(g,x)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":r.unref(l).count,collapse:g.collapse,stretch:"","is-mobile":g.isMobile},{default:r.withCtx(({instance:C})=>[r.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:r.normalizeStyle({minHeight:`${r.unref(c).modeHeight}px`})},[g.$slots["top-extra"]?r.renderSlot(g.$slots,"top-extra",{key:0,value:g.internalModelValue}):r.createCommentVNode("",!0),r.createElementVNode("div",null,[r.createVNode(Gy,r.mergeProps(g.$props,{items:r.unref(u)(C),instance:C,"show-year-picker":r.unref(v)[C],year:r.unref(d)(C),"is-disabled":P=>r.unref(f)(C,P),onHandleYear:P=>r.unref(_)(C,P),onYearSelect:P=>r.unref(E)(P,C),onToggleYearPicker:P=>r.unref(b)(C,P?.flow,P?.show)}),r.createSlots({_:2},[r.renderList(r.unref(s),(P,O)=>({name:P,fn:r.withCtx(A=>[r.renderSlot(g.$slots,P,r.normalizeProps(r.guardReactiveProps(A)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),r.createElementVNode("div",aI,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p)(C),(P,O)=>(r.openBlock(),r.createElementBlock("div",{key:O},[r.createElementVNode("button",{type:"button",class:r.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":P.active,"dp--qr-btn-between":P.isBetween,"dp--qr-btn-disabled":P.disabled,"dp--highlighted":P.highlighted}]),"data-test-id":P.value,disabled:P.disabled,onClick:A=>r.unref(w)(P.value,C,P.disabled),onMouseover:A=>r.unref(y)(P.value)},[g.$slots.quarter?r.renderSlot(g.$slots,"quarter",{key:0,value:P.value,text:P.text}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(P.text),1)],64))],42,oI)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),eb=(e,t)=>{const n=r.ref(0);r.onMounted(()=>{a(),window.addEventListener("resize",a,{passive:!0})}),r.onUnmounted(()=>{window.removeEventListener("resize",a)});const a=()=>{n.value=window.document.documentElement.clientWidth};return{isMobile:r.computed(()=>n.value<=e.value.mobileBreakpoint&&!t?!0:void 0)}},sI=["id","tabindex","role","aria-label"],lI={key:0,class:"dp--menu-load-container"},cI={key:1,class:"dp--menu-header"},uI=["data-dp-mobile"],dI={key:0,class:"dp__sidebar_left"},fI=["data-dp-mobile"],pI=["data-test-id","data-dp-mobile","onClick","onKeydown"],mI={key:2,class:"dp__sidebar_right"},hI={key:3,class:"dp__action_extra"},e0=r.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Zc,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.ref(null),s=r.computed(()=>{const{openOnTop:X,...re}=o;return{...re,isMobile:w.value,flowStep:R.value,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:u}=Yy(),d=r.useSlots(),{defaultedTextInput:f,defaultedInline:p,defaultedConfig:m,defaultedUI:v,handleEventPropagation:y}=Et(o),{isMobile:w}=eb(m,o.shadow),b=r.ref(null),E=r.ref(0),_=r.ref(null),g=r.ref(!1),x=r.ref(null),C=r.ref(!1),P=X=>{C.value=!0,m.value.allowPreventDefault&&X.preventDefault(),ma(X,m.value,!0)};r.onMounted(()=>{if(!o.shadow){g.value=!0,O(),window.addEventListener("resize",O);const X=jt(i);X&&!f.value.enabled&&!p.value.enabled&&(l(!0),Z()),X&&(X.addEventListener("pointerdown",P),X.addEventListener("mousedown",P))}document.addEventListener("mousedown",xe)}),r.onUnmounted(()=>{window.removeEventListener("resize",O),document.removeEventListener("mousedown",xe);const X=jt(i);X&&(X.removeEventListener("pointerdown",P),X.removeEventListener("mousedown",P))});const O=()=>{const X=jt(_);X&&(E.value=X.getBoundingClientRect().width)},{arrowRight:A,arrowLeft:L,arrowDown:U,arrowUp:z}=Oa(),{flowStep:R,updateFlowStep:I,childMount:B,resetFlow:M,handleFlow:$}=wI(o,a,x),K=r.computed(()=>o.monthPicker?CA:o.yearPicker?EA:o.timePicker?VA:o.quarterPicker?iI:nI),V=r.computed(()=>{var X;if(m.value.arrowLeft)return m.value.arrowLeft;const re=(X=i.value)==null?void 0:X.getBoundingClientRect(),ye=o.getInputRect();return ye?.width<E?.value&&ye?.left<=(re?.left??0)?`${ye?.width/2}px`:ye?.right>=(re?.right??0)&&ye?.width<E?.value?`${E?.value-ye?.width/2}px`:"50%"}),Z=()=>{const X=jt(i);X&&X.focus({preventScroll:!0})},q=r.computed(()=>{var X;return((X=x.value)==null?void 0:X.getSidebarProps())||{}}),oe=()=>{o.openOnTop&&a("recalculate-position")},j=In(d,"action"),W=r.computed(()=>o.monthPicker||o.yearPicker?In(d,"monthYear"):o.timePicker?In(d,"timePicker"):In(d,"shared")),Y=r.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),H=r.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),T=r.computed(()=>({dp__menu:!0,dp__menu_index:!p.value.enabled,dp__relative:p.value.enabled,...v.value.menu??{}})),J=X=>{ma(X,m.value,!0)},le=X=>{o.escClose&&(a("close-picker"),y(X))},Oe=X=>{if(o.arrowNavigation){if(X===un.up)return z();if(X===un.down)return U();if(X===un.left)return L();if(X===un.right)return A()}else X===un.left||X===un.up?D("handleArrow",un.left,0,X===un.up):D("handleArrow",un.right,0,X===un.down)},ee=X=>{c(X.shiftKey),!o.disableMonthYearSelect&&X.code===_t.tab&&X.target.classList.contains("dp__menu")&&u.value.shiftKeyInMenu&&(X.preventDefault(),ma(X,m.value,!0),a("close-picker"))},Te=()=>{Z(),a("time-picker-close")},ae=X=>{var re,ye,Ze;(re=x.value)==null||re.toggleTimePicker(!1,!1),(ye=x.value)==null||ye.toggleMonthPicker(!1,!1,X),(Ze=x.value)==null||Ze.toggleYearPicker(!1,!1,X)},ue=(X,re=0)=>{var ye,Ze,ct;return X==="month"?(ye=x.value)==null?void 0:ye.toggleMonthPicker(!1,!0,re):X==="year"?(Ze=x.value)==null?void 0:Ze.toggleYearPicker(!1,!0,re):X==="time"?(ct=x.value)==null?void 0:ct.toggleTimePicker(!0,!1):ae(re)},D=(X,...re)=>{var ye,Ze;(ye=x.value)!=null&&ye[X]&&((Ze=x.value)==null||Ze[X](...re))},de=()=>{D("selectCurrentDate")},fe=(X,re)=>{D("presetDate",r.toValue(X),re)},ce=()=>{D("clearHoverDate")},Ae=(X,re)=>{D("updateMonthYear",X,re)},pe=(X,re)=>{X.preventDefault(),Oe(re)},Ie=X=>{var re,ye,Ze;if(ee(X),X.key===_t.home||X.key===_t.end)return D("selectWeekDate",X.key===_t.home,X.target.getAttribute("id"));switch((X.key===_t.pageUp||X.key===_t.pageDown)&&(X.shiftKey?(D("changeYear",X.key===_t.pageUp),(re=gf(i.value,"overlay-year"))==null||re.focus()):(D("changeMonth",X.key===_t.pageUp),(ye=gf(i.value,X.key===_t.pageUp?"action-prev":"action-next"))==null||ye.focus()),X.target.getAttribute("id")&&((Ze=i.value)==null||Ze.focus({preventScroll:!0}))),X.key){case _t.esc:return le(X);case _t.arrowLeft:return pe(X,un.left);case _t.arrowRight:return pe(X,un.right);case _t.arrowUp:return pe(X,un.up);case _t.arrowDown:return pe(X,un.down);default:return}},xe=X=>{var re;p.value.enabled&&!p.value.input&&!((re=i.value)!=null&&re.contains(X.target))&&C.value&&(C.value=!1,a("menu-blur"))};return t({updateMonthYear:Ae,switchView:ue,handleFlow:$,onValueCleared:()=>{var X,re;(re=(X=x.value)==null?void 0:X.setStartTime)==null||re.call(X)}}),(X,re)=>{var ye,Ze,ct;return r.openBlock(),r.createElementBlock("div",{id:X.uid?`dp-menu-${X.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:r.unref(p).enabled?void 0:"0",role:r.unref(p).enabled?void 0:"dialog","aria-label":(ye=X.ariaLabels)==null?void 0:ye.menu,class:r.normalizeClass(T.value),style:r.normalizeStyle({"--dp-arrow-left":V.value}),onMouseleave:ce,onClick:J,onKeydown:Ie},[(X.disabled||X.readonly)&&r.unref(p).enabled||X.loading?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(H.value)},[X.loading?(r.openBlock(),r.createElementBlock("div",lI,re[19]||(re[19]=[r.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0),X.$slots["menu-header"]?(r.openBlock(),r.createElementBlock("div",cI,[r.renderSlot(X.$slots,"menu-header")])):r.createCommentVNode("",!0),!r.unref(p).enabled&&!X.teleportCenter?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(Y.value)},null,2)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"innerMenuRef",ref:_,class:r.normalizeClass({dp__menu_content_wrapper:((Ze=X.presetDates)==null?void 0:Ze.length)||!!X.$slots["left-sidebar"]||!!X.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((ct=X.presetDates)==null?void 0:ct.length)||!!X.$slots["left-sidebar"]||!!X.$slots["right-sidebar"])}),"data-dp-mobile":r.unref(w),style:r.normalizeStyle({"--dp-menu-width":`${E.value}px`})},[X.$slots["left-sidebar"]?(r.openBlock(),r.createElementBlock("div",dI,[r.renderSlot(X.$slots,"left-sidebar",r.normalizeProps(r.guardReactiveProps(q.value)))])):r.createCommentVNode("",!0),X.presetDates.length?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":r.unref(w)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(X.presetDates,(Se,ut)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:ut},[Se.slot?r.renderSlot(X.$slots,Se.slot,{key:0,presetDate:fe,label:Se.label,value:Se.value}):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",style:r.normalizeStyle(Se.style||{}),class:r.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":Se.testId??void 0,"data-dp-mobile":r.unref(w),onClick:r.withModifiers($t=>fe(Se.value,Se.noTz),["prevent"]),onKeydown:$t=>r.unref(mn)($t,()=>fe(Se.value,Se.noTz),!0)},r.toDisplayString(Se.label),47,pI))],64))),128))],10,fI)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:b,class:"dp__instance_calendar",role:"document"},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(K.value),r.mergeProps({ref_key:"dynCmpRef",ref:x},s.value,{"flow-step":r.unref(R),onMount:r.unref(B),onUpdateFlowStep:r.unref(I),onResetFlow:r.unref(M),onFocusMenu:Z,onSelectDate:re[0]||(re[0]=Se=>X.$emit("select-date")),onDateUpdate:re[1]||(re[1]=Se=>X.$emit("date-update",Se)),onTooltipOpen:re[2]||(re[2]=Se=>X.$emit("tooltip-open",Se)),onTooltipClose:re[3]||(re[3]=Se=>X.$emit("tooltip-close",Se)),onAutoApply:re[4]||(re[4]=Se=>X.$emit("auto-apply",Se)),onRangeStart:re[5]||(re[5]=Se=>X.$emit("range-start",Se)),onRangeEnd:re[6]||(re[6]=Se=>X.$emit("range-end",Se)),onInvalidFixedRange:re[7]||(re[7]=Se=>X.$emit("invalid-fixed-range",Se)),onTimeUpdate:re[8]||(re[8]=Se=>X.$emit("time-update")),onAmPmChange:re[9]||(re[9]=Se=>X.$emit("am-pm-change",Se)),onTimePickerOpen:re[10]||(re[10]=Se=>X.$emit("time-picker-open",Se)),onTimePickerClose:Te,onRecalculatePosition:oe,onUpdateMonthYear:re[11]||(re[11]=Se=>X.$emit("update-month-year",Se)),onAutoApplyInvalid:re[12]||(re[12]=Se=>X.$emit("auto-apply-invalid",Se)),onInvalidDate:re[13]||(re[13]=Se=>X.$emit("invalid-date",Se)),onOverlayToggle:re[14]||(re[14]=Se=>X.$emit("overlay-toggle",Se)),"onUpdate:internalModelValue":re[15]||(re[15]=Se=>X.$emit("update:internal-model-value",Se))}),r.createSlots({_:2},[r.renderList(W.value,(Se,ut)=>({name:Se,fn:r.withCtx($t=>[r.renderSlot(X.$slots,Se,r.normalizeProps(r.guardReactiveProps({...$t})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),X.$slots["right-sidebar"]?(r.openBlock(),r.createElementBlock("div",mI,[r.renderSlot(X.$slots,"right-sidebar",r.normalizeProps(r.guardReactiveProps(q.value)))])):r.createCommentVNode("",!0),X.$slots["action-extra"]?(r.openBlock(),r.createElementBlock("div",hI,[X.$slots["action-extra"]?r.renderSlot(X.$slots,"action-extra",{key:0,selectCurrentDate:de}):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],14,uI),!X.autoApply||r.unref(m).keepActionRow?(r.openBlock(),r.createBlock(hA,r.mergeProps({key:3,"menu-mount":g.value},s.value,{"calendar-width":E.value,onClosePicker:re[16]||(re[16]=Se=>X.$emit("close-picker")),onSelectDate:re[17]||(re[17]=Se=>X.$emit("select-date")),onInvalidSelect:re[18]||(re[18]=Se=>X.$emit("invalid-select")),onSelectNow:de}),r.createSlots({_:2},[r.renderList(r.unref(j),(Se,ut)=>({name:Se,fn:r.withCtx($t=>[r.renderSlot(X.$slots,Se,r.normalizeProps(r.guardReactiveProps({...$t})))])}))]),1040,["menu-mount","calendar-width"])):r.createCommentVNode("",!0)],46,sI)}}});var Vo=(e=>(e.center="center",e.left="left",e.right="right",e))(Vo||{});const vI=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:a,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=Et(s),u=r.ref({}),d=r.ref(!1),f=r.ref({top:"0",left:"0"}),p=r.ref(!1),m=r.toRef(s,"teleportCenter");r.watch(m,()=>{f.value=JSON.parse(JSON.stringify({})),x()});const v=M=>{if(s.teleport){const $=M.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}}return{top:0,left:0}},y=(M,$)=>{f.value.left=`${M+$-u.value.width}px`},w=M=>{f.value.left=`${M}px`},b=(M,$)=>{s.position===Vo.left&&w(M),s.position===Vo.right&&y(M,$),s.position===Vo.center&&(f.value.left=`${M+$/2-u.value.width/2}px`)},E=M=>{const{width:$,height:K}=M.getBoundingClientRect(),{top:V,left:Z}=v(M);return{top:+V,left:+Z,width:$,height:K}},_=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},g=()=>{const M=jt(n);f.value=s.altPosition(M)},x=(M=!0)=>{var $;if(!o.value.enabled){if(m.value)return _();if(s.altPosition!==null)return g();if(M){const K=s.teleport?($=t.value)==null?void 0:$.$el:e.value;K&&(u.value=K.getBoundingClientRect()),i("recalculate-position")}return z()}},C=({inputEl:M,left:$,width:K})=>{window.screen.width>768&&!d.value&&b($,K),A(M)},P=M=>{const{top:$,left:K,height:V,width:Z}=E(M);f.value.top=`${V+$+ +s.offset}px`,p.value=!1,d.value||(f.value.left=`${K+Z/2-u.value.width/2}px`),C({inputEl:M,left:K,width:Z})},O=M=>{const{top:$,left:K,width:V}=E(M);f.value.top=`${$-+s.offset-u.value.height}px`,p.value=!0,C({inputEl:M,left:K,width:V})},A=M=>{if(s.autoPosition){const{left:$,width:K}=E(M),{left:V,right:Z}=u.value;if(!d.value){if(Math.abs(V)!==Math.abs(Z)){if(V<=0)return d.value=!0,w($);if(Z>=document.documentElement.clientWidth)return d.value=!0,y($,K)}return b($,K)}}},L=()=>{const M=jt(n);if(M){if(s.autoPosition===Yn.top)return Yn.top;if(s.autoPosition===Yn.bottom)return Yn.bottom;const{height:$}=u.value,{top:K,height:V}=M.getBoundingClientRect(),Z=window.innerHeight-K-V,q=K;return $<=Z?Yn.bottom:$>Z&&$<=q?Yn.top:Z>=q?Yn.bottom:Yn.top}return Yn.bottom},U=M=>L()===Yn.bottom?P(M):O(M),z=()=>{const M=jt(n);if(M)return s.autoPosition?U(M):P(M)},R=function(M){if(M){const $=M.scrollHeight>M.clientHeight,K=window.getComputedStyle(M).overflowY.indexOf("hidden")!==-1;return $&&!K}return!0},I=function(M){return!M||M===document.body||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:R(M)?M:I(M.assignedSlot&&c.value.shadowDom?M.assignedSlot.parentNode:M.parentNode)},B=M=>{if(M)switch(s.position){case Vo.left:return{left:0,transform:"translateX(0)"};case Vo.right:return{left:`${M.width}px`,transform:"translateX(-100%)"};default:return{left:`${M.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:d,setMenuPosition:x,getScrollableParent:I,shadowRender:(M,$,K)=>{var V,Z,q;const oe=document.createElement("div"),j=(V=jt(n))==null?void 0:V.getBoundingClientRect();oe.setAttribute("id","dp--temp-container");const W=(Z=a.value)!=null&&Z.clientWidth?a.value:document.body;W.append(oe);const Y=B(j),H=c.value.shadowDom?Object.keys(l).filter(J=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(J)):Object.keys(l),T=r.h($,{...K,shadow:!0,style:{opacity:0,position:"absolute",...Y}},Object.fromEntries(H.map(J=>[J,l[J]])));M!=null&&(T.appContext=M.appContext),r.render(T,oe),u.value=(q=T.el)==null?void 0:q.getBoundingClientRect(),r.render(null,oe),W.removeChild(oe)}}},ua=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],gI=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],yI={all:()=>ua,monthYear:()=>ua.filter(e=>e.use.includes("month-year")),input:()=>gI,timePicker:()=>ua.filter(e=>e.use.includes("time")),action:()=>ua.filter(e=>e.use.includes("action")),calendar:()=>ua.filter(e=>e.use.includes("calendar")),menu:()=>ua.filter(e=>e.use.includes("menu")),shared:()=>ua.filter(e=>e.use.includes("shared")),yearMode:()=>ua.filter(e=>e.use.includes("year-mode"))},In=(e,t,n)=>{const a=[];return yI[t]().forEach(o=>{e[o.name]&&a.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&a.push(o.slot)}),a},Vs=e=>{const t=r.computed(()=>a=>e.value?a?e.value.open:e.value.close:""),n=r.computed(()=>a=>e.value?a?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Fs=(e,t,n)=>{const{defaultedRange:a,defaultedTz:o}=Et(e),i=me(Cn(me(),o.value.timezone)),s=r.ref([{month:Ke(i),year:Fe(i)}]),l=p=>{const m={hours:Kr(i),minutes:ka(i),seconds:0};return a.value.enabled?[m[p],m[p]]:m[p]},c=r.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});r.watch(a,(p,m)=>{p.enabled!==m.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const u=r.computed({get:()=>e.internalModelValue,set:p=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",p)}}),d=r.computed(()=>p=>s.value[p]?s.value[p].month:0),f=r.computed(()=>p=>s.value[p]?s.value[p].year:0);return r.watch(u,(p,m)=>{n&&JSON.stringify(p??{})!==JSON.stringify(m??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:u,month:d,year:f,today:i}},bI=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:a,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=Et(t),{isDisabled:u}=Ba(t),d=r.ref(null),f=r.ref(Cn(new Date,s.value.timezone)),p=T=>{!T.current&&t.hideOffsetDates||(d.value=T.value)},m=()=>{d.value=null},v=T=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&d.value?T?Lt(d.value,e.value[0]):Mt(d.value,e.value[0]):!0,y=(T,J)=>{const le=()=>e.value?J?e.value[0]||null:e.value[1]:null,Oe=e.value&&Array.isArray(e.value)?le():null;return Xe(me(T.value),Oe)},w=T=>{const J=Array.isArray(e.value)?e.value[0]:null;return T?!Mt(d.value??null,J):!0},b=(T,J=!0)=>(c.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!T.current?!1:Xe(me(T.value),e.value[J?0:1]):c.value.enabled?y(T,J)&&w(J)||Xe(T.value,Array.isArray(e.value)?e.value[0]:null)&&v(J):!1,E=(T,J)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const le=Xe(T.value,d.value);return J?Lt(e.value[0],T.value)&&le:Mt(e.value[0],T.value)&&le}return!1},_=T=>!e.value||t.hideOffsetDates&&!T.current?!1:c.value.enabled?t.modelAuto&&Array.isArray(e.value)?Xe(T.value,e.value[0]?e.value[0]:f.value):!1:a.value.enabled&&Array.isArray(e.value)?e.value.some(J=>Xe(J,T.value)):Xe(T.value,e.value?e.value:f.value),g=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){if(t.hideOffsetDates&&!T.current)return!1;const J=Rn(d.value,+c.value.autoRange),le=Vr(me(d.value),t.weekStart);return t.weekPicker?Xe(le[1],me(T.value)):Xe(J,me(T.value))}return!1}return!1},x=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){const J=Rn(d.value,+c.value.autoRange);if(t.hideOffsetDates&&!T.current)return!1;const le=Vr(me(d.value),t.weekStart);return t.weekPicker?Lt(T.value,le[0])&&Mt(T.value,le[1]):Lt(T.value,d.value)&&Mt(T.value,J)}return!1}return!1},C=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){if(t.hideOffsetDates&&!T.current)return!1;const J=Vr(me(d.value),t.weekStart);return t.weekPicker?Xe(J[0],T.value):Xe(d.value,T.value)}return!1}return!1},P=T=>ks(e.value,d.value,T.value),O=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,A=()=>t.modelAuto?Ly(t.internalModelValue):!0,L=T=>{if(t.weekPicker)return!1;const J=c.value.enabled?!b(T)&&!b(T,!1):!0;return!u(T.value)&&!_(T)&&!(!T.current&&t.hideOffsetDates)&&J},U=T=>c.value.enabled?t.modelAuto?O()&&_(T):!1:_(T),z=T=>i.value?$P(T.value,l.value.highlight):!1,R=T=>{const J=u(T.value);return J&&(typeof i.value=="function"?!i.value(T.value,J):!i.value.options.highlightDisabled)},I=T=>{var J;return typeof i.value=="function"?i.value(T.value):(J=i.value.weekdays)==null?void 0:J.includes(T.value.getDay())},B=T=>(c.value.enabled||t.weekPicker)&&(!(n.value.count>0)||T.current)&&A()&&!(!T.current&&t.hideOffsetDates)&&!_(T)?P(T):!1,M=T=>{if(Array.isArray(e.value)&&e.value.length===1){const{before:J,after:le}=Xv(+c.value.maxRange,e.value[0]);return ui(T.value,J)||mo(T.value,le)}return!1},$=T=>{if(Array.isArray(e.value)&&e.value.length===1){const{before:J,after:le}=Xv(+c.value.minRange,e.value[0]);return ks([J,le],e.value[0],T.value)}return!1},K=T=>c.value.enabled&&(c.value.maxRange||c.value.minRange)?c.value.maxRange&&c.value.minRange?M(T)||$(T):c.value.maxRange?M(T):$(T):!1,V=T=>{const{isRangeStart:J,isRangeEnd:le}=j(T),Oe=c.value.enabled?J||le:!1;return{dp__cell_offset:!T.current,dp__pointer:!t.disabled&&!(!T.current&&t.hideOffsetDates)&&!u(T.value)&&!K(T),dp__cell_disabled:u(T.value)||K(T),dp__cell_highlight:!R(T)&&(z(T)||I(T))&&!U(T)&&!Oe&&!C(T)&&!(B(T)&&t.weekPicker)&&!le,dp__cell_highlight_active:!R(T)&&(z(T)||I(T))&&U(T),dp__today:!t.noToday&&Xe(T.value,f.value)&&T.current,"dp--past":Mt(T.value,f.value),"dp--future":Lt(T.value,f.value)}},Z=T=>({dp__active_date:U(T),dp__date_hover:L(T)}),q=T=>{if(e.value&&!Array.isArray(e.value)){const J=Vr(e.value,t.weekStart);return{...Y(T),dp__range_start:Xe(J[0],T.value),dp__range_end:Xe(J[1],T.value),dp__range_between_week:Lt(T.value,J[0])&&Mt(T.value,J[1])}}return{...Y(T)}},oe=T=>{if(e.value&&Array.isArray(e.value)){const J=Vr(e.value[0],t.weekStart),le=e.value[1]?Vr(e.value[1],t.weekStart):[];return{...Y(T),dp__range_start:Xe(J[0],T.value)||Xe(le[0],T.value),dp__range_end:Xe(J[1],T.value)||Xe(le[1],T.value),dp__range_between_week:Lt(T.value,J[0])&&Mt(T.value,J[1])||Lt(T.value,le[0])&&Mt(T.value,le[1]),dp__range_between:Lt(T.value,J[1])&&Mt(T.value,le[0])}}return{...Y(T)}},j=T=>{const J=n.value.count>0?T.current&&b(T)&&A():b(T)&&A(),le=n.value.count>0?T.current&&b(T,!1)&&A():b(T,!1)&&A();return{isRangeStart:J,isRangeEnd:le}},W=T=>{const{isRangeStart:J,isRangeEnd:le}=j(T);return{dp__range_start:J,dp__range_end:le,dp__range_between:B(T),dp__date_hover:Xe(T.value,d.value)&&!J&&!le&&!t.weekPicker,dp__date_hover_start:E(T,!0),dp__date_hover_end:E(T,!1)}},Y=T=>({...W(T),dp__cell_auto_range:x(T),dp__cell_auto_range_start:C(T),dp__cell_auto_range_end:g(T)}),H=T=>c.value.enabled?c.value.autoRange?Y(T):t.modelAuto?{...Z(T),...W(T)}:t.weekPicker?oe(T):W(T):t.weekPicker?q(T):Z(T);return{setHoverDate:p,clearHoverDate:m,getDayClassData:T=>t.hideOffsetDates&&!T.current?{}:{...V(T),...H(T),[t.dayClass?t.dayClass(T.value,t.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},Ba=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:a,defaultedMultiDates:o}=Et(e),i=I=>a.value.disabledDates?typeof a.value.disabledDates=="function"?a.value.disabledDates(me(I)):!!fc(I,a.value.disabledDates):!1,s=I=>a.value.maxDate?e.yearPicker?Fe(I)>Fe(a.value.maxDate):Lt(I,a.value.maxDate):!1,l=I=>a.value.minDate?e.yearPicker?Fe(I)<Fe(a.value.minDate):Mt(I,a.value.minDate):!1,c=I=>{const B=s(I),M=l(I),$=i(I),K=t.value.months.map(j=>+j).includes(Ke(I)),V=e.disabledWeekDays.length?e.disabledWeekDays.some(j=>+j===xT(I)):!1,Z=m(I),q=Fe(I),oe=q<+e.yearRange[0]||q>+e.yearRange[1];return!(B||M||$||K||oe||V||Z)},u=(I,B)=>Mt(...pa(a.value.minDate,I,B))||Xe(...pa(a.value.minDate,I,B)),d=(I,B)=>Lt(...pa(a.value.maxDate,I,B))||Xe(...pa(a.value.maxDate,I,B)),f=(I,B,M)=>{let $=!1;return a.value.maxDate&&M&&d(I,B)&&($=!0),a.value.minDate&&!M&&u(I,B)&&($=!0),$},p=(I,B,M,$)=>{let K=!1;return $&&(a.value.minDate||a.value.maxDate)?a.value.minDate&&a.value.maxDate?K=f(I,B,M):(a.value.minDate&&u(I,B)||a.value.maxDate&&d(I,B))&&(K=!0):K=!0,K},m=I=>Array.isArray(a.value.allowedDates)&&!a.value.allowedDates.length?!0:a.value.allowedDates?!fc(I,a.value.allowedDates,$y(e.monthPicker,e.yearPicker)):!1,v=I=>!c(I),y=I=>n.value.noDisabledRange?!yy({start:I[0],end:I[1]}).some(B=>v(B)):!0,w=I=>{if(I){const B=Fe(I);return B>=+e.yearRange[0]&&B<=e.yearRange[1]}return!0},b=(I,B)=>!!(Array.isArray(I)&&I[B]&&(n.value.maxRange||n.value.minRange)&&w(I[B])),E=(I,B,M=0)=>{if(b(B,M)&&w(I)){const $=hy(I,B[M]),K=jy(B[M],I),V=K.length===1?0:K.filter(q=>v(q)).length,Z=Math.abs($)-(n.value.minMaxRawRange?0:V);if(n.value.minRange&&n.value.maxRange)return Z>=+n.value.minRange&&Z<=+n.value.maxRange;if(n.value.minRange)return Z>=+n.value.minRange;if(n.value.maxRange)return Z<=+n.value.maxRange}return!0},_=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,g=I=>Array.isArray(I)?[I[0]?od(I[0]):null,I[1]?od(I[1]):null]:od(I),x=(I,B,M)=>I.find($=>+$.hours===Kr(B)&&$.minutes==="*"?!0:+$.minutes===ka(B)&&+$.hours===Kr(B))&&M,C=(I,B,M)=>{const[$,K]=I,[V,Z]=B;return!x($,V,M)&&!x(K,Z,M)&&M},P=(I,B)=>{const M=Array.isArray(B)?B:[B];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?C(e.disabledTimes,M,I):!M.some($=>x(e.disabledTimes,$,I)):I},O=(I,B)=>{const M=Array.isArray(B)?[oo(B[0]),B[1]?oo(B[1]):void 0]:oo(B),$=!e.disabledTimes(M);return I&&$},A=(I,B)=>e.disabledTimes?Array.isArray(e.disabledTimes)?P(B,I):O(B,I):B,L=I=>{let B=!0;if(!I||_())return!0;const M=!a.value.minDate&&!a.value.maxDate?g(I):I;return(e.maxTime||a.value.maxDate)&&(B=Kv(e.maxTime,a.value.maxDate,"max",qt(M),B)),(e.minTime||a.value.minDate)&&(B=Kv(e.minTime,a.value.minDate,"min",qt(M),B)),A(I,B)},U=I=>{if(!e.monthPicker)return!0;let B=!0;const M=me(Qn(I));if(a.value.minDate&&a.value.maxDate){const $=me(Qn(a.value.minDate)),K=me(Qn(a.value.maxDate));return Lt(M,$)&&Mt(M,K)||Xe(M,$)||Xe(M,K)}if(a.value.minDate){const $=me(Qn(a.value.minDate));B=Lt(M,$)||Xe(M,$)}if(a.value.maxDate){const $=me(Qn(a.value.maxDate));B=Mt(M,$)||Xe(M,$)}return B},z=r.computed(()=>I=>!e.enableTimePicker||e.ignoreTimeValidation?!0:L(I)),R=r.computed(()=>I=>e.monthPicker?Array.isArray(I)&&(n.value.enabled||o.value.enabled)?!I.filter(B=>!U(B)).length:U(I):!0);return{isDisabled:v,validateDate:c,validateMonthYearInRange:p,isDateRangeAllowed:y,checkMinMaxRange:E,isValidTime:L,isTimeValid:z,isMonthValid:R}},nu=()=>{const e=r.computed(()=>(a,o)=>a?.includes(o)),t=r.computed(()=>(a,o)=>a.count?a.solo?!0:o===0:!0),n=r.computed(()=>(a,o)=>a.count?a.solo?!0:o===a.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},wI=(e,t,n)=>{const a=r.ref(0),o=r.reactive({[ao.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ao.calendar]:!1,[ao.header]:!1}),i=r.computed(()=>e.monthPicker||e.timePicker),s=f=>{var p;if((p=e.flow)!=null&&p.length){if(!f&&i.value)return d();o[f]=!0,Object.keys(o).filter(m=>!o[m]).length||d()}},l=()=>{var f,p;(f=e.flow)!=null&&f.length&&a.value!==-1&&(a.value+=1,t("flow-step",a.value),d()),((p=e.flow)==null?void 0:p.length)===a.value&&r.nextTick().then(()=>c())},c=()=>{a.value=-1},u=(f,p,...m)=>{var v,y;e.flow[a.value]===f&&n.value&&((y=(v=n.value)[p])==null||y.call(v,...m))},d=(f=0)=>{f&&(a.value+=f),u(ln.month,"toggleMonthPicker",!0),u(ln.year,"toggleYearPicker",!0),u(ln.calendar,"toggleTimePicker",!1,!0),u(ln.time,"toggleTimePicker",!0,!0);const p=e.flow[a.value];(p===ln.hours||p===ln.minutes||p===ln.seconds)&&u(p,"toggleTimePicker",!0,!0,p)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:d,flowStep:a}},kI={key:1,class:"dp__input_wrap"},_I=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],SI={key:2,class:"dp--clear-btn"},CI=["aria-label"],xI=r.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Zc},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:t,emit:n}){const a=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:u,defaultedMultiDates:d,defaultedUI:f,getDefaultPattern:p,getDefaultStartTime:m}=Et(o),{checkMinMaxRange:v}=Ba(o),y=r.ref(),w=r.ref(null),b=r.ref(!1),E=r.ref(!1),_=r.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:b.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),g=()=>{a("set-input-date",null),o.clearable&&o.autoApply&&(a("set-empty-date"),y.value=null)},x=q=>{const oe=m();return VP(q,i.value.format??p(),oe??Hy({},o.enableSeconds),o.inputValue,E.value,o.formatLocale)},C=q=>{const{rangeSeparator:oe}=i.value,[j,W]=q.split(`${oe}`);if(j){const Y=x(j.trim()),H=W?x(W.trim()):void 0;if(mo(Y,H))return;const T=Y&&H?[Y,H]:[Y];v(H,T,0)&&(y.value=Y?T:null)}},P=()=>{E.value=!0},O=q=>{if(u.value.enabled)C(q);else if(d.value.enabled){const oe=q.split(";");y.value=oe.map(j=>x(j.trim())).filter(j=>j)}else y.value=x(q)},A=q=>{var oe;const j=typeof q=="string"?q:(oe=q.target)==null?void 0:oe.value;j!==""?(i.value.openMenu&&!o.isMenuOpen&&a("open"),O(j),a("set-input-date",y.value)):g(),E.value=!1,a("update:input-value",j),a("text-input",q,y.value)},L=q=>{i.value.enabled?(O(q.target.value),i.value.enterSubmit&&yf(y.value)&&o.inputValue!==""?(a("set-input-date",y.value,!0),y.value=null):i.value.enterSubmit&&o.inputValue===""&&(y.value=null,a("clear"))):R(q)},U=(q,oe)=>{i.value.enabled&&i.value.tabSubmit&&!oe&&O(q.target.value),i.value.tabSubmit&&yf(y.value)&&o.inputValue!==""?(a("set-input-date",y.value,!0,!0),y.value=null):i.value.tabSubmit&&o.inputValue===""&&(y.value=null,a("clear",!0))},z=()=>{b.value=!0,a("focus"),r.nextTick().then(()=>{var q;i.value.enabled&&i.value.selectOnFocus&&((q=w.value)==null||q.select())})},R=q=>{if(ma(q,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return a("open");if(i.value.openMenu==="toggle")return a("toggle")}else i.value.enabled||a("toggle")},I=()=>{a("real-blur"),b.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&a("blur"),o.autoApply&&i.value.enabled&&y.value&&!o.isMenuOpen&&(a("set-input-date",y.value),a("select-date"),y.value=null)},B=q=>{ma(q,c.value,!0),a("clear")},M=()=>{a("close")},$=q=>{if(q.key==="Tab"&&U(q),q.key==="Enter"&&L(q),q.key==="Escape"&&i.value.escClose&&M(),!i.value.enabled){if(q.code==="Tab")return;q.preventDefault()}},K=()=>{var q;(q=w.value)==null||q.focus({preventScroll:!0})},V=q=>{y.value=q},Z=q=>{q.key===_t.tab&&U(q,!0)};return t({focusInput:K,setParsedDate:V}),(q,oe)=>{var j,W,Y;return r.openBlock(),r.createElementBlock("div",{onClick:R},[q.$slots.trigger&&!q.$slots["dp-input"]&&!r.unref(l).enabled?r.renderSlot(q.$slots,"trigger",{key:0}):r.createCommentVNode("",!0),!q.$slots.trigger&&(!r.unref(l).enabled||r.unref(l).input)?(r.openBlock(),r.createElementBlock("div",kI,[q.$slots["dp-input"]&&!q.$slots.trigger&&(!r.unref(l).enabled||r.unref(l).enabled&&r.unref(l).input)?r.renderSlot(q.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:A,onEnter:L,onTab:U,onClear:B,onBlur:I,onKeypress:$,onPaste:P,onFocus:z,openMenu:()=>q.$emit("open"),closeMenu:()=>q.$emit("close"),toggleMenu:()=>q.$emit("toggle")}):r.createCommentVNode("",!0),q.$slots["dp-input"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("input",{key:1,id:q.uid?`dp-input-${q.uid}`:void 0,ref_key:"inputRef",ref:w,"data-test-id":"dp-input",name:q.name,class:r.normalizeClass(_.value),inputmode:r.unref(i).enabled?"text":"none",placeholder:q.placeholder,disabled:q.disabled,readonly:q.readonly,required:q.required,value:e.inputValue,autocomplete:q.autocomplete,"aria-label":(j=r.unref(s))==null?void 0:j.input,"aria-disabled":q.disabled||void 0,"aria-invalid":q.state===!1?!0:void 0,onInput:A,onBlur:I,onFocus:z,onKeypress:$,onKeydown:oe[0]||(oe[0]=H=>$(H)),onPaste:P},null,42,_I)),r.createElementVNode("div",{onClick:oe[3]||(oe[3]=H=>a("toggle"))},[q.$slots["input-icon"]&&!q.hideInputIcon?(r.openBlock(),r.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:oe[1]||(oe[1]=H=>a("toggle"))},[r.renderSlot(q.$slots,"input-icon")])):r.createCommentVNode("",!0),!q.$slots["input-icon"]&&!q.hideInputIcon&&!q.$slots["dp-input"]?(r.openBlock(),r.createBlock(r.unref(Ai),{key:1,"aria-label":(W=r.unref(s))==null?void 0:W.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:oe[2]||(oe[2]=H=>a("toggle"))},null,8,["aria-label"])):r.createCommentVNode("",!0)]),q.$slots["clear-icon"]&&(q.alwaysClearable||e.inputValue&&q.clearable&&!q.disabled&&!q.readonly)?(r.openBlock(),r.createElementBlock("span",SI,[r.renderSlot(q.$slots,"clear-icon",{clear:B})])):r.createCommentVNode("",!0),!q.$slots["clear-icon"]&&(q.alwaysClearable||q.clearable&&e.inputValue&&!q.disabled&&!q.readonly)?(r.openBlock(),r.createElementBlock("button",{key:3,"aria-label":(Y=r.unref(s))==null?void 0:Y.clearInput,class:"dp--clear-btn",type:"button",onKeydown:oe[4]||(oe[4]=H=>r.unref(mn)(H,()=>B(H),!0,Z)),onClick:oe[5]||(oe[5]=r.withModifiers(H=>B(H),["prevent"]))},[r.createVNode(r.unref(Oy),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,CI)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])}}}),EI=typeof window<"u"?window:void 0,dd=()=>{},TI=e=>r.getCurrentScope()?(r.onScopeDispose(e),!0):!1,PI=(e,t,n,a)=>{if(!e)return dd;let o=dd;const i=r.watch(()=>r.unref(e),l=>{o(),l&&(l.removeEventListener(t,n),l.addEventListener(t,n,a),o=()=>{l.removeEventListener(t,n,a),o=dd})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return TI(s),s},AI=(e,t,n,a={})=>{const{window:o=EI,event:i="pointerdown"}=a;return o?PI(o,i,s=>{const l=jt(e),c=jt(t);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},II=["data-dp-mobile"],MI=r.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Zc},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=r.ref(!1),l=r.toRef(o,"modelValue"),c=r.toRef(o,"timezone"),u=r.ref(null),d=r.ref(null),f=r.ref(null),p=r.ref(!1),m=r.ref(null),v=r.ref(!1),y=r.ref(!1),w=r.ref(!1),b=r.ref(!1),{setMenuFocused:E,setShiftKey:_}=Yy(),{clearArrowNav:g}=Oa(),{validateDate:x,isValidTime:C}=Ba(o),{defaultedTransitions:P,defaultedTextInput:O,defaultedInline:A,defaultedConfig:L,defaultedRange:U,defaultedMultiDates:z}=Et(o),{menuTransition:R,showTransition:I}=Vs(P),{isMobile:B}=eb(L),M=r.getCurrentInstance();r.onMounted(()=>{T(o.modelValue),r.nextTick().then(()=>{if(!A.value.enabled){const ne=j(m.value);ne?.addEventListener("scroll",fe),window?.addEventListener("resize",ce)}}),A.value.enabled&&(s.value=!0),window?.addEventListener("keyup",Ae),window?.addEventListener("keydown",pe)}),r.onUnmounted(()=>{if(!A.value.enabled){const ne=j(m.value);ne?.removeEventListener("scroll",fe),window?.removeEventListener("resize",ce)}window?.removeEventListener("keyup",Ae),window?.removeEventListener("keydown",pe)});const $=In(i,"all",o.presetDates),K=In(i,"input");r.watch([l,c],()=>{T(l.value)},{deep:!0});const{openOnTop:V,menuStyle:Z,xCorrect:q,setMenuPosition:oe,getScrollableParent:j,shadowRender:W}=vI({menuRef:u,menuRefInner:d,inputRef:f,pickerWrapperRef:m,inline:A,emit:a,props:o,slots:i}),{inputValue:Y,internalModelValue:H,parseExternalModelValue:T,emitModelValue:J,formatInputValue:le,checkBeforeEmit:Oe}=dA(a,o,p),ee=r.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:A.value.enabled,"dp--flex-display-collapsed":w.value,dp__flex_display_with_input:A.value.input})),Te=r.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),ae=r.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||A.value.enabled}:{}),ue=r.computed(()=>({class:"dp__outer_menu_wrap"})),D=r.computed(()=>A.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),de=()=>{var ne,he;return((he=(ne=f.value)==null?void 0:ne.$el)==null?void 0:he.getBoundingClientRect())??{width:0,left:0,right:0}},fe=()=>{s.value&&(L.value.closeOnScroll?ut():oe())},ce=()=>{var ne;s.value&&oe();const he=((ne=d.value)==null?void 0:ne.$el.getBoundingClientRect().width)??0;w.value=document.body.offsetWidth<=he},Ae=ne=>{ne.key==="Tab"&&!A.value.enabled&&!o.teleport&&L.value.tabOutClosesMenu&&(m.value.contains(document.activeElement)||ut()),y.value=ne.shiftKey},pe=ne=>{y.value=ne.shiftKey},Ie=()=>{!o.disabled&&!o.readonly&&(W(M,e0,o),oe(!1),s.value=!0,s.value&&a("open"),s.value||Se(),T(o.modelValue))},xe=()=>{var ne,he;Y.value="",Se(),(ne=d.value)==null||ne.onValueCleared(),(he=f.value)==null||he.setParsedDate(null),a("update:model-value",null),a("update:model-timezone-value",null),a("cleared"),L.value.closeOnClearValue&&ut()},X=()=>{const ne=H.value;return!ne||!Array.isArray(ne)&&x(ne)?!0:Array.isArray(ne)?z.value.enabled||ne.length===2&&x(ne[0])&&x(ne[1])?!0:U.value.partialRange&&!o.timePicker?x(ne[0]):!1:!1},re=()=>{Oe()&&X()?(J(),ut()):a("invalid-select",H.value)},ye=ne=>{Ze(),J(),L.value.closeOnAutoApply&&!ne&&ut()},Ze=()=>{f.value&&O.value.enabled&&f.value.setParsedDate(H.value)},ct=(ne=!1)=>{o.autoApply&&C(H.value)&&X()&&(U.value.enabled&&Array.isArray(H.value)?(U.value.partialRange||H.value.length===2)&&ye(ne):ye(ne))},Se=()=>{O.value.enabled||(H.value=null)},ut=(ne=!1)=>{var he,Ce;ne&&H.value&&L.value.setDateOnMenuClose&&re(),A.value.enabled||(s.value&&(s.value=!1,q.value=!1,E(!1),_(!1),g(),a("closed"),Y.value&&T(l.value)),Se(),a("blur"),(Ce=(he=d.value)==null?void 0:he.$el)==null||Ce.remove())},$t=(ne,he,Ce=!1)=>{if(!ne){H.value=null;return}const st=Array.isArray(ne)?!ne.some(Ut=>!x(Ut)):x(ne),vt=C(ne);st&&vt?(b.value=!0,H.value=ne,he?(v.value=Ce,re(),a("text-submit")):o.autoApply&&ct(),r.nextTick().then(()=>{b.value=!1})):a("invalid-date",ne)},xn=()=>{o.autoApply&&C(H.value)&&J(),Ze()},zt=()=>s.value?ut():Ie(),Kt=ne=>{H.value=ne},te=()=>{O.value.enabled&&(p.value=!0,le()),a("focus")},_e=()=>{if(O.value.enabled&&(p.value=!1,T(o.modelValue),v.value)){const ne=RP(m.value,y.value);ne?.focus()}a("blur")},Ee=ne=>{d.value&&d.value.updateMonthYear(0,{month:qv(ne.month),year:qv(ne.year)})},He=ne=>{T(ne??o.modelValue)},G=(ne,he)=>{var Ce;(Ce=d.value)==null||Ce.switchView(ne,he)},se=(ne,he)=>L.value.onClickOutside?L.value.onClickOutside(ne,he):ut(!0),be=(ne=0)=>{var he;(he=d.value)==null||he.handleFlow(ne)},Re=()=>u;return AI(u,f,ne=>se(X,ne)),t({closeMenu:ut,selectDate:re,clearValue:xe,openMenu:Ie,onScroll:fe,formatInputValue:le,updateInternalModelValue:Kt,setMonthYear:Ee,parseModel:He,switchView:G,toggleMenu:zt,handleFlow:be,getDpWrapMenuRef:Re}),(ne,he)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:m,class:r.normalizeClass(ee.value),"data-datepicker-instance":"","data-dp-mobile":r.unref(B)},[r.createVNode(xI,r.mergeProps({ref_key:"inputRef",ref:f,"input-value":r.unref(Y),"onUpdate:inputValue":he[0]||(he[0]=Ce=>r.isRef(Y)?Y.value=Ce:null),"is-menu-open":s.value},ne.$props,{onClear:xe,onOpen:Ie,onSetInputDate:$t,onSetEmptyDate:r.unref(J),onSelectDate:re,onToggle:zt,onClose:ut,onFocus:te,onBlur:_e,onRealBlur:he[1]||(he[1]=Ce=>p.value=!1),onTextInput:he[2]||(he[2]=Ce=>ne.$emit("text-input",Ce))}),r.createSlots({_:2},[r.renderList(r.unref(K),(Ce,st)=>({name:Ce,fn:r.withCtx(vt=>[r.renderSlot(ne.$slots,Ce,r.normalizeProps(r.guardReactiveProps(vt)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(ne.teleport?r.Teleport:"div"),r.normalizeProps(r.guardReactiveProps(ae.value)),{default:r.withCtx(()=>[r.createVNode(r.Transition,{name:r.unref(R)(r.unref(V)),css:r.unref(I)&&!r.unref(A).enabled},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:u},ue.value,{class:{"dp--menu-wrapper":!r.unref(A).enabled},style:r.unref(A).enabled?void 0:r.unref(Z)}),[r.createVNode(e0,r.mergeProps({ref_key:"dpMenuRef",ref:d},ne.$props,{"internal-model-value":r.unref(H),"onUpdate:internalModelValue":he[3]||(he[3]=Ce=>r.isRef(H)?H.value=Ce:null),class:{[Te.value]:!0,"dp--menu-wrapper":ne.teleport},"open-on-top":r.unref(V),"no-overlay-focus":D.value,collapse:w.value,"get-input-rect":de,"is-text-input-date":b.value,onClosePicker:ut,onSelectDate:re,onAutoApply:ct,onTimeUpdate:xn,onFlowStep:he[4]||(he[4]=Ce=>ne.$emit("flow-step",Ce)),onUpdateMonthYear:he[5]||(he[5]=Ce=>ne.$emit("update-month-year",Ce)),onInvalidSelect:he[6]||(he[6]=Ce=>ne.$emit("invalid-select",r.unref(H))),onAutoApplyInvalid:he[7]||(he[7]=Ce=>ne.$emit("invalid-select",Ce)),onInvalidFixedRange:he[8]||(he[8]=Ce=>ne.$emit("invalid-fixed-range",Ce)),onRecalculatePosition:r.unref(oe),onTooltipOpen:he[9]||(he[9]=Ce=>ne.$emit("tooltip-open",Ce)),onTooltipClose:he[10]||(he[10]=Ce=>ne.$emit("tooltip-close",Ce)),onTimePickerOpen:he[11]||(he[11]=Ce=>ne.$emit("time-picker-open",Ce)),onTimePickerClose:he[12]||(he[12]=Ce=>ne.$emit("time-picker-close",Ce)),onAmPmChange:he[13]||(he[13]=Ce=>ne.$emit("am-pm-change",Ce)),onRangeStart:he[14]||(he[14]=Ce=>ne.$emit("range-start",Ce)),onRangeEnd:he[15]||(he[15]=Ce=>ne.$emit("range-end",Ce)),onDateUpdate:he[16]||(he[16]=Ce=>ne.$emit("date-update",Ce)),onInvalidDate:he[17]||(he[17]=Ce=>ne.$emit("invalid-date",Ce)),onOverlayToggle:he[18]||(he[18]=Ce=>ne.$emit("overlay-toggle",Ce)),onMenuBlur:he[19]||(he[19]=Ce=>ne.$emit("blur"))}),r.createSlots({_:2},[r.renderList(r.unref($),(Ce,st)=>({name:Ce,fn:r.withCtx(vt=>[r.renderSlot(ne.$slots,Ce,r.normalizeProps(r.guardReactiveProps({...vt})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):r.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,II))}}),Jp=(()=>{const e=MI;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),NI=Object.freeze(Object.defineProperty({__proto__:null,default:Jp},Symbol.toStringTag,{value:"Module"}));Object.entries(NI).forEach(([e,t])=>{e!=="default"&&(Jp[e]=t)});var OI=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],BI=function(e){return OI.map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase())!==-1},LI=function(e,t,n){Object.keys(t).filter(BI).forEach(function(a){var o=t[a];typeof o=="function"&&(a==="onInit"?o(e,n):n.on(a.substring(2),function(i){return o(i,n)}))})},DI=function(e,t,n,a){var o=e.modelEvents?e.modelEvents:null,i=Array.isArray(o)?o.join(" "):o;r.watch(a,function(s,l){n&&typeof s=="string"&&s!==l&&s!==n.getContent({format:e.outputFormat})&&n.setContent(s)}),n.on(i||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})},RI=function(e,t,n,a,o,i){a.setContent(i()),n.attrs["onUpdate:modelValue"]&&DI(t,n,a,o),LI(e,n.attrs,a)},t0=0,tb=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return t0++,e+"_"+n+t0+String(t)},$I=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},n0=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},zI=function(e,t){return n0(e).concat(n0(t))},VI=function(e){return e==null},r0=function(e){var t;return typeof((t=e.options)===null||t===void 0?void 0:t.set)=="function"&&e.options.isRegistered("disabled")},a0=function(){return{listeners:[],scriptId:tb("tiny-script"),scriptLoaded:!1}},FI=function(){var e=a0(),t=function(o,i,s,l){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=s;var u=function(){c.removeEventListener("load",u),l()};c.addEventListener("load",u),i.head&&i.head.appendChild(c)},n=function(o,i,s){e.scriptLoaded?s():(e.listeners.push(s),o.getElementById(e.scriptId)||t(e.scriptId,o,i,function(){e.listeners.forEach(function(l){return l()}),e.scriptLoaded=!0}))},a=function(){e=a0()};return{load:n,reinitialize:a}},jI=FI(),HI=function(){return typeof window<"u"?window:global},ja=function(){var e=HI();return e&&e.tinymce?e.tinymce:null},UI={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,readonly:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},pr=function(){return pr=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pr.apply(this,arguments)},WI=function(e,t,n,a){return e(a||"div",{id:t,ref:n})},qI=function(e,t,n){return e("textarea",{id:t,visibility:"hidden",ref:n})},fd={selector:void 0,target:void 0},pd=function(e,t){var n;typeof((n=e.mode)===null||n===void 0?void 0:n.set)=="function"?e.mode.set(t):e.setMode(t)},YI=r.defineComponent({props:UI,setup:function(e,t){var n=e.init?pr(pr({},e.init),fd):pr({},fd),a=r.toRefs(e),o=a.disabled,i=a.readonly,s=a.modelValue,l=a.tagName,c=r.ref(null),u=null,d=e.id||tb("tiny-vue"),f=e.init&&e.init.inline||e.inline,p=!!t.attrs["onUpdate:modelValue"],m=!0,v=e.initialValue?e.initialValue:"",y="",w=function(_){return p?function(){return s?.value?s.value:""}:function(){return _?v:y}},b=function(){var _=w(m),g=pr(pr({},n),{disabled:e.disabled,readonly:e.readonly,target:c.value,plugins:zI(n.plugins,e.plugins),toolbar:e.toolbar||n.toolbar,inline:f,license_key:e.licenseKey,setup:function(x){u=x,!r0(u)&&e.disabled===!0&&pd(u,"readonly"),x.on("init",function(C){return RI(C,e,t,x,s,_)}),typeof n.setup=="function"&&n.setup(x)}});$I(c.value)&&(c.value.style.visibility=""),ja().init(g),m=!1};r.watch(i,function(_){u!==null&&pd(u,_?"readonly":"design")}),r.watch(o,function(_){u!==null&&(r0(u)?u.options.set("disabled",_):pd(u,_?"readonly":"design"))}),r.watch(l,function(_){var g;u&&(p||(y=u.getContent()),(g=ja())===null||g===void 0||g.remove(u),r.nextTick(function(){return b()}))}),r.onMounted(function(){if(ja()!==null)b();else if(c.value&&c.value.ownerDocument){var _=e.cloudChannel?e.cloudChannel:"8",g=e.apiKey?e.apiKey:"no-api-key",x=VI(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(g,"/tinymce/").concat(_,"/tinymce.min.js"):e.tinymceScriptSrc;jI.load(c.value.ownerDocument,x,b)}}),r.onBeforeUnmount(function(){ja()!==null&&ja().remove(u)}),f||(r.onActivated(function(){m||b()}),r.onDeactivated(function(){var _;u&&(p||(y=u.getContent()),(_=ja())===null||_===void 0||_.remove(u))}));var E=function(_){var g;u&&(y=u.getContent(),(g=ja())===null||g===void 0||g.remove(u),n=pr(pr(pr({},n),_),fd),r.nextTick(function(){return b()}))};return t.expose({rerender:E,getEditor:function(){return u}}),function(){return f?WI(r.h,d,c,e.tagName):qI(r.h,d,c)}}});const GI={class:"relative w-full"},KI=["value","placeholder"],XI={key:0,class:"pointer-events-none absolute inset-0 flex items-center px-2 peer-focus:hidden","data-test-location-labels":""},JI={class:"flex space-x-2"},QI=r.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(null),i=r.ref(""),s=r.computed(()=>!!n.modelValue?.postcode||!!n.modelValue?.street||!!n.modelValue?.number);return r.onMounted(async()=>{if(!o.value)return;if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:l}=await google.maps.importLibrary("places"),c=new l(o.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});c.addListener("place_changed",()=>{i.value="";const u=c.getPlace(),d=u.geometry?.location,f=u.address_components??[],p=d?.lat(),m=d?.lng(),v=f.find(x=>x.types.includes("postal_code"))?.long_name,y=f.find(x=>x.types.includes("route"))?.long_name,w=parseInt(f.find(x=>x.types.includes("street_number"))?.long_name.split(/(\d*)(.*)/s)?.[1]??"",10),b=f.find(x=>x.types.includes("street_number"))?.long_name.split(/(\d*)(.*)/s)?.[2],E=f.find(x=>x.types.includes("locality"))?.long_name,_=f.find(x=>x.types.includes("administrative_area_level_1"))?.long_name,g=f.find(x=>x.types.includes("administrative_area_level_1"))?.short_name;o.value?.blur(),a("update:modelValue",{postcode:v,street:y,number:w>0?w:void 0,numberSuffix:b,city:E,province:_,provinceShort:g,lat:p,lng:m})})}),(l,c)=>(r.openBlock(),r.createElementBlock("div",GI,[r.createElementVNode("input",r.mergeProps({ref_key:"input",ref:o,value:i.value,placeholder:s.value?"":l.placeholder},{...l.$attrs},{class:"peer text-zinc-900",onKeydown:c[0]||(c[0]=r.withKeys(r.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,KI),s.value?(r.openBlock(),r.createElementBlock("div",XI,[r.createElementVNode("div",JI,[r.createVNode(r.unref(sc),{class:"empty:hidden","data-test-street-label":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.modelValue?.street)+" "+r.toDisplayString(l.modelValue?.number)+r.toDisplayString(l.modelValue?.numberSuffix),1)]),_:1}),r.createVNode(r.unref(sc),{class:"empty:hidden","data-test-postcode-label":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.modelValue?.postcode),1)]),_:1})])])):r.createCommentVNode("",!0)]))}}),ZI=["multiple"],eM=r.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:s=>a("update:modelValue",s)});function i(s){const c=s.target.files;c&&(o.value=Array.from(c))}return(s,l)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",null,[r.createElementVNode("input",r.mergeProps({...s.$attrs},{multiple:s.multiple,type:"file",class:"hidden","data-test-input":"",onChange:i}),null,16,ZI),r.renderSlot(s.$slots,"default",{},()=>[r.createVNode(r.unref(or),{as:"span","color-type":"secondary",class:"size-10 p-2.5!"},{default:r.withCtx(()=>[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.paperclip,class:"size-5"},null,8,["icon"])]),_:1})])])]))}}),tM={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,native:!1,label:void 0,plain:!1,custom:!1,errorMessage:"",modelModifiers:()=>({})};function nM(e,t=!1){return t?"input":Qa(e)?Jp:fy(e)?YI:cc(e)?QI:e==="file"?eM:e==="textarea"?"textarea":"input"}function wf(e){return e==="license"}function rM(e,t,n){return Qc(e)&&(!!t.default||!!n)}function pc(e,t,n,a,o,i,s){return Qc(t)||wf(t)||e==="leading"&&cc(t)?!1:e==="trailing"?!!s.trailingIcon||Qa(t)&&!a&&!o&&!i||cc(t)&&!a||t==="search"&&!a||n&&!s.leadingIcon:!!s[`${e}Icon`]}const aM=`block w-full appearance-none rounded-lg
|
|
610
610
|
placeholder:text-zinc-300 focus:outline-hidden text-base
|
|
611
|
-
disabled:cursor-not-allowed disabled:border-zinc-100 disabled:!bg-zinc-50`;function oM(e,t,n,a,o,i,s,l,c){if(Qc(e))return rT(e,o);const u=(c?.class??"").includes("text-center"),d=pc("leading",e,a,s,t,n,l),f=pc("trailing",e,a,s,t,n,l);return{"border-zinc-300":!o,"border-zinc-100! bg-zinc-50!":t,"px-10":u&&(d||f),"pl-10 pr-5 group-aria-expanded:pl-7":d&&!u,"pr-10 pl-3":f&&!u,"px-3":!d&&!f,"pr-0!":Qa(e),"pl-0!":!d&&Qa(e),[aM]:!s,"block w-full appearance-none bg-transparent focus:outline-hidden focus-visible:outline-hidden":s,"py-3":!Qa(e),"h-[42px]":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":o,"text-center bg-transparent text-lg uppercase":wf(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100!":!wf(e)&&!s,"border ring-1 ring-zinc-300":i&&!s,"read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-50":!Qa(e)}}const iM=["type","tabindex"],sM=["value","tabindex"],lM=r.defineComponent({__name:"Input",props:{modelValue:{},tabindex:{},type:{},custom:{type:Boolean},native:{type:Boolean}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:l=>a("update:modelValue",l)}),i=r.computed(()=>nM(n.type,n.native));function s(l){o.value=l.target.value}return(l,c)=>i.value==="input"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),type:l.type,tabindex:l.tabindex,"data-test-input":""},null,8,iM)),[[r.vShow,!l.custom],[r.vModelDynamic,o.value]]):i.value==="textarea"?(r.openBlock(),r.createElementBlock("textarea",{key:1,value:l.modelValue,tabindex:l.tabindex,"data-test-textarea":"",onInput:s},null,40,sM)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),tabindex:l.tabindex,onOpen:c[2]||(c[2]=()=>a("open"))},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue","tabindex"]))}}),cM=Dn(lM,[["__scopeId","data-v-ed50e679"]]),uM=["aria-expanded"],dM=["data-error"],fM=["data-error"],nb=r.defineComponent({inheritAttrs:!1,__name:"AppInput",props:r.mergeDefaults({type:{},modelValue:{},modelModifiers:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},custom:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},native:{type:Boolean},plain:{type:Boolean},errorMessage:{},label:{},tabindex:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{},init:{}},tM),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,i=`input-${B7()}`,s=r.ref(!1),l=r.ref(!1),c=r.useAttrs(),u=r.computed({get:()=>{if(n.modelModifiers.dotToComma){const A=String(n.modelValue).replace(/,/g,".");return!l.value&&parseFloat(A)?String(parseFloat(A).toFixed(2)).replace(/\./g,","):String(n.modelValue).replace(/\./g,",")}return n.modelValue},set:A=>{n.modelModifiers.dotToComma?a("update:modelValue",String(A).replace(/,/g,".")):a("update:modelValue",A)}}),d=r.computed(()=>Qa(n.type)),f=r.computed(()=>fy(n.type)),p=r.computed(()=>Qc(n.type)),m=r.computed(()=>cc(n.type)),v=r.computed(()=>{if(d.value){const A=n.type;return r.h(yn,{icon:bn.far?.[G9[A]],size:"xs",class:"size-4"})}if(m.value)return r.h(yn,{icon:bn.far?.["location-dot"],size:"xs"});if(n.type==="search")return r.h(yn,{icon:bn.far?.["magnifying-glass"],size:"xs",class:"size-4"})}),y=r.computed(()=>{const A=n.type;return d.value?X9(A,i):void 0}),w=r.computed(()=>{const A=n.type,L=Q9(A);return f.value?{...L,init:{...L.init,...n.init}}:void 0}),b=r.computed(()=>n.type==="license"?"text":n.type),E=r.computed(()=>({id:i,type:b.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),_=r.computed(()=>n.type==="license"?r.h(db,{licensePlateClasses:"p-0!"}):r.h("div")),g=r.computed(()=>{const A=n.inputWrapperClasses,L=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${A} ${L}`});function x(){u.value=c.value}function C(A){if(n.modelModifiers.dotToComma){const L=A.key;/[\d,.]/.test(L)||A.preventDefault()}}function P(){l.value=!1,n.modelModifiers.dotToComma&&parseFloat(String(u.value))&&(u.value=String(parseFloat(String(u.value).replace(/,/g,".")).toFixed(2)).replace(/\./g,","))}function O(){l.value=!0}return(A,L)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([A.wrapperClasses,"group"]),"aria-expanded":A.plain},[(A.label||A.$slots.label)&&!p.value?(r.openBlock(),r.createBlock(r.unref(om),{key:0,type:A.type,"has-error":A.hasError,disabled:A.disabled,for:d.value?`dp-input-${i}`:i,class:r.normalizeClass(A.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(_.value),{class:r.normalizeClass([g.value,"flex"])},{default:r.withCtx(()=>[r.unref(pc)("leading",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:0,loading:A.loading,class:r.normalizeClass([A.iconClasses,"left-3.5 top-2.5"]),"data-test-leading-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"leadingIcon")]),_:3},8,["loading","class"])):r.createCommentVNode("",!0),r.createVNode(cM,r.mergeProps({modelValue:u.value,"onUpdate:modelValue":L[0]||(L[0]=U=>u.value=U)},{...E.value,...y.value,...w.value,...A.$attrs},{custom:n.custom,tabindex:n.tabindex,class:r.unref(oM)(A.type,A.disabled,A.readonly,A.loading,A.hasError,s.value,A.plain,A.$slots,A.$attrs),"data-error":A.hasError?"input":void 0,native:A.native,onOpen:L[1]||(L[1]=()=>s.value=!0),onBlur:P,onFocus:O,onClosed:L[2]||(L[2]=()=>s.value=!1),onKeypress:C}),{default:r.withCtx(()=>[r.renderSlot(A.$slots,"default")]),_:3},16,["modelValue","custom","tabindex","class","data-error","native"]),A.custom?r.renderSlot(A.$slots,"input",r.normalizeProps(r.mergeProps({key:1},{check:x,checked:r.unref(c).value===u.value}))):r.createCommentVNode("",!0),!A.custom&&A.type==="checkbox"?(r.openBlock(),r.createBlock(r.unref(yn),{key:2,icon:r.unref(bn).far?.check,class:"pointer-events-none -ml-4 size-4 -translate-x-0.5 text-white"},null,8,["icon"])):r.createCommentVNode("",!0),r.unref(rM)(A.type,A.$slots,A.label)?(r.openBlock(),r.createElementBlock("label",{key:3,for:i,class:r.normalizeClass([`{ 'text-error!': hasError, ${A.labelClasses}}`,"cursor-pointer select-none pl-2 text-base peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-error":A.hasError?A.type:void 0,"data-test-choice-label":""},[r.renderSlot(A.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])],10,dM)):r.createCommentVNode("",!0),r.unref(pc)("trailing",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:4,loading:A.loading,class:r.normalizeClass([A.iconClasses,"right-3.5 top-2.5"]),"data-test-trailing-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"trailingIcon",{},()=>[v.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.value),{key:0})):r.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):r.createCommentVNode("",!0)]),_:3},8,["class"])),A.hasError&&A.errorMessage?(r.openBlock(),r.createElementBlock("p",{key:1,class:r.normalizeClass([A.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-error":A.hasError?"message":void 0,"data-test-error-message":""},r.toDisplayString(A.errorMessage),11,fM)):r.createCommentVNode("",!0)],10,uM))}});function mr(e){return e==null}function pM(e,t,n){const{object:a,valueProp:o,mode:i}=r.toRefs(e),s=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);t.emit("change",m,s),p&&(t.emit("input",m),t.emit("update:modelValue",m))},u=f=>a.value||mr(f)?f:Array.isArray(f)?f.map(p=>p[o.value]):f[o.value],d=f=>mr(f)?i.value==="single"?{}:[]:f;return{update:c}}function Pt(e){return r.customRef(()=>({get:e,set:()=>{}}))}function mM(e,t){const{value:n,modelValue:a,mode:o,valueProp:i}=r.toRefs(e),s=r.ref(o.value!=="single"?[]:{}),l=Pt(()=>a.value!==void 0?a.value:n.value),c=r.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),u=Pt(()=>o.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:c}}function hM(e,t,n){const{regex:a}=r.toRefs(e),o=r.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=r.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(a.value){let m=a.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(a.value){let v=(p.clipboardData||window.clipboardData).getData("Text"),y=a.value;typeof y=="string"&&(y=new RegExp(y)),v.split("").every(w=>!!w.match(y))||p.preventDefault()}t.emit("paste",p,o)};return r.watch(l,p=>{!i.value&&p&&s(),t.emit("search-change",p,o)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function vM(e,t,n){const{groupSelect:a,mode:o,groups:i,disabledProp:s}=r.toRefs(e),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(o.value==="single"||!a.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function md(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function gM(e){return Object.prototype.toString.call(e)==="[object Object]"}function yM(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(a,o){return a===n[o]})}const rb=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o of n)if(!a.includes(o)||!rb(e[o],t[o]))return!1;return!0};function bM(e,t,n){const{options:a,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:v,loading:y,delay:w,resolveOnLoad:b,minChars:E,filterResults:_,clearOnSearch:g,clearOnSelect:x,valueProp:C,allowAbsent:P,groupLabel:O,canDeselect:A,max:L,strict:U,closeOnSelect:z,closeOnDeselect:R,groups:I,reverse:B,infinite:M,groupOptions:$,groupHideEmpty:K,groupSelect:V,onCreate:Z,disabledProp:q,searchStart:oe,searchFilter:j}=r.toRefs(e),W=r.getCurrentInstance().proxy,Y=n.iv,H=n.ev,T=n.search,J=n.clearSearch,le=n.update,Oe=n.pointer,ee=n.setPointer,Te=n.clearPointer,ae=n.focus,ue=n.deactivate,D=n.close,de=n.localize,fe=r.ref([]),ce=r.ref([]),Ae=r.ref(!1),pe=r.ref(null),Ie=r.ref(M.value&&s.value===-1?10:s.value),xe=r.computed({get:()=>ce.value,set:Q=>ce.value=Q}),X=Pt(()=>c.value||u.value||!1),re=Pt(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),ye=r.computed(()=>{if(I.value){let Q=Se.value||[],ve=[];return Q.forEach(Ge=>{vn(Ge[$.value]).forEach(wt=>{ve.push(Object.assign({},wt,Ge[q.value]?{[q.value]:!0}:{}))})}),ve}else{let Q=vn(ce.value||[]);return fe.value.length&&(Q=Q.concat(fe.value)),Q}}),Ze=r.computed(()=>{let Q=ye.value;return B.value&&(Q=Q.reverse()),_e.value.length&&(Q=_e.value.concat(Q)),sa(Q)}),ct=r.computed(()=>{let Q=Ze.value;return Ie.value>0&&(Q=Q.slice(0,Ie.value)),Q}),Se=r.computed(()=>{if(!I.value)return[];let Q=[],ve=ce.value||[];return fe.value.length&&Q.push({[O.value]:" ",[$.value]:[...fe.value],__CREATE__:!0}),Q.concat(ve)}),ut=r.computed(()=>{let Q=[...Se.value].map(ve=>({...ve}));return _e.value.length&&(Q[0]&&Q[0].__CREATE__?Q[0][$.value]=[..._e.value,...Q[0][$.value]]:Q=[{[O.value]:" ",[$.value]:[..._e.value],__CREATE__:!0}].concat(Q)),Q}),$t=r.computed(()=>{if(!I.value)return[];let Q=ut.value;return gt((Q||[]).map((ve,Ge)=>{const wt=vn(ve[$.value]);return{...ve,index:Ge,group:!0,[$.value]:sa(wt,!1).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{})),__VISIBLE__:sa(wt).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{}))}}))}),xn=r.computed(()=>{switch(o.value){case"single":return!mr(Y.value[C.value]);case"multiple":case"tags":return!mr(Y.value)&&Y.value.length>0}}),zt=r.computed(()=>m.value!==void 0?m.value(Y.value,W):Y.value&&Y.value.length>1?`${Y.value.length} options selected`:"1 option selected"),Kt=Pt(()=>!ye.value.length&&!Ae.value&&!_e.value.length),te=Pt(()=>ye.value.length>0&&ct.value.length==0&&(T.value&&I.value||!I.value)),_e=r.computed(()=>X.value===!1||!T.value?[]:rn(T.value)!==-1?[]:[{[C.value]:T.value,[Ee.value[0]]:T.value,[d.value]:T.value,__CREATE__:!0}]),Ee=r.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[d.value]),He=Pt(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),G=Pt(()=>y.value||Ae.value),se=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":le(Q);break;case"multiple":case"tags":le(Y.value.concat(Q));break}t.emit("select",Re(Q),Q,W)},be=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":Ce();break;case"tags":case"multiple":le(Array.isArray(Q)?Y.value.filter(ve=>Q.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1):Y.value.filter(ve=>ve[C.value]!=Q[C.value]));break}t.emit("deselect",Re(Q),Q,W)},Re=Q=>v.value?Q:Q[C.value],ne=Q=>{be(Q)},he=(Q,ve)=>{if(ve.button!==0){ve.preventDefault();return}ne(Q)},Ce=()=>{le(He.value),t.emit("clear",W)},st=Q=>{if(Q.group!==void 0)return o.value==="single"?!1:Io(Q[$.value])&&Q[$.value].length;switch(o.value){case"single":return!mr(Y.value)&&(Y.value[C.value]==Q[C.value]||typeof Y.value[C.value]=="object"&&typeof Q[C.value]=="object"&&rb(Y.value[C.value],Q[C.value]));case"tags":case"multiple":return!mr(Y.value)&&Y.value.map(ve=>ve[C.value]).indexOf(Q[C.value])!==-1}},vt=Q=>Q[q.value]===!0,Ut=()=>L===void 0||L.value===-1||!xn.value&&L.value>0?!1:Y.value.length>=L.value,Vt=Q=>{if(!vt(Q)){if(Z.value&&!st(Q)&&Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__,Q=Z.value(Q,W),Q instanceof Promise)){Ae.value=!0,Q.then(ve=>{Ae.value=!1,nn(ve)});return}nn(Q)}},nn=Q=>{switch(Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__),o.value){case"single":if(Q&&st(Q)){A.value&&be(Q),R.value&&(Te(),D());return}Q&&Wn(Q),x.value&&J(),z.value&&(Te(),D()),Q&&se(Q);break;case"multiple":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&(Wn(Q),se(Q)),x.value&&J(),l.value&&Te(),z.value&&D();break;case"tags":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&Wn(Q),x.value&&J(),Q&&se(Q),l.value&&Te(),z.value&&D();break}z.value||ae()},za=Q=>{if(!(vt(Q)||o.value==="single"||!V.value)){switch(o.value){case"multiple":case"tags":Ao(Q[$.value])?be(Q[$.value]):se(Q[$.value].filter(ve=>Y.value.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1).filter(ve=>!ve[q.value]).filter((ve,Ge)=>Y.value.length+1+Ge<=L.value||L.value===-1)),l.value&&Oe.value&&ee($t.value.filter(ve=>!ve[q.value])[Oe.value.index]);break}z.value&&ue()}},Wn=Q=>{Pe(Q[C.value])===void 0&&X.value&&(t.emit("tag",Q[C.value],W),t.emit("option",Q[C.value],W),t.emit("create",Q[C.value],W),re.value&&Ot(Q),J())},Vi=()=>{o.value!=="single"&&se(ct.value.filter(Q=>!Q.disabled&&!st(Q)))},Ao=Q=>Q.find(ve=>!st(ve)&&!ve[q.value])===void 0,Io=Q=>Q.find(ve=>!st(ve))===void 0,Pe=Q=>ye.value[ye.value.map(ve=>String(ve[C.value])).indexOf(String(Q))],rn=Q=>ye.value.findIndex(ve=>Ee.value.some(Ge=>(parseInt(ve[Ge])==ve[Ge]?parseInt(ve[Ge]):ve[Ge])===(parseInt(Q)==Q?parseInt(Q):Q))),Me=Q=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&st(Q),Ot=Q=>{fe.value.push(Q)},gt=Q=>K.value?Q.filter(ve=>T.value?ve.__VISIBLE__.length:ve[$.value].length):Q.filter(ve=>T.value?ve.__VISIBLE__.length:!0),sa=(Q,ve=!0)=>{let Ge=Q;if(T.value&&_.value){let wt=j.value;wt||(wt=(Rr,il,fh)=>Ee.value.some(Mu=>{let sl=md(de(Rr[Mu]),U.value);return oe.value?sl.startsWith(md(il,U.value)):sl.indexOf(md(il,U.value))!==-1})),Ge=Ge.filter(Rr=>wt(Rr,T.value,W))}return l.value&&ve&&(Ge=Ge.filter(wt=>!Me(wt))),Ge},vn=Q=>{let ve=Q;return gM(ve)&&(ve=Object.keys(ve).map(Ge=>{let wt=ve[Ge];return{[C.value]:Ge,[Ee.value[0]]:wt,[d.value]:wt}})),ve&&Array.isArray(ve)?ve=ve.map(Ge=>typeof Ge=="object"?Ge:{[C.value]:Ge,[Ee.value[0]]:Ge,[d.value]:Ge}):ve=[],ve},Mo=()=>{mr(H.value)||(Y.value=la(H.value))},No=Q=>(Ae.value=!0,new Promise((ve,Ge)=>{a.value(T.value,W).then(wt=>{ce.value=wt||[],typeof Q=="function"&&Q(wt),Ae.value=!1}).catch(wt=>{console.error(wt),ce.value=[],Ae.value=!1}).finally(()=>{ve()})})),Fi=()=>{if(xn.value)if(o.value==="single"){let Q=Pe(Y.value[C.value]);if(Q!==void 0){let ve=Q[d.value];Y.value[d.value]=ve,v.value&&(H.value[d.value]=ve)}}else Y.value.forEach((Q,ve)=>{let Ge=Pe(Y.value[ve][C.value]);if(Ge!==void 0){let wt=Ge[d.value];Y.value[ve][d.value]=wt,v.value&&(H.value[ve][d.value]=wt)}})},ji=Q=>{No(Q)},la=Q=>mr(Q)?o.value==="single"?{}:[]:v.value?Q:o.value==="single"?Pe(Q)||(P.value?{[d.value]:Q,[C.value]:Q,[Ee.value[0]]:Q}:{}):Q.filter(ve=>!!Pe(ve)||P.value).map(ve=>Pe(ve)||{[d.value]:ve,[C.value]:ve,[Ee.value[0]]:ve}),ol=()=>{pe.value=r.watch(T,Q=>{Q.length<E.value||!Q&&E.value!==0||(Ae.value=!0,g.value&&(ce.value=[]),setTimeout(()=>{Q==T.value&&a.value(T.value,W).then(ve=>{(Q==T.value||!T.value)&&(ce.value=ve,Oe.value=ct.value.filter(Ge=>Ge[q.value]!==!0)[0]||null,Ae.value=!1)}).catch(ve=>{console.error(ve)})},w.value))},{flush:"sync"})};if(o.value!=="single"&&!mr(H.value)&&!Array.isArray(H.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return a&&typeof a.value=="function"?b.value?No(Mo):v.value==!0&&Mo():(ce.value=a.value,Mo()),w.value>-1&&ol(),r.watch(w,(Q,ve)=>{pe.value&&pe.value(),Q>=0&&ol()}),r.watch(H,Q=>{if(mr(Q)){le(la(Q),!1);return}switch(o.value){case"single":(v.value?Q[C.value]!=Y.value[C.value]:Q!=Y.value[C.value])&&le(la(Q),!1);break;case"multiple":case"tags":yM(v.value?Q.map(ve=>ve[C.value]):Q,Y.value.map(ve=>ve[C.value]))||le(la(Q),!1);break}},{deep:!0}),r.watch(a,(Q,ve)=>{typeof e.options=="function"?b.value&&(!ve||Q&&Q.toString()!==ve.toString())&&No():(ce.value=e.options,Object.keys(Y.value).length||Mo(),Fi())}),r.watch(d,Fi),r.watch(s,(Q,ve)=>{Ie.value=M.value&&Q===-1?10:Q}),{resolvedOptions:xe,pfo:Ze,fo:ct,filteredOptions:ct,hasSelected:xn,multipleLabelText:zt,eo:ye,extendedOptions:ye,eg:Se,extendedGroups:Se,fg:$t,filteredGroups:$t,noOptions:Kt,noResults:te,resolving:Ae,busy:G,offset:Ie,select:se,deselect:be,remove:ne,selectAll:Vi,clear:Ce,isSelected:st,isDisabled:vt,isMax:Ut,getOption:Pe,handleOptionClick:Vt,handleGroupClick:za,handleTagRemove:he,refreshOptions:ji,resolveOptions:No,refreshLabels:Fi}}function wM(e,t,n){const{valueProp:a,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(e),p=n.fo,m=n.fg,v=n.handleOptionClick,y=n.handleGroupClick,w=n.search,b=n.pointer,E=n.setPointer,_=n.clearPointer,g=n.multiselect,x=n.isOpen,C=r.computed(()=>p.value.filter(H=>!H[d.value])),P=r.computed(()=>m.value.filter(H=>!H[d.value])),O=Pt(()=>c.value!=="single"&&u.value),A=Pt(()=>b.value&&b.value.group),L=r.computed(()=>W(b.value)),U=r.computed(()=>{const H=A.value?b.value:W(b.value),T=P.value.map(le=>le[s.value]).indexOf(H[s.value]);let J=P.value[T-1];return J===void 0&&(J=R.value),J}),z=r.computed(()=>{let H=P.value.map(T=>T.label).indexOf(A.value?b.value[s.value]:W(b.value)[s.value])+1;return P.value.length<=H&&(H=0),P.value[H]}),R=r.computed(()=>[...P.value].slice(-1)[0]),I=r.computed(()=>b.value.__VISIBLE__.filter(H=>!H[d.value])[0]),B=r.computed(()=>{const H=L.value.__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])-1]}),M=r.computed(()=>{const H=W(b.value).__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])+1]}),$=r.computed(()=>[...U.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),K=r.computed(()=>[...R.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),V=H=>b.value&&(!H.group&&b.value[a.value]===H[a.value]||H.group!==void 0&&b.value[s.value]===H[s.value])?!0:void 0,Z=()=>{E(C.value[0]||null)},q=()=>{!b.value||b.value[d.value]===!0||(A.value?y(b.value):v(b.value))},oe=()=>{if(b.value===null)E((l.value&&O.value?P.value[0].__CREATE__?C.value[0]:P.value[0]:C.value[0])||null);else if(l.value&&O.value){let H=A.value?I.value:M.value;H===void 0&&(H=z.value,H.__CREATE__&&(H=H[f.value][0])),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])+1;C.value.length<=H&&(H=0),E(C.value[H]||null)}r.nextTick(()=>{Y()})},j=()=>{if(b.value===null){let H=C.value[C.value.length-1];l.value&&O.value&&(H=K.value,H===void 0&&(H=R.value)),E(H||null)}else if(l.value&&O.value){let H=A.value?$.value:B.value;H===void 0&&(H=A.value?U.value:L.value,H.__CREATE__&&(H=$.value,H===void 0&&(H=U.value))),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])-1;H<0&&(H=C.value.length-1),E(C.value[H]||null)}r.nextTick(()=>{Y()})},W=H=>P.value.find(T=>T.__VISIBLE__.map(J=>J[a.value]).indexOf(H[a.value])!==-1),Y=()=>{let H=g.value.querySelector("[data-pointed]");if(!H)return;let T=H.parentElement.parentElement;l.value&&(T=A.value?H.parentElement.parentElement.parentElement:H.parentElement.parentElement.parentElement.parentElement),H.offsetTop+H.offsetHeight>T.clientHeight+T.scrollTop&&(T.scrollTop=H.offsetTop+H.offsetHeight-T.clientHeight),H.offsetTop<T.scrollTop&&(T.scrollTop=H.offsetTop)};return r.watch(w,H=>{i.value&&(H.length&&o.value?Z():_())}),r.watch(x,H=>{if(H&&g&&g.value){let T=g.value.querySelectorAll("[data-selected]")[0];if(!T)return;let J=T.parentElement.parentElement;r.nextTick(()=>{J.scrollTop=T.offsetTop})}}),{pointer:b,canPointGroups:O,isPointed:V,setPointerFirst:Z,selectPointer:q,forwardPointer:oe,backwardPointer:j}}function On(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ho(e){var t=On(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=On(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qp(e){if(typeof ShadowRoot>"u")return!1;var t=On(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var io=Math.max,mc=Math.min,mi=Math.round;function kf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ab(){return!/^((?!chrome|android).)*safari/i.test(kf())}function hi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,i=1;t&&zn(e)&&(o=e.offsetWidth>0&&mi(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&mi(a.height)/e.offsetHeight||1);var s=ho(e)?On(e):window,l=s.visualViewport,c=!ab()&&n,u=(a.left+(c&&l?l.offsetLeft:0))/o,d=(a.top+(c&&l?l.offsetTop:0))/i,f=a.width/o,p=a.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Zp(e){var t=On(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function kM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _M(e){return e===On(e)||!zn(e)?Zp(e):kM(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function La(e){return((ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function em(e){return hi(La(e)).left+Zp(e).scrollLeft}function Xr(e){return On(e).getComputedStyle(e)}function tm(e){var t=Xr(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function SM(e){var t=e.getBoundingClientRect(),n=mi(t.width)/e.offsetWidth||1,a=mi(t.height)/e.offsetHeight||1;return n!==1||a!==1}function CM(e,t,n){n===void 0&&(n=!1);var a=zn(t),o=zn(t)&&SM(t),i=La(t),s=hi(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Mr(t)!=="body"||tm(i))&&(l=_M(t)),zn(t)?(c=hi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=em(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ob(e){var t=hi(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function ru(e){return Mr(e)==="html"?e:e.assignedSlot||e.parentNode||(Qp(e)?e.host:null)||La(e)}function ib(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:zn(e)&&tm(e)?e:ib(ru(e))}function os(e,t){var n;t===void 0&&(t=[]);var a=ib(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=On(a),s=o?[i].concat(i.visualViewport||[],tm(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(os(ru(s)))}function xM(e){return["table","td","th"].indexOf(Mr(e))>=0}function o0(e){return!zn(e)||Xr(e).position==="fixed"?null:e.offsetParent}function EM(e){var t=/firefox/i.test(kf()),n=/Trident/i.test(kf());if(n&&zn(e)){var a=Xr(e);if(a.position==="fixed")return null}var o=ru(e);for(Qp(o)&&(o=o.host);zn(o)&&["html","body"].indexOf(Mr(o))<0;){var i=Xr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function au(e){for(var t=On(e),n=o0(e);n&&xM(n)&&Xr(n).position==="static";)n=o0(n);return n&&(Mr(n)==="html"||Mr(n)==="body"&&Xr(n).position==="static")?t:n||EM(e)||t}var rr="top",Nr="bottom",_a="right",Hr="left",nm="auto",ou=[rr,Nr,_a,Hr],vi="start",_s="end",TM="clippingParents",sb="viewport",Yi="popper",PM="reference",i0=ou.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+_s])},[]),AM=[].concat(ou,[nm]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+_s])},[]),IM="beforeRead",MM="read",NM="afterRead",OM="beforeMain",BM="main",LM="afterMain",DM="beforeWrite",RM="write",$M="afterWrite",zM=[IM,MM,NM,OM,BM,LM,DM,RM,$M];function VM(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function FM(e){var t=VM(e);return zM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function jM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HM(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}function UM(e,t){var n=On(e),a=La(e),o=n.visualViewport,i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=ab();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+em(e),y:c}}function WM(e){var t,n=La(e),a=Zp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+em(e),c=-a.scrollTop;return Xr(o||n).direction==="rtl"&&(l+=io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function qM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qp(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function _f(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YM(e,t){var n=hi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function s0(e,t,n){return t===sb?_f(UM(e,n)):ho(t)?YM(t,n):_f(WM(La(e)))}function GM(e){var t=os(ru(e)),n=["absolute","fixed"].indexOf(Xr(e).position)>=0,a=n&&zn(e)?au(e):e;return ho(a)?t.filter(function(o){return ho(o)&&qM(o,a)&&Mr(o)!=="body"}):[]}function KM(e,t,n,a){var o=t==="clippingParents"?GM(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,u){var d=s0(e,u,a);return c.top=io(d.top,c.top),c.right=mc(d.right,c.right),c.bottom=mc(d.bottom,c.bottom),c.left=io(d.left,c.left),c},s0(e,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function va(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cb(e){var t=e.reference,n=e.element,a=e.placement,o=a?va(a):null,i=a?gi(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case rr:c={x:s,y:t.y-n.height};break;case Nr:c={x:s,y:t.y+t.height};break;case _a:c={x:t.x+t.width,y:l};break;case Hr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?lb(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case vi:c[u]=c[u]-(t[d]/2-n[d]/2);break;case _s:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ub(){return{top:0,right:0,bottom:0,left:0}}function XM(e){return Object.assign({},ub(),e)}function JM(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function rm(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?TM:l,u=n.rootBoundary,d=u===void 0?sb:u,f=n.elementContext,p=f===void 0?Yi:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,w=y===void 0?0:y,b=XM(typeof w!="number"?w:JM(w,ou)),E=p===Yi?PM:Yi,_=e.rects.popper,g=e.elements[v?E:p],x=KM(ho(g)?g:g.contextElement||La(e.elements.popper),c,d,s),C=hi(e.elements.reference),P=cb({reference:C,element:_,placement:o}),O=_f(Object.assign({},_,P)),A=p===Yi?O:C,L={top:x.top-A.top+b.top,bottom:A.bottom-x.bottom+b.bottom,left:x.left-A.left+b.left,right:A.right-x.right+b.right},U=e.modifiersData.offset;if(p===Yi&&U){var z=U[o];Object.keys(L).forEach(function(R){var I=[_a,Nr].indexOf(R)>=0?1:-1,B=[rr,Nr].indexOf(R)>=0?"y":"x";L[R]+=z[B]*I})}return L}var l0={placement:"bottom",modifiers:[],strategy:"absolute"};function c0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function QM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?l0:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},l0,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(b){var E=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:ho(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(c)};var _=FM(HM([].concat(a,d.options.modifiers)));return d.orderedModifiers=_.filter(function(g){return g.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var b=d.elements,E=b.reference,_=b.popper;if(c0(E,_)){d.rects={reference:CM(E,au(_),d.options.strategy==="fixed"),popper:ob(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var x=d.orderedModifiers[g],C=x.fn,P=x.options,O=P===void 0?{}:P,A=x.name;typeof C=="function"&&(d=C({state:d,options:O,name:A,instance:m})||d)}}}},update:jM(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){y(),p=!0}};if(!c0(l,c))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function v(){d.orderedModifiers.forEach(function(w){var b=w.name,E=w.options,_=E===void 0?{}:E,g=w.effect;if(typeof g=="function"){var x=g({state:d,name:b,instance:m,options:_}),C=function(){};f.push(x||C)}})}function y(){f.forEach(function(w){return w()}),f=[]}return m}}var bl={passive:!0};function ZM(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,c=On(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,bl)}),l&&c.addEventListener("resize",n.update,bl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,bl)}),l&&c.removeEventListener("resize",n.update,bl)}}var eN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZM,data:{}};function tN(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var nN={name:"popperOffsets",enabled:!0,phase:"read",fn:tN,data:{}},rN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aN(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:mi(n*o)/o||0,y:mi(a*o)/o||0}}function u0(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,m=p===void 0?0:p,v=s.y,y=v===void 0?0:v,w=typeof d=="function"?d({x:m,y}):{x:m,y};m=w.x,y=w.y;var b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),_=Hr,g=rr,x=window;if(u){var C=au(n),P="clientHeight",O="clientWidth";if(C===On(n)&&(C=La(n),Xr(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",O="scrollWidth")),C=C,o===rr||(o===Hr||o===_a)&&i===_s){g=Nr;var A=f&&C===x&&x.visualViewport?x.visualViewport.height:C[P];y-=A-a.height,y*=c?1:-1}if(o===Hr||(o===rr||o===Nr)&&i===_s){_=_a;var L=f&&C===x&&x.visualViewport?x.visualViewport.width:C[O];m-=L-a.width,m*=c?1:-1}}var U=Object.assign({position:l},u&&rN),z=d===!0?aN({x:m,y},On(n)):{x:m,y};if(m=z.x,y=z.y,c){var R;return Object.assign({},U,(R={},R[g]=E?"0":"",R[_]=b?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",R))}return Object.assign({},U,(t={},t[g]=E?y+"px":"",t[_]=b?m+"px":"",t.transform="",t))}function oN(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:va(t.placement),variation:gi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,u0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,u0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var iN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oN,data:{}};function sN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!zn(i)||!Mr(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function lN(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(c,u){return c[u]="",c},{});!zn(o)||!Mr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var cN={name:"applyStyles",enabled:!0,phase:"write",fn:sN,effect:lN,requires:["computeStyles"]},uN=[eN,nN,iN,cN],dN=QM({defaultModifiers:uN});function fN(e){return e==="x"?"y":"x"}function Ul(e,t,n){return io(e,mc(t,n))}function pN(e,t,n){var a=Ul(e,t,n);return a>n?n:a}function mN(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=rm(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=va(t.placement),E=gi(t.placement),_=!E,g=lb(b),x=fN(g),C=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(i){var R,I=g==="y"?rr:Hr,B=g==="y"?Nr:_a,M=g==="y"?"height":"width",$=C[g],K=$+w[I],V=$-w[B],Z=m?-O[M]/2:0,q=E===vi?P[M]:O[M],oe=E===vi?-O[M]:-P[M],j=t.elements.arrow,W=m&&j?ob(j):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),H=Y[I],T=Y[B],J=Ul(0,P[M],W[M]),le=_?P[M]/2-Z-J-H-L.mainAxis:q-J-H-L.mainAxis,Oe=_?-P[M]/2+Z+J+T+L.mainAxis:oe+J+T+L.mainAxis,ee=t.elements.arrow&&au(t.elements.arrow),Te=ee?g==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(R=U?.[g])!=null?R:0,ue=$+le-ae-Te,D=$+Oe-ae,de=Ul(m?mc(K,ue):K,$,m?io(V,D):V);C[g]=de,z[g]=de-$}if(l){var fe,ce=g==="x"?rr:Hr,Ae=g==="x"?Nr:_a,pe=C[x],Ie=x==="y"?"height":"width",xe=pe+w[ce],X=pe-w[Ae],re=[rr,Hr].indexOf(b)!==-1,ye=(fe=U?.[x])!=null?fe:0,Ze=re?xe:pe-P[Ie]-O[Ie]-ye+L.altAxis,ct=re?pe+P[Ie]+O[Ie]-ye-L.altAxis:X,Se=m&&re?pN(Ze,pe,ct):Ul(m?Ze:xe,pe,m?ct:X);C[x]=Se,z[x]=Se-pe}t.modifiersData[a]=z}}var hN={name:"preventOverflow",enabled:!0,phase:"main",fn:mN,requiresIfExists:["offset"]},vN={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return vN[t]})}var gN={start:"end",end:"start"};function d0(e){return e.replace(/start|end/g,function(t){return gN[t]})}function yN(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?AM:c,d=gi(a),f=d?l?i0:i0.filter(function(v){return gi(v)===d}):ou,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=rm(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[va(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function bN(e){if(va(e)===nm)return[];var t=Wl(e);return[d0(e),t,d0(t)]}function wN(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=va(w),E=b===w,_=c||(E||!v?[Wl(w)]:bN(w)),g=[w].concat(_).reduce(function(W,Y){return W.concat(va(Y)===nm?yN(t,{placement:Y,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):Y)},[]),x=t.rects.reference,C=t.rects.popper,P=new Map,O=!0,A=g[0],L=0;L<g.length;L++){var U=g[L],z=va(U),R=gi(U)===vi,I=[rr,Nr].indexOf(z)>=0,B=I?"width":"height",M=rm(t,{placement:U,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),$=I?R?_a:Hr:R?Nr:rr;x[B]>C[B]&&($=Wl($));var K=Wl($),V=[];if(i&&V.push(M[z]<=0),l&&V.push(M[$]<=0,M[K]<=0),V.every(function(W){return W})){A=U,O=!1;break}P.set(U,V)}if(O)for(var Z=v?3:1,q=function(Y){var H=g.find(function(T){var J=P.get(T);if(J)return J.slice(0,Y).every(function(le){return le})});if(H)return A=H,"break"},oe=Z;oe>0;oe--){var j=q(oe);if(j==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var kN={name:"flip",enabled:!0,phase:"main",fn:wN,requiresIfExists:["offset"],data:{_skip:!1}};function _N(e,t,n){const{disabled:a,appendTo:o,appendToBody:i,openDirection:s}=r.toRefs(e),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),f=r.ref(null),p=r.ref(null),m=Pt(()=>o.value||i.value),v=Pt(()=>s.value==="top"&&p.value==="bottom"||s.value==="bottom"&&p.value!=="top"?"bottom":"top"),y=()=>{d.value||a.value||(d.value=!0,t.emit("open",l),m.value&&r.nextTick(()=>{b()}))},w=()=>{d.value&&(d.value=!1,t.emit("close",l))},b=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),g=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"offset",options:{offset:[0,(v.value==="top"?_:g)*-1]}}]})),f.value.update()},E=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=dN(c.value,u.value,{strategy:E(c.value)?"fixed":void 0,placement:s.value,modifiers:[hN,kN,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:y,close:w,placement:v,updatePopper:b}}function SN(e,t,n){const{searchable:a,disabled:o,clearOnBlur:i}=r.toRefs(e),s=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=r.ref(!1),v=r.ref(!1),y=Pt(()=>a.value||o.value?-1:0),w=()=>{a.value&&s.value.blur(),f.value.blur()},b=()=>{a.value&&!o.value&&s.value.focus()},E=(O=!0)=>{o.value||(m.value=!0,O&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),i.value&&u())},1)};return{tabindex:y,isActive:m,mouseClicked:v,blur:w,focus:b,activate:E,deactivate:_,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||E(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),w()},handleMousedown:O=>{v.value=!0,d.value&&(O.target.isEqualNode(f.value)||O.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(s.value))&&E(),setTimeout(()=>{v.value=!1},0)}}}function CN(e,t,n){const{mode:a,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(e),v=r.getCurrentInstance().proxy,y=n.iv,w=n.update,b=n.deselect,E=n.search,_=n.setPointer,g=n.selectPointer,x=n.backwardPointer,C=n.forwardPointer,P=n.multiselect,O=n.wrapper,A=n.tags,L=n.isOpen,U=n.open,z=n.blur,R=n.fo,I=Pt(()=>f.value||p.value||!1),B=Pt(()=>o.value!==void 0?o.value:d.value!==void 0?d.value:["enter"]),M=()=>{a.value==="tags"&&!l.value&&I.value&&s.value&&!u.value&&_(R.value[R.value.map(V=>V[c.value]).indexOf(E.value)])};return{handleKeydown:V=>{t.emit("keydown",V,v);let Z,q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(V.key)!==-1&&a.value==="tags"&&(Z=[...P.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==A.value),q=Z.findIndex(oe=>oe===document.activeElement)),V.key){case"Backspace":if(a.value==="single"||s.value&&[null,""].indexOf(E.value)===-1||y.value.length===0)return;let oe=y.value.filter(j=>!j.disabled&&j.remove!==!1);oe.length&&b(oe[oe.length-1]);break;case"Enter":if(V.preventDefault(),V.keyCode===229)return;if(q!==-1&&q!==void 0){w([...y.value].filter((j,W)=>W!==q)),q===Z.length-1&&(Z.length-1?Z[Z.length-2].focus():s.value?A.value.querySelector("input").focus():O.value.focus());return}if(B.value.indexOf("enter")===-1&&I.value)return;M(),g();break;case" ":if(!I.value&&!s.value){V.preventDefault(),M(),g();return}if(!I.value)return!1;if(B.value.indexOf("space")===-1&&I.value)return;V.preventDefault(),M(),g();break;case"Tab":case";":case",":if(B.value.indexOf(V.key.toLowerCase())===-1||!I.value)return;M(),g(),V.preventDefault();break;case"Escape":z();break;case"ArrowUp":if(V.preventDefault(),!l.value)return;L.value||U(),x();break;case"ArrowDown":if(V.preventDefault(),!l.value)return;L.value||U(),C();break;case"ArrowLeft":if(s.value&&A.value&&A.value.querySelector("input").selectionStart||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),q===-1?Z[Z.length-1].focus():q>0&&Z[q-1].focus();break;case"ArrowRight":if(q===-1||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),Z.length>q+1?Z[q+1].focus():s.value?A.value.querySelector("input").focus():s.value||O.value.focus();break}},handleKeyup:V=>{t.emit("keyup",V,v)},preparePointer:M}}function xN(e,t,n){const{classes:a,disabled:o,showOptions:i,breakTags:s}=r.toRefs(e),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,m=n.resolving,v=n.fo,y=n.placement,w=Pt(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...a.value})),b=Pt(()=>!!(l.value&&i.value&&(!m.value||m.value&&v.value.length)));return{classList:r.computed(()=>{const _=w.value;return{container:[_.container].concat(o.value?_.containerDisabled:[]).concat(b.value&&y.value==="top"?_.containerOpenTop:[]).concat(b.value&&y.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(o.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,s.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(y.value==="top"?_.dropdownTop:[]).concat(!l.value||!i.value||!b.value?_.dropdownHidden:[]),options:[_.options].concat(y.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:g=>{let x=[_.groupLabel];return c(g)?x.push(u(g)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(g)&&p.value?x.push(d(g)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(g)&&x.push(_.groupLabelDisabled),p.value&&x.push(_.groupLabelPointable),x},groupOptions:_.groupOptions,option:(g,x)=>{let C=[_.option];return c(g)?C.push(u(g)?_.optionSelectedPointed:_.optionPointed):u(g)?C.push(d(g)?_.optionSelectedDisabled:_.optionSelected):(d(g)||x&&d(x))&&C.push(_.optionDisabled),C},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:b}}function EN(e,t,n){const{limit:a,infinite:o}=r.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),f=r.shallowRef(null),p=Pt(()=>s.value<c.value.length),m=y=>{const{isIntersecting:w,target:b}=y[0];if(w){const E=b.offsetParent,_=E.scrollTop;s.value+=a.value==-1?10:a.value,r.nextTick(()=>{E.scrollTop=_})}},v=()=>{i.value&&s.value<c.value.length?d.value.observe(f.value):!i.value&&d.value&&d.value.disconnect()};return r.watch(i,()=>{o.value&&v()}),r.watch(l,()=>{o.value&&(s.value=a.value,v())},{flush:"post"}),r.watch(u,()=>{o.value&&v()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function TN(e,t,n){const{placeholder:a,id:o,valueProp:i,label:s,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(e),f=n.pointer,p=n.iv,m=n.hasSelected,v=n.multipleLabelText,y=r.ref(null),w=Pt(()=>`${o.value?o.value+"-":""}assist`),b=Pt(()=>`${o.value?o.value+"-":""}multiselect-options`),E=Pt(()=>{if(f.value){let z=o.value?`${o.value}-`:"";return z+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,z+=f.value.group?f.value.index:f.value[i.value],z}}),_=Pt(()=>a.value),g=Pt(()=>l.value!=="single"),x=r.computed(()=>l.value==="single"&&m.value?p.value[s.value]:l.value==="multiple"&&m.value?v.value:l.value==="tags"&&m.value?p.value.map(z=>z[s.value]).join(", "):""),C=r.computed(()=>{let z={...u.value};return d.value&&(z["aria-labelledby"]=z["aria-labelledby"]?`${w.value} ${z["aria-labelledby"]}`:w.value,x.value&&z["aria-label"]&&(z["aria-label"]=`${x.value}, ${z["aria-label"]}`)),z}),P=z=>`${o.value?o.value+"-":""}multiselect-option-${z[i.value]}`,O=z=>`${o.value?o.value+"-":""}multiselect-group-${z.index}`,A=z=>`${z}`,L=z=>`${z}`,U=z=>`${z} ❎`;return r.onMounted(()=>{if(o.value&&document&&document.querySelector){let z=document.querySelector(`[for="${o.value}"]`);y.value=z?z.innerText:null}}),{arias:C,ariaLabel:x,ariaAssist:w,ariaControls:b,ariaPlaceholder:_,ariaMultiselectable:g,ariaActiveDescendant:E,ariaOptionId:P,ariaOptionLabel:A,ariaGroupId:O,ariaGroupLabel:L,ariaTagLabel:U}}function PN(e,t,n){const{locale:a,fallbackLocale:o}=r.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function AN(e,t,n){const a=r.shallowRef(null),o=r.shallowRef(null),i=r.shallowRef(null),s=r.shallowRef(null),l=r.shallowRef(null);return{multiselect:a,wrapper:o,tags:i,input:s,dropdown:l}}function IN(e,t,n,a={}){return n.forEach(o=>{a={...a,...o(e,t,a)}}),a}var am={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return IN(e,t,[AN,PN,mM,vM,_N,hM,pM,SN,bM,EN,wM,CN,xN,TN])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const MN=["id","dir"],NN=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ON=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],BN=["onKeyup","aria-label"],LN=["onClick"],DN=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],RN=["innerHTML"],$N=["id"],zN=["id"],VN=["id","aria-label","aria-selected"],FN=["data-pointed","onMouseenter","onClick"],jN=["innerHTML"],HN=["aria-label"],UN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],WN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],qN=["innerHTML"],YN=["innerHTML"],GN=["value"],KN=["name","value"],XN=["name","value"],JN=["id"];function QN(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[12]||(t[12]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[13]||(t[13]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[14]||(t[14]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[15]||(t[15]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[r.createElementVNode("div",r.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=r.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,ON)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(e.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.iv,(s,l,c)=>r.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>e.handleTagRemove(s,u),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagWrapper)},r.toDisplayString(e.localize(s[n.label])),3),!n.disabled&&!s.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(e.classList.tagRemove),onClick:r.withModifiers(u=>e.handleTagRemove(s,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,LN)):r.createCommentVNode("v-if",!0)],42,BN))])),256)),r.createElementVNode("div",{class:r.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagsSearchCopy)},r.toDisplayString(e.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=r.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,DN)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?r.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.singleLabelText)},r.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?r.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,RN)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?r.renderSlot(e.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||e.resolving?r.renderSlot(e.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?r.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=r.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,NN),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:r.normalizeClass(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s))},[r.renderSlot(e.$slots,"beforelist",{options:e.fo}),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(e.fg,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.group),key:c,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:u=>e.setPointer(s,l),onClick:u=>e.handleGroupClick(s)},[r.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[r.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,jN)])],42,FN)),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.__VISIBLE__,(u,d,f)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(u,s)),"data-pointed":e.isPointed(u),"data-selected":e.isSelected(u)||void 0,key:f,onMouseenter:p=>e.setPointer(u),onClick:p=>e.handleOptionClick(u),id:e.ariaOptionId(u),"aria-selected":e.isSelected(u),"aria-label":e.ariaOptionLabel(e.localize(u[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:u,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(u[n.label])),1)])],42,UN))),128))],10,HN)],10,VN))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.fo,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:c,onMouseenter:u=>e.setPointer(s),onClick:u=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(s[n.label])),1)])],42,WN))),128))],10,zN),e.noOptions?r.renderSlot(e.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,qN)]):r.createCommentVNode("v-if",!0),e.noResults?r.renderSlot(e.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,YN)]):r.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(e.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(e.$slots,"afterlist",{options:e.fo})],42,$N)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,GN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,KN)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.plainValue,(s,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,XN))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},r.toDisplayString(e.ariaLabel),11,JN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(e.classList.spacer)},null,2)],42,MN)}am.render=QN;am.__file="src/Multiselect.vue";const Tt={container:"app-select scrollbar-primary relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded-lg bg-white text-base leading-snug outline-hidden rounded-lg hover:bg-zinc-100",containerDisabled:"cursor-default bg-zinc-100",containerOpen:"rounded-b-none",containerOpenTop:"rounded-t-none",containerActive:"ring-1 ring-zinc-300",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",singleLabelText:"text-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",search:"h-full w-full absolute inset-0 outline-hidden focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3 rtl:pl-0 rtl:pr-3",tags:"min-w-0 grow shrink flex flex-wrap items-center mt-1 px-2",tag:"max-w-full bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded-lg h-7 mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-lg group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-zinc-700",tagText:"overflow-hidden text-ellipsis whitespace-nowrap",tagsSearchWrapper:"inline-block relative mx-1 mb-1 grow shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-hidden focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex text-base items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3 relative z-10 stroke-2 shrink-0 grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3 relative z-10 text-zinc-700 transition duration-300 shrink-0 grow-0 flex rtl:pr-0 rtl:pl-3",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3 animate-spin shrink-0 grow-0 rtl:mr-0 rtl:ml-3",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin shrink-0 grow-0 m-3",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b-lg",dropdownTop:"-translate-y-full! top-px bottom-auto rounded-b-none rounded-t-lg",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-hidden text-transparent",spacer:"h-9 py-px box-content"};function ZN(e){return e in Tt}function eO(e){const t=Object.keys(Tt).find(n=>n.toLowerCase()===e);if(t&&ZN(t))return Tt[t]}const tO=["onClick"],nO={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},iu=r.defineComponent({inheritAttrs:!1,__name:"AppSelect",props:{wrapperClasses:{default:void 0},hasError:{type:Boolean},errorMessage:{default:void 0},label:{default:void 0},optionLabel:{default:"name"},fetchOnOpen:{type:Boolean,default:!1},openDirection:{default:"down"},dropdownClasses:{default:void 0},additionalClasses:{default:void 0},labelClasses:{default:void 0},searchable:{type:Boolean,default:!1},cacheable:{type:Boolean,default:!1},onChange:{}},setup(e){const t=e,n=r.useSlots(),a=r.useTemplateRef("select"),o=Zt.useStorage("app-select",[],sessionStorage),i=r.computed(()=>Object.keys(n).filter(u=>u!=="tag")),s=r.computed(()=>{const u={...Tt};return t.openDirection==="up"&&(u.dropdown=`${Tt.dropdown} ${Tt.dropdownTop}`,u.containerOpen=`${Tt.containerOpenTop}`),t.dropdownClasses&&(u.dropdown=`${u.dropdown} ${t.dropdownClasses}`),t.hasError&&(u.container=`${u.container} border-error! focus:ring-error focus:border-error`),Object.entries(t.additionalClasses??{}).forEach(([d,f])=>{d in u&&(u[d]=`${u[d]} ${f}`)}),u});r.onMounted(()=>{if(t.cacheable){const u=Object.values(a.value?.modelValue??{}),d=a.value?.valueProp??"value";o.value.filter(f=>u.includes(f[d])||u.includes(`${f[d]}`))?.forEach(f=>{a.value?.select(f)})}});function l(u){return u?r.isRef(u)?Array.isArray(u.value)?u.value:[u.value]:Array.isArray(u)?u:[u]:[]}function c(u,d){t.onChange?.(u),o.value=l(r.unref(d.iv))}return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(u.wrapperClasses)},[u.label||u.$slots.label?(r.openBlock(),r.createBlock(r.unref(om),{key:0,"has-error":u.hasError,class:r.normalizeClass(u.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(u.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(u.label),1)])]),_:3},8,["has-error","class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(am),r.mergeProps({native:!1,classes:s.value,searchable:t.searchable},{...u.$attrs,ref:"select",label:t.optionLabel,onChange:t.onChange},{onOpen:d[0]||(d[0]=f=>{u.fetchOnOpen&&f?.noOptions&&f?.resolveOptions?.()}),onChange:c}),r.createSlots({tag:r.withCtx(f=>[r.createElementVNode("div",{class:r.normalizeClass(r.unref(Tt).tag)},[r.renderSlot(u.$slots,"tag",r.normalizeProps(r.guardReactiveProps(f)),()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagText)},r.toDisplayString(f.option?.[u.optionLabel]),3)]),f.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(r.unref(Tt).tagRemove),onClick:p=>f.handleTagRemove(f.option,p)},[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagRemoveIcon)},null,2)],10,tO))],2)]),_:2},[r.renderList(i.value,(f,p)=>({name:f,fn:r.withCtx(m=>[r.renderSlot(u.$slots,f,r.normalizeProps(r.guardReactiveProps({...m||{},classes:r.unref(eO)(f)})))])}))]),1040,["classes","searchable"]),u.hasError&&u.errorMessage?(r.openBlock(),r.createElementBlock("p",nO,r.toDisplayString(u.errorMessage),1)):r.createCommentVNode("",!0)],2))}}),rO=["data-error"],om=r.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-zinc-900"]),"data-error":t.hasError?"label":void 0},[r.renderSlot(t.$slots,"default")],10,rO))}}),Sf={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},aO={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:Sf.zoom,minZoom:Sf.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},oO=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function iO(){const e=document.createElement("div");return e.classList.add(...oO),r.render(r.h(i$),e),e}const sO=r.defineComponent({__name:"AppMaps",props:{withMarker:{type:Boolean,default:!0},disableMarkerClick:{type:Boolean,default:!1},markerLatitude:{default:null},markerLongitude:{default:null},disableUserInteraction:{type:Boolean,default:!1},mapCenterLatitude:{default:null},mapCenterLongitude:{default:null},mapOptions:{default:null}},setup(e){const t=e,n=r.ref(null),a=r.computed(()=>t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:t.mapOptions?.center??null),o=r.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:a.value);r.watch(t,async()=>{await i()}),r.onMounted(async()=>{if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:c}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const u=new c(n.value,{...s(),center:a.value});t.withMarker&&await l(u)}}function s(){let c={...Sf};return t.disableUserInteraction&&(c={...c,...aO}),{...c,...t.mapOptions??{}}}async function l(c){const{AdvancedMarkerElement:u}=await google.maps.importLibrary("marker"),d=new u({map:c,position:o.value,content:iO()});t.disableMarkerClick&&!t.disableUserInteraction&&(d.element.classList.add("cursor-default!"),google.maps.event.addListener(d,"click",()=>{}))}return(c,u)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),Cf=r.defineComponent({__name:"NavigationItem",props:{item:{},linkClasses:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:a,expanded:o}=ko(),i=ei.useRouter(),s=r.ref(!1),l=r.computed(()=>s.value||typeof t.item.icon!="string"),c=r.computed(()=>s.value?Na:t.item.icon),u=r.computed(()=>t.item.href??i.resolve(t.item.to)?.href??"");async function d(f){a(),t.item?.onClick&&(f.preventDefault(),s.value=!0,await Promise.resolve(t.item?.onClick?.()),s.value=!1)}return(f,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{to:f.item.to,href:u.value,class:r.normalizeClass([[{"md:bg-primary md:text-white!":f.item.active??!1,"rounded-full!":f.item.rounded??!1,"mb-3":!f.item.bottom,"mt-3":f.item.bottom,"md:w-10 md:justify-center":!r.unref(o),"md:px-6":r.unref(o)},f.linkClasses],"group/item flex h-10 w-full cursor-pointer rounded-lg transition-colors hover:bg-primary md:items-center md:text-center md:text-zinc-400 md:hover:text-white"]),onClick:d},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value?c.value:"span"),{class:r.normalizeClass([{"h-6!":!l.value,"md:text-white!":f.item.active},"app-navigation-item size-5 stroke-2 text-black md:size-4 md:text-zinc-400 md:group-hover/item:text-white"]),size:s.value?"extra-small":void 0,"data-test-icon":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.value?"":f.item.icon),1)]),_:1},8,["class","size"])),r.createElementVNode("span",{class:r.normalizeClass([{"md:w-0 md:p-0":!r.unref(o)},"overflow-hidden whitespace-nowrap pl-7 text-lg font-semibold md:text-base md:font-normal"]),"data-test-name":""},r.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),xf=r.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:a,closeMobileMenu:o}=ko();return(i,s)=>r.unref(t)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(a)),{key:0,to:r.unref(a)!=="a"?r.unref(t):void 0,href:r.unref(a)?r.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex size-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-hidden","data-test-help-icon":"",onClick:r.unref(o)},{default:r.withCtx(()=>[typeof r.unref(n)=="string"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(r.unref(n)),1)],64)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:1,class:"size-full"}))]),_:1},8,["to","href","onClick"])):r.createCommentVNode("",!0)}}),lO={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},cO=["innerHTML"],uO={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},dO={class:"relative flex size-full flex-1 flex-col bg-white focus:outline-hidden","data-test-navigation-wrapper":""},fO={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},pO={"aria-label":"MainMenu",class:"mt-5"},mO={class:"mb-auto"},hO=r.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:a,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=ko(),c=r.computed(()=>o.value?km:s$);function u(){l(),setTimeout(()=>{i.value=!1},100)}function d(){i.value||(s(),i.value=!0)}return(f,p)=>(r.openBlock(),r.createElementBlock("header",lO,[r.createElementVNode("div",{class:"inline-flex w-10 grow-0 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-hidden","data-test-menu-icon-wrapper":"",onClick:r.withModifiers(d,["stop"])},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value),{class:"block size-6 text-black","aria-hidden":"true"}))]),r.createElementVNode("div",{class:"flex h-full max-w-[70%] grow justify-center py-4","data-test-logo-wrapper":"",innerHTML:r.unref(t)},null,8,cO),r.createElementVNode("div",uO,[r.unref(n)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:0})):r.createCommentVNode("",!0)]),r.createVNode(r.unref(nt.TransitionRoot),{show:r.unref(o),as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:u},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:r.withCtx(()=>[r.createElementVNode("div",dO,[r.createElementVNode("div",fO,[r.createElementVNode("nav",pO,[r.createElementVNode("ul",mO,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a).filter(m=>m.visible!==!1),m=>(r.openBlock(),r.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[r.createVNode(Cf,{item:m},null,8,["item"])]))),128))])]),r.createVNode(xf)])])]),_:1})]),_:1})]),_:1},8,["show"]),r.createVNode(xf)]))}}),vO={class:"relative before:absolute before:-right-4 before:top-0 before:z-[-1] before:size-4 before:bg-secondary after:absolute after:-right-4 after:bottom-0 after:z-[-1] after:size-4 after:bg-secondary"},gO=["aria-expanded"],yO={key:0},bO=r.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n,expanded:a,toggleExpand:o,contactIcon:i}=ko();return(s,l)=>(r.openBlock(),r.createElementBlock("div",vO,[r.createElementVNode("aside",{class:r.normalizeClass([{"flex-col px-3 md:w-20!":r.unref(n),"md:w-72!":r.unref(a)},"app-navigation-menu group sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:size-8 before:bg-zinc-100 after:absolute after:-right-8 after:bottom-0 after:size-8 after:bg-zinc-100 md:flex md:bg-secondary"]),"aria-expanded":r.unref(a),"data-test-main-menu":""},[r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mb-auto transition-all duration-500 z-10"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom!==!0&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-top-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128))],2),r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mt-auto pb-10 transition-all duration-500"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-bottom-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128)),r.unref(i)?(r.openBlock(),r.createElementBlock("li",yO,[r.createVNode(xf,{class:"static!"})])):r.createCommentVNode("",!0)],2),r.createElementVNode("div",{class:"absolute bottom-2 right-5 hidden size-10 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-secondary transition-all duration-200 md:flex",onClick:l[0]||(l[0]=(...c)=>r.unref(o)&&r.unref(o)(...c))},[r.createElementVNode("div",{class:r.normalizeClass([{"-translate-x-4!":!r.unref(a)},"flex translate-x-4 space-x-4 transition-transform duration-700"])},[r.createVNode(r.unref(wm),{class:"size-5 text-zinc-400 hover:text-white"}),r.createVNode(r.unref(Jb),{class:"size-5 text-zinc-400 hover:text-white"})],2)])],10,gO),r.createVNode(hO)]))}}),su=Dn(bO,[["__scopeId","data-v-d443a433"]]),wO={class:"flex text-sm font-bold"},kO={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-[0.188rem] text-white","data-test-country-code":""},db=r.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",wO,[r.createElementVNode("span",kO,r.toDisplayString(t.country),1),r.createElementVNode("span",{class:r.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-[0.188rem] uppercase"]),"data-test-license-plate":""},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.license),1)])],2)]))}}),fb=r.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=r.computed(()=>t.icon??l$),a=r.computed(()=>t.icon?["w-full"]:["bg-primary","w-6","h-6","text-white","stroke-3","p-1","z-10","mx-auto","flex","items-center","justify-center","rounded-full"]),o=r.computed(()=>t.icon?["border-primary","border-2","-translate-y-2","h-10","w-10","rounded-full","flex","justify-center","items-center","p-1.5","z-50","bg-white"]:["w-10"]);return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value)},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass([a.value,"relative"])},null,8,["class"]))],2))}}),_O={plain:[],default:["text-zinc-600"],success:["text-green-600"],warning:["text-yellow-600"],error:["text-red-600"],info:["text-sky-600"],inactive:["text-orange-500"]},SO={class:"flex"},CO={class:"ml-4"},pb=r.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{default:"default"}},setup(e){const t=e,n=r.computed(()=>t.item.date&&!t.item.time?t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}):t.item.time&&!t.item.date?t.item.time:[]),a=r.computed(()=>t.item?.badge??"default");return(o,i)=>(r.openBlock(),r.createElementBlock("article",{class:r.normalizeClass([{"after:hidden":o.item.last},"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary after:[min-height:60px] first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-linear-to-b"])},[r.createElementVNode("div",SO,[r.renderSlot(o.$slots,"icon",{value:o.item.icon},()=>[r.createVNode(fb,{icon:o.item.icon},null,8,["icon"])])]),r.createElementVNode("div",CO,[r.createElementVNode("header",{class:r.normalizeClass({"flex items-center gap-3":o.itemType==="inline","mb-0!":o.item.last})},[r.createVNode(r.unref(sc),{class:r.normalizeClass({"mb-2":o.itemType==="default"}),type:a.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"date",{value:n.value},()=>[r.createElementVNode("time",null,r.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class","type"]),r.createElementVNode("h3",{class:r.normalizeClass([{domClassesPerType:a.value},"font-semibold"]),"data-test-timeline-title":""},[r.renderSlot(o.$slots,"title",{value:o.item.title},()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(_O)[a.value])},r.toDisplayString(o.item.title),3)])],2)],2),r.createElementVNode("p",{class:r.normalizeClass([{"mt-4":o.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[r.renderSlot(o.$slots,"default",{value:o.item.description},()=>[r.createTextVNode(r.toDisplayString(o.item.description),1)])],2)])],2))}}),xO={class:"space-y-4"},EO=r.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",xO,[r.renderSlot(t.$slots,"default",{},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,a=>(r.openBlock(),r.createBlock(pb,{key:a.title,item:a,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}}),TO={},PO={class:"flow-root"},AO={class:"overflow-x-auto"},IO={class:"inline-block min-w-full"},MO={class:"overflow-hidden"},NO={class:"w-full"};function OO(e,t){return r.openBlock(),r.createElementBlock("div",PO,[r.createElementVNode("div",AO,[r.createElementVNode("div",IO,[r.createElementVNode("div",MO,[r.createElementVNode("table",NO,[r.renderSlot(e.$slots,"default",{},void 0,!0)])])])])])}const BO=Dn(TO,[["render",OO],["__scopeId","data-v-1edf1593"]]);var LO=Object.defineProperty,DO=Object.defineProperties,RO=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,zO=Object.prototype.propertyIsEnumerable,p0=(e,t,n)=>t in e?LO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t)=>{for(var n in t||(t={}))$O.call(t,n)&&p0(e,n,t[n]);if(f0)for(var n of f0(t))zO.call(t,n)&&p0(e,n,t[n]);return e},ql=(e,t)=>DO(e,RO(t)),Da=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};const VO=e=>(r.pushScopeId("data-v-e0a0b7f0"),e=e(),r.popScopeId(),e),FO=["onClick"],jO=["checked"],HO=VO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),UO=r.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;r.useCssVars(s=>({"51ab8a49":r.unref(i)}));const a=r.computed(()=>n.status==="allSelected"),o=()=>{t("change",!a.value)},i=r.inject("themeColor");return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:r.withModifiers(o,["stop","prevent"])},[r.createElementVNode("input",{type:"checkbox",checked:r.unref(a),class:r.normalizeClass(e.status)},null,10,jO),HO],8,FO))}});var WO=Da(UO,[["__scopeId","data-v-e0a0b7f0"]]);const qO=e=>(r.pushScopeId("data-v-7e69a276"),e=e(),r.popScopeId(),e),YO=["checked"],GO=qO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),KO=r.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){r.useCssVars(a=>({fdaf7e9e:r.unref(n)}));const n=r.inject("themeColor");return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=r.withModifiers(i=>t("change"),["stop","prevent"]))},[r.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,YO),GO]))}});var XO=Da(KO,[["__scopeId","data-v-7e69a276"]]);const JO=e=>(r.pushScopeId("data-v-4ca5de3a"),e=e(),r.popScopeId(),e),QO={class:"easy-data-table__rows-selector"},ZO={class:"rows-input"},eB=JO(()=>r.createElementVNode("div",{class:"triangle"},null,-1)),tB=["onClick"],nB=r.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;r.useCssVars(f=>({"1b889342":r.unref(d)}));const a=r.ref(!1),o=r.ref(!1),i=r.inject("dataTable");r.watch(a,f=>{if(f&&i){const p=window.innerHeight,m=i.value.getBoundingClientRect().height,v=i.value.getBoundingClientRect().top;p-(m+v)<=100?o.value=!0:o.value=!1}});const s=r.computed({get:()=>n.modelValue,set:f=>{t("update:modelValue",f)}}),l=f=>{s.value=f,a.value=!1},c=(f,p)=>{let m=f.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(p))return!0;m=m.parentNode}return!1},u=f=>{c(f.target,"easy-data-table__rows-selector")||(a.value=!1)};r.onMounted(()=>{document.addEventListener("click",u)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const d=r.inject("themeColor");return(f,p)=>(r.openBlock(),r.createElementBlock("div",QO,[r.createElementVNode("div",{class:"rows-input__wrapper",onClick:p[0]||(p[0]=m=>a.value=!a.value)},[r.createElementVNode("div",ZO,r.toDisplayString(r.unref(s)),1),eB]),r.createElementVNode("ul",{class:r.normalizeClass(["select-items",{show:a.value,inside:o.value}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rowsItems,m=>(r.openBlock(),r.createElementBlock("li",{key:m,class:r.normalizeClass({selected:m===r.unref(s)}),onClick:v=>l(m)},r.toDisplayString(m),11,tB))),128))],2)]))}});var rB=Da(nB,[["__scopeId","data-v-4ca5de3a"]]);const lu=e=>(r.pushScopeId("data-v-1fa3a520"),e=e(),r.popScopeId(),e),aB={class:"lds-ring"},oB=lu(()=>r.createElementVNode("div",null,null,-1)),iB=lu(()=>r.createElementVNode("div",null,null,-1)),sB=lu(()=>r.createElementVNode("div",null,null,-1)),lB=lu(()=>r.createElementVNode("div",null,null,-1)),cB=[oB,iB,sB,lB],uB=r.defineComponent({__name:"Loading",setup(e){r.useCssVars(n=>({26774109:r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",aB,cB))}});var dB=Da(uB,[["__scopeId","data-v-1fa3a520"]]);const fB={class:"loader-line"},pB=r.defineComponent({__name:"LoadingLine",setup(e){r.useCssVars(n=>({"0d327f57":r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",fB))}});var mB=Da(pB,[["__scopeId","data-v-7d281cac"]]);const hB={class:"buttons-pagination"},vB=["onClick"],gB=r.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;r.useCssVars(l=>({"40dd4f07":r.unref(s)}));const a=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=r.computed(()=>{const l=[];if(n.maxPaginationNumber<=a)for(let c=1;c<=n.maxPaginationNumber;c+=1)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c<=3)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if(c===4)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)c<=5?l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber}):c===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2||c===6)l.push({type:"omission"});else if(c===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else{const u=4-c,d=n.currentPaginationNumber-u;l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}return l}),s=r.inject("themeColor");return(l,c)=>(r.openBlock(),r.createElementBlock("div",hB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),(u,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(["item",{button:u.type==="button",active:u.type==="button"&&u.active,"active-prev":u.type==="button"&&u.activePrev,omission:u.type==="omission"}]),onClick:f=>o(u)},r.toDisplayString(u.type==="button"?u.page:"..."),11,vB))),128))]))}});var yB=Da(gB,[["__scopeId","data-v-4c681fa2"]]);const mb=e=>(r.pushScopeId("data-v-c9da5286"),e=e(),r.popScopeId(),e),bB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),wB=[bB],kB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),_B=[kB],SB=r.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},wB,2),r.unref(n).buttonsPagination?r.renderSlot(a.$slots,"buttonsPagination",{key:0},void 0,!0):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},_B,2)],64))}});var CB=Da(SB,[["__scopeId","data-v-c9da5286"]]);function xB(e,t,n,a){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const c=wr({},i);if(t.value){const{checkbox:u}=i;delete c.checkbox,c.isSelected=u}if(n.value){const{index:u}=i;delete c.index,c.indexInCurrentPage=u}a("clickRow",c,l)}}}function EB(e,t,n){const a=r.ref([]);return{expandingItemIndexList:a,updateExpandingItemIndexList:(s,l,c)=>{c.stopPropagation();const u=a.value.indexOf(s);if(u!==-1)a.value.splice(u,1);else{const d=e.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(l));n("expandRow",t.value+d,l),a.value.push(t.value+d)}},clearExpandingItemIndexList:()=>{a.value=[]}}}function TB(e){const t=r.computed(()=>e.value.filter(o=>o.fixed)),n=r.computed(()=>t.value.length?t.value[t.value.length-1].value:""),a=r.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,c;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(c=i.width)!=null?c:100,distance:s===0?0:o.reduce((u,d,f)=>{let p=u;return f<s&&(p+=d),p})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:a}}function PB(e,t,n,a,o,i,s,l,c,u,d,f,p,m,v,y,w,b,E){const _=r.computed(()=>s.value.findIndex(R=>R.fixed)!==-1),g=r.computed(()=>_.value?s.value.filter(R=>R.fixed):[]),x=r.computed(()=>s.value.filter(R=>!R.fixed)),C=(R,I)=>Array.isArray(R)&&Array.isArray(I)?{sortBy:R,sortDesc:I.map(B=>B==="desc")}:R!==""?{sortBy:v.value,sortDesc:y.value==="desc"}:null,P=r.ref(C(v.value,y.value)),O=r.computed(()=>{var R;const B=[...g.value,...x.value].map(V=>{const Z=Object.assign(V);if(Z.sortable&&(Z.sortType="none"),p.value)if(Array.isArray(p.value.sortBy)&&Array.isArray(p.value.sortType)&&p.value.sortBy.includes(Z.value)){const q=p.value.sortBy.indexOf(Z.value);Z.sortType=p.value.sortType[q]}else Z.value===p.value.sortBy&&p.value.sortType&&(Z.sortType=p.value.sortType);if(P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)&&P.value.sortBy.includes(Z.value)){const q=P.value.sortBy.indexOf(Z.value);Z.sortType=P.value.sortDesc[q]?"desc":"asc"}else P.value&&Z.value===P.value.sortBy&&(Z.sortType=P.value.sortDesc?"desc":"asc");return Z});let M=[];l.value?M=[o.value||_.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...B]:M=B;let $=[];m.value?$=[i.value||_.value?{text:e.value,value:"index",fixed:!0,width:c.value}:{text:e.value,value:"index"},...M]:$=M;let K=[];return u.value?K=[a.value||_.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(R=t.value)!=null?R:36}:{text:"checkbox",value:"checkbox"},...$]:K=$,K}),A=r.computed(()=>O.value.map(R=>R.value));return{clientSortOptions:P,headerColumns:A,headersForRender:O,updateSortField:(R,I)=>{let B=null;if(I==="none"?B="asc":I==="asc"?B="desc":B=f.value?"asc":null,d.value&&b(R,B),P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)){const M=P.value.sortBy.indexOf(R);M===-1?B!==null&&(P.value.sortBy.push(R),P.value.sortDesc.push(B==="desc")):B===null?(P.value.sortDesc.splice(M,1),P.value.sortBy.splice(M,1)):P.value.sortDesc[M]=B==="desc"}else B===null?P.value=null:P.value={sortBy:R,sortDesc:B==="desc"};E("updateSort",{sortType:B,sortBy:R})},isMultiSorting:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.includes(R):P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.includes(R):!1,getMultiSortNumber:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.indexOf(R)+1:P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.indexOf(R)+1:!1}}function AB(e,t,n,a,o,i,s,l,c){const u=r.computed(()=>(e.value-1)*o.value+1),d=r.computed(()=>n.value?Math.min(c.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),f=r.computed(()=>n.value?a.value:l.value.slice(u.value-1,d.value)),p=r.computed(()=>s.value?f.value.map((y,w)=>wr({index:u.value+w},y)):f.value),m=r.computed(()=>i.value.length===0||i.value.every(w=>l.value.findIndex(b=>JSON.stringify(w)===JSON.stringify(b))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(b=>l.value.findIndex(E=>JSON.stringify(b)===JSON.stringify(E))!==-1)?"allSelected":"partSelected"),v=r.computed(()=>t.value?m.value==="allSelected"?p.value.map(y=>wr({checkbox:!0},y)):m.value==="noneSelected"?p.value.map(y=>wr({checkbox:!1},y)):p.value.map(y=>{const w=i.value.findIndex(b=>{const E=wr({},y);return delete E.index,JSON.stringify(b)===JSON.stringify(E)})!==-1;return wr({checkbox:w},y)}):p.value);return{currentPageFirstIndex:u,currentPageLastIndex:d,multipleSelectStatus:m,pageItems:v}}function IB(e,t,n,a,o,i,s){const l=r.ref(i.value?i.value.page:e.value),c=r.computed(()=>Math.ceil(a.value/o.value)),u=r.computed(()=>c.value===0||l.value===c.value),d=r.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:c,isLastPage:u,isFirstPage:d,nextPage:()=>{if(a.value!==0&&!u.value&&!n.value)if(t.value){const y=l.value+1;s(y)}else l.value+=1},prevPage:()=>{if(a.value!==0&&!d.value&&!n.value)if(t.value){const y=l.value-1;s(y)}else l.value-=1},updatePage:y=>{n.value||(t.value?s(y):l.value=y)},updateCurrentPaginationNumber:y=>{l.value=y}}}function MB(e,t,n,a){const o=r.computed(()=>!e.value&&t.value.findIndex(l=>l===a.value)===-1?[a.value,...t.value]:t.value),i=r.ref(n.value?n.value.rowsPerPage:a.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function NB(e,t,n){const a=r.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:c,sortBy:u,sortType:d}=e.value;return{page:l,rowsPerPage:c,sortBy:u??null,sortType:d??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:a,updateServerOptionsPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:l}))},updateServerOptionsSort:(l,c)=>{if(a.value)if(t.value&&Array.isArray(a.value.sortBy)&&Array.isArray(a.value.sortType)){const u=a.value.sortBy.findIndex(d=>d===l);u===-1&&c!==null&&(a.value.sortBy.push(l),a.value.sortType.push(c)),c===null?(a.value.sortBy.splice(u,1),a.value.sortType.splice(u,1)):a.value.sortType[u]=c}else a.value=ql(wr({},a.value),{sortBy:c!==null?l:null,sortType:c})},updateServerOptionsRowsPerPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:1,rowsPerPage:l}))}}}function dn(e,t){var n;if(e.includes(".")){const a=e.split("."),{length:o}=a;let i,s=0;for(;s<o;){if(s===0)i=t[a[0]];else if(i&&typeof i=="object")i=i[a[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function OB(e,t){const n=dn(e,t);return Array.isArray(n)?n.join(","):n}function BB(e,t,n,a,o,i,s,l,c,u){const d=_=>{if(typeof i.value=="string"&&i.value!=="")return dn(i.value,_);if(Array.isArray(i.value)){let g="";return i.value.forEach(x=>{g+=dn(x,_)}),g}return Object.values(_).join(" ")},f=r.computed(()=>{if(!n.value&&s.value!==""){const _=new RegExp(s.value,"i");return a.value.filter(g=>_.test(d(g)))}return a.value}),p=r.computed(()=>{let _=[...f.value];return t.value?(t.value.forEach(g=>{_=_.filter(x=>{const{field:C,comparison:P,criteria:O}=g;if(typeof P=="function")return P(dn(C,x),O);const A=dn(C,x);switch(P){case"=":return A===O;case"!=":return A!==O;case">":return A>O;case"<":return A<O;case"<=":return A<=O;case">=":return A>=O;case"between":return A>=Math.min(...O)&&A<=Math.max(...O);case"in":return O.includes(A);default:return A===O}})}),_):f.value});r.watch(p,_=>{t.value&&u("updateFilter",_)},{immediate:!0,deep:!0});function m(_,g,x,C){const P=_[C],O=g[C];return(C===0?x:m(_,g,x,C-1)).sort((L,U)=>{let z=!0;for(let R=0;R<C;R+=1)if(dn(_[R],L)!==dn(_[R],U)){z=!1;break}return z?dn(P,L)<dn(P,U)?O?1:-1:dn(P,L)>dn(P,U)?O?-1:1:0:0})}const v=r.computed(()=>{if(n.value)return a.value;if(e.value===null)return p.value;const{sortBy:_,sortDesc:g}=e.value,x=[...p.value];return c&&Array.isArray(_)&&Array.isArray(g)?_.length===0?x:m(_,g,x,_.length-1):x.sort((C,P)=>dn(_,C)<dn(_,P)?g?1:-1:dn(_,C)>dn(_,P)?g?-1:1:0)}),y=r.computed(()=>n.value?l.value:v.value.length),w=r.computed({get:()=>{var _;return(_=o.value)!=null?_:[]},set:_=>{u("update:itemsSelected",_)}});return{totalItems:v,selectItemsComputed:w,totalItemsLength:y,toggleSelectAll:_=>{w.value=_?v.value:[],_&&u("selectAll")},toggleSelectItem:_=>{const g=_.checkbox;if(delete _.checkbox,delete _.index,g)w.value=w.value.filter(x=>JSON.stringify(x)!==JSON.stringify(_)),u("deselectRow",_);else{const x=w.value;x.unshift(_),w.value=x,u("selectRow",_)}}}}var LB={alternating:{type:Boolean,default:!1},buttonsPagination:{type:Boolean,default:!1},checkboxColumnWidth:{type:Number,default:null},currentPage:{type:Number,default:1},emptyMessage:{type:String,default:"No Available Data"},expandColumnWidth:{type:Number,default:36},filterOptions:{type:Array,default:null},fixedExpand:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},fixedCheckbox:{type:Boolean,default:!1},fixedIndex:{type:Boolean,default:!1},headerTextDirection:{type:String,default:"left"},bodyTextDirection:{type:String,default:"left"},hideFooter:{type:Boolean,default:!1},hideRowsPerPage:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},indexColumnWidth:{type:Number,default:60},itemsSelected:{type:Array,default:null},loading:{type:Boolean,default:!1},rowsPerPage:{type:Number,default:25},rowsItems:{type:Array,default:()=>[25,50,100]},rowsPerPageMessage:{type:String,default:"rows per page:"},searchField:{type:[String,Array],default:""},searchValue:{type:String,default:""},serverOptions:{type:Object,default:null},serverItemsLength:{type:Number,default:0},showIndex:{type:Boolean,default:!1},sortBy:{type:[String,Array],default:""},sortType:{type:[String,Array],default:"asc"},multiSort:{type:Boolean,default:!1},tableMinHeight:{type:Number,default:180},tableHeight:{type:Number,default:null},themeColor:{type:String,default:"#42b883"},tableClassName:{type:String,default:""},headerClassName:{type:String,default:""},headerItemClassName:{type:[Function,String],default:""},bodyRowClassName:{type:[Function,String],default:""},bodyExpandRowClassName:{type:[Function,String],default:""},bodyItemClassName:{type:[Function,String],default:""},noHover:{type:Boolean,default:!1},borderCell:{type:Boolean,default:!1},mustSort:{type:Boolean,default:!1},rowsOfPageSeparatorMessage:{type:String,default:"of"},clickEventType:{type:String,default:"single"},clickRowToExpand:{type:Boolean,default:!1},tableNodeId:{type:String,default:""},showIndexSymbol:{type:String,default:"#"},preventContextMenuRow:{type:Boolean,default:!0}};const DB=e=>(r.pushScopeId("data-v-32683533"),e=e(),r.popScopeId(),e),RB=["id"],$B=["onClick"],zB={key:3,class:"header-text"},VB={key:5,class:"multi-sort__number"},FB=["onClick","onDblclick","onContextmenu"],jB=["onClick"],HB=["colspan"],UB={key:0,class:"vue3-easy-data-table__loading"},WB=DB(()=>r.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),qB={class:"loading-entity"},YB={key:1,class:"vue3-easy-data-table__message"},GB={key:0,class:"vue3-easy-data-table__footer"},KB={key:0,class:"pagination__rows-per-page"},XB={class:"pagination__items-index"},JB=r.defineComponent({__name:"DataTable",props:ql(wr({},LB),{items:{type:Array,required:!0},headers:{type:Array,required:!0}}),emits:["clickRow","contextmenuRow","selectRow","deselectRow","expandRow","updateSort","updateFilter","update:itemsSelected","update:serverOptions","updatePageItems","updateTotalItems","selectAll"],setup(e,{expose:t,emit:n}){const a=e;r.useCssVars(Pe=>({da0d4328:r.unref(j),"3037e504":r.unref(oe)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:c,expandColumnWidth:u,filterOptions:d,fixedCheckbox:f,fixedExpand:p,fixedHeader:m,fixedIndex:v,headers:y,headerTextDirection:w,indexColumnWidth:b,items:E,itemsSelected:_,loading:g,mustSort:x,multiSort:C,rowsItems:P,rowsPerPage:O,searchField:A,searchValue:L,serverItemsLength:U,serverOptions:z,showIndex:R,sortBy:I,sortType:B,tableHeight:M,tableMinHeight:$,themeColor:K,rowsOfPageSeparatorMessage:V,showIndexSymbol:Z,preventContextMenuRow:q}=r.toRefs(a),oe=r.computed(()=>M.value?`${M.value}px`:null),j=r.computed(()=>`${$.value}px`);r.provide("themeColor",K.value);const W=r.useSlots(),Y=r.computed(()=>!!W.pagination),H=r.computed(()=>!!W.loading),T=r.computed(()=>!!W.expand),J=r.computed(()=>!!W.body),le=r.ref(),Oe=r.ref();r.provide("dataTable",le);const ee=r.ref(!1);r.onMounted(()=>{Oe.value.addEventListener("scroll",()=>{ee.value=Oe.value.scrollLeft>0})});const Te=r.computed(()=>_.value!==null),ae=r.computed(()=>z.value!==null),{serverOptionsComputed:ue,updateServerOptionsPage:D,updateServerOptionsSort:de,updateServerOptionsRowsPerPage:fe}=NB(z,C,n),{clientSortOptions:ce,headerColumns:Ae,headersForRender:pe,updateSortField:Ie,isMultiSorting:xe,getMultiSortNumber:X}=PB(Z,l,u,f,p,v,y,T,b,Te,ae,x,ue,R,I,B,C,de,n),{rowsItemsComputed:re,rowsPerPageRef:ye,updateRowsPerPage:Ze}=MB(ae,P,z,O),{totalItems:ct,selectItemsComputed:Se,totalItemsLength:ut,toggleSelectAll:$t,toggleSelectItem:xn}=BB(ce,d,ae,E,_,A,L,U,C,n),{currentPaginationNumber:zt,maxPaginationNumber:Kt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,updateCurrentPaginationNumber:se}=IB(c,ae,g,ut,ye,z,D),{currentPageFirstIndex:be,currentPageLastIndex:Re,multipleSelectStatus:ne,pageItems:he}=AB(zt,Te,ae,E,ye,Se,R,ct,ut),Ce=r.computed(()=>zt.value===0?0:(zt.value-1)*ye.value),{expandingItemIndexList:st,updateExpandingItemIndexList:vt,clearExpandingItemIndexList:Ut}=EB(he,Ce,n),{fixedHeaders:Vt,lastFixedColumn:nn,fixedColumnsInfos:za}=TB(pe),{clickRow:Wn}=xB(i,Te,R,n),Vi=(Pe,rn)=>{q.value&&rn.preventDefault(),n("contextmenuRow",Pe,rn)},Ao=Pe=>{var rn;const Me=(rn=Pe.width)!=null?rn:Vt.value.length?100:null;if(Me)return`width: ${Me}px; min-width: ${Me}px;`},Io=(Pe,rn="th")=>{if(!Vt.value.length)return;const Me=za.value.find(Ot=>Ot.value===Pe);if(Me)return`left: ${Me.distance}px;z-index: ${rn==="th"?3:1};position: sticky;`};return r.watch(g,(Pe,rn)=>{ue.value&&Pe===!1&&rn===!0&&(se(ue.value.page),Ut())}),r.watch(ye,Pe=>{ae.value?fe(Pe):G(1)}),r.watch([L,d],()=>{ae.value||G(1)}),r.watch([zt,ce,A,L,d],()=>{Ut()},{deep:!0}),r.watch(he,Pe=>{n("updatePageItems",Pe)},{deep:!0}),r.watch(ct,Pe=>{n("updateTotalItems",Pe)},{deep:!0}),t({currentPageFirstIndex:be,currentPageLastIndex:Re,clientItemsLength:ut,maxPaginationNumber:Kt,currentPaginationNumber:zt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,rowsPerPageOptions:re,rowsPerPageActiveOption:ye,updateRowsPerPageActiveOption:Ze}),(Pe,rn)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"dataTable",ref:le,class:r.normalizeClass(["vue3-easy-data-table",[Pe.tableClassName]])},[r.createElementVNode("div",{ref_key:"tableBody",ref:Oe,class:r.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":r.unref(m),"fixed-height":r.unref(M),"show-shadow":ee.value,"table-fixed":r.unref(Vt).length,hoverable:!Pe.noHover,"border-cell":Pe.borderCell}])},[r.createElementVNode("table",{id:r.unref(o)},[r.createElementVNode("colgroup",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("col",{key:Ot,style:r.normalizeStyle(Ao(Me))},null,4))),128))]),r.unref(W)["customize-headers"]?r.renderSlot(Pe.$slots,"customize-headers",{key:0},void 0,!0):r.unref(pe).length&&!Pe.hideHeader?(r.openBlock(),r.createElementBlock("thead",{key:1,class:r.normalizeClass(["vue3-easy-data-table__header",[Pe.headerClassName]])},[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("th",{key:Ot,class:r.normalizeClass([{sortable:Me.sortable,none:Me.sortable&&Me.sortType==="none",desc:Me.sortable&&Me.sortType==="desc",asc:Me.sortable&&Me.sortType==="asc",shadow:Me.value===r.unref(nn)},typeof Pe.headerItemClassName=="string"?Pe.headerItemClassName:Pe.headerItemClassName(Me,Ot+1)]),style:r.normalizeStyle(Io(Me.value)),onClick:r.withModifiers(gt=>Me.sortable&&Me.sortType?r.unref(Ie)(Me.value,Me.sortType):null,["stop"])},[Me.text==="checkbox"?(r.openBlock(),r.createBlock(WO,{key:r.unref(ne),status:r.unref(ne),onChange:r.unref($t)},null,8,["status","onChange"])):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["header",`direction-${r.unref(w)}`])},[r.unref(W)[`header-${Me.value}`]?r.renderSlot(Pe.$slots,`header-${Me.value}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`header-${Me.value.toLowerCase()}`]?r.renderSlot(Pe.$slots,`header-${Me.value.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):r.unref(W).header?r.renderSlot(Pe.$slots,"header",r.normalizeProps(r.mergeProps({key:2},Me)),void 0,!0):(r.openBlock(),r.createElementBlock("span",zB,r.toDisplayString(Me.text),1)),Me.sortable?(r.openBlock(),r.createElementBlock("i",{key:Me.sortType?Me.sortType:"none",class:r.normalizeClass(["sortType-icon",{desc:Me.sortType==="desc"}])},null,2)):r.createCommentVNode("",!0),r.unref(C)&&r.unref(xe)(Me.value)?(r.openBlock(),r.createElementBlock("span",VB,r.toDisplayString(r.unref(X)(Me.value)),1)):r.createCommentVNode("",!0)],2))],14,$B))),128))])],2)):r.createCommentVNode("",!0),r.unref(J)?r.renderSlot(Pe.$slots,"body",r.normalizeProps(r.mergeProps({key:2},r.unref(he))),void 0,!0):r.unref(Ae).length?(r.openBlock(),r.createElementBlock("tbody",{key:3,class:r.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Pe.alternating}])},[r.renderSlot(Pe.$slots,"body-prepend",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)},headers:r.unref(pe)})),void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(he),(Me,Ot)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:Ot},[r.createElementVNode("tr",{class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyRowClassName=="string"?Pe.bodyRowClassName:Pe.bodyRowClassName(Me,Ot+1)]),onClick:gt=>{r.unref(Wn)(Me,"single",gt),Pe.clickRowToExpand&&r.unref(vt)(Ot+r.unref(Ce),Me,gt)},onDblclick:gt=>{r.unref(Wn)(Me,"double",gt)},onContextmenu:gt=>{Vi(Me,gt)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ae),(gt,sa)=>(r.openBlock(),r.createElementBlock("td",{key:sa,style:r.normalizeStyle(Io(gt,"td")),class:r.normalizeClass([{shadow:gt===r.unref(nn),"can-expand":gt==="expand"},typeof Pe.bodyItemClassName=="string"?Pe.bodyItemClassName:Pe.bodyItemClassName(gt,Ot+1),`direction-${r.unref(s)}`]),onClick:vn=>gt==="expand"?r.unref(vt)(Ot+r.unref(Ce),Me,vn):null},[r.unref(W)[`item-${gt}`]?r.renderSlot(Pe.$slots,`item-${gt}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`item-${gt.toLowerCase()}`]?r.renderSlot(Pe.$slots,`item-${gt.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):gt==="expand"?(r.openBlock(),r.createElementBlock("i",{key:2,class:r.normalizeClass(["expand-icon",{expanding:r.unref(st).includes(r.unref(Ce)+Ot)}])},null,2)):gt==="checkbox"?(r.openBlock(),r.createBlock(XO,{key:3,checked:Me[gt],onChange:vn=>r.unref(xn)(Me)},null,8,["checked","onChange"])):r.unref(W).item?r.renderSlot(Pe.$slots,"item",r.normalizeProps(r.mergeProps({key:4},{column:gt,item:Me})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:5},[r.createTextVNode(r.toDisplayString(r.unref(OB)(gt,Me)),1)],64))],14,jB))),128))],42,FB),r.unref(T)&&r.unref(st).includes(Ot+r.unref(Ce))?(r.openBlock(),r.createElementBlock("tr",{key:0,class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyExpandRowClassName=="string"?Pe.bodyExpandRowClassName:Pe.bodyExpandRowClassName(Me,Ot+1)])},[r.createElementVNode("td",{colspan:r.unref(pe).length,class:"expand"},[Me.expandLoading?(r.openBlock(),r.createBlock(mB,{key:0,class:"expand-loading"})):r.createCommentVNode("",!0),r.renderSlot(Pe.$slots,"expand",r.normalizeProps(r.guardReactiveProps(Me)),void 0,!0)],8,HB)],2)):r.createCommentVNode("",!0)],64))),128)),r.renderSlot(Pe.$slots,"body-append",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He),updatePage:r.unref(G)},headers:r.unref(pe)})),void 0,!0)],2)):r.createCommentVNode("",!0)],8,RB),r.unref(g)?(r.openBlock(),r.createElementBlock("div",UB,[WB,r.createElementVNode("div",qB,[r.unref(H)?r.renderSlot(Pe.$slots,"loading",{key:0},void 0,!0):(r.openBlock(),r.createBlock(dB,{key:1}))])])):r.createCommentVNode("",!0),!r.unref(he).length&&!r.unref(g)?(r.openBlock(),r.createElementBlock("div",YB,[r.renderSlot(Pe.$slots,"empty-message",{},()=>[r.createTextVNode(r.toDisplayString(Pe.emptyMessage),1)],!0)])):r.createCommentVNode("",!0)],2),Pe.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",GB,[Pe.hideRowsPerPage?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KB,[r.createTextVNode(r.toDisplayString(Pe.rowsPerPageMessage)+" ",1),r.createVNode(rB,{modelValue:r.unref(ye),"onUpdate:modelValue":rn[0]||(rn[0]=Me=>r.isRef(ye)?ye.value=Me:null),"rows-items":r.unref(re)},null,8,["modelValue","rows-items"])])),r.createElementVNode("div",XB,r.toDisplayString(`${r.unref(be)}–${r.unref(Re)}`)+" "+r.toDisplayString(r.unref(V))+" "+r.toDisplayString(r.unref(ut)),1),r.unref(Y)?r.renderSlot(Pe.$slots,"pagination",r.normalizeProps(r.mergeProps({key:1},{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)})),void 0,!0):(r.openBlock(),r.createBlock(CB,{key:2,"is-first-page":r.unref(_e),"is-last-page":r.unref(te),onClickNextPage:r.unref(Ee),onClickPrevPage:r.unref(He)},r.createSlots({_:2},[Pe.buttonsPagination?{name:"buttonsPagination",fn:r.withCtx(()=>[r.createVNode(yB,{"current-pagination-number":r.unref(zt),"max-pagination-number":r.unref(Kt),onUpdatePage:r.unref(G)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hb=Da(JB,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hb);const QB={class:"relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-2xs"},ZB={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},eL={class:"items-center sm:flex","data-test-results":""},tL={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},nL={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},rL=r.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,a=t,o=r.computed(()=>n.dataTable),i=r.computed(()=>o.value?.clientItemsLength??0),s=r.computed(()=>o.value?.maxPaginationNumber),l=r.computed(()=>n.currentPage??o.value?.currentPaginationNumber);function c(){a("nextPage")}function u(){a("previousPage")}function d(p){a("updatePage",p)}function f(){a("updatePage",1)}return(p,m)=>(r.openBlock(),r.createElementBlock("div",QB,[r.createElementVNode("div",ZB,[r.createElementVNode("div",eL,[o.value?(r.openBlock(),r.createElementBlock("div",tL,[m[1]||(m[1]=r.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1)),r.createVNode(r.unref(iu),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":m[0]||(m[0]=v=>o.value.rowsPerPageActiveOption=v),"can-clear":!1,"can-deselect":!1,options:o.value.rowsPerPageOptions,"additional-classes":{singleLabel:"p-3!",caret:"mr-2!"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):r.createCommentVNode("",!0),r.createElementVNode("div",nL,[r.renderSlot(p.$slots,"results",{results:i.value},()=>[r.createTextVNode(r.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(r.openBlock(),r.createBlock(r.unref(Ib),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:d,onNextPage:c,onPreviousPage:u},null,8,["current-page","last-page"])):r.createCommentVNode("",!0)])]))}}),aL={key:0,class:"w-full -mt-24 -translate-y-0.5"},oL=r.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:r.mergeModels({headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"},hideFooter:{type:Boolean,default:!1}},{sort:{},sortModifiers:{}}),emits:r.mergeModels(["update:modelValue","updatePage","clickItem","contextMenuOpen","clickContextItem","sortClient"],["update:sort"]),setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.useSlots(),s=Mi(),l=fu(),c=r.useModel(e,"sort"),u=Zt.useKeyModifier("Alt"),d=r.ref(),f=r.ref(a?.modelValue??void 0),p=r.computed(()=>d.value);r.watch(()=>f.value,g=>{f.value&&a.actionBarSelection!==!1&&o("update:modelValue",[...g.map(x=>x?.[a.actionBarSelectionKey])])}),r.onMounted(()=>{a?.modelValue&&r.watch(a.modelValue,g=>{f.value=g})});function m(g){if(f.value&&s.setTableSelection(f.value),!g&&a.actionBarSelection){s.setSelection(f.value.map(x=>x?.[a.actionBarSelectionKey]));return}g&&a.actionBarSelection&&s.setSelection(g.map(x=>x?.[a.actionBarSelectionKey])),a.actionBarSelection===!1&&o("update:modelValue",[...g.map(x=>x?.[a.actionBarSelectionKey])])}function v(g){p.value?.updatePage(g),o("updatePage",g)}function y(){p.value?.prevPage(),o("updatePage",(p.value?.currentPaginationNumber??2)-1)}function w(){p.value?.nextPage(),o("updatePage",(p.value?.currentPaginationNumber??0)+1)}function b(g){if(u.value&&f.value!==void 0){const x=f.value.findIndex(C=>C.id===g.id);if(x>-1){f.value.splice(x,1),m();return}f.value.push({...g,isSelected:void 0}),m();return}o("clickItem",g)}function E(g){if(g.sortBy){c.value=`${g.sortType==="desc"?"-":""}${g.sortBy}`;return}c.value=void 0}function _(g){o("sortClient",g)}return t({dataTableInstance:p}),s.onResetSelection.value=g=>{a?.modelValue!==void 0&&(f.value=g)},(g,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"app-table-without-selection":a?.modelValue===void 0},"app-data-table-wrapper"])},[r.createVNode(r.unref(hb),r.mergeProps({ref_key:"dataTable",ref:d},{...g.$props,...g.$attrs},{"items-selected":f.value,"onUpdate:itemsSelected":[x[0]||(x[0]=C=>f.value=C),m],"hide-footer":!0,class:{"app-hide-footer":g.hideFooter},headers:g.headers,"checkbox-column-width":30,"rows-items":g.rowItems,"rows-per-page":g.rowsPerPage,"body-row-class-name":"drop-shadow-xs rounded-xl",onClickRow:b,onContextmenuRow:r.unref(l).open,"onUpdate:serverOptions":E,onUpdateSort:_}),r.createSlots({loading:r.withCtx(()=>[r.createVNode(r.unref(Na),{size:"medium"})]),_:2},[r.renderList(Object.keys(r.unref(i)),(C,P)=>({name:C,fn:r.withCtx(O=>[r.renderSlot(g.$slots,C,r.normalizeProps(r.guardReactiveProps(O)))])}))]),1040,["items-selected","class","headers","rows-items","rows-per-page","onContextmenuRow"]),p.value&&!g.hideFooter?(r.openBlock(),r.createElementBlock("div",aL,[r.createVNode(rL,{"data-table":p.value,"current-page":g.currentPage,onNextPage:w,onPreviousPage:y,onUpdatePage:v},{results:r.withCtx(({results:C})=>[r.renderSlot(g.$slots,"footer-results",{results:C})]),_:3},8,["data-table","current-page"])])):r.createCommentVNode("",!0)],2))}}),iL=(e,t,n)=>{const a=e[t];return a?typeof a=="function"?a():Promise.resolve(a):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Sa=Math.min,Tn=Math.max,hc=Math.round,wl=Math.floor,Pr=e=>({x:e,y:e}),sL={left:"right",right:"left",bottom:"top",top:"bottom"},lL={start:"end",end:"start"};function Ef(e,t,n){return Tn(e,Sa(t,n))}function Ca(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function im(e){return e==="x"?"y":"x"}function sm(e){return e==="y"?"height":"width"}const cL=new Set(["top","bottom"]);function Sr(e){return cL.has(Jr(e))?"y":"x"}function lm(e){return im(Sr(e))}function uL(e,t,n){n===void 0&&(n=!1);const a=Ii(e),o=lm(e),i=sm(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vc(s)),[s,vc(s)]}function dL(e){const t=vc(e);return[Tf(e),t,Tf(t)]}function Tf(e){return e.replace(/start|end/g,t=>lL[t])}const m0=["left","right"],h0=["right","left"],fL=["top","bottom"],pL=["bottom","top"];function mL(e,t,n){switch(e){case"top":case"bottom":return n?t?h0:m0:t?m0:h0;case"left":case"right":return t?fL:pL;default:return[]}}function hL(e,t,n,a){const o=Ii(e);let i=mL(Jr(e),n==="start",a);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Tf)))),i}function vc(e){return e.replace(/left|right|bottom|top/g,t=>sL[t])}function vL(e){return{top:0,right:0,bottom:0,left:0,...e}}function vb(e){return typeof e!="number"?vL(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function v0(e,t,n){let{reference:a,floating:o}=e;const i=Sr(t),s=lm(t),l=sm(s),c=Jr(t),u=i==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[l]/2-o[l]/2;let m;switch(c){case"top":m={x:d,y:a.y-o.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-o.width,y:f};break;default:m={x:a.x,y:a.y}}switch(Ii(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const gL=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=v0(u,a,c),p=a,m={},v=0;for(let y=0;y<l.length;y++){const{name:w,fn:b}=l[y],{x:E,y:_,data:g,reset:x}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=E??d,f=_??f,m={...m,[w]:{...m[w],...g}},x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:f}=v0(u,p,c)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}};async function cm(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Ca(t,e),v=vb(m),w=l[p?f==="floating"?"reference":"floating":f],b=gc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),E=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),g=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},x=gc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:_,strategy:c}):E);return{top:(b.top-x.top+v.top)/g.y,bottom:(x.bottom-b.bottom+v.bottom)/g.y,left:(b.left-x.left+v.left)/g.x,right:(x.right-b.right+v.right)/g.x}}const yL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Ca(e,t)||{};if(u==null)return{};const f=vb(d),p={x:n,y:a},m=lm(o),v=sm(m),y=await s.getDimensions(u),w=m==="y",b=w?"top":"left",E=w?"bottom":"right",_=w?"clientHeight":"clientWidth",g=i.reference[v]+i.reference[m]-p[m]-i.floating[v],x=p[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=C?C[_]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=l.floating[_]||i.floating[v]);const O=g/2-x/2,A=P/2-y[v]/2-1,L=Sa(f[b],A),U=Sa(f[E],A),z=L,R=P-y[v]-U,I=P/2-y[v]/2+O,B=Ef(z,I,R),M=!c.arrow&&Ii(o)!=null&&I!==B&&i.reference[v]/2-(I<z?L:U)-y[v]/2<0,$=M?I<z?I-z:I-R:0;return{[m]:p[m]+$,data:{[m]:B,centerOffset:I-B-$,...M&&{alignmentOffset:$}},reset:M}}}),bL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=Ca(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Jr(o),E=Sr(l),_=Jr(l)===l,g=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(_||!y?[vc(l)]:dL(l)),C=v!=="none";!p&&C&&x.push(...hL(l,y,v,g));const P=[l,...x],O=await cm(t,w),A=[];let L=((a=i.flip)==null?void 0:a.overflows)||[];if(d&&A.push(O[b]),f){const I=uL(o,s,g);A.push(O[I[0]],O[I[1]])}if(L=[...L,{placement:o,overflows:A}],!A.every(I=>I<=0)){var U,z;const I=(((U=i.flip)==null?void 0:U.index)||0)+1,B=P[I];if(B&&(!(f==="alignment"?E!==Sr(B):!1)||L.every(K=>Sr(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:B}};let M=(z=L.filter($=>$.overflows[0]<=0).sort(($,K)=>$.overflows[1]-K.overflows[1])[0])==null?void 0:z.placement;if(!M)switch(m){case"bestFit":{var R;const $=(R=L.filter(K=>{if(C){const V=Sr(K.placement);return V===E||V==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((K,V)=>K[1]-V[1])[0])==null?void 0:R[0];$&&(M=$);break}case"initialPlacement":M=l;break}if(o!==M)return{reset:{placement:M}}}return{}}}},gb=new Set(["left","top"]);async function wL(e,t){const{placement:n,platform:a,elements:o}=e,i=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=Jr(n),l=Ii(n),c=Sr(n)==="y",u=gb.has(s)?-1:1,d=i&&c?-1:1,f=Ca(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(m=l==="end"?v*-1:v),c?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const kL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await wL(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},_L=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:b,y:E}=w;return{x:b,y:E}}},...c}=Ca(e,t),u={x:n,y:a},d=await cm(t,c),f=Sr(Jr(o)),p=im(f);let m=u[p],v=u[f];if(i){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",E=m+d[w],_=m-d[b];m=Ef(E,m,_)}if(s){const w=f==="y"?"top":"left",b=f==="y"?"bottom":"right",E=v+d[w],_=v-d[b];v=Ef(E,v,_)}const y=l.fn({...t,[p]:m,[f]:v});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[p]:i,[f]:s}}}}}},SL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Ca(e,t),d={x:n,y:a},f=Sr(o),p=im(f);let m=d[p],v=d[f];const y=Ca(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const _=p==="y"?"height":"width",g=i.reference[p]-i.floating[_]+w.mainAxis,x=i.reference[p]+i.reference[_]-w.mainAxis;m<g?m=g:m>x&&(m=x)}if(u){var b,E;const _=p==="y"?"width":"height",g=gb.has(Jr(o)),x=i.reference[f]-i.floating[_]+(g&&((b=s.offset)==null?void 0:b[f])||0)+(g?0:w.crossAxis),C=i.reference[f]+i.reference[_]+(g?0:((E=s.offset)==null?void 0:E[f])||0)-(g?w.crossAxis:0);v<x?v=x:v>C&&(v=C)}return{[p]:m,[f]:v}}}},CL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...u}=Ca(e,t),d=await cm(t,u),f=Jr(o),p=Ii(o),m=Sr(o)==="y",{width:v,height:y}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=f,w=p==="end"?"top":"bottom");const E=y-d.top-d.bottom,_=v-d.left-d.right,g=Sa(y-d[w],E),x=Sa(v-d[b],_),C=!t.middlewareData.shift;let P=g,O=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(P=E),C&&!p){const L=Tn(d.left,0),U=Tn(d.right,0),z=Tn(d.top,0),R=Tn(d.bottom,0);m?O=v-2*(L!==0||U!==0?L+U:Tn(d.left,d.right)):P=y-2*(z!==0||R!==0?z+R:Tn(d.top,d.bottom))}await c({...t,availableWidth:O,availableHeight:P});const A=await s.getDimensions(l.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function cu(){return typeof window<"u"}function So(e){return um(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function um(e){return cu()?e instanceof Node||e instanceof Mn(e).Node:!1}function sr(e){return cu()?e instanceof Element||e instanceof Mn(e).Element:!1}function Or(e){return cu()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function g0(e){return!cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}const xL=new Set(["inline","contents"]);function js(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!xL.has(o)}const EL=new Set(["table","td","th"]);function TL(e){return EL.has(So(e))}const PL=[":popover-open",":modal"];function uu(e){return PL.some(t=>{try{return e.matches(t)}catch{return!1}})}const AL=["transform","translate","scale","rotate","perspective"],IL=["transform","translate","scale","rotate","perspective","filter"],ML=["paint","layout","strict","content"];function dm(e){const t=fm(),n=sr(e)?lr(e):e;return AL.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IL.some(a=>(n.willChange||"").includes(a))||ML.some(a=>(n.contain||"").includes(a))}function NL(e){let t=xa(e);for(;Or(t)&&!yi(t);){if(dm(t))return t;if(uu(t))return null;t=xa(t)}return null}function fm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OL=new Set(["html","body","#document"]);function yi(e){return OL.has(So(e))}function lr(e){return Mn(e).getComputedStyle(e)}function du(e){return sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xa(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g0(e)&&e.host||Lr(e);return g0(t)?t.host:t}function yb(e){const t=xa(e);return yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Or(t)&&js(t)?t:yb(t)}function Ss(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yb(e),i=o===((a=e.ownerDocument)==null?void 0:a.body),s=Mn(o);if(i){const l=Pf(s);return t.concat(s,s.visualViewport||[],js(o)?o:[],l&&n?Ss(l):[])}return t.concat(o,Ss(o,[],n))}function Pf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bb(e){const t=lr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=Or(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:a,l=hc(n)!==i||hc(a)!==s;return l&&(n=i,a=s),{width:n,height:a,$:l}}function pm(e){return sr(e)?e:e.contextElement}function Zo(e){const t=pm(e);if(!Or(t))return Pr(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:i}=bb(t);let s=(i?hc(n.width):n.width)/a,l=(i?hc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const BL=Pr(0);function wb(e){const t=Mn(e);return!fm()||!t.visualViewport?BL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mn(e)?!1:t}function vo(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=pm(e);let s=Pr(1);t&&(a?sr(a)&&(s=Zo(a)):s=Zo(e));const l=LL(i,n,a)?wb(i):Pr(0);let c=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Mn(i),m=a&&sr(a)?Mn(a):a;let v=p,y=Pf(v);for(;y&&a&&m!==v;){const w=Zo(y),b=y.getBoundingClientRect(),E=lr(y),_=b.left+(y.clientLeft+parseFloat(E.paddingLeft))*w.x,g=b.top+(y.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,f*=w.y,c+=_,u+=g,v=Mn(y),y=Pf(v)}}return gc({width:d,height:f,x:c,y:u})}function mm(e,t){const n=du(e).scrollLeft;return t?t.left+n:vo(Lr(e)).left+n}function kb(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-(n?0:mm(e,a)),i=a.top+t.scrollTop;return{x:o,y:i}}function DL(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const i=o==="fixed",s=Lr(a),l=t?uu(t.floating):!1;if(a===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Pr(1);const d=Pr(0),f=Or(a);if((f||!f&&!i)&&((So(a)!=="body"||js(s))&&(c=du(a)),Or(a))){const m=vo(a);u=Zo(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}const p=s&&!f&&!i?kb(s,c,!0):Pr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function RL(e){return Array.from(e.getClientRects())}function $L(e){const t=Lr(e),n=du(e),a=e.ownerDocument.body,o=Tn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Tn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+mm(e);const l=-n.scrollTop;return lr(a).direction==="rtl"&&(s+=Tn(t.clientWidth,a.clientWidth)-o),{width:o,height:i,x:s,y:l}}function zL(e,t){const n=Mn(e),a=Lr(e),o=n.visualViewport;let i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const u=fm();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}const VL=new Set(["absolute","fixed"]);function FL(e,t){const n=vo(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,i=Or(e)?Zo(e):Pr(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=a*i.y;return{width:s,height:l,x:c,y:u}}function y0(e,t,n){let a;if(t==="viewport")a=zL(e,n);else if(t==="document")a=$L(Lr(e));else if(sr(t))a=FL(t,n);else{const o=wb(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gc(a)}function _b(e,t){const n=xa(e);return n===t||!sr(n)||yi(n)?!1:lr(n).position==="fixed"||_b(n,t)}function jL(e,t){const n=t.get(e);if(n)return n;let a=Ss(e,[],!1).filter(l=>sr(l)&&So(l)!=="body"),o=null;const i=lr(e).position==="fixed";let s=i?xa(e):e;for(;sr(s)&&!yi(s);){const l=lr(s),c=dm(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&VL.has(o.position)||js(s)&&!c&&_b(e,s))?a=a.filter(d=>d!==s):o=l,s=xa(s)}return t.set(e,a),a}function HL(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const s=[...n==="clippingAncestors"?uu(t)?[]:jL(t,this._c):[].concat(n),a],l=s[0],c=s.reduce((u,d)=>{const f=y0(t,d,o);return u.top=Tn(f.top,u.top),u.right=Sa(f.right,u.right),u.bottom=Sa(f.bottom,u.bottom),u.left=Tn(f.left,u.left),u},y0(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function UL(e){const{width:t,height:n}=bb(e);return{width:t,height:n}}function WL(e,t,n){const a=Or(t),o=Lr(t),i=n==="fixed",s=vo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Pr(0);function u(){c.x=mm(o)}if(a||!a&&!i)if((So(t)!=="body"||js(o))&&(l=du(t)),a){const m=vo(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();i&&!a&&o&&u();const d=o&&!a&&!i?kb(o,l):Pr(0),f=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function hd(e){return lr(e).position==="static"}function b0(e,t){if(!Or(e)||lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function Sb(e,t){const n=Mn(e);if(uu(e))return n;if(!Or(e)){let o=xa(e);for(;o&&!yi(o);){if(sr(o)&&!hd(o))return o;o=xa(o)}return n}let a=b0(e,t);for(;a&&TL(a)&&hd(a);)a=b0(a,t);return a&&yi(a)&&hd(a)&&!dm(a)?n:a||NL(e)||n}const qL=async function(e){const t=this.getOffsetParent||Sb,n=this.getDimensions,a=await n(e.floating);return{reference:WL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function YL(e){return lr(e).direction==="rtl"}const GL={convertOffsetParentRelativeRectToViewportRelativeRect:DL,getDocumentElement:Lr,getClippingRect:HL,getOffsetParent:Sb,getElementRects:qL,getClientRects:RL,getDimensions:UL,getScale:Zo,isElement:sr,isRTL:YL};function Cb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KL(e,t){let n=null,a;const o=Lr(e);function i(){var l;clearTimeout(a),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(l||t(),!p||!m)return;const v=wl(f),y=wl(o.clientWidth-(d+p)),w=wl(o.clientHeight-(f+m)),b=wl(d),_={rootMargin:-v+"px "+-y+"px "+-w+"px "+-b+"px",threshold:Tn(0,Sa(1,c))||1};let g=!0;function x(C){const P=C[0].intersectionRatio;if(P!==c){if(!g)return s();P?s(!1,P):a=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Cb(u,e.getBoundingClientRect())&&s(),g=!1}try{n=new IntersectionObserver(x,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,_)}n.observe(e)}return s(!0),i}function XL(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=pm(e),d=o||i?[...u?Ss(u):[],...Ss(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=u&&l?KL(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[E]=b;E&&E.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let v,y=c?vo(e):null;c&&w();function w(){const b=vo(e);y&&!Cb(y,b)&&n(),y=b,v=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const xb=kL,JL=_L,Eb=bL,QL=CL,ZL=yL,eD=SL,tD=(e,t,n)=>{const a=new Map,o={platform:GL,...n},i={...o.platform,_c:a};return gL(e,t,{...o,platform:i})};function nD(e){return e!=null&&typeof e=="object"&&"$el"in e}function rD(e){if(nD(e)){const t=e.$el;return um(t)&&So(t)==="#comment"?null:t}return e}function aD(e){return typeof e=="function"?e():r.unref(e)}function oD(e){return{name:"arrow",options:e,fn(t){const n=rD(aD(e.element));return n==null?{}:ZL({element:n,padding:e.padding}).fn(t)}}}const Tb=r.defineComponent({__name:"Loading",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(Na))]))}}),iD=Object.freeze(Object.defineProperty({__proto__:null,default:Tb},Symbol.toStringTag,{value:"Module"})),Pb=r.defineComponent({__name:"Error",setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ey),{type:"error",title:"Onbekend type",description:"Type wordt niet ondersteund."}))}}),sD=Object.freeze(Object.defineProperty({__proto__:null,default:Pb},Symbol.toStringTag,{value:"Module"})),lD={default:["text-white"],danger:["text-red-500"]},cD={contextMenu:["focus:bg-zinc-600","px-2","py-1"],actionBar:["hover:bg-black-100/20"]},uD={actionBar:"before:-top-4 before:left-1/2 before:border-x-10 before:border-b-10 before:border-x-transparent before:border-b-secondary",contextMenu:""},dD=r.defineComponent({__name:"AppActionBarSubMenu",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=Zt.useParentElement(),i=r.useTemplateRef("subMenu"),s=r.useTemplateRef("submenuArrow"),{position:l}=Hs(o,i,{placement:n.context?"right-start":"bottom",middleware:[xb({mainAxis:n.context?25:20,crossAxis:0}),JL({padding:n.context?25:20,limiter:eD()}),Eb({mainAxis:!0,crossAxis:!0}),oD({element:s})]}),c=r.defineAsyncComponent({loader:async()=>typeof n.action.component=="string"?iL(Object.assign({"./Components/Error.vue":()=>Promise.resolve().then(()=>sD),"./Components/Loading.vue":()=>Promise.resolve().then(()=>iD),"./Components/MultiSelect.vue":()=>Promise.resolve().then(()=>xJ)}),`./Components/${cg.pascal(n.action.component)}.vue`,3):n.action.component,errorComponent:Pb,loadingComponent:Tb}),u=r.computed(()=>`${l.value?.placement}`.startsWith("left")?"left":"right"),d=r.computed(()=>l.value?.middlewareData?.arrow?.x??null);return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref:"subMenu",class:r.normalizeClass([{"-top-full left-full":n.context},"absolute w-fit rounded-lg bg-secondary p-2"])},[r.createElementVNode("div",{ref:"submenuArrow",class:r.normalizeClass([{"-translate-x-6 -ml-px":u.value==="right","translate-x-4":u.value==="left",hidden:!n.context},"absolute text-secondary size-8"]),style:r.normalizeStyle({left:d.value!==null&&u.value==="right"?`${d.value}px`:"",right:u.value==="left"?`${d.value??0}px`:"",top:r.unref(l)?.middlewareData?.arrow?.y!==null?`${r.unref(l)?.middlewareData?.arrow?.y}px`:""})},[r.createVNode(r.unref(yn),{icon:r.unref(bn).fas["caret-left"],class:r.normalizeClass([{"rotate-180":u.value==="left"},"size-full!"])},null,8,["icon","class"])],6),r.createElementVNode("div",{class:r.normalizeClass([r.unref(uD)[n.context?"contextMenu":"actionBar"],"relative w-fit before:absolute before:-translate-x-3"])},[r.createVNode(r.unref(c),r.mergeProps({...n,...f.action.componentProperties},{"data-test-action-menu":"",onClose:p[0]||(p[0]=()=>a("close"))}),null,16)],2)],2))}}),Ab=r.defineComponent({__name:"AppActionBarItem",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean,default:!1},item:{default:void 0}},emits:["close","confirm","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=Mi(),i=fu(),s=r.useTemplateRef("submenuElement"),{activate:l,deactivate:c,onEscape:u,onBack:d}=bm(s),f=r.ref(!1),p=r.ref(!1),m=r.ref([]),v=r.computed(()=>p.value?Na:f.value&&n.action.confirm?Ap:n.action.icon),y=r.computed(()=>n.action.type??"default"),w=r.computed(()=>typeof n.action.hidden=="function"?n.context&&i.item?n.action.hidden([r.toValue(i.item)],!0):n.action.hidden(o.tableSelection.value,!1):n.action.hidden);r.onMounted(()=>{n.confirmed&&(f.value=!0)});async function b(){if((n.action.confirm||n.action.component)&&!f.value){f.value=!0,n.action.component&&(await r.nextTick(),a("confirm"),await r.nextTick(),n.action.focusTrap!==!1&&setTimeout(l,300));return}p.value=!0,f.value=!1;const g=await n.action.onClick?.(n.item??o.tableSelection.value);p.value=!1,(n.action?.resetSelection??!0)&&o.resetSelection(),g&&a("close")}function E(){c(),f.value=!1,a("confirmed")}function _(){E(),a("close")}return u(_),d(E),(g,x)=>{const C=r.resolveDirective("tippy");return w.value!==!0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([[...r.unref(lD)[y.value],...r.unref(cD)[n.context?"contextMenu":"actionBar"],n.action.component?"has-submenu":""],"relative cursor-pointer rounded-md transition-colors duration-200"])},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"px-2.5 py-4":!g.context},"app-action-bar-item flex size-full items-center space-x-2 whitespace-nowrap"]),"data-test-action-bar-icon":"",onClick:b},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.value),{class:r.normalizeClass({"text-yellow-600":f.value&&g.action.confirm,"size-4":g.context,"size-5":!g.context,"size-5!":p.value})},null,8,["class"])),r.renderSlot(g.$slots,"default"),g.action.suffixIcon&&g.context?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(g.action.suffixIcon),{key:0,class:"size-5 ml-auto"})):r.createCommentVNode("",!0)],2)),[[C,g.context?void 0:g.action.name]]),n.action.component&&f.value?(r.openBlock(),r.createBlock(dD,r.mergeProps({key:0,ref_key:"submenuElement",ref:s,modelValue:m.value,"onUpdate:modelValue":x[0]||(x[0]=P=>m.value=P)},n,{onClose:E}),null,16,["modelValue"])):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0)}}}),fD={class:"flex py-4.5"},pD={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},mD={class:"flex"},hm=r.defineComponent({__name:"AppActionBar",setup(e){const t=r.useTemplateRef("actionBar"),{selection:n,actions:a,isOpen:o,close:i,resetSelection:s,selectionText:l}=Mi(),{setComputedPosition:c}=Hs(()=>document.getElementById("sidebar-left-wrapper"),t,{active:!0,placement:"left-start",mainAxis:0,sizeElement:"#sidebar-wrapper"}),u=r.ref([1]),d=r.computed(()=>l.value.replace(":selection",String(n.value.length)));r.watch(o,()=>c()),r.watch(n,()=>{n.value.length===0&&i()});function f(){u.value=[1],s()}function p(){s(),i()}return Zt.onKeyStroke(["Escape"],m=>{m.preventDefault(),p()}),(m,v)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{ref_key:"actionBar",ref:t,class:r.normalizeClass([{"translate-y-0! max-md:mt-0!":r.unref(n).length>0&&r.unref(o)},"fixed inset-x-0 top-0 z-100 flex h-14 md:-mt-1 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-[translate] ease-in-out max-md:transform-none! max-md:translate-none! max-md:-mt-10"]),"data-test-action-bar-wrapper":""},[r.createElementVNode("div",fD,[r.createVNode(nb,{modelValue:u.value,"onUpdate:modelValue":v[0]||(v[0]=y=>u.value=y),value:1,type:"checkbox",onChange:f},null,8,["modelValue"]),r.createElementVNode("div",pD,r.toDisplayString(d.value),1)]),r.createElementVNode("div",mD,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(y,w)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${w}`,action:y,onClose:p},null,8,["action"]))),128))]),r.createElementVNode("div",null,[r.createVNode(r.unref(km),{class:"size-5 cursor-pointer",onClick:p})])],2)]))}}),vd=r.defineComponent({__name:"AppPaginationItem",props:{as:{default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.as),{class:r.normalizeClass([{"-ml-px border-primary! bg-primary text-white hover:bg-primary!":t.active,"border-y border-y-zinc-300! bg-zinc-100! text-zinc-300!":t.disabled,"hover:border-y hover:border-zinc-300 hover:bg-zinc-100":t.as==="a"},"-my-px flex items-center border-y border-r border-y-transparent border-r-zinc-300 px-3 py-1 last:border-r-0"])},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),hD={class:"my-0! flex items-center justify-between border-zinc-200 sm:px-6"},Ib=r.defineComponent({__name:"AppPagination",props:{meta:{default:void 0},currentPage:{default:void 0},lastPage:{default:void 0},loaded:{type:Boolean,default:!0}},emits:["paginate","nextPage","previousPage"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(2),i=r.computed(()=>n.meta?.meta?.currentPage??n.currentPage??1),s=r.computed(()=>n.meta?.meta?.lastPage??n.lastPage??1),l=r.computed(()=>{const m=i.value-o.value;return m>0?m:1}),c=r.computed(()=>{const m=i.value+o.value;return m<s.value?m:s.value}),u=r.computed(()=>{const m=i.value-1;return m>0?m:null}),d=r.computed(()=>{const m=i.value+1;return m<=s.value?m:null}),f=r.computed(()=>{const m=[];l.value>1&&(m.push(1),l.value>2&&m.push(0));for(let v=l.value;v<=c.value;v+=1)m.push(v);return c.value<s.value&&(c.value+1!==s.value&&m.push(0),m.push(s.value)),m});function p(m){m&&a("paginate",m)}return(m,v)=>(r.openBlock(),r.createElementBlock("div",hD,[r.createElementVNode("div",null,[r.createElementVNode("nav",{class:r.normalizeClass([{"pointer-events-none opacity-50":!m.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[r.createVNode(vd,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:v[0]||(v[0]=r.withModifiers(()=>a("previousPage"),["prevent"]))},{default:r.withCtx(()=>[v[2]||(v[2]=r.createElementVNode("span",{class:"sr-only"},"previous",-1)),r.createVNode(r.unref(wm),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[2]},8,["disabled"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,y=>(r.openBlock(),r.createBlock(vd,{key:`pagination-${y}`,as:y?"a":"span",active:y===i.value,href:"#",onClick:r.withModifiers(()=>p(y),["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),r.createVNode(vd,{class:r.normalizeClass([{"cursor-not-allowed":d.value===null},"rounded-r-lg"]),disabled:d.value===null,href:"#",onClick:v[1]||(v[1]=r.withModifiers(()=>a("nextPage"),["prevent"]))},{default:r.withCtx(()=>[v[3]||(v[3]=r.createElementVNode("span",{class:"sr-only"},"next",-1)),r.createVNode(r.unref(Jb),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[3]},8,["class","disabled"])],2)])]))}}),vD=["aria-checked","disabled"],Mb=r.defineComponent({__name:"AppToggle",props:r.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue");function a(){t.disabled||(n.value=!n.value)}return(o,i)=>(r.openBlock(),r.createElementBlock("button",{"aria-checked":n.value,disabled:o.disabled,type:"button",class:"group relative inline-flex h-6 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-zinc-200 transition-colors duration-200 ease-in-out disabled:cursor-not-allowed disabled:opacity-60 aria-checked:bg-primary",role:"switch",onClick:a},i[0]||(i[0]=[r.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block size-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1)]),8,vD))}}),gD={class:"flex justify-between"},yD={"data-test-title":""},bD={key:0,"data-test-default-slot":""},wD=r.defineComponent({__name:"AppToggleCard",props:r.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue"),n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([a.disabled?"bg-zinc-50":"bg-white","rounded-xl p-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[r.createElementVNode("div",gD,[r.createElementVNode("span",yD,[r.renderSlot(a.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(a.title),1)])]),r.createVNode(r.unref(Mb),{ref:a.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:a.disabled,"data-test-toggle":""},null,8,["modelValue","disabled"])]),r.unref(n).default?r.withDirectives((r.openBlock(),r.createElementBlock("div",bD,[r.renderSlot(a.$slots,"default")],512)),[[r.vShow,t.value]]):r.createCommentVNode("",!0)],2))}}),kD=["href","onClick"],_D={class:"text-base font-bold","data-test-text":""},SD=r.defineComponent({__name:"AppMenuItem",props:{name:{},icon:{},to:{},visible:{type:Boolean,default:!0},replace:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const a=r.resolveComponent("RouterLink");return t.visible?(r.openBlock(),r.createBlock(a,{key:0,to:t.to,replace:t.replace,custom:""},{default:r.withCtx(({href:o,isActive:i,navigate:s})=>[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("a",{href:o,class:r.normalizeClass([{"bg-zinc-100 hover:bg-zinc-100!":i},"flex cursor-pointer items-center space-x-2 rounded-lg px-4 py-3 hover:bg-zinc-100"]),onClick:s},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{class:"size-4 stroke-2","data-test-icon":""})),r.createElementVNode("span",_D,r.toDisplayString(t.name),1)],10,kD)])]),_:3},8,["to","replace"])):r.createCommentVNode("",!0)}}}),CD={class:"space-y-4"},xD={class:"flex w-full px-2"},ED={class:"text-base"},TD={class:"text-base"},PD=r.defineComponent({__name:"AppMenu",props:{responsive:{type:Boolean,default:!0},items:{}},setup(e){const t=ei.useRoute(),n=r.ref(t),a=ei.useRouter();async function o(i){await a.push(i)}return(i,s)=>(r.openBlock(),r.createElementBlock("div",CD,[i.responsive?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"md:hidden":i.responsive},"block"])},[r.createVNode(r.unref(iu),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),options:i.items,"can-clear":!1,"append-to-body":!0,"open-direction":"down","dropdown-classes":"max-h-48!","wrapper-classes":"w-full","value-prop":"to",onSelect:o},{singlelabel:r.withCtx(l=>[r.createElementVNode("div",xD,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value.icon),{class:"mr-2 size-6","data-test-icon":""})),r.createElementVNode("span",ED,r.toDisplayString(l.value.name),1)])]),option:r.withCtx(l=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.option.icon),{class:"mr-2 size-5","data-test-icon":""})),r.createElementVNode("span",TD,r.toDisplayString(l.option.name),1)]),_:1},8,["modelValue","options"])],2)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{hidden:i.responsive},"mt-0! md:block md:space-y-2"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,l=>(r.openBlock(),r.createBlock(SD,r.mergeProps({ref_for:!0},l,{key:l.name}),null,16))),128))],2)]))}}),AD={class:"flex flex-col space-y-4 border-b border-zinc-200 py-8 lg:flex-row lg:space-x-10 lg:space-y-0"},ID={class:"flex shrink-0 flex-col lg:w-80 lg:space-y-1"},MD={key:0,class:"text-xl font-bold text-zinc-900","data-test-title":""},ND={key:0,class:"text-zinc-700","data-test-description":""},OD={class:"w-full min-w-0"},BD=r.defineComponent({__name:"AppSection",props:{title:{},description:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("section",AD,[r.createElementVNode("div",ID,[r.renderSlot(t.$slots,"titleDescription",{},()=>[r.renderSlot(t.$slots,"title",{},()=>[t.title?(r.openBlock(),r.createElementBlock("h3",MD,r.toDisplayString(t.title),1)):r.createCommentVNode("",!0)]),r.renderSlot(t.$slots,"description",{},()=>[t.description?(r.openBlock(),r.createElementBlock("p",ND,r.toDisplayString(t.description),1)):r.createCommentVNode("",!0)])])]),r.createElementVNode("div",OD,[r.renderSlot(t.$slots,"default")])]))}}),LD=r.defineComponent({__name:"ShortcutItem",props:{shortcut:{},item:{}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(n.shortcut.name);async function i(s){const l=await n.shortcut.click(n.shortcut,n.item,s);n.shortcut.copied&&(o.value="Gekopieërd",setTimeout(()=>{o.value=n.shortcut.name},1500)),l===!0&&a("close")}return(s,l)=>(r.openBlock(),r.createElementBlock("button",{type:"button",tabindex:"-1",class:"w-full p-1.5 text-xxs text-white cursor-pointer hover:bg-zinc-600 focus:outline-0",onClick:i},r.toDisplayString(s.shortcut.copied?o.value:s.shortcut.name),1))}}),DD={class:"text-base"},Nb=r.defineComponent({__name:"AppContextMenu",props:{item:{},event:{},actions:{},confirmed:{}},emits:["actionClicked","close","open","cancel"],setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.ref(!0),s=r.ref(!1),l=Mi(),c=fu(),u=r.ref(),d=Hb(u),{activate:f,deactivate:p,onEscape:m}=bm(u),v=r.computed(()=>a.actions??l.actions.value);r.onUnmounted(p);async function y(){i.value=!0,o("open"),document.querySelector("#app")?.classList.add("context-menu-open"),d.setPosition(a.event.x,a.event.y),await r.nextTick(),f()}async function w(){i.value=!1,p(),o("close"),document.querySelector("#app")?.classList.remove("context-menu-open")}async function b(E){o("actionClicked",E),i.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:i,open:y,close:w,submit:b}),Zt.onClickOutside(u,w),m(w),(E,_)=>i.value&&(v.value.length>0||r.unref(c).shortcuts.value.length>0)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"contextMenuElement",ref:u,style:r.normalizeStyle(`left: ${E.event.x}px; top: ${E.event.y}px;`),class:"app-context-menu fixed z-50 flex w-64 flex-col rounded-lg bg-secondary p-2 drop-shadow-card empty:hidden","data-test-context-menu":""},[r.unref(c).shortcuts.value.length>0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"mb-2":v.value.length>0},"flex justify-between divide-x divide-zinc-600 rounded-md border border-zinc-600"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).shortcuts.value,g=>(r.openBlock(),r.createBlock(LD,{key:g.name,shortcut:g,item:E.item,onClose:w},null,8,["shortcut","item"]))),128))],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.value,(g,x)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${x}`,action:g,context:!0,item:E.item,confirmed:E.confirmed&&E.confirmed===g.key,tabindex:`100${x}`,class:"flex h-10 items-center space-x-2 first:rounded-t-lg last:rounded-b-lg focus:outline-none",onConfirm:r.unref(p),onConfirmed:r.unref(f),onClose:w,onMouseover:_[0]||(_[0]=C=>C.target?.focus())},{default:r.withCtx(()=>[r.createElementVNode("span",DD,r.toDisplayString(g.name),1)]),_:2},1032,["action","item","confirmed","tabindex","onConfirm","onConfirmed"]))),128))],4)):r.createCommentVNode("",!0)}}),RD={class:"mt-6"},$D={class:"overflow-hidden rounded-full bg-zinc-200"},zD=r.defineComponent({__name:"AppProgressBar",props:{steps:{},percentage:{},activeIndex:{},unmount:{type:Boolean,default:!0}},setup(e){const t=e,n=r.useSlots(),a=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8"],o=r.computed(()=>n.default!==void 0),i=r.computed(()=>t.steps?t.steps:n.default?.().map((c,u)=>({name:c?.props?.name??c?.type?.props?.name,completed:s.value>=u,active:s.value===u,component:c}))??[]),s=r.computed(()=>t.activeIndex!==void 0&&t.activeIndex>-1?t.activeIndex:i.value?.findIndex(c=>c.active)),l=r.computed(()=>t.percentage?t.percentage:i.value?i.value.filter(u=>u.completed).length/i.value.length*100:0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",RD,[r.createElementVNode("div",$D,[r.createElementVNode("div",{style:r.normalizeStyle(`width: ${l.value}%`),class:"h-2.5 rounded-full bg-primary transition-all","data-test-progress-bar":""},null,4)]),r.createElementVNode("div",{class:r.normalizeClass([a[i.value.length-1],"mt-3 hidden w-full text-sm font-medium text-zinc-600 sm:grid"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock("div",{key:`step-${f}`,class:r.normalizeClass([{"font-bold":d.completed},"text-base text-zinc-900"]),"data-test-step-title":""},[r.renderSlot(c.$slots,`step-${f+1}`,{step:d},()=>[r.createTextVNode(r.toDisplayString(d.name),1)])],2))),128))],2),o.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.unmount&&(d?.active??!0)||!c.unmount?r.withDirectives((r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.component),{key:f})),[[r.vShow,!c.unmount&&(d?.active??!0)||c.unmount]]):r.createCommentVNode("",!0)],64))),256)):r.createCommentVNode("",!0)])]))}}),VD={},FD={class:"mt-8"};function jD(e,t){return r.openBlock(),r.createElementBlock("div",FD,[r.renderSlot(e.$slots,"default")])}const HD=Dn(VD,[["render",jD]]);class w0{color="";constructor(t){this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([\dA-Fa-f]{4}|[\dA-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent():{color:this.color,opacity:"1"}}parseRgba(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseHsla(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseAlphaHex(){return{color:this.color.length===5?this.color.slice(0,4):this.color.slice(0,7),opacity:this.color.length===5?(parseInt(this.color.slice(4,5)+this.color.slice(4,5),16)/255).toFixed(2):(parseInt(this.color.slice(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}const UD=["height","width","viewBox"],WD=["id"],qD=["offset","stop-color","stop-opacity"],YD=["offset","stop-color","stop-opacity"],GD=["id"],KD=["stdDeviation"],XD=["points","fill","stroke","filter","stroke-width"],JD=["points","fill","stroke","stroke-width","stroke-linejoin"],QD=["points","fill"],ZD=r.defineComponent({__name:"Star",props:{fill:{default:0},points:{default:()=>[]},size:{default:50},starId:{},activeColor:{},inactiveColor:{},borderColor:{default:"#000"},activeBorderColor:{default:"#000"},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},glow:{default:0},glowColor:{default:void 0},animate:{type:Boolean,default:!1}},emits:["starMouseMove","starSelected"],setup(e,{emit:t}){const n=e,a=t,o=r.ref([19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56]),i=r.ref(""),s=r.ref(""),l=r.ref(!0),c=r.computed(()=>o.value.join(",")),u=r.computed(()=>`url(#${i.value})`),d=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?6:n.borderWidth),f=r.computed(()=>{const U=n.roundedCorners&&n.borderWidth<=0?parseInt(`${n.size}`,10)-parseInt(`${d.value}`,10):n.size;return parseInt(`${U}`,10)+parseInt(`${d.value}`,10)}),p=r.computed(()=>`${n.fill}%`),m=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?n.fill<=0?n.inactiveColor:n.activeColor:n.fill<=0?n.borderColor:n.activeBorderColor),v=r.computed(()=>[...o.value].reduce((U,z)=>Math.max(U,z))),y=r.computed(()=>`0 0 ${v.value} ${v.value}`),w=r.computed(()=>n.animate&&l.value),b=r.computed(()=>n.roundedCorners?"round":"miter");r.onBeforeMount(()=>{o.value=n.points.length>0?n.points:o.value,O(),i.value=P(),s.value=P()});function E(U){U.touchAction!=="undefined"&&a("starMouseMove",{position:x(U),id:n.starId})}function _(){r.nextTick(()=>{l.value=!0})}function g(){r.nextTick(()=>{l.value=!1})}function x(U){const z=.92*n.size,R=Math.max(U.offsetX,1),I=Math.round(100/z*R);return Math.min(I,100)}function C(U){a("starSelected",{id:n.starId,position:x(U)})}function P(){return Math.random().toString(36).slice(7)}function O(){o.value=o.value.map((U,z)=>{const R=z%2===0?d.value*1.5:0;return n.size/v.value*U+R})}function A(U){return new w0(U).parseAlphaColor().color}function L(U){return new w0(U).parseAlphaColor().opacity}return(U,z)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass([{"transition-all hover:rotate-12":w.value},"overflow-visible"]),height:f.value,width:f.value,viewBox:y.value,onMousemove:E,onClick:C,onTouchstart:_,onTouchend:g},[r.createElementVNode("linearGradient",{id:i.value,x1:"0",x2:"100%",y1:"0",y2:"0"},[r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.activeColor),"stop-opacity":L(U.activeColor)},null,8,qD),r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.inactiveColor),"stop-opacity":L(U.inactiveColor)},null,8,YD)],8,WD),r.createElementVNode("filter",{id:s.value,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[r.createElementVNode("feGaussianBlur",{stdDeviation:U.glow,result:"coloredBlur"},null,8,KD),z[0]||(z[0]=r.createElementVNode("feMerge",null,[r.createElementVNode("feMergeNode",{in:"coloredBlur"}),r.createElementVNode("feMergeNode",{in:"SourceGraphic"})],-1))],8,GD),r.withDirectives(r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:U.glowColor,filter:`url(#${s.value})`,"stroke-width":d.value},null,8,XD),[[r.vShow,U.glowColor&&U.glow>0&&U.fill>0]]),r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:m.value,"stroke-width":d.value,"stroke-linejoin":b.value},null,8,JD),r.createElementVNode("polygon",{points:c.value,fill:u.value},null,8,QD)],42,UD))}}),eR={class:"sr-only"},tR=r.defineComponent({__name:"StarRating",props:{rating:{default:0},increment:{default:1},roundStartRating:{type:Boolean,default:!0},activeColor:{default:"#ffd055"},inactiveColor:{default:"#d8d8d8"},maxRating:{default:5},starPoints:{default:()=>[]},starSize:{default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{default:""},inline:{type:Boolean,default:!1},borderColor:{default:"#999"},activeBorderColor:{default:null},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},padding:{default:0},rtl:{type:Boolean,default:!1},fixedPoints:{default:null},glow:{default:0},glowColor:{default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},emits:["update:rating","hover:rating"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(0),i=r.ref([]),s=r.ref(0),l=r.ref(0),c=r.ref(!1),u=r.computed(()=>n.fixedPoints===null?s.value:s.value.toFixed(n.fixedPoints)),d=r.computed(()=>c.value||n.roundStartRating),f=r.computed(()=>n.padding+n.borderWidth),p=r.computed(()=>Array.isArray(n.activeColor)?g(n.activeColor,n.maxRating,n.activeColor.slice(-1)[0]):Array.from({length:n.maxRating}).fill(n.activeColor)),m=r.computed(()=>n.activeOnClick?`${l.value>0?p.value[Math.ceil(l.value)-1]:n.inactiveColor}`:`${s.value>0?p.value[Math.ceil(s.value)-1]:n.inactiveColor}`),v=r.computed(()=>{if(Array.isArray(n.activeBorderColor))return g(n.activeBorderColor,n.maxRating,n.activeBorderColor.slice(-1)[0]);const x=n.activeBorderColor?n.activeBorderColor:n.borderColor;return Array.from({length:n.maxRating}).fill(x)}),y=r.computed(()=>n.activeOnClick?`${l.value>0?v.value[Math.ceil(l.value)-1]:n.borderColor}`:`${s.value>0?v.value[Math.ceil(s.value)-1]:n.borderColor}`),w=r.computed(()=>{const x=1/n.increment;return Math.min(n.maxRating,Math.ceil(s.value*x)/x)});r.watch(()=>n.rating,x=>{s.value=x,l.value=x,_(d.value)}),r.onBeforeMount(()=>{o.value=n.increment*100,s.value=n.rating,l.value=s.value,_(n.roundStartRating)});function b(x,C=!1){if(n.readOnly)return;const P=n.rtl?(100-x.position)/100:x.position/100;if(s.value=(x.id+P-1).toFixed(2),s.value=s.value>n.maxRating?n.maxRating:s.value,C){_(!0,!0),l.value=n.clearable&&s.value===l.value?0:s.value,a("update:rating",l.value),c.value=!0;return}_(!0,!n.activeOnClick),a("hover:rating",s.value)}function E(){n.readOnly||(s.value=l.value,_(d.value))}function _(x=!0,C=!0){s.value=x?w.value:s.value;for(let P=0;P<n.maxRating;P++){let O=0;P<s.value&&(O=s.value-P>1?100:(s.value-P)*100),C&&(i.value[P]=Math.round(O))}}function g(x,C,P){return Object.assign([C].fill(P),x)}return(x,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"inline-flex":x.inline},"flex items-center"])},[r.createElementVNode("div",eR,[r.renderSlot(x.$slots,"screen-reader",{rating:l.value,stars:x.maxRating},()=>[r.createElementVNode("span",null,"Rated "+r.toDisplayString(l.value)+" stars out of "+r.toDisplayString(x.maxRating),1)])]),r.createElementVNode("div",{class:"flex items-center",onMouseleave:E},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x.maxRating,P=>(r.openBlock(),r.createElementBlock("span",{key:P,class:r.normalizeClass([{"cursor-pointer":!x.readOnly},"inline-block"]),style:r.normalizeStyle(`margin-right: ${f.value}px`)},[r.createVNode(ZD,{fill:i.value[P-1],size:x.starSize,points:x.starPoints,"star-id":P,step:o.value,"active-color":m.value,"inactive-color":x.inactiveColor,"border-color":x.borderColor,"active-border-color":y.value,"border-width":x.borderWidth,"rounded-corners":x.roundedCorners,rtl:x.rtl,glow:x.glow,"glow-color":x.glowColor,animate:x.animate,onStarSelected:C[0]||(C[0]=O=>b(O,!0)),onStarMouseMove:b},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","active-border-color","border-width","rounded-corners","rtl","glow","glow-color","animate"])],6))),128)),x.showRating?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([x.textClass,"ml-2"])},r.toDisplayString(u.value),3)):r.createCommentVNode("",!0)],32)],2))}}),nR=r.defineComponent({__name:"AppRating",props:r.mergeModels({title:{default:""},stars:{default:5},showRating:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue");return(n,a)=>(r.openBlock(),r.createBlock(r.unref(Mp),{"content-classes":"flex items-center gap-8 select-none",class:"p-4!"},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.renderSlot(n.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(n.title),1)])]),r.createVNode(tR,{rating:t.value,"onUpdate:rating":a[0]||(a[0]=o=>t.value=o),"rounded-corners":!1,"max-rating":n.stars,"show-rating":n.showRating,increment:.5,padding:.5,"star-size":25,"border-width":0,inline:!0,"read-only":n.readonly,"active-color":"#FACC15","inactive-color":"#D4D4D8",class:"-mt-1 ml-auto"},null,8,["rating","max-rating","show-rating","read-only"])]),_:3}))}});var rR=function(){function e(t){var n=t.rootElement,a=t.durationSlide,o=a===void 0?1e3:a,i=t.durationFade,s=i===void 0?200:i,l=t.initialNumber,c=t.animateInitialNumber,u=c===void 0?!0:c,d=t.numberFormatter,f=d===void 0?function(g){return g.toString()}:d,p=t.decimalSeparator,m=p===void 0?".":p,v=t.thousandSeparator,y=v===void 0?",":v,w=t.wrapperClassname,b=w===void 0?"numberflip-digit-container":w,E=t.digitClassname,_=E===void 0?"numberflip-digit-container-value":E;this.rootElement=n,this.durationSlide=o,this.durationFade=s,this.numberFormatter=f,this.decimalSeparator=m,this.thousandSeparator=y,this.wrapperClassname=b,this.digitClassname=_,this.rootElement.style.display="flex",l!==void 0&&this.setNumber(l,u)}return e.prototype.setNumber=function(t,n){n===void 0&&(n=!0),this.adjustAmountOfDigitContainers(t),this.setDigitInContainers(t,n)},e.prototype.adjustAmountOfDigitContainers=function(t){for(var n=this.getDigitsOfNumber(t).length,a=this.rootElement.getElementsByClassName(this.wrapperClassname).length;a<n;)this.rootElement.insertAdjacentHTML("beforeend",'<div class="'.concat(this.wrapperClassname,'">')+`<span style="visibility: hidden;">0</span>
|
|
611
|
+
disabled:cursor-not-allowed disabled:border-zinc-100 disabled:!bg-zinc-50`;function oM(e,t,n,a,o,i,s,l,c){if(Qc(e))return rT(e,o);const u=(c?.class??"").includes("text-center"),d=pc("leading",e,a,s,t,n,l),f=pc("trailing",e,a,s,t,n,l);return{"border-zinc-300":!o,"border-zinc-100! bg-zinc-50!":t,"px-10":u&&(d||f),"pl-10 pr-5 group-aria-expanded:pl-7":d&&!u,"pr-10 pl-3":f&&!u,"px-3":!d&&!f,"pr-0!":Qa(e),"pl-0!":!d&&Qa(e),[aM]:!s,"block w-full appearance-none bg-transparent focus:outline-hidden focus-visible:outline-hidden":s,"py-3":!Qa(e),"h-[42px]":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":o,"text-center bg-transparent text-lg uppercase":wf(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100!":!wf(e)&&!s,"border ring-1 ring-zinc-300":i&&!s,"read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-50":!Qa(e)}}const iM=["type","tabindex"],sM=["value","tabindex"],lM=r.defineComponent({__name:"Input",props:{modelValue:{},tabindex:{},type:{},custom:{type:Boolean},native:{type:Boolean}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:l=>a("update:modelValue",l)}),i=r.computed(()=>nM(n.type,n.native));function s(l){o.value=l.target.value}return(l,c)=>i.value==="input"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),type:l.type,tabindex:l.tabindex,"data-test-input":""},null,8,iM)),[[r.vShow,!l.custom],[r.vModelDynamic,o.value]]):i.value==="textarea"?(r.openBlock(),r.createElementBlock("textarea",{key:1,value:l.modelValue,tabindex:l.tabindex,"data-test-textarea":"",onInput:s},null,40,sM)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),tabindex:l.tabindex,onOpen:c[2]||(c[2]=()=>a("open"))},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue","tabindex"]))}}),cM=Dn(lM,[["__scopeId","data-v-ed50e679"]]),uM=["aria-expanded"],dM=["data-error"],fM=["data-error"],nb=r.defineComponent({inheritAttrs:!1,__name:"AppInput",props:r.mergeDefaults({type:{},modelValue:{},modelModifiers:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},custom:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},native:{type:Boolean},plain:{type:Boolean},errorMessage:{},label:{},tabindex:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{},init:{}},tM),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,i=`input-${B7()}`,s=r.ref(!1),l=r.ref(!1),c=r.useAttrs(),u=r.computed({get:()=>{if(n.modelModifiers.dotToComma){const A=String(n.modelValue).replace(/,/g,".");return!l.value&&parseFloat(A)?String(parseFloat(A).toFixed(2)).replace(/\./g,","):String(n.modelValue).replace(/\./g,",")}return n.modelValue},set:A=>{n.modelModifiers.dotToComma?a("update:modelValue",String(A).replace(/,/g,".")):a("update:modelValue",A)}}),d=r.computed(()=>Qa(n.type)),f=r.computed(()=>fy(n.type)),p=r.computed(()=>Qc(n.type)),m=r.computed(()=>cc(n.type)),v=r.computed(()=>{if(d.value){const A=n.type;return r.h(yn,{icon:bn.far?.[G9[A]],size:"xs",class:"size-4"})}if(m.value)return r.h(yn,{icon:bn.far?.["location-dot"],size:"xs"});if(n.type==="search")return r.h(yn,{icon:bn.far?.["magnifying-glass"],size:"xs",class:"size-4"})}),y=r.computed(()=>{const A=n.type;return d.value?X9(A,i):void 0}),w=r.computed(()=>{const A=n.type,L=Q9(A);return f.value?{...L,init:{...L.init,...n.init}}:void 0}),b=r.computed(()=>n.type==="license"?"text":n.type),E=r.computed(()=>({id:i,type:b.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),_=r.computed(()=>n.type==="license"?r.h(db,{licensePlateClasses:"p-0!"}):r.h("div")),g=r.computed(()=>{const A=n.inputWrapperClasses,L=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${A} ${L}`});function x(){u.value=c.value}function C(A){if(n.modelModifiers.dotToComma){const L=A.key;/[\d,.]/.test(L)||A.preventDefault()}}function P(){l.value=!1,n.modelModifiers.dotToComma&&parseFloat(String(u.value))&&(u.value=String(parseFloat(String(u.value).replace(/,/g,".")).toFixed(2)).replace(/\./g,","))}function O(){l.value=!0}return(A,L)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([A.wrapperClasses,"group"]),"aria-expanded":A.plain},[(A.label||A.$slots.label)&&!p.value?(r.openBlock(),r.createBlock(r.unref(om),{key:0,type:A.type,"has-error":A.hasError,disabled:A.disabled,for:d.value?`dp-input-${i}`:i,class:r.normalizeClass(A.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(_.value),{class:r.normalizeClass([g.value,"flex"])},{default:r.withCtx(()=>[r.unref(pc)("leading",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:0,loading:A.loading,class:r.normalizeClass([A.iconClasses,"left-3.5 top-2.5"]),"data-test-leading-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"leadingIcon")]),_:3},8,["loading","class"])):r.createCommentVNode("",!0),r.createVNode(cM,r.mergeProps({modelValue:u.value,"onUpdate:modelValue":L[0]||(L[0]=U=>u.value=U)},{...E.value,...y.value,...w.value,...A.$attrs},{custom:n.custom,tabindex:n.tabindex,class:r.unref(oM)(A.type,A.disabled,A.readonly,A.loading,A.hasError,s.value,A.plain,A.$slots,A.$attrs),"data-error":A.hasError?"input":void 0,native:A.native,onOpen:L[1]||(L[1]=()=>s.value=!0),onBlur:P,onFocus:O,onClosed:L[2]||(L[2]=()=>s.value=!1),onKeypress:C}),{default:r.withCtx(()=>[r.renderSlot(A.$slots,"default")]),_:3},16,["modelValue","custom","tabindex","class","data-error","native"]),A.custom?r.renderSlot(A.$slots,"input",r.normalizeProps(r.mergeProps({key:1},{check:x,checked:r.unref(c).value===u.value}))):r.createCommentVNode("",!0),!A.custom&&A.type==="checkbox"?(r.openBlock(),r.createBlock(r.unref(yn),{key:2,icon:r.unref(bn).far?.check,class:"pointer-events-none -ml-4 size-4 -translate-x-0.5 text-white"},null,8,["icon"])):r.createCommentVNode("",!0),r.unref(rM)(A.type,A.$slots,A.label)?(r.openBlock(),r.createElementBlock("label",{key:3,for:i,class:r.normalizeClass([`{ 'text-error!': hasError, ${A.labelClasses}}`,"cursor-pointer select-none pl-2 text-base peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-error":A.hasError?A.type:void 0,"data-test-choice-label":""},[r.renderSlot(A.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])],10,dM)):r.createCommentVNode("",!0),r.unref(pc)("trailing",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:4,loading:A.loading,class:r.normalizeClass([A.iconClasses,"right-3.5 top-2.5"]),"data-test-trailing-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"trailingIcon",{},()=>[v.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.value),{key:0})):r.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):r.createCommentVNode("",!0)]),_:3},8,["class"])),A.hasError&&A.errorMessage?(r.openBlock(),r.createElementBlock("p",{key:1,class:r.normalizeClass([A.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-error":A.hasError?"message":void 0,"data-test-error-message":""},r.toDisplayString(A.errorMessage),11,fM)):r.createCommentVNode("",!0)],10,uM))}});function mr(e){return e==null}function pM(e,t,n){const{object:a,valueProp:o,mode:i}=r.toRefs(e),s=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);t.emit("change",m,s),p&&(t.emit("input",m),t.emit("update:modelValue",m))},u=f=>a.value||mr(f)?f:Array.isArray(f)?f.map(p=>p[o.value]):f[o.value],d=f=>mr(f)?i.value==="single"?{}:[]:f;return{update:c}}function Pt(e){return r.customRef(()=>({get:e,set:()=>{}}))}function mM(e,t){const{value:n,modelValue:a,mode:o,valueProp:i}=r.toRefs(e),s=r.ref(o.value!=="single"?[]:{}),l=Pt(()=>a.value!==void 0?a.value:n.value),c=r.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),u=Pt(()=>o.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:c}}function hM(e,t,n){const{regex:a}=r.toRefs(e),o=r.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=r.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(a.value){let m=a.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(a.value){let v=(p.clipboardData||window.clipboardData).getData("Text"),y=a.value;typeof y=="string"&&(y=new RegExp(y)),v.split("").every(w=>!!w.match(y))||p.preventDefault()}t.emit("paste",p,o)};return r.watch(l,p=>{!i.value&&p&&s(),t.emit("search-change",p,o)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function vM(e,t,n){const{groupSelect:a,mode:o,groups:i,disabledProp:s}=r.toRefs(e),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(o.value==="single"||!a.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function md(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function gM(e){return Object.prototype.toString.call(e)==="[object Object]"}function yM(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(a,o){return a===n[o]})}const rb=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o of n)if(!a.includes(o)||!rb(e[o],t[o]))return!1;return!0};function bM(e,t,n){const{options:a,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:v,loading:y,delay:w,resolveOnLoad:b,minChars:E,filterResults:_,clearOnSearch:g,clearOnSelect:x,valueProp:C,allowAbsent:P,groupLabel:O,canDeselect:A,max:L,strict:U,closeOnSelect:z,closeOnDeselect:R,groups:I,reverse:B,infinite:M,groupOptions:$,groupHideEmpty:K,groupSelect:V,onCreate:Z,disabledProp:q,searchStart:oe,searchFilter:j}=r.toRefs(e),W=r.getCurrentInstance().proxy,Y=n.iv,H=n.ev,T=n.search,J=n.clearSearch,le=n.update,Oe=n.pointer,ee=n.setPointer,Te=n.clearPointer,ae=n.focus,ue=n.deactivate,D=n.close,de=n.localize,fe=r.ref([]),ce=r.ref([]),Ae=r.ref(!1),pe=r.ref(null),Ie=r.ref(M.value&&s.value===-1?10:s.value),xe=r.computed({get:()=>ce.value,set:Q=>ce.value=Q}),X=Pt(()=>c.value||u.value||!1),re=Pt(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),ye=r.computed(()=>{if(I.value){let Q=Se.value||[],ve=[];return Q.forEach(Ge=>{vn(Ge[$.value]).forEach(wt=>{ve.push(Object.assign({},wt,Ge[q.value]?{[q.value]:!0}:{}))})}),ve}else{let Q=vn(ce.value||[]);return fe.value.length&&(Q=Q.concat(fe.value)),Q}}),Ze=r.computed(()=>{let Q=ye.value;return B.value&&(Q=Q.reverse()),_e.value.length&&(Q=_e.value.concat(Q)),sa(Q)}),ct=r.computed(()=>{let Q=Ze.value;return Ie.value>0&&(Q=Q.slice(0,Ie.value)),Q}),Se=r.computed(()=>{if(!I.value)return[];let Q=[],ve=ce.value||[];return fe.value.length&&Q.push({[O.value]:" ",[$.value]:[...fe.value],__CREATE__:!0}),Q.concat(ve)}),ut=r.computed(()=>{let Q=[...Se.value].map(ve=>({...ve}));return _e.value.length&&(Q[0]&&Q[0].__CREATE__?Q[0][$.value]=[..._e.value,...Q[0][$.value]]:Q=[{[O.value]:" ",[$.value]:[..._e.value],__CREATE__:!0}].concat(Q)),Q}),$t=r.computed(()=>{if(!I.value)return[];let Q=ut.value;return gt((Q||[]).map((ve,Ge)=>{const wt=vn(ve[$.value]);return{...ve,index:Ge,group:!0,[$.value]:sa(wt,!1).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{})),__VISIBLE__:sa(wt).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{}))}}))}),xn=r.computed(()=>{switch(o.value){case"single":return!mr(Y.value[C.value]);case"multiple":case"tags":return!mr(Y.value)&&Y.value.length>0}}),zt=r.computed(()=>m.value!==void 0?m.value(Y.value,W):Y.value&&Y.value.length>1?`${Y.value.length} options selected`:"1 option selected"),Kt=Pt(()=>!ye.value.length&&!Ae.value&&!_e.value.length),te=Pt(()=>ye.value.length>0&&ct.value.length==0&&(T.value&&I.value||!I.value)),_e=r.computed(()=>X.value===!1||!T.value?[]:rn(T.value)!==-1?[]:[{[C.value]:T.value,[Ee.value[0]]:T.value,[d.value]:T.value,__CREATE__:!0}]),Ee=r.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[d.value]),He=Pt(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),G=Pt(()=>y.value||Ae.value),se=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":le(Q);break;case"multiple":case"tags":le(Y.value.concat(Q));break}t.emit("select",Re(Q),Q,W)},be=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":Ce();break;case"tags":case"multiple":le(Array.isArray(Q)?Y.value.filter(ve=>Q.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1):Y.value.filter(ve=>ve[C.value]!=Q[C.value]));break}t.emit("deselect",Re(Q),Q,W)},Re=Q=>v.value?Q:Q[C.value],ne=Q=>{be(Q)},he=(Q,ve)=>{if(ve.button!==0){ve.preventDefault();return}ne(Q)},Ce=()=>{le(He.value),t.emit("clear",W)},st=Q=>{if(Q.group!==void 0)return o.value==="single"?!1:Io(Q[$.value])&&Q[$.value].length;switch(o.value){case"single":return!mr(Y.value)&&(Y.value[C.value]==Q[C.value]||typeof Y.value[C.value]=="object"&&typeof Q[C.value]=="object"&&rb(Y.value[C.value],Q[C.value]));case"tags":case"multiple":return!mr(Y.value)&&Y.value.map(ve=>ve[C.value]).indexOf(Q[C.value])!==-1}},vt=Q=>Q[q.value]===!0,Ut=()=>L===void 0||L.value===-1||!xn.value&&L.value>0?!1:Y.value.length>=L.value,Vt=Q=>{if(!vt(Q)){if(Z.value&&!st(Q)&&Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__,Q=Z.value(Q,W),Q instanceof Promise)){Ae.value=!0,Q.then(ve=>{Ae.value=!1,nn(ve)});return}nn(Q)}},nn=Q=>{switch(Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__),o.value){case"single":if(Q&&st(Q)){A.value&&be(Q),R.value&&(Te(),D());return}Q&&Wn(Q),x.value&&J(),z.value&&(Te(),D()),Q&&se(Q);break;case"multiple":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&(Wn(Q),se(Q)),x.value&&J(),l.value&&Te(),z.value&&D();break;case"tags":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&Wn(Q),x.value&&J(),Q&&se(Q),l.value&&Te(),z.value&&D();break}z.value||ae()},za=Q=>{if(!(vt(Q)||o.value==="single"||!V.value)){switch(o.value){case"multiple":case"tags":Ao(Q[$.value])?be(Q[$.value]):se(Q[$.value].filter(ve=>Y.value.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1).filter(ve=>!ve[q.value]).filter((ve,Ge)=>Y.value.length+1+Ge<=L.value||L.value===-1)),l.value&&Oe.value&&ee($t.value.filter(ve=>!ve[q.value])[Oe.value.index]);break}z.value&&ue()}},Wn=Q=>{Pe(Q[C.value])===void 0&&X.value&&(t.emit("tag",Q[C.value],W),t.emit("option",Q[C.value],W),t.emit("create",Q[C.value],W),re.value&&Ot(Q),J())},Vi=()=>{o.value!=="single"&&se(ct.value.filter(Q=>!Q.disabled&&!st(Q)))},Ao=Q=>Q.find(ve=>!st(ve)&&!ve[q.value])===void 0,Io=Q=>Q.find(ve=>!st(ve))===void 0,Pe=Q=>ye.value[ye.value.map(ve=>String(ve[C.value])).indexOf(String(Q))],rn=Q=>ye.value.findIndex(ve=>Ee.value.some(Ge=>(parseInt(ve[Ge])==ve[Ge]?parseInt(ve[Ge]):ve[Ge])===(parseInt(Q)==Q?parseInt(Q):Q))),Me=Q=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&st(Q),Ot=Q=>{fe.value.push(Q)},gt=Q=>K.value?Q.filter(ve=>T.value?ve.__VISIBLE__.length:ve[$.value].length):Q.filter(ve=>T.value?ve.__VISIBLE__.length:!0),sa=(Q,ve=!0)=>{let Ge=Q;if(T.value&&_.value){let wt=j.value;wt||(wt=(Rr,il,fh)=>Ee.value.some(Mu=>{let sl=md(de(Rr[Mu]),U.value);return oe.value?sl.startsWith(md(il,U.value)):sl.indexOf(md(il,U.value))!==-1})),Ge=Ge.filter(Rr=>wt(Rr,T.value,W))}return l.value&&ve&&(Ge=Ge.filter(wt=>!Me(wt))),Ge},vn=Q=>{let ve=Q;return gM(ve)&&(ve=Object.keys(ve).map(Ge=>{let wt=ve[Ge];return{[C.value]:Ge,[Ee.value[0]]:wt,[d.value]:wt}})),ve&&Array.isArray(ve)?ve=ve.map(Ge=>typeof Ge=="object"?Ge:{[C.value]:Ge,[Ee.value[0]]:Ge,[d.value]:Ge}):ve=[],ve},Mo=()=>{mr(H.value)||(Y.value=la(H.value))},No=Q=>(Ae.value=!0,new Promise((ve,Ge)=>{a.value(T.value,W).then(wt=>{ce.value=wt||[],typeof Q=="function"&&Q(wt),Ae.value=!1}).catch(wt=>{console.error(wt),ce.value=[],Ae.value=!1}).finally(()=>{ve()})})),Fi=()=>{if(xn.value)if(o.value==="single"){let Q=Pe(Y.value[C.value]);if(Q!==void 0){let ve=Q[d.value];Y.value[d.value]=ve,v.value&&(H.value[d.value]=ve)}}else Y.value.forEach((Q,ve)=>{let Ge=Pe(Y.value[ve][C.value]);if(Ge!==void 0){let wt=Ge[d.value];Y.value[ve][d.value]=wt,v.value&&(H.value[ve][d.value]=wt)}})},ji=Q=>{No(Q)},la=Q=>mr(Q)?o.value==="single"?{}:[]:v.value?Q:o.value==="single"?Pe(Q)||(P.value?{[d.value]:Q,[C.value]:Q,[Ee.value[0]]:Q}:{}):Q.filter(ve=>!!Pe(ve)||P.value).map(ve=>Pe(ve)||{[d.value]:ve,[C.value]:ve,[Ee.value[0]]:ve}),ol=()=>{pe.value=r.watch(T,Q=>{Q.length<E.value||!Q&&E.value!==0||(Ae.value=!0,g.value&&(ce.value=[]),setTimeout(()=>{Q==T.value&&a.value(T.value,W).then(ve=>{(Q==T.value||!T.value)&&(ce.value=ve,Oe.value=ct.value.filter(Ge=>Ge[q.value]!==!0)[0]||null,Ae.value=!1)}).catch(ve=>{console.error(ve)})},w.value))},{flush:"sync"})};if(o.value!=="single"&&!mr(H.value)&&!Array.isArray(H.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return a&&typeof a.value=="function"?b.value?No(Mo):v.value==!0&&Mo():(ce.value=a.value,Mo()),w.value>-1&&ol(),r.watch(w,(Q,ve)=>{pe.value&&pe.value(),Q>=0&&ol()}),r.watch(H,Q=>{if(mr(Q)){le(la(Q),!1);return}switch(o.value){case"single":(v.value?Q[C.value]!=Y.value[C.value]:Q!=Y.value[C.value])&&le(la(Q),!1);break;case"multiple":case"tags":yM(v.value?Q.map(ve=>ve[C.value]):Q,Y.value.map(ve=>ve[C.value]))||le(la(Q),!1);break}},{deep:!0}),r.watch(a,(Q,ve)=>{typeof e.options=="function"?b.value&&(!ve||Q&&Q.toString()!==ve.toString())&&No():(ce.value=e.options,Object.keys(Y.value).length||Mo(),Fi())}),r.watch(d,Fi),r.watch(s,(Q,ve)=>{Ie.value=M.value&&Q===-1?10:Q}),{resolvedOptions:xe,pfo:Ze,fo:ct,filteredOptions:ct,hasSelected:xn,multipleLabelText:zt,eo:ye,extendedOptions:ye,eg:Se,extendedGroups:Se,fg:$t,filteredGroups:$t,noOptions:Kt,noResults:te,resolving:Ae,busy:G,offset:Ie,select:se,deselect:be,remove:ne,selectAll:Vi,clear:Ce,isSelected:st,isDisabled:vt,isMax:Ut,getOption:Pe,handleOptionClick:Vt,handleGroupClick:za,handleTagRemove:he,refreshOptions:ji,resolveOptions:No,refreshLabels:Fi}}function wM(e,t,n){const{valueProp:a,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(e),p=n.fo,m=n.fg,v=n.handleOptionClick,y=n.handleGroupClick,w=n.search,b=n.pointer,E=n.setPointer,_=n.clearPointer,g=n.multiselect,x=n.isOpen,C=r.computed(()=>p.value.filter(H=>!H[d.value])),P=r.computed(()=>m.value.filter(H=>!H[d.value])),O=Pt(()=>c.value!=="single"&&u.value),A=Pt(()=>b.value&&b.value.group),L=r.computed(()=>W(b.value)),U=r.computed(()=>{const H=A.value?b.value:W(b.value),T=P.value.map(le=>le[s.value]).indexOf(H[s.value]);let J=P.value[T-1];return J===void 0&&(J=R.value),J}),z=r.computed(()=>{let H=P.value.map(T=>T.label).indexOf(A.value?b.value[s.value]:W(b.value)[s.value])+1;return P.value.length<=H&&(H=0),P.value[H]}),R=r.computed(()=>[...P.value].slice(-1)[0]),I=r.computed(()=>b.value.__VISIBLE__.filter(H=>!H[d.value])[0]),B=r.computed(()=>{const H=L.value.__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])-1]}),M=r.computed(()=>{const H=W(b.value).__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])+1]}),$=r.computed(()=>[...U.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),K=r.computed(()=>[...R.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),V=H=>b.value&&(!H.group&&b.value[a.value]===H[a.value]||H.group!==void 0&&b.value[s.value]===H[s.value])?!0:void 0,Z=()=>{E(C.value[0]||null)},q=()=>{!b.value||b.value[d.value]===!0||(A.value?y(b.value):v(b.value))},oe=()=>{if(b.value===null)E((l.value&&O.value?P.value[0].__CREATE__?C.value[0]:P.value[0]:C.value[0])||null);else if(l.value&&O.value){let H=A.value?I.value:M.value;H===void 0&&(H=z.value,H.__CREATE__&&(H=H[f.value][0])),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])+1;C.value.length<=H&&(H=0),E(C.value[H]||null)}r.nextTick(()=>{Y()})},j=()=>{if(b.value===null){let H=C.value[C.value.length-1];l.value&&O.value&&(H=K.value,H===void 0&&(H=R.value)),E(H||null)}else if(l.value&&O.value){let H=A.value?$.value:B.value;H===void 0&&(H=A.value?U.value:L.value,H.__CREATE__&&(H=$.value,H===void 0&&(H=U.value))),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])-1;H<0&&(H=C.value.length-1),E(C.value[H]||null)}r.nextTick(()=>{Y()})},W=H=>P.value.find(T=>T.__VISIBLE__.map(J=>J[a.value]).indexOf(H[a.value])!==-1),Y=()=>{let H=g.value.querySelector("[data-pointed]");if(!H)return;let T=H.parentElement.parentElement;l.value&&(T=A.value?H.parentElement.parentElement.parentElement:H.parentElement.parentElement.parentElement.parentElement),H.offsetTop+H.offsetHeight>T.clientHeight+T.scrollTop&&(T.scrollTop=H.offsetTop+H.offsetHeight-T.clientHeight),H.offsetTop<T.scrollTop&&(T.scrollTop=H.offsetTop)};return r.watch(w,H=>{i.value&&(H.length&&o.value?Z():_())}),r.watch(x,H=>{if(H&&g&&g.value){let T=g.value.querySelectorAll("[data-selected]")[0];if(!T)return;let J=T.parentElement.parentElement;r.nextTick(()=>{J.scrollTop=T.offsetTop})}}),{pointer:b,canPointGroups:O,isPointed:V,setPointerFirst:Z,selectPointer:q,forwardPointer:oe,backwardPointer:j}}function On(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ho(e){var t=On(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=On(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qp(e){if(typeof ShadowRoot>"u")return!1;var t=On(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var io=Math.max,mc=Math.min,mi=Math.round;function kf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ab(){return!/^((?!chrome|android).)*safari/i.test(kf())}function hi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,i=1;t&&zn(e)&&(o=e.offsetWidth>0&&mi(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&mi(a.height)/e.offsetHeight||1);var s=ho(e)?On(e):window,l=s.visualViewport,c=!ab()&&n,u=(a.left+(c&&l?l.offsetLeft:0))/o,d=(a.top+(c&&l?l.offsetTop:0))/i,f=a.width/o,p=a.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Zp(e){var t=On(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function kM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _M(e){return e===On(e)||!zn(e)?Zp(e):kM(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function La(e){return((ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function em(e){return hi(La(e)).left+Zp(e).scrollLeft}function Xr(e){return On(e).getComputedStyle(e)}function tm(e){var t=Xr(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function SM(e){var t=e.getBoundingClientRect(),n=mi(t.width)/e.offsetWidth||1,a=mi(t.height)/e.offsetHeight||1;return n!==1||a!==1}function CM(e,t,n){n===void 0&&(n=!1);var a=zn(t),o=zn(t)&&SM(t),i=La(t),s=hi(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Mr(t)!=="body"||tm(i))&&(l=_M(t)),zn(t)?(c=hi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=em(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ob(e){var t=hi(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function ru(e){return Mr(e)==="html"?e:e.assignedSlot||e.parentNode||(Qp(e)?e.host:null)||La(e)}function ib(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:zn(e)&&tm(e)?e:ib(ru(e))}function os(e,t){var n;t===void 0&&(t=[]);var a=ib(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=On(a),s=o?[i].concat(i.visualViewport||[],tm(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(os(ru(s)))}function xM(e){return["table","td","th"].indexOf(Mr(e))>=0}function o0(e){return!zn(e)||Xr(e).position==="fixed"?null:e.offsetParent}function EM(e){var t=/firefox/i.test(kf()),n=/Trident/i.test(kf());if(n&&zn(e)){var a=Xr(e);if(a.position==="fixed")return null}var o=ru(e);for(Qp(o)&&(o=o.host);zn(o)&&["html","body"].indexOf(Mr(o))<0;){var i=Xr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function au(e){for(var t=On(e),n=o0(e);n&&xM(n)&&Xr(n).position==="static";)n=o0(n);return n&&(Mr(n)==="html"||Mr(n)==="body"&&Xr(n).position==="static")?t:n||EM(e)||t}var rr="top",Nr="bottom",_a="right",Hr="left",nm="auto",ou=[rr,Nr,_a,Hr],vi="start",_s="end",TM="clippingParents",sb="viewport",Yi="popper",PM="reference",i0=ou.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+_s])},[]),AM=[].concat(ou,[nm]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+_s])},[]),IM="beforeRead",MM="read",NM="afterRead",OM="beforeMain",BM="main",LM="afterMain",DM="beforeWrite",RM="write",$M="afterWrite",zM=[IM,MM,NM,OM,BM,LM,DM,RM,$M];function VM(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function FM(e){var t=VM(e);return zM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function jM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HM(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}function UM(e,t){var n=On(e),a=La(e),o=n.visualViewport,i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=ab();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+em(e),y:c}}function WM(e){var t,n=La(e),a=Zp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+em(e),c=-a.scrollTop;return Xr(o||n).direction==="rtl"&&(l+=io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function qM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qp(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function _f(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YM(e,t){var n=hi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function s0(e,t,n){return t===sb?_f(UM(e,n)):ho(t)?YM(t,n):_f(WM(La(e)))}function GM(e){var t=os(ru(e)),n=["absolute","fixed"].indexOf(Xr(e).position)>=0,a=n&&zn(e)?au(e):e;return ho(a)?t.filter(function(o){return ho(o)&&qM(o,a)&&Mr(o)!=="body"}):[]}function KM(e,t,n,a){var o=t==="clippingParents"?GM(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,u){var d=s0(e,u,a);return c.top=io(d.top,c.top),c.right=mc(d.right,c.right),c.bottom=mc(d.bottom,c.bottom),c.left=io(d.left,c.left),c},s0(e,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function va(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cb(e){var t=e.reference,n=e.element,a=e.placement,o=a?va(a):null,i=a?gi(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case rr:c={x:s,y:t.y-n.height};break;case Nr:c={x:s,y:t.y+t.height};break;case _a:c={x:t.x+t.width,y:l};break;case Hr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?lb(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case vi:c[u]=c[u]-(t[d]/2-n[d]/2);break;case _s:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ub(){return{top:0,right:0,bottom:0,left:0}}function XM(e){return Object.assign({},ub(),e)}function JM(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function rm(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?TM:l,u=n.rootBoundary,d=u===void 0?sb:u,f=n.elementContext,p=f===void 0?Yi:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,w=y===void 0?0:y,b=XM(typeof w!="number"?w:JM(w,ou)),E=p===Yi?PM:Yi,_=e.rects.popper,g=e.elements[v?E:p],x=KM(ho(g)?g:g.contextElement||La(e.elements.popper),c,d,s),C=hi(e.elements.reference),P=cb({reference:C,element:_,placement:o}),O=_f(Object.assign({},_,P)),A=p===Yi?O:C,L={top:x.top-A.top+b.top,bottom:A.bottom-x.bottom+b.bottom,left:x.left-A.left+b.left,right:A.right-x.right+b.right},U=e.modifiersData.offset;if(p===Yi&&U){var z=U[o];Object.keys(L).forEach(function(R){var I=[_a,Nr].indexOf(R)>=0?1:-1,B=[rr,Nr].indexOf(R)>=0?"y":"x";L[R]+=z[B]*I})}return L}var l0={placement:"bottom",modifiers:[],strategy:"absolute"};function c0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function QM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?l0:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},l0,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(b){var E=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:ho(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(c)};var _=FM(HM([].concat(a,d.options.modifiers)));return d.orderedModifiers=_.filter(function(g){return g.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var b=d.elements,E=b.reference,_=b.popper;if(c0(E,_)){d.rects={reference:CM(E,au(_),d.options.strategy==="fixed"),popper:ob(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var x=d.orderedModifiers[g],C=x.fn,P=x.options,O=P===void 0?{}:P,A=x.name;typeof C=="function"&&(d=C({state:d,options:O,name:A,instance:m})||d)}}}},update:jM(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){y(),p=!0}};if(!c0(l,c))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function v(){d.orderedModifiers.forEach(function(w){var b=w.name,E=w.options,_=E===void 0?{}:E,g=w.effect;if(typeof g=="function"){var x=g({state:d,name:b,instance:m,options:_}),C=function(){};f.push(x||C)}})}function y(){f.forEach(function(w){return w()}),f=[]}return m}}var bl={passive:!0};function ZM(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,c=On(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,bl)}),l&&c.addEventListener("resize",n.update,bl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,bl)}),l&&c.removeEventListener("resize",n.update,bl)}}var eN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZM,data:{}};function tN(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var nN={name:"popperOffsets",enabled:!0,phase:"read",fn:tN,data:{}},rN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aN(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:mi(n*o)/o||0,y:mi(a*o)/o||0}}function u0(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,m=p===void 0?0:p,v=s.y,y=v===void 0?0:v,w=typeof d=="function"?d({x:m,y}):{x:m,y};m=w.x,y=w.y;var b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),_=Hr,g=rr,x=window;if(u){var C=au(n),P="clientHeight",O="clientWidth";if(C===On(n)&&(C=La(n),Xr(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",O="scrollWidth")),C=C,o===rr||(o===Hr||o===_a)&&i===_s){g=Nr;var A=f&&C===x&&x.visualViewport?x.visualViewport.height:C[P];y-=A-a.height,y*=c?1:-1}if(o===Hr||(o===rr||o===Nr)&&i===_s){_=_a;var L=f&&C===x&&x.visualViewport?x.visualViewport.width:C[O];m-=L-a.width,m*=c?1:-1}}var U=Object.assign({position:l},u&&rN),z=d===!0?aN({x:m,y},On(n)):{x:m,y};if(m=z.x,y=z.y,c){var R;return Object.assign({},U,(R={},R[g]=E?"0":"",R[_]=b?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",R))}return Object.assign({},U,(t={},t[g]=E?y+"px":"",t[_]=b?m+"px":"",t.transform="",t))}function oN(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:va(t.placement),variation:gi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,u0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,u0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var iN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oN,data:{}};function sN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!zn(i)||!Mr(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function lN(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(c,u){return c[u]="",c},{});!zn(o)||!Mr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var cN={name:"applyStyles",enabled:!0,phase:"write",fn:sN,effect:lN,requires:["computeStyles"]},uN=[eN,nN,iN,cN],dN=QM({defaultModifiers:uN});function fN(e){return e==="x"?"y":"x"}function Ul(e,t,n){return io(e,mc(t,n))}function pN(e,t,n){var a=Ul(e,t,n);return a>n?n:a}function mN(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=rm(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=va(t.placement),E=gi(t.placement),_=!E,g=lb(b),x=fN(g),C=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(i){var R,I=g==="y"?rr:Hr,B=g==="y"?Nr:_a,M=g==="y"?"height":"width",$=C[g],K=$+w[I],V=$-w[B],Z=m?-O[M]/2:0,q=E===vi?P[M]:O[M],oe=E===vi?-O[M]:-P[M],j=t.elements.arrow,W=m&&j?ob(j):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),H=Y[I],T=Y[B],J=Ul(0,P[M],W[M]),le=_?P[M]/2-Z-J-H-L.mainAxis:q-J-H-L.mainAxis,Oe=_?-P[M]/2+Z+J+T+L.mainAxis:oe+J+T+L.mainAxis,ee=t.elements.arrow&&au(t.elements.arrow),Te=ee?g==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(R=U?.[g])!=null?R:0,ue=$+le-ae-Te,D=$+Oe-ae,de=Ul(m?mc(K,ue):K,$,m?io(V,D):V);C[g]=de,z[g]=de-$}if(l){var fe,ce=g==="x"?rr:Hr,Ae=g==="x"?Nr:_a,pe=C[x],Ie=x==="y"?"height":"width",xe=pe+w[ce],X=pe-w[Ae],re=[rr,Hr].indexOf(b)!==-1,ye=(fe=U?.[x])!=null?fe:0,Ze=re?xe:pe-P[Ie]-O[Ie]-ye+L.altAxis,ct=re?pe+P[Ie]+O[Ie]-ye-L.altAxis:X,Se=m&&re?pN(Ze,pe,ct):Ul(m?Ze:xe,pe,m?ct:X);C[x]=Se,z[x]=Se-pe}t.modifiersData[a]=z}}var hN={name:"preventOverflow",enabled:!0,phase:"main",fn:mN,requiresIfExists:["offset"]},vN={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return vN[t]})}var gN={start:"end",end:"start"};function d0(e){return e.replace(/start|end/g,function(t){return gN[t]})}function yN(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?AM:c,d=gi(a),f=d?l?i0:i0.filter(function(v){return gi(v)===d}):ou,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=rm(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[va(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function bN(e){if(va(e)===nm)return[];var t=Wl(e);return[d0(e),t,d0(t)]}function wN(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=va(w),E=b===w,_=c||(E||!v?[Wl(w)]:bN(w)),g=[w].concat(_).reduce(function(W,Y){return W.concat(va(Y)===nm?yN(t,{placement:Y,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):Y)},[]),x=t.rects.reference,C=t.rects.popper,P=new Map,O=!0,A=g[0],L=0;L<g.length;L++){var U=g[L],z=va(U),R=gi(U)===vi,I=[rr,Nr].indexOf(z)>=0,B=I?"width":"height",M=rm(t,{placement:U,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),$=I?R?_a:Hr:R?Nr:rr;x[B]>C[B]&&($=Wl($));var K=Wl($),V=[];if(i&&V.push(M[z]<=0),l&&V.push(M[$]<=0,M[K]<=0),V.every(function(W){return W})){A=U,O=!1;break}P.set(U,V)}if(O)for(var Z=v?3:1,q=function(Y){var H=g.find(function(T){var J=P.get(T);if(J)return J.slice(0,Y).every(function(le){return le})});if(H)return A=H,"break"},oe=Z;oe>0;oe--){var j=q(oe);if(j==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var kN={name:"flip",enabled:!0,phase:"main",fn:wN,requiresIfExists:["offset"],data:{_skip:!1}};function _N(e,t,n){const{disabled:a,appendTo:o,appendToBody:i,openDirection:s}=r.toRefs(e),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),f=r.ref(null),p=r.ref(null),m=Pt(()=>o.value||i.value),v=Pt(()=>s.value==="top"&&p.value==="bottom"||s.value==="bottom"&&p.value!=="top"?"bottom":"top"),y=()=>{d.value||a.value||(d.value=!0,t.emit("open",l),m.value&&r.nextTick(()=>{b()}))},w=()=>{d.value&&(d.value=!1,t.emit("close",l))},b=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),g=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"offset",options:{offset:[0,(v.value==="top"?_:g)*-1]}}]})),f.value.update()},E=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=dN(c.value,u.value,{strategy:E(c.value)?"fixed":void 0,placement:s.value,modifiers:[hN,kN,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:y,close:w,placement:v,updatePopper:b}}function SN(e,t,n){const{searchable:a,disabled:o,clearOnBlur:i}=r.toRefs(e),s=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=r.ref(!1),v=r.ref(!1),y=Pt(()=>a.value||o.value?-1:0),w=()=>{a.value&&s.value.blur(),f.value.blur()},b=()=>{a.value&&!o.value&&s.value.focus()},E=(O=!0)=>{o.value||(m.value=!0,O&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),i.value&&u())},1)};return{tabindex:y,isActive:m,mouseClicked:v,blur:w,focus:b,activate:E,deactivate:_,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||E(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),w()},handleMousedown:O=>{v.value=!0,d.value&&(O.target.isEqualNode(f.value)||O.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(s.value))&&E(),setTimeout(()=>{v.value=!1},0)}}}function CN(e,t,n){const{mode:a,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(e),v=r.getCurrentInstance().proxy,y=n.iv,w=n.update,b=n.deselect,E=n.search,_=n.setPointer,g=n.selectPointer,x=n.backwardPointer,C=n.forwardPointer,P=n.multiselect,O=n.wrapper,A=n.tags,L=n.isOpen,U=n.open,z=n.blur,R=n.fo,I=Pt(()=>f.value||p.value||!1),B=Pt(()=>o.value!==void 0?o.value:d.value!==void 0?d.value:["enter"]),M=()=>{a.value==="tags"&&!l.value&&I.value&&s.value&&!u.value&&_(R.value[R.value.map(V=>V[c.value]).indexOf(E.value)])};return{handleKeydown:V=>{t.emit("keydown",V,v);let Z,q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(V.key)!==-1&&a.value==="tags"&&(Z=[...P.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==A.value),q=Z.findIndex(oe=>oe===document.activeElement)),V.key){case"Backspace":if(a.value==="single"||s.value&&[null,""].indexOf(E.value)===-1||y.value.length===0)return;let oe=y.value.filter(j=>!j.disabled&&j.remove!==!1);oe.length&&b(oe[oe.length-1]);break;case"Enter":if(V.preventDefault(),V.keyCode===229)return;if(q!==-1&&q!==void 0){w([...y.value].filter((j,W)=>W!==q)),q===Z.length-1&&(Z.length-1?Z[Z.length-2].focus():s.value?A.value.querySelector("input").focus():O.value.focus());return}if(B.value.indexOf("enter")===-1&&I.value)return;M(),g();break;case" ":if(!I.value&&!s.value){V.preventDefault(),M(),g();return}if(!I.value)return!1;if(B.value.indexOf("space")===-1&&I.value)return;V.preventDefault(),M(),g();break;case"Tab":case";":case",":if(B.value.indexOf(V.key.toLowerCase())===-1||!I.value)return;M(),g(),V.preventDefault();break;case"Escape":z();break;case"ArrowUp":if(V.preventDefault(),!l.value)return;L.value||U(),x();break;case"ArrowDown":if(V.preventDefault(),!l.value)return;L.value||U(),C();break;case"ArrowLeft":if(s.value&&A.value&&A.value.querySelector("input").selectionStart||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),q===-1?Z[Z.length-1].focus():q>0&&Z[q-1].focus();break;case"ArrowRight":if(q===-1||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),Z.length>q+1?Z[q+1].focus():s.value?A.value.querySelector("input").focus():s.value||O.value.focus();break}},handleKeyup:V=>{t.emit("keyup",V,v)},preparePointer:M}}function xN(e,t,n){const{classes:a,disabled:o,showOptions:i,breakTags:s}=r.toRefs(e),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,m=n.resolving,v=n.fo,y=n.placement,w=Pt(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...a.value})),b=Pt(()=>!!(l.value&&i.value&&(!m.value||m.value&&v.value.length)));return{classList:r.computed(()=>{const _=w.value;return{container:[_.container].concat(o.value?_.containerDisabled:[]).concat(b.value&&y.value==="top"?_.containerOpenTop:[]).concat(b.value&&y.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(o.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,s.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(y.value==="top"?_.dropdownTop:[]).concat(!l.value||!i.value||!b.value?_.dropdownHidden:[]),options:[_.options].concat(y.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:g=>{let x=[_.groupLabel];return c(g)?x.push(u(g)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(g)&&p.value?x.push(d(g)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(g)&&x.push(_.groupLabelDisabled),p.value&&x.push(_.groupLabelPointable),x},groupOptions:_.groupOptions,option:(g,x)=>{let C=[_.option];return c(g)?C.push(u(g)?_.optionSelectedPointed:_.optionPointed):u(g)?C.push(d(g)?_.optionSelectedDisabled:_.optionSelected):(d(g)||x&&d(x))&&C.push(_.optionDisabled),C},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:b}}function EN(e,t,n){const{limit:a,infinite:o}=r.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),f=r.shallowRef(null),p=Pt(()=>s.value<c.value.length),m=y=>{const{isIntersecting:w,target:b}=y[0];if(w){const E=b.offsetParent,_=E.scrollTop;s.value+=a.value==-1?10:a.value,r.nextTick(()=>{E.scrollTop=_})}},v=()=>{i.value&&s.value<c.value.length?d.value.observe(f.value):!i.value&&d.value&&d.value.disconnect()};return r.watch(i,()=>{o.value&&v()}),r.watch(l,()=>{o.value&&(s.value=a.value,v())},{flush:"post"}),r.watch(u,()=>{o.value&&v()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function TN(e,t,n){const{placeholder:a,id:o,valueProp:i,label:s,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(e),f=n.pointer,p=n.iv,m=n.hasSelected,v=n.multipleLabelText,y=r.ref(null),w=Pt(()=>`${o.value?o.value+"-":""}assist`),b=Pt(()=>`${o.value?o.value+"-":""}multiselect-options`),E=Pt(()=>{if(f.value){let z=o.value?`${o.value}-`:"";return z+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,z+=f.value.group?f.value.index:f.value[i.value],z}}),_=Pt(()=>a.value),g=Pt(()=>l.value!=="single"),x=r.computed(()=>l.value==="single"&&m.value?p.value[s.value]:l.value==="multiple"&&m.value?v.value:l.value==="tags"&&m.value?p.value.map(z=>z[s.value]).join(", "):""),C=r.computed(()=>{let z={...u.value};return d.value&&(z["aria-labelledby"]=z["aria-labelledby"]?`${w.value} ${z["aria-labelledby"]}`:w.value,x.value&&z["aria-label"]&&(z["aria-label"]=`${x.value}, ${z["aria-label"]}`)),z}),P=z=>`${o.value?o.value+"-":""}multiselect-option-${z[i.value]}`,O=z=>`${o.value?o.value+"-":""}multiselect-group-${z.index}`,A=z=>`${z}`,L=z=>`${z}`,U=z=>`${z} ❎`;return r.onMounted(()=>{if(o.value&&document&&document.querySelector){let z=document.querySelector(`[for="${o.value}"]`);y.value=z?z.innerText:null}}),{arias:C,ariaLabel:x,ariaAssist:w,ariaControls:b,ariaPlaceholder:_,ariaMultiselectable:g,ariaActiveDescendant:E,ariaOptionId:P,ariaOptionLabel:A,ariaGroupId:O,ariaGroupLabel:L,ariaTagLabel:U}}function PN(e,t,n){const{locale:a,fallbackLocale:o}=r.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function AN(e,t,n){const a=r.shallowRef(null),o=r.shallowRef(null),i=r.shallowRef(null),s=r.shallowRef(null),l=r.shallowRef(null);return{multiselect:a,wrapper:o,tags:i,input:s,dropdown:l}}function IN(e,t,n,a={}){return n.forEach(o=>{a={...a,...o(e,t,a)}}),a}var am={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return IN(e,t,[AN,PN,mM,vM,_N,hM,pM,SN,bM,EN,wM,CN,xN,TN])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const MN=["id","dir"],NN=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ON=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],BN=["onKeyup","aria-label"],LN=["onClick"],DN=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],RN=["innerHTML"],$N=["id"],zN=["id"],VN=["id","aria-label","aria-selected"],FN=["data-pointed","onMouseenter","onClick"],jN=["innerHTML"],HN=["aria-label"],UN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],WN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],qN=["innerHTML"],YN=["innerHTML"],GN=["value"],KN=["name","value"],XN=["name","value"],JN=["id"];function QN(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[12]||(t[12]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[13]||(t[13]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[14]||(t[14]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[15]||(t[15]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[r.createElementVNode("div",r.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=r.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,ON)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(e.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.iv,(s,l,c)=>r.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>e.handleTagRemove(s,u),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagWrapper)},r.toDisplayString(e.localize(s[n.label])),3),!n.disabled&&!s.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(e.classList.tagRemove),onClick:r.withModifiers(u=>e.handleTagRemove(s,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,LN)):r.createCommentVNode("v-if",!0)],42,BN))])),256)),r.createElementVNode("div",{class:r.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagsSearchCopy)},r.toDisplayString(e.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=r.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,DN)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?r.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.singleLabelText)},r.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?r.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,RN)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?r.renderSlot(e.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||e.resolving?r.renderSlot(e.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?r.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=r.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,NN),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:r.normalizeClass(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s))},[r.renderSlot(e.$slots,"beforelist",{options:e.fo}),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(e.fg,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.group),key:c,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:u=>e.setPointer(s,l),onClick:u=>e.handleGroupClick(s)},[r.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[r.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,jN)])],42,FN)),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.__VISIBLE__,(u,d,f)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(u,s)),"data-pointed":e.isPointed(u),"data-selected":e.isSelected(u)||void 0,key:f,onMouseenter:p=>e.setPointer(u),onClick:p=>e.handleOptionClick(u),id:e.ariaOptionId(u),"aria-selected":e.isSelected(u),"aria-label":e.ariaOptionLabel(e.localize(u[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:u,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(u[n.label])),1)])],42,UN))),128))],10,HN)],10,VN))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.fo,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:c,onMouseenter:u=>e.setPointer(s),onClick:u=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(s[n.label])),1)])],42,WN))),128))],10,zN),e.noOptions?r.renderSlot(e.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,qN)]):r.createCommentVNode("v-if",!0),e.noResults?r.renderSlot(e.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,YN)]):r.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(e.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(e.$slots,"afterlist",{options:e.fo})],42,$N)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,GN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,KN)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.plainValue,(s,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,XN))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},r.toDisplayString(e.ariaLabel),11,JN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(e.classList.spacer)},null,2)],42,MN)}am.render=QN;am.__file="src/Multiselect.vue";const Tt={container:"app-select scrollbar-primary relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded-lg bg-white text-base leading-snug outline-hidden rounded-lg hover:bg-zinc-100",containerDisabled:"cursor-default bg-zinc-100",containerOpen:"rounded-b-none",containerOpenTop:"rounded-t-none",containerActive:"ring-1 ring-zinc-300",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",singleLabelText:"text-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",search:"h-full w-full absolute inset-0 outline-hidden focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3 rtl:pl-0 rtl:pr-3",tags:"min-w-0 grow shrink flex flex-wrap items-center mt-1 px-2",tag:"max-w-full bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded-lg h-7 mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-lg group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-zinc-700",tagText:"overflow-hidden text-ellipsis whitespace-nowrap",tagsSearchWrapper:"inline-block relative mx-1 mb-1 grow shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-hidden focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex text-base items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3 relative z-10 stroke-2 shrink-0 grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3 relative z-10 text-zinc-700 transition duration-300 shrink-0 grow-0 flex rtl:pr-0 rtl:pl-3",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3 animate-spin shrink-0 grow-0 rtl:mr-0 rtl:ml-3",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin shrink-0 grow-0 m-3",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b-lg",dropdownTop:"-translate-y-full! top-px bottom-auto rounded-b-none rounded-t-lg",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-hidden text-transparent",spacer:"h-9 py-px box-content"};function ZN(e){return e in Tt}function eO(e){const t=Object.keys(Tt).find(n=>n.toLowerCase()===e);if(t&&ZN(t))return Tt[t]}const tO=["onClick"],nO={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},iu=r.defineComponent({inheritAttrs:!1,__name:"AppSelect",props:{wrapperClasses:{default:void 0},hasError:{type:Boolean},errorMessage:{default:void 0},label:{default:void 0},optionLabel:{default:"name"},fetchOnOpen:{type:Boolean,default:!1},openDirection:{default:"down"},dropdownClasses:{default:void 0},additionalClasses:{default:void 0},labelClasses:{default:void 0},searchable:{type:Boolean,default:!1},cacheable:{type:Boolean,default:!1},onChange:{}},setup(e){const t=e,n=r.useSlots(),a=r.useTemplateRef("select"),o=Zt.useStorage("app-select",[],sessionStorage),i=r.computed(()=>Object.keys(n).filter(u=>u!=="tag")),s=r.computed(()=>{const u={...Tt};return t.openDirection==="up"&&(u.dropdown=`${Tt.dropdown} ${Tt.dropdownTop}`,u.containerOpen=`${Tt.containerOpenTop}`),t.dropdownClasses&&(u.dropdown=`${u.dropdown} ${t.dropdownClasses}`),t.hasError&&(u.container=`${u.container} border-error! focus:ring-error focus:border-error`),Object.entries(t.additionalClasses??{}).forEach(([d,f])=>{d in u&&(u[d]=`${u[d]} ${f}`)}),u});r.onMounted(()=>{if(t.cacheable){const u=Object.values(a.value?.modelValue??{}),d=a.value?.valueProp??"value";o.value.filter(f=>u.includes(f[d])||u.includes(`${f[d]}`))?.forEach(f=>{a.value?.select(f)})}});function l(u){return u?r.isRef(u)?Array.isArray(u.value)?u.value:[u.value]:Array.isArray(u)?u:[u]:[]}function c(u,d){t.onChange?.(u),o.value=l(r.unref(d.iv))}return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(u.wrapperClasses)},[u.label||u.$slots.label?(r.openBlock(),r.createBlock(r.unref(om),{key:0,"has-error":u.hasError,class:r.normalizeClass(u.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(u.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(u.label),1)])]),_:3},8,["has-error","class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(am),r.mergeProps({native:!1,classes:s.value,searchable:t.searchable},{...u.$attrs,ref:"select",label:t.optionLabel,onChange:t.onChange},{onOpen:d[0]||(d[0]=f=>{u.fetchOnOpen&&f?.noOptions&&f?.resolveOptions?.()}),onChange:c}),r.createSlots({tag:r.withCtx(f=>[r.createElementVNode("div",{class:r.normalizeClass(r.unref(Tt).tag)},[r.renderSlot(u.$slots,"tag",r.normalizeProps(r.guardReactiveProps(f)),()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagText)},r.toDisplayString(f.option?.[u.optionLabel]),3)]),f.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(r.unref(Tt).tagRemove),onClick:p=>f.handleTagRemove(f.option,p)},[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagRemoveIcon)},null,2)],10,tO))],2)]),_:2},[r.renderList(i.value,(f,p)=>({name:f,fn:r.withCtx(m=>[r.renderSlot(u.$slots,f,r.normalizeProps(r.guardReactiveProps({...m||{},classes:r.unref(eO)(f)})))])}))]),1040,["classes","searchable"]),u.hasError&&u.errorMessage?(r.openBlock(),r.createElementBlock("p",nO,r.toDisplayString(u.errorMessage),1)):r.createCommentVNode("",!0)],2))}}),rO=["data-error"],om=r.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-zinc-900"]),"data-error":t.hasError?"label":void 0},[r.renderSlot(t.$slots,"default")],10,rO))}}),Sf={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},aO={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:Sf.zoom,minZoom:Sf.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},oO=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function iO(){const e=document.createElement("div");return e.classList.add(...oO),r.render(r.h(i$),e),e}const sO=r.defineComponent({__name:"AppMaps",props:{withMarker:{type:Boolean,default:!0},disableMarkerClick:{type:Boolean,default:!1},markerLatitude:{default:null},markerLongitude:{default:null},disableUserInteraction:{type:Boolean,default:!1},mapCenterLatitude:{default:null},mapCenterLongitude:{default:null},mapOptions:{default:null}},setup(e){const t=e,n=r.ref(null),a=r.computed(()=>t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:t.mapOptions?.center??null),o=r.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:a.value);r.watch(t,async()=>{await i()}),r.onMounted(async()=>{if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:c}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const u=new c(n.value,{...s(),center:a.value});t.withMarker&&await l(u)}}function s(){let c={...Sf};return t.disableUserInteraction&&(c={...c,...aO}),{...c,...t.mapOptions??{}}}async function l(c){const{AdvancedMarkerElement:u}=await google.maps.importLibrary("marker"),d=new u({map:c,position:o.value,content:iO()});t.disableMarkerClick&&!t.disableUserInteraction&&(d.element.classList.add("cursor-default!"),google.maps.event.addListener(d,"click",()=>{}))}return(c,u)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),Cf=r.defineComponent({__name:"NavigationItem",props:{item:{},linkClasses:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:a,expanded:o}=ko(),i=ei.useRouter(),s=r.ref(!1),l=r.computed(()=>s.value||typeof t.item.icon!="string"),c=r.computed(()=>s.value?Na:t.item.icon),u=r.computed(()=>t.item.href??i.resolve(t.item.to)?.href??"");async function d(f){a(),t.item?.onClick&&(f.preventDefault(),s.value=!0,await Promise.resolve(t.item?.onClick?.()),s.value=!1)}return(f,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{to:f.item.to,href:u.value,class:r.normalizeClass([[{"md:bg-primary md:text-white!":f.item.active??!1,"rounded-full!":f.item.rounded??!1,"mb-3":!f.item.bottom,"mt-3":f.item.bottom,"md:w-10 md:justify-center":!r.unref(o),"md:px-6":r.unref(o)},f.linkClasses],"group/item flex h-10 w-full cursor-pointer rounded-lg transition-colors hover:bg-primary md:items-center md:text-center md:text-zinc-400 md:hover:text-white"]),onClick:d},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value?c.value:"span"),{class:r.normalizeClass([{"h-6!":!l.value,"md:text-white!":f.item.active},"app-navigation-item size-5 stroke-2 text-black md:size-4 md:text-zinc-400 md:group-hover/item:text-white"]),size:s.value?"extra-small":void 0,"data-test-icon":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.value?"":f.item.icon),1)]),_:1},8,["class","size"])),r.createElementVNode("span",{class:r.normalizeClass([{"md:w-0 md:p-0":!r.unref(o)},"overflow-hidden whitespace-nowrap pl-7 text-lg font-semibold md:text-base md:font-normal"]),"data-test-name":""},r.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),xf=r.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:a,closeMobileMenu:o}=ko();return(i,s)=>r.unref(t)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(a)),{key:0,to:r.unref(a)!=="a"?r.unref(t):void 0,href:r.unref(a)?r.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex size-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-hidden","data-test-help-icon":"",onClick:r.unref(o)},{default:r.withCtx(()=>[typeof r.unref(n)=="string"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(r.unref(n)),1)],64)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:1,class:"size-full"}))]),_:1},8,["to","href","onClick"])):r.createCommentVNode("",!0)}}),lO={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},cO=["innerHTML"],uO={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},dO={class:"relative flex size-full flex-1 flex-col bg-white focus:outline-hidden","data-test-navigation-wrapper":""},fO={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},pO={"aria-label":"MainMenu",class:"mt-5"},mO={class:"mb-auto"},hO=r.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:a,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=ko(),c=r.computed(()=>o.value?km:s$);function u(){l(),setTimeout(()=>{i.value=!1},100)}function d(){i.value||(s(),i.value=!0)}return(f,p)=>(r.openBlock(),r.createElementBlock("header",lO,[r.createElementVNode("div",{class:"inline-flex w-10 grow-0 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-hidden","data-test-menu-icon-wrapper":"",onClick:r.withModifiers(d,["stop"])},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value),{class:"block size-6 text-black","aria-hidden":"true"}))]),r.createElementVNode("div",{class:"flex h-full max-w-[70%] grow justify-center py-4","data-test-logo-wrapper":"",innerHTML:r.unref(t)},null,8,cO),r.createElementVNode("div",uO,[r.unref(n)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:0})):r.createCommentVNode("",!0)]),r.createVNode(r.unref(nt.TransitionRoot),{show:r.unref(o),as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:u},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:r.withCtx(()=>[r.createElementVNode("div",dO,[r.createElementVNode("div",fO,[r.createElementVNode("nav",pO,[r.createElementVNode("ul",mO,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a).filter(m=>m.visible!==!1),m=>(r.openBlock(),r.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[r.createVNode(Cf,{item:m},null,8,["item"])]))),128))])]),r.createVNode(xf)])])]),_:1})]),_:1})]),_:1},8,["show"]),r.createVNode(xf)]))}}),vO={class:"relative before:absolute before:-right-4 before:top-0 before:z-[-1] before:size-4 before:bg-secondary after:absolute after:-right-4 after:bottom-0 after:z-[-1] after:size-4 after:bg-secondary"},gO=["aria-expanded"],yO={key:0},bO=r.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n,expanded:a,toggleExpand:o,contactIcon:i}=ko();return(s,l)=>(r.openBlock(),r.createElementBlock("div",vO,[r.createElementVNode("aside",{class:r.normalizeClass([{"flex-col px-3 md:w-20!":r.unref(n),"md:w-72!":r.unref(a)},"app-navigation-menu group sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:size-8 before:bg-zinc-100 after:absolute after:-right-8 after:bottom-0 after:size-8 after:bg-zinc-100 md:flex md:bg-secondary"]),"aria-expanded":r.unref(a),"data-test-main-menu":""},[r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mb-auto transition-all duration-500 z-10"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom!==!0&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-top-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128))],2),r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mt-auto pb-10 transition-all duration-500"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-bottom-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128)),r.unref(i)?(r.openBlock(),r.createElementBlock("li",yO,[r.createVNode(xf,{class:"static!"})])):r.createCommentVNode("",!0)],2),r.createElementVNode("div",{class:"absolute bottom-2 right-5 hidden size-10 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-secondary transition-all duration-200 md:flex",onClick:l[0]||(l[0]=(...c)=>r.unref(o)&&r.unref(o)(...c))},[r.createElementVNode("div",{class:r.normalizeClass([{"-translate-x-4!":!r.unref(a)},"flex translate-x-4 space-x-4 transition-transform duration-700"])},[r.createVNode(r.unref(wm),{class:"size-5 text-zinc-400 hover:text-white"}),r.createVNode(r.unref(Jb),{class:"size-5 text-zinc-400 hover:text-white"})],2)])],10,gO),r.createVNode(hO)]))}}),su=Dn(bO,[["__scopeId","data-v-d443a433"]]),wO={class:"flex text-sm font-bold"},kO={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-[0.188rem] text-white","data-test-country-code":""},db=r.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",wO,[r.createElementVNode("span",kO,r.toDisplayString(t.country),1),r.createElementVNode("span",{class:r.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-[0.188rem] uppercase"]),"data-test-license-plate":""},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.license),1)])],2)]))}}),fb=r.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=r.computed(()=>t.icon??l$),a=r.computed(()=>t.icon?["w-full"]:["bg-primary","w-6","h-6","text-white","stroke-3","p-1","z-10","mx-auto","flex","items-center","justify-center","rounded-full"]),o=r.computed(()=>t.icon?["border-primary","border-2","-translate-y-2","h-10","w-10","rounded-full","flex","justify-center","items-center","p-1.5","z-50","bg-white"]:["w-10"]);return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value)},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass([a.value,"relative"])},null,8,["class"]))],2))}}),_O={plain:[],default:["text-zinc-600"],success:["text-green-600"],warning:["text-yellow-600"],error:["text-red-600"],info:["text-sky-600"],inactive:["text-orange-500"]},SO={class:"flex"},CO={class:"ml-4"},pb=r.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{default:"default"}},setup(e){const t=e,n=r.computed(()=>t.item.date&&!t.item.time?t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}):t.item.time&&!t.item.date?t.item.time:[]),a=r.computed(()=>t.item?.badge??"default");return(o,i)=>(r.openBlock(),r.createElementBlock("article",{class:r.normalizeClass([{"after:hidden":o.item.last},"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary after:[min-height:60px] first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-linear-to-b"])},[r.createElementVNode("div",SO,[r.renderSlot(o.$slots,"icon",{value:o.item.icon},()=>[r.createVNode(fb,{icon:o.item.icon},null,8,["icon"])])]),r.createElementVNode("div",CO,[r.createElementVNode("header",{class:r.normalizeClass({"flex items-center gap-3":o.itemType==="inline","mb-0!":o.item.last})},[r.createVNode(r.unref(sc),{class:r.normalizeClass({"mb-2":o.itemType==="default"}),type:a.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"date",{value:n.value},()=>[r.createElementVNode("time",null,r.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class","type"]),r.createElementVNode("h3",{class:r.normalizeClass([{domClassesPerType:a.value},"font-semibold"]),"data-test-timeline-title":""},[r.renderSlot(o.$slots,"title",{value:o.item.title},()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(_O)[a.value])},r.toDisplayString(o.item.title),3)])],2)],2),r.createElementVNode("p",{class:r.normalizeClass([{"mt-4":o.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[r.renderSlot(o.$slots,"default",{value:o.item.description},()=>[r.createTextVNode(r.toDisplayString(o.item.description),1)])],2)])],2))}}),xO={class:"space-y-4"},EO=r.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",xO,[r.renderSlot(t.$slots,"default",{},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,a=>(r.openBlock(),r.createBlock(pb,{key:a.title,item:a,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}}),TO={},PO={class:"flow-root"},AO={class:"overflow-x-auto"},IO={class:"inline-block min-w-full"},MO={class:"overflow-hidden"},NO={class:"w-full"};function OO(e,t){return r.openBlock(),r.createElementBlock("div",PO,[r.createElementVNode("div",AO,[r.createElementVNode("div",IO,[r.createElementVNode("div",MO,[r.createElementVNode("table",NO,[r.renderSlot(e.$slots,"default",{},void 0,!0)])])])])])}const BO=Dn(TO,[["render",OO],["__scopeId","data-v-1edf1593"]]);var LO=Object.defineProperty,DO=Object.defineProperties,RO=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,zO=Object.prototype.propertyIsEnumerable,p0=(e,t,n)=>t in e?LO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t)=>{for(var n in t||(t={}))$O.call(t,n)&&p0(e,n,t[n]);if(f0)for(var n of f0(t))zO.call(t,n)&&p0(e,n,t[n]);return e},ql=(e,t)=>DO(e,RO(t)),Da=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};const VO=e=>(r.pushScopeId("data-v-e0a0b7f0"),e=e(),r.popScopeId(),e),FO=["onClick"],jO=["checked"],HO=VO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),UO=r.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;r.useCssVars(s=>({"51ab8a49":r.unref(i)}));const a=r.computed(()=>n.status==="allSelected"),o=()=>{t("change",!a.value)},i=r.inject("themeColor");return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:r.withModifiers(o,["stop","prevent"])},[r.createElementVNode("input",{type:"checkbox",checked:r.unref(a),class:r.normalizeClass(e.status)},null,10,jO),HO],8,FO))}});var WO=Da(UO,[["__scopeId","data-v-e0a0b7f0"]]);const qO=e=>(r.pushScopeId("data-v-7e69a276"),e=e(),r.popScopeId(),e),YO=["checked"],GO=qO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),KO=r.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){r.useCssVars(a=>({fdaf7e9e:r.unref(n)}));const n=r.inject("themeColor");return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=r.withModifiers(i=>t("change"),["stop","prevent"]))},[r.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,YO),GO]))}});var XO=Da(KO,[["__scopeId","data-v-7e69a276"]]);const JO=e=>(r.pushScopeId("data-v-4ca5de3a"),e=e(),r.popScopeId(),e),QO={class:"easy-data-table__rows-selector"},ZO={class:"rows-input"},eB=JO(()=>r.createElementVNode("div",{class:"triangle"},null,-1)),tB=["onClick"],nB=r.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;r.useCssVars(f=>({"1b889342":r.unref(d)}));const a=r.ref(!1),o=r.ref(!1),i=r.inject("dataTable");r.watch(a,f=>{if(f&&i){const p=window.innerHeight,m=i.value.getBoundingClientRect().height,v=i.value.getBoundingClientRect().top;p-(m+v)<=100?o.value=!0:o.value=!1}});const s=r.computed({get:()=>n.modelValue,set:f=>{t("update:modelValue",f)}}),l=f=>{s.value=f,a.value=!1},c=(f,p)=>{let m=f.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(p))return!0;m=m.parentNode}return!1},u=f=>{c(f.target,"easy-data-table__rows-selector")||(a.value=!1)};r.onMounted(()=>{document.addEventListener("click",u)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const d=r.inject("themeColor");return(f,p)=>(r.openBlock(),r.createElementBlock("div",QO,[r.createElementVNode("div",{class:"rows-input__wrapper",onClick:p[0]||(p[0]=m=>a.value=!a.value)},[r.createElementVNode("div",ZO,r.toDisplayString(r.unref(s)),1),eB]),r.createElementVNode("ul",{class:r.normalizeClass(["select-items",{show:a.value,inside:o.value}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rowsItems,m=>(r.openBlock(),r.createElementBlock("li",{key:m,class:r.normalizeClass({selected:m===r.unref(s)}),onClick:v=>l(m)},r.toDisplayString(m),11,tB))),128))],2)]))}});var rB=Da(nB,[["__scopeId","data-v-4ca5de3a"]]);const lu=e=>(r.pushScopeId("data-v-1fa3a520"),e=e(),r.popScopeId(),e),aB={class:"lds-ring"},oB=lu(()=>r.createElementVNode("div",null,null,-1)),iB=lu(()=>r.createElementVNode("div",null,null,-1)),sB=lu(()=>r.createElementVNode("div",null,null,-1)),lB=lu(()=>r.createElementVNode("div",null,null,-1)),cB=[oB,iB,sB,lB],uB=r.defineComponent({__name:"Loading",setup(e){r.useCssVars(n=>({26774109:r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",aB,cB))}});var dB=Da(uB,[["__scopeId","data-v-1fa3a520"]]);const fB={class:"loader-line"},pB=r.defineComponent({__name:"LoadingLine",setup(e){r.useCssVars(n=>({"0d327f57":r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",fB))}});var mB=Da(pB,[["__scopeId","data-v-7d281cac"]]);const hB={class:"buttons-pagination"},vB=["onClick"],gB=r.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;r.useCssVars(l=>({"40dd4f07":r.unref(s)}));const a=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=r.computed(()=>{const l=[];if(n.maxPaginationNumber<=a)for(let c=1;c<=n.maxPaginationNumber;c+=1)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c<=3)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if(c===4)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)c<=5?l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber}):c===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2||c===6)l.push({type:"omission"});else if(c===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else{const u=4-c,d=n.currentPaginationNumber-u;l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}return l}),s=r.inject("themeColor");return(l,c)=>(r.openBlock(),r.createElementBlock("div",hB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),(u,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(["item",{button:u.type==="button",active:u.type==="button"&&u.active,"active-prev":u.type==="button"&&u.activePrev,omission:u.type==="omission"}]),onClick:f=>o(u)},r.toDisplayString(u.type==="button"?u.page:"..."),11,vB))),128))]))}});var yB=Da(gB,[["__scopeId","data-v-4c681fa2"]]);const mb=e=>(r.pushScopeId("data-v-c9da5286"),e=e(),r.popScopeId(),e),bB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),wB=[bB],kB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),_B=[kB],SB=r.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},wB,2),r.unref(n).buttonsPagination?r.renderSlot(a.$slots,"buttonsPagination",{key:0},void 0,!0):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},_B,2)],64))}});var CB=Da(SB,[["__scopeId","data-v-c9da5286"]]);function xB(e,t,n,a){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const c=wr({},i);if(t.value){const{checkbox:u}=i;delete c.checkbox,c.isSelected=u}if(n.value){const{index:u}=i;delete c.index,c.indexInCurrentPage=u}a("clickRow",c,l)}}}function EB(e,t,n){const a=r.ref([]);return{expandingItemIndexList:a,updateExpandingItemIndexList:(s,l,c)=>{c.stopPropagation();const u=a.value.indexOf(s);if(u!==-1)a.value.splice(u,1);else{const d=e.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(l));n("expandRow",t.value+d,l),a.value.push(t.value+d)}},clearExpandingItemIndexList:()=>{a.value=[]}}}function TB(e){const t=r.computed(()=>e.value.filter(o=>o.fixed)),n=r.computed(()=>t.value.length?t.value[t.value.length-1].value:""),a=r.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,c;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(c=i.width)!=null?c:100,distance:s===0?0:o.reduce((u,d,f)=>{let p=u;return f<s&&(p+=d),p})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:a}}function PB(e,t,n,a,o,i,s,l,c,u,d,f,p,m,v,y,w,b,E){const _=r.computed(()=>s.value.findIndex(R=>R.fixed)!==-1),g=r.computed(()=>_.value?s.value.filter(R=>R.fixed):[]),x=r.computed(()=>s.value.filter(R=>!R.fixed)),C=(R,I)=>Array.isArray(R)&&Array.isArray(I)?{sortBy:R,sortDesc:I.map(B=>B==="desc")}:R!==""?{sortBy:v.value,sortDesc:y.value==="desc"}:null,P=r.ref(C(v.value,y.value)),O=r.computed(()=>{var R;const B=[...g.value,...x.value].map(V=>{const Z=Object.assign(V);if(Z.sortable&&(Z.sortType="none"),p.value)if(Array.isArray(p.value.sortBy)&&Array.isArray(p.value.sortType)&&p.value.sortBy.includes(Z.value)){const q=p.value.sortBy.indexOf(Z.value);Z.sortType=p.value.sortType[q]}else Z.value===p.value.sortBy&&p.value.sortType&&(Z.sortType=p.value.sortType);if(P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)&&P.value.sortBy.includes(Z.value)){const q=P.value.sortBy.indexOf(Z.value);Z.sortType=P.value.sortDesc[q]?"desc":"asc"}else P.value&&Z.value===P.value.sortBy&&(Z.sortType=P.value.sortDesc?"desc":"asc");return Z});let M=[];l.value?M=[o.value||_.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...B]:M=B;let $=[];m.value?$=[i.value||_.value?{text:e.value,value:"index",fixed:!0,width:c.value}:{text:e.value,value:"index"},...M]:$=M;let K=[];return u.value?K=[a.value||_.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(R=t.value)!=null?R:36}:{text:"checkbox",value:"checkbox"},...$]:K=$,K}),A=r.computed(()=>O.value.map(R=>R.value));return{clientSortOptions:P,headerColumns:A,headersForRender:O,updateSortField:(R,I)=>{let B=null;if(I==="none"?B="asc":I==="asc"?B="desc":B=f.value?"asc":null,d.value&&b(R,B),P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)){const M=P.value.sortBy.indexOf(R);M===-1?B!==null&&(P.value.sortBy.push(R),P.value.sortDesc.push(B==="desc")):B===null?(P.value.sortDesc.splice(M,1),P.value.sortBy.splice(M,1)):P.value.sortDesc[M]=B==="desc"}else B===null?P.value=null:P.value={sortBy:R,sortDesc:B==="desc"};E("updateSort",{sortType:B,sortBy:R})},isMultiSorting:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.includes(R):P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.includes(R):!1,getMultiSortNumber:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.indexOf(R)+1:P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.indexOf(R)+1:!1}}function AB(e,t,n,a,o,i,s,l,c){const u=r.computed(()=>(e.value-1)*o.value+1),d=r.computed(()=>n.value?Math.min(c.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),f=r.computed(()=>n.value?a.value:l.value.slice(u.value-1,d.value)),p=r.computed(()=>s.value?f.value.map((y,w)=>wr({index:u.value+w},y)):f.value),m=r.computed(()=>i.value.length===0||i.value.every(w=>l.value.findIndex(b=>JSON.stringify(w)===JSON.stringify(b))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(b=>l.value.findIndex(E=>JSON.stringify(b)===JSON.stringify(E))!==-1)?"allSelected":"partSelected"),v=r.computed(()=>t.value?m.value==="allSelected"?p.value.map(y=>wr({checkbox:!0},y)):m.value==="noneSelected"?p.value.map(y=>wr({checkbox:!1},y)):p.value.map(y=>{const w=i.value.findIndex(b=>{const E=wr({},y);return delete E.index,JSON.stringify(b)===JSON.stringify(E)})!==-1;return wr({checkbox:w},y)}):p.value);return{currentPageFirstIndex:u,currentPageLastIndex:d,multipleSelectStatus:m,pageItems:v}}function IB(e,t,n,a,o,i,s){const l=r.ref(i.value?i.value.page:e.value),c=r.computed(()=>Math.ceil(a.value/o.value)),u=r.computed(()=>c.value===0||l.value===c.value),d=r.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:c,isLastPage:u,isFirstPage:d,nextPage:()=>{if(a.value!==0&&!u.value&&!n.value)if(t.value){const y=l.value+1;s(y)}else l.value+=1},prevPage:()=>{if(a.value!==0&&!d.value&&!n.value)if(t.value){const y=l.value-1;s(y)}else l.value-=1},updatePage:y=>{n.value||(t.value?s(y):l.value=y)},updateCurrentPaginationNumber:y=>{l.value=y}}}function MB(e,t,n,a){const o=r.computed(()=>!e.value&&t.value.findIndex(l=>l===a.value)===-1?[a.value,...t.value]:t.value),i=r.ref(n.value?n.value.rowsPerPage:a.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function NB(e,t,n){const a=r.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:c,sortBy:u,sortType:d}=e.value;return{page:l,rowsPerPage:c,sortBy:u??null,sortType:d??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:a,updateServerOptionsPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:l}))},updateServerOptionsSort:(l,c)=>{if(a.value)if(t.value&&Array.isArray(a.value.sortBy)&&Array.isArray(a.value.sortType)){const u=a.value.sortBy.findIndex(d=>d===l);u===-1&&c!==null&&(a.value.sortBy.push(l),a.value.sortType.push(c)),c===null?(a.value.sortBy.splice(u,1),a.value.sortType.splice(u,1)):a.value.sortType[u]=c}else a.value=ql(wr({},a.value),{sortBy:c!==null?l:null,sortType:c})},updateServerOptionsRowsPerPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:1,rowsPerPage:l}))}}}function dn(e,t){var n;if(e.includes(".")){const a=e.split("."),{length:o}=a;let i,s=0;for(;s<o;){if(s===0)i=t[a[0]];else if(i&&typeof i=="object")i=i[a[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function OB(e,t){const n=dn(e,t);return Array.isArray(n)?n.join(","):n}function BB(e,t,n,a,o,i,s,l,c,u){const d=_=>{if(typeof i.value=="string"&&i.value!=="")return dn(i.value,_);if(Array.isArray(i.value)){let g="";return i.value.forEach(x=>{g+=dn(x,_)}),g}return Object.values(_).join(" ")},f=r.computed(()=>{if(!n.value&&s.value!==""){const _=new RegExp(s.value,"i");return a.value.filter(g=>_.test(d(g)))}return a.value}),p=r.computed(()=>{let _=[...f.value];return t.value?(t.value.forEach(g=>{_=_.filter(x=>{const{field:C,comparison:P,criteria:O}=g;if(typeof P=="function")return P(dn(C,x),O);const A=dn(C,x);switch(P){case"=":return A===O;case"!=":return A!==O;case">":return A>O;case"<":return A<O;case"<=":return A<=O;case">=":return A>=O;case"between":return A>=Math.min(...O)&&A<=Math.max(...O);case"in":return O.includes(A);default:return A===O}})}),_):f.value});r.watch(p,_=>{t.value&&u("updateFilter",_)},{immediate:!0,deep:!0});function m(_,g,x,C){const P=_[C],O=g[C];return(C===0?x:m(_,g,x,C-1)).sort((L,U)=>{let z=!0;for(let R=0;R<C;R+=1)if(dn(_[R],L)!==dn(_[R],U)){z=!1;break}return z?dn(P,L)<dn(P,U)?O?1:-1:dn(P,L)>dn(P,U)?O?-1:1:0:0})}const v=r.computed(()=>{if(n.value)return a.value;if(e.value===null)return p.value;const{sortBy:_,sortDesc:g}=e.value,x=[...p.value];return c&&Array.isArray(_)&&Array.isArray(g)?_.length===0?x:m(_,g,x,_.length-1):x.sort((C,P)=>dn(_,C)<dn(_,P)?g?1:-1:dn(_,C)>dn(_,P)?g?-1:1:0)}),y=r.computed(()=>n.value?l.value:v.value.length),w=r.computed({get:()=>{var _;return(_=o.value)!=null?_:[]},set:_=>{u("update:itemsSelected",_)}});return{totalItems:v,selectItemsComputed:w,totalItemsLength:y,toggleSelectAll:_=>{w.value=_?v.value:[],_&&u("selectAll")},toggleSelectItem:_=>{const g=_.checkbox;if(delete _.checkbox,delete _.index,g)w.value=w.value.filter(x=>JSON.stringify(x)!==JSON.stringify(_)),u("deselectRow",_);else{const x=w.value;x.unshift(_),w.value=x,u("selectRow",_)}}}}var LB={alternating:{type:Boolean,default:!1},buttonsPagination:{type:Boolean,default:!1},checkboxColumnWidth:{type:Number,default:null},currentPage:{type:Number,default:1},emptyMessage:{type:String,default:"No Available Data"},expandColumnWidth:{type:Number,default:36},filterOptions:{type:Array,default:null},fixedExpand:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},fixedCheckbox:{type:Boolean,default:!1},fixedIndex:{type:Boolean,default:!1},headerTextDirection:{type:String,default:"left"},bodyTextDirection:{type:String,default:"left"},hideFooter:{type:Boolean,default:!1},hideRowsPerPage:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},indexColumnWidth:{type:Number,default:60},itemsSelected:{type:Array,default:null},loading:{type:Boolean,default:!1},rowsPerPage:{type:Number,default:25},rowsItems:{type:Array,default:()=>[25,50,100]},rowsPerPageMessage:{type:String,default:"rows per page:"},searchField:{type:[String,Array],default:""},searchValue:{type:String,default:""},serverOptions:{type:Object,default:null},serverItemsLength:{type:Number,default:0},showIndex:{type:Boolean,default:!1},sortBy:{type:[String,Array],default:""},sortType:{type:[String,Array],default:"asc"},multiSort:{type:Boolean,default:!1},tableMinHeight:{type:Number,default:180},tableHeight:{type:Number,default:null},themeColor:{type:String,default:"#42b883"},tableClassName:{type:String,default:""},headerClassName:{type:String,default:""},headerItemClassName:{type:[Function,String],default:""},bodyRowClassName:{type:[Function,String],default:""},bodyExpandRowClassName:{type:[Function,String],default:""},bodyItemClassName:{type:[Function,String],default:""},noHover:{type:Boolean,default:!1},borderCell:{type:Boolean,default:!1},mustSort:{type:Boolean,default:!1},rowsOfPageSeparatorMessage:{type:String,default:"of"},clickEventType:{type:String,default:"single"},clickRowToExpand:{type:Boolean,default:!1},tableNodeId:{type:String,default:""},showIndexSymbol:{type:String,default:"#"},preventContextMenuRow:{type:Boolean,default:!0}};const DB=e=>(r.pushScopeId("data-v-32683533"),e=e(),r.popScopeId(),e),RB=["id"],$B=["onClick"],zB={key:3,class:"header-text"},VB={key:5,class:"multi-sort__number"},FB=["onClick","onDblclick","onContextmenu"],jB=["onClick"],HB=["colspan"],UB={key:0,class:"vue3-easy-data-table__loading"},WB=DB(()=>r.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),qB={class:"loading-entity"},YB={key:1,class:"vue3-easy-data-table__message"},GB={key:0,class:"vue3-easy-data-table__footer"},KB={key:0,class:"pagination__rows-per-page"},XB={class:"pagination__items-index"},JB=r.defineComponent({__name:"DataTable",props:ql(wr({},LB),{items:{type:Array,required:!0},headers:{type:Array,required:!0}}),emits:["clickRow","contextmenuRow","selectRow","deselectRow","expandRow","updateSort","updateFilter","update:itemsSelected","update:serverOptions","updatePageItems","updateTotalItems","selectAll"],setup(e,{expose:t,emit:n}){const a=e;r.useCssVars(Pe=>({da0d4328:r.unref(j),"3037e504":r.unref(oe)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:c,expandColumnWidth:u,filterOptions:d,fixedCheckbox:f,fixedExpand:p,fixedHeader:m,fixedIndex:v,headers:y,headerTextDirection:w,indexColumnWidth:b,items:E,itemsSelected:_,loading:g,mustSort:x,multiSort:C,rowsItems:P,rowsPerPage:O,searchField:A,searchValue:L,serverItemsLength:U,serverOptions:z,showIndex:R,sortBy:I,sortType:B,tableHeight:M,tableMinHeight:$,themeColor:K,rowsOfPageSeparatorMessage:V,showIndexSymbol:Z,preventContextMenuRow:q}=r.toRefs(a),oe=r.computed(()=>M.value?`${M.value}px`:null),j=r.computed(()=>`${$.value}px`);r.provide("themeColor",K.value);const W=r.useSlots(),Y=r.computed(()=>!!W.pagination),H=r.computed(()=>!!W.loading),T=r.computed(()=>!!W.expand),J=r.computed(()=>!!W.body),le=r.ref(),Oe=r.ref();r.provide("dataTable",le);const ee=r.ref(!1);r.onMounted(()=>{Oe.value.addEventListener("scroll",()=>{ee.value=Oe.value.scrollLeft>0})});const Te=r.computed(()=>_.value!==null),ae=r.computed(()=>z.value!==null),{serverOptionsComputed:ue,updateServerOptionsPage:D,updateServerOptionsSort:de,updateServerOptionsRowsPerPage:fe}=NB(z,C,n),{clientSortOptions:ce,headerColumns:Ae,headersForRender:pe,updateSortField:Ie,isMultiSorting:xe,getMultiSortNumber:X}=PB(Z,l,u,f,p,v,y,T,b,Te,ae,x,ue,R,I,B,C,de,n),{rowsItemsComputed:re,rowsPerPageRef:ye,updateRowsPerPage:Ze}=MB(ae,P,z,O),{totalItems:ct,selectItemsComputed:Se,totalItemsLength:ut,toggleSelectAll:$t,toggleSelectItem:xn}=BB(ce,d,ae,E,_,A,L,U,C,n),{currentPaginationNumber:zt,maxPaginationNumber:Kt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,updateCurrentPaginationNumber:se}=IB(c,ae,g,ut,ye,z,D),{currentPageFirstIndex:be,currentPageLastIndex:Re,multipleSelectStatus:ne,pageItems:he}=AB(zt,Te,ae,E,ye,Se,R,ct,ut),Ce=r.computed(()=>zt.value===0?0:(zt.value-1)*ye.value),{expandingItemIndexList:st,updateExpandingItemIndexList:vt,clearExpandingItemIndexList:Ut}=EB(he,Ce,n),{fixedHeaders:Vt,lastFixedColumn:nn,fixedColumnsInfos:za}=TB(pe),{clickRow:Wn}=xB(i,Te,R,n),Vi=(Pe,rn)=>{q.value&&rn.preventDefault(),n("contextmenuRow",Pe,rn)},Ao=Pe=>{var rn;const Me=(rn=Pe.width)!=null?rn:Vt.value.length?100:null;if(Me)return`width: ${Me}px; min-width: ${Me}px;`},Io=(Pe,rn="th")=>{if(!Vt.value.length)return;const Me=za.value.find(Ot=>Ot.value===Pe);if(Me)return`left: ${Me.distance}px;z-index: ${rn==="th"?3:1};position: sticky;`};return r.watch(g,(Pe,rn)=>{ue.value&&Pe===!1&&rn===!0&&(se(ue.value.page),Ut())}),r.watch(ye,Pe=>{ae.value?fe(Pe):G(1)}),r.watch([L,d],()=>{ae.value||G(1)}),r.watch([zt,ce,A,L,d],()=>{Ut()},{deep:!0}),r.watch(he,Pe=>{n("updatePageItems",Pe)},{deep:!0}),r.watch(ct,Pe=>{n("updateTotalItems",Pe)},{deep:!0}),t({currentPageFirstIndex:be,currentPageLastIndex:Re,clientItemsLength:ut,maxPaginationNumber:Kt,currentPaginationNumber:zt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,rowsPerPageOptions:re,rowsPerPageActiveOption:ye,updateRowsPerPageActiveOption:Ze}),(Pe,rn)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"dataTable",ref:le,class:r.normalizeClass(["vue3-easy-data-table",[Pe.tableClassName]])},[r.createElementVNode("div",{ref_key:"tableBody",ref:Oe,class:r.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":r.unref(m),"fixed-height":r.unref(M),"show-shadow":ee.value,"table-fixed":r.unref(Vt).length,hoverable:!Pe.noHover,"border-cell":Pe.borderCell}])},[r.createElementVNode("table",{id:r.unref(o)},[r.createElementVNode("colgroup",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("col",{key:Ot,style:r.normalizeStyle(Ao(Me))},null,4))),128))]),r.unref(W)["customize-headers"]?r.renderSlot(Pe.$slots,"customize-headers",{key:0},void 0,!0):r.unref(pe).length&&!Pe.hideHeader?(r.openBlock(),r.createElementBlock("thead",{key:1,class:r.normalizeClass(["vue3-easy-data-table__header",[Pe.headerClassName]])},[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("th",{key:Ot,class:r.normalizeClass([{sortable:Me.sortable,none:Me.sortable&&Me.sortType==="none",desc:Me.sortable&&Me.sortType==="desc",asc:Me.sortable&&Me.sortType==="asc",shadow:Me.value===r.unref(nn)},typeof Pe.headerItemClassName=="string"?Pe.headerItemClassName:Pe.headerItemClassName(Me,Ot+1)]),style:r.normalizeStyle(Io(Me.value)),onClick:r.withModifiers(gt=>Me.sortable&&Me.sortType?r.unref(Ie)(Me.value,Me.sortType):null,["stop"])},[Me.text==="checkbox"?(r.openBlock(),r.createBlock(WO,{key:r.unref(ne),status:r.unref(ne),onChange:r.unref($t)},null,8,["status","onChange"])):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["header",`direction-${r.unref(w)}`])},[r.unref(W)[`header-${Me.value}`]?r.renderSlot(Pe.$slots,`header-${Me.value}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`header-${Me.value.toLowerCase()}`]?r.renderSlot(Pe.$slots,`header-${Me.value.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):r.unref(W).header?r.renderSlot(Pe.$slots,"header",r.normalizeProps(r.mergeProps({key:2},Me)),void 0,!0):(r.openBlock(),r.createElementBlock("span",zB,r.toDisplayString(Me.text),1)),Me.sortable?(r.openBlock(),r.createElementBlock("i",{key:Me.sortType?Me.sortType:"none",class:r.normalizeClass(["sortType-icon",{desc:Me.sortType==="desc"}])},null,2)):r.createCommentVNode("",!0),r.unref(C)&&r.unref(xe)(Me.value)?(r.openBlock(),r.createElementBlock("span",VB,r.toDisplayString(r.unref(X)(Me.value)),1)):r.createCommentVNode("",!0)],2))],14,$B))),128))])],2)):r.createCommentVNode("",!0),r.unref(J)?r.renderSlot(Pe.$slots,"body",r.normalizeProps(r.mergeProps({key:2},r.unref(he))),void 0,!0):r.unref(Ae).length?(r.openBlock(),r.createElementBlock("tbody",{key:3,class:r.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Pe.alternating}])},[r.renderSlot(Pe.$slots,"body-prepend",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)},headers:r.unref(pe)})),void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(he),(Me,Ot)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:Ot},[r.createElementVNode("tr",{class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyRowClassName=="string"?Pe.bodyRowClassName:Pe.bodyRowClassName(Me,Ot+1)]),onClick:gt=>{r.unref(Wn)(Me,"single",gt),Pe.clickRowToExpand&&r.unref(vt)(Ot+r.unref(Ce),Me,gt)},onDblclick:gt=>{r.unref(Wn)(Me,"double",gt)},onContextmenu:gt=>{Vi(Me,gt)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ae),(gt,sa)=>(r.openBlock(),r.createElementBlock("td",{key:sa,style:r.normalizeStyle(Io(gt,"td")),class:r.normalizeClass([{shadow:gt===r.unref(nn),"can-expand":gt==="expand"},typeof Pe.bodyItemClassName=="string"?Pe.bodyItemClassName:Pe.bodyItemClassName(gt,Ot+1),`direction-${r.unref(s)}`]),onClick:vn=>gt==="expand"?r.unref(vt)(Ot+r.unref(Ce),Me,vn):null},[r.unref(W)[`item-${gt}`]?r.renderSlot(Pe.$slots,`item-${gt}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`item-${gt.toLowerCase()}`]?r.renderSlot(Pe.$slots,`item-${gt.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):gt==="expand"?(r.openBlock(),r.createElementBlock("i",{key:2,class:r.normalizeClass(["expand-icon",{expanding:r.unref(st).includes(r.unref(Ce)+Ot)}])},null,2)):gt==="checkbox"?(r.openBlock(),r.createBlock(XO,{key:3,checked:Me[gt],onChange:vn=>r.unref(xn)(Me)},null,8,["checked","onChange"])):r.unref(W).item?r.renderSlot(Pe.$slots,"item",r.normalizeProps(r.mergeProps({key:4},{column:gt,item:Me})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:5},[r.createTextVNode(r.toDisplayString(r.unref(OB)(gt,Me)),1)],64))],14,jB))),128))],42,FB),r.unref(T)&&r.unref(st).includes(Ot+r.unref(Ce))?(r.openBlock(),r.createElementBlock("tr",{key:0,class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyExpandRowClassName=="string"?Pe.bodyExpandRowClassName:Pe.bodyExpandRowClassName(Me,Ot+1)])},[r.createElementVNode("td",{colspan:r.unref(pe).length,class:"expand"},[Me.expandLoading?(r.openBlock(),r.createBlock(mB,{key:0,class:"expand-loading"})):r.createCommentVNode("",!0),r.renderSlot(Pe.$slots,"expand",r.normalizeProps(r.guardReactiveProps(Me)),void 0,!0)],8,HB)],2)):r.createCommentVNode("",!0)],64))),128)),r.renderSlot(Pe.$slots,"body-append",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He),updatePage:r.unref(G)},headers:r.unref(pe)})),void 0,!0)],2)):r.createCommentVNode("",!0)],8,RB),r.unref(g)?(r.openBlock(),r.createElementBlock("div",UB,[WB,r.createElementVNode("div",qB,[r.unref(H)?r.renderSlot(Pe.$slots,"loading",{key:0},void 0,!0):(r.openBlock(),r.createBlock(dB,{key:1}))])])):r.createCommentVNode("",!0),!r.unref(he).length&&!r.unref(g)?(r.openBlock(),r.createElementBlock("div",YB,[r.renderSlot(Pe.$slots,"empty-message",{},()=>[r.createTextVNode(r.toDisplayString(Pe.emptyMessage),1)],!0)])):r.createCommentVNode("",!0)],2),Pe.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",GB,[Pe.hideRowsPerPage?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KB,[r.createTextVNode(r.toDisplayString(Pe.rowsPerPageMessage)+" ",1),r.createVNode(rB,{modelValue:r.unref(ye),"onUpdate:modelValue":rn[0]||(rn[0]=Me=>r.isRef(ye)?ye.value=Me:null),"rows-items":r.unref(re)},null,8,["modelValue","rows-items"])])),r.createElementVNode("div",XB,r.toDisplayString(`${r.unref(be)}–${r.unref(Re)}`)+" "+r.toDisplayString(r.unref(V))+" "+r.toDisplayString(r.unref(ut)),1),r.unref(Y)?r.renderSlot(Pe.$slots,"pagination",r.normalizeProps(r.mergeProps({key:1},{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)})),void 0,!0):(r.openBlock(),r.createBlock(CB,{key:2,"is-first-page":r.unref(_e),"is-last-page":r.unref(te),onClickNextPage:r.unref(Ee),onClickPrevPage:r.unref(He)},r.createSlots({_:2},[Pe.buttonsPagination?{name:"buttonsPagination",fn:r.withCtx(()=>[r.createVNode(yB,{"current-pagination-number":r.unref(zt),"max-pagination-number":r.unref(Kt),onUpdatePage:r.unref(G)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hb=Da(JB,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hb);const QB={class:"relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-2xs"},ZB={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},eL={class:"items-center sm:flex","data-test-results":""},tL={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},nL={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},rL=r.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,a=t,o=r.computed(()=>n.dataTable),i=r.computed(()=>o.value?.clientItemsLength??0),s=r.computed(()=>o.value?.maxPaginationNumber),l=r.computed(()=>n.currentPage??o.value?.currentPaginationNumber);function c(){a("nextPage")}function u(){a("previousPage")}function d(p){a("updatePage",p)}function f(){a("updatePage",1)}return(p,m)=>(r.openBlock(),r.createElementBlock("div",QB,[r.createElementVNode("div",ZB,[r.createElementVNode("div",eL,[o.value?(r.openBlock(),r.createElementBlock("div",tL,[m[1]||(m[1]=r.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1)),r.createVNode(r.unref(iu),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":m[0]||(m[0]=v=>o.value.rowsPerPageActiveOption=v),"can-clear":!1,"can-deselect":!1,options:o.value.rowsPerPageOptions,"additional-classes":{singleLabel:"p-3!",caret:"mr-2!"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):r.createCommentVNode("",!0),r.createElementVNode("div",nL,[r.renderSlot(p.$slots,"results",{results:i.value},()=>[r.createTextVNode(r.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(r.openBlock(),r.createBlock(r.unref(Ib),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:d,onNextPage:c,onPreviousPage:u},null,8,["current-page","last-page"])):r.createCommentVNode("",!0)])]))}}),aL={key:0,class:"w-full -mt-24 -translate-y-0.5"},oL=r.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:r.mergeModels({headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"},hideFooter:{type:Boolean,default:!1}},{sort:{},sortModifiers:{}}),emits:r.mergeModels(["update:modelValue","updatePage","clickItem","contextMenuOpen","clickContextItem","sortClient"],["update:sort"]),setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.useSlots(),s=Mi(),l=fu(),c=r.useModel(e,"sort"),u=Zt.useKeyModifier("Alt"),d=r.ref(),f=r.ref(a?.modelValue??void 0),p=r.computed(()=>d.value);r.watch(()=>f.value,g=>{f.value&&a.actionBarSelection!==!1&&o("update:modelValue",[...g.map(x=>x?.[a.actionBarSelectionKey])])}),r.onMounted(()=>{a?.modelValue&&r.watch(a.modelValue,g=>{f.value=g})});function m(g){if(f.value&&s.setTableSelection(f.value),!g&&a.actionBarSelection){s.setSelection(f.value.map(x=>x?.[a.actionBarSelectionKey]));return}g&&a.actionBarSelection&&s.setSelection(g.map(x=>x?.[a.actionBarSelectionKey])),a.actionBarSelection===!1&&o("update:modelValue",[...g.map(x=>x?.[a.actionBarSelectionKey])])}function v(g){p.value?.updatePage(g),o("updatePage",g)}function y(){p.value?.prevPage(),o("updatePage",(p.value?.currentPaginationNumber??2)-1)}function w(){p.value?.nextPage(),o("updatePage",(p.value?.currentPaginationNumber??0)+1)}function b(g){if(u.value&&f.value!==void 0){const x=f.value.findIndex(C=>C.id===g.id);if(x>-1){f.value.splice(x,1),m();return}f.value.push({...g,isSelected:void 0}),m();return}o("clickItem",g)}function E(g){if(g.sortBy){c.value=`${g.sortType==="desc"?"-":""}${g.sortBy}`;return}c.value=void 0}function _(g){o("sortClient",g)}return t({dataTableInstance:p}),s.onResetSelection.value=g=>{a?.modelValue!==void 0&&(f.value=g)},(g,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"app-table-without-selection":a?.modelValue===void 0},"app-data-table-wrapper"])},[r.createVNode(r.unref(hb),r.mergeProps({ref_key:"dataTable",ref:d},{...g.$props,...g.$attrs},{"items-selected":f.value,"onUpdate:itemsSelected":[x[0]||(x[0]=C=>f.value=C),m],"hide-footer":!0,class:{"app-hide-footer":g.hideFooter},headers:g.headers,"checkbox-column-width":30,"rows-items":g.rowItems,"rows-per-page":g.rowsPerPage,"body-row-class-name":"drop-shadow-xs rounded-xl",onClickRow:b,onContextmenuRow:r.unref(l).open,"onUpdate:serverOptions":E,onUpdateSort:_}),r.createSlots({loading:r.withCtx(()=>[r.createVNode(r.unref(Na),{size:"medium"})]),_:2},[r.renderList(Object.keys(r.unref(i)),(C,P)=>({name:C,fn:r.withCtx(O=>[r.renderSlot(g.$slots,C,r.normalizeProps(r.guardReactiveProps(O)))])}))]),1040,["items-selected","class","headers","rows-items","rows-per-page","onContextmenuRow"]),p.value&&!g.hideFooter?(r.openBlock(),r.createElementBlock("div",aL,[r.createVNode(rL,{"data-table":p.value,"current-page":g.currentPage,onNextPage:w,onPreviousPage:y,onUpdatePage:v},{results:r.withCtx(({results:C})=>[r.renderSlot(g.$slots,"footer-results",{results:C})]),_:3},8,["data-table","current-page"])])):r.createCommentVNode("",!0)],2))}}),iL=(e,t,n)=>{const a=e[t];return a?typeof a=="function"?a():Promise.resolve(a):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Sa=Math.min,Tn=Math.max,hc=Math.round,wl=Math.floor,Pr=e=>({x:e,y:e}),sL={left:"right",right:"left",bottom:"top",top:"bottom"},lL={start:"end",end:"start"};function Ef(e,t,n){return Tn(e,Sa(t,n))}function Ca(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function im(e){return e==="x"?"y":"x"}function sm(e){return e==="y"?"height":"width"}const cL=new Set(["top","bottom"]);function Sr(e){return cL.has(Jr(e))?"y":"x"}function lm(e){return im(Sr(e))}function uL(e,t,n){n===void 0&&(n=!1);const a=Ii(e),o=lm(e),i=sm(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vc(s)),[s,vc(s)]}function dL(e){const t=vc(e);return[Tf(e),t,Tf(t)]}function Tf(e){return e.replace(/start|end/g,t=>lL[t])}const m0=["left","right"],h0=["right","left"],fL=["top","bottom"],pL=["bottom","top"];function mL(e,t,n){switch(e){case"top":case"bottom":return n?t?h0:m0:t?m0:h0;case"left":case"right":return t?fL:pL;default:return[]}}function hL(e,t,n,a){const o=Ii(e);let i=mL(Jr(e),n==="start",a);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Tf)))),i}function vc(e){return e.replace(/left|right|bottom|top/g,t=>sL[t])}function vL(e){return{top:0,right:0,bottom:0,left:0,...e}}function vb(e){return typeof e!="number"?vL(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function v0(e,t,n){let{reference:a,floating:o}=e;const i=Sr(t),s=lm(t),l=sm(s),c=Jr(t),u=i==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[l]/2-o[l]/2;let m;switch(c){case"top":m={x:d,y:a.y-o.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-o.width,y:f};break;default:m={x:a.x,y:a.y}}switch(Ii(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const gL=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=v0(u,a,c),p=a,m={},v=0;for(let y=0;y<l.length;y++){const{name:w,fn:b}=l[y],{x:E,y:_,data:g,reset:x}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=E??d,f=_??f,m={...m,[w]:{...m[w],...g}},x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:f}=v0(u,p,c)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}};async function cm(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Ca(t,e),v=vb(m),w=l[p?f==="floating"?"reference":"floating":f],b=gc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),E=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),g=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},x=gc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:_,strategy:c}):E);return{top:(b.top-x.top+v.top)/g.y,bottom:(x.bottom-b.bottom+v.bottom)/g.y,left:(b.left-x.left+v.left)/g.x,right:(x.right-b.right+v.right)/g.x}}const yL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Ca(e,t)||{};if(u==null)return{};const f=vb(d),p={x:n,y:a},m=lm(o),v=sm(m),y=await s.getDimensions(u),w=m==="y",b=w?"top":"left",E=w?"bottom":"right",_=w?"clientHeight":"clientWidth",g=i.reference[v]+i.reference[m]-p[m]-i.floating[v],x=p[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=C?C[_]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=l.floating[_]||i.floating[v]);const O=g/2-x/2,A=P/2-y[v]/2-1,L=Sa(f[b],A),U=Sa(f[E],A),z=L,R=P-y[v]-U,I=P/2-y[v]/2+O,B=Ef(z,I,R),M=!c.arrow&&Ii(o)!=null&&I!==B&&i.reference[v]/2-(I<z?L:U)-y[v]/2<0,$=M?I<z?I-z:I-R:0;return{[m]:p[m]+$,data:{[m]:B,centerOffset:I-B-$,...M&&{alignmentOffset:$}},reset:M}}}),bL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=Ca(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Jr(o),E=Sr(l),_=Jr(l)===l,g=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(_||!y?[vc(l)]:dL(l)),C=v!=="none";!p&&C&&x.push(...hL(l,y,v,g));const P=[l,...x],O=await cm(t,w),A=[];let L=((a=i.flip)==null?void 0:a.overflows)||[];if(d&&A.push(O[b]),f){const I=uL(o,s,g);A.push(O[I[0]],O[I[1]])}if(L=[...L,{placement:o,overflows:A}],!A.every(I=>I<=0)){var U,z;const I=(((U=i.flip)==null?void 0:U.index)||0)+1,B=P[I];if(B&&(!(f==="alignment"?E!==Sr(B):!1)||L.every(K=>Sr(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:B}};let M=(z=L.filter($=>$.overflows[0]<=0).sort(($,K)=>$.overflows[1]-K.overflows[1])[0])==null?void 0:z.placement;if(!M)switch(m){case"bestFit":{var R;const $=(R=L.filter(K=>{if(C){const V=Sr(K.placement);return V===E||V==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((K,V)=>K[1]-V[1])[0])==null?void 0:R[0];$&&(M=$);break}case"initialPlacement":M=l;break}if(o!==M)return{reset:{placement:M}}}return{}}}},gb=new Set(["left","top"]);async function wL(e,t){const{placement:n,platform:a,elements:o}=e,i=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=Jr(n),l=Ii(n),c=Sr(n)==="y",u=gb.has(s)?-1:1,d=i&&c?-1:1,f=Ca(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(m=l==="end"?v*-1:v),c?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const kL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await wL(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},_L=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:b,y:E}=w;return{x:b,y:E}}},...c}=Ca(e,t),u={x:n,y:a},d=await cm(t,c),f=Sr(Jr(o)),p=im(f);let m=u[p],v=u[f];if(i){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",E=m+d[w],_=m-d[b];m=Ef(E,m,_)}if(s){const w=f==="y"?"top":"left",b=f==="y"?"bottom":"right",E=v+d[w],_=v-d[b];v=Ef(E,v,_)}const y=l.fn({...t,[p]:m,[f]:v});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[p]:i,[f]:s}}}}}},SL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Ca(e,t),d={x:n,y:a},f=Sr(o),p=im(f);let m=d[p],v=d[f];const y=Ca(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const _=p==="y"?"height":"width",g=i.reference[p]-i.floating[_]+w.mainAxis,x=i.reference[p]+i.reference[_]-w.mainAxis;m<g?m=g:m>x&&(m=x)}if(u){var b,E;const _=p==="y"?"width":"height",g=gb.has(Jr(o)),x=i.reference[f]-i.floating[_]+(g&&((b=s.offset)==null?void 0:b[f])||0)+(g?0:w.crossAxis),C=i.reference[f]+i.reference[_]+(g?0:((E=s.offset)==null?void 0:E[f])||0)-(g?w.crossAxis:0);v<x?v=x:v>C&&(v=C)}return{[p]:m,[f]:v}}}},CL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...u}=Ca(e,t),d=await cm(t,u),f=Jr(o),p=Ii(o),m=Sr(o)==="y",{width:v,height:y}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=f,w=p==="end"?"top":"bottom");const E=y-d.top-d.bottom,_=v-d.left-d.right,g=Sa(y-d[w],E),x=Sa(v-d[b],_),C=!t.middlewareData.shift;let P=g,O=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(P=E),C&&!p){const L=Tn(d.left,0),U=Tn(d.right,0),z=Tn(d.top,0),R=Tn(d.bottom,0);m?O=v-2*(L!==0||U!==0?L+U:Tn(d.left,d.right)):P=y-2*(z!==0||R!==0?z+R:Tn(d.top,d.bottom))}await c({...t,availableWidth:O,availableHeight:P});const A=await s.getDimensions(l.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function cu(){return typeof window<"u"}function So(e){return um(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function um(e){return cu()?e instanceof Node||e instanceof Mn(e).Node:!1}function sr(e){return cu()?e instanceof Element||e instanceof Mn(e).Element:!1}function Or(e){return cu()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function g0(e){return!cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}const xL=new Set(["inline","contents"]);function js(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!xL.has(o)}const EL=new Set(["table","td","th"]);function TL(e){return EL.has(So(e))}const PL=[":popover-open",":modal"];function uu(e){return PL.some(t=>{try{return e.matches(t)}catch{return!1}})}const AL=["transform","translate","scale","rotate","perspective"],IL=["transform","translate","scale","rotate","perspective","filter"],ML=["paint","layout","strict","content"];function dm(e){const t=fm(),n=sr(e)?lr(e):e;return AL.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IL.some(a=>(n.willChange||"").includes(a))||ML.some(a=>(n.contain||"").includes(a))}function NL(e){let t=xa(e);for(;Or(t)&&!yi(t);){if(dm(t))return t;if(uu(t))return null;t=xa(t)}return null}function fm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OL=new Set(["html","body","#document"]);function yi(e){return OL.has(So(e))}function lr(e){return Mn(e).getComputedStyle(e)}function du(e){return sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xa(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g0(e)&&e.host||Lr(e);return g0(t)?t.host:t}function yb(e){const t=xa(e);return yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Or(t)&&js(t)?t:yb(t)}function Ss(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yb(e),i=o===((a=e.ownerDocument)==null?void 0:a.body),s=Mn(o);if(i){const l=Pf(s);return t.concat(s,s.visualViewport||[],js(o)?o:[],l&&n?Ss(l):[])}return t.concat(o,Ss(o,[],n))}function Pf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bb(e){const t=lr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=Or(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:a,l=hc(n)!==i||hc(a)!==s;return l&&(n=i,a=s),{width:n,height:a,$:l}}function pm(e){return sr(e)?e:e.contextElement}function Zo(e){const t=pm(e);if(!Or(t))return Pr(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:i}=bb(t);let s=(i?hc(n.width):n.width)/a,l=(i?hc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const BL=Pr(0);function wb(e){const t=Mn(e);return!fm()||!t.visualViewport?BL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mn(e)?!1:t}function vo(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=pm(e);let s=Pr(1);t&&(a?sr(a)&&(s=Zo(a)):s=Zo(e));const l=LL(i,n,a)?wb(i):Pr(0);let c=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Mn(i),m=a&&sr(a)?Mn(a):a;let v=p,y=Pf(v);for(;y&&a&&m!==v;){const w=Zo(y),b=y.getBoundingClientRect(),E=lr(y),_=b.left+(y.clientLeft+parseFloat(E.paddingLeft))*w.x,g=b.top+(y.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,f*=w.y,c+=_,u+=g,v=Mn(y),y=Pf(v)}}return gc({width:d,height:f,x:c,y:u})}function mm(e,t){const n=du(e).scrollLeft;return t?t.left+n:vo(Lr(e)).left+n}function kb(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-(n?0:mm(e,a)),i=a.top+t.scrollTop;return{x:o,y:i}}function DL(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const i=o==="fixed",s=Lr(a),l=t?uu(t.floating):!1;if(a===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Pr(1);const d=Pr(0),f=Or(a);if((f||!f&&!i)&&((So(a)!=="body"||js(s))&&(c=du(a)),Or(a))){const m=vo(a);u=Zo(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}const p=s&&!f&&!i?kb(s,c,!0):Pr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function RL(e){return Array.from(e.getClientRects())}function $L(e){const t=Lr(e),n=du(e),a=e.ownerDocument.body,o=Tn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Tn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+mm(e);const l=-n.scrollTop;return lr(a).direction==="rtl"&&(s+=Tn(t.clientWidth,a.clientWidth)-o),{width:o,height:i,x:s,y:l}}function zL(e,t){const n=Mn(e),a=Lr(e),o=n.visualViewport;let i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const u=fm();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}const VL=new Set(["absolute","fixed"]);function FL(e,t){const n=vo(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,i=Or(e)?Zo(e):Pr(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=a*i.y;return{width:s,height:l,x:c,y:u}}function y0(e,t,n){let a;if(t==="viewport")a=zL(e,n);else if(t==="document")a=$L(Lr(e));else if(sr(t))a=FL(t,n);else{const o=wb(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gc(a)}function _b(e,t){const n=xa(e);return n===t||!sr(n)||yi(n)?!1:lr(n).position==="fixed"||_b(n,t)}function jL(e,t){const n=t.get(e);if(n)return n;let a=Ss(e,[],!1).filter(l=>sr(l)&&So(l)!=="body"),o=null;const i=lr(e).position==="fixed";let s=i?xa(e):e;for(;sr(s)&&!yi(s);){const l=lr(s),c=dm(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&VL.has(o.position)||js(s)&&!c&&_b(e,s))?a=a.filter(d=>d!==s):o=l,s=xa(s)}return t.set(e,a),a}function HL(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const s=[...n==="clippingAncestors"?uu(t)?[]:jL(t,this._c):[].concat(n),a],l=s[0],c=s.reduce((u,d)=>{const f=y0(t,d,o);return u.top=Tn(f.top,u.top),u.right=Sa(f.right,u.right),u.bottom=Sa(f.bottom,u.bottom),u.left=Tn(f.left,u.left),u},y0(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function UL(e){const{width:t,height:n}=bb(e);return{width:t,height:n}}function WL(e,t,n){const a=Or(t),o=Lr(t),i=n==="fixed",s=vo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Pr(0);function u(){c.x=mm(o)}if(a||!a&&!i)if((So(t)!=="body"||js(o))&&(l=du(t)),a){const m=vo(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();i&&!a&&o&&u();const d=o&&!a&&!i?kb(o,l):Pr(0),f=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function hd(e){return lr(e).position==="static"}function b0(e,t){if(!Or(e)||lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function Sb(e,t){const n=Mn(e);if(uu(e))return n;if(!Or(e)){let o=xa(e);for(;o&&!yi(o);){if(sr(o)&&!hd(o))return o;o=xa(o)}return n}let a=b0(e,t);for(;a&&TL(a)&&hd(a);)a=b0(a,t);return a&&yi(a)&&hd(a)&&!dm(a)?n:a||NL(e)||n}const qL=async function(e){const t=this.getOffsetParent||Sb,n=this.getDimensions,a=await n(e.floating);return{reference:WL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function YL(e){return lr(e).direction==="rtl"}const GL={convertOffsetParentRelativeRectToViewportRelativeRect:DL,getDocumentElement:Lr,getClippingRect:HL,getOffsetParent:Sb,getElementRects:qL,getClientRects:RL,getDimensions:UL,getScale:Zo,isElement:sr,isRTL:YL};function Cb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KL(e,t){let n=null,a;const o=Lr(e);function i(){var l;clearTimeout(a),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(l||t(),!p||!m)return;const v=wl(f),y=wl(o.clientWidth-(d+p)),w=wl(o.clientHeight-(f+m)),b=wl(d),_={rootMargin:-v+"px "+-y+"px "+-w+"px "+-b+"px",threshold:Tn(0,Sa(1,c))||1};let g=!0;function x(C){const P=C[0].intersectionRatio;if(P!==c){if(!g)return s();P?s(!1,P):a=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Cb(u,e.getBoundingClientRect())&&s(),g=!1}try{n=new IntersectionObserver(x,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,_)}n.observe(e)}return s(!0),i}function XL(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=pm(e),d=o||i?[...u?Ss(u):[],...Ss(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=u&&l?KL(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[E]=b;E&&E.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let v,y=c?vo(e):null;c&&w();function w(){const b=vo(e);y&&!Cb(y,b)&&n(),y=b,v=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const xb=kL,JL=_L,Eb=bL,QL=CL,ZL=yL,eD=SL,tD=(e,t,n)=>{const a=new Map,o={platform:GL,...n},i={...o.platform,_c:a};return gL(e,t,{...o,platform:i})};function nD(e){return e!=null&&typeof e=="object"&&"$el"in e}function rD(e){if(nD(e)){const t=e.$el;return um(t)&&So(t)==="#comment"?null:t}return e}function aD(e){return typeof e=="function"?e():r.unref(e)}function oD(e){return{name:"arrow",options:e,fn(t){const n=rD(aD(e.element));return n==null?{}:ZL({element:n,padding:e.padding}).fn(t)}}}const Tb=r.defineComponent({__name:"Loading",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(Na))]))}}),iD=Object.freeze(Object.defineProperty({__proto__:null,default:Tb},Symbol.toStringTag,{value:"Module"})),Pb=r.defineComponent({__name:"Error",setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ey),{type:"error",title:"Onbekend type",description:"Type wordt niet ondersteund."}))}}),sD=Object.freeze(Object.defineProperty({__proto__:null,default:Pb},Symbol.toStringTag,{value:"Module"})),lD={default:["text-white"],danger:["text-red-500"]},cD={contextMenu:["focus:bg-zinc-600","px-2","py-1"],actionBar:["hover:bg-black-100/20"]},uD={actionBar:"before:-top-4 before:left-1/2 before:border-x-10 before:border-b-10 before:border-x-transparent before:border-b-secondary",contextMenu:""},dD=r.defineComponent({__name:"AppActionBarSubMenu",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=Zt.useParentElement(),i=r.useTemplateRef("subMenu"),s=r.useTemplateRef("submenuArrow"),{position:l}=Hs(o,i,{placement:n.context?"right-start":"bottom",middleware:[xb({mainAxis:n.context?25:20,crossAxis:0}),JL({padding:n.context?25:20,limiter:eD()}),Eb({mainAxis:!0,crossAxis:!0}),oD({element:s})]}),c=r.defineAsyncComponent({loader:async()=>typeof n.action.component=="string"?iL(Object.assign({"./Components/Error.vue":()=>Promise.resolve().then(()=>sD),"./Components/Loading.vue":()=>Promise.resolve().then(()=>iD),"./Components/MultiSelect.vue":()=>Promise.resolve().then(()=>TJ)}),`./Components/${cg.pascal(n.action.component)}.vue`,3):n.action.component,errorComponent:Pb,loadingComponent:Tb}),u=r.computed(()=>`${l.value?.placement}`.startsWith("left")?"left":"right"),d=r.computed(()=>l.value?.middlewareData?.arrow?.x??null);return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref:"subMenu",class:r.normalizeClass([{"-top-full left-full":n.context},"absolute w-fit rounded-lg bg-secondary p-2"])},[r.createElementVNode("div",{ref:"submenuArrow",class:r.normalizeClass([{"-translate-x-6 -ml-px":u.value==="right","translate-x-4":u.value==="left",hidden:!n.context},"absolute text-secondary size-8"]),style:r.normalizeStyle({left:d.value!==null&&u.value==="right"?`${d.value}px`:"",right:u.value==="left"?`${d.value??0}px`:"",top:r.unref(l)?.middlewareData?.arrow?.y!==null?`${r.unref(l)?.middlewareData?.arrow?.y}px`:""})},[r.createVNode(r.unref(yn),{icon:r.unref(bn).fas["caret-left"],class:r.normalizeClass([{"rotate-180":u.value==="left"},"size-full!"])},null,8,["icon","class"])],6),r.createElementVNode("div",{class:r.normalizeClass([r.unref(uD)[n.context?"contextMenu":"actionBar"],"relative w-fit before:absolute before:-translate-x-3"])},[r.createVNode(r.unref(c),r.mergeProps({...n,...f.action.componentProperties},{"data-test-action-menu":"",onClose:p[0]||(p[0]=()=>a("close"))}),null,16)],2)],2))}}),Ab=r.defineComponent({__name:"AppActionBarItem",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean,default:!1},item:{default:void 0}},emits:["close","confirm","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=Mi(),i=fu(),s=r.useTemplateRef("submenuElement"),{activate:l,deactivate:c,onEscape:u,onBack:d}=bm(s),f=r.ref(!1),p=r.ref(!1),m=r.ref([]),v=r.computed(()=>p.value?Na:f.value&&n.action.confirm?Ap:n.action.icon),y=r.computed(()=>n.action.type??"default"),w=r.computed(()=>typeof n.action.hidden=="function"?n.context&&i.item?n.action.hidden([r.toValue(i.item)],!0):n.action.hidden(o.tableSelection.value,!1):n.action.hidden);r.onMounted(()=>{n.confirmed&&(f.value=!0)});async function b(){if((n.action.confirm||n.action.component)&&!f.value){f.value=!0,n.action.component&&(await r.nextTick(),a("confirm"),await r.nextTick(),n.action.focusTrap!==!1&&setTimeout(l,300));return}p.value=!0,f.value=!1;const g=await n.action.onClick?.(n.item??o.tableSelection.value);p.value=!1,(n.action?.resetSelection??!0)&&o.resetSelection(),g&&a("close")}function E(){c(),f.value=!1,a("confirmed")}function _(){E(),a("close")}return u(_),d(E),(g,x)=>{const C=r.resolveDirective("tippy");return w.value!==!0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([[...r.unref(lD)[y.value],...r.unref(cD)[n.context?"contextMenu":"actionBar"],n.action.component?"has-submenu":""],"relative cursor-pointer rounded-md transition-colors duration-200"])},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"px-2.5 py-4":!g.context},"app-action-bar-item flex size-full items-center space-x-2 whitespace-nowrap"]),"data-test-action-bar-icon":"",onClick:b},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.value),{class:r.normalizeClass({"text-yellow-600":f.value&&g.action.confirm,"size-4":g.context,"size-5":!g.context,"size-5!":p.value})},null,8,["class"])),r.renderSlot(g.$slots,"default"),g.action.suffixIcon&&g.context?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(g.action.suffixIcon),{key:0,class:"size-5 ml-auto"})):r.createCommentVNode("",!0)],2)),[[C,g.context?void 0:g.action.name]]),n.action.component&&f.value?(r.openBlock(),r.createBlock(dD,r.mergeProps({key:0,ref_key:"submenuElement",ref:s,modelValue:m.value,"onUpdate:modelValue":x[0]||(x[0]=P=>m.value=P)},n,{onClose:E}),null,16,["modelValue"])):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0)}}}),fD={class:"flex py-4.5"},pD={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},mD={class:"flex"},hm=r.defineComponent({__name:"AppActionBar",setup(e){const t=r.useTemplateRef("actionBar"),{selection:n,actions:a,isOpen:o,close:i,resetSelection:s,selectionText:l}=Mi(),{setComputedPosition:c}=Hs(()=>document.getElementById("sidebar-left-wrapper"),t,{active:!0,placement:"left-start",mainAxis:0,sizeElement:"#sidebar-wrapper"}),u=r.ref([1]),d=r.computed(()=>l.value.replace(":selection",String(n.value.length)));r.watch(o,()=>c()),r.watch(n,()=>{n.value.length===0&&i()});function f(){u.value=[1],s()}function p(){s(),i()}return Zt.onKeyStroke(["Escape"],m=>{m.preventDefault(),p()}),(m,v)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{ref_key:"actionBar",ref:t,class:r.normalizeClass([{"translate-y-0! max-md:mt-0!":r.unref(n).length>0&&r.unref(o)},"fixed inset-x-0 top-0 z-100 flex h-14 md:-mt-1 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-[translate] ease-in-out max-md:transform-none! max-md:translate-none! max-md:-mt-10"]),"data-test-action-bar-wrapper":""},[r.createElementVNode("div",fD,[r.createVNode(nb,{modelValue:u.value,"onUpdate:modelValue":v[0]||(v[0]=y=>u.value=y),value:1,type:"checkbox",onChange:f},null,8,["modelValue"]),r.createElementVNode("div",pD,r.toDisplayString(d.value),1)]),r.createElementVNode("div",mD,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(y,w)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${w}`,action:y,onClose:p},null,8,["action"]))),128))]),r.createElementVNode("div",null,[r.createVNode(r.unref(km),{class:"size-5 cursor-pointer",onClick:p})])],2)]))}}),vd=r.defineComponent({__name:"AppPaginationItem",props:{as:{default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.as),{class:r.normalizeClass([{"-ml-px border-primary! bg-primary text-white hover:bg-primary!":t.active,"border-y border-y-zinc-300! bg-zinc-100! text-zinc-300!":t.disabled,"hover:border-y hover:border-zinc-300 hover:bg-zinc-100":t.as==="a"},"-my-px flex items-center border-y border-r border-y-transparent border-r-zinc-300 px-3 py-1 last:border-r-0"])},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),hD={class:"my-0! flex items-center justify-between border-zinc-200 sm:px-6"},Ib=r.defineComponent({__name:"AppPagination",props:{meta:{default:void 0},currentPage:{default:void 0},lastPage:{default:void 0},loaded:{type:Boolean,default:!0}},emits:["paginate","nextPage","previousPage"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(2),i=r.computed(()=>n.meta?.meta?.currentPage??n.currentPage??1),s=r.computed(()=>n.meta?.meta?.lastPage??n.lastPage??1),l=r.computed(()=>{const m=i.value-o.value;return m>0?m:1}),c=r.computed(()=>{const m=i.value+o.value;return m<s.value?m:s.value}),u=r.computed(()=>{const m=i.value-1;return m>0?m:null}),d=r.computed(()=>{const m=i.value+1;return m<=s.value?m:null}),f=r.computed(()=>{const m=[];l.value>1&&(m.push(1),l.value>2&&m.push(0));for(let v=l.value;v<=c.value;v+=1)m.push(v);return c.value<s.value&&(c.value+1!==s.value&&m.push(0),m.push(s.value)),m});function p(m){m&&a("paginate",m)}return(m,v)=>(r.openBlock(),r.createElementBlock("div",hD,[r.createElementVNode("div",null,[r.createElementVNode("nav",{class:r.normalizeClass([{"pointer-events-none opacity-50":!m.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[r.createVNode(vd,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:v[0]||(v[0]=r.withModifiers(()=>a("previousPage"),["prevent"]))},{default:r.withCtx(()=>[v[2]||(v[2]=r.createElementVNode("span",{class:"sr-only"},"previous",-1)),r.createVNode(r.unref(wm),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[2]},8,["disabled"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,y=>(r.openBlock(),r.createBlock(vd,{key:`pagination-${y}`,as:y?"a":"span",active:y===i.value,href:"#",onClick:r.withModifiers(()=>p(y),["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),r.createVNode(vd,{class:r.normalizeClass([{"cursor-not-allowed":d.value===null},"rounded-r-lg"]),disabled:d.value===null,href:"#",onClick:v[1]||(v[1]=r.withModifiers(()=>a("nextPage"),["prevent"]))},{default:r.withCtx(()=>[v[3]||(v[3]=r.createElementVNode("span",{class:"sr-only"},"next",-1)),r.createVNode(r.unref(Jb),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[3]},8,["class","disabled"])],2)])]))}}),vD=["aria-checked","disabled"],Mb=r.defineComponent({__name:"AppToggle",props:r.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue");function a(){t.disabled||(n.value=!n.value)}return(o,i)=>(r.openBlock(),r.createElementBlock("button",{"aria-checked":n.value,disabled:o.disabled,type:"button",class:"group relative inline-flex h-6 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-zinc-200 transition-colors duration-200 ease-in-out disabled:cursor-not-allowed disabled:opacity-60 aria-checked:bg-primary",role:"switch",onClick:a},i[0]||(i[0]=[r.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block size-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1)]),8,vD))}}),gD={class:"flex justify-between"},yD={"data-test-title":""},bD={key:0,"data-test-default-slot":""},wD=r.defineComponent({__name:"AppToggleCard",props:r.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue"),n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([a.disabled?"bg-zinc-50":"bg-white","rounded-xl p-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[r.createElementVNode("div",gD,[r.createElementVNode("span",yD,[r.renderSlot(a.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(a.title),1)])]),r.createVNode(r.unref(Mb),{ref:a.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:a.disabled,"data-test-toggle":""},null,8,["modelValue","disabled"])]),r.unref(n).default?r.withDirectives((r.openBlock(),r.createElementBlock("div",bD,[r.renderSlot(a.$slots,"default")],512)),[[r.vShow,t.value]]):r.createCommentVNode("",!0)],2))}}),kD=["href","onClick"],_D={class:"text-base font-bold","data-test-text":""},SD=r.defineComponent({__name:"AppMenuItem",props:{name:{},icon:{},to:{},visible:{type:Boolean,default:!0},replace:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const a=r.resolveComponent("RouterLink");return t.visible?(r.openBlock(),r.createBlock(a,{key:0,to:t.to,replace:t.replace,custom:""},{default:r.withCtx(({href:o,isActive:i,navigate:s})=>[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("a",{href:o,class:r.normalizeClass([{"bg-zinc-100 hover:bg-zinc-100!":i},"flex cursor-pointer items-center space-x-2 rounded-lg px-4 py-3 hover:bg-zinc-100"]),onClick:s},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{class:"size-4 stroke-2","data-test-icon":""})),r.createElementVNode("span",_D,r.toDisplayString(t.name),1)],10,kD)])]),_:3},8,["to","replace"])):r.createCommentVNode("",!0)}}}),CD={class:"space-y-4"},xD={class:"flex w-full px-2"},ED={class:"text-base"},TD={class:"text-base"},PD=r.defineComponent({__name:"AppMenu",props:{responsive:{type:Boolean,default:!0},items:{}},setup(e){const t=ei.useRoute(),n=r.ref(t),a=ei.useRouter();async function o(i){await a.push(i)}return(i,s)=>(r.openBlock(),r.createElementBlock("div",CD,[i.responsive?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"md:hidden":i.responsive},"block"])},[r.createVNode(r.unref(iu),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),options:i.items,"can-clear":!1,"append-to-body":!0,"open-direction":"down","dropdown-classes":"max-h-48!","wrapper-classes":"w-full","value-prop":"to",onSelect:o},{singlelabel:r.withCtx(l=>[r.createElementVNode("div",xD,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value.icon),{class:"mr-2 size-6","data-test-icon":""})),r.createElementVNode("span",ED,r.toDisplayString(l.value.name),1)])]),option:r.withCtx(l=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.option.icon),{class:"mr-2 size-5","data-test-icon":""})),r.createElementVNode("span",TD,r.toDisplayString(l.option.name),1)]),_:1},8,["modelValue","options"])],2)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{hidden:i.responsive},"mt-0! md:block md:space-y-2"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,l=>(r.openBlock(),r.createBlock(SD,r.mergeProps({ref_for:!0},l,{key:l.name}),null,16))),128))],2)]))}}),AD={class:"flex flex-col space-y-4 border-b border-zinc-200 py-8 lg:flex-row lg:space-x-10 lg:space-y-0"},ID={class:"flex shrink-0 flex-col lg:w-80 lg:space-y-1"},MD={key:0,class:"text-xl font-bold text-zinc-900","data-test-title":""},ND={key:0,class:"text-zinc-700","data-test-description":""},OD={class:"w-full min-w-0"},BD=r.defineComponent({__name:"AppSection",props:{title:{},description:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("section",AD,[r.createElementVNode("div",ID,[r.renderSlot(t.$slots,"titleDescription",{},()=>[r.renderSlot(t.$slots,"title",{},()=>[t.title?(r.openBlock(),r.createElementBlock("h3",MD,r.toDisplayString(t.title),1)):r.createCommentVNode("",!0)]),r.renderSlot(t.$slots,"description",{},()=>[t.description?(r.openBlock(),r.createElementBlock("p",ND,r.toDisplayString(t.description),1)):r.createCommentVNode("",!0)])])]),r.createElementVNode("div",OD,[r.renderSlot(t.$slots,"default")])]))}}),LD=r.defineComponent({__name:"ShortcutItem",props:{shortcut:{},item:{}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(n.shortcut.name);async function i(s){const l=await n.shortcut.click(n.shortcut,n.item,s);n.shortcut.copied&&(o.value="Gekopieërd",setTimeout(()=>{o.value=n.shortcut.name},1500)),l===!0&&a("close")}return(s,l)=>(r.openBlock(),r.createElementBlock("button",{type:"button",tabindex:"-1",class:"w-full p-1.5 text-xxs text-white cursor-pointer hover:bg-zinc-600 focus:outline-0",onClick:i},r.toDisplayString(s.shortcut.copied?o.value:s.shortcut.name),1))}}),DD={class:"text-base"},Nb=r.defineComponent({__name:"AppContextMenu",props:{item:{},event:{},actions:{},confirmed:{}},emits:["actionClicked","close","open","cancel"],setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.ref(!0),s=r.ref(!1),l=Mi(),c=fu(),u=r.ref(),d=Hb(u),{activate:f,deactivate:p,onEscape:m}=bm(u),v=r.computed(()=>a.actions??l.actions.value);r.onUnmounted(p);async function y(){i.value=!0,o("open"),document.querySelector("#app")?.classList.add("context-menu-open"),d.setPosition(a.event.x,a.event.y),await r.nextTick(),f()}async function w(){i.value=!1,p(),o("close"),document.querySelector("#app")?.classList.remove("context-menu-open")}async function b(E){o("actionClicked",E),i.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:i,open:y,close:w,submit:b}),Zt.onClickOutside(u,w),m(w),(E,_)=>i.value&&(v.value.length>0||r.unref(c).shortcuts.value.length>0)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"contextMenuElement",ref:u,style:r.normalizeStyle(`left: ${E.event.x}px; top: ${E.event.y}px;`),class:"app-context-menu fixed z-50 flex w-64 flex-col rounded-lg bg-secondary p-2 drop-shadow-card empty:hidden","data-test-context-menu":""},[r.unref(c).shortcuts.value.length>0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"mb-2":v.value.length>0},"flex justify-between divide-x divide-zinc-600 rounded-md border border-zinc-600"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).shortcuts.value,g=>(r.openBlock(),r.createBlock(LD,{key:g.name,shortcut:g,item:E.item,onClose:w},null,8,["shortcut","item"]))),128))],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.value,(g,x)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${x}`,action:g,context:!0,item:E.item,confirmed:E.confirmed&&E.confirmed===g.key,tabindex:`100${x}`,class:"flex h-10 items-center space-x-2 first:rounded-t-lg last:rounded-b-lg focus:outline-none",onConfirm:r.unref(p),onConfirmed:r.unref(f),onClose:w,onMouseover:_[0]||(_[0]=C=>C.target?.focus())},{default:r.withCtx(()=>[r.createElementVNode("span",DD,r.toDisplayString(g.name),1)]),_:2},1032,["action","item","confirmed","tabindex","onConfirm","onConfirmed"]))),128))],4)):r.createCommentVNode("",!0)}}),RD={class:"mt-6"},$D={class:"overflow-hidden rounded-full bg-zinc-200"},zD=r.defineComponent({__name:"AppProgressBar",props:{steps:{},percentage:{},activeIndex:{},unmount:{type:Boolean,default:!0}},setup(e){const t=e,n=r.useSlots(),a=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8"],o=r.computed(()=>n.default!==void 0),i=r.computed(()=>t.steps?t.steps:n.default?.().map((c,u)=>({name:c?.props?.name??c?.type?.props?.name,completed:s.value>=u,active:s.value===u,component:c}))??[]),s=r.computed(()=>t.activeIndex!==void 0&&t.activeIndex>-1?t.activeIndex:i.value?.findIndex(c=>c.active)),l=r.computed(()=>t.percentage?t.percentage:i.value?i.value.filter(u=>u.completed).length/i.value.length*100:0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",RD,[r.createElementVNode("div",$D,[r.createElementVNode("div",{style:r.normalizeStyle(`width: ${l.value}%`),class:"h-2.5 rounded-full bg-primary transition-all","data-test-progress-bar":""},null,4)]),r.createElementVNode("div",{class:r.normalizeClass([a[i.value.length-1],"mt-3 hidden w-full text-sm font-medium text-zinc-600 sm:grid"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock("div",{key:`step-${f}`,class:r.normalizeClass([{"font-bold":d.completed},"text-base text-zinc-900"]),"data-test-step-title":""},[r.renderSlot(c.$slots,`step-${f+1}`,{step:d},()=>[r.createTextVNode(r.toDisplayString(d.name),1)])],2))),128))],2),o.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.unmount&&(d?.active??!0)||!c.unmount?r.withDirectives((r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.component),{key:f})),[[r.vShow,!c.unmount&&(d?.active??!0)||c.unmount]]):r.createCommentVNode("",!0)],64))),256)):r.createCommentVNode("",!0)])]))}}),VD={},FD={class:"mt-8"};function jD(e,t){return r.openBlock(),r.createElementBlock("div",FD,[r.renderSlot(e.$slots,"default")])}const HD=Dn(VD,[["render",jD]]);class w0{color="";constructor(t){this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([\dA-Fa-f]{4}|[\dA-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent():{color:this.color,opacity:"1"}}parseRgba(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseHsla(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseAlphaHex(){return{color:this.color.length===5?this.color.slice(0,4):this.color.slice(0,7),opacity:this.color.length===5?(parseInt(this.color.slice(4,5)+this.color.slice(4,5),16)/255).toFixed(2):(parseInt(this.color.slice(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}const UD=["height","width","viewBox"],WD=["id"],qD=["offset","stop-color","stop-opacity"],YD=["offset","stop-color","stop-opacity"],GD=["id"],KD=["stdDeviation"],XD=["points","fill","stroke","filter","stroke-width"],JD=["points","fill","stroke","stroke-width","stroke-linejoin"],QD=["points","fill"],ZD=r.defineComponent({__name:"Star",props:{fill:{default:0},points:{default:()=>[]},size:{default:50},starId:{},activeColor:{},inactiveColor:{},borderColor:{default:"#000"},activeBorderColor:{default:"#000"},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},glow:{default:0},glowColor:{default:void 0},animate:{type:Boolean,default:!1}},emits:["starMouseMove","starSelected"],setup(e,{emit:t}){const n=e,a=t,o=r.ref([19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56]),i=r.ref(""),s=r.ref(""),l=r.ref(!0),c=r.computed(()=>o.value.join(",")),u=r.computed(()=>`url(#${i.value})`),d=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?6:n.borderWidth),f=r.computed(()=>{const U=n.roundedCorners&&n.borderWidth<=0?parseInt(`${n.size}`,10)-parseInt(`${d.value}`,10):n.size;return parseInt(`${U}`,10)+parseInt(`${d.value}`,10)}),p=r.computed(()=>`${n.fill}%`),m=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?n.fill<=0?n.inactiveColor:n.activeColor:n.fill<=0?n.borderColor:n.activeBorderColor),v=r.computed(()=>[...o.value].reduce((U,z)=>Math.max(U,z))),y=r.computed(()=>`0 0 ${v.value} ${v.value}`),w=r.computed(()=>n.animate&&l.value),b=r.computed(()=>n.roundedCorners?"round":"miter");r.onBeforeMount(()=>{o.value=n.points.length>0?n.points:o.value,O(),i.value=P(),s.value=P()});function E(U){U.touchAction!=="undefined"&&a("starMouseMove",{position:x(U),id:n.starId})}function _(){r.nextTick(()=>{l.value=!0})}function g(){r.nextTick(()=>{l.value=!1})}function x(U){const z=.92*n.size,R=Math.max(U.offsetX,1),I=Math.round(100/z*R);return Math.min(I,100)}function C(U){a("starSelected",{id:n.starId,position:x(U)})}function P(){return Math.random().toString(36).slice(7)}function O(){o.value=o.value.map((U,z)=>{const R=z%2===0?d.value*1.5:0;return n.size/v.value*U+R})}function A(U){return new w0(U).parseAlphaColor().color}function L(U){return new w0(U).parseAlphaColor().opacity}return(U,z)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass([{"transition-all hover:rotate-12":w.value},"overflow-visible"]),height:f.value,width:f.value,viewBox:y.value,onMousemove:E,onClick:C,onTouchstart:_,onTouchend:g},[r.createElementVNode("linearGradient",{id:i.value,x1:"0",x2:"100%",y1:"0",y2:"0"},[r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.activeColor),"stop-opacity":L(U.activeColor)},null,8,qD),r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.inactiveColor),"stop-opacity":L(U.inactiveColor)},null,8,YD)],8,WD),r.createElementVNode("filter",{id:s.value,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[r.createElementVNode("feGaussianBlur",{stdDeviation:U.glow,result:"coloredBlur"},null,8,KD),z[0]||(z[0]=r.createElementVNode("feMerge",null,[r.createElementVNode("feMergeNode",{in:"coloredBlur"}),r.createElementVNode("feMergeNode",{in:"SourceGraphic"})],-1))],8,GD),r.withDirectives(r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:U.glowColor,filter:`url(#${s.value})`,"stroke-width":d.value},null,8,XD),[[r.vShow,U.glowColor&&U.glow>0&&U.fill>0]]),r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:m.value,"stroke-width":d.value,"stroke-linejoin":b.value},null,8,JD),r.createElementVNode("polygon",{points:c.value,fill:u.value},null,8,QD)],42,UD))}}),eR={class:"sr-only"},tR=r.defineComponent({__name:"StarRating",props:{rating:{default:0},increment:{default:1},roundStartRating:{type:Boolean,default:!0},activeColor:{default:"#ffd055"},inactiveColor:{default:"#d8d8d8"},maxRating:{default:5},starPoints:{default:()=>[]},starSize:{default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{default:""},inline:{type:Boolean,default:!1},borderColor:{default:"#999"},activeBorderColor:{default:null},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},padding:{default:0},rtl:{type:Boolean,default:!1},fixedPoints:{default:null},glow:{default:0},glowColor:{default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},emits:["update:rating","hover:rating"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(0),i=r.ref([]),s=r.ref(0),l=r.ref(0),c=r.ref(!1),u=r.computed(()=>n.fixedPoints===null?s.value:s.value.toFixed(n.fixedPoints)),d=r.computed(()=>c.value||n.roundStartRating),f=r.computed(()=>n.padding+n.borderWidth),p=r.computed(()=>Array.isArray(n.activeColor)?g(n.activeColor,n.maxRating,n.activeColor.slice(-1)[0]):Array.from({length:n.maxRating}).fill(n.activeColor)),m=r.computed(()=>n.activeOnClick?`${l.value>0?p.value[Math.ceil(l.value)-1]:n.inactiveColor}`:`${s.value>0?p.value[Math.ceil(s.value)-1]:n.inactiveColor}`),v=r.computed(()=>{if(Array.isArray(n.activeBorderColor))return g(n.activeBorderColor,n.maxRating,n.activeBorderColor.slice(-1)[0]);const x=n.activeBorderColor?n.activeBorderColor:n.borderColor;return Array.from({length:n.maxRating}).fill(x)}),y=r.computed(()=>n.activeOnClick?`${l.value>0?v.value[Math.ceil(l.value)-1]:n.borderColor}`:`${s.value>0?v.value[Math.ceil(s.value)-1]:n.borderColor}`),w=r.computed(()=>{const x=1/n.increment;return Math.min(n.maxRating,Math.ceil(s.value*x)/x)});r.watch(()=>n.rating,x=>{s.value=x,l.value=x,_(d.value)}),r.onBeforeMount(()=>{o.value=n.increment*100,s.value=n.rating,l.value=s.value,_(n.roundStartRating)});function b(x,C=!1){if(n.readOnly)return;const P=n.rtl?(100-x.position)/100:x.position/100;if(s.value=(x.id+P-1).toFixed(2),s.value=s.value>n.maxRating?n.maxRating:s.value,C){_(!0,!0),l.value=n.clearable&&s.value===l.value?0:s.value,a("update:rating",l.value),c.value=!0;return}_(!0,!n.activeOnClick),a("hover:rating",s.value)}function E(){n.readOnly||(s.value=l.value,_(d.value))}function _(x=!0,C=!0){s.value=x?w.value:s.value;for(let P=0;P<n.maxRating;P++){let O=0;P<s.value&&(O=s.value-P>1?100:(s.value-P)*100),C&&(i.value[P]=Math.round(O))}}function g(x,C,P){return Object.assign([C].fill(P),x)}return(x,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"inline-flex":x.inline},"flex items-center"])},[r.createElementVNode("div",eR,[r.renderSlot(x.$slots,"screen-reader",{rating:l.value,stars:x.maxRating},()=>[r.createElementVNode("span",null,"Rated "+r.toDisplayString(l.value)+" stars out of "+r.toDisplayString(x.maxRating),1)])]),r.createElementVNode("div",{class:"flex items-center",onMouseleave:E},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x.maxRating,P=>(r.openBlock(),r.createElementBlock("span",{key:P,class:r.normalizeClass([{"cursor-pointer":!x.readOnly},"inline-block"]),style:r.normalizeStyle(`margin-right: ${f.value}px`)},[r.createVNode(ZD,{fill:i.value[P-1],size:x.starSize,points:x.starPoints,"star-id":P,step:o.value,"active-color":m.value,"inactive-color":x.inactiveColor,"border-color":x.borderColor,"active-border-color":y.value,"border-width":x.borderWidth,"rounded-corners":x.roundedCorners,rtl:x.rtl,glow:x.glow,"glow-color":x.glowColor,animate:x.animate,onStarSelected:C[0]||(C[0]=O=>b(O,!0)),onStarMouseMove:b},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","active-border-color","border-width","rounded-corners","rtl","glow","glow-color","animate"])],6))),128)),x.showRating?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([x.textClass,"ml-2"])},r.toDisplayString(u.value),3)):r.createCommentVNode("",!0)],32)],2))}}),nR=r.defineComponent({__name:"AppRating",props:r.mergeModels({title:{default:""},stars:{default:5},showRating:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue");return(n,a)=>(r.openBlock(),r.createBlock(r.unref(Mp),{"content-classes":"flex items-center gap-8 select-none",class:"p-4!"},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.renderSlot(n.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(n.title),1)])]),r.createVNode(tR,{rating:t.value,"onUpdate:rating":a[0]||(a[0]=o=>t.value=o),"rounded-corners":!1,"max-rating":n.stars,"show-rating":n.showRating,increment:.5,padding:.5,"star-size":25,"border-width":0,inline:!0,"read-only":n.readonly,"active-color":"#FACC15","inactive-color":"#D4D4D8",class:"-mt-1 ml-auto"},null,8,["rating","max-rating","show-rating","read-only"])]),_:3}))}});var rR=function(){function e(t){var n=t.rootElement,a=t.durationSlide,o=a===void 0?1e3:a,i=t.durationFade,s=i===void 0?200:i,l=t.initialNumber,c=t.animateInitialNumber,u=c===void 0?!0:c,d=t.numberFormatter,f=d===void 0?function(g){return g.toString()}:d,p=t.decimalSeparator,m=p===void 0?".":p,v=t.thousandSeparator,y=v===void 0?",":v,w=t.wrapperClassname,b=w===void 0?"numberflip-digit-container":w,E=t.digitClassname,_=E===void 0?"numberflip-digit-container-value":E;this.rootElement=n,this.durationSlide=o,this.durationFade=s,this.numberFormatter=f,this.decimalSeparator=m,this.thousandSeparator=y,this.wrapperClassname=b,this.digitClassname=_,this.rootElement.style.display="flex",l!==void 0&&this.setNumber(l,u)}return e.prototype.setNumber=function(t,n){n===void 0&&(n=!0),this.adjustAmountOfDigitContainers(t),this.setDigitInContainers(t,n)},e.prototype.adjustAmountOfDigitContainers=function(t){for(var n=this.getDigitsOfNumber(t).length,a=this.rootElement.getElementsByClassName(this.wrapperClassname).length;a<n;)this.rootElement.insertAdjacentHTML("beforeend",'<div class="'.concat(this.wrapperClassname,'">')+`<span style="visibility: hidden;">0</span>
|
|
612
612
|
<div class="`.concat(this.digitClassname,`" style="transform: translateY(-100%);">
|
|
613
613
|
<span>9</span>
|
|
614
614
|
<span>8</span>
|
|
@@ -645,34 +645,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
645
645
|
12.5606C19.5377 14.1124 18.7758 15.5379 17.657 16.6567V16.6567Z`},null,-1),r.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M15 10.9998C15 11.7954 14.6839 12.5585 14.1213 13.1211C13.5587 13.6837 12.7956 13.9998 12 13.9998C11.2044
|
|
646
646
|
13.9998 10.4413 13.6837 9.87868 13.1211C9.31607 12.5585 9 11.7954 9 10.9998C9 10.2041 9.31607 9.44104 9.87868
|
|
647
647
|
8.87844C10.4413 8.31583 11.2044 7.99976 12 7.99976C12.7956 7.99976 13.5587 8.31583 14.1213 8.87844C14.6839
|
|
648
|
-
9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1)]))}const i$=Dn(r$,[["render",o$]]);function s$(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function l$(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Xb(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function wm(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function Jb(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function c$(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function km(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}var Qb={prefix:"far",iconName:"arrow-up-arrow-down",icon:[576,512,["sort-up-down"],"e099","M529 377c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L440 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1-55-55c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96zM177 39c-9.4-9.4-24.6-9.4-33.9 0L47 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55L136 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-342.1 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L177 39z"]},u$=Qb,Zb={prefix:"far",iconName:"calendar-clock",icon:[576,512,["calendar-time"],"e0d2","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-112 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM288 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},d$=Zb,f$={prefix:"far",iconName:"layer-group",icon:[576,512,[],"f5fd","M288 0c-8.5 0-17 1.7-24.8 5.1L53.9 94.8C40.6 100.5 32 113.5 32 128s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2L312.8 5.1C305 1.7 296.5 0 288 0zm-5.9 49.2C284 48.4 286 48 288 48s4 .4 5.9 1.2L477.7 128 293.9 206.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 128 282.1 49.2zM53.9 222.8C40.6 228.5 32 241.5 32 256s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2l-31.2-13.4L430 235.5 477.7 256 293.9 334.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 256 146 235.5 85.1 209.4 53.9 222.8zm0 128C40.6 356.5 32 369.5 32 384s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2l-31.2-13.4L430 363.5 477.7 384 293.9 462.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 384 146 363.5 85.1 337.4 53.9 350.8z"]},e4={prefix:"far",iconName:"star-half-stroke",icon:[576,512,["star-half-alt"],"f5c0","M309.5 13.5C305.5 5.2 297.1 0 287.9 0s-17.6 5.2-21.6 13.5L197.7 154.8 44.5 177.5c-9 1.3-16.5 7.6-19.3 16.3s-.5 18.1 5.9 24.5L142.2 328.4 116 483.9c-1.5 9 2.2 18.1 9.7 23.5s17.3 6 25.3 1.7l137-73.2 137 73.2c8.1 4.3 17.9 3.7 25.3-1.7s11.2-14.5 9.7-23.5L433.6 328.4 544.8 218.2c6.5-6.4 8.7-15.9 5.9-24.5s-10.3-14.9-19.3-16.3L378.1 154.8 309.5 13.5zM288 384.7l0-305.6 52.5 108.1c3.5 7.1 10.2 12.1 18.1 13.3l118.3 17.5L391 303c-5.5 5.5-8.1 13.3-6.8 21l20.2 119.6L299.2 387.5c-3.5-1.9-7.4-2.8-11.2-2.8z"]},p$=e4,t4={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},m$=t4,_m={prefix:"far",iconName:"arrow-down-a-z",icon:[576,512,["sort-alpha-asc","sort-alpha-down"],"f15d","M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L184 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zm305-89c-13.3 0-24 10.7-24 24s10.7 24 24 24l74.6 0L334.1 440.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 480 352 480l128 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-74.6 0 92.5-104.1c6.3-7.1 7.8-17.2 4-25.8S489.4 288 480 288l-128 0zM416 32c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 200l85.2 0c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160C433.4 37.1 425.1 32 416 32zM394.8 152L416 109.7 437.2 152l-42.3 0z"]},h$=_m,v$=_m,g$={prefix:"far",iconName:"folder-tree",icon:[576,512,[],"f802","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 136 0 392c0 30.9 25.1 56 56 56l200 0 0-48L56 400c-4.4 0-8-3.6-8-8l0-232 208 0 0-48L48 112l0-88zM336 176l0-128 44.1 0 17 17c9.6 9.6 22.6 15 36.2 15L528 80l0 96-192 0zM288 32l0 160c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32L433.3 32c-.8 0-1.7-.3-2.3-.9L409.4 9.4c-6-6-14.1-9.4-22.6-9.4L320 0c-17.7 0-32 14.3-32 32zm48 432l0-128 44.1 0 17 17c9.6 9.6 22.6 15 36.2 15l94.7 0 0 96-192 0zM288 320l0 160c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32l-110.7 0c-.8 0-1.7-.3-2.3-.9l-21.7-21.7c-6-6-14.1-9.4-22.6-9.4L320 288c-17.7 0-32 14.3-32 32z"]},y$={prefix:"far",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M144 24c0-13.3 10.7-24 24-24L280 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0 0 49.4c43.4 5 82.8 23.3 113.8 50.9L391 119c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-31 31c24 33.9 38.1 75.3 38.1 120c0 114.9-93.1 208-208 208S16 418.9 16 304C16 197.2 96.4 109.3 200 97.4L200 48l-32 0c-13.3 0-24-10.7-24-24zm80 440a160 160 0 1 0 0-320 160 160 0 1 0 0 320zm24-248l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},n4={prefix:"far",iconName:"chevrons-up",icon:[512,512,["chevron-double-up"],"f325","M273 47c-9.4-9.4-24.6-9.4-33.9 0L47 239c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l175-175L431 273c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L273 47zM465 431L273 239c-9.4-9.4-24.6-9.4-33.9 0L47 431c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l175-175L431 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9z"]},b$=n4,w$={prefix:"far",iconName:"grip-dots-vertical",icon:[256,512,[],"e411","M64 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm0 160a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM96 416a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96-288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm32 128a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM192 448a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},r4={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 272c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24L24 432c-13.3 0-24-10.7-24-24s10.7-24 24-24l400 0c13.3 0 24 10.7 24 24z"]},k$=r4,a4={prefix:"far",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-160 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-112 0a80 80 0 1 1 160 0 80 80 0 1 1 -160 0z"]},_$=a4,S$={prefix:"far",iconName:"road-circle-check",icon:[640,512,[],"e564","M217.7 32c-30.4 0-57.5 19-67.7 47.6L40.6 383.6C23.7 430.5 58.4 480 108.3 480l251.9 0c-21.9-26.6-36.2-59.7-39.5-96c-.2 0-.5 0-.7 0c-13.3 0-24 10.7-24 24l0 24-187.7 0c-16.6 0-28.2-16.5-22.6-32.1l109.4-304c3.4-9.5 12.5-15.9 22.6-15.9L296 80l0 24c0 13.3 10.7 24 24 24s24-10.7 24-24l0-24 78.3 0c10.1 0 19.2 6.3 22.6 15.9l34.9 96.9c5.4-.5 10.8-.7 16.3-.7c12.3 0 24.2 1.3 35.8 3.6L490 79.6C479.7 51 452.6 32 422.3 32L217.7 32zM326.9 319c4.1-14.1 9.8-27.4 17.1-39.8l0-63.2c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 80c0 13.3 10.7 24 24 24c2.4 0 4.7-.4 6.9-1zM640 368a144 144 0 1 0 -288 0 144 144 0 1 0 288 0zm-76.7-43.3c6.2 6.2 6.2 16.4 0 22.6l-72 72c-6.2 6.2-16.4 6.2-22.6 0l-40-40c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L480 385.4l60.7-60.7c6.2-6.2 16.4-6.2 22.6 0z"]},C$={prefix:"far",iconName:"calendar-exclamation",icon:[448,512,[],"f334","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256zM256 400a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-152c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64z"]},o4={prefix:"far",iconName:"folder-arrow-down",icon:[512,512,["folder-download"],"e053","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 256c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zm33.9-33.9L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3zM280 200c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 102.1-31-31c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c9.4 9.4 24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-31 31L280 200z"]},x$=o4,i4={prefix:"far",iconName:"arrow-up-a-z",icon:[576,512,["sort-alpha-up"],"f15e","M416 32c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5l-85.2 0-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160C398.6 37.1 406.9 32 416 32zM394.8 152l42.3 0L416 109.7 394.8 152zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55L184 456c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-342.1L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM352 288l128 0c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 432l74.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-128 0c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 336 352 336c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},E$=i4,pu={prefix:"far",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M472 224c13.3 0 24-10.7 24-24l0-144c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 80.1-20-23.5C387 63.4 325.1 32 256 32C132.3 32 32 132.3 32 256s100.3 224 224 224c50.4 0 97-16.7 134.4-44.8c10.6-8 12.7-23 4.8-33.6s-23-12.7-33.6-4.8C332.2 418.9 295.7 432 256 432c-97.2 0-176-78.8-176-176s78.8-176 176-176c54.3 0 102.9 24.6 135.2 63.4l.1 .2s0 0 0 0L418.9 176 328 176c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0z"]},T$=pu,P$=pu,A$=pu,I$={prefix:"far",iconName:"copy",icon:[448,512,[],"f0c5","M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"]},s4={prefix:"far",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 160L40 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0 0 160c0 13.3 10.7 24 24 24s24-10.7 24-24l0-160 160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-160 0 0-160z"]},M$=s4,N$={prefix:"far",iconName:"check-double",icon:[448,512,[],"f560","M337 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-143 143L97 127c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l80 80c9.4 9.4 24.6 9.4 33.9 0L337 81zM441 201c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-247 247L41 295c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L143 465c9.4 9.4 24.6 9.4 33.9 0L441 201z"]},l4={prefix:"far",iconName:"arrow-up-9-1",icon:[576,512,["sort-numeric-up-alt"],"f887","M424 80a40 40 0 1 0 0 80 40 40 0 1 0 0-80zm88 40c0 .8 0 1.6 0 2.5c-.6 20.2-7.9 39.7-20.9 55.3l-64.6 77.6c-8.5 10.2-23.6 11.6-33.8 3.1s-11.6-23.6-3.1-33.8L405.1 206c-39.5-8.6-69.1-43.8-69.1-86c0-48.6 39.4-88 88-88s88 39.4 88 88zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55L184 456c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-342.1L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM456 312l0 120 24 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-86.7-16.4 5.5c-12.6 4.2-26.2-2.6-30.4-15.2s2.6-26.2 15.2-30.4l48-16c7.3-2.4 15.4-1.2 21.6 3.3s10 11.8 10 19.5z"]},O$=l4,c4={prefix:"far",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M24 32C10.7 32 0 42.7 0 56S10.7 80 24 80l336 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 32zM209.5 167.6c-4.5-4.8-10.9-7.6-17.5-7.6s-12.9 2.7-17.5 7.6l-128 136c-9.1 9.7-8.6 24.8 1 33.9s24.8 8.6 33.9-1L168 244.5l0 83.5 0 128c0 13.3 10.7 24 24 24s24-10.7 24-24l0-128 0-83.5 86.5 91.9c9.1 9.7 24.3 10.1 33.9 1s10.1-24.3 1-33.9l-128-136z"]},B$=c4,L$={prefix:"far",iconName:"user-minus",icon:[640,512,[],"f503","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM472 200c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]},D$={prefix:"far",iconName:"folder-plus",icon:[512,512,[],"f65e","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 256c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zm33.9-33.9L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3zM232 376c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},R$={prefix:"far",iconName:"lock",icon:[448,512,[128274],"f023","M144 128l0 64 160 0 0-64c0-44.2-35.8-80-80-80s-80 35.8-80 80zM96 192l0-64C96 57.3 153.3 0 224 0s128 57.3 128 128l0 64 32 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l32 0zM48 256l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16L64 240c-8.8 0-16 7.2-16 16z"]},Sm={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5l-387 0c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480l387 0c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 96c0 13.3 10.7 24 24 24s24-10.7 24-24l0-96z"]},$$=Sm,z$=Sm,V$={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},Cm={prefix:"far",iconName:"arrow-down-z-a",icon:[576,512,["sort-alpha-desc","sort-alpha-down-alt"],"f881","M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L184 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zM352 32c-13.3 0-24 10.7-24 24s10.7 24 24 24l74.6 0L334.1 184.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 224 352 224l128 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-74.6 0L497.9 71.9c6.3-7.1 7.8-17.2 4-25.8S489.4 32 480 32L352 32zm64 240c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 440l85.2 0c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160c-4.1-8.1-12.4-13.3-21.5-13.3zM394.8 392L416 349.7 437.2 392l-42.3 0z"]},F$=Cm,j$=Cm,xm={prefix:"far",iconName:"arrow-down-1-9",icon:[576,512,["sort-numeric-asc","sort-numeric-down"],"f162","M456 56c0-7.7-3.7-15-10-19.5s-14.3-5.7-21.6-3.3l-48 16C363.8 53.4 357 67 361.2 79.6S379 99 391.6 94.8L408 89.3l0 38.7 0 48-24 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l48 0 48 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0 0-48 0-72zM143 473c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L184 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96zm281-89a40 40 0 1 1 0-80 40 40 0 1 1 0 80zm-17.9 46.2l-8.7 10.6c-8.4 10.3-6.9 25.4 3.4 33.8s25.4 6.9 33.8-3.4l56.8-69.4C504.7 385.5 512 365.1 512 344c0-48.6-39.4-88-88-88s-88 39.4-88 88c0 42.5 30.1 77.9 70.1 86.2z"]},H$=xm,U$=xm,W$={prefix:"far",iconName:"chevron-left",icon:[320,512,[9001],"f053","M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"]},q$={prefix:"far",iconName:"angle-down",icon:[448,512,[8964],"f107","M241 369c-9.4 9.4-24.6 9.4-33.9 0L47 209c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L367 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L241 369z"]},Y$={prefix:"far",iconName:"badge-check",icon:[512,512,[],"f336","M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5C317.1 91.7 329 96.6 340 93.2c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7C91.7 194.9 96.6 183 93.2 172c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},G$={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},u4={prefix:"far",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M528 160l0 256c0 8.8-7.2 16-16 16l-192 0c0-44.2-35.8-80-80-80l-64 0c-44.2 0-80 35.8-80 80l-32 0c-8.8 0-16-7.2-16-16l0-256 480 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM272 256a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm104-48c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0z"]},K$=u4,X$={prefix:"far",iconName:"phone",icon:[512,512,[128222,128379],"f095","M375.8 275.2c-16.4-7-35.4-2.4-46.7 11.4l-33.2 40.6c-46-26.7-84.4-65.1-111.1-111.1L225.3 183c13.8-11.3 18.5-30.3 11.4-46.7l-48-112C181.2 6.7 162.3-3.1 143.6 .9l-112 24C13.2 28.8 0 45.1 0 64c0 0 0 0 0 0C0 295.2 175.2 485.6 400.1 509.5c9.8 1 19.6 1.8 29.6 2.2c0 0 0 0 0 0c0 0 .1 0 .1 0c6.1 .2 12.1 .4 18.2 .4c0 0 0 0 0 0c18.9 0 35.2-13.2 39.1-31.6l24-112c4-18.7-5.8-37.6-23.4-45.1l-112-48zM441.5 464C225.8 460.5 51.5 286.2 48.1 70.5l99.2-21.3 43 100.4L154.4 179c-18.2 14.9-22.9 40.8-11.1 61.2c30.9 53.3 75.3 97.7 128.6 128.6c20.4 11.8 46.3 7.1 61.2-11.1l29.4-35.9 100.4 43L441.5 464zM48 64s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0z"]},d4={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},J$=d4,Q$={prefix:"far",iconName:"pen",icon:[512,512,[128394],"f304","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c12.4-3.6 23.7-9.9 33.4-18.4c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4zm46 13.5c1.7-5.6 4.5-10.8 8.4-15.2c.6-.6 1.1-1.2 1.7-1.8L321 129 383 191 154.6 419.5c-4.7 4.7-10.6 8.2-17 10.1l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4z"]},f4={prefix:"far",iconName:"id-card-clip",icon:[576,512,["id-card-alt"],"f47f","M256 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32L256 0zM192 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L384 64l0 48 128 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l128 0 0-48zm96 240a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"]},Z$=f4,p4={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},ez=p4,tz={prefix:"far",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 128c0-44.2 35.8-80 80-80s80 35.8 80 80l0 72c0 13.3 10.7 24 24 24s24-10.7 24-24l0-72C560 57.3 502.7 0 432 0S304 57.3 304 128l0 64L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-64zM64 240l320 0c8.8 0 16 7.2 16 16l0 192c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-192c0-8.8 7.2-16 16-16z"]},Us={prefix:"far",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},nz=Us,rz=Us,az=Us,oz=Us,m4={prefix:"far",iconName:"sensor-triangle-exclamation",icon:[640,512,["sensor-alert"],"e029","M64 80l320 0c8.8 0 16 7.2 16 16l0 49.9c13.1-11.4 30.1-17.9 48-17.9l0-32c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l161 0c-.6-4-1-8.1-1-12.3c0-12.5 3-24.7 8.9-35.7L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16zm80 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm96 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm21.8 293.8c-3.8 6.7-5.8 14.2-5.8 21.9c0 24.5 19.8 44.3 44.3 44.3l295.4 0c24.5 0 44.3-19.8 44.3-44.3c0-7.7-2-15.2-5.8-21.9l-150.4-265C476.5 168 462.8 160 448 160s-28.5 8-35.8 20.9l-150.4 265zM464 272l0 88c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-88c0-8.8 7.2-16 16-16s16 7.2 16 16zM448 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},iz=m4,sz={prefix:"far",iconName:"user",icon:[448,512,[62144,128100],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]},h4={prefix:"far",iconName:"sliders",icon:[512,512,["sliders-h"],"f1de","M0 416c0 13.3 10.7 24 24 24l59.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 440c13.3 0 24-10.7 24-24s-10.7-24-24-24l-251.7 0c-10.2-32.5-40.5-56-76.3-56s-66.1 23.5-76.3 56L24 392c-13.3 0-24 10.7-24 24zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-35.8 0-66.1 23.5-76.3 56L24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l251.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56l59.7 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-59.7 0c-10.2-32.5-40.5-56-76.3-56zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm76.3-56C258.1 39.5 227.8 16 192 16s-66.1 23.5-76.3 56L24 72C10.7 72 0 82.7 0 96s10.7 24 24 24l91.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 120c13.3 0 24-10.7 24-24s-10.7-24-24-24L268.3 72z"]},lz=h4,mu={prefix:"far",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5 64 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-186.5 24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM112 432l0-227.2L288 55.5 464 204.8 464 432c0 17.7-14.3 32-32 32l-48 0 0-152c0-22.1-17.9-40-40-40l-112 0c-22.1 0-40 17.9-40 40l0 152-48 0c-17.7 0-32-14.3-32-32zm128 32l0-144 96 0 0 144-96 0z"]},cz=mu,uz=mu,dz=mu,fz={prefix:"far",iconName:"charging-station",icon:[576,512,[],"f5e7","M96 48c-8.8 0-16 7.2-16 16l0 400 192 0 0-400c0-8.8-7.2-16-16-16L96 48zM32 464L32 64C32 28.7 60.7 0 96 0L256 0c35.3 0 64 28.7 64 64l0 192 8 0c48.6 0 88 39.4 88 88l0 28c0 15.5 12.5 28 28 28s28-12.5 28-28l0-103.7c-32.5-10.2-56-40.5-56-76.3l0-40c0-13.3 10.7-24 24-24l8 0 0-48c0-8.8 7.2-16 16-16s16 7.2 16 16l0 48 32 0 0-48c0-8.8 7.2-16 16-16s16 7.2 16 16l0 48 8 0c13.3 0 24 10.7 24 24l0 40c0 35.8-23.5 66.1-56 76.3L520 372c0 42-34 76-76 76s-76-34-76-76l0-28c0-22.1-17.9-40-40-40l-8 0 0 160 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0-48 0L80 512l-48 0-8 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l8 0zM464 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-16-64 0 0 16zM222.9 117.9L199.6 176l40.4 0c6.7 0 12.8 4.2 15 10.6s.4 13.4-4.8 17.7l-96 80c-5.6 4.7-13.7 5-19.6 .7s-8.2-12.1-5.5-18.9L152.4 208 112 208c-6.7 0-12.8-4.2-15-10.6s-.4-13.4 4.8-17.7l96-80c5.6-4.7 13.7-5 19.6-.7s8.2 12.1 5.5 18.9z"]},pz={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},mz={prefix:"far",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256z"]},v4={prefix:"far",iconName:"calendar-pen",icon:[448,512,["calendar-edit"],"f333","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zm-91.2 51c14.7 14.7 14.7 38.6 0 53.3l-14.9 14.9L240.6 258 255.5 243c14.7-14.7 38.6-14.7 53.3 0zM146.1 352.5L218 280.6l53.3 53.3-71.9 71.9c-4.1 4.1-9.2 7-14.9 8.4l-36.6 9.2c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l9.2-36.6c1.4-5.6 4.3-10.8 8.4-14.9z"]},hz=v4,vz={prefix:"far",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M375 73c-26-26-68.1-26-94.1 0L89 265C45.3 308.6 45.3 379.4 89 423s114.4 43.6 158.1 0L399 271c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L281 457c-62.4 62.4-163.5 62.4-225.9 0S-7.4 293.4 55 231L247 39C291.7-5.7 364.3-5.7 409 39s44.7 117.2 0 161.9L225.2 384.7c-31.6 31.6-83.6 28.7-111.5-6.2c-23.8-29.8-21.5-72.8 5.5-99.8L271 127c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L153.2 312.7c-9.7 9.7-10.6 25.1-2 35.8c10 12.5 28.7 13.6 40 2.2L375 167c26-26 26-68.1 0-94.1z"]},gz={prefix:"far",iconName:"cars",icon:[640,512,[],"f85b","M137.8 48l140.3 0c10.1 0 19.2 6.4 22.6 15.9L317.9 112 98.1 112l17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zM41.4 127.9c-.2 .5-.3 .9-.5 1.4C16.2 146.7 0 175.5 0 208l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 172.1 0c5.3-6.6 11.3-12.7 17.8-18.2L248.5 240 48 240l0-32c0-26.5 21.5-48 48-48l190.8 0c19.2-20 46.1-32 75.1-32l12.8 0c0 0 0 0 0-.1L346 47.8C335.7 19.1 308.6 0 278.2 0L137.8 0C107.4 0 80.3 19.1 70 47.8L41.4 127.9zM112 224a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm249.8-16l140.3 0c10.1 0 19.2 6.4 22.6 15.9L541.9 272l-219.9 0 17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zm-96.4 79.9c-.2 .5-.3 .9-.5 1.4C240.2 306.7 224 335.5 224 368l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 320 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 0-32 0-16 0-32c0-32.5-16.2-61.3-40.9-78.7c-.1-.5-.3-.9-.5-1.4L570 207.8c-10.2-28.7-37.4-47.8-67.8-47.8l-140.3 0c-30.4 0-57.6 19.1-67.8 47.8l-28.6 80.1zM544 320c26.5 0 48 21.5 48 48l0 32-320 0 0-32c0-26.5 21.5-48 48-48l224 0zM336 384a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm216-24a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},g4={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},yz=g4,bz={prefix:"far",iconName:"building",icon:[384,512,[61687,127970],"f1ad","M64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l80 0 0-64c0-26.5 21.5-48 48-48s48 21.5 48 48l0 64 80 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L64 48zM0 64C0 28.7 28.7 0 64 0L320 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm88 40c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zM232 88l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16zM88 232c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zm144-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16z"]},wz={prefix:"far",iconName:"thumbs-up",icon:[512,512,[61575,128077],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"]},y4={prefix:"far",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},kz=y4,_z={prefix:"far",iconName:"user-plus",icon:[640,512,[],"f234","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM504 312c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},Sz={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},b4={prefix:"far",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c10.4-3 20.1-8 28.6-14.5l.3 .2 .5-.8c1.4-1.1 2.7-2.2 4-3.3c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-2.5 2.5-4.9 5.2-7.1 8l-.8 .5 .2 .3c-6.5 8.5-11.4 18.2-14.5 28.6zM383 191L197.4 376.6l-49.6-12.4-12.4-49.6L321 129 383 191zM97 358.9l7.7 31c2.1 8.6 8.9 15.3 17.5 17.5l31 7.7-7.4 11.2c-2.6 1.4-5.3 2.6-8.1 3.4l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4c.8-2.8 2-5.6 3.4-8.1L97 358.9zM315.3 218.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0l-96 96c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l96-96z"]},Cz=b4,xz={prefix:"far",iconName:"gas-pump",icon:[512,512,[9981],"f52f","M256 48c8.8 0 16 7.2 16 16l0 128L80 192 80 64c0-8.8 7.2-16 16-16l160 0zm16 192l0 224L80 464l0-224 192 0zM32 64l0 400-8 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l8 0 48 0 192 0 48 0 8 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-160 8 0c22.1 0 40 17.9 40 40l0 32c0 39.8 32.2 72 72 72s72-32.2 72-72l0-220.1c0-19.1-7.6-37.4-21.1-50.9L417 31c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l33 33 0 62.1c0 29.8 20.4 54.9 48 62l0 154c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-32c0-48.6-39.4-88-88-88l-8 0 0-192c0-35.3-28.7-64-64-64L96 0C60.7 0 32 28.7 32 64z"]},Em={prefix:"far",iconName:"euro-sign",icon:[320,512,[8364,"eur","euro"],"f153","M48.6 240c-.4 5.3-.6 10.6-.6 16s.2 10.7 .6 16L24 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l33.3 0C84.8 412.5 170.5 480 272 480l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0c-74.6 0-138.4-46.4-164-112l156 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L96.7 272c-.5-5.3-.7-10.6-.7-16s.2-10.7 .7-16L264 240c13.3 0 24-10.7 24-24s-10.7-24-24-24l-156 0c25.6-65.6 89.4-112 164-112l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0C170.5 32 84.8 99.5 57.3 192L24 192c-13.3 0-24 10.7-24 24s10.7 24 24 24l24.6 0z"]},Ez=Em,Tz=Em,Pz={prefix:"far",iconName:"thumbs-down",icon:[512,512,[61576,128078],"f165","M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16l-97.5 0c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8L384 32c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0z"]},w4={prefix:"far",iconName:"location-check",icon:[384,512,["map-marker-check"],"f606","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-95-20.4L182.3 278.3c-9.4 9.4-24.6 9.4-33.9 0L95 225c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36.4 36.4L255 137.7c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Az=w4,Iz={prefix:"far",iconName:"clipboard",icon:[384,512,[128203],"f328","M280 64l40 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l40 0 9.6 0C121 27.5 153.3 0 192 0s71 27.5 78.4 64l9.6 0zM64 112c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16l-16 0 0 24c0 13.3-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24l0-24-16 0zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},Mz={prefix:"far",iconName:"comment",icon:[512,512,[61669,128489],"f075","M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9l.3-.5z"]},k4={prefix:"far",iconName:"arrow-down-to-line",icon:[384,512,["arrow-to-bottom"],"f33d","M360 480c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l336 0zM174.5 344.4c4.5 4.8 10.9 7.6 17.5 7.6s12.9-2.7 17.5-7.6l128-136c9.1-9.7 8.6-24.8-1-33.9s-24.8-8.6-33.9 1L216 267.5l0-83.5 0-128c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 128 0 83.5L81.5 175.6c-9.1-9.7-24.3-10.1-33.9-1s-10.1 24.3-1 33.9l128 136z"]},Nz=k4,Oz={prefix:"far",iconName:"left-from-bracket",icon:[512,512,[],"e66c","M160 365.8L50 256 160 146.2l0 53.8c0 13.3 10.7 24 24 24l120 0 0 64-120 0c-13.3 0-24 10.7-24 24l0 53.8zM0 256c0 11.5 4.6 22.5 12.7 30.6L128.8 402.4c8.7 8.7 20.5 13.6 32.8 13.6c25.6 0 46.4-20.8 46.4-46.4l0-33.6 96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0 0-33.6c0-25.6-20.8-46.4-46.4-46.4c-12.3 0-24.1 4.9-32.8 13.6L12.7 225.4C4.6 233.5 0 244.5 0 256zM344 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c48.6 0 88-39.4 88-88l0-272c0-48.6-39.4-88-88-88l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c22.1 0 40 17.9 40 40l0 272c0 22.1-17.9 40-40 40l-80 0z"]},Bz={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"]},_4={prefix:"far",iconName:"chevrons-down",icon:[512,512,["chevron-double-down"],"f322","M239 465c9.4 9.4 24.6 9.4 33.9 0L465 273c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 239c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 465zM47 81L239 273c9.4 9.4 24.6 9.4 33.9 0L465 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z"]},Lz=_4,Dz={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},S4={prefix:"far",iconName:"location-exclamation",icon:[384,512,["map-marker-exclamation"],"f608","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zM192 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM160 320a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Rz=S4,C4={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},$z=C4,x4={prefix:"far",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M192 365.8L302 256 192 146.2l0 53.8c0 13.3-10.7 24-24 24L48 224l0 64 120 0c13.3 0 24 10.7 24 24l0 53.8zM352 256c0 11.5-4.6 22.5-12.7 30.6L223.2 402.4c-8.7 8.7-20.5 13.6-32.8 13.6c-25.6 0-46.4-20.8-46.4-46.4l0-33.6-96 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l96 0 0-33.6c0-25.6 20.8-46.4 46.4-46.4c12.3 0 24.1 4.9 32.8 13.6L339.3 225.4c8.1 8.1 12.7 19.1 12.7 30.6zm-8 176l80 0c22.1 0 40-17.9 40-40l0-272c0-22.1-17.9-40-40-40l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c48.6 0 88 39.4 88 88l0 272c0 48.6-39.4 88-88 88l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},zz=x4,Vz={prefix:"far",iconName:"calendar-circle-exclamation",icon:[576,512,[],"e46e","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-48 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM432 224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zm0 240a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm0-192c-8.8 0-16 7.2-16 16l0 80c0 8.8 7.2 16 16 16s16-7.2 16-16l0-80c0-8.8-7.2-16-16-16z"]},Fz={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},jz={prefix:"far",iconName:"clipboard-check",icon:[384,512,[],"f46c","M320 64l-40 0-9.6 0C263 27.5 230.7 0 192 0s-71 27.5-78.4 64L104 64 64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64zM80 112l0 24c0 13.3 10.7 24 24 24l88 0 88 0c13.3 0 24-10.7 24-24l0-24 16 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l16 0zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM289 267.6c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-89.7 89.7L129 287c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l53.3 53.3c4.5 4.5 10.6 7 17 7s12.5-2.5 17-7L289 267.6z"]},Hz={prefix:"far",iconName:"trash",icon:[448,512,[],"f1f8","M177.1 48l93.7 0c2.7 0 5.2 1.3 6.7 3.6l19 28.4-145 0 19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0L177.1 0c-18.7 0-36.2 9.4-46.6 24.9L93.8 80 80.1 80 32 80l-8 0C10.7 80 0 90.7 0 104s10.7 24 24 24l11.6 0L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3l201.1 0c33.5 0 61.3-25.9 63.8-59.3L412.4 128l11.6 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0-48.1 0-13.7 0zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8l-201.1 0c-8.4 0-15.3-6.5-16-14.8L83.7 128l280.6 0z"]},Uz={prefix:"far",iconName:"key",icon:[512,512,[128273],"f084","M208 176c0-70.7 57.3-128 128-128s128 57.3 128 128s-57.3 128-128 128c-10.4 0-20.5-1.2-30.1-3.6c-8.1-2-16.7 .4-22.6 6.4L254.1 336 200 336c-13.3 0-24 10.7-24 24l0 40-40 0c-13.3 0-24 10.7-24 24l0 40-64 0 0-78.1L205.2 228.7c5.9-5.9 8.3-14.5 6.4-22.6c-2.3-9.6-3.6-19.7-3.6-30.1zM336 0C238.8 0 160 78.8 160 176c0 9.5 .7 18.8 2.2 27.9L7 359c-4.5 4.5-7 10.6-7 17L0 488c0 13.3 10.7 24 24 24l112 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l27.2-27.2c9.1 1.4 18.4 2.2 27.9 2.2c97.2 0 176-78.8 176-176S433.2 0 336 0zm32 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Wz={prefix:"far",iconName:"vacuum",icon:[640,512,[],"e04d","M290 48c-27.1 0-50.6 19-56.2 45.5L206 224l-49.1 0L186.8 83.5C197.2 34.8 240.2 0 290 0L528 0c61.9 0 112 50.1 112 112c0 44.8-26.3 83.5-64.3 101.4C596.1 243.9 608 280.5 608 320l0 128c0 35.3-28.7 64-64 64l-75.3 0c14.8-13 26.5-29.4 34-48l41.3 0c8.8 0 16-7.2 16-16l0-128c0-79.5-64.5-144-144-144c-8.8 0-16 7.2-16 16l0 97c-5.2-.7-10.6-1-16-1c-11 0-21.8 1.4-32 4l0-100c0-35.3 28.7-64 64-64c47.9 0 91.8 17.6 125.4 46.6c28.9-6.1 50.6-31.9 50.6-62.6c0-35.3-28.7-64-64-64L290 48zM150.1 256l49.1 0L171.7 385.1c29.8 5.5 52.3 31.6 52.3 62.9c0 35.3-28.7 64-64 64L32 512c-17.7 0-32-14.3-32-32c0-53 43-96 96-96l26.9 0 27.2-128zM432 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm-144 0a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM176 448c0-8.8-7.2-16-16-16l-64 0c-20.9 0-38.7 13.4-45.3 32L160 464c8.8 0 16-7.2 16-16zm208-48a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"]},E4={prefix:"far",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M385.1 419.1L92.9 126.9C64.8 162.3 48 207.2 48 256c0 114.9 93.1 208 208 208c48.8 0 93.7-16.8 129.1-44.9zm33.9-33.9C447.2 349.7 464 304.8 464 256c0-114.9-93.1-208-208-208c-48.8 0-93.7 16.8-129.1 44.9L419.1 385.1zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},qz=E4,T4={prefix:"far",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"]},Yz=T4,P4={prefix:"far",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M432 256a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-160 0a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zM64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96z"]},Gz=P4,Kz={prefix:"far",iconName:"car-wash",icon:[448,512,[],"f5e6","M224 128c26.5 0 48-16 48-48c0-22.2-23-52-37.2-68.2c-5.8-6.7-15.9-6.7-21.7 0C199 28 176 57.8 176 80c0 26.5 21.5 48 48 48zm-70.2 80l140.3 0c10.1 0 19.2 6.4 22.6 15.9L333.9 272l-219.9 0 17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zM57.4 287.9c-.2 .5-.3 .9-.5 1.4C32.2 306.7 16 335.5 16 368l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 320 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 0-32 0-16 0-32c0-32.5-16.2-61.3-40.9-78.6c-.1-.5-.3-.9-.5-1.4L362 207.8c-10.2-28.7-37.4-47.8-67.8-47.8l-140.3 0c-30.4 0-57.6 19.1-67.8 47.8L57.4 287.9zM384 368l0 32L64 400l0-32c0-26.5 21.5-48 48-48l224 0c26.5 0 48 21.5 48 48zM128 384a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm216-24a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM112 80c0-22.2-23-52-37.2-68.2C69 5.1 59 5.1 53.2 11.8C39 28 16 57.8 16 80c0 26.5 21.5 48 48 48s48-16 48-48zm272 48c26.5 0 48-16 48-48c0-22.2-23-52-37.2-68.2c-5.8-6.7-15.9-6.7-21.7 0C359 28 336 57.8 336 80c0 26.5 21.5 48 48 48z"]},Xz={prefix:"far",iconName:"car-mirrors",icon:[576,512,[],"e343","M197.4 80c-17 0-32.1 10.7-37.8 26.8L135.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L197.4 80zM44.8 224L40 224c-13.3 0-24-10.7-24-24s10.7-24 24-24l44.6 0 29.8-85.1C126.7 55.6 160 32 197.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9L491.4 176l44.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-4.8 0c8.2 14.1 12.8 30.5 12.8 48l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L80 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-17.5 4.7-33.9 12.8-48zm83.2 0c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48l-320 0zm-16 64a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm320-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Tm={prefix:"far",iconName:"mobile",icon:[384,512,[128241,"mobile-android","mobile-phone"],"f3ce","M80 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l224 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L80 48zM16 64C16 28.7 44.7 0 80 0L304 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L80 512c-35.3 0-64-28.7-64-64L16 64zM160 400l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},Jz=Tm,Qz=Tm,Zz={prefix:"far",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},eV={prefix:"far",iconName:"user-check",icon:[640,512,[],"f4fc","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM625 177c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L625 177z"]},tV={prefix:"far",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 280c-13.3 0-24-10.7-24-24z"]},nV={prefix:"far",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"]},rV={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},aV={prefix:"far",iconName:"timer",icon:[512,512,[],"e29e","M232 24c0-13.3 10.7-24 24-24C397.4 0 512 114.6 512 256s-114.6 256-256 256S0 397.4 0 256c0-37.9 8.2-73.8 23-106.1c6-13.2 13.1-25.8 21.2-37.6l.1-.2C53.4 98.7 63.6 86.3 75 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9c-9.2 9.2-17.6 19.3-25 30.1l-.1 .2c-21.2 31.2-34.2 68.5-35.7 108.7c-.1 2.7-.2 5.4-.2 8.1c0 114.9 93.1 208 208 208s208-93.1 208-208c0-106.8-80.4-194.7-184-206.6l0 54.6c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80zM159 159c9.4-9.4 24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-80-80c-9.4-9.4-9.4-24.6 0-33.9z"]},A4={prefix:"far",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M127.7 106.8L103.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L165.4 80c-17 0-32.1 10.7-37.8 26.8zm-79.6 82L82.3 90.9C94.7 55.6 128 32 165.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9l34.3 97.9C492.6 205.4 512 236.4 512 272l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L48 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-35.6 19.3-66.6 48.1-83.2zM416 224L96 224c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48zM112 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm256 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},oV=A4,I4={prefix:"far",iconName:"arrow-up-z-a",icon:[576,512,["sort-alpha-up-alt"],"f882","M352 32l128 0c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 176l74.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-128 0c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 80 352 80c-13.3 0-24-10.7-24-24s10.7-24 24-24zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55L184 456c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-342.1L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM416 272c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5l-85.2 0-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160c4.1-8.1 12.4-13.3 21.5-13.3zM394.8 392l42.3 0L416 349.7 394.8 392z"]},iV=I4,M4={prefix:"far",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 13.3-10.7 24-24 24L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l368 0c13.3 0 24 10.7 24 24z"]},sV=M4,lV={prefix:"far",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zM329 297L217 409c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},N4={prefix:"far",iconName:"layer-plus",icon:[576,512,["layer-group-plus"],"f5ff","M464 4c-11 0-20 9-20 20l0 36-36 0c-11 0-20 9-20 20s9 20 20 20l36 0 0 36c0 11 9 20 20 20s20-9 20-20l0-36 36 0c11 0 20-9 20-20s-9-20-20-20l-36 0 0-36c0-11-9-20-20-20zM288 128c-8.5 0-17 1.7-24.8 5.1L53.9 222.8C40.6 228.5 32 241.5 32 256s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2L312.8 133.1c-7.8-3.4-16.3-5.1-24.8-5.1zm-5.9 49.2c1.9-.8 3.9-1.2 5.9-1.2s4 .4 5.9 1.2L477.7 256 293.9 334.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 256l183.8-78.8zM85.1 337.4L53.9 350.8C40.6 356.5 32 369.5 32 384s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2l-31.2-13.4L430 363.5 477.7 384 293.9 462.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 384 146 363.5 85.1 337.4z"]},cV=N4;const uV=Object.freeze(Object.defineProperty({__proto__:null,faAdd:M$,faAngleDown:q$,faArrowAltCircleRight:J$,faArrowDown19:xm,faArrowDownAZ:_m,faArrowDownToLine:k4,faArrowDownZA:Cm,faArrowRightRotate:T$,faArrowRotateForward:P$,faArrowRotateRight:pu,faArrowToBottom:Nz,faArrowToTop:B$,faArrowUp91:l4,faArrowUpAZ:i4,faArrowUpArrowDown:Qb,faArrowUpToLine:c4,faArrowUpZA:I4,faAutomobile:oV,faBadgeCheck:Y$,faBan:E4,faBars:r4,faBell:Zz,faBuilding:bz,faCalendar:mz,faCalendarCheck:lV,faCalendarCircleExclamation:Vz,faCalendarClock:Zb,faCalendarEdit:hz,faCalendarExclamation:C$,faCalendarPen:v4,faCalendarTime:d$,faCancel:qz,faCar:A4,faCarMirrors:Xz,faCarWash:Kz,faCars:gz,faChargingStation:fz,faCheck:pz,faCheckCircle:ez,faCheckDouble:N$,faChevronDoubleDown:Lz,faChevronDoubleUp:b$,faChevronDown:G$,faChevronLeft:W$,faChevronRight:Bz,faChevronUp:Fz,faChevronsDown:_4,faChevronsUp:n4,faCircleCheck:p4,faCircleExclamation:y4,faCircleInfo:t4,faCircleQuestion:g4,faCircleRight:d4,faClipboard:Iz,faClipboardCheck:jz,faClock:C4,faClockFour:$z,faClose:nz,faCode:Sz,faComment:Mz,faCopy:I$,faDriversLicense:K$,faEllipsis:P4,faEllipsisH:Gz,faEnvelope:nV,faEur:Ez,faEuro:Tz,faEuroSign:Em,faExclamationCircle:kz,faExclamationTriangle:$$,faFilter:rV,faFolderArrowDown:o4,faFolderDownload:x$,faFolderPlus:D$,faFolderTree:g$,faGasPump:xz,faGripDotsVertical:w$,faHome:cz,faHomeAlt:uz,faHomeLgAlt:dz,faHouse:mu,faHyphen:tV,faIdCard:u4,faIdCardAlt:Z$,faIdCardClip:f4,faInfoCircle:m$,faKey:Uz,faLayerGroup:f$,faLayerGroupPlus:cV,faLayerPlus:N4,faLeftFromBracket:Oz,faLocationCheck:w4,faLocationDot:a4,faLocationExclamation:S4,faLock:R$,faLockOpen:tz,faMagnifyingGlass:T4,faMapMarkerAlt:_$,faMapMarkerCheck:Az,faMapMarkerExclamation:Rz,faMinus:M4,faMobile:Tm,faMobileAndroid:Jz,faMobilePhone:Qz,faMultiply:rz,faNavicon:k$,faPaperPlane:Dz,faPaperclip:vz,faPen:Q$,faPencil:b4,faPencilAlt:Cz,faPhone:X$,faPlus:s4,faQuestionCircle:yz,faRedo:A$,faRemove:az,faRightToBracket:x4,faRoadCircleCheck:S$,faSearch:Yz,faSensorAlert:iz,faSensorTriangleExclamation:m4,faSignInAlt:zz,faSliders:h4,faSlidersH:lz,faSortAlphaAsc:h$,faSortAlphaDesc:F$,faSortAlphaDown:v$,faSortAlphaDownAlt:j$,faSortAlphaUp:E$,faSortAlphaUpAlt:iV,faSortNumericAsc:H$,faSortNumericDown:U$,faSortNumericUpAlt:O$,faSortUpDown:u$,faStar:V$,faStarHalfAlt:p$,faStarHalfStroke:e4,faStopwatch:y$,faSubtract:sV,faThumbsDown:Pz,faThumbsUp:wz,faTimer:aV,faTimes:oz,faTrash:Hz,faTriangleExclamation:Sm,faUser:sz,faUserCheck:eV,faUserMinus:L$,faUserPlus:_z,faVacuum:Wz,faWarning:z$,faXmark:Us},Symbol.toStringTag,{value:"Module"}));var O4={prefix:"fas",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM214.6 169.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 269.3 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-178.7 73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128z"]},dV=O4,fV={prefix:"fas",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},pV={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"]},mV={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},hV={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},vV={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},gV={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},yV={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},B4={prefix:"fas",iconName:"dash",icon:[512,512,["minus-large"],"e404","M0 256c0-17.7 14.3-32 32-32l448 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},bV=B4,wV={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},kV={prefix:"fas",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},_V={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},SV={prefix:"fas",iconName:"horizontal-rule",icon:[640,512,[8213],"f86c","M0 256c0-17.7 14.3-32 32-32l576 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},CV={prefix:"fas",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},xV={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]},L4={prefix:"fas",iconName:"mobile-notch",icon:[384,512,["mobile-iphone"],"e1ee","M128 64l0 16c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-16 32 0c8.8 0 16 7.2 16 16l0 352c0 8.8-7.2 16-16 16L96 448c-8.8 0-16-7.2-16-16L80 80c0-8.8 7.2-16 16-16l32 0zM96 0C51.8 0 16 35.8 16 80l0 352c0 44.2 35.8 80 80 80l192 0c44.2 0 80-35.8 80-80l0-352c0-44.2-35.8-80-80-80L96 0zm32 400c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-8.8 0-16 7.2-16 16z"]},EV=L4,D4={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},TV=D4,PV={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},AV={prefix:"fas",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l16 0 0 34.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6L256 64l16 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L224 0 176 0zm72 192l0 128c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-128c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},R4={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},IV=R4,MV={prefix:"fas",iconName:"user",icon:[448,512,[62144,128100],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},Ws={prefix:"fas",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},NV=Ws,OV=Ws,BV=Ws,LV=Ws;const DV=Object.freeze(Object.defineProperty({__proto__:null,faArrowToTop:dV,faArrowUpToLine:O4,faBell:fV,faBug:pV,faCaretDown:mV,faCaretLeft:hV,faCaretRight:vV,faCaretUp:gV,faCheck:yV,faClose:NV,faDash:B4,faDownload:wV,faEnvelope:kV,faEye:_V,faHorizontalRule:SV,faHyphen:CV,faKey:xV,faMinusLarge:bV,faMobileIphone:EV,faMobileNotch:L4,faMultiply:OV,faPencil:D4,faPencilAlt:TV,faRemove:BV,faStar:PV,faStopwatch:AV,faTimes:LV,faTrashAlt:IV,faTrashCan:R4,faUser:MV,faXmark:Ws},Symbol.toStringTag,{value:"Module"}));var bn={far:{},fas:{}},$4=[];function z4(e){Object.keys(e).forEach(function(t){if(t!=="prefix"){var n=e[t],a=n.icon[2];a.forEach(function(o){typeof o=="string"&&(bn[n.prefix][o]=n)}),bn[n.prefix][n.iconName]=n,$4.push(n)}})}z4(uV);z4(DV);const Le=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rt=globalThis,so="9.43.0";function Co(){return hu(rt),rt}function hu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||so,t[so]=t[so]||{}}function qs(e,t,n=rt){const a=n.__SENTRY__=n.__SENTRY__||{},o=a[so]=a[so]||{};return o[e]||(o[e]=t())}const RV=["debug","info","warn","error","log","assert","trace"],$V="Sentry Logger ",Sc={};function ia(e){if(!("console"in rt))return e();const t=rt.console,n={},a=Object.keys(Sc);a.forEach(o=>{const i=Sc[o];n[o]=t[o],t[o]=i});try{return e()}finally{a.forEach(o=>{t[o]=n[o]})}}function zV(){Am().enabled=!0}function VV(){Am().enabled=!1}function V4(){return Am().enabled}function FV(...e){Pm("log",...e)}function jV(...e){Pm("warn",...e)}function HV(...e){Pm("error",...e)}function Pm(e,...t){Le&&V4()&&ia(()=>{rt.console[e](`${$V}[${e}]:`,...t)})}function Am(){return Le?qs("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ke={enable:zV,disable:VV,isEnabled:V4,log:FV,warn:jV,error:HV},F4=50,yo="?",O0=/\(error: (.*)\)/,B0=/captureMessage|captureException/;function j4(...e){const t=e.sort((n,a)=>n[0]-a[0]).map(n=>n[1]);return(n,a=0,o=0)=>{const i=[],s=n.split(`
|
|
649
|
-
`);for(let l=a;l<s.length;l++){const c=s[l];if(c.length>1024)continue;const u=O0.test(c)?c.replace(O0,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const f=d(u);if(f){i.push(f);break}}if(i.length>=F4+o)break}}return
|
|
648
|
+
9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1)]))}const i$=Dn(r$,[["render",o$]]);function s$(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function l$(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Xb(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function wm(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function Jb(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function c$(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function km(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}var Qb={prefix:"far",iconName:"arrow-up-arrow-down",icon:[576,512,["sort-up-down"],"e099","M529 377c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L440 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1-55-55c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96zM177 39c-9.4-9.4-24.6-9.4-33.9 0L47 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55L136 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-342.1 55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L177 39z"]},u$=Qb,Zb={prefix:"far",iconName:"calendar-clock",icon:[576,512,["calendar-time"],"e0d2","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-112 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM288 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},d$=Zb,f$={prefix:"far",iconName:"layer-group",icon:[576,512,[],"f5fd","M288 0c-8.5 0-17 1.7-24.8 5.1L53.9 94.8C40.6 100.5 32 113.5 32 128s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2L312.8 5.1C305 1.7 296.5 0 288 0zm-5.9 49.2C284 48.4 286 48 288 48s4 .4 5.9 1.2L477.7 128 293.9 206.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 128 282.1 49.2zM53.9 222.8C40.6 228.5 32 241.5 32 256s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2l-31.2-13.4L430 235.5 477.7 256 293.9 334.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 256 146 235.5 85.1 209.4 53.9 222.8zm0 128C40.6 356.5 32 369.5 32 384s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2l-31.2-13.4L430 363.5 477.7 384 293.9 462.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 384 146 363.5 85.1 337.4 53.9 350.8z"]},e4={prefix:"far",iconName:"star-half-stroke",icon:[576,512,["star-half-alt"],"f5c0","M309.5 13.5C305.5 5.2 297.1 0 287.9 0s-17.6 5.2-21.6 13.5L197.7 154.8 44.5 177.5c-9 1.3-16.5 7.6-19.3 16.3s-.5 18.1 5.9 24.5L142.2 328.4 116 483.9c-1.5 9 2.2 18.1 9.7 23.5s17.3 6 25.3 1.7l137-73.2 137 73.2c8.1 4.3 17.9 3.7 25.3-1.7s11.2-14.5 9.7-23.5L433.6 328.4 544.8 218.2c6.5-6.4 8.7-15.9 5.9-24.5s-10.3-14.9-19.3-16.3L378.1 154.8 309.5 13.5zM288 384.7l0-305.6 52.5 108.1c3.5 7.1 10.2 12.1 18.1 13.3l118.3 17.5L391 303c-5.5 5.5-8.1 13.3-6.8 21l20.2 119.6L299.2 387.5c-3.5-1.9-7.4-2.8-11.2-2.8z"]},p$=e4,t4={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},m$=t4,_m={prefix:"far",iconName:"arrow-down-a-z",icon:[576,512,["sort-alpha-asc","sort-alpha-down"],"f15d","M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L184 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zm305-89c-13.3 0-24 10.7-24 24s10.7 24 24 24l74.6 0L334.1 440.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 480 352 480l128 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-74.6 0 92.5-104.1c6.3-7.1 7.8-17.2 4-25.8S489.4 288 480 288l-128 0zM416 32c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 200l85.2 0c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160C433.4 37.1 425.1 32 416 32zM394.8 152L416 109.7 437.2 152l-42.3 0z"]},h$=_m,v$=_m,g$={prefix:"far",iconName:"folder-tree",icon:[576,512,[],"f802","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 136 0 392c0 30.9 25.1 56 56 56l200 0 0-48L56 400c-4.4 0-8-3.6-8-8l0-232 208 0 0-48L48 112l0-88zM336 176l0-128 44.1 0 17 17c9.6 9.6 22.6 15 36.2 15L528 80l0 96-192 0zM288 32l0 160c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32L433.3 32c-.8 0-1.7-.3-2.3-.9L409.4 9.4c-6-6-14.1-9.4-22.6-9.4L320 0c-17.7 0-32 14.3-32 32zm48 432l0-128 44.1 0 17 17c9.6 9.6 22.6 15 36.2 15l94.7 0 0 96-192 0zM288 320l0 160c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32l-110.7 0c-.8 0-1.7-.3-2.3-.9l-21.7-21.7c-6-6-14.1-9.4-22.6-9.4L320 288c-17.7 0-32 14.3-32 32z"]},y$={prefix:"far",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M144 24c0-13.3 10.7-24 24-24L280 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0 0 49.4c43.4 5 82.8 23.3 113.8 50.9L391 119c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-31 31c24 33.9 38.1 75.3 38.1 120c0 114.9-93.1 208-208 208S16 418.9 16 304C16 197.2 96.4 109.3 200 97.4L200 48l-32 0c-13.3 0-24-10.7-24-24zm80 440a160 160 0 1 0 0-320 160 160 0 1 0 0 320zm24-248l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},n4={prefix:"far",iconName:"chevrons-up",icon:[512,512,["chevron-double-up"],"f325","M273 47c-9.4-9.4-24.6-9.4-33.9 0L47 239c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l175-175L431 273c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L273 47zM465 431L273 239c-9.4-9.4-24.6-9.4-33.9 0L47 431c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l175-175L431 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9z"]},b$=n4,w$={prefix:"far",iconName:"grip-dots-vertical",icon:[256,512,[],"e411","M64 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm0 160a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM96 416a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96-288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm32 128a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM192 448a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},r4={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 272c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24L24 432c-13.3 0-24-10.7-24-24s10.7-24 24-24l400 0c13.3 0 24 10.7 24 24z"]},k$=r4,a4={prefix:"far",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-160 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-112 0a80 80 0 1 1 160 0 80 80 0 1 1 -160 0z"]},_$=a4,S$={prefix:"far",iconName:"arrow-down",icon:[384,512,[8595],"f063","M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z"]},C$={prefix:"far",iconName:"road-circle-check",icon:[640,512,[],"e564","M217.7 32c-30.4 0-57.5 19-67.7 47.6L40.6 383.6C23.7 430.5 58.4 480 108.3 480l251.9 0c-21.9-26.6-36.2-59.7-39.5-96c-.2 0-.5 0-.7 0c-13.3 0-24 10.7-24 24l0 24-187.7 0c-16.6 0-28.2-16.5-22.6-32.1l109.4-304c3.4-9.5 12.5-15.9 22.6-15.9L296 80l0 24c0 13.3 10.7 24 24 24s24-10.7 24-24l0-24 78.3 0c10.1 0 19.2 6.3 22.6 15.9l34.9 96.9c5.4-.5 10.8-.7 16.3-.7c12.3 0 24.2 1.3 35.8 3.6L490 79.6C479.7 51 452.6 32 422.3 32L217.7 32zM326.9 319c4.1-14.1 9.8-27.4 17.1-39.8l0-63.2c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 80c0 13.3 10.7 24 24 24c2.4 0 4.7-.4 6.9-1zM640 368a144 144 0 1 0 -288 0 144 144 0 1 0 288 0zm-76.7-43.3c6.2 6.2 6.2 16.4 0 22.6l-72 72c-6.2 6.2-16.4 6.2-22.6 0l-40-40c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L480 385.4l60.7-60.7c6.2-6.2 16.4-6.2 22.6 0z"]},x$={prefix:"far",iconName:"calendar-exclamation",icon:[448,512,[],"f334","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256zM256 400a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-152c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64z"]},o4={prefix:"far",iconName:"folder-arrow-down",icon:[512,512,["folder-download"],"e053","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 256c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zm33.9-33.9L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3zM280 200c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 102.1-31-31c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c9.4 9.4 24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-31 31L280 200z"]},E$=o4,i4={prefix:"far",iconName:"arrow-up-a-z",icon:[576,512,["sort-alpha-up"],"f15e","M416 32c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5l-85.2 0-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160C398.6 37.1 406.9 32 416 32zM394.8 152l42.3 0L416 109.7 394.8 152zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55L184 456c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-342.1L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM352 288l128 0c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 432l74.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-128 0c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 336 352 336c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},T$=i4,pu={prefix:"far",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M472 224c13.3 0 24-10.7 24-24l0-144c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 80.1-20-23.5C387 63.4 325.1 32 256 32C132.3 32 32 132.3 32 256s100.3 224 224 224c50.4 0 97-16.7 134.4-44.8c10.6-8 12.7-23 4.8-33.6s-23-12.7-33.6-4.8C332.2 418.9 295.7 432 256 432c-97.2 0-176-78.8-176-176s78.8-176 176-176c54.3 0 102.9 24.6 135.2 63.4l.1 .2s0 0 0 0L418.9 176 328 176c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0z"]},P$=pu,A$=pu,I$=pu,M$={prefix:"far",iconName:"copy",icon:[448,512,[],"f0c5","M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"]},s4={prefix:"far",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 160L40 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0 0 160c0 13.3 10.7 24 24 24s24-10.7 24-24l0-160 160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-160 0 0-160z"]},N$=s4,O$={prefix:"far",iconName:"check-double",icon:[448,512,[],"f560","M337 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-143 143L97 127c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l80 80c9.4 9.4 24.6 9.4 33.9 0L337 81zM441 201c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-247 247L41 295c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L143 465c9.4 9.4 24.6 9.4 33.9 0L441 201z"]},l4={prefix:"far",iconName:"arrow-up-9-1",icon:[576,512,["sort-numeric-up-alt"],"f887","M424 80a40 40 0 1 0 0 80 40 40 0 1 0 0-80zm88 40c0 .8 0 1.6 0 2.5c-.6 20.2-7.9 39.7-20.9 55.3l-64.6 77.6c-8.5 10.2-23.6 11.6-33.8 3.1s-11.6-23.6-3.1-33.8L405.1 206c-39.5-8.6-69.1-43.8-69.1-86c0-48.6 39.4-88 88-88s88 39.4 88 88zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55L184 456c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-342.1L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM456 312l0 120 24 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-86.7-16.4 5.5c-12.6 4.2-26.2-2.6-30.4-15.2s2.6-26.2 15.2-30.4l48-16c7.3-2.4 15.4-1.2 21.6 3.3s10 11.8 10 19.5z"]},B$=l4,c4={prefix:"far",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M24 32C10.7 32 0 42.7 0 56S10.7 80 24 80l336 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 32zM209.5 167.6c-4.5-4.8-10.9-7.6-17.5-7.6s-12.9 2.7-17.5 7.6l-128 136c-9.1 9.7-8.6 24.8 1 33.9s24.8 8.6 33.9-1L168 244.5l0 83.5 0 128c0 13.3 10.7 24 24 24s24-10.7 24-24l0-128 0-83.5 86.5 91.9c9.1 9.7 24.3 10.1 33.9 1s10.1-24.3 1-33.9l-128-136z"]},L$=c4,D$={prefix:"far",iconName:"user-minus",icon:[640,512,[],"f503","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM472 200c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]},R$={prefix:"far",iconName:"folder-plus",icon:[512,512,[],"f65e","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 256c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zm33.9-33.9L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3zM232 376c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},$$={prefix:"far",iconName:"lock",icon:[448,512,[128274],"f023","M144 128l0 64 160 0 0-64c0-44.2-35.8-80-80-80s-80 35.8-80 80zM96 192l0-64C96 57.3 153.3 0 224 0s128 57.3 128 128l0 64 32 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l32 0zM48 256l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16L64 240c-8.8 0-16 7.2-16 16z"]},Sm={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5l-387 0c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480l387 0c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 96c0 13.3 10.7 24 24 24s24-10.7 24-24l0-96z"]},z$=Sm,V$=Sm,F$={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},Cm={prefix:"far",iconName:"arrow-down-z-a",icon:[576,512,["sort-alpha-desc","sort-alpha-down-alt"],"f881","M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L184 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zM352 32c-13.3 0-24 10.7-24 24s10.7 24 24 24l74.6 0L334.1 184.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 224 352 224l128 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-74.6 0L497.9 71.9c6.3-7.1 7.8-17.2 4-25.8S489.4 32 480 32L352 32zm64 240c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 440l85.2 0c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160c-4.1-8.1-12.4-13.3-21.5-13.3zM394.8 392L416 349.7 437.2 392l-42.3 0z"]},j$=Cm,H$=Cm,xm={prefix:"far",iconName:"arrow-down-1-9",icon:[576,512,["sort-numeric-asc","sort-numeric-down"],"f162","M456 56c0-7.7-3.7-15-10-19.5s-14.3-5.7-21.6-3.3l-48 16C363.8 53.4 357 67 361.2 79.6S379 99 391.6 94.8L408 89.3l0 38.7 0 48-24 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l48 0 48 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0 0-48 0-72zM143 473c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55L184 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 342.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96zm281-89a40 40 0 1 1 0-80 40 40 0 1 1 0 80zm-17.9 46.2l-8.7 10.6c-8.4 10.3-6.9 25.4 3.4 33.8s25.4 6.9 33.8-3.4l56.8-69.4C504.7 385.5 512 365.1 512 344c0-48.6-39.4-88-88-88s-88 39.4-88 88c0 42.5 30.1 77.9 70.1 86.2z"]},U$=xm,W$=xm,q$={prefix:"far",iconName:"chevron-left",icon:[320,512,[9001],"f053","M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"]},Y$={prefix:"far",iconName:"angle-down",icon:[448,512,[8964],"f107","M241 369c-9.4 9.4-24.6 9.4-33.9 0L47 209c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L367 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L241 369z"]},G$={prefix:"far",iconName:"badge-check",icon:[512,512,[],"f336","M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5C317.1 91.7 329 96.6 340 93.2c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7C91.7 194.9 96.6 183 93.2 172c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},K$={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},u4={prefix:"far",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M528 160l0 256c0 8.8-7.2 16-16 16l-192 0c0-44.2-35.8-80-80-80l-64 0c-44.2 0-80 35.8-80 80l-32 0c-8.8 0-16-7.2-16-16l0-256 480 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM272 256a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm104-48c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0z"]},X$=u4,J$={prefix:"far",iconName:"phone",icon:[512,512,[128222,128379],"f095","M375.8 275.2c-16.4-7-35.4-2.4-46.7 11.4l-33.2 40.6c-46-26.7-84.4-65.1-111.1-111.1L225.3 183c13.8-11.3 18.5-30.3 11.4-46.7l-48-112C181.2 6.7 162.3-3.1 143.6 .9l-112 24C13.2 28.8 0 45.1 0 64c0 0 0 0 0 0C0 295.2 175.2 485.6 400.1 509.5c9.8 1 19.6 1.8 29.6 2.2c0 0 0 0 0 0c0 0 .1 0 .1 0c6.1 .2 12.1 .4 18.2 .4c0 0 0 0 0 0c18.9 0 35.2-13.2 39.1-31.6l24-112c4-18.7-5.8-37.6-23.4-45.1l-112-48zM441.5 464C225.8 460.5 51.5 286.2 48.1 70.5l99.2-21.3 43 100.4L154.4 179c-18.2 14.9-22.9 40.8-11.1 61.2c30.9 53.3 75.3 97.7 128.6 128.6c20.4 11.8 46.3 7.1 61.2-11.1l29.4-35.9 100.4 43L441.5 464zM48 64s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0z"]},d4={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},Q$=d4,Z$={prefix:"far",iconName:"pen",icon:[512,512,[128394],"f304","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c12.4-3.6 23.7-9.9 33.4-18.4c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4zm46 13.5c1.7-5.6 4.5-10.8 8.4-15.2c.6-.6 1.1-1.2 1.7-1.8L321 129 383 191 154.6 419.5c-4.7 4.7-10.6 8.2-17 10.1l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4z"]},f4={prefix:"far",iconName:"id-card-clip",icon:[576,512,["id-card-alt"],"f47f","M256 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32L256 0zM192 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L384 64l0 48 128 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l128 0 0-48zm96 240a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"]},ez=f4,p4={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},tz=p4,nz={prefix:"far",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 128c0-44.2 35.8-80 80-80s80 35.8 80 80l0 72c0 13.3 10.7 24 24 24s24-10.7 24-24l0-72C560 57.3 502.7 0 432 0S304 57.3 304 128l0 64L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-64zM64 240l320 0c8.8 0 16 7.2 16 16l0 192c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-192c0-8.8 7.2-16 16-16z"]},Us={prefix:"far",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},rz=Us,az=Us,oz=Us,iz=Us,m4={prefix:"far",iconName:"sensor-triangle-exclamation",icon:[640,512,["sensor-alert"],"e029","M64 80l320 0c8.8 0 16 7.2 16 16l0 49.9c13.1-11.4 30.1-17.9 48-17.9l0-32c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l161 0c-.6-4-1-8.1-1-12.3c0-12.5 3-24.7 8.9-35.7L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16zm80 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm96 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm21.8 293.8c-3.8 6.7-5.8 14.2-5.8 21.9c0 24.5 19.8 44.3 44.3 44.3l295.4 0c24.5 0 44.3-19.8 44.3-44.3c0-7.7-2-15.2-5.8-21.9l-150.4-265C476.5 168 462.8 160 448 160s-28.5 8-35.8 20.9l-150.4 265zM464 272l0 88c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-88c0-8.8 7.2-16 16-16s16 7.2 16 16zM448 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},sz=m4,lz={prefix:"far",iconName:"user",icon:[448,512,[62144,128100],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]},h4={prefix:"far",iconName:"sliders",icon:[512,512,["sliders-h"],"f1de","M0 416c0 13.3 10.7 24 24 24l59.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 440c13.3 0 24-10.7 24-24s-10.7-24-24-24l-251.7 0c-10.2-32.5-40.5-56-76.3-56s-66.1 23.5-76.3 56L24 392c-13.3 0-24 10.7-24 24zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-35.8 0-66.1 23.5-76.3 56L24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l251.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56l59.7 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-59.7 0c-10.2-32.5-40.5-56-76.3-56zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm76.3-56C258.1 39.5 227.8 16 192 16s-66.1 23.5-76.3 56L24 72C10.7 72 0 82.7 0 96s10.7 24 24 24l91.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 120c13.3 0 24-10.7 24-24s-10.7-24-24-24L268.3 72z"]},cz=h4,mu={prefix:"far",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5 64 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-186.5 24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM112 432l0-227.2L288 55.5 464 204.8 464 432c0 17.7-14.3 32-32 32l-48 0 0-152c0-22.1-17.9-40-40-40l-112 0c-22.1 0-40 17.9-40 40l0 152-48 0c-17.7 0-32-14.3-32-32zm128 32l0-144 96 0 0 144-96 0z"]},uz=mu,dz=mu,fz=mu,pz={prefix:"far",iconName:"charging-station",icon:[576,512,[],"f5e7","M96 48c-8.8 0-16 7.2-16 16l0 400 192 0 0-400c0-8.8-7.2-16-16-16L96 48zM32 464L32 64C32 28.7 60.7 0 96 0L256 0c35.3 0 64 28.7 64 64l0 192 8 0c48.6 0 88 39.4 88 88l0 28c0 15.5 12.5 28 28 28s28-12.5 28-28l0-103.7c-32.5-10.2-56-40.5-56-76.3l0-40c0-13.3 10.7-24 24-24l8 0 0-48c0-8.8 7.2-16 16-16s16 7.2 16 16l0 48 32 0 0-48c0-8.8 7.2-16 16-16s16 7.2 16 16l0 48 8 0c13.3 0 24 10.7 24 24l0 40c0 35.8-23.5 66.1-56 76.3L520 372c0 42-34 76-76 76s-76-34-76-76l0-28c0-22.1-17.9-40-40-40l-8 0 0 160 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0-48 0L80 512l-48 0-8 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l8 0zM464 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-16-64 0 0 16zM222.9 117.9L199.6 176l40.4 0c6.7 0 12.8 4.2 15 10.6s.4 13.4-4.8 17.7l-96 80c-5.6 4.7-13.7 5-19.6 .7s-8.2-12.1-5.5-18.9L152.4 208 112 208c-6.7 0-12.8-4.2-15-10.6s-.4-13.4 4.8-17.7l96-80c5.6-4.7 13.7-5 19.6-.7s8.2 12.1 5.5 18.9z"]},mz={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},hz={prefix:"far",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256z"]},v4={prefix:"far",iconName:"calendar-pen",icon:[448,512,["calendar-edit"],"f333","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zm-91.2 51c14.7 14.7 14.7 38.6 0 53.3l-14.9 14.9L240.6 258 255.5 243c14.7-14.7 38.6-14.7 53.3 0zM146.1 352.5L218 280.6l53.3 53.3-71.9 71.9c-4.1 4.1-9.2 7-14.9 8.4l-36.6 9.2c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l9.2-36.6c1.4-5.6 4.3-10.8 8.4-14.9z"]},vz=v4,gz={prefix:"far",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M375 73c-26-26-68.1-26-94.1 0L89 265C45.3 308.6 45.3 379.4 89 423s114.4 43.6 158.1 0L399 271c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L281 457c-62.4 62.4-163.5 62.4-225.9 0S-7.4 293.4 55 231L247 39C291.7-5.7 364.3-5.7 409 39s44.7 117.2 0 161.9L225.2 384.7c-31.6 31.6-83.6 28.7-111.5-6.2c-23.8-29.8-21.5-72.8 5.5-99.8L271 127c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L153.2 312.7c-9.7 9.7-10.6 25.1-2 35.8c10 12.5 28.7 13.6 40 2.2L375 167c26-26 26-68.1 0-94.1z"]},yz={prefix:"far",iconName:"arrow-up",icon:[384,512,[8593],"f062","M209.4 39.4C204.8 34.7 198.6 32 192 32s-12.8 2.7-17.4 7.4l-168 176c-9.2 9.6-8.8 24.8 .8 33.9s24.8 8.8 33.9-.8L168 115.9 168 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-340.1L342.6 248.6c9.2 9.6 24.3 9.9 33.9 .8s9.9-24.3 .8-33.9l-168-176z"]},bz={prefix:"far",iconName:"cars",icon:[640,512,[],"f85b","M137.8 48l140.3 0c10.1 0 19.2 6.4 22.6 15.9L317.9 112 98.1 112l17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zM41.4 127.9c-.2 .5-.3 .9-.5 1.4C16.2 146.7 0 175.5 0 208l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 172.1 0c5.3-6.6 11.3-12.7 17.8-18.2L248.5 240 48 240l0-32c0-26.5 21.5-48 48-48l190.8 0c19.2-20 46.1-32 75.1-32l12.8 0c0 0 0 0 0-.1L346 47.8C335.7 19.1 308.6 0 278.2 0L137.8 0C107.4 0 80.3 19.1 70 47.8L41.4 127.9zM112 224a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm249.8-16l140.3 0c10.1 0 19.2 6.4 22.6 15.9L541.9 272l-219.9 0 17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zm-96.4 79.9c-.2 .5-.3 .9-.5 1.4C240.2 306.7 224 335.5 224 368l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 320 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 0-32 0-16 0-32c0-32.5-16.2-61.3-40.9-78.7c-.1-.5-.3-.9-.5-1.4L570 207.8c-10.2-28.7-37.4-47.8-67.8-47.8l-140.3 0c-30.4 0-57.6 19.1-67.8 47.8l-28.6 80.1zM544 320c26.5 0 48 21.5 48 48l0 32-320 0 0-32c0-26.5 21.5-48 48-48l224 0zM336 384a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm216-24a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},g4={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},wz=g4,kz={prefix:"far",iconName:"building",icon:[384,512,[61687,127970],"f1ad","M64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l80 0 0-64c0-26.5 21.5-48 48-48s48 21.5 48 48l0 64 80 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L64 48zM0 64C0 28.7 28.7 0 64 0L320 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm88 40c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zM232 88l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16zM88 232c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zm144-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16z"]},_z={prefix:"far",iconName:"thumbs-up",icon:[512,512,[61575,128077],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"]},y4={prefix:"far",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Sz=y4,Cz={prefix:"far",iconName:"user-plus",icon:[640,512,[],"f234","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM504 312c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},xz={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},b4={prefix:"far",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c10.4-3 20.1-8 28.6-14.5l.3 .2 .5-.8c1.4-1.1 2.7-2.2 4-3.3c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-2.5 2.5-4.9 5.2-7.1 8l-.8 .5 .2 .3c-6.5 8.5-11.4 18.2-14.5 28.6zM383 191L197.4 376.6l-49.6-12.4-12.4-49.6L321 129 383 191zM97 358.9l7.7 31c2.1 8.6 8.9 15.3 17.5 17.5l31 7.7-7.4 11.2c-2.6 1.4-5.3 2.6-8.1 3.4l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4c.8-2.8 2-5.6 3.4-8.1L97 358.9zM315.3 218.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0l-96 96c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l96-96z"]},Ez=b4,Tz={prefix:"far",iconName:"gas-pump",icon:[512,512,[9981],"f52f","M256 48c8.8 0 16 7.2 16 16l0 128L80 192 80 64c0-8.8 7.2-16 16-16l160 0zm16 192l0 224L80 464l0-224 192 0zM32 64l0 400-8 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l8 0 48 0 192 0 48 0 8 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-160 8 0c22.1 0 40 17.9 40 40l0 32c0 39.8 32.2 72 72 72s72-32.2 72-72l0-220.1c0-19.1-7.6-37.4-21.1-50.9L417 31c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l33 33 0 62.1c0 29.8 20.4 54.9 48 62l0 154c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-32c0-48.6-39.4-88-88-88l-8 0 0-192c0-35.3-28.7-64-64-64L96 0C60.7 0 32 28.7 32 64z"]},Em={prefix:"far",iconName:"euro-sign",icon:[320,512,[8364,"eur","euro"],"f153","M48.6 240c-.4 5.3-.6 10.6-.6 16s.2 10.7 .6 16L24 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l33.3 0C84.8 412.5 170.5 480 272 480l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0c-74.6 0-138.4-46.4-164-112l156 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L96.7 272c-.5-5.3-.7-10.6-.7-16s.2-10.7 .7-16L264 240c13.3 0 24-10.7 24-24s-10.7-24-24-24l-156 0c25.6-65.6 89.4-112 164-112l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0C170.5 32 84.8 99.5 57.3 192L24 192c-13.3 0-24 10.7-24 24s10.7 24 24 24l24.6 0z"]},Pz=Em,Az=Em,Iz={prefix:"far",iconName:"thumbs-down",icon:[512,512,[61576,128078],"f165","M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16l-97.5 0c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8L384 32c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0z"]},w4={prefix:"far",iconName:"location-check",icon:[384,512,["map-marker-check"],"f606","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-95-20.4L182.3 278.3c-9.4 9.4-24.6 9.4-33.9 0L95 225c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36.4 36.4L255 137.7c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Mz=w4,Nz={prefix:"far",iconName:"clipboard",icon:[384,512,[128203],"f328","M280 64l40 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l40 0 9.6 0C121 27.5 153.3 0 192 0s71 27.5 78.4 64l9.6 0zM64 112c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16l-16 0 0 24c0 13.3-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24l0-24-16 0zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},Oz={prefix:"far",iconName:"comment",icon:[512,512,[61669,128489],"f075","M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9l.3-.5z"]},k4={prefix:"far",iconName:"arrow-down-to-line",icon:[384,512,["arrow-to-bottom"],"f33d","M360 480c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l336 0zM174.5 344.4c4.5 4.8 10.9 7.6 17.5 7.6s12.9-2.7 17.5-7.6l128-136c9.1-9.7 8.6-24.8-1-33.9s-24.8-8.6-33.9 1L216 267.5l0-83.5 0-128c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 128 0 83.5L81.5 175.6c-9.1-9.7-24.3-10.1-33.9-1s-10.1 24.3-1 33.9l128 136z"]},Bz=k4,Lz={prefix:"far",iconName:"left-from-bracket",icon:[512,512,[],"e66c","M160 365.8L50 256 160 146.2l0 53.8c0 13.3 10.7 24 24 24l120 0 0 64-120 0c-13.3 0-24 10.7-24 24l0 53.8zM0 256c0 11.5 4.6 22.5 12.7 30.6L128.8 402.4c8.7 8.7 20.5 13.6 32.8 13.6c25.6 0 46.4-20.8 46.4-46.4l0-33.6 96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0 0-33.6c0-25.6-20.8-46.4-46.4-46.4c-12.3 0-24.1 4.9-32.8 13.6L12.7 225.4C4.6 233.5 0 244.5 0 256zM344 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c48.6 0 88-39.4 88-88l0-272c0-48.6-39.4-88-88-88l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c22.1 0 40 17.9 40 40l0 272c0 22.1-17.9 40-40 40l-80 0z"]},Dz={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"]},_4={prefix:"far",iconName:"chevrons-down",icon:[512,512,["chevron-double-down"],"f322","M239 465c9.4 9.4 24.6 9.4 33.9 0L465 273c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 239c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 465zM47 81L239 273c9.4 9.4 24.6 9.4 33.9 0L465 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z"]},Rz=_4,$z={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},S4={prefix:"far",iconName:"location-exclamation",icon:[384,512,["map-marker-exclamation"],"f608","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zM192 96c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM160 320a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},zz=S4,C4={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Vz=C4,x4={prefix:"far",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M192 365.8L302 256 192 146.2l0 53.8c0 13.3-10.7 24-24 24L48 224l0 64 120 0c13.3 0 24 10.7 24 24l0 53.8zM352 256c0 11.5-4.6 22.5-12.7 30.6L223.2 402.4c-8.7 8.7-20.5 13.6-32.8 13.6c-25.6 0-46.4-20.8-46.4-46.4l0-33.6-96 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l96 0 0-33.6c0-25.6 20.8-46.4 46.4-46.4c12.3 0 24.1 4.9 32.8 13.6L339.3 225.4c8.1 8.1 12.7 19.1 12.7 30.6zm-8 176l80 0c22.1 0 40-17.9 40-40l0-272c0-22.1-17.9-40-40-40l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c48.6 0 88 39.4 88 88l0 272c0 48.6-39.4 88-88 88l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Fz=x4,jz={prefix:"far",iconName:"calendar-circle-exclamation",icon:[576,512,[],"e46e","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-48 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM432 224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zm0 240a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm0-192c-8.8 0-16 7.2-16 16l0 80c0 8.8 7.2 16 16 16s16-7.2 16-16l0-80c0-8.8-7.2-16-16-16z"]},Hz={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},Uz={prefix:"far",iconName:"clipboard-check",icon:[384,512,[],"f46c","M320 64l-40 0-9.6 0C263 27.5 230.7 0 192 0s-71 27.5-78.4 64L104 64 64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64zM80 112l0 24c0 13.3 10.7 24 24 24l88 0 88 0c13.3 0 24-10.7 24-24l0-24 16 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l16 0zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM289 267.6c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-89.7 89.7L129 287c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l53.3 53.3c4.5 4.5 10.6 7 17 7s12.5-2.5 17-7L289 267.6z"]},Wz={prefix:"far",iconName:"trash",icon:[448,512,[],"f1f8","M177.1 48l93.7 0c2.7 0 5.2 1.3 6.7 3.6l19 28.4-145 0 19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0L177.1 0c-18.7 0-36.2 9.4-46.6 24.9L93.8 80 80.1 80 32 80l-8 0C10.7 80 0 90.7 0 104s10.7 24 24 24l11.6 0L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3l201.1 0c33.5 0 61.3-25.9 63.8-59.3L412.4 128l11.6 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0-48.1 0-13.7 0zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8l-201.1 0c-8.4 0-15.3-6.5-16-14.8L83.7 128l280.6 0z"]},qz={prefix:"far",iconName:"key",icon:[512,512,[128273],"f084","M208 176c0-70.7 57.3-128 128-128s128 57.3 128 128s-57.3 128-128 128c-10.4 0-20.5-1.2-30.1-3.6c-8.1-2-16.7 .4-22.6 6.4L254.1 336 200 336c-13.3 0-24 10.7-24 24l0 40-40 0c-13.3 0-24 10.7-24 24l0 40-64 0 0-78.1L205.2 228.7c5.9-5.9 8.3-14.5 6.4-22.6c-2.3-9.6-3.6-19.7-3.6-30.1zM336 0C238.8 0 160 78.8 160 176c0 9.5 .7 18.8 2.2 27.9L7 359c-4.5 4.5-7 10.6-7 17L0 488c0 13.3 10.7 24 24 24l112 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l27.2-27.2c9.1 1.4 18.4 2.2 27.9 2.2c97.2 0 176-78.8 176-176S433.2 0 336 0zm32 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Yz={prefix:"far",iconName:"vacuum",icon:[640,512,[],"e04d","M290 48c-27.1 0-50.6 19-56.2 45.5L206 224l-49.1 0L186.8 83.5C197.2 34.8 240.2 0 290 0L528 0c61.9 0 112 50.1 112 112c0 44.8-26.3 83.5-64.3 101.4C596.1 243.9 608 280.5 608 320l0 128c0 35.3-28.7 64-64 64l-75.3 0c14.8-13 26.5-29.4 34-48l41.3 0c8.8 0 16-7.2 16-16l0-128c0-79.5-64.5-144-144-144c-8.8 0-16 7.2-16 16l0 97c-5.2-.7-10.6-1-16-1c-11 0-21.8 1.4-32 4l0-100c0-35.3 28.7-64 64-64c47.9 0 91.8 17.6 125.4 46.6c28.9-6.1 50.6-31.9 50.6-62.6c0-35.3-28.7-64-64-64L290 48zM150.1 256l49.1 0L171.7 385.1c29.8 5.5 52.3 31.6 52.3 62.9c0 35.3-28.7 64-64 64L32 512c-17.7 0-32-14.3-32-32c0-53 43-96 96-96l26.9 0 27.2-128zM432 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm-144 0a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM176 448c0-8.8-7.2-16-16-16l-64 0c-20.9 0-38.7 13.4-45.3 32L160 464c8.8 0 16-7.2 16-16zm208-48a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"]},E4={prefix:"far",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M385.1 419.1L92.9 126.9C64.8 162.3 48 207.2 48 256c0 114.9 93.1 208 208 208c48.8 0 93.7-16.8 129.1-44.9zm33.9-33.9C447.2 349.7 464 304.8 464 256c0-114.9-93.1-208-208-208c-48.8 0-93.7 16.8-129.1 44.9L419.1 385.1zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},Gz=E4,T4={prefix:"far",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"]},Kz=T4,P4={prefix:"far",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M432 256a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-160 0a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zM64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96z"]},Xz=P4,Jz={prefix:"far",iconName:"car-wash",icon:[448,512,[],"f5e6","M224 128c26.5 0 48-16 48-48c0-22.2-23-52-37.2-68.2c-5.8-6.7-15.9-6.7-21.7 0C199 28 176 57.8 176 80c0 26.5 21.5 48 48 48zm-70.2 80l140.3 0c10.1 0 19.2 6.4 22.6 15.9L333.9 272l-219.9 0 17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zM57.4 287.9c-.2 .5-.3 .9-.5 1.4C32.2 306.7 16 335.5 16 368l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 320 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 0-32 0-16 0-32c0-32.5-16.2-61.3-40.9-78.6c-.1-.5-.3-.9-.5-1.4L362 207.8c-10.2-28.7-37.4-47.8-67.8-47.8l-140.3 0c-30.4 0-57.6 19.1-67.8 47.8L57.4 287.9zM384 368l0 32L64 400l0-32c0-26.5 21.5-48 48-48l224 0c26.5 0 48 21.5 48 48zM128 384a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm216-24a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM112 80c0-22.2-23-52-37.2-68.2C69 5.1 59 5.1 53.2 11.8C39 28 16 57.8 16 80c0 26.5 21.5 48 48 48s48-16 48-48zm272 48c26.5 0 48-16 48-48c0-22.2-23-52-37.2-68.2c-5.8-6.7-15.9-6.7-21.7 0C359 28 336 57.8 336 80c0 26.5 21.5 48 48 48z"]},Qz={prefix:"far",iconName:"car-mirrors",icon:[576,512,[],"e343","M197.4 80c-17 0-32.1 10.7-37.8 26.8L135.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L197.4 80zM44.8 224L40 224c-13.3 0-24-10.7-24-24s10.7-24 24-24l44.6 0 29.8-85.1C126.7 55.6 160 32 197.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9L491.4 176l44.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-4.8 0c8.2 14.1 12.8 30.5 12.8 48l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L80 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-17.5 4.7-33.9 12.8-48zm83.2 0c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48l-320 0zm-16 64a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm320-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Tm={prefix:"far",iconName:"mobile",icon:[384,512,[128241,"mobile-android","mobile-phone"],"f3ce","M80 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l224 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L80 48zM16 64C16 28.7 44.7 0 80 0L304 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L80 512c-35.3 0-64-28.7-64-64L16 64zM160 400l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},Zz=Tm,eV=Tm,tV={prefix:"far",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},nV={prefix:"far",iconName:"user-check",icon:[640,512,[],"f4fc","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM625 177c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L625 177z"]},rV={prefix:"far",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 280c-13.3 0-24-10.7-24-24z"]},aV={prefix:"far",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"]},oV={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},iV={prefix:"far",iconName:"timer",icon:[512,512,[],"e29e","M232 24c0-13.3 10.7-24 24-24C397.4 0 512 114.6 512 256s-114.6 256-256 256S0 397.4 0 256c0-37.9 8.2-73.8 23-106.1c6-13.2 13.1-25.8 21.2-37.6l.1-.2C53.4 98.7 63.6 86.3 75 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9c-9.2 9.2-17.6 19.3-25 30.1l-.1 .2c-21.2 31.2-34.2 68.5-35.7 108.7c-.1 2.7-.2 5.4-.2 8.1c0 114.9 93.1 208 208 208s208-93.1 208-208c0-106.8-80.4-194.7-184-206.6l0 54.6c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80zM159 159c9.4-9.4 24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-80-80c-9.4-9.4-9.4-24.6 0-33.9z"]},A4={prefix:"far",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M127.7 106.8L103.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L165.4 80c-17 0-32.1 10.7-37.8 26.8zm-79.6 82L82.3 90.9C94.7 55.6 128 32 165.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9l34.3 97.9C492.6 205.4 512 236.4 512 272l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L48 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-35.6 19.3-66.6 48.1-83.2zM416 224L96 224c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48zM112 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm256 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},sV=A4,I4={prefix:"far",iconName:"arrow-up-z-a",icon:[576,512,["sort-alpha-up-alt"],"f882","M352 32l128 0c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 176l74.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-128 0c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 80 352 80c-13.3 0-24-10.7-24-24s10.7-24 24-24zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55L184 456c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-342.1L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM416 272c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5l-85.2 0-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160c4.1-8.1 12.4-13.3 21.5-13.3zM394.8 392l42.3 0L416 349.7 394.8 392z"]},lV=I4,M4={prefix:"far",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 13.3-10.7 24-24 24L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l368 0c13.3 0 24 10.7 24 24z"]},cV=M4,uV={prefix:"far",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zM329 297L217 409c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},N4={prefix:"far",iconName:"layer-plus",icon:[576,512,["layer-group-plus"],"f5ff","M464 4c-11 0-20 9-20 20l0 36-36 0c-11 0-20 9-20 20s9 20 20 20l36 0 0 36c0 11 9 20 20 20s20-9 20-20l0-36 36 0c11 0 20-9 20-20s-9-20-20-20l-36 0 0-36c0-11-9-20-20-20zM288 128c-8.5 0-17 1.7-24.8 5.1L53.9 222.8C40.6 228.5 32 241.5 32 256s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2L312.8 133.1c-7.8-3.4-16.3-5.1-24.8-5.1zm-5.9 49.2c1.9-.8 3.9-1.2 5.9-1.2s4 .4 5.9 1.2L477.7 256 293.9 334.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 256l183.8-78.8zM85.1 337.4L53.9 350.8C40.6 356.5 32 369.5 32 384s8.6 27.5 21.9 33.2l209.3 89.7c7.8 3.4 16.3 5.1 24.8 5.1s17-1.7 24.8-5.1l209.3-89.7c13.3-5.7 21.9-18.8 21.9-33.2s-8.6-27.5-21.9-33.2l-31.2-13.4L430 363.5 477.7 384 293.9 462.8c-1.9 .8-3.9 1.2-5.9 1.2s-4-.4-5.9-1.2L98.3 384 146 363.5 85.1 337.4z"]},dV=N4;const fV=Object.freeze(Object.defineProperty({__proto__:null,faAdd:N$,faAngleDown:Y$,faArrowAltCircleRight:Q$,faArrowDown:S$,faArrowDown19:xm,faArrowDownAZ:_m,faArrowDownToLine:k4,faArrowDownZA:Cm,faArrowRightRotate:P$,faArrowRotateForward:A$,faArrowRotateRight:pu,faArrowToBottom:Bz,faArrowToTop:L$,faArrowUp:yz,faArrowUp91:l4,faArrowUpAZ:i4,faArrowUpArrowDown:Qb,faArrowUpToLine:c4,faArrowUpZA:I4,faAutomobile:sV,faBadgeCheck:G$,faBan:E4,faBars:r4,faBell:tV,faBuilding:kz,faCalendar:hz,faCalendarCheck:uV,faCalendarCircleExclamation:jz,faCalendarClock:Zb,faCalendarEdit:vz,faCalendarExclamation:x$,faCalendarPen:v4,faCalendarTime:d$,faCancel:Gz,faCar:A4,faCarMirrors:Qz,faCarWash:Jz,faCars:bz,faChargingStation:pz,faCheck:mz,faCheckCircle:tz,faCheckDouble:O$,faChevronDoubleDown:Rz,faChevronDoubleUp:b$,faChevronDown:K$,faChevronLeft:q$,faChevronRight:Dz,faChevronUp:Hz,faChevronsDown:_4,faChevronsUp:n4,faCircleCheck:p4,faCircleExclamation:y4,faCircleInfo:t4,faCircleQuestion:g4,faCircleRight:d4,faClipboard:Nz,faClipboardCheck:Uz,faClock:C4,faClockFour:Vz,faClose:rz,faCode:xz,faComment:Oz,faCopy:M$,faDriversLicense:X$,faEllipsis:P4,faEllipsisH:Xz,faEnvelope:aV,faEur:Pz,faEuro:Az,faEuroSign:Em,faExclamationCircle:Sz,faExclamationTriangle:z$,faFilter:oV,faFolderArrowDown:o4,faFolderDownload:E$,faFolderPlus:R$,faFolderTree:g$,faGasPump:Tz,faGripDotsVertical:w$,faHome:uz,faHomeAlt:dz,faHomeLgAlt:fz,faHouse:mu,faHyphen:rV,faIdCard:u4,faIdCardAlt:ez,faIdCardClip:f4,faInfoCircle:m$,faKey:qz,faLayerGroup:f$,faLayerGroupPlus:dV,faLayerPlus:N4,faLeftFromBracket:Lz,faLocationCheck:w4,faLocationDot:a4,faLocationExclamation:S4,faLock:$$,faLockOpen:nz,faMagnifyingGlass:T4,faMapMarkerAlt:_$,faMapMarkerCheck:Mz,faMapMarkerExclamation:zz,faMinus:M4,faMobile:Tm,faMobileAndroid:Zz,faMobilePhone:eV,faMultiply:az,faNavicon:k$,faPaperPlane:$z,faPaperclip:gz,faPen:Z$,faPencil:b4,faPencilAlt:Ez,faPhone:J$,faPlus:s4,faQuestionCircle:wz,faRedo:I$,faRemove:oz,faRightToBracket:x4,faRoadCircleCheck:C$,faSearch:Kz,faSensorAlert:sz,faSensorTriangleExclamation:m4,faSignInAlt:Fz,faSliders:h4,faSlidersH:cz,faSortAlphaAsc:h$,faSortAlphaDesc:j$,faSortAlphaDown:v$,faSortAlphaDownAlt:H$,faSortAlphaUp:T$,faSortAlphaUpAlt:lV,faSortNumericAsc:U$,faSortNumericDown:W$,faSortNumericUpAlt:B$,faSortUpDown:u$,faStar:F$,faStarHalfAlt:p$,faStarHalfStroke:e4,faStopwatch:y$,faSubtract:cV,faThumbsDown:Iz,faThumbsUp:_z,faTimer:iV,faTimes:iz,faTrash:Wz,faTriangleExclamation:Sm,faUser:lz,faUserCheck:nV,faUserMinus:D$,faUserPlus:Cz,faVacuum:Yz,faWarning:V$,faXmark:Us},Symbol.toStringTag,{value:"Module"}));var O4={prefix:"fas",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM214.6 169.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 269.3 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-178.7 73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128z"]},pV=O4,mV={prefix:"fas",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},hV={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"]},vV={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},gV={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},yV={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},bV={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},wV={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},B4={prefix:"fas",iconName:"dash",icon:[512,512,["minus-large"],"e404","M0 256c0-17.7 14.3-32 32-32l448 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},kV=B4,_V={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},SV={prefix:"fas",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},CV={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},xV={prefix:"fas",iconName:"horizontal-rule",icon:[640,512,[8213],"f86c","M0 256c0-17.7 14.3-32 32-32l576 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},EV={prefix:"fas",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},TV={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]},L4={prefix:"fas",iconName:"mobile-notch",icon:[384,512,["mobile-iphone"],"e1ee","M128 64l0 16c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-16 32 0c8.8 0 16 7.2 16 16l0 352c0 8.8-7.2 16-16 16L96 448c-8.8 0-16-7.2-16-16L80 80c0-8.8 7.2-16 16-16l32 0zM96 0C51.8 0 16 35.8 16 80l0 352c0 44.2 35.8 80 80 80l192 0c44.2 0 80-35.8 80-80l0-352c0-44.2-35.8-80-80-80L96 0zm32 400c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-8.8 0-16 7.2-16 16z"]},PV=L4,D4={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},AV=D4,IV={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},MV={prefix:"fas",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l16 0 0 34.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6L256 64l16 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L224 0 176 0zm72 192l0 128c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-128c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},R4={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},NV=R4,OV={prefix:"fas",iconName:"user",icon:[448,512,[62144,128100],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},Ws={prefix:"fas",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},BV=Ws,LV=Ws,DV=Ws,RV=Ws;const $V=Object.freeze(Object.defineProperty({__proto__:null,faArrowToTop:pV,faArrowUpToLine:O4,faBell:mV,faBug:hV,faCaretDown:vV,faCaretLeft:gV,faCaretRight:yV,faCaretUp:bV,faCheck:wV,faClose:BV,faDash:B4,faDownload:_V,faEnvelope:SV,faEye:CV,faHorizontalRule:xV,faHyphen:EV,faKey:TV,faMinusLarge:kV,faMobileIphone:PV,faMobileNotch:L4,faMultiply:LV,faPencil:D4,faPencilAlt:AV,faRemove:DV,faStar:IV,faStopwatch:MV,faTimes:RV,faTrashAlt:NV,faTrashCan:R4,faUser:OV,faXmark:Ws},Symbol.toStringTag,{value:"Module"}));var bn={far:{},fas:{}},$4=[];function z4(e){Object.keys(e).forEach(function(t){if(t!=="prefix"){var n=e[t],a=n.icon[2];a.forEach(function(o){typeof o=="string"&&(bn[n.prefix][o]=n)}),bn[n.prefix][n.iconName]=n,$4.push(n)}})}z4(fV);z4($V);const Le=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rt=globalThis,so="9.43.0";function Co(){return hu(rt),rt}function hu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||so,t[so]=t[so]||{}}function qs(e,t,n=rt){const a=n.__SENTRY__=n.__SENTRY__||{},o=a[so]=a[so]||{};return o[e]||(o[e]=t())}const zV=["debug","info","warn","error","log","assert","trace"],VV="Sentry Logger ",Sc={};function ia(e){if(!("console"in rt))return e();const t=rt.console,n={},a=Object.keys(Sc);a.forEach(o=>{const i=Sc[o];n[o]=t[o],t[o]=i});try{return e()}finally{a.forEach(o=>{t[o]=n[o]})}}function FV(){Am().enabled=!0}function jV(){Am().enabled=!1}function V4(){return Am().enabled}function HV(...e){Pm("log",...e)}function UV(...e){Pm("warn",...e)}function WV(...e){Pm("error",...e)}function Pm(e,...t){Le&&V4()&&ia(()=>{rt.console[e](`${VV}[${e}]:`,...t)})}function Am(){return Le?qs("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ke={enable:FV,disable:jV,isEnabled:V4,log:HV,warn:UV,error:WV},F4=50,yo="?",O0=/\(error: (.*)\)/,B0=/captureMessage|captureException/;function j4(...e){const t=e.sort((n,a)=>n[0]-a[0]).map(n=>n[1]);return(n,a=0,o=0)=>{const i=[],s=n.split(`
|
|
649
|
+
`);for(let l=a;l<s.length;l++){const c=s[l];if(c.length>1024)continue;const u=O0.test(c)?c.replace(O0,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const f=d(u);if(f){i.push(f);break}}if(i.length>=F4+o)break}}return YV(i.slice(o))}}function qV(e){return Array.isArray(e)?j4(...e):e}function YV(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Cl(t).function||"")&&t.pop(),t.reverse(),B0.test(Cl(t).function||"")&&(t.pop(),B0.test(Cl(t).function||"")&&t.pop()),t.slice(0,F4).map(n=>({...n,filename:n.filename||Cl(t).filename,function:n.function||yo}))}function Cl(e){return e[e.length-1]||{}}const kd="<anonymous>";function Qr(e){try{return!e||typeof e!="function"?kd:e.name||kd}catch{return kd}}function L0(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(a=>{a.stacktrace.frames&&n.push(...a.stacktrace.frames)}),n}catch{return}}}const Yl={},D0={};function Ra(e,t){Yl[e]=Yl[e]||[],Yl[e].push(t)}function $a(e,t){if(!D0[e]){D0[e]=!0;try{t()}catch(n){Le&&ke.error(`Error while instrumenting ${e}`,n)}}}function Vn(e,t){const n=e&&Yl[e];if(n)for(const a of n)try{a(t)}catch(o){Le&&ke.error(`Error while triggering instrumentation handler.
|
|
650
650
|
Type: ${e}
|
|
651
651
|
Name: ${Qr(a)}
|
|
652
|
-
Error:`,o)}}let _d=null;function H4(e){const t="error";Ra(t,e),$a(t,qV)}function qV(){_d=rt.onerror,rt.onerror=function(e,t,n,a,o){return Vn("error",{column:a,error:o,line:n,msg:e,url:t}),_d?_d.apply(this,arguments):!1},rt.onerror.__SENTRY_INSTRUMENTED__=!0}let Sd=null;function U4(e){const t="unhandledrejection";Ra(t,e),$a(t,YV)}function YV(){Sd=rt.onunhandledrejection,rt.onunhandledrejection=function(e){return Vn("unhandledrejection",e),Sd?Sd.apply(this,arguments):!0},rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const W4=Object.prototype.toString;function Im(e){switch(W4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Zr(e,Error)}}function Ni(e,t){return W4.call(e)===`[object ${t}]`}function q4(e){return Ni(e,"ErrorEvent")}function R0(e){return Ni(e,"DOMError")}function GV(e){return Ni(e,"DOMException")}function Ur(e){return Ni(e,"String")}function Mm(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Cs(e){return e===null||Mm(e)||typeof e!="object"&&typeof e!="function"}function xs(e){return Ni(e,"Object")}function vu(e){return typeof Event<"u"&&Zr(e,Event)}function KV(e){return typeof Element<"u"&&Zr(e,Element)}function XV(e){return Ni(e,"RegExp")}function Ys(e){return!!(e?.then&&typeof e.then=="function")}function JV(e){return xs(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zr(e,t){try{return e instanceof t}catch{return!1}}function Y4(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function G4(e){return typeof Request<"u"&&Zr(e,Request)}const Nm=rt,QV=80;function Hn(e,t={}){if(!e)return"<unknown>";try{let n=e;const a=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||QV;for(;n&&i++<a&&(u=ZV(n,d),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function ZV(e,t){const n=e,a=[];if(!n?.tagName)return"";if(Nm.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}a.push(n.tagName.toLowerCase());const o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{a.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&a.push(`#${n.id}`);const s=n.className;if(s&&Ur(s)){const l=s.split(/\s+/);for(const c of l)a.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const l=n.getAttribute(s);l&&a.push(`[${s}="${l}"]`)}return a.join("")}function Oi(){try{return Nm.document.location.href}catch{return""}}function K4(e){if(!Nm.HTMLElement)return null;let t=e;const n=5;for(let a=0;a<n;a++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Cc(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function $0(e,t){if(!Array.isArray(e))return"";const n=[];for(let a=0;a<e.length;a++){const o=e[a];try{Y4(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function eF(e,t,n=!1){return Ur(e)?XV(t)?t.test(e):Ur(t)?n?e===t:e.includes(t):!1:!1}function Wr(e,t=[],n=!1){return t.some(a=>eF(e,a,n))}function wn(e,t,n){if(!(t in e))return;const a=e[t];if(typeof a!="function")return;const o=n(a);typeof o=="function"&&X4(o,a);try{e[t]=o}catch{Le&&ke.log(`Failed to replace method "${t}" in object`,e)}}function Bn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Le&&ke.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function X4(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Bn(e,"__sentry_original__",t)}catch{}}function Om(e){return e.__sentry_original__}function J4(e){if(Im(e))return{message:e.message,name:e.name,stack:e.stack,...V0(e)};if(vu(e)){const t={type:e.type,target:z0(e.target),currentTarget:z0(e.currentTarget),...V0(e)};return typeof CustomEvent<"u"&&Zr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function z0(e){try{return KV(e)?Hn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function V0(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function tF(e,t=40){const n=Object.keys(J4(e));n.sort();const a=n[0];if(!a)return"[object has no keys]";if(a.length>=t)return Cc(a,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Cc(i,t)}return""}function nF(){const e=rt;return e.crypto||e.msCrypto}function Nn(e=nF()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Q4(e){return e.exception?.values?.[0]}function Ka(e){const{message:t,event_id:n}=e;if(t)return t;const a=Q4(e);return a?a.type&&a.value?`${a.type}: ${a.value}`:a.type||a.value||n||"<unknown>":n||"<unknown>"}function Mf(e,t,n){const a=e.exception=e.exception||{},o=a.values=a.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function bi(e,t){const n=Q4(e);if(!n)return;const a={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...a,...o,...t},t&&"data"in t){const i={...o?.data,...t.data};n.mechanism.data=i}}function F0(e){if(rF(e))return!0;try{Bn(e,"__sentry_captured__",!0)}catch{}return!1}function rF(e){try{return e.__sentry_captured__}catch{}}const Z4=1e3;function xo(){return Date.now()/Z4}function aF(){const{performance:e}=rt;if(!e?.now||!e.timeOrigin)return xo;const t=e.timeOrigin;return()=>(t+e.now())/Z4}let j0;function Ht(){return(j0??(j0=aF()))()}let Cd;function oF(){const{performance:e}=rt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),a=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-a):t,i=o<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-a):t,u=c<t;return i||u?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[a,"dateNow"]}function hn(){return Cd||(Cd=oF()),Cd[0]}function iF(e){const t=Ht(),n={sid:Nn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>lF(n)};return e&&wi(n,e),n}function wi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ht(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Nn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function sF(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wi(e,n)}function lF(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Gs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const a={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=Gs(a[o],t[o],n-1));return a}function Ea(){return Nn()}function Ks(){return Nn().substring(16)}const Nf="_sentrySpan";function ki(e,t){t?Bn(e,Nf,t):delete e[Nf]}function xc(e){return e[Nf]}const cF=100;class Br{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ea(),sampleRand:Math.random()}}clone(){const t=new Br;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ki(t,xc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,a=n instanceof Br?n.getScopeData():xs(n)?t:void 0,{tags:o,extra:i,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:d}=a||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ki(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const a=typeof n=="number"?n:cF;if(a<=0)return this;const o={timestamp:xo(),...t,message:t.message?Cc(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>a&&(this._breadcrumbs=this._breadcrumbs.slice(-a),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:xc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Gs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const a=n?.event_id||Nn();if(!this._client)return Le&&ke.warn("No client configured on scope - will not capture exception!"),a;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:a},this),a}captureMessage(t,n,a){const o=a?.event_id||Nn();if(!this._client)return Le&&ke.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...a,event_id:o},this),o}captureEvent(t,n){const a=n?.event_id||Nn();return this._client?(this._client.captureEvent(t,{...n,event_id:a},this),a):(Le&&ke.warn("No client configured on scope - will not capture event!"),a)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function uF(){return qs("defaultCurrentScope",()=>new Br)}function dF(){return qs("defaultIsolationScope",()=>new Br)}class fF{constructor(t,n){let a;t?a=t:a=new Br;let o;n?o=n:o=new Br,this._stack=[{scope:a}],this._isolationScope=o}withScope(t){const n=this._pushScope();let a;try{a=t(n)}catch(o){throw this._popScope(),o}return Ys(a)?a.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),a)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function _i(){const e=Co(),t=hu(e);return t.stack=t.stack||new fF(uF(),dF())}function pF(e){return _i().withScope(e)}function mF(e,t){const n=_i();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function H0(e){return _i().withScope(()=>e(_i().getIsolationScope()))}function hF(){return{withIsolationScope:H0,withScope:pF,withSetScope:mF,withSetIsolationScope:(e,t)=>H0(t),getCurrentScope:()=>_i().getScope(),getIsolationScope:()=>_i().getIsolationScope()}}function Bi(e){const t=hu(e);return t.acs?t.acs:hF()}function lt(){const e=Co();return Bi(e).getCurrentScope()}function Dr(){const e=Co();return Bi(e).getIsolationScope()}function vF(){return qs("globalScope",()=>new Br)}function gu(...e){const t=Co(),n=Bi(t);if(e.length===2){const[a,o]=e;return a?n.withSetScope(a,o):n.withScope(o)}return n.withScope(e[0])}function Qe(){return lt().getClient()}function gF(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:a,propagationSpanId:o}=t,i={trace_id:n,span_id:o||Ks()};return a&&(i.parent_span_id=a),i}const kn="sentry.source",Bm="sentry.sample_rate",e3="sentry.previous_trace_sample_rate",ea="sentry.op",xt="sentry.origin",Ec="sentry.idle_span_finish_reason",Xs="sentry.measurement_unit",Js="sentry.measurement_value",U0="sentry.custom_span_name",Lm="sentry.profile_id",Li="sentry.exclusive_time",yF="sentry.link.type",bF=0,t3=1,Wt=2;function wF(e){if(e<400&&e>=100)return{code:t3};if(e>=400&&e<500)switch(e){case 401:return{code:Wt,message:"unauthenticated"};case 403:return{code:Wt,message:"permission_denied"};case 404:return{code:Wt,message:"not_found"};case 409:return{code:Wt,message:"already_exists"};case 413:return{code:Wt,message:"failed_precondition"};case 429:return{code:Wt,message:"resource_exhausted"};case 499:return{code:Wt,message:"cancelled"};default:return{code:Wt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Wt,message:"unimplemented"};case 503:return{code:Wt,message:"unavailable"};case 504:return{code:Wt,message:"deadline_exceeded"};default:return{code:Wt,message:"internal_error"}}return{code:Wt,message:"unknown_error"}}function n3(e,t){e.setAttribute("http.response.status_code",t);const n=wF(t);n.message!=="unknown_error"&&e.setStatus(n)}const r3="_sentryScope",a3="_sentryIsolationScope";function kF(e,t,n){e&&(Bn(e,a3,n),Bn(e,r3,t))}function Tc(e){return{scope:e[r3],isolationScope:e[a3]}}const Dm="sentry-",_F=/^sentry-/,SF=8192;function o3(e){const t=xF(e);if(!t)return;const n=Object.entries(t).reduce((a,[o,i])=>{if(o.match(_F)){const s=o.slice(Dm.length);a[s]=i}return a},{});if(Object.keys(n).length>0)return n}function CF(e){if(!e)return;const t=Object.entries(e).reduce((n,[a,o])=>(o&&(n[`${Dm}${a}`]=o),n),{});return EF(t)}function xF(e){if(!(!e||!Ur(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const a=W0(n);return Object.entries(a).forEach(([o,i])=>{t[o]=i}),t},{}):W0(e)}function W0(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,a])=>(n&&a&&(t[n]=a),t),{})}function EF(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,a],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(a)}`,s=o===0?i:`${t},${i}`;return s.length>SF?(Le&&ke.warn(`Not adding key: ${n} with val: ${a} to baggage header due to exceeding baggage size limits.`),t):s},"")}function bo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const i3=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function TF(e){if(!e)return;const t=e.match(i3);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function PF(e,t){const n=TF(e),a=o3(t);if(!n?.traceId)return{traceId:Ea(),sampleRand:Math.random()};const o=AF(n,a);a&&(a.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:l}=n;return{traceId:i,parentSpanId:s,sampled:l,dsc:a||{},sampleRand:o}}function s3(e=Ea(),t=Ks(),n){let a="";return n!==void 0&&(a=n?"-1":"-0"),`${e}-${t}${a}`}function AF(e,t){const n=bo(t?.sample_rand);if(n!==void 0)return n;const a=bo(t?.sample_rate);return a&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*a:a+Math.random()*(1-a):Math.random()}const l3=0,Rm=1;let q0=!1;function IF(e){const{spanId:t,traceId:n}=e.spanContext(),{data:a,op:o,parent_span_id:i,status:s,origin:l,links:c}=tt(e);return{parent_span_id:i,span_id:t,trace_id:n,data:a,op:o,status:s,origin:l,links:c}}function MF(e){const{spanId:t,traceId:n,isRemote:a}=e.spanContext(),o=a?t:tt(e).parent_span_id,i=Tc(e).scope,s=a?i?.getPropagationContext().propagationSpanId||Ks():t;return{parent_span_id:o,span_id:s,trace_id:n}}function NF(e){const{traceId:t,spanId:n}=e.spanContext(),a=Eo(e);return s3(t,n,a)}function c3(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:a,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:a===Rm,attributes:i,...o}))}function lo(e){return typeof e=="number"?Y0(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Y0(e.getTime()):Ht()}function Y0(e){return e>9999999999?e/1e3:e}function tt(e){if(BF(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(OF(e)){const{attributes:a,startTime:o,name:i,endTime:s,status:l,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:a,description:i,parent_span_id:u,start_timestamp:lo(o),timestamp:lo(s)||void 0,status:u3(l),op:a[ea],origin:a[xt],links:c3(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function OF(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function BF(e){return typeof e.getSpanJSON=="function"}function Eo(e){const{traceFlags:t}=e.spanContext();return t===Rm}function u3(e){if(!(!e||e.code===bF))return e.code===t3?"ok":e.message||"unknown_error"}const co="_sentryChildSpans",Of="_sentryRootSpan";function d3(e,t){const n=e[Of]||e;Bn(t,Of,n),e[co]?e[co].add(t):Bn(e,co,new Set([t]))}function LF(e,t){e[co]&&e[co].delete(t)}function Gl(e){const t=new Set;function n(a){if(!t.has(a)&&Eo(a)){t.add(a);const o=a[co]?Array.from(a[co]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function en(e){return e[Of]||e}function tn(){const e=Co(),t=Bi(e);return t.getActiveSpan?t.getActiveSpan():xc(lt())}function Bf(){q0||(ia(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),q0=!0)}let G0=!1;function DF(){if(G0)return;function e(){const t=tn(),n=t&&en(t);if(n){const a="internal_error";Le&&ke.log(`[Tracing] Root span: ${a} -> Global error occurred`),n.setStatus({code:Wt,message:a})}}e.tag="sentry_tracingErrorCallback",G0=!0,H4(e),U4(e)}function ta(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Qe()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const $m="production",RF=/^o(\d+)\./,$F=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zF(e){return e==="http"||e==="https"}function Qs(e,t=!1){const{host:n,path:a,pass:o,port:i,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${a&&`${a}/`}${s}`}function VF(e){const t=$F.exec(e);if(!t){ia(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,a,o="",i="",s="",l=""]=t.slice(1);let c="",u=l;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return f3({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:a})}function f3(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function FF(e){if(!Le)return!0;const{port:t,projectId:n,protocol:a}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ke.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?zF(a)?t&&isNaN(parseInt(t,10))?(ke.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ke.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(ke.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function jF(e){return e.match(RF)?.[1]}function HF(e){const t=typeof e=="string"?VF(e):f3(e);if(!(!t||!FF(t)))return t}const p3="_frozenDsc";function Kl(e,t){Bn(e,p3,t)}function m3(e,t){const n=t.getOptions(),{publicKey:a,host:o}=t.getDsn()||{};let i;n.orgId?i=String(n.orgId):o&&(i=jF(o));const s={environment:n.environment||$m,release:n.release,public_key:a,trace_id:e,org_id:i};return t.emit("createDsc",s),s}function h3(e,t){const n=t.getPropagationContext();return n.dsc||m3(n.traceId,e)}function na(e){const t=Qe();if(!t)return{};const n=en(e),a=tt(n),o=a.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Bm]??o[e3];function l(v){return(typeof s=="number"||typeof s=="string")&&(v.sample_rate=`${s}`),v}const c=n[p3];if(c)return l(c);const u=i?.get("sentry.dsc"),d=u&&o3(u);if(d)return l(d);const f=m3(e.spanContext().traceId,t),p=o[kn],m=a.description;return p!=="url"&&m&&(f.transaction=m),ta()&&(f.sampled=String(Eo(n)),f.sample_rand=i?.get("sentry.sample_rand")??Tc(n).scope?.getPropagationContext().sampleRand.toString()),l(f),t.emit("createDsc",f,n),f}class Ta{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:l3}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,a){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Kn(e,t=100,n=1/0){try{return Lf("",e,t,n)}catch(a){return{ERROR:`**non-serializable** (${a})`}}}function v3(e,t=3,n=100*1024){const a=Kn(e,t);return YF(a)>n?v3(e,t-1,n):a}function Lf(e,t,n=1/0,a=1/0,o=GF()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const l=UF(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return Lf("",m,c-1,a,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=J4(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(f>=a){d[m]="[MaxProperties ~]";break}const v=p[m];d[m]=Lf(m,v,c-1,a,o),f++}return s(t),d}function UF(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Y4(t))return"[VueViewModel]";if(JV(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Qr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=WF(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function WF(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function qF(e){return~-encodeURI(e).split(/%..|./).length}function YF(e){return qF(JSON.stringify(e))}function GF(){const e=new WeakSet;function t(a){return e.has(a)?!0:(e.add(a),!1)}function n(a){e.delete(a)}return[t,n]}function To(e,t=[]){return[e,t]}function KF(e,t){const[n,a]=e;return[n,[...a,t]]}function K0(e,t){const n=e[1];for(const a of n){const o=a[0].type;if(t(a,o))return!0}return!1}function Df(e){const t=hu(rt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function XF(e){const[t,n]=e;let a=JSON.stringify(t);function o(i){typeof a=="string"?a=typeof i=="string"?a+i:[Df(a),i]:a.push(typeof i=="string"?Df(i):i)}for(const i of n){const[s,l]=i;if(o(`
|
|
652
|
+
Error:`,o)}}let _d=null;function H4(e){const t="error";Ra(t,e),$a(t,GV)}function GV(){_d=rt.onerror,rt.onerror=function(e,t,n,a,o){return Vn("error",{column:a,error:o,line:n,msg:e,url:t}),_d?_d.apply(this,arguments):!1},rt.onerror.__SENTRY_INSTRUMENTED__=!0}let Sd=null;function U4(e){const t="unhandledrejection";Ra(t,e),$a(t,KV)}function KV(){Sd=rt.onunhandledrejection,rt.onunhandledrejection=function(e){return Vn("unhandledrejection",e),Sd?Sd.apply(this,arguments):!0},rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const W4=Object.prototype.toString;function Im(e){switch(W4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Zr(e,Error)}}function Ni(e,t){return W4.call(e)===`[object ${t}]`}function q4(e){return Ni(e,"ErrorEvent")}function R0(e){return Ni(e,"DOMError")}function XV(e){return Ni(e,"DOMException")}function Ur(e){return Ni(e,"String")}function Mm(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Cs(e){return e===null||Mm(e)||typeof e!="object"&&typeof e!="function"}function xs(e){return Ni(e,"Object")}function vu(e){return typeof Event<"u"&&Zr(e,Event)}function JV(e){return typeof Element<"u"&&Zr(e,Element)}function QV(e){return Ni(e,"RegExp")}function Ys(e){return!!(e?.then&&typeof e.then=="function")}function ZV(e){return xs(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zr(e,t){try{return e instanceof t}catch{return!1}}function Y4(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function G4(e){return typeof Request<"u"&&Zr(e,Request)}const Nm=rt,eF=80;function Hn(e,t={}){if(!e)return"<unknown>";try{let n=e;const a=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||eF;for(;n&&i++<a&&(u=tF(n,d),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function tF(e,t){const n=e,a=[];if(!n?.tagName)return"";if(Nm.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}a.push(n.tagName.toLowerCase());const o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{a.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&a.push(`#${n.id}`);const s=n.className;if(s&&Ur(s)){const l=s.split(/\s+/);for(const c of l)a.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const l=n.getAttribute(s);l&&a.push(`[${s}="${l}"]`)}return a.join("")}function Oi(){try{return Nm.document.location.href}catch{return""}}function K4(e){if(!Nm.HTMLElement)return null;let t=e;const n=5;for(let a=0;a<n;a++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Cc(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function $0(e,t){if(!Array.isArray(e))return"";const n=[];for(let a=0;a<e.length;a++){const o=e[a];try{Y4(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function nF(e,t,n=!1){return Ur(e)?QV(t)?t.test(e):Ur(t)?n?e===t:e.includes(t):!1:!1}function Wr(e,t=[],n=!1){return t.some(a=>nF(e,a,n))}function wn(e,t,n){if(!(t in e))return;const a=e[t];if(typeof a!="function")return;const o=n(a);typeof o=="function"&&X4(o,a);try{e[t]=o}catch{Le&&ke.log(`Failed to replace method "${t}" in object`,e)}}function Bn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Le&&ke.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function X4(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Bn(e,"__sentry_original__",t)}catch{}}function Om(e){return e.__sentry_original__}function J4(e){if(Im(e))return{message:e.message,name:e.name,stack:e.stack,...V0(e)};if(vu(e)){const t={type:e.type,target:z0(e.target),currentTarget:z0(e.currentTarget),...V0(e)};return typeof CustomEvent<"u"&&Zr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function z0(e){try{return JV(e)?Hn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function V0(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function rF(e,t=40){const n=Object.keys(J4(e));n.sort();const a=n[0];if(!a)return"[object has no keys]";if(a.length>=t)return Cc(a,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Cc(i,t)}return""}function aF(){const e=rt;return e.crypto||e.msCrypto}function Nn(e=aF()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Q4(e){return e.exception?.values?.[0]}function Ka(e){const{message:t,event_id:n}=e;if(t)return t;const a=Q4(e);return a?a.type&&a.value?`${a.type}: ${a.value}`:a.type||a.value||n||"<unknown>":n||"<unknown>"}function Mf(e,t,n){const a=e.exception=e.exception||{},o=a.values=a.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function bi(e,t){const n=Q4(e);if(!n)return;const a={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...a,...o,...t},t&&"data"in t){const i={...o?.data,...t.data};n.mechanism.data=i}}function F0(e){if(oF(e))return!0;try{Bn(e,"__sentry_captured__",!0)}catch{}return!1}function oF(e){try{return e.__sentry_captured__}catch{}}const Z4=1e3;function xo(){return Date.now()/Z4}function iF(){const{performance:e}=rt;if(!e?.now||!e.timeOrigin)return xo;const t=e.timeOrigin;return()=>(t+e.now())/Z4}let j0;function Ht(){return(j0??(j0=iF()))()}let Cd;function sF(){const{performance:e}=rt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),a=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-a):t,i=o<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-a):t,u=c<t;return i||u?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[a,"dateNow"]}function hn(){return Cd||(Cd=sF()),Cd[0]}function lF(e){const t=Ht(),n={sid:Nn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>uF(n)};return e&&wi(n,e),n}function wi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ht(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Nn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function cF(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wi(e,n)}function uF(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Gs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const a={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=Gs(a[o],t[o],n-1));return a}function Ea(){return Nn()}function Ks(){return Nn().substring(16)}const Nf="_sentrySpan";function ki(e,t){t?Bn(e,Nf,t):delete e[Nf]}function xc(e){return e[Nf]}const dF=100;class Br{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ea(),sampleRand:Math.random()}}clone(){const t=new Br;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ki(t,xc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,a=n instanceof Br?n.getScopeData():xs(n)?t:void 0,{tags:o,extra:i,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:d}=a||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ki(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const a=typeof n=="number"?n:dF;if(a<=0)return this;const o={timestamp:xo(),...t,message:t.message?Cc(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>a&&(this._breadcrumbs=this._breadcrumbs.slice(-a),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:xc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Gs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const a=n?.event_id||Nn();if(!this._client)return Le&&ke.warn("No client configured on scope - will not capture exception!"),a;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:a},this),a}captureMessage(t,n,a){const o=a?.event_id||Nn();if(!this._client)return Le&&ke.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...a,event_id:o},this),o}captureEvent(t,n){const a=n?.event_id||Nn();return this._client?(this._client.captureEvent(t,{...n,event_id:a},this),a):(Le&&ke.warn("No client configured on scope - will not capture event!"),a)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function fF(){return qs("defaultCurrentScope",()=>new Br)}function pF(){return qs("defaultIsolationScope",()=>new Br)}class mF{constructor(t,n){let a;t?a=t:a=new Br;let o;n?o=n:o=new Br,this._stack=[{scope:a}],this._isolationScope=o}withScope(t){const n=this._pushScope();let a;try{a=t(n)}catch(o){throw this._popScope(),o}return Ys(a)?a.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),a)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function _i(){const e=Co(),t=hu(e);return t.stack=t.stack||new mF(fF(),pF())}function hF(e){return _i().withScope(e)}function vF(e,t){const n=_i();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function H0(e){return _i().withScope(()=>e(_i().getIsolationScope()))}function gF(){return{withIsolationScope:H0,withScope:hF,withSetScope:vF,withSetIsolationScope:(e,t)=>H0(t),getCurrentScope:()=>_i().getScope(),getIsolationScope:()=>_i().getIsolationScope()}}function Bi(e){const t=hu(e);return t.acs?t.acs:gF()}function lt(){const e=Co();return Bi(e).getCurrentScope()}function Dr(){const e=Co();return Bi(e).getIsolationScope()}function yF(){return qs("globalScope",()=>new Br)}function gu(...e){const t=Co(),n=Bi(t);if(e.length===2){const[a,o]=e;return a?n.withSetScope(a,o):n.withScope(o)}return n.withScope(e[0])}function Qe(){return lt().getClient()}function bF(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:a,propagationSpanId:o}=t,i={trace_id:n,span_id:o||Ks()};return a&&(i.parent_span_id=a),i}const kn="sentry.source",Bm="sentry.sample_rate",e3="sentry.previous_trace_sample_rate",ea="sentry.op",xt="sentry.origin",Ec="sentry.idle_span_finish_reason",Xs="sentry.measurement_unit",Js="sentry.measurement_value",U0="sentry.custom_span_name",Lm="sentry.profile_id",Li="sentry.exclusive_time",wF="sentry.link.type",kF=0,t3=1,Wt=2;function _F(e){if(e<400&&e>=100)return{code:t3};if(e>=400&&e<500)switch(e){case 401:return{code:Wt,message:"unauthenticated"};case 403:return{code:Wt,message:"permission_denied"};case 404:return{code:Wt,message:"not_found"};case 409:return{code:Wt,message:"already_exists"};case 413:return{code:Wt,message:"failed_precondition"};case 429:return{code:Wt,message:"resource_exhausted"};case 499:return{code:Wt,message:"cancelled"};default:return{code:Wt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Wt,message:"unimplemented"};case 503:return{code:Wt,message:"unavailable"};case 504:return{code:Wt,message:"deadline_exceeded"};default:return{code:Wt,message:"internal_error"}}return{code:Wt,message:"unknown_error"}}function n3(e,t){e.setAttribute("http.response.status_code",t);const n=_F(t);n.message!=="unknown_error"&&e.setStatus(n)}const r3="_sentryScope",a3="_sentryIsolationScope";function SF(e,t,n){e&&(Bn(e,a3,n),Bn(e,r3,t))}function Tc(e){return{scope:e[r3],isolationScope:e[a3]}}const Dm="sentry-",CF=/^sentry-/,xF=8192;function o3(e){const t=TF(e);if(!t)return;const n=Object.entries(t).reduce((a,[o,i])=>{if(o.match(CF)){const s=o.slice(Dm.length);a[s]=i}return a},{});if(Object.keys(n).length>0)return n}function EF(e){if(!e)return;const t=Object.entries(e).reduce((n,[a,o])=>(o&&(n[`${Dm}${a}`]=o),n),{});return PF(t)}function TF(e){if(!(!e||!Ur(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const a=W0(n);return Object.entries(a).forEach(([o,i])=>{t[o]=i}),t},{}):W0(e)}function W0(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,a])=>(n&&a&&(t[n]=a),t),{})}function PF(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,a],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(a)}`,s=o===0?i:`${t},${i}`;return s.length>xF?(Le&&ke.warn(`Not adding key: ${n} with val: ${a} to baggage header due to exceeding baggage size limits.`),t):s},"")}function bo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const i3=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function AF(e){if(!e)return;const t=e.match(i3);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function IF(e,t){const n=AF(e),a=o3(t);if(!n?.traceId)return{traceId:Ea(),sampleRand:Math.random()};const o=MF(n,a);a&&(a.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:l}=n;return{traceId:i,parentSpanId:s,sampled:l,dsc:a||{},sampleRand:o}}function s3(e=Ea(),t=Ks(),n){let a="";return n!==void 0&&(a=n?"-1":"-0"),`${e}-${t}${a}`}function MF(e,t){const n=bo(t?.sample_rand);if(n!==void 0)return n;const a=bo(t?.sample_rate);return a&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*a:a+Math.random()*(1-a):Math.random()}const l3=0,Rm=1;let q0=!1;function NF(e){const{spanId:t,traceId:n}=e.spanContext(),{data:a,op:o,parent_span_id:i,status:s,origin:l,links:c}=tt(e);return{parent_span_id:i,span_id:t,trace_id:n,data:a,op:o,status:s,origin:l,links:c}}function OF(e){const{spanId:t,traceId:n,isRemote:a}=e.spanContext(),o=a?t:tt(e).parent_span_id,i=Tc(e).scope,s=a?i?.getPropagationContext().propagationSpanId||Ks():t;return{parent_span_id:o,span_id:s,trace_id:n}}function BF(e){const{traceId:t,spanId:n}=e.spanContext(),a=Eo(e);return s3(t,n,a)}function c3(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:a,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:a===Rm,attributes:i,...o}))}function lo(e){return typeof e=="number"?Y0(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Y0(e.getTime()):Ht()}function Y0(e){return e>9999999999?e/1e3:e}function tt(e){if(DF(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(LF(e)){const{attributes:a,startTime:o,name:i,endTime:s,status:l,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:a,description:i,parent_span_id:u,start_timestamp:lo(o),timestamp:lo(s)||void 0,status:u3(l),op:a[ea],origin:a[xt],links:c3(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function LF(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function DF(e){return typeof e.getSpanJSON=="function"}function Eo(e){const{traceFlags:t}=e.spanContext();return t===Rm}function u3(e){if(!(!e||e.code===kF))return e.code===t3?"ok":e.message||"unknown_error"}const co="_sentryChildSpans",Of="_sentryRootSpan";function d3(e,t){const n=e[Of]||e;Bn(t,Of,n),e[co]?e[co].add(t):Bn(e,co,new Set([t]))}function RF(e,t){e[co]&&e[co].delete(t)}function Gl(e){const t=new Set;function n(a){if(!t.has(a)&&Eo(a)){t.add(a);const o=a[co]?Array.from(a[co]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function en(e){return e[Of]||e}function tn(){const e=Co(),t=Bi(e);return t.getActiveSpan?t.getActiveSpan():xc(lt())}function Bf(){q0||(ia(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),q0=!0)}let G0=!1;function $F(){if(G0)return;function e(){const t=tn(),n=t&&en(t);if(n){const a="internal_error";Le&&ke.log(`[Tracing] Root span: ${a} -> Global error occurred`),n.setStatus({code:Wt,message:a})}}e.tag="sentry_tracingErrorCallback",G0=!0,H4(e),U4(e)}function ta(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Qe()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const $m="production",zF=/^o(\d+)\./,VF=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function FF(e){return e==="http"||e==="https"}function Qs(e,t=!1){const{host:n,path:a,pass:o,port:i,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${a&&`${a}/`}${s}`}function jF(e){const t=VF.exec(e);if(!t){ia(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,a,o="",i="",s="",l=""]=t.slice(1);let c="",u=l;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return f3({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:a})}function f3(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function HF(e){if(!Le)return!0;const{port:t,projectId:n,protocol:a}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ke.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?FF(a)?t&&isNaN(parseInt(t,10))?(ke.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ke.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(ke.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function UF(e){return e.match(zF)?.[1]}function WF(e){const t=typeof e=="string"?jF(e):f3(e);if(!(!t||!HF(t)))return t}const p3="_frozenDsc";function Kl(e,t){Bn(e,p3,t)}function m3(e,t){const n=t.getOptions(),{publicKey:a,host:o}=t.getDsn()||{};let i;n.orgId?i=String(n.orgId):o&&(i=UF(o));const s={environment:n.environment||$m,release:n.release,public_key:a,trace_id:e,org_id:i};return t.emit("createDsc",s),s}function h3(e,t){const n=t.getPropagationContext();return n.dsc||m3(n.traceId,e)}function na(e){const t=Qe();if(!t)return{};const n=en(e),a=tt(n),o=a.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Bm]??o[e3];function l(v){return(typeof s=="number"||typeof s=="string")&&(v.sample_rate=`${s}`),v}const c=n[p3];if(c)return l(c);const u=i?.get("sentry.dsc"),d=u&&o3(u);if(d)return l(d);const f=m3(e.spanContext().traceId,t),p=o[kn],m=a.description;return p!=="url"&&m&&(f.transaction=m),ta()&&(f.sampled=String(Eo(n)),f.sample_rand=i?.get("sentry.sample_rand")??Tc(n).scope?.getPropagationContext().sampleRand.toString()),l(f),t.emit("createDsc",f,n),f}class Ta{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:l3}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,a){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Kn(e,t=100,n=1/0){try{return Lf("",e,t,n)}catch(a){return{ERROR:`**non-serializable** (${a})`}}}function v3(e,t=3,n=100*1024){const a=Kn(e,t);return KF(a)>n?v3(e,t-1,n):a}function Lf(e,t,n=1/0,a=1/0,o=XF()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const l=qF(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return Lf("",m,c-1,a,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=J4(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(f>=a){d[m]="[MaxProperties ~]";break}const v=p[m];d[m]=Lf(m,v,c-1,a,o),f++}return s(t),d}function qF(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Y4(t))return"[VueViewModel]";if(ZV(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Qr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=YF(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function YF(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function GF(e){return~-encodeURI(e).split(/%..|./).length}function KF(e){return GF(JSON.stringify(e))}function XF(){const e=new WeakSet;function t(a){return e.has(a)?!0:(e.add(a),!1)}function n(a){e.delete(a)}return[t,n]}function To(e,t=[]){return[e,t]}function JF(e,t){const[n,a]=e;return[n,[...a,t]]}function K0(e,t){const n=e[1];for(const a of n){const o=a[0].type;if(t(a,o))return!0}return!1}function Df(e){const t=hu(rt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function QF(e){const[t,n]=e;let a=JSON.stringify(t);function o(i){typeof a=="string"?a=typeof i=="string"?a+i:[Df(a),i]:a.push(typeof i=="string"?Df(i):i)}for(const i of n){const[s,l]=i;if(o(`
|
|
653
653
|
${JSON.stringify(s)}
|
|
654
|
-
`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Kn(l))}o(c)}}return typeof a=="string"?a:
|
|
654
|
+
`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Kn(l))}o(c)}}return typeof a=="string"?a:ZF(a)}function ZF(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let a=0;for(const o of e)n.set(o,a),a+=o.length;return n}function ej(e){return[{type:"span"},e]}function tj(e){const t=typeof e.data=="string"?Df(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const nj={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function X0(e){return nj[e]}function zm(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function g3(e,t,n,a){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&a&&{dsn:Qs(a)},...o&&{trace:o}}}function rj(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function aj(e,t,n,a){const o=zm(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!a&&t&&{dsn:Qs(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return To(i,[s])}function oj(e,t,n,a){const o=zm(n),i=e.type&&e.type!=="replay_event"?e.type:"event";rj(e,n?.sdk);const s=g3(e,o,a,t);return delete e.sdkProcessingMetadata,To(s,[[{type:i},e]])}function ij(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const a=na(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(a)&&{trace:a},...!!i&&o&&{dsn:Qs(o)}},l=t?.getOptions().beforeSendSpan,c=l?d=>{const f=tt(d),p=l(f);return p||(Bf(),f)}:tt,u=[];for(const d of e){const f=c(d);f&&u.push(ej(f))}return To(s,u)}function sj(e){if(!Le)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=tt(e),{spanId:o}=e.spanContext(),i=Eo(e),s=en(e),l=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${l?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(a&&u.push(`parent ID: ${a}`),!l){const{op:d,description:f}=tt(s);u.push(`root ID: ${s.spanContext().spanId}`),d&&u.push(`root op: ${d}`),f&&u.push(`root description: ${f}`)}ke.log(`${c}
|
|
655
655
|
${u.join(`
|
|
656
|
-
`)}`)}function ij(e){if(!Le)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tt(e),{spanId:a}=e.spanContext(),i=en(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${a}`;ke.log(s)}function sj(e,t,n,a=tn()){const o=a&&en(a);o&&(Le&&ke.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Js]:t,[Xs]:n}))}function J0(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const a=n.attributes||{},o=a[Xs],i=a[Js];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const Q0=1e3;class yu{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks(),this._startTime=t.startTimestamp||Ht(),this._links=t.links,this._attributes={},this.setAttributes({[xt]:"manual",[ea]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:a}=this;return{spanId:t,traceId:n,traceFlags:a?Rm:l3}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=lo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(kn,"custom"),this}end(t){this._endTime||(this._endTime=lo(t),ij(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ea],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u3(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xt],profile_id:this._attributes[Lm],exclusive_time:this._attributes[Li],measurements:J0(this._events),is_segment:this._isStandaloneSpan&&en(this)===this||void 0,segment_id:this._isStandaloneSpan?en(this).spanContext().spanId:void 0,links:c3(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){Le&&ke.log("[Tracing] Adding an event to span:",t);const o=Z0(n)?n:a||Ht(),i=Z0(n)?{}:n||{},s={name:t,time:lo(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Qe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===en(this)))return;if(this._isStandaloneSpan){this._sampled?cj(aj([this],t)):(Le&&ke.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const a=this._convertSpanToTransaction();a&&(Tc(this).scope||lt()).captureEvent(a)}_convertSpanToTransaction(){if(!e1(tt(this)))return;this._name||(Le&&ke.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Tc(this),a=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Gl(this).filter(d=>d!==this&&!lj(d)).map(d=>tt(d)).filter(e1),s=this._attributes[kn];delete this._attributes[U0],i.forEach(d=>{delete d.data[U0]});const l={contexts:{trace:IF(this)},spans:i.length>Q0?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,Q0):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:na(this)},request:a,...s&&{transaction_info:{source:s}}},c=J0(this._events);return c&&Object.keys(c).length&&(Le&&ke.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function Z0(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function e1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function lj(e){return e instanceof yu&&e.isStandaloneSpan()}function cj(e){const t=Qe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function uj(e,t,n=()=>{}){let a;try{a=e()}catch(o){throw t(o),n(),o}return dj(a,t,n)}function dj(e,t,n){return Ys(e)?e.then(a=>(n(),a),a=>{throw t(a),n(),a}):(n(),e)}function fj(e,t,n){if(!ta(e))return[!1];let a,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:l=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):l}),a=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,a=!0);const i=bo(o);if(i===void 0)return Le&&ke.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return Le&&ke.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,a];const s=n<i;return s||Le&&ke.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,a]}const y3="__SENTRY_SUPPRESS_TRACING__";function pj(e,t){const n=Fm();if(n.startSpan)return n.startSpan(e,t);const a=w3(e),{forceTransaction:o,parentSpan:i,scope:s}=e,l=s?.clone();return gu(l,()=>hj(i)(()=>{const u=lt(),d=k3(u,i),p=e.onlyIfParent&&!d?new Ta:b3({parentSpan:d,spanArguments:a,forceTransaction:o,scope:u});return ki(u,p),uj(()=>t(p),()=>{const{status:m}=tt(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:Wt,message:"internal_error"})},()=>{p.end()})}))}function Pa(e){const t=Fm();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=w3(e),{forceTransaction:a,parentSpan:o}=e;return(e.scope?s=>gu(e.scope,s):o!==void 0?s=>Vm(o,s):s=>s())(()=>{const s=lt(),l=k3(s,o);return e.onlyIfParent&&!l?new Ta:b3({parentSpan:l,spanArguments:n,forceTransaction:a,scope:s})})}function Vm(e,t){const n=Fm();return n.withActiveSpan?n.withActiveSpan(e,t):gu(a=>(ki(a,e||void 0),t(a)))}function b3({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){if(!ta()){const s=new Ta;if(n||!e){const l={sampled:"false",sample_rate:"0",transaction:t.name,...na(s)};Kl(s,l)}return s}const o=Dr();let i;if(e&&!n)i=mj(e,a,t),d3(e,i);else if(e){const s=na(e),{traceId:l,spanId:c}=e.spanContext(),u=Eo(e);i=t1({traceId:l,parentSpanId:c,...t},a,u),Kl(i,s)}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...a.getPropagationContext()};i=t1({traceId:s,parentSpanId:c,...t},a,u),l&&Kl(i,l)}return oj(i),kF(i,a,o),i}function w3(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const a={...n};return a.startTimestamp=lo(e.startTime),delete a.startTime,a}return n}function Fm(){const e=Co();return Bi(e)}function t1(e,t,n){const a=Qe(),o=a?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};a?.emit("beforeSampling",s,{decision:!1});const l=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[y3]?[!1]:fj(o,{name:i,parentSampled:l,attributes:c,parentSampleRate:bo(u.dsc?.sample_rate)},u.sampleRand),m=new yu({...e,attributes:{[kn]:"custom",[Bm]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&a&&(Le&&ke.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate","transaction")),a&&a.emit("spanStart",m),m}function mj(e,t,n){const{spanId:a,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[y3]?!1:Eo(e),s=i?new yu({...n,parentSpanId:a,traceId:o,sampled:i}):new Ta({traceId:o});d3(e,s);const l=Qe();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}function k3(e,t){if(t)return t;if(t===null)return;const n=xc(e);if(!n)return;const a=Qe();return(a?a.getOptions():{}).parentSpanIsAlwaysRootSpan?en(n):n}function hj(e){return e!==void 0?t=>Vm(e,t):t=>t()}const Xl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},vj="heartbeatFailed",gj="idleTimeout",yj="finalTimeout",bj="externalFinish";function _3(e,t={}){const n=new Map;let a=!1,o,i=bj,s=!t.disableAutoFinish;const l=[],{idleTimeout:c=Xl.idleTimeout,finalTimeout:u=Xl.finalTimeout,childSpanTimeout:d=Xl.childSpanTimeout,beforeSpanEnd:f}=t,p=Qe();if(!p||!ta()){const C=new Ta,P={sample_rate:"0",sampled:"false",...na(C)};return Kl(C,P),C}const m=lt(),v=tn(),y=wj(e);y.end=new Proxy(y.end,{apply(C,P,O){if(f&&f(y),P instanceof Ta)return;const[A,...L]=O,U=A||Ht(),z=lo(U),R=Gl(y).filter(K=>K!==y);if(!R.length)return x(z),Reflect.apply(C,P,[z,...L]);const I=R.map(K=>tt(K).timestamp).filter(K=>!!K),B=I.length?Math.max(...I):void 0,M=tt(y).start_timestamp,$=Math.min(M?M+u/1e3:1/0,Math.max(M||-1/0,Math.min(z,B||1/0)));return x($),Reflect.apply(C,P,[$,...L])}});function w(){o&&(clearTimeout(o),o=void 0)}function b(C){w(),o=setTimeout(()=>{!a&&n.size===0&&s&&(i=gj,y.end(C))},c)}function E(C){o=setTimeout(()=>{!a&&s&&(i=vj,y.end(C))},d)}function _(C){w(),n.set(C,!0);const P=Ht();E(P+d/1e3)}function g(C){if(n.has(C)&&n.delete(C),n.size===0){const P=Ht();b(P+c/1e3)}}function x(C){a=!0,n.clear(),l.forEach(z=>z()),ki(m,v);const P=tt(y),{start_timestamp:O}=P;if(!O)return;P.data[Ec]||y.setAttribute(Ec,i),ke.log(`[Tracing] Idle span "${P.op}" finished`);const L=Gl(y).filter(z=>z!==y);let U=0;L.forEach(z=>{z.isRecording()&&(z.setStatus({code:Wt,message:"cancelled"}),z.end(C),Le&&ke.log("[Tracing] Cancelling span since span ended early",JSON.stringify(z,void 0,2)));const R=tt(z),{timestamp:I=0,start_timestamp:B=0}=R,M=B<=C,$=(u+c)/1e3,K=I-B<=$;if(Le){const V=JSON.stringify(z,void 0,2);M?K||ke.log("[Tracing] Discarding span since it finished after idle span final timeout",V):ke.log("[Tracing] Discarding span since it happened after idle span was finished",V)}(!K||!M)&&(LF(y,z),U++)}),U>0&&y.setAttribute("sentry.idle_span_discarded_spans",U)}return l.push(p.on("spanStart",C=>{if(a||C===y||tt(C).timestamp||C instanceof yu&&C.isStandaloneSpan())return;Gl(y).includes(C)&&_(C.spanContext().spanId)})),l.push(p.on("spanEnd",C=>{a||g(C.spanContext().spanId)})),l.push(p.on("idleSpanEnableAutoFinish",C=>{C===y&&(s=!0,b(),n.size&&E())})),t.disableAutoFinish||b(),setTimeout(()=>{a||(y.setStatus({code:Wt,message:"deadline_exceeded"}),i=yj,y.end())},u),y}function wj(e){const t=Pa(e);return ki(lt(),t),Le&&ke.log("[Tracing] Started span is an idle span"),t}const xd=0,n1=1,r1=2;function ra(e){return new Aa(t=>{t(e)})}function Pc(e){return new Aa((t,n)=>{n(e)})}class Aa{constructor(t){this._state=xd,this._handlers=[],this._runExecutor(t)}then(t,n){return new Aa((a,o)=>{this._handlers.push([!1,i=>{if(!t)a(i);else try{a(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{a(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Aa((n,a)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){a(o);return}n(o)})})}_executeHandlers(){if(this._state===xd)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===n1&&n[1](this._value),this._state===r1&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,s)=>{if(this._state===xd){if(Ys(s)){s.then(a,o);return}this._state=i,this._value=s,this._executeHandlers()}},a=i=>{n(n1,i)},o=i=>{n(r1,i)};try{t(a,o)}catch(i){o(i)}}}function Rf(e,t,n,a=0){return new Aa((o,i)=>{const s=e[a];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Le&&s.id&&l===null&&ke.log(`Event processor "${s.id}" dropped event`),Ys(l)?l.then(c=>Rf(e,c,n,a+1).then(o)).then(null,i):Rf(e,l,n,a+1).then(o).then(null,i)}})}function kj(e,t){const{fingerprint:n,span:a,breadcrumbs:o,sdkProcessingMetadata:i}=t;_j(e,t),a&&xj(e,a),Ej(e,n),Sj(e,o),Cj(e,i)}function a1(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:v}=t;xl(e,"extra",n),xl(e,"tags",a),xl(e,"user",o),xl(e,"contexts",i),e.sdkProcessingMetadata=Gs(e.sdkProcessingMetadata,l,2),s&&(e.level=s),m&&(e.transactionName=m),v&&(e.span=v),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function xl(e,t,n){e[t]=Gs(e[t],n,1)}function _j(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,transactionName:l}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(a).length&&(e.tags={...a,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),l&&e.type!=="transaction"&&(e.transaction=l)}function Sj(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Cj(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function xj(e,t){e.contexts={trace:MF(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:na(t),...e.sdkProcessingMetadata};const n=en(t),a=tt(n).description;a&&!e.transaction&&e.type==="transaction"&&(e.transaction=a)}function Ej(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let El,o1,Tl;function Tj(e){const t=rt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Tl&&n.length===o1||(o1=n.length,Tl=n.reduce((a,o)=>{El||(El={});const i=El[o];if(i)a[i[0]]=i[1];else{const s=e(o);for(let l=s.length-1;l>=0;l--){const u=s[l]?.filename,d=t[o];if(u&&d){a[u]=d,El[o]=[u,d];break}}}return a},{})),Tl}function S3(e,t,n,a,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nn(),timestamp:t.timestamp||xo()},u=n.integrations||e.integrations.map(w=>w.name);Pj(c,e),Mj(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Aj(c,e.stackParser);const d=Oj(a,n.captureContext);n.mechanism&&bi(c,n.mechanism);const f=o?o.getEventProcessors():[],p=vF().getScopeData();if(i){const w=i.getScopeData();a1(p,w)}if(d){const w=d.getScopeData();a1(p,w)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),kj(c,p);const v=[...f,...p.eventProcessors];return Rf(v,c,n).then(w=>(w&&Ij(w),typeof s=="number"&&s>0?Nj(w,s,l):w))}function Pj(e,t){const{environment:n,release:a,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||$m,!e.release&&a&&(e.release=a),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&(s.url=Cc(s.url,i))}function Aj(e,t){const n=Tj(t);e.exception?.values?.forEach(a=>{a.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Ij(e){const t={};if(e.exception?.values?.forEach(a=>{a.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([a,o])=>{n.push({type:"sourcemap",code_file:a,debug_id:o})})}function Mj(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Nj(e,t,n){if(!e)return null;const a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))},...e.user&&{user:Kn(e.user,t,n)},...e.contexts&&{contexts:Kn(e.contexts,t,n)},...e.extra&&{extra:Kn(e.extra,t,n)}};return e.contexts?.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=Kn(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))),e.contexts?.flags&&a.contexts&&(a.contexts.flags=Kn(e.contexts.flags,3,n)),a}function Oj(e,t){if(!t)return e;const n=e?e.clone():new Br;return n.update(t),n}function Bj(e){if(e)return Lj(e)?{captureContext:e}:Rj(e)?{captureContext:e}:e}function Lj(e){return e instanceof Br||typeof e=="function"}const Dj=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Rj(e){return Object.keys(e).some(t=>Dj.includes(t))}function bu(e,t){return lt().captureException(e,Bj(t))}function C3(e,t){return lt().captureEvent(e,t)}function $j(e,t){Dr().setContext(e,t)}function zj(){const e=Qe();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Vj(e){Dr().addEventProcessor(e)}function i1(e){const t=Dr(),n=lt(),{userAgent:a}=rt.navigator||{},o=iF({user:n.getUser()||t.getUser(),...a&&{userAgent:a},...e}),i=t.getSession();return i?.status==="ok"&&wi(i,{status:"exited"}),x3(),t.setSession(o),o}function x3(){const e=Dr(),n=lt().getSession()||e.getSession();n&&sF(n),E3(),e.setSession()}function E3(){const e=Dr(),t=Qe(),n=e.getSession();n&&t&&t.captureSession(n)}function s1(e=!1){if(e){x3();return}E3()}const Fj="7";function jj(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Hj(e){return`${jj(e)}${e.projectId}/envelope/`}function Uj(e,t){const n={sentry_version:Fj};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Wj(e,t,n){return t||`${Hj(e)}?${Uj(e,n)}`}const l1=[];function qj(e){const t={};return e.forEach(n=>{const{name:a}=n,o=t[a];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[a]=n)}),Object.values(t)}function Yj(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let a;if(Array.isArray(n))a=[...t,...n];else if(typeof n=="function"){const o=n(t);a=Array.isArray(o)?o:[o]}else a=t;return qj(a)}function Gj(e,t){const n={};return t.forEach(a=>{a&&T3(e,a,n)}),n}function c1(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function T3(e,t,n){if(n[t.name]){Le&&ke.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,l1.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),l1.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const a=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>a(o,i,e))}if(typeof t.processEvent=="function"){const a=t.processEvent.bind(t),o=Object.assign((i,s)=>a(i,s,e),{id:t.name});e.addEventProcessor(o)}Le&&ke.log(`Integration installed: ${t.name}`)}function Kj(e,t,n){const a=[{type:"client_report"},{timestamp:xo(),discarded_events:e}];return To(t?{dsn:t}:{},[a])}function P3(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Xj(e){const{trace_id:t,parent_span_id:n,span_id:a,status:o,origin:i,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:n,span_id:a??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Lm],exclusive_time:s?.[Li],measurements:e.measurements,is_segment:!0}}function Jj(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Lm]:e.profile_id},...e.exclusive_time&&{[Li]:e.exclusive_time}}}},measurements:e.measurements}}const u1="Not capturing exception because it's already been captured.",d1="Discarded session because of missing or non-string release",A3=Symbol.for("SentryInternalError"),I3=Symbol.for("SentryDoNotSendEventError");function Jl(e){return{message:e,[A3]:!0}}function Ed(e){return{message:e,[I3]:!0}}function f1(e){return!!e&&typeof e=="object"&&A3 in e}function p1(e){return!!e&&typeof e=="object"&&I3 in e}class Qj{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=HF(t.dsn):Le&&ke.warn("No DSN provided, client will not send events."),this._dsn){const n=Wj(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,a){const o=Nn();if(F0(t))return Le&&ke.log(u1),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,a))),i.event_id}captureMessage(t,n,a,o){const i={event_id:Nn(),...a},s=Mm(t)?t:String(t),l=Cs(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(l.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,a){const o=Nn();if(n?.originalException&&F0(n.originalException))return Le&&ke.log(u1),o;const i={event_id:o,...n},s=t.sdkProcessingMetadata||{},l=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,l||a,c)),i.event_id}captureSession(t){this.sendSession(t),wi(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(a=>n.flush(t).then(o=>a&&o))):ra(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];T3(this,t,this._integrations),n||c1(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let a=rj(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])a=KF(a,ZF(i));const o=this.sendEnvelope(a);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const{release:n,environment:a=$m}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){Le&&ke.warn(d1);return}i.release=i.release||n,i.environment=i.environment||a,t.attrs=i}else{if(!t.release&&!n){Le&&ke.warn(d1);return}t.release=t.release||n,t.environment=t.environment||a}this.emit("beforeSendSession",t);const o=nj(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,a=1){if(this._options.sendClientReports){const o=`${t}:${n}`;Le&&ke.log(`Recording outcome: "${o}"${a>1?` (${a} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+a}}on(t,n){const a=this._hooks[t]=this._hooks[t]||[];return a.push(n),()=>{const o=a.indexOf(n);o>-1&&a.splice(o,1)}}emit(t,...n){const a=this._hooks[t];a&&a.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Le&&ke.error("Error while sending envelope:",n),n)):(Le&&ke.error("Transport disabled"),ra({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Gj(this,t),c1(this,t)}_updateSessionFromEvent(t,n){let a=n.level==="fatal",o=!1;const i=n.exception?.values;if(i){o=!0;for(const c of i)if(c.mechanism?.handled===!1){a=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&a)&&(wi(t,{...a&&{status:"crashed"},errors:t.errors||Number(o||a)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Aa(n=>{let a=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(a+=o,t&&a>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,a,o){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),S3(i,t,n,a,this,o).then(l=>{if(l===null)return l;this.emit("postprocessEvent",l,n),l.contexts={trace:gF(a),...l.contexts};const c=h3(this,a);return l.sdkProcessingMetadata={dynamicSamplingContext:c,...l.sdkProcessingMetadata},l})}_captureEvent(t,n={},a=lt(),o=Dr()){return Le&&$f(t)&&ke.log(`Captured error event \`${P3(t)[0]||"<unknown>"}\``),this._processEvent(t,n,a,o).then(i=>i.event_id,i=>{Le&&(p1(i)?ke.log(i.message):f1(i)?ke.warn(i.message):ke.warn(i))})}_processEvent(t,n,a,o){const i=this.getOptions(),{sampleRate:s}=i,l=M3(t),c=$f(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof s>"u"?void 0:bo(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Pc(Ed(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,a,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),Ed("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const y=eH(this,i,m,n);return Zj(y,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),l){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw Ed(`${d} returned \`null\`, will not send event.`)}const v=a.getSession()||o.getSession();if(c&&v&&this._updateSessionFromEvent(v,m),l){const w=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,b=m.spans?m.spans.length:0,E=w-b;E>0&&this.recordDroppedEvent("before_send","span",E)}const y=m.transaction_info;if(l&&y&&m.transaction!==t.transaction){const w="custom";m.transaction_info={...y,source:w}}return this.sendEvent(m,n),m}).then(null,m=>{throw p1(m)||f1(m)?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),Jl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
657
|
-
Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,a])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:a}})}_flushOutcomes(){Le&&ke.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Le&&ke.log("No outcomes to send");return}if(!this._dsn){Le&&ke.log("No dsn provided, will not send outcomes");return}Le&&ke.log("Sending outcomes:",t);const n=
|
|
658
|
-
Event: ${Ka(e)}`),!0}else{if(
|
|
659
|
-
Event: ${Ka(e)}`),!0;if(
|
|
660
|
-
Event: ${Ka(e)}`),!0;if(
|
|
656
|
+
`)}`)}function lj(e){if(!Le)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tt(e),{spanId:a}=e.spanContext(),i=en(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${a}`;ke.log(s)}function cj(e,t,n,a=tn()){const o=a&&en(a);o&&(Le&&ke.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Js]:t,[Xs]:n}))}function J0(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const a=n.attributes||{},o=a[Xs],i=a[Js];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const Q0=1e3;class yu{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks(),this._startTime=t.startTimestamp||Ht(),this._links=t.links,this._attributes={},this.setAttributes({[xt]:"manual",[ea]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:a}=this;return{spanId:t,traceId:n,traceFlags:a?Rm:l3}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=lo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(kn,"custom"),this}end(t){this._endTime||(this._endTime=lo(t),lj(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ea],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u3(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xt],profile_id:this._attributes[Lm],exclusive_time:this._attributes[Li],measurements:J0(this._events),is_segment:this._isStandaloneSpan&&en(this)===this||void 0,segment_id:this._isStandaloneSpan?en(this).spanContext().spanId:void 0,links:c3(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){Le&&ke.log("[Tracing] Adding an event to span:",t);const o=Z0(n)?n:a||Ht(),i=Z0(n)?{}:n||{},s={name:t,time:lo(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Qe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===en(this)))return;if(this._isStandaloneSpan){this._sampled?dj(ij([this],t)):(Le&&ke.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const a=this._convertSpanToTransaction();a&&(Tc(this).scope||lt()).captureEvent(a)}_convertSpanToTransaction(){if(!e1(tt(this)))return;this._name||(Le&&ke.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Tc(this),a=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Gl(this).filter(d=>d!==this&&!uj(d)).map(d=>tt(d)).filter(e1),s=this._attributes[kn];delete this._attributes[U0],i.forEach(d=>{delete d.data[U0]});const l={contexts:{trace:NF(this)},spans:i.length>Q0?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,Q0):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:na(this)},request:a,...s&&{transaction_info:{source:s}}},c=J0(this._events);return c&&Object.keys(c).length&&(Le&&ke.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function Z0(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function e1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function uj(e){return e instanceof yu&&e.isStandaloneSpan()}function dj(e){const t=Qe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function fj(e,t,n=()=>{}){let a;try{a=e()}catch(o){throw t(o),n(),o}return pj(a,t,n)}function pj(e,t,n){return Ys(e)?e.then(a=>(n(),a),a=>{throw t(a),n(),a}):(n(),e)}function mj(e,t,n){if(!ta(e))return[!1];let a,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:l=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):l}),a=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,a=!0);const i=bo(o);if(i===void 0)return Le&&ke.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return Le&&ke.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,a];const s=n<i;return s||Le&&ke.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,a]}const y3="__SENTRY_SUPPRESS_TRACING__";function hj(e,t){const n=Fm();if(n.startSpan)return n.startSpan(e,t);const a=w3(e),{forceTransaction:o,parentSpan:i,scope:s}=e,l=s?.clone();return gu(l,()=>gj(i)(()=>{const u=lt(),d=k3(u,i),p=e.onlyIfParent&&!d?new Ta:b3({parentSpan:d,spanArguments:a,forceTransaction:o,scope:u});return ki(u,p),fj(()=>t(p),()=>{const{status:m}=tt(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:Wt,message:"internal_error"})},()=>{p.end()})}))}function Pa(e){const t=Fm();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=w3(e),{forceTransaction:a,parentSpan:o}=e;return(e.scope?s=>gu(e.scope,s):o!==void 0?s=>Vm(o,s):s=>s())(()=>{const s=lt(),l=k3(s,o);return e.onlyIfParent&&!l?new Ta:b3({parentSpan:l,spanArguments:n,forceTransaction:a,scope:s})})}function Vm(e,t){const n=Fm();return n.withActiveSpan?n.withActiveSpan(e,t):gu(a=>(ki(a,e||void 0),t(a)))}function b3({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){if(!ta()){const s=new Ta;if(n||!e){const l={sampled:"false",sample_rate:"0",transaction:t.name,...na(s)};Kl(s,l)}return s}const o=Dr();let i;if(e&&!n)i=vj(e,a,t),d3(e,i);else if(e){const s=na(e),{traceId:l,spanId:c}=e.spanContext(),u=Eo(e);i=t1({traceId:l,parentSpanId:c,...t},a,u),Kl(i,s)}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...a.getPropagationContext()};i=t1({traceId:s,parentSpanId:c,...t},a,u),l&&Kl(i,l)}return sj(i),SF(i,a,o),i}function w3(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const a={...n};return a.startTimestamp=lo(e.startTime),delete a.startTime,a}return n}function Fm(){const e=Co();return Bi(e)}function t1(e,t,n){const a=Qe(),o=a?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};a?.emit("beforeSampling",s,{decision:!1});const l=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[y3]?[!1]:mj(o,{name:i,parentSampled:l,attributes:c,parentSampleRate:bo(u.dsc?.sample_rate)},u.sampleRand),m=new yu({...e,attributes:{[kn]:"custom",[Bm]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&a&&(Le&&ke.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate","transaction")),a&&a.emit("spanStart",m),m}function vj(e,t,n){const{spanId:a,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[y3]?!1:Eo(e),s=i?new yu({...n,parentSpanId:a,traceId:o,sampled:i}):new Ta({traceId:o});d3(e,s);const l=Qe();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}function k3(e,t){if(t)return t;if(t===null)return;const n=xc(e);if(!n)return;const a=Qe();return(a?a.getOptions():{}).parentSpanIsAlwaysRootSpan?en(n):n}function gj(e){return e!==void 0?t=>Vm(e,t):t=>t()}const Xl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},yj="heartbeatFailed",bj="idleTimeout",wj="finalTimeout",kj="externalFinish";function _3(e,t={}){const n=new Map;let a=!1,o,i=kj,s=!t.disableAutoFinish;const l=[],{idleTimeout:c=Xl.idleTimeout,finalTimeout:u=Xl.finalTimeout,childSpanTimeout:d=Xl.childSpanTimeout,beforeSpanEnd:f}=t,p=Qe();if(!p||!ta()){const C=new Ta,P={sample_rate:"0",sampled:"false",...na(C)};return Kl(C,P),C}const m=lt(),v=tn(),y=_j(e);y.end=new Proxy(y.end,{apply(C,P,O){if(f&&f(y),P instanceof Ta)return;const[A,...L]=O,U=A||Ht(),z=lo(U),R=Gl(y).filter(K=>K!==y);if(!R.length)return x(z),Reflect.apply(C,P,[z,...L]);const I=R.map(K=>tt(K).timestamp).filter(K=>!!K),B=I.length?Math.max(...I):void 0,M=tt(y).start_timestamp,$=Math.min(M?M+u/1e3:1/0,Math.max(M||-1/0,Math.min(z,B||1/0)));return x($),Reflect.apply(C,P,[$,...L])}});function w(){o&&(clearTimeout(o),o=void 0)}function b(C){w(),o=setTimeout(()=>{!a&&n.size===0&&s&&(i=bj,y.end(C))},c)}function E(C){o=setTimeout(()=>{!a&&s&&(i=yj,y.end(C))},d)}function _(C){w(),n.set(C,!0);const P=Ht();E(P+d/1e3)}function g(C){if(n.has(C)&&n.delete(C),n.size===0){const P=Ht();b(P+c/1e3)}}function x(C){a=!0,n.clear(),l.forEach(z=>z()),ki(m,v);const P=tt(y),{start_timestamp:O}=P;if(!O)return;P.data[Ec]||y.setAttribute(Ec,i),ke.log(`[Tracing] Idle span "${P.op}" finished`);const L=Gl(y).filter(z=>z!==y);let U=0;L.forEach(z=>{z.isRecording()&&(z.setStatus({code:Wt,message:"cancelled"}),z.end(C),Le&&ke.log("[Tracing] Cancelling span since span ended early",JSON.stringify(z,void 0,2)));const R=tt(z),{timestamp:I=0,start_timestamp:B=0}=R,M=B<=C,$=(u+c)/1e3,K=I-B<=$;if(Le){const V=JSON.stringify(z,void 0,2);M?K||ke.log("[Tracing] Discarding span since it finished after idle span final timeout",V):ke.log("[Tracing] Discarding span since it happened after idle span was finished",V)}(!K||!M)&&(RF(y,z),U++)}),U>0&&y.setAttribute("sentry.idle_span_discarded_spans",U)}return l.push(p.on("spanStart",C=>{if(a||C===y||tt(C).timestamp||C instanceof yu&&C.isStandaloneSpan())return;Gl(y).includes(C)&&_(C.spanContext().spanId)})),l.push(p.on("spanEnd",C=>{a||g(C.spanContext().spanId)})),l.push(p.on("idleSpanEnableAutoFinish",C=>{C===y&&(s=!0,b(),n.size&&E())})),t.disableAutoFinish||b(),setTimeout(()=>{a||(y.setStatus({code:Wt,message:"deadline_exceeded"}),i=wj,y.end())},u),y}function _j(e){const t=Pa(e);return ki(lt(),t),Le&&ke.log("[Tracing] Started span is an idle span"),t}const xd=0,n1=1,r1=2;function ra(e){return new Aa(t=>{t(e)})}function Pc(e){return new Aa((t,n)=>{n(e)})}class Aa{constructor(t){this._state=xd,this._handlers=[],this._runExecutor(t)}then(t,n){return new Aa((a,o)=>{this._handlers.push([!1,i=>{if(!t)a(i);else try{a(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{a(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Aa((n,a)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){a(o);return}n(o)})})}_executeHandlers(){if(this._state===xd)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===n1&&n[1](this._value),this._state===r1&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,s)=>{if(this._state===xd){if(Ys(s)){s.then(a,o);return}this._state=i,this._value=s,this._executeHandlers()}},a=i=>{n(n1,i)},o=i=>{n(r1,i)};try{t(a,o)}catch(i){o(i)}}}function Rf(e,t,n,a=0){return new Aa((o,i)=>{const s=e[a];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Le&&s.id&&l===null&&ke.log(`Event processor "${s.id}" dropped event`),Ys(l)?l.then(c=>Rf(e,c,n,a+1).then(o)).then(null,i):Rf(e,l,n,a+1).then(o).then(null,i)}})}function Sj(e,t){const{fingerprint:n,span:a,breadcrumbs:o,sdkProcessingMetadata:i}=t;Cj(e,t),a&&Tj(e,a),Pj(e,n),xj(e,o),Ej(e,i)}function a1(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:v}=t;xl(e,"extra",n),xl(e,"tags",a),xl(e,"user",o),xl(e,"contexts",i),e.sdkProcessingMetadata=Gs(e.sdkProcessingMetadata,l,2),s&&(e.level=s),m&&(e.transactionName=m),v&&(e.span=v),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function xl(e,t,n){e[t]=Gs(e[t],n,1)}function Cj(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,transactionName:l}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(a).length&&(e.tags={...a,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),l&&e.type!=="transaction"&&(e.transaction=l)}function xj(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ej(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Tj(e,t){e.contexts={trace:OF(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:na(t),...e.sdkProcessingMetadata};const n=en(t),a=tt(n).description;a&&!e.transaction&&e.type==="transaction"&&(e.transaction=a)}function Pj(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let El,o1,Tl;function Aj(e){const t=rt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Tl&&n.length===o1||(o1=n.length,Tl=n.reduce((a,o)=>{El||(El={});const i=El[o];if(i)a[i[0]]=i[1];else{const s=e(o);for(let l=s.length-1;l>=0;l--){const u=s[l]?.filename,d=t[o];if(u&&d){a[u]=d,El[o]=[u,d];break}}}return a},{})),Tl}function S3(e,t,n,a,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nn(),timestamp:t.timestamp||xo()},u=n.integrations||e.integrations.map(w=>w.name);Ij(c,e),Oj(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Mj(c,e.stackParser);const d=Lj(a,n.captureContext);n.mechanism&&bi(c,n.mechanism);const f=o?o.getEventProcessors():[],p=yF().getScopeData();if(i){const w=i.getScopeData();a1(p,w)}if(d){const w=d.getScopeData();a1(p,w)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Sj(c,p);const v=[...f,...p.eventProcessors];return Rf(v,c,n).then(w=>(w&&Nj(w),typeof s=="number"&&s>0?Bj(w,s,l):w))}function Ij(e,t){const{environment:n,release:a,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||$m,!e.release&&a&&(e.release=a),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&(s.url=Cc(s.url,i))}function Mj(e,t){const n=Aj(t);e.exception?.values?.forEach(a=>{a.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Nj(e){const t={};if(e.exception?.values?.forEach(a=>{a.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([a,o])=>{n.push({type:"sourcemap",code_file:a,debug_id:o})})}function Oj(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Bj(e,t,n){if(!e)return null;const a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))},...e.user&&{user:Kn(e.user,t,n)},...e.contexts&&{contexts:Kn(e.contexts,t,n)},...e.extra&&{extra:Kn(e.extra,t,n)}};return e.contexts?.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=Kn(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))),e.contexts?.flags&&a.contexts&&(a.contexts.flags=Kn(e.contexts.flags,3,n)),a}function Lj(e,t){if(!t)return e;const n=e?e.clone():new Br;return n.update(t),n}function Dj(e){if(e)return Rj(e)?{captureContext:e}:zj(e)?{captureContext:e}:e}function Rj(e){return e instanceof Br||typeof e=="function"}const $j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function zj(e){return Object.keys(e).some(t=>$j.includes(t))}function bu(e,t){return lt().captureException(e,Dj(t))}function C3(e,t){return lt().captureEvent(e,t)}function Vj(e,t){Dr().setContext(e,t)}function Fj(){const e=Qe();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function jj(e){Dr().addEventProcessor(e)}function i1(e){const t=Dr(),n=lt(),{userAgent:a}=rt.navigator||{},o=lF({user:n.getUser()||t.getUser(),...a&&{userAgent:a},...e}),i=t.getSession();return i?.status==="ok"&&wi(i,{status:"exited"}),x3(),t.setSession(o),o}function x3(){const e=Dr(),n=lt().getSession()||e.getSession();n&&cF(n),E3(),e.setSession()}function E3(){const e=Dr(),t=Qe(),n=e.getSession();n&&t&&t.captureSession(n)}function s1(e=!1){if(e){x3();return}E3()}const Hj="7";function Uj(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wj(e){return`${Uj(e)}${e.projectId}/envelope/`}function qj(e,t){const n={sentry_version:Hj};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Yj(e,t,n){return t||`${Wj(e)}?${qj(e,n)}`}const l1=[];function Gj(e){const t={};return e.forEach(n=>{const{name:a}=n,o=t[a];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[a]=n)}),Object.values(t)}function Kj(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let a;if(Array.isArray(n))a=[...t,...n];else if(typeof n=="function"){const o=n(t);a=Array.isArray(o)?o:[o]}else a=t;return Gj(a)}function Xj(e,t){const n={};return t.forEach(a=>{a&&T3(e,a,n)}),n}function c1(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function T3(e,t,n){if(n[t.name]){Le&&ke.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,l1.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),l1.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const a=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>a(o,i,e))}if(typeof t.processEvent=="function"){const a=t.processEvent.bind(t),o=Object.assign((i,s)=>a(i,s,e),{id:t.name});e.addEventProcessor(o)}Le&&ke.log(`Integration installed: ${t.name}`)}function Jj(e,t,n){const a=[{type:"client_report"},{timestamp:xo(),discarded_events:e}];return To(t?{dsn:t}:{},[a])}function P3(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Qj(e){const{trace_id:t,parent_span_id:n,span_id:a,status:o,origin:i,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:n,span_id:a??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Lm],exclusive_time:s?.[Li],measurements:e.measurements,is_segment:!0}}function Zj(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Lm]:e.profile_id},...e.exclusive_time&&{[Li]:e.exclusive_time}}}},measurements:e.measurements}}const u1="Not capturing exception because it's already been captured.",d1="Discarded session because of missing or non-string release",A3=Symbol.for("SentryInternalError"),I3=Symbol.for("SentryDoNotSendEventError");function Jl(e){return{message:e,[A3]:!0}}function Ed(e){return{message:e,[I3]:!0}}function f1(e){return!!e&&typeof e=="object"&&A3 in e}function p1(e){return!!e&&typeof e=="object"&&I3 in e}class eH{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=WF(t.dsn):Le&&ke.warn("No DSN provided, client will not send events."),this._dsn){const n=Yj(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,a){const o=Nn();if(F0(t))return Le&&ke.log(u1),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,a))),i.event_id}captureMessage(t,n,a,o){const i={event_id:Nn(),...a},s=Mm(t)?t:String(t),l=Cs(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(l.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,a){const o=Nn();if(n?.originalException&&F0(n.originalException))return Le&&ke.log(u1),o;const i={event_id:o,...n},s=t.sdkProcessingMetadata||{},l=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,l||a,c)),i.event_id}captureSession(t){this.sendSession(t),wi(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(a=>n.flush(t).then(o=>a&&o))):ra(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];T3(this,t,this._integrations),n||c1(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let a=oj(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])a=JF(a,tj(i));const o=this.sendEnvelope(a);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const{release:n,environment:a=$m}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){Le&&ke.warn(d1);return}i.release=i.release||n,i.environment=i.environment||a,t.attrs=i}else{if(!t.release&&!n){Le&&ke.warn(d1);return}t.release=t.release||n,t.environment=t.environment||a}this.emit("beforeSendSession",t);const o=aj(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,a=1){if(this._options.sendClientReports){const o=`${t}:${n}`;Le&&ke.log(`Recording outcome: "${o}"${a>1?` (${a} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+a}}on(t,n){const a=this._hooks[t]=this._hooks[t]||[];return a.push(n),()=>{const o=a.indexOf(n);o>-1&&a.splice(o,1)}}emit(t,...n){const a=this._hooks[t];a&&a.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Le&&ke.error("Error while sending envelope:",n),n)):(Le&&ke.error("Transport disabled"),ra({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Xj(this,t),c1(this,t)}_updateSessionFromEvent(t,n){let a=n.level==="fatal",o=!1;const i=n.exception?.values;if(i){o=!0;for(const c of i)if(c.mechanism?.handled===!1){a=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&a)&&(wi(t,{...a&&{status:"crashed"},errors:t.errors||Number(o||a)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Aa(n=>{let a=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(a+=o,t&&a>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,a,o){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),S3(i,t,n,a,this,o).then(l=>{if(l===null)return l;this.emit("postprocessEvent",l,n),l.contexts={trace:bF(a),...l.contexts};const c=h3(this,a);return l.sdkProcessingMetadata={dynamicSamplingContext:c,...l.sdkProcessingMetadata},l})}_captureEvent(t,n={},a=lt(),o=Dr()){return Le&&$f(t)&&ke.log(`Captured error event \`${P3(t)[0]||"<unknown>"}\``),this._processEvent(t,n,a,o).then(i=>i.event_id,i=>{Le&&(p1(i)?ke.log(i.message):f1(i)?ke.warn(i.message):ke.warn(i))})}_processEvent(t,n,a,o){const i=this.getOptions(),{sampleRate:s}=i,l=M3(t),c=$f(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof s>"u"?void 0:bo(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Pc(Ed(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,a,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),Ed("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const y=nH(this,i,m,n);return tH(y,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),l){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw Ed(`${d} returned \`null\`, will not send event.`)}const v=a.getSession()||o.getSession();if(c&&v&&this._updateSessionFromEvent(v,m),l){const w=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,b=m.spans?m.spans.length:0,E=w-b;E>0&&this.recordDroppedEvent("before_send","span",E)}const y=m.transaction_info;if(l&&y&&m.transaction!==t.transaction){const w="custom";m.transaction_info={...y,source:w}}return this.sendEvent(m,n),m}).then(null,m=>{throw p1(m)||f1(m)?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),Jl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
657
|
+
Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,a])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:a}})}_flushOutcomes(){Le&&ke.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Le&&ke.log("No outcomes to send");return}if(!this._dsn){Le&&ke.log("No dsn provided, will not send outcomes");return}Le&&ke.log("Sending outcomes:",t);const n=Jj(t,this._options.tunnel&&Qs(this._dsn));this.sendEnvelope(n)}}function tH(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ys(e))return e.then(a=>{if(!xs(a)&&a!==null)throw Jl(n);return a},a=>{throw Jl(`${t} rejected with ${a}`)});if(!xs(e)&&e!==null)throw Jl(n);return e}function nH(e,t,n,a){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;let l=n;if($f(l)&&o)return o(l,a);if(M3(l)){if(s){const c=s(Qj(l));if(c?l=Gs(n,Zj(c)):Bf(),l.spans){const u=[];for(const d of l.spans){const f=s(d);f?u.push(f):(Bf(),u.push(d))}l.spans=u}}if(i){if(l.spans){const c=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return i(l,a)}}return l}function $f(e){return e.type===void 0}function M3(e){return e.type==="transaction"}function rH(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function aH(e,t,n,a){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&a&&(o.dsn=Qs(a)),To(o,[rH(e)])}function Td(e,t){const n=oH(e)??[];if(n.length===0)return;const a=e.getOptions(),o=aH(n,a._metadata,a.tunnel,e.getDsn());N3().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function oH(e){return N3().get(e)}function N3(){return qs("clientToLogBufferMap",()=>new WeakMap)}function iH(e,t){t.debug===!0&&(Le?ke.enable():ia(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),lt().update(t.initialScope);const a=new e(t);return sH(a),a.init(),a}function sH(e){lt().setClient(e)}const O3=Symbol.for("SentryBufferFullError");function lH(e){const t=[];function n(){return e===void 0||t.length<e}function a(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return Pc(O3);const l=s();return t.indexOf(l)===-1&&t.push(l),l.then(()=>a(l)).then(null,()=>a(l).then(null,()=>{})),l}function i(s){return new Aa((l,c)=>{let u=t.length;if(!u)return l(!0);const d=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(f=>{ra(f).then(()=>{--u||(clearTimeout(d),l(!0))},c)})})}return{$:t,add:o,drain:i}}const cH=60*1e3;function uH(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const a=Date.parse(`${e}`);return isNaN(a)?cH:a-t}function dH(e,t){return e[t]||e.all||0}function B3(e,t,n=Date.now()){return dH(e,t)>n}function L3(e,{statusCode:t,headers:n},a=Date.now()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const l of i.trim().split(",")){const[c,u,,,d]=l.split(":",5),f=parseInt(c,10),p=(isNaN(f)?60:f)*1e3;if(!u)o.all=a+p;else for(const m of u.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[m]=a+p):o[m]=a+p}else s?o.all=a+uH(s,a):t===429&&(o.all=a+60*1e3);return o}const fH=64;function pH(e,t,n=lH(e.bufferSize||fH)){let a={};const o=s=>n.drain(s);function i(s){const l=[];if(K0(s,(f,p)=>{const m=X0(p);B3(a,m)?e.recordDroppedEvent("ratelimit_backoff",m):l.push(f)}),l.length===0)return ra({});const c=To(s[0],l),u=f=>{K0(c,(p,m)=>{e.recordDroppedEvent(f,X0(m))})},d=()=>t({body:QF(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Le&&ke.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),a=L3(a,f),f),f=>{throw u("network_error"),Le&&ke.error("Encountered error running transport request:",f),f});return n.add(d).then(f=>f,f=>{if(f===O3)return Le&&ke.error("Skipped sending event because buffer is full."),u("queue_overflow"),ra({});throw f})}return{send:i,flush:o}}function mH(e,t){const n=t?.getDsn(),a=t?.getOptions().tunnel;return vH(e,n)||hH(e,a)}function hH(e,t){return t?m1(e)===m1(t):!1}function vH(e,t){return t?e.includes(t.host):!1}function m1(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function gH(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function yH(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function D3(e,t,n=[t],a="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${a}:@sentry/${i}`,version:so})),version:so}),e._metadata=o}function R3(e={}){const t=e.client||Qe();if(!Fj()||!t)return{};const n=Co(),a=Bi(n);if(a.getTraceData)return a.getTraceData(e);const o=e.scope||lt(),i=e.span||tn(),s=i?BF(i):bH(o),l=i?na(i):h3(t,o),c=EF(l);return i3.test(s)?{"sentry-trace":s,baggage:c}:(ke.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function bH(e){const{traceId:t,sampled:n,propagationSpanId:a}=e.getPropagationContext();return s3(t,a,n)}function wH(e,t,n){let a,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0,l=n?.setTimeoutImpl||setTimeout;function c(){return u(),a=e(),a}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function d(){return o!==void 0||i!==void 0?c():a}function f(){return o&&clearTimeout(o),o=l(c,t),s&&i===void 0&&(i=l(c,s)),a}return f.cancel=u,f.flush=d,f}const kH=100;function Ia(e,t){const n=Qe(),a=Dr();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=kH}=n.getOptions();if(i<=0)return;const l={timestamp:xo(),...e},c=o?ia(()=>o(l,t)):l;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),a.addBreadcrumb(c,i))}let h1;const _H="FunctionToString",v1=new WeakMap,SH=()=>({name:_H,setupOnce(){h1=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Om(this),n=v1.has(Qe())&&t!==void 0?t:this;return h1.apply(n,e)}}catch{}},setup(e){v1.set(e,!0)}}),CH=SH,xH=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],EH="EventFilters",TH=(e={})=>{let t;return{name:EH,setup(n){const a=n.getOptions();t=g1(e,a)},processEvent(n,a,o){if(!t){const i=o.getOptions();t=g1(e,i)}return AH(n,t)?null:n}}},PH=(e={})=>({...TH(e),name:"InboundFilters"});function g1(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xH],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function AH(e,t){if(e.type){if(e.type==="transaction"&&MH(e,t.ignoreTransactions))return Le&&ke.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
658
|
+
Event: ${Ka(e)}`),!0}else{if(IH(e,t.ignoreErrors))return Le&&ke.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
659
|
+
Event: ${Ka(e)}`),!0;if(LH(e))return Le&&ke.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
660
|
+
Event: ${Ka(e)}`),!0;if(NH(e,t.denyUrls))return Le&&ke.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
661
661
|
Event: ${Ka(e)}.
|
|
662
|
-
Url: ${Ac(e)}`),!0;if(!
|
|
662
|
+
Url: ${Ac(e)}`),!0;if(!OH(e,t.allowUrls))return Le&&ke.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
663
663
|
Event: ${Ka(e)}.
|
|
664
|
-
Url: ${Ac(e)}`),!0}return!1}function PH(e,t){return t?.length?P3(e).some(n=>Wr(n,t)):!1}function AH(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Wr(n,t):!1}function IH(e,t){if(!t?.length)return!1;const n=Ac(e);return n?Wr(n,t):!1}function MH(e,t){if(!t?.length)return!0;const n=Ac(e);return n?Wr(n,t):!0}function NH(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ac(e){try{const n=[...e.exception?.values??[]].reverse().find(a=>a.mechanism?.parent_id===void 0&&a.stacktrace?.frames?.length)?.stacktrace?.frames;return n?NH(n):null}catch{return Le&&ke.error(`Cannot extract url for event ${Ka(e)}`),null}}function OH(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function BH(e,t,n,a,o,i){if(!o.exception?.values||!i||!Zr(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=zf(e,t,a,i.originalException,n,o.exception.values,s,0))}function zf(e,t,n,a,o,i,s,l){if(i.length>=n+1)return i;let c=[...i];if(Zr(a[o],Error)){y1(s,l);const u=e(t,a[o]),d=c.length;b1(u,o,d,l),c=zf(e,t,n,a[o],o,[u,...c],u,d)}return Array.isArray(a.errors)&&a.errors.forEach((u,d)=>{if(Zr(u,Error)){y1(s,l);const f=e(t,u),p=c.length;b1(f,`errors[${d}]`,p,l),c=zf(e,t,n,u,o,[f,...c],f,p)}}),c}function y1(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function b1(e,t,n,a){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:a}}function LH(e){const t="console";Ra(t,e),$a(t,DH)}function DH(){"console"in rt&&RV.forEach(function(e){e in rt.console&&wn(rt.console,e,function(t){return Sc[e]=t,function(...n){Vn("console",{args:n,level:e}),Sc[e]?.apply(rt.console,n)}})})}function $3(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const RH="Dedupe",$H=()=>{let e;return{name:RH,processEvent(t){if(t.type)return t;try{if(VH(t,e))return Le&&ke.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},zH=$H;function VH(e,t){return t?!!(FH(e,t)||jH(e,t)):!1}function FH(e,t){const n=e.message,a=t.message;return!(!n&&!a||n&&!a||!n&&a||n!==a||!V3(e,t)||!z3(e,t))}function jH(e,t){const n=w1(t),a=w1(e);return!(!n||!a||n.type!==a.type||n.value!==a.value||!V3(e,t)||!z3(e,t))}function z3(e,t){let n=L0(e),a=L0(t);if(!n&&!a)return!0;if(n&&!a||!n&&a||(n=n,a=a,a.length!==n.length))return!1;for(let o=0;o<a.length;o++){const i=a[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function V3(e,t){let n=e.fingerprint,a=t.fingerprint;if(!n&&!a)return!0;if(n&&!a||!n&&a)return!1;n=n,a=a;try{return n.join("")===a.join("")}catch{return!1}}function w1(e){return e.exception?.values?.[0]}const HH="thismessage:/";function F3(e){return"isRelative"in e}function j3(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,a=n?HH:void 0;try{if("canParse"in URL&&!URL.canParse(e,a))return;const o=new URL(e,a);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function UH(e){if(F3(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function uo(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",a=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:a,relative:t[5]+n+a}}function WH(e){return e.split(/[?#]/,1)[0]}function qH(e,t,n,a,o="auto.http.browser"){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,l=ta()&&t(s);if(e.endTimestamp&&l){const f=e.fetchData.__span;if(!f)return;const p=a[f];p&&(GH(p,e),delete a[f]);return}const c=!!tn(),u=l&&c?Pa(XH(s,i,o)):new Ta;if(e.fetchData.__span=u.spanContext().spanId,a[u.spanContext().spanId]=u,n(e.fetchData.url)){const f=e.args[0],p=e.args[1]||{},m=YH(f,p,ta()&&c?u:void 0);m&&(e.args[1]=p,p.headers=m)}const d=Qe();if(d){const f={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",u,f)}return u}function YH(e,t,n){const a=R3({span:n}),o=a["sentry-trace"],i=a.baggage;if(!o)return;const s=t.headers||(G4(e)?e.headers:void 0);if(s)if(KH(s)){const l=new Headers(s);if(l.get("sentry-trace")||l.set("sentry-trace",o),i){const c=l.get("baggage");c?Pl(c)||l.set("baggage",`${c},${i}`):l.set("baggage",i)}return l}else if(Array.isArray(s)){const l=[...s];s.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",o]);const c=s.find(u=>u[0]==="baggage"&&Pl(u[1]));return i&&!c&&l.push(["baggage",i]),l}else{const l="sentry-trace"in s?s["sentry-trace"]:void 0,c="baggage"in s?s.baggage:void 0,u=c?Array.isArray(c)?[...c]:[c]:[],d=c&&(Array.isArray(c)?c.find(f=>Pl(f)):Pl(c));return i&&!d&&u.push(i),{...s,"sentry-trace":l??o,baggage:u.length>0?u.join(","):void 0}}else return{...a}}function GH(e,t){if(t.response){n3(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const a=parseInt(n);a>0&&e.setAttribute("http.response_content_length",a)}}else t.error&&e.setStatus({code:Wt,message:"internal_error"});e.end()}function Pl(e){return e.split(",").some(t=>t.trim().startsWith(Dm))}function KH(e){return typeof Headers<"u"&&Zr(e,Headers)}function XH(e,t,n){const a=j3(e);return{name:a?`${t} ${UH(a)}`:t,attributes:JH(e,a,t,n)}}function JH(e,t,n,a){const o={url:e,type:"fetch","http.method":n,[xt]:a,[ea]:"http.client"};return t&&(F3(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function H3(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Es=rt;function QH(){return"history"in Es&&!!Es.history}function ZH(){if(!("fetch"in Es))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Vf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eU(){if(typeof EdgeRuntime=="string")return!0;if(!ZH())return!1;if(Vf(Es.fetch))return!0;let e=!1;const t=Es.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Vf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Le&&ke.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function U3(e,t){const n="fetch";Ra(n,e),$a(n,()=>W3(void 0,t))}function tU(e){const t="fetch-body-resolved";Ra(t,e),$a(t,()=>W3(rU))}function W3(e,t=!1){t&&!eU()||wn(rt,"fetch",function(n){return function(...a){const o=new Error,{method:i,url:s}=aU(a),l={args:a,fetchData:{method:i,url:s},startTimestamp:Ht()*1e3,virtualError:o,headers:oU(a)};return e||Vn("fetch",{...l}),n.apply(rt,a).then(async c=>(e?e(c):Vn("fetch",{...l,endTimestamp:Ht()*1e3,response:c}),c),c=>{if(Vn("fetch",{...l,endTimestamp:Ht()*1e3,error:c}),Im(c)&&c.stack===void 0&&(c.stack=o.stack,Bn(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(l.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function nU(e,t){if(e?.body){const n=e.body,a=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:l}=await a.read();clearTimeout(s),l&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),a.releaseLock(),n.cancel().then(null,()=>{})}}function rU(e){let t;try{t=e.clone()}catch{return}nU(t,()=>{Vn("fetch-body-resolved",{endTimestamp:Ht()*1e3,response:e})})}function Ff(e,t){return!!e&&typeof e=="object"&&!!e[t]}function k1(e){return typeof e=="string"?e:e?Ff(e,"url")?e.url:e.toString?e.toString():"":""}function aU(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,a]=e;return{url:k1(n),method:Ff(a,"method")?String(a.method).toUpperCase():"GET"}}const t=e[0];return{url:k1(t),method:Ff(t,"method")?String(t.method).toUpperCase():"GET"}}function oU(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(G4(t))return new Headers(t.headers)}catch{}}function iU(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function sU(){return"npm"}function lU(){return!iU()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function _1(){return typeof window<"u"&&(!lU()||cU())}function cU(){return rt.process?.type==="renderer"}const at=rt;let jf=0;function q3(){return jf>0}function uU(){jf++,setTimeout(()=>{jf--})}function Si(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Om(e))return e}catch{return e}const a=function(...o){try{const i=o.map(s=>Si(s,t));return e.apply(this,i)}catch(i){throw uU(),gu(s=>{s.addEventProcessor(l=>(t.mechanism&&(Mf(l,void 0),bi(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),bu(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}catch{}X4(a,e),Bn(e,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get(){return e.name}})}catch{}return a}function jm(){const e=Oi(),{referrer:t}=at.document||{},{userAgent:n}=at.navigator||{},a={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:a}}function Hm(e,t){const n=Um(e,t),a={type:hU(t),value:vU(t)};return n.length&&(a.stacktrace={frames:n}),a.type===void 0&&a.value===""&&(a.value="Unrecoverable error caught"),a}function dU(e,t,n,a){const i=Qe()?.getOptions().normalizeDepth,s=kU(t),l={__serialized__:v3(t,i)};if(s)return{exception:{values:[Hm(e,s)]},extra:l};const c={exception:{values:[{type:vu(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:bU(t,{isUnhandledRejection:a})}]},extra:l};if(n){const u=Um(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Pd(e,t){return{exception:{values:[Hm(e,t)]}}}function Um(e,t){const n=t.stacktrace||t.stack||"",a=pU(t),o=mU(t);try{return e(n,a,o)}catch{}return[]}const fU=/Minified React error #\d+;/i;function pU(e){return e&&fU.test(e.message)?1:0}function mU(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Y3(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function hU(e){const t=e?.name;return!t&&Y3(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function vU(e){const t=e?.message;return Y3(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function gU(e,t,n,a){const o=n?.syntheticException||void 0,i=Wm(e,t,o,a);return bi(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),ra(i)}function yU(e,t,n="info",a,o){const i=a?.syntheticException||void 0,s=Hf(e,t,i,o);return s.level=n,a?.event_id&&(s.event_id=a.event_id),ra(s)}function Wm(e,t,n,a,o){let i;if(q4(t)&&t.error)return Pd(e,t.error);if(R0(t)||GV(t)){const s=t;if("stack"in t)i=Pd(e,t);else{const l=s.name||(R0(s)?"DOMError":"DOMException"),c=s.message?`${l}: ${s.message}`:l;i=Hf(e,c,n,a),Mf(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Im(t)?Pd(e,t):xs(t)||vu(t)?(i=dU(e,t,n,o),bi(i,{synthetic:!0}),i):(i=Hf(e,t,n,a),Mf(i,`${t}`),bi(i,{synthetic:!0}),i)}function Hf(e,t,n,a){const o={};if(a&&n){const i=Um(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),bi(o,{synthetic:!0})}if(Mm(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function bU(e,{isUnhandledRejection:t}){const n=tF(e),a=t?"promise rejection":"exception";return q4(e)?`Event \`ErrorEvent\` captured as ${a} with message \`${e.message}\``:vu(e)?`Event \`${wU(e)}\` (type=${e.type}) captured as ${a}`:`Object captured as ${a} with keys: ${n}`}function wU(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function kU(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const _U=5e3;class SU extends Qj{constructor(t){const n=CU(t),a=at.SENTRY_SDK_SOURCE||sU();D3(n,"browser",["browser"],a),super(n);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:l}=this._options,c=s??l?.enableLogs;at.document&&(i||c)&&at.document.addEventListener("visibilitychange",()=>{at.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),c&&Td(this))}),c&&(this.on("flush",()=>{Td(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Td(this)},_U)})),o&&(this.on("postprocessEvent",hH),this.on("beforeSendSession",vH))}eventFromException(t,n){return gU(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",a){return yU(this._options.stackParser,t,n,a,this._options.attachStacktrace)}_prepareEvent(t,n,a,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,a,o)}}function CU(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:at.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ci=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qe=rt,xU=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Di=(e,t,n,a)=>{let o,i;return s=>{t.value>=0&&(s||a)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=xU(t.value,n),e(t)))}},EU=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Zs=(e=!0)=>{const t=qe.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ri=()=>Zs()?.activationStart??0,$i=(e,t=-1)=>{const n=Zs();let a="navigate";return n&&(qe.document?.prerendering||Ri()>0?a="prerender":qe.document?.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:EU(),navigationType:a}},Ad=new WeakMap;function qm(e,t){return Ad.get(e)||Ad.set(e,new t),Ad.get(e)}class Ic{constructor(){Ic.prototype.__init.call(this),Ic.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],a=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&a&&t.startTime-a.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Po=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const a=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return a.observe({type:e,buffered:!0,...n}),a}}catch{}},wu=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ss=-1;const TU=()=>qe.document?.visibilityState==="hidden"&&!qe.document?.prerendering?0:1/0,Mc=e=>{qe.document.visibilityState==="hidden"&&ss>-1&&(ss=e.type==="visibilitychange"?e.timeStamp:0,AU())},PU=()=>{addEventListener("visibilitychange",Mc,!0),addEventListener("prerenderingchange",Mc,!0)},AU=()=>{removeEventListener("visibilitychange",Mc,!0),removeEventListener("prerenderingchange",Mc,!0)},ku=()=>{if(qe.document&&ss<0){const e=Ri();ss=(qe.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??TU(),PU()}return{get firstHiddenTime(){return ss}}},el=e=>{qe.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},IU=[1800,3e3],MU=(e,t={})=>{el(()=>{const n=ku(),a=$i("FCP");let o;const s=Po("paint",l=>{for(const c of l)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(a.value=Math.max(c.startTime-Ri(),0),a.entries.push(c),o(!0)))});s&&(o=Di(e,a,IU,t.reportAllChanges))})},NU=[.1,.25],OU=(e,t={})=>{MU(wu(()=>{const n=$i("CLS",0);let a;const o=qm(t,Ic),i=l=>{for(const c of l)o._processEntry(c);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,a())},s=Po("layout-shift",i);s&&(a=Di(e,n,NU,t.reportAllChanges),qe.document?.addEventListener("visibilitychange",()=>{qe.document?.visibilityState==="hidden"&&(i(s.takeRecords()),a(!0))}),qe?.setTimeout?.(a))}))},_u=e=>{const t=n=>{(n.type==="pagehide"||qe.document?.visibilityState==="hidden")&&e(n)};qe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},BU=[100,300],LU=(e,t={})=>{el(()=>{const n=ku(),a=$i("FID");let o;const i=c=>{c.startTime<n.firstHiddenTime&&(a.value=c.processingStart-c.startTime,a.entries.push(c),o(!0))},s=c=>{c.forEach(i)},l=Po("first-input",s);o=Di(e,a,BU,t.reportAllChanges),l&&_u(wu(()=>{s(l.takeRecords()),l.disconnect()}))})};let G3=0,Id=1/0,Al=0;const DU=e=>{e.forEach(t=>{t.interactionId&&(Id=Math.min(Id,t.interactionId),Al=Math.max(Al,t.interactionId),G3=Al?(Al-Id)/7+1:0)})};let Uf;const K3=()=>Uf?G3:performance.interactionCount||0,RU=()=>{"interactionCount"in performance||Uf||(Uf=Po("event",DU,{type:"event",buffered:!0,durationThreshold:0}))},Md=10;let X3=0;const $U=()=>K3()-X3;class Nc{constructor(){Nc.prototype.__init.call(this),Nc.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){X3=K3(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor($U()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let a=this._longestInteractionMap.get(t.interactionId);if(a||this._longestInteractionList.length<Md||t.duration>n._latency){if(a?t.duration>a._latency?(a.entries=[t],a._latency=t.duration):t.duration===a._latency&&t.startTime===a.entries[0].startTime&&a.entries.push(t):(a={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(a.id,a),this._longestInteractionList.push(a)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>Md){const o=this._longestInteractionList.splice(Md);for(const i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(a)}}}const J3=e=>{const t=qe.requestIdleCallback||qe.setTimeout;qe.document?.visibilityState==="hidden"?e():(e=wu(e),t(e),_u(e))},zU=[200,500],VU=40,FU=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&el(()=>{RU();const n=$i("INP");let a;const o=qm(t,Nc),i=l=>{J3(()=>{for(const u of l)o._processEntry(u);const c=o._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,a())})},s=Po("event",i,{durationThreshold:t.durationThreshold??VU});a=Di(e,n,zU,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),_u(()=>{i(s.takeRecords()),a(!0)}))})};class jU{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const HU=[2500,4e3],UU=(e,t={})=>{el(()=>{const n=ku(),a=$i("LCP");let o;const i=qm(t,jU),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(a.value=Math.max(u.startTime-Ri(),0),a.entries=[u],o())},l=Po("largest-contentful-paint",s);if(l){o=Di(e,a,HU,t.reportAllChanges);const c=wu(()=>{s(l.takeRecords()),l.disconnect(),o(!0)});for(const u of["keydown","click","visibilitychange"])qe.document&&addEventListener(u,()=>J3(c),{capture:!0,once:!0})}})},WU=[800,1800],Wf=e=>{qe.document?.prerendering?el(()=>Wf(e)):qe.document?.readyState!=="complete"?addEventListener("load",()=>Wf(e),!0):setTimeout(e)},qU=(e,t={})=>{const n=$i("TTFB"),a=Di(e,n,WU,t.reportAllChanges);Wf(()=>{const o=Zs();o&&(n.value=Math.max(o.responseStart-Ri(),0),n.entries=[o],a(!0))})},ls={},Oc={};let Q3,Z3,ew,tw,nw;function Ym(e,t=!1){return tl("cls",e,GU,Q3,t)}function Gm(e,t=!1){return tl("lcp",e,XU,ew,t)}function rw(e){return tl("fid",e,KU,Z3)}function YU(e){return tl("ttfb",e,JU,tw)}function aw(e){return tl("inp",e,QU,nw)}function wo(e,t){return ow(e,t),Oc[e]||(ZU(e),Oc[e]=!0),iw(e,t)}function zi(e,t){const n=ls[e];if(n?.length)for(const a of n)try{a(t)}catch(o){Ci&&ke.error(`Error while triggering instrumentation handler.
|
|
664
|
+
Url: ${Ac(e)}`),!0}return!1}function IH(e,t){return t?.length?P3(e).some(n=>Wr(n,t)):!1}function MH(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Wr(n,t):!1}function NH(e,t){if(!t?.length)return!1;const n=Ac(e);return n?Wr(n,t):!1}function OH(e,t){if(!t?.length)return!0;const n=Ac(e);return n?Wr(n,t):!0}function BH(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ac(e){try{const n=[...e.exception?.values??[]].reverse().find(a=>a.mechanism?.parent_id===void 0&&a.stacktrace?.frames?.length)?.stacktrace?.frames;return n?BH(n):null}catch{return Le&&ke.error(`Cannot extract url for event ${Ka(e)}`),null}}function LH(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function DH(e,t,n,a,o,i){if(!o.exception?.values||!i||!Zr(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=zf(e,t,a,i.originalException,n,o.exception.values,s,0))}function zf(e,t,n,a,o,i,s,l){if(i.length>=n+1)return i;let c=[...i];if(Zr(a[o],Error)){y1(s,l);const u=e(t,a[o]),d=c.length;b1(u,o,d,l),c=zf(e,t,n,a[o],o,[u,...c],u,d)}return Array.isArray(a.errors)&&a.errors.forEach((u,d)=>{if(Zr(u,Error)){y1(s,l);const f=e(t,u),p=c.length;b1(f,`errors[${d}]`,p,l),c=zf(e,t,n,u,o,[f,...c],f,p)}}),c}function y1(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function b1(e,t,n,a){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:a}}function RH(e){const t="console";Ra(t,e),$a(t,$H)}function $H(){"console"in rt&&zV.forEach(function(e){e in rt.console&&wn(rt.console,e,function(t){return Sc[e]=t,function(...n){Vn("console",{args:n,level:e}),Sc[e]?.apply(rt.console,n)}})})}function $3(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const zH="Dedupe",VH=()=>{let e;return{name:zH,processEvent(t){if(t.type)return t;try{if(jH(t,e))return Le&&ke.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},FH=VH;function jH(e,t){return t?!!(HH(e,t)||UH(e,t)):!1}function HH(e,t){const n=e.message,a=t.message;return!(!n&&!a||n&&!a||!n&&a||n!==a||!V3(e,t)||!z3(e,t))}function UH(e,t){const n=w1(t),a=w1(e);return!(!n||!a||n.type!==a.type||n.value!==a.value||!V3(e,t)||!z3(e,t))}function z3(e,t){let n=L0(e),a=L0(t);if(!n&&!a)return!0;if(n&&!a||!n&&a||(n=n,a=a,a.length!==n.length))return!1;for(let o=0;o<a.length;o++){const i=a[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function V3(e,t){let n=e.fingerprint,a=t.fingerprint;if(!n&&!a)return!0;if(n&&!a||!n&&a)return!1;n=n,a=a;try{return n.join("")===a.join("")}catch{return!1}}function w1(e){return e.exception?.values?.[0]}const WH="thismessage:/";function F3(e){return"isRelative"in e}function j3(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,a=n?WH:void 0;try{if("canParse"in URL&&!URL.canParse(e,a))return;const o=new URL(e,a);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function qH(e){if(F3(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function uo(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",a=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:a,relative:t[5]+n+a}}function YH(e){return e.split(/[?#]/,1)[0]}function GH(e,t,n,a,o="auto.http.browser"){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,l=ta()&&t(s);if(e.endTimestamp&&l){const f=e.fetchData.__span;if(!f)return;const p=a[f];p&&(XH(p,e),delete a[f]);return}const c=!!tn(),u=l&&c?Pa(QH(s,i,o)):new Ta;if(e.fetchData.__span=u.spanContext().spanId,a[u.spanContext().spanId]=u,n(e.fetchData.url)){const f=e.args[0],p=e.args[1]||{},m=KH(f,p,ta()&&c?u:void 0);m&&(e.args[1]=p,p.headers=m)}const d=Qe();if(d){const f={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",u,f)}return u}function KH(e,t,n){const a=R3({span:n}),o=a["sentry-trace"],i=a.baggage;if(!o)return;const s=t.headers||(G4(e)?e.headers:void 0);if(s)if(JH(s)){const l=new Headers(s);if(l.get("sentry-trace")||l.set("sentry-trace",o),i){const c=l.get("baggage");c?Pl(c)||l.set("baggage",`${c},${i}`):l.set("baggage",i)}return l}else if(Array.isArray(s)){const l=[...s];s.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",o]);const c=s.find(u=>u[0]==="baggage"&&Pl(u[1]));return i&&!c&&l.push(["baggage",i]),l}else{const l="sentry-trace"in s?s["sentry-trace"]:void 0,c="baggage"in s?s.baggage:void 0,u=c?Array.isArray(c)?[...c]:[c]:[],d=c&&(Array.isArray(c)?c.find(f=>Pl(f)):Pl(c));return i&&!d&&u.push(i),{...s,"sentry-trace":l??o,baggage:u.length>0?u.join(","):void 0}}else return{...a}}function XH(e,t){if(t.response){n3(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const a=parseInt(n);a>0&&e.setAttribute("http.response_content_length",a)}}else t.error&&e.setStatus({code:Wt,message:"internal_error"});e.end()}function Pl(e){return e.split(",").some(t=>t.trim().startsWith(Dm))}function JH(e){return typeof Headers<"u"&&Zr(e,Headers)}function QH(e,t,n){const a=j3(e);return{name:a?`${t} ${qH(a)}`:t,attributes:ZH(e,a,t,n)}}function ZH(e,t,n,a){const o={url:e,type:"fetch","http.method":n,[xt]:a,[ea]:"http.client"};return t&&(F3(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function H3(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Es=rt;function eU(){return"history"in Es&&!!Es.history}function tU(){if(!("fetch"in Es))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Vf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nU(){if(typeof EdgeRuntime=="string")return!0;if(!tU())return!1;if(Vf(Es.fetch))return!0;let e=!1;const t=Es.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Vf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Le&&ke.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function U3(e,t){const n="fetch";Ra(n,e),$a(n,()=>W3(void 0,t))}function rU(e){const t="fetch-body-resolved";Ra(t,e),$a(t,()=>W3(oU))}function W3(e,t=!1){t&&!nU()||wn(rt,"fetch",function(n){return function(...a){const o=new Error,{method:i,url:s}=iU(a),l={args:a,fetchData:{method:i,url:s},startTimestamp:Ht()*1e3,virtualError:o,headers:sU(a)};return e||Vn("fetch",{...l}),n.apply(rt,a).then(async c=>(e?e(c):Vn("fetch",{...l,endTimestamp:Ht()*1e3,response:c}),c),c=>{if(Vn("fetch",{...l,endTimestamp:Ht()*1e3,error:c}),Im(c)&&c.stack===void 0&&(c.stack=o.stack,Bn(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(l.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function aU(e,t){if(e?.body){const n=e.body,a=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:l}=await a.read();clearTimeout(s),l&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),a.releaseLock(),n.cancel().then(null,()=>{})}}function oU(e){let t;try{t=e.clone()}catch{return}aU(t,()=>{Vn("fetch-body-resolved",{endTimestamp:Ht()*1e3,response:e})})}function Ff(e,t){return!!e&&typeof e=="object"&&!!e[t]}function k1(e){return typeof e=="string"?e:e?Ff(e,"url")?e.url:e.toString?e.toString():"":""}function iU(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,a]=e;return{url:k1(n),method:Ff(a,"method")?String(a.method).toUpperCase():"GET"}}const t=e[0];return{url:k1(t),method:Ff(t,"method")?String(t.method).toUpperCase():"GET"}}function sU(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(G4(t))return new Headers(t.headers)}catch{}}function lU(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function cU(){return"npm"}function uU(){return!lU()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function _1(){return typeof window<"u"&&(!uU()||dU())}function dU(){return rt.process?.type==="renderer"}const at=rt;let jf=0;function q3(){return jf>0}function fU(){jf++,setTimeout(()=>{jf--})}function Si(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Om(e))return e}catch{return e}const a=function(...o){try{const i=o.map(s=>Si(s,t));return e.apply(this,i)}catch(i){throw fU(),gu(s=>{s.addEventProcessor(l=>(t.mechanism&&(Mf(l,void 0),bi(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),bu(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}catch{}X4(a,e),Bn(e,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get(){return e.name}})}catch{}return a}function jm(){const e=Oi(),{referrer:t}=at.document||{},{userAgent:n}=at.navigator||{},a={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:a}}function Hm(e,t){const n=Um(e,t),a={type:gU(t),value:yU(t)};return n.length&&(a.stacktrace={frames:n}),a.type===void 0&&a.value===""&&(a.value="Unrecoverable error caught"),a}function pU(e,t,n,a){const i=Qe()?.getOptions().normalizeDepth,s=SU(t),l={__serialized__:v3(t,i)};if(s)return{exception:{values:[Hm(e,s)]},extra:l};const c={exception:{values:[{type:vu(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:kU(t,{isUnhandledRejection:a})}]},extra:l};if(n){const u=Um(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Pd(e,t){return{exception:{values:[Hm(e,t)]}}}function Um(e,t){const n=t.stacktrace||t.stack||"",a=hU(t),o=vU(t);try{return e(n,a,o)}catch{}return[]}const mU=/Minified React error #\d+;/i;function hU(e){return e&&mU.test(e.message)?1:0}function vU(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Y3(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function gU(e){const t=e?.name;return!t&&Y3(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function yU(e){const t=e?.message;return Y3(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function bU(e,t,n,a){const o=n?.syntheticException||void 0,i=Wm(e,t,o,a);return bi(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),ra(i)}function wU(e,t,n="info",a,o){const i=a?.syntheticException||void 0,s=Hf(e,t,i,o);return s.level=n,a?.event_id&&(s.event_id=a.event_id),ra(s)}function Wm(e,t,n,a,o){let i;if(q4(t)&&t.error)return Pd(e,t.error);if(R0(t)||XV(t)){const s=t;if("stack"in t)i=Pd(e,t);else{const l=s.name||(R0(s)?"DOMError":"DOMException"),c=s.message?`${l}: ${s.message}`:l;i=Hf(e,c,n,a),Mf(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Im(t)?Pd(e,t):xs(t)||vu(t)?(i=pU(e,t,n,o),bi(i,{synthetic:!0}),i):(i=Hf(e,t,n,a),Mf(i,`${t}`),bi(i,{synthetic:!0}),i)}function Hf(e,t,n,a){const o={};if(a&&n){const i=Um(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),bi(o,{synthetic:!0})}if(Mm(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function kU(e,{isUnhandledRejection:t}){const n=rF(e),a=t?"promise rejection":"exception";return q4(e)?`Event \`ErrorEvent\` captured as ${a} with message \`${e.message}\``:vu(e)?`Event \`${_U(e)}\` (type=${e.type}) captured as ${a}`:`Object captured as ${a} with keys: ${n}`}function _U(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function SU(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const CU=5e3;class xU extends eH{constructor(t){const n=EU(t),a=at.SENTRY_SDK_SOURCE||cU();D3(n,"browser",["browser"],a),super(n);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:l}=this._options,c=s??l?.enableLogs;at.document&&(i||c)&&at.document.addEventListener("visibilitychange",()=>{at.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),c&&Td(this))}),c&&(this.on("flush",()=>{Td(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Td(this)},CU)})),o&&(this.on("postprocessEvent",gH),this.on("beforeSendSession",yH))}eventFromException(t,n){return bU(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",a){return wU(this._options.stackParser,t,n,a,this._options.attachStacktrace)}_prepareEvent(t,n,a,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,a,o)}}function EU(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:at.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ci=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qe=rt,TU=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Di=(e,t,n,a)=>{let o,i;return s=>{t.value>=0&&(s||a)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=TU(t.value,n),e(t)))}},PU=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Zs=(e=!0)=>{const t=qe.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ri=()=>Zs()?.activationStart??0,$i=(e,t=-1)=>{const n=Zs();let a="navigate";return n&&(qe.document?.prerendering||Ri()>0?a="prerender":qe.document?.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:PU(),navigationType:a}},Ad=new WeakMap;function qm(e,t){return Ad.get(e)||Ad.set(e,new t),Ad.get(e)}class Ic{constructor(){Ic.prototype.__init.call(this),Ic.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],a=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&a&&t.startTime-a.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Po=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const a=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return a.observe({type:e,buffered:!0,...n}),a}}catch{}},wu=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ss=-1;const AU=()=>qe.document?.visibilityState==="hidden"&&!qe.document?.prerendering?0:1/0,Mc=e=>{qe.document.visibilityState==="hidden"&&ss>-1&&(ss=e.type==="visibilitychange"?e.timeStamp:0,MU())},IU=()=>{addEventListener("visibilitychange",Mc,!0),addEventListener("prerenderingchange",Mc,!0)},MU=()=>{removeEventListener("visibilitychange",Mc,!0),removeEventListener("prerenderingchange",Mc,!0)},ku=()=>{if(qe.document&&ss<0){const e=Ri();ss=(qe.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??AU(),IU()}return{get firstHiddenTime(){return ss}}},el=e=>{qe.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},NU=[1800,3e3],OU=(e,t={})=>{el(()=>{const n=ku(),a=$i("FCP");let o;const s=Po("paint",l=>{for(const c of l)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(a.value=Math.max(c.startTime-Ri(),0),a.entries.push(c),o(!0)))});s&&(o=Di(e,a,NU,t.reportAllChanges))})},BU=[.1,.25],LU=(e,t={})=>{OU(wu(()=>{const n=$i("CLS",0);let a;const o=qm(t,Ic),i=l=>{for(const c of l)o._processEntry(c);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,a())},s=Po("layout-shift",i);s&&(a=Di(e,n,BU,t.reportAllChanges),qe.document?.addEventListener("visibilitychange",()=>{qe.document?.visibilityState==="hidden"&&(i(s.takeRecords()),a(!0))}),qe?.setTimeout?.(a))}))},_u=e=>{const t=n=>{(n.type==="pagehide"||qe.document?.visibilityState==="hidden")&&e(n)};qe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},DU=[100,300],RU=(e,t={})=>{el(()=>{const n=ku(),a=$i("FID");let o;const i=c=>{c.startTime<n.firstHiddenTime&&(a.value=c.processingStart-c.startTime,a.entries.push(c),o(!0))},s=c=>{c.forEach(i)},l=Po("first-input",s);o=Di(e,a,DU,t.reportAllChanges),l&&_u(wu(()=>{s(l.takeRecords()),l.disconnect()}))})};let G3=0,Id=1/0,Al=0;const $U=e=>{e.forEach(t=>{t.interactionId&&(Id=Math.min(Id,t.interactionId),Al=Math.max(Al,t.interactionId),G3=Al?(Al-Id)/7+1:0)})};let Uf;const K3=()=>Uf?G3:performance.interactionCount||0,zU=()=>{"interactionCount"in performance||Uf||(Uf=Po("event",$U,{type:"event",buffered:!0,durationThreshold:0}))},Md=10;let X3=0;const VU=()=>K3()-X3;class Nc{constructor(){Nc.prototype.__init.call(this),Nc.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){X3=K3(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(VU()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let a=this._longestInteractionMap.get(t.interactionId);if(a||this._longestInteractionList.length<Md||t.duration>n._latency){if(a?t.duration>a._latency?(a.entries=[t],a._latency=t.duration):t.duration===a._latency&&t.startTime===a.entries[0].startTime&&a.entries.push(t):(a={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(a.id,a),this._longestInteractionList.push(a)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>Md){const o=this._longestInteractionList.splice(Md);for(const i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(a)}}}const J3=e=>{const t=qe.requestIdleCallback||qe.setTimeout;qe.document?.visibilityState==="hidden"?e():(e=wu(e),t(e),_u(e))},FU=[200,500],jU=40,HU=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&el(()=>{zU();const n=$i("INP");let a;const o=qm(t,Nc),i=l=>{J3(()=>{for(const u of l)o._processEntry(u);const c=o._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,a())})},s=Po("event",i,{durationThreshold:t.durationThreshold??jU});a=Di(e,n,FU,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),_u(()=>{i(s.takeRecords()),a(!0)}))})};class UU{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const WU=[2500,4e3],qU=(e,t={})=>{el(()=>{const n=ku(),a=$i("LCP");let o;const i=qm(t,UU),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(a.value=Math.max(u.startTime-Ri(),0),a.entries=[u],o())},l=Po("largest-contentful-paint",s);if(l){o=Di(e,a,WU,t.reportAllChanges);const c=wu(()=>{s(l.takeRecords()),l.disconnect(),o(!0)});for(const u of["keydown","click","visibilitychange"])qe.document&&addEventListener(u,()=>J3(c),{capture:!0,once:!0})}})},YU=[800,1800],Wf=e=>{qe.document?.prerendering?el(()=>Wf(e)):qe.document?.readyState!=="complete"?addEventListener("load",()=>Wf(e),!0):setTimeout(e)},GU=(e,t={})=>{const n=$i("TTFB"),a=Di(e,n,YU,t.reportAllChanges);Wf(()=>{const o=Zs();o&&(n.value=Math.max(o.responseStart-Ri(),0),n.entries=[o],a(!0))})},ls={},Oc={};let Q3,Z3,ew,tw,nw;function Ym(e,t=!1){return tl("cls",e,XU,Q3,t)}function Gm(e,t=!1){return tl("lcp",e,QU,ew,t)}function rw(e){return tl("fid",e,JU,Z3)}function KU(e){return tl("ttfb",e,ZU,tw)}function aw(e){return tl("inp",e,eW,nw)}function wo(e,t){return ow(e,t),Oc[e]||(tW(e),Oc[e]=!0),iw(e,t)}function zi(e,t){const n=ls[e];if(n?.length)for(const a of n)try{a(t)}catch(o){Ci&&ke.error(`Error while triggering instrumentation handler.
|
|
665
665
|
Type: ${e}
|
|
666
666
|
Name: ${Qr(a)}
|
|
667
|
-
Error:`,o)}}function GU(){return OU(e=>{zi("cls",{metric:e}),Q3=e},{reportAllChanges:!0})}function KU(){return LU(e=>{zi("fid",{metric:e}),Z3=e})}function XU(){return UU(e=>{zi("lcp",{metric:e}),ew=e},{reportAllChanges:!0})}function JU(){return qU(e=>{zi("ttfb",{metric:e}),tw=e})}function QU(){return FU(e=>{zi("inp",{metric:e}),nw=e})}function tl(e,t,n,a,o=!1){ow(e,t);let i;return Oc[e]||(i=n(),Oc[e]=!0),a&&t({metric:a}),iw(e,t,o?i:void 0)}function ZU(e){const t={};e==="event"&&(t.durationThreshold=0),Po(e,n=>{zi(e,{entries:n})},t)}function ow(e,t){ls[e]=ls[e]||[],ls[e].push(t)}function iw(e,t,n){return()=>{n&&n();const a=ls[e];if(!a)return;const o=a.indexOf(t);o!==-1&&a.splice(o,1)}}function eW(e){return"duration"in e}function Nd(e){return typeof e=="number"&&isFinite(e)}function aa(e,t,n,{...a}){const o=tt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Vm(e,()=>{const i=Pa({startTime:t,...a});return i&&i.end(n),i})}function Km(e){const t=Qe();if(!t)return;const{name:n,transaction:a,attributes:o,startTime:i}=e,{release:s,environment:l,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),f=lt(),p=f.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0;let v;try{v=f.getScopeData().contexts.profile.profile_id}catch{}const y={release:s,environment:l,user:m||void 0,profile_id:v||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":qe.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o};return Pa({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function Su(){return qe.addEventListener&&qe.performance}function Ct(e){return e/1e3}function sw(e){let t="unknown",n="unknown",a="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=a==="h"?"http":a,n=e.split(a)[1];break}a+=o}return a===e&&(t=a),{name:t,version:n}}function lw(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function cw(e,t){let n,a=!1;function o(l){!a&&n&&t(l,n),a=!0}_u(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(l,c)=>{c?.isRedirect||(o("navigation"),i?.(),s?.())}),s=e.on("afterStartPageLoadSpan",l=>{n=l.spanContext().spanId,s?.()})}function tW(e){let t=0,n;if(!lw("layout-shift"))return;const a=Ym(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{nW(t,n,i,o),a()})}function nW(e,t,n,a){Ci&&ke.log(`Sending CLS span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.sources[0]?.node):"Layout shift",l={[xt]:"auto.http.browser.cls",[ea]:"ui.webvital.cls",[Li]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":a};t?.sources&&t.sources.forEach((u,d)=>{l[`cls.source.${d+1}`]=Hn(u.node)});const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("cls",{[Xs]:"",[Js]:e}),c.end(o))}function rW(e){let t=0,n;if(!lw("largest-contentful-paint"))return;const a=Gm(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{aW(t,n,i,o),a()})}function aW(e,t,n,a){Ci&&ke.log(`Sending LCP span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.element):"Largest contentful paint",l={[xt]:"auto.http.browser.lcp",[ea]:"ui.webvital.lcp",[Li]:0,"sentry.pageload.span_id":n,"sentry.report_event":a};t&&(t.element&&(l["lcp.element"]=Hn(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(l["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(l["lcp.renderTime"]=t.renderTime),t.size!=null&&(l["lcp.size"]=t.size));const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("lcp",{[Xs]:"millisecond",[Js]:e}),c.end(o))}const oW=2147483647;let S1=0,Qt={},gn,Bc;function iW({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const a=Su();if(a&&hn()){a.mark&&qe.performance.mark("sentry-tracing-init");const o=fW(),i=t?rW(n):dW(),s=pW(),l=e?tW(n):uW();return()=>{o(),i?.(),s(),l?.()}}return()=>{}}function sW(){wo("longtask",({entries:e})=>{const t=tn();if(!t)return;const{op:n,start_timestamp:a}=tt(t);for(const o of e){const i=Ct(hn()+o.startTime),s=Ct(o.duration);n==="navigation"&&a&&i<a||aa(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[xt]:"auto.ui.browser.metrics"}})}})}function lW(){new PerformanceObserver(t=>{const n=tn();if(n)for(const a of t.getEntries()){if(!a.scripts[0])continue;const o=Ct(hn()+a.startTime),{start_timestamp:i,op:s}=tt(n);if(s==="navigation"&&i&&o<i)continue;const l=Ct(a.duration),c={[xt]:"auto.ui.browser.metrics"},u=a.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:m,sourceCharPosition:v}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),v!==-1&&(c["browser.script.source_char_position"]=v),aa(n,o,o+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function cW(){wo("event",({entries:e})=>{const t=tn();if(t){for(const n of e)if(n.name==="click"){const a=Ct(hn()+n.startTime),o=Ct(n.duration),i={name:Hn(n.target),op:`ui.interaction.${n.name}`,startTime:a,attributes:{[xt]:"auto.ui.browser.metrics"}},s=K4(n.target);s&&(i.attributes["ui.component_name"]=s),aa(t,a,a+o,i)}}})}function uW(){return Ym(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.cls={value:e.value,unit:""},Bc=t)},!0)}function dW(){return Gm(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.lcp={value:e.value,unit:"millisecond"},gn=t)},!0)}function fW(){return rw(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ct(hn()),a=Ct(t.startTime);Qt.fid={value:e.value,unit:"millisecond"},Qt["mark.fid"]={value:n+a,unit:"second"}})}function pW(){return YU(({metric:e})=>{e.entries[e.entries.length-1]&&(Qt.ttfb={value:e.value,unit:"millisecond"})})}function mW(e,t){const n=Su(),a=hn();if(!n?.getEntries||!a)return;const o=Ct(a),i=n.getEntries(),{op:s,start_timestamp:l}=tt(e);if(i.slice(S1).forEach(c=>{const u=Ct(c.startTime),d=Ct(Math.max(0,c.duration));if(!(s==="navigation"&&l&&o+u<l))switch(c.entryType){case"navigation":{gW(e,c,o);break}case"mark":case"paint":case"measure":{hW(e,c,u,d,o,t.ignorePerformanceApiSpans);const f=ku(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(Qt.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Qt.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{wW(e,c,c.name,u,d,o,t.ignoreResourceSpans);break}}}),S1=Math.max(i.length-1,0),kW(e),s==="pageload"){SW(Qt);const c=Qt["mark.fid"];c&&Qt.fid&&(aa(e,c.value,c.value+Ct(Qt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[xt]:"auto.ui.browser.metrics"}}),delete Qt["mark.fid"]),t.recordClsOnPageloadSpan||delete Qt.cls,t.recordLcpOnPageloadSpan||delete Qt.lcp,Object.entries(Qt).forEach(([u,d])=>{sj(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Ri()),_W(e,t)}gn=void 0,Bc=void 0,Qt={}}function hW(e,t,n,a,o,i){if(["mark","measure"].includes(t.entryType)&&Wr(t.name,i))return;const s=Zs(!1),l=Ct(s?s.requestStart:0),c=o+Math.max(n,l),u=o+n,d=u+a,f={[xt]:"auto.resource.browser.metrics"};c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),vW(f,t),c<=d&&aa(e,c,d,{name:t.name,op:t.entryType,attributes:f})}function vW(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[a,o]of Object.entries(n))if(o&&Cs(o))e[`sentry.browser.measure.detail.${a}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${a}`]=JSON.stringify(o)}catch{}return}if(Cs(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function gW(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(a=>{Il(e,t,a,n)}),Il(e,t,"secureConnection",n,"TLS/SSL"),Il(e,t,"fetch",n,"cache"),Il(e,t,"domainLookup",n,"DNS"),bW(e,t,n)}function Il(e,t,n,a,o=n){const i=yW(n),s=t[i],l=t[`${n}Start`];!l||!s||aa(e,a+Ct(l),a+Ct(s),{op:`browser.${o}`,name:t.name,attributes:{[xt]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function yW(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function bW(e,t,n){const a=n+Ct(t.requestStart),o=n+Ct(t.responseEnd),i=n+Ct(t.responseStart);t.responseEnd&&(aa(e,a,o,{op:"browser.request",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}),aa(e,i,o,{op:"browser.response",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}))}function wW(e,t,n,a,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(l))return;const c=uo(n),u={[xt]:"auto.resource.browser.metrics"};Od(u,t,"transferSize","http.response_transfer_size"),Od(u,t,"encodedBodySize","http.response_content_length"),Od(u,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;d!=null&&(u["http.response_delivery_type"]=d);const f=t.renderBlockingStatus;if(f&&(u["resource.render_blocking_status"]=f),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(qe.location.origin),t.nextHopProtocol!=null){const{name:v,version:y}=sw(t.nextHopProtocol);u["network.protocol.name"]=v,u["network.protocol.version"]=y}const p=i+a,m=p+o;aa(e,p,m,{name:n.replace(qe.location.origin,""),op:l,attributes:u})}function kW(e){const t=qe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Nd(n.rtt)&&(Qt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Nd(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Nd(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function _W(e,t){gn&&t.recordLcpOnPageloadSpan&&(gn.element&&e.setAttribute("lcp.element",Hn(gn.element)),gn.id&&e.setAttribute("lcp.id",gn.id),gn.url&&e.setAttribute("lcp.url",gn.url.trim().slice(0,200)),gn.loadTime!=null&&e.setAttribute("lcp.loadTime",gn.loadTime),gn.renderTime!=null&&e.setAttribute("lcp.renderTime",gn.renderTime),e.setAttribute("lcp.size",gn.size)),Bc?.sources&&t.recordClsOnPageloadSpan&&Bc.sources.forEach((n,a)=>e.setAttribute(`cls.source.${a+1}`,Hn(n.node)))}function Od(e,t,n,a){const o=t[n];o!=null&&o<oW&&(e[a]=o)}function SW(e){const t=Zs(!1);if(!t)return;const{responseStart:n,requestStart:a}=t;a<=n&&(e["ttfb.requestTime"]={value:n-a,unit:"millisecond"})}function CW(){return Su()&&hn()?wo("element",xW):()=>{}}const xW=({entries:e})=>{const t=tn(),n=t?en(t):void 0,a=n?tt(n).description:lt().getScopeData().transactionName;e.forEach(o=>{const i=o;if(!i.identifier)return;const s=i.name,l=i.renderTime,c=i.loadTime,[u,d]=c?[Ct(c),"load-time"]:l?[Ct(l),"render-time"]:[Ht(),"entry-emission"],f=s==="image-paint"?Ct(Math.max(0,(l??0)-(c??0))):0,p={[xt]:"auto.ui.browser.elementtiming",[ea]:"ui.elementtiming",[kn]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":a,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":l,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":s};pj({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},m=>{m.end(u+f)})})},EW=1e3;let C1,qf,Yf;function uw(e){Ra("dom",e),$a("dom",TW)}function TW(){if(!qe.document)return;const e=Vn.bind(null,"dom"),t=x1(e,!0);qe.document.addEventListener("click",t,!1),qe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=qe[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(wn(o,"addEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){const f=x1(e);d.handler=f,i.call(this,s,f,c)}d.refCount++}catch{}return i.call(this,s,l,c)}}),wn(o,"removeEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,c)}}))})}function PW(e){if(e.type!==qf)return!1;try{if(!e.target||e.target._sentryId!==Yf)return!1}catch{}return!0}function AW(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function x1(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const a=IW(n);if(AW(n.type,a))return;Bn(n,"_sentryCaptured",!0),a&&!a._sentryId&&Bn(a,"_sentryId",Nn());const o=n.type==="keypress"?"input":n.type;PW(n)||(e({event:n,name:o,global:t}),qf=n.type,Yf=a?a._sentryId:void 0),clearTimeout(C1),C1=qe.setTimeout(()=>{Yf=void 0,qf=void 0},EW)}}function IW(e){try{return e.target}catch{return null}}let Ml;function Cu(e){const t="history";Ra(t,e),$a(t,MW)}function MW(){if(qe.addEventListener("popstate",()=>{const t=qe.location.href,n=Ml;if(Ml=t,n===t)return;Vn("history",{from:n,to:t})}),!QH())return;function e(t){return function(...n){const a=n.length>2?n[2]:void 0;if(a){const o=Ml,i=NW(String(a));if(Ml=i,o===i)return t.apply(this,n);Vn("history",{from:o,to:i})}return t.apply(this,n)}}wn(qe.history,"pushState",e),wn(qe.history,"replaceState",e)}function NW(e){try{return new URL(e,qe.location.origin).toString()}catch{return e}}const Ql={};function dw(e){const t=Ql[e];if(t)return t;let n=qe[e];if(Vf(n))return Ql[e]=n.bind(qe);const a=qe.document;if(a&&typeof a.createElement=="function")try{const o=a.createElement("iframe");o.hidden=!0,a.head.appendChild(o);const i=o.contentWindow;i?.[e]&&(n=i[e]),a.head.removeChild(o)}catch(o){Ci&&ke.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Ql[e]=n.bind(qe))}function E1(e){Ql[e]=void 0}function nl(...e){return dw("setTimeout")(...e)}const eo="__sentry_xhr_v3__";function fw(e){Ra("xhr",e),$a("xhr",OW)}function OW(){if(!qe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,a){const o=new Error,i=Ht()*1e3,s=Ur(a[0])?a[0].toUpperCase():void 0,l=BW(a[1]);if(!s||!l)return t.apply(n,a);n[eo]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[eo];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:Ht()*1e3,startTimestamp:i,xhr:n,virtualError:o};Vn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,m]=f,v=d[eo];return v&&Ur(p)&&Ur(m)&&(v.request_headers[p.toLowerCase()]=m),u.apply(d,f)}}),t.apply(n,a)}}),e.send=new Proxy(e.send,{apply(t,n,a){const o=n[eo];if(!o)return t.apply(n,a);a[0]!==void 0&&(o.body=a[0]);const i={startTimestamp:Ht()*1e3,xhr:n};return Vn("xhr",i),t.apply(n,a)}})}function BW(e){if(Ur(e))return e;try{return e.toString()}catch{}}function pw(e){return new URLSearchParams(e).toString()}function mw(e,t=ke){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[pw(e)];if(!e)return[void 0]}catch(n){return Ci&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ci&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hw(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Bd=[],Zl=new Map,LW=60;function DW(){if(Su()&&hn()){const t=RW();return()=>{t()}}return()=>{}}const T1={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 RW(){return aw($W)}const $W=({metric:e})=>{if(e.value==null)return;const t=Ct(e.value);if(t>LW)return;const n=e.entries.find(v=>v.duration===e.value&&T1[v.name]);if(!n)return;const{interactionId:a}=n,o=T1[n.name],i=Ct(hn()+n.startTime),s=tn(),l=s?en(s):void 0,u=(a!=null?Zl.get(a):void 0)||l,d=u?tt(u).description:lt().getScopeData().transactionName,f=Hn(n.target),p={[xt]:"auto.http.browser.inp",[ea]:`ui.interaction.${o}`,[Li]:n.duration},m=Km({name:f,transaction:d,attributes:p,startTime:i});m&&(m.addEvent("inp",{[Xs]:"millisecond",[Js]:e.value}),m.end(i+t))};function zW(){const e=({entries:t})=>{const n=tn(),a=n&&en(n);t.forEach(o=>{if(!eW(o)||!a)return;const i=o.interactionId;if(i!=null&&!Zl.has(i)){if(Bd.length>10){const s=Bd.shift();Zl.delete(s)}Bd.push(i),Zl.set(i,a)}})};wo("event",e),wo("first-input",e)}function VW(e,t=dw("fetch")){let n=0,a=0;function o(i){const s=i.body.length;n+=s,a++;const l={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return E1("fetch"),Pc("No fetch implementation available");try{return t(e.url,l).then(c=>(n-=s,a--,{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 E1("fetch"),n-=s,a--,Pc(c)}}return dH(e,o)}const FW=30,jW=50;function Gf(e,t,n,a){const o={filename:e,function:t==="<anonymous>"?yo:t,in_app:!0};return n!==void 0&&(o.lineno=n),a!==void 0&&(o.colno=a),o}const HW=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,UW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,WW=/\((\S*)(?::(\d+))(?::(\d+))\)/,qW=e=>{const t=HW.exec(e);if(t){const[,a,o,i]=t;return Gf(a,yo,+o,+i)}const n=UW.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=WW.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=vw(n[1]||yo,n[2]);return Gf(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},YW=[FW,qW],GW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,KW=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,XW=e=>{const t=GW.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=KW.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let a=t[3],o=t[1]||yo;return[o,a]=vw(o,a),Gf(a,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},JW=[jW,XW],QW=[YW,JW],ZW=j4(...QW),vw=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return n||a?[e.indexOf("@")!==-1?e.split("@")[0]:yo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Un=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nl=1024,eq="Breadcrumbs",tq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eq,setup(n){t.console&&LH(oq(n)),t.dom&&uw(aq(n,t.dom)),t.xhr&&fw(iq(n)),t.fetch&&U3(sq(n)),t.history&&Cu(lq(n)),t.sentry&&n.on("beforeSendEvent",rq(n))}}},nq=tq;function rq(e){return function(n){Qe()===e&&Ia({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ka(n)},{event:n})}}function aq(e,t){return function(a){if(Qe()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,l=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;l&&l>Nl&&(Un&&ke.warn(`\`dom.maxStringLength\` cannot exceed ${Nl}, but a value of ${l} was configured. Sentry will use ${Nl} instead.`),l=Nl),typeof s=="string"&&(s=[s]);try{const u=a.event,d=cq(u)?u.target:u;o=Hn(d,{keyAttrs:s,maxStringLength:l}),i=K4(d)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${a.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ia(c,{event:a.event,name:a.name,global:a.global})}}function oq(e){return function(n){if(Qe()!==e)return;const a={category:"console",data:{arguments:n.args,logger:"console"},level:$3(n.level),message:$0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)a.message=`Assertion failed: ${$0(n.args.slice(1)," ")||"console.assert"}`,a.data.arguments=n.args.slice(1);else return;Ia(a,{input:n.args,level:n.level})}}function iq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n,i=n.xhr[eo];if(!a||!o||!i)return;const{method:s,url:l,status_code:c,body:u}=i,d={method:s,url:l,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:a,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:H3(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),Ia(p,f)}}function sq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:a,endTimestamp:o},l={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",l,s),Ia(l,s)}else{const i=n.response,s={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const l={input:n.args,response:i,startTimestamp:a,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:H3(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),Ia(c,l)}}}function lq(e){return function(n){if(Qe()!==e)return;let a=n.from,o=n.to;const i=uo(at.location.href);let s=a?uo(a):void 0;const l=uo(o);s?.path||(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(a=s.relative),Ia({category:"navigation",data:{from:a,to:o}})}}function cq(e){return!!e&&!!e.target}const uq=["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"],dq="BrowserApiErrors",fq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:dq,setupOnce(){t.setTimeout&&wn(at,"setTimeout",P1),t.setInterval&&wn(at,"setInterval",P1),t.requestAnimationFrame&&wn(at,"requestAnimationFrame",mq),t.XMLHttpRequest&&"XMLHttpRequest"in at&&wn(XMLHttpRequest.prototype,"send",hq);const n=t.eventTarget;n&&(Array.isArray(n)?n:uq).forEach(o=>vq(o,t))}}},pq=fq;function P1(e){return function(...t){const n=t[0];return t[0]=Si(n,{mechanism:{data:{function:Qr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function mq(e){return function(t){return e.apply(this,[Si(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qr(e)},handled:!1,type:"instrument"}})])}}function hq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&wn(n,o,function(i){const s={mechanism:{data:{function:o,handler:Qr(i)},handled:!1,type:"instrument"}},l=Om(i);return l&&(s.mechanism.data.handler=Qr(l)),Si(i,s)})}),e.apply(this,t)}}function vq(e,t){const a=at[e]?.prototype;a?.hasOwnProperty?.("addEventListener")&&(wn(a,"addEventListener",function(o){return function(i,s,l){try{gq(s)&&(s.handleEvent=Si(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&yq(this,i,s),o.apply(this,[i,Si(s,{mechanism:{data:{function:"addEventListener",handler:Qr(s),target:e},handled:!1,type:"instrument"}}),l])}}),wn(a,"removeEventListener",function(o){return function(i,s,l){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,l)}catch{}return o.call(this,i,s,l)}}))}function gq(e){return typeof e.handleEvent=="function"}function yq(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const bq=()=>({name:"BrowserSession",setupOnce(){if(typeof at.document>"u"){Un&&ke.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}i1({ignoreDuration:!0}),s1(),Cu(({from:e,to:t})=>{e!==void 0&&e!==t&&(i1({ignoreDuration:!0}),s1())})}}),wq="GlobalHandlers",kq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:wq,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Sq(n),A1("onerror")),t.onunhandledrejection&&(Cq(n),A1("onunhandledrejection"))}}},_q=kq;function Sq(e){H4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const{msg:o,url:i,line:s,column:l,error:c}=t,u=Tq(Wm(n,c||o,void 0,a,!1),i,s,l);u.level="error",C3(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Cq(e){U4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const o=xq(t),i=Cs(o)?Eq(o):Wm(n,o,void 0,a,!0);i.level="error",C3(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function xq(e){if(Cs(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Eq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Tq(e,t,n,a){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=a,d=n,f=Ur(t)&&t.length>0?t:Oi();return c.length===0&&c.push({colno:u,filename:f,function:yo,in_app:!0,lineno:d}),e}function A1(e){Un&&ke.log(`Global Handler attached: ${e}`)}function gw(){return Qe()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Pq=()=>({name:"HttpContext",preprocessEvent(e){if(!at.navigator&&!at.location&&!at.document)return;const t=jm(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Aq="cause",Iq=5,Mq="LinkedErrors",Nq=(e={})=>{const t=e.limit||Iq,n=e.key||Aq;return{name:Mq,preprocessEvent(a,o,i){const s=i.getOptions();BH(Hm,s.stackParser,n,t,a,o)}}},Oq=Nq;function Bq(){return Lq()?(Un&&ia(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Lq(){if(typeof at.window>"u")return!1;const e=at;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Oi(),a=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(at===at.top&&a.some(i=>n.startsWith(`${i}://`)))}function yw(e){return[EH(),_H(),pq(),nq(),_q(),Oq(),zH(),Pq(),bq()]}function Dq(e={}){const t=!e.skipBrowserExtensionCheck&&Bq(),n={...e,enabled:t?!1:e.enabled,stackParser:UV(e.stackParser||ZW),integrations:Yj({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?yw():e.defaultIntegrations}),transport:e.transport||VW};return aH(SU,n)}const bt=rt,Xm="sentryReplaySession",Rq="replay_event",Jm="Unable to send Replay",$q=3e5,zq=9e5,Vq=5e3,Fq=5500,jq=6e4,Hq=5e3,Uq=3,I1=15e4,Ol=5e3,Wq=3e3,qq=300,Qm=2e7,Yq=4999,Gq=15e3,M1=36e5;var Kq=Object.defineProperty,Xq=(e,t,n)=>t in e?Kq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N1=(e,t,n)=>Xq(e,typeof t!="symbol"?t+"":t,n),Yt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Yt||{});function Jq(e){return e.nodeType===e.ELEMENT_NODE}function cs(e){return e?.host?.shadowRoot===e}function us(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Qq(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Zq(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Lc(e){try{const t=e.rules||e.cssRules;return t?Qq(Array.from(t,bw).join("")):null}catch{return null}}function eY(e){let t="";for(let n=0;n<e.style.length;n++){const a=e.style,o=a[n],i=a.getPropertyPriority(o);t+=`${o}:${a.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function bw(e){let t;if(nY(e))try{t=Lc(e.styleSheet)||Zq(e)}catch{}else if(rY(e)){let n=e.cssText;const a=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=eY(e)),a&&(n=tY(n)),a||o)return n}return t||e.cssText}function tY(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function nY(e){return"styleSheet"in e}function rY(e){return"selectorText"in e}class ww{constructor(){N1(this,"idNodeMap",new Map),N1(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const a=n.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,n)}replace(t,n){const a=this.getNode(t);if(a){const o=this.nodeMetaMap.get(a);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function aY(){return new ww}function xu({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Ts({isMasked:e,element:t,value:n,maskInputFn:a}){let o=n||"";return e?(a&&(o=a(o,t)),"*".repeat(o.length)):o}function xi(e){return e.toLowerCase()}function Kf(e){return e.toUpperCase()}const O1="__rrweb_original__";function oY(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let a=0;a<e.width;a+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=O1 in i?i[O1]:i;if(new Uint32Array(s.call(t,a,o,Math.min(n,e.width-a),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function Zm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?xi(t):null}function Dc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function kw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const a=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(a)?.[1]??null}const B1={};function _w(e){const t=B1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return B1[e]=a.bind(window)}function Xf(...e){return _w("setTimeout")(...e)}function Sw(...e){return _w("clearTimeout")(...e)}function Cw(e){try{return e.contentDocument}catch{}}let iY=1;const sY=new RegExp("[^a-z0-9-_:]"),Ps=-2;function eh(){return iY++}function lY(e){if(e instanceof HTMLFormElement)return"form";const t=xi(e.tagName);return sY.test(t)?"div":t}function cY(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zo,L1;const uY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dY=/^(?:[a-z+]+:)?\/\//i,fY=/^www\..*/i,pY=/^(data:)([^,]*),(.*)/i;function Rc(e,t){return(e||"").replace(uY,(n,a,o,i,s,l)=>{const c=o||s||l,u=a||i||"";if(!c)return n;if(dY.test(c)||fY.test(c))return`url(${u}${c}${u})`;if(pY.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${cY(t)+c}${u})`;const d=t.split("/"),f=c.split("/");d.pop();for(const p of f)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}const mY=/^[^ \t\n\r\u000c]+/,hY=/^[, \t\n\r\u000c]+/;function vY(e,t){if(t.trim()==="")return t;let n=0;function a(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;a(hY),!(n>=t.length);){let i=a(mY);if(i.slice(-1)===",")i=qo(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=qo(e,i);let l=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return o.join(", ")}const D1=new WeakMap;function qo(e,t){return!t||t.trim()===""?t:Eu(e,t)}function gY(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Eu(e,t){let n=D1.get(e);if(n||(n=e.createElement("a"),D1.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function xw(e,t,n,a,o,i){return a&&(n==="src"||n==="href"&&!(t==="use"&&a[0]==="#")||n==="xlink:href"&&a[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?qo(e,a):n==="srcset"?vY(e,a):n==="style"?Rc(a,Eu(e)):t==="object"&&n==="data"?qo(e,a):typeof i=="function"?i(n,a,o):a)}function Ew(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Tw(e,t,n,a){try{if(a&&e.matches(a))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function yY(e,t){for(let n=e.classList.length;n--;){const a=e.classList[n];if(t.test(a))return!0}return!1}function to(e,t,n=1/0,a=0){return!e||e.nodeType!==e.ELEMENT_NODE||a>n?-1:t(e)?a:to(e.parentNode,t,n,a+1)}function Yo(e,t){return n=>{const a=n;if(a===null)return!1;try{if(e){if(typeof e=="string"){if(a.matches(`.${e}`))return!0}else if(yY(a,e))return!0}return!!(t&&a.matches(t))}catch{return!1}}}function Ei(e,t,n,a,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let l=-1,c=-1;if(i){if(c=to(s,Yo(a,o)),c<0)return!0;l=to(s,Yo(t,n),c>=0?c:1/0)}else{if(l=to(s,Yo(t,n)),l<0)return!1;c=to(s,Yo(a,o),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!i}catch{}return!!i}function bY(e,t,n){const a=e.contentWindow;if(!a)return;let o=!1,i;try{i=a.document.readyState}catch{return}if(i!=="complete"){const l=Xf(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Sw(l),o=!0,t()});return}const s="about:blank";if(a.location.href!==s||e.src===s||e.src==="")return Xf(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function wY(e,t,n){let a=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Xf(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{Sw(i),a=!0,t()})}function kY(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:v={},maskTextFn:y,maskInputFn:w,dataURLOptions:b={},inlineImages:E,recordCanvas:_,keepIframeSrcFn:g,newlyAddedElement:x=!1}=t,C=_Y(n,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Yt.Document,childNodes:[],compatMode:e.compatMode}:{type:Yt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Yt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return CY(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:v,maskInputFn:w,dataURLOptions:b,inlineImages:E,recordCanvas:_,keepIframeSrcFn:g,newlyAddedElement:x,rootId:C,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return SY(e,{doc:n,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:v,maskInputFn:w,rootId:C});case e.CDATA_SECTION_NODE:return{type:Yt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Yt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function _Y(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function SY(e,t){const{maskAllText:n,maskTextClass:a,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:u,rootId:d}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m=f==="STYLE"?!0:void 0,v=f==="SCRIPT"?!0:void 0,y=f==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Lc(e.parentNode.sheet))}catch(b){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${b}`,e)}p=Rc(p,Eu(t.doc))}v&&(p="SCRIPT_PLACEHOLDER");const w=Ei(e,a,i,o,s,n);if(!m&&!v&&!y&&p&&w&&(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||w)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const b=xu({type:null,tagName:f,maskInputOptions:c});p=Ts({isMasked:Ei(e,a,i,o,s,b),element:e,value:p,maskInputFn:u})}return{type:Yt.Text,textContent:p||"",isStyle:m,rootId:d}}function CY(e,t){const{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:v=!1,rootId:y,maskTextClass:w,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:_}=t,g=Tw(e,a,o,i),x=lY(e);let C={};const P=e.attributes.length;for(let A=0;A<P;A++){const L=e.attributes[A];L.name&&!Ew(x,L.name,L.value)&&(C[L.name]=xw(n,x,xi(L.name),L.value,e,c))}if(x==="link"&&s){const A=Array.from(n.styleSheets).find(U=>U.href===e.href);let L=null;A&&(L=Lc(A)),L&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=Rc(L,A.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Lc(e.sheet);A&&(C._cssText=Rc(A,Eu(n)))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const A=e,L=Zm(A),U=Dc(A,Kf(x),L),z=A.checked;if(L!=="submit"&&L!=="button"&&U){const R=Ei(A,w,E,b,_,xu({type:L,tagName:Kf(x),maskInputOptions:l}));C.value=Ts({isMasked:R,element:A,value:U,maskInputFn:u})}z&&(C.checked=z)}if(x==="option"&&(e.selected&&!l.select?C.selected=!0:delete C.selected),x==="canvas"&&p){if(e.__context==="2d")oY(e)||(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),L=n.createElement("canvas");L.width=e.width,L.height=e.height;const U=L.toDataURL(d.type,d.quality);A!==U&&(C.rr_dataURL=A)}}if(x==="img"&&f){zo||(zo=n.createElement("canvas"),L1=zo.getContext("2d"));const A=e,L=A.currentSrc||A.getAttribute("src")||"<unknown-src>",U=A.crossOrigin,z=()=>{A.removeEventListener("load",z);try{zo.width=A.naturalWidth,zo.height=A.naturalHeight,L1.drawImage(A,0,0),C.rr_dataURL=zo.toDataURL(d.type,d.quality)}catch(R){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z);return}else console.warn(`Cannot inline img src=${L}! Error: ${R}`)}A.crossOrigin==="anonymous"&&(U?C.crossOrigin=U:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z)}if((x==="audio"||x==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),v||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),g){const{width:A,height:L}=e.getBoundingClientRect();C={class:C.class,rr_width:`${A}px`,rr_height:`${L}px`}}x==="iframe"&&!m(C.src)&&(!g&&!Cw(e)&&(C.rr_src=C.src),delete C.src);let O;try{customElements.get(x)&&(O=!0)}catch{}return{type:Yt.Element,tagName:x,attributes:C,childNodes:[],isSVG:gY(e)||void 0,needBlock:g,rootId:y,isCustom:O}}function yt(e){return e==null?"":e.toLowerCase()}function xY(e,t){if(t.comment&&e.type===Yt.Comment)return!0;if(e.type===Yt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&kw(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(yt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||yt(e.attributes.name)==="application-name"||yt(e.attributes.rel)==="icon"||yt(e.attributes.rel)==="apple-touch-icon"||yt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&yt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(yt(e.attributes.property).match(/^(og|twitter|fb):/)||yt(e.attributes.name).match(/^(og|twitter):/)||yt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(yt(e.attributes.name)==="robots"||yt(e.attributes.name)==="googlebot"||yt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(yt(e.attributes.name)==="author"||yt(e.attributes.name)==="generator"||yt(e.attributes.name)==="framework"||yt(e.attributes.name)==="publisher"||yt(e.attributes.name)==="progid"||yt(e.attributes.property).match(/^article:/)||yt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(yt(e.attributes.name)==="google-site-verification"||yt(e.attributes.name)==="yandex-verification"||yt(e.attributes.name)==="csrf-token"||yt(e.attributes.name)==="p:domain_verify"||yt(e.attributes.name)==="verify-v1"||yt(e.attributes.name)==="verification"||yt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Go(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:v={},maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_={},inlineImages:g=!1,recordCanvas:x=!1,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:z=!1}=t;let{preserveWhiteSpace:R=!0}=t;const I=kY(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,dataURLOptions:_,inlineImages:g,recordCanvas:x,keepIframeSrcFn:U,newlyAddedElement:z});if(!I)return console.warn(e,"not serialized"),null;let B;a.hasNode(e)?B=a.getId(e):xY(I,E)||!R&&I.type===Yt.Text&&!I.isStyle&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?B=Ps:B=eh();const M=Object.assign(I,{id:B});if(a.add(e,M),B===Ps)return null;C&&C(e);let $=!p;if(M.type===Yt.Element){$=$&&!M.needBlock,delete M.needBlock;const K=e.shadowRoot;K&&us(K)&&(M.isShadowHost=!0)}if((M.type===Yt.Document||M.type===Yt.Element)&&$){E.headWhitespace&&M.type===Yt.Element&&M.tagName==="head"&&(R=!1);const K={doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U};for(const V of Array.from(e.childNodes)){const Z=Go(V,K);Z&&M.childNodes.push(Z)}if(Jq(e)&&e.shadowRoot)for(const V of Array.from(e.shadowRoot.childNodes)){const Z=Go(V,K);Z&&(us(e.shadowRoot)&&(Z.isShadow=!0),M.childNodes.push(Z))}}return e.parentNode&&cs(e.parentNode)&&us(e.parentNode)&&(M.isShadow=!0),M.type===Yt.Element&&M.tagName==="iframe"&&!Tw(e,o,i,s)&&bY(e,()=>{const K=Cw(e);if(K&&P){const V=Go(K,{doc:K,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});V&&P(e,V)}},O),M.type===Yt.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&kw(M.attributes.href)==="css")&&wY(e,()=>{if(A){const K=Go(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});K&&A(e,K)}},L),M}function EY(e,t){const{mirror:n=new ww,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:v=!1,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOM:E=!1,dataURLOptions:_,preserveWhiteSpace:g,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L=()=>!1}=t||{};return Go(e,{doc:e,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:v===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:v===!1?{}:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:_,inlineImages:p,recordCanvas:m,preserveWhiteSpace:g,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L,newlyAddedElement:!1})}function pn(e,t,n=document){const a={capture:!0,passive:!0};return n.addEventListener(e,t,a),()=>n.removeEventListener(e,t,a)}const Fo=`Please stop import mirror directly. Instead of that,\r
|
|
667
|
+
Error:`,o)}}function XU(){return LU(e=>{zi("cls",{metric:e}),Q3=e},{reportAllChanges:!0})}function JU(){return RU(e=>{zi("fid",{metric:e}),Z3=e})}function QU(){return qU(e=>{zi("lcp",{metric:e}),ew=e},{reportAllChanges:!0})}function ZU(){return GU(e=>{zi("ttfb",{metric:e}),tw=e})}function eW(){return HU(e=>{zi("inp",{metric:e}),nw=e})}function tl(e,t,n,a,o=!1){ow(e,t);let i;return Oc[e]||(i=n(),Oc[e]=!0),a&&t({metric:a}),iw(e,t,o?i:void 0)}function tW(e){const t={};e==="event"&&(t.durationThreshold=0),Po(e,n=>{zi(e,{entries:n})},t)}function ow(e,t){ls[e]=ls[e]||[],ls[e].push(t)}function iw(e,t,n){return()=>{n&&n();const a=ls[e];if(!a)return;const o=a.indexOf(t);o!==-1&&a.splice(o,1)}}function nW(e){return"duration"in e}function Nd(e){return typeof e=="number"&&isFinite(e)}function aa(e,t,n,{...a}){const o=tt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Vm(e,()=>{const i=Pa({startTime:t,...a});return i&&i.end(n),i})}function Km(e){const t=Qe();if(!t)return;const{name:n,transaction:a,attributes:o,startTime:i}=e,{release:s,environment:l,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),f=lt(),p=f.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0;let v;try{v=f.getScopeData().contexts.profile.profile_id}catch{}const y={release:s,environment:l,user:m||void 0,profile_id:v||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":qe.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o};return Pa({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function Su(){return qe.addEventListener&&qe.performance}function Ct(e){return e/1e3}function sw(e){let t="unknown",n="unknown",a="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=a==="h"?"http":a,n=e.split(a)[1];break}a+=o}return a===e&&(t=a),{name:t,version:n}}function lw(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function cw(e,t){let n,a=!1;function o(l){!a&&n&&t(l,n),a=!0}_u(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(l,c)=>{c?.isRedirect||(o("navigation"),i?.(),s?.())}),s=e.on("afterStartPageLoadSpan",l=>{n=l.spanContext().spanId,s?.()})}function rW(e){let t=0,n;if(!lw("layout-shift"))return;const a=Ym(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{aW(t,n,i,o),a()})}function aW(e,t,n,a){Ci&&ke.log(`Sending CLS span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.sources[0]?.node):"Layout shift",l={[xt]:"auto.http.browser.cls",[ea]:"ui.webvital.cls",[Li]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":a};t?.sources&&t.sources.forEach((u,d)=>{l[`cls.source.${d+1}`]=Hn(u.node)});const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("cls",{[Xs]:"",[Js]:e}),c.end(o))}function oW(e){let t=0,n;if(!lw("largest-contentful-paint"))return;const a=Gm(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{iW(t,n,i,o),a()})}function iW(e,t,n,a){Ci&&ke.log(`Sending LCP span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.element):"Largest contentful paint",l={[xt]:"auto.http.browser.lcp",[ea]:"ui.webvital.lcp",[Li]:0,"sentry.pageload.span_id":n,"sentry.report_event":a};t&&(t.element&&(l["lcp.element"]=Hn(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(l["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(l["lcp.renderTime"]=t.renderTime),t.size!=null&&(l["lcp.size"]=t.size));const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("lcp",{[Xs]:"millisecond",[Js]:e}),c.end(o))}const sW=2147483647;let S1=0,Qt={},gn,Bc;function lW({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const a=Su();if(a&&hn()){a.mark&&qe.performance.mark("sentry-tracing-init");const o=mW(),i=t?oW(n):pW(),s=hW(),l=e?rW(n):fW();return()=>{o(),i?.(),s(),l?.()}}return()=>{}}function cW(){wo("longtask",({entries:e})=>{const t=tn();if(!t)return;const{op:n,start_timestamp:a}=tt(t);for(const o of e){const i=Ct(hn()+o.startTime),s=Ct(o.duration);n==="navigation"&&a&&i<a||aa(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[xt]:"auto.ui.browser.metrics"}})}})}function uW(){new PerformanceObserver(t=>{const n=tn();if(n)for(const a of t.getEntries()){if(!a.scripts[0])continue;const o=Ct(hn()+a.startTime),{start_timestamp:i,op:s}=tt(n);if(s==="navigation"&&i&&o<i)continue;const l=Ct(a.duration),c={[xt]:"auto.ui.browser.metrics"},u=a.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:m,sourceCharPosition:v}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),v!==-1&&(c["browser.script.source_char_position"]=v),aa(n,o,o+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function dW(){wo("event",({entries:e})=>{const t=tn();if(t){for(const n of e)if(n.name==="click"){const a=Ct(hn()+n.startTime),o=Ct(n.duration),i={name:Hn(n.target),op:`ui.interaction.${n.name}`,startTime:a,attributes:{[xt]:"auto.ui.browser.metrics"}},s=K4(n.target);s&&(i.attributes["ui.component_name"]=s),aa(t,a,a+o,i)}}})}function fW(){return Ym(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.cls={value:e.value,unit:""},Bc=t)},!0)}function pW(){return Gm(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.lcp={value:e.value,unit:"millisecond"},gn=t)},!0)}function mW(){return rw(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ct(hn()),a=Ct(t.startTime);Qt.fid={value:e.value,unit:"millisecond"},Qt["mark.fid"]={value:n+a,unit:"second"}})}function hW(){return KU(({metric:e})=>{e.entries[e.entries.length-1]&&(Qt.ttfb={value:e.value,unit:"millisecond"})})}function vW(e,t){const n=Su(),a=hn();if(!n?.getEntries||!a)return;const o=Ct(a),i=n.getEntries(),{op:s,start_timestamp:l}=tt(e);if(i.slice(S1).forEach(c=>{const u=Ct(c.startTime),d=Ct(Math.max(0,c.duration));if(!(s==="navigation"&&l&&o+u<l))switch(c.entryType){case"navigation":{bW(e,c,o);break}case"mark":case"paint":case"measure":{gW(e,c,u,d,o,t.ignorePerformanceApiSpans);const f=ku(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(Qt.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Qt.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{_W(e,c,c.name,u,d,o,t.ignoreResourceSpans);break}}}),S1=Math.max(i.length-1,0),SW(e),s==="pageload"){xW(Qt);const c=Qt["mark.fid"];c&&Qt.fid&&(aa(e,c.value,c.value+Ct(Qt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[xt]:"auto.ui.browser.metrics"}}),delete Qt["mark.fid"]),t.recordClsOnPageloadSpan||delete Qt.cls,t.recordLcpOnPageloadSpan||delete Qt.lcp,Object.entries(Qt).forEach(([u,d])=>{cj(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Ri()),CW(e,t)}gn=void 0,Bc=void 0,Qt={}}function gW(e,t,n,a,o,i){if(["mark","measure"].includes(t.entryType)&&Wr(t.name,i))return;const s=Zs(!1),l=Ct(s?s.requestStart:0),c=o+Math.max(n,l),u=o+n,d=u+a,f={[xt]:"auto.resource.browser.metrics"};c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),yW(f,t),c<=d&&aa(e,c,d,{name:t.name,op:t.entryType,attributes:f})}function yW(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[a,o]of Object.entries(n))if(o&&Cs(o))e[`sentry.browser.measure.detail.${a}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${a}`]=JSON.stringify(o)}catch{}return}if(Cs(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function bW(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(a=>{Il(e,t,a,n)}),Il(e,t,"secureConnection",n,"TLS/SSL"),Il(e,t,"fetch",n,"cache"),Il(e,t,"domainLookup",n,"DNS"),kW(e,t,n)}function Il(e,t,n,a,o=n){const i=wW(n),s=t[i],l=t[`${n}Start`];!l||!s||aa(e,a+Ct(l),a+Ct(s),{op:`browser.${o}`,name:t.name,attributes:{[xt]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function wW(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function kW(e,t,n){const a=n+Ct(t.requestStart),o=n+Ct(t.responseEnd),i=n+Ct(t.responseStart);t.responseEnd&&(aa(e,a,o,{op:"browser.request",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}),aa(e,i,o,{op:"browser.response",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}))}function _W(e,t,n,a,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(l))return;const c=uo(n),u={[xt]:"auto.resource.browser.metrics"};Od(u,t,"transferSize","http.response_transfer_size"),Od(u,t,"encodedBodySize","http.response_content_length"),Od(u,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;d!=null&&(u["http.response_delivery_type"]=d);const f=t.renderBlockingStatus;if(f&&(u["resource.render_blocking_status"]=f),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(qe.location.origin),t.nextHopProtocol!=null){const{name:v,version:y}=sw(t.nextHopProtocol);u["network.protocol.name"]=v,u["network.protocol.version"]=y}const p=i+a,m=p+o;aa(e,p,m,{name:n.replace(qe.location.origin,""),op:l,attributes:u})}function SW(e){const t=qe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Nd(n.rtt)&&(Qt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Nd(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Nd(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function CW(e,t){gn&&t.recordLcpOnPageloadSpan&&(gn.element&&e.setAttribute("lcp.element",Hn(gn.element)),gn.id&&e.setAttribute("lcp.id",gn.id),gn.url&&e.setAttribute("lcp.url",gn.url.trim().slice(0,200)),gn.loadTime!=null&&e.setAttribute("lcp.loadTime",gn.loadTime),gn.renderTime!=null&&e.setAttribute("lcp.renderTime",gn.renderTime),e.setAttribute("lcp.size",gn.size)),Bc?.sources&&t.recordClsOnPageloadSpan&&Bc.sources.forEach((n,a)=>e.setAttribute(`cls.source.${a+1}`,Hn(n.node)))}function Od(e,t,n,a){const o=t[n];o!=null&&o<sW&&(e[a]=o)}function xW(e){const t=Zs(!1);if(!t)return;const{responseStart:n,requestStart:a}=t;a<=n&&(e["ttfb.requestTime"]={value:n-a,unit:"millisecond"})}function EW(){return Su()&&hn()?wo("element",TW):()=>{}}const TW=({entries:e})=>{const t=tn(),n=t?en(t):void 0,a=n?tt(n).description:lt().getScopeData().transactionName;e.forEach(o=>{const i=o;if(!i.identifier)return;const s=i.name,l=i.renderTime,c=i.loadTime,[u,d]=c?[Ct(c),"load-time"]:l?[Ct(l),"render-time"]:[Ht(),"entry-emission"],f=s==="image-paint"?Ct(Math.max(0,(l??0)-(c??0))):0,p={[xt]:"auto.ui.browser.elementtiming",[ea]:"ui.elementtiming",[kn]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":a,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":l,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":s};hj({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},m=>{m.end(u+f)})})},PW=1e3;let C1,qf,Yf;function uw(e){Ra("dom",e),$a("dom",AW)}function AW(){if(!qe.document)return;const e=Vn.bind(null,"dom"),t=x1(e,!0);qe.document.addEventListener("click",t,!1),qe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=qe[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(wn(o,"addEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){const f=x1(e);d.handler=f,i.call(this,s,f,c)}d.refCount++}catch{}return i.call(this,s,l,c)}}),wn(o,"removeEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,c)}}))})}function IW(e){if(e.type!==qf)return!1;try{if(!e.target||e.target._sentryId!==Yf)return!1}catch{}return!0}function MW(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function x1(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const a=NW(n);if(MW(n.type,a))return;Bn(n,"_sentryCaptured",!0),a&&!a._sentryId&&Bn(a,"_sentryId",Nn());const o=n.type==="keypress"?"input":n.type;IW(n)||(e({event:n,name:o,global:t}),qf=n.type,Yf=a?a._sentryId:void 0),clearTimeout(C1),C1=qe.setTimeout(()=>{Yf=void 0,qf=void 0},PW)}}function NW(e){try{return e.target}catch{return null}}let Ml;function Cu(e){const t="history";Ra(t,e),$a(t,OW)}function OW(){if(qe.addEventListener("popstate",()=>{const t=qe.location.href,n=Ml;if(Ml=t,n===t)return;Vn("history",{from:n,to:t})}),!eU())return;function e(t){return function(...n){const a=n.length>2?n[2]:void 0;if(a){const o=Ml,i=BW(String(a));if(Ml=i,o===i)return t.apply(this,n);Vn("history",{from:o,to:i})}return t.apply(this,n)}}wn(qe.history,"pushState",e),wn(qe.history,"replaceState",e)}function BW(e){try{return new URL(e,qe.location.origin).toString()}catch{return e}}const Ql={};function dw(e){const t=Ql[e];if(t)return t;let n=qe[e];if(Vf(n))return Ql[e]=n.bind(qe);const a=qe.document;if(a&&typeof a.createElement=="function")try{const o=a.createElement("iframe");o.hidden=!0,a.head.appendChild(o);const i=o.contentWindow;i?.[e]&&(n=i[e]),a.head.removeChild(o)}catch(o){Ci&&ke.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Ql[e]=n.bind(qe))}function E1(e){Ql[e]=void 0}function nl(...e){return dw("setTimeout")(...e)}const eo="__sentry_xhr_v3__";function fw(e){Ra("xhr",e),$a("xhr",LW)}function LW(){if(!qe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,a){const o=new Error,i=Ht()*1e3,s=Ur(a[0])?a[0].toUpperCase():void 0,l=DW(a[1]);if(!s||!l)return t.apply(n,a);n[eo]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[eo];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:Ht()*1e3,startTimestamp:i,xhr:n,virtualError:o};Vn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,m]=f,v=d[eo];return v&&Ur(p)&&Ur(m)&&(v.request_headers[p.toLowerCase()]=m),u.apply(d,f)}}),t.apply(n,a)}}),e.send=new Proxy(e.send,{apply(t,n,a){const o=n[eo];if(!o)return t.apply(n,a);a[0]!==void 0&&(o.body=a[0]);const i={startTimestamp:Ht()*1e3,xhr:n};return Vn("xhr",i),t.apply(n,a)}})}function DW(e){if(Ur(e))return e;try{return e.toString()}catch{}}function pw(e){return new URLSearchParams(e).toString()}function mw(e,t=ke){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[pw(e)];if(!e)return[void 0]}catch(n){return Ci&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ci&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hw(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Bd=[],Zl=new Map,RW=60;function $W(){if(Su()&&hn()){const t=zW();return()=>{t()}}return()=>{}}const T1={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 zW(){return aw(VW)}const VW=({metric:e})=>{if(e.value==null)return;const t=Ct(e.value);if(t>RW)return;const n=e.entries.find(v=>v.duration===e.value&&T1[v.name]);if(!n)return;const{interactionId:a}=n,o=T1[n.name],i=Ct(hn()+n.startTime),s=tn(),l=s?en(s):void 0,u=(a!=null?Zl.get(a):void 0)||l,d=u?tt(u).description:lt().getScopeData().transactionName,f=Hn(n.target),p={[xt]:"auto.http.browser.inp",[ea]:`ui.interaction.${o}`,[Li]:n.duration},m=Km({name:f,transaction:d,attributes:p,startTime:i});m&&(m.addEvent("inp",{[Xs]:"millisecond",[Js]:e.value}),m.end(i+t))};function FW(){const e=({entries:t})=>{const n=tn(),a=n&&en(n);t.forEach(o=>{if(!nW(o)||!a)return;const i=o.interactionId;if(i!=null&&!Zl.has(i)){if(Bd.length>10){const s=Bd.shift();Zl.delete(s)}Bd.push(i),Zl.set(i,a)}})};wo("event",e),wo("first-input",e)}function jW(e,t=dw("fetch")){let n=0,a=0;function o(i){const s=i.body.length;n+=s,a++;const l={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return E1("fetch"),Pc("No fetch implementation available");try{return t(e.url,l).then(c=>(n-=s,a--,{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 E1("fetch"),n-=s,a--,Pc(c)}}return pH(e,o)}const HW=30,UW=50;function Gf(e,t,n,a){const o={filename:e,function:t==="<anonymous>"?yo:t,in_app:!0};return n!==void 0&&(o.lineno=n),a!==void 0&&(o.colno=a),o}const WW=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,YW=/\((\S*)(?::(\d+))(?::(\d+))\)/,GW=e=>{const t=WW.exec(e);if(t){const[,a,o,i]=t;return Gf(a,yo,+o,+i)}const n=qW.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=YW.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=vw(n[1]||yo,n[2]);return Gf(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},KW=[HW,GW],XW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,JW=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,QW=e=>{const t=XW.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=JW.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let a=t[3],o=t[1]||yo;return[o,a]=vw(o,a),Gf(a,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ZW=[UW,QW],eq=[KW,ZW],tq=j4(...eq),vw=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return n||a?[e.indexOf("@")!==-1?e.split("@")[0]:yo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Un=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nl=1024,nq="Breadcrumbs",rq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nq,setup(n){t.console&&RH(sq(n)),t.dom&&uw(iq(n,t.dom)),t.xhr&&fw(lq(n)),t.fetch&&U3(cq(n)),t.history&&Cu(uq(n)),t.sentry&&n.on("beforeSendEvent",oq(n))}}},aq=rq;function oq(e){return function(n){Qe()===e&&Ia({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ka(n)},{event:n})}}function iq(e,t){return function(a){if(Qe()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,l=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;l&&l>Nl&&(Un&&ke.warn(`\`dom.maxStringLength\` cannot exceed ${Nl}, but a value of ${l} was configured. Sentry will use ${Nl} instead.`),l=Nl),typeof s=="string"&&(s=[s]);try{const u=a.event,d=dq(u)?u.target:u;o=Hn(d,{keyAttrs:s,maxStringLength:l}),i=K4(d)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${a.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ia(c,{event:a.event,name:a.name,global:a.global})}}function sq(e){return function(n){if(Qe()!==e)return;const a={category:"console",data:{arguments:n.args,logger:"console"},level:$3(n.level),message:$0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)a.message=`Assertion failed: ${$0(n.args.slice(1)," ")||"console.assert"}`,a.data.arguments=n.args.slice(1);else return;Ia(a,{input:n.args,level:n.level})}}function lq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n,i=n.xhr[eo];if(!a||!o||!i)return;const{method:s,url:l,status_code:c,body:u}=i,d={method:s,url:l,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:a,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:H3(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),Ia(p,f)}}function cq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:a,endTimestamp:o},l={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",l,s),Ia(l,s)}else{const i=n.response,s={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const l={input:n.args,response:i,startTimestamp:a,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:H3(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),Ia(c,l)}}}function uq(e){return function(n){if(Qe()!==e)return;let a=n.from,o=n.to;const i=uo(at.location.href);let s=a?uo(a):void 0;const l=uo(o);s?.path||(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(a=s.relative),Ia({category:"navigation",data:{from:a,to:o}})}}function dq(e){return!!e&&!!e.target}const fq=["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"],pq="BrowserApiErrors",mq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:pq,setupOnce(){t.setTimeout&&wn(at,"setTimeout",P1),t.setInterval&&wn(at,"setInterval",P1),t.requestAnimationFrame&&wn(at,"requestAnimationFrame",vq),t.XMLHttpRequest&&"XMLHttpRequest"in at&&wn(XMLHttpRequest.prototype,"send",gq);const n=t.eventTarget;n&&(Array.isArray(n)?n:fq).forEach(o=>yq(o,t))}}},hq=mq;function P1(e){return function(...t){const n=t[0];return t[0]=Si(n,{mechanism:{data:{function:Qr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function vq(e){return function(t){return e.apply(this,[Si(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qr(e)},handled:!1,type:"instrument"}})])}}function gq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&wn(n,o,function(i){const s={mechanism:{data:{function:o,handler:Qr(i)},handled:!1,type:"instrument"}},l=Om(i);return l&&(s.mechanism.data.handler=Qr(l)),Si(i,s)})}),e.apply(this,t)}}function yq(e,t){const a=at[e]?.prototype;a?.hasOwnProperty?.("addEventListener")&&(wn(a,"addEventListener",function(o){return function(i,s,l){try{bq(s)&&(s.handleEvent=Si(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&wq(this,i,s),o.apply(this,[i,Si(s,{mechanism:{data:{function:"addEventListener",handler:Qr(s),target:e},handled:!1,type:"instrument"}}),l])}}),wn(a,"removeEventListener",function(o){return function(i,s,l){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,l)}catch{}return o.call(this,i,s,l)}}))}function bq(e){return typeof e.handleEvent=="function"}function wq(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const kq=()=>({name:"BrowserSession",setupOnce(){if(typeof at.document>"u"){Un&&ke.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}i1({ignoreDuration:!0}),s1(),Cu(({from:e,to:t})=>{e!==void 0&&e!==t&&(i1({ignoreDuration:!0}),s1())})}}),_q="GlobalHandlers",Sq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_q,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(xq(n),A1("onerror")),t.onunhandledrejection&&(Eq(n),A1("onunhandledrejection"))}}},Cq=Sq;function xq(e){H4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const{msg:o,url:i,line:s,column:l,error:c}=t,u=Aq(Wm(n,c||o,void 0,a,!1),i,s,l);u.level="error",C3(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Eq(e){U4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const o=Tq(t),i=Cs(o)?Pq(o):Wm(n,o,void 0,a,!0);i.level="error",C3(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Tq(e){if(Cs(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Pq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Aq(e,t,n,a){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=a,d=n,f=Ur(t)&&t.length>0?t:Oi();return c.length===0&&c.push({colno:u,filename:f,function:yo,in_app:!0,lineno:d}),e}function A1(e){Un&&ke.log(`Global Handler attached: ${e}`)}function gw(){return Qe()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Iq=()=>({name:"HttpContext",preprocessEvent(e){if(!at.navigator&&!at.location&&!at.document)return;const t=jm(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Mq="cause",Nq=5,Oq="LinkedErrors",Bq=(e={})=>{const t=e.limit||Nq,n=e.key||Mq;return{name:Oq,preprocessEvent(a,o,i){const s=i.getOptions();DH(Hm,s.stackParser,n,t,a,o)}}},Lq=Bq;function Dq(){return Rq()?(Un&&ia(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Rq(){if(typeof at.window>"u")return!1;const e=at;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Oi(),a=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(at===at.top&&a.some(i=>n.startsWith(`${i}://`)))}function yw(e){return[PH(),CH(),hq(),aq(),Cq(),Lq(),FH(),Iq(),kq()]}function $q(e={}){const t=!e.skipBrowserExtensionCheck&&Dq(),n={...e,enabled:t?!1:e.enabled,stackParser:qV(e.stackParser||tq),integrations:Kj({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?yw():e.defaultIntegrations}),transport:e.transport||jW};return iH(xU,n)}const bt=rt,Xm="sentryReplaySession",zq="replay_event",Jm="Unable to send Replay",Vq=3e5,Fq=9e5,jq=5e3,Hq=5500,Uq=6e4,Wq=5e3,qq=3,I1=15e4,Ol=5e3,Yq=3e3,Gq=300,Qm=2e7,Kq=4999,Xq=15e3,M1=36e5;var Jq=Object.defineProperty,Qq=(e,t,n)=>t in e?Jq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N1=(e,t,n)=>Qq(e,typeof t!="symbol"?t+"":t,n),Yt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Yt||{});function Zq(e){return e.nodeType===e.ELEMENT_NODE}function cs(e){return e?.host?.shadowRoot===e}function us(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function eY(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function tY(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Lc(e){try{const t=e.rules||e.cssRules;return t?eY(Array.from(t,bw).join("")):null}catch{return null}}function nY(e){let t="";for(let n=0;n<e.style.length;n++){const a=e.style,o=a[n],i=a.getPropertyPriority(o);t+=`${o}:${a.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function bw(e){let t;if(aY(e))try{t=Lc(e.styleSheet)||tY(e)}catch{}else if(oY(e)){let n=e.cssText;const a=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=nY(e)),a&&(n=rY(n)),a||o)return n}return t||e.cssText}function rY(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function aY(e){return"styleSheet"in e}function oY(e){return"selectorText"in e}class ww{constructor(){N1(this,"idNodeMap",new Map),N1(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const a=n.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,n)}replace(t,n){const a=this.getNode(t);if(a){const o=this.nodeMetaMap.get(a);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function iY(){return new ww}function xu({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Ts({isMasked:e,element:t,value:n,maskInputFn:a}){let o=n||"";return e?(a&&(o=a(o,t)),"*".repeat(o.length)):o}function xi(e){return e.toLowerCase()}function Kf(e){return e.toUpperCase()}const O1="__rrweb_original__";function sY(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let a=0;a<e.width;a+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=O1 in i?i[O1]:i;if(new Uint32Array(s.call(t,a,o,Math.min(n,e.width-a),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function Zm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?xi(t):null}function Dc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function kw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const a=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(a)?.[1]??null}const B1={};function _w(e){const t=B1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return B1[e]=a.bind(window)}function Xf(...e){return _w("setTimeout")(...e)}function Sw(...e){return _w("clearTimeout")(...e)}function Cw(e){try{return e.contentDocument}catch{}}let lY=1;const cY=new RegExp("[^a-z0-9-_:]"),Ps=-2;function eh(){return lY++}function uY(e){if(e instanceof HTMLFormElement)return"form";const t=xi(e.tagName);return cY.test(t)?"div":t}function dY(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zo,L1;const fY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pY=/^(?:[a-z+]+:)?\/\//i,mY=/^www\..*/i,hY=/^(data:)([^,]*),(.*)/i;function Rc(e,t){return(e||"").replace(fY,(n,a,o,i,s,l)=>{const c=o||s||l,u=a||i||"";if(!c)return n;if(pY.test(c)||mY.test(c))return`url(${u}${c}${u})`;if(hY.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${dY(t)+c}${u})`;const d=t.split("/"),f=c.split("/");d.pop();for(const p of f)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}const vY=/^[^ \t\n\r\u000c]+/,gY=/^[, \t\n\r\u000c]+/;function yY(e,t){if(t.trim()==="")return t;let n=0;function a(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;a(gY),!(n>=t.length);){let i=a(vY);if(i.slice(-1)===",")i=qo(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=qo(e,i);let l=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return o.join(", ")}const D1=new WeakMap;function qo(e,t){return!t||t.trim()===""?t:Eu(e,t)}function bY(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Eu(e,t){let n=D1.get(e);if(n||(n=e.createElement("a"),D1.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function xw(e,t,n,a,o,i){return a&&(n==="src"||n==="href"&&!(t==="use"&&a[0]==="#")||n==="xlink:href"&&a[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?qo(e,a):n==="srcset"?yY(e,a):n==="style"?Rc(a,Eu(e)):t==="object"&&n==="data"?qo(e,a):typeof i=="function"?i(n,a,o):a)}function Ew(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Tw(e,t,n,a){try{if(a&&e.matches(a))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function wY(e,t){for(let n=e.classList.length;n--;){const a=e.classList[n];if(t.test(a))return!0}return!1}function to(e,t,n=1/0,a=0){return!e||e.nodeType!==e.ELEMENT_NODE||a>n?-1:t(e)?a:to(e.parentNode,t,n,a+1)}function Yo(e,t){return n=>{const a=n;if(a===null)return!1;try{if(e){if(typeof e=="string"){if(a.matches(`.${e}`))return!0}else if(wY(a,e))return!0}return!!(t&&a.matches(t))}catch{return!1}}}function Ei(e,t,n,a,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let l=-1,c=-1;if(i){if(c=to(s,Yo(a,o)),c<0)return!0;l=to(s,Yo(t,n),c>=0?c:1/0)}else{if(l=to(s,Yo(t,n)),l<0)return!1;c=to(s,Yo(a,o),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!i}catch{}return!!i}function kY(e,t,n){const a=e.contentWindow;if(!a)return;let o=!1,i;try{i=a.document.readyState}catch{return}if(i!=="complete"){const l=Xf(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Sw(l),o=!0,t()});return}const s="about:blank";if(a.location.href!==s||e.src===s||e.src==="")return Xf(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function _Y(e,t,n){let a=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Xf(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{Sw(i),a=!0,t()})}function SY(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:v={},maskTextFn:y,maskInputFn:w,dataURLOptions:b={},inlineImages:E,recordCanvas:_,keepIframeSrcFn:g,newlyAddedElement:x=!1}=t,C=CY(n,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Yt.Document,childNodes:[],compatMode:e.compatMode}:{type:Yt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Yt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return EY(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:v,maskInputFn:w,dataURLOptions:b,inlineImages:E,recordCanvas:_,keepIframeSrcFn:g,newlyAddedElement:x,rootId:C,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return xY(e,{doc:n,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:v,maskInputFn:w,rootId:C});case e.CDATA_SECTION_NODE:return{type:Yt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Yt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function CY(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function xY(e,t){const{maskAllText:n,maskTextClass:a,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:u,rootId:d}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m=f==="STYLE"?!0:void 0,v=f==="SCRIPT"?!0:void 0,y=f==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Lc(e.parentNode.sheet))}catch(b){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${b}`,e)}p=Rc(p,Eu(t.doc))}v&&(p="SCRIPT_PLACEHOLDER");const w=Ei(e,a,i,o,s,n);if(!m&&!v&&!y&&p&&w&&(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||w)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const b=xu({type:null,tagName:f,maskInputOptions:c});p=Ts({isMasked:Ei(e,a,i,o,s,b),element:e,value:p,maskInputFn:u})}return{type:Yt.Text,textContent:p||"",isStyle:m,rootId:d}}function EY(e,t){const{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:v=!1,rootId:y,maskTextClass:w,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:_}=t,g=Tw(e,a,o,i),x=uY(e);let C={};const P=e.attributes.length;for(let A=0;A<P;A++){const L=e.attributes[A];L.name&&!Ew(x,L.name,L.value)&&(C[L.name]=xw(n,x,xi(L.name),L.value,e,c))}if(x==="link"&&s){const A=Array.from(n.styleSheets).find(U=>U.href===e.href);let L=null;A&&(L=Lc(A)),L&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=Rc(L,A.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Lc(e.sheet);A&&(C._cssText=Rc(A,Eu(n)))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const A=e,L=Zm(A),U=Dc(A,Kf(x),L),z=A.checked;if(L!=="submit"&&L!=="button"&&U){const R=Ei(A,w,E,b,_,xu({type:L,tagName:Kf(x),maskInputOptions:l}));C.value=Ts({isMasked:R,element:A,value:U,maskInputFn:u})}z&&(C.checked=z)}if(x==="option"&&(e.selected&&!l.select?C.selected=!0:delete C.selected),x==="canvas"&&p){if(e.__context==="2d")sY(e)||(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),L=n.createElement("canvas");L.width=e.width,L.height=e.height;const U=L.toDataURL(d.type,d.quality);A!==U&&(C.rr_dataURL=A)}}if(x==="img"&&f){zo||(zo=n.createElement("canvas"),L1=zo.getContext("2d"));const A=e,L=A.currentSrc||A.getAttribute("src")||"<unknown-src>",U=A.crossOrigin,z=()=>{A.removeEventListener("load",z);try{zo.width=A.naturalWidth,zo.height=A.naturalHeight,L1.drawImage(A,0,0),C.rr_dataURL=zo.toDataURL(d.type,d.quality)}catch(R){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z);return}else console.warn(`Cannot inline img src=${L}! Error: ${R}`)}A.crossOrigin==="anonymous"&&(U?C.crossOrigin=U:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z)}if((x==="audio"||x==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),v||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),g){const{width:A,height:L}=e.getBoundingClientRect();C={class:C.class,rr_width:`${A}px`,rr_height:`${L}px`}}x==="iframe"&&!m(C.src)&&(!g&&!Cw(e)&&(C.rr_src=C.src),delete C.src);let O;try{customElements.get(x)&&(O=!0)}catch{}return{type:Yt.Element,tagName:x,attributes:C,childNodes:[],isSVG:bY(e)||void 0,needBlock:g,rootId:y,isCustom:O}}function yt(e){return e==null?"":e.toLowerCase()}function TY(e,t){if(t.comment&&e.type===Yt.Comment)return!0;if(e.type===Yt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&kw(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(yt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||yt(e.attributes.name)==="application-name"||yt(e.attributes.rel)==="icon"||yt(e.attributes.rel)==="apple-touch-icon"||yt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&yt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(yt(e.attributes.property).match(/^(og|twitter|fb):/)||yt(e.attributes.name).match(/^(og|twitter):/)||yt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(yt(e.attributes.name)==="robots"||yt(e.attributes.name)==="googlebot"||yt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(yt(e.attributes.name)==="author"||yt(e.attributes.name)==="generator"||yt(e.attributes.name)==="framework"||yt(e.attributes.name)==="publisher"||yt(e.attributes.name)==="progid"||yt(e.attributes.property).match(/^article:/)||yt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(yt(e.attributes.name)==="google-site-verification"||yt(e.attributes.name)==="yandex-verification"||yt(e.attributes.name)==="csrf-token"||yt(e.attributes.name)==="p:domain_verify"||yt(e.attributes.name)==="verify-v1"||yt(e.attributes.name)==="verification"||yt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Go(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:v={},maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_={},inlineImages:g=!1,recordCanvas:x=!1,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:z=!1}=t;let{preserveWhiteSpace:R=!0}=t;const I=SY(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,dataURLOptions:_,inlineImages:g,recordCanvas:x,keepIframeSrcFn:U,newlyAddedElement:z});if(!I)return console.warn(e,"not serialized"),null;let B;a.hasNode(e)?B=a.getId(e):TY(I,E)||!R&&I.type===Yt.Text&&!I.isStyle&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?B=Ps:B=eh();const M=Object.assign(I,{id:B});if(a.add(e,M),B===Ps)return null;C&&C(e);let $=!p;if(M.type===Yt.Element){$=$&&!M.needBlock,delete M.needBlock;const K=e.shadowRoot;K&&us(K)&&(M.isShadowHost=!0)}if((M.type===Yt.Document||M.type===Yt.Element)&&$){E.headWhitespace&&M.type===Yt.Element&&M.tagName==="head"&&(R=!1);const K={doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U};for(const V of Array.from(e.childNodes)){const Z=Go(V,K);Z&&M.childNodes.push(Z)}if(Zq(e)&&e.shadowRoot)for(const V of Array.from(e.shadowRoot.childNodes)){const Z=Go(V,K);Z&&(us(e.shadowRoot)&&(Z.isShadow=!0),M.childNodes.push(Z))}}return e.parentNode&&cs(e.parentNode)&&us(e.parentNode)&&(M.isShadow=!0),M.type===Yt.Element&&M.tagName==="iframe"&&!Tw(e,o,i,s)&&kY(e,()=>{const K=Cw(e);if(K&&P){const V=Go(K,{doc:K,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});V&&P(e,V)}},O),M.type===Yt.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&kw(M.attributes.href)==="css")&&_Y(e,()=>{if(A){const K=Go(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});K&&A(e,K)}},L),M}function PY(e,t){const{mirror:n=new ww,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:v=!1,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOM:E=!1,dataURLOptions:_,preserveWhiteSpace:g,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L=()=>!1}=t||{};return Go(e,{doc:e,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:v===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:v===!1?{}:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:_,inlineImages:p,recordCanvas:m,preserveWhiteSpace:g,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L,newlyAddedElement:!1})}function pn(e,t,n=document){const a={capture:!0,passive:!0};return n.addEventListener(e,t,a),()=>n.removeEventListener(e,t,a)}const Fo=`Please stop import mirror directly. Instead of that,\r
|
|
668
668
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
669
|
-
or you can use record.mirror to access the mirror instance during recording.`;let R1={map:{},getId(){return console.error(Fo),-1},getNode(){return console.error(Fo),null},removeNodeFromMap(){console.error(Fo)},has(){return console.error(Fo),!1},reset(){console.error(Fo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(R1=new Proxy(R1,{get(e,t,n){return t==="map"&&console.error(Fo),Reflect.get(e,t,n)}}));function As(e,t,n={}){let a=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),c=this;l<=0||l>t?(a&&(OY(a),a=null),o=s,e.apply(c,i)):!a&&n.trailing!==!1&&(a=Tu(()=>{o=n.leading===!1?0:Date.now(),a=null,e.apply(c,i)},l))}}function Pw(e,t,n,a,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,a?n:{set(s){Tu(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Pw(e,t,i||{},!0)}function th(e,t,n){try{if(!(t in e))return()=>{};const a=e[t],o=n(a);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=o,()=>{e[t]=a}}catch{return()=>{}}}let $c=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||($c=()=>new Date().getTime());function Aw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Iw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function En(e,t,n,a,o){if(!e)return!1;const i=Nw(e);if(!i)return!1;const s=Yo(t,n);if(!o){const u=a&&i.matches(a);return s(i)&&!u}const l=to(i,s);let c=-1;return l<0?!1:(a&&(c=to(i,Yo(null,a))),l>-1&&c<0?!0:l<c)}function TY(e,t){return t.getId(e)!==-1}function Ld(e,t){return t.getId(e)===Ps}function Ow(e,t){if(cs(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Ow(e.parentNode,t):!0:!0}function Jf(e){return!!e.changedTouches}function PY(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Bw(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Lw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qf(e){return!!e?.shadowRoot}class AY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let a;return n===void 0?a=this.id++:a=n,this.styleIDMap.set(t,a),this.idStyleMap.set(a,t),a}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Dw(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function IY(e){let t=e,n;for(;n=Dw(t);)t=n;return t}function MY(e){const t=e.ownerDocument;if(!t)return!1;const n=IY(e);return t.contains(n)}function Rw(e){const t=e.ownerDocument;return t?t.contains(e)||MY(e):!1}const $1={};function nh(e){const t=$1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return $1[e]=a.bind(window)}function NY(...e){return nh("requestAnimationFrame")(...e)}function Tu(...e){return nh("setTimeout")(...e)}function OY(...e){return nh("clearTimeout")(...e)}var Ye=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ye||{}),je=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(je||{}),fn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(fn||{}),zr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(zr||{}),jo=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(jo||{});function rh(e){try{return e.contentDocument}catch{}}function BY(e){try{return e.contentWindow}catch{}}function z1(e){return"__ln"in e}class LY{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let a=0;a<t;a++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&z1(t.previousSibling)){const a=t.previousSibling.__ln.next;n.next=a,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,a&&(a.previous=n)}else if(t.nextSibling&&z1(t.nextSibling)&&t.nextSibling.__ln.previous){const a=t.nextSibling.__ln.previous;n.previous=a,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,a&&(a.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const V1=(e,t)=>`${e}@${t}`;class DY{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,a=new LY,o=c=>{let u=c,d=Ps;for(;d===Ps;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!Rw(c))return;const u=cs(c.parentNode)?this.mirror.getId(Dw(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return a.addNode(c);const f=Go(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Bw(p,this.mirror)&&!En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),Lw(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Qf(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)}});f&&(t.push({parentId:u,nextId:d,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)F1(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!j1(this.droppedSet,c)&&!F1(this.removes,c,this.mirror)||j1(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;a.length;){let c=null;if(s){const u=this.mirror.getId(s.value.parentNode),d=o(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=a.tail;for(;u;){const d=u;if(u=u.previous,d){const f=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(f!==-1){c=d;break}else{const m=d.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const v=m.parentNode.host;if(this.mirror.getId(v)!==-1){c=d;break}}}}}}if(!c){for(;a.head;)a.removeNode(a.head.value);break}s=c.previous,a.removeNode(c.value),i(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+f).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!Ld(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Nw(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let a=t.attributeName,o=t.target.getAttribute(a);if(a==="value"){const s=Zm(n),l=n.tagName;o=Dc(n,l,s);const c=xu({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),u=Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Ts({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&a==="src"&&!this.keepIframeSrcFn(o))if(!rh(n))a="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),a==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ew(n.tagName,a)&&(i.attributes[a]=xw(this.doc,xi(n.tagName),xi(a),o,n,this.maskAttributeFn),a==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),u=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?u===""?i.styleDiff[l]=c:i.styleDiff[l]=[c,u]:i._unchangedStyles[l]=[c,u]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(i.styleDiff[l]=!1)}break}case"childList":{if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const a=this.mirror.getId(n),o=cs(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ld(n,this.mirror)||!TY(n,this.mirror)||(this.addedSet.has(n)?(Zf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&a===-1||Ow(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[V1(a,o)]?Zf(this.movedSet,n):this.removes.push({parentId:o,id:a,isShadow:cs(t.target)&&us(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ld(t,this.mirror))return;this.movedSet.add(t);let a=null;n&&this.mirror.hasNode(n)&&(a=this.mirror.getId(n)),a&&a!==-1&&(this.movedMap[V1(this.mirror.getId(t),a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);En(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(a=>this.genAdds(a)),Qf(t)&&t.shadowRoot.childNodes.forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Zf(e,t){e.delete(t),t.childNodes.forEach(n=>Zf(e,n))}function F1(e,t,n){return e.length===0?!1:RY(e,t,n)}function RY(e,t,n){let a=t.parentNode;for(;a;){const o=n.getId(a);if(e.some(i=>i.id===o))return!0;a=a.parentNode}return!1}function j1(e,t){return e.size===0?!1:$w(e,t)}function $w(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:$w(e,n):!1}let ds;function $Y(e){ds=e}function zY(){ds=void 0}const et=e=>ds?(...n)=>{try{return e(...n)}catch(a){if(ds&&ds(a)===!0)return()=>{};throw a}}:e,Ko=[];function rl(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function zw(e,t){const n=new DY;Ko.push(n),n.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(a=window[o]);const i=new a(et(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function VY({mousemoveCb:e,sampling:t,doc:n,mirror:a}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const c=As(et(f=>{const p=Date.now()-l;e(s.map(m=>(m.timeOffset-=p,m)),f),s=[],l=null}),i),u=et(As(et(f=>{const p=rl(f),{clientX:m,clientY:v}=Jf(f)?f.changedTouches[0]:f;l||(l=$c()),s.push({x:m,y:v,id:a.getId(p),timeOffset:$c()-l}),c(typeof DragEvent<"u"&&f instanceof DragEvent?je.Drag:f instanceof MouseEvent?je.MouseMove:je.TouchMove)}),o,{trailing:!1})),d=[pn("mousemove",u,n),pn("touchmove",u,n),pn("drag",u,n)];return et(()=>{d.forEach(f=>f())})}function FY({mouseInteractionCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const d=f=>p=>{const m=rl(p);if(En(m,a,o,i,!0))return;let v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=zr.Mouse;break;case"touch":v=zr.Touch;break;case"pen":v=zr.Pen;break}v===zr.Touch?fn[f]===fn.MouseDown?y="TouchStart":fn[f]===fn.MouseUp&&(y="TouchEnd"):zr.Pen}else Jf(p)&&(v=zr.Touch);v!==null?(u=v,(y.startsWith("Touch")&&v===zr.Touch||y.startsWith("Mouse")&&v===zr.Mouse)&&(v=null)):fn[f]===fn.Click&&(v=u,u=null);const w=Jf(p)?p.changedTouches[0]:p;if(!w)return;const b=n.getId(m),{clientX:E,clientY:_}=w;et(e)({type:fn[y],id:b,x:E,y:_,...v!==null&&{pointerType:v}})};return Object.keys(fn).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&l[f]!==!1).forEach(f=>{let p=xi(f);const m=d(f);if(window.PointerEvent)switch(fn[f]){case fn.MouseDown:case fn.MouseUp:p=p.replace("mouse","pointer");break;case fn.TouchStart:case fn.TouchEnd:return}c.push(pn(p,m,t))}),et(()=>{c.forEach(f=>f())})}function Vw({scrollCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){const l=et(As(et(c=>{const u=rl(c);if(!u||En(u,a,o,i,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const f=Aw(t.defaultView);e({id:d,x:f.left,y:f.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return pn("scroll",l,t)}function jY({viewportResizeCb:e},{win:t}){let n=-1,a=-1;const o=et(As(et(()=>{const i=Iw(),s=Mw();(n!==i||a!==s)&&(e({width:Number(s),height:Number(i)}),n=i,a=s)}),200));return pn("resize",o,t)}const HY=["INPUT","TEXTAREA","SELECT"],H1=new WeakMap;function UY({inputCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:v,unmaskTextSelector:y}){function w(P){let O=rl(P);const A=P.isTrusted,L=O&&Kf(O.tagName);if(L==="OPTION"&&(O=O.parentElement),!O||!L||HY.indexOf(L)<0||En(O,a,o,i,!0))return;const U=O;if(U.classList.contains(s)||l&&U.matches(l))return;const z=Zm(O);let R=Dc(U,L,z),I=!1;const B=xu({maskInputOptions:c,tagName:L,type:z}),M=Ei(O,p,v,m,y,B);(z==="radio"||z==="checkbox")&&(I=O.checked),R=Ts({isMasked:M,element:O,value:R,maskInputFn:u}),b(O,f?{text:R,isChecked:I,userTriggered:A}:{text:R,isChecked:I});const $=O.name;z==="radio"&&$&&I&&t.querySelectorAll(`input[type="radio"][name="${$}"]`).forEach(K=>{if(K!==O){const V=Ts({isMasked:M,element:K,value:Dc(K,L,z),maskInputFn:u});b(K,f?{text:V,isChecked:!I,userTriggered:!1}:{text:V,isChecked:!I})}})}function b(P,O){const A=H1.get(P);if(!A||A.text!==O.text||A.isChecked!==O.isChecked){H1.set(P,O);const L=n.getId(P);et(e)({...O,id:L})}}const _=(d.input==="last"?["change"]:["input","change"]).map(P=>pn(P,et(w),t)),g=t.defaultView;if(!g)return()=>{_.forEach(P=>P())};const x=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),C=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&_.push(...C.map(P=>Pw(P[0],P[1],{set(){et(w)({target:this,isTrusted:!1})}},!1,g))),et(()=>{_.forEach(P=>P())})}function zc(e){const t=[];function n(a,o){if(Bl("CSSGroupingRule")&&a.parentRule instanceof CSSGroupingRule||Bl("CSSMediaRule")&&a.parentRule instanceof CSSMediaRule||Bl("CSSSupportsRule")&&a.parentRule instanceof CSSSupportsRule||Bl("CSSConditionRule")&&a.parentRule instanceof CSSConditionRule){const s=Array.from(a.parentRule.cssRules).indexOf(a);o.unshift(s)}else if(a.parentStyleSheet){const s=Array.from(a.parentStyleSheet.cssRules).indexOf(a);o.unshift(s)}return o}return n(e,t)}function da(e,t,n){let a,o;return e?(e.ownerNode?a=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:a}):{}}function WY({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};const o=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:et((d,f,p)=>{const[m,v]=p,{id:y,styleId:w}=da(f,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,adds:[{rule:m,index:v}]}),d.apply(f,p)})});const i=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,removes:[{index:m}]}),d.apply(f,p)})});let s;a.CSSStyleSheet.prototype.replace&&(s=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replace:m}),d.apply(f,p)})}));let l;a.CSSStyleSheet.prototype.replaceSync&&(l=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replaceSync:m}),d.apply(f,p)})}));const c={};Ll("CSSGroupingRule")?c.CSSGroupingRule=a.CSSGroupingRule:(Ll("CSSMediaRule")&&(c.CSSMediaRule=a.CSSMediaRule),Ll("CSSConditionRule")&&(c.CSSConditionRule=a.CSSConditionRule),Ll("CSSSupportsRule")&&(c.CSSSupportsRule=a.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,f])=>{u[d]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(u[d].insertRule,{apply:et((p,m,v)=>{const[y,w]=v,{id:b,styleId:E}=da(m.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||E&&E!==-1)&&e({id:b,styleId:E,adds:[{rule:y,index:[...zc(m),w||0]}]}),p.apply(m,v)})}),f.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:et((p,m,v)=>{const[y]=v,{id:w,styleId:b}=da(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,removes:[{index:[...zc(m),y]}]}),p.apply(m,v)})})}),et(()=>{a.CSSStyleSheet.prototype.insertRule=o,a.CSSStyleSheet.prototype.deleteRule=i,s&&(a.CSSStyleSheet.prototype.replace=s),l&&(a.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([d,f])=>{f.prototype.insertRule=u[d].insertRule,f.prototype.deleteRule=u[d].deleteRule})})}function Fw({mirror:e,stylesheetManager:t},n){let a=null;n.nodeName==="#document"?a=e.getId(n):a=e.getId(n.host);const o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){const l=i.set?.call(this,s);if(a!==null&&a!==-1)try{t.adoptStyleSheets(s,a)}catch{}return l}}),et(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function qY({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:a},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:et((l,c,u)=>{const[d,f,p]=u;if(n.has(d))return i.apply(c,[d,f,p]);const{id:m,styleId:v}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,set:{property:d,value:f,priority:p},index:zc(c.parentRule)}),l.apply(c,u)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((l,c,u)=>{const[d]=u;if(n.has(d))return s.apply(c,[d]);const{id:f,styleId:p}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:d},index:zc(c.parentRule)}),l.apply(c,u)})}),et(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function YY({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:a,mirror:o,sampling:i,doc:s}){const l=et(u=>As(et(d=>{const f=rl(d);if(!f||En(f,t,n,a,!0))return;const{currentTime:p,volume:m,muted:v,playbackRate:y}=f;e({type:u,id:o.getId(f),currentTime:p,volume:m,muted:v,playbackRate:y})}),i.media||500)),c=[pn("play",l(jo.Play),s),pn("pause",l(jo.Pause),s),pn("seeked",l(jo.Seeked),s),pn("volumechange",l(jo.VolumeChange),s),pn("ratechange",l(jo.RateChange),s)];return et(()=>{c.forEach(u=>u())})}function GY({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const a=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){const f=new i(c,u,d);return o.set(f,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),f};const s=th(t.fonts,"add",function(l){return function(c){return Tu(et(()=>{const u=o.get(c);u&&(e(u),o.delete(c))}),0),l.apply(this,[c])}});return a.push(()=>{n.FontFace=i}),a.push(s),et(()=>{a.forEach(l=>l())})}function KY(e){const{doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const c=et(()=>{const u=t.getSelection();if(!u||l&&u?.isCollapsed)return;l=u.isCollapsed||!1;const d=[],f=u.rangeCount||0;for(let p=0;p<f;p++){const m=u.getRangeAt(p),{startContainer:v,startOffset:y,endContainer:w,endOffset:b}=m;En(v,a,o,i,!0)||En(w,a,o,i,!0)||d.push({start:n.getId(v),startOffset:y,end:n.getId(w),endOffset:b})}s({ranges:d})});return c(),pn("selectionchange",c)}function XY({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:th(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function JY(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let a;e.recordDOM&&(a=zw(e,e.doc));const o=VY(e),i=FY(e),s=Vw(e),l=jY(e,{win:n}),c=UY(e),u=YY(e);let d=()=>{},f=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=WY(e,{win:n}),f=Fw(e,e.doc),p=qY(e,{win:n}),e.collectFonts&&(m=GY(e)));const v=KY(e),y=XY(e),w=[];for(const b of e.plugins)w.push(b.observer(b.callback,n,b.options));return et(()=>{Ko.forEach(b=>b.reset()),a?.disconnect(),o(),i(),s(),l(),c(),u(),d(),f(),p(),m(),v(),y(),w.forEach(b=>b())})}function Bl(e){return typeof window[e]<"u"}function Ll(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ep{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,a,o){const i=a||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t);let l=i.get(n);return l||(l=this.generateIdFn(),i.set(n,l),s.set(l,n)),l}getIds(t,n){const a=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,a,o))}getRemoteId(t,n,a){const o=a||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const a=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,a))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class QY{constructor(){this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ZY{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ep(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const a=rh(t);a&&a.adoptedStyleSheets&&a.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(a.adoptedStyleSheets,this.mirror.getId(a))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:je.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case je.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),n.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.Drag:case je.TouchMove:case je.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.ViewportResize:return!1;case je.MediaInteraction:case je.MouseInteraction:case je.Scroll:case je.CanvasMutation:case je.Input:return this.replaceIds(n.data,t,["id"]),n;case je.StyleSheetRule:case je.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case je.Font:return n;case je.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),n;case je.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),n}}return!1}replace(t,n,a,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(a,n[i]):n[i]=t.getId(a,n[i]));return n}replaceIds(t,n,a){return this.replace(this.crossOriginIframeMirror,t,n,a)}replaceStyleIds(t,n,a){return this.replace(this.crossOriginIframeStyleMirror,t,n,a)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(a=>{this.replaceIdOnNode(a,n)})}patchRootIdOnNode(t,n){t.type!==Yt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(a=>{this.patchRootIdOnNode(a,n)})}}class eG{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tG{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!us(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const a=zw({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>a.disconnect()),this.restoreHandlers.push(Vw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Tu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Fw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=rh(t),a=BY(t);!n||!a||this.patchAttachShadow(a.Element,n)}patchAttachShadow(t,n){const a=this;this.restoreHandlers.push(th(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Rw(this)&&a.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var U1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Dl=0;Dl<U1.length;Dl++)nG[U1.charCodeAt(Dl)]=Dl;class W1{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class rG{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new AY,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const a={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,c)=>({rule:bw(l),index:c}))})),a.styleIds.push(s)}o.length>0&&(a.styles=o),this.adoptedStyleSheetCb(a)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class aG{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const a=this.nodeMap.get(t);return a&&Array.from(a).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,NY(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let It,Vc;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Gn=aY();function qr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:v=!0,maskAllInputs:y,maskInputOptions:w,slimDOMOptions:b,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,maxCanvasSize:x=null,packFn:C,sampling:P={},dataURLOptions:O={},mousemoveWait:A,recordDOM:L=!0,recordCanvas:U=!1,recordCrossOriginIframes:z=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:B=!1,inlineImages:M=!1,plugins:$,keepIframeSrcFn:K=()=>!1,ignoreCSSAttributes:V=new Set([]),errorHandler:Z,onMutation:q,getCanvasManager:oe}=e;$Y(Z);const j=z?window.parent===window:!0;let W=!1;if(!j)try{window.parent.document&&(W=!1)}catch{W=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!W)return()=>{};A!==void 0&&P.mousemove===void 0&&(P.mousemove=A),Gn.reset();const Y=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:w!==void 0?w:{},H=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};PY();let T,J=0;const le=pe=>{for(const Ie of $||[])Ie.eventProcessor&&(pe=Ie.eventProcessor(pe));return C&&!W&&(pe=C(pe)),pe};It=(pe,Ie)=>{const xe=pe;if(xe.timestamp=$c(),Ko[0]?.isFrozen()&&xe.type!==Ye.FullSnapshot&&!(xe.type===Ye.IncrementalSnapshot&&xe.data.source===je.Mutation)&&Ko.forEach(X=>X.unfreeze()),j)t?.(le(xe),Ie);else if(W){const X={type:"rrweb",event:le(xe),origin:window.location.origin,isCheckout:Ie};window.parent.postMessage(X,"*")}if(xe.type===Ye.FullSnapshot)T=xe,J=0;else if(xe.type===Ye.IncrementalSnapshot){if(xe.data.source===je.Mutation&&xe.data.isAttachIframe)return;J++;const X=a&&J>=a,re=n&&T&&xe.timestamp-T.timestamp>n;(X||re)&&Ae(!0)}};const Oe=pe=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Mutation,...pe}})},ee=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.Scroll,...pe}}),Te=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),ae=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.AdoptedStyleSheet,...pe}}),ue=new rG({mutationCb:Oe,adoptedStyleSheetCb:ae}),D=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new QY:new ZY({mirror:Gn,mutationCb:Oe,stylesheetManager:ue,recordCrossOriginIframes:z,wrappedEmit:It});for(const pe of $||[])pe.getMirror&&pe.getMirror({nodeMirror:Gn,crossOriginIframeMirror:D.crossOriginIframeMirror,crossOriginIframeStyleMirror:D.crossOriginIframeStyleMirror});const de=new aG,fe=iG(oe,{mirror:Gn,win:window,mutationCb:pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),recordCanvas:U,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:x,sampling:P.canvas,dataURLOptions:O,errorHandler:Z}),ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new eG:new tG({mutationCb:Oe,scrollCb:ee,bypassOptions:{onMutation:q,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:v,maskInputOptions:Y,dataURLOptions:O,maskAttributeFn:E,maskTextFn:g,maskInputFn:_,recordCanvas:U,inlineImages:M,sampling:P,slimDOMOptions:H,iframeManager:D,stylesheetManager:ue,canvasManager:fe,keepIframeSrcFn:K,processedNodeManager:de},mirror:Gn}),Ae=(pe=!1)=>{if(!L)return;It({type:Ye.Meta,data:{href:window.location.href,width:Mw(),height:Iw()}},pe),ue.reset(),ce.init(),Ko.forEach(xe=>xe.lock());const Ie=EY(document,{mirror:Gn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:v,maskAllInputs:Y,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,slimDOM:H,dataURLOptions:O,recordCanvas:U,inlineImages:M,onSerialize:xe=>{Bw(xe,Gn)&&D.addIframe(xe),Lw(xe,Gn)&&ue.trackLinkElement(xe),Qf(xe)&&ce.addShadowRoot(xe.shadowRoot,document)},onIframeLoad:(xe,X)=>{D.attachIframe(xe,X),xe.contentWindow&&fe.addWindow(xe.contentWindow),ce.observeAttachShadow(xe)},onStylesheetLoad:(xe,X)=>{ue.attachLinkElement(xe,X)},keepIframeSrcFn:K});if(!Ie)return console.warn("Failed to snapshot the document");It({type:Ye.FullSnapshot,data:{node:Ie,initialOffset:Aw(window)}}),Ko.forEach(xe=>xe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,Gn.getId(document))};Vc=Ae;try{const pe=[],Ie=X=>et(JY)({onMutation:q,mutationCb:Oe,mousemoveCb:(re,ye)=>It({type:Ye.IncrementalSnapshot,data:{source:ye,positions:re}}),mouseInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MouseInteraction,...re}}),scrollCb:ee,viewportResizeCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.ViewportResize,...re}}),inputCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Input,...re}}),mediaInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MediaInteraction,...re}}),styleSheetRuleCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleSheetRule,...re}}),styleDeclarationCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleDeclaration,...re}}),canvasMutationCb:Te,fontCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Font,...re}}),selectionCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Selection,...re}})},customElementCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.CustomElement,...re}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:Y,inlineStylesheet:v,sampling:P,recordDOM:L,recordCanvas:U,inlineImages:M,userTriggeredOnInput:I,collectFonts:B,doc:X,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,keepIframeSrcFn:K,blockSelector:i,unblockSelector:s,slimDOMOptions:H,dataURLOptions:O,mirror:Gn,iframeManager:D,stylesheetManager:ue,shadowDomManager:ce,processedNodeManager:de,canvasManager:fe,ignoreCSSAttributes:V,plugins:$?.filter(re=>re.observer)?.map(re=>({observer:re.observer,options:re.options,callback:ye=>It({type:Ye.Plugin,data:{plugin:re.name,payload:ye}})}))||[]},{});D.addLoadListener(X=>{try{pe.push(Ie(X.contentDocument))}catch(re){console.warn(re)}});const xe=()=>{Ae(),pe.push(Ie(document))};return document.readyState==="interactive"||document.readyState==="complete"?xe():(pe.push(pn("DOMContentLoaded",()=>{It({type:Ye.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&xe()})),pe.push(pn("load",()=>{It({type:Ye.Load,data:{}}),R==="load"&&xe()},window))),()=>{pe.forEach(X=>X()),de.destroy(),Vc=void 0,zY()}}catch(pe){console.warn(pe)}}function oG(e){if(!Vc)throw new Error("please take full snapshot after start recording");Vc(e)}qr.mirror=Gn;qr.takeFullSnapshot=oG;function iG(e,t){try{return e?e(t):new W1}catch{return console.warn("Unable to initialize CanvasManager"),new W1}}var q1;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(q1||(q1={}));const sG=3,lG=5;function ah(e){return e>9999999999?e:e*1e3}function Dd(e){return e>9999999999?e/1e3:e}function al(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ye.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Kn(t,10,1e3)}}),t.category==="console")))}const cG="button,a";function jw(e){return e.closest(cG)||e}function Hw(e){const t=Uw(e);return!t||!(t instanceof Element)?t:jw(t)}function Uw(e){return uG(e)?e.target:e}function uG(e){return typeof e=="object"&&!!e&&"target"in e}let fa;function dG(e){return fa||(fa=[],fG()),fa.push(e),()=>{const t=fa?fa.indexOf(e):-1;t>-1&&fa.splice(t,1)}}function fG(){wn(bt,"open",function(e){return function(...t){if(fa)try{fa.forEach(n=>n())}catch{}return e.apply(bt,t)}})}const pG=new Set([je.Mutation,je.StyleSheetRule,je.StyleDeclaration,je.AdoptedStyleSheet,je.CanvasMutation,je.Selection,je.MediaInteraction]);function mG(e,t,n){e.handleClick(t,n)}class hG{constructor(t,n,a=al){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=a}addListeners(){const t=dG(()=>{this._lastMutation=Y1()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(gG(n,this._ignoreSelector)||!yG(t))return;const a={timestamp:Dd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===a.node&&Math.abs(o.timestamp-a.timestamp)<1)||(this._clicks.push(a),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Dd(t)}registerScroll(t=Date.now()){this._lastScroll=Dd(t)}registerClick(t){const n=jw(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Y1();this._clicks.forEach(a=>{!a.mutationAfter&&this._lastMutation&&(a.mutationAfter=a.timestamp<=this._lastMutation?this._lastMutation-a.timestamp:void 0),!a.scrollAfter&&this._lastScroll&&(a.scrollAfter=a.timestamp<=this._lastScroll?this._lastScroll-a.timestamp:void 0),a.timestamp+this._timeout<=n&&t.push(a)});for(const a of t){const o=this._clicks.indexOf(a);o>-1&&(this._generateBreadcrumbs(a),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,a=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!a&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,d);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nl(()=>this._checkClicks(),1e3)}}const vG=["A","BUTTON","INPUT"];function gG(e,t){return!!(!vG.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function yG(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Y1(){return Date.now()/1e3}function bG(e,t){try{if(!wG(t))return;const{source:n}=t.data;if(pG.has(n)&&e.registerMutation(t.timestamp),n===je.Scroll&&e.registerScroll(t.timestamp),kG(t)){const{type:a,id:o}=t.data,i=qr.mirror.getNode(o);i instanceof HTMLElement&&a===fn.Click&&e.registerClick(i)}}catch{}}function wG(e){return e.type===sG}function kG(e){return e.data.source===je.MouseInteraction}function Cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(oh||{});const _G=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function SG(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(_G.has(n)){let a=n;(n==="data-testid"||n==="data-test-id")&&(a="testId"),t[a]=e[n]}return t}const CG=e=>t=>{if(!e.isEnabled())return;const n=xG(t);if(!n)return;const a=t.name==="click",o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&mG(e.clickDetector,n,Hw(t.event)),al(e,n)};function Ww(e,t){const n=qr.mirror.getId(e),a=n&&qr.mirror.getNode(n),o=a&&qr.mirror.getMeta(a),i=o&&TG(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===oh.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:SG(i.attributes)}}:{}}}function xG(e){const{target:t,message:n}=EG(e);return Cr({category:`ui.${e.name}`,...Ww(t,n)})}function EG(e){const t=e.name==="click";let n,a=null;try{a=t?Hw(e.event):Uw(e.event),n=Hn(a,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:a,message:n}}function TG(e){return e.type===oh.Element}function PG(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=AG(t);n&&al(e,n)}function AG(e){const{metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i,target:s}=e;if(!s||IG(s)||!i)return null;const l=t||a||o,c=i.length===1;if(!l&&c)return null;const u=Hn(s,{maxStringLength:200})||"<unknown>",d=Ww(s,u);return Cr({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i}})}function IG(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const MG={resource:DG,paint:BG,navigation:LG};function Rl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function NG(e){return e.map(OG).filter(Boolean)}function OG(e){const t=MG[e.entryType];return t?t(e):null}function Ti(e){return((hn()||bt.performance.timeOrigin)+e)/1e3}function BG(e){const{duration:t,entryType:n,name:a,startTime:o}=e,i=Ti(o);return{type:n,name:a,start:i,end:i+t,data:void 0}}function LG(e){const{entryType:t,name:n,decodedBodySize:a,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:f,redirectCount:p,startTime:m,transferSize:v,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ti(m),end:Ti(i),name:n,data:{size:v,decodedBodySize:a,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:f,domComplete:i,redirectCount:p}}}function DG(e){const{entryType:t,initiatorType:n,name:a,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ti(i),end:Ti(o),name:a,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function RG(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Pu(e,"largest-contentful-paint",n)}function $G(e){return e.sources!==void 0}function zG(e){const t=[],n=[];for(const a of e.entries)if($G(a)){const o=[];for(const i of a.sources)if(i.node){n.push(i.node);const s=qr.mirror.getId(i.node);s&&o.push(s)}t.push({value:a.value,nodeIds:o.length?o:void 0})}return Pu(e,"cumulative-layout-shift",n,t)}function VG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"first-input-delay",n)}function FG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"interaction-to-next-paint",n)}function Pu(e,t,n,a){const o=e.value,i=e.rating,s=Ti(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(l=>qr.mirror.getId(l)):void 0,attributions:a}}}function jG(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const a=[];return["navigation","paint","resource"].forEach(o=>{a.push(wo(o,n))}),a.push(Gm(Rl(RG,e)),Ym(Rl(zG,e)),rw(Rl(VG,e)),aw(Rl(FG,e))),()=>{a.forEach(o=>o())}}const ze=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,HG='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function UG(){const e=new Blob([HG]);return URL.createObjectURL(e)}const G1=["log","warn","error"],ec="[Replay] ";function Rd(e,t="info"){Ia({category:"console",data:{logger:"replay"},level:t,message:`${ec}${e}`},{level:t})}function WG(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:a=>{e=!!a.captureExceptions,t=!!a.traceInternals}};return ze?(G1.forEach(a=>{n[a]=(...o)=>{ke[a](ec,...o),t&&Rd(o.join(""),$3(a))}}),n.exception=(a,...o)=>{o.length&&n.error&&n.error(...o),ke.error(ec,a),e?bu(a):t&&Rd(a,"error")},n.infoTick=(...a)=>{ke.log(ec,...a),t&&setTimeout(()=>Rd(a[0]),0)}):G1.forEach(a=>{n[a]=()=>{}}),n}const Ve=WG();class ih extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qm}.`)}}class qw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Qm)throw new ih;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?ah(t):null}}class qG{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:a})=>{a.success?t():n()},{once:!0}),this._worker.addEventListener("error",a=>{n(a)},{once:!0})}),this._ensureReadyPromise)}destroy(){ze&&Ve.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const a=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const c=l;if(c.method===t&&c.id===a){if(this._worker.removeEventListener("message",s),!c.success){ze&&Ve.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:a,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class YG{constructor(t){this._worker=new qG(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=ah(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const a=JSON.stringify(t);return this._totalSize+=a.length,this._totalSize>Qm?Promise.reject(new ih):this._sendEventToWorker(a)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ze&&Ve.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class GG{constructor(t){this._fallback=new qw,this._compression=new YG(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){ze&&Ve.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:a}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=a,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){ze&&Ve.exception(i,"Failed to add events when switching buffers.")}}}function KG({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=XG(t);if(n)return n}return ze&&Ve.log("Using simple buffer"),new qw}function XG(e){try{const t=e||JG();if(!t)return;ze&&Ve.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new GG(n)}catch(t){ze&&Ve.exception(t,"Failed to create compression worker")}}function JG(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?UG():""}function sh(){try{return"sessionStorage"in bt&&!!bt.sessionStorage}catch{return!1}}function QG(e){ZG(),e.session=void 0}function ZG(){if(sh())try{bt.sessionStorage.removeItem(Xm)}catch{}}function Yw(e){return e===void 0?!1:Math.random()<e}function lh(e){if(sh())try{bt.sessionStorage.setItem(Xm,JSON.stringify(e))}catch{}}function Gw(e){const t=Date.now(),n=e.id||Nn(),a=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:a,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function eK(e,t){return Yw(e)?"session":t?"buffer":!1}function K1({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:a}={}){const o=eK(e,t),i=Gw({sampled:o,previousSessionId:a});return n&&lh(i),i}function tK(){if(!sh())return null;try{const e=bt.sessionStorage.getItem(Xm);if(!e)return null;const t=JSON.parse(e);return ze&&Ve.infoTick("Loading existing session"),Gw(t)}catch{return null}}function tp(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Kw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:a=Date.now()}){return tp(e.started,t,a)||tp(e.lastActivity,n,a)}function Xw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Kw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function $d({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},a){const o=a.stickySession&&tK();return o?Xw(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ze&&Ve.infoTick("Session in sessionStorage is expired, creating new one..."),K1(a,{previousSessionId:o.id})):o:(ze&&Ve.infoTick("Creating new session"),K1(a,{previousSessionId:n}))}function nK(e){return e.type===Ye.Custom}function ch(e,t,n){return Qw(e,t)?(Jw(e,t,n),!0):!1}function rK(e,t,n){return Qw(e,t)?Jw(e,t,n):Promise.resolve(null)}async function Jw(e,t,n){const{eventBuffer:a}=e;if(!a||a.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&a.clear(),n&&(a.hasCheckout=!0,a.waitForCheckout=!1);const i=e.getOptions(),s=aK(t,i.beforeAddRecordingEvent);return s?await a.addEvent(s):void 0}catch(i){const s=i&&i instanceof ih,l=s?"addEventSizeExceeded":"addEvent";if(s&&o)return a.clear(),a.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:l});const c=Qe();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Qw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ah(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(ze&&Ve.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function aK(e,t){try{if(typeof t=="function"&&nK(e))return t(e)}catch(n){return ze&&Ve.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function uh(e){return!e.type}function np(e){return e.type==="transaction"}function oK(e){return e.type==="replay_event"}function X1(e){return e.type==="feedback"}function iK(e){return(t,n)=>{if(!e.isEnabled()||!uh(t)&&!np(t))return;const a=n?.statusCode;if(!(!a||a<200||a>=300)){if(np(t)){sK(e,t);return}lK(e,t)}}}function sK(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function lK(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:a}=e.getOptions();typeof a=="function"&&!a(t)||nl(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function cK(e){return t=>{!e.isEnabled()||!uh(t)||uK(e,t)}}function uK(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const a=Cr({category:"replay.hydrate-error",data:{url:Oi()}});al(e,a)}}function dK(e){const t=Qe();t&&t.on("beforeAddBreadcrumb",n=>fK(e,n))}function fK(e,t){if(!e.isEnabled()||!Zw(t))return;const n=pK(t);n&&al(e,n)}function pK(e){return!Zw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?mK(e):Cr(e)}function mK(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Cr(e);let n=!1;const a=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Ol?(n=!0,`${o.slice(0,Ol)}…`):o;if(typeof o=="object")try{const i=Kn(o,7);return JSON.stringify(i).length>Ol?(n=!0,`${JSON.stringify(i,null,2).slice(0,Ol)}…`):i}catch{}return o});return Cr({...e,data:{...e.data,arguments:a,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Zw(e){return!!e.category}function hK(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function e6(){const e=lt().getPropagationContext().dsc;e&&delete e.replay_id;const t=tn();if(t){const n=na(t);delete n.replay_id}}function vK(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function gK(e,t){return e.recordingMode!=="buffer"||t.message===Jm||!t.exception||t.type?!1:Yw(e.getOptions().errorSampleRate)}function yK(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:oK(t)?(delete t.breadcrumbs,t):!uh(t)&&!np(t)&&!X1(t)?t:e.checkAndHandleExpiredSession()?X1(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),vK(e,t),t):hK(t,n)&&!e.getOptions()._experiments.captureExceptions?(ze&&Ve.log("Ignoring error from rrweb internals",t),null):((gK(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(e6(),t),{id:"Replay"})}function Au(e,t){return t.map(({type:n,start:a,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Ye.Custom,timestamp:a,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:a,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function bK(e){const{from:t,to:n}=e,a=Date.now()/1e3;return{type:"navigation.push",start:a,end:a,name:n,data:{previous:t}}}function wK(e){return t=>{if(!e.isEnabled())return;const n=bK(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Au(e,[n]),!1)))}}function kK(e,t){return ze&&e.getOptions()._experiments.traceInternals?!1:fH(t,Qe())}function t6(e,t){e.isEnabled()&&t!==null&&(kK(e,t.name)||e.addUpdate(()=>(Au(e,[t]),!0)))}function Iu(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=pw(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function n6(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Fc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},a=n.warnings||[];return n.warnings=[...a,t],e._meta=n,e}function r6(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:a,url:o,method:i,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:a/1e3,name:o,data:{method:i,statusCode:s,request:l,response:c}}}function Is(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ga(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const a={headers:e,size:t},{body:o,warnings:i}=_K(n);return a.body=o,i?.length&&(a._meta={warnings:i}),a}function rp(e,t){return Object.entries(e).reduce((n,[a,o])=>{const i=a.toLowerCase();return t.includes(i)&&e[a]&&(n[i]=o),n},{})}function _K(e){if(!e||typeof e!="string")return{body:e};const t=e.length>I1,n=SK(e);if(t){const a=e.slice(0,I1);return n?{body:a,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${a}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function SK(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function jc(e,t){const n=CK(e);return Wr(n,t)}function CK(e,t=bt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(bt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const a=n.href;return!e.endsWith("/")&&a.endsWith("/")?a.slice(0,-1):a}async function xK(e,t,n){try{const a=await TK(e,t,n),o=r6("resource.fetch",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture fetch breadcrumb")}}function EK(e,t){const{input:n,response:a}=t,o=n?hw(n):void 0,i=Iu(o),s=a?n6(a.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function TK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a}=t,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,f=jc(s,n.networkDetailAllowUrls)&&!jc(s,n.networkDetailDenyUrls),p=f?PK(n,t.input,u):Is(u),m=await AK(f,n,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:c,request:p,response:m}}function PK({networkCaptureBodies:e,networkRequestHeaders:t},n,a){const o=n?NK(n,t):{};if(!e)return ga(o,a,void 0);const i=hw(n),[s,l]=mw(i,Ve),c=ga(o,a,s);return l?Fc(c,l):c}async function AK(e,{networkCaptureBodies:t,networkResponseHeaders:n},a,o){if(!e&&o!==void 0)return Is(o);const i=a?a6(a.headers,n):{};if(!a||!t&&o!==void 0)return ga(i,o,void 0);const[s,l]=await MK(a),c=IK(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return l?Fc(c,l):c}function IK(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:a,headers:o}){try{const i=e?.length&&n===void 0?Iu(e):n;return a?t?ga(o,i,e):ga(o,i,void 0):Is(i)}catch(i){return ze&&Ve.exception(i,"Failed to serialize response body"),ga(o,n,void 0)}}async function MK(e){const t=OK(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await BK(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(ze&&Ve.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ze&&Ve.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function a6(e,t){const n={};return t.forEach(a=>{e.get(a)&&(n[a]=e.get(a))}),n}function NK(e,t){return e.length===1&&typeof e[0]!="string"?J1(e[0],t):e.length===2?J1(e[1],t):{}}function J1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?a6(n,t):Array.isArray(n)?{}:rp(n,t):{}}function OK(e){try{return e.clone()}catch(t){ze&&Ve.exception(t,"Failed to clone response body")}}function BK(e){return new Promise((t,n)=>{const a=nl(()=>n(new Error("Timeout while trying to read response body")),500);LK(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(a))})}async function LK(e){return await e.text()}async function DK(e,t,n){try{const a=$K(e,t,n),o=r6("resource.xhr",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture xhr breadcrumb")}}function RK(e,t){const{xhr:n,input:a}=t;if(!n)return;const o=Iu(a),i=n.getResponseHeader("content-length")?n6(n.getResponseHeader("content-length")):jK(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function $K(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a,input:s,xhr:l}=t,{url:c,method:u,status_code:d=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!l||!jc(c,n.networkDetailAllowUrls)||jc(c,n.networkDetailDenyUrls)){const C=Is(f),P=Is(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:C,response:P}}const m=l[eo],v=m?rp(m.request_headers,n.networkRequestHeaders):{},y=rp(zK(l),n.networkResponseHeaders),[w,b]=n.networkCaptureBodies?mw(s,Ve):[void 0],[E,_]=n.networkCaptureBodies?VK(l):[void 0],g=ga(v,f,w),x=ga(y,p,E);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:b?Fc(g,b):g,response:_?Fc(x,_):x}}function zK(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
670
|
-
`).reduce((n,a)=>{const[o,i]=a.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}function
|
|
671
|
-
`;if(typeof e=="string")n=`${a}${e}`;else{const i=new TextEncoder().encode(a);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function iX({client:e,scope:t,replayId:n,event:a}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit("preprocessEvent",a,i);const s=await S3(e.getOptions(),a,i,t,e,Dr());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:u}=l?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function sX({recordingData:e,replayId:t,segmentId:n,eventContext:a,timestamp:o,session:i}){const s=oX({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:u,initialTimestamp:d}=a,f=Qe(),p=lt(),m=f?.getTransport(),v=f?.getDsn();if(!f||!m||!v||!i.sampled)return ra({});const y={type:Rq,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await iX({scope:p,client:f,replayId:t,event:y});if(!w)return f.recordDroppedEvent("event_processor","replay"),ze&&Ve.log("An event processor returned `null`, will not send event."),ra({});delete w.sdkProcessingMetadata;const b=aX(w,s,v,f.getOptions().tunnel);let E;try{E=await m.send(b)}catch(g){const x=new Error(Jm);try{x.cause=g}catch{}throw x}if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new o6(E.statusCode);const _=L3({},E);if(B3(_,"replay"))throw new dh(_);return E}class o6 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class dh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function i6(e,t={count:0,interval:Hq}){const{recordingData:n,onError:a}=e;if(n.length)try{return await sX(e),!0}catch(o){if(o instanceof o6||o instanceof dh)throw o;if($j("Replays",{_retryCount:t.count}),a&&a(o),t.count>=Uq){const i=new Error(`${Jm} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{nl(async()=>{try{await i6(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const s6="__THROTTLED",lX="__SKIPPED";function cX(e,t,n){const a=new Map,o=l=>{const c=l-n;a.forEach((u,d)=>{d<c&&a.delete(d)})},i=()=>[...a.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const d=s;return s=!0,d?lX:s6}s=!1;const u=a.get(c)||0;return a.set(c,u+1),e(...l)}}class uX{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:$q,sessionIdleExpire:zq},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=QK(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=cX((s,l)=>rK(this,s,l),300,5);const{slowClickTimeout:a,slowClickIgnoreSelectors:o}=this.getOptions(),i=a?{threshold:Math.min(Wq,a),timeout:a,scrollTimeout:qq,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new hG(this,i)),ze){const s=t._experiments;Ve.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{bt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=Cr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=Cr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{PG(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){ze&&Ve.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:a}=this._options,o=n<=0&&a<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){ze&&Ve.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ze&&Ve.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){ze&&Ve.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=$d({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in buffer mode");const t=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=qr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:jq}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:eX(this),...ZK(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{ze&&Ve.log(`Stopping Replay${n?` triggered by ${n}`:""}`),e6(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,QG(this)}catch(a){this.handleException(a)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ze&&Ve.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),ze&&Ve.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();ze&&Ve.log("Converting buffer to session"),await this.flushImmediate();const a=this.stopRecording();!t||!a||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tp(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${bt.location.pathname}${bt.location.hash}${bt.location.search}`,n=`${bt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const a=this._throttledAddEvent(t,n);if(a===s6){const o=Cr({category:"replay.throttled"});this.addUpdate(()=>!ch(this,{type:lG,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return a}getCurrentRoute(){const t=this.lastActiveSpan||tn(),n=t&&en(t),o=(n&&tt(n).data||{})[kn];if(!(!n||!o||!["route","custom"].includes(o)))return tt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=KG({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,a=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=a}_checkSession(){if(!this.session)return!1;const t=this.session;return Xw(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{bt.document.addEventListener("visibilitychange",this._handleVisibilityChange),bt.addEventListener("blur",this._handleWindowBlur),bt.addEventListener("focus",this._handleWindowFocus),bt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(KK(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=jG(this)}_removeListeners(){try{bt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),bt.removeEventListener("blur",this._handleWindowBlur),bt.removeEventListener("focus",this._handleWindowFocus),bt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Kw(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){ze&&Ve.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=NG(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(a=>a.start>=n)}return Promise.all(Au(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const a=n.getEarliestTimestamp();a&&a<this._context.initialTimestamp&&(this._context.initialTimestamp=a)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ze&&Ve.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await XK(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const a=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await i6({replayId:t,recordingData:i,segmentId:o,eventContext:a,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const a=Qe();if(a){const o=n instanceof dh?"ratelimit_backoff":"send_error";a.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ze&&Ve.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){ze&&Ve.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const l=this.eventBuffer;l&&this.session.segmentId===0&&!l.hasCheckout&&ze&&Ve.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&lh(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(l=>{const c=rX(l.target),u=n.join(",");return c?.matches(u)}))return!1;const a=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&a>o;if(a>i||s){const l=Cr({category:"replay.mutations",data:{count:a,limit:s}});this._createCustomBreadcrumb(l)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Ki(e,t){return[...e,...t].join(",")}function dX({mask:e,unmask:t,block:n,unblock:a,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Ki(e,[".sentry-mask","[data-sentry-mask]"]),l=Ki(t,[]);return{maskTextSelector:s,unmaskTextSelector:l,blockSelector:Ki(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ki(a,[]),ignoreSelector:Ki(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function fX({el:e,key:t,maskAttributes:n,maskAllText:a,privacyOptions:o,value:i}){return!a||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Q1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',pX=["content-length","content-type","accept"];let Z1=!1;const mX=e=>new hX(e);class hX{constructor({flushMinDelay:t=Vq,flushMaxDelay:n=Fq,minReplayDuration:a=Yq,maxReplayDuration:o=M1,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:w=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:_=[],networkResponseHeaders:g=[],mask:x=[],maskAttributes:C=["title","placeholder","aria-label"],unmask:P=[],block:O=[],unblock:A=[],ignore:L=[],maskFn:U,beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I}={}){this.name="Replay";const B=dX({mask:x,unmask:P,block:O,unblock:A,ignore:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:U,maskInputFn:U,maskAttributeFn:(M,$,K)=>fX({maskAttributes:C,maskAllText:u,privacyOptions:B,key:M,value:$,el:K}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:M=>{try{M.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(a,Gq),maxReplayDuration:Math.min(o,M1),stickySession:i,useCompression:s,workerUrl:l,blockAllMedia:f,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:v,slowClickIgnoreSelectors:y,networkDetailAllowUrls:w,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:eg(_),networkResponseHeaders:eg(g),beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Q1}`:Q1),this._isInitialized&&_1())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Z1}set _isInitialized(t){Z1=t}afterAllSetup(t){!_1()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=vX(this._initialOptions,t);this._replay=new uX({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function vX(e,t){const n=t.getOptions(),a={sessionSampleRate:0,errorSampleRate:0,...e},o=bo(n.replaysSessionSampleRate),i=bo(n.replaysOnErrorSampleRate);return o==null&&i==null&&ia(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(a.sessionSampleRate=o),i!=null&&(a.errorSampleRate=i),a}function eg(e){return[...pX,...e.map(t=>t.toLowerCase())]}function fr(e=0){return((hn()||performance.timeOrigin)+e)/1e3}function gX(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:a}=sw(e.nextHopProtocol);t.push(["network.protocol.version",a],["network.protocol.name",n])}return hn()?[...t,["http.request.redirect_start",fr(e.redirectStart)],["http.request.fetch_start",fr(e.fetchStart)],["http.request.domain_lookup_start",fr(e.domainLookupStart)],["http.request.domain_lookup_end",fr(e.domainLookupEnd)],["http.request.connect_start",fr(e.connectStart)],["http.request.secure_connection_start",fr(e.secureConnectionStart)],["http.request.connection_end",fr(e.connectEnd)],["http.request.request_start",fr(e.requestStart)],["http.request.response_start",fr(e.responseStart)],["http.request.response_end",fr(e.responseEnd)]]:t}const tg=new WeakMap,zd=new Map,l6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function yX(e,t){const{traceFetch:n,traceXHR:a,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l,onRequestSpanStart:c}={...l6,...t},u=typeof i=="function"?i:p=>!0,d=p=>wX(p,l),f={};n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const v=zd.get(m.span_id);v&&(m.timestamp=v/1e3,zd.delete(m.span_id))}}),p)),o&&tU(p=>{if(p.response){const m=tg.get(p.response);m&&p.endTimestamp&&zd.set(m,p.endTimestamp)}}),U3(p=>{const m=qH(p,u,d,f);if(p.response&&p.fetchData.__span&&tg.set(p.response,p.fetchData.__span),m){const v=c6(p.fetchData.url),y=v?uo(v).host:void 0;m.setAttributes({"http.url":v,"server.address":y}),s&&ng(m),c?.(m,{headers:p.headers})}})),a&&fw(p=>{const m=kX(p,u,d,f);if(m){s&&ng(m);let v;try{v=new Headers(p.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(m,{headers:v})}})}function bX(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function ng(e){const{url:t}=tt(e).data;if(!t||typeof t!="string")return;const n=wo("resource",({entries:a})=>{a.forEach(o=>{bX(o)&&o.name.endsWith(t)&&(gX(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function wX(e,t){const n=Oi();if(n){let a,o;try{a=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=a.origin===o;return t?Wr(a.toString(),t)||i&&Wr(a.pathname,t):i}else{const a=!!e.match(/^\/(?!\/)/);return t?Wr(e,t):a}}function kX(e,t,n,a){const o=e.xhr,i=o?.[eo];if(!o||o.__sentry_own_request__||!i)return;const{url:s,method:l}=i,c=ta()&&t(s);if(e.endTimestamp&&c){const y=o.__sentry_xhr_span_id__;if(!y)return;const w=a[y];w&&i.status_code!==void 0&&(n3(w,i.status_code),w.end(),delete a[y]);return}const u=c6(s),d=uo(u||s),f=WH(s),p=!!tn(),m=c&&p?Pa({name:`${l} ${f}`,attributes:{url:s,type:"xhr","http.method":l,"http.url":u,"server.address":d?.host,[xt]:"auto.http.browser",[ea]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Ta;o.__sentry_xhr_span_id__=m.spanContext().spanId,a[o.__sentry_xhr_span_id__]=m,n(s)&&_X(o,ta()&&p?m:void 0);const v=Qe();return v&&v.emit("beforeOutgoingRequestSpan",m,e),m}function _X(e,t){const{"sentry-trace":n,baggage:a}=R3({span:t});n&&SX(e,n,a)}function SX(e,t,n){const a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const o=a?.baggage;(!o||!CX(o))&&e.setRequestHeader("baggage",n)}}catch{}}function CX(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function c6(e){try{return new URL(e,at.location.origin).href}catch{return}}function xX(){at.document?at.document.addEventListener("visibilitychange",()=>{const e=tn();if(!e)return;const t=en(e);if(at.document.hidden&&t){const n="cancelled",{op:a,status:o}=tt(t);Un&&ke.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${a}`),o||t.setStatus({code:Wt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Un&&ke.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const EX=3600,u6="sentry_previous_trace",TX="sentry.previous_trace";function PX(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const a=t==="session-storage";let o=a?MX():void 0;e.on("spanStart",s=>{if(en(s)!==s)return;const l=lt().getPropagationContext();o=AX(o,s,l),a&&IX(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;const l=lt(),c=l.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}l.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(ap(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=ap(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[e3]:o.sampleRate}})}function AX(e,t,n){const a=tt(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(a.data?.[Bm])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;const s=e.spanContext;return s.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=EX&&(Un&&ke.log(`Adding previous_trace ${s} link to span ${{op:a.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[yF]:"previous_trace"}}),t.setAttribute(TX,`${s.traceId}-${s.spanId}-${ap(s)?1:0}`)),i)}function IX(e){try{at.sessionStorage.setItem(u6,JSON.stringify(e))}catch(t){Un&&ke.warn("Could not store previous trace in sessionStorage",t)}}function MX(){try{const e=at.sessionStorage?.getItem(u6);return JSON.parse(e)}catch{return}}function ap(e){return e.traceFlags===1}const NX="BrowserTracing",OX={...Xl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...l6},rg=(e={})=>{const t={name:void 0,source:void 0},n=at.document,{enableInp:a,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:v,traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:E,enableHTTPTimings:_,ignoreResourceSpans:g,ignorePerformanceApiSpans:x,instrumentPageLoad:C,instrumentNavigation:P,detectRedirects:O,linkPreviousTrace:A,consistentTraceSampling:L,onRequestSpanStart:U}={...OX,...e};let z,R;function I(B,M,$=!0){const K=M.op==="pageload",V=d?d(M):M,Z=V.attributes||{};if(M.name!==V.name&&(Z[kn]="custom",V.attributes=Z),!$){const j=xo();Pa({...V,startTime:j}).end(j);return}t.name=V.name,t.source=Z[kn];const q=_3(V,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:K,beforeSpanEnd:j=>{z?.(),mW(j,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:g,ignorePerformanceApiSpans:x}),og(B,void 0);const W=lt(),Y=W.getPropagationContext();W.setPropagationContext({...Y,traceId:q.spanContext().traceId,sampled:Eo(q),dsc:na(j)})}});og(B,q);function oe(){n&&["interactive","complete"].includes(n.readyState)&&B.emit("idleSpanEnableAutoFinish",q)}K&&n&&(n.addEventListener("readystatechange",()=>{oe()}),oe())}return{name:NX,setup(B){if(DF(),z=iW({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:B}),a&&DW(),o&&CW(),s&&rt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?lW():i&&sW(),l&&cW(),O&&n){const $=()=>{R=Ht()};addEventListener("click",$,{capture:!0}),addEventListener("keydown",$,{capture:!0,passive:!0})}function M(){const $=Ms(B);$&&!tt($).timestamp&&(Un&&ke.log(`[Tracing] Finishing current active span with op: ${tt($).op}`),$.setAttribute(Ec,"cancelled"),$.end())}B.on("startNavigationSpan",($,K)=>{if(Qe()!==B)return;if(K?.isRedirect){Un&&ke.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),I(B,{op:"navigation.redirect",...$},!1);return}M(),Dr().setPropagationContext({traceId:Ea(),sampleRand:Math.random()});const V=lt();V.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),V.setSDKProcessingMetadata({normalizedRequest:void 0}),I(B,{op:"navigation",...$})}),B.on("startPageLoadSpan",($,K={})=>{if(Qe()!==B)return;M();const V=K.sentryTrace||ag("sentry-trace"),Z=K.baggage||ag("baggage"),q=PF(V,Z),oe=lt();oe.setPropagationContext(q),oe.setSDKProcessingMetadata({normalizedRequest:jm()}),I(B,{op:"pageload",...$})})},afterAllSetup(B){let M=Oi();if(A!=="off"&&PX(B,{linkPreviousTrace:A,consistentTraceSampling:L}),at.location){if(C){const $=hn();BX(B,{name:at.location.pathname,startTime:$?$/1e3:void 0,attributes:{[kn]:"url",[xt]:"auto.pageload.browser"}})}P&&Cu(({to:$,from:K})=>{if(K===void 0&&M?.indexOf($)!==-1){M=void 0;return}M=void 0;const V=j3($),Z=Ms(B),q=Z&&O&&DX(Z,R);d6(B,{name:V?.pathname||at.location.pathname,attributes:{[kn]:"url",[xt]:"auto.navigation.browser"}},{url:$,isRedirect:q})})}v&&xX(),l&&LX(B,f,p,m,t),a&&zW(),yX(B,{traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,tracePropagationTargets:B.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:_,onRequestSpanStart:U})}}};function BX(e,t,n){e.emit("startPageLoadSpan",t,n),lt().setTransactionName(t.name);const a=Ms(e);return a&&e.emit("afterStartPageLoadSpan",a),a}function d6(e,t,n){const{url:a,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=lt();return i.setTransactionName(t.name),a&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...jm(),url:a}}),Ms(e)}function ag(e){return at.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function LX(e,t,n,a,o){const i=at.document;let s;const l=()=>{const c="ui.action.click",u=Ms(e);if(u){const d=tt(u).op;if(["navigation","pageload"].includes(d)){Un&&ke.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Ec,"interactionInterrupted"),s.end(),s=void 0),!o.name){Un&&ke.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=_3({name:o.name,op:c,attributes:{[kn]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:a})};i&&addEventListener("click",l,{capture:!0})}const f6="_sentry_idleSpan";function Ms(e){return e[f6]}function og(e,t){Bn(e,f6,t)}const ig=.3;function DX(e,t){const n=tt(e),a=xo(),o=n.start_timestamp;return!(a-o>ig||t&&a-t<=ig)}const p6=["activate","mount"],m6=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,RX=/(?:^|[-_])(\w)/g,$X=e=>e.replace(RX,t=>t.toUpperCase()).replace(/[-_]/g,""),zX="<Root>",Vd="<Anonymous>",VX=(e,t)=>e.repeat(t),fs=(e,t)=>{if(!e)return Vd;if(e.$root===e)return zX;if(!e.$options)return Vd;const n=e.$options;let a=n.name||n._componentTag||n.__name;const o=n.__file;if(!a&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(a=i[1])}return(a?`<${$X(a)}>`:Vd)+(o&&t!==!1?` at ${o}`:"")},FX=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const o=t[t.length-1];if(o.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[o,n],n=0)}t.push(e),e=e.$parent}return`
|
|
669
|
+
or you can use record.mirror to access the mirror instance during recording.`;let R1={map:{},getId(){return console.error(Fo),-1},getNode(){return console.error(Fo),null},removeNodeFromMap(){console.error(Fo)},has(){return console.error(Fo),!1},reset(){console.error(Fo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(R1=new Proxy(R1,{get(e,t,n){return t==="map"&&console.error(Fo),Reflect.get(e,t,n)}}));function As(e,t,n={}){let a=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),c=this;l<=0||l>t?(a&&(LY(a),a=null),o=s,e.apply(c,i)):!a&&n.trailing!==!1&&(a=Tu(()=>{o=n.leading===!1?0:Date.now(),a=null,e.apply(c,i)},l))}}function Pw(e,t,n,a,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,a?n:{set(s){Tu(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Pw(e,t,i||{},!0)}function th(e,t,n){try{if(!(t in e))return()=>{};const a=e[t],o=n(a);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=o,()=>{e[t]=a}}catch{return()=>{}}}let $c=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||($c=()=>new Date().getTime());function Aw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Iw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function En(e,t,n,a,o){if(!e)return!1;const i=Nw(e);if(!i)return!1;const s=Yo(t,n);if(!o){const u=a&&i.matches(a);return s(i)&&!u}const l=to(i,s);let c=-1;return l<0?!1:(a&&(c=to(i,Yo(null,a))),l>-1&&c<0?!0:l<c)}function AY(e,t){return t.getId(e)!==-1}function Ld(e,t){return t.getId(e)===Ps}function Ow(e,t){if(cs(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Ow(e.parentNode,t):!0:!0}function Jf(e){return!!e.changedTouches}function IY(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Bw(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Lw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qf(e){return!!e?.shadowRoot}class MY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let a;return n===void 0?a=this.id++:a=n,this.styleIDMap.set(t,a),this.idStyleMap.set(a,t),a}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Dw(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function NY(e){let t=e,n;for(;n=Dw(t);)t=n;return t}function OY(e){const t=e.ownerDocument;if(!t)return!1;const n=NY(e);return t.contains(n)}function Rw(e){const t=e.ownerDocument;return t?t.contains(e)||OY(e):!1}const $1={};function nh(e){const t=$1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return $1[e]=a.bind(window)}function BY(...e){return nh("requestAnimationFrame")(...e)}function Tu(...e){return nh("setTimeout")(...e)}function LY(...e){return nh("clearTimeout")(...e)}var Ye=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ye||{}),je=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(je||{}),fn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(fn||{}),zr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(zr||{}),jo=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(jo||{});function rh(e){try{return e.contentDocument}catch{}}function DY(e){try{return e.contentWindow}catch{}}function z1(e){return"__ln"in e}class RY{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let a=0;a<t;a++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&z1(t.previousSibling)){const a=t.previousSibling.__ln.next;n.next=a,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,a&&(a.previous=n)}else if(t.nextSibling&&z1(t.nextSibling)&&t.nextSibling.__ln.previous){const a=t.nextSibling.__ln.previous;n.previous=a,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,a&&(a.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const V1=(e,t)=>`${e}@${t}`;class $Y{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,a=new RY,o=c=>{let u=c,d=Ps;for(;d===Ps;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!Rw(c))return;const u=cs(c.parentNode)?this.mirror.getId(Dw(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return a.addNode(c);const f=Go(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Bw(p,this.mirror)&&!En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),Lw(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Qf(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)}});f&&(t.push({parentId:u,nextId:d,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)F1(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!j1(this.droppedSet,c)&&!F1(this.removes,c,this.mirror)||j1(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;a.length;){let c=null;if(s){const u=this.mirror.getId(s.value.parentNode),d=o(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=a.tail;for(;u;){const d=u;if(u=u.previous,d){const f=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(f!==-1){c=d;break}else{const m=d.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const v=m.parentNode.host;if(this.mirror.getId(v)!==-1){c=d;break}}}}}}if(!c){for(;a.head;)a.removeNode(a.head.value);break}s=c.previous,a.removeNode(c.value),i(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+f).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!Ld(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Nw(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let a=t.attributeName,o=t.target.getAttribute(a);if(a==="value"){const s=Zm(n),l=n.tagName;o=Dc(n,l,s);const c=xu({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),u=Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Ts({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&a==="src"&&!this.keepIframeSrcFn(o))if(!rh(n))a="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),a==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ew(n.tagName,a)&&(i.attributes[a]=xw(this.doc,xi(n.tagName),xi(a),o,n,this.maskAttributeFn),a==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),u=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?u===""?i.styleDiff[l]=c:i.styleDiff[l]=[c,u]:i._unchangedStyles[l]=[c,u]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(i.styleDiff[l]=!1)}break}case"childList":{if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const a=this.mirror.getId(n),o=cs(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ld(n,this.mirror)||!AY(n,this.mirror)||(this.addedSet.has(n)?(Zf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&a===-1||Ow(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[V1(a,o)]?Zf(this.movedSet,n):this.removes.push({parentId:o,id:a,isShadow:cs(t.target)&&us(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ld(t,this.mirror))return;this.movedSet.add(t);let a=null;n&&this.mirror.hasNode(n)&&(a=this.mirror.getId(n)),a&&a!==-1&&(this.movedMap[V1(this.mirror.getId(t),a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);En(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(a=>this.genAdds(a)),Qf(t)&&t.shadowRoot.childNodes.forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Zf(e,t){e.delete(t),t.childNodes.forEach(n=>Zf(e,n))}function F1(e,t,n){return e.length===0?!1:zY(e,t,n)}function zY(e,t,n){let a=t.parentNode;for(;a;){const o=n.getId(a);if(e.some(i=>i.id===o))return!0;a=a.parentNode}return!1}function j1(e,t){return e.size===0?!1:$w(e,t)}function $w(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:$w(e,n):!1}let ds;function VY(e){ds=e}function FY(){ds=void 0}const et=e=>ds?(...n)=>{try{return e(...n)}catch(a){if(ds&&ds(a)===!0)return()=>{};throw a}}:e,Ko=[];function rl(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function zw(e,t){const n=new $Y;Ko.push(n),n.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(a=window[o]);const i=new a(et(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function jY({mousemoveCb:e,sampling:t,doc:n,mirror:a}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const c=As(et(f=>{const p=Date.now()-l;e(s.map(m=>(m.timeOffset-=p,m)),f),s=[],l=null}),i),u=et(As(et(f=>{const p=rl(f),{clientX:m,clientY:v}=Jf(f)?f.changedTouches[0]:f;l||(l=$c()),s.push({x:m,y:v,id:a.getId(p),timeOffset:$c()-l}),c(typeof DragEvent<"u"&&f instanceof DragEvent?je.Drag:f instanceof MouseEvent?je.MouseMove:je.TouchMove)}),o,{trailing:!1})),d=[pn("mousemove",u,n),pn("touchmove",u,n),pn("drag",u,n)];return et(()=>{d.forEach(f=>f())})}function HY({mouseInteractionCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const d=f=>p=>{const m=rl(p);if(En(m,a,o,i,!0))return;let v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=zr.Mouse;break;case"touch":v=zr.Touch;break;case"pen":v=zr.Pen;break}v===zr.Touch?fn[f]===fn.MouseDown?y="TouchStart":fn[f]===fn.MouseUp&&(y="TouchEnd"):zr.Pen}else Jf(p)&&(v=zr.Touch);v!==null?(u=v,(y.startsWith("Touch")&&v===zr.Touch||y.startsWith("Mouse")&&v===zr.Mouse)&&(v=null)):fn[f]===fn.Click&&(v=u,u=null);const w=Jf(p)?p.changedTouches[0]:p;if(!w)return;const b=n.getId(m),{clientX:E,clientY:_}=w;et(e)({type:fn[y],id:b,x:E,y:_,...v!==null&&{pointerType:v}})};return Object.keys(fn).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&l[f]!==!1).forEach(f=>{let p=xi(f);const m=d(f);if(window.PointerEvent)switch(fn[f]){case fn.MouseDown:case fn.MouseUp:p=p.replace("mouse","pointer");break;case fn.TouchStart:case fn.TouchEnd:return}c.push(pn(p,m,t))}),et(()=>{c.forEach(f=>f())})}function Vw({scrollCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){const l=et(As(et(c=>{const u=rl(c);if(!u||En(u,a,o,i,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const f=Aw(t.defaultView);e({id:d,x:f.left,y:f.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return pn("scroll",l,t)}function UY({viewportResizeCb:e},{win:t}){let n=-1,a=-1;const o=et(As(et(()=>{const i=Iw(),s=Mw();(n!==i||a!==s)&&(e({width:Number(s),height:Number(i)}),n=i,a=s)}),200));return pn("resize",o,t)}const WY=["INPUT","TEXTAREA","SELECT"],H1=new WeakMap;function qY({inputCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:v,unmaskTextSelector:y}){function w(P){let O=rl(P);const A=P.isTrusted,L=O&&Kf(O.tagName);if(L==="OPTION"&&(O=O.parentElement),!O||!L||WY.indexOf(L)<0||En(O,a,o,i,!0))return;const U=O;if(U.classList.contains(s)||l&&U.matches(l))return;const z=Zm(O);let R=Dc(U,L,z),I=!1;const B=xu({maskInputOptions:c,tagName:L,type:z}),M=Ei(O,p,v,m,y,B);(z==="radio"||z==="checkbox")&&(I=O.checked),R=Ts({isMasked:M,element:O,value:R,maskInputFn:u}),b(O,f?{text:R,isChecked:I,userTriggered:A}:{text:R,isChecked:I});const $=O.name;z==="radio"&&$&&I&&t.querySelectorAll(`input[type="radio"][name="${$}"]`).forEach(K=>{if(K!==O){const V=Ts({isMasked:M,element:K,value:Dc(K,L,z),maskInputFn:u});b(K,f?{text:V,isChecked:!I,userTriggered:!1}:{text:V,isChecked:!I})}})}function b(P,O){const A=H1.get(P);if(!A||A.text!==O.text||A.isChecked!==O.isChecked){H1.set(P,O);const L=n.getId(P);et(e)({...O,id:L})}}const _=(d.input==="last"?["change"]:["input","change"]).map(P=>pn(P,et(w),t)),g=t.defaultView;if(!g)return()=>{_.forEach(P=>P())};const x=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),C=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&_.push(...C.map(P=>Pw(P[0],P[1],{set(){et(w)({target:this,isTrusted:!1})}},!1,g))),et(()=>{_.forEach(P=>P())})}function zc(e){const t=[];function n(a,o){if(Bl("CSSGroupingRule")&&a.parentRule instanceof CSSGroupingRule||Bl("CSSMediaRule")&&a.parentRule instanceof CSSMediaRule||Bl("CSSSupportsRule")&&a.parentRule instanceof CSSSupportsRule||Bl("CSSConditionRule")&&a.parentRule instanceof CSSConditionRule){const s=Array.from(a.parentRule.cssRules).indexOf(a);o.unshift(s)}else if(a.parentStyleSheet){const s=Array.from(a.parentStyleSheet.cssRules).indexOf(a);o.unshift(s)}return o}return n(e,t)}function da(e,t,n){let a,o;return e?(e.ownerNode?a=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:a}):{}}function YY({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};const o=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:et((d,f,p)=>{const[m,v]=p,{id:y,styleId:w}=da(f,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,adds:[{rule:m,index:v}]}),d.apply(f,p)})});const i=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,removes:[{index:m}]}),d.apply(f,p)})});let s;a.CSSStyleSheet.prototype.replace&&(s=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replace:m}),d.apply(f,p)})}));let l;a.CSSStyleSheet.prototype.replaceSync&&(l=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replaceSync:m}),d.apply(f,p)})}));const c={};Ll("CSSGroupingRule")?c.CSSGroupingRule=a.CSSGroupingRule:(Ll("CSSMediaRule")&&(c.CSSMediaRule=a.CSSMediaRule),Ll("CSSConditionRule")&&(c.CSSConditionRule=a.CSSConditionRule),Ll("CSSSupportsRule")&&(c.CSSSupportsRule=a.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,f])=>{u[d]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(u[d].insertRule,{apply:et((p,m,v)=>{const[y,w]=v,{id:b,styleId:E}=da(m.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||E&&E!==-1)&&e({id:b,styleId:E,adds:[{rule:y,index:[...zc(m),w||0]}]}),p.apply(m,v)})}),f.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:et((p,m,v)=>{const[y]=v,{id:w,styleId:b}=da(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,removes:[{index:[...zc(m),y]}]}),p.apply(m,v)})})}),et(()=>{a.CSSStyleSheet.prototype.insertRule=o,a.CSSStyleSheet.prototype.deleteRule=i,s&&(a.CSSStyleSheet.prototype.replace=s),l&&(a.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([d,f])=>{f.prototype.insertRule=u[d].insertRule,f.prototype.deleteRule=u[d].deleteRule})})}function Fw({mirror:e,stylesheetManager:t},n){let a=null;n.nodeName==="#document"?a=e.getId(n):a=e.getId(n.host);const o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){const l=i.set?.call(this,s);if(a!==null&&a!==-1)try{t.adoptStyleSheets(s,a)}catch{}return l}}),et(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function GY({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:a},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:et((l,c,u)=>{const[d,f,p]=u;if(n.has(d))return i.apply(c,[d,f,p]);const{id:m,styleId:v}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,set:{property:d,value:f,priority:p},index:zc(c.parentRule)}),l.apply(c,u)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((l,c,u)=>{const[d]=u;if(n.has(d))return s.apply(c,[d]);const{id:f,styleId:p}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:d},index:zc(c.parentRule)}),l.apply(c,u)})}),et(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function KY({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:a,mirror:o,sampling:i,doc:s}){const l=et(u=>As(et(d=>{const f=rl(d);if(!f||En(f,t,n,a,!0))return;const{currentTime:p,volume:m,muted:v,playbackRate:y}=f;e({type:u,id:o.getId(f),currentTime:p,volume:m,muted:v,playbackRate:y})}),i.media||500)),c=[pn("play",l(jo.Play),s),pn("pause",l(jo.Pause),s),pn("seeked",l(jo.Seeked),s),pn("volumechange",l(jo.VolumeChange),s),pn("ratechange",l(jo.RateChange),s)];return et(()=>{c.forEach(u=>u())})}function XY({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const a=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){const f=new i(c,u,d);return o.set(f,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),f};const s=th(t.fonts,"add",function(l){return function(c){return Tu(et(()=>{const u=o.get(c);u&&(e(u),o.delete(c))}),0),l.apply(this,[c])}});return a.push(()=>{n.FontFace=i}),a.push(s),et(()=>{a.forEach(l=>l())})}function JY(e){const{doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const c=et(()=>{const u=t.getSelection();if(!u||l&&u?.isCollapsed)return;l=u.isCollapsed||!1;const d=[],f=u.rangeCount||0;for(let p=0;p<f;p++){const m=u.getRangeAt(p),{startContainer:v,startOffset:y,endContainer:w,endOffset:b}=m;En(v,a,o,i,!0)||En(w,a,o,i,!0)||d.push({start:n.getId(v),startOffset:y,end:n.getId(w),endOffset:b})}s({ranges:d})});return c(),pn("selectionchange",c)}function QY({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:th(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function ZY(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let a;e.recordDOM&&(a=zw(e,e.doc));const o=jY(e),i=HY(e),s=Vw(e),l=UY(e,{win:n}),c=qY(e),u=KY(e);let d=()=>{},f=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=YY(e,{win:n}),f=Fw(e,e.doc),p=GY(e,{win:n}),e.collectFonts&&(m=XY(e)));const v=JY(e),y=QY(e),w=[];for(const b of e.plugins)w.push(b.observer(b.callback,n,b.options));return et(()=>{Ko.forEach(b=>b.reset()),a?.disconnect(),o(),i(),s(),l(),c(),u(),d(),f(),p(),m(),v(),y(),w.forEach(b=>b())})}function Bl(e){return typeof window[e]<"u"}function Ll(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ep{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,a,o){const i=a||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t);let l=i.get(n);return l||(l=this.generateIdFn(),i.set(n,l),s.set(l,n)),l}getIds(t,n){const a=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,a,o))}getRemoteId(t,n,a){const o=a||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const a=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,a))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class eG{constructor(){this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tG{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ep(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const a=rh(t);a&&a.adoptedStyleSheets&&a.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(a.adoptedStyleSheets,this.mirror.getId(a))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:je.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case je.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),n.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.Drag:case je.TouchMove:case je.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.ViewportResize:return!1;case je.MediaInteraction:case je.MouseInteraction:case je.Scroll:case je.CanvasMutation:case je.Input:return this.replaceIds(n.data,t,["id"]),n;case je.StyleSheetRule:case je.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case je.Font:return n;case je.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),n;case je.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),n}}return!1}replace(t,n,a,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(a,n[i]):n[i]=t.getId(a,n[i]));return n}replaceIds(t,n,a){return this.replace(this.crossOriginIframeMirror,t,n,a)}replaceStyleIds(t,n,a){return this.replace(this.crossOriginIframeStyleMirror,t,n,a)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(a=>{this.replaceIdOnNode(a,n)})}patchRootIdOnNode(t,n){t.type!==Yt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(a=>{this.patchRootIdOnNode(a,n)})}}class nG{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class rG{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!us(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const a=zw({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>a.disconnect()),this.restoreHandlers.push(Vw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Tu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Fw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=rh(t),a=DY(t);!n||!a||this.patchAttachShadow(a.Element,n)}patchAttachShadow(t,n){const a=this;this.restoreHandlers.push(th(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Rw(this)&&a.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var U1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Dl=0;Dl<U1.length;Dl++)aG[U1.charCodeAt(Dl)]=Dl;class W1{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class oG{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new MY,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const a={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,c)=>({rule:bw(l),index:c}))})),a.styleIds.push(s)}o.length>0&&(a.styles=o),this.adoptedStyleSheetCb(a)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class iG{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const a=this.nodeMap.get(t);return a&&Array.from(a).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,BY(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let It,Vc;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Gn=iY();function qr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:v=!0,maskAllInputs:y,maskInputOptions:w,slimDOMOptions:b,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,maxCanvasSize:x=null,packFn:C,sampling:P={},dataURLOptions:O={},mousemoveWait:A,recordDOM:L=!0,recordCanvas:U=!1,recordCrossOriginIframes:z=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:B=!1,inlineImages:M=!1,plugins:$,keepIframeSrcFn:K=()=>!1,ignoreCSSAttributes:V=new Set([]),errorHandler:Z,onMutation:q,getCanvasManager:oe}=e;VY(Z);const j=z?window.parent===window:!0;let W=!1;if(!j)try{window.parent.document&&(W=!1)}catch{W=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!W)return()=>{};A!==void 0&&P.mousemove===void 0&&(P.mousemove=A),Gn.reset();const Y=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:w!==void 0?w:{},H=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};IY();let T,J=0;const le=pe=>{for(const Ie of $||[])Ie.eventProcessor&&(pe=Ie.eventProcessor(pe));return C&&!W&&(pe=C(pe)),pe};It=(pe,Ie)=>{const xe=pe;if(xe.timestamp=$c(),Ko[0]?.isFrozen()&&xe.type!==Ye.FullSnapshot&&!(xe.type===Ye.IncrementalSnapshot&&xe.data.source===je.Mutation)&&Ko.forEach(X=>X.unfreeze()),j)t?.(le(xe),Ie);else if(W){const X={type:"rrweb",event:le(xe),origin:window.location.origin,isCheckout:Ie};window.parent.postMessage(X,"*")}if(xe.type===Ye.FullSnapshot)T=xe,J=0;else if(xe.type===Ye.IncrementalSnapshot){if(xe.data.source===je.Mutation&&xe.data.isAttachIframe)return;J++;const X=a&&J>=a,re=n&&T&&xe.timestamp-T.timestamp>n;(X||re)&&Ae(!0)}};const Oe=pe=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Mutation,...pe}})},ee=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.Scroll,...pe}}),Te=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),ae=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.AdoptedStyleSheet,...pe}}),ue=new oG({mutationCb:Oe,adoptedStyleSheetCb:ae}),D=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new eG:new tG({mirror:Gn,mutationCb:Oe,stylesheetManager:ue,recordCrossOriginIframes:z,wrappedEmit:It});for(const pe of $||[])pe.getMirror&&pe.getMirror({nodeMirror:Gn,crossOriginIframeMirror:D.crossOriginIframeMirror,crossOriginIframeStyleMirror:D.crossOriginIframeStyleMirror});const de=new iG,fe=lG(oe,{mirror:Gn,win:window,mutationCb:pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),recordCanvas:U,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:x,sampling:P.canvas,dataURLOptions:O,errorHandler:Z}),ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nG:new rG({mutationCb:Oe,scrollCb:ee,bypassOptions:{onMutation:q,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:v,maskInputOptions:Y,dataURLOptions:O,maskAttributeFn:E,maskTextFn:g,maskInputFn:_,recordCanvas:U,inlineImages:M,sampling:P,slimDOMOptions:H,iframeManager:D,stylesheetManager:ue,canvasManager:fe,keepIframeSrcFn:K,processedNodeManager:de},mirror:Gn}),Ae=(pe=!1)=>{if(!L)return;It({type:Ye.Meta,data:{href:window.location.href,width:Mw(),height:Iw()}},pe),ue.reset(),ce.init(),Ko.forEach(xe=>xe.lock());const Ie=PY(document,{mirror:Gn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:v,maskAllInputs:Y,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,slimDOM:H,dataURLOptions:O,recordCanvas:U,inlineImages:M,onSerialize:xe=>{Bw(xe,Gn)&&D.addIframe(xe),Lw(xe,Gn)&&ue.trackLinkElement(xe),Qf(xe)&&ce.addShadowRoot(xe.shadowRoot,document)},onIframeLoad:(xe,X)=>{D.attachIframe(xe,X),xe.contentWindow&&fe.addWindow(xe.contentWindow),ce.observeAttachShadow(xe)},onStylesheetLoad:(xe,X)=>{ue.attachLinkElement(xe,X)},keepIframeSrcFn:K});if(!Ie)return console.warn("Failed to snapshot the document");It({type:Ye.FullSnapshot,data:{node:Ie,initialOffset:Aw(window)}}),Ko.forEach(xe=>xe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,Gn.getId(document))};Vc=Ae;try{const pe=[],Ie=X=>et(ZY)({onMutation:q,mutationCb:Oe,mousemoveCb:(re,ye)=>It({type:Ye.IncrementalSnapshot,data:{source:ye,positions:re}}),mouseInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MouseInteraction,...re}}),scrollCb:ee,viewportResizeCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.ViewportResize,...re}}),inputCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Input,...re}}),mediaInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MediaInteraction,...re}}),styleSheetRuleCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleSheetRule,...re}}),styleDeclarationCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleDeclaration,...re}}),canvasMutationCb:Te,fontCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Font,...re}}),selectionCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Selection,...re}})},customElementCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.CustomElement,...re}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:Y,inlineStylesheet:v,sampling:P,recordDOM:L,recordCanvas:U,inlineImages:M,userTriggeredOnInput:I,collectFonts:B,doc:X,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,keepIframeSrcFn:K,blockSelector:i,unblockSelector:s,slimDOMOptions:H,dataURLOptions:O,mirror:Gn,iframeManager:D,stylesheetManager:ue,shadowDomManager:ce,processedNodeManager:de,canvasManager:fe,ignoreCSSAttributes:V,plugins:$?.filter(re=>re.observer)?.map(re=>({observer:re.observer,options:re.options,callback:ye=>It({type:Ye.Plugin,data:{plugin:re.name,payload:ye}})}))||[]},{});D.addLoadListener(X=>{try{pe.push(Ie(X.contentDocument))}catch(re){console.warn(re)}});const xe=()=>{Ae(),pe.push(Ie(document))};return document.readyState==="interactive"||document.readyState==="complete"?xe():(pe.push(pn("DOMContentLoaded",()=>{It({type:Ye.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&xe()})),pe.push(pn("load",()=>{It({type:Ye.Load,data:{}}),R==="load"&&xe()},window))),()=>{pe.forEach(X=>X()),de.destroy(),Vc=void 0,FY()}}catch(pe){console.warn(pe)}}function sG(e){if(!Vc)throw new Error("please take full snapshot after start recording");Vc(e)}qr.mirror=Gn;qr.takeFullSnapshot=sG;function lG(e,t){try{return e?e(t):new W1}catch{return console.warn("Unable to initialize CanvasManager"),new W1}}var q1;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(q1||(q1={}));const cG=3,uG=5;function ah(e){return e>9999999999?e:e*1e3}function Dd(e){return e>9999999999?e/1e3:e}function al(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ye.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Kn(t,10,1e3)}}),t.category==="console")))}const dG="button,a";function jw(e){return e.closest(dG)||e}function Hw(e){const t=Uw(e);return!t||!(t instanceof Element)?t:jw(t)}function Uw(e){return fG(e)?e.target:e}function fG(e){return typeof e=="object"&&!!e&&"target"in e}let fa;function pG(e){return fa||(fa=[],mG()),fa.push(e),()=>{const t=fa?fa.indexOf(e):-1;t>-1&&fa.splice(t,1)}}function mG(){wn(bt,"open",function(e){return function(...t){if(fa)try{fa.forEach(n=>n())}catch{}return e.apply(bt,t)}})}const hG=new Set([je.Mutation,je.StyleSheetRule,je.StyleDeclaration,je.AdoptedStyleSheet,je.CanvasMutation,je.Selection,je.MediaInteraction]);function vG(e,t,n){e.handleClick(t,n)}class gG{constructor(t,n,a=al){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=a}addListeners(){const t=pG(()=>{this._lastMutation=Y1()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(bG(n,this._ignoreSelector)||!wG(t))return;const a={timestamp:Dd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===a.node&&Math.abs(o.timestamp-a.timestamp)<1)||(this._clicks.push(a),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Dd(t)}registerScroll(t=Date.now()){this._lastScroll=Dd(t)}registerClick(t){const n=jw(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Y1();this._clicks.forEach(a=>{!a.mutationAfter&&this._lastMutation&&(a.mutationAfter=a.timestamp<=this._lastMutation?this._lastMutation-a.timestamp:void 0),!a.scrollAfter&&this._lastScroll&&(a.scrollAfter=a.timestamp<=this._lastScroll?this._lastScroll-a.timestamp:void 0),a.timestamp+this._timeout<=n&&t.push(a)});for(const a of t){const o=this._clicks.indexOf(a);o>-1&&(this._generateBreadcrumbs(a),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,a=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!a&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,d);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nl(()=>this._checkClicks(),1e3)}}const yG=["A","BUTTON","INPUT"];function bG(e,t){return!!(!yG.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function wG(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Y1(){return Date.now()/1e3}function kG(e,t){try{if(!_G(t))return;const{source:n}=t.data;if(hG.has(n)&&e.registerMutation(t.timestamp),n===je.Scroll&&e.registerScroll(t.timestamp),SG(t)){const{type:a,id:o}=t.data,i=qr.mirror.getNode(o);i instanceof HTMLElement&&a===fn.Click&&e.registerClick(i)}}catch{}}function _G(e){return e.type===cG}function SG(e){return e.data.source===je.MouseInteraction}function Cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(oh||{});const CG=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function xG(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(CG.has(n)){let a=n;(n==="data-testid"||n==="data-test-id")&&(a="testId"),t[a]=e[n]}return t}const EG=e=>t=>{if(!e.isEnabled())return;const n=TG(t);if(!n)return;const a=t.name==="click",o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&vG(e.clickDetector,n,Hw(t.event)),al(e,n)};function Ww(e,t){const n=qr.mirror.getId(e),a=n&&qr.mirror.getNode(n),o=a&&qr.mirror.getMeta(a),i=o&&AG(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===oh.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:xG(i.attributes)}}:{}}}function TG(e){const{target:t,message:n}=PG(e);return Cr({category:`ui.${e.name}`,...Ww(t,n)})}function PG(e){const t=e.name==="click";let n,a=null;try{a=t?Hw(e.event):Uw(e.event),n=Hn(a,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:a,message:n}}function AG(e){return e.type===oh.Element}function IG(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=MG(t);n&&al(e,n)}function MG(e){const{metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i,target:s}=e;if(!s||NG(s)||!i)return null;const l=t||a||o,c=i.length===1;if(!l&&c)return null;const u=Hn(s,{maxStringLength:200})||"<unknown>",d=Ww(s,u);return Cr({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i}})}function NG(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const OG={resource:$G,paint:DG,navigation:RG};function Rl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function BG(e){return e.map(LG).filter(Boolean)}function LG(e){const t=OG[e.entryType];return t?t(e):null}function Ti(e){return((hn()||bt.performance.timeOrigin)+e)/1e3}function DG(e){const{duration:t,entryType:n,name:a,startTime:o}=e,i=Ti(o);return{type:n,name:a,start:i,end:i+t,data:void 0}}function RG(e){const{entryType:t,name:n,decodedBodySize:a,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:f,redirectCount:p,startTime:m,transferSize:v,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ti(m),end:Ti(i),name:n,data:{size:v,decodedBodySize:a,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:f,domComplete:i,redirectCount:p}}}function $G(e){const{entryType:t,initiatorType:n,name:a,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ti(i),end:Ti(o),name:a,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function zG(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Pu(e,"largest-contentful-paint",n)}function VG(e){return e.sources!==void 0}function FG(e){const t=[],n=[];for(const a of e.entries)if(VG(a)){const o=[];for(const i of a.sources)if(i.node){n.push(i.node);const s=qr.mirror.getId(i.node);s&&o.push(s)}t.push({value:a.value,nodeIds:o.length?o:void 0})}return Pu(e,"cumulative-layout-shift",n,t)}function jG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"first-input-delay",n)}function HG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"interaction-to-next-paint",n)}function Pu(e,t,n,a){const o=e.value,i=e.rating,s=Ti(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(l=>qr.mirror.getId(l)):void 0,attributions:a}}}function UG(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const a=[];return["navigation","paint","resource"].forEach(o=>{a.push(wo(o,n))}),a.push(Gm(Rl(zG,e)),Ym(Rl(FG,e)),rw(Rl(jG,e)),aw(Rl(HG,e))),()=>{a.forEach(o=>o())}}const ze=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,WG='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function qG(){const e=new Blob([WG]);return URL.createObjectURL(e)}const G1=["log","warn","error"],ec="[Replay] ";function Rd(e,t="info"){Ia({category:"console",data:{logger:"replay"},level:t,message:`${ec}${e}`},{level:t})}function YG(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:a=>{e=!!a.captureExceptions,t=!!a.traceInternals}};return ze?(G1.forEach(a=>{n[a]=(...o)=>{ke[a](ec,...o),t&&Rd(o.join(""),$3(a))}}),n.exception=(a,...o)=>{o.length&&n.error&&n.error(...o),ke.error(ec,a),e?bu(a):t&&Rd(a,"error")},n.infoTick=(...a)=>{ke.log(ec,...a),t&&setTimeout(()=>Rd(a[0]),0)}):G1.forEach(a=>{n[a]=()=>{}}),n}const Ve=YG();class ih extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qm}.`)}}class qw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Qm)throw new ih;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?ah(t):null}}class GG{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:a})=>{a.success?t():n()},{once:!0}),this._worker.addEventListener("error",a=>{n(a)},{once:!0})}),this._ensureReadyPromise)}destroy(){ze&&Ve.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const a=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const c=l;if(c.method===t&&c.id===a){if(this._worker.removeEventListener("message",s),!c.success){ze&&Ve.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:a,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class KG{constructor(t){this._worker=new GG(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=ah(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const a=JSON.stringify(t);return this._totalSize+=a.length,this._totalSize>Qm?Promise.reject(new ih):this._sendEventToWorker(a)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ze&&Ve.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class XG{constructor(t){this._fallback=new qw,this._compression=new KG(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){ze&&Ve.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:a}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=a,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){ze&&Ve.exception(i,"Failed to add events when switching buffers.")}}}function JG({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=QG(t);if(n)return n}return ze&&Ve.log("Using simple buffer"),new qw}function QG(e){try{const t=e||ZG();if(!t)return;ze&&Ve.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new XG(n)}catch(t){ze&&Ve.exception(t,"Failed to create compression worker")}}function ZG(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?qG():""}function sh(){try{return"sessionStorage"in bt&&!!bt.sessionStorage}catch{return!1}}function eK(e){tK(),e.session=void 0}function tK(){if(sh())try{bt.sessionStorage.removeItem(Xm)}catch{}}function Yw(e){return e===void 0?!1:Math.random()<e}function lh(e){if(sh())try{bt.sessionStorage.setItem(Xm,JSON.stringify(e))}catch{}}function Gw(e){const t=Date.now(),n=e.id||Nn(),a=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:a,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function nK(e,t){return Yw(e)?"session":t?"buffer":!1}function K1({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:a}={}){const o=nK(e,t),i=Gw({sampled:o,previousSessionId:a});return n&&lh(i),i}function rK(){if(!sh())return null;try{const e=bt.sessionStorage.getItem(Xm);if(!e)return null;const t=JSON.parse(e);return ze&&Ve.infoTick("Loading existing session"),Gw(t)}catch{return null}}function tp(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Kw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:a=Date.now()}){return tp(e.started,t,a)||tp(e.lastActivity,n,a)}function Xw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Kw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function $d({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},a){const o=a.stickySession&&rK();return o?Xw(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ze&&Ve.infoTick("Session in sessionStorage is expired, creating new one..."),K1(a,{previousSessionId:o.id})):o:(ze&&Ve.infoTick("Creating new session"),K1(a,{previousSessionId:n}))}function aK(e){return e.type===Ye.Custom}function ch(e,t,n){return Qw(e,t)?(Jw(e,t,n),!0):!1}function oK(e,t,n){return Qw(e,t)?Jw(e,t,n):Promise.resolve(null)}async function Jw(e,t,n){const{eventBuffer:a}=e;if(!a||a.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&a.clear(),n&&(a.hasCheckout=!0,a.waitForCheckout=!1);const i=e.getOptions(),s=iK(t,i.beforeAddRecordingEvent);return s?await a.addEvent(s):void 0}catch(i){const s=i&&i instanceof ih,l=s?"addEventSizeExceeded":"addEvent";if(s&&o)return a.clear(),a.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:l});const c=Qe();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Qw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ah(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(ze&&Ve.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function iK(e,t){try{if(typeof t=="function"&&aK(e))return t(e)}catch(n){return ze&&Ve.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function uh(e){return!e.type}function np(e){return e.type==="transaction"}function sK(e){return e.type==="replay_event"}function X1(e){return e.type==="feedback"}function lK(e){return(t,n)=>{if(!e.isEnabled()||!uh(t)&&!np(t))return;const a=n?.statusCode;if(!(!a||a<200||a>=300)){if(np(t)){cK(e,t);return}uK(e,t)}}}function cK(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function uK(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:a}=e.getOptions();typeof a=="function"&&!a(t)||nl(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function dK(e){return t=>{!e.isEnabled()||!uh(t)||fK(e,t)}}function fK(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const a=Cr({category:"replay.hydrate-error",data:{url:Oi()}});al(e,a)}}function pK(e){const t=Qe();t&&t.on("beforeAddBreadcrumb",n=>mK(e,n))}function mK(e,t){if(!e.isEnabled()||!Zw(t))return;const n=hK(t);n&&al(e,n)}function hK(e){return!Zw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?vK(e):Cr(e)}function vK(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Cr(e);let n=!1;const a=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Ol?(n=!0,`${o.slice(0,Ol)}…`):o;if(typeof o=="object")try{const i=Kn(o,7);return JSON.stringify(i).length>Ol?(n=!0,`${JSON.stringify(i,null,2).slice(0,Ol)}…`):i}catch{}return o});return Cr({...e,data:{...e.data,arguments:a,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Zw(e){return!!e.category}function gK(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function e6(){const e=lt().getPropagationContext().dsc;e&&delete e.replay_id;const t=tn();if(t){const n=na(t);delete n.replay_id}}function yK(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function bK(e,t){return e.recordingMode!=="buffer"||t.message===Jm||!t.exception||t.type?!1:Yw(e.getOptions().errorSampleRate)}function wK(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:sK(t)?(delete t.breadcrumbs,t):!uh(t)&&!np(t)&&!X1(t)?t:e.checkAndHandleExpiredSession()?X1(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),yK(e,t),t):gK(t,n)&&!e.getOptions()._experiments.captureExceptions?(ze&&Ve.log("Ignoring error from rrweb internals",t),null):((bK(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(e6(),t),{id:"Replay"})}function Au(e,t){return t.map(({type:n,start:a,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Ye.Custom,timestamp:a,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:a,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function kK(e){const{from:t,to:n}=e,a=Date.now()/1e3;return{type:"navigation.push",start:a,end:a,name:n,data:{previous:t}}}function _K(e){return t=>{if(!e.isEnabled())return;const n=kK(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Au(e,[n]),!1)))}}function SK(e,t){return ze&&e.getOptions()._experiments.traceInternals?!1:mH(t,Qe())}function t6(e,t){e.isEnabled()&&t!==null&&(SK(e,t.name)||e.addUpdate(()=>(Au(e,[t]),!0)))}function Iu(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=pw(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function n6(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Fc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},a=n.warnings||[];return n.warnings=[...a,t],e._meta=n,e}function r6(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:a,url:o,method:i,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:a/1e3,name:o,data:{method:i,statusCode:s,request:l,response:c}}}function Is(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ga(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const a={headers:e,size:t},{body:o,warnings:i}=CK(n);return a.body=o,i?.length&&(a._meta={warnings:i}),a}function rp(e,t){return Object.entries(e).reduce((n,[a,o])=>{const i=a.toLowerCase();return t.includes(i)&&e[a]&&(n[i]=o),n},{})}function CK(e){if(!e||typeof e!="string")return{body:e};const t=e.length>I1,n=xK(e);if(t){const a=e.slice(0,I1);return n?{body:a,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${a}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function xK(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function jc(e,t){const n=EK(e);return Wr(n,t)}function EK(e,t=bt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(bt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const a=n.href;return!e.endsWith("/")&&a.endsWith("/")?a.slice(0,-1):a}async function TK(e,t,n){try{const a=await AK(e,t,n),o=r6("resource.fetch",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture fetch breadcrumb")}}function PK(e,t){const{input:n,response:a}=t,o=n?hw(n):void 0,i=Iu(o),s=a?n6(a.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function AK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a}=t,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,f=jc(s,n.networkDetailAllowUrls)&&!jc(s,n.networkDetailDenyUrls),p=f?IK(n,t.input,u):Is(u),m=await MK(f,n,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:c,request:p,response:m}}function IK({networkCaptureBodies:e,networkRequestHeaders:t},n,a){const o=n?BK(n,t):{};if(!e)return ga(o,a,void 0);const i=hw(n),[s,l]=mw(i,Ve),c=ga(o,a,s);return l?Fc(c,l):c}async function MK(e,{networkCaptureBodies:t,networkResponseHeaders:n},a,o){if(!e&&o!==void 0)return Is(o);const i=a?a6(a.headers,n):{};if(!a||!t&&o!==void 0)return ga(i,o,void 0);const[s,l]=await OK(a),c=NK(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return l?Fc(c,l):c}function NK(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:a,headers:o}){try{const i=e?.length&&n===void 0?Iu(e):n;return a?t?ga(o,i,e):ga(o,i,void 0):Is(i)}catch(i){return ze&&Ve.exception(i,"Failed to serialize response body"),ga(o,n,void 0)}}async function OK(e){const t=LK(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await DK(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(ze&&Ve.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ze&&Ve.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function a6(e,t){const n={};return t.forEach(a=>{e.get(a)&&(n[a]=e.get(a))}),n}function BK(e,t){return e.length===1&&typeof e[0]!="string"?J1(e[0],t):e.length===2?J1(e[1],t):{}}function J1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?a6(n,t):Array.isArray(n)?{}:rp(n,t):{}}function LK(e){try{return e.clone()}catch(t){ze&&Ve.exception(t,"Failed to clone response body")}}function DK(e){return new Promise((t,n)=>{const a=nl(()=>n(new Error("Timeout while trying to read response body")),500);RK(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(a))})}async function RK(e){return await e.text()}async function $K(e,t,n){try{const a=VK(e,t,n),o=r6("resource.xhr",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture xhr breadcrumb")}}function zK(e,t){const{xhr:n,input:a}=t;if(!n)return;const o=Iu(a),i=n.getResponseHeader("content-length")?n6(n.getResponseHeader("content-length")):UK(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function VK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a,input:s,xhr:l}=t,{url:c,method:u,status_code:d=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!l||!jc(c,n.networkDetailAllowUrls)||jc(c,n.networkDetailDenyUrls)){const C=Is(f),P=Is(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:C,response:P}}const m=l[eo],v=m?rp(m.request_headers,n.networkRequestHeaders):{},y=rp(FK(l),n.networkResponseHeaders),[w,b]=n.networkCaptureBodies?mw(s,Ve):[void 0],[E,_]=n.networkCaptureBodies?jK(l):[void 0],g=ga(v,f,w),x=ga(y,p,E);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:b?Fc(g,b):g,response:_?Fc(x,_):x}}function FK(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
670
|
+
`).reduce((n,a)=>{const[o,i]=a.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}function jK(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return HK(e.response,e.responseType)}catch(n){t.push(n)}return ze&&Ve.warn("Failed to get xhr response body",...t),[void 0]}function HK(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return ze&&Ve.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ze&&Ve.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function UK(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Iu(n)}catch{return}}function WK(e){const t=Qe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:a,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),l={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:a,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>qK(l,c,u))}catch{}}function qK(e,t,n){if(t.data)try{YK(t)&&KK(n)&&(zK(t,n),$K(t,n,e)),GK(t)&&XK(n)&&(PK(t,n),TK(t,n,e))}catch(a){ze&&Ve.exception(a,"Error when enriching network breadcrumb")}}function YK(e){return e.category==="xhr"}function GK(e){return e.category==="fetch"}function KK(e){return e?.xhr}function XK(e){return e?.response}function JK(e,{autoFlushOnFeedback:t}){const n=Qe();uw(EG(e)),Cu(_K(e)),pK(e),WK(e);const a=wK(e);jj(a),n&&(n.on("beforeSendEvent",dK(e)),n.on("afterSendEvent",lK(e)),n.on("createDsc",o=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("spanStart",o=>{e.lastActiveSpan=o}),n.on("spanEnd",o=>{e.lastActiveSpan=o}),n.on("beforeSendFeedback",async(o,i)=>{const s=e.getSessionId();i?.includeReplay&&e.isEnabled()&&s&&o.contexts?.feedback&&(o.contexts.feedback.source==="api"&&t&&await e.flush(),o.contexts.feedback.replay_id=s)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}async function QK(e){try{return Promise.all(Au(e,[ZK(bt.performance.memory)]))}catch{return[]}}function ZK(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:a}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:a}}}}function eX(e,t,n){return wH(e,t,{...n,setTimeoutImpl:nl})}const $l=rt.navigator;function tX(){return/iPhone|iPad|iPod/i.test($l?.userAgent??"")||/Macintosh/i.test($l?.userAgent??"")&&$l?.maxTouchPoints&&$l?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function nX(e){let t=!1;return(n,a)=>{if(!e.checkAndHandleExpiredSession()){ze&&Ve.warn("Received replay event after session expired.");return}const o=a||!t;t=!0,e.clickDetector&&kG(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!ch(e,n,o))return!0;if(!o)return!1;const i=e.session;if(aX(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(ze&&Ve.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&lh(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function rX(e){const t=e.getOptions();return{type:Ye.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function aX(e,t){!t||!e.session||e.session.segmentId!==0||ch(e,rX(e),!1)}function oX(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function iX(e,t,n,a){return To(g3(e,zm(e),a,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function sX({recordingData:e,headers:t}){let n;const a=`${JSON.stringify(t)}
|
|
671
|
+
`;if(typeof e=="string")n=`${a}${e}`;else{const i=new TextEncoder().encode(a);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function lX({client:e,scope:t,replayId:n,event:a}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit("preprocessEvent",a,i);const s=await S3(e.getOptions(),a,i,t,e,Dr());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:u}=l?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function cX({recordingData:e,replayId:t,segmentId:n,eventContext:a,timestamp:o,session:i}){const s=sX({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:u,initialTimestamp:d}=a,f=Qe(),p=lt(),m=f?.getTransport(),v=f?.getDsn();if(!f||!m||!v||!i.sampled)return ra({});const y={type:zq,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await lX({scope:p,client:f,replayId:t,event:y});if(!w)return f.recordDroppedEvent("event_processor","replay"),ze&&Ve.log("An event processor returned `null`, will not send event."),ra({});delete w.sdkProcessingMetadata;const b=iX(w,s,v,f.getOptions().tunnel);let E;try{E=await m.send(b)}catch(g){const x=new Error(Jm);try{x.cause=g}catch{}throw x}if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new o6(E.statusCode);const _=L3({},E);if(B3(_,"replay"))throw new dh(_);return E}class o6 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class dh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function i6(e,t={count:0,interval:Wq}){const{recordingData:n,onError:a}=e;if(n.length)try{return await cX(e),!0}catch(o){if(o instanceof o6||o instanceof dh)throw o;if(Vj("Replays",{_retryCount:t.count}),a&&a(o),t.count>=qq){const i=new Error(`${Jm} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{nl(async()=>{try{await i6(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const s6="__THROTTLED",uX="__SKIPPED";function dX(e,t,n){const a=new Map,o=l=>{const c=l-n;a.forEach((u,d)=>{d<c&&a.delete(d)})},i=()=>[...a.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const d=s;return s=!0,d?uX:s6}s=!1;const u=a.get(c)||0;return a.set(c,u+1),e(...l)}}class fX{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Vq,sessionIdleExpire:Fq},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=eX(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=dX((s,l)=>oK(this,s,l),300,5);const{slowClickTimeout:a,slowClickIgnoreSelectors:o}=this.getOptions(),i=a?{threshold:Math.min(Yq,a),timeout:a,scrollTimeout:Gq,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new gG(this,i)),ze){const s=t._experiments;Ve.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{bt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=Cr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=Cr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{IG(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){ze&&Ve.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:a}=this._options,o=n<=0&&a<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){ze&&Ve.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ze&&Ve.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){ze&&Ve.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=$d({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in buffer mode");const t=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=qr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Uq}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:nX(this),...tX(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{ze&&Ve.log(`Stopping Replay${n?` triggered by ${n}`:""}`),e6(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,eK(this)}catch(a){this.handleException(a)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ze&&Ve.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),ze&&Ve.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();ze&&Ve.log("Converting buffer to session"),await this.flushImmediate();const a=this.stopRecording();!t||!a||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tp(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${bt.location.pathname}${bt.location.hash}${bt.location.search}`,n=`${bt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const a=this._throttledAddEvent(t,n);if(a===s6){const o=Cr({category:"replay.throttled"});this.addUpdate(()=>!ch(this,{type:uG,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return a}getCurrentRoute(){const t=this.lastActiveSpan||tn(),n=t&&en(t),o=(n&&tt(n).data||{})[kn];if(!(!n||!o||!["route","custom"].includes(o)))return tt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=JG({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,a=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=a}_checkSession(){if(!this.session)return!1;const t=this.session;return Xw(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{bt.document.addEventListener("visibilitychange",this._handleVisibilityChange),bt.addEventListener("blur",this._handleWindowBlur),bt.addEventListener("focus",this._handleWindowFocus),bt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(JK(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=UG(this)}_removeListeners(){try{bt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),bt.removeEventListener("blur",this._handleWindowBlur),bt.removeEventListener("focus",this._handleWindowFocus),bt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Kw(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){ze&&Ve.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=BG(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(a=>a.start>=n)}return Promise.all(Au(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const a=n.getEarliestTimestamp();a&&a<this._context.initialTimestamp&&(this._context.initialTimestamp=a)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ze&&Ve.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await QK(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const a=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await i6({replayId:t,recordingData:i,segmentId:o,eventContext:a,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const a=Qe();if(a){const o=n instanceof dh?"ratelimit_backoff":"send_error";a.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ze&&Ve.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){ze&&Ve.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const l=this.eventBuffer;l&&this.session.segmentId===0&&!l.hasCheckout&&ze&&Ve.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&lh(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(l=>{const c=oX(l.target),u=n.join(",");return c?.matches(u)}))return!1;const a=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&a>o;if(a>i||s){const l=Cr({category:"replay.mutations",data:{count:a,limit:s}});this._createCustomBreadcrumb(l)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Ki(e,t){return[...e,...t].join(",")}function pX({mask:e,unmask:t,block:n,unblock:a,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Ki(e,[".sentry-mask","[data-sentry-mask]"]),l=Ki(t,[]);return{maskTextSelector:s,unmaskTextSelector:l,blockSelector:Ki(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ki(a,[]),ignoreSelector:Ki(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function mX({el:e,key:t,maskAttributes:n,maskAllText:a,privacyOptions:o,value:i}){return!a||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Q1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hX=["content-length","content-type","accept"];let Z1=!1;const vX=e=>new gX(e);class gX{constructor({flushMinDelay:t=jq,flushMaxDelay:n=Hq,minReplayDuration:a=Kq,maxReplayDuration:o=M1,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:w=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:_=[],networkResponseHeaders:g=[],mask:x=[],maskAttributes:C=["title","placeholder","aria-label"],unmask:P=[],block:O=[],unblock:A=[],ignore:L=[],maskFn:U,beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I}={}){this.name="Replay";const B=pX({mask:x,unmask:P,block:O,unblock:A,ignore:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:U,maskInputFn:U,maskAttributeFn:(M,$,K)=>mX({maskAttributes:C,maskAllText:u,privacyOptions:B,key:M,value:$,el:K}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:M=>{try{M.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(a,Xq),maxReplayDuration:Math.min(o,M1),stickySession:i,useCompression:s,workerUrl:l,blockAllMedia:f,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:v,slowClickIgnoreSelectors:y,networkDetailAllowUrls:w,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:eg(_),networkResponseHeaders:eg(g),beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Q1}`:Q1),this._isInitialized&&_1())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Z1}set _isInitialized(t){Z1=t}afterAllSetup(t){!_1()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=yX(this._initialOptions,t);this._replay=new fX({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function yX(e,t){const n=t.getOptions(),a={sessionSampleRate:0,errorSampleRate:0,...e},o=bo(n.replaysSessionSampleRate),i=bo(n.replaysOnErrorSampleRate);return o==null&&i==null&&ia(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(a.sessionSampleRate=o),i!=null&&(a.errorSampleRate=i),a}function eg(e){return[...hX,...e.map(t=>t.toLowerCase())]}function fr(e=0){return((hn()||performance.timeOrigin)+e)/1e3}function bX(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:a}=sw(e.nextHopProtocol);t.push(["network.protocol.version",a],["network.protocol.name",n])}return hn()?[...t,["http.request.redirect_start",fr(e.redirectStart)],["http.request.fetch_start",fr(e.fetchStart)],["http.request.domain_lookup_start",fr(e.domainLookupStart)],["http.request.domain_lookup_end",fr(e.domainLookupEnd)],["http.request.connect_start",fr(e.connectStart)],["http.request.secure_connection_start",fr(e.secureConnectionStart)],["http.request.connection_end",fr(e.connectEnd)],["http.request.request_start",fr(e.requestStart)],["http.request.response_start",fr(e.responseStart)],["http.request.response_end",fr(e.responseEnd)]]:t}const tg=new WeakMap,zd=new Map,l6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function wX(e,t){const{traceFetch:n,traceXHR:a,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l,onRequestSpanStart:c}={...l6,...t},u=typeof i=="function"?i:p=>!0,d=p=>_X(p,l),f={};n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const v=zd.get(m.span_id);v&&(m.timestamp=v/1e3,zd.delete(m.span_id))}}),p)),o&&rU(p=>{if(p.response){const m=tg.get(p.response);m&&p.endTimestamp&&zd.set(m,p.endTimestamp)}}),U3(p=>{const m=GH(p,u,d,f);if(p.response&&p.fetchData.__span&&tg.set(p.response,p.fetchData.__span),m){const v=c6(p.fetchData.url),y=v?uo(v).host:void 0;m.setAttributes({"http.url":v,"server.address":y}),s&&ng(m),c?.(m,{headers:p.headers})}})),a&&fw(p=>{const m=SX(p,u,d,f);if(m){s&&ng(m);let v;try{v=new Headers(p.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(m,{headers:v})}})}function kX(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function ng(e){const{url:t}=tt(e).data;if(!t||typeof t!="string")return;const n=wo("resource",({entries:a})=>{a.forEach(o=>{kX(o)&&o.name.endsWith(t)&&(bX(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function _X(e,t){const n=Oi();if(n){let a,o;try{a=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=a.origin===o;return t?Wr(a.toString(),t)||i&&Wr(a.pathname,t):i}else{const a=!!e.match(/^\/(?!\/)/);return t?Wr(e,t):a}}function SX(e,t,n,a){const o=e.xhr,i=o?.[eo];if(!o||o.__sentry_own_request__||!i)return;const{url:s,method:l}=i,c=ta()&&t(s);if(e.endTimestamp&&c){const y=o.__sentry_xhr_span_id__;if(!y)return;const w=a[y];w&&i.status_code!==void 0&&(n3(w,i.status_code),w.end(),delete a[y]);return}const u=c6(s),d=uo(u||s),f=YH(s),p=!!tn(),m=c&&p?Pa({name:`${l} ${f}`,attributes:{url:s,type:"xhr","http.method":l,"http.url":u,"server.address":d?.host,[xt]:"auto.http.browser",[ea]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Ta;o.__sentry_xhr_span_id__=m.spanContext().spanId,a[o.__sentry_xhr_span_id__]=m,n(s)&&CX(o,ta()&&p?m:void 0);const v=Qe();return v&&v.emit("beforeOutgoingRequestSpan",m,e),m}function CX(e,t){const{"sentry-trace":n,baggage:a}=R3({span:t});n&&xX(e,n,a)}function xX(e,t,n){const a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const o=a?.baggage;(!o||!EX(o))&&e.setRequestHeader("baggage",n)}}catch{}}function EX(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function c6(e){try{return new URL(e,at.location.origin).href}catch{return}}function TX(){at.document?at.document.addEventListener("visibilitychange",()=>{const e=tn();if(!e)return;const t=en(e);if(at.document.hidden&&t){const n="cancelled",{op:a,status:o}=tt(t);Un&&ke.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${a}`),o||t.setStatus({code:Wt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Un&&ke.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const PX=3600,u6="sentry_previous_trace",AX="sentry.previous_trace";function IX(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const a=t==="session-storage";let o=a?OX():void 0;e.on("spanStart",s=>{if(en(s)!==s)return;const l=lt().getPropagationContext();o=MX(o,s,l),a&&NX(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;const l=lt(),c=l.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}l.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(ap(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=ap(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[e3]:o.sampleRate}})}function MX(e,t,n){const a=tt(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(a.data?.[Bm])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;const s=e.spanContext;return s.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=PX&&(Un&&ke.log(`Adding previous_trace ${s} link to span ${{op:a.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[wF]:"previous_trace"}}),t.setAttribute(AX,`${s.traceId}-${s.spanId}-${ap(s)?1:0}`)),i)}function NX(e){try{at.sessionStorage.setItem(u6,JSON.stringify(e))}catch(t){Un&&ke.warn("Could not store previous trace in sessionStorage",t)}}function OX(){try{const e=at.sessionStorage?.getItem(u6);return JSON.parse(e)}catch{return}}function ap(e){return e.traceFlags===1}const BX="BrowserTracing",LX={...Xl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...l6},rg=(e={})=>{const t={name:void 0,source:void 0},n=at.document,{enableInp:a,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:v,traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:E,enableHTTPTimings:_,ignoreResourceSpans:g,ignorePerformanceApiSpans:x,instrumentPageLoad:C,instrumentNavigation:P,detectRedirects:O,linkPreviousTrace:A,consistentTraceSampling:L,onRequestSpanStart:U}={...LX,...e};let z,R;function I(B,M,$=!0){const K=M.op==="pageload",V=d?d(M):M,Z=V.attributes||{};if(M.name!==V.name&&(Z[kn]="custom",V.attributes=Z),!$){const j=xo();Pa({...V,startTime:j}).end(j);return}t.name=V.name,t.source=Z[kn];const q=_3(V,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:K,beforeSpanEnd:j=>{z?.(),vW(j,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:g,ignorePerformanceApiSpans:x}),og(B,void 0);const W=lt(),Y=W.getPropagationContext();W.setPropagationContext({...Y,traceId:q.spanContext().traceId,sampled:Eo(q),dsc:na(j)})}});og(B,q);function oe(){n&&["interactive","complete"].includes(n.readyState)&&B.emit("idleSpanEnableAutoFinish",q)}K&&n&&(n.addEventListener("readystatechange",()=>{oe()}),oe())}return{name:BX,setup(B){if($F(),z=lW({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:B}),a&&$W(),o&&EW(),s&&rt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?uW():i&&cW(),l&&dW(),O&&n){const $=()=>{R=Ht()};addEventListener("click",$,{capture:!0}),addEventListener("keydown",$,{capture:!0,passive:!0})}function M(){const $=Ms(B);$&&!tt($).timestamp&&(Un&&ke.log(`[Tracing] Finishing current active span with op: ${tt($).op}`),$.setAttribute(Ec,"cancelled"),$.end())}B.on("startNavigationSpan",($,K)=>{if(Qe()!==B)return;if(K?.isRedirect){Un&&ke.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),I(B,{op:"navigation.redirect",...$},!1);return}M(),Dr().setPropagationContext({traceId:Ea(),sampleRand:Math.random()});const V=lt();V.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),V.setSDKProcessingMetadata({normalizedRequest:void 0}),I(B,{op:"navigation",...$})}),B.on("startPageLoadSpan",($,K={})=>{if(Qe()!==B)return;M();const V=K.sentryTrace||ag("sentry-trace"),Z=K.baggage||ag("baggage"),q=IF(V,Z),oe=lt();oe.setPropagationContext(q),oe.setSDKProcessingMetadata({normalizedRequest:jm()}),I(B,{op:"pageload",...$})})},afterAllSetup(B){let M=Oi();if(A!=="off"&&IX(B,{linkPreviousTrace:A,consistentTraceSampling:L}),at.location){if(C){const $=hn();DX(B,{name:at.location.pathname,startTime:$?$/1e3:void 0,attributes:{[kn]:"url",[xt]:"auto.pageload.browser"}})}P&&Cu(({to:$,from:K})=>{if(K===void 0&&M?.indexOf($)!==-1){M=void 0;return}M=void 0;const V=j3($),Z=Ms(B),q=Z&&O&&$X(Z,R);d6(B,{name:V?.pathname||at.location.pathname,attributes:{[kn]:"url",[xt]:"auto.navigation.browser"}},{url:$,isRedirect:q})})}v&&TX(),l&&RX(B,f,p,m,t),a&&FW(),wX(B,{traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,tracePropagationTargets:B.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:_,onRequestSpanStart:U})}}};function DX(e,t,n){e.emit("startPageLoadSpan",t,n),lt().setTransactionName(t.name);const a=Ms(e);return a&&e.emit("afterStartPageLoadSpan",a),a}function d6(e,t,n){const{url:a,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=lt();return i.setTransactionName(t.name),a&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...jm(),url:a}}),Ms(e)}function ag(e){return at.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function RX(e,t,n,a,o){const i=at.document;let s;const l=()=>{const c="ui.action.click",u=Ms(e);if(u){const d=tt(u).op;if(["navigation","pageload"].includes(d)){Un&&ke.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Ec,"interactionInterrupted"),s.end(),s=void 0),!o.name){Un&&ke.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=_3({name:o.name,op:c,attributes:{[kn]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:a})};i&&addEventListener("click",l,{capture:!0})}const f6="_sentry_idleSpan";function Ms(e){return e[f6]}function og(e,t){Bn(e,f6,t)}const ig=.3;function $X(e,t){const n=tt(e),a=xo(),o=n.start_timestamp;return!(a-o>ig||t&&a-t<=ig)}const p6=["activate","mount"],m6=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zX=/(?:^|[-_])(\w)/g,VX=e=>e.replace(zX,t=>t.toUpperCase()).replace(/[-_]/g,""),FX="<Root>",Vd="<Anonymous>",jX=(e,t)=>e.repeat(t),fs=(e,t)=>{if(!e)return Vd;if(e.$root===e)return FX;if(!e.$options)return Vd;const n=e.$options;let a=n.name||n._componentTag||n.__name;const o=n.__file;if(!a&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(a=i[1])}return(a?`<${VX(a)}>`:Vd)+(o&&t!==!1?` at ${o}`:"")},HX=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const o=t[t.length-1];if(o.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[o,n],n=0)}t.push(e),e=e.$parent}return`
|
|
672
672
|
|
|
673
673
|
found in
|
|
674
674
|
|
|
675
|
-
${t.map((o,i)=>`${(i===0?"---> ":
|
|
675
|
+
${t.map((o,i)=>`${(i===0?"---> ":jX(" ",5+i*2))+(Array.isArray(o)?`${fs(o[0])}... (${o[1]} recursive calls)`:fs(o))}`).join(`
|
|
676
676
|
`)}`}return`
|
|
677
677
|
|
|
678
|
-
(found in ${fs(e)})`},jX=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(a,o,i)=>{const s=fs(o,!1),l=o?FX(o):"",c={componentName:s,lifecycleHook:i,trace:l};if(t.attachProps&&o&&(o.$options?.propsData?c.propsData=o.$options.propsData:o.$props&&(c.propsData=o.$props)),setTimeout(()=>{bu(a,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"vue"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,a,o,i);else throw a}},sg="ui.vue",HX={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Fd(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function UX(e,t){function n(o){return o.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(o=>n(t)===n(o))}const WX=(e={})=>{const t=(e.hooks||[]).concat(p6).filter((o,i,s)=>s.indexOf(o)===i),n={},a=e.timeout||2e3;for(const o of t){const i=HX[o];if(!i){m6&&ke.warn(`Unknown hook: ${o}`);continue}for(const s of i)n[s]=function(){const l=this.$root===this;l&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Pa({name:"Application Render",op:`${sg}.render`,attributes:{[xt]:"auto.ui.vue"},onlyIfParent:!0}),Fd(this,Ht(),a));const c=fs(this,!1);if(!(l||(Array.isArray(e.trackComponents)?UX(e.trackComponents,c):e.trackComponents))){Fd(this,Ht(),a);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const d=s===i[0],f=this.$root?.$_sentryRootComponentSpan||tn();if(d){if(f){const p=this.$_sentryComponentSpans[o];p&&p.end(),this.$_sentryComponentSpans[o]=Pa({name:`Vue ${c}`,op:`${sg}.${o}`,attributes:{[xt]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[o];if(!p)return;p.end(),Fd(this,Ht(),a)}}}return n},qX=rt,YX={Vue:qX.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:p6,timeout:2e3,trackComponents:!1}},GX="Vue",KX=(e={})=>({name:GX,setup(t){const n={...YX,...t.getOptions(),...e};if(!n.Vue&&!n.app){ia(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(o=>lg(o,n)):n.Vue&&lg(n.Vue,n)}}),lg=(e,t)=>{m6&&e._instance?.isMounted===!0&&ia(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&jX(e,t),ta(t)&&e.mixin(WX(t.tracingOptions))};function XX(e={}){const t={defaultIntegrations:[...yw(),KX()],...e};return D3(t,"vue"),Dq(t)}function JX(e,t,n){let a=!1;e.onError(o=>bu(o,{mechanism:{handled:!1}})),e.beforeEach((o,i,s)=>{const l=a?void 0:QX(),c={};for(const f of Object.keys(o.params))c[`url.path.parameter.${f}`]=o.params[f],c[`params.${f}`]=o.params[f];for(const f of Object.keys(o.query)){const p=o.query[f];p&&(c[`query.${f}`]=p)}let u=o.path,d="url";if(o.name&&t.routeLabel!=="path")u=o.name.toString(),d="custom";else if(o.matched.length>0){const f=o.matched.length-1;u=o.matched[f].path,d="route"}lt().setTransactionName(u),t.instrumentPageLoad&&l&&(tt(l).data[kn]!=="custom"&&(l.updateName(u),l.setAttribute(kn,d)),l.setAttributes({...c,[xt]:"auto.pageload.vue"}),a=!0),t.instrumentNavigation&&!l&&n({name:u,op:"navigation",attributes:{...c,[xt]:"auto.navigation.vue",[kn]:d}}),s&&s()})}function QX(){const e=tn(),t=e&&en(e);return t&&tt(t).op==="pageload"?t:void 0}function ZX(e={}){if(!e.router)return rg(e);const t=rg({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:a=!0,instrumentPageLoad:o=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),JX(n,{routeLabel:i,instrumentNavigation:a,instrumentPageLoad:o},c=>{d6(s,c)})}}}function eJ(e,t,n){XX({app:e,dsn:n.dsn,environment:n.environment,release:n.release,initialScope:{tags:{platform:n.platform,language:"vue"}},beforeSend(a,o){return n?.beforeSend?n.beforeSend(a,o):a},integrations:[ZX(),...n?.replay===!0?[mX()]:[]],tracesSampleRate:parseFloat(`${n?.tracesSampleRate??1}`),tracePropagationTargets:["localhost",".auto.test",n.url,/^\//]})}const tJ={class:"flex items-center space-x-5"},nJ={class:"pr-6 font-serif text-base font-bold text-zinc-900","data-test-title":""},rJ=["innerHTML"],jd=r.defineComponent({__name:"Toast",props:{title:{},content:{default:void 0},type:{},options:{default:void 0}},emits:["closeToast"],setup(e,{emit:t}){const n=t;return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"cursor-pointer":a.options?.onClick},"relative"])},[r.createVNode(r.unref(km),{class:"absolute right-0 top-0 size-4 cursor-pointer",onClick:o[0]||(o[0]=r.withModifiers(()=>n("closeToast"),["stop"]))}),r.createElementVNode("div",tJ,[r.createElementVNode("div",null,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(Z2)[a.type]),{class:"size-7","data-test-icon":""}))]),r.createElementVNode("div",null,[r.createElementVNode("p",nJ,r.toDisplayString(a.title),1),a.content?(r.openBlock(),r.createElementBlock("p",{key:0,class:"font-serif text-base text-zinc-700","data-test-content":"",innerHTML:a.content},null,8,rJ)):r.createCommentVNode("",!0)])])],2))}});function aJ(e){const t=k_(e);return{...t,success:(n,a,o)=>t.success({component:jd,props:{title:n,content:a,type:"success",options:o}},o),warning:(n,a,o)=>t.warning({component:jd,props:{title:n,content:a,type:"warning",options:o}},o),error:(n,a,o)=>t.error({component:jd,props:{title:n,content:a,type:"error",options:o}},o)}}const h6={install:(e,t)=>{t?.pusher&&jb(t.pusher.appKey,t.pusher.authorizer),t?.sentry?.dsn&&eJ(e,t.sentry.router,t?.sentry);const n={position:ms.TOP_RIGHT,transition:"Vue-Toastification__bounce",maxToasts:5,icon:!1,hideProgressBar:!0,newestOnTop:!0,...t?.toast??{}};e.use(__,n);const a={defaultProps:{placement:"top"},component:"Tippy",...t?.tippy??{}};e.use(Jh,a),window.UILibraryOptions=t,e.provide("plugins",[...t?.plugins??[],Jh]),bx.add(...$4)}},oJ={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},iJ={class:"flex h-full grow flex-col bg-white md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl","data-test-main-wrapper":""},sJ={class:"flex grow justify-center p-10 transition-all md:items-center md:px-24"},lJ={class:"mx-auto md:max-w-lg"},cJ={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},uJ=["src"],dJ=r.defineComponent({__name:"Auth",setup(e){const{layoutImage:t}=Tp();return(n,a)=>(r.openBlock(),r.createElementBlock("div",oJ,[r.createVNode(r.unref(su)),r.createElementVNode("div",iJ,[r.renderSlot(n.$slots,"secondaryNavBar"),r.createElementVNode("main",sJ,[r.createElementVNode("div",lJ,[r.renderSlot(n.$slots,"default")])])]),r.createElementVNode("div",cJ,[r.unref(t)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(t),class:"h-screen w-full object-fill"},null,8,uJ)):r.createCommentVNode("",!0)])]))}}),fJ={class:"flex h-screen w-screen flex-col bg-zinc-100 md:flex-row md:overflow-hidden"},pJ={class:"relative order-4 flex shrink-0 grow flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},mJ={class:"w-full px-4 py-8 md:px-6 md:py-12"},hJ={id:"sidebar-wrapper",class:"order-3 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 pt-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:p-12 xl:w-110 xl:empty:-mr-110 2xl:w-141 2xl:empty:-mr-141","data-test-layout-sidebar-wrapper":""},vJ=r.defineComponent({__name:"Base",setup(e){const t=r.ref(null),n=r.ref(!0),a=new MutationObserver(o);r.onMounted(()=>{t.value&&(a.observe(t.value,{childList:!0,subtree:!0}),o())}),r.onUnmounted(()=>{a.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!i?.innerHTML}return r.provide("sidebarLeftHasContent",n),(i,s)=>(r.openBlock(),r.createElementBlock("div",fJ,[r.createVNode(r.unref(su),{class:"z-50 order-1"}),r.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:mb-4 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[r.renderSlot(i.$slots,"sidebarLeft")],512),r.createElementVNode("main",pJ,[r.createVNode(r.unref(hm)),r.createElementVNode("div",mJ,[r.renderSlot(i.$slots,"default")])]),r.createElementVNode("div",hJ,[r.renderSlot(i.$slots,"sidebar")])]))}}),gJ={class:"flex h-screen w-screen flex-col bg-zinc-100 md:flex-row md:overflow-hidden"},yJ={class:"relative order-4 flex min-h-[calc(100vh-5rem)] shrink-0 flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 context-menu-open:overflow-y-hidden justify-self-start md:order-3 md:-mt-0 md:h-screen md:grow md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},bJ={class:"w-full px-4 py-8 md:px-8 md:py-12"},wJ=["data-has-content"],kJ=r.defineComponent({__name:"Platform",setup(e){const t=r.useTemplateRef("sidebarLeftWrapper"),n=r.useTemplateRef("sidebarRightWrapper"),a=r.ref(!0),o=r.ref(!0),i=new MutationObserver(l),s=new MutationObserver(c);r.onMounted(()=>{t.value&&(i.observe(t.value,{childList:!0,subtree:!0}),l()),n.value&&(s.observe(n.value,{childList:!0,subtree:!0}),c())}),r.onUnmounted(()=>{i.disconnect(),s.disconnect()});function l(){const u=document.getElementById("sidebar-left-wrapper");a.value=!!u?.innerHTML}function c(){const d=document.getElementById("sidebar-wrapper")?.children?.[0]?.clientWidth;o.value=!!(d&&d>0)}return r.provide("sidebarLeftHasContent",a),(u,d)=>(r.openBlock(),r.createElementBlock("div",gJ,[r.createVNode(r.unref(su),{class:"z-50 order-1"}),r.createElementVNode("div",{id:"sidebar-left-wrapper",ref:"sidebarLeftWrapper",class:r.normalizeClass([{"z-200":a.value},"relative order-2 flex shrink-0 grow-0 flex-col overflow-y-auto rounded-l-2xl bg-white p-4 transition-all empty:-ml-72 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:max-h-screen md:w-72 md:px-6 md:pt-8"]),"data-test-layout-sidebar-left-wrapper":""},[r.renderSlot(u.$slots,"sidebarLeft")],2),r.createElementVNode("main",yJ,[r.createVNode(r.unref(hm)),r.createElementVNode("div",bJ,[r.renderSlot(u.$slots,"default")])]),r.createElementVNode("div",{id:"sidebar-wrapper",ref:"sidebarRightWrapper","data-has-content":o.value,class:"@container order-5 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 py-8 transition-all empty:ml-0 empty:mr-[-400px] empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-[400px] md:overflow-hidden md:rounded-l-3xl md:bg-white md:px-6 md:pb-6 md:pt-12 xl:w-[580px] xl:empty:mr-[-580px] data-[has-content=false]:ml-0 data-[has-content=false]:mr-[-400px] data-[has-content=false]:whitespace-nowrap data-[has-content=false]:p-0 xl:data-[has-content=false]:mr-[-580px]","data-test-layout-sidebar-wrapper":""},[r.renderSlot(u.$slots,"sidebar")],8,wJ)]))}}),_J={class:"mt-2 flex"},SJ={class:"text-white"},CJ=r.defineComponent({__name:"MultiSelect",props:r.mergeModels({action:{},item:{},submitButtonText:{default:"Opslaan"},cancelButtonText:{default:"Annuleren"}},{modelValue:{},modelModifiers:{}}),emits:r.mergeModels(["submit","close"],["update:modelValue"]),setup(e,{emit:t}){const n=e,a=t,o=r.useModel(e,"modelValue"),i=r.ref(!1),s=Mi(),l=r.computed(()=>({minChars:1,resolveOnLoad:!0,closeOnSelect:!1,multiple:!0,clearable:!0,searchable:!0,fetchOnOpen:!0,hideSelected:!0,maxHeight:200,mode:"tags",placeholder:"Zoeken...",noOptionsText:"Geen opties beschikbaar",noResultsText:"Geen resulaten gevonden",valueProp:"id",...n.action.componentProperties}));async function c(){i.value=!0;const u=await n.action?.onSubmit?.(o.value,n.item??s.tableSelection.value);i.value=!1,u&&a("close")}return(u,d)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(iu),r.mergeProps({modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f)},l.value,{classes:{dropdownHidden:"block! relative!",option:"hover:bg-zinc-600 px-2.5 py-2.5 rounded-lg text-base h-10",search:r.unref(Tt).search,placeholder:`${r.unref(Tt).placeholder} max-h-11`,tags:`${r.unref(Tt).tags} bg-white rounded-lg min-h-10 mb-2 mt-0! text-secondary pt-1`,tag:`${r.unref(Tt).tag} text-secondary`,tagDisabled:r.unref(Tt).tagDisabled,tagRemove:r.unref(Tt).tagRemove,tagRemoveIcon:r.unref(Tt).tagRemoveIcon,tagText:r.unref(Tt).tagText,tagsSearchWrapper:r.unref(Tt).tagsSearchWrapper,tagsSearch:r.unref(Tt).tagsSearch,tagsSearchCopy:r.unref(Tt).tagsSearchCopy,spinner:`${r.unref(Tt).spinner} absolute`}}),null,16,["modelValue","classes"]),r.createElementVNode("div",_J,[r.createVNode(r.unref(or),{block:!0,"color-type":"plain",size:"small","data-test-cancel-button":"",onClick:d[1]||(d[1]=()=>a("close"))},{default:r.withCtx(()=>[r.createElementVNode("span",SJ,r.toDisplayString(u.cancelButtonText),1)]),_:1}),r.createVNode(r.unref(or),{block:!0,loading:i.value,"color-type":"primary",size:"small","data-test-submit-button":"",onClick:c},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.submitButtonText),1)]),_:1},8,["loading"])])]))}}),xJ=Object.freeze(Object.defineProperty({__proto__:null,default:CJ},Symbol.toStringTag,{value:"Module"}));exports.AppActionBar=hm;exports.AppAlert=ey;exports.AppAvatar=Jx;exports.AppBackButton=Zx;exports.AppBadge=sc;exports.AppButton=or;exports.AppCard=Mp;exports.AppColor=ty;exports.AppColorCard=_E;exports.AppConfirm=ny;exports.AppContextMenu=Nb;exports.AppDataTable=oL;exports.AppDefinitionItem=sy;exports.AppDefinitionList=C7;exports.AppDisclosure=x7;exports.AppDisclosureButton=T7;exports.AppDisclosurePanel=P7;exports.AppDrawer=Ob;exports.AppDropdownButton=vE;exports.AppError=ry;exports.AppImageDropzone=v7;exports.AppInput=nb;exports.AppInputLabel=om;exports.AppLicensePlate=db;exports.AppLoader=Na;exports.AppMaps=sO;exports.AppMenu=PD;exports.AppModal=iy;exports.AppNavigationMenu=su;exports.AppPagination=Ib;exports.AppProgressBar=zD;exports.AppProgressBarStep=HD;exports.AppRating=nR;exports.AppSection=BD;exports.AppSelect=iu;exports.AppStepper=oR;exports.AppTable=BO;exports.AppTimeline=EO;exports.AppTimelineItem=pb;exports.AppTimelineItemIcon=fb;exports.AppToggle=Mb;exports.AppToggleCard=wD;exports.AuthLayout=dJ;exports.BaseLayout=vJ;exports.PlatformLayout=kJ;exports.Tippy=Xg;exports.default=h6;exports.getOrCreateListener=Fb;exports.hex2rgb=Ji;exports.plugin=h6;exports.registerEcho=jb;exports.rgb2Hex=Sx;exports.toastInjectionKey=ip;exports.useActionBar=Mi;exports.useClientPoint=Hb;exports.useComputedPosition=Hs;exports.useConfirm=lR;exports.useContextMenu=fu;exports.useDrawer=dR;exports.useEcho=SR;exports.useError=cR;exports.useFocusTrap=bm;exports.useGoogleApi=Ax;exports.useLayout=Tp;exports.useModal=uR;exports.useNavigation=ko;exports.useTippy=hp;exports.useToast=aJ;
|
|
678
|
+
(found in ${fs(e)})`},UX=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(a,o,i)=>{const s=fs(o,!1),l=o?HX(o):"",c={componentName:s,lifecycleHook:i,trace:l};if(t.attachProps&&o&&(o.$options?.propsData?c.propsData=o.$options.propsData:o.$props&&(c.propsData=o.$props)),setTimeout(()=>{bu(a,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"vue"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,a,o,i);else throw a}},sg="ui.vue",WX={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Fd(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function qX(e,t){function n(o){return o.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(o=>n(t)===n(o))}const YX=(e={})=>{const t=(e.hooks||[]).concat(p6).filter((o,i,s)=>s.indexOf(o)===i),n={},a=e.timeout||2e3;for(const o of t){const i=WX[o];if(!i){m6&&ke.warn(`Unknown hook: ${o}`);continue}for(const s of i)n[s]=function(){const l=this.$root===this;l&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Pa({name:"Application Render",op:`${sg}.render`,attributes:{[xt]:"auto.ui.vue"},onlyIfParent:!0}),Fd(this,Ht(),a));const c=fs(this,!1);if(!(l||(Array.isArray(e.trackComponents)?qX(e.trackComponents,c):e.trackComponents))){Fd(this,Ht(),a);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const d=s===i[0],f=this.$root?.$_sentryRootComponentSpan||tn();if(d){if(f){const p=this.$_sentryComponentSpans[o];p&&p.end(),this.$_sentryComponentSpans[o]=Pa({name:`Vue ${c}`,op:`${sg}.${o}`,attributes:{[xt]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[o];if(!p)return;p.end(),Fd(this,Ht(),a)}}}return n},GX=rt,KX={Vue:GX.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:p6,timeout:2e3,trackComponents:!1}},XX="Vue",JX=(e={})=>({name:XX,setup(t){const n={...KX,...t.getOptions(),...e};if(!n.Vue&&!n.app){ia(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(o=>lg(o,n)):n.Vue&&lg(n.Vue,n)}}),lg=(e,t)=>{m6&&e._instance?.isMounted===!0&&ia(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&UX(e,t),ta(t)&&e.mixin(YX(t.tracingOptions))};function QX(e={}){const t={defaultIntegrations:[...yw(),JX()],...e};return D3(t,"vue"),$q(t)}function ZX(e,t,n){let a=!1;e.onError(o=>bu(o,{mechanism:{handled:!1}})),e.beforeEach((o,i,s)=>{const l=a?void 0:eJ(),c={};for(const f of Object.keys(o.params))c[`url.path.parameter.${f}`]=o.params[f],c[`params.${f}`]=o.params[f];for(const f of Object.keys(o.query)){const p=o.query[f];p&&(c[`query.${f}`]=p)}let u=o.path,d="url";if(o.name&&t.routeLabel!=="path")u=o.name.toString(),d="custom";else if(o.matched.length>0){const f=o.matched.length-1;u=o.matched[f].path,d="route"}lt().setTransactionName(u),t.instrumentPageLoad&&l&&(tt(l).data[kn]!=="custom"&&(l.updateName(u),l.setAttribute(kn,d)),l.setAttributes({...c,[xt]:"auto.pageload.vue"}),a=!0),t.instrumentNavigation&&!l&&n({name:u,op:"navigation",attributes:{...c,[xt]:"auto.navigation.vue",[kn]:d}}),s&&s()})}function eJ(){const e=tn(),t=e&&en(e);return t&&tt(t).op==="pageload"?t:void 0}function tJ(e={}){if(!e.router)return rg(e);const t=rg({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:a=!0,instrumentPageLoad:o=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),ZX(n,{routeLabel:i,instrumentNavigation:a,instrumentPageLoad:o},c=>{d6(s,c)})}}}function nJ(e,t,n){QX({app:e,dsn:n.dsn,environment:n.environment,release:n.release,initialScope:{tags:{platform:n.platform,language:"vue"}},beforeSend(a,o){return n?.beforeSend?n.beforeSend(a,o):a},integrations:[tJ(),...n?.replay===!0?[vX()]:[]],tracesSampleRate:parseFloat(`${n?.tracesSampleRate??1}`),tracePropagationTargets:["localhost",".auto.test",n.url,/^\//]})}const rJ={class:"flex items-center space-x-5"},aJ={class:"pr-6 font-serif text-base font-bold text-zinc-900","data-test-title":""},oJ=["innerHTML"],jd=r.defineComponent({__name:"Toast",props:{title:{},content:{default:void 0},type:{},options:{default:void 0}},emits:["closeToast"],setup(e,{emit:t}){const n=t;return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"cursor-pointer":a.options?.onClick},"relative"])},[r.createVNode(r.unref(km),{class:"absolute right-0 top-0 size-4 cursor-pointer",onClick:o[0]||(o[0]=r.withModifiers(()=>n("closeToast"),["stop"]))}),r.createElementVNode("div",rJ,[r.createElementVNode("div",null,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(Z2)[a.type]),{class:"size-7","data-test-icon":""}))]),r.createElementVNode("div",null,[r.createElementVNode("p",aJ,r.toDisplayString(a.title),1),a.content?(r.openBlock(),r.createElementBlock("p",{key:0,class:"font-serif text-base text-zinc-700","data-test-content":"",innerHTML:a.content},null,8,oJ)):r.createCommentVNode("",!0)])])],2))}});function iJ(e){const t=k_(e);return{...t,success:(n,a,o)=>t.success({component:jd,props:{title:n,content:a,type:"success",options:o}},o),warning:(n,a,o)=>t.warning({component:jd,props:{title:n,content:a,type:"warning",options:o}},o),error:(n,a,o)=>t.error({component:jd,props:{title:n,content:a,type:"error",options:o}},o)}}const h6={install:(e,t)=>{t?.pusher&&jb(t.pusher.appKey,t.pusher.authorizer),t?.sentry?.dsn&&nJ(e,t.sentry.router,t?.sentry);const n={position:ms.TOP_RIGHT,transition:"Vue-Toastification__bounce",maxToasts:5,icon:!1,hideProgressBar:!0,newestOnTop:!0,...t?.toast??{}};e.use(__,n);const a={defaultProps:{placement:"top"},component:"Tippy",...t?.tippy??{}};e.use(Jh,a),window.UILibraryOptions=t,e.provide("plugins",[...t?.plugins??[],Jh]),bx.add(...$4)}},sJ={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},lJ={class:"flex h-full grow flex-col bg-white md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl","data-test-main-wrapper":""},cJ={class:"flex grow justify-center p-10 transition-all md:items-center md:px-24"},uJ={class:"mx-auto md:max-w-lg"},dJ={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},fJ=["src"],pJ=r.defineComponent({__name:"Auth",setup(e){const{layoutImage:t}=Tp();return(n,a)=>(r.openBlock(),r.createElementBlock("div",sJ,[r.createVNode(r.unref(su)),r.createElementVNode("div",lJ,[r.renderSlot(n.$slots,"secondaryNavBar"),r.createElementVNode("main",cJ,[r.createElementVNode("div",uJ,[r.renderSlot(n.$slots,"default")])])]),r.createElementVNode("div",dJ,[r.unref(t)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(t),class:"h-screen w-full object-fill"},null,8,fJ)):r.createCommentVNode("",!0)])]))}}),mJ={class:"flex h-screen w-screen flex-col bg-zinc-100 md:flex-row md:overflow-hidden"},hJ={class:"relative order-4 flex shrink-0 grow flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},vJ={class:"w-full px-4 py-8 md:px-6 md:py-12"},gJ={id:"sidebar-wrapper",class:"order-3 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 pt-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:p-12 xl:w-110 xl:empty:-mr-110 2xl:w-141 2xl:empty:-mr-141","data-test-layout-sidebar-wrapper":""},yJ=r.defineComponent({__name:"Base",setup(e){const t=r.ref(null),n=r.ref(!0),a=new MutationObserver(o);r.onMounted(()=>{t.value&&(a.observe(t.value,{childList:!0,subtree:!0}),o())}),r.onUnmounted(()=>{a.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!i?.innerHTML}return r.provide("sidebarLeftHasContent",n),(i,s)=>(r.openBlock(),r.createElementBlock("div",mJ,[r.createVNode(r.unref(su),{class:"z-50 order-1"}),r.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:mb-4 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[r.renderSlot(i.$slots,"sidebarLeft")],512),r.createElementVNode("main",hJ,[r.createVNode(r.unref(hm)),r.createElementVNode("div",vJ,[r.renderSlot(i.$slots,"default")])]),r.createElementVNode("div",gJ,[r.renderSlot(i.$slots,"sidebar")])]))}}),bJ={class:"flex h-screen w-screen flex-col bg-zinc-100 md:flex-row md:overflow-hidden"},wJ={class:"relative order-4 flex min-h-[calc(100vh-5rem)] shrink-0 flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 context-menu-open:overflow-y-hidden justify-self-start md:order-3 md:-mt-0 md:h-screen md:grow md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},kJ={class:"w-full px-4 py-8 md:px-8 md:py-12"},_J=["data-has-content"],SJ=r.defineComponent({__name:"Platform",setup(e){const t=r.useTemplateRef("sidebarLeftWrapper"),n=r.useTemplateRef("sidebarRightWrapper"),a=r.ref(!0),o=r.ref(!0),i=new MutationObserver(l),s=new MutationObserver(c);r.onMounted(()=>{t.value&&(i.observe(t.value,{childList:!0,subtree:!0}),l()),n.value&&(s.observe(n.value,{childList:!0,subtree:!0}),c())}),r.onUnmounted(()=>{i.disconnect(),s.disconnect()});function l(){const u=document.getElementById("sidebar-left-wrapper");a.value=!!u?.innerHTML}function c(){const d=document.getElementById("sidebar-wrapper")?.children?.[0]?.clientWidth;o.value=!!(d&&d>0)}return r.provide("sidebarLeftHasContent",a),(u,d)=>(r.openBlock(),r.createElementBlock("div",bJ,[r.createVNode(r.unref(su),{class:"z-50 order-1"}),r.createElementVNode("div",{id:"sidebar-left-wrapper",ref:"sidebarLeftWrapper",class:r.normalizeClass([{"z-200":a.value},"relative order-2 flex shrink-0 grow-0 flex-col overflow-y-auto rounded-l-2xl bg-white p-4 transition-all empty:-ml-72 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:max-h-screen md:w-72 md:px-6 md:pt-8"]),"data-test-layout-sidebar-left-wrapper":""},[r.renderSlot(u.$slots,"sidebarLeft")],2),r.createElementVNode("main",wJ,[r.createVNode(r.unref(hm)),r.createElementVNode("div",kJ,[r.renderSlot(u.$slots,"default")])]),r.createElementVNode("div",{id:"sidebar-wrapper",ref:"sidebarRightWrapper","data-has-content":o.value,class:"@container order-5 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 py-8 transition-all empty:ml-0 empty:mr-[-400px] empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-[400px] md:overflow-hidden md:rounded-l-3xl md:bg-white md:px-6 md:pb-6 md:pt-12 xl:w-[580px] xl:empty:mr-[-580px] data-[has-content=false]:ml-0 data-[has-content=false]:mr-[-400px] data-[has-content=false]:whitespace-nowrap data-[has-content=false]:p-0 xl:data-[has-content=false]:mr-[-580px]","data-test-layout-sidebar-wrapper":""},[r.renderSlot(u.$slots,"sidebar")],8,_J)]))}}),CJ={class:"mt-2 flex"},xJ={class:"text-white"},EJ=r.defineComponent({__name:"MultiSelect",props:r.mergeModels({action:{},item:{},submitButtonText:{default:"Opslaan"},cancelButtonText:{default:"Annuleren"}},{modelValue:{},modelModifiers:{}}),emits:r.mergeModels(["submit","close"],["update:modelValue"]),setup(e,{emit:t}){const n=e,a=t,o=r.useModel(e,"modelValue"),i=r.ref(!1),s=Mi(),l=r.computed(()=>({minChars:1,resolveOnLoad:!0,closeOnSelect:!1,multiple:!0,clearable:!0,searchable:!0,fetchOnOpen:!0,hideSelected:!0,maxHeight:200,mode:"tags",placeholder:"Zoeken...",noOptionsText:"Geen opties beschikbaar",noResultsText:"Geen resulaten gevonden",valueProp:"id",...n.action.componentProperties}));async function c(){i.value=!0;const u=await n.action?.onSubmit?.(o.value,n.item??s.tableSelection.value);i.value=!1,u&&a("close")}return(u,d)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(iu),r.mergeProps({modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f)},l.value,{classes:{dropdownHidden:"block! relative!",option:"hover:bg-zinc-600 px-2.5 py-2.5 rounded-lg text-base h-10",search:r.unref(Tt).search,placeholder:`${r.unref(Tt).placeholder} max-h-11`,tags:`${r.unref(Tt).tags} bg-white rounded-lg min-h-10 mb-2 mt-0! text-secondary pt-1`,tag:`${r.unref(Tt).tag} text-secondary`,tagDisabled:r.unref(Tt).tagDisabled,tagRemove:r.unref(Tt).tagRemove,tagRemoveIcon:r.unref(Tt).tagRemoveIcon,tagText:r.unref(Tt).tagText,tagsSearchWrapper:r.unref(Tt).tagsSearchWrapper,tagsSearch:r.unref(Tt).tagsSearch,tagsSearchCopy:r.unref(Tt).tagsSearchCopy,spinner:`${r.unref(Tt).spinner} absolute`}}),null,16,["modelValue","classes"]),r.createElementVNode("div",CJ,[r.createVNode(r.unref(or),{block:!0,"color-type":"plain",size:"small","data-test-cancel-button":"",onClick:d[1]||(d[1]=()=>a("close"))},{default:r.withCtx(()=>[r.createElementVNode("span",xJ,r.toDisplayString(u.cancelButtonText),1)]),_:1}),r.createVNode(r.unref(or),{block:!0,loading:i.value,"color-type":"primary",size:"small","data-test-submit-button":"",onClick:c},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.submitButtonText),1)]),_:1},8,["loading"])])]))}}),TJ=Object.freeze(Object.defineProperty({__proto__:null,default:EJ},Symbol.toStringTag,{value:"Module"}));exports.AppActionBar=hm;exports.AppAlert=ey;exports.AppAvatar=Jx;exports.AppBackButton=Zx;exports.AppBadge=sc;exports.AppButton=or;exports.AppCard=Mp;exports.AppColor=ty;exports.AppColorCard=_E;exports.AppConfirm=ny;exports.AppContextMenu=Nb;exports.AppDataTable=oL;exports.AppDefinitionItem=sy;exports.AppDefinitionList=C7;exports.AppDisclosure=x7;exports.AppDisclosureButton=T7;exports.AppDisclosurePanel=P7;exports.AppDrawer=Ob;exports.AppDropdownButton=vE;exports.AppError=ry;exports.AppImageDropzone=v7;exports.AppInput=nb;exports.AppInputLabel=om;exports.AppLicensePlate=db;exports.AppLoader=Na;exports.AppMaps=sO;exports.AppMenu=PD;exports.AppModal=iy;exports.AppNavigationMenu=su;exports.AppPagination=Ib;exports.AppProgressBar=zD;exports.AppProgressBarStep=HD;exports.AppRating=nR;exports.AppSection=BD;exports.AppSelect=iu;exports.AppStepper=oR;exports.AppTable=BO;exports.AppTimeline=EO;exports.AppTimelineItem=pb;exports.AppTimelineItemIcon=fb;exports.AppToggle=Mb;exports.AppToggleCard=wD;exports.AuthLayout=pJ;exports.BaseLayout=yJ;exports.PlatformLayout=SJ;exports.Tippy=Xg;exports.default=h6;exports.getOrCreateListener=Fb;exports.hex2rgb=Ji;exports.plugin=h6;exports.registerEcho=jb;exports.rgb2Hex=Sx;exports.toastInjectionKey=ip;exports.useActionBar=Mi;exports.useClientPoint=Hb;exports.useComputedPosition=Hs;exports.useConfirm=lR;exports.useContextMenu=fu;exports.useDrawer=dR;exports.useEcho=SR;exports.useError=cR;exports.useFocusTrap=bm;exports.useGoogleApi=Ax;exports.useLayout=Tp;exports.useModal=uR;exports.useNavigation=ko;exports.useTippy=hp;exports.useToast=iJ;
|