try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`1617b0e7-1d55-477b-a2c8-3a0894b75706`,e._sentryDebugIdIdentifier=`sentry-dbid-1617b0e7-1d55-477b-a2c8-3a0894b75706`)}catch{}import{a as e,n as t,r as n,t as r}from"./rolldown-runtime-eb2nym32.js";var i=n({version:()=>a}),a,o=t((()=>{a=`3.0.5`})),s=r((t=>{var n=t&&t.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,`__esModule`,{value:!0}),t.Footprint=void 0;var r=(o(),e(i)),a=(function(){var e=1,t=2,i=e|t,a=8,o=16,s=a|o,c=i|s,l=128,u=256,d=i|l|u,f=`http://`,p=200,m=`trans.gif`,h=`/apc/`,g=5e3,_=`trans.gif`,v=`100k.gif`,y=822.128,b=1e3,x=`GET`,S=`POST`,C=-1,w=`js/${r.version}`,T=`x-userhostaddress`,E=`x-endpoint`,D=`x-frontend`,O=`x-machinename`;function k(e,t,r,i,a,o,s,c,l){i===void 0&&(i=``),a===void 0&&(a=``),o===void 0&&(o={}),l===void 0&&(l=function(e){});try{if(!e||e.trim().length===0||Number(r)!==r||r%1!=0||r<0)return;var u=a.trim().length>0,d=i.trim().length>0;d&&i.trim().length>p&&(i=i.trim().substr(0,p));var f=window.location.protocol==`file:`?`https://`:window.location.protocol+`//`;if(!JSON||typeof XMLHttpRequest>`u`)return;if(window.XMLHttpRequest){var h=new XMLHttpRequest;if(!(`onload`in h)||!(`onerror`in h)||!(`ontimeout`in h)||!(`getAllResponseHeaders`in h))return}else return;var _=n(n(n(n({MonitorID:e},u&&{customerId:a}),{rid:F(),w3c:`${I()}`,prot:window.location.protocol,v:w}),d&&{tag:i}),{DATA:``}),v=function(){var e=j(c,f);if(e.length!==0){for(var t=M(e,f,m,o),n=[],i=0,a=c.r;i<a.length;i++){var l=a[i];n.push(`${f}${l}?${new URLSearchParams(_)}`)}L(t,g,r,n,null,s)}};if(c===void 0){for(var y in t)t[y]=f+t[y]+`?monitorId=${e}${u?`&customerId=${a}`:``}`;A(t,0,x,function(e){c=JSON.parse(e.responseText),l(c),v()})}else v()}catch{}}function A(e,t,n,r){if(!(t>=e.length)){n!==x&&n!==S&&(n=x);var i=function(){A(e,t+1,n,r)},a=new XMLHttpRequest;a.open(n,e[t],!0),a.onload=function(){a.readyState===4&&a.status===200?r?.(a):i()},a.onerror=i,a.timeout=g,a.ontimeout=i,a.send()}}function j(n,r){for(var i=[],c=0,p=d|s,m=0,h=n.e;m<h.length;m++){var g=h[m];g.w>0&&g.m&p&&(c+=g.w,i.push({endpoint:g.e,cumWeight:c,weight:g.w,measurementTypes:g.m}))}for(var y=r.toLowerCase()===f?[t,o,u]:[e,a,l],b=[_,v,_],x=[1,3,2],S=[],C=Math.min(n.n,i.length),w=0;w<C;w++){for(var T=Math.floor(Math.random()*c),E=null,D=0;D<i.length;D++)E==null?T<i[D].cumWeight&&(E=i[D],i[D].cumWeight=0):i[D].cumWeight-=E.weight;c-=E.weight;for(var O=E.endpoint.charAt(0)===`*`?F():``,D=0;D<y.length;D++)E.measurementTypes&y[D]&&S.push({id:E.endpoint,testImage:b[D],measurementType:y[D],guid:O,rank:x[D]})}return S.sort(function(e,t){return e.rank-t.rank}),S}function M(e,t,n,r){r===void 0&&(r={});for(var i=[],a=0,o=e;a<o.length;a++){var c=o[a],l=c.measurementType,u=c.testImage,d=c.guid,f=c.id,p=t+(r&&r[f]||f);if(f.indexOf(`.`)===-1)p+=`.clo.footprintdns.com`;else if(f.charAt(0)===`*`){var m=f.substring(2);p=t+d+`.`+m,f=d}p+=h;var g=p+n+`?`+F(),_=(l&s)!==l;i.push({url:g,requestID:f,object:n,conn:`cold`,measurementType:l,report:_});var v=p+u+`?`+F();i.push({url:v,requestID:f,object:u,conn:`warm`,measurementType:l,report:!0})}return i}function N(e,t,n,r,i,a){for(var o=[],s=0;s<a.length;s++)if(a[s].report){var c=e[s],l=a[s].measurementType,u=P(c,l),d={};d.RequestID=a[s].requestID,d.Object=a[s].object,d.Conn=a[s].conn,d.Result=u,d.T=l,t[s]&&(d.Rip=t[s]),n[s]&&(d.Ep=n[s]),r[s]&&(d.Fe=r[s]),i[s]&&(d.Mn=i[s]),o.push(d)}return o}function P(e,t){if(e<=0)return e;if(t&s&&e>0){var n=y/(e/b);return Math.round(n)}return Math.round(e)}function F(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()}function I(){return!!(window.performance&&window.performance.getEntriesByName)}function L(e,t,n,r,i,a){for(var o=[],s=[],l=[],u=[],d=[],f=0;f<e.length;f++)o[f]=C,s[f]=null,l[f]=null,u[f]=null,d[f]=null;function p(t){e[t].conn===`cold`?(e[t+1].report=!1,_(t+2)):_(t+1)}function m(n){var r,i=new Image;i.onload=function(){o[n]=new Date().getTime()-a,r&&clearTimeout(r),_(n+1)},i.onerror=function(){r&&clearTimeout(r),p(n)},r=window.setTimeout(function(){i.onload=null,i.onerror=null,p(n)},t);var a=new Date().getTime();i.src=e[n].url}function h(n){try{var r=new XMLHttpRequest;r.open(x,e[n].url,!0),r.onload=function(){try{if(r.readyState===4)if(r.status===200){o[n]=new Date().getTime()-i;var e=r.getAllResponseHeaders();e&&e.split(`\r
`).forEach(function(e){var t=e.substring(0,e.indexOf(`:`)).toLowerCase(),r=e.substring(e.indexOf(`:`)+1).trim();t===T?s[n]=r:t===E?l[n]=r:t===D?u[n]=r:t===O&&(d[n]=r)}),_(n+1)}else o[n]=0-r.status,p(n);else p(n)}catch{}},r.onerror=function(){p(n)},r.ontimeout=function(){p(n)},r.timeout=t;var i=new Date().getTime();r.send()}catch{}}var g=function(){if(r!=null&&r.length!==0){if(I())for(var t=0;t<e.length;t++){var n=e[t].url,i=window.performance.getEntriesByName(n);o[t]>=0&&i&&i[0]&&(o[t]=i[0].duration)}for(var c=N(o,s,l,u,d,e),f=JSON.stringify(c),p=[],m=0;m<r.length;m++){var h=r[m]+f;p.push(h)}A(p,0,x,function(){try{a&&a(c)}catch{}})}};function _(t){try{t<e.length?e[t].measurementType&c?m(t):h(t):(g(),i?.())}catch{}}setTimeout(function(){_(0)},n)}return{start:k}})();t.Footprint=a,typeof window<`u`&&(window.Footprint=a)}));export default s();