build(bundled): update bundled artifacts

This commit is contained in:
Sped0n
2023-11-02 10:55:45 +08:00
parent aa74822945
commit 229c556949
7 changed files with 32 additions and 23 deletions

File diff suppressed because one or more lines are too long

1
static/bundled/css/style.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{g as t,P as e}from"./HzPj1-.js";import{W as n,c as a,s,i,a as o,d as g}from"./main.js";let r=[],c={x:0,y:0};const d=new n([]),l=new n(!1),h=new n(!1),m=new n(!1);function u(){return d.get().map((t=>r[t.i]))}function f(){const t=u().slice(-s.get().trailLength);return t.slice(0,t.length-1)}function y(){const t=u();return t[t.length-1]}function I(){const t=s.get(),e=[];for(let n=0;n<5;n++)e.push(r[i(t.index+n,t.length)]);return e}function p(){const t=s.get();return r[i(t.index,t.length)]}function w(){const t=s.get();return r[g(t.index,t.length)]}function x(t){if(l.get()||h.get())return;const e={x:t.clientX,y:t.clientY};if(Math.hypot(e.x-c.x,e.y-c.y)>s.get().threshold){c=e,o();const t={i:s.get().index,...e};d.set([...d.get(),t].slice(-s.get().length))}}function W(){if(h.get())return;l.set(!0),h.set(!0),U([y(),p(),w()]);const n=t.timeline();n.to(f(),{y:"+=20",ease:e.easeIn,stagger:.075,duration:.3,delay:.1,opacity:0}),n.to(y(),{x:0,y:0,ease:e.easeInOut,duration:.7,delay:.3}),n.to(y(),{delay:.1,scale:1,ease:e.easeInOut}),n.then((()=>{h.set(!1)}))}function E(){if(h.get())return;l.set(!1),h.set(!0),v([y()]),v(f());const n=t.timeline();n.to(y(),{scale:.6,duration:.6,ease:e.easeInOut}),n.to(y(),{delay:.3,duration:.7,ease:e.easeInOut,x:d.get()[d.get().length-1].x-window.innerWidth/2,y:d.get()[d.get().length-1].y-window.innerHeight/2}),n.to(f(),{y:"-=20",ease:e.easeOut,stagger:-.1,duration:.3,opacity:1}),n.then((()=>{h.set(!1)}))}function H(e){!function(t){const e=document.createElement("div");e.className="stage";for(const n of t){const t=document.createElement("img");t.height=n.loImgH,t.width=n.loImgW,t.dataset.hiUrl=n.hiUrl,t.dataset.hiImgH=n.hiImgH.toString(),t.dataset.hiImgW=n.hiImgW.toString(),t.dataset.loUrl=n.loUrl,t.dataset.loImgH=n.loImgH.toString(),t.dataset.loImgW=n.loImgW.toString(),t.alt="image",e.append(t)}a.append(e)}(e);const n=document.getElementsByClassName("stage").item(0);r=Array.from(n.getElementsByTagName("img")),n.addEventListener("click",(()=>{W()})),n.addEventListener("keydown",(()=>{W()})),window.addEventListener("mousemove",x),l.addWatcher((()=>{m.set(l.get()&&!h.get())})),h.addWatcher((()=>{m.set(l.get()&&!h.get())})),d.addWatcher((()=>{!function(){const e=u();0!==e.length&&(v(I()),t.set(e,{x:t=>d.get()[t].x-window.innerWidth/2,y:t=>d.get()[t].y-window.innerHeight/2,opacity:t=>t+1+s.get().trailLength<=d.get().length?0:1,zIndex:t=>t,scale:.6}),l.get()&&(v(u()),U([y()]),t.set(r,{opacity:0}),t.set(y(),{opacity:1,x:0,y:0,scale:1})))}()})),v(I())}function U(t){t.forEach((t=>{t.src=t.dataset.hiUrl,t.height=parseInt(t.dataset.hiImgH),t.width=parseInt(t.dataset.hiImgW)}))}function v(t){t.forEach((t=>{t.src=t.dataset.loUrl,t.height=parseInt(t.dataset.loImgH),t.width=parseInt(t.dataset.loImgW)}))}export{m as active,d as cordHist,H as initStage,h as isAnimating,l as isOpen,E as minimizeImage};
import{g as t,P as e}from"./cVJHck.js";import{W as n,c as a,s,i,a as o,d as g}from"./main.js";let r=[],c={x:0,y:0};const d=new n([]),l=new n(!1),h=new n(!1),m=new n(!1);function u(){return d.get().map((t=>r[t.i]))}function f(){const t=u().slice(-s.get().trailLength);return t.slice(0,t.length-1)}function y(){const t=u();return t[t.length-1]}function I(){const t=s.get(),e=[];for(let n=0;n<5;n++)e.push(r[i(t.index+n,t.length)]);return e}function p(){const t=s.get();return r[i(t.index,t.length)]}function w(){const t=s.get();return r[g(t.index,t.length)]}function x(t){if(l.get()||h.get())return;const e={x:t.clientX,y:t.clientY};if(Math.hypot(e.x-c.x,e.y-c.y)>s.get().threshold){c=e,o();const t={i:s.get().index,...e};d.set([...d.get(),t].slice(-s.get().length))}}function W(){if(h.get())return;l.set(!0),h.set(!0),v([y(),p(),w()]);const n=t.timeline();n.to(f(),{y:"+=20",ease:e.easeIn,stagger:.075,duration:.3,delay:.1,opacity:0}),n.to(y(),{x:0,y:0,ease:e.easeInOut,duration:.7,delay:.3}),n.to(y(),{delay:.1,scale:1,ease:e.easeInOut}),n.then((()=>{h.set(!1)}))}function E(){if(h.get())return;l.set(!1),h.set(!0),U([y()]),U(f());const n=t.timeline();n.to(y(),{scale:.6,duration:.6,ease:e.easeInOut}),n.to(y(),{delay:.3,duration:.7,ease:e.easeInOut,x:d.get()[d.get().length-1].x-window.innerWidth/2,y:d.get()[d.get().length-1].y-window.innerHeight/2}),n.to(f(),{y:"-=20",ease:e.easeOut,stagger:-.1,duration:.3,opacity:1}),n.then((()=>{h.set(!1)}))}function H(e){!function(t){const e=document.createElement("div");e.className="stage";for(const n of t){const t=document.createElement("img");t.height=n.loImgH,t.width=n.loImgW,t.dataset.hiUrl=n.hiUrl,t.dataset.hiImgH=n.hiImgH.toString(),t.dataset.hiImgW=n.hiImgW.toString(),t.dataset.loUrl=n.loUrl,t.dataset.loImgH=n.loImgH.toString(),t.dataset.loImgW=n.loImgW.toString(),t.alt="image",e.append(t)}a.append(e)}(e);const n=document.getElementsByClassName("stage").item(0);r=Array.from(n.getElementsByTagName("img")),n.addEventListener("click",(()=>{W()})),n.addEventListener("keydown",(()=>{W()})),window.addEventListener("mousemove",x,{passive:!0}),l.addWatcher((()=>{m.set(l.get()&&!h.get())})),h.addWatcher((()=>{m.set(l.get()&&!h.get())})),d.addWatcher((()=>{!function(){const e=u();0!==e.length&&(U(I()),t.set(e,{x:t=>d.get()[t].x-window.innerWidth/2,y:t=>d.get()[t].y-window.innerHeight/2,opacity:t=>t+1+s.get().trailLength<=d.get().length?0:1,zIndex:t=>t,scale:.6}),l.get()&&(U(u()),v([y()]),t.set(r,{opacity:0}),t.set(y(),{opacity:1,x:0,y:0,scale:1})))}()})),U(I())}function v(t){t.forEach((t=>{t.src=t.dataset.hiUrl,t.height=parseInt(t.dataset.hiImgH),t.width=parseInt(t.dataset.hiImgW)}))}function U(t){t.forEach((t=>{t.src=t.dataset.loUrl,t.height=parseInt(t.dataset.loImgH),t.width=parseInt(t.dataset.loImgW)}))}export{m as active,d as cordHist,H as initStage,h as isAnimating,l as isOpen,E as minimizeImage};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
function t(t,e){return(t+1)%e}function e(t,e){return(t+e-1)%e}function n(t){return("0000"+t.toString()).slice(-4)}function s(t,e){return Math.floor(Math.random()*(e-t+1))+t}function r(t,e){new IntersectionObserver(((n,s)=>{n.forEach((n=>{n.intersectionRatio>0&&(e(t),s.disconnect())}))})).observe(t)}class i{constructor(t){this.obj=t,this.watchers=[]}get(){return this.obj}set(t){this.obj=t,this.watchers.forEach((t=>{t()}))}addWatcher(t){this.watchers.push(t)}}const o=new i(!0);let a;const c=[{threshold:20,trailLength:20},{threshold:40,trailLength:10},{threshold:80,trailLength:5},{threshold:140,trailLength:5},{threshold:200,trailLength:5}],l=new i({index:-1,length:0,threshold:c[2].threshold,trailLength:c[2].trailLength});function h(t){const e=l.get();e.index=t,l.set(e)}function d(){const e=l.get();e.index=t(e.index,e.length),l.set(e)}function m(t,e){const n=c.findIndex((e=>t.threshold===e.threshold))+e;if(n<0||n>=c.length)return t;const s=c[n];return{...t,...s}}const g=document.getElementsByClassName("threshold").item(0),u=Array.from(g.getElementsByClassName("num")),f=g.getElementsByClassName("dec").item(0),E=g.getElementsByClassName("inc").item(0),x=document.getElementsByClassName("index").item(0),y=Array.from(x.getElementsByClassName("num")),L=document.getElementsByClassName("links").item(0),B=Array.from(L.getElementsByClassName("link")),b=document.getElementById("main")?.getAttribute("currentMenuItemIndex");for(const[t,e]of B.entries())t===parseInt(b)&&(e.classList.add("current"),0!==t&&(document.title=e.innerText+" | "+document.title));function w(){const t=n(l.get().threshold);u.forEach(((e,n)=>{e.innerText=t[n]}))}function C(){const t=n(l.get().index+1),e=n(l.get().length);y.forEach(((n,s)=>{n.innerText=s<4?t[s]:e[s-4]}))}a=document.getElementsByClassName("container").item(0),o.addWatcher((()=>{o.get()?a.classList.remove("disableScroll"):a.classList.add("disableScroll")}));const N=function(){const t=document.getElementById("imagesSource");return null===t?[]:JSON.parse(t.textContent).sort(((t,e)=>t.index<e.index?-1:1))}();(function(t){const e=l.get();e.length=t,l.set(e),l.addWatcher((()=>{C(),w()}))})(N.length),w(),C(),f.addEventListener("click",(()=>{!function(){let t=l.get();t=m(t,-1),l.set(t)}()})),E.addEventListener("click",(()=>{!function(){let t=l.get();t=m(t,1),l.set(t)}()})),N.length>0&&(window.matchMedia("(hover: none)").matches?(await import("./IdO1GK.js")).initMobile(N):(await import("./J5O_Vj.js")).initStage(N));export{i as W,d as a,o as b,a as c,e as d,h as e,n as f,s as g,t as i,r as o,l as s};
function t(t,e){return(t+1)%e}function e(t,e){return(t+e-1)%e}function n(t){return("0000"+t.toString()).slice(-4)}function s(t,e){return Math.floor(Math.random()*(e-t+1))+t}function r(t,e){new IntersectionObserver(((n,s)=>{n.forEach((n=>{n.intersectionRatio>0&&(e(t),s.disconnect())}))})).observe(t)}class i{constructor(t){this.obj=t,this.watchers=[]}get(){return this.obj}set(t){this.obj=t,this.watchers.forEach((t=>{t()}))}addWatcher(t){this.watchers.push(t)}}const o=new i(!0);let a;const c=[{threshold:20,trailLength:20},{threshold:40,trailLength:10},{threshold:80,trailLength:5},{threshold:140,trailLength:5},{threshold:200,trailLength:5}],l=new i({index:-1,length:0,threshold:c[2].threshold,trailLength:c[2].trailLength});function h(t){const e=l.get();e.index=t,l.set(e)}function d(){const e=l.get();e.index=t(e.index,e.length),l.set(e)}function m(t,e){const n=c.findIndex((e=>t.threshold===e.threshold))+e;if(n<0||n>=c.length)return t;const s=c[n];return{...t,...s}}const g=document.getElementsByClassName("threshold").item(0),u=Array.from(g.getElementsByClassName("num")),f=g.getElementsByClassName("dec").item(0),E=g.getElementsByClassName("inc").item(0),x=document.getElementsByClassName("index").item(0),y=Array.from(x.getElementsByClassName("num")),L=document.getElementsByClassName("links").item(0),B=Array.from(L.getElementsByClassName("link")),b=document.getElementById("main")?.getAttribute("currentMenuItemIndex");for(const[t,e]of B.entries())t===parseInt(b)&&(e.classList.add("current"),0!==t&&(document.title=e.innerText+" | "+document.title));function w(){const t=n(l.get().threshold);u.forEach(((e,n)=>{e.innerText=t[n]}))}function C(){const t=n(l.get().index+1),e=n(l.get().length);y.forEach(((n,s)=>{n.innerText=s<4?t[s]:e[s-4]}))}a=document.getElementsByClassName("container").item(0),o.addWatcher((()=>{o.get()?a.classList.remove("disableScroll"):a.classList.add("disableScroll")}));const N=function(){const t=document.getElementById("imagesSource");return null===t?[]:JSON.parse(t.textContent).sort(((t,e)=>t.index<e.index?-1:1))}();(function(t){const e=l.get();e.length=t,l.set(e),l.addWatcher((()=>{C(),w()}))})(N.length),w(),C(),f.addEventListener("click",(()=>{!function(){let t=l.get();t=m(t,-1),l.set(t)}()}),{passive:!0}),E.addEventListener("click",(()=>{!function(){let t=l.get();t=m(t,1),l.set(t)}()}),{passive:!0}),N.length>0&&(window.matchMedia("(hover: none)").matches?(await import("./AKxhiG.js")).initMobile(N):(await import("./4ZVXLc.js")).initStage(N));export{i as W,d as a,o as b,a as c,e as d,h as e,n as f,s as g,t as i,r as o,l as s};

File diff suppressed because one or more lines are too long