1import{bu as L,bw as S,bx as A,aQ as b,aP as v,aw as N,by as F}from"./entry.D_dqNKaD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"1efaec818d93a34fc75e3041dd55939e084a0ab6"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cbf22a4c-b300-4a59-833f-c5e7206bdda5",e._sentryDebugIdIdentifier="sentry-dbid-cbf22a4c-b300-4a59-833f-c5e7206bdda5")}catch{}})();function C(e,t){const a=t/e*100;return 2/Math.PI*100*Math.atan(a/50)}function M(e={}){const{duration:t=2e3,throttle:a=200,hideDelay:s=500,resetDelay:u=400}=e,d=e.estimatedProgress||C,i=L(),n=v(0),r=v(!1),p=v(!1);let m=!1,h,y,_,I;const T=()=>{p.value=!1,x(0)};function x(o=0){if(!i.isHydrating){if(o>=100)return l();c(),n.value=o<0?0:o,a?y=setTimeout(()=>{r.value=!0,D()},a):(r.value=!0,D())}}function k(){_=setTimeout(()=>{r.value=!1,I=setTimeout(()=>{n.value=0},u)},s)}function l(o={}){n.value=100,m=!0,c(),w(),o.error&&(p.value=!0),o.force?(n.value=0,r.value=!1):k()}function w(){clearTimeout(_),clearTimeout(I)}function c(){clearTimeout(y),cancelAnimationFrame(h)}function D(){m=!1;let o;function f(g){if(m)return;o??(o=g);const E=g-o;n.value=Math.max(0,Math.min(100,d(t,E))),h=requestAnimationFrame(f)}h=requestAnimationFrame(f)}let P=()=>{};{const o=i.hook("page:loading:start",()=>{T()}),f=i.hook("page:loading:end",()=>{l()}),g=i.hook("vue:error",()=>l());P=()=>{g(),o(),f(),c()}}return{_cleanup:P,progress:b(()=>n.value),isLoading:b(()=>r.value),error:b(()=>p.value),start:T,set:x,finish:l,clear:c}}function q(e={}){const t=L(),a=t._loadingIndicator=t._loadingIndicator||M(e);return S()&&(t._loadingIndicatorDeps=t._loadingIndicatorDeps||0,t._loadingIndicatorDeps++,A(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(a._cleanup(),delete t._loadingIndicator)})),a}const $=N({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:a}){const{progress:s,isLoading:u,error:d,start:i,finish:n,clear:r}=q({duration:e.duration,throttle:e.throttle,estimatedProgress:e.estimatedProgress});return a({progress:s,isLoading:u,error:d,start:i,finish:n,clear:r}),()=>F("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:u.value?1:0,background:d.value?e.errorColor:e.color||void 0,backgroundSize:`${100/s.value*100}% auto`,transform:`scaleX(${s.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});export{$ as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.