PageSourceSearch

https://kail.studio/assets/index-Bazk-lgN.js

js kail.studio collected 2026-10-06 13:36:46 UTC 446,882 bytes, 117 lines download raw bytes

vendor: 5,483 bytes, lines 1-9
1var Gy=Object.defineProperty;var Ky=(e,t,n)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>Ky(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function Yy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rh={exports:{}},So={},Dh={exports:{}},W={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var _r=Symbol.for("react.element"),Xy=Symbol.for("react.portal"),Qy=Symbol.for("react.fragment"),qy=Symbol.for("react.strict_mode"),Zy=Symbol.for("react.profiler"),Jy=Symbol.for("react.provider"),ev=Symbol.for("react.context"),tv=Symbol.for("react.forward_ref"),nv=Symbol.for("react.suspense"),sv=Symbol.for("react.memo"),rv=Symbol.for("react.lazy"),Iu=Symbol.iterator;function iv(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var Ih={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vh=Object.assign,_h={};function Ss(e,t,n){this.props=e,this.context=t,this.refs=_h,this.updater=n||Ih}Ss.prototype.isReactComponent={};Ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Oh(){}Oh.prototype=Ss.prototype;function sc(e,t,n){this.props=e,this.context=t,this.refs=_h,this.updater=n||Ih}var rc=sc.prototype=new Oh;rc.constructor=sc;Vh(rc,Ss.prototype);rc.isPureReactComponent=!0;var Vu=Array.isArray,Fh=Object.prototype.hasOwnProperty,ic={current:null},Bh={key:!0,ref:!0,__self:!0,__source:!0};function zh(e,t,n){var s,r={},i=null,o=null;if(t!=null)for(s in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Fh.call(t,s)&&!Bh.hasOwnProperty(s)&&(r[s]=t[s]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)r[s]===void 0&&(r[s]=l[s]);return{$$typeof:_r,type:e,key:i,ref:o,props:r,_owner:ic.current}}function ov(e,t){return{$$typeof:_r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oc(e){return typeof e=="object"&&e!==null&&e.$$typeof===_r}function av(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _u=/\/+/g;function Jo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?av(""+e.key):t.toString(36)}function Ci(e,t,n,s,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case _r:case Xy:o=!0}}if(o)return o=e,r=r(o),e=s===""?"."+Jo(o,0):s,Vu(r)?(n="",e!=null&&(n=e.replace(_u,"$&/")+"/"),Ci(r,t,n,"",function(u){return u})):r!=null&&(oc(r)&&(r=ov(r,n+(!r.key||o&&o.key===r.key?"":(""+r.key).replace(_u,"$&/")+"/")+e)),t.push(r)),1;if(o=0,s=s===""?".":s+":",Vu(e))for(var l=0;l<e.length;l++){i=e[l];var c=s+Jo(i,l);o+=Ci(i,t,n,c,r)}else if(c=iv(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=s+Jo(i,l++),o+=Ci(i,t,n,c,r);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Zr(e,t,n){if(e==null)return e;var s=[],r=0;return Ci(e,s,"","",function(i){return t.call(n,i,r++)}),s}function lv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var De={current:null},Ei={transition:null},cv={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:Ei,ReactCurrentOwner:ic};function $h(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Zr,forEach:function(e,t,n){Zr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zr(e,function(){t++}),t},toArray:function(e){return Zr(e,function(t){return t})||[]},only:function(e){if(!oc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=Ss;W.Fragment=Qy;W.Profiler=Zy;W.PureComponent=sc;W.StrictMode=qy;W.Suspense=nv;
vendor: 4,982 bytes, lines 9-25
9W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cv;W.act=$h;W.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=Vh({},e.props),r=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=ic.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Fh.call(t,c)&&!Bh.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];s.children=l}return{$$typeof:_r,type:e.type,key:r,ref:i,props:s,_owner:o}};W.createContext=function(e){return e={$$typeof:ev,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Jy,_context:e},e.Consumer=e};W.createElement=zh;W.createFactory=function(e){var t=zh.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:tv,render:e}};W.isValidElement=oc;W.lazy=function(e){return{$$typeof:rv,_payload:{_status:-1,_result:e},_init:lv}};W.memo=function(e,t){return{$$typeof:sv,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=Ei.transition;Ei.transition={};try{e()}finally{Ei.transition=t}};W.unstable_act=$h;W.useCallback=function(e,t){return De.current.useCallback(e,t)};W.useContext=function(e){return De.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return De.current.useDeferredValue(e)};W.useEffect=function(e,t){return De.current.useEffect(e,t)};W.useId=function(){return De.current.useId()};W.useImperativeHandle=function(e,t,n){return De.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return De.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return De.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return De.current.useMemo(e,t)};W.useReducer=function(e,t,n){return De.current.useReducer(e,t,n)};W.useRef=function(e){return De.current.useRef(e)};W.useState=function(e){return De.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return De.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return De.current.useTransition()};W.version="18.3.1";Dh.exports=W;var x=Dh.exports;const uv=Yy(x);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var dv=x,fv=Symbol.for("react.element"),hv=Symbol.for("react.fragment"),pv=Object.prototype.hasOwnProperty,mv=dv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gv={key:!0,ref:!0,__self:!0,__source:!0};function Wh(e,t,n){var s,r={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(s in t)pv.call(t,s)&&!gv.hasOwnProperty(s)&&(r[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)r[s]===void 0&&(r[s]=t[s]);return{$$typeof:fv,type:e,key:i,ref:o,props:r,_owner:mv.current}}So.Fragment=hv;So.jsx=Wh;So.jsxs=Wh;Rh.exports=So;var a=Rh.exports,Ua={},Uh={exports:{}},Qe={},Hh={exports:{}},Gh={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(N,D){var _=N.length;N.push(D);e:for(;0<_;){var M=_-1>>>1,F=N[M];if(0<r(F,D))N[M]=D,N[_]=F,_=M;else break e}}function n(N){return N.length===0?null:N[0]}function s(N){if(N.length===0)return null;var D=N[0],_=N.pop();if(_!==D){N[0]=_;e:for(var M=0,F=N.length,G=F>>>1;M<G;){var pe=2*(M+1)-1,We=N[pe],ye=pe+1,Ue=N[ye];if(0>r(We,_))ye<F&&0>r(Ue,We)?(N[M]=Ue,N[ye]=_,M=ye):(N[M]=We,N[pe]=_,M=pe);else if(ye<F&&0>r(Ue,_))N[M]=Ue,N[ye]=_,M=ye;else break e}}return D}function r(N,D){var _=N.sortIndex-D.sortIndex;return _!==0?_:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,v=!1,g=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var D=n(u);D!==null;){if(D.callback===null)s(u);else if(D.startTime<=N)s(u),D.sortIndex=D.expirationTime,t(c,D);else break;D=n(u)}}function j(N){if(w=!1,y(N),!g)if(n(c)!==null)g=!0,$(S);else{var D=n(u);D!==null&&z(j,D.startTime-N)}}function S(N,D){g=!1,w&&(w=!1,m(C),C=-1),v=!0;var _=f;try{for(y(D),h=n(c);h!==null&&(!(h.expirationTime>D)||N&&!I());
vendor: 9,185 bytes, lines 25-34
25){var M=h.callback;if(typeof M=="function"){h.callback=null,f=h.priorityLevel;var F=M(h.expirationTime<=D);D=e.unstable_now(),typeof F=="function"?h.callback=F:h===n(c)&&s(c),y(D)}else s(c);h=n(c)}if(h!==null)var G=!0;else{var pe=n(u);pe!==null&&z(j,pe.startTime-D),G=!1}return G}finally{h=null,f=_,v=!1}}var k=!1,E=null,C=-1,P=5,A=-1;function I(){return!(e.unstable_now()-A<P)}function Y(){if(E!==null){var N=e.unstable_now();A=N;var D=!0;try{D=E(!0,N)}finally{D?de():(k=!1,E=null)}}else k=!1}var de;if(typeof p=="function")de=function(){p(Y)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,$e=ze.port2;ze.port1.onmessage=Y,de=function(){$e.postMessage(null)}}else de=function(){b(Y,0)};function $(N){E=N,k||(k=!0,de())}function z(N,D){C=b(function(){N(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,$(S))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var _=f;f=D;try{return N()}finally{f=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,D){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var _=f;f=N;try{return D()}finally{f=_}},e.unstable_scheduleCallback=function(N,D,_){var M=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?M+_:M):_=M,N){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=_+F,N={id:d++,callback:D,priorityLevel:N,startTime:_,expirationTime:F,sortIndex:-1},_>M?(N.sortIndex=_,t(u,N),n(c)===null&&N===n(u)&&(w?(m(C),C=-1):w=!0,z(j,_-M))):(N.sortIndex=F,t(c,N),g||v||(g=!0,$(S))),N},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(N){var D=f;return function(){var _=f;f=D;try{return N.apply(this,arguments)}finally{f=_}}}})(Gh);Hh.exports=Gh;var yv=Hh.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var vv=x,Ye=yv;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Kh=new Set,mr={};function Dn(e,t){ds(e,t),ds(e+"Capture",t)}function ds(e,t){for(mr[e]=t,e=0;e<t.length;e++)Kh.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ha=Object.prototype.hasOwnProperty,xv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ou={},Fu={};function wv(e){return Ha.call(Fu,e)?!0:Ha.call(Ou,e)?!1:xv.test(e)?Fu[e]=!0:(Ou[e]=!0,!1)}function Sv(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jv(e,t,n,s){if(t===null||typeof t>"u"||Sv(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,s,r,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var ac=/[\-:]([a-z])/g;function lc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ac,lc);Ce[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ac,lc);Ce[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ac,lc);Ce[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function cc(e,t,n,s){var r=Ce.hasOwnProperty(t)?Ce[t]:null;(r!==null?r.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jv(t,n,r,s)&&(n=null),s||r===null?wv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,s=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var zt=vv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jr=Symbol.for("react.element"),$n=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),Ga=Symbol.for("react.profiler"),Yh=Symbol.for("react.provider"),Xh=Symbol.for("react.context"),dc=Symbol.for("react.forward_ref"),Ka=Symbol.for("react.suspense"),Ya=Symbol.for("react.suspense_list"),fc=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),Qh=Symbol.for("react.offscreen"),Bu=Symbol.iterator;function As(e){return e===null||typeof e!="object"?null:(e=Bu&&e[Bu]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Object.assign,ea;function Gs(e){if(ea===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ea=t&&t[1]||""}return`
34`+ea+e}var ta=!1;function na(e,t){if(!e||ta)return"";ta=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}
vendor: 4,643 bytes, lines 34-37
34catch(u){if(u&&s&&typeof u.stack=="string"){for(var r=u.stack.split(`
35`),i=s.stack.split(`
36`),o=r.length-1,l=i.length-1;1<=o&&0<=l&&r[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(r[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||r[o]!==i[l]){var c=`
37`+r[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{ta=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gs(e):""}function bv(e){switch(e.tag){case 5:return Gs(e.type);case 16:return Gs("Lazy");case 13:return Gs("Suspense");case 19:return Gs("SuspenseList");case 0:case 2:case 15:return e=na(e.type,!1),e;case 11:return e=na(e.type.render,!1),e;case 1:return e=na(e.type,!0),e;default:return""}}function Xa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wn:return"Fragment";case $n:return"Portal";case Ga:return"Profiler";case uc:return"StrictMode";case Ka:return"Suspense";case Ya:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xh:return(e.displayName||"Context")+".Consumer";case Yh:return(e._context.displayName||"Context")+".Provider";case dc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fc:return t=e.displayName||null,t!==null?t:Xa(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return Xa(e(t))}catch{}}return null}function kv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xa(t);case 8:return t===uc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cv(e){var t=qh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){s=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(o){s=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ei(e){e._valueTracker||(e._valueTracker=Cv(e))}function Zh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=qh(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function $i(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qa(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zu(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=an(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jh(e,t){t=t.checked,t!=null&&cc(e,"checked",t,!1)}function qa(e,t){Jh(e,t);var n=an(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Za(e,t.type,n):t.hasOwnProperty("defaultValue")&&Za(e,t.type,an(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $u(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}
vendor: 12,389 bytes, line 37
37function Za(e,t,n){(t!=="number"||$i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ks=Array.isArray;function is(e,t,n,s){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&s&&(e[n].defaultSelected=!0)}else{for(n=""+an(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Ja(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Ks(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function ep(e,t){var n=an(t.value),s=an(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Uu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function el(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ti,np=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ti=ti||document.createElement("div"),ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Js={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ev=["Webkit","ms","Moz","O"];Object.keys(Js).forEach(function(e){Ev.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Js[t]=Js[e]})});function sp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Js.hasOwnProperty(e)&&Js[e]?(""+t).trim():t+"px"}function rp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,r=sp(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,r):e[n]=r}}var Nv=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tl(e,t){if(t){if(Nv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function nl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sl=null;function hc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rl=null,os=null,as=null;function Hu(e){if(e=Br(e)){if(typeof rl!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Eo(t),rl(e.stateNode,e.type,t))}}function ip(e){os?as?as.push(e):as=[e]:os=e}function op(){if(os){var e=os,t=as;if(as=os=null,Hu(e),t)for(e=0;e<t.length;e++)Hu(t[e])}}function ap(e,t){return e(t)}function lp(){}var sa=!1;function cp(e,t,n){if(sa)return e(t,n);sa=!0;try{return ap(e,t,n)}finally{sa=!1,(os!==null||as!==null)&&(lp(),op())}}function yr(e,t){var n=e.stateNode;if(n===null)return null;var s=Eo(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var il=!1;if(_t)try{var Ms={};Object.defineProperty(Ms,"passive",{get:function(){il=!0}}),window.addEventListener("test",Ms,Ms),window.removeEventListener("test",Ms,Ms)}catch{il=!1}function Tv(e,t,n,s,r,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var er=!1,Wi=null,Ui=!1,ol=null,Pv={onError:function(e){er=!0,Wi=e}};function Av(e,t,n,s,r,i,o,l,c){er=!1,Wi=null,Tv.apply(Pv,arguments)}function Mv(e,t,n,s,r,i,o,l,c){if(Av.apply(this,arguments),er){if(er){var u=Wi;er=!1,Wi=null}else throw Error(T(198));Ui||(Ui=!0,ol=u)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function up(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Gu(e){if(In(e)!==e)throw Error(T(188))}function Lv(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Gu(r),e;if(i===s)return Gu(r),t;i=i.sibling}throw Error(T(188))}if(n.return!==s.return)n=r,s=i;else{for(var o=!1,l=r.child;l;){if(l===n){o=!0,n=r,s=i;break}if(l===s){o=!0,s=r,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,s=r;break}if(l===s){o=!0,s=i,n=r;break}l=l.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==s)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function dp(e){return e=Lv(e),e!==null?fp(e):null}function fp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fp(e);if(t!==null)return t;e=e.sibling}return null}var hp=Ye.unstable_scheduleCallback,Ku=Ye.unstable_cancelCallback,Rv=Ye.unstable_shouldYield,Dv=Ye.unstable_requestPaint,fe=Ye.unstable_now,Iv=Ye.unstable_getCurrentPriorityLevel,pc=Ye.unstable_ImmediatePriority,pp=Ye.unstable_UserBlockingPriority,Hi=Ye.unstable_NormalPriority,Vv=Ye.unstable_LowPriority,mp=Ye.unstable_IdlePriority,jo=null,kt=null;function _v(e){if(kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(jo,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:Bv,Ov=Math.log,Fv=Math.LN2;function Bv(e){return e>>>=0,e===0?32:31-(Ov(e)/Fv|0)|0}var ni=64,si=4194304;function Ys(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gi(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,r=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~r;l!==0?s=Ys(l):(i&=o,i!==0&&(s=Ys(i)))}else o=n&~r,o!==0?s=Ys(o):i!==0&&(s=Ys(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&r)&&(r=s&-s,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-ht(t),r=1<<n,s|=e[n],t&=~r;return s}function zv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $v(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ht(i),l=1<<o,c=r[o];c===-1?(!(l&n)||l&s)&&(r[o]=zv(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function al(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gp(){var e=ni;return ni<<=1,!(ni&4194240)&&(ni=64),e}function ra(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Or(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function Wv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ht(n),i=1<<r;t[r]=0,s[r]=-1,e[r]=-1,n&=~i}}function mc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-ht(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}var q=0;function yp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vp,gc,xp,wp,Sp,ll=!1,ri=[],Zt=null,Jt=null,en=null,vr=new Map,xr=new Map,Yt=[],Uv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yu(e,t){switch(e){case"focusin":case"focusout":Zt=null;break;case"dragenter":case"dragleave":Jt=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xr.delete(t.pointerId)}}function Ls(e,t,n,s,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[r]},t!==null&&(t=Br(t),t!==null&&gc(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Hv(e,t,n,s,r){switch(t){case"focusin":return Zt=Ls(Zt,e,t,n,s,r),!0;case"dragenter":return Jt=Ls(Jt,e,t,n,s,r),!0;case"mouseover":return en=Ls(en,e,t,n,s,r),!0;case"pointerover":var i=r.pointerId;return vr.set(i,Ls(vr.get(i)||null,e,t,n,s,r)),!0;case"gotpointercapture":return i=r.pointerId,xr.set(i,Ls(xr.get(i)||null,e,t,n,s,r)),!0}return!1}function jp(e){var t=jn(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=up(n),t!==null){e.blockedOn=t,Sp(e.priority,function(){xp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);sl=s,n.target.dispatchEvent(s),sl=null}else return t=Br(n),t!==null&&gc(t),e.blockedOn=n,!1;t.shift()}return!0}function Xu(e,t,n){Ni(e)&&n.delete(t)}function Gv(){ll=!1,Zt!==null&&Ni(Zt)&&(Zt=null),Jt!==null&&Ni(Jt)&&(Jt=null),en!==null&&Ni(en)&&(en=null),vr.forEach(Xu),xr.forEach(Xu)}function Rs(e,t){e.blockedOn===t&&(e.blockedOn=null,ll||(ll=!0,Ye.unstable_scheduleCallback(Ye.unstable_NormalPriority,Gv)))}function wr(e){function t(r){return Rs(r,e)}if(0<ri.length){Rs(ri[0],e);for(var n=1;n<ri.length;n++){var s=ri[n];s.blockedOn===e&&(s.blockedOn=null)}}
vendor: 11,219 bytes, line 37
37for(Zt!==null&&Rs(Zt,e),Jt!==null&&Rs(Jt,e),en!==null&&Rs(en,e),vr.forEach(t),xr.forEach(t),n=0;n<Yt.length;n++)s=Yt[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Yt.length&&(n=Yt[0],n.blockedOn===null);)jp(n),n.blockedOn===null&&Yt.shift()}var ls=zt.ReactCurrentBatchConfig,Ki=!0;function Kv(e,t,n,s){var r=q,i=ls.transition;ls.transition=null;try{q=1,yc(e,t,n,s)}finally{q=r,ls.transition=i}}function Yv(e,t,n,s){var r=q,i=ls.transition;ls.transition=null;try{q=4,yc(e,t,n,s)}finally{q=r,ls.transition=i}}function yc(e,t,n,s){if(Ki){var r=cl(e,t,n,s);if(r===null)pa(e,t,s,Yi,n),Yu(e,s);else if(Hv(r,e,t,n,s))s.stopPropagation();else if(Yu(e,s),t&4&&-1<Uv.indexOf(e)){for(;r!==null;){var i=Br(r);if(i!==null&&vp(i),i=cl(e,t,n,s),i===null&&pa(e,t,s,Yi,n),i===r)break;r=i}r!==null&&s.stopPropagation()}else pa(e,t,s,null,n)}}var Yi=null;function cl(e,t,n,s){if(Yi=null,e=hc(s),e=jn(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=up(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yi=e,null}function bp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Iv()){case pc:return 1;case pp:return 4;case Hi:case Vv:return 16;case mp:return 536870912;default:return 16}default:return 16}}var Qt=null,vc=null,Ti=null;function kp(){if(Ti)return Ti;var e,t=vc,n=t.length,s,r="value"in Qt?Qt.value:Qt.textContent,i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(s=1;s<=o&&t[n-s]===r[i-s];s++);return Ti=r.slice(e,1<s?1-s:void 0)}function Pi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ii(){return!0}function Qu(){return!1}function qe(e){function t(n,s,r,i,o){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ii:Qu,this.isPropagationStopped=Qu,this}return ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xc=qe(js),Fr=ae({},js,{view:0,detail:0}),Xv=qe(Fr),ia,oa,Ds,bo=ae({},Fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ds&&(Ds&&e.type==="mousemove"?(ia=e.screenX-Ds.screenX,oa=e.screenY-Ds.screenY):oa=ia=0,Ds=e),ia)},movementY:function(e){return"movementY"in e?e.movementY:oa}}),qu=qe(bo),Qv=ae({},bo,{dataTransfer:0}),qv=qe(Qv),Zv=ae({},Fr,{relatedTarget:0}),aa=qe(Zv),Jv=ae({},js,{animationName:0,elapsedTime:0,pseudoElement:0}),e0=qe(Jv),t0=ae({},js,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n0=qe(t0),s0=ae({},js,{data:0}),Zu=qe(s0),r0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},o0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o0[e])?!!t[e]:!1}function wc(){return a0}var l0=ae({},Fr,{key:function(e){if(e.key){var t=r0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wc,charCode:function(e){return e.type==="keypress"?Pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c0=qe(l0),u0=ae({},bo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ju=qe(u0),d0=ae({},Fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wc}),f0=qe(d0),h0=ae({},js,{propertyName:0,elapsedTime:0,pseudoElement:0}),p0=qe(h0),m0=ae({},bo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),g0=qe(m0),y0=[9,13,27,32],Sc=_t&&"CompositionEvent"in window,tr=null;_t&&"documentMode"in document&&(tr=document.documentMode);var v0=_t&&"TextEvent"in window&&!tr,Cp=_t&&(!Sc||tr&&8<tr&&11>=tr),ed=" ",td=!1;function Ep(e,t){switch(e){case"keyup":return y0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Np(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function x0(e,t){switch(e){case"compositionend":return Np(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function w0(e,t){if(Un)return e==="compositionend"||!Sc&&Ep(e,t)?(e=kp(),Ti=vc=Qt=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cp&&t.locale!=="ko"?null:t.data;default:return null}}var S0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!S0[e.type]:t==="textarea"}function Tp(e,t,n,s){ip(s),t=Xi(t,"onChange"),0<t.length&&(n=new xc("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var nr=null,Sr=null;function j0(e){Fp(e,0)}function ko(e){var t=Kn(e);if(Zh(t))return e}function b0(e,t){if(e==="change")return t}var Pp=!1;if(_t){var la;if(_t){var ca="oninput"in document;if(!ca){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),ca=typeof sd.oninput=="function"}la=ca}else la=!1;Pp=la&&(!document.documentMode||9<document.documentMode)}function rd(){nr&&(nr.detachEvent("onpropertychange",Ap),Sr=nr=null)}function Ap(e){if(e.propertyName==="value"&&ko(Sr)){var t=[];Tp(t,Sr,e,hc(e)),cp(j0,t)}}function k0(e,t,n){e==="focusin"?(rd(),nr=t,Sr=n,nr.attachEvent("onpropertychange",Ap)):e==="focusout"&&rd()}function C0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ko(Sr)}function E0(e,t){if(e==="click")return ko(t)}function N0(e,t){if(e==="input"||e==="change")return ko(t)}function T0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:T0;function jr(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!Ha.call(t,r)||!mt(e[r],t[r]))return!1}return!0}function id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function od(e,t){var n=id(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=id(n)}}function Mp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lp(){for(var e=window,t=$i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$i(e.document)}return t}function jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function P0(e){var t=Lp(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mp(n.ownerDocument.documentElement,n)){if(s!==null&&jc(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(s.start,r);s=s.end===void 0?i:Math.min(s.end,r),!e.extend&&i>s&&(r=s,s=i,i=r),r=od(n,i);var o=od(n,s);r&&o&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var A0=_t&&"documentMode"in document&&11>=document.documentMode,Hn=null,ul=null,sr=null,dl=!1;
vendor: 4,119 bytes, line 37
37function ad(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dl||Hn==null||Hn!==$i(s)||(s=Hn,"selectionStart"in s&&jc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),sr&&jr(sr,s)||(sr=s,s=Xi(ul,"onSelect"),0<s.length&&(t=new xc("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Hn)))}function oi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gn={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionend:oi("Transition","TransitionEnd")},ua={},Rp={};_t&&(Rp=document.createElement("div").style,"AnimationEvent"in window||(delete Gn.animationend.animation,delete Gn.animationiteration.animation,delete Gn.animationstart.animation),"TransitionEvent"in window||delete Gn.transitionend.transition);function Co(e){if(ua[e])return ua[e];if(!Gn[e])return e;var t=Gn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rp)return ua[e]=t[n];return e}var Dp=Co("animationend"),Ip=Co("animationiteration"),Vp=Co("animationstart"),_p=Co("transitionend"),Op=new Map,ld="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fn(e,t){Op.set(e,t),Dn(t,[e])}for(var da=0;da<ld.length;da++){var fa=ld[da],M0=fa.toLowerCase(),L0=fa[0].toUpperCase()+fa.slice(1);fn(M0,"on"+L0)}fn(Dp,"onAnimationEnd");fn(Ip,"onAnimationIteration");fn(Vp,"onAnimationStart");fn("dblclick","onDoubleClick");fn("focusin","onFocus");fn("focusout","onBlur");fn(_p,"onTransitionEnd");ds("onMouseEnter",["mouseout","mouseover"]);ds("onMouseLeave",["mouseout","mouseover"]);ds("onPointerEnter",["pointerout","pointerover"]);ds("onPointerLeave",["pointerout","pointerover"]);Dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),R0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xs));function cd(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,Mv(s,t,void 0,e),e.currentTarget=null}function Fp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],r=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var o=s.length-1;0<=o;o--){var l=s[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&r.isPropagationStopped())break e;cd(r,l,u),i=c}else for(o=0;o<s.length;o++){if(l=s[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&r.isPropagationStopped())break e;cd(r,l,u),i=c}}}if(Ui)throw e=ol,Ui=!1,ol=null,e}function J(e,t){var n=t[gl];n===void 0&&(n=t[gl]=new Set);var s=e+"__bubble";n.has(s)||(Bp(t,e,2,!1),n.add(s))}function ha(e,t,n){var s=0;t&&(s|=4),Bp(n,e,s,t)}var ai="_reactListening"+Math.random().toString(36).slice(2);
vendor: 4,514 bytes, line 37
37function br(e){if(!e[ai]){e[ai]=!0,Kh.forEach(function(n){n!=="selectionchange"&&(R0.has(n)||ha(n,!1,e),ha(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ai]||(t[ai]=!0,ha("selectionchange",!1,t))}}function Bp(e,t,n,s){switch(bp(t)){case 1:var r=Kv;break;case 4:r=Yv;break;default:r=yc}n=r.bind(null,t,n,e),r=void 0,!il||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function pa(e,t,n,s,r){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var o=s.tag;if(o===3||o===4){var l=s.stateNode.containerInfo;if(l===r||l.nodeType===8&&l.parentNode===r)break;if(o===4)for(o=s.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===r||c.nodeType===8&&c.parentNode===r))return;o=o.return}for(;l!==null;){if(o=jn(l),o===null)return;if(c=o.tag,c===5||c===6){s=i=o;continue e}l=l.parentNode}}s=s.return}cp(function(){var u=i,d=hc(n),h=[];e:{var f=Op.get(e);if(f!==void 0){var v=xc,g=e;switch(e){case"keypress":if(Pi(n)===0)break e;case"keydown":case"keyup":v=c0;break;case"focusin":g="focus",v=aa;break;case"focusout":g="blur",v=aa;break;case"beforeblur":case"afterblur":v=aa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=qu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=f0;break;case Dp:case Ip:case Vp:v=e0;break;case _p:v=p0;break;case"scroll":v=Xv;break;case"wheel":v=g0;break;case"copy":case"cut":case"paste":v=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Ju}var w=(t&4)!==0,b=!w&&e==="scroll",m=w?f!==null?f+"Capture":null:f;w=[];for(var p=u,y;p!==null;){y=p;var j=y.stateNode;if(y.tag===5&&j!==null&&(y=j,m!==null&&(j=yr(p,m),j!=null&&w.push(kr(p,j,y)))),b)break;p=p.return}0<w.length&&(f=new v(f,g,null,n,d),h.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",f&&n!==sl&&(g=n.relatedTarget||n.fromElement)&&(jn(g)||g[Ot]))break e;if((v||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?jn(g):null,g!==null&&(b=In(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(w=qu,j="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(w=Ju,j="onPointerLeave",m="onPointerEnter",p="pointer"),b=v==null?f:Kn(v),y=g==null?f:Kn(g),f=new w(j,p+"leave",v,n,d),f.target=b,f.relatedTarget=y,j=null,jn(d)===u&&(w=new w(m,p+"enter",g,n,d),w.target=y,w.relatedTarget=b,j=w),b=j,v&&g)t:{for(w=v,m=g,p=0,y=w;y;y=_n(y))p++;for(y=0,j=m;j;j=_n(j))y++;for(;0<p-y;)w=_n(w),p--;for(;0<y-p;)m=_n(m),y--;for(;p--;){if(w===m||m!==null&&w===m.alternate)break t;w=_n(w),m=_n(m)}w=null}else w=null;v!==null&&ud(h,f,v,w,!1),g!==null&&b!==null&&ud(h,b,g,w,!0)}}e:{if(f=u?Kn(u):window,v=f.nodeName&&f.nodeName.toLowerCase(),v==="select"||v==="input"&&f.type==="file")var S=b0;else if(nd(f))if(Pp)S=N0;else{S=C0;var k=k0}else(v=f.nodeName)&&v.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=E0);if(S&&(S=S(e,u))){Tp(h,S,n,d);break e}k&&k(e,f,u),e==="focusout"&&(k=f._wrapperState)&&k.controlled&&f.type==="number"&&Za(f,"number",f.value)}switch(k=u?Kn(u):window,e){case"focusin":(nd(k)||k.contentEditable==="true")&&(Hn=k,ul=u,sr=null);break;case"focusout":sr=ul=Hn=null;break;case"mousedown":dl=!0;break;case"contextmenu":case"mouseup":case"dragend":dl=!1,ad(h,n,d);break;case"selectionchange":if(A0)break;case"keydown":case"keyup":ad(h,n,d)}var E;if(Sc)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Un?Ep(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Cp&&n.locale!=="ko"&&(Un||C!=="onCompositionStart"?C==="onCompositionEnd"&&Un&&(E=kp()):(Qt=d,vc="value"in Qt?Qt.value:Qt.textContent,Un=!0)),k=Xi(u,C),0<k.length&&(C=new Zu(C,e,null,n,d),h.push({event:C,listeners:k}),E?C.data=E:(E=Np(n),E!==null&&(C.data=E)))),(E=v0?x0(e,n):w0(e,n))&&
vendor: 4,112 bytes, lines 37-38
37(u=Xi(u,"onBeforeInput"),0<u.length&&(d=new Zu("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=E))}Fp(h,t)})}function kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xi(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=yr(e,n),i!=null&&s.unshift(kr(e,i,r)),i=yr(e,t),i!=null&&s.push(kr(e,i,r))),e=e.return}return s}function _n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ud(e,t,n,s,r){for(var i=t._reactName,o=[];n!==null&&n!==s;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===s)break;l.tag===5&&u!==null&&(l=u,r?(c=yr(n,i),c!=null&&o.unshift(kr(n,c,l))):r||(c=yr(n,i),c!=null&&o.push(kr(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var D0=/\r\n?/g,I0=/\u0000|\uFFFD/g;function dd(e){return(typeof e=="string"?e:""+e).replace(D0,`
38`).replace(I0,"")}function li(e,t,n){if(t=dd(t),dd(e)!==t&&n)throw Error(T(425))}function Qi(){}var fl=null,hl=null;function pl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ml=typeof setTimeout=="function"?setTimeout:void 0,V0=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,_0=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(e){return fd.resolve(null).then(e).catch(O0)}:ml;function O0(e){setTimeout(function(){throw e})}function ma(e,t){var n=t,s=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(s===0){e.removeChild(r),wr(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=r}while(n);wr(t)}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bs=Math.random().toString(36).slice(2),jt="__reactFiber$"+bs,Cr="__reactProps$"+bs,Ot="__reactContainer$"+bs,gl="__reactEvents$"+bs,F0="__reactListeners$"+bs,B0="__reactHandles$"+bs;function jn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hd(e);e!==null;){if(n=e[jt])return n;e=hd(e)}return t}e=n,n=e.parentNode}return null}function Br(e){return e=e[jt]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Eo(e){return e[Cr]||null}var yl=[],Yn=-1;function hn(e){return{current:e}}function ee(e){0>Yn||(e.current=yl[Yn],yl[Yn]=null,Yn--)}function Z(e,t){Yn++,yl[Yn]=e.current,e.current=t}var ln={},Ae=hn(ln),Oe=hn(!1),Pn=ln;function fs(e,t){var n=e.type.contextTypes;if(!n)return ln;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Fe(e){return e=e.childContextTypes,e!=null}function qi(){ee(Oe),ee(Ae)}function pd(e,t,n){if(Ae.current!==ln)throw Error(T(168));Z(Ae,t),Z(Oe,n)}function zp(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var r in s)if(!(r in t))throw Error(T(108,kv(e)||"Unknown",r));return ae({},n,s)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,Pn=Ae.current,Z(Ae,e),Z(Oe,Oe.current),!0}function md(e,t,n){var s=e.stateNode;if(!s)throw Error(T(169));n?(e=zp(e,t,Pn),s.__reactInternalMemoizedMergedChildContext=e,ee(Oe),ee(Ae),Z(Ae,e)):ee(Oe),Z(Oe,n)}var Rt=null,No=!1,ga=!1;function $p(e){Rt===null?Rt=[e]:Rt.push(e)}function z0(e){No=!0,$p(e)}function pn(){if(!ga&&Rt!==null){ga=!0;var e=0,t=q;try{var n=Rt;
vendor: 17,485 bytes, line 38
38for(q=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Rt=null,No=!1}catch(r){throw Rt!==null&&(Rt=Rt.slice(e+1)),hp(pc,pn),r}finally{q=t,ga=!1}}return null}var Xn=[],Qn=0,Ji=null,eo=0,tt=[],nt=0,An=null,Dt=1,It="";function vn(e,t){Xn[Qn++]=eo,Xn[Qn++]=Ji,Ji=e,eo=t}function Wp(e,t,n){tt[nt++]=Dt,tt[nt++]=It,tt[nt++]=An,An=e;var s=Dt;e=It;var r=32-ht(s)-1;s&=~(1<<r),n+=1;var i=32-ht(t)+r;if(30<i){var o=r-r%5;i=(s&(1<<o)-1).toString(32),s>>=o,r-=o,Dt=1<<32-ht(t)+r|n<<r|s,It=i+e}else Dt=1<<i|n<<r|s,It=e}function bc(e){e.return!==null&&(vn(e,1),Wp(e,1,0))}function kc(e){for(;e===Ji;)Ji=Xn[--Qn],Xn[Qn]=null,eo=Xn[--Qn],Xn[Qn]=null;for(;e===An;)An=tt[--nt],tt[nt]=null,It=tt[--nt],tt[nt]=null,Dt=tt[--nt],tt[nt]=null}var Ke=null,Ge=null,te=!1,ft=null;function Up(e,t){var n=rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function gd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ke=e,Ge=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ke=e,Ge=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=An!==null?{id:Dt,overflow:It}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ke=e,Ge=null,!0):!1;default:return!1}}function vl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xl(e){if(te){var t=Ge;if(t){var n=t;if(!gd(e,t)){if(vl(e))throw Error(T(418));t=tn(n.nextSibling);var s=Ke;t&&gd(e,t)?Up(s,n):(e.flags=e.flags&-4097|2,te=!1,Ke=e)}}else{if(vl(e))throw Error(T(418));e.flags=e.flags&-4097|2,te=!1,Ke=e}}}function yd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ke=e}function ci(e){if(e!==Ke)return!1;if(!te)return yd(e),te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pl(e.type,e.memoizedProps)),t&&(t=Ge)){if(vl(e))throw Hp(),Error(T(418));for(;t;)Up(e,t),t=tn(t.nextSibling)}if(yd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ge=tn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ge=null}}else Ge=Ke?tn(e.stateNode.nextSibling):null;return!0}function Hp(){for(var e=Ge;e;)e=tn(e.nextSibling)}function hs(){Ge=Ke=null,te=!1}function Cc(e){ft===null?ft=[e]:ft.push(e)}var $0=zt.ReactCurrentBatchConfig;function Is(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var s=n.stateNode}if(!s)throw Error(T(147,e));var r=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=r.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function ui(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vd(e){var t=e._init;return t(e._payload)}function Gp(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function s(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function r(m,p){return m=on(m,p),m.index=0,m.sibling=null,m}function i(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,y,j){return p===null||p.tag!==6?(p=ba(y,m.mode,j),p.return=m,p):(p=r(p,y),p.return=m,p)}function c(m,p,y,j){var S=y.type;return S===Wn?d(m,p,y.props.children,j,y.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Gt&&vd(S)===p.type)?(j=r(p,y.props),j.ref=Is(m,p,y),j.return=m,j):(j=Vi(y.type,y.key,y.props,null,m.mode,j),j.ref=Is(m,p,y),j.return=m,j)}function u(m,p,y,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=ka(y,m.mode,j),p.return=m,p):(p=r(p,y.children||[]),p.return=m,p)}function d(m,p,y,j,S){return p===null||p.tag!==7?(p=Nn(y,m.mode,j,S),p.return=m,p):(p=r(p,y),p.return=m,p)}function h(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ba(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Jr:return y=Vi(p.type,p.key,p.props,null,m.mode,y),y.ref=Is(m,null,p),y.return=m,y;case $n:return p=ka(p,m.mode,y),p.return=m,p;case Gt:var j=p._init;return h(m,j(p._payload),y)}if(Ks(p)||As(p))return p=Nn(p,m.mode,y,null),p.return=m,p;ui(m,p)}return null}function f(m,p,y,j){var S=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:l(m,p,""+y,j);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Jr:return y.key===S?c(m,p,y,j):null;case $n:return y.key===S?u(m,p,y,j):null;case Gt:return S=y._init,f(m,p,S(y._payload),j)}if(Ks(y)||As(y))return S!==null?null:d(m,p,y,j,null);ui(m,y)}return null}function v(m,p,y,j,S){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(y)||null,l(p,m,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Jr:return m=m.get(j.key===null?y:j.key)||null,c(p,m,j,S);case $n:return m=m.get(j.key===null?y:j.key)||null,u(p,m,j,S);case Gt:var k=j._init;return v(m,p,y,k(j._payload),S)}if(Ks(j)||As(j))return m=m.get(y)||null,d(p,m,j,S,null);ui(p,j)}return null}function g(m,p,y,j){for(var S=null,k=null,E=p,C=p=0,P=null;E!==null&&C<y.length;C++){E.index>C?(P=E,E=null):P=E.sibling;var A=f(m,E,y[C],j);if(A===null){E===null&&(E=P);break}e&&E&&A.alternate===null&&t(m,E),p=i(A,p,C),k===null?S=A:k.sibling=A,k=A,E=P}if(C===y.length)return n(m,E),te&&vn(m,C),S;if(E===null){for(;C<y.length;C++)E=h(m,y[C],j),E!==null&&(p=i(E,p,C),k===null?S=E:k.sibling=E,k=E);return te&&vn(m,C),S}for(E=s(m,E);C<y.length;C++)P=v(E,m,C,y[C],j),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?C:P.key),p=i(P,p,C),k===null?S=P:k.sibling=P,k=P);return e&&E.forEach(function(I){return t(m,I)}),te&&vn(m,C),S}function w(m,p,y,j){var S=As(y);if(typeof S!="function")throw Error(T(150));if(y=S.call(y),y==null)throw Error(T(151));for(var k=S=null,E=p,C=p=0,P=null,A=y.next();E!==null&&!A.done;C++,A=y.next()){E.index>C?(P=E,E=null):P=E.sibling;var I=f(m,E,A.value,j);if(I===null){E===null&&(E=P);break}e&&E&&I.alternate===null&&t(m,E),p=i(I,p,C),k===null?S=I:k.sibling=I,k=I,E=P}if(A.done)return n(m,E),te&&vn(m,C),S;if(E===null){for(;!A.done;C++,A=y.next())A=h(m,A.value,j),A!==null&&(p=i(A,p,C),k===null?S=A:k.sibling=A,k=A);return te&&vn(m,C),S}for(E=s(m,E);!A.done;C++,A=y.next())A=v(E,m,C,A.value,j),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?C:A.key),p=i(A,p,C),k===null?S=A:k.sibling=A,k=A);return e&&E.forEach(function(Y){return t(m,Y)}),te&&vn(m,C),S}function b(m,p,y,j){if(typeof y=="object"&&y!==null&&y.type===Wn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Jr:e:{for(var S=y.key,k=p;k!==null;){if(k.key===S){if(S=y.type,S===Wn){if(k.tag===7){n(m,k.sibling),p=r(k,y.props.children),p.return=m,m=p;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Gt&&vd(S)===k.type){n(m,k.sibling),p=r(k,y.props),p.ref=Is(m,k,y),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}y.type===Wn?(p=Nn(y.props.children,m.mode,j,y.key),p.return=m,m=p):(j=Vi(y.type,y.key,y.props,null,m.mode,j),j.ref=Is(m,p,y),j.return=m,m=j)}return o(m);case $n:e:{for(k=y.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=r(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=ka(y,m.mode,j),p.return=m,m=p}return o(m);case Gt:return k=y._init,b(m,p,k(y._payload),j)}if(Ks(y))return g(m,p,y,j);if(As(y))return w(m,p,y,j);ui(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=r(p,y),p.return=m,m=p):(n(m,p),p=ba(y,m.mode,j),p.return=m,m=p),o(m)):n(m,p)}return b}var ps=Gp(!0),Kp=Gp(!1),to=hn(null),no=null,qn=null,Ec=null;function Nc(){Ec=qn=no=null}function Tc(e){var t=to.current;ee(to),e._currentValue=t}function wl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function cs(e,t){no=e,Ec=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function ot(e){var t=e._currentValue;if(Ec!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(no===null)throw Error(T(308));qn=e,no.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var bn=null;function Pc(e){bn===null?bn=[e]:bn.push(e)}function Yp(e,t,n,s){var r=t.interleaved;return r===null?(n.next=n,Pc(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ft(e,s)}function Ft(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function Ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,K&2){var r=s.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,Ft(e,n)}return r=s.interleaved,r===null?(t.next=t,Pc(s)):(t.next=r.next,r.next=t),s.interleaved=t,Ft(e,n)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,mc(e,n)}}function xd(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,s){var r=e.updateQueue;Kt=!1;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=r.baseState;o=0,d=u=c=null,l=i;do{var f=l.lane,v=l.eventTime;if((s&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,w=l;switch(f=t,v=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){h=g.call(v,h,f);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,f=typeof g=="function"?g.call(v,h,f):g,f==null)break e;h=ae({},h,f);break e;case 2:Kt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=r.effects,f===null?r.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=v,c=h):d=d.next=v,o|=f;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;f=l,l=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);if(d===null&&(c=h),r.baseState=c,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do o|=r.lane,r=r.next;while(r!==t)}else i===null&&(r.shared.lanes=0);Ln|=o,e.lanes=o,e.memoizedState=h}}function wd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],r=s.callback;if(r!==null){if(s.callback=null,s=n,typeof r!="function")throw Error(T(191,r));r.call(s)}}}var zr={},Ct=hn(zr),Er=hn(zr),Nr=hn(zr);function kn(e){if(e===zr)throw Error(T(174));return e}function Mc(e,t){switch(Z(Nr,t),Z(Er,e),Z(Ct,zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:el(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=el(t,e)}ee(Ct),Z(Ct,t)}function ms(){ee(Ct),ee(Er),ee(Nr)}function Qp(e){kn(Nr.current);var t=kn(Ct.current),n=el(t,e.type);t!==n&&(Z(Er,e),Z(Ct,n))}function Lc(e){Er.current===e&&(ee(Ct),ee(Er))}var ie=hn(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ya=[];function Rc(){for(var e=0;e<ya.length;e++)ya[e]._workInProgressVersionPrimary=null;ya.length=0}var Mi=zt.ReactCurrentDispatcher,va=zt.ReactCurrentBatchConfig,Mn=0,oe=null,me=null,xe=null,io=!1,rr=!1,Tr=0,W0=0;function Ee(){throw Error(T(321))}function Dc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mt(e[n],t[n]))return!1;return!0}function Ic(e,t,n,s,r,i){if(Mn=i,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mi.current=e===null||e.memoizedState===null?K0:Y0,e=n(s,r),rr){i=0;do{if(rr=!1,Tr=0,25<=i)throw Error(T(301));i+=1,xe=me=null,t.updateQueue=null,Mi.current=X0,e=n(s,r)}while(rr)}if(Mi.current=oo,t=me!==null&&me.next!==null,Mn=0,xe=me=oe=null,io=!1,t)throw Error(T(300));return e}function Vc(){var e=Tr!==0;return Tr=0,e}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xe===null?oe.memoizedState=xe=e:xe=xe.next=e,xe}function at(){if(me===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=xe===null?oe.memoizedState:xe.next;if(t!==null)xe=t,me=e;else{if(e===null)throw Error(T(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},xe===null?oe.memoizedState=xe=e:xe=xe.next=e}return xe}function Pr(e,t){return typeof t=="function"?t(e):t}function xa(e){var t=at(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var s=me,r=s.baseQueue,i=n.pending;if(i!==null){if(r!==null){var o=r.next;r.next=i.next,i.next=o}s.baseQueue=r=i,n.pending=null}if(r!==null){i=r.next,s=s.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Mn&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=s):c=c.next=h,oe.lanes|=d,Ln|=d}u=u.next}while(u!==null&&u!==i);c===null?o=s:c.next=l,mt(s,t.memoizedState)||(_e=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=c,n.lastRenderedState=s}if(e=n.interleaved,e!==null){r=e;do i=r.lane,oe.lanes|=i,Ln|=i,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wa(e){var t=at(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var s=n.dispatch,r=n.pending,i=t.memoizedState;if(r!==null){n.pending=null;var o=r=r.next;do i=e(i,o.action),o=o.next;while(o!==r);mt(i,t.memoizedState)||(_e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function qp(){}function Zp(e,t){var n=oe,s=at(),r=t(),i=!mt(s.memoizedState,r);if(i&&(s.memoizedState=r,_e=!0),s=s.queue,_c(tm.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||xe!==null&&xe.memoizedState.tag&1){if(n.flags|=2048,Ar(9,em.bind(null,n,s,r,t),void 0,null),Se===null)throw Error(T(349));Mn&30||Jp(n,t,r)}return r}function Jp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function em(e,t,n,s){t.value=n,t.getSnapshot=s,nm(t)&&sm(e)}function tm(e,t,n){return n(function(){nm(t)&&sm(e)})}function nm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mt(e,n)}catch{return!0}}function sm(e){var t=Ft(e,1);t!==null&&pt(t,e,1,-1)}function Sd(e){var t=wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pr,lastRenderedState:e},t.queue=e,e=e.dispatch=G0.bind(null,oe,e),[t.memoizedState,e]}function Ar(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function rm(){return at().memoizedState}function Li(e,t,n,s){var r=wt();oe.flags|=e,r.memoizedState=Ar(1|t,n,void 0,s===void 0?null:s)}function To(e,t,n,s){var r=at();s=s===void 0?null:s;var i=void 0;if(me!==null){var o=me.memoizedState;if(i=o.destroy,s!==null&&Dc(s,o.deps)){r.memoizedState=Ar(t,n,i,s);return}}oe.flags|=e,r.memoizedState=Ar(1|t,n,i,s)}
vendor: 4,337 bytes, line 38
38function jd(e,t){return Li(8390656,8,e,t)}function _c(e,t){return To(2048,8,e,t)}function im(e,t){return To(4,2,e,t)}function om(e,t){return To(4,4,e,t)}function am(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lm(e,t,n){return n=n!=null?n.concat([e]):null,To(4,4,am.bind(null,t,e),n)}function Oc(){}function cm(e,t){var n=at();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Dc(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function um(e,t){var n=at();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Dc(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function dm(e,t,n){return Mn&21?(mt(n,t)||(n=gp(),oe.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_e=!0),e.memoizedState=n)}function U0(e,t){var n=q;q=n!==0&&4>n?n:4,e(!0);var s=va.transition;va.transition={};try{e(!1),t()}finally{q=n,va.transition=s}}function fm(){return at().memoizedState}function H0(e,t,n){var s=rn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},hm(e))pm(t,n);else if(n=Yp(e,t,n,s),n!==null){var r=Le();pt(n,e,s,r),mm(n,t,s)}}function G0(e,t,n){var s=rn(e),r={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(hm(e))pm(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(r.hasEagerState=!0,r.eagerState=l,mt(l,o)){var c=t.interleaved;c===null?(r.next=r,Pc(t)):(r.next=c.next,c.next=r),t.interleaved=r;return}}catch{}finally{}n=Yp(e,t,r,s),n!==null&&(r=Le(),pt(n,e,s,r),mm(n,t,s))}}function hm(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function pm(e,t){rr=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mm(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,mc(e,n)}}var oo={readContext:ot,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},K0={readContext:ot,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:jd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,am.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=wt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=H0.bind(null,oe,e),[s.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:Sd,useDebugValue:Oc,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=Sd(!1),t=e[0];return e=U0.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=oe,r=wt();if(te){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Se===null)throw Error(T(349));Mn&30||Jp(s,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,jd(tm.bind(null,s,i,e),[e]),s.flags|=2048,Ar(9,em.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=wt(),t=Se.identifierPrefix;if(te){var n=It,s=Dt;n=(s&~(1<<32-ht(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=W0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Y0={readContext:ot,useCallback:cm,useContext:ot,useEffect:_c,useImperativeHandle:lm,useInsertionEffect:im,useLayoutEffect:om,useMemo:um,useReducer:xa,useRef:rm,useState:function(){return xa(Pr)},useDebugValue:Oc,useDeferredValue:function(e){var t=at();return dm(t,me.memoizedState,e)},useTransition:function(){var e=xa(Pr)[0],t=at().memoizedState;return[e,t]},useMutableSource:qp,useSyncExternalStore:Zp,useId:fm,unstable_isNewReconciler:!1},X0={readContext:ot,useCallback:cm,useContext:ot,useEffect:_c,useImperativeHandle:lm,useInsertionEffect:im,useLayoutEffect:om,useMemo:um,useReducer:wa,useRef
vendor: 4,343 bytes, lines 38-40
38:rm,useState:function(){return wa(Pr)},useDebugValue:Oc,useDeferredValue:function(e){var t=at();return me===null?t.memoizedState=e:dm(t,me.memoizedState,e)},useTransition:function(){var e=wa(Pr)[0],t=at().memoizedState;return[e,t]},useMutableSource:qp,useSyncExternalStore:Zp,useId:fm,unstable_isNewReconciler:!1};function ut(e,t){if(e&&e.defaultProps){t=ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Sl(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Po={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Le(),r=rn(e),i=Vt(s,r);i.payload=t,n!=null&&(i.callback=n),t=nn(e,i,r),t!==null&&(pt(t,e,r,s),Ai(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Le(),r=rn(e),i=Vt(s,r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=nn(e,i,r),t!==null&&(pt(t,e,r,s),Ai(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),s=rn(e),r=Vt(n,s);r.tag=2,t!=null&&(r.callback=t),t=nn(e,r,s),t!==null&&(pt(t,e,s,n),Ai(t,e,s))}};function bd(e,t,n,s,r,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,o):t.prototype&&t.prototype.isPureReactComponent?!jr(n,s)||!jr(r,i):!0}function gm(e,t,n){var s=!1,r=ln,i=t.contextType;return typeof i=="object"&&i!==null?i=ot(i):(r=Fe(t)?Pn:Ae.current,s=t.contextTypes,i=(s=s!=null)?fs(e,r):ln),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function kd(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function jl(e,t,n,s){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Ac(e);var i=t.contextType;typeof i=="object"&&i!==null?r.context=ot(i):(i=Fe(t)?Pn:Ae.current,r.context=fs(e,i)),r.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Sl(e,t,i,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Po.enqueueReplaceState(r,r.state,null),so(e,n,r,s),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function gs(e,t){try{var n="",s=t;do n+=bv(s),s=s.return;while(s);var r=n}catch(i){r=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:r,digest:null}}function Sa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Q0=typeof WeakMap=="function"?WeakMap:Map;function ym(e,t,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){lo||(lo=!0,Rl=s),bl(e,t)},n}function vm(e,t,n){n=Vt(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var r=t.value;n.payload=function(){return s(r)},n.callback=function(){bl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){bl(e,t),typeof s!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Cd(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Q0;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(n)||(r.add(n),e=u1.bind(null,e,t,n),t.then(e,e))}function Ed(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Nd(e,t,n,s,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vt(-1,1),t.tag=2,nn(n,t,1))),n.lanes|=1),e)}var q0=zt.ReactCurrentOwner,_e=!1;
vendor: 9,040 bytes, line 40
40function Me(e,t,n,s){t.child=e===null?Kp(t,null,n,s):ps(t,e.child,n,s)}function Td(e,t,n,s,r){n=n.render;var i=t.ref;return cs(t,r),s=Ic(e,t,n,s,i,r),n=Vc(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Bt(e,t,r)):(te&&n&&bc(t),t.flags|=1,Me(e,t,s,r),t.child)}function Pd(e,t,n,s,r){if(e===null){var i=n.type;return typeof i=="function"&&!Gc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,xm(e,t,i,s,r)):(e=Vi(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&r)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:jr,n(o,s)&&e.ref===t.ref)return Bt(e,t,r)}return t.flags|=1,e=on(i,s),e.ref=t.ref,e.return=t,t.child=e}function xm(e,t,n,s,r){if(e!==null){var i=e.memoizedProps;if(jr(i,s)&&e.ref===t.ref)if(_e=!1,t.pendingProps=s=i,(e.lanes&r)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,Bt(e,t,r)}return kl(e,t,n,s,r)}function wm(e,t,n){var s=t.pendingProps,r=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Jn,He),He|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Z(Jn,He),He|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,Z(Jn,He),He|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,Z(Jn,He),He|=s;return Me(e,t,r,n),t.child}function Sm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kl(e,t,n,s,r){var i=Fe(n)?Pn:Ae.current;return i=fs(t,i),cs(t,r),n=Ic(e,t,n,s,i,r),s=Vc(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Bt(e,t,r)):(te&&s&&bc(t),t.flags|=1,Me(e,t,n,r),t.child)}function Ad(e,t,n,s,r){if(Fe(n)){var i=!0;Zi(t)}else i=!1;if(cs(t,r),t.stateNode===null)Ri(e,t),gm(t,n,s),jl(t,n,s,r),s=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=ot(u):(u=Fe(n)?Pn:Ae.current,u=fs(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==s||c!==u)&&kd(t,o,s,u),Kt=!1;var f=t.memoizedState;o.state=f,so(t,s,o,r),c=t.memoizedState,l!==s||f!==c||Oe.current||Kt?(typeof d=="function"&&(Sl(t,n,d,s),c=t.memoizedState),(l=Kt||bd(t,n,l,s,f,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),o.props=s,o.state=c,o.context=u,s=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{o=t.stateNode,Xp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ut(t.type,l),o.props=u,h=t.pendingProps,f=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=ot(c):(c=Fe(n)?Pn:Ae.current,c=fs(t,c));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&kd(t,o,s,c),Kt=!1,f=t.memoizedState,o.state=f,so(t,s,o,r);var g=t.memoizedState;l!==h||f!==g||Oe.current||Kt?(typeof v=="function"&&(Sl(t,n,v,s),g=t.memoizedState),(u=Kt||bd(t,n,u,s,f,g,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,g,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,g,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=g),o.props=s,o.state=g,o.context=c,s=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),s=!1)}return Cl(e,t,n,s,i,r)}function Cl(e,t,n,s,r,i){Sm(e,t);var o=(t.flags&128)!==0;if(!s&&!o)return r&&md(t,n,!1),Bt(e,t,i);s=t.stateNode,q0.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&o?(t.child=ps(t,e.child,null,i),t.child=ps(t,null,l,i)):Me(e,t,l,i),t.memoizedState=s.state,r&&md(t,n,!0),t.child}function jm(e){var t=e.stateNode;t.pendingContext?pd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pd(e,t.context,!1),Mc(e,t.containerInfo)}function Md(e,t,n,s,r){return hs(),Cc(r),t.flags|=256,Me(e,t,n,s),t.child}var El={dehydrated:null,treeContext:null,retryLane:0};function Nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function bm(e,t,n){var s=t.pendingProps,r=ie.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(r&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),Z(ie,r&1),e===null)return xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=s.children,e=s.fallback,i?(s=t.mode,i=t.child,o={mode:"hidden",children:o},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Lo(o,s,0,null),e=Nn(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Nl(n),t.memoizedState=El,e):Fc(t,o));if(r=e.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return Z0(e,t,o,s,l,r,n);if(i){i=s.fallback,o=t.mode,r=e.child,l=r.sibling;var c={mode:"hidden",children:s.children};return!(o&1)&&t.child!==r?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=on(r,c),s.subtreeFlags=r.subtreeFlags&14680064),l!==null?i=on(l,i):(i=Nn(i,o,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,o=e.child.memoizedState,o=o===null?Nl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=El,s}return i=e.child,e=i.sibling,s=on(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Fc(e,t){return t=Lo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function di(e,t,n,s){return s!==null&&Cc(s),ps(t,e.child,null,n),e=Fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z0(e,t,n,s,r,i,o){if(n)return t.flags&256?(t.flags&=-257,s=Sa(Error(T(422))),di(e,t,o,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,r=t.mode,s=Lo({mode:"visible",children:s.children},r,0,null),i=Nn(i,r,o,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&ps(t,e.child,null,o),t.child.memoizedState=Nl(o),t.memoizedState=El,i);if(!(t.mode&1))return di(e,t,o,null);if(r.data==="$!"){if(s=r.nextSibling&&r.nextSibling.dataset,s)var l=s.dgst;return s=l,i=Error(T(419)),s=Sa(i,s,void 0),di(e,t,o,s)}if(l=(o&e.childLanes)!==0,_e||l){if(s=Se,s!==null){switch(o&-o){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(s.suspendedLanes|o)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,Ft(e,r),pt(s,e,r,-1))}return Hc(),s=Sa(Error(T(421))),di(e,t,o,s)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=d1.bind(null,e),r._reactRetry=t,null):(e=i.treeContext,Ge=tn(r.nextSibling),Ke=t,te=!0,ft=null,e!==null&&(tt[nt++]=Dt,tt[nt++]=It,tt[nt++]=An,Dt=e.id,It=e.overflow,An=t),t=Fc(t,s.children),t.flags|=4096,t)}function Ld(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),wl(e.return,t,n)}function ja(e,t,n,s,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=r)}function km(e,t,n){var s=t.pendingProps,r=s.revealOrder,i=s.tail;if(Me(e,t,s.children,n),s=ie.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ld(e,n,t);else if(e.tag===19)Ld(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}
vendor: 4,782 bytes, line 40
40if(Z(ie,s),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ja(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ro(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ja(t,!0,n,null,i);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ri(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=on(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=on(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function J0(e,t,n){switch(t.tag){case 3:jm(t),hs();break;case 5:Qp(t);break;case 1:Fe(t.type)&&Zi(t);break;case 4:Mc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,r=t.memoizedProps.value;Z(to,s._currentValue),s._currentValue=r;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Z(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?bm(e,t,n):(Z(ie,ie.current&1),e=Bt(e,t,n),e!==null?e.sibling:null);Z(ie,ie.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return km(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Z(ie,ie.current),s)break;return null;case 22:case 23:return t.lanes=0,wm(e,t,n)}return Bt(e,t,n)}var Cm,Tl,Em,Nm;Cm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tl=function(){};Em=function(e,t,n,s){var r=e.memoizedProps;if(r!==s){e=t.stateNode,kn(Ct.current);var i=null;switch(n){case"input":r=Qa(e,r),s=Qa(e,s),i=[];break;case"select":r=ae({},r,{value:void 0}),s=ae({},s,{value:void 0}),i=[];break;case"textarea":r=Ja(e,r),s=Ja(e,s),i=[];break;default:typeof r.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Qi)}tl(n,s);var o;n=null;for(u in r)if(!s.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var l=r[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(mr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in s){var c=s[u];if(l=r!=null?r[u]:void 0,s.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(mr.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&J("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Nm=function(e,t,n,s){n!==s&&(t.flags|=4)};function Vs(e,t){if(!te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&14680064,s|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function e1(e,t,n){var s=t.pendingProps;switch(kc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Fe(t.type)&&qi(),Ne(t),null;case 3:return s=t.stateNode,ms(),ee(Oe),ee(Ae),Rc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ci(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ft!==null&&(Vl(ft),ft=null))),Tl(e,t),Ne(t),null;case 5:Lc(t);var r=kn(Nr.current);if(n=t.type,e!==null&&t.stateNode!=null)Em(e,t,n,s,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);
vendor: 31,969 bytes, line 40
40else{if(!s){if(t.stateNode===null)throw Error(T(166));return Ne(t),null}if(e=kn(Ct.current),ci(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[jt]=t,s[Cr]=i,e=(t.mode&1)!==0,n){case"dialog":J("cancel",s),J("close",s);break;case"iframe":case"object":case"embed":J("load",s);break;case"video":case"audio":for(r=0;r<Xs.length;r++)J(Xs[r],s);break;case"source":J("error",s);break;case"img":case"image":case"link":J("error",s),J("load",s);break;case"details":J("toggle",s);break;case"input":zu(s,i),J("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},J("invalid",s);break;case"textarea":Wu(s,i),J("invalid",s)}tl(n,i),r=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?s.textContent!==l&&(i.suppressHydrationWarning!==!0&&li(s.textContent,l,e),r=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&li(s.textContent,l,e),r=["children",""+l]):mr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&J("scroll",s)}switch(n){case"input":ei(s),$u(s,i,!0);break;case"textarea":ei(s),Uu(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=Qi)}s=r,t.updateQueue=s,s!==null&&(t.flags|=4)}else{o=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=o.createElement(n,{is:s.is}):(e=o.createElement(n),n==="select"&&(o=e,s.multiple?o.multiple=!0:s.size&&(o.size=s.size))):e=o.createElementNS(e,n),e[jt]=t,e[Cr]=s,Cm(e,t,!1,!1),t.stateNode=e;e:{switch(o=nl(n,s),n){case"dialog":J("cancel",e),J("close",e),r=s;break;case"iframe":case"object":case"embed":J("load",e),r=s;break;case"video":case"audio":for(r=0;r<Xs.length;r++)J(Xs[r],e);r=s;break;case"source":J("error",e),r=s;break;case"img":case"image":case"link":J("error",e),J("load",e),r=s;break;case"details":J("toggle",e),r=s;break;case"input":zu(e,s),r=Qa(e,s),J("invalid",e);break;case"option":r=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},r=ae({},s,{value:void 0}),J("invalid",e);break;case"textarea":Wu(e,s),r=Ja(e,s),J("invalid",e);break;default:r=s}tl(n,r),l=r;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?rp(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&np(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&gr(e,c):typeof c=="number"&&gr(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(mr.hasOwnProperty(i)?c!=null&&i==="onScroll"&&J("scroll",e):c!=null&&cc(e,i,c,o))}switch(n){case"input":ei(e),$u(e,s,!1);break;case"textarea":ei(e),Uu(e);break;case"option":s.value!=null&&e.setAttribute("value",""+an(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?is(e,!!s.multiple,i,!1):s.defaultValue!=null&&is(e,!!s.multiple,s.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=Qi)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ne(t),null;case 6:if(e&&t.stateNode!=null)Nm(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(T(166));if(n=kn(Nr.current),kn(Ct.current),ci(t)){if(s=t.stateNode,n=t.memoizedProps,s[jt]=t,(i=s.nodeValue!==n)&&(e=Ke,e!==null))switch(e.tag){case 3:li(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&li(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[jt]=t,t.stateNode=s}return Ne(t),null;case 13:if(ee(ie),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(te&&Ge!==null&&t.mode&1&&!(t.flags&128))Hp(),hs(),t.flags|=98560,i=!1;else if(i=ci(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[jt]=t}else hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ne(t),i=!1}else ft!==null&&(Vl(ft),ft=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?ge===0&&(ge=3):Hc())),t.updateQueue!==null&&(t.flags|=4),Ne(t),null);case 4:return ms(),Tl(e,t),e===null&&br(t.stateNode.containerInfo),Ne(t),null;case 10:return Tc(t.type._context),Ne(t),null;case 17:return Fe(t.type)&&qi(),Ne(t),null;case 19:if(ee(ie),i=t.memoizedState,i===null)return Ne(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)Vs(i,!1);else{if(ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ro(e),o!==null){for(t.flags|=128,Vs(i,!1),s=o.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Z(ie,ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&fe()>ys&&(t.flags|=128,s=!0,Vs(i,!1),t.lanes=4194304)}else{if(!s)if(e=ro(o),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!te)return Ne(t),null}else 2*fe()-i.renderingStartTime>ys&&n!==1073741824&&(t.flags|=128,s=!0,Vs(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fe(),t.sibling=null,n=ie.current,Z(ie,s?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return Uc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?He&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function t1(e,t){switch(kc(t),t.tag){case 1:return Fe(t.type)&&qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ms(),ee(Oe),ee(Ae),Rc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lc(t),null;case 13:if(ee(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(ie),null;case 4:return ms(),null;case 10:return Tc(t.type._context),null;case 22:case 23:return Uc(),null;case 24:return null;default:return null}}var fi=!1,Pe=!1,n1=typeof WeakSet=="function"?WeakSet:Set,R=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){ue(e,t,s)}else n.current=null}function Pl(e,t,n){try{n()}catch(s){ue(e,t,s)}}var Rd=!1;function s1(e,t){if(fl=Ki,e=Lp(),jc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var v;h!==n||r!==0&&h.nodeType!==3||(l=o+r),h!==i||s!==0&&h.nodeType!==3||(c=o+s),h.nodeType===3&&(o+=h.nodeValue.length),(v=h.firstChild)!==null;)f=h,h=v;for(;;){if(h===e)break t;if(f===n&&++u===r&&(l=o),f===i&&++d===s&&(c=o),(v=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=v}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(hl={focusedElem:e,selectionRange:n},Ki=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,b=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:ut(t.type,w),b);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(j){ue(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return g=Rd,Rd=!1,g}function ir(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var r=s=s.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,i!==void 0&&Pl(t,n,i)}r=r.next}while(r!==s)}}function Ao(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Al(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Tm(e){var t=e.alternate;t!==null&&(e.alternate=null,Tm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Cr],delete t[gl],delete t[F0],delete t[B0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pm(e){return e.tag===5||e.tag===3||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ml(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(s!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}function Ll(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Ll(e,t,n),e=e.sibling;e!==null;)Ll(e,t,n),e=e.sibling}var je=null,dt=!1;function $t(e,t,n){for(n=n.child;n!==null;)Am(e,t,n),n=n.sibling}function Am(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(jo,n)}catch{}switch(n.tag){case 5:Pe||Zn(n,t);case 6:var s=je,r=dt;je=null,$t(e,t,n),je=s,dt=r,je!==null&&(dt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(dt?(e=je,n=n.stateNode,e.nodeType===8?ma(e.parentNode,n):e.nodeType===1&&ma(e,n),wr(e)):ma(je,n.stateNode));break;case 4:s=je,r=dt,je=n.stateNode.containerInfo,dt=!0,$t(e,t,n),je=s,dt=r;break;case 0:case 11:case 14:case 15:if(!Pe&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){r=s=s.next;do{var i=r,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Pl(n,t,o),r=r.next}while(r!==s)}$t(e,t,n);break;case 1:if(!Pe&&(Zn(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){ue(n,t,l)}$t(e,t,n);break;case 21:$t(e,t,n);break;case 22:n.mode&1?(Pe=(s=Pe)||n.memoizedState!==null,$t(e,t,n),Pe=s):$t(e,t,n);break;default:$t(e,t,n)}}function Id(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n1),t.forEach(function(s){var r=f1.bind(null,e,s);n.has(s)||(n.add(s),s.then(r,r))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=n[s];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:je=l.stateNode,dt=!1;break e;case 3:je=l.stateNode.containerInfo,dt=!0;break e;case 4:je=l.stateNode.containerInfo,dt=!0;break e}l=l.return}if(je===null)throw Error(T(160));Am(i,o,r),je=null,dt=!1;var c=r.alternate;c!==null&&(c.return=null),r.return=null}catch(u){ue(r,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mm(t,e),t=t.sibling}function Mm(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lt(t,e),vt(e),s&4){try{ir(3,e,e.return),Ao(3,e)}catch(w){ue(e,e.return,w)}try{ir(5,e,e.return)}catch(w){ue(e,e.return,w)}}break;case 1:lt(t,e),vt(e),s&512&&n!==null&&Zn(n,n.return);break;case 5:if(lt(t,e),vt(e),s&512&&n!==null&&Zn(n,n.return),e.flags&32){var r=e.stateNode;try{gr(r,"")}catch(w){ue(e,e.return,w)}}if(s&4&&(r=e.stateNode,r!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Jh(r,i),nl(l,o);var u=nl(l,i);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?rp(r,h):d==="dangerouslySetInnerHTML"?np(r,h):d==="children"?gr(r,h):cc(r,d,h,u)}switch(l){case"input":qa(r,i);break;case"textarea":ep(r,i);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?is(r,!!i.multiple,v,!1):f!==!!i.multiple&&(i.defaultValue!=null?is(r,!!i.multiple,i.defaultValue,!0):is(r,!!i.multiple,i.multiple?[]:"",!1))}r[Cr]=i}catch(w){ue(e,e.return,w)}}break;case 6:if(lt(t,e),vt(e),s&4){if(e.stateNode===null)throw Error(T(162));r=e.stateNode,i=e.memoizedProps;try{r.nodeValue=i}catch(w){ue(e,e.return,w)}}break;case 3:if(lt(t,e),vt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{wr(t.containerInfo)}catch(w){ue(e,e.return,w)}break;case 4:lt(t,e),vt(e);break;case 13:lt(t,e),vt(e),r=e.child,r.flags&8192&&(i=r.memoizedState!==null,r.stateNode.isHidden=i,!i||r.alternate!==null&&r.alternate.memoizedState!==null||($c=fe())),s&4&&Id(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||d,lt(t,e),Pe=u):lt(t,e),vt(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(h=R=d;R!==null;){switch(f=R,v=f.child,f.tag){case 0:case 11:case 14:case 15:ir(4,f,f.return);break;case 1:Zn(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){s=f,n=f.return;try{t=s,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(w){ue(s,n,w)}}break;case 5:Zn(f,f.return);break;case 22:if(f.memoizedState!==null){_d(h);continue}}v!==null?(v.return=f,R=v):_d(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{r=h.stateNode,u?(i=r.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=sp("display",o))}catch(w){ue(e,e.return,w)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(w){ue(e,e.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:lt(t,e),vt(e),s&4&&Id(e);break;case 21:break;default:lt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pm(n)){var s=n;break e}n=n.return}throw Error(T(160))}switch(s.tag){case 5:var r=s.stateNode;s.flags&32&&(gr(r,""),s.flags&=-33);var i=Dd(e);Ll(e,i,r);break;case 3:case 4:var o=s.stateNode.containerInfo,l=Dd(e);Ml(e,l,o);break;default:throw Error(T(161))}}catch(c){ue(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r1(e,t,n){R=e,Lm(e)}function Lm(e,t,n){for(var s=(e.mode&1)!==0;R!==null;){var r=R,i=r.child;if(r.tag===22&&s){var o=r.memoizedState!==null||fi;if(!o){var l=r.alternate,c=l!==null&&l.memoizedState!==null||Pe;l=fi;var u=Pe;if(fi=o,(Pe=c)&&!u)for(R=r;R!==null;)o=R,c=o.child,o.tag===22&&o.memoizedState!==null?Od(r):c!==null?(c.return=o,R=c):Od(r);for(;i!==null;)R=i,Lm(i),i=i.sibling;R=r,fi=l,Pe=u}Vd(e)}else r.subtreeFlags&8772&&i!==null?(i.return=r,R=i):Vd(e)}}function Vd(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||Ao(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Pe)if(n===null)s.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ut(t.type,n.memoizedProps);s.componentDidUpdate(r,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&wd(t,i,s);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wd(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&wr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Pe||t.flags&512&&Al(t)}catch(f){ue(t,t.return,f)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function _d(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Od(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ao(4,t)}catch(c){ue(t,n,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var r=t.return;try{s.componentDidMount()}catch(c){ue(t,r,c)}}var i=t.return;try{Al(t)}catch(c){ue(t,i,c)}break;case 5:var o=t.return;try{Al(t)}catch(c){ue(t,o,c)}}}catch(c){ue(t,t.return,c)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var i1=Math.ceil,ao=zt.ReactCurrentDispatcher,Bc=zt.ReactCurrentOwner,it=zt.ReactCurrentBatchConfig,K=0,Se=null,he=null,ke=0,He=0,Jn=hn(0),ge=0,Mr=null,Ln=0,Mo=0,zc=0,or=null,Ve=null,$c=0,ys=1/0,Lt=null,lo=!1,Rl=null,sn=null,hi=!1,qt=null,co=0,ar=0,Dl=null,Di=-1,Ii=0;function Le(){return K&6?fe():Di!==-1?Di:Di=fe()}function rn(e){return e.mode&1?K&2&&ke!==0?ke&-ke:$0.transition!==null?(Ii===0&&(Ii=gp()),Ii):(e=q,e!==0||(e=window.event,e=e===void 0?16:bp(e.type)),e):1}function pt(e,t,n,s){if(50<ar)throw ar=0,Dl=null,Error(T(185));Or(e,n,s),(!(K&2)||e!==Se)&&(e===Se&&(!(K&2)&&(Mo|=n),ge===4&&Xt(e,ke)),Be(e,s),n===1&&K===0&&!(t.mode&1)&&(ys=fe()+500,No&&pn()))}function Be(e,t){var n=e.callbackNode;$v(e,t);var s=Gi(e,e===Se?ke:0);if(s===0)n!==null&&Ku(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Ku(n),t===1)e.tag===0?z0(Fd.bind(null,e)):$p(Fd.bind(null,e)),_0(function(){!(K&6)&&pn()}),n=null;else{switch(yp(s)){case 1:n=pc;break;case 4:n=pp;break;case 16:n=Hi;break;case 536870912:n=mp;break;default:n=Hi}n=Bm(n,Rm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Rm(e,t){if(Di=-1,Ii=0,K&6)throw Error(T(327));var n=e.callbackNode;if(us()&&e.callbackNode!==n)return null;var s=Gi(e,e===Se?ke:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=uo(e,s);else{t=s;var r=K;K|=2;var i=Im();(Se!==e||ke!==t)&&(Lt=null,ys=fe()+500,En(e,t));do try{l1();break}catch(l){Dm(e,l)}while(!0);Nc(),ao.current=i,K=r,he!==null?t=0:(Se=null,ke=0,t=ge)}if(t!==0){if(t===2&&(r=al(e),r!==0&&(s=r,t=Il(e,r))),t===1)throw n=Mr,En(e,0),Xt(e,s),Be(e,fe()),n;if(t===6)Xt(e,s);else{if(r=e.current.alternate,!(s&30)&&!o1(r)&&(t=uo(e,s),t===2&&(i=al(e),i!==0&&(s=i,t=Il(e,i))),t===1))throw n=Mr,En(e,0),Xt(e,s),Be(e,fe()),n;switch(e.finishedWork=r,e.finishedLanes=s,t){case 0:case 1:throw Error(T(345));case 2:xn(e,Ve,Lt);break;case 3:if(Xt(e,s),(s&130023424)===s&&(t=$c+500-fe(),10<t)){if(Gi(e,0)!==0)break;if(r=e.suspendedLanes,(r&s)!==s){Le(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ml(xn.bind(null,e,Ve,Lt),t);break}xn(e,Ve,Lt);break;case 4:if(Xt(e,s),(s&4194240)===s)break;for(t=e.eventTimes,r=-1;0<s;){var o=31-ht(s);i=1<<o,o=t[o],o>r&&(r=o),s&=~i}if(s=r,s=fe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*i1(s/1960))-s,10<s){e.timeoutHandle=ml(xn.bind(null,e,Ve,Lt),s);break}xn(e,Ve,Lt);break;case 5:xn(e,Ve,Lt);break;default:throw Error(T(329))}}}return Be(e,fe()),e.callbackNode===n?Rm.bind(null,e):null}function Il(e,t){var n=or;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=uo(e,t),e!==2&&(t=Ve,Ve=n,t!==null&&Vl(t)),e}function Vl(e){Ve===null?Ve=e:Ve.push.apply(Ve,e)}function o1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var r=n[s],i=r.getSnapshot;r=r.value;try{if(!mt(i(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xt(e,t){for(t&=~zc,t&=~Mo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),s=1<<n;e[n]=-1,t&=~s}}function Fd(e){if(K&6)throw Error(T(327));us();var t=Gi(e,0);if(!(t&1))return Be(e,fe()),null;var n=uo(e,t);if(e.tag!==0&&n===2){var s=al(e);s!==0&&(t=s,n=Il(e,s))}if(n===1)throw n=Mr,En(e,0),Xt(e,t),Be(e,fe()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xn(e,Ve,Lt),Be(e,fe()),null}function Wc(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(ys=fe()+500,No&&pn())}}function Rn(e){qt!==null&&qt.tag===0&&!(K&6)&&us();var t=K;K|=1;var n=it.transition,s=q;try{if(it.transition=null,q=1,e)return e()}finally{q=s,it.transition=n,K=t,!(K&6)&&pn()}}function Uc(){He=Jn.current,ee(Jn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V0(n)),he!==null)for(n=he.return;n!==null;){var s=n;switch(kc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&qi();break;case 3:ms(),ee(Oe),ee(Ae),Rc();break;case 5:Lc(s);break;case 4:ms();break;case 13:ee(ie);break;case 19:ee(ie);break;case 10:Tc(s.type._context);break;case 22:case 23:Uc()}n=n.return}if(Se=e,he=e=on(e.current,null),ke=He=t,ge=0,Mr=null,zc=Mo=Ln=0,Ve=or=null,bn!==null){for(t=0;t<bn.length;t++)if(n=bn[t],s=n.interleaved,s!==null){n.interleaved=null;var r=s.next,i=n.pending;if(i!==null){var o=i.next;i.next=r,s.next=o}n.pending=s}bn=null}return e}function Dm(e,t){do{var n=he;try{if(Nc(),Mi.current=oo,io){for(var s=oe.memoizedState;s!==null;){var r=s.queue;r!==null&&(r.pending=null),s=s.next}io=!1}if(Mn=0,xe=me=oe=null,rr=!1,Tr=0,Bc.current=null,n===null||n.return===null){ge=1,Mr=t,he=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=ke,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Ed(o);if(v!==null){v.flags&=-257,Nd(v,o,l,i,t),v.mode&1&&Cd(i,u,t),t=v,c=u;var g=t.updateQueue;if(g===null){var w=new Set;w.add(c),t.updateQueue=w}else g.add(c);break e}else{if(!(t&1)){Cd(i,u,t),Hc();break e}c=Error(T(426))}}else if(te&&l.mode&1){var b=Ed(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Nd(b,o,l,i,t),Cc(gs(c,l));break e}}i=c=gs(c,l),ge!==4&&(ge=2),or===null?or=[i]:or.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=ym(i,c,t);xd(i,m);break e;case 1:l=c;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(sn===null||!sn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=vm(i,l,t);xd(i,j);break e}}i=i.return}while(i!==null)}_m(n)}catch(S){t=S,he===n&&n!==null&&(he=n=n.return);continue}break}while(!0)}function Im(){var e=ao.current;return ao.current=oo,e===null?oo:e}function Hc(){(ge===0||ge===3||ge===2)&&(ge=4),Se===null||!(Ln&268435455)&&!(Mo&268435455)||Xt(Se,ke)}function uo(e,t){var n=K;K|=2;var s=Im();(Se!==e||ke!==t)&&(Lt=null,En(e,t));do try{a1();break}catch(r){Dm(e,r)}while(!0);if(Nc(),K=n,ao.current=s,he!==null)throw Error(T(261));return Se=null,ke=0,ge}function a1(){for(;he!==null;)Vm(he)}function l1(){for(;he!==null&&!Rv();)Vm(he)}function Vm(e){var t=Fm(e.alternate,e,He);e.memoizedProps=e.pendingProps,t===null?_m(e):he=t,Bc.current=null}function _m(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=t1(n,t),n!==null){n.flags&=32767,he=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ge=6,he=null;return}}else if(n=e1(n,t,He),n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);ge===0&&(ge=5)}function xn(e,t,n){var s=q,r=it.transition;try{it.transition=null,q=1,c1(e,t,n,s)}finally{it.transition=r,q=s}return null}function c1(e,t,n,s){do us();while(qt!==null);if(K&6)throw Error(T(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Wv(e,i),e===Se&&(he=Se=null,ke=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hi||(hi=!0,Bm(Hi,function(){return us(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=it.transition,it.transition=null;var o=q;q=1;var l=K;K|=4,Bc.current=null,s1(e,n),Mm(n,e),P0(hl),Ki=!!fl,hl=fl=null,e.current=n,r1(n),Dv(),K=l,q=o,it.transition=i}else e.current=n;if(hi&&(hi=!1,qt=e,co=r),i=e.pendingLanes,i===0&&(sn=null),_v(n.stateNode),Be(e,fe()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],s(r.value,{componentStack:r.stack,digest:r.digest});if(lo)throw lo=!1,e=Rl,Rl=null,e;return co&1&&e.tag!==0&&us(),i=e.pendingLanes,i&1?e===Dl?ar++:(ar=0,Dl=e):ar=0,pn(),null}function us(){if(qt!==null){var e=yp(co),t=it.transition,n=q;try{if(it.transition=null,q=16>e?16:e,qt===null)var s=!1;else{if(e=qt,qt=null,co=0,K&6)throw Error(T(331));var r=K;for(K|=4,R=e.current;R!==null;){var i=R,o=i.child;if(R.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(R=u;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:ir(8,d,i)}var h=d.child;if(h!==null)h.return=d,R=h;else for(;R!==null;){d=R;var f=d.sibling,v=d.return;if(Tm(d),d===u){R=null;break}if(f!==null){f.return=v,R=f;break}R=v}}}var g=i.alternate;if(g!==null){var w=g.child;if(w!==null){g.child=null;do{var b=w.sibling;w.sibling=null,w=b}while(w!==null)}}R=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,R=o;else e:for(;R!==null;){if(i=R,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ir(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,R=m;break e}R=i.return}}var p=e.current;for(R=p;R!==null;){o=R;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,R=y;else e:for(o=p;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ao(9,l)}}catch(S){ue(l,l.return,S)}if(l===o){R=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,R=j;break e}R=l.return}}if(K=r,pn(),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(jo,e)}catch{}s=!0}return s}finally{q=n,it.transition=t}}return!1}function Bd(e,t,n){t=gs(n,t),t=ym(e,t,1),e=nn(e,t,1),t=Le(),e!==null&&(Or(e,1,t),Be(e,t))}function ue(e,t,n){if(e.tag===3)Bd(e,e,n);else for(;t!==null;){if(t.tag===3){Bd(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(sn===null||!sn.has(s))){e=gs(n,e),e=vm(t,e,1),t=nn(t,e,1),e=Le(),t!==null&&(Or(t,1,e),Be(t,e));break}}t=t.return}}function u1(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(ke&n)===n&&(ge===4||ge===3&&(ke&130023424)===ke&&500>fe()-$c?En(e,0):zc|=n),Be(e,t)}function Om(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Le();e=Ft(e,t),e!==null&&(Or(e,t,n),Be(e,n))}function d1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Om(e,n)}function f1(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(T(314))}s!==null&&s.delete(t),Om(e,n)}var Fm;Fm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,J0(e,t,n);_e=!!(e.flags&131072)}else _e=!1,te&&t.flags&1048576&&Wp(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Ri(e,t),e=t.pendingProps;var r=fs(t,Ae.current);cs(t,n),r=Ic(null,t,s,e,r,n);var i=Vc();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(s)?(i=!0,Zi(t)):i=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Ac(t),r.updater=Po,t.stateNode=r,r._reactInternals=t,jl(t,s,e,n),t=Cl(null,t,s,!0,i,n)):(t.tag=0,te&&i&&bc(t),Me(null,t,r,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Ri(e,t),e=t.pendingProps,r=s._init,s=r(s._payload),t.type=s,r=t.tag=p1(s),e=ut(s,e),r){case 0:t=kl(null,t,s,e,n);break e;case 1:t=Ad(null,t,s,e,n);break e;case 11:t=Td(null,t,s,e,n);break e;case 14:t=Pd(null,t,s,ut(s.type,e),n);break e}throw Error(T(306,s,""))}return t;case 0:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:ut(s,r),kl(e,t,s,r,n);case 1:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:ut(s,r),Ad(e,t,s,r,n);case 3:e:{if(jm(t),e===null)throw Error(T(387));s=t.pendingProps,i=t.memoizedState,r=i.element,Xp(e,t),so(t,s,null,n);var o=t.memoizedState;if(s=o.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){r=gs(Error(T(423)),t),t=Md(e,t,s,n,r);break e}else if(s!==r){r=gs(Error(T(424)),t),t=Md(e,t,s,n,r);break e}else for(Ge=tn(t.stateNode.containerInfo.firstChild),Ke=t,te=!0,ft=null,n=Kp(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hs(),s===r){t=Bt(e,t,n);break e}Me(e,t,s,n)}t=t.child}return t;case 5:return Qp(t),e===null&&xl(t),s=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,pl(s,r)?o=null:i!==null&&pl(s,i)&&(t.flags|=32),Sm(e,t),Me(e,t,o,n),t.child;case 6:return e===null&&xl(t),null;case 13:return bm(e,t,n);case 4:return Mc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ps(t,null,s,n):Me(e,t,s,n),t.child;case 11:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:ut(s,r),Td(e,t,s,r,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,r=t.pendingProps,i=t.memoizedProps,o=r.value,Z(to,s._currentValue),s._currentValue=o,i!==null)if(mt(i.value,o)){if(i.children===r.children&&!Oe.current){t=Bt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===s){if(i.tag===1){c=Vt(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),wl(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),wl(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Me(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,s=t.pendingProps.children,cs(t,n),r=ot(r),s=s(r),t.flags|=1,Me(e,t,s,n),t.child;case 14:return s=t.type,r=ut(s,t.pendingProps),r=ut(s.type,r),Pd(e,t,s,r,n);case 15:return xm(e,t,t.type,t.pendingProps,n);
vendor: 6,472 bytes, line 40
40case 17:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:ut(s,r),Ri(e,t),t.tag=1,Fe(s)?(e=!0,Zi(t)):e=!1,cs(t,n),gm(t,s,r),jl(t,s,r,n),Cl(null,t,s,!0,e,n);case 19:return km(e,t,n);case 22:return wm(e,t,n)}throw Error(T(156,t.tag))};function Bm(e,t){return hp(e,t)}function h1(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,s){return new h1(e,t,n,s)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p1(e){if(typeof e=="function")return Gc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dc)return 11;if(e===fc)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vi(e,t,n,s,r,i){var o=2;if(s=e,typeof e=="function")Gc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wn:return Nn(n.children,r,i,t);case uc:o=8,r|=8;break;case Ga:return e=rt(12,n,t,r|2),e.elementType=Ga,e.lanes=i,e;case Ka:return e=rt(13,n,t,r),e.elementType=Ka,e.lanes=i,e;case Ya:return e=rt(19,n,t,r),e.elementType=Ya,e.lanes=i,e;case Qh:return Lo(n,r,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yh:o=10;break e;case Xh:o=9;break e;case dc:o=11;break e;case fc:o=14;break e;case Gt:o=16,s=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=rt(o,n,t,r),t.elementType=e,t.type=s,t.lanes=i,t}function Nn(e,t,n,s){return e=rt(7,e,s,t),e.lanes=n,e}function Lo(e,t,n,s){return e=rt(22,e,s,t),e.elementType=Qh,e.lanes=n,e.stateNode={isHidden:!1},e}function ba(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function ka(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m1(e,t,n,s,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ra(0),this.expirationTimes=ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ra(0),this.identifierPrefix=s,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Kc(e,t,n,s,r,i,o,l,c){return e=new m1(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ac(i),e}function g1(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$n,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function zm(e){if(!e)return ln;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Fe(n))return zp(e,n,t)}return t}function $m(e,t,n,s,r,i,o,l,c){return e=Kc(n,s,!0,e,r,i,o,l,c),e.context=zm(null),n=e.current,s=Le(),r=rn(n),i=Vt(s,r),i.callback=t??null,nn(n,i,r),e.current.lanes=r,Or(e,r,s),Be(e,s),e}function Ro(e,t,n,s){var r=t.current,i=Le(),o=rn(r);return n=zm(n),t.context===null?t.context=n:t.pendingContext=n,t=Vt(i,o),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=nn(r,t,o),e!==null&&(pt(e,r,o,i),Ai(e,r,o)),o}function fo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yc(e,t){zd(e,t),(e=e.alternate)&&zd(e,t)}function y1(){return null}var Wm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}Do.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ro(e,t,null,null)};Do.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rn(function(){Ro(null,e,null,null)}),t[Ot]=null}};function Do(e){this._internalRoot=e}Do.prototype.unstable_scheduleHydration=function(e){if(e){var t=wp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yt.length&&t!==0&&t<Yt[n].priority;n++);Yt.splice(n,0,e),n===0&&jp(e)}};function Qc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $d(){}function v1(e,t,n,s,r){if(r){if(typeof s=="function"){var i=s;s=function(){var u=fo(o);i.call(u)}}var o=$m(t,s,e,0,null,!1,!1,"",$d);return e._reactRootContainer=o,e[Ot]=o.current,br(e.nodeType===8?e.parentNode:e),Rn(),o}for(;r=e.lastChild;)e.removeChild(r);if(typeof s=="function"){var l=s;s=function(){var u=fo(c);l.call(u)}}var c=Kc(e,0,!1,null,null,!1,!1,"",$d);return e._reactRootContainer=c,e[Ot]=c.current,br(e.nodeType===8?e.parentNode:e),Rn(function(){Ro(t,c,n,s)}),c}function Vo(e,t,n,s,r){var i=n._reactRootContainer;if(i){var o=i;if(typeof r=="function"){var l=r;r=function(){var c=fo(o);l.call(c)}}Ro(t,o,e,r)}else o=v1(n,t,e,r,s);return fo(o)}vp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ys(t.pendingLanes);n!==0&&(mc(t,n|1),Be(t,fe()),!(K&6)&&(ys=fe()+500,pn()))}break;case 13:Rn(function(){var s=Ft(e,1);if(s!==null){var r=Le();pt(s,e,1,r)}}),Yc(e,1)}};gc=function(e){if(e.tag===13){var t=Ft(e,134217728);if(t!==null){var n=Le();pt(t,e,134217728,n)}Yc(e,134217728)}};
vendor: 6,086 bytes, lines 40-48
40xp=function(e){if(e.tag===13){var t=rn(e),n=Ft(e,t);if(n!==null){var s=Le();pt(n,e,t,s)}Yc(e,t)}};wp=function(){return q};Sp=function(e,t){var n=q;try{return q=e,t()}finally{q=n}};rl=function(e,t,n){switch(t){case"input":if(qa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=Eo(s);if(!r)throw Error(T(90));Zh(s),qa(s,r)}}}break;case"textarea":ep(e,n);break;case"select":t=n.value,t!=null&&is(e,!!n.multiple,t,!1)}};ap=Wc;lp=Rn;var x1={usingClientEntryPoint:!1,Events:[Br,Kn,Eo,ip,op,Wc]},_s={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},w1={bundleType:_s.bundleType,version:_s.version,rendererPackageName:_s.rendererPackageName,rendererConfig:_s.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dp(e),e===null?null:e.stateNode},findFiberByHostInstance:_s.findFiberByHostInstance||y1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pi.isDisabled&&pi.supportsFiber)try{jo=pi.inject(w1),kt=pi}catch{}}Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x1;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qc(t))throw Error(T(200));return g1(e,t,null,n)};Qe.createRoot=function(e,t){if(!Qc(e))throw Error(T(299));var n=!1,s="",r=Wm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Kc(e,1,!1,null,null,n,!1,s,r),e[Ot]=t.current,br(e.nodeType===8?e.parentNode:e),new Xc(t)};Qe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=dp(t),e=e===null?null:e.stateNode,e};Qe.flushSync=function(e){return Rn(e)};Qe.hydrate=function(e,t,n){if(!Io(t))throw Error(T(200));return Vo(null,e,t,!0,n)};Qe.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(T(405));var s=n!=null&&n.hydratedSources||null,r=!1,i="",o=Wm;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=$m(t,null,e,1,n??null,r,!1,i,o),e[Ot]=t.current,br(e),s)for(e=0;e<s.length;e++)n=s[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Do(t)};Qe.render=function(e,t,n){if(!Io(t))throw Error(T(200));return Vo(null,e,t,!1,n)};Qe.unmountComponentAtNode=function(e){if(!Io(e))throw Error(T(40));return e._reactRootContainer?(Rn(function(){Vo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1};Qe.unstable_batchedUpdates=Wc;Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Io(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Vo(e,t,n,!1,s)};Qe.version="18.3.1-next-f1338f8080-20240426";function Um(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Um)}catch(e){console.error(e)}}Um(),Uh.exports=Qe;var _o=Uh.exports,Wd=_o;Ua.createRoot=Wd.createRoot,Ua.hydrateRoot=Wd.hydrateRoot;const Lr=x.createContext({});function ks(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Oo=x.createContext(null),Fo=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class S1 extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function j1({children:e,isPresent:t}){const n=x.useId(),s=x.useRef(null),r=x.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=x.useContext(Fo);return x.useInsertionEffect(()=>{const{width:o,height:l,top:c,left:u}=r.current;if(t||!s.current||!o||!l)return;s.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
41          [data-motion-pop-id="${n}"] {
42            position: absolute !important;
43            width: ${o}px !important;
44            height: ${l}px !important;
45            top: ${c}px !important;
46            left: ${u}px !important;
47          }
48        `),()=>{document.head.removeChild(d)}},[t]),a.jsx(S1,{isPresent:t,childRef:s,sizeRef:r,children:x.cloneElement(e,{ref:s})})}const b1=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o})=>{const l=ks(k1),c=x.useId(),u=x.useCallback(h=>{l.set(h,!0);for(const f of l.values())if(!f)return;s&&s()},[l,s]),d=x.useMemo(()=>({id:c,initial:t,isPresent:n,custom:r,onExitComplete:u,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),u]:[n,u]);return x.useMemo(()=>{l.forEach((h,f)=>l.set(f,!1))},[n]),x.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),o==="popLayout"&&(e=a.jsx(j1,{isPresent:n,children:e})),a.jsx(Oo.Provider,{value:d,children:e})};function k1(){return new Map}function Hm(e=!0){const t=x.useContext(Oo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=x.useId();x.useEffect(()=>{e&&r(i)},[e]);const o=x.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const mi=e=>e.key||"";function Ud(e){const t=[];
48return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const qc=typeof window<"u",$r=qc?x.useLayoutEffect:x.useEffect,cn=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1})=>{const[l,c]=Hm(o),u=x.useMemo(()=>Ud(e),[e]),d=o&&!l?[]:u.map(mi),h=x.useRef(!0),f=x.useRef(u),v=ks(()=>new Map),[g,w]=x.useState(u),[b,m]=x.useState(u);$r(()=>{h.current=!1,f.current=u;for(let j=0;j<b.length;j++){const S=mi(b[j]);d.includes(S)?v.delete(S):v.get(S)!==!0&&v.set(S,!1)}},[b,d.length,d.join("-")]);const p=[];if(u!==g){let j=[...u];for(let S=0;S<b.length;S++){const k=b[S],E=mi(k);d.includes(E)||(j.splice(S,0,k),p.push(k))}i==="wait"&&p.length&&(j=p),m(Ud(j)),w(u);return}const{forceRender:y}=x.useContext(Lr);return a.jsx(a.Fragment,{children:b.map(j=>{const S=mi(j),k=o&&!l?!1:u===b||d.includes(S),E=()=>{if(v.has(S))v.set(S,!0);else return;let C=!0;v.forEach(P=>{P||(C=!1)}),C&&(y==null||y(),m(f.current),o&&(c==null||c()),s&&s())};return a.jsx(b1,{isPresent:k,initial:!h.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:k?void 0:E,children:j},S)})})},C1=x.createContext(null);function E1(){const e=x.useRef(!1);return $r(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const Re=e=>e;let N1=Re,Gm=Re;function Zc(e){let t;return()=>(t===void 0&&(t=e()),t)}const un=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Et=e=>e*1e3,Nt=e=>e/1e3,T1={useManualTiming:!1};function P1(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(o)}const c={schedule:(u,d=!1,h=!1)=>{const v=h&&s?t:n;return d&&i.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(l),t.clear(),s=!1,r&&(r=!1,c.process(u))}};return c}const gi=["read","resolveKeyframes","update","preRender","render","postRender"],A1=40;function Km(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gi.reduce((m,p)=>(m[p]=P1(i),m),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:h,postRender:f}=o,v=()=>{const m=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(m-r.timestamp,A1),1),r.timestamp=m,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),h.process(r),f.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(v))},g=()=>{n=!0,s=!0,r.isProcessing||e(v)};return{schedule:gi.reduce((m,p)=>{const y=o[p];return m[p]=(j,S=!1,k=!1)=>(n||g(),y.schedule(j,S,k)),m},{}),cancel:m=>{for(let p=0;p<gi.length;p++)o[gi[p]].cancel(m)},state:r,steps:o}}const{schedule:X,cancel:gt,state:ve,steps:Ca}=Km(typeof requestAnimationFrame<"u"?requestAnimationFrame:Re,!0);function M1(){const e=E1(),[t,n]=x.useState(0),s=x.useCallback(()=>{e.current&&n(t+1)},[t]);return[x.useCallback(()=>X.postRender(s),[s]),t]}const L1=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Hd(){const e=new Set,t=new WeakMap,n=()=>e.forEach(L1);return{add:s=>{e.add(s),t.set(s,s.addEventListener("willUpdate",n))},remove:s=>{e.delete(s);const r=t.get(s);r&&(r(),t.delete(s)),n()},dirty:n}}const Ym=e=>e===!0,R1=e=>Ym(e===!0)||e==="id",D1=({children:e,id:t,inherit:n=!0})=>{const s=x.useContext(Lr),r=x.useContext(C1),[i,o]=M1(),l=x.useRef(null),c=s.id||r;l.current===null&&(R1(n)&&c&&(t=t?c+"-"+t:c),l.current={id:t,group:Ym(n)&&s.group||Hd()});const u=x.useMemo(()=>({...l.current,forceRender:i}),[o]);return a.jsx(Lr.Provider,{value:u,children:e})},Xm=x.createContext({strict:!1}),Gd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vs={};for(const e in Gd)vs[e]={isEnabled:t=>Gd[e].some(n=>!!t[n])};function I1(e){for(const t in e)vs[t]={...vs[t],...e[t]}}const V1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ho(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||V1.has(e)}let Qm=e=>!ho(e);function _1(e){e&&(Qm=t=>t.startsWith("on")?!ho(t):e(t))}try{_1(require("@emotion/is-prop-valid").default)}catch{}
vendor: 13,129 bytes, line 48
48function O1(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(Qm(r)||n===!0&&ho(r)||!t&&!ho(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function F1(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Bo=x.createContext({});function Rr(e){return typeof e=="string"||Array.isArray(e)}function zo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eu=["initial",...Jc];function $o(e){return zo(e.animate)||eu.some(t=>Rr(e[t]))}function qm(e){return!!($o(e)||e.variants)}function B1(e,t){if($o(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Rr(n)?n:void 0,animate:Rr(s)?s:void 0}}return e.inherit!==!1?t:{}}function z1(e){const{initial:t,animate:n}=B1(e,x.useContext(Bo));return x.useMemo(()=>({initial:t,animate:n}),[Kd(t),Kd(n)])}function Kd(e){return Array.isArray(e)?e.join(" "):e}const $1=Symbol.for("motionComponentSymbol");function es(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function W1(e,t,n){return x.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):es(n)&&(n.current=s))},[t])}const tu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),U1="framerAppearId",Zm="data-"+tu(U1),{schedule:nu}=Km(queueMicrotask,!1),Jm=x.createContext({});function H1(e,t,n,s,r){var i,o;const{visualElement:l}=x.useContext(Bo),c=x.useContext(Xm),u=x.useContext(Oo),d=x.useContext(Fo).reducedMotion,h=x.useRef(null);s=s||c.renderer,!h.current&&s&&(h.current=s(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,v=x.useContext(Jm);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&G1(h.current,n,r,v);const g=x.useRef(!1);x.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const w=n[Zm],b=x.useRef(!!w&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return $r(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),nu.render(f.render),b.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,w)}),b.current=!1))}),f}function G1(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:eg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||l&&es(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:u})}function eg(e){if(e)return e.options.allowProjection!==!1?e.projection:eg(e.parent)}function K1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&I1(e);function l(u,d){let h;const f={...x.useContext(Fo),...u,layoutId:Y1(u)},{isStatic:v}=f,g=z1(u),w=s(u,v);if(!v&&qc){X1();const b=Q1(f);h=b.MeasureLayout,g.visualElement=H1(r,w,f,t,b.ProjectionNode)}return a.jsxs(Bo.Provider,{value:g,children:[h&&g.visualElement?a.jsx(h,{visualElement:g.visualElement,...f}):null,n(r,u,W1(w,g.visualElement,d),w,v,g.visualElement)]})}l.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=x.forwardRef(l);return c[$1]=r,c}function Y1({layoutId:e}){const t=x.useContext(Lr).id;return t&&e!==void 0?t+"-"+e:e}function X1(e,t){x.useContext(Xm).strict}function Q1(e){const{drag:t,layout:n}=vs;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const q1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function su(e){return typeof e!="string"||e.includes("-")?!1:!!(q1.indexOf(e)>-1||/[A-Z]/u.test(e))}function Yd(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function ru(e,t,n,s){if(typeof t=="function"){const[r,i]=Yd(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Yd(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const _l=e=>Array.isArray(e),Z1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),J1=e=>_l(e)?e[e.length-1]||0:e,we=e=>!!(e&&e.getVelocity);function _i(e){const t=we(e)?e.get():e;return Z1(t)?t.toValue():t}function ex({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:tx(s,r,i,e),renderState:t()};return n&&(o.onMount=l=>n({props:s,current:l,...o}),o.onUpdate=l=>n(l)),o}const tg=e=>(t,n)=>{const s=x.useContext(Bo),r=x.useContext(Oo),i=()=>ex(e,t,s,r);return n?i():ks(i)};function tx(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=_i(i[f]);let{initial:o,animate:l}=e;const c=$o(e),u=qm(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!zo(h)){const f=Array.isArray(h)?h:[h];for(let v=0;v<f.length;v++){const g=ru(e,f[v]);if(g){const{transitionEnd:w,transition:b,...m}=g;for(const p in m){let y=m[p];if(Array.isArray(y)){const j=d?y.length-1:0;y=y[j]}y!==null&&(r[p]=y)}for(const p in w)r[p]=w[p]}}}return r}const Cs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(Cs),ng=e=>t=>typeof t=="string"&&t.startsWith(e),sg=ng("--"),nx=ng("var(--"),iu=e=>nx(e)?sx.test(e.split("/*")[0].trim()):!1,sx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,At=(e,t,n)=>n>t?t:n<e?e:n,Es={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dr={...Es,transform:e=>At(0,1,e)},yi={...Es,default:1},Wr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ut=Wr("deg"),Tt=Wr("%"),O=Wr("px"),rx=Wr("vh"),ix=Wr("vw"),Xd={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},ox={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},ax={rotate:Ut,rotateX:Ut,rotateY:Ut,rotateZ:Ut,scale:yi,scaleX:yi,scaleY:yi,scaleZ:yi,skew:Ut,skewX:Ut,skewY:Ut,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Dr,originX:Xd,originY:Xd,originZ:O},Qd={...Es,transform:Math.round},ou={...ox,...ax,zIndex:Qd,size:O,fillOpacity:Dr,strokeOpacity:Dr,numOctaves:Qd},lx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cx=Cs.length;function ux(e,t,n){let s="",r=!0;for(let i=0;i<cx;i++){const o=Cs[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=rg(l,ou[o]);if(!c){r=!1;const d=lx[o]||o;s+=`${d}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function au(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(Vn.has(c)){o=!0;continue}else if(sg(c)){r[c]=u;continue}else{const d=rg(u,ou[c]);c.startsWith("origin")?(l=!0,i[c]=d):s[c]=d}}if(t.transform||(o||n?s.transform=ux(t,e.transform,n):s.transform&&(s.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;s.transformOrigin=`${c} ${u} ${d}`}}const dx={offset:"stroke-dashoffset",array:"stroke-dasharray"},fx={offset:"strokeDashoffset",array:"strokeDasharray"};function hx(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?dx:fx;e[i.offset]=O.transform(-s);const o=O.transform(t),l=O.transform(n);e[i.array]=`${o} ${l}`}function qd(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function px(e,t,n){const s=qd(t,e.x,e.width),r=qd(n,e.y,e.height);return`${s} ${r}`}function lu(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,h){if(au(e,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:v,dimensions:g}=e;f.transform&&(g&&(v.transform=f.transform),delete f.transform),g&&(r!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=px(g,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&hx(f,o,l,c,!1)}const cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ig=()=>({...cu(),attrs:{}}),uu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function og(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const ag=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lg(e,t,n,s){og(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(ag.has(r)?r:tu(r),t.attrs[r])}const po={};function mx(e){Object.assign(po,e)}function cg(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!po[e]||e==="opacity")}function du(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(we(r[o])||t.style&&we(t.style[o])||cg(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function ug(e,t,n){const s=du(e,t,n);for(const r in e)if(we(e[r])||we(t[r])){const i=Cs.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function gx(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Zd=["x","y","width","height","cx","cy","r"],yx={useVisualState:tg({scrapeMotionValuesFromProps:ug,createRenderState:ig,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in r)if(Vn.has(l)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let l=0;l<Zd.length;l++){const c=Zd[l];e[c]!==t[c]&&(o=!0)}o&&X.read(()=>{gx(n,s),X.render(()=>{lu(s,r,uu(n.tagName),e.transformTemplate),lg(n,s)})})}})},vx={useVisualState:tg({scrapeMotionValuesFromProps:du,createRenderState:cu})};function dg(e,t,n){for(const s in t)!we(t[s])&&!cg(s,n)&&(e[s]=t[s])}function xx({transformTemplate:e},t){return x.useMemo(()=>{const n=cu();return au(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wx(e,t){const n=e.style||{},s={};return dg(s,n,e),Object.assign(s,xx(e,t)),s}function Sx(e,t){const n={},s=wx(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function jx(e,t,n,s){const r=x.useMemo(()=>{const i=ig();return lu(i,t,uu(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};dg(i,e.style,e),r.style={...i,...r.style}}return r}function bx(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(su(n)?jx:Sx)(s,i,o,n),u=O1(s,typeof n=="string",e),d=n!==x.Fragment?{...u,...c,ref:r}:{},{children:h}=s,f=x.useMemo(()=>we(h)?h.get():h,[h]);return x.createElement(n,{...d,children:f})}}function kx(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...su(s)?yx:vx,preloadedFeatures:e,useRender:bx(r),createVisualElement:t,Component:s};return K1(o)}}function fg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Wo(e,t,n){const s=e.getProps();return ru(s,t,n!==void 0?n:s.custom,e)}const hg=Zc(()=>window.ScrollTimeline!==void 0);class Cx{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(r=>{if(hg()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>
48{s.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class pg extends Cx{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function fu(e,t){return e?e[t]||e.default||e:void 0}const mo=2e4;function hu(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<mo;)t+=n,s=e.next(t);return t>=mo?1/0:t}function Ex(e,t=100,n){const s=n({...e,keyframes:[0,t]}),r=Math.min(hu(s),mo);return{type:"keyframes",ease:i=>s.next(r*i).value/t,duration:Nt(r)}}function Uo(e){return typeof e=="function"}function Jd(e,t){e.timeline=t,e.onfinish=null}const pu=e=>Array.isArray(e)&&typeof e[0]=="number",Nx={linearEasing:void 0};function Tx(e,t){const n=Zc(e);return()=>{var s;return(s=Nx[t])!==null&&s!==void 0?s:n()}}const go=Tx(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 12,241 bytes, line 48
48,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mg=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=e(un(0,r-1,i))+", ";return`linear(${s.substring(0,s.length-2)})`};function gg(e){return!!(typeof e=="function"&&go()||!e||typeof e=="string"&&(e in Ol||go())||pu(e)||Array.isArray(e)&&e.every(gg))}const Qs=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Ol={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qs([0,.65,.55,1]),circOut:Qs([.55,0,1,.45]),backIn:Qs([.31,.01,.66,-.59]),backOut:Qs([.33,1.53,.69,.99])};function yg(e,t){if(e)return typeof e=="function"&&go()?mg(e,t):pu(e)?Qs(e):Array.isArray(e)?e.map(n=>yg(n,t)||Ol.easeOut):Ol[e]}const ct={x:!1,y:!1};function vg(){return ct.x||ct.y}function Ho(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=n==null?void 0:n[e])!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function xg(e,t){const n=Ho(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function ef(e){return t=>{t.pointerType==="touch"||vg()||e(t)}}function Px(e,t,n={}){const[s,r,i]=xg(e,n),o=ef(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=ef(h=>{u(h),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,r)});return s.forEach(l=>{l.addEventListener("pointerenter",o,r)}),i}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,mu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ax=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Mx(e){return Ax.has(e.tagName)||e.tabIndex!==-1}const qs=new WeakSet;function tf(e){return t=>{t.key==="Enter"&&e(t)}}function Ea(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Lx=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=tf(()=>{if(qs.has(n))return;Ea(n,"down");const r=tf(()=>{Ea(n,"up")}),i=()=>Ea(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function nf(e){return mu(e)&&!vg()}function Rx(e,t,n={}){const[s,r,i]=xg(e,n),o=l=>{const c=l.currentTarget;if(!nf(l)||qs.has(c))return;qs.add(c);const u=t(l),d=(v,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!nf(v)||!qs.has(c))&&(qs.delete(c),typeof u=="function"&&u(v,{success:g}))},h=v=>{d(v,n.useGlobalTarget||wg(c,v.target))},f=v=>{d(v,!1)};window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",f,r)};return s.forEach(l=>{!Mx(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,r),l.addEventListener("focus",u=>Lx(u,r),r)}),i}function Dx(e){return e==="x"||e==="y"?ct[e]?null:(ct[e]=!0,()=>{ct[e]=!1}):ct.x||ct.y?null:(ct.x=ct.y=!0,()=>{ct.x=ct.y=!1})}const Sg=new Set(["width","height","top","left","right","bottom",...Cs]);let Oi;function Ix(){Oi=void 0}const Pt={now:()=>(Oi===void 0&&Pt.set(ve.isProcessing||T1.useManualTiming?ve.timestamp:performance.now()),Oi),set:e=>{Oi=e,queueMicrotask(Ix)}};function gu(e,t){e.indexOf(t)===-1&&e.push(t)}function Go(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class yu{constructor(){this.subscriptions=[]}add(t){return gu(this.subscriptions,t),()=>Go(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vu(e,t){return t?e*(1e3/t):0}const sf=30,Vx=e=>!isNaN(parseFloat(e)),lr={current:void 0};class _x{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=Pt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Pt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Vx(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yu);const s=this.events[t].add(n);return t==="change"?()=>{s(),X.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return lr.current&&lr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Pt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sf);return vu(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bt(e,t){return new _x(e,t)}function Ox(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bt(n))}function Fx(e,t){const n=Wo(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const l=J1(i[o]);Ox(e,o,l)}}function Bx(e){return!!(we(e)&&e.add)}function Fl(e,t){const n=e.getValue("willChange");if(Bx(n))return n.add(t)}function jg(e){return e.props[Zm]}const bg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zx=1e-7,$x=12;function Wx(e,t,n,s,r){let i,o,l=0;do o=t+(n-t)/2,i=bg(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>zx&&++l<$x);return o}function Ur(e,t,n,s){if(e===t&&n===s)return Re;const r=i=>Wx(i,0,1,e,n);return i=>i===0||i===1?i:bg(r(i),t,s)}const kg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cg=e=>t=>1-e(1-t),Eg=Ur(.33,1.53,.69,.99),xu=Cg(Eg),Ng=kg(xu),Tg=e=>(e*=2)<1?.5*xu(e):.5*(2-Math.pow(2,-10*(e-1))),wu=e=>1-Math.sin(Math.acos(e)),Pg=Cg(wu),Ag=kg(wu),Mg=e=>/^0[^.\s]+$/u.test(e);function Ux(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Mg(e):!0}const cr=e=>Math.round(e*1e5)/1e5,Su=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hx(e){return e==null}const Gx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ju=(e,t)=>n=>!!(typeof n=="string"&&Gx.test(n)&&n.startsWith(e)||t&&!Hx(n)&&Object.prototype.hasOwnProperty.call(n,t)),Lg=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,l]=s.match(Su);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Kx=e=>At(0,255,e),Na={...Es,transform:e=>Math.round(Kx(e))},Cn={test:ju("rgb","red"),parse:Lg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Na.transform(e)+", "+Na.transform(t)+", "+Na.transform(n)+", "+cr(Dr.transform(s))+")"};function Yx(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Bl={test:ju("#"),parse:Yx,transform:Cn.transform},ts={test:ju("hsl","hue"),parse:Lg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Tt.transform(cr(t))+", "+Tt.transform(cr(n))+", "+cr(Dr.transform(s))+")"},Te={test:e=>Cn.test(e)||Bl.test(e)||ts.test(e),parse:e=>Cn.test(e)?Cn.parse(e):ts.test(e)?ts.parse(e):Bl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Cn.transform(e):ts.transform(e)},Xx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qx(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Su))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Xx))===null||n===void 0?void 0:n.length)||0)>0}const Rg="number",Dg="color",qx="var",Zx="var(",rf="${}",Jx=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ir(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(Jx,c=>(Te.test(c)?(s.color.push(i),r.push(Dg),n.push(Te.parse(c))):c.startsWith(Zx)?(s.var.push(i),r.push(qx),n.push(c)):(s.number.push(i),r.push(Rg),n.push(parseFloat(c))),++i,rf)).split(rf);return{values:n,split:l,indexes:s,types:r}}function Ig(e){return Ir(e).values}function Vg(e){const{split:t,types:n}=Ir(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const l=n[o];l===Rg?i+=cr(r[o]):l===Dg?i+=Te.transform(r[o]):i+=r[o]}return i}}const ew=e=>typeof e=="number"?0:e;function tw(e){const t=Ig(e);return Vg(e)(t.map(ew))}const dn={test:Qx,parse:Ig,createTransformer:Vg,getAnimatableNone:tw},nw=new Set(["brightness","contrast","saturate","opacity"]);function sw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Su)||[];if(!s)return e;const r=n.replace(s,"");let i=nw.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const rw=/\b([a-z-]*)\(.*?\)/gu,zl={...dn,getAnimatableNone:e=>{const t=e.match(rw);return t?t.map(sw).join(" "):e}},iw={...ou,color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:zl,WebkitFilter:zl},bu=e=>iw[e];function _g(e,t){let n=bu(e);return n!==zl&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ow=new Set(["auto","none","0"]);function aw(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!ow.has(i)&&Ir(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=_g(n,r)}const of=e=>e===Es||e===O,af=(e,t)=>parseFloat(e.split(", ")[t]),lf=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return af(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?af(i[1],e):0}},lw=new Set(["x","y","z"]),cw=Cs.filter(e=>!lw.has(e));function uw(e){const t=[];return cw.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const xs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:lf(4,13),y:lf(5,14)};xs.translateX=xs.x;xs.translateY=xs.y;const Tn=new Set;let $l=!1,Wl=!1;function Og(){if(Wl){const e=Array.from(Tn).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=uw(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var l;(l=s.getValue(i))===null||l===void 0||l.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}
vendor: 13,792 bytes, line 48
48Wl=!1,$l=!1,Tn.forEach(e=>e.complete()),Tn.clear()}function Fg(){Tn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wl=!0)})}function dw(){Fg(),Og()}class ku{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Tn.add(this),$l||($l=!0,X.read(Fg),X.resolveKeyframes(Og))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=r==null?void 0:r.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const c=s.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),r&&o===void 0&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Tn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Tn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Bg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hw(e){const t=fw.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function zg(e,t,n=1){const[s,r]=hw(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Bg(o)?parseFloat(o):o}return iu(r)?zg(r,t,n+1):r}const $g=e=>t=>t.test(e),pw={test:e=>e==="auto",parse:e=>e},Wg=[Es,O,Tt,Ut,ix,rx,pw],cf=e=>Wg.find($g(e));class Ug extends ku{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),iu(u))){const d=zg(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Sg.has(s)||t.length!==2)return;const[r,i]=t,o=cf(r),l=cf(i);if(o!==l)if(of(o)&&of(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let r=0;r<t.length;r++)Ux(t[r])&&s.push(r);s.length&&aw(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xs[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const i=n.getValue(s);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=xs[s](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const uf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function mw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gw(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=uf(r,t),l=uf(i,t);return!o||!l?!1:mw(e)||(n==="spring"||Uo(n))&&s}const yw=e=>e!==null;function Ko(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(yw),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const vw=40;class Hg{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Pt.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>vw?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&dw(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Pt.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!gw(t,s,r,i))if(o)this.options.duration=0;else{c&&c(Ko(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ne=(e,t,n)=>e+(t-e)*n;function Ta(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xw({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=Ta(c,l,e+1/3),i=Ta(c,l,e),o=Ta(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function yo(e,t){return n=>n>0?t:e}const Pa=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},ww=[Bl,Cn,ts],Sw=e=>ww.find(t=>t.test(e));function df(e){const t=Sw(e);if(!t)return!1;let n=t.parse(e);return t===ts&&(n=xw(n)),n}const ff=(e,t)=>{const n=df(e),s=df(t);if(!n||!s)return yo(e,t);const r={...n};return i=>(r.red=Pa(n.red,s.red,i),r.green=Pa(n.green,s.green,i),r.blue=Pa(n.blue,s.blue,i),r.alpha=ne(n.alpha,s.alpha,i),Cn.transform(r))},jw=(e,t)=>n=>t(e(n)),Hr=(...e)=>e.reduce(jw),Ul=new Set(["none","hidden"]);function bw(e,t){return Ul.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kw(e,t){return n=>ne(e,t,n)}function Cu(e){return typeof e=="number"?kw:typeof e=="string"?iu(e)?yo:Te.test(e)?ff:Nw:Array.isArray(e)?Gg:typeof e=="object"?Te.test(e)?ff:Cw:yo}function Gg(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>Cu(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function Cw(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=Cu(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function Ew(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][r[o]],c=(n=e.values[l])!==null&&n!==void 0?n:0;s[i]=c,r[o]++}return s}const Nw=(e,t)=>{const n=dn.createTransformer(t),s=Ir(e),r=Ir(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Ul.has(e)&&!r.values.length||Ul.has(t)&&!s.values.length?bw(e,t):Hr(Gg(Ew(s,r),r.values),n):yo(e,t)};function Kg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Cu(e)(e,t)}const Tw=5;function Yg(e,t,n){const s=Math.max(t-Tw,0);return vu(n-e(s),t-s)}const ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Aa=.001;function Pw({duration:e=ce.duration,bounce:t=ce.bounce,velocity:n=ce.velocity,mass:s=ce.mass}){let r,i,o=1-t;o=At(ce.minDamping,ce.maxDamping,o),e=At(ce.minDuration,ce.maxDuration,Nt(e)),o<1?(r=u=>{const d=u*o,h=d*e,f=d-n,v=Hl(u,o),g=Math.exp(-h);return Aa-f/v*g},i=u=>{const h=u*o*e,f=h*n+n,v=Math.pow(o,2)*Math.pow(u,2)*e,g=Math.exp(-h),w=Hl(Math.pow(u,2),o);return(-r(u)+Aa>0?-1:1)*((f-v)*g)/w}):(r=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-Aa+d*h},i=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=Mw(r,i,l);if(e=Et(e),isNaN(c))return{stiffness:ce.stiffness,damping:ce.damping,duration:e};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const Aw=12;function Mw(e,t,n){let s=n;for(let r=1;r<Aw;r++)s=s-e(s)/t(s);return s}function Hl(e,t){return e*Math.sqrt(1-t*t)}const Lw=["duration","bounce"],Rw=["stiffness","damping","mass"];function hf(e,t){return t.some(n=>e[n]!==void 0)}function Dw(e){let t={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...e};if(!hf(e,Rw)&&hf(e,Lw))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*At(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ce.mass,stiffness:r,damping:i}}else{const n=Pw(e);t={...t,...n,mass:ce.mass},t.isResolvedFromDuration=!0}return t}function Eu(e=ce.visualDuration,t=ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:v}=Dw({...n,velocity:-Nt(n.velocity||0)}),g=f||0,w=u/(2*Math.sqrt(c*d)),b=o-i,m=Nt(Math.sqrt(c/d)),p=Math.abs(b)<5;s||(s=p?ce.restSpeed.granular:ce.restSpeed.default),r||(r=p?ce.restDelta.granular:ce.restDelta.default);let y;if(w<1){const S=Hl(m,w);y=k=>{const E=Math.exp(-w*m*k);return o-E*((g+w*m*b)/S*Math.sin(S*k)+b*Math.cos(S*k))}}else if(w===1)y=S=>o-Math.exp(-m*S)*(b+(g+m*b)*S);else{const S=m*Math.sqrt(w*w-1);y=k=>{const E=Math.exp(-w*m*k),C=Math.min(S*k,300);return o-E*((g+w*m*b)*Math.sinh(C)+S*b*Math.cosh(C))/S}}const j={calculatedDuration:v&&h||null,next:S=>{const k=y(S);if(v)l.done=S>=h;else{let E=0;w<1&&(E=S===0?Et(g):Yg(y,S,k));const C=Math.abs(E)<=s,P=Math.abs(o-k)<=r;l.done=C&&P}return l.value=l.done?o:k,l},toString:()=>{const S=Math.min(hu(j),mo),k=mg(E=>j.next(S*E).value,S,30);return S+"ms "+k}};return j}function pf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},v=C=>l!==void 0&&C<l||c!==void 0&&C>c,g=C=>l===void 0?c:c===void 0||Math.abs(l-C)<Math.abs(c-C)?l:c;let w=n*t;const b=h+w,m=o===void 0?b:o(b);m!==b&&(w=m-h);const p=C=>-w*Math.exp(-C/s),y=C=>m+p(C),j=C=>{const P=p(C),A=y(C);f.done=Math.abs(P)<=u,f.value=f.done?m:A};let S,k;const E=C=>{v(f.value)&&(S=C,k=Eu({keyframes:[f.value,g(f.value)],velocity:Yg(y,C,f.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:C=>{let P=!1;return!k&&S===void 0&&(P=!0,j(C),E(C)),S!==void 0&&C>=S?k.next(C-S):(!P&&j(C),f)}}}const Iw=Ur(.42,0,1,1),Vw=Ur(0,0,.58,1),Xg=Ur(.42,0,.58,1),Qg=e=>Array.isArray(e)&&typeof e[0]!="number",_w={linear:Re,easeIn:Iw,easeInOut:Xg,easeOut:Vw,circIn:wu,circInOut:Ag,circOut:Pg,backIn:xu,backInOut:Ng,backOut:Eg,anticipate:Tg},mf=e=>{if(pu(e)){Gm(e.length===4);const[t,n,s,r]=e;return Ur(t,n,s,r)}else if(typeof e=="string")return _w[e];return e};function Ow(e,t,n){const s=[],r=n||Kg,i=e.length-1;for(let o=0;o<i;o++){let l=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Re:t;l=Hr(c,l)}s.push(l)}return s}function Nu(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(Gm(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Ow(t,s,r),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=un(e[h],e[h+1],d);return l[h](f)};return n?d=>u(At(e[0],e[i-1],d)):u}function qg(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=un(0,t,s);e.push(ne(n,1,r))}}function Tu(e){const t=[0];return qg(t,e.length-1),t}function Fw(e,t){return e.map(n=>n*t)}function Bw(e,t){return e.map(()=>t||Xg).splice(0,e.length-1)}function vo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=Qg(s)?s.map(mf):mf(s),i={done:!1,value:t[0]},o=Fw(n&&n.length===t.length?n:Tu(t),e),l=Nu(o,t,{ease:Array.isArray(r)?r:Bw(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const zw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>gt(t),now:()=>ve.isProcessing?ve.timestamp:Pt.now()}},$w={decay:pf,inertia:pf,tween:vo,keyframes:vo,spring:Eu},Ww=e=>e/100;class Pu extends Hg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||ku,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(i,l,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,l=Uo(n)?n:$w[n]||vo;let c,u;l!==vo&&typeof t[0]!="number"&&(c=Hr(Ww,Kg(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=hu(d));const{calculatedDuration:h}=d,f=h+r,v=f*(s+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:f,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:h}=s;
vendor: 55,553 bytes, line 48
48if(this.startTime===null)return i.next(0);const{delay:f,repeat:v,repeatType:g,repeatDelay:w,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let y=this.currentTime,j=i;if(v){const C=Math.min(this.currentTime,d)/h;let P=Math.floor(C),A=C%1;!A&&C>=1&&(A=1),A===1&&P--,P=Math.min(P,v+1),!!(P%2)&&(g==="reverse"?(A=1-A,w&&(A-=w/h)):g==="mirror"&&(j=o)),y=At(0,1,A)*h}const S=p?{done:!1,value:c[0]}:j.next(y);l&&(S.value=l(S.value));let{done:k}=S;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&r!==void 0&&(S.value=Ko(c,this.options,r)),b&&b(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Nt(t.calculatedDuration):0}get time(){return Nt(this.currentTime)}set time(t){t=Et(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Nt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=zw,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Uw=new Set(["opacity","clipPath","filter","transform"]);function Hw(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=yg(l,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Gw=Zc(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xo=10,Kw=2e4;function Yw(e){return Uo(e.type)||e.type==="spring"||!gg(e.ease)}function Xw(e,t){const n=new Pu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&i<Kw;)s=n.sample(i),r.push(s.value),i+=xo;return{times:void 0,keyframes:r,duration:i-xo,ease:"linear"}}const Zg={anticipate:Tg,backInOut:Ng,circInOut:Ag};function Qw(e){return e in Zg}class gf extends Hg{constructor(t){super(t);const{name:n,motionValue:s,element:r,keyframes:i}=this.options;this.resolver=new Ug(i,(o,l)=>this.onKeyframesResolved(o,l),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&go()&&Qw(i)&&(i=Zg[i]),Yw(this.options)){const{onComplete:h,onUpdate:f,motionValue:v,element:g,...w}=this.options,b=Xw(t,w);t=b.keyframes,t.length===1&&(t[1]=t[0]),s=b.duration,r=b.times,i=b.ease,o="keyframes"}const d=Hw(l.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Jd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(Ko(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Nt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Nt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=Et(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Re;const{animation:s}=n;Jd(s,t)}return Re}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:h,element:f,...v}=this.options,g=new Pu({...v,keyframes:s,duration:r,type:i,ease:o,times:l,isGenerator:!0}),w=Et(this.time);u.setWithVelocity(g.sample(w-xo).value,g.sample(w).value,xo)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return Gw()&&s&&Uw.has(s)&&!c&&!u&&!r&&i!=="mirror"&&o!==0&&l!=="inertia"}}const qw={type:"spring",stiffness:500,damping:25,restSpeed:10},Zw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jw={type:"keyframes",duration:.8},e2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t2=(e,{keyframes:t})=>t.length>2?Jw:Vn.has(e)?e.startsWith("scale")?Zw(t[1]):qw:e2;function n2({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Au=(e,t,n,s={},r,i)=>o=>{const l=fu(s,e)||{},c=l.delay||s.delay||0;let{elapsed:u=0}=s;u=u-Et(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};n2(l)||(d={...d,...t2(e,d)}),d.duration&&(d.duration=Et(d.duration)),d.repeatDelay&&(d.repeatDelay=Et(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const f=Ko(d.keyframes,l);if(f!==void 0)return X.update(()=>{d.onUpdate(f),d.onComplete()}),new pg([])}return!i&&gf.supports(d)?new gf(d):new Pu(d)};function s2({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Mu(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;s&&(o=s);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const h in c){const f=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),v=c[h];if(v===void 0||d&&s2(d,h))continue;const g={delay:n,...fu(o||{},h)};let w=!1;if(window.MotionHandoffAnimation){const m=jg(e);if(m){const p=window.MotionHandoffAnimation(m,h,X);p!==null&&(g.startTime=p,w=!0)}}Fl(e,h),f.start(Au(h,f,v,e.shouldReduceMotion&&Sg.has(h)?{type:!1}:g,e,w));const b=f.animation;b&&u.push(b)}return l&&Promise.all(u).then(()=>{X.update(()=>{l&&Fx(e,l)})}),u}function Gl(e,t,n={}){var s;const r=Wo(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Mu(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return r2(e,t,d+u,h,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function r2(e,t,n=0,s=0,r=1,i){const o=[],l=(e.variantChildren.size-1)*s,c=r===1?(u=0)=>u*s:(u=0)=>l-u*s;return Array.from(e.variantChildren).sort(i2).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Gl(u,t,{...i,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function i2(e,t){return e.sortNodePosition(t)}function o2(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>Gl(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=Gl(e,t,n);else{const r=typeof t=="function"?Wo(e,t,n.custom):t;s=Promise.all(Mu(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const a2=eu.length;function Jg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Jg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<a2;n++){const s=eu[n],r=e.props[s];(Rr(r)||r===!1)&&(t[s]=r)}return t}const l2=[...Jc].reverse(),c2=Jc.length;function u2(e){return t=>Promise.all(t.map(({animation:n,options:s})=>o2(e,n,s)))}function d2(e){let t=u2(e),n=yf(),s=!0;const r=c=>(u,d)=>{var h;const f=Wo(e,d,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:v,transitionEnd:g,...w}=f;u={...u,...w,...g}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,d=Jg(e.parent)||{},h=[],f=new Set;let v={},g=1/0;for(let b=0;b<c2;b++){const m=l2[b],p=n[m],y=u[m]!==void 0?u[m]:d[m],j=Rr(y),S=m===c?p.isActive:null;S===!1&&(g=b);let k=y===d[m]&&y!==u[m]&&j;if(k&&s&&e.manuallyAnimateOnMount&&(k=!1),p.protectedKeys={...v},!p.isActive&&S===null||!y&&!p.prevProp||zo(y)||typeof y=="boolean")continue;const E=f2(p.prevProp,y);let C=E||m===c&&p.isActive&&!k&&j||b>g&&j,P=!1;const A=Array.isArray(y)?y:[y];let I=A.reduce(r(m),{});S===!1&&(I={});const{prevResolvedValues:Y={}}=p,de={...Y,...I},ze=z=>{C=!0,f.has(z)&&(P=!0,f.delete(z)),p.needsAnimating[z]=!0;const N=e.getValue(z);N&&(N.liveStyle=!1)};for(const z in de){const N=I[z],D=Y[z];if(v.hasOwnProperty(z))continue;let _=!1;_l(N)&&_l(D)?_=!fg(N,D):_=N!==D,_?N!=null?ze(z):f.add(z):N!==void 0&&f.has(z)?ze(z):p.protectedKeys[z]=!0}p.prevProp=y,p.prevResolvedValues=I,p.isActive&&(v={...v,...I}),s&&e.blockInitialAnimation&&(C=!1),C&&(!(k&&E)||P)&&h.push(...A.map(z=>({animation:z,options:{type:m}})))}if(f.size){const b={};f.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),b[m]=p??null}),h.push({animation:b})}let w=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(w=!1),s=!1,w?t(h):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var v;return(v=f.animationState)===null||v===void 0?void 0:v.setActive(c,u)}),n[c].isActive=u;const h=o(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=yf(),s=!0}}}function f2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fg(t,e):!1}function yn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yf(){return{animate:yn(!0),whileInView:yn(),whileHover:yn(),whileTap:yn(),whileDrag:yn(),whileFocus:yn(),exit:yn()}}class mn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class h2 extends mn{constructor(t){super(t),t.animationState||(t.animationState=d2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let p2=0;class m2 extends mn{constructor(){super(...arguments),this.id=p2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const g2={animation:{Feature:h2},exit:{Feature:m2}};function Vr(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Gr(e){return{point:{x:e.pageX,y:e.pageY}}}const y2=e=>t=>mu(t)&&e(t,Gr(t));function ur(e,t,n,s){return Vr(e,t,y2(n),s)}const vf=(e,t)=>Math.abs(e-t);function v2(e,t){const n=vf(e.x,t.x),s=vf(e.y,t.y);return Math.sqrt(n**2+s**2)}class ey{constructor(t,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=La(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,v=v2(h.offset,{x:0,y:0})>=3;if(!f&&!v)return;const{point:g}=h,{timestamp:w}=ve;this.history.push({...g,timestamp:w});const{onStart:b,onMove:m}=this.handlers;f||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ma(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=La(h.type==="pointercancel"?this.lastMoveEventInfo:Ma(f,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,b),g&&g(h,b)},!mu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=Gr(t),l=Ma(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=ve;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,La(l,this.history)),this.removeListeners=Hr(ur(this.contextWindow,"pointermove",this.handlePointerMove),ur(this.contextWindow,"pointerup",this.handlePointerUp),ur(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),gt(this.updatePoint)}}function Ma(e,t){return t?{point:t(e.point)}:e}function xf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function La({point:e},t){return{point:e,delta:xf(e,ty(t)),offset:xf(e,x2(t)),velocity:w2(t,.1)}}function x2(e){return e[0]}function ty(e){return e[e.length-1]}function w2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=ty(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>Et(t)));)n--;if(!s)return{x:0,y:0};const i=Nt(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ny=1e-4,S2=1-ny,j2=1+ny,sy=.01,b2=0-sy,k2=0+sy;function Xe(e){return e.max-e.min}function C2(e,t,n){return Math.abs(e-t)<=n}function wf(e,t,n,s=.5){e.origin=s,e.originPoint=ne(t.min,t.max,e.origin),e.scale=Xe(n)/Xe(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=S2&&e.scale<=j2||isNaN(e.scale))&&(e.scale=1),(e.translate>=b2&&e.translate<=k2||isNaN(e.translate))&&(e.translate=0)}function dr(e,t,n,s){wf(e.x,t.x,n.x,s?s.originX:void 0),wf(e.y,t.y,n.y,s?s.originY:void 0)}function Sf(e,t,n){e.min=n.min+t.min,e.max=e.min+Xe(t)}function E2(e,t,n){Sf(e.x,t.x,n.x),Sf(e.y,t.y,n.y)}function jf(e,t,n){e.min=t.min-n.min,e.max=e.min+Xe(t)}function fr(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function N2(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?ne(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?ne(n,e,s.max):Math.min(e,n)),e}function bf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function T2(e,{top:t,left:n,bottom:s,right:r}){return{x:bf(e.x,n,r),y:bf(e.y,t,s)}}function kf(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function P2(e,t){return{x:kf(e.x,t.x),y:kf(e.y,t.y)}}function A2(e,t){let n=.5;const s=Xe(e),r=Xe(t);return r>s?n=un(t.min,t.max-s,e.min):s>r&&(n=un(e.min,e.max-r,t.min)),At(0,1,n)}function M2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Kl=.35;function L2(e=Kl){return e===!1?e=0:e===!0&&(e=Kl),{x:Cf(e,"left","right"),y:Cf(e,"top","bottom")}}function Cf(e,t,n){return{min:Ef(e,t),max:Ef(e,n)}}function Ef(e,t){return typeof e=="number"?e:e[t]||0}const Nf=()=>({translate:0,scale:1,origin:0,originPoint:0}),ns=()=>({x:Nf(),y:Nf()}),Tf=()=>({min:0,max:0}),le=()=>({x:Tf(),y:Tf()});function et(e){return[e("x"),e("y")]}function ry({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function R2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function D2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ra(e){return e===void 0||e===1}function Yl({scale:e,scaleX:t,scaleY:n}){return!Ra(e)||!Ra(t)||!Ra(n)}function wn(e){return Yl(e)||iy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iy(e){return Pf(e.x)||Pf(e.y)}function Pf(e){return e&&e!=="0%"}function wo(e,t,n){const s=e-n,r=t*s;return n+r}function Af(e,t,n,s,r){return r!==void 0&&(e=wo(e,r,s)),wo(e,n,s)+t}function Xl(e,t=0,n=1,s,r){e.min=Af(e.min,t,n,s,r),e.max=Af(e.max,t,n,s,r)}function oy(e,{x:t,y:n}){Xl(e.x,t.translate,t.scale,t.originPoint),Xl(e.y,n.translate,n.scale,n.originPoint)}const Mf=.999999999999,Lf=1.0000000000001;function I2(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let l=0;l<r;l++){i=n[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rs(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,oy(e,o)),s&&wn(i.latestValues)&&rs(e,i.latestValues))}t.x<Lf&&t.x>Mf&&(t.x=1),t.y<Lf&&t.y>Mf&&(t.y=1)}function ss(e,t){e.min=e.min+t,e.max=e.max+t}function Rf(e,t,n,s,r=.5){const i=ne(e.min,e.max,r);Xl(e,t,n,i,s)}function rs(e,t){Rf(e.x,t.x,t.scaleX,t.scale,t.originX),Rf(e.y,t.y,t.scaleY,t.scale,t.originY)}function ay(e,t){return ry(D2(e.getBoundingClientRect(),t))}function V2(e,t,n){const s=ay(e,n),{scroll:r}=t;return r&&(ss(s.x,r.offset.x),ss(s.y,r.offset.y)),s}const ly=({current:e})=>e?e.ownerDocument.defaultView:null,_2=new WeakMap;class O2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=le(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gr(d).point)},i=(d,h)=>{const{drag:f,dragPropagation:v,onDragStart:g}=this.getProps();if(f&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Dx(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),et(b=>{let m=this.getAxisMotionValue(b).get()||0;if(Tt.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[b];y&&(m=Xe(y)*(parseFloat(m)/100))}}this.originPoint[b]=m}),g&&X.postRender(()=>g(d,h)),Fl(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:g,onDrag:w}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=h;if(v&&this.currentDirection===null){this.currentDirection=F2(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),w&&w(d,h)},l=(d,h)=>this.stop(d,h),c=()=>et(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ey(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ly(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&X.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!vi(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=N2(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&es(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=T2(r.layoutBox,n):this.constraints=!1,this.elastic=L2(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=M2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!es(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=V2(s,r.root,this.visualElement.getTransformPagePoint());let o=P2(r.layout.layoutBox,i);if(n){const l=n(R2(o));this.hasMutatedConstraints=!!l,l&&(o=ry(l))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=et(d=>{if(!vi(d,n,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const f=r?200:1e6,v=r?40:1e7,g={type:"inertia",velocity:s?t[d]:0,bounceStiffness:f,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Fl(this.visualElement,t),s.start(Au(t,s,0,n,this.visualElement,!1))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){et(n=>{const{drag:s}=this.getProps();if(!vi(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:l}=r.layout.layoutBox[n];i.set(t[n]-ne(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!es(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};et(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();r[o]=A2({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),et(o=>{if(!vi(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(ne(c,u,r[o]))})}addListeners(){if(!this.visualElement.current)return;_2.set(this.visualElement,this);const t=this.visualElement.current,n=ur(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();es(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),X.read(s);const o=Vr(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Kl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function vi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function F2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class B2 extends mn{constructor(t){super(t),this.removeGroupControls=Re,this.removeListeners=Re,this.controls=new O2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Re}unmount(){this.removeGroupControls(),this.removeListeners()}}const Df=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class z2 extends mn{constructor(){super(...arguments),this.removePointerDownListener=Re}onPointerDown(t){this.session=new ey(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ly(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:Df(t),onStart:Df(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&X.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=ur(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Fi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function If(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Os={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=If(e,t.target.x),s=If(e,t.target.y);return`${n}% ${s}%`}},$2={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=dn.parse(e);if(r.length>5)return s;const i=dn.createTransformer(e),o=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=l,r[1+o]/=c;const u=ne(l,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),i(r)}};class W2 extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;mx(U2),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Fi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||X.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cy(e){const[t,n]=Hm(),s=x.useContext(Lr);return a.jsx(W2,{...e,layoutGroup:s,switchLayoutGroup:x.useContext(Jm),isPresent:t,safeToRemove:n})}const U2={borderRadius:{...Os,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Os,borderTopRightRadius:Os,borderBottomLeftRadius:Os,borderBottomRightRadius:Os,boxShadow:$2};function uy(e,t,n){const s=we(e)?e:bt(e);return s.start(Au("",s,t,n)),s.animation}function dy(e){return e instanceof SVGElement&&e.tagName!=="svg"}const H2=(e,t)=>e.depth-t.depth;class G2{constructor(){this.children=[],this.isDirty=!1}add(t){gu(this.children,t),this.isDirty=!0}remove(t){Go(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(H2),this.isDirty=!1,this.children.forEach(t)}}function K2(e,t){const n=Pt.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(gt(s),e(i-t))};return X.read(s,!0),()=>gt(s)}const fy=["TopLeft","TopRight","BottomLeft","BottomRight"],Y2=fy.length,Vf=e=>typeof e=="string"?parseFloat(e):e,_f=e=>typeof e=="number"||O.test(e);function X2(e,t,n,s,r,i){r?(e.opacity=ne(0,n.opacity!==void 0?n.opacity:1,Q2(s)),e.opacityExit=ne(t.opacity!==void 0?t.opacity:1,0,q2(s))):i&&(e.opacity=ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<Y2;o++){const l=`border${fy[o]}Radius`;let c=Of(t,l),u=Of(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||_f(c)===_f(u)?(e[l]=Math.max(ne(Vf(c),Vf(u),s),0),(Tt.test(u)||Tt.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,s))}function Of(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Q2=hy(0,.5,Pg),q2=hy(.5,.95,Re);function hy(e,t,n){return s=>s<e?0:s>t?1:n(un(e,t,s))}function Ff(e,t){e.min=t.min,e.max=t.max}function Je(e,t){Ff(e.x,t.x),Ff(e.y,t.y)}function Bf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zf(e,t,n,s,r){return e-=t,e=wo(e,1/n,s),r!==void 0&&(e=wo(e,1/r,s)),e}function Z2(e,t=0,n=1,s=.5,r,i=e,o=e){if(Tt.test(t)&&(t=parseFloat(t),t=ne(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=ne(i.min,i.max,s);e===i&&(l-=t),e.min=zf(e.min,t,n,l,r),e.max=zf(e.max,t,n,l,r)}function $f(e,t,[n,s,r],i,o){Z2(e,t[n],t[s],t[r],t.scale,i,o)}const J2=["x","scaleX","originX"],eS=["y","scaleY","originY"];function Wf(e,t,n,s){$f(e.x,t,J2,n?n.x:void 0,s?s.x:void 0),$f(e.y,t,eS,n?n.y:void 0,s?s.y:void 0)}function Uf(e){return e.translate===0&&e.scale===1}function py(e){return Uf(e.x)&&Uf(e.y)}function Hf(e,t){return e.min===t.min&&e.max===t.max}function tS(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Gf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function my(e,t){return Gf(e.x,t.x)&&Gf(e.y,t.y)}function Kf(e){return Xe(e.x)/Xe(e.y)}function Yf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nS{constructor(){this.members=[]}add(t){gu(this.members,t),t.scheduleRender()}remove(t){if(Go(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sS(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:v,skewY:g}=n;u&&(s=`perspective(${u}px) ${s}`),d&&(s+=`rotate(${d}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),v&&(s+=`skewX(${v}deg) `),g&&(s+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(s+=`scale(${l}, ${c})`),s||"none"}const Sn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Zs=typeof window<"u"&&window.MotionDebug!==void 0,Da=["","X","Y","Z"],rS={visibility:"hidden"},Xf=1e3;let iS=0;function Ia(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function gy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=jg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&gy(s)}function yy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},l=t==null?void 0:t()){this.id=iS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zs&&(Sn.totalNodes=Sn.resolvedTargetDeltas=Sn.recalculatedProjection=0),this.nodes.forEach(lS),this.nodes.forEach(hS),this.nodes.forEach(pS),this.nodes.forEach(cS),Zs&&window.MotionDebug.record(Sn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new G2)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new yu),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dy(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=K2(f,250),Fi.hasAnimatedSinceResize&&(Fi.hasAnimatedSinceResize=!1,this.nodes.forEach(qf))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:v,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||xS,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!my(this.targetLayout,g)||v,y=!f&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,y);const j={...fu(w,"layout"),onPlay:b,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else f||qf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qf);return}this.isUpdating||this.nodes.forEach(dS),this.isUpdating=!1,this.nodes.forEach(fS),this.nodes.forEach(oS),this.nodes.forEach(aS),this.clearAllSnapshots();const l=Pt.now();ve.delta=At(0,1e3/60,l-ve.timestamp),ve.timestamp=l,ve.isProcessing=!0,Ca.update.process(ve),Ca.preRender.process(ve),Ca.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uS),this.sharedNodes.forEach(gS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=le(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!py(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||wn(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),wS(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return le();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(SS))){const{scroll:d}=this.root;d&&(ss(c.x,d.offset.x),ss(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=le();if(Je(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&Je(c,o),ss(c.x,h.offset.x),ss(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=le();Je(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&rs(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),wn(d.latestValues)&&rs(c,d.latestValues)}return wn(this.latestValues)&&rs(c,this.latestValues),c}removeTransform(o){const l=le();Je(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!wn(u.latestValues))continue;Yl(u.latestValues)&&u.updateSnapshot();const d=le(),h=u.measurePageBox();Je(d,h),Wf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return wn(this.latestValues)&&Wf(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),fr(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),E2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Je(this.target,this.layout.layoutBox),oy(this.target,this.targetDelta)):Je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),fr(this.relativeTargetOrigin,this.target,v.target),Je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Zs&&Sn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Yl(this.parent.latestValues)||iy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(u=!1),u)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Je(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,v=this.treeScale.y;I2(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=le());const{target:g}=l;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bf(this.prevProjectionDelta.x,this.projectionDelta.x),Bf(this.prevProjectionDelta.y,this.projectionDelta.y)),dr(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==v||!Yf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Zs&&Sn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ns(),this.projectionDelta=ns(),this.projectionDeltaWithTransform=ns()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=ns();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=le(),v=c?c.source:void 0,g=this.layout?this.layout.source:void 0,w=v!==g,b=this.getStack(),m=!b||b.members.length<=1,p=!!(w&&!m&&this.options.crossfade===!0&&!this.path.some(vS));this.animationProgress=0;let y;this.mixTargetDelta=j=>{const S=j/1e3;Zf(h.x,o.x,S),Zf(h.y,o.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yS(this.relativeTarget,this.relativeTargetOrigin,f,S),y&&tS(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=le()),Je(y,this.relativeTarget)),w&&(this.animationValues=d,X2(d,u,this.latestValues,S,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Fi.hasAnimatedSinceResize=!0,this.currentAnimation=uy(0,Xf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&vy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||le();const h=Xe(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=Xe(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}Je(l,c),rs(l,d),dr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new nS),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Ia("z",o,u,this.animationValues);for(let d=0;d<Da.length;d++)Ia(`rotate${Da[d]}`,o,u,this.animationValues),Ia(`skew${Da[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rS;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=_i(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=_i(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!wn(this.latestValues)&&(w.transform=d?d({},""):"none",this.hasProjected=!1),w}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=sS(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:v,y:g}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${g.origin*100}% 0`,h.animationValues?u.opacity=h===this?(c=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const w in po){if(f[w]===void 0)continue;const{correct:b,applyTo:m}=po[w],p=u.transform==="none"?f[w]:b(f[w],h);if(m){const y=m.length;for(let j=0;j<y;j++)u[m[j]]=p}else u[w]=p}return this.options.layoutId&&(u.pointerEvents=h===this?_i(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Qf),this.root.sharedNodes.clear()}}}function oS(e){e.updateLayout()}function aS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?et(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],v=Xe(f);f.min=s[h].min,f.max=f.min+v}):vy(i,n.layoutBox,s)&&et(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],v=Xe(s[h]);f.max=f.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const l=ns();dr(l,s,n.layoutBox);const c=ns();o?dr(c,e.applyTransform(r,!0),n.measuredBox):dr(c,s,n.layoutBox);const u=!py(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:v}=h;if(f&&v){const g=le();fr(g,n.layoutBox,f.layoutBox);const w=le();fr(w,s,v.layoutBox),my(g,w)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function lS(e){Zs&&Sn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uS(e){e.clearSnapshot()}function Qf(e){e.clearMeasurements()}function dS(e){e.isLayoutDirty=!1}function fS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hS(e){e.resolveTargetDelta()}function pS(e){e.calcProjection()}
vendor: 9,375 bytes, line 48
48function mS(e){e.resetSkewAndRotation()}function gS(e){e.removeLeadSnapshot()}function Zf(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jf(e,t,n,s){e.min=ne(t.min,n.min,s),e.max=ne(t.max,n.max,s)}function yS(e,t,n,s){Jf(e.x,t.x,n.x,s),Jf(e.y,t.y,n.y,s)}function vS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xS={duration:.45,ease:[.4,0,.1,1]},eh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),th=eh("applewebkit/")&&!eh("chrome/")?Math.round:Re;function nh(e){e.min=th(e.min),e.max=th(e.max)}function wS(e){nh(e.x),nh(e.y)}function vy(e,t,n){return e==="position"||e==="preserve-aspect"&&!C2(Kf(t),Kf(n),.2)}function SS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const jS=yy({attachResizeListener:(e,t)=>Vr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Va={current:void 0},xy=yy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Va.current){const e=new jS({});e.mount(window),e.setOptions({layoutScroll:!0}),Va.current=e}return Va.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),bS={pan:{Feature:z2},drag:{Feature:B2,ProjectionNode:xy,MeasureLayout:cy}};function sh(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&X.postRender(()=>i(t,Gr(t)))}class kS extends mn{mount(){const{current:t}=this.node;t&&(this.unmount=Px(t,n=>(sh(this.node,n,"Start"),s=>sh(this.node,s,"End"))))}unmount(){}}class CS extends mn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Hr(Vr(this.node.current,"focus",()=>this.onFocus()),Vr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rh(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&X.postRender(()=>i(t,Gr(t)))}class ES extends mn{mount(){const{current:t}=this.node;t&&(this.unmount=Rx(t,n=>(rh(this.node,n,"Start"),(s,{success:r})=>rh(this.node,s,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ql=new WeakMap,_a=new WeakMap,NS=e=>{const t=Ql.get(e.target);t&&t(e)},TS=e=>{e.forEach(NS)};function PS({root:e,...t}){const n=e||document;_a.has(n)||_a.set(n,{});const s=_a.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(TS,{root:e,...t})),s[r]}function AS(e,t,n){const s=PS(t);return Ql.set(e,n),s.observe(e),()=>{Ql.delete(e),s.unobserve(e)}}const MS={some:0,all:1};class LS extends mn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:MS[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return AS(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RS(t,n))&&this.startObserver()}unmount(){}}function RS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const DS={inView:{Feature:LS},tap:{Feature:ES},focus:{Feature:CS},hover:{Feature:kS}},IS={layout:{ProjectionNode:xy,MeasureLayout:cy}},ql={current:null},wy={current:!1};function VS(){if(wy.current=!0,!!qc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ql.current=e.matches;e.addListener(t),t()}else ql.current=!1}const _S=[...Wg,Te,dn],OS=e=>_S.find($g(e)),ws=new WeakMap;function FS(e,t,n){for(const s in t){const r=t[s],i=n[s];if(we(r))e.addValue(s,r);else if(we(i))e.addValue(s,bt(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,bt(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const ih=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Sy{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ku,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Pt.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,X.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=$o(n),this.isVariantNode=qm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in f){const g=f[v];c[v]!==void 0&&we(g)&&g.set(c[v],!1)}}mount(t){this.current=t,ws.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),wy.current||VS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ql.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ws.delete(this.current),this.projection&&this.projection.unmount(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Vn.has(t),r=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&X.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in vs){const n=vs[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ih.length;s++){const r=ih[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=FS(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
48addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=bt(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Bg(r)||Mg(r))?r=parseFloat(r):!OS(r)&&dn.test(n)&&(r=_g(t,n)),this.setBaseTarget(t,we(r)?r.get():r)),we(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=ru(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!we(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jy extends Sy{constructor(){super(...arguments),this.KeyframeResolver=Ug}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function BS(e){return window.getComputedStyle(e)}class by extends jy{constructor(){super(...arguments),this.type="html",this.renderInstance=og}readValueFromInstance(t,n){if(Vn.has(n)){const s=bu(n);return s&&s.default||0}else{const s=BS(t),r=(sg(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ay(t,n)}build(t,n,s){au(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return du(t,n,s)}}class ky extends jy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vn.has(n)){const s=bu(n);return s&&s.default||0}return n=ag.has(n)?n:tu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return ug(t,n,s)}build(t,n,s){lu(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){lg(t,n,s,r)}mount(t){this.isSVGTag=uu(t.tagName),super.mount(t)}}const zS=(e,t)=>su(e)?new ky(t):new by(t,{allowProjection:e!==x.Fragment}),$S=kx({...g2,...DS,...bS,...IS},zS),B=F1($S);function Cy(e,t){let n;const s=()=>{const{currentTime:r}=t,o=(r===null?0:r.value)/100;n!==o&&e(o),n=o};return X.update(s,!0),()=>gt(s)}const Bi=new WeakMap;let Ht;function WS(e,t){if(t){const{inlineSize:n,blockSize:s}=t[0];return{width:n,height:s}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function US({target:e,contentRect:t,borderBoxSize:n}){var s;(s=Bi.get(e))===null||s===void 0||s.forEach(r=>{r({target:e,contentSize:t,get size(){return WS(e,n)}})})}function HS(e){e.forEach(US)}function GS(){typeof ResizeObserver>"u"||(Ht=new ResizeObserver(HS))}function KS(e,t){Ht||GS();const n=Ho(e);return n.forEach(s=>{let r=Bi.get(s);r||(r=new Set,Bi.set(s,r)),r.add(t),Ht==null||Ht.observe(s)}),()=>{n.forEach(s=>{const r=Bi.get(s);r==null||r.delete(t),r!=null&&r.size||Ht==null||Ht.unobserve(s)})}}const zi=new Set;let hr;function YS(){hr=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};
48zi.forEach(n=>n(t))},window.addEventListener("resize",hr)}function XS(e){return zi.add(e),hr||YS(),()=>{zi.delete(e),!zi.size&&hr&&(hr=void 0)}}function QS(e,t){return typeof e=="function"?XS(e):KS(e,t)}const qS=50,oh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ZS=()=>({time:0,x:oh(),y:oh()}),JS={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ah(e,t,n,s){const r=n[t],{length:i,position:o}=JS[t],l=r.current,c=n.time;r.current=e[`scroll${o}`],r.scrollLength=e[`scroll${i}`]-e[`client${i}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=un(0,r.scrollLength,r.current);const u=s-c;r.velocity=u>qS?0:vu(r.current-l,u)}function ej(e,t,n){ah(e,"x",t,n),ah(e,"y",t,n),t.time=n}function tj(e,t){const n={x:0,y:0};let s=e;for(;s&&s!==t;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const r=s.getBoundingClientRect();s=s.parentElement;const i=s.getBoundingClientRect();n.x+=r.left-i.left,n.y+=r.top-i.top}else if(s instanceof SVGGraphicsElement){const{x:r,y:i}=s.getBBox();n.x+=r,n.y+=i;let o=null,l=s.parentNode;for(;!o;)l.tagName==="svg"&&(o=l),l=s.parentNode;s=o}else break;return n}const Zl={start:0,center:.5,end:1};function lh(e,t,n=0){let s=0;if(e in Zl&&(e=Zl[e]),typeof e=="string"){const r=parseFloat(e);e.endsWith("px")?s=r:e.endsWith("%")?e=r/100:e.endsWith("vw")?s=r/100*document.documentElement.clientWidth:e.endsWith("vh")?s=r/100*document.documentElement.clientHeight:e=r}return typeof e=="number"&&(s=t*e),n+s}const nj=[0,0];function sj(e,t,n,s){let r=Array.isArray(e)?e:nj,i=0,o=0;return typeof e=="number"?r=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?r=e.split(" "):r=[e,Zl[e]?e:"0"]),i=lh(r[0],n,s),o=lh(r[1],t),i-o}const rj={All:[[0,0],[1,1]]},ij={x:0,y:0};function oj(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function aj(e,t,n){const{offset:s=rj.All}=n,{target:r=e,axis:i="y"}=n,o=i==="y"?"height":"width",l=r!==e?tj(r,e):ij,c=r===e?{width:e.scrollWidth,height:e.scrollHeight}:oj(r),u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const h=s.length;for(let f=0;f<h;f++){const v=sj(s[f],u[o],c[o],l[i]);!d&&v!==t[i].interpolatorOffsets[f]&&(d=!0),t[i].offset[f]=v}d&&(t[i].interpolate=Nu(t[i].offset,Tu(s),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=At(0,1,t[i].interpolate(t[i].current))}function lj(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function cj(e,t,n,s={}){return{measure:()=>lj(e,s.target,n),update:r=>{ej(e,n,r),(s.offset||s.target)&&aj(e,n,s)},notify:()=>t(n)}}const Fs=new WeakMap,ch=new WeakMap,Oa=new WeakMap,uh=e=>e===document.documentElement?window:e;function Lu(e,{container:t=document.documentElement,...n}={}){let s=Oa.get(t);s||(s=new Set,Oa.set(t,s));const r=ZS(),i=cj(t,e,r,n);if(s.add(i),!Fs.has(t)){const l=()=>{for(const f of s)f.measure()},c=()=>{for(const f of s)f.update(ve.timestamp)},u=()=>{for(const f of s)f.notify()},d=()=>{X.read(l,!1,!0),X.read(c,!1,!0),X.update(u,!1,!0)};Fs.set(t,d);const h=uh(t);window.addEventListener("resize",d,{passive:!0}),t!==document.documentElement&&ch.set(t,QS(t,d)),h.addEventListener("scroll",d,{passive:!0})}const o=Fs.get(t);return X.read(o,!1,!0),()=>{var l;gt(o);const c=Oa.get(t);if(!c||(c.delete(i),c.size))return;const u=Fs.get(t);Fs.delete(t),u&&(uh(t).removeEventListener("scroll",u),(l=ch.get(t))===null||l===void 0||l(),window.removeEventListener("resize",u))}}function uj({source:e,container:t,axis:n="y"}){e&&(t=e);const s={value:0},r=Lu(i=>{s.value=i[n].progress*100},{container:t,axis:n});return{currentTime:s,cancel:r}}const Fa=new Map;function Ey({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Fa.has(t)||Fa.set(t,{});const s=Fa.get(t);return s[n]||(s[n]=hg()?new ScrollTimeline({source:t,axis:n}):uj({source:t,axis:n})),s[n]}function dj(e){return e.length===2}function Ny(e){return e&&(e.target||e.offset)}function fj(e,t){return dj(e)||Ny(t)?Lu(n=>{e(n[t.axis].progress,n)},t):Cy(e,Ey(t))}function hj(e,t){if(e.flatten(),Ny(t))return e.pause(),Lu(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=Ey(t);return e.attachTimeline?e.attachTimeline(n,s=>(s.pause(),Cy(r=>{s.time=s.duration*r},n))):Re}}function pj(e,{axis:t="y",...n}={}){const s={axis:t,...n};return typeof e=="function"?fj(e,s):hj(e,s)}function dh(e,t){N1(!!(!t||t.current))}const mj=()=>({scrollX:bt(0),scrollY:bt(0),scrollXProgress:bt(0),scrollYProgress:bt(0)});function Ru({container:e,target:t,layoutEffect:n=!0,...s}={}){const r=ks(mj);return(n?$r:x.useEffect)(()=>(dh("target",t),dh("container",e),pj((o,{x:l,y:c})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(s.offset)]),r}function pr(e){const t=ks(()=>bt(e)),{isStatic:n}=x.useContext(Fo);if(n){const[,s]=x.useState(e);x.useEffect(()=>t.on("change",s),[])}return t}function Ty(e,t){const n=pr(t()),s=()=>n.set(t());return s(),$r(()=>{const r=()=>X.preRender(s,!1,!0),i=e.map(o=>o.on("change",r));return()=>
vendor: 4,221 bytes, line 48
48{i.forEach(o=>o()),gt(s)}}),n}const gj=e=>e&&typeof e=="object"&&e.mix,yj=e=>gj(e)?e.mix:void 0;function vj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],r=e[1+n],i=e[2+n],o=e[3+n],l=Nu(r,i,{mixer:yj(i[0]),...o});return t?l(s):l}function xj(e){lr.current=[],e();const t=Ty(lr.current,e);return lr.current=void 0,t}function re(e,t,n,s){if(typeof e=="function")return xj(e);const r=typeof t=="function"?t:vj(t,n,s);return Array.isArray(e)?fh(e,r):fh([e],([i])=>r(i))}function fh(e,t){const n=ks(()=>[]);return Ty(e,()=>{n.length=0;const s=e.length;for(let r=0;r<s;r++)n[r]=e[r].get();return t(n)})}const wj=(e,t,n)=>{const s=t-e;return((n-e)%s+s)%s+e};function Py(e,t){return Qg(e)?e[wj(0,e.length,t)]:e}function Du(e){return typeof e=="object"&&!Array.isArray(e)}function Ay(e,t,n,s){return typeof e=="string"&&Du(t)?Ho(e,n,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Sj(e,t,n){return e*(t+1)}function hh(e,t,n,s){var r;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(r=s.get(t))!==null&&r!==void 0?r:e}function jj(e,t,n){for(let s=0;s<e.length;s++){const r=e[s];r.at>t&&r.at<n&&(Go(e,r),s--)}}function bj(e,t,n,s,r,i){jj(e,r,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ne(r,i,s[o]),easing:Py(n,o)})}function kj(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Cj(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Ej="easeInOut";function Nj(e,{defaultTransition:t={},...n}={},s,r){const i=t.duration||.3,o=new Map,l=new Map,c={},u=new Map;let d=0,h=0,f=0;for(let v=0;v<e.length;v++){const g=e[v];if(typeof g=="string"){u.set(g,h);continue}else if(!Array.isArray(g)){u.set(g.name,hh(h,g.at,d,u));continue}let[w,b,m={}]=g;m.at!==void 0&&(h=hh(h,m.at,d,u));let p=0;const y=(j,S,k,E=0,C=0)=>{const P=Tj(j),{delay:A=0,times:I=Tu(P),type:Y="keyframes",repeat:de,repeatType:ze,repeatDelay:$e=0,...$}=S;let{ease:z=t.ease||"easeOut",duration:N}=S;const D=typeof A=="function"?A(E,C):A,_=P.length,M=Uo(Y)?Y:r==null?void 0:r[Y];if(_<=2&&M){let We=100;if(_===2&&Mj(P)){const Mt=P[1]-P[0];We=Math.abs(Mt)}const ye={...$};N!==void 0&&(ye.duration=Et(N));const Ue=Ex(ye,We,M);z=Ue.ease,N=Ue.duration}N??(N=i);const F=h+D;I.length===1&&I[0]===0&&(I[1]=1);const G=I.length-P.length;if(G>0&&qg(I,G),P.length===1&&P.unshift(null),de){N=Sj(N,de);const We=[...P],ye=[...I];z=Array.isArray(z)?[...z]:[z];const Ue=[...z];for(let Mt=0;Mt<de;Mt++){P.push(...We);for(let yt=0;yt<We.length;yt++)I.push(ye[yt]+(Mt+1)),z.push(yt===0?"linear":Py(Ue,yt-1))}kj(I,de)}const pe=F+N;bj(k,P,z,I,F,pe),p=Math.max(D+N,p),f=Math.max(pe,f)};if(we(w)){const j=ph(w,l);y(b,m,mh("default",j))}else{const j=Ay(w,b,s,c),S=j.length;for(let k=0;k<S;k++){b=b,m=m;const E=j[k],C=ph(E,l);for(const P in b)y(b[P],Pj(m,P),mh(P,C),k,S)}}d=h,h+=p}return l.forEach((v,g)=>{for(const w in v){const b=v[w];b.sort(Cj);const m=[],p=[],y=[];for(let S=0;S<b.length;S++){const{at:k,value:E,easing:C}=b[S];m.push(E),p.push(un(0,f,k)),y.push(C||"easeOut")}p[0]!==0&&(p.unshift(0),m.unshift(m[0]),y.unshift(Ej)),p[p.length-1]!==1&&(p.push(1),m.push(null)),o.has(g)||o.set(g,{keyframes:{},transition:{}});const j=o.get(g);j.keyframes[w]=m,j.transition[w]={...t,duration:f,ease:y,times:p,...n}}}),o}function ph(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function mh(e,t){return t[e]||(t[e]=[]),t[e]}function Tj(e){return Array.isArray(e)?e:[e]}function Pj(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Aj=e=>typeof e=="number",Mj=e=>e.every(Aj);function Lj(e,t){return e in t}class Rj extends Sy{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Lj(n,t)){const s=t[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return le()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function Dj(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=dy(e)?new ky(t):new by(t);n.mount(e),ws.set(e,n)}function Ij(e){const t={presenceContext:null,props:{}
48,visualState:{renderState:{output:{}},latestValues:{}}},n=new Rj(t);n.mount(e),ws.set(e,n)}function Vj(e,t){return we(e)||typeof e=="number"||typeof e=="string"&&!Du(t)}function My(e,t,n,s){const r=[];if(Vj(e,t))r.push(uy(e,Du(t)&&t.default||t,n&&(n.default||n)));else{const i=Ay(e,t,s),o=i.length;for(let l=0;l<o;l++){const c=i[l],u=c instanceof Element?Dj:Ij;ws.has(c)||u(c);const d=ws.get(c),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(l,o)),r.push(...Mu(d,{...t,transition:h},{}))}}return r}function _j(e,t,n){const s=[];return Nj(e,t,n,{spring:Eu}).forEach(({keyframes:i,transition:o},l)=>{s.push(...My(l,i,o))}),s}function Oj(e){return Array.isArray(e)&&e.some(Array.isArray)}function Fj(e){function t(n,s,r){let i=[];return Oj(n)?i=_j(n,s,e):i=My(n,s,r,e),new pg(i)}return t}const On=Fj(),Bj={some:0,all:1};function zj(e,t,{root:n,margin:s,amount:r="some"}={}){const i=Ho(e),o=new WeakMap,l=u=>{u.forEach(d=>{const h=o.get(d.target);if(d.isIntersecting!==!!h)if(d.isIntersecting){const f=t(d);typeof f=="function"?o.set(d.target,f):c.unobserve(d.target)}else typeof h=="function"&&(h(d),o.delete(d.target))})},c=new IntersectionObserver(l,{root:n,rootMargin:s,threshold:typeof r=="number"?r:Bj[r]});return i.forEach(u=>c.observe(u)),()=>c.disconnect()}function Ly(e,{root:t,margin:n,amount:s,once:r=!1}={}){const[i,o]=x.useState(!1);return x.useEffect(()=>{if(!e.current||r&&i)return;const l=()=>(o(!0),r?void 0:()=>o(!1)),c={root:t&&t.current||void 0,margin:n,amount:s};return zj(e.current,l,c)},[t,e,n,r,s]),i}var gh="1.3.26";function Ry(e,t,n){return Math.max(e,Math.min(t,n))}function $j(e,t,n){return(1-n)*e+n*t}function Wj(e,t,n,s){return $j(e,t,1-Math.exp(-n*s))}function Uj(e,t){return(e%t+t)%t}var Hj=class{constructor(){V(this,"isRunning",!1);V(this,"value",0);V(this,"from",0);V(this,"to",0);V(this,"currentTime",0);V(this,"lerp");V(this,"duration");V(this,"easing");V(this,"onUpdate")}advance(e){var n;if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;const s=Ry(0,this.currentTime/this.duration,1);t=s>=1;const r=t?1:this.easing(s);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=Wj(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),(n=this.onUpdate)==null||n.call(this,this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:s,easing:r,onStart:i,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=s,this.easing=r,this.currentTime=0,this.isRunning=!0,i==null||i(),this.onUpdate=o}};function Gj(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,s)},t)}}var Kj=class{constructor(e,t,{autoResize:n=!0,debounce:s=250}={}){V(this,"width",0);V(this,"height",0);V(this,"scrollHeight",0);V(this,"scrollWidth",0);V(this,"debouncedResize");V(this,"wrapperResizeObserver");V(this,"contentResizeObserver");V(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});V(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});V(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=e,this.content=t,n&&(this.debouncedResize=Gj(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Dy=class{constructor(){V(this,"events",{})}emit(e,...t){var s;const n=this.events[e]||[];for(let r=0,i=n.length;r<i;r++)(s=n[r])==null||s.call(n,...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}}off(e,t){var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}destroy(){this.events={}}};const Yj=100/6,Wt={passive:!1};function yh(e,t){return e===1?Yj:e===2?t:1}var Xj=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){V(this,"touchStart",{x:0,y:0});V(this,"lastDelta",{x:0,y:0});V(this,"window",{width:0,height:0});V(this,"emitter",new Dy);V(this,"onTouchStart",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});V(this,"onTouchMove",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,s=-(t-this.touchStart.x)*this.options.touchMultiplier,r=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:s,y:r},this.emitter.emit("scroll",{deltaX:s,deltaY:r,event:e})});V(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});V(this,"onWheel",e=>{let{deltaX:t,deltaY:n,deltaMode:s}=e;const r=yh(s,this.window.width),i=yh(s,this.window.height);t*=r,n*=i,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})});V(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Wt),this.element.addEventListener("touchstart",this.onTouchStart,Wt),this.element.addEventListener("touchmove",this.onTouchMove,Wt),this.element.addEventListener("touchend",this.onTouchEnd,Wt)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,Wt),this.element.removeEventListener("touchstart",this.onTouchStart,Wt),this.element.removeEventListener("touchmove",this.onTouchMove,Wt),this.element.removeEventListener("touchend",this.onTouchEnd,Wt)}};
48const vh=e=>Math.min(1,1.001-2**(-10*e));var Qj=class{constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:s=!0,syncTouch:r=!1,syncTouchLerp:i=.075,touchInertiaExponent:o=1.7,duration:l,easing:c,lerp:u=.1,infinite:d=!1,orientation:h="vertical",gestureOrientation:f=h==="horizontal"?"both":"vertical",touchMultiplier:v=1,wheelMultiplier:g=1,autoResize:w=!0,prevent:b,virtualScroll:m,overscroll:p=!0,autoRaf:y=!1,anchors:j=!1,autoToggle:S=!1,allowNestedScroll:k=!1,__experimental__naiveDimensions:E=!1,naiveDimensions:C=E,stopInertiaOnNavigate:P=!1,respectReducedMotion:A=!0}={}){V(this,"_isScrolling",!1);V(this,"_isStopped",!1);V(this,"_isLocked",!1);V(this,"_preventNextNativeScrollEvent",!1);V(this,"_resetVelocityTimeout",null);V(this,"_rafId",null);V(this,"_isDraggingSelection",!1);V(this,"reducedMotionMediaQuery",window.matchMedia("(prefers-reduced-motion: reduce)"));V(this,"isTouching");V(this,"isIos");V(this,"time",0);V(this,"userData",{});V(this,"lastVelocity",0);V(this,"velocity",0);V(this,"direction",0);V(this,"options");V(this,"targetScroll");V(this,"animatedScroll");V(this,"animate",new Hj);V(this,"emitter",new Dy);V(this,"dimensions");V(this,"virtualScroll");V(this,"onScrollEnd",e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()});V(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});V(this,"onTransitionEnd",e=>{var t;(t=e.propertyName)!=null&&t.includes("overflow")&&e.target===this.rootElement&&this.checkOverflow()});V(this,"onClick",e=>{const t=e.composedPath().filter(s=>s instanceof HTMLAnchorElement&&s.href).map(s=>new URL(s.href)),n=new URL(window.location.href);if(this.options.anchors){const s=t.find(r=>n.host===r.host&&n.pathname===r.pathname&&r.hash);if(s){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,i=decodeURIComponent(s.hash);this.scrollTo(i,r);return}}if(this.options.stopInertiaOnNavigate&&t.some(s=>n.host===s.host&&n.pathname!==s.pathname)){this.reset();return}});V(this,"onPointerDown",e=>{e.button===1&&this.reset()});V(this,"onVirtualScroll",e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;const{deltaX:t,deltaY:n,event:s}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:s}),s.ctrlKey||s.lenisStopPropagation)return;const r=s.type.includes("touch"),i=s.type.includes("wheel");if(r&&this.isIos&&(s.type==="touchstart"&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(s)),this._isDraggingSelection)){s.type==="touchend"&&(this._isDraggingSelection=!1);return}this.isTouching=s.type==="touchstart"||s.type==="touchmove";const o=t===0&&n===0;if(this.options.syncTouch&&r&&s.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&t===0;if(o||l)return;let c=s.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const u=this.options.prevent,d=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";if(c.find(g=>{var w,b,m,p,y;return g instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(g))||((w=g.hasAttribute)==null?void 0:w.call(g,"data-lenis-prevent"))||d==="vertical"&&((b=g.hasAttribute)==null?void 0:b.call(g,"data-lenis-prevent-vertical"))||d==="horizontal"&&((m=g.hasAttribute)==null?void 0:m.call(g,"data-lenis-prevent-horizontal"))||r&&((p=g.hasAttribute)==null?void 0:p.call(g,"data-lenis-prevent-touch"))||i&&((y=g.hasAttribute)==null?void 0:y.call(g,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.hasNestedScroll(g,{deltaX:t,deltaY:n}))}))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let h=n;this.options.gestureOrientation==="both"?h=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation==="horizontal"&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();const f=r&&this.options.syncTouch,v=r&&s.type==="touchend";v&&(h=Math.sign(h)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+h,{programmatic:!1,...f?{lerp:v?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});V(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit
48(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});V(this,"raf",e=>{const t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=gh,window.lenis||(window.lenis={}),window.lenis.version=gh,h==="horizontal"&&(window.lenis.horizontal=!0),r===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!e||e===document.documentElement)&&(e=window),typeof l=="number"&&typeof c!="function"?c=vh:typeof c=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:s,syncTouch:r,syncTouchLerp:i,touchInertiaExponent:o,duration:l,easing:c,lerp:u,infinite:d,gestureOrientation:f,orientation:h,touchMultiplier:v,wheelMultiplier:g,autoResize:w,prevent:b,virtualScroll:m,overscroll:p,autoRaf:y,anchors:j,autoToggle:S,allowNestedScroll:k,naiveDimensions:C,stopInertiaOnNavigate:P,respectReducedMotion:A},this.dimensions=new Kj(e,t,{autoResize:w}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new Xj(n,{touchMultiplier:v,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}get overflow(){const e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}isTouchOnSelectionHandle(e){const t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;const n=e.targetTouches[0]??e.changedTouches[0];if(!n)return!1;const s=t.getRangeAt(0).getClientRects();if(s.length===0)return!1;const r=s[0],i=s[s.length-1],o=40,l=Math.hypot(n.clientX-r.left,n.clientY-r.top)<=o,c=Math.hypot(n.clientX-i.right,n.clientY-i.bottom)<=o;return l||c}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(e,{offset:t=0,immediate:n=!1,lock:s=!1,programmatic:r=!0,lerp:i=r?this.options.lerp:void 0,duration:o=r?this.options.duration:void 0,easing:l=r?this.options.easing:void 0,onStart:c,onComplete:u,force:d=!1,userData:h}={}){if(this.prefersReducedMotion&&(r?n=!0:(i=1,o=void 0,l=void 0)),(this.isStopped||this.isLocked)&&!d)return;let f=e,v=t;if(typeof f=="string"&&["top","left","start","#"].includes(f))f=0;else if(typeof f=="string"&&["bottom","right","end"].includes(f))f=this.limit;else{let g=null;if(typeof f=="string"?(g=f.startsWith("#")?document.getElementById(f.slice(1)):document.querySelector(f),g||(f==="#top"?f=0:console.warn("Lenis: Target not found",f))):f instanceof HTMLElement&&(f!=null&&f.nodeType)&&(g=f),g){if(this.options.wrapper!==window){const j=this.rootElement.getBoundingClientRect();v-=this.isHorizontal?j.left:j.top}const w=g.getBoundingClientRect(),b=getComputedStyle(g),m=this.isHorizontal?Number.parseFloat(b.scrollMarginLeft):Number.parseFloat(b.scrollMarginTop),p=getComputedStyle(this.rootElement),y=this.isHorizontal?Number.parseFloat(p.scrollPaddingLeft):Number.parseFloat(p.scrollPaddingTop);f=(this.isHorizontal?w.left:w.top)+this.animatedScroll-(Number.isNaN(m)?0:m)-(Number.isNaN(y)?0:y)}}if(typeof f=="number"){if(f+=v,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const g=f-this.animatedScroll;g>this.limit/2?f-=this.limit:g<-this.limit/2&&(f+=this.limit)}}else f=Ry(0,f,this.limit);if(f===this.targetScroll){c==null||c(this),u==null||u(this);return}if(this.userData=h??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit
48(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=f),typeof o=="number"&&typeof l!="function"?l=vh:typeof l=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:l,lerp:i,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",c==null||c(this)},onUpdate:(g,w)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=g-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=g,this.setScroll(this.scroll),r&&(this.targetScroll=g),w||this.emit(),w&&(this.reset(),this.emit(),u==null||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){const s=Date.now();e._lenis||(e._lenis={});const r=e._lenis;let i,o,l,c,u,d,h,f,v,g;if(s-(r.time??0)>2e3){r.time=Date.now();const k=window.getComputedStyle(e);if(r.computedStyle=k,i=["auto","overlay","scroll"].includes(k.overflowX),o=["auto","overlay","scroll"].includes(k.overflowY),u=["auto"].includes(k.overscrollBehaviorX),d=["auto"].includes(k.overscrollBehaviorY),r.hasOverflowX=i,r.hasOverflowY=o,!(i||o))return!1;h=e.scrollWidth,f=e.scrollHeight,v=e.clientWidth,g=e.clientHeight,l=h>v,c=f>g,r.isScrollableX=l,r.isScrollableY=c,r.scrollWidth=h,r.scrollHeight=f,r.clientWidth=v,r.clientHeight=g,r.hasOverscrollBehaviorX=u,r.hasOverscrollBehaviorY=d}else l=r.isScrollableX,c=r.isScrollableY,i=r.hasOverflowX,o=r.hasOverflowY,h=r.scrollWidth,f=r.scrollHeight,v=r.clientWidth,g=r.clientHeight,u=r.hasOverscrollBehaviorX,d=r.hasOverscrollBehaviorY;if(!(i&&l||o&&c))return!1;const w=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";let b,m,p,y,j,S;if(w==="horizontal")b=Math.round(e.scrollLeft),m=h-v,p=t,y=i,j=l,S=u;else if(w==="vertical")b=Math.round(e.scrollTop),m=f-g,p=n,y=o,j=c,S=d;else return!1;return!S&&(b>=m||b<=0)?!0:(p>0?b<m:b>0)&&y&&j}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?Uj(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(const e of Array.from(this.rootElement.classList))(e==="lenis"||e.startsWith("lenis-"))&&this.rootElement.classList.remove(e)}};const qj=2500;let xi=null;function Zj(){if(xi!=null)return xi;if(typeof document>"u")return!1;const e=document.createElement("video"),t=e.canPlayType&&e.canPlayType('video/webm; codecs="vp9"');return xi=!!t&&t!=="",xi}function Iy({webmSrc:e,webpSrc:t,className:n,alt:s=""}){const[r,i]=x.useState(()=>!Zj()),o=x.useRef(null);return x.useEffect(()=>{if(r)return;const l=o.current;if(!l)return;let c=!1;const u=()=>{c=!0},d=()=>{c||(c=!0,i(!0))};l.addEventListener("loadeddata",u),l.addEventListener("error",d);const h=setTimeout(d,qj);return()=>{l.removeEventListener("loadeddata",u),l.removeEventListener("error",d),clearTimeout(h)}},[r,e]),r?a.jsx("img",{src:t,alt:s,className:n,draggable:!1}):a.jsx("video",{ref:o,className:n,src:e,autoPlay:!0,loop:!0,muted:!0,playsInl
48ine:!0,preload:"auto","aria-hidden":s===""?"true":void 0,children:a.jsx("img",{src:t,alt:s,className:n,draggable:!1})})}const Yo="/",Vy=`${Yo}hero-intro/herointrostart.webp`,_y=`${Yo}hero-intro/herointrostart.webm`,Oy=[1,2,4,5,6].map(e=>`${Yo}hero-intro/herointro${e}.webp`).concat(Vy),Jj=[1,2,4,5,6].map(e=>`${Yo}hero-intro/herointro${e}.webm`).concat(_y),eb=Oy.length,xh="(max-width: 640px)",tb=215,nb=160,sb=8,wh=1.25,rb=Oy.map((e,t)=>({id:t,img:e,video:Jj[t],label:`Work ${t+1}`,angle:-Math.PI/2+t*(2*Math.PI/eb)}));function ib(){const[e,t]=x.useState(()=>typeof window<"u"&&window.matchMedia(xh).matches);return x.useEffect(()=>{const n=window.matchMedia(xh),s=r=>t(r.matches);return n.addEventListener?n.addEventListener("change",s):n.addListener(s),()=>{n.removeEventListener?n.removeEventListener("change",s):n.removeListener(s)}},[]),e}function ob({angle:e,label:t,img:n,video:s,size:r,radius:i,opacity:o}){const l=re(i,u=>u*Math.cos(e)-r/2),c=re(i,u=>u*Math.sin(e)-r/2);return a.jsx(B.div,{className:"hero-intro-chip",style:{x:l,y:c,opacity:o,width:r,height:r},"aria-hidden":"true",title:t,children:a.jsx(Iy,{webmSrc:s,webpSrc:n,alt:"",className:"hero-intro-chip-img"})})}function ab({visible:e}){const t=x.useRef(null),n=x.useRef(null),s=ib(),{scrollYProgress:r}=Ru({target:t,offset:["start start","end end"]}),[i,o]=x.useState({width:0,height:0});x.useEffect(()=>{const S=n.current;if(!S||typeof ResizeObserver>"u")return;const k=new ResizeObserver(([E])=>{o({width:E.contentRect.width,height:E.contentRect.height})});return k.observe(S),()=>k.disconnect()},[]);const l=s?nb:tb,c=Math.min(i.width,i.height),u=Math.max(0,(c/2-sb)/(wh+.5)),d=Math.min(l,u),h=d*wh,f=re(r,[.08,.62],[0,h],{clamp:!0}),v=re(f,[0,h*.4],[0,1],{clamp:!0}),g=re(r,[0,.3],[.9,1]),w=re(r,[0,.18],[0,1]),b=re(r,[.4,.62],[0,1]),m=re(r,[.4,.62],[14,0]),p=re(r,[0,.1],[1,0]),y=re(r,[0,.22],[1,0],{clamp:!0}),j=re(r,[0,.22],[1,.9],{clamp:!0});return a.jsx(B.section,{className:"hero-intro",ref:t,initial:{opacity:0}
48,animate:{opacity:e?1:0},transition:{duration:.72,ease:[.16,1,.3,1]},children:a.jsxs("div",{className:"hero-intro-sticky",ref:n,children:[a.jsxs("div",{className:"hero-intro-orbit",children:[a.jsx(B.div,{className:"hero-intro-ring hero-intro-ring--outer",style:{opacity:w,scale:g},"aria-hidden":"true"}),a.jsx(B.div,{className:"hero-intro-ring hero-intro-ring--inner",style:{opacity:w,scale:g},"aria-hidden":"true"}),a.jsx("div",{className:"hero-intro-core-orb","aria-hidden":"true"}),rb.map(S=>a.jsx(ob,{angle:S.angle,label:S.label,img:S.img,video:S.video,size:d,radius:f,opacity:v},S.id)),a.jsx(B.div,{className:"hero-intro-start-badge",style:{opacity:y,scale:j},"aria-hidden":"true",children:a.jsx(Iy,{webmSrc:_y,webpSrc:Vy,alt:"",className:"hero-intro-start-img"})}),a.jsx(B.div,{className:"hero-intro-logo-badge",style:{opacity:b,y:m},children:a.jsx("img",{src:"/logo.svg",alt:"Studio KAIL",className:"hero-intro-logo-img",draggable:!1})})]}),a.jsx(B.p,{className:"hero-intro-hint",style:{opacity:p},"aria-hidden":"true",children:"Scroll to explore"})]})})}const Sh=1400,lb=[{id:1,size:320,x:9,baseY:33,parallax:-38,drift:8,blur:0,speed:24},{id:2,size:300,x:77,baseY:46,parallax:-43,drift:13,blur:0,speed:26},{id:3,size:265,x:88,baseY:16,parallax:-59,drift:-9,blur:1,speed:29},{id:4,size:240,x:30,baseY:74,parallax:-51,drift:12,blur:0,speed:21},{id:5,size:188,x:20,baseY:54,parallax:-128,drift:-14,blur:2,speed:22},{id:6,size:168,x:44,baseY:19,parallax:-146,drift:18,blur:2,speed:25},{id:7,size:200,x:82,baseY:62,parallax:-132,drift:-17,blur:2,speed:22},{id:8,size:172,x:66,baseY:27,parallax:-151,drift:21,blur:3,speed:25},{id:9,size:185,x:55,baseY:82,parallax:-162,drift:14,blur:2,speed:27},{id:10,size:88,x:12,baseY:78,parallax:-270,drift:23,blur:5,speed:18},{id:11,size:72,x:37,baseY:46,parallax:-313,drift:-17,blur:6,speed:24},{id:12,size:104,x:50,baseY:14,parallax:-240,drift:12,blur:4,speed:20},{id:13,size:96,x:72,baseY:51,parallax:-257,drift:26,blur:5,speed:18},{id:14,size:74,x:82,baseY:12,parallax:-321,drift:-21,blur:7,speed:24},{id:15,size:110,x:88,baseY:38,parallax:-230,drift:16,blur:4,speed:21},{id:16,size:60,x:62,baseY:91,parallax:-351,drift:-23,blur:8,speed:26}];function cb({size:e,x:t,baseY:n,blur:s,speed:r,parallax:i,drift:o=0,scrollY:l}){const c=re(l,[0,Sh],[0,i],{clamp:!0}),u=re(l,[0,Sh],[0,o],{clamp:!0});return a.jsx("div",{style:{position:"absolute",left:`${t}%`,top:`${n}%`,transform:"translate(-50%, -50%)",pointerEvents:"none"},children:a.jsx(B.div,{style:{x:u,y:c},children:a.jsx("div",{className:"bubble-visual",style:{width:e,height:e,filter:s>0?`blur(${s}px)`:void 0,animationDuration:`${r}s`}})})})}function ub(){const{scrollY:e}=Ru(),[t,n]=x.useState(!1);return x.useEffect(()=>{const s=setTimeout(()=>n(!0),100);return()=>clearTimeout(s)},[]),a.jsx(B.div,{className:"hero-bubbles-panel",initial:{opacity:0}
48,animate:{opacity:t?1:0},transition:{duration:1,ease:"easeOut",delay:.2},children:lb.map(s=>a.jsx(cb,{...s,scrollY:e},s.id))})}function db(e){if(typeof Intl<"u"&&"Segmenter"in Intl){const t=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(t.segment(e),({segment:n})=>n)}return Array.from(e)}const fb=x.forwardRef(function({texts:t,transition:n={type:"spring",damping:25,stiffness:300},initial:s={y:"100%",opacity:0},animate:r={y:0,opacity:1},exit:i={y:"-120%",opacity:0},animatePresenceMode:o="wait",animatePresenceInitial:l=!1,rotationInterval:c=2e3,staggerDuration:u=0,staggerFrom:d="first",loop:h=!0,auto:f=!0,splitBy:v="characters",onNext:g,mainClassName:w,mainStyle:b,splitLevelClassName:m,splitLevelStyle:p,elementLevelClassName:y,elementLevelStyle:j},S){const[k,E]=x.useState(0),C=x.useMemo(()=>{const $=t[k];return v==="characters"?$.split(" ").map((N,D,_)=>({characters:db(N),needsSpace:D!==_.length-1})):(v==="words"?$.split(" "):v==="lines"?$.split(`
49`):$.split(v)).map((N,D,_)=>({characters:[N],needsSpace:D!==_.length-1}))},[t,k,v]),P=x.useCallback(($,z)=>d==="first"?$*u:d==="last"?(z-1-$)*u:d==="center"?Math.abs(Math.floor(z/2)-$)*u:d==="random"?Math.abs(Math.floor(Math.random()*z)-$)*u:Math.abs(d-$)*u,[d,u]),A=x.useCallback($=>{E($),g==null||g($)},[g]),I=x.useCallback(()=>{const $=k===t.length-1?h?0:k:k+1;$!==k&&A($)},[k,t.length,h,A]),Y=x.useCallback(()=>{const $=k===0?h?t.length-1:k:k-1;$!==k&&A($)},[k,t.length,h,A]),de=x.useCallback($=>{const z=Math.max(0,Math.min($,t.length-1));z!==k&&A(z)},[t.length,k,A]),ze=x.useCallback(()=>{k!==0&&A(0)},[k,A]);x.useImperativeHandle(S,()=>({next:I,previous:Y,jumpTo:de,reset:ze}),[I,Y,de,ze]),x.useEffect(()=>{if(!f)return;const $=setInterval(I,c);return()=>clearInterval($)},[I,c,f]);const $e=C.reduce(($,z)=>$+z.characters.length,0);return a.jsxs("span",{className:w,style:{display:"inline-flex",flexWrap:"wrap",whiteSpace:"pre-wrap",...b},children:[a.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clipPath:"inset(50%)"},children:t[k]}),a.jsx(cn,{mode:o,initial:l,children:a.jsx("div",{style:{display:"inline-flex",flexWrap:"wrap"},"aria-hidden":"true",children:C.map(($,z,N)=>{const D=N.slice(0,z).reduce((_,M)=>_+M.characters.length,0);return a.jsxs("span",{className:m,style:{display:"inline-flex",overflow:"hidden",...p},children:[$.characters.map((_,M)=>a.jsx(B.span,{initial:s,animate:r,exit:i,transition:{...n,delay:P(D+M,$e)},className:y,style:{display:"inline-block",...j},children:_},M)),$.needsSpace&&a.jsx("span",{style:{whiteSpace:"pre"},children:" "})]},z)})},k)})]})}),hb=210,pb=12,mb=24;function gb(e,t){const n=e.replace("#",""),s=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);return`rgba(${s},${r},${i},${t})`}const Xo=[{id:"brand",name:"Brand Strategy, Voice & Identity",tagline:"Purposeful identity for organisations that mean what they say.",description:"We craft brand foundations for mission-driven organisations: building positioning, visual identity, messaging architecture, and tone of voice into cohesive systems that scale across every touchpoint and stand the test of time.",accent:"#C4B8F0",accentDark:"#7050d8",stats:[{label:"Brands Developed",value:"2+"},{label:"Mission Alignment",value:"100%"},{label:"Repeat Clients",value:"✦"}],slides:[{id:1,bg:"#C4B8F0",img:"projects/cbs.webp",label:"Care-Based Safety",tags:["Brand Strategy","Visual Identity","Tone of Voice"],caseStudy:{subtitle:"Brand Strategy · Visual Identity · Tone of Voice",year:"2024",duration:"1 month",location:"Washtenaw County, Michigan",status:"Completed: organisation closed before launch",sections:[{id:"overview",label:"01",title:"Project Overview",body:`Care-Based Safety was a community-rooted organisation operating in Washtenaw County, Michigan: building and advocating for non-police crisis response, prevention-first systems, and community-led approaches to public safety. Grounded in abolitionist principles, CBS held a conviction that safety is fundamentally relational: something that grows through care, connection, and shared power rather than surveillance or enforcement.
50
51Their work was urgent and necessary. But their brand hadn't yet caught up with the depth of that conviction. As CBS's advocacy grew more sophisticated and their audience more varied: from people reaching out in crisis to institutional funders to government partners: they needed an identity that could carry all of it: w
51armth and rigour, accessibility and credibility, community-rootedness and strategic ambition.`},{id:"brief",label:"02",title:"The Brief",body:`Studio KAIL was engaged to develop a complete brand identity and visual system from the ground up, working across six structured phases: Discovery, Logo Development, Colour & Typography, Imagery & Iconography, Voice & Messaging, and Final Handover.
52
53The brief was clear: build a brand with enough humanity to feel trustworthy to someone reaching out in a moment of crisis, enough credibility to earn the attention of funders and policy partners, and enough visual coherence to deploy consistently across every touchpoint: social, digital, print, campaign, and community resources. Success meant a brand that could communicate the same conviction, with the same integrity, across radically different rooms.`},{id:"strategy",label:"03",title:"Research & Strategy",body:`The discovery phase began with a thorough review of CBS's existing materials, communications, and public presence, combined with audience and competitor research to map the landscape of peer organisations. The key insight: CBS's visual language needed to step entirely outside the iconographic vocabulary of conventional public safety: no shields, no badges, no enforcement symbols: and find a register grounded in care, growth, and collective energy instead.
54
55Three audience tiers shaped the messaging architecture. For community members and service users, the brand speaks directly, plainly, and with care: meeting people where they are. For funders, partners, and activists, it connects abolitionist values to measurable outcomes. For government agencies and more sceptical public audie
55nces, it leads with results, framing care as common sense rather than ideology. The brand personality across all three: abolitionist, compassionate, imaginative, co-created, and trustworthy. Calm but firm. Relational, not institutional.`},{id:"visual",label:"04",title:"Visual Identity",subsections:[{title:"The Logo",body:`The creative exploration opened with two directions. Beam proposed a radiating circular form with hand-drawn expressive strokes: evoking warmth, collective energy, and care radiating outward from community. Root proposed a tree with visible roots, referencing ancestral knowledge and long-term investment in community flourishing.
56
57The Beam direction was selected and refined into the final mark: a 16-ray sunburst built on a precise circular grid, with organic hand-drawn strokes softening the geometry. The radiating forms read simultaneously as sunbeams, flower petals, and ribbons: warmth, growth, and celebration layered into a single symbol. At the centre sits a single point: community as the source from which safety radiates outward. Beneath the expressiveness lies rigorous geometry: all proportions scaling from a single base measurement, 16 segments distributed evenly across 360°. This combination of organic mark-making and architectural precision mirrors CBS's own approach: compassion working within thoughtful frameworks to create collective safety.`},{title:"Colour Palette",body:"Four palette directions were explored, from Modern & Confident (electric blues and purples) to Ancestral & Calm (sage and warm yellows). The final selection was the Earthy & Natural palette: deep espresso (#332824) as anchor, warm cream (#F9F0E6) as the primary ground, with muted steel blue, soft mint, and warm peach completing the system. The palette communicates stability and warmth without institutional coldness: grounded and approachable, never clinical.",swatches:["#332824","#F9F0E6","#86A3B3","#B1D1CE","#F9C595"]},{title:"Typography",body:"Montserrat SemiBold carries headers with clarity and confidence. Montserrat Light handles subheadings and body text with the openness required for a 6th-grade reading level: ensuring the brand communicates equally well in a funding application and a community resource leaflet."},{title:"Illustration & Iconography",body:"Soft, rounded character illustrations drawn in the brand palette keep visuals human and accessible. Flat forms and minimal linework avoid visual noise. Scenes centre human connection and mutual support over authority: figures portrayed with dignity, strength, and autonomy. Never as passive recipients of care. The icon system reinforces the same vocabulary: communication, partnership, health, home, growth, and advocacy, rendered with consistent warmth and purpose."},{title:"Photography Direction",body:"Candid, community-rooted, and dignity-centred. Soft natural light, minimal staging, genuine moments of connection and ease. People are portrayed with strength and agency: never as subjects of care, always as participants within it. Place-based imagery from Washtenaw County reinforces local trust and community ownership."}]},{id:"applications",label:"05",title:"Applications",body:'The identity was designed to scale across every surface CBS needed. Social media content (illustrated tiles, photography-led posts, campaign messaging: "Care keeps communities safe", "Safety is relational", "You deserve care, not punishment"). A responsive website built around the brand headline. Print collateral, merchandise, and community resource documents. Presentations for funders and policy partners. Each application holds the same conviction: the same warmth, the same clarity, the same belief that safety begins with care.'},{id:"outcome",label:"06",title:"Outcome",body:`The project was completed in full across all six phases: brand guidelines delivered, logo system finalised, visual language codified, messaging architecture established. Care-Based Safety closed before the new identity could be launched, due to funding constraints outside the organisation's control.
58
59The rebrand remains a complete strategic and creative work: a full brand system, built with intention, that demonstrates what it looks like when an organisation's values are translated into visual language without compromise.`},{id:"reflection",label:"07",title:"Reflection",body:`This project is a reminder of what design is actually for. CBS's work asked for a visual language capable of holding real contradiction: warm enough for crisis, rigorous enough for policy, radical enough for its mission, legible enough for everyone. Meeting that brief demanded genuine stake, not just craft.
60
61It demonstrates what becomes possible when strategy, empathy, and visual systems are built together without compromise: and continues to shape how I approach work with organisations creating real change, regardless of whether that work ever sees the light of day.`}]}},{id:2,bg:"#2C365E",img:"projects/pgm.webp",label:"PGM",tags:["Brand Strategy","Community Design","Visual Identity"],caseStudy:{subtitle:"Brand Strategy · Visual Identity · Community Voice",year:"2024",duration:"6 Phases",location:"Global",status:"Delivered",sections:[{id:"overview",label:"01",title:"Project Overview",body:`The Participatory Grantmaking Community (PGM) is a global movement working to shift power in philanthropy by centring the knowledge and decision-making of communities. It represents a more equitable and transparent approach to funding: through peer learning, resource sharing, and advocacy, grounded in values of self
61-determination, accountability, care, and collective learning.
62
63PGM challenges traditional top-down systems by amplifying lived experience and supporting communities to shape the decisions that affect them, while fostering trust, openness, and continuous reflection across the sector. Its visual identity needed to be warm, human, and grounded in real environments: and its tone conversational, clear, and inclusive, speaking with communities rather than about them.`},{id:"brief",label:"02",title:"The Brief",body:`Studio KAIL was engaged to develop a complete set of brand guidelines for PGM across six structured phases: Brand Discovery & Direction, Logo Refinement & Colour & Typography Systems, Imagery & Photography Style, Graphics & Iconography, Voice Messaging & Brand Applications, and Final Guidelines & Handover.
64
65The brief demanded a visual identity that could serve an extraordinarily broad coalition: from grassroots activists and community leaders to experienced funders exploring power-sharing, to newcomers to participatory practice. The brand needed to feel simultaneously global and intimate, rigorous and warm, principled and accessible. A document that practitioners worldwide could reach for: and find themselves represented within it.`},{id:"strategy",label:"03",title:"Research & Strategy",body:`The discovery phase began with an audit of PGM's existing materials, communications, and public presence, combined with research into peer organisations working across participatory philanthropy and community grantmaking. The key strategic challenge: building a brand that could speak credibly and warmly to four distinct audience segments simultaneously: activists, philanthropy professionals, industry newcomers, and social media audiences.
66
67Three audience tiers shaped the messaging architecture. For community leaders: affirming, respectful, solidarity-driven: acknowledging their leadership as powerful. For philanthropy professionals: practical, encouraging, peer-to-peer. For newcomers: it normalises experimentation and frames complexity accessibly. Across all: conversational, not corporate. Warm, not institutional. Clear, not academic. Grounded in joy and possibility.`},{id:"visual",label:"04",title:"Visual Identity",subsections:[{title:"The Logo",body:"The PGM logo symbol is built on the principles of connection, equality, and movement. It is formed by four abstract figures interlinked in a continuous circle: representing people coming together to share power and shape decisions collectively. Built on a circular structure to represent inclusivity, equality, and wholeness, with symmetrical balance creating a sense of trust, stability, and collective strength. The arms connect in a seamless rhythm to show collaboration and continuous relationship."},{title:"Colour Palette",body:"The PGM palette is warm and grounded. Midnight Slate (#2C365E) anchors the identity with depth and authority: the gravity of principled work. Muted Teal (#4F8C8C) brings calm and connection. Burnt Orange (#E76235) introduces energy, joy, and urgency without alarm. Golden Ochre (#EBB363) adds warmth and optimism. Linen White (#F0EDE7) provides breathing room: the open, airy ground on which the community gathers.",swatches:["#2C365E","#4F8C8C","#E76235","#EBB363","#F0EDE7"]},{title:"Typography",body:"Cal Sans Regular carries headlines with warmth and a hint of informality that resists institutional coldness: a humanist display face that feels contemporary without feeling corporate. Darker Grotesque handles body text and subheadings with clarity and legibility across all reading levels. The pairing balances ambition with accessibility, reflecting PGM's commitment to speaking clearly with communities rather than at them."},{title:"Illustration & Graphics",body:"Flat vector illustration style with minimal shading and clean, solid colour fills. Simplified geometric character forms with minimal facial detail allow for inclusive representation across age, ability, and identity. Warm, muted palette with soft contrast. Editorial, storytelling compositions focused on collaboration and community. Light, airy layouts with generous white space and soft organic accents."}]}
67,{id:"applications",label:"05",title:"Applications",body:"The PGM identity was designed to scale across the full range of surfaces a global community network requires. Social media content: posts, templates, and campaign graphics for community-building and sector influence. Report and document templates maintaining consistent voice and visual quality across all publications. Presentation decks for practitioners sharing knowledge. Business card and letterhead systems creating professional cohesion across a distributed team. The illustrations and graphic language extend into iconography, infographics, and editorial layouts: ensuring every touchpoint carries the same warmth and clarity as the core brand."},{id:"outcome",label:"06",title:"Outcome",body:`The project was delivered in full across all six phases: comprehensive brand guidelines completed, logo system finalised with clear variations and usage rules, colour and typography systems codified, imagery and illustration direction established, voice and messaging framework built, and brand application templates produced.
68
69PGM now has a visual identity that reflects the depth and ambition of its work: warm enough to welcome newcomers, rigorous enough for sector credibility, flexible enough to work across a genuinely global community operating across many contexts and languages. A brand that speaks with communities: not about them.`},{id:"reflection",label:"07",title:"Reflection",body:`PGM asked something unusual of visual design: not simply to represent an organisation, but to embody a methodology. A brand for participatory grantmaking must itself be participatory in spirit: open, clear, accessible, and centred on the people it serves rather than the institution behind it.
70
71The result is a visual system that practises what PGM preaches: clear language without jargon, warmth without sentimentality, ambition without hierarchy. It continues to remind me that the most powerful brand work is invisible: not because it disappears, but because it makes what matters most feel inevitable.`}]}}]},{id:"motion",name:"Motion Design & Animation",tagline:"Animation that moves minds, not just pixels.",description:"From charity sector explainers to brand reels and mindfulness toolkits, we create motion work that communicates complex ideas with warmth, clarity, and lasting impact: across digital platforms, presentations, and broadcast.",accent:"#A8C4EC",accentDark:"#2a60c8",stats:[{label:"Projects Delivered",value:"7+"},{label:"Sectors",value:"3+"},{label:"Client Repeat Rate",value:"80%"}],slides:[{id:1,bg:"#B8D4EC",img:"projects/studio-intro.webp",label:"Studio Intro",tags:["Motion Design","3D Animation","Studio Rebrand"],caseStudy:{subtitle:"Motion Design · 3D Animation · Studio Rebrand",year:"2026",duration:"Ongoing",status:"Published",sections:[{id:"overview",body:`Studio Intro marks the launch of the Studio KAIL 2026 rebrand, a complete visual refresh built around a new cast of 3D characters that embody the studio's identity, values, and creative direction.
72
73The animation introduces these characters for the first time, following their journey through a world that reflects the studio's evolved visual language: dimensional, expressive, and deliberately crafted. Each character is designed to carry the studio's personality: curious, purposeful, and never predictable.
74
75A companion brand book documents the characters' design system, the new studio aesthetic, and the creative decisions behind the rebrand. Together, the film and the book form the studio's visual manifesto for 2026 and beyond.`}]}},{id:2,bg:"#F0C8B0",img:"projects/spurgeons-ed.webp",label:"Spurgeons ED",tags:["Motion Design","Explainer Video","Charity"],caseStudy:{subtitle:"Motion Design · Explainer Video · Charity Awareness",year:"2021",duration:"4 Months",status:"Delivered · Successful Campaign",article:"https://spurgeons.org/about-us/news-stories-events/news/spurgeons-tackles-eating-disorder-myths-as-rates-climb-among-children/",vimeo:"https://vimeo.com/spurgeonscharity",sections:[{id:"overview",body:`A set of five videos and around sixty illustrations made for UK-based children's charity, Spurgeons. Founded in 1867, the charity has supported vulnerable children and families for over 150 years by providing a range of services including support programs, parenting courses, child and family therapy, and children's centres. This campaign was launched for Eating Disorder Awareness Week to bring attention to eating disorders in teenager
75s and children.
76
77Spurgeons' branding is designed to convey warmth, approachability, and compassion, reflecting the charity's mission to support some of the most vulnerable members of society. This translated into a series of inclusive, friendly characters of all races, sizes, and disabilities. The videos were designed to be accessible for parents of all ages. Through five videos each around five minutes in length, the characters are seen interacting: talking, eating together, going for walks, as well as navigating situations of distress. Teenagers are shown having a complicated relationship with food and body image, with the series aiming to shed light on a serious matter while remaining inclusive and easy to understand.
78
79Voiceover and branding guidelines provided by Spurgeons. Original illustrations by upklyak.`}]}},{id:4,bg:"#C0D4B8",img:"projects/geometric.webp",label:"Geometric Showcase",tags:["Motion Design","Abstract","Experimental"],caseStudy:{subtitle:"Motion Design · Abstract · Experimental Animation",year:"2022",duration:"Self-Initiated",status:"Published · 45,000+ Views",youtube:"E1lDvWBNlKM",sections:[{id:"overview",body:`A purely abstract motion piece built from precise geometry. No narrative, no character, just form, rhythm, and mathematics in motion.
80
81Geometric Showcase became the studio's highest-performing piece on YouTube, accumulating over 45,000 views and 800+ likes from audiences drawn to its minimal precision. The piece demonstrates what becomes possible when animation is stripped to its essentials: exact timing, controlled movement, and the satisfaction of shapes behaving exactly as they should.`}]}},{id:5,bg:"#A8C0E4",img:"projects/steps.webp",label:"STEPS",tags:["Motion Design","Experimental","Self-Initiated"],caseStudy:{subtitle:"Motion Design · Experimental Animation · Self-Initiated",year:"2022",duration:"Self-Initiated",status:"Published",youtube:"B47H1UDrQcc",sections:[{id:"overview",body:`Steps is a self-initiated motion study exploring the foundations of character animation through a simple walk cycle. Created using abstract shapes to represent people and animals, the project focuses on how even the most minimal forms can communicate personality, weight, and movement.
82
83The animation demonstrates the core principles of motion design, including timing, spacing, easing, balance, and simple physics. By stripping the character back to its most essential forms, the project highlights how thoughtful movement alone can create life, rhythm, and expression.
84
85Since its release, Steps has become one of Studio KAIL's signature pieces, receiving over 10,000 views on YouTube. It continues to serve as a showcase of the studio's approach to motion craft, demonstrating how strong animation is built on mastering the fundamentals.`}]}},{id:6,bg:"#B4D0A8",img:"projects/atoz.webp",label:"A to Z",tags:["Motion Design","Typography","Experimental"],caseStudy:{subtitle:"Motion Design · Typographic Animation · Self-Initiated",year:"2023",duration:"Self-Initiated",status:"Published",youtube:"JdLVq-FHkfg",sections:[{id:"overview",body:`A to Z is a self-initiated typographic motion project exploring animation through every letter of the alphabet. Each of the twenty-six letters presents a unique opportunity to experiment with different transitions, timing, rhythm, and visual techniques while maintaining a cohesive overall style.
86
87The project demonstrates a broad range of motion design principles, showcasing how typography can be transformed through movement alone. From playful transformations to seamless transitions, each animation explores a different approach, creating a collection that highlights versatility, technical craft, and attention to detail.`}]}},{id:7,bg:"#D4CCE8",img:"projects/bloom.webp",label:"BLOOM",tags:["Motion Design","Organic","Experimental"],caseStudy:{subtitle:"Motion Design · Organic Animation · Self-Initiated",year:"2022",duration:"Self-Initiated",status:"Published",youtube:"Yjuj-ODZfPY",sections:[{id:"overview",body:`Bloom is a self-initiated motion study following the simple lifecycle of a flower as it blooms. Designed with a playful, cartoon-inspired aesthetic, the project explores how colour, timing, and movement can transform a simple illustration into a warm, expressive animation.
88
89The piece begins with a sepia-toned palette, evoking a nostalgic, vintage feel before gradually transitioning into a vibrant blue colour scheme as the flower comes to life. Through subtle easing, organic motion, and thoughtful colour progression, Bloom demonstrates how animation can create emotion and tell a visual story using the simplest of subjects.
90
91With its softer, vintage-inspired art direction, Bloom showcases a different side of Studio KAIL's motion work while highlighting the studio's ability to combine expressive illustration, colour, and animation into charming, characterful pieces.`}]}},{id:8,bg:"#C8D8CC",img:"projects/well-lab.webp",label:"Well Lab",tags:["Motion Design","Explainer Video","Brand Animation"],caseStudy:{subtitle:"Motion Design · Brand Animation · Client Commission",year:"2023",duration:"Commission",status:"Delivered",sections:[{id:"overview",body:`An introductory video for UK-based organisation Well Lab, a consultancy tackling burnout in the workplace. Well Lab works with employers and organisations including the NHS and UCL to support employees' mental health and wellbeing, helping them build sustainable approaches to work.
92
93Following the organisation's brand guidelines, the studio translated their shapes and colour palette into a series of whimsical and dynamic movements, with workers and scientists represented as coloured circles falling in and out of balance. The video aims to capture the interest of potential partners by differentiating Well Lab from other firms through sleek, modern design and an abstract approach to human representation.
94
95Voiceover and branding guidelines including shapes and colour palette provided by Well Lab.`}]}}]},{id:"packaging",name:"Packaging, Print & Physical Design",tagline:"Tactile design with shelf presence and soul.",description:"From artisan food brands to wellness products and spiritual tools, we craft packaging and print that earns attention on shelf, communicates quality at a glance, and tells a story worth holding.",accent:"#A8D4BC",accentDark:"#3a9068",stats:[{label:"Products Designed",value:"5+"},{label:"Countries",value:"3+"},{label:"Sectors",value:"3"}],slides:[{id:1,bg:"#C8B898",img:"projects/woodco.webp",label:"Woodco",tags:["Packaging","Label Design","Visual Identity"],caseStudy:{subtitle:"Packaging Design · Label Design · Visual Identity",year:"2021",duration:"2 Weeks",location:"Hong Kong",status:"Delivered · May 2021",client:"WOODCO",revisions:"4",behance:"https://www.behance.net/gallery/119242921/WOODCO-Packaging-Deisgn",dribbble:"https://dribbble.com/shots/15646024-WOODCO-Candle-Packaging",website:"http://thisiswoodco.com",sections:[{id:"overview",title:"Project Overview",body:`A set of 6 packaging labels were created for Hong Kong-based candle manufacturer, WOODCO. Paired with their fragrance blends using premium fragrance and essential oils, their scented candles are made to achieve a feeling of home and a sense of calmness.
96
97These labels were created with a focus on simple, abstract shapes and bright, contrasting colours. These colours can be associated with modernity, innovation, and the notion of being forward-thinking. As WOODCO wanted to convey a strong impression while still displaying features of subtlety and femininity, this comes through in clean, elementary shapes with signs of rigidity to symbolise human-like imperfection.`}]}},{id:2,bg:"#E8B098",img:"projects/la-terra-rossa.webp",label:"La Terra Rossa",tags:["Packaging","Label Design","Brand Identity"],caseStudy:{subtitle:"Packaging Design · Logo Redesign · Brand Identity",year:"2021",duration:"1 Week",location:"Portland, Oregon",status:"Delivered",client:"La Terra Rossa",website:"https://laterrarossacoffee.com/",sections:[{id:"overview",title:"Project Overview",body:`Along with a logo redesign, a couple of coffee packaging designs were made for the Oregon-based coffee company, La Terra Rossa. La Terra Rossa produces a range of tea and coffee, offering single-payment and subscription services, as well as merchandise such as stickers, mugs, clothing pieces and coffee accessories. Their message focuses on the concept of authenticity, quality, and tradition.
98
99The branding focuses on a simple, clean design with an earth-tone palette that emphasizes the company's commitment to giving back to the community. The packaging pieces as well as the logo are based on Van Gogh's "The Sower", a representation of the cycle of life, growth, and renewal. The farmer sowing seeds represents the human effort to cultivate and nurture the land, while the setting sun suggests the passage of time and the inevitability of change.`}]}},{id:3,bg:"#C8A8D8",img:"projects/oracle-cards.webp",label:"Oracle Cards",tags:["Print","Book Design","Illustration"],caseStudy:{subtitle:"Book Illustration · Print Design · Mixed Media",year:"2022",duration:"2 Months",location:"Remote",status:"Published",client:"Annalisa Brizzante",amazon:"https://www.amazon.co.uk/SELF-AWAKENING-ORACLE-CARDS-potential/dp/B0B6L4SWB3",sections:[{id:"overview",title:"Project Overview",body:`A set of 41 custom illustrations were made for independent writer Annalisa Brizzante to be featured in her book 'SELF AWAKENING ORACLE CARDS: connect to your true potential'. The cards are printed within the book and are intended to be cut out and used as oracle cards.
100
101The oracle cards, along with the messages from the book, help the reader overcome challenges and create a positive mindset while replacing negative blockages. Each card is unique and has a specific theme or focus, such as frustration, acceptance or sorrow. They generally incorporate a mixed media style with a variation of linework complimented by textures such as paint, ink or watercolour. The textures allowed the illustrations to have more depth and richness, using materials such as rocks, leaves and flowers to create a tactile and multi-sensory experience. Each concept was discussed with the writer to draw from the writer's identity, memory, and personal experiences.`}]}},{id:4,bg:"#F0C8C0",img:"projects/signature-balm.webp",label:"Signature Balm",tags:["Packaging","Label Design","Wellness"],caseStudy:{subtitle:"Packaging Design · Label Design · Pattern Design",year:"2021",duration:"2 Weeks",location:"United Kingdom",status:"Delivered",client:"SouthShore Adornments",website:"https://www.southshoreadornments.com/products/signature-piercing-balm-20ml",sections:[{id:"overview",title:"Project Overview",body:`The packaging design for UK-based body jewellery brand SouthShore Adornments's "Signature Balm" was made by the studio. The Signature Balm is the company's own healing balm made to be used on piercings, tattoos, and other areas of the skin.
102
103The company's branding incorporates a clean and modern design while still maintaining a bold and strong image that comes with body piercings. The packaging itself is clean and elegant, with a focus on the green palette to highlight the natural ingredients used in the product and the company's commitment to ethical and sustainable practices. The minimalist design also allows all necessary information to fit onto its narrow tin. A simple pattern is used in the background to add a hint of boldness and create a memorable identity.`}]}}]},{id:"web",name:"Web, Digital & UX Design",tagline:"Digital experiences are coming.",description:"Portfolio sites, campaign pages, app UIs, and full design systems: digital presence built with the same craft and intention as every Studio KAIL discipline. Coming soon.",accent:"#F0CABB",accentDark:"#c06038",comingSoon:!0,stats:[{label:"In Development",value:"✦"},{label:"Launching",value:"2025"},{label:"Stay tuned",value:"→"}],slides:[{id:1,comingSoon:!0,label:"Coming Soon",bg:"#F0CABB"}]}];function yb({slide:e,index:t,onCardClick:n}){const s=t%2===0?"pj-card--lilac":"pj-card--blue";return a.jsxs("div",{className:`pj-card ${s}`,onClick:()=>n==null?void 0:n(e),role:"button",tabIndex:0,onKeyDown:r=>r.key==="Enter"&&(n==null?void 0:n(e)),children:[a.jsx("div",{className:"pj-photo-area",children:a.jsxs("div",{className:"pj-photo-stack",children:[a.jsx("div",{className:"pj-photo-back pj-photo-back--2"}),a.jsx("div",{className:"pj-photo-back pj-photo-back--1"}),a.jsx("div",{className:"pj-photo-front",children:e.img?a.jsx("div",{className:"pj-photo-img",style:{backgroundImage:`url(/${e.img})`}}):a.jsx("div",{className:"pj-photo-placeholder",style:{background:gb(e.bg,.35)}})})]})}),e.tags&&e.tags.length>0&&a.jsx("div",{className:"pj-tags",children:e.tags.map((r,i)=>a.jsx("span",{className:"pj-tag",children:r},i))}),a.jsx("div",{className:"pj-footer",children:a.jsxs("div",{className:"pj-title-pill",children:[a.jsx("span",{className:"pj-title",children:e.label}),a.jsx("span",{className:"pj-arrow",children:"↗"})]})})]})}function vb({slides:e,visible:t,onCardClick:n}){const s=pr(0),r=x.useRef(!1),i=x.useRef(null),o=x.useRef(null),l=x.useRef(!1),c=x.useRef(!1),u=x.useRef(0),d=x.useRef(0),[h,f]=x.use
103State(!1),v=x.useMemo(()=>[...e,...e,...e],[e]),g=e.length*(hb+pb);x.useEffect(()=>{if(!t){i.current&&cancelAnimationFrame(i.current),o.current=null;return}const m=p=>{if(o.current!==null&&!r.current&&!l.current){const y=p-o.current;let j=s.get()-mb*y/1e3;Math.abs(j)>=g&&(j+=g),s.set(j)}o.current=p,i.current=requestAnimationFrame(m)};return i.current=requestAnimationFrame(m),()=>{i.current&&cancelAnimationFrame(i.current)}},[t,g]);const w=x.useCallback(m=>{c.current||n==null||n(m)},[n]),b=x.useCallback(m=>{if(m.button!==void 0&&m.button!==0)return;l.current=!0,c.current=!1,u.current=m.clientX,d.current=s.get(),f(!0);const p=j=>{if(!l.current)return;const S=j.clientX-u.current;Math.abs(S)>4&&(c.current=!0);let k=d.current+S;k>0&&(k-=g),k<-g&&(k+=g),s.set(k)},y=()=>{l.current=!1,f(!1),window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y)};window.addEventListener("pointermove",p),window.addEventListener("pointerup",y),window.addEventListener("pointercancel",y)},[s,g]);return a.jsx("div",{className:"ic-wrap",onMouseEnter:()=>{r.current=!0},onMouseLeave:()=>{r.current=!1},children:a.jsx("div",{className:"ic-viewport",onPointerDown:b,style:{cursor:h?"grabbing":"grab",touchAction:"pan-y"},children:a.jsx(B.div,{className:"ic-track",style:{x:s},children:v.map((m,p)=>a.jsx(yb,{slide:m,index:p%e.length,onCardClick:w},`${m.id}-${p}`))})})})}function xb(){return a.jsx("div",{className:"pf-coming-soon",children:a.jsxs("div",{className:"pf-coming-soon-pill",children:[a.jsxs("span",{className:"pf-coming-soon-dots",children:[a.jsx("span",{className:"pf-coming-soon-dot"}),a.jsx("span",{className:"pf-coming-soon-dot"}),a.jsx("span",{className:"pf-coming-soon-dot"})]}),a.jsx("span",{className:"pf-coming-soon-label",children:"Coming soon"})]})})}function wb({onProjectOpen:e}){const[t,n]=x.useState(null),s=r=>n(i=>i===r?null:r);return a.jsx("section",{className:"pf-section",id:"work",children:a.jsx("div",{className:"pf-inner",children:a.jsxs("div",{className:"pf-left",children:[a.jsxs(B.div,{className:"hero-text-glass",initial:{opacity:0,y:22,filter:"blur(8px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.85,ease:[.16,1,.3,1],delay:.12},children:[a.jsx("div",{className:"pf-rotate-wrap",children:a.jsx(D1,{children:a.jsxs("h2",{className:"pf-rotate-line","aria-label":"From spark to screen, shelf, sales, and more",children:[a.jsxs("span",{className:"pf-rotate-row",children:[a.jsx(B.span,{style:{display:"inline-block"},initial:{opacity:0,y:14,filter:"blur(5px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.55,ease:[.16,1,.3,1],delay:.2},children:"From"}),a.jsxs(B.span,{style:{display:"inline-block",position:"relative"},initial:{opacity:0,y:14,filter:"blur(5px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.55,ease:[.16,1,.3,1],delay:.33},children:["spark",a.jsx(B.span,{className:"pf-spark-underline",initial:{scaleX:0},animate:{scaleX:1},transition:{duration:.65,ease:[.25,.46,.45,.94],delay:1.15}})]}),a.jsx(B.span,{style:{display:"inline-block"},initial:{opacity:0,y:14,filter:"blur(5px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.55,ease:[.16,1,.3,1],delay:.41},children:"to"})]}),a.jsx(B.span,{className:"pf-rotate-row",layout:!0,initial:{opacity:0,y:14,filter:"blur(5px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.55,ease:[.16,1,.3,1],delay:.46},children:a.jsx(fb,{texts:["screen","shelf","sales","substance","sustainability","solutions"],mainClassName:"pf-rotate-chip",staggerFrom:"last",initial:{y:"100%"},animate:{y:0},exit:{y:"-120%"},staggerDuration:.03,splitLevelClassName:"pf-rotate-char-slot",transition:{type:"spring",damping:30,stiffness:400},rotationInterval:2200})})]})})}),a.jsxs(B.p,{className:"pf-subtitle",initial:{opacity:0,y:14,filter:"blur(5px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.55,ease:[.16,1,.3,1],delay:.58},children:["and ",a.jsx("mark",{className:"hl-between",children:"everything in between."})]})]}),a.jsx("div",{className:"pf-cats",children:Xo.map((r,i)=>a.jsxs(B.div,{className:`pf-cat-block${t===r.id?" open":""}`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.08+.1,duration:.5},children:[a.jsxs("button",{className:`pf-pill${t===r.id?" pf-pill--open":""}`,onClick:()=>s(r.id),children:[a.jsx("span",{className:"pf-pill-name",children:r.name}),a.jsx("span",{className:`pf-pill-icon${t===r.id?" rotated":""}`,children:"↙"})]}),a.jsx("div",{className:"pf-carousel-inner",children:r.comingSoon?a.jsx(xb,{}):a.jsx(vb,{slides:r.slides,visible:t===r.id,onCardClick:o=>e==null?void 0:e(r,o)})})]},r.id))})]})})})}
103const Sb="From spark to screen to shelf",jh=Sb.split(" "),jb="   •   ",bb=10,Jl=[];for(let e=0;e<bb;e++)jh.forEach((t,n)=>{Jl.push({key:`${e}-${n}`,text:n<jh.length-1?`${t} `:t})}),Jl.push({key:`${e}-sep`,text:jb});const St=820,kb=16,bh=280,Cb=.09,Eb=.05;function Nb(e,t,n){const s=[];for(let r=-St;r<=e-St;r+=kb)s.push({x:r,baseY:t+Math.sin(r/St*Math.PI*2)*n,push:0});return s}function kh(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];t+=`${n===0?"M":"L"}${s.x.toFixed(1)},${(s.baseY+s.push).toFixed(1)} `}return t}function Tb({reverse:e,slotClassName:t,pathId:n}){const s=x.useRef(null),r=x.useRef(null),i=x.useRef(null),o=x.useRef([]),l=x.useRef(null),c=x.useRef(1),u=x.useRef(null),d=x.useRef(null),h=x.useRef(0),f=x.useRef(80);x.useEffect(()=>{const m=s.current,p=r.current,y=i.current;if(!m||!p||!y)return;const j=()=>{const k=m.getBoundingClientRect(),E=k.width||window.innerWidth,C=k.height||160,P=E+St*2,A=C/2,I=C*.05;p.setAttribute("viewBox",`${-St} 0 ${P} ${C}`),p.setAttribute("width",P),p.setAttribute("height",C),y.setAttribute("stroke-width",C
103*.4),m.style.setProperty("--ptypes-banner-font",`${C*.16}px`),f.current=C*.08;let Y=Nb(P,A,I);e&&(Y=Y.slice().reverse()),o.current=Y,y.setAttribute("d",kh(Y))};if(j(),typeof ResizeObserver>"u")return;const S=new ResizeObserver(j);return S.observe(m),()=>S.disconnect()},[e]),x.useEffect(()=>()=>{u.current!=null&&cancelAnimationFrame(u.current)},[]);const v=x.useCallback(()=>{if(u.current!=null)return;const m=()=>{const p=o.current,y=l.current,j=c.current,S=f.current;let k=0;for(let E=0;E<p.length;E++){const C=p[E];let P=0;if(y!=null){const I=Math.abs(C.x-y);I<bh&&(P=.5*(1+Math.cos(I/bh*Math.PI))*S*j)}C.push+=(P-C.push)*Cb;const A=Math.abs(C.push);A>k&&(k=A)}i.current&&i.current.setAttribute("d",kh(p)),y!=null||k>Eb?u.current=requestAnimationFrame(m):u.current=null};u.current=requestAnimationFrame(m)},[]),g=x.useCallback(m=>{const p=s.current;if(!p)return;const y=p.getBoundingClientRect();l.current=m.clientX-y.left,c.current=m.clientY-y.top<y.height/2?1:-1,v()},[v]),w=x.useCallback(()=>{l.current=null,v()},[v]),b=x.useCallback(m=>{if(m.button!==void 0&&m.button!==0)return;const p=d.current;if(!p)return;const y=m.clientX,j=h.current;p.style.cursor="grabbing";const S=E=>{let C=j+(E.clientX-y);for(;C<=-St;)C+=St;for(;C>=St;)C-=St;h.current=C,p.style.transform=`translateX(${C}px)`},k=()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerup",k),window.removeEventListener("pointercancel",k),p.style.cursor=""};window.addEventListener("pointermove",S),window.addEventListener("pointerup",k),window.addEventListener("pointercancel",k)},[]);return a.jsx("div",{className:`ptypes-banner-ribbon-slot ${t}`,children:a.jsx("div",{className:"ptypes-banner-drag-layer",ref:d,onPointerDown:b,children:a.jsx("div",{className:`ptypes-banner-track${e?" ptypes-banner-track--reverse":""}`,ref:s,style:{"--ptypes-period":`${St}px`},onMouseMove:g,onMouseLeave:w,children:a.jsxs("svg",{ref:r,className:"ptypes-banner-svg",preserveAspectRatio:"none",children:[a.jsx("path",{ref:i,id:n,className:"ptypes-banner-ribbon",fill:"none",strokeLinecap:"round"}),a.jsx("text",{className:"ptypes-banner-text",dominantBaseline:"central",children:a.jsx("textPath",{href:`#${n}`,startOffset:"0",children:Jl.map(m=>a.jsx("tspan",{className:"ptypes-banner-word",children:m.text},m.key))})})]})})})})}function Pb(){return a.jsx("div",{className:"ptypes-banner","aria-hidden":"true",children:a.jsx(Tb,{reverse:!1,slotClassName:"ptypes-banner-ribbon-slot--one",pathId:"ptypesWavePathA"})})}const st="/",Ch="(max-width: 900px)",Ab=1400,Eh=14,Mb=1.035,Bs={type:"spring",stiffness:260,damping:22,mass:.7},Lb={intro:`${st}portfolio-types/portfoliotype-intro.webp`,brand:`${st}portfolio-types/portfoliotype-branding.webp`,motion:`${st}portfolio-types/portfoliotype-motion.webp`,packaging:`${st}portfolio-types/portfoliotype-packaging.webp`,web:`${st}portfolio-types/portfoliotype-web.webp`,outro:`${st}portfolio-types/portfoliotype-final.webp`},Rb={intro:`${st}portfolio-types/portfoliotypes-intro.webm`,brand:`${st}portfolio-types/portfoliotypes-branding.webm`,motion:`${st}portfolio-types/portfoliotypes-motion.webm`,packaging:`${st}portfolio-types/portfoliotypes-packaging.webm`,web:`${st}portfolio-types/portfoliotypes-web.webm`,outro:`${st}portfolio-types/portfoliotypes-final.webm`},Db={id:"intro",eyebrow:"Portfolio",name:"We specialise in 4 distinct areas of design.",tagline:"A closer look at how Studio KAIL works, discipline by discipline.",body:"We design strategic brand foundations across identity, websites, animation, print, and packaging: building cohesive systems that work seamlessly across digital and physical spaces.",accent:"#C4B8F0",accentDark:"#3d5cff"},Ib={id:"outro",cta:!0,eyebrow:"Explore",name:"See Our Work",tagline:"Every discipline above, in practice. Browse the individual projects.",accent:"#e0f87d",accentDark:"#9aab52"};function Vb(){var e;(e=document.getElementById("work"))==null||e.scrollIntoView({behavior:"smooth",block:"start"})}const Ba=[Db,...Xo.map(e=>({...e,eyebrow:e.id.charAt(0).toUpperCase()+e.id.slice(1)})),Ib];function _b(e,t){const n=e.replace("#",""),s=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);return`rgba(${s},${r},${i},${t})`}const Ob=a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3"}),a.jsx("circle",{cx:"9",cy:"9.5",r:"1.8"}),a.jsx("path",{d:"M21 15.5 15.5 10 6 19",strokeLinecap:"round",strokeLinejoin:"round"})]}),Fb=4e3;function Bb({video:e,image:t}){const[n,s]=x.useState(!1),r=x.useRef(null);x.useEffect(()=>{if(e)return r.current=setTimeout(()=>s(!0),Fb),()=>clearTimeout(r.current)},[e]);const i=()=>{r.current!=null&&(clearTimeout(r.current),r.current=null)};return e&&!n?a.jsx("video",{className:"ptypes-image-slot-img",src:e,poster:t,autoPlay:!0,muted:!0,loop:!0,playsInl
103ine:!0,preload:"auto",onCanPlay:i,onError:()=>{i(),s(!0)}}):t?a.jsx("img",{src:t,alt:"",className:"ptypes-image-slot-img",draggable:!1}):a.jsx("span",{className:"ptypes-image-slot-icon",children:Ob})}function zb(){const[e,t]=x.useState(()=>typeof window<"u"&&window.matchMedia(Ch).matches);return x.useEffect(()=>{const n=window.matchMedia(Ch),s=r=>t(r.matches);return n.addEventListener?n.addEventListener("change",s):n.addListener(s),()=>{n.removeEventListener?n.removeEventListener("change",s):n.removeListener(s)}},[]),e}function $b({cat:e,index:t,total:n,deckProgress:s,isMobile:r}){const i=t===0,c=(r?-26:-70)+t*(r?16:34),u=t*(r?9:16),d=(t%2===0?-1:1)*(r?1+t*.5:1.5+t*.8),h=1/(n-1),f=.45,v=(t-1)*h,g=i?0:v+f*h,w=i?1:v+h,b=re(s,[g,w],i?[1,1]:[0,1],{clamp:!0}),m=re(b,N=>c+(1-N)*Ab),p=re(b,N=>d+(1-N)*(t%2===0?Eh:-Eh)),y=re(b,[0,1],[.94,1]),j=re(b,[0,.4,1],[0,1,1]),S=t===n-1,k=t*h,E=re(s,[k+f*h,k+h],S?[1,1]:[1,.2],{clamp:!0}),C=re([j,E],([N,D])=>N*D),P={borderColor:_b(e.accentDark,.28)},A=pr(0),I=pr(1),Y=pr(0),de=re(A,N=>u+N),ze=re([p,Y],([N,D])=>N+D),$e=re([y,I],([N,D])=>N*D),$=()=>{r||(On(A,-14,Bs),On(I,Mb,Bs),On(Y,[0,3,-2.4,1.4,0],{duration:.5,times:[0,.2,.4,.65,1],ease:"easeInOut"}))},z=()=>{r||(On(A,0,Bs),On(I,1,Bs),On(Y,0,Bs))};return a.jsxs(B.div,{className:`ptypes-card${e.cta?" ptypes-card--outro":""}`,onHoverStart:$,onHoverEnd:z,style:{...P,zIndex:t+1,x:m,y:de,rotate:ze,opacity:C,scale:$e},children:[a.jsx("div",{className:"ptypes-image-slot","aria-hidden":"true",children:a.jsx(Bb,{video:Rb[e.id],image:Lb[e.id]})}),a.jsxs("div",{className:"ptypes-card-label",children:[a.jsxs("span",{className:"ptypes-card-label-eyebrow",children:[String(t+1).padStart(2,"0")," · ",e.eyebrow,e.comingSoon&&a.jsx("span",{className:"pf-coming-soon-label",style:{marginLeft:8},children:"Coming soon"})]}),a.jsx("h2",{className:"ptypes-card-label-name",children:e.name}),e.cta&&a.jsxs("button",{type:"button",className:"ptypes-cta-btn",onClick:Vb,children:["View projects",a.jsx("span",{className:"ptypes-cta-btn-arrow","aria-hidden":"true",children:"↓"})]})]})]})}function Wb(){const e=zb(),t=x.useRef(null),{scrollYProgress:n}=Ru({target:t,offset:["start start","end end"]}),s=e?160:100;return a.jsx("section",{className:"ptypes-section",ref:t,style:{height:`${Ba.length*s}vh`},"aria-label":"Portfolio disciplines",children:a.jsxs("div",{className:"ptypes-sticky",children:[a.jsx(Pb,{}),a.jsx("div",{className:"ptypes-stage",children:Ba.map((r,i)=>a.jsx($b,{cat:r,index:i,total:Ba.length,deckProgress:n,isMobile:e},r.id))})]})})}const za="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174",Ub=960;function Hb(){const e=()=>typeof window<"u"&&Math.max(window.innerWidth,window.innerHeight)<=Ub,[t,n]=x.useState(e);return x.useEffect(()=>{const s=()=>n(e());return window.addEventListener("resize",s),window.addEventListener("orientationchange",s),s(),()=>{window.removeEventListener("resize",s),window.removeEventListener("orientationchange",s)}},[]),t}let wi=null;function Gb(){return wi||(wi=new Promise((e,t)=>{if(window["pdfjs-dist/build/pdf"]){const s=window["pdfjs-dist/build/pdf"];return s.GlobalWorkerOptions.workerSrc=`${za}/pdf.worker.min.js`,e(s)}const n=document.createElement("script");n.src=`${za}/pdf.min.js`,n.onload=()=>{const s=window["pdfjs-dist/build/pdf"];s.GlobalWorkerOptions.workerSrc=`${za}/pdf.worker.min.js`,e(s)},n.onerror=t,document.head.appendChild(n)}),wi)}function Fy({pdfUrl:e,title:t="Brand Guidelines",accentColor:n="#2C365E",totalHint:s}){const[r,i]=x.useState(null),[o,l]=x.useState(1),[c,u]=x.useState(s??0),[d,h]=x.useState("loading"),[f,v]=x.useState(1),[g,w]=x.useState(!1),[b,m]=x.useState(!1),p=x.useRef(null),y=x.useRef(null),j=x.useRef(null),S=Hb(),k=x.useRef(null),E=x.useRef(null),C=x.useRef(null);x.useEffect(()=>{h("loading"),Gb().then(M=>M.getDocument(e).promise).then(M=>{i(M),u(M.numPages),l(1),h("ready")}).catch(()=>h("error"))},[e]);const P=x.useCallback(async(M,F)=>{if(!(!F||!p.current)){if(h("rendering"),y.current)try{y.current.cancel()}catch{}try{const G=await F.getPage(M),pe=p.current,We=pe.getContext("2d"),ye=j.current,Ue=ye?ye.clientWidth-2:600,Mt=G.getViewport({scale:1}),yt=Math.min(2,Ue/Mt.width),Ps=G.getViewport({scale:yt});pe.width=Ps.width,pe.height=Ps.height,y.current=G.render({canvasContext:We,viewport:Ps}),await y.current.promise,h("ready")}catch(G){(G==null?void 0:G.name)!=="RenderingCancelledException"&&h("error")}}},[]);x.useEffect(()=>{r&&P(o,r)},[o,r,P]);const A=x.useCallback(async(M,F)=>{if(!(!F||!k.current||!E.current)){if(C.current)try{C.current.cancel()}catch{}try{const G=await F.getPage(M),pe=k.current,We=pe.getContext("2d"),ye=E.current,Ue=Math.max(ye.clientWidth-32,100),Mt=Math.max(ye.clientHeight-32,100),yt=G.getViewport({scale:1}),Ps=Math.min(3,Ue/yt.width,Mt/yt.height),Zo=G.getViewport({scale:Ps});pe.width=Zo.width,pe.height=Zo.height,C.current=G.render({canvasContext:We,viewport:Zo}),await C.current.promise}catch(G){G==null||G.name}}},[]);x.useEffect(()=>{if(!b||!r)return;A(o,r);const M=()=>A(o,r);return window.addEventListener("resize",M),window.addEventListener("orientationchange",M),()=>{window.removeEventListener("resize",M),window.removeEventListener("orientationchange",M)}},[b,o,r,A]),x.useEffect(()=>{if(!b)return;const M=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=M}},[b]),x.useEffect(()=>{b&&!S&&m(!1)},[S,b]);const I=x.useCallback(M=>{l(F=>{const G=F+M;return G<1||G>c?F:(v(M),G)}
103)},[c]);x.useEffect(()=>{const M=F=>{if(b){F.key==="ArrowLeft"&&I(-1),F.key==="ArrowRight"&&I(1),F.key==="Escape"&&m(!1);return}if(!j.current)return;const G=j.current.getBoundingClientRect();G.top<window.innerHeight&&G.bottom>0&&(F.key==="ArrowLeft"&&I(-1),F.key==="ArrowRight"&&I(1),F.key==="Escape"&&g&&de())};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[I,g,b]);const Y=x.useCallback(()=>{const M=j.current;if(!M)return;const F=M.requestFullscreen||M.webkitRequestFullscreen||M.mozRequestFullScreen;F&&F.call(M).catch(()=>{})},[]),de=x.useCallback(()=>{const M=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen;M&&M.call(document).catch(()=>{})},[]),ze=x.useCallback(()=>{if(S){m(M=>!M);return}g?de():Y()},[S,g,Y,de]);x.useEffect(()=>{const M=()=>{const F=document.fullscreenElement||document.webkitFullscreenElement;w(!!F&&F===j.current)};return document.addEventListener("fullscreenchange",M),document.addEventListener("webkitfullscreenchange",M),()=>{document.removeEventListener("fullscreenchange",M),document.removeEventListener("webkitfullscreenchange",M)}},[]);const $e=17,$=Math.min(c,$e),z=Array.from({length:$},(M,F)=>c<=$e?F+1:Math.round(1+F/($e-1)*(c-1))),N=d==="loading",D=d==="error",_=d==="rendering";return S?a.jsxs("div",{className:"pdff-mobile-preview",children:[a.jsxs("div",{className:"pdff-mobile-preview-canvas-wrap",ref:j,children:[N&&a.jsxs("div",{className:"pdff-mobile-preview-loading",children:[a.jsx("div",{className:"pdff-spinner",style:{borderTopColor:n}}),a.jsx("span",{children:"Loading preview…"})]}),D&&a.jsx("div",{className:"pdff-mobile-preview-loading",children:a.jsx("span",{style:{opacity:.5},children:"⚠ Preview unavailable"})}),!N&&!D&&a.jsxs(a.Fragment,{children:[a.jsx("canvas",{ref:p,className:"pdff-mobile-preview-canvas"}),c>0&&a.jsxs("span",{className:"pdff-mobile-preview-badge",style:{background:`${n}22`,color:n,borderColor:`${n}44`},children:[c," pages"]})]})]}),a.jsxs("a",{href:e,download:!0,className:"pdff-mobile-download-btn","aria-label":`Download ${t} PDF`,children:[a.jsx("span",{className:"pdff-mobile-download-icon","aria-hidden":"true",children:a.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),a.jsx("polyline",{points:"7 10 12 15 17 10"}),a.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),a.jsxs("span",{className:"pdff-mobile-download-text",children:[a.jsx("span",{className:"pdff-mobile-download-label",children:"Download PDF"}),a.jsx("span",{className:"pdff-mobile-download-sub",children:t})]})]})]}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`pdff${g?" pdff--fullscreen":""}`,ref:j,children:[a.jsxs("div",{className:"pdff-header",children:[t&&a.jsx("span",{className:"pdff-title",children:t}),a.jsxs("div",{className:"pdff-header-right",children:[a.jsx("span",{className:"pdff-count",style:{color:n},children:N?"…":`${o} / ${c}`}),a.jsxs("button",{className:`pdff-fullscreen-btn${S?" pdff-fullscreen-btn--mobile":""}`,onClick:ze,"aria-label":g||b?"Exit fullscreen":"View full screen",title:g||b?"Exit fullscreen":"View full screen",children:[g||b?a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:a.jsx("path",{d:"M5.5 0v1.5H2.56L6 4.94 4.94 6 1.5 2.56V5.5H0V0h5.5zM10.5 0H16v5.5h-1.5V2.56L11.06 6 10 4.94l3.44-3.44H10.5V0zM6 11.06l-3.44 3.44H5.5V16H0v-5.5h1.5v2.94L4.94 10 6 11.06zM10 11.06l1.06-1.06 3.44 3.44V10.5H16V16h-5.5v-1.5h2.94L10 11.06z"})}):a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:a.jsx("path",{d:"M1.5 1h4V0H0v5.5h1.5V1zM14.5 1v4.5H16V0h-5.5v1.5h4zM14.5 15h-4v1.5H16V11h-1.5v4zM1.5 11H0v5h5.5v-1.5h-4V11z"})}),S&&!b&&a.jsx("span",{className:"pdff-fullscreen-btn-label",children:"View Full Screen"})]})]})]}),a.jsxs("div",{className:"pdff-viewer",children:[N&&a.jsxs("div",{className:"pdff-state",children:[a.jsx("div",{className:"pdff-spinner",style:{borderTopColor:n}}),a.jsx("p",{children:"Loading guidelines…"})]}),D&&a.jsxs("div",{className:"pdff-state pdff-state--error",children:[a.jsx("span",{children:"⚠"}),a.jsxs("p",{children:["Couldn't load the PDF.",a.jsx("br",{}),"Check the file is in ",a.jsx("code",{children:"public/guidelines/"})]})]}),!N&&!D&&a.jsxs("div",{className:"pdff-canvas-wrap",children:[_&&a.jsx("div",{className:"pdff-rendering",style:{borderTopColor:n}}),a.jsx("canvas",{ref:p,className:"pdff-canvas"})]}),a.jsx("button",{className:"pdff-arrow pdff-arrow--prev",onClick:()=>I(-1),disabled:o<=1,"aria-label":"Previous page",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:"10 12 6 8 10 4"})})}),a.jsx("button",{className:"pdff-arrow pdff-arrow--next",onClick:()=>I(1),disabled:o>=c,"aria-label":"Next page",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:"6 4 10 8 6 12"})})})]}),a.jsxs("div",{className:"pdff-footer",children:[a.jsxs("button",{className:"pdff-nav-btn",onClick:()=>I(-1),disabled:o<=1,children:[a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:"10 12 6 8 10 4"})}),"Prev"]}),a.jsx("div",{className:"pdff-dots",role:"tablist",children:z.map((M,F)=>{const G=Math.abs(M-o)<=(c<=$e?0:Math.floor(c/$e/2));return a.jsx("button",{role:"tab","aria-selected":G,"aria-label":`Page ${M}`,className:`pdff-dot${M===o?" pdff-dot--active":""}`,style:M===o?{background:n}:{},onClick:()=>{v(M>o?1:-1),l(M)}},F)})}),a.jsxs("button",{className:"pdff-nav-btn",onClick:()=>I(1),disabled:o>=c,children:["Next",a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:"6 4 10 8 6 12"})})]})]})]}),typeof document<"u"&&_o.createPortal(a.jsx(cn,{children:b&&a.jsxs(B.div,{className:"pdff-mfs",role:"dialog","aria-modal":"true","aria-label":`${t} full screen`,initial:{opacity:0}
103,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:[.22,1,.36,1]},children:[a.jsx(B.button,{className:"pdff-mfs-close",onClick:()=>m(!1),"aria-label":"Close full screen",initial:{opacity:0,scale:.7},animate:{opacity:1,scale:1},transition:{duration:.3,delay:.08},children:a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[a.jsx("line",{x1:"2",y1:"2",x2:"14",y2:"14"}),a.jsx("line",{x1:"14",y1:"2",x2:"2",y2:"14"})]})}),a.jsx("div",{className:"pdff-mfs-rotator",children:a.jsxs("div",{className:"pdff-mfs-inner",children:[a.jsxs("div",{className:"pdff-mfs-hint",children:[a.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("path",{d:"M2 8a6 6 0 1 1 2.2 4.65"}),a.jsx("polyline",{points:"2 12 2 15 5 15"})]}),a.jsx("span",{children:"Rotate your device for the best viewing experience"})]}),a.jsx("div",{className:"pdff-mfs-canvas-wrap",ref:E,children:a.jsx("canvas",{ref:k,className:"pdff-mfs-canvas"})}),a.jsxs("div",{className:"pdff-mfs-nav",children:[a.jsx("button",{className:"pdff-mfs-arrow",onClick:()=>I(-1),disabled:o<=1,"aria-label":"Previous page",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:"10 12 6 8 10 4"})})}),a.jsxs("span",{className:"pdff-mfs-count",children:[o," / ",c]}),a.jsx("button",{className:"pdff-mfs-arrow",onClick:()=>I(1),disabled:o>=c,"aria-label":"Next page",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:"6 4 10 8 6 12"})})})]})]})})]})}),document.body)]})}const Kb={initial:{opacity:0}
103,animate:{opacity:1,transition:{duration:.32,ease:[.4,0,.2,1]}},exit:{opacity:0,transition:{duration:.26,ease:[.4,0,.2,1]}}},Yb={initial:{opacity:0,y:24,scale:.97,filter:"blur(8px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)",transition:{duration:.44,ease:[.16,1,.3,1],delay:.06}},exit:{opacity:0,y:10,scale:.98,filter:"blur(6px)",transition:{duration:.26,ease:[.4,0,.2,1]}}},gn={initial:{opacity:0,y:16},animate:e=>({opacity:1,y:0,transition:{duration:.48,ease:[.16,1,.3,1],delay:.12+e*.055}})},se={espresso:"#332824",cream:"#F9F0E6",blue:"#86A3B3",mint:"#B1D1CE",peach:"#F9C595"};function By({size:e=120}){return a.jsx("img",{src:"/cbs/cbs-logo.webp",alt:"Care-Based Safety logo",width:e,height:e,style:{objectFit:"contain",display:"block"},onError:n=>{n.currentTarget.style.display="none"}})}function zy({to:e,suffix:t="",prefix:n=""}){const s=x.useRef(null),r=Ly(s,{once:!0,margin:"-80px"}),[i,o]=x.useState(0),l=parseInt(e),c=!isNaN(l);return x.useEffect(()=>{if(!r||!c)return;const u=1600,d=performance.now(),h=f=>{const v=Math.min((f-d)/u,1),g=1-Math.pow(1-v,3);o(Math.round(g*l)),v<1?requestAnimationFrame(h):o(l)};requestAnimationFrame(h)},[r,l,c]),a.jsxs("span",{ref:s,children:[n,c?i:e,t]})}function L({children:e,delay:t=0,className:n}){const s=x.useRef(null),r=Ly(s,{once:!0,margin:"-50px"});return a.jsx(B.div,{ref:s,className:n,initial:{opacity:0,y:28},animate:r?{opacity:1,y:0}:{},transition:{duration:.65,ease:[.16,1,.3,1],delay:t},children:e})}function H({label:e,title:t,children:n,variant:s="light",className:r}){const i=["cs-section",`cs-section--${s}`,r].filter(Boolean).join(" ");return a.jsxs("section",{className:i,children:[t&&a.jsx(L,{children:a.jsx("div",{className:"cs-section-header",children:t&&a.jsx("h2",{className:"cs-section-title",children:t})})}),n]})}function Xb({cat:e}){return a.jsxs(B.div,{className:"pdc pdc-visual",custom:0,variants:gn,style:{background:`linear-gradient(148deg, ${e.accentDark} 0%, ${e.accent} 58%, ${e.accent}bb 100%)`},children:[a.jsx("div",{className:"pdc-ring pdc-ring--1"}),a.jsx("div",{className:"pdc-ring pdc-ring--2"}),a.jsx("div",{className:"pdc-ring pdc-ring--3"}),a.jsx("span",{className:"pdc-initial",children:e.id[0].toUpperCase()}),a.jsxs("div",{className:"pdc-visual-footer",children:[a.jsx("span",{className:"pdc-visual-studio",children:"Studio KAIL"}),a.jsx("span",{className:"pdc-visual-service",children:e.slides[0].label})]})]})}function Qb({cat:e}){return a.jsxs(B.div,{className:"pdc pdc-dark",custom:1,variants:gn,children:[a.jsx("span",{className:"pdc-dark-pill",children:"Studio KAIL"}),a.jsx("span",{className:"pdc-dark-star",style:{color:e.accent},children:"✦"}),a.jsx("p",{className:"pdc-dark-text",children:e.tagline})]})}function qb({cat:e}){return a.jsxs(B.div,{className:"pdc pdc-tags",custom:2,variants:gn,children:[a.jsx("span",{className:"pdc-eyebrow",children:"Deliverables"}),a.jsx("div",{className:"pdc-chips",children:e.slides.map(t=>a.jsx("span",{className:"pdc-chip",style:{color:e.accentDark,background:`${e.accent}28`},children:t.label},t.id))})]})}function Zb({cat:e}){return a.jsxs(B.div,{className:"pdc pdc-about",custom:3,variants:gn,children:[a.jsx("span",{className:"pdc-eyebrow",children:"About"}),a.jsx("p",{className:"pdc-about-body",children:e.description})]})}function Jb({cat:e}){return a.jsxs(B.div,{className:"pdc pdc-scope",custom:4,variants:gn,children:[a.jsx("span",{className:"pdc-eyebrow pdc-eyebrow--light",children:"Our Scope"}),a.jsx("ul",{className:"pdc-scope-list",children:e.slides.map((t,n)=>a.jsxs("li",{className:"pdc-scope-item",children:[a.jsxs("span",{className:"pdc-scope-num",children:["0",n+1]}),t.label]},t.id))})]})}function ek({cat:e}){const t=e.stats[0];return a.jsxs(B.div,{className:"pdc pdc-stat-lt",custom:5,variants:gn,children:[a.jsx("span",{className:"pdc-eyebrow",children:"Impact"}),a.jsx("span",{className:"pdc-big-num",style:{color:e.accentDark},children:t.value}),a.jsx("span",{className:"pdc-stat-label",children:t.label})]})}function tk({cat:e}){const t=e.stats[1];return a.jsxs(B.div,{className:"pdc pdc-stat-dk",custom:6,variants:gn,children:[a.jsx("span",{className:"pdc-eyebrow pdc-eyebrow--light",children:"Result"}),a.jsx("span",{className:"pdc-big-num pdc-big-num--white",children:t.value}),a.jsx("span",{className:"pdc-stat-label pdc-stat-label--muted",children:t.label})]})}function nk({cat:e}){const t=e.stats[2];return a.jsxs(B.div,{className:"pdc pdc-cta",custom:7,variants:gn,children:[a.jsx("span",{className:"pdc-cta-stat-val",children:t.value}),a.jsx("span",{className:"pdc-cta-stat-lbl",children:t.label}),a.jsx("div",{className:"pdc-cta-divider"}),a.jsx("p",{className:"pdc-cta-heading",children:"Ready to build something exceptional?"}),a.jsx("a",{href:"mailto:[email protected]",className:"pdc-cta-arrow-btn","aria-label":"Get in touch",children:"↗"})]})}function sk({cs:e,slide:t}
103){return a.jsxs(H,{variant:"dark",className:"cs-hero",children:[a.jsx(L,{delay:.04,children:a.jsx("div",{className:"cs-hero-pills",children:(t.tags||[]).map(n=>a.jsx("span",{className:"cs-hero-pill",children:n},n))})}),a.jsxs(L,{delay:.1,children:[a.jsx("h1",{className:"cs-hero-title",children:t.label}),a.jsx("p",{className:"cs-hero-subtitle",children:e.subtitle})]}),a.jsx(L,{delay:.18,children:a.jsxs("div",{className:"cs-hero-visual",children:[a.jsx("div",{className:"cs-hero-img",children:a.jsxs("div",{className:"cs-hero-img-bg",children:[a.jsx(By,{size:220}),a.jsx("p",{className:"cs-ph-label",children:"Brand Identity System, Care-Based Safety"})]})}),a.jsxs("div",{className:"cs-float cs-float--tl",children:[a.jsx("span",{className:"cs-float-l",children:"Client"}),a.jsx("span",{className:"cs-float-v",children:"Care-Based Safety"})]}),a.jsxs("div",{className:"cs-float cs-float--tr",children:[a.jsx("span",{className:"cs-float-l",children:"Year"}),a.jsx("span",{className:"cs-float-v",children:e.year})]}),a.jsxs("div",{className:"cs-float cs-float--bl",children:[a.jsx("span",{className:"cs-float-l",children:"Duration"}),a.jsx("span",{className:"cs-float-v",children:e.duration})]}),a.jsxs("div",{className:"cs-float cs-float--br",children:[a.jsx("span",{className:"cs-float-l",children:"Location"}),a.jsx("span",{className:"cs-float-v",children:"Michigan, USA"})]})]})}),a.jsx(L,{delay:.28,children:a.jsxs("div",{className:"cs-hero-status",children:[a.jsx("span",{className:"cs-status-dot"}),a.jsx("span",{className:"cs-status-text",children:e.status})]})})]})}function rk({cs:e}){return a.jsx(H,{label:"01",title:"Project Overview",children:a.jsx("div",{className:"cs-bento",children:a.jsxs(L,{delay:.08,className:"cs-bc cs-bc--wide cs-bc--dark",children:[a.jsx("span",{className:"cs-bc-eye",children:"Overview"}),a.jsx("p",{className:"cs-bc-body cs-bc-body--light",children:"A community-rooted organisation in Washtenaw County, Michigan: building and advocating for non-police crisis response, prevention-first systems, and community-led approaches to public safety grounded in abolitionist principles."}),a.jsx("div",{className:"cs-bc-tag",children:"Abolitionist · Community-led · Prevention-first"})]})})})}const ik=[{icon:"⌘",title:"The Challenge",body:"Build a brand for radically different rooms: from someone reaching out in crisis to a government funding partner."},{icon:"◎",title:"User Needs",body:"Warmth and directness for community members. Rigour and credibility for funders. Results-led clarity for government."},{icon:"✦",title:"Business Goals",body:"Six structured phases. A complete visual system. Deployable immediately across every touchpoint: social, print, digital, campaign."},{icon:"◈",title:"Success Metrics",body:"Same conviction. Same warmth. Same clarity: whether the audience is a funder in a boardroom or a person reaching out for help."}];function ok({cs:e}){var s;const t=e.sections.find(r=>r.id==="brief"),n=((s=t==null?void 0:t.body)==null?void 0:s.split(`
104
105`)[0])??"";return a.jsxs(H,{label:"02",title:"The Brief",variant:"accent",children:[a.jsx(L,{delay:.08,children:a.jsx("p",{className:"cs-lead",children:n})}),a.jsx("div",{className:"cs-brief-grid",children:ik.map(({icon:r,title:i,body:o},l)=>a.jsxs(L,{delay:.1+l*.07,className:"cs-brief-card",children:[a.jsx("span",{className:"cs-brief-icon",children:r}),a.jsx("h4",{className:"cs-brief-title",children:i}),a.jsx("p",{className:"cs-brief-body",children:o})]},i))})]})}const ak=["Abolitionist","Compassionate","Imaginative","Co-created","Trustworthy","Calm but firm","Relational"];function lk({cs:e}){var s;const t=e.sections.find(r=>r.id==="strategy"),n=((s=t==null?void 0:t.body)==null?void 0:s.split(`
106
107`)[0])??"";return a.jsxs(H,{label:"03",title:"Research & Strategy",children:[a.jsx(L,{delay:.08,children:a.jsx("p",{className:"cs-lead cs-lead--sm",children:n})}),a.jsxs("div",{className:"cs-strategy-grid",children:[a.jsxs(L,{delay:.12,className:"cs-strat-card cs-strat-card--dark",children:[a.jsx("span",{className:"cs-strat-label",children:"Discovery"}),a.jsx("h4",{className:"cs-strat-head",children:"Existing materials, communications + competitor landscape."}),a.jsx("p",{className:"cs-strat-body",children:"Key insight: step entirely outside the iconographic vocabulary of conventional public safety."})]}),a.jsxs(L,{delay:.18,className:"cs-strat-card cs-strat-card--tiers",children:[a.jsx("span",{className:"cs-strat-label",children:"3 Audience Tiers"}),a.jsx("div",{className:"cs-tier-list",children:[{n:"01",head:"Community Members",body:"Direct, plain, with care. Meeting people where they are."},{n:"02",head:"Funders & Activists",body:"Values connected to measurable outcomes."},{n:"03",head:"Government & Public",body:"Results-led. Care as common sense, not ideology."}].map(({n:r,head:i,body:o})=>
107a.jsxs("div",{className:"cs-tier",children:[a.jsx("span",{className:"cs-tier-n",children:r}),a.jsxs("div",{children:[a.jsx("strong",{children:i}),a.jsx("p",{children:o})]})]},r))})]}),a.jsxs(L,{delay:.24,className:"cs-strat-card cs-strat-card--light",children:[a.jsx("span",{className:"cs-strat-label",children:"Brand Personality"}),a.jsx("div",{className:"cs-trait-cloud",children:ak.map(r=>a.jsx("span",{className:"cs-trait",children:r},r))}),a.jsx("p",{className:"cs-strat-body",style:{marginTop:14},children:"Calm but firm. Relational, not institutional."})]})]})]})}function ck({cs:e}){var i,o,l,c;const t=e.sections.find(u=>u.id==="visual"),n=(i=t==null?void 0:t.subsections)==null?void 0:i[0],s=(o=t==null?void 0:t.subsections)==null?void 0:o[1],r=[{hex:se.espresso,name:"Espresso",usage:"Primary anchor: authority, depth"},{hex:se.cream,name:"Warm Cream",usage:"Primary ground: warmth, openness"},{hex:se.blue,name:"Steel Blue",usage:"Trust, calm, secondary voice"},{hex:se.mint,name:"Soft Mint",usage:"Growth, care, optimism"},{hex:se.peach,name:"Warm Peach",usage:"Warmth, celebration, energy"}];return a.jsxs(H,{label:"04",title:"Visual Identity",variant:"dark",children:[a.jsxs(L,{delay:.1,className:"cs-logo-showcase",children:[a.jsxs("div",{className:"cs-logo-visual",children:[a.jsx("div",{className:"cs-logo-ring",children:a.jsx(By,{size:160})}),a.jsxs("div",{className:"cs-logo-wordmark",children:[a.jsx("span",{className:"cs-logo-name",style:{color:se.cream},children:"Care-Based Safety"}),a.jsx("span",{className:"cs-logo-tag",style:{color:se.mint},children:"Safety is relational."})]})]}),a.jsxs("div",{className:"cs-logo-copy",children:[a.jsx("h4",{className:"cs-vi-sub",style:{color:se.mint},children:"The Mark"}),a.jsxs("p",{className:"cs-vi-body",style:{color:se.cream+"cc"},children:[(l=n==null?void 0:n.body)==null?void 0:l.substring(0,320),"..."]}),a.jsx("div",{className:"cs-logo-specs",children:["16 rays","Circular grid","Hand-drawn strokes","Community at centre"].map(u=>a.jsx("span",{className:"cs-logo-spec",children:u},u))})]})]}),a.jsxs(L,{delay:.14,children:[a.jsx("div",{className:"cs-vi-divider"}),a.jsx("h4",{className:"cs-vi-sub",style:{color:se.mint,marginBottom:8},children:"Colour Palette"}),a.jsxs("p",{className:"cs-vi-body",style:{color:se.cream+"cc",marginBottom:28},children:[(c=s==null?void 0:s.body)==null?void 0:c.split(".")[0],"."]}),a.jsx("div",{className:"cs-palette",children:r.map(({hex:u,name:d,usage:h},f)=>a.jsxs(L,{delay:.06+f*.06,className:"cs-swatch-card",children:[a.jsx("div",{className:"cs-swatch-colour",style:{background:u,border:u==="#F9F0E6"?"1px solid rgba(255,255,255,0.15)":"none"}}),a.jsxs("div",{className:"cs-swatch-info",children:[a.jsx("span",{className:"cs-swatch-hex",children:u}),a.jsx("span",{className:"cs-swatch-name",children:d}),a.jsx("span",{className:"cs-swatch-usage",children:h})]})]},u))})]}),a.jsxs(L,{delay:.2,className:"cs-type-card",children:[a.jsx("h4",{className:"cs-vi-sub",style:{color:se.mint},children:"Typography"}),a.jsxs("div",{className:"cs-type-rows",children:[a.jsxs("div",{className:"cs-type-row",children:[a.jsx("span",{className:"cs-type-demo cs-type-demo--bold",style:{color:se.cream},children:"Aa"}),a.jsxs("div",{children:[a.jsx("strong",{style:{color:se.cream},children:"Montserrat SemiBold"}),a.jsx("p",{style:{color:se.cream+"88",fontSize:13},children:"Headers: confidence, structural clarity"})]})]}),a.jsxs("div",{className:"cs-type-row",children:[a.jsx("span",{className:"cs-type-demo cs-type-demo--light",style:{color:se.cream},children:"Aa"}),a.jsxs("div",{children:[a.jsx("strong",{style:{color:se.cream},children:"Montserrat Light"}),a.jsx("p",{style:{color:se.cream+"88",fontSize:13},children:"Body: openness, 6th-grade accessibility"})]})]})]}),a.jsx("p",{className:"cs-type-sample",style:{color:se.cream+"66"},children:'"Safety is relational. It grows through care, connection, and shared power."'})]})]})}const uk=[{n:"01",name:"Discovery",desc:"Brand audit, audience mapping, competitive landscape"},{n:"02",name:"Logo Development",desc:"Two creative directions: Beam selected and refined"},{n:"03",name:"Colour & Type",desc:"Earthy palette finalised, Montserrat system set"},{n:"04",name:"Imagery",desc:"Illustration style, photography direction, icon system"},{n:"05",name:"Voice & Messaging",desc:"Messaging architecture, tone of voice, campaign lines"},{n:"06",name:"Handover",desc:"Brand guidelines, all assets, complete file delivery"}];function dk(){return a.jsx(H,{title:"Our Process",variant:"light",children:a.jsx("div",{className:"cs-timeline",children:uk.map(({n:e,name:t,desc:n},s)=>a.jsxs(L,{delay:.06+s*.07,className:"cs-tl-item",children:[a.jsx("div",{className:"cs-tl-connector","aria-hidden":"true"}),a.jsx("div",{className:"cs-tl-dot",children:a.jsx("span",{children:e})}),a.jsxs("div",{className:"cs-tl-body",children:[a.jsx("h4",{className:"cs-tl-name",children:t}),a.jsx("p",{className:"cs-tl-desc",children:n})]})]},e))})})}const Q="/";function fk({images:e,colors:t=[]}){const[n,s]=x.useState(null);if(!e||e.length===0)return null;const r=n!==null;return a.jsx("div",{className:"img-gallery-row",children:e.map((i,o)=>{const c=n===o?" img-gallery-item--active":r?" img-gallery-item--collapsed":"";return a.jsx("div",{className:`img-gallery-item${c}`,style:{background:t[o%t.length]||"transparent"},onClick:()=>s(u=>
107u===o?null:o),children:a.jsx("img",{src:i,alt:`Illustration ${o+1}`,loading:"lazy"})},o)})})}const hk=["#F5E2CC","#D6E9E6","#C6D5E1","#F0E2D5","#E5D0C8","#D8EAE8"],pk=["#C6CEDF","#B6D5D5","#F7BFA6","#F3DCAB","#F0EDE7","#C0CCE0"];function $y({label:e="05",images:t=[],colors:n=[]}){return a.jsx(H,{label:e,title:"Custom Illustrations & Iconography",children:a.jsx(fk,{images:t,colors:n})})}const mk=[{to:"6",suffix:"",label:"Phases completed",desc:"End-to-end delivery"},{to:"5",suffix:"",label:"Brand colours",desc:"Earthy & natural palette"},{to:"16",suffix:" ray",label:"Sunburst mark",desc:"Precision geometry"},{to:"3",suffix:"",label:"Audience tiers",desc:"Community · Funders · Govt"},{to:"120",suffix:"+",label:"Brand assets delivered",desc:"Ready for immediate use"},{to:"1",suffix:" mo",label:"Timeline",desc:"Concept to guidelines"}];function gk(){return a.jsx(H,{label:"06",title:"Outcomes",variant:"dark",children:a.jsx("div",{className:"cs-impact-grid",children:mk.map(({to:e,suffix:t,label:n,desc:s},r)=>a.jsxs(L,{delay:.06+r*.07,className:"cs-impact-card",children:[a.jsx("div",{className:"cs-impact-num",style:{color:se.peach},children:a.jsx(zy,{to:e,suffix:t})}),a.jsx("div",{className:"cs-impact-label",style:{color:se.cream},children:n}),a.jsx("div",{className:"cs-impact-desc",style:{color:se.cream+"55"},children:s})]},n))})})}function yk(){return a.jsx("div",{className:"cs-flipbook-wrap",children:a.jsx(Fy,{pdfUrl:"/guidelines/cbs-guidelines.pdf",accentColor:se.espresso,totalHint:17})})}const vk=[{name:"Instagram",href:"https://www.instagram.com/__ka.il",icon:a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"})})},{name:"Upwork",href:"https://www.upwork.com/freelancers/~01c78193322f89a4a7?mp_source=share",icon:a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M18.561 13.158c-1.102 0-2.135-.467-3.074-1.227l.228-1.076.008-.042c.207-1.143.849-3.06 2.839-3.06 1.492 0 2.703 1.212 2.703 2.703-.001 1.489-1.212 2.702-2.704 2.702zm0-8.14c-2.539 0-4.51 1.649-5.31 4.366-1.22-1.834-2.148-4.036-2.687-5.892H7.828v7.112c-.002 1.406-1.141 2.546-2.547 2.546-1.405 0-2.543-1.14-2.543-2.546V3.492H0v7.112c0 2.914 2.37 5.303 5.281 5.303 2.913 0 5.283-2.389 5.283-5.303v-1.19c.529 1.107 1.182 2.229 1.974 3.221l-1.673 7.873h2.797l1.213-5.71c1.063.679 2.285 1.109 3.686 1.109 3 0 5.439-2.452 5.439-5.45 0-3-2.439-5.439-5.439-5.439z"})})},{name:"Email",href:"mailto:[email protected]",icon:a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[a.jsx("rect",{x:"2",y:"4.5",width:"20",height:"15",rx:"2.5"}),a.jsx("path",{d:"M3 6.5 12 13l9-6.5"})]})}],xk="Get in touch",Nh=xk.split(" "),wk="   •   ",Sk=12,xt=820,jk=16,Th=280,bk=.09,kk=.05,ec=[];for(let e=0;e<Sk;e++)Nh.forEach((t,n)=>{ec.push({key:`cta-${e}-${n}`,text:n<Nh.length-1?`${t} `:t})}),ec.push({key:`cta-${e}-sep`,text:wk});function Ck(){const e=x.useRef(null),t=x.useRef(null),n=x.useRef(null),s=x.useRef([]),r=x.useRef(null),i=x.useRef(1),o=x.useRef(null),l=x.useRef(null),c=x.useRef(0),u=x.useRef(80);x.useEffect(()=>{const g=e.current,w=t.current,b=n.current;if(!g||!w||!b)return;const m=()=>{const y=g.getBoundingClientRect(),j=y.width||window.innerWidth,S=y.height||160,k=j+xt*2,E=S/2,C=0;w.setAttribute("viewBox",`${-xt} 0 ${k} ${S}`),w.setAttribute("width",k),w.setAttribute("height",S),b.setAttribute("stroke-width",S*.4),g.style.setProperty("--cta-banner-font",`${S*.16}px`),u.current=S*.08;const P=[];for(let I=-xt;I<=k-xt;I+=jk)P.push({x:I,baseY:E+Math.sin(I/xt*Math.PI*2)*C,push:0});s.current=P;let A="";for(let I=0;I<P.length;I++){const Y=P[I];A+=`${I===0?"M":"L"}${Y.x.toFixed(1)},${(Y.baseY+Y.push).toFixed(1)} `}b.setAttribute("d",A)};if(m(),typeof ResizeObserver>"u")return;const p=new ResizeObserver(m);return p.observe(g),()=>p.disconnect()},[]),x.useEffect(()=>()=>{o.current!=null&&cancelAnimationFrame(o.current)},[]);const d=x.useCallback(()=>
107{if(o.current!=null)return;const g=()=>{const w=s.current,b=r.current,m=i.current,p=u.current;let y=0;for(let S=0;S<w.length;S++){const k=w[S];let E=0;if(b!=null){const P=Math.abs(k.x-b);P<Th&&(E=.5*(1+Math.cos(P/Th*Math.PI))*p*m)}k.push+=(E-k.push)*bk;const C=Math.abs(k.push);C>y&&(y=C)}let j="";for(let S=0;S<w.length;S++){const k=w[S];j+=`${S===0?"M":"L"}${k.x.toFixed(1)},${(k.baseY+k.push).toFixed(1)} `}n.current&&n.current.setAttribute("d",j),b!=null||y>kk?o.current=requestAnimationFrame(g):o.current=null};o.current=requestAnimationFrame(g)},[]),h=x.useCallback(g=>{const w=e.current;if(!w)return;const b=w.getBoundingClientRect();r.current=g.clientX-b.left,i.current=g.clientY-b.top<b.height/2?1:-1,d()},[d]),f=x.useCallback(()=>{r.current=null,d()},[d]),v=x.useCallback(g=>{if(g.button!==void 0&&g.button!==0)return;const w=l.current;if(!w)return;const b=g.clientX,m=c.current;w.style.cursor="grabbing";const p=j=>{let S=m+(j.clientX-b);for(;S<=-xt;)S+=xt;for(;S>=xt;)S-=xt;c.current=S,w.style.transform=`translateX(${S}px)`},y=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),w.style.cursor=""};window.addEventListener("pointermove",p),window.addEventListener("pointerup",y),window.addEventListener("pointercancel",y)},[]);return a.jsx("div",{className:"cs-cta-banner-slot",children:a.jsx("div",{className:"cs-cta-banner-drag-layer",ref:l,onPointerDown:v,children:a.jsx("div",{className:"cs-cta-banner-track",ref:e,style:{"--cta-period":`${xt}px`},onMouseMove:h,onMouseLeave:f,children:a.jsxs("svg",{ref:t,className:"cs-cta-banner-svg",preserveAspectRatio:"none",children:[a.jsx("path",{ref:n,id:"ctaBannerWavePath",className:"cs-cta-banner-ribbon",fill:"none",strokeLinecap:"round"}),a.jsx("text",{className:"cs-cta-banner-text",dominantBaseline:"central",children:a.jsx("textPath",{href:"#ctaBannerWavePath",startOffset:"0",children:ec.map(g=>a.jsx("tspan",{className:"cs-cta-banner-word",children:g.text},g.key))})})]})})})})}function Ze(){return a.jsxs("section",{className:"cs-end-cta",children:[a.jsx("div",{className:"cs-cta-img-wrap","aria-hidden":"true",children:a.jsx("img",{src:`${Q}footer/getintouch.webp`,alt:"",className:"cs-cta-img cs-cta-img--desktop"})}),a.jsx("div",{className:"cs-cta-img-wrap cs-cta-img-wrap--mobile","aria-hidden":"true",children:a.jsx("img",{src:`${Q}footer/getintouch-mobile.webp`,alt:"",className:"cs-cta-img"})}),a.jsxs("div",{className:"cs-cta-content",children:[a.jsx(L,{delay:.06,children:a.jsxs("p",{className:"cs-cta-eyebrow",children:[a.jsx("span",{style:{fontWeight:300,display:"block"},children:"Working on"}),a.jsx("span",{style:{fontWeight:600,display:"block"},children:"something similar?"})]})}),a.jsx(L,{delay:.2,children:a.jsx("div",{className:"cs-cta-links",children:vk.map(({name:e,href:t,icon:n})=>a.jsxs("a",{href:t,target:e==="Email"?void 0:"_blank",rel:"noopener noreferrer",className:"cs-cta-link",children:[a.jsx("span",{className:"cs-cta-link-icon",children:n}),a.jsx("span",{className:"cs-cta-link-label",children:e})]},e))})})]}),a.jsx("div",{className:"cs-cta-banner-wrap","aria-hidden":"true",children:a.jsx(Ck,{})})]})}const U={slate:"#2C365E",teal:"#4F8C8C",orange:"#E76235",ochre:"#EBB363",linen:"#F0EDE7"};function Wy({size:e=120}){return a.jsx("img",{src:"/pgm/pgm-logo.webp",alt:"PGM logo",width:e,height:e,style:{objectFit:"contain",display:"block"},onError:n=>{n.currentTarget.style.display="none"}})}function Ek({cs:e,slide:t}){return a.jsxs(H,{variant:"dark",className:"cs-hero pgm-hero",children:[a.jsx(L,{delay:.04,children:a.jsx("div",{className:"cs-hero-pills",children:(t.tags||[]).map(n=>a.jsx("span",{className:"cs-hero-pill pgm-pill",children:n},n))})}),a.jsxs(L,{delay:.1,children:[a.jsxs("h1",{className:"cs-hero-title pgm-hero-title",children:["Participatory",a.jsx("br",{}),"Grantmaking",a.jsx("br",{}),"Community"]}
107),a.jsx("p",{className:"cs-hero-subtitle",children:e.subtitle})]}),a.jsx(L,{delay:.18,children:a.jsxs("div",{className:"cs-hero-visual pgm-hero-visual",children:[a.jsx("div",{className:"cs-hero-img pgm-hero-img",children:a.jsxs("div",{className:"cs-hero-img-bg pgm-hero-img-bg",children:[a.jsx(Wy,{size:200}),a.jsx("p",{className:"cs-ph-label",style:{color:U.ochre},children:"Brand Identity System, PGM Global"})]})}),a.jsxs("div",{className:"cs-float cs-float--tl pgm-float",children:[a.jsx("span",{className:"cs-float-l",children:"Client"}),a.jsx("span",{className:"cs-float-v",children:"PGM Global"})]}),a.jsxs("div",{className:"cs-float cs-float--tr pgm-float",children:[a.jsx("span",{className:"cs-float-l",children:"Year"}),a.jsx("span",{className:"cs-float-v",children:e.year})]}),a.jsxs("div",{className:"cs-float cs-float--bl pgm-float",children:[a.jsx("span",{className:"cs-float-l",children:"Duration"}),a.jsx("span",{className:"cs-float-v",children:e.duration})]}),a.jsxs("div",{className:"cs-float cs-float--br pgm-float",children:[a.jsx("span",{className:"cs-float-l",children:"Reach"}),a.jsx("span",{className:"cs-float-v",children:"Global"})]})]})}),a.jsx(L,{delay:.28,children:a.jsxs("div",{className:"cs-hero-status",children:[a.jsx("span",{className:"cs-status-dot pgm-status-dot"}),a.jsx("span",{className:"cs-status-text",children:e.status})]})})]})}function Nk({cs:e}){var s;const t=e.sections.find(r=>r.id==="overview"),n=((s=t==null?void 0:t.body)==null?void 0:s.split(`
108
109`))??[];return a.jsx(H,{label:"01",title:"Project Overview",children:a.jsx("div",{className:"cs-bento pgm-bento",children:a.jsxs(L,{delay:.08,className:"cs-bc cs-bc--wide pgm-bc--slate",children:[a.jsx("span",{className:"cs-bc-eye",style:{color:U.ochre},children:"Overview"}),a.jsx("p",{className:"cs-bc-body cs-bc-body--light",children:n[0]}),a.jsx("div",{className:"cs-bc-tag",style:{background:U.teal+"33",color:U.teal},children:"Community-centred · Power-shifting · Global"})]})})})}const Tk=[{icon:"◎",title:"The Challenge",body:"Build a brand that serves grassroots activists, experienced funders, and complete newcomers: simultaneously, credibly."},{icon:"⌘",title:"User Needs",body:"Warmth and solidarity for community leaders. Rigour and peer respect for philanthropy professionals. Clarity for newcomers."},{icon:"✦",title:"Business Goals",body:"Six structured phases. A complete visual system. Deployable across every touchpoint: social, reports, presentations, events."},{icon:"◈",title:"Success",body:"A brand that practises what PGM preaches: participatory in spirit, clear without jargon, warm without sentimentality."}];function Pk({cs:e}){var s;const t=e.sections.find(r=>r.id==="brief"),n=((s=t==null?void 0:t.body)==null?void 0:s.split(`
110
111`)[0])??"";return a.jsxs(H,{label:"02",title:"The Brief",variant:"accent",children:[a.jsx(L,{delay:.06,children:a.jsx("p",{className:"cs-lead",children:n})}),a.jsx("div",{className:"cs-brief-grid",children:Tk.map(({icon:r,title:i,body:o},l)=>a.jsxs(L,{delay:.1+l*.07,className:"cs-brief-card pgm-brief-card",children:[a.jsx("span",{className:"cs-brief-icon",style:{color:U.orange},children:r}),a.jsx("h4",{className:"cs-brief-title",children:i}),a.jsx("p",{className:"cs-brief-body",children:o})]},i))})]})}const Ak=[{n:"01",name:"Brand Discovery & Direction",desc:"Review of existing materials, competitor research, and moodboard directions.",deliverable:"Brand overview draft · Visual direction moodboard · Project roadmap"},{n:"02",name:"Logo Refinement, Colour & Type",desc:"Logo concept exploration, colour and typography pairings, scalability testing.",deliverable:"Refined primary logo · Logo guidelines · Colour & Typography system"},{n:"03",name:"Colour & Typography Systems",desc:"Full palette development across HEX, RGB, CMYK and Pantone. Typeface hierarchy finalised.",deliverable:"Completed colour palette · Typography section · Updated sample layouts"},{n:"04",name:"Imagery, Graphics & Iconography",desc:"Photography style guidelines, graphic shapes, icon system and cohesion mockups.",deliverable:"Imagery style guide · Iconography section · Sample applications"},{n:"05",name:"Voice, Messaging & Applications",desc:"Tone of voice, messaging pillars, sample copy, and brand application templates.",deliverable:"Voice & Messaging section · Brand Applications section · Final templates"},{n:"06",name:"Final Guidelines & Handover",desc:"Full document assembly, proofing, consistency checks and asset export.",deliverable:"Brand guidelines PDF · Editable source files · Asset library · Implementation notes"}];function Mk(){return a.jsx(H,{title:"Our Process",variant:"light",children:a.jsx("div",{className:"cs-timeline pgm-timeline",children:Ak.map(({n:e,name:t,desc:n,deliverable:s},r)=>a.jsxs(L,{delay:.06+r*.08,className:"cs-tl-item pgm-tl-item",children:[a.jsx("div",{className:"cs-tl-dot pgm-tl-dot",style:{borderColor:U.orange+"55"},children:a.jsx("span",{style:{color:U.orange},children:e})}),a.jsxs("div",{className:"cs-tl-body",children:[a.jsx("h4",{className:"cs-tl-name pgm-tl-name",style:{color:U.slate},children:t}),a.jsx("p",{className:"cs-tl-desc",style:{color:U.slate+"aa"},children:n})]})]},e))})})}const Lk=[{label:"Conversational",sub:"not corporate"},{label:"Warm",sub:"not institutional"},{label:"Clear",sub:"not academic"},{label:"Encouraging",sub:"not prescriptive"},{label:"Grounded",sub:"in joy & possibility"}];function Rk({cs:e}){var s;const t=e.sections.find(r=>r.id==="strategy"),n=((s=t==null?void 0:t.body)==null?void 0:s.split(`
112
113`))??[];return a.jsxs(H,{label:"03",title:"Research & Strategy",variant:"dark",children:[a.jsxs("div",{className:"pgm-strategy-grid",children:[a.jsx("div",{className:"pgm-strat-main",children:n.map((r,i)=>a.jsx(L,{delay:.06+i*.1,children:a.jsx("p",{className:"cs-lead cs-lead--sm pgm-strat-para",children:r})},i))}),a.jsxs(L,{delay:.2,className:"pgm-strat-side",children:[a.jsx("span",{className:"cs-strat-label",style:{color:U.ochre},children:"Brand Personality"}),a.jsx("div",{className:"pgm-traits",children:Lk.map(({label:r,sub:i})=>a.jsxs("div",{className:"pgm-trait",children:[a.jsx("span",{className:"pgm-trait-main",style:{color:U.linen},children:r}),a.jsx("span",{className:"pgm-trait-sub",children:i})]},r))})]})]}),a.jsx(L,{delay:.32,children:a.jsx("div",{className:"pgm-audience-tiers",children:[{audience:"Community Leaders",tone:"Affirming · Solidarity-driven",color:U.orange},{audience:"Philanthropy Professionals",tone:"Practical · Peer-to-peer",color:U.teal},{audience:"Industry Newcomers",tone:"Clear · Encouraging",color:U.ochre}].map(({audience:r,tone:i,color:o})=>a.jsxs("div",{className:"pgm-tier",style:{borderLeftColor:o},children:[a.jsx("span",{className:"pgm-tier-label",style:{color:o},children:r}),a.jsx("span",{className:"pgm-tier-tone",children:i})]},r))})})]})}function Dk({cs:e}){var r;const t=e.sections.find(i=>i.id==="visual"),n=(t==null?void 0:t.subsections)??[],s=[{hex:U.slate,name:"Midnight Slate",usage:"Primary anchor: depth, authority"},{hex:U.teal,name:"Muted Teal",usage:"Calm, connection, secondary voice"},{hex:U.orange,name:"Burnt Orange",usage:"Energy, joy, urgency"},{hex:U.ochre,name:"Golden Ochre",usage:"Warmth, optimism, celebration"},{hex:U.linen,name:"Linen White",usage:"Open ground, breathing room"}];return a.jsxs(H,{title:"Visual Identity",variant:"dark",children:[a.jsxs(L,{delay:.06,className:"cs-logo-showcase pgm-logo-showcase",children:[a.jsx("div",{className:"pgm-logo-ring",children:a.jsx(Wy,{size:260})}),a.jsxs("div",{className:"cs-logo-desc",children:[a.jsx("h4",{className:"cs-vi-sub",style:{color:U.ochre},children:"The Logo"}),a.jsx("p",{className:"cs-vi-body",style:{color:U.linen+"cc"},children:(r=n[0])==null?void 0:r.body}),a.jsx("div",{className:"cs-logo-specs",children:["4 abstract figures","Continuous cir
113cle","Equal balance","Community at centre"].map(i=>a.jsx("span",{className:"cs-logo-spec",style:{borderColor:U.teal+"44",color:U.linen+"aa"},children:i},i))})]})]}),a.jsxs(L,{delay:.14,children:[a.jsx("div",{className:"cs-vi-divider",style:{borderColor:"rgba(240,237,231,0.12)"}}),a.jsx("h4",{className:"cs-vi-sub",style:{color:U.ochre,marginBottom:8},children:"Colour Palette"}),a.jsx("p",{className:"cs-vi-body",style:{color:U.linen+"cc",marginBottom:28},children:"A warm, grounded palette balancing depth with optimism across every touchpoint."}),a.jsx("div",{className:"cs-palette",children:s.map(({hex:i,name:o,usage:l},c)=>a.jsxs(L,{delay:.06+c*.06,className:"cs-swatch-card",children:[a.jsx("div",{className:"cs-swatch-colour",style:{background:i,border:i===U.linen?"1px solid rgba(255,255,255,0.15)":"none"}}),a.jsxs("div",{className:"cs-swatch-info",children:[a.jsx("span",{className:"cs-swatch-hex",children:i}),a.jsx("span",{className:"cs-swatch-name",children:o}),a.jsx("span",{className:"cs-swatch-usage",children:l})]})]},i))})]}),a.jsxs(L,{delay:.2,className:"cs-type-card",children:[a.jsx("h4",{className:"cs-vi-sub",style:{color:U.ochre},children:"Typography"}),a.jsxs("div",{className:"cs-type-rows",children:[a.jsxs("div",{className:"cs-type-row",children:[a.jsx("span",{className:"pgm-type-demo-display",style:{color:U.linen,fontSize:"2.8rem",lineHeight:1},children:"Aa"}),a.jsxs("div",{children:[a.jsx("strong",{style:{color:U.linen},children:"Cal Sans Regular"}),a.jsx("p",{style:{color:U.linen+"88",fontSize:13},children:"Display: warmth, humanity, contemporary feel"})]})]}),a.jsxs("div",{className:"cs-type-row",children:[a.jsx("span",{className:"pgm-type-demo-body",style:{color:U.linen,fontSize:"2.4rem",lineHeight:1,fontWeight:400},children:"Aa"}),a.jsxs("div",{children:[a.jsx("strong",{style:{color:U.linen},children:"Darker Grotesque"}),a.jsx("p",{style:{color:U.linen+"88",fontSize:13},children:"Body: clarity, legibility across all reading levels"})]})]})]}),a.jsx("p",{className:"cs-type-sample",style:{color:U.linen+"55"},children:'"Shifting power in philanthropy by centring community knowledge."'})]})]})}const Ik=[{value:6,suffix:"",label:"Phases Delivered"},{value:17,suffix:"",label:"Guideline Pages"},{value:15,suffix:"",label:"Illustrations"},{value:4,suffix:"",label:"Logo Variations"},{value:5,suffix:"",label:"Brand Colours"},{value:4,suffix:"",label:"Brand Values"}];function Vk(){return a.jsx(H,{title:"Outcome",children:a.jsx("div",{className:"cs-impact-grid pgm-impact-grid",children:Ik.map(({value:e,suffix:t,label:n},s)=>a.jsxs(L,{delay:.08+s*.1,className:"cs-impact-card pgm-impact-card",children:[a.jsx("span",{className:"cs-impact-num",children:a.jsx(zy,{to:e,suffix:t})}),a.jsx("span",{className:"cs-impact-label",style:{color:U.teal},children:n})]},n))})})}function _k(){return a.jsx("div",{className:"cs-flipbook-wrap",children:a.jsx(Fy,{pdfUrl:"/guidelines/pgm-guidelines.pdf",accentColor:U.slate,totalHint:17})})}const Ok=()=>a.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",children:a.jsx("path",{d:"M8.5 10.5C9.6 10.5 10.5 9.6 10.5 8.5S9.6 6.5 8.5 6.5H4v8h4.8c1.25 0 2.2-.95 2.2-2.2 0-1-.63-1.6-1.5-1.75-.31-.04-.65-.05-1-.05zM5.5 8H8c.83 0 1.5.67 1.5 1.5S8.83 11 8 11H5.5V8zm3 5H5.5v-1H8.5c.55 0 1 .45 1 1s-.45 1-1 1zM15.5 9.5c-1.5 0-3 1-3 2.5h6c0-1.5-1.5-2.5-3-2.5zm-2.5 4c.3.8 1.3 1 2 1s1.8-.3 2.1-1h1.5c-.5 1.5-1.6 2.5-3.3 2.5-1.9 0-3.5-1.5-3.5-3.5S13 9 15 9c2.2 0 3.5 1.5 3.5 3.5v1h-5.5zM13.5 6h4v1h-4V6z"})}),Fk=()=>a.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[a.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor",strokeWidth:"1.6"}),a.jsx("path",{d:"M3.5 9c2.3 0 5-1 7-3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),a.jsx("path",{d:"M18.5 9c-2 .5-4.5 2.5-5.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),a.jsx("path",{d:"M7 18c1.5-3 4-6 11-6.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),Ph=()=>a.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[a.jsx("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor",strokeWidth:"1.6"}),a.jsx("ellipse",{cx:"11",cy:"11",rx:"3.5",ry:"8",stroke:"currentColor",strokeWidth:"1.4"}),a.jsx("line",{x1:"3",y1:"11",x2:"19",y2:"11",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),a.jsx("line",{x1:"4",y1:"7.5",x2:"18",y2:"7.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),a.jsx("line",{x1:"4",y1:"14.5",x2:"18",y2:"14.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),Bk=()=>
113a.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",children:[a.jsx("path",{d:"M4.5 14.5C8 17 14 17 17.5 14.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",fill:"none"}),a.jsx("path",{d:"M16 15.5l2-1-1 2",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),a.jsx("text",{x:"4",y:"12",fontSize:"7",fontWeight:"700",fontFamily:"sans-serif",fill:"currentColor",children:"amazon"})]}),zk=()=>a.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M23.977 6.416c-.105 2.338-1.739 5.543-4.894 9.609-3.268 4.247-6.026 6.37-8.29 6.37-1.409 0-2.578-1.294-3.553-3.881L5.322 11.4C4.603 8.816 3.834 7.522 3.01 7.522c-.179 0-.806.378-1.881 1.132L0 7.197c1.185-1.044 2.351-2.084 3.501-3.128C5.08 2.701 6.266 1.984 7.055 1.91c1.867-.18 3.016 1.1 3.447 3.838.465 2.953.789 4.789.971 5.507.539 2.45 1.131 3.674 1.776 3.674.502 0 1.256-.796 2.265-2.385 1.004-1.589 1.54-2.797 1.612-3.628.144-1.371-.395-2.061-1.614-2.061-.574 0-1.167.121-1.777.391 1.186-3.868 3.434-5.757 6.762-5.637 2.473.06 3.628 1.664 3.48 4.807z"})});function Kr({cs:e,slide:t,cfg:n,heroContent:s}){const{accent:r,dark:i,heroSrc:o,heroLabel:l}=n,c=s??(o?a.jsx("img",{src:o,alt:l??t.label,className:"pkg-hero-img"}):null);return a.jsxs(H,{className:"pkg-hero",children:[a.jsx(L,{delay:.04,children:a.jsx("div",{className:"cs-hero-pills",children:(t.tags||[]).map(u=>a.jsx("span",{className:"cs-hero-pill",style:{background:r+"18",color:r,borderColor:r+"44"},children:u},u))})}),a.jsxs(L,{delay:.1,children:[a.jsx("h1",{className:"cs-hero-title",style:{color:i},children:t.label}),a.jsx("p",{className:"cs-hero-subtitle",style:{color:i+"88"}
113,children:e.subtitle})]}),c&&a.jsx(L,{delay:.18,children:a.jsx("div",{className:"pkg-hero-visual",children:c})}),a.jsx(L,{delay:.28,children:a.jsxs("div",{className:"cs-hero-status",children:[a.jsx("span",{className:"cs-status-dot",style:{background:r}}),a.jsx("span",{className:"cs-status-text",style:{color:i+"aa"},children:e.status})]})})]})}function Yr({cs:e,cfg:t}){var l;const{accent:n,dark:s,specs:r}=t,i=e.sections.find(c=>c.id==="overview"),o=((l=i==null?void 0:i.body)==null?void 0:l.split(`
114
115`))??[];return a.jsx(H,{title:"Project Overview",children:a.jsxs("div",{className:"pkg-overview-grid",children:[a.jsx(L,{delay:.08,className:"pkg-overview-text",children:o.map((c,u)=>a.jsx("p",{style:{color:s+"bb",lineHeight:1.85,marginBottom:14},children:c},u))}),a.jsx(L,{delay:.16,className:"pkg-spec-stack",style:{"--pkg-accent":n},children:r.map(({label:c,value:u})=>a.jsxs("div",{className:"pkg-spec-row",children:[a.jsx("span",{className:"pkg-spec-label",children:c}),a.jsx("span",{className:"pkg-spec-value",style:{color:s},children:u})]},c))})]})})}function Qo({cfg:e}){const{images:t,galleryLayout:n="two-then-one"}=e,[s,r,i]=t;return a.jsx(H,{title:"The Work",children:a.jsx(L,{delay:.06,className:"pkg-gallery",children:n==="two-then-one"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"pkg-gallery-row",children:[a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--half",children:a.jsx("img",{src:s.src,alt:s.alt})}),a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--half",children:a.jsx("img",{src:r.src,alt:r.alt})})]}),i&&a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--full",children:a.jsx("img",{src:i.src,alt:i.alt})})]}):n==="one-then-two"?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--full",children:a.jsx("img",{src:s.src,alt:s.alt})}),a.jsxs("div",{className:"pkg-gallery-row",children:[r&&a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--half",children:a.jsx("img",{src:r.src,alt:r.alt})}),i&&a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--half",children:a.jsx("img",{src:i.src,alt:i.alt})})]})]}):a.jsx("div",{className:"pkg-gallery-row pkg-gallery-row--three",children:t.map(o=>a.jsx("div",{className:"pkg-gallery-item pkg-gallery-item--third",children:a.jsx("img",{src:o.src,alt:o.alt})},o.src))})})})}function $k({cfg:e}){const{highlights:t,highlightsTitle:n,highlightsBody:s}=e;return t!=null&&t.length?a.jsxs(H,{title:n??"Details",variant:"dark",children:[s&&a.jsx(L,{delay:.06,children:a.jsx("p",{className:"cs-vi-body",style:{color:"rgba(255,255,255,0.65)",marginBottom:24},children:s})}),a.jsx("div",{className:"pkg-highlights",children:t.map(({name:r,sub:i,color:o},l)=>a.jsxs(L,{delay:.06+l*.05,className:"pkg-hl-card",children:[o&&a.jsx("div",{className:"pkg-hl-swatch",style:{background:o}}),a.jsxs("div",{className:"pkg-hl-info",children:[a.jsx("span",{className:"pkg-hl-name",children:r}),i&&a.jsx("span",{className:"pkg-hl-sub",children:i})]})]},r))})]}):null}function qo({cfg:e}){const{stats:t}=e;return a.jsx(H,{title:"At a Glance",variant:"dark",children:a.jsx("div",{className:"pkg-stats",children:t.map(({value:n,label:s},r)=>a.jsxs(L,{delay:.06+r*.08,className:"pkg-stat",children:[a.jsx("span",{className:"pkg-stat-value",style:{color:"#E0F87D"},children:n}),a.jsx("span",{className:"pkg-stat-label",style:{color:"rgba(255,255,255,0.55)"},children:s})]},s))})})}function Xr({cs:e,cfg:t}){const{linksBody:n}=t,s=[e.behance&&{href:e.behance,Icon:Ok,label:"Behance"},e.dribbble&&{href:e.dribbble,Icon:Fk,label:"Dribbble"},e.website&&{href:e.website,Icon:Ph,label:e.client?`${e.client} Website`:"Website"},e.amazon&&{href:e.amazon,Icon:Bk,label:"View on Amazon"},e.article&&{href:e.article,Icon:Ph,label:"Read Article"},e.vimeo&&{href:e.vimeo,Icon:zk,label:"Watch on Vimeo"}].filter(Boolean);return s.length?a.jsxs(H,{title:"View the Project",variant:"dark",children:[n&&a.jsx(L,{delay:.06,children:a.jsx("p",{className:"cs-vi-body",style:{color:"rgba(255,255,255,0.65)",marginBottom:28},children:n})}),a.jsx(L,{delay:.12,className:"pkg-links",children:s.map(({href:r,Icon:i,label:o})=>a.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"pkg-link-btn",children:[a.jsx("span",{className:"pkg-link-icon",children:a.jsx(i,{})}),a.jsx("span",{className:"pkg-link-label",children:o}),a.jsx("span",{className:"pkg-link-arrow",children:"↗"})]},r))})]}):null}const Fn={accent:"#C8785A",dark:"#2E2218",light:"#FAF5EE",heroSrc:`${Q}woodco/woodco3.webp`,heroLabel:"WOODCO candle packaging, all 6 labels",images:[{src:`${Q}woodco/woodco1.webp`,alt:"Spiced Citrus, Spring Rain and Wild Garden lifestyle shot"},{src:`${Q}woodco/woodco2.webp`,alt:"Nightlight, Negroni and Waves lifestyle shot"},{src:`${Q}woodco/woodco3.webp`,alt:"All 6 WOODCO candle labels flat lay"}],galleryLayout:"two-then-one",specs:[{label:"Client",value:"WOODCO"},{label:"Sector",value:"Lifestyle / Home"},{label:"Location",value:"Hong Kong"},{label:"Timeline",value:"May 2021"},{label:"Duration",value:"2 Weeks"},{label:"Revisions",value:"4 Rounds"}],highlights:[{name:"Spiced Citrus",sub:"Sandalwood · Ginger Flower · Grapefruit",color:"#C8785A"},{name:"Spring Rain",sub:"Matcha · Guava · Rain",color:"#D4948A"},{name:"Wild Garden",sub:"Patchouli · Cypress · Yellow Rose",color:"#6B8C72"},{name:"Nightlight",sub:"Cedar · Fig · Ylang Ylang",color:"#2E3D4F"},{name:"Negroni",sub:"Ispahan Wood · Cinnamon · Orange",color:"#8B2B4A"},{name:"Waves",sub:"Sea Salt · Ocean · Coconut",color:"#5C7FA8"}],highlightsTitle:"The Collection",highlightsBody:"Six fragrance blends, each with its own visual identity built from the same abstract shape language and contrasting colour palette.",stats:[{value:6,label:"Scent Labels"},{value:2,label:"Weeks Timeline"},{value:4,label:"Revision Rounds"}],linksBody:"See the full project on Behance and Dribbble, or visit WOODCO's website."},zs={accent:"#B86048",dark:"#2E1810",light:"#F5EDE0",heroSrc:`${Q}la-terra-rossa/laterrarossa3.webp`,heroLabel:"La Terra Rossa coffee packaging spread",images:[{src:`${Q}la-terra-rossa/laterrarossa1.webp`,alt:"La Terra Rossa Farewell Blend bags, mountain illustration"},{src:`${Q}la-terra-rossa/laterrarossa2.webp`,alt:"La Terra Rossa Farewell Blend bags, abstract illustration"},{src:`${Q}la-terra-rossa/laterrarossa3.webp`,alt:"La Terra Rossa full packaging spread"}],galleryLayout:"two-then-one",specs:[{label:"Client",value:"La Terra Rossa"},{label:"Sector",value:"Food & Beverage"},{label:"Location",value:"Portland, Oregon"},{label:"Includes",value:"Logo Redesign + Packaging"},{label:"Duration",value:"1 Week"},{label:"Product",value:"Coffee Bags"}],stats:[{value:2,label:"Packaging Designs"},{value:1,label:"Logo Illustration"},{value:1,label:"Week Delivered"}],linksBody:"Visit the La Terra Rossa website."},$s={accent:"#B89060",dark:"#3C3028",light:"#F8F0E8",heroSrc:`${Q}oracle-cards/oracle1.webp`,heroLabel:"Self Awakening Oracle Cards, card samples",images:[{src:`${Q}oracle-cards/oracle1.webp`,alt:"Oracle cards: Protection, Truthfulness, Acceptance, Healing"},{src:`${Q}oracle-cards/oracle2.webp`,alt:"Oracle cards: Perseverance, Balance, Resilience, Sorrow"},{src:`${Q}
115oracle-cards/oracle3.webp`,alt:"Oracle cards: Self-Awakening, Judgement, Frustration, Rituals"}],galleryLayout:"one-then-two",specs:[{label:"Client",value:"Annalisa Brizzante"},{label:"Sector",value:"Publishing / Wellness"},{label:"Format",value:"Book Illustrations"},{label:"Cards",value:"41 Unique Illustrations"},{label:"Duration",value:"2 Months"},{label:"Style",value:"Mixed Media"}],stats:[{value:41,label:"Unique Illustrations"},{value:2,label:"Months of Work"},{value:1,label:"Published Book"},{value:4,label:"Illustration Styles"}],linksBody:"Find the book on Amazon."},Si={accent:"#2A7070",dark:"#1A3838",light:"#EEF5F5",heroSrc:`${Q}signature-balm/southshorn1.webp`,heroLabel:"Signature Balm piercing care tin packaging",images:[{src:`${Q}signature-balm/southshorn1.webp`,alt:"Signature Balm single tin, angled view"},{src:`${Q}signature-balm/southshorn2.webp`,alt:"Signature Balm, multiple tins"},{src:`${Q}signature-balm/southshorn3.webp`,alt:"Signature Balm tin, top view"}],galleryLayout:"one-then-two",specs:[{label:"Client",value:"SouthShore Adornments"},{label:"Sector",value:"Wellness / Body Jewellery"},{label:"Location",value:"United Kingdom"},{label:"Product",value:"Signature Balm 20ml"},{label:"Duration",value:"2 Weeks"},{label:"Format",value:"Tin Packaging"}],stats:[{value:1,label:"Tin Packaging Design"},{value:2,label:"Weeks Delivered"},{value:1,label:"Pattern System"},{value:1,label:"Happy Client"}],linksBody:"Visit SouthShore Adornments to see the product."},ji={accent:"#E07848",dark:"#2C1A10",light:"#FDF5EE",heroSrc:null,specs:[{label:"Client",value:"Spurgeons"},{label:"Sector",value:"Charity / Children"},{label:"Location",value:"United Kingdom"},{label:"Videos",value:"5 Explainer Videos"},{label:"Duration",value:"4 Months"},{label:"Campaign",value:"ED Awareness Week"}],stats:[{value:5,label:"Explainer Videos"},{value:60,label:"Illustrations Made"},{value:4,label:"Month Timeline"},{value:"2-3",label:"Min per Video"}],linksBody:"Read the full article on the Spurgeons website or watch the videos on their Vimeo channel."},Wk={previews:[1,2,3].map(e=>`${Q}spurgeons-ed/spurgeons${e}.webm`)};function Uk({cat:e,cs:t,slide:n}){const{previews:s}=Wk;return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Kr,{cs:t,slide:n,cfg:ji,heroContent:a.jsx(Qk,{videoId:"800539377",title:"Spurgeons ED Awareness"})}),a.jsx(H,{title:"Snapshots",variant:"dark",children:a.jsxs("div",{className:"wl-grid-3",children:[a.jsx(L,{delay:.06,children:a.jsx(be,{src:s[0],alt:"Spurgeons preview 1"})}),a.jsx(L,{delay:.12,children:a.jsx(be,{src:s[1],alt:"Spurgeons preview 2"})}),a.jsx(L,{delay:.18,children:a.jsx(be,{src:s[2],alt:"Spurgeons preview 3"})})]})}),a.jsx(Yr,{cs:t,cfg:ji}),a.jsx(qo,{cfg:ji}),a.jsx(Xr,{cs:t,cfg:ji}),a.jsx(Ze,{cat:e})]})}function Hk({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Kr,{cs:t,slide:n,cfg:Fn}),a.jsx(Yr,{cs:t,cfg:Fn}),a.jsx(Qo,{cfg:Fn}),a.jsx($k,{cfg:Fn}),a.jsx(qo,{cfg:Fn}),a.jsx(Xr,{cs:t,cfg:Fn}),a.jsx(Ze,{cat:e})]})}function Gk({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Kr,{cs:t,slide:n,cfg:zs}),a.jsx(Yr,{cs:t,cfg:zs}),a.jsx(Qo,{cfg:zs}),a.jsx(qo,{cfg:zs}),a.jsx(Xr,{cs:t,cfg:zs}),a.jsx(Ze,{cat:e})]})}function Kk({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Kr,{cs:t,slide:n,cfg:$s}),a.jsx(Yr,{cs:t,cfg:$s}),a.jsx(Qo,{cfg:$s}),a.jsx(qo,{cfg:$s}),a.jsx(Xr,{cs:t,cfg:$s}),a.jsx(Ze,{cat:e})]})}function Yk({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Kr,{cs:t,slide:n,cfg:Si}),a.jsx(Yr,{cs:t,cfg:Si}),a.jsx(Qo,{cfg:Si}),a.jsx(Xr,{cs:t,cfg:Si}),a.jsx(Ze,{cat:e})]})}function Xk({videoId:e,title:t}){return!e||e==="placeholder"?a.jsx("div",{className:"yt-placeholder",children:a.jsxs("div",{className:"yt-placeholder-inner",children:[a.jsx("span",{className:"yt-placeholder-play",children:"▶"}),a.jsx("p",{className:"yt-placeholder-text",children:"Video coming soon, check back shortly."})]})}):a.jsx("div",{className:"yt-embed-wrap",children:a.jsx("iframe",{src:`https://www.youtube.com/embed/${e}?rel=0&modestbranding=1`,title:t||"Project video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}function Qk({videoId:e,title:t}){return a.jsx("div",{className:"yt-embed-wrap yt-embed-wrap--vimeo",children:a.jsx("iframe",{src:`https://player.vimeo.com/video/${e}?badge=0&autopause=0&player_id=0&app_id=58479`,title:t||"Project video",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})})}function Ns({cs:e,slide:t,cfg:n}){const{accent:s,lightAccent:r,dark:i}=n,o=r??s;
115return a.jsxs(H,{className:"pkg-hero",children:[a.jsx(L,{delay:.04,children:a.jsx("div",{className:"cs-hero-pills",children:(t.tags||[]).map(l=>a.jsx("span",{className:"cs-hero-pill",style:{background:o+"18",color:o,borderColor:o+"44"},children:l},l))})}),a.jsxs(L,{delay:.1,children:[a.jsx("h1",{className:"cs-hero-title",style:{color:i},children:t.label}),a.jsx("p",{className:"cs-hero-subtitle",style:{color:i+"88"},children:e.subtitle})]}),a.jsx(L,{delay:.28,children:a.jsxs("div",{className:"cs-hero-status",children:[a.jsx("span",{className:"cs-status-dot",style:{background:o}}),a.jsx("span",{className:"cs-status-text",style:{color:i+"aa"},children:e.status})]})})]})}function Qr({slide:e,cfg:t,title:n="The Work"}){var r;const s=t.youtube??((r=e.caseStudy)==null?void 0:r.youtube);return a.jsx(H,{title:n,variant:"dark",children:a.jsx(L,{delay:.08,children:a.jsx(Xk,{videoId:s,title:e.label})})})}function Ts({cs:e,cfg:t,children:n}){var d,h;const{accent:s,lightAccent:r,dark:i,specs:o}=t,l=r??s,c=(d=e.sections)==null?void 0:d.find(f=>f.id==="overview"),u=((h=c==null?void 0:c.body)==null?void 0:h.split(`
116
117`))??[];return a.jsxs(H,{title:"Project Overview",children:[a.jsxs("div",{className:"pkg-overview-grid",children:[a.jsx(L,{delay:.08,className:"pkg-overview-text",children:u.map((f,v)=>a.jsx("p",{style:{color:i+"bb",lineHeight:1.85,marginBottom:14},children:f},v))}),(o==null?void 0:o.length)>0&&a.jsx(L,{delay:.16,className:"pkg-spec-stack",style:{"--pkg-accent":l},children:o.map(({label:f,value:v})=>a.jsxs("div",{className:"pkg-spec-row",children:[a.jsx("span",{className:"pkg-spec-label",children:f}),a.jsx("span",{className:"pkg-spec-value",style:{color:i},children:v})]},f))})]}),n&&a.jsx("div",{style:{marginTop:24},children:n})]})}function qr({cfg:e}){const{stats:t}=e;return t!=null&&t.length?a.jsx(H,{title:"At a Glance",variant:"dark",children:a.jsx("div",{className:"pkg-stats",children:t.map(({value:n,label:s},r)=>a.jsxs(L,{delay:.06+r*.08,className:"pkg-stat",children:[a.jsx("span",{className:"pkg-stat-value",style:{color:"#E0F87D"},children:n}),a.jsx("span",{className:"pkg-stat-label",style:{color:"rgba(255,255,255,0.55)"},children:s})]},s))})}):null}const Bn="/",qk=[{name:"Kiko",img:`${Bn}studio-intro/kiko.jpg`,bio:"A curious dreamer at the beginning of something new. Full of ideas but unsure where to begin, Kiko carries the spark and looks for guidance to shape it into something real."},{name:"Poppy",img:`${Bn}studio-intro/poppy.jpg`,bio:"A quiet and intuitive presence who stays close without asking for attention. Poppy senses what is missing and brings balance to every idea, adding the final touch that makes things feel complete."},{name:"Ila",img:`${Bn}studio-intro/ila.jpg`,bio:"Always by Ika's side, a small and curious wanderer who notices what others overlook. Ily explores gently and gathers details that bring depth, care, and meaning to each idea."},{name:"Doti",img:`${Bn}studio-intro/doty.jpg`,bio:"Doti may not always understand the plan, but their warmth and unwavering support makes them impossible not to love. Always there, nodding along and listening, cheerful and steady when it matters."},{name:"Ika",img:`${Bn}studio-intro/ika.jpg`,bio:"A bright spark that appears at just the right moment. Ika helps organise scattered thoughts and guides ideas into form, turning imagination into something tangible."},{name:"Bexley",img:`${Bn}studio-intro/bexley.jpg`,bio:"Composed, exacting, and not easily impressed. Bexley holds a high standard and expects work to be thoughtful, refined, and considered. Their approval is hard to earn, but when it comes, it truly means something."}],Zk=[{hex:"#335CFF",name:"Cobalt"},{hex:"#FFFFFF",name:"White"},{hex:"#333333",name:"Dark"},{hex:"#E0F87D",name:"Lime"},{hex:"#D4C7FF",name:"Lilac"}],Jk={previews:[1,2,3].map(e=>`${Q}studio-intro/studio-intro-preview${e}.webm`)},Ws={accent:"#335CFF",dark:"#333333",youtube:"-kHVMfDEKjo",specs:[{label:"Year",value:"2026"},{label:"Type",value:"Studio Rebrand"},{label:"Style",value:"3D Dimensional"},{label:"Status",value:"In Production"}],stats:[{value:"2026",label:"Rebrand Year"},{value:"3D",label:"Animation Style"},{value:6,label:"Characters"},{value:4,label:"Weeks"}]}
117,Us={accent:"#E0F87D",lightAccent:"#335CFF",dark:"#333333",youtube:"E1lDvWBNlKM",specs:[{label:"Year",value:"2022"},{label:"Type",value:"Self-Initiated"},{label:"Views",value:"45,000+"},{label:"Likes",value:"800+"}],stats:[{value:"45K+",label:"YouTube Views"},{value:"800+",label:"Likes"},{value:"#1",label:"Top Performing"}],palette:[{hex:"#1A537B",name:"Deep Blue"},{hex:"#FAE3D1",name:"Light Cream"},{hex:"#FCE1D9",name:"Pale Blush"},{hex:"#F6AEA1",name:"Soft Coral"}]},eC={previews:[1,2].map(e=>`${Q}geometric/geometric${e}.gif`)},Hs={accent:"#335CFF",dark:"#333333",youtube:"B47H1UDrQcc",specs:[{label:"Year",value:"2022"},{label:"Type",value:"Self-Initiated"},{label:"Style",value:"Experimental"}],stats:[{value:"2022",label:"Year"},{value:3,label:"Characters"},{value:1,label:"Backdrop"},{value:"11K+",label:"Views"}],palette:[{hex:"#F2E6E1",name:"Warm Off-White"},{hex:"#F17765",name:"Light Coral"},{hex:"#D75546",name:"Terracotta Red"},{hex:"#C24519",name:"Burnt Orange"},{hex:"#483D3C",name:"Dark Charcoal"}]},tC={previews:[1,2,3,4].map(e=>`${Q}steps/steps-preview${e}.webm`),large:`${Q}steps/steps-preview-large.webm`},bi={accent:"#E0F87D",lightAccent:"#335CFF",dark:"#333333",youtube:"JdLVq-FHkfg",specs:[{label:"Year",value:"2023"},{label:"Type",value:"Self-Initiated"},{label:"Style",value:"Typographic Motion"},{label:"Count",value:"26 Letters"}],stats:[{value:"26",label:"Letters Animated"},{value:"2023",label:"Year"}]},$a={accent:"#D4C7FF",dark:"#333333",youtube:"Yjuj-ODZfPY",specs:[{label:"Year",value:"2022"},{label:"Type",value:"Self-Initiated"},{label:"Style",value:"Organic Motion"}],stats:[{value:"2022",label:"Year"},{value:"Organic",label:"Motion Style"}]};function nC({cat:e,cs:t,slide:n}){const s=Ws.accent,{previews:r}=Jk;return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Ns,{cs:t,slide:n,cfg:Ws}),a.jsx(Qr,{slide:n,cfg:Ws}),a.jsx(H,{title:"Snapshots",children:a.jsx("div",{className:"wl-grid-3",children:r.map((i,o)=>a.jsx(L,{delay:o*.08,children:a.jsx(be,{src:i})},o))})}),a.jsx(H,{title:"Brand Palette",children:a.jsx(L,{children:a.jsx("div",{className:"cs-palette-row",children:Zk.map(i=>a.jsxs("div",{className:"cs-palette-swatch",children:[a.jsx("div",{className:"cs-palette-chip",style:{background:i.hex,border:i.hex==="#FFFFFF"?"1px solid rgba(0,0,0,0.1)":"none"}}),a.jsx("span",{className:"cs-palette-hex",children:i.hex}),a.jsx("span",{className:"cs-palette-name",children:i.name})]},i.hex))})})}),a.jsx(H,{title:"Meet the Characters",children:a.jsx("div",{className:"si-characters-grid",children:qk.map((i,o)=>a.jsx(L,{delay:o*.06,children:a.jsxs("div",{className:"si-character-card",children:[a.jsx("div",{className:"si-character-avatar",children:i.img?a.jsx("img",{src:i.img,alt:i.name,className:"si-character-avatar-img",draggable:!1}):a.jsx("span",{className:"si-character-avatar-initial",style:{color:s},children:i.name[0]})}),a.jsx("h3",{className:"si-character-name",style:{color:s},children:i.name}),a.jsx("p",{className:"si-character-bio",children:i.bio})]})},i.name))})}),a.jsx(Ts,{cs:t,cfg:Ws}),a.jsx(qr,{cfg:Ws}),a.jsx(Ze,{cat:e})]})}function sC({cat:e,cs:t,slide:n}){const{previews:s}=eC,{palette:r}=Us;return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Ns,{cs:t,slide:n,cfg:Us}),a.jsx(Qr,{slide:n,cfg:Us}),a.jsx(Ts,{cs:t,cfg:Us}),a.jsx(H,{title:"Snapshots",variant:"dark",children:a.jsxs("div",{className:"wl-grid-2",children:[a.jsx(L,{delay:.06,children:a.jsx(be,{src:s[0],alt:"Geometric preview 1"})}),a.jsx(L,{delay:.14,children:a.jsx(be,{src:s[1],alt:"Geometric preview 2"})})]})}),a.jsx(H,{title:"The Palette",children:a.jsx("div",{className:"cs-palette-row",children:r.map(({hex:i,name:o})=>a.jsxs("div",{className:"cs-palette-swatch",children:[a.jsx("div",{className:"cs-palette-chip",style:{background:i}}),a.jsx("span",{className:"cs-palette-hex",children:i}),a.jsx("span",{className:"cs-palette-name",children:o})]},i))})}),a.jsx(qr,{cfg:Us}
117),a.jsx(Ze,{cat:e})]})}function rC({cat:e,cs:t,slide:n}){const{previews:s,large:r}=tC,{palette:i}=Hs;return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Ns,{cs:t,slide:n,cfg:Hs}),a.jsx(Qr,{slide:n,cfg:Hs}),a.jsx(Ts,{cs:t,cfg:Hs}),a.jsxs(H,{title:"The Work",variant:"dark",children:[a.jsx("div",{className:"wl-grid-4",style:{marginBottom:12},children:s.map((o,l)=>a.jsx(L,{delay:.06+l*.06,children:a.jsx(be,{src:o,alt:`Steps preview ${l+1}`})},o))}),a.jsx(L,{delay:.06,children:a.jsx(be,{src:r,alt:"Steps large preview",className:"wl-full"})})]}),a.jsx(H,{title:"The Palette",children:a.jsx("div",{className:"cs-palette-row",children:i.map(({hex:o,name:l})=>a.jsxs("div",{className:"cs-palette-swatch",children:[a.jsx("div",{className:"cs-palette-chip",style:{background:o}}),a.jsx("span",{className:"cs-palette-hex",children:o}),a.jsx("span",{className:"cs-palette-name",children:l})]},o))})}),a.jsx(qr,{cfg:Hs}),a.jsx(Ze,{cat:e})]})}function iC({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Ns,{cs:t,slide:n,cfg:bi}),a.jsx(Qr,{slide:n,cfg:bi}),a.jsx(Ts,{cs:t,cfg:bi}),a.jsx(qr,{cfg:bi}),a.jsx(Ze,{cat:e})]})}const oC={stills:["bloom-still","bloom-still2","bloom-still3"].map(e=>`${Q}bloom/${e}.webp`)};function aC({cat:e,cs:t,slide:n}){const{stills:s}=oC;return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Ns,{cs:t,slide:n,cfg:$a}),a.jsx(Qr,{slide:n,cfg:$a}),a.jsx(Ts,{cs:t,cfg:$a,children:a.jsxs("div",{className:"wl-grid-3",children:[a.jsx(L,{delay:.06,children:a.jsx(be,{src:s[0],alt:"Bloom still 1"})}),a.jsx(L,{delay:.12,children:a.jsx(be,{src:s[1],alt:"Bloom still 2"})}),a.jsx(L,{delay:.18,children:a.jsx(be,{src:s[2],alt:"Bloom still 3"})})]})}),a.jsx(Ze,{cat:e})]})}const Wa={accent:"#335CFF",lightAccent:"#335CFF",dark:"#333333",youtube:"placeholder",specs:[{label:"Client",value:"Well Lab"},{label:"Year",value:"2023"},{label:"Type",value:"Commission"},{label:"Sector",value:"Health & Wellbeing"},{label:"Clients",value:"NHS, UCL"},{label:"Format",value:"Explainer Video"}],stats:[{value:"2 min",label:"Video Length"},{value:"6+",label:"Scenes"},{value:1,label:"Introductory Film"},{value:"NHS",label:"Client Reached"}]},tc={vids:[1,3,4].map(e=>`${Q}well-lab/well-lab${e}.webm`),statics:[2,3,4].map(e=>`${Q}well-lab/well-lab-static${e}.webp`),full:`${Q}well-lab/well%20lab%20full%20video.mp4`};function lC(){const e=x.useRef(null),[t,n]=x.useState(!1),[s,r]=x.useState(!1),[i,o]=x.useState(0),[l,c]=x.useState(0),[u,d]=x.useState(0),[h,f]=x.useState(!0),v=x.useRef(null),g=E=>{if(!E||isNaN(E))return"0:00";const C=Math.floor(E/60),P=Math.floor(E%60).toString().padStart(2,"0");return`${C}:${P}`},w=()=>{const E=e.current;E&&(E.paused?(E.play(),n(!0)):(E.pause(),n(!1)))},b=()=>{const E=e.current;E&&(E.muted=!E.muted,r(E.muted))},m=()=>{const E=e.current;!E||!E.duration||(c(E.currentTime),o(E.currentTime/E.duration*100))},p=()=>{var E;d(((E=e.current)==null?void 0:E.duration)??0)},y=()=>n(!1),j=E=>{const C=e.current;if(!C)return;const P=E.currentTarget.getBoundingClientRect(),A=(E.clientX-P.left)/P.width;C.currentTime=A*C.duration},S=()=>{f(!0),clearTimeout(v.current),t&&(v.current=setTimeout(()=>f(!1),2800))};x.useEffect(()=>()=>clearTimeout(v.current),[]);const k=()=>{var C,P;const E=e.current;E&&(document.fullscreenElement?(P=document.exitFullscreen)==null||P.call(document):(C=E.requestFullscreen)==null||C.call(E))};return a.jsx("div",{className:"wlp-outer",onMouseMove:S,onMouseLeave:()=>t&&f(!1),children:a.jsxs("div",{className:"wlp-shell",children:[a.jsx("video",{ref:e,className:"wlp-video",src:tc.full,playsInline:!0,preload:"metadata",onTimeUpdate:m,onLoadedMetadata:p,onEnded:y,onClick:w}),a.jsx("button",{className:`wlp-centre-btn${t?" wlp-centre-btn--hidden":""}`,onClick:w,"aria-label":t?"Pause":"Play",children:t?a.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"28",height:"28",children:[a.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),a.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}):a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"28",height:"28",children:a.jsx("path",{d:"M8 5v14l11-7z"})})}),a.jsxs("div",{className:`wlp-bar${h?" wlp-bar--visible":""}`,children:[a.jsx("button",{className:"wlp-btn",onClick:w,"aria-label":t?"Pause":"Play",children:t?a.jsxs("svg",{viewBox:"0 0 24 24",fill:"
117currentColor",width:"16",height:"16",children:[a.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),a.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}):a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:a.jsx("path",{d:"M8 5v14l11-7z"})})}),a.jsxs("span",{className:"wlp-time",children:[g(l)," / ",g(u)]}),a.jsxs("div",{className:"wlp-track",onClick:j,role:"slider","aria-label":"Seek",children:[a.jsx("div",{className:"wlp-fill",style:{width:`${i}%`}}),a.jsx("div",{className:"wlp-thumb",style:{left:`${i}%`}})]}),a.jsx("button",{className:"wlp-btn",onClick:b,"aria-label":s?"Unmute":"Mute",children:s?a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",width:"16",height:"16",children:[a.jsx("path",{d:"M11 5L6 9H2v6h4l5 4V5z"}),a.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),a.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]}):a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",width:"16",height:"16",children:[a.jsx("path",{d:"M11 5L6 9H2v6h4l5 4V5z"}),a.jsx("path",{d:"M19.07 4.93a10 10 0 010 14.14"}),a.jsx("path",{d:"M15.54 8.46a5 5 0 010 7.07"})]})}),a.jsx("button",{className:"wlp-btn",onClick:k,"aria-label":"Fullscreen",children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",width:"16",height:"16",children:a.jsx("path",{d:"M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3"})})})]})]})})}function be({src:e,alt:t,className:n=""}){const s=e.endsWith(".webm")||e.endsWith(".mp4");return a.jsx("div",{className:`wl-media-wrap ${n}`,children:s?a.jsx("video",{className:"wl-media-img",src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata"}):a.jsx("img",{src:e,alt:t,className:"wl-media-img",loading:"lazy"})})}function cC({cat:e,cs:t,slide:n}){const[s,r]=[tc.vids,tc.statics];return a.jsxs("div",{className:"cs-wrap pkg-case-study",children:[a.jsx(Ns,{cs:t,slide:n,cfg:Wa}),a.jsx(H,{title:"Full Film",variant:"dark",children:a.jsx(L,{delay:.08,children:a.jsx(lC,{})})}),a.jsxs(H,{title:"The Work",variant:"dark",children:[a.jsxs("div",{className:"wl-grid-3",children:[a.jsx(L,{delay:.06,children:a.jsx(be,{src:s[0],alt:"Well Lab animation 1"})}),a.jsx(L,{delay:.12,children:a.jsx(be,{src:s[1],alt:"Well Lab animation 2"})}),a.jsx(L,{delay:.18,children:a.jsx(be,{src:s[2],alt:"Well Lab animation 3"})})]}),a.jsxs("div",{className:"wl-grid-3",children:[a.jsx(L,{delay:.06,children:a.jsx(be,{src:r[0],alt:"Well Lab still 1"})}),a.jsx(L,{delay:.12,children:a.jsx(be,{src:r[1],alt:"Well Lab still 2"})}),a.jsx(L,{delay:.18,children:a.jsx(be,{src:r[2],alt:"Well Lab still 3"})})]})]}),a.jsx(Ts,{cs:t,cfg:Wa}),a.jsx(qr,{cfg:Wa}),a.jsx(Ze,{cat:e})]})}const uC=[1,2,3,4,5,6].map(e=>`${Q}cbs/illustrations/Illustration${e}.webp`);function dC({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap",children:[a.jsx(sk,{cs:t,slide:n}),a.jsx(yk,{}),a.jsx(rk,{cs:t}),a.jsx(ok,{cs:t}),a.jsx(dk,{}),a.jsx(lk,{cs:t}),a.jsx(ck,{cs:t}),a.jsx($y,{images:uC,colors:hk}),a.jsx(gk,{}),a.jsx(Ze,{cat:e})]})}const fC=[1,2,3,4,5,6].map(e=>`${Q}pgm/illustrations/Illustration${e}.webp`);function hC({cat:e,cs:t,slide:n}){return a.jsxs("div",{className:"cs-wrap pgm-case-study",children:[a.jsx(Ek,{cs:t,slide:n}),a.jsx(_k,{}),a.jsx(Nk,{cs:t}),a.jsx(Pk,{cs:t}),a.jsx(Mk,{}),a.jsx(Rk,{cs:t}),a.jsx(Dk,{cs:t}),a.jsx($y,{images:fC,colors:pk}),a.jsx(Vk,{}),a.jsx(Ze,{cat:e})]})}function pC({cat:e,slide:t}){const n=t.caseStudy;if(e.id==="packaging"){if(t.id===1)return a.jsx(Hk,{cat:e,cs:n,slide:t});if(t.id===2)return a.jsx(Gk,{cat:e,cs:n,slide:t});if(t.id===3)return a.jsx(Kk,{cat:e,cs:n,slide:t});if(t.id===4)return a.jsx(Yk,{cat:e,cs:n,slide:t})}if(e.id==="motion"){if(t.id===1)return a.jsx(nC,{cat:e,cs:n,slide:t});if(t.id===2)return a.jsx(Uk,{cat:e,cs:n,slide:t});if(t.id===4)return a.jsx(sC,{cat:e,cs:n,slide:t});if(t.id===5)return a.jsx(rC,{cat:e,cs:n,slide:t});if(t.id===6)return a.jsx(iC,{cat:e,cs:n,slide:t});if(t.id===7)return a.jsx(aC,{cat:e,cs:n,slide:t});if(t.id===8)return a.jsx(cC,{cat:e,cs:n,slide:t})}return e.id==="brand"&&t.id===2?a.jsx(hC,{cat:e,cs:n,slide:t}):a.jsx(dC,{cat:e,cs:n,slide:t})}function mC({cat:e,slide:t,onClose:n}){const s=e.slides.filter(f=>f.caseStudy),[r,i]=x.useState(t),o=!!(r!=null&&r.caseStudy),l=x.useRef(null),c=s.findIndex(f=>f.id===(r==null?void 0:r.id)),u=c>0?s[c-1]:null,d=c<s.length-1?s[c+1]:null,h=f=>{var v;i(f),(v=l.current)==null||v.scrollTo({top:0,behavior:"smooth"})};return a.jsx(B.div,{ref:l,className:"pd-overlay","data-lenis-prevent":!0,role:"dialog","aria-modal":"true","aria-label":(r==null?void 0:r.label)??e.name,...Kb,onClick:f=>{f.target===f.currentTarget&&n()},children:a.jsxs(B.div,{className:"pd-sheet",...Yb,children:[a.jsxs("header",{className:"pd-header",children:[a.jsx("button",{className:"pd-back",onClick:n,"aria-label":"Close",children:"← Back"}),a.jsx("img",{src:"/logo.svg",alt:"Studio KAIL",className:"pd-header-logo"}),a.jsx("button",{className:"pd-close",onClick:n,"aria-label":"Close",children:"×"})]}),!o&&a.jsxs("div",{className:"pd-hero",children:[a.jsx("h1",{className:"pd-title",children:e.name}),a.jsx("p",{className:"pd-tagline",children:e.tagline})]}),o?a.jsx(pC,{cat:e,slide:r}):a.jsxs(B.div,{className:"pd-grid-8",initial:"initial",animate:"animate",exit:"exit",children:[a.jsx(Xb,{cat:e}),a.jsx(Qb,{cat:e}),a.jsx(qb,{cat:e}),a.jsx(Zb,{cat:e}),a.jsx(Jb,{cat:e}),a.jsx(ek,{cat:e}),a.jsx(tk,{cat:e}),a.jsx(nk,{cat:e})]}),o&&s.length>1&&a.jsxs("div",{className:"pd-project-nav",children:[u?a.jsxs("button",{className:"pd-pnav-float pd-pnav-float--prev",onClick:()=>h(u),"aria-label":`Previous: ${u.label}`,children:[a.jsx("span",{className:"pd-pnav-arrow",children:"←"}),a.jsxs("span",{className:"pd-pnav-text",children:[a.jsx("span",{className:"pd-pnav-eyebrow",children:"Previous"}),a.jsx("span",{className:"pd-pnav-label",children:u.label})]})]}):a.jsx("span",{}),d?a.jsxs("button",{className:"pd-pnav-float pd-pnav-float--next",onClick:()=>h(d),"aria-label":`Next: ${d.label}`,children:[a.jsxs("span",{className:"pd-pnav-text",children:[a.jsx("span",{className:"pd-pnav-eyebrow",children:"Next"}),a.jsx("span",{className:"pd-pnav-label",children:d.label})]}),a.jsx("span",{className:"pd-pnav-arrow",children:"→"})]}):a.jsx("span",{})]})]})})}const nc="/",Uy={brand:"Brand",motion:"Motion",packaging:"Packaging",web:"Web"},gC={hidden:{scaleY:0,scaleX:.65,rotate:-2.5,opacity:0,transition:{duration:.14,ease:[.4,0,1,1]}},visible:{scaleY:1,scaleX:1,rotate:0,opacity:1,transition:{scaleY:{type:"spring",stiffness:260,damping:17,mass:.7},scaleX:{type:"spring",stiffness:380,damping:20,mass:.55},rotate:{type:"spring",stiffness:300,damping:18,mass:.6},opacity:{duration:.06}}}}
117,yC={hidden:{opacity:0,scale:.82,y:6},visible:e=>({opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:420,damping:22,mass:.6,delay:.06+e*.045}})},vC={hidden:{opacity:0,y:-10,transition:{duration:.2,ease:[.4,0,1,1]}},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:28,mass:.8}}},xC={hidden:{opacity:0,y:12},visible:e=>({opacity:1,y:0,transition:{type:"spring",stiffness:380,damping:26,mass:.6,delay:.05+e*.07}})},wC={hidden:{opacity:0,height:0,transition:{duration:.22,ease:[.4,0,1,1]}},visible:{opacity:1,height:"auto",transition:{height:{type:"spring",stiffness:260,damping:28,mass:.9},opacity:{duration:.16,delay:.05}}}},SC={hidden:{opacity:0,scale:.86,y:8},visible:e=>({opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:400,damping:22,mass:.6,delay:e*.055}})};function jC({onProjectOpen:e}){const[t,n]=x.useState(null),s=x.useRef(null),[r,i]=x.useState(!1),[o,l]=x.useState(null),c=x.useCallback(g=>{clearTimeout(s.current),n(g)},[]),u=x.useCallback(()=>{s.current=setTimeout(()=>n(null),120)},[]),d=x.useCallback(()=>{clearTimeout(s.current)},[]),h=x.useCallback(()=>{i(g=>(g&&l(null),!g))},[]),f=x.useCallback(()=>{i(!1),l(null)},[]);x.useEffect(()=>{if(!r)return;const g=w=>{w.key==="Escape"&&f()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r,f]),x.useEffect(()=>(document.body.style.overflow=r?"hidden":"",()=>{document.body.style.overflow=""}),[r]);const v=()=>{var g;(g=document.getElementById("work"))==null||g.scrollIntoView({behavior:"smooth",block:"start"})};return a.jsxs(a.Fragment,{children:[a.jsx(B.header,{className:"site-header",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.85,ease:[.16,1,.3,1],delay:.05},"aria-label":"Studio KAIL site navigation",children:a.jsxs("div",{className:"site-header-inner",children:[a.jsx("button",{className:"site-header-logo-btn",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),"aria-label":"Back to top",children:a.jsx("img",{src:`${nc}logo.svg`,alt:"Studio KAIL",className:"site-header-logo",draggable:!1})}),a.jsx("nav",{className:"site-nav","aria-label":"Portfolio categories",children:Xo.map(g=>{var w;return a.jsxs("div",{className:"site-nav-item",onMouseEnter:()=>c(g.id),onMouseLeave:u,children:[a.jsxs("button",{className:`site-nav-btn${t===g.id?" is-active":""}`,onClick:v,"aria-expanded":t===g.id,"aria-haspopup":"true",children:[Uy[g.id]??g.id,a.jsx("svg",{className:"site-nav-chevron",viewBox:"0 0 10 6",fill:"none","aria-hidden":"true",children:a.jsx("path",{d:"M1 1l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),a.jsx(cn,{children:t===g.id&&((w=g.slides)==null?void 0:w.length)>0&&a.jsx(B.div,{className:"site-nav-dropdown",role:"menu",variants:gC,initial:"hidden",animate:"visible",exit:"hidden",style:{transformOrigin:"top center"},onMouseEnter:d,onMouseLeave:u,children:a.jsx("div",{className:"site-nav-dropdown-grid",children:g.slides.map((b,m)=>a.jsx(B.button,{className:`site-nav-project${b.comingSoon?" site-nav-project--soon":""}`,role:"menuitem",custom:m,variants:yC,disabled:b.comingSoon,onClick:()=>{b.comingSoon||(n(null),clearTimeout(s.current),e==null||e(g,b))},children:b.comingSoon?a.jsx("div",{className:"site-nav-project-soon-placeholder",children:"Coming Soon"}):a.jsxs("div",{className:"site-nav-project-thumb",style:{background:b.bg||"#e8e4f8"},children:[b.img&&a.jsx("img",{src:`${nc}${b.img}`,alt:"",className:"site-nav-project-img"}),a.jsx("span",{className:"site-nav-project-label",children:b.label})]})},b.id))})})})]},g.id)})}),a.jsx("button",{className:`site-mobile-menu-btn${r?" is-open":""}`,onClick:h,"aria-label":r?"Close menu":"Open menu","aria-expanded":r,children:a.jsxs("span",{className:"site-mobile-hamburger","aria-hidden":"true",children:[a.jsx("span",{}),a.jsx("span",{}),a.jsx("span",{})]})})]})}),a.jsx(bC,{isOpen:r,mobileCatOpen:o,setMobileCatOpen:l,onClose:f,onProjectOpen:e})]})}function bC({isOpen:e,mobileCatOpen:t,setMobileCatOpen:n,onClose:s,onProjectOpen:r}){return _o.createPortal(a.jsx(cn,{children:e&&a.jsx(B.div,{className:"site-mobile-menu",variants:vC,initial:"hidden",animate:"visible",exit:"hidden","aria-label":"Mobile navigation",children:Xo.map((i,o)=>{var l;return a.jsxs(B.div,{className:"site-mobile-cat",custom:o,variants:xC,initial:"hidden",animate:"visible",children:[a.jsxs("button",{className:`site-mobile-cat-btn${t===i.id?" is-open":""}`,onClick:()=>n(c=>c===i.id?null:i.id),"aria-expanded":t===i.id,children:[a.jsx("span",{className:"site-mobile-cat-label",children:Uy[i.id]??i.id}),a.jsx("svg",{className:"site-mobile-cat-chevron",viewBox:"0 0 10 6",fill:"none","aria-hidden":"true",children:a.jsx("path",{d:"M1 1l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),a.jsx(cn,{children:t===i.id&&((l=i.slides)==null?void 0:l.length)>0&&a.jsx(B.div,{className:"site-mobile-cat-projects",variants:wC,initial:"hidden",animate:"visible",exit:"hidden",style:{overflow:"hidden"},children:a.jsx("div",{className:"site-mobile-projects-grid",children:i.slides.map((c,u)=>a.jsx(B.button,{className:`site-mobile-project${c.comingSoon?" site-mobile-project--soon":""}`,custom:u,variants:SC,initial:"hidden",animate:"visible",disabled:c.comingSoon,onClick:()=>{c.comingSoon||(s(),r==null||r(i,c))},children:c.comingSoon?a.jsx("div",{className:"site-mobile-project-soon",children:"Coming Soon"}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"site-mobile-project-thumb",style:{background:c.bg||"#e8e4f8"},children:c.img&&a.jsx("img",{src:`${nc}${c.img}`,alt:"",className:"site-mobile-project-img"})}),a.jsx("span",{className:"site-mobile-project-label",children:c.label})]})},c.id))})})})]},i.id)})})}),document.body)}const kC=121,CC="/frames/frame_",EC=5,NC=".png",TC="/scroll-hero-video.mp4";function PC(e){return`${CC}${String(e).padStart(EC,"0")}${NC}`}function AC(e){return new Promise(t=>{const n=document.createElement("video");n.preload="auto",n.muted=!0;const s=()=>t();n.addEventListener("canplaythrough",s,{once:!0}),n.addEventListener("error",s,{once:!0}),n.src=e,n.load()})}function MC({onDone:e}){return x.useEffect(()=>{const t=document.documentElement,n=document.body,s=t.style.overflow,r=n.style.overflow;return t.style.overflow="hidden",n.style.overflow="hidden",()=>{t.style.overflow=s,n.style.overflow=r}},[]),x.useEffect(()=>{let t=!1;const n=()=>{t||(t=!0,e())},s=Array.from({length:kC},(l,c)=>new Promise(u=>{const d=new Image;d.onload=u,d.onerror=u,d.src=PC(c)})),r=AC(TC),i=new Promise(l=>setTimeout(l,1500)),o=setTimeout(n,3e4);return Promise.all([...s,r,i]).then(n),()=>{t=!0,clearTimeout(o)}},[e]),a.jsxs(B.div,{className:"ls-overlay",initial:{opacity:1},exit:{opacity:0,transition:{duration:.6,ease:[.16,1,.3,1]}},children:[a.jsx("div",{className:"ls-blob ls-blob--blue","aria-hidden":"true"}),a.jsx("div",{className:"ls-blob ls-blob--lilac","aria-hidden":"true"}),a.jsx("div",{className:"ls-blob ls-blob--lime","aria-hidden":"true"}),a.jsx("div",{className:"ls-orb ls-orb--a","aria-hidden":"true"}),a.jsx("div",{className:"ls-orb ls-orb--b","aria-hidden":"true"}),a.jsx("div",{className:"ls-orb ls-orb--c","aria-hidden":"true"}),a.jsx("div",{className:"ls-orb ls-orb--d","aria-hidden":"true"}),a.jsx("div",{className:"ls-orb ls-orb--e","aria-hidden":"true"}),a.jsx("div",{className:"ls-orb ls-orb--f","aria-hidden":"true"}),a.jsxs("div",{className:"ls-card",children:[a.jsx("img",{src:"/logo.svg",alt:"Studio KAIL",className:"ls-logo",draggable:"false"}),a.jsx("div",{className:"ls-divider","aria-hidden":"true"}),a.jsx("p",{className:"ls-tagline",children:"Creative Studio"}),a.jsxs("div",{className:"ls-dots","aria-hidden":"true",children:[a.jsx("span",{className:"ls-dot ls-dot--1"}),a.jsx("span",{className:"ls-dot ls-dot--2"}),a.jsx("span",{className:"ls-dot ls-dot--3"})]})]})]})}const zn="/",LC=560,RC=70,DC=44,IC=.24,VC=.28;function _C(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}function OC(e,t){x.useEffect(()=>{let n=null,s=!1;const r=()=>{s=!1;const o=e.current;if(!o)return;const l=document.documentElement,c=Math.max(l.scrollHeight-window.innerHeight,1),u=Math.max(c-window.scrollY,0);let d=1-Math.min(u/LC,1);d=Math.min(1,Math.max(0,d)),o.style.transform=`translateY(${RC*(1-d)}px)`,t.current.forEach((h,f)=>{if(!h)return;const v=f*IC,g=v+VC;let w=(d-v)/(g-v);w=Math.min(1,Math.max(0,w));const b=_C(w);h.style.transform=`translateY(${DC*(1-b)}px)`})},i=()=>{s||(s=!0,n=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i),n&&cancelAnimationFrame(n)}},[e,t])}const FC=[{id:"K",shapes:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"25.83",y:"40",width:"180",height:"380"}),a.jsx("circle",{cx:"317.17",cy:"128.67",r:"88.67"}),a.jsx("path",{d:"M406.17,420c0-110.46-80.74-200-180.33-200v200h180.33Z"})]})},{id:"A",shapes:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"605.83",y:"40",width:"180",height:"380"}),a.jsx("path",{d:"M585.83,420c-99.76,0-180.63-85.07-180.63-190s80.87-190,180.63-190"})]})},{id:"I",shapes:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"805.83",y:"268",width:"180",height:"152"}),a.jsx("circle",{cx:"894.5",cy:"154",r:"88.67"})]})},{id:"L",shapes:a.jsxs(a.Fragment,{children:[a.jsx("polygon",{points:"1185.83 242.67 1185.83 40 1005.83 40 1005.83 420 1031.55 420 1185.83 420 1365.83 420 1365.83 242.67 1185.83 242.67"}),a.jsx("circle",{cx:"1474.17",cy:"330",r:"90"})]})}],BC={name:"YouTube",href:"https://www.youtube.com/@kail.studio",icon:a.jsx("svg",{viewBox:"0 0 24 24",fill:"
117currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})},zC={name:"Instagram",href:"https://www.instagram.com/__ka.il",icon:a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"})})},$C={name:"Behance",href:"https://www.behance.net/ka-il",icon:a.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M4.654 3c.461 0 .887.035 1.278.14.39.07.711.216.996.391.286.176.497.426.641.747.14.32.216.711.216 1.137 0 .496-.106.922-.356 1.242-.215.32-.566.606-.997.746.606.176 1.067.496 1.348.922.281.426.461.957.461 1.563 0 .496-.105.922-.285 1.278a2.317 2.317 0 0 1-.782.887c-.32.215-.711.39-1.137.496a5.329 5.329 0 0 1-1.278.176L0 12.803V3h4.654zm-.285 3.978c.39 0 .71-.105.957-.285.246-.18.355-.497.355-.887 0-.216-.035-.426-.105-.567a.981.981 0 0 0-.32-.355 1.84 1.84 0 0 0-.461-.176 2.264 2.264 0 0 0-.567-.07H1.668v2.34h2.7zm.105 4.193c.215 0 .426-.035.567-.07.176-.035.32-.106.461-.216s.25-.215.356-.356c.07-.14.105-.32.105-.566 0-.47-.14-.82-.425-1.067-.25-.215-.641-.32-1.137-.32H1.668v2.595h2.806zm6.957.035c.286.285.711.426 1.278.426.39 0 .746-.106 1.032-.286.285-.215.46-.426.53-.641h1.74c-.286.851-.712 1.457-1.278 1.848-.566.355-1.243.567-2.06.567a4.135 4.135 0 0 1-1.527-.285 2.827 2.827 0 0 1-1.137-.796 2.884 2.884 0 0 1-.712-1.172 4.515 4.515 0 0 1-.25-1.493c0-.536.07-1.032.25-1.493.18-.46.426-.852.747-1.172.32-.32.711-.566 1.137-.746.46-.181.957-.286 1.493-.286.606 0 1.137.105 1.598.355.46.25.851.567 1.137.992.285.391.496.852.641 1.348.07.496.105.996.07 1.563h-5.15c0 .58.21 1.11.461 1.351zm2.24-3.732c-.25-.25-.641-.39-1.137-.39-.32 0-.606.07-.817.178-.215.105-.39.25-.496.39a1.813 1.813 0 0 0-.285.497c-.036.175-.07.32-.07.461h3.196c-.07-.526-.25-.886-.39-1.136zm-3.127-3.728h3.978v.957h-3.978V3.746z"})})},WC={name:"Dribbble",href:"https://dribbble.com/ka-il",icon:a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 0C5.374 0 0 5.373 0 12c0 6.628 5.374 12 12 12 6.628 0 12-5.372 12-12 0-6.627-5.372-12-12-12zm7.92 5.666a10.1 10.1 0 0 1 2.303 5.62c-.337-.066-3.713-.753-7.11-.326-.077-.185-.146-.378-.224-.57a34.64 34.64 0 0 0-.687-1.56c3.781-1.545 5.507-3.767 5.718-4.164zM12 1.99a10.07 10.07 0 0 1 6.842 2.669c-.174.366-1.742 2.45-5.388 3.813-1.686-3.093-3.556-5.625-3.843-6.01A10.17 10.17 0 0 1 12 1.99zM7.793 3.12c.276.37 2.119 2.912 3.827 5.942C6.9 10.254 2.606 10.24 2.15 10.238A10.127 10.127 0 0 1 7.793 3.12zM1.968 12.013v-.26c.44.01 5.448.072 10.154-1.412.284.555.55 1.118.797 1.682-.127.036-.258.073-.385.114-4.868 1.572-7.454 5.868-7.672 6.246A10.067 10.067 0 0 1 1.968 12zm10.032 10.04a10.08 10.08 0 0 1-6.268-2.186c.174-.36 2.142-4.15 7.503-6.02l.063-.022c1.35 3.507 1.903 6.447 2.046 7.293a10.08 10.08 0 0 1-3.344.935zm5.214-1.756c-.098-.588-.609-3.39-1.863-6.84 3.21-.513 6.02.33 6.371.437a10.14 10.14 0 0 1-4.508 6.403z"})})},UC={name:"Email",href:"mailto:[email protected]",icon:a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[a.jsx("rect",{x:"2",y:"4.5",width:"20",height:"15",rx:"2.5"}),a.jsx("path",{d:"M3 6.5 12 13l9-6.5"})]})},HC={name:"Upwork",href:"https://www.upwork.com/freelancers/~01c78193322f89a4a7?mp_source=share",icon:a.jsx("svg",{viewBox:"0 0 24 24",fill:"
117currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M18.561 13.158c-1.102 0-2.135-.467-3.074-1.227l.228-1.076.008-.042c.207-1.143.849-3.06 2.839-3.06 1.492 0 2.703 1.212 2.703 2.703-.001 1.489-1.212 2.702-2.704 2.702zm0-8.14c-2.539 0-4.51 1.649-5.31 4.366-1.22-1.834-2.148-4.036-2.687-5.892H7.828v7.112c-.002 1.406-1.141 2.546-2.547 2.546-1.405 0-2.543-1.14-2.543-2.546V3.492H0v7.112c0 2.914 2.37 5.303 5.281 5.303 2.913 0 5.283-2.389 5.283-5.303v-1.19c.529 1.107 1.182 2.229 1.974 3.221l-1.673 7.873h2.797l1.213-5.71c1.063.679 2.285 1.109 3.686 1.109 3 0 5.439-2.452 5.439-5.45 0-3-2.439-5.439-5.439-5.439z"})})},Ah=[{id:"socials",title:"Socials",items:[BC,zC],image:`${zn}footer/footer-socials.webp`,video:`${zn}footer/footercard-socials.webm`,accent:"lilac"},{id:"portfolios",title:"Portfolios",items:[$C,WC],image:`${zn}footer/footer-portfolio.webp`,video:`${zn}footer/footercard-portfolio.webm`,accent:"lime"},{id:"contact",title:"Contact",items:[HC,UC],image:`${zn}footer/footer-contact.webp`,video:`${zn}footer/footercard-contact.webm`,accent:"lilac"}],GC=6e3;function KC(e,t){const[n,s]=x.useState(!1);return x.useEffect(()=>{if(!t||n)return;const r=e.current;if(!r||typeof IntersectionObserver>"u"){s(!0);return}const i=new IntersectionObserver(o=>{var l;(l=o[0])!=null&&l.isIntersecting&&s(!0)},{rootMargin:"600px 0px"});return i.observe(r),()=>i.disconnect()},[t,n,e]),n}function YC({video:e,image:t}){const[n,s]=x.useState(!1),r=x.useRef(null),i=x.useRef(null),o=KC(i,!!e),l=()=>{r.current!=null&&(clearTimeout(r.current),r.current=null)},c=()=>{l(),r.current=setTimeout(()=>s(!0),GC)};return x.useEffect(()=>{if(!(!e||!o))return c(),l},[e,o]),a.jsx("div",{ref:i,className:"footer-card-media-wrap",children:e&&o&&!n?a.jsx("video",{className:"footer-card-glyph-img",src:e,poster:t,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",onProgress:c,onCanPlay:l,onError:()=>{l(),s(!0)}}):t?a.jsx("img",{src:t,alt:"",className:"footer-card-glyph-img",draggable:!1}):a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3"}),a.jsx("circle",{cx:"9",cy:"9.5",r:"1.8"}),a.jsx("path",{d:"M21 15.5 15.5 10 6 19",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const XC=[{x:0,y:31,rotate:-7},{x:163,y:-14,rotate:6},{x:326,y:37,rotate:-4}],QC=24,qC=1.1,Mh=12,ki={type:"spring",stiffness:260,damping:22,mass:.7},Lh="(max-width: 820px)";function ZC(){const[e,t]=x.useState(()=>typeof window<"u"&&window.matchMedia(Lh).matches);return x.useEffect(()=>{const n=window.matchMedia(Lh),s=r=>t(r.matches);return n.addEventListener?n.addEventListener("change",s):n.addListener(s),()=>{n.removeEventListener?n.removeEventListener("change",s):n.removeListener(s)}},[]),e}function Hy({title:e,items:t,image:n,video:s}){return a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"footer-card-title",children:e}),a.jsx("div",{className:"footer-card-glyph","aria-hidden":"true",children:a.jsx(YC,{video:s,image:n})}),a.jsx("div",{className:"footer-card-row",children:t.map(({name:r,href:i,icon:o})=>a.jsx("a",{href:i,target:i.startsWith("http")?"_blank":void 0,rel:i.startsWith("http")?"noopener noreferrer":void 0,className:"footer-card-btn","aria-label":r,title:r,onClick:l=>l.stopPropagation(),children:o},r))})]})}function JC({title:e,items:t,image:n,video:s,place:r,index:i,hoveredIndex:o,isMobile:l,onHoverStart:c,onHoverEnd:u,onExpand:d}){const f=o!==null&&o!==i?i<o?-Mh:Mh:0;return a.jsx(B.div,{className:"footer-stack-card",animate:{x:r.x+f,y:r.y,rotate:r.rotate,scale:1},whileHover:l?void 0:{x:r.x,y:r.y-QC,scale:qC,rotate:[r.rotate,r.rotate+5,r.rotate-4,r.rotate+2,r.rotate+1.5],transition:{x:ki,y:ki,scale:ki,rotate:{duration:.5,times:[0,.2,.4,.65,1],ease:"easeInOut"}}},transition:ki,onHoverStart:c,onHoverEnd:u,onClick:()=>d(i),children:a.jsx(Hy,{title:e,items:t,image:n,video:s})})}function eE({card:e,onClose:t}){return x.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&t()};document.addEventListener("keydown",n);const s=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",n),document.body.style.overflow=s}},[e,t]),typeof document>"u"?null:_o.createPortal(a.jsx(cn,{children:e&&a.jsx(B.div,{className:"footer-card-expand-overlay",initial:{opacity:0}
117,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},onClick:t,children:a.jsxs(B.div,{className:`footer-stack-card footer-stack-card--expanded footer-stack-card--expanded-${e.accent}`,onClick:n=>n.stopPropagation(),initial:{opacity:0,scale:.7,y:14},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.82,y:8},transition:{type:"spring",stiffness:320,damping:26},children:[a.jsx("button",{type:"button",className:"footer-card-expand-close",onClick:t,"aria-label":"Close",children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:a.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}),a.jsx(Hy,{title:e.title,items:e.items,image:e.image,video:e.video})]})})}),document.body)}function tE(){const[e,t]=x.useState(null),[n,s]=x.useState(null),r=ZC(),i=x.useRef(null);return a.jsxs("div",{className:"footer-card-stack",ref:i,children:[Ah.map((o,l)=>a.jsx("div",{className:"footer-card-reveal",style:{zIndex:e===l?20:l+1},children:a.jsx(JC,{title:o.title,items:o.items,image:o.image,video:o.video,place:XC[l],index:l,hoveredIndex:r?null:e,isMobile:r,onHoverStart:()=>t(l),onHoverEnd:()=>t(c=>c===l?null:c),onExpand:s})},o.id)),a.jsx(eE,{card:n!==null?Ah[n]:null,onClose:()=>s(null)})]})}function nE(){const e=x.useRef(null),t=x.useRef([]);return OC(e,t),a.jsxs("footer",{className:"site-footer",children:[a.jsx("div",{className:"footer-top",children:a.jsx("span",{className:"footer-label",children:"Studio KAIL"})}),a.jsx(tE,{}),a.jsx("div",{className:"footer-wordmark-wrap","aria-hidden":"true",children:a.jsx("div",{className:"footer-wordmark-letters",ref:e,children:FC.map(({id:n,shapes:s},r)=>a.jsx("svg",{ref:i=>{t.current[r]=i},viewBox:"0 0 1590 460",className:"footer-wordmark-letter",fill:"currentColor",children:s},n))})})]})}function sE(){var h;const[e,t]=x.useState(!1),[n,s]=x.useState(!1),[r,i]=x.useState(null),o=x.useCallback(()=>t(!0),[]),l=x.useCallback(()=>s(!0),[]),c=x.useCallback((f,v)=>{i({cat:f,slide:v}),typeof window.gtag=="function"&&window.gtag("event","project_open",{project_name:v.label,project_category:f.id,project_id:v.id})},[]),u=[.16,1,.3,1];x.useEffect(()=>{if(window.matchMedia("(hover: none) and (pointer: coarse)").matches)return;const v=new Qj({duration:1.1,easing:b=>Math.min(1,1.001-Math.pow(2,-10*b)),smoothWheel:!0});let g;function w(b){v.raf(b),g=requestAnimationFrame(w)}return g=requestAnimationFrame(w),()=>{cancelAnimationFrame(g),v.destroy()}},[]);const d=x.useRef(null);return x.useEffect(()=>{const f=d.current;if(!f||!window.matchMedia("(hover: hover) and (pointer: fine)").matches)return;let v=-60,g=-60,w=-60,b=-60,m=null,p;const y=100,j=C=>{v=C.clientX,g=C.clientY},S=C=>{m===null&&(m=C);const P=Math.min(C-m,100);m=C;const A=1-Math.exp(-P/y);w+=(v-w)*A,b+=(g-b)*A,f.style.translate=`${w-15}px ${b-15}px`,p=requestAnimationFrame(S)};p=requestAnimationFrame(S);const k=C=>{C.target.closest('a, button, [role="button"], .pj-card, .pf-pill, .footer-card-btn')&&f.classList.add("is-hover")},E=C=>{C.target.closest('a, button, [role="button"], .pj-card, .pf-pill, .footer-card-btn')&&f.classList.remove("is-hover")};return window.addEventListener("mousemove",j,{passive:!0}),document.addEventListener("mouseover",k),document.addEventListener("mouseout",E),(
117)=>{cancelAnimationFrame(p),window.removeEventListener("mousemove",j),document.removeEventListener("mouseover",k),document.removeEventListener("mouseout",E)}},[]),a.jsxs("main",{className:"app",children:[a.jsx("div",{className:"custom-cursor",ref:d,"aria-hidden":"true"}),a.jsx("div",{className:"app-bg","aria-hidden":"true"}),a.jsx(jC,{onProjectOpen:c}),a.jsx(ab,{visible:n}),n&&a.jsx(ub,{}),a.jsx(Wb,{}),a.jsxs(B.div,{className:"site-split",initial:{opacity:0,y:14},animate:n?{opacity:1,y:0}:{opacity:0,y:14},transition:{duration:.72,ease:u},children:[a.jsx("div",{className:"split-left",children:a.jsx(wb,{onProjectOpen:c})}),a.jsx("div",{className:"split-right","aria-hidden":"true"})]}),a.jsx(nE,{}),a.jsx(cn,{children:r&&a.jsx(mC,{cat:r.cat,slide:r.slide,onClose:()=>i(null)},`${r.cat.id}-${((h=r.slide)==null?void 0:h.id)??"cat"}`)}),a.jsx(cn,{onExitComplete:l,children:!e&&a.jsx(MC,{onDone:o},"loader")})]})}Ua.createRoot(document.getElementById("root")).render(a.jsx(uv.StrictMode,{children:a.jsx(sE,{})}));

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.