PageSourceSearch

https://www.lora.ch/_nuxt/D2_5qku-.js

js lora.ch collected 2026-10-02 07:47:50 UTC 1,493 bytes, 2 lines download raw bytes

1import{a4 as P,I as b,J as H,U as p,a0 as h}from"./CEubYjDo.js";function S(r,t){const a=t/r*100;return 2/Math.PI*100*Math.atan(a/50)}function q(r={}){const{duration:t=2e3,throttle:a=200,hideDelay:k=500,resetDelay:x=400}=r,y=r.estimatedProgress||S,u=P(),i=h(0),s=h(!1),d=h(!1);let f=!1,g,v,T,I;const _=(e={})=>{m(),d.value=!1,D(0,e)};function D(e=0,o={}){if(u.isHydrating)return;if(e>=100)return l({force:o.force});c(),i.value=e<0?0:e;const n=o.force?0:a;n?v=setTimeout(()=>{s.value=!0,A()},n):(s.value=!0,A())}function F(){T=setTimeout(()=>{s.value=!1,I=setTimeout(()=>{i.value=0},x)},k)}function l(e={}){i.value=100,f=!0,c(),m(),e.error&&(d.value=!0),e.force?(i.value=0,s.value=!1):F()}function m(){clearTimeout(T),clearTimeout(I)}function c(){clearTimeout(v),cancelAnimationFrame(g)}function A(){f=!1;let e;function o(n){if(f)return;e??=n;const M=n-e;i.value=Math.max(0,Math.min(100,y(t,M))),g=requestAnimationFrame(o)}g=requestAnimationFrame(o)}let L=()=>{};{const e=u.hook("page:loading:start",()=>{_()}),o=u.hook("page:loading:end",()=>{l()}),n=u.hook("vue:error",()=>l({error:!0}));L=()=>{n(),e(),o(),c(),m()}}return{_cleanup:L,progress:p(i),isLoading:p(s),error:p(d),start:_,set:D,finish:l,clear:c}}function E(r={}){const t=P(),a=t._loadingIndicator||=q(r);return b()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,H(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(a._cleanup(),delete t._loadingIndicator)})),a}export{E as u};
2//# sourceMappingURL=D2_5qku-.js.map

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.