PageSourceSearch

https://joyco.studio/_next/static/immutable/chunks/0eumgup6ur682.js

js joyco.studio collected 2026-10-05 07:00:00 UTC 18,774 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2885,e=>{"use strict";let t,i,s;var r=e.i(36322),n=e.i(75937);e.i(17739);var o=Object.create,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=((e,t,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))u.call(e,s)||void 0===s||l(e,s,{get:()=>t[s],enumerable:!(i=h(t,s))||i.enumerable});return e})(l(null!=(s=(t={"node_modules/.pnpm/[email protected]/node_modules/tiny-emitter/index.js"(e,t){function i(){}i.prototype={on:function(e,t,i){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var s=this;function r(){s.off(e,r),t.apply(i,arguments)}return r._=t,this.on(e,r,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),s=0,r=i.length;s<r;s++)i[s].fn.apply(i[s].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),s=i[e],r=[];if(s&&t)for(var n=0,o=s.length;n<o;n++)s[n].fn!==t&&s[n].fn._!==t&&r.push(s[n]);return r.length?i[e]=r:delete i[e],this}},t.exports=i,t.exports.TinyEmitter=i}},function(){return i||(0,t[a(t)[0]])((i={exports:{}}).exports,i),i.exports})())?o(c(s)):{},"default",{value:s,enumerable:!0}),s),p=class{constructor(){this.emitter=new d.TinyEmitter}on(e,t){return this.emitter.on(e,t),()=>this.off(e,t)}once(e,t){this.emitter.once(e,t)}off(e,t){this.emitter.off(e,t)}emit(e,t){this.emitter.emit(e,t)}},f=()=>new DOMException("Measurement canceled","AbortError"),g="scroll",b="viewportResize",v=(e,t)=>e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height,m=()=>"u">typeof window?{scrollX:window.scrollX,scrollY:window.scrollY}:{scrollX:0,scrollY:0},w=e=>{if(!("u">typeof window))return()=>{};let t=()=>e({scrollX:window.scrollX,scrollY:window.scrollY});return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},S=class extends p{constructor(e){super(),this.cache=new Map,this.observers=new Map,this.resizeObserver=null,this.viewportHost=null,this.viewportProbes=new Map,this.subscriptions=new Map,this.progressDisposers=new Set,this.pendingInitial=new Set,this.pending=new Map,this.requests=new Set,this.lastNotified=new Map,this.frameId=null,this.flushing=!1,this.generation=0,this.scrollState={scrollX:0,scrollY:0},this._handleResize=null,this.scrollUnsubscribe=null,this._debugState=null,this.cache=new Map,this.autoUpdate=e?.autoUpdate??!0,this._scrollGetter=e?.scrollGetter??m,this._scrollListener=e?.scrollListener??w,this._debugOption=e?.debug??!1,this._debugState=e?.debug?{getBoundingClientRectCalls:0,cacheHits:0,cacheMisses:0,updateCount:0,refreshCount:0,resizeObserverFires:0,intervalId:null}:null}computeWindowBounds(){return{x:0,y:0,top:0,right:window.innerWidth,bottom:window.innerHeight,left:0,width:window.innerWidth,height:window.innerHeight}}computeDocBounds(e,t){this._debugState&&this._debugState.getBoundingClientRectCalls++;let i=e.getBoundingClientRect();return{x:i.x+t.scrollX,y:i.y+t.scrollY,top:i.top+t.scrollY,right:i.right+t.scrollX,bottom:i.bottom+t.
1scrollY,left:i.left+t.scrollX,width:i.width,height:i.height}}get windowSize(){return this.readCache(window)}get viewport(){return this.viewportSnapshot}attachViewportProbes(){if(this.viewportHost)return;let e=["svh","lvh","dvh"].filter(e=>window.CSS?.supports("height",`100${e}`));if(!e.length)return;let t=document.createElement("div");t.setAttribute("aria-hidden","true"),t.style.cssText="all: initial !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 0 !important; height: 0 !important; display: block !important; overflow: hidden !important; visibility: hidden !important; pointer-events: none !important; contain: strict !important;";let i=t.attachShadow({mode:"closed"});for(let t of e){let e=document.createElement("div");e.style.cssText=`all: initial; position: absolute; top: 0; left: 0; display: block; width: 1px; height: 100${t};`,i.append(e),this.viewportProbes.set(e,t),this.resizeObserver?.observe(e)}document.documentElement.append(t),this.viewportHost=t}readViewport(e){let t={svh:void 0,lvh:void 0,dvh:void 0};for(let[e,i]of this.viewportProbes)this._debugState&&this._debugState.getBoundingClientRectCalls++,t[i]=e.getBoundingClientRect().height;let i={width:e.width,height:e.height,...t},s=this.viewportSnapshot;s&&s.width===i.width&&s.height===i.height&&s.svh===i.svh&&s.lvh===i.lvh&&s.dvh===i.dvh||(this.viewportSnapshot=i)}readCache(e){let t=this.cache.get(e);return this._debugState&&(t?this._debugState.cacheHits++:this._debugState.cacheMisses++),t}inSpace(e,t,i=this.scrollState){return t?.space==="viewport"?this.toViewportBounds(e,i):e}captureScroll(){return this.scrollState=this._scrollGetter(),{...this.scrollState}}measure(e,t){return Array.isArray(e)?Promise.all(e.map(e=>this.enqueueRequest(e,t))):this.enqueueRequest(e,t)}measureSync(e,t){let i=Array.isArray(e)?e:[e],s=this.captureScroll(),r=this.readBatch(i,s),n=i.map(e=>{let i=r.get(e);return e instanceof Window?i:this.inSpace(i,t,s)});return Array.isArray(e)?n:n[0]}track(e,t,i){let s=this.subscriptions.get(e);s||(s=new Set,this.subscriptions.set(e,s),this.cache.delete(e),this.lastNotified.delete(e),this.pendingInitial.add(e),this.resizeObserver?.observe(e));let r={listener:t,space:i?.space??"document",controller:new AbortController};s.add(r),this.pendingInitial.has(e)||queueMicrotask(()=>{if(r.controller.signal.aborted||r.lastDelivered)return;let t=this.cache.get(e);t&&this.deliver(r,t,this.scrollState)});let n=()=>{if(r.controller.signal.aborted)return;let t=this.readCache(e);return t&&this.inSpace(t,r)};return{get bounds(){return n()},refresh:()=>(this._debugState&&this._debugState.refreshCount++,this.enqueueRequest(e,{space:r.space,signal:r.controller.signal},!0)),dispose:()=>{if(r.controller.signal.aborted||(r.controller.abort(),s.delete(r),s.size||this.subscriptions.get(e)!==s))return;this.resizeObserver?.unobserve(e),this.subscriptions.delete(e),this.pendingInitial.delete(e),this.cache.delete(e),this.lastNotified.delete(e);let t=this.pending.get(e);t&&(t.automatic=!1,t.requests.size||this.pending.delete(e)),this.cancelIdleFrame()}}}progress(e,t={}){let i,s,r,{mode:n="lvh",onProgress:o}=t,l=0,h=!1,a=(e=!1,t=!0)=>{if(h)return;let a=c.bounds,u=this.viewport?.[n],{scrollY:d}=this.scrollState;!a||void 0===u||u+a.height<=0||(l=Math.max(0,Math.min(1,(u-(a.y-d))/(u+a.height))),!t||(e||a!==i||u!==s||d!==r)&&(i=a,s=u,r=d,o?.(l)))},c=this.track(e,()=>a());a(!1,!1);let u=this.on(g,()=>a(!0)),d=this.on(b,()=>a()),p=()=>{h||(h=!0,u(),d(),c.dispose(),this.progressDisposers.delete(p))};return this.progressDisposers.add(p),{get current(){return l},dispose:p}}enqueue(e){let t=this.pending.get(e);return t||(t={automatic:!1,requests:new Set},this.pending.set(e,t)),t}enqueueRequest(e,t,i=!1){let s=t?.signal;return s?.aborted?Promise.reject(s.reason??f()):new Promise((r,n)=>{let o=this.enqueue(e),l=()=>{this.requests.delete(h),o.requests.delete(h),s?.removeEventListener("abort",a),o.automatic||o.requests.size||this.pending.get(e)!==o||(this.pending.delete(e),this.cancelIdleFrame())},h={forceNotify:i,resolve:(i,s)=>{l(),r(e instanceof Window?i:this.inSpace(i,t,s))},reject:e=>{l(),n(e)}},a=()=>h.reject(s?.reason??f());this.requests.add(h),o.requests.add(h),s?.addEventListener("abort",a,{once:!0}),this.scheduleUpdate()})}scheduleUpdate(){this.autoUpdate&&null===this.frameId&&this.pending.size&&!this.flushing&&(this.frameId=requestAnimationFrame(()=>{this.frameId=null,this.update()}))}cancelIdleFrame(){this.pending.size||null===this.frameId||(cancelAnimationFrame(this.frameId),this.frameId=null)}update(){if(this.flushing)return;this.pending.size&&this._debugState&&this._debugState.updateCount++,null!==this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=null;let e=this.pending;this.pending=new Map,this.flush(e)}readBatch(e,t){let i=new Map;for(let s of new Set(e)){let e=s instanceof Window?this.computeWindowBounds():this.computeDocBounds(s,t),r=this.cache.get(s),n=r&&v(r,e)?r:e;this.cache.set(s,n),s instanceof Window&&this.readViewport(n),i.set(s,n)}return i}deliver(e,t,i){e.lastDelivered=t,e.listener?.(this.inSpace(t,e,i))}flush(e){if(!e.size)return;this.flushing=!0;let t=this.generation,i=this.captureScroll();try{let s=this.readBatch(e.keys(),i),r=[...e].map(([e,t])=>{let i=s.get(e);e instanceof Window||this.pendingInitial.delete(e);let r=this.lastNotified.get(e),n=[...t.requests].some(e=>e.forceNotify),o=!r||!v(r,i),l=e instanceof Window?void 0:this.subscriptions.get(e);return{target:e,pending:t,bounds:i,force:n,changed:o,owners:l,subscriptions:[...l??[]]}}),n=[],o=this.viewportSnapshot;if(e.has(window)&&o&&o!==this.lastNotifiedViewport){this.lastNotifiedViewport=o;
1try{this.emit(b,o)}catch(e){n.push(e)}}for(let e of r){if(t!==this.generation)break;let{target:s,pending:r,bounds:o,force:l,changed:h,owners:a,subscriptions:c}=e;for(let e of c)if(!e.controller.signal.aborted&&!(!l&&e.lastDelivered&&v(e.lastDelivered,o)))try{this.deliver(e,o,i)}catch(e){n.push(e)}if(t!==this.generation)break;if((h||l)&&(s instanceof Window||this.subscriptions.get(s)===a)){this.lastNotified.set(s,o);try{this.emit("refresh",{target:s,rect:s instanceof Window?o:this.inSpace(o,{space:"viewport"},i),metri:this})}catch(e){n.push(e)}}for(let e of[...r.requests])this.requests.has(e)&&e.resolve(o,i)}if(n.length)throw n[0]}catch(t){for(let i of e.values())for(let e of[...i.requests])e.reject(t);throw t}finally{this.flushing=!1,this.scheduleUpdate()}}debugSnapshot(){if(!this._debugState)return null;let e=this._debugState;return{getBoundingClientRectCalls:e.getBoundingClientRectCalls,cacheHits:e.cacheHits,cacheMisses:e.cacheMisses,trackedElementCount:this.subscriptions.size,updateCount:e.updateCount,refreshCount:e.refreshCount,resizeObserverFires:e.resizeObserverFires,intersectionObserverCount:this.observers.size,cacheSize:this.cache.size}}resetDebugCounters(){this._debugState&&(this._debugState.getBoundingClientRectCalls=0,this._debugState.cacheHits=0,this._debugState.cacheMisses=0,this._debugState.updateCount=0,this._debugState.refreshCount=0,this._debugState.resizeObserverFires=0)}debugReset(){this.resetDebugCounters()}initialize(){this.attachResizeObserver(),this.attachViewportProbes(),this.attachResizeListener(),this.attachScrollListener(),this.enqueue(window).automatic=!0,this.scheduleUpdate(),this._debugState&&"object"==typeof this._debugOption&&this._debugOption.interval>0&&"u">typeof window&&(this._debugState.intervalId&&clearInterval(this._debugState.intervalId),this._debugState.intervalId=setInterval(()=>{console.table(this.debugSnapshot()),this.resetDebugCounters()},this._debugOption.interval))}getConfigKey(e){let{root:t,rootMargin:i,threshold:s}=e;return JSON.stringify({root:t||null,rootMargin:i||"0px",threshold:s||0})}getIntersectionObserver(e,t){let i=this.getConfigKey(e);if(this.observers.has(i))return this.observers.get(i);let s=new IntersectionObserver(t,e);return this.observers.set(i,s),s}observe(e,t){let i=this.getIntersectionObserver(t,e=>{e.forEach(e=>{this.emit("observe",{target:e.target,visible:e.isIntersecting,entry:e,metri:this})})});return i.observe(e),i}unobserve(e){this.observers.forEach(t=>t.unobserve(e))}disposeIntersectionObserver(e){let t=this.getConfigKey(e),i=this.observers.get(t);i&&(i.disconnect(),this.observers.delete(t))}disposeIntersectionObservers(){this.observers.forEach(e=>e.disconnect()),this.observers.clear()}attachResizeObserver(){if(this.resizeObserver)return;let e=new ResizeObserver(t=>{if(this.resizeObserver!==e)return;this._debugState&&(this._debugState.resizeObserverFires+=t.length);let i=new Map;for(let{target:e}of t){let t=this.viewportProbes.get(e);if(t){this.viewportSnapshot?.[t]===void 0?i.has(window)||(i.set(window,this.pending.get(window)??{automatic:!0,requests:new Set}),this.pending.delete(window)):this.enqueue(window).automatic=!0;continue}if(this.subscriptions.has(e))if(this.pendingInitial.has(e)){if(i.has(e))continue;i.set(e,this.pending.get(e)??{automatic:!0,requests:new Set}),this.pending.delete(e)}else this.enqueue(e).automatic=!0}this.cancelIdleFrame(),this.flush(i),this.scheduleUpdate()});for(let t of(this.resizeObserver=e,this.subscriptions.keys()))e.observe(t)}attachResizeListener(){this._handleResize||(this._handleResize=()=>{for(let e of(this.enqueue(window).automatic=!0,this.subscriptions.keys()))this.pendingInitial.has(e)||(this.enqueue(e).automatic=!0);for(let e of this.cache.keys())e instanceof Window||this.subscriptions.has(e)||(this.cache.delete(e),this.lastNotified.delete(e));this.scheduleUpdate()},window.addEventListener("resize",this._handleResize))}detachResizeListener(){this._handleResize&&(window.removeEventListener("resize",this._handleResize),this._handleResize=null)}attachScrollListener(){this.scrollUnsubscribe||(this.scrollState=this._scrollGetter(),this.scrollUnsubscribe=this._scrollListener(e=>
1{this.scrollState=e,this.emit(g,e)}))}setScrollHandlers(e,t){this.detachScrollListener(),this._scrollGetter=e,this._scrollListener=t,this.attachScrollListener()}detachScrollListener(){this.scrollUnsubscribe?.(),this.scrollUnsubscribe=null}toViewportBounds(e,t=this.scrollState){let{scrollX:i,scrollY:s}=t;return{x:e.x-i,y:e.y-s,top:e.top-s,right:e.right-i,bottom:e.bottom-s,left:e.left-i,width:e.width,height:e.height}}get scroll(){return this.scrollState}disposeAll(){for(let e of(this.generation++,this.progressDisposers))e();for(let e of(null!==this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=null,this.resizeObserver?.disconnect(),this.resizeObserver=null,this.viewportHost?.remove(),this.viewportHost=null,this.viewportProbes.clear(),this.viewportSnapshot=void 0,this.lastNotifiedViewport=void 0,this.subscriptions.values()))for(let t of e)t.controller.abort();for(let e of[...this.requests])e.reject(f());this.subscriptions.clear(),this.pending.clear(),this.pendingInitial.clear(),this.lastNotified.clear(),this._debugState?.intervalId&&(clearInterval(this._debugState.intervalId),this._debugState.intervalId=null),this.disposeIntersectionObservers(),this.detachResizeListener(),this.detachScrollListener(),this.cache.clear()}},y=(0,r.createContext)(null),_=()=>{let e=(0,r.useContext)(y);if(!e)throw Error("useMetri must be used within a MetriProvider");return e};e.s(["MetriProvider",0,e=>{let t="metri"in e,i=(0,r.useMemo)(()=>t?null:new S(e),[]),s=t?e.metri:i;(0,r.useLayoutEffect)(()=>{if(i)return i.initialize(),()=>i.disposeAll()},[i]);let o=(0,r.useMemo)(()=>({metri:s}),[s]);return(0,n.jsx)(y.Provider,{value:o,children:e.children})},"useBounds",0,(e,t)=>{let i=t?.space??"document",[s,n]=(0,r.useState)(void 0),o=(0,r.useRef)(null),{metri:l}=_();return(0,r.useEffect)(()=>{let t=e.current,s=o.current;if(s?.element===t&&s?.metri===l&&s?.space===i)return;if(s?.dispose(),o.current=null,!t)return void n(void 0);let r=l.track(t,n,{space:i});n(r.bounds);let h="viewport"===i?l.on(g,()=>n(r.bounds)):void 0;o.current={element:t,metri:l,space:i,tracking:r,dispose:()=>{h?.(),r.dispose()}}}),(0,r.useEffect)(()=>()=>{o.current?.dispose(),o.current=null},[]),{bounds:s,getBounds:(0,r.useCallback)(()=>o.current?.tracking.bounds,[]),refresh:(0,r.useCallback)(()=>o.current?.tracking.refresh()??Promise.resolve(void 0),[])}},"useMetri",0,_,"useObserve",0,(e,t)=>{let{metri:i}=_(),[s,n]=(0,r.useState)(!1),o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!e.current)return;let s=e.current,r=i.observe(s,t??{}),l=({target:e,visible:t})=>{e===s&&n(t)};return i.on("observe",l),o.current=r,()=>{i.off("observe",l),r.unobserve(s)}},[e]),{visible:s,observer:o.current}}])},17739,66100,e=>{"use strict";var t=e.i(36322),i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let i=!1,s=e.map(e=>{let s=r(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){let i=s[t];"function"==typeof i?i():r(e[t],null)}}}}function o(...e){return t.useCallback(n(...e),e)}s(r,"setRef"),s(n,"composeRefs"),s(o,"useComposedRefs"),e.s(["useComposedRefs",0,o],66100);var l=Object.defineProperty,h=(e,t)=>l(e,"name",{value:t,configurable:!0});function a(e){let i=t.forwardRef((i,s)=>{let{children:r,...n}=i,l=null,h=!1,a=[];v(r)&&"function"==typeof y&&(r=y(r._payload)),t.Children.forEach(r,e=>{if(g(e)){h=!0;let t="child"in e.props?e.props.child:e.props.children;v(t)&&"function"==typeof y&&(t=y(t._payload)),l=d(e,t),a.push(l?.props?.children)}else a.push(e)}),l?l=t.cloneElement(l,void 0,a):!h&&1===t.Children.count(r)&&t.isValidElement(r)&&(l=r);let c=l?f(l):void 0,u=o(s,c);if(!l){if(r||0===r)throw Error(h?S(e):w(e));return r}let b=p(n,l.props??{});return l.type!==t.Fragment&&(b.ref=s?u:c),t.cloneElement(l,b)});return i.displayName=`${e}.Slot`,i}h(a,"createSlot");var c=a("Slot"),u=Symbol.for("radix.slottable");h(function(e){let t=h(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=u,t},"createSlottable");var d=h((e,i)=>{if("child"in e.props){let i=e.props.child;return t.isValidElement(i)?t.cloneElement(i,void 0,e.props.children(i.props.children)):null}return t.isValidElement(i)?i:null},"getSlottableElementFromSlottable");function p(e,t){let i={...t};
1for(let s in t){let r=e[s],n=t[s];/^on[A-Z]/.test(s)?r&&n?i[s]=(...e)=>{let t=n(...e);return r(...e),t}:r&&(i[s]=r):"style"===s?i[s]={...r,...n}:"className"===s&&(i[s]=[r,n].filter(Boolean).join(" "))}return{...e,...i}}function f(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(i=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function g(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}h(p,"mergeProps"),h(f,"getElementRef"),h(g,"isSlottable");var b=Symbol.for("react.lazy");function v(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===b&&"_payload"in e&&m(e._payload)}function m(e){return"object"==typeof e&&null!==e&&"then"in e}h(v,"isLazyComponent"),h(m,"isPromiseLike");var w=h(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),S=h(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),y=t[" use ".trim().toString()];e.s(["Slot",0,c,"createSlot",0,a],17739)},22608,e=>{"use strict";var t=e.i(75937),i=e.i(2885);e.s(["MetriProvider",0,function({children:e}){return(0,t.jsx)(i.MetriProvider,{children:e})}])}]);

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.