vendor: 4,605 bytes, lines 1-9
1var Zk=Object.defineProperty;var Jv=e=>{throw TypeError(e)};var qk=(e,t,n)=>t in e?Zk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var On=(e,t,n)=>qk(e,typeof t!="symbol"?t+"":t,n),tf=(e,t,n)=>t.has(e)||Jv("Cannot "+n);var ve=(e,t,n)=>(tf(e,t,"read from private field"),n?n.call(e):t.get(e)),tt=(e,t,n)=>t.has(e)?Jv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ze=(e,t,n,r)=>(tf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),En=(e,t,n)=>(tf(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Qw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nf={exports:{}},bo={},rf={exports:{}},be={};/** 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 Qv;function Hk(){if(Qv)return be;Qv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function k(N,Z,ye){this.props=N,this.context=Z,this.refs=E,this.updater=ye||x}k.prototype.isReactComponent={},k.prototype.setState=function(N,Z){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,Z,"setState")},k.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function P(){}P.prototype=k.prototype;function A(N,Z,ye){this.props=N,this.context=Z,this.refs=E,this.updater=ye||x}var M=A.prototype=new P;M.constructor=A,_(M,k.prototype),M.isPureReactComponent=!0;var L=Array.isArray,D=Object.prototype.hasOwnProperty,B={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function V(N,Z,ye){var we,xe={},_e=null,Ne=null;if(Z!=null)for(we in Z.ref!==void 0&&(Ne=Z.ref),Z.key!==void 0&&(_e=""+Z.key),Z)D.call(Z,we)&&!W.hasOwnProperty(we)&&(xe[we]=Z[we]);var ke=arguments.length-2;if(ke===1)xe.children=ye;else if(1<ke){for(var Oe=Array(ke),Wt=0;Wt<ke;Wt++)Oe[Wt]=arguments[Wt+2];xe.children=Oe}if(N&&N.defaultProps)for(we in ke=N.defaultProps,ke)xe[we]===void 0&&(xe[we]=ke[we]);return{$$typeof:e,type:N,key:_e,ref:Ne,props:xe,_owner:B.current}}function X(N,Z){return{$$typeof:e,type:N.type,key:Z,ref:N.ref,props:N.props,_owner:N._owner}}function oe(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function I(N){var Z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ye){return Z[ye]})}var U=/\/+/g;function J(N,Z){return typeof N=="object"&&N!==null&&N.key!=null?I(""+N.key):Z.toString(36)}function ue(N,Z,ye,we,xe){var _e=typeof N;(_e==="undefined"||_e==="boolean")&&(N=null);var Ne=!1;if(N===null)Ne=!0;else switch(_e){case"string":case"number":Ne=!0;break;case"object":switch(N.$$typeof){case e:case t:Ne=!0}}if(Ne)return Ne=N,xe=xe(Ne),N=we===""?"."+J(Ne,0):we,L(xe)?(ye="",N!=null&&(ye=N.replace(U,"$&/")+"/"),ue(xe,Z,ye,"",function(Wt){return Wt})):xe!=null&&(oe(xe)&&(xe=X(xe,ye+(!xe.key||Ne&&Ne.key===xe.key?"":(""+xe.key).replace(U,"$&/")+"/")+N)),Z.push(xe)),1;if(Ne=0,we=we===""?".":we+":",L(N))for(var ke=0;ke<N.length;ke++){_e=N[ke];var Oe=we+J(_e,ke);Ne+=ue(_e,Z,ye,Oe,xe)}else if(Oe=v(N),typeof Oe=="function")for(N=Oe.call(N),ke=0;!(_e=N.next()).done;
vendor: 4,236 bytes, lines 9-17
9)_e=_e.value,Oe=we+J(_e,ke++),Ne+=ue(_e,Z,ye,Oe,xe);else if(_e==="object")throw Z=String(N),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Ne}function Se(N,Z,ye){if(N==null)return N;var we=[],xe=0;return ue(N,we,"","",function(_e){return Z.call(ye,_e,xe++)}),we}function Ce(N){if(N._status===-1){var Z=N._result;Z=Z(),Z.then(function(ye){(N._status===0||N._status===-1)&&(N._status=1,N._result=ye)},function(ye){(N._status===0||N._status===-1)&&(N._status=2,N._result=ye)}),N._status===-1&&(N._status=0,N._result=Z)}if(N._status===1)return N._result.default;throw N._result}var le={current:null},H={transition:null},ne={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:H,ReactCurrentOwner:B};function Q(){throw Error("act(...) is not supported in production builds of React.")}return be.Children={map:Se,forEach:function(N,Z,ye){Se(N,function(){Z.apply(this,arguments)},ye)},count:function(N){var Z=0;return Se(N,function(){Z++}),Z},toArray:function(N){return Se(N,function(Z){return Z})||[]},only:function(N){if(!oe(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},be.Component=k,be.Fragment=n,be.Profiler=o,be.PureComponent=A,be.StrictMode=r,be.Suspense=f,be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,be.act=Q,be.cloneElement=function(N,Z,ye){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var we=_({},N.props),xe=N.key,_e=N.ref,Ne=N._owner;if(Z!=null){if(Z.ref!==void 0&&(_e=Z.ref,Ne=B.current),Z.key!==void 0&&(xe=""+Z.key),N.type&&N.type.defaultProps)var ke=N.type.defaultProps;for(Oe in Z)D.call(Z,Oe)&&!W.hasOwnProperty(Oe)&&(we[Oe]=Z[Oe]===void 0&&ke!==void 0?ke[Oe]:Z[Oe])}var Oe=arguments.length-2;if(Oe===1)we.children=ye;else if(1<Oe){ke=Array(Oe);for(var Wt=0;Wt<Oe;Wt++)ke[Wt]=arguments[Wt+2];we.children=ke}return{$$typeof:e,type:N.type,key:xe,ref:_e,props:we,_owner:Ne}},be.createContext=function(N){return N={$$typeof:u,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:l,_context:N},N.Consumer=N},be.createElement=V,be.createFactory=function(N){var Z=V.bind(null,N);return Z.type=N,Z},be.createRef=function(){return{current:null}},be.forwardRef=function(N){return{$$typeof:d,render:N}},be.isValidElement=oe,be.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:Ce}},be.memo=function(N,Z){return{$$typeof:p,type:N,compare:Z===void 0?null:Z}},be.startTransition=function(N){var Z=H.transition;H.transition={};try{N()}finally{H.transition=Z}},be.unstable_act=Q,be.useCallback=function(N,Z){return le.current.useCallback(N,Z)},be.useContext=function(N){return le.current.useContext(N)},be.useDebugValue=function(){},be.useDeferredValue=function(N){return le.current.useDeferredValue(N)},be.useEffect=function(N,Z){return le.current.useEffect(N,Z)},be.useId=function(){return le.current.useId()},be.useImperativeHandle=function(N,Z,ye){return le.current.useImperativeHandle(N,Z,ye)},be.useInsertionEffect=function(N,Z){return le.current.useInsertionEffect(N,Z)},be.useLayoutEffect=function(N,Z){return le.current.useLayoutEffect(N,Z)},be.useMemo=function(N,Z){return le.current.useMemo(N,Z)},be.useReducer=function(N,Z,ye){return le.current.useReducer(N,Z,ye)},be.useRef=function(N){return le.current.useRef(N)},be.useState=function(N){return le.current.useState(N)},be.useSyncExternalStore=function(N,Z,ye){return le.current.useSyncExternalStore(N,Z,ye)},be.useTransition=function(){return le.current.useTransition()},be.version="18.3.1",be}var Xv;function Dh(){return Xv||(Xv=1,rf.exports=Hk()),rf.exports}/** 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 ey;function Kk(){if(ey)return bo;ey=1;var e=Dh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INT
vendor: 6,452 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var m,y={},v=null,x=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(x=f.ref);for(m in f)r.call(f,m)&&!l.hasOwnProperty(m)&&(y[m]=f[m]);if(d&&d.defaultProps)for(m in f=d.defaultProps,f)y[m]===void 0&&(y[m]=f[m]);return{$$typeof:t,type:d,key:v,ref:x,props:y,_owner:o.current}}return bo.Fragment=n,bo.jsx=u,bo.jsxs=u,bo}var ty;function Gk(){return ty||(ty=1,nf.exports=Kk()),nf.exports}var w=Gk(),R=Dh();const Xw=Qw(R);var Cl={},sf={exports:{}},Vt={},of={exports:{}},af={};/** 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 */var ny;function Yk(){return ny||(ny=1,(function(e){function t(H,ne){var Q=H.length;H.push(ne);e:for(;0<Q;){var N=Q-1>>>1,Z=H[N];if(0<o(Z,ne))H[N]=ne,H[Q]=Z,Q=N;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var ne=H[0],Q=H.pop();if(Q!==ne){H[0]=Q;e:for(var N=0,Z=H.length,ye=Z>>>1;N<ye;){var we=2*(N+1)-1,xe=H[we],_e=we+1,Ne=H[_e];if(0>o(xe,Q))_e<Z&&0>o(Ne,xe)?(H[N]=Ne,H[_e]=Q,N=_e):(H[N]=xe,H[we]=Q,N=we);else if(_e<Z&&0>o(Ne,Q))H[N]=Ne,H[_e]=Q,N=_e;else break e}}return ne}function o(H,ne){var Q=H.sortIndex-ne.sortIndex;return Q!==0?Q:H.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],m=1,y=null,v=3,x=!1,_=!1,E=!1,k=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(H){for(var ne=n(p);ne!==null;){if(ne.callback===null)r(p);else if(ne.startTime<=H)r(p),ne.sortIndex=ne.expirationTime,t(f,ne);else break;ne=n(p)}}function L(H){if(E=!1,M(H),!_)if(n(f)!==null)_=!0,Ce(D);else{var ne=n(p);ne!==null&&le(L,ne.startTime-H)}}function D(H,ne){_=!1,E&&(E=!1,P(V),V=-1),x=!0;var Q=v;try{for(M(ne),y=n(f);y!==null&&(!(y.expirationTime>ne)||H&&!I());){var N=y.callback;if(typeof N=="function"){y.callback=null,v=y.priorityLevel;var Z=N(y.expirationTime<=ne);ne=e.unstable_now(),typeof Z=="function"?y.callback=Z:y===n(f)&&r(f),M(ne)}else r(f);y=n(f)}if(y!==null)var ye=!0;else{var we=n(p);we!==null&&le(L,we.startTime-ne),ye=!1}return ye}finally{y=null,v=Q,x=!1}}var B=!1,W=null,V=-1,X=5,oe=-1;function I(){return!(e.unstable_now()-oe<X)}function U(){if(W!==null){var H=e.unstable_now();oe=H;var ne=!0;try{ne=W(!0,H)}finally{ne?J():(B=!1,W=null)}}else B=!1}var J;if(typeof A=="function")J=function(){A(U)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,Se=ue.port2;ue.port1.onmessage=U,J=function(){Se.postMessage(null)}}else J=function(){k(U,0)};function Ce(H){W=H,B||(B=!0,J())}function le(H,ne){V=k(function(){H(e.unstable_now())},ne)}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(H){H.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,Ce(D))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(H){switch(v){case 1:case 2:case 3:var ne=3;break;default:ne=v}var Q=v;v=ne;try{return H()}finally{v=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,ne){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Q=v;v=H;try{return ne()}finally{v=Q}},e.unstable_scheduleCallback=function(H,ne,Q){var N=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?N+Q:N):Q=N,H){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=Q+Z,H={id:m++,callback:ne,priorityLevel:H,startTime:Q,expirationTime:Z,sortIndex:-1},Q>N?(H.sortIndex=Q,t(p,H),n(f)===null&&H===n(p)&&(E?(P(V),V=-1):E=!0,le(L,Q-N))):(H.sortIndex=Z,t(f,H),_||x||(_=!0,Ce(D))),H},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(H){var ne=v;return function(){var Q=v;v=ne;try{return H.apply(this,arguments)}finally{v=Q}}}})(af)),af}var ry;function Jk(){return ry||(ry=1,of.exports=Yk()),of.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 iy;function Qk(){if(iy)return Vt;iy=1;var e=Dh(),t=Jk();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(i,s){u(i,s),u(i+"Capture",s)}function u(i,s){for(o[i]=s,i=0;i<s.length;i++)r.add(s[i])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},y={};function v(i){return f.call(y,i)?!0:f.call(m,i)?!1:p.test(i)?y[i]=!0:(m[i]=!0,!1)}function x(i,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function _(i,s,a,c){if(s===null||typeof s>"u"||x(i,s,a,c))return!0;
vendor: 13,598 bytes, lines 33-37
33if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function E(i,s,a,c,h,g,b){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=i,this.type=s,this.sanitizeURL=g,this.removeEmptyString=b}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){k[i]=new E(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];k[s]=new E(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){k[i]=new E(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){k[i]=new E(i,2,!1,i,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(i){k[i]=new E(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){k[i]=new E(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){k[i]=new E(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){k[i]=new E(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){k[i]=new E(i,5,!1,i.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function A(i){return i[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(i){var s=i.replace(P,A);k[s]=new E(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(P,A);k[s]=new E(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(P,A);k[s]=new E(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){k[i]=new E(i,1,!1,i.toLowerCase(),null,!1,!1)}),k.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){k[i]=new E(i,1,!1,i.toLowerCase(),null,!0,!0)});function M(i,s,a,c){var h=k.hasOwnProperty(s)?k[s]:null;(h!==null?h.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,a,h,c)&&(a=null),c||h===null?v(s)&&(a===null?i.removeAttribute(s):i.setAttribute(s,""+a)):h.mustUseProperty?i[h.propertyName]=a===null?h.type===3?!1:"":a:(s=h.attributeName,c=h.attributeNamespace,a===null?i.removeAttribute(s):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,c?i.setAttributeNS(c,s,a):i.setAttribute(s,a))))}var L=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),B=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),oe=Symbol.for("react.provider"),I=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),H=Symbol.iterator;function ne(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var Q=Object.assign,N;function Z(i){if(N===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);N=s&&s[1]||""}return` 34`+N+i}var ye=!1;function we(i,s){if(!i||ye)return"";ye=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(z){var c=z}Reflect.construct(i,[],s)}else{try{s.call()}catch(z){c=z}i.call(s.prototype)}else{try{throw Error()}catch(z){c=z}i()}}catch(z){if(z&&c&&typeof z.stack=="string"){for(var h=z.stack.split(` 35`),g=c.stack.split(` 36`),b=h.length-1,C=g.length-1;1<=b&&0<=C&&h[b]!==g[C];)C--;for(;1<=b&&0<=C;b--,C--)if(h[b]!==g[C]){if(b!==1||C!==1)do if(b--,C--,0>C||h[b]!==g[C]){var T=` 37`+h[b].replace(" at new "," at ");return i.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",i.displayName)),T}while(1<=b&&0<=C);break}}}finally{ye=!1,Error.prepareStackTrace=a}return(i=i?i.displayName||i.name:"")?Z(i):""}function xe(i){switch(i.tag){case 5:return Z(i.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return i=we(i.type,!1),i;case 11:return i=we(i.type.render,!1),i;case 1:return i=we(i.type,!0),i;default:return""}}function _e(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case W:return"Fragment";case B:return"Portal";case X:return"Profiler";case V:return"StrictMode";case J:return"Suspense";case ue:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case I:return(i.displayName||"Context")+".Consumer";case oe:return(i._context.displayName||"Context")+".Provider";case U:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Se:return s=i.displayName||null,s!==null?s:_e(i.type)||"Memo";case Ce:s=i._payload,i=i._init;try{return _e(i(s))}catch{}}return null}function Ne(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _e(s);case 8:return s===V?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ke(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Oe(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Wt(i){var s=Oe(i)?"checked":"value",a=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),c=""+i[s];if(!i.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,g=a.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return h.call(this)},set:function(b){c=""+b,g.call(this,b)}}),Object.defineProperty(i,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function ga(i){i._valueTracker||(i._valueTracker=Wt(i))}function rm(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return i&&(c=Oe(i)?i.checked?"true":"false":i.value),i=c,i!==a?(s.setValue(i),!0):!1}function va(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function lc(i,s){var a=s.checked;return Q({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??i._wrapperState.initialChecked})}function im(i,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=ke(s.value!=null?s.value:a),i._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function sm(i,s){s=s.checked,s!=null&&M(i,"checked",s,!1)}function uc(i,s){sm(i,s);var a=ke(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+a):i.value!==""+a&&(i.value=""+a);else if(c==="submit"||c==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?cc(i,s.type,a):s.hasOwnProperty("defaultValue")&&cc(i,s.type,ke(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function om(i,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,a||s===i.value||(i.value=s),i.defaultValue=s}a=i.name,a!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,a!==""&&(i.name=a)}function cc(i,s,a){(s!=="number"||va(i.ownerDocument)!==i)&&(a==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+a&&(i.defaultValue=""+a))}var $s=Array.isArray;function Ii(i,s,a,c){if(i=i.options,s){s={};for(var h=0;h<a.length;h++)s["$"+a[h]]=!0;for(a=0;a<i.length;a++)h=s.hasOwnProperty("$"+i[a].value),i[a].selected!==h&&(i[a].selected=h),h&&c&&(i[a].defaultSelected=!0)}else{for(a=""+ke(a),s=null,h=0;h<i.length;h++){if(i[h].value===a){i[h].selected=!0,c&&(i[h].defaultSelected=!0);return}s!==null||i[h].disabled||(s=i[h])}s!==null&&(s.selected=!0)}}function dc(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Q({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function am(i,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(n(92));if($s(a)){if(1<a.length)throw Error(n(93));a=a[0]}s=a}s==null&&(s=""),a=s}i._wrapperState={initialValue:ke(a)}}function lm(i,s){var a=ke(s.value),c=ke(s.defaultValue);a!=null&&(a=""+a,a!==i.value&&(i.value=a),s.defaultValue==null&&i.defaultValue!==a&&(i.defaultValue=a)),c!=null&&(i.defaultValue=""+c)}function um(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function cm(i){switch(i){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 fc(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?cm(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var ya,dm=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,c,h){MSApp.execUnsafeLocalFunction(function(){return i(s,a,c,h)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(ya=ya||document.createElement("div"),ya.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=ya.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Ms(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var Ds={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},G_=["Webkit","ms","Moz","O"];Object.keys(Ds).forEach(function(i){G_.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Ds[s]=Ds[i]})});function fm(i,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||Ds.hasOwnProperty(i)&&Ds[i]?(""+s).trim():s+"px"}function hm(i,s){i=i.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,h=fm(a,s[a],c);a==="float"&&(a="cssFloat"),c?i.setProperty(a,h):i[a]=h}}var Y_=Q({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 hc(i,s){if(s){if(Y_[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function pc(i,s){if(i.indexOf("-")===-1)return typeof s.is=="str
37ing";switch(i){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 mc=null;function gc(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var vc=null,Oi=null,Ri=null;function pm(i){if(i=so(i)){if(typeof vc!="function")throw Error(n(280));var s=i.stateNode;s&&(s=Va(s),vc(i.stateNode,i.type,s))}}function mm(i){Oi?Ri?Ri.push(i):Ri=[i]:Oi=i}function gm(){if(Oi){var i=Oi,s=Ri;if(Ri=Oi=null,pm(i),s)for(i=0;i<s.length;i++)pm(s[i])}}function vm(i,s){return i(s)}function ym(){}var yc=!1;function wm(i,s,a){if(yc)return i(s,a);yc=!0;try{return vm(i,s,a)}finally{yc=!1,(Oi!==null||Ri!==null)&&(ym(),gm())}}function zs(i,s){var a=i.stateNode;if(a===null)return null;var c=Va(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(i=i.type,c=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!c;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(n(231,s,typeof a));return a}var wc=!1;if(d)try{var Ls={};Object.defineProperty(Ls,"passive",{get:function(){wc=!0}}),window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{wc=!1}function J_(i,s,a,c,h,g,b,C,T){var z=Array.prototype.slice.call(arguments,3);try{s.apply(a,z)}catch(K){this.onError(K)}}var Fs=!1,wa=null,xa=!1,xc=null,Q_={onError:function(i){Fs=!0,wa=i}};function X_(i,s,a,c,h,g,b,C,T){Fs=!1,wa=null,J_.apply(Q_,arguments)}function eE(i,s,a,c,h,g,b,C,T){if(X_.apply(this,arguments),Fs){if(Fs){var z=wa;Fs=!1,wa=null}else throw Error(n(198));xa||(xa=!0,xc=z)}}function Ur(i){var s=i,a=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(a=s.return),i=s.return;while(i)}return s.tag===3?a:null}function xm(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function bm(i){if(Ur(i)!==i)throw Error(n(188))}function tE(i){var s=i.alternate;if(!s){if(s=Ur(i),s===null)throw Error(n(188));return s!==i?null:i}for(var a=i,c=s;;){var h=a.return;if(h===null)break;var g=h.alternate;if(g===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===a)return bm(h),i;if(g===c)return bm(h),s;g=g.sibling}throw Error(n(188))}if(a.return!==c.return)a=h,c=g;else{for(var b=!1,C=h.child;C;){if(C===a){b=!0,a=h,c=g;break}if(C===c){b=!0,c=h,a=g;break}C=C.sibling}if(!b){for(C=g.child;C;){if(C===a){b=!0,a=g,c=h;break}if(C===c){b=!0,c=g,a=h;break}C=C.sibling}if(!b)throw Error(n(189))}}if(a.alternate!==c)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?i:s}function Sm(i){return i=tE(i),i!==null?_m(i):null}function _m(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=_m(i);if(s!==null)return s;i=i.sibling}return null}var Em=t.unstable_scheduleCallback,km=t.unstable_cancelCallback,nE=t.unstable_shouldYield,rE=t.unstable_requestPaint,ot=t.unstable_now,iE=t.unstable_getCurrentPriorityLevel,bc=t.unstable_ImmediatePriority,Cm=t.unstable_UserBlockingPriority,ba=t.unstable_NormalPriority,sE=t.unstable_LowPriority,Pm=t.unstable_IdlePriority,Sa=null,Tn=null;function oE(i){if(Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(Sa,i,void 0,(i.current.flags&128)===128)}catch{}}var vn=Math.clz32?Math.clz32:uE,aE=Math.log,lE=Math.LN2;function uE(i){return i>>>=0,i===0?32:31-(aE(i)/lE|0)|0}var _a=64,Ea=4194304;function Vs(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function ka(i,s){var a=i.pendingLanes;if(a===0)return 0;var c=0,h=i.suspendedLanes,g=i.pingedLanes,b=a&268435455;if(b!==0){var C=b&~h;C!==0?c=Vs(C):(g&=b,g!==0&&(c=Vs(g)))}
vendor: 17,887 bytes, line 37
37else b=a&~h,b!==0?c=Vs(b):g!==0&&(c=Vs(g));if(c===0)return 0;if(s!==0&&s!==c&&(s&h)===0&&(h=c&-c,g=s&-s,h>=g||h===16&&(g&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=c;0<s;)a=31-vn(s),h=1<<a,c|=i[a],s&=~h;return c}function cE(i,s){switch(i){case 1:case 2:case 4:return s+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 s+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 dE(i,s){for(var a=i.suspendedLanes,c=i.pingedLanes,h=i.expirationTimes,g=i.pendingLanes;0<g;){var b=31-vn(g),C=1<<b,T=h[b];T===-1?((C&a)===0||(C&c)!==0)&&(h[b]=cE(C,s)):T<=s&&(i.expiredLanes|=C),g&=~C}}function Sc(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Tm(){var i=_a;return _a<<=1,(_a&4194240)===0&&(_a=64),i}function _c(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function Us(i,s,a){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-vn(s),i[s]=a}function fE(i,s){var a=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var c=i.eventTimes;for(i=i.expirationTimes;0<a;){var h=31-vn(a),g=1<<h;s[h]=0,c[h]=-1,i[h]=-1,a&=~g}}function Ec(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var c=31-vn(a),h=1<<c;h&s|i[c]&s&&(i[c]|=s),a&=~h}}var Re=0;function jm(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Am,kc,Nm,Im,Om,Cc=!1,Ca=[],or=null,ar=null,lr=null,Bs=new Map,Ws=new Map,ur=[],hE="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 Rm(i,s){switch(i){case"focusin":case"focusout":or=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":lr=null;break;case"pointerover":case"pointerout":Bs.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ws.delete(s.pointerId)}}function Zs(i,s,a,c,h,g){return i===null||i.nativeEvent!==g?(i={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:g,targetContainers:[h]},s!==null&&(s=so(s),s!==null&&kc(s)),i):(i.eventSystemFlags|=c,s=i.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),i)}function pE(i,s,a,c,h){switch(s){case"focusin":return or=Zs(or,i,s,a,c,h),!0;case"dragenter":return ar=Zs(ar,i,s,a,c,h),!0;case"mouseover":return lr=Zs(lr,i,s,a,c,h),!0;case"pointerover":var g=h.pointerId;return Bs.set(g,Zs(Bs.get(g)||null,i,s,a,c,h)),!0;case"gotpointercapture":return g=h.pointerId,Ws.set(g,Zs(Ws.get(g)||null,i,s,a,c,h)),!0}return!1}function $m(i){var s=Br(i.target);if(s!==null){var a=Ur(s);if(a!==null){if(s=a.tag,s===13){if(s=xm(a),s!==null){i.blockedOn=s,Om(i.priority,function(){Nm(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Pa(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=Tc(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(a===null){a=i.nativeEvent;var c=new a.constructor(a.type,a);mc=c,a.target.dispatchEvent(c),mc=null}else return s=so(a),s!==null&&kc(s),i.blockedOn=a,!1;s.shift()}return!0}function Mm(i,s,a){Pa(i)&&a.delete(s)}function mE(){Cc=!1,or!==null&&Pa(or)&&(or=null),ar!==null&&Pa(ar)&&(ar=null),lr!==null&&Pa(lr)&&(lr=null),Bs.forEach(Mm),Ws.forEach(Mm)}function qs(i,s){i.blockedOn===s&&(i.blockedOn=null,Cc||(Cc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,mE)))}function Hs(i){function s(h){return qs(h,i)}if(0<Ca.length){qs(Ca[0],i);for(var a=1;a<Ca.length;a++){var c=Ca[a];c.blockedOn===i&&(c.blockedOn=null)}}for(or!==null&&qs(or,i),ar!==null&&qs(ar,i),lr!==null&&qs(lr,i),Bs.forEach(s),Ws.forEach(s),a=0;a<ur.length;a++)c=ur[a],c.blockedOn===i&&(c.blockedOn=null);for(;0<ur.length&&(a=ur[0],a.blockedOn===null);)$m(a),a.blockedOn===null&&ur.shift()}var $i=L.ReactCurrentBatchConfig,Ta=!0;function gE(i,s,a,c){var h=Re,g=$i.transition;$i.transition=null;try{Re=1,Pc(i,s,a,c)}finally{Re=h,$i.transition=g}}function vE(i,s,a,c){var h=Re,g=$i.transition;$i.transition=null;try{Re=4,Pc(i,s,a,c)}finally{Re=h,$i.transition=g}}function Pc(i,s,a,c){if(Ta){var h=Tc(i,s,a,c);if(h===null)Zc(i,s,c,ja,a),Rm(i,c);else if(pE(h,i,s,a,c))c.stopPropagation();else if(Rm(i,c),s&4&&-1<hE.indexOf(i)){for(;h!==null;){var g=so(h);if(g!==null&&Am(g),g=Tc(i,s,a,c),g===null&&Zc(i,s,c,ja,a),g===h)break;h=g}h!==null&&c.stopPropagation()}else Zc(i,s,c,null,a)}}var ja=null;function Tc(i,s,a,c){if(ja=null,i=gc(c),i=Br(i),i!==null)if(s=Ur(i),s===null)i=null;else if(a=s.tag,a===13){if(i=xm(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return ja=i,null}function Dm(i){switch(i){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(iE()){case bc:return 1;case Cm:return 4;case ba:case sE:return 16;case Pm:return 536870912;default:return 16}default:return 16}}var cr=null,jc=null,Aa=null;function zm(){if(Aa)return Aa;var i,s=jc,a=s.length,c,h="value"in cr?cr.value:cr.textContent,g=h.length;for(i=0;i<a&&s[i]===h[i];i++);var b=a-i;for(c=1;c<=b&&s[a-c]===h[g-c];c++);return Aa=h.slice(i,1<c?1-c:void 0)}function Na(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Ia(){return!0}function Lm(){return!1}function Zt(i){function s(a,c,h,g,b){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=g,this.target=b,this.currentTarget=null;for(var C in i)i.hasOwnProperty(C)&&(a=i[C],this[C]=a?a(g):g[C]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ia:Lm,this.isPropagationStopped=Lm,this}return Q(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ia)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ia)},persist:function(){},isPersistent:Ia}),s}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ac=Zt(Mi),Ks=Q({},Mi,{view:0,detail:0}),yE=Zt(Ks),Nc,Ic,Gs,Oa=Q({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Gs&&(Gs&&i.type==="mousemove"?(Nc=i.screenX-Gs.screenX,Ic=i.screenY-Gs.screenY):Ic=Nc=0,Gs=i),Nc)},movementY:function(i){return"movementY"in i?i.movementY:Ic}}),Fm=Zt(Oa),wE=Q({},Oa,{dataTransfer:0}),xE=Zt(wE),bE=Q({},Ks,{relatedTarget:0}),Oc=Zt(bE),SE=Q({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),_E=Zt(SE),EE=Q({},Mi,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),kE=Zt(EE),CE=Q({},Mi,{data:0}),Vm=Zt(CE),PE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TE={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"},jE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AE(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=jE[i])?!!s[i]:!1}function Rc(){return AE}var NE=Q({},Ks,{key:function(i){if(i.key){var s=PE[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Na(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?TE[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(i){return i.type==="keypress"?Na(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Na(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),IE=Zt(NE),OE=Q({},Oa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Um=Zt(OE),RE=Q({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),$E=Zt(RE),ME=Q({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),DE=Zt(ME),zE=Q({},Oa,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),LE=Zt(zE),FE=[9,13,27,32],$c=d&&"CompositionEvent"in window,Ys=null;d&&"documentMode"in document&&(Ys=document.documentMode);var VE=d&&"TextEvent"in window&&!Ys,Bm=d&&(!$c||Ys&&8<Ys&&11>=Ys),Wm=" ",Zm=!1;function qm(i,s){switch(i){case"keyup":return FE.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hm(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Di=!1;function UE(i,s){switch(i){case"compositionend":return Hm(s);case"keypress":return s.which!==32?null:(Zm=!0,Wm);case"textInput":return i=s.data,i===Wm&&Zm?null:i;default:return null}}function BE(i,s){if(Di)return i==="compositionend"||!$c&&qm(i,s)?(i=zm(),Aa=jc=cr=null,Di=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Bm&&s.locale!=="ko"?null:s.data;default:return null}}var WE={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 Km(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!WE[i.type]:s==="textarea"}function Gm(i,s,a,c){mm(c),s=za(s,"onChange"),0<s.length&&(a=new Ac("onChange","change",null,a,c),i.push({event:a,listeners:s}))}var Js=null,Qs=null;function ZE(i){hg(i,0)}function Ra(i){var s=Ui(i);if(rm(s))return i}function qE(i,s){if(i==="change")return s}var Ym=!1;if(d){var Mc;if(d){var Dc="oninput"in document;if(!Dc){var Jm=document.createElement("div");Jm.setAttribute("oninput","return;"),Dc=typeof Jm.oninput=="function"}Mc=Dc}else Mc=!1;Ym=Mc&&(!document.documentMode||9<document.documentMode)}function Qm(){Js&&(Js.detachEvent("onpropertychange",Xm),Qs=Js=null)}function Xm(i){if(i.propertyName==="value"&&Ra(Qs)){var s=[];Gm(s,Qs,i,gc(i)),wm(ZE,s)}}function HE(i,s,a){i==="focusin"?(Qm(),Js=s,Qs=a,Js.attachEvent("onpropertychange",Xm)):i==="focusout"&&Qm()}function KE(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Ra(Qs)}function GE(i,s){if(i==="click")return Ra(s)}function YE(i,s){if(i==="input"||i==="change")return Ra(s)}function JE(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var yn=typeof Object.is=="function"?Object.is:JE;function Xs(i,s){if(yn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!f.call(s,h)||!yn(i[h],s[h]))return!1}return!0}function eg(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function tg(i,s){var a=eg(i);i=0;for(var c;a;){if(a.nodeType===3){if(c=i+a.textContent.length,i<=s&&c>=s)return{node:a,offset:s-i};i=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=eg(a)}}function ng(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?ng(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function rg(){for(var i=window,s=va();s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)i=s.contentWindow;else break;s=va(i.document)}return s}function zc(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function QE(i){var s=rg(),a=i.focusedElem,c=i.selectionRange;if(s!==a&&a&&a.ownerDocument&&ng(a.ownerDocument.documentElement,a)){if(c!==null&&zc(a)){if(s=c.start,i=c.end,i===void 0&&(i=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(i,a.value.length);else if(i=(s=a.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var h=a.textContent.length,g=Math.min(c.start,h);c=c.end===void 0?g:Math.min(c.end,h),!i.extend&&g>c&&(h=c,c=g,g=h),h=tg(a,g);var b=tg(a,c);h&&b&&(i.rangeCount!==1||i.anchorNode!==h.node||i.anchorOffset!==h.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(s=s.createRange(),s.setStart(h.node,h.offset),i.removeAllRanges(),g>c?(i.addRange(s),i.extend(b.node,b.offset)):(s.setEnd(b.node,b.offset),i.addRange(s)))}}for(s=[],i=a;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)i=s[a],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var XE=d&&"documentMode"in document&&11>=document.documentMode,zi=null,Lc=null,eo=null,Fc=!1;function ig(i,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Fc||zi==null||zi!==va(c)||(c=zi,"selectionStart"in c&&zc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),eo&&Xs(eo,c)||(eo=c,c=za(Lc,"onSelect"),0<c.length&&(s=new Ac("onSelect","select",null,s,a),i.push({event:s,listeners:c}),s.target=zi)))}function $a(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var Li={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionend:$a("Transition","TransitionEnd")},Vc={},sg={};d&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function Ma(i){if(Vc[i])return Vc[i];if(!Li[i])return i;var s=Li[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in sg)return Vc[i]=s[a];return i}var og=Ma("animationend"),ag=Ma("animationiteration"),lg=Ma("animationstart"),ug=Ma("transitionend"),cg=new Map,dg="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 dr(i,s){cg.set(i,s),l(s,[i])}for(var Uc=0;Uc<dg.length;Uc++){var Bc=dg[Uc],ek=Bc.toLowerCase(),tk=Bc[0].toUpperCase()+Bc.slice(1);dr(ek,"on"+tk)}dr(og,"onAnimationEnd"),dr(ag,"onAnimationIteration"),dr(lg,"onAnimationStart"),dr("dblclick","onDoubleClick"),dr("focusin","onFocus"),dr("focusout","onBlur"),dr(ug,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
37sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var to="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(" "),nk=new Set("cancel close invalid load scroll toggle".split(" ").concat(to));function fg(i,s,a){var c=i.type||"unknown-event";i.currentTarget=a,eE(c,s,void 0,i),i.currentTarget=null}function hg(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var c=i[a],h=c.event;c=c.listeners;e:{var g=void 0;if(s)for(var b=c.length-1;0<=b;b--){var C=c[b],T=C.instance,z=C.currentTarget;if(C=C.listener,T!==g&&h.isPropagationStopped())break e;fg(h,C,z),g=T}else for(b=0;b<c.length;b++){if(C=c[b],T=C.instance,z=C.currentTarget,C=C.listener,T!==g&&h.isPropagationStopped())break e;fg(h,C,z),g=T}}}if(xa)throw i=xc,xa=!1,xc=null,i}function Be(i,s){var a=s[Jc];a===void 0&&(a=s[Jc]=new Set);var c=i+"__bubble";a.has(c)||(pg(s,i,2,!1),a.add(c))}function Wc(i,s,a){var c=0;s&&(c|=4),pg(a,i,c,s)}var Da="_reactListening"+Math.random().toString(36).slice(2);function no(i){if(!i[Da]){i[Da]=!0,r.forEach(function(a){a!=="selectionchange"&&(nk.has(a)||Wc(a,!1,i),Wc(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Da]||(s[Da]=!0,Wc("selectionchange",!1,s))}}function pg(i,s,a,c){switch(Dm(s)){case 1:var h=gE;break;case 4:h=vE;break;default:h=Pc}a=h.bind(null,s,a,i),h=void 0,!wc||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),c?h!==void 0?i.addEventListener(s,a,{capture:!0,passive:h}):i.addEventListener(s,a,!0):h!==void 0?i.addEventListener(s,a,{passive:h}):i.addEventListener(s,a,!1)}function Zc(i,s,a,c,h){var g=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var C=c.stateNode.containerInfo;if(C===h||C.nodeType===8&&C.parentNode===h)break;if(b===4)for(b=c.return;b!==null;){var T=b.tag;if((T===3||T===4)&&(T=b.stateNode.containerInfo,T===h||T.nodeType===8&&T.parentNode===h))return;b=b.return}for(;C!==null;){if(b=Br(C),b===null)return;if(T=b.tag,T===5||T===6){c=g=b;continue e}C=C.parentNode}}c=c.return}wm(function(){var z=g,K=gc(a),G=[];e:{var q=cg.get(i);if(q!==void 0){var ee=Ac,ie=i;switch(i){case"keypress":if(Na(a)===0)break e;case"keydown":case"keyup":ee=IE;break;case"focusin":ie="focus",ee=Oc;break;case"focusout":ie="blur",ee=Oc;break;case"beforeblur":case"afterblur":ee=Oc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=xE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=$E;break;case og:case ag:case lg:ee=_E;break;case ug:ee=DE;break;case"scroll":ee=yE;break;case"wheel":ee=LE;break;case"copy":case"cut":case"paste":ee=kE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Um}var se=(s&4)!==0,at=!se&&i==="scroll",O=se?q!==null?q+"Capture":null:q;se=[];for(var j=z,$;j!==null;){$=j;var Y=$.stateNode;if($.tag===5&&Y!==null&&($=Y,O!==null&&(Y=zs(j,O),Y!=null&&se.push(ro(j,Y,$)))),at)break;j=j.return}0<se.length&&(q=new ee(q,ie,null,a,K),G.push({event:q,listeners:se}))}}if((s&7)===0){e:{if(q=i==="mouseover"||i==="pointerover",ee=i==="mouseout"||i==="pointerout",q&&a!==mc&&(ie=a.relatedTarget||a.fromElement)&&(Br(ie)||ie[Zn]))break e;if((ee||q)&&(q=K.window===K?K:(q=K.ownerDocument)?q.defaultView||q.parentWindow:window,ee?(ie=a.relatedTarget||a.toElement,ee=z,ie=ie?Br(ie):null,ie!==null&&(at=Ur(ie),ie!==at||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ee=null,ie=z),ee!==ie)){if(se=Fm,Y="onMouseLeave",O="onMouseEnter",j="mouse",(i==="pointerout"||i==="pointerover")&&(se=Um,Y="onPointerLeave",O="onPointerEnter",j="pointer"),at=ee==null?q:Ui(ee),$=ie==null?q:Ui(ie),q=new se(Y,j+"leave",ee,a,K),q.target=at,q.relatedTarget=$,Y=null,Br(K)===z&&(se=new se(O,j+"enter",ie,a,K),se.target=$,se.relatedTarget=at,Y=se),at=Y,ee&&ie)t:{for(se=ee,O=ie,j=0,$=se;$;$=Fi($))j++;for($=0,Y=O;Y;Y=Fi(Y))$++;for(;0<j-$;)se=Fi(se),j--;for(;0<$-j;)O=Fi(O),$--;for(;j--;){if(se===O||O!==null&&se===O.alternate)break t;se=Fi(se),O=Fi(O)}se=null}else se=null;
vendor: 4,358 bytes, lines 37-38
37ee!==null&&mg(G,q,ee,se,!1),ie!==null&&at!==null&&mg(G,at,ie,se,!0)}}e:{if(q=z?Ui(z):window,ee=q.nodeName&&q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&q.type==="file")var ae=qE;else if(Km(q))if(Ym)ae=YE;else{ae=KE;var de=HE}else(ee=q.nodeName)&&ee.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(ae=GE);if(ae&&(ae=ae(i,z))){Gm(G,ae,a,K);break e}de&&de(i,q,z),i==="focusout"&&(de=q._wrapperState)&&de.controlled&&q.type==="number"&&cc(q,"number",q.value)}switch(de=z?Ui(z):window,i){case"focusin":(Km(de)||de.contentEditable==="true")&&(zi=de,Lc=z,eo=null);break;case"focusout":eo=Lc=zi=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,ig(G,a,K);break;case"selectionchange":if(XE)break;case"keydown":case"keyup":ig(G,a,K)}var fe;if($c)e:{switch(i){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Di?qm(i,a)&&(ge="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(Bm&&a.locale!=="ko"&&(Di||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Di&&(fe=zm()):(cr=K,jc="value"in cr?cr.value:cr.textContent,Di=!0)),de=za(z,ge),0<de.length&&(ge=new Vm(ge,i,null,a,K),G.push({event:ge,listeners:de}),fe?ge.data=fe:(fe=Hm(a),fe!==null&&(ge.data=fe)))),(fe=VE?UE(i,a):BE(i,a))&&(z=za(z,"onBeforeInput"),0<z.length&&(K=new Vm("onBeforeInput","beforeinput",null,a,K),G.push({event:K,listeners:z}),K.data=fe))}hg(G,s)})}function ro(i,s,a){return{instance:i,listener:s,currentTarget:a}}function za(i,s){for(var a=s+"Capture",c=[];i!==null;){var h=i,g=h.stateNode;h.tag===5&&g!==null&&(h=g,g=zs(i,a),g!=null&&c.unshift(ro(i,g,h)),g=zs(i,s),g!=null&&c.push(ro(i,g,h))),i=i.return}return c}function Fi(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function mg(i,s,a,c,h){for(var g=s._reactName,b=[];a!==null&&a!==c;){var C=a,T=C.alternate,z=C.stateNode;if(T!==null&&T===c)break;C.tag===5&&z!==null&&(C=z,h?(T=zs(a,g),T!=null&&b.unshift(ro(a,T,C))):h||(T=zs(a,g),T!=null&&b.push(ro(a,T,C)))),a=a.return}b.length!==0&&i.push({event:s,listeners:b})}var rk=/\r\n?/g,ik=/\u0000|\uFFFD/g;function gg(i){return(typeof i=="string"?i:""+i).replace(rk,` 38`).replace(ik,"")}function La(i,s,a){if(s=gg(s),gg(i)!==s&&a)throw Error(n(425))}function Fa(){}var qc=null,Hc=null;function Kc(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Gc=typeof setTimeout=="function"?setTimeout:void 0,sk=typeof clearTimeout=="function"?clearTimeout:void 0,vg=typeof Promise=="function"?Promise:void 0,ok=typeof queueMicrotask=="function"?queueMicrotask:typeof vg<"u"?function(i){return vg.resolve(null).then(i).catch(ak)}:Gc;function ak(i){setTimeout(function(){throw i})}function Yc(i,s){var a=s,c=0;do{var h=a.nextSibling;if(i.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(c===0){i.removeChild(h),Hs(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=h}while(a);Hs(s)}function fr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function yg(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return i;s--}else a==="/$"&&s++}i=i.previousSibling}return null}var Vi=Math.random().toString(36).slice(2),jn="__reactFiber$"+Vi,io="__reactProps$"+Vi,Zn="__reactContainer$"+Vi,Jc="__reactEvents$"+Vi,lk="__reactListeners$"+Vi,uk="__reactHandles$"+Vi;function Br(i){var s=i[jn];if(s)return s;for(var a=i.parentNode;a;){if(s=a[Zn]||a[jn]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=yg(i);i!==null;){if(a=i[jn])return a;i=yg(i)}return s}i=a,a=i.parentNode}return null}function so(i){return i=i[jn]||i[Zn],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Ui(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function Va(i){return i[io]||null}var Qc=[],Bi=-1;function hr(i){return{current:i}}function We(i){0>Bi||(i.current=Qc[Bi],Qc[Bi]=null,Bi--)}function Fe(i,s){Bi++,Qc[Bi]=i.current,i.current=s}var pr={},kt=hr(pr),Mt=hr(!1),Wr=pr;
vendor: 4,100 bytes, line 38
38function Wi(i,s){var a=i.type.contextTypes;if(!a)return pr;var c=i.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var h={},g;for(g in a)h[g]=s[g];return c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=h),h}function Dt(i){return i=i.childContextTypes,i!=null}function Ua(){We(Mt),We(kt)}function wg(i,s,a){if(kt.current!==pr)throw Error(n(168));Fe(kt,s),Fe(Mt,a)}function xg(i,s,a){var c=i.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var h in c)if(!(h in s))throw Error(n(108,Ne(i)||"Unknown",h));return Q({},a,c)}function Ba(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||pr,Wr=kt.current,Fe(kt,i),Fe(Mt,Mt.current),!0}function bg(i,s,a){var c=i.stateNode;if(!c)throw Error(n(169));a?(i=xg(i,s,Wr),c.__reactInternalMemoizedMergedChildContext=i,We(Mt),We(kt),Fe(kt,i)):We(Mt),Fe(Mt,a)}var qn=null,Wa=!1,Xc=!1;function Sg(i){qn===null?qn=[i]:qn.push(i)}function ck(i){Wa=!0,Sg(i)}function mr(){if(!Xc&&qn!==null){Xc=!0;var i=0,s=Re;try{var a=qn;for(Re=1;i<a.length;i++){var c=a[i];do c=c(!0);while(c!==null)}qn=null,Wa=!1}catch(h){throw qn!==null&&(qn=qn.slice(i+1)),Em(bc,mr),h}finally{Re=s,Xc=!1}}return null}var Zi=[],qi=0,Za=null,qa=0,en=[],tn=0,Zr=null,Hn=1,Kn="";function qr(i,s){Zi[qi++]=qa,Zi[qi++]=Za,Za=i,qa=s}function _g(i,s,a){en[tn++]=Hn,en[tn++]=Kn,en[tn++]=Zr,Zr=i;var c=Hn;i=Kn;var h=32-vn(c)-1;c&=~(1<<h),a+=1;var g=32-vn(s)+h;if(30<g){var b=h-h%5;g=(c&(1<<b)-1).toString(32),c>>=b,h-=b,Hn=1<<32-vn(s)+h|a<<h|c,Kn=g+i}else Hn=1<<g|a<<h|c,Kn=i}function ed(i){i.return!==null&&(qr(i,1),_g(i,1,0))}function td(i){for(;i===Za;)Za=Zi[--qi],Zi[qi]=null,qa=Zi[--qi],Zi[qi]=null;for(;i===Zr;)Zr=en[--tn],en[tn]=null,Kn=en[--tn],en[tn]=null,Hn=en[--tn],en[tn]=null}var qt=null,Ht=null,qe=!1,wn=null;function Eg(i,s){var a=on(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=i,s=i.deletions,s===null?(i.deletions=[a],i.flags|=16):s.push(a)}function kg(i,s){switch(i.tag){case 5:var a=i.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,qt=i,Ht=fr(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,qt=i,Ht=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=Zr!==null?{id:Hn,overflow:Kn}:null,i.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=on(18,null,null,0),a.stateNode=s,a.return=i,i.child=a,qt=i,Ht=null,!0):!1;default:return!1}}function nd(i){return(i.mode&1)!==0&&(i.flags&128)===0}function rd(i){if(qe){var s=Ht;if(s){var a=s;if(!kg(i,s)){if(nd(i))throw Error(n(418));s=fr(a.nextSibling);var c=qt;s&&kg(i,s)?Eg(c,a):(i.flags=i.flags&-4097|2,qe=!1,qt=i)}}else{if(nd(i))throw Error(n(418));i.flags=i.flags&-4097|2,qe=!1,qt=i}}}function Cg(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;qt=i}function Ha(i){if(i!==qt)return!1;if(!qe)return Cg(i),qe=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!Kc(i.type,i.memoizedProps)),s&&(s=Ht)){if(nd(i))throw Pg(),Error(n(418));for(;s;)Eg(i,s),s=fr(s.nextSibling)}if(Cg(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"){if(s===0){Ht=fr(i.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}i=i.nextSibling}Ht=null}}else Ht=qt?fr(i.stateNode.nextSibling):null;return!0}function Pg(){for(var i=Ht;i;)i=fr(i.nextSibling)}function Hi(){Ht=qt=null,qe=!1}function id(i){wn===null?wn=[i]:wn.push(i)}var dk=L.ReactCurrentBatchConfig;function oo(i,s,a){if(i=a.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var c=a.stateNode}if(!c)throw Error(n(147,i));var h=c,g=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===g?s.ref:(s=function(b){var C=h.refs;b===null?delete C[g]:C[g]=b},s._stringRef=g,s)}
vendor: 5,622 bytes, line 38
38if(typeof i!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,i))}return i}function Ka(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function Tg(i){var s=i._init;return s(i._payload)}function jg(i){function s(O,j){if(i){var $=O.deletions;$===null?(O.deletions=[j],O.flags|=16):$.push(j)}}function a(O,j){if(!i)return null;for(;j!==null;)s(O,j),j=j.sibling;return null}function c(O,j){for(O=new Map;j!==null;)j.key!==null?O.set(j.key,j):O.set(j.index,j),j=j.sibling;return O}function h(O,j){return O=_r(O,j),O.index=0,O.sibling=null,O}function g(O,j,$){return O.index=$,i?($=O.alternate,$!==null?($=$.index,$<j?(O.flags|=2,j):$):(O.flags|=2,j)):(O.flags|=1048576,j)}function b(O){return i&&O.alternate===null&&(O.flags|=2),O}function C(O,j,$,Y){return j===null||j.tag!==6?(j=Gd($,O.mode,Y),j.return=O,j):(j=h(j,$),j.return=O,j)}function T(O,j,$,Y){var ae=$.type;return ae===W?K(O,j,$.props.children,Y,$.key):j!==null&&(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ce&&Tg(ae)===j.type)?(Y=h(j,$.props),Y.ref=oo(O,j,$),Y.return=O,Y):(Y=yl($.type,$.key,$.props,null,O.mode,Y),Y.ref=oo(O,j,$),Y.return=O,Y)}function z(O,j,$,Y){return j===null||j.tag!==4||j.stateNode.containerInfo!==$.containerInfo||j.stateNode.implementation!==$.implementation?(j=Yd($,O.mode,Y),j.return=O,j):(j=h(j,$.children||[]),j.return=O,j)}function K(O,j,$,Y,ae){return j===null||j.tag!==7?(j=ei($,O.mode,Y,ae),j.return=O,j):(j=h(j,$),j.return=O,j)}function G(O,j,$){if(typeof j=="string"&&j!==""||typeof j=="number")return j=Gd(""+j,O.mode,$),j.return=O,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case D:return $=yl(j.type,j.key,j.props,null,O.mode,$),$.ref=oo(O,null,j),$.return=O,$;case B:return j=Yd(j,O.mode,$),j.return=O,j;case Ce:var Y=j._init;return G(O,Y(j._payload),$)}if($s(j)||ne(j))return j=ei(j,O.mode,$,null),j.return=O,j;Ka(O,j)}return null}function q(O,j,$,Y){var ae=j!==null?j.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return ae!==null?null:C(O,j,""+$,Y);if(typeof $=="object"&&$!==null){switch($.$$typeof){case D:return $.key===ae?T(O,j,$,Y):null;case B:return $.key===ae?z(O,j,$,Y):null;case Ce:return ae=$._init,q(O,j,ae($._payload),Y)}if($s($)||ne($))return ae!==null?null:K(O,j,$,Y,null);Ka(O,$)}return null}function ee(O,j,$,Y,ae){if(typeof Y=="string"&&Y!==""||typeof Y=="number")return O=O.get($)||null,C(j,O,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case D:return O=O.get(Y.key===null?$:Y.key)||null,T(j,O,Y,ae);case B:return O=O.get(Y.key===null?$:Y.key)||null,z(j,O,Y,ae);case Ce:var de=Y._init;return ee(O,j,$,de(Y._payload),ae)}if($s(Y)||ne(Y))return O=O.get($)||null,K(j,O,Y,ae,null);Ka(j,Y)}return null}function ie(O,j,$,Y){for(var ae=null,de=null,fe=j,ge=j=0,yt=null;fe!==null&&ge<$.length;ge++){fe.index>ge?(yt=fe,fe=null):yt=fe.sibling;var je=q(O,fe,$[ge],Y);if(je===null){fe===null&&(fe=yt);break}i&&fe&&je.alternate===null&&s(O,fe),j=g(je,j,ge),de===null?ae=je:de.sibling=je,de=je,fe=yt}if(ge===$.length)return a(O,fe),qe&&qr(O,ge),ae;if(fe===null){for(;ge<$.length;ge++)fe=G(O,$[ge],Y),fe!==null&&(j=g(fe,j,ge),de===null?ae=fe:de.sibling=fe,de=fe);return qe&&qr(O,ge),ae}for(fe=c(O,fe);ge<$.length;ge++)yt=ee(fe,O,ge,$[ge],Y),yt!==null&&(i&&yt.alternate!==null&&fe.delete(yt.key===null?ge:yt.key),j=g(yt,j,ge),de===null?ae=yt:de.sibling=yt,de=yt);return i&&fe.forEach(function(Er){return s(O,Er)}),qe&&qr(O,ge),ae}function se(O,j,$,Y){var ae=ne($);if(typeof ae!="function")throw Error(n(150));if($=ae.call($),$==null)throw Error(n(151));for(var de=ae=null,fe=j,ge=j=0,yt=null,je=$.next();fe!==null&&!je.done;ge++,je=$.next()){fe.index>ge?(yt=fe,fe=null):yt=fe.sibling;var Er=q(O,fe,je.value,Y);if(Er===null){fe===null&&(fe=yt);break}i&&fe&&Er.alternate===null&&s(O,fe),j=g(Er,j,ge),de===null?ae=Er:de.sibling=Er,de=Er,fe=yt}if(je.done)return a(O,fe),qe&&qr(O,ge),ae;if(fe===null){for(;!je.done;ge++,je=$.next())je=G(O,je.value,Y),je!==null&&(j=g(je,j,ge),de===null?ae=je:de.sibling=je,de=je);return qe&&qr(O,ge),ae}for(fe=c(O,fe);!je.done;ge++,je=$.next())je=ee(fe,O,ge,je.value,Y),je!==null&&(i&&je.alternate!==null&&fe.delete(je.key===null?ge:je.key),j=g(je,j,ge),de===null?ae=je:de.sibling=je,de=je);return i&&fe.forEach(function(Wk){return s(O,Wk)}),qe&&qr(O,ge),ae}function at(O,j,$,Y){if(typeof $=="object"&&$!==null&&$.type===W&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case D:e:{for(var ae=$.key,de=j;de!==null;){if(de.key===ae){if(ae=$.type,ae===W){if(de.tag===7){a(O,de.sibling),j=h(de,$.props.children),j.return=O,O=j;break e}}else if(de.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ce&&Tg(ae)===de.type){a(O,de.sibling),j=h(de,$.props),j.ref=oo(O,de,$),j.return=O,O=j;break e}a(O,de);break}else s(O,de);de=de.sibling}$.type===W?(j=ei($.props.children,O.mode,Y,$.key),j.return=O,O=j):(Y=yl($.type,$.key,$.props,null,O.mode,Y),Y.ref=oo(O,j,$),Y.return=O,O=Y)}return b(O);case B:e:{for(de=$.key;j!==null;){if(j.key===de)if(j.tag===4&&j.stateNode.containerInfo===$.containerInfo&&j.stateNode.implementation===$.implementation){a(O,j.sibling),j=h(j,$.children||[]),j.return=O,O=j;break e}else{a(O,j);break}else s(O,j);j=j.sibling}j=Yd($,O.mode,Y),j.return=O,O=j}return b(O);case Ce:return de=$._init,at(O,j,de($._payload),Y)}if($s($))return ie(O,j,$,Y);if(ne($))return se(O,j,$,Y);Ka(O,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,j!==null&&j.tag===6?(a(O,j.sibling),j=h(j,$),j.return=O,O=j):(a(O,j),j=Gd($,O.mode,Y),j.return=O,O=j),b(O)):a(O,j)}return at}
vendor: 4,371 bytes, line 38
38var Ki=jg(!0),Ag=jg(!1),Ga=hr(null),Ya=null,Gi=null,sd=null;function od(){sd=Gi=Ya=null}function ad(i){var s=Ga.current;We(Ga),i._currentValue=s}function ld(i,s,a){for(;i!==null;){var c=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),i===a)break;i=i.return}}function Yi(i,s){Ya=i,sd=Gi=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(zt=!0),i.firstContext=null)}function nn(i){var s=i._currentValue;if(sd!==i)if(i={context:i,memoizedValue:s,next:null},Gi===null){if(Ya===null)throw Error(n(308));Gi=i,Ya.dependencies={lanes:0,firstContext:i}}else Gi=Gi.next=i;return s}var Hr=null;function ud(i){Hr===null?Hr=[i]:Hr.push(i)}function Ng(i,s,a,c){var h=s.interleaved;return h===null?(a.next=a,ud(s)):(a.next=h.next,h.next=a),s.interleaved=a,Gn(i,c)}function Gn(i,s){i.lanes|=s;var a=i.alternate;for(a!==null&&(a.lanes|=s),a=i,i=i.return;i!==null;)i.childLanes|=s,a=i.alternate,a!==null&&(a.childLanes|=s),a=i,i=i.return;return a.tag===3?a.stateNode:null}var gr=!1;function cd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ig(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Yn(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function vr(i,s,a){var c=i.updateQueue;if(c===null)return null;if(c=c.shared,(Pe&2)!==0){var h=c.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s,Gn(i,a)}return h=c.interleaved,h===null?(s.next=s,ud(c)):(s.next=h.next,h.next=s),c.interleaved=s,Gn(i,a)}function Ja(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Ec(i,a)}}function Og(i,s){var a=i.updateQueue,c=i.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?h=g=b:g=g.next=b,a=a.next}while(a!==null);g===null?h=g=s:g=g.next=s}else h=g=s;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:c.shared,effects:c.effects},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}function Qa(i,s,a,c){var h=i.updateQueue;gr=!1;var g=h.firstBaseUpdate,b=h.lastBaseUpdate,C=h.shared.pending;if(C!==null){h.shared.pending=null;var T=C,z=T.next;T.next=null,b===null?g=z:b.next=z,b=T;var K=i.alternate;K!==null&&(K=K.updateQueue,C=K.lastBaseUpdate,C!==b&&(C===null?K.firstBaseUpdate=z:C.next=z,K.lastBaseUpdate=T))}if(g!==null){var G=h.baseState;b=0,K=z=T=null,C=g;do{var q=C.lane,ee=C.eventTime;if((c&q)===q){K!==null&&(K=K.next={eventTime:ee,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ie=i,se=C;switch(q=s,ee=a,se.tag){case 1:if(ie=se.payload,typeof ie=="function"){G=ie.call(ee,G,q);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=se.payload,q=typeof ie=="function"?ie.call(ee,G,q):ie,q==null)break e;G=Q({},G,q);break e;case 2:gr=!0}}C.callback!==null&&C.lane!==0&&(i.flags|=64,q=h.effects,q===null?h.effects=[C]:q.push(C))}else ee={eventTime:ee,lane:q,tag:C.tag,payload:C.payload,callback:C.callback,next:null},K===null?(z=K=ee,T=G):K=K.next=ee,b|=q;if(C=C.next,C===null){if(C=h.shared.pending,C===null)break;q=C,C=q.next,q.next=null,h.lastBaseUpdate=q,h.shared.pending=null}}while(!0);if(K===null&&(T=G),h.baseState=T,h.firstBaseUpdate=z,h.lastBaseUpdate=K,s=h.shared.interleaved,s!==null){h=s;do b|=h.lane,h=h.next;while(h!==s)}else g===null&&(h.shared.lanes=0);Yr|=b,i.lanes=b,i.memoizedState=G}}function Rg(i,s,a){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var c=i[s],h=c.callback;if(h!==null){if(c.callback=null,c=a,typeof h!="function")throw Error(n(191,h));h.call(c)}}}var ao={},An=hr(ao),lo=hr(ao),uo=hr(ao);function Kr(i){if(i===ao)throw Error(n(174));return i}function dd(i,s){switch(Fe(uo,s),Fe(lo,i),Fe(An,ao),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:fc(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=fc(s,i)}We(An),Fe(An,s)}function Ji(){We(An),We(lo),We(uo)}
vendor: 9,195 bytes, line 38
38function $g(i){Kr(uo.current);var s=Kr(An.current),a=fc(s,i.type);s!==a&&(Fe(lo,i),Fe(An,a))}function fd(i){lo.current===i&&(We(An),We(lo))}var Ge=hr(0);function Xa(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var hd=[];function pd(){for(var i=0;i<hd.length;i++)hd[i]._workInProgressVersionPrimary=null;hd.length=0}var el=L.ReactCurrentDispatcher,md=L.ReactCurrentBatchConfig,Gr=0,Ye=null,dt=null,gt=null,tl=!1,co=!1,fo=0,fk=0;function Ct(){throw Error(n(321))}function gd(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!yn(i[a],s[a]))return!1;return!0}function vd(i,s,a,c,h,g){if(Gr=g,Ye=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,el.current=i===null||i.memoizedState===null?gk:vk,i=a(c,h),co){g=0;do{if(co=!1,fo=0,25<=g)throw Error(n(301));g+=1,gt=dt=null,s.updateQueue=null,el.current=yk,i=a(c,h)}while(co)}if(el.current=il,s=dt!==null&&dt.next!==null,Gr=0,gt=dt=Ye=null,tl=!1,s)throw Error(n(300));return i}function yd(){var i=fo!==0;return fo=0,i}function Nn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ye.memoizedState=gt=i:gt=gt.next=i,gt}function rn(){if(dt===null){var i=Ye.alternate;i=i!==null?i.memoizedState:null}else i=dt.next;var s=gt===null?Ye.memoizedState:gt.next;if(s!==null)gt=s,dt=i;else{if(i===null)throw Error(n(310));dt=i,i={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},gt===null?Ye.memoizedState=gt=i:gt=gt.next=i}return gt}function ho(i,s){return typeof s=="function"?s(i):s}function wd(i){var s=rn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=dt,h=c.baseQueue,g=a.pending;if(g!==null){if(h!==null){var b=h.next;h.next=g.next,g.next=b}c.baseQueue=h=g,a.pending=null}if(h!==null){g=h.next,c=c.baseState;var C=b=null,T=null,z=g;do{var K=z.lane;if((Gr&K)===K)T!==null&&(T=T.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),c=z.hasEagerState?z.eagerState:i(c,z.action);else{var G={lane:K,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};T===null?(C=T=G,b=c):T=T.next=G,Ye.lanes|=K,Yr|=K}z=z.next}while(z!==null&&z!==g);T===null?b=c:T.next=C,yn(c,s.memoizedState)||(zt=!0),s.memoizedState=c,s.baseState=b,s.baseQueue=T,a.lastRenderedState=c}if(i=a.interleaved,i!==null){h=i;do g=h.lane,Ye.lanes|=g,Yr|=g,h=h.next;while(h!==i)}else h===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function xd(i){var s=rn(),a=s.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=i;var c=a.dispatch,h=a.pending,g=s.memoizedState;if(h!==null){a.pending=null;var b=h=h.next;do g=i(g,b.action),b=b.next;while(b!==h);yn(g,s.memoizedState)||(zt=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),a.lastRenderedState=g}return[g,c]}function Mg(){}function Dg(i,s){var a=Ye,c=rn(),h=s(),g=!yn(c.memoizedState,h);if(g&&(c.memoizedState=h,zt=!0),c=c.queue,bd(Fg.bind(null,a,c,i),[i]),c.getSnapshot!==s||g||gt!==null&>.memoizedState.tag&1){if(a.flags|=2048,po(9,Lg.bind(null,a,c,h,s),void 0,null),vt===null)throw Error(n(349));(Gr&30)!==0||zg(a,s,h)}return h}function zg(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=Ye.updateQueue,s===null?(s={lastEffect:null,stores:null},Ye.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function Lg(i,s,a,c){s.value=a,s.getSnapshot=c,Vg(s)&&Ug(i)}function Fg(i,s,a){return a(function(){Vg(s)&&Ug(i)})}function Vg(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!yn(i,a)}catch{return!0}}function Ug(i){var s=Gn(i,1);s!==null&&_n(s,i,1,-1)}function Bg(i){var s=Nn();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ho,lastRenderedState:i},s.queue=i,i=i.dispatch=mk.bind(null,Ye,i),[s.memoizedState,i]}function po(i,s,a,c){return i={tag:i,create:s,destroy:a,deps:c,next:null},s=Ye.updateQueue,s===null?(s={lastEffect:null,stores:null},Ye.updateQueue=s,s.lastEffect=i.next=i):(a=s.lastEffect,a===null?s.lastEffect=i.next=i:(c=a.next,a.next=i,i.next=c,s.lastEffect=i)),i}function Wg(){return rn().memoizedState}function nl(i,s,a,c){var h=Nn();Ye.flags|=i,h.memoizedState=po(1|s,a,void 0,c===void 0?null:c)}function rl(i,s,a,c){var h=rn();c=c===void 0?null:c;var g=void 0;if(dt!==null){var b=dt.memoizedState;if(g=b.destroy,c!==null&&gd(c,b.deps)){h.memoizedState=po(s,a,g,c);return}}Ye.flags|=i,h.memoizedState=po(1|s,a,g,c)}function Zg(i,s){return nl(8390656,8,i,s)}function bd(i,s){return rl(2048,8,i,s)}function qg(i,s){return rl(4,2,i,s)}function Hg(i,s){return rl(4,4,i,s)}function Kg(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Gg(i,s,a){return a=a!=null?a.concat([i]):null,rl(4,4,Kg.bind(null,s,i),a)}function Sd(){}function Yg(i,s){var a=rn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&gd(s,c[1])?c[0]:(a.memoizedState=[i,s],i)}function Jg(i,s){var a=rn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&gd(s,c[1])?c[0]:(i=i(),a.memoizedState=[i,s],i)}function Qg(i,s,a){return(Gr&21)===0?(i.baseState&&(i.baseState=!1,zt=!0),i.memoizedState=a):(yn(a,s)||(a=Tm(),Ye.lanes|=a,Yr|=a,i.baseState=!0),s)}function hk(i,s){var a=Re;Re=a!==0&&4>a?a:4,i(!0);var c=md.transition;md.transition={};try{i(!1),s()}finally{Re=a,md.transition=c}}function Xg(){return rn().memoizedState}function pk(i,s,a){var c=br(i);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},ev(i))tv(s,a);else if(a=Ng(i,s,a,c),a!==null){var h=Ot();_n(a,i,c,h),nv(a,s,c)}}function mk(i,s,a){var c=br(i),h={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(ev(i))tv(s,h);else{var g=i.alternate;if(i.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var b=s.lastRenderedState,C=g(b,a);if(h.hasEagerState=!0,h.eagerState=C,yn(C,b)){var T=s.interleaved;T===null?(h.next=h,ud(s)):(h.next=T.next,T.next=h),s.interleaved=h;return}}catch{}finally{}a=Ng(i,s,h,c),a!==null&&(h=Ot(),_n(a,i,c,h),nv(a,s,c))}}function ev(i){var s=i.alternate;return i===Ye||s!==null&&s===Ye}function tv(i,s){co=tl=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function nv(i,s,a){if((a&4194240)!==0){var c=s.lanes;c&=i.pendingLanes,a|=c,s.lanes=a,Ec(i,a)}}var il={readContext:nn,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},gk={readContext:nn,useCallback:function(i,s){return Nn().memoizedState=[i,s===void 0?null:s],i},useContext:nn,useEffect:Zg,useImperativeHandle:function(i,s,a){return a=a!=null?a.concat([i]):null,nl(4194308,4,Kg.bind(null,s,i),a)},useLayoutEffect:function(i,s){return nl(4194308,4,i,s)},useInsertionEffect:function(i,s){return nl(4,2,i,s)},useMemo:function(i,s){var a=Nn();return s=s===void 0?null:s,i=i(),a.memoizedState=[i,s],i},useReducer:function(i,s,a){var c=Nn();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},c.queue=i,i=i.dispatch=pk.bind(null,Ye,i),[c.memoizedState,i]},useRef:function(i){var s=Nn();return i={current:i},s.memoizedState=i},useState:Bg,useDebugValue:Sd,useDeferredValue:function(i){return Nn().memoizedState=i},useTransition:function(){var i=Bg(!1),s=i[0];return i=hk.bind(null,i[1]),Nn().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,a){var c=Ye,h=Nn();if(qe){if(a===void 0)throw Error(n(407));a=a()}else{if(a=s(),vt===null)throw Error(n(349));(Gr&30)!==0||zg(c,s,a)}h.memoizedState=a;var g={value:a,getSnapshot:s};return h.queue=g,Zg(Fg.bind(null,c,g,i),[i]),c.flags|=2048,po(9,Lg.bind(null,c,g,a,s),void 0,null),a},useId:function(){var i=Nn(),s=vt.identifierPrefix;if(qe){var a=Kn,c=Hn;a=(c&~(1<<32-vn(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=fo++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=fk++,s=":"+s+"r"+a.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},vk={readContext:nn,useCallback:Yg,useContext:nn,useEffect:bd,useImperativeHandle:Gg,useInsertionEffect:qg,useLayoutEffect:Hg,useMemo:Jg,useReducer:wd,useRef:Wg,useState:function(){return wd(ho)},useDebugValue:Sd,useDeferredValue:function(i){var s=rn();return Qg(s,dt.memoizedState,i)},useTransition:function(){var i=wd(ho)[0],s=rn().memoizedState;return[i,s]},useMutableSource:Mg,useSyncExternalStore:Dg,useId:Xg,unstable_isNewReconciler:!1},yk={readContext:nn,useCallback:Yg,useContext:nn,useEffect:bd,useImperativeHandle:Gg,useInsertionEffect:qg,useLayoutEffect:Hg,useMemo:Jg,useReducer:xd,useRef
vendor: 1,138 bytes, line 38
38:Wg,useState:function(){return xd(ho)},useDebugValue:Sd,useDeferredValue:function(i){var s=rn();return dt===null?s.memoizedState=i:Qg(s,dt.memoizedState,i)},useTransition:function(){var i=xd(ho)[0],s=rn().memoizedState;return[i,s]},useMutableSource:Mg,useSyncExternalStore:Dg,useId:Xg,unstable_isNewReconciler:!1};function xn(i,s){if(i&&i.defaultProps){s=Q({},s),i=i.defaultProps;for(var a in i)s[a]===void 0&&(s[a]=i[a]);return s}return s}function _d(i,s,a,c){s=i.memoizedState,a=a(c,s),a=a==null?s:Q({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var sl={isMounted:function(i){return(i=i._reactInternals)?Ur(i)===i:!1},enqueueSetState:function(i,s,a){i=i._reactInternals;var c=Ot(),h=br(i),g=Yn(c,h);g.payload=s,a!=null&&(g.callback=a),s=vr(i,g,h),s!==null&&(_n(s,i,h,c),Ja(s,i,h))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var c=Ot(),h=br(i),g=Yn(c,h);g.tag=1,g.payload=s,a!=null&&(g.callback=a),s=vr(i,g,h),s!==null&&(_n(s,i,h,c),Ja(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=Ot(),c=br(i),h=Yn(a,c);h.tag=2,s!=null&&(h.callback=s),s=vr(i,h,c),s!==null&&(_n(s,i,c,a),Ja(s,i,c
vendor: 4,848 bytes, lines 38-40
38))}};function rv(i,s,a,c,h,g,b){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(c,g,b):s.prototype&&s.prototype.isPureReactComponent?!Xs(a,c)||!Xs(h,g):!0}function iv(i,s,a){var c=!1,h=pr,g=s.contextType;return typeof g=="object"&&g!==null?g=nn(g):(h=Dt(s)?Wr:kt.current,c=s.contextTypes,g=(c=c!=null)?Wi(i,h):pr),s=new s(a,g),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=sl,i.stateNode=s,s._reactInternals=i,c&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=h,i.__reactInternalMemoizedMaskedChildContext=g),s}function sv(i,s,a,c){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==i&&sl.enqueueReplaceState(s,s.state,null)}function Ed(i,s,a,c){var h=i.stateNode;h.props=a,h.state=i.memoizedState,h.refs={},cd(i);var g=s.contextType;typeof g=="object"&&g!==null?h.context=nn(g):(g=Dt(s)?Wr:kt.current,h.context=Wi(i,g)),h.state=i.memoizedState,g=s.getDerivedStateFromProps,typeof g=="function"&&(_d(i,s,g,a),h.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(s=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),s!==h.state&&sl.enqueueReplaceState(h,h.state,null),Qa(i,a,h,c),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308)}function Qi(i,s){try{var a="",c=s;do a+=xe(c),c=c.return;while(c);var h=a}catch(g){h=` 39Error generating stack: `+g.message+` 40`+g.stack}return{value:i,source:s,stack:h,digest:null}}function kd(i,s,a){return{value:i,source:null,stack:a??null,digest:s??null}}function Cd(i,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var wk=typeof WeakMap=="function"?WeakMap:Map;function ov(i,s,a){a=Yn(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){fl||(fl=!0,Vd=c),Cd(i,s)},a}function av(i,s,a){a=Yn(-1,a),a.tag=3;var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var h=s.value;a.payload=function(){return c(h)},a.callback=function(){Cd(i,s)}}var g=i.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(a.callback=function(){Cd(i,s),typeof c!="function"&&(wr===null?wr=new Set([this]):wr.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})}),a}function lv(i,s,a){var c=i.pingCache;if(c===null){c=i.pingCache=new wk;var h=new Set;c.set(s,h)}else h=c.get(s),h===void 0&&(h=new Set,c.set(s,h));h.has(a)||(h.add(a),i=Ok.bind(null,i,s,a),s.then(i,i))}function uv(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function cv(i,s,a,c,h){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=Yn(-1,1),s.tag=2,vr(a,s,1))),a.lanes|=1),i):(i.flags|=65536,i.lanes=h,i)}var xk=L.ReactCurrentOwner,zt=!1;function It(i,s,a,c){s.child=i===null?Ag(s,null,a,c):Ki(s,i.child,a,c)}function dv(i,s,a,c,h){a=a.render;var g=s.ref;return Yi(s,h),c=vd(i,s,a,c,g,h),a=yd(),i!==null&&!zt?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~h,Jn(i,s,h)):(qe&&a&&ed(s),s.flags|=1,It(i,s,c,h),s.child)}function fv(i,s,a,c,h){if(i===null){var g=a.type;return typeof g=="function"&&!Kd(g)&&g.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=g,hv(i,s,g,c,h)):(i=yl(a.type,null,c,s,s.mode,h),i.ref=s.ref,i.return=s,s.child=i)}if(g=i.child,(i.lanes&h)===0){var b=g.memoizedProps;if(a=a.compare,a=a!==null?a:Xs,a(b,c)&&i.ref===s.ref)return Jn(i,s,h)}return s.flags|=1,i=_r(g,c),i.ref=s.ref,i.return=s,s.child=i}function hv(i,s,a,c,h){if(i!==null){var g=i.memoizedProps;if(Xs(g,c)&&i.ref===s.ref)if(zt=!1,s.pendingProps=c=g,(i.lanes&h)!==0)(i.flags&131072)!==0&&(zt=!0);else return s.lanes=i.lanes,Jn(i,s,h)}return Pd(i,s,a,c,h)}function pv(i,s,a){var c=s.pendingProps,h=c.children,g=i!==null?i.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(es,Kt),Kt|=a;else{if((a&1073741824)===0)return i=g!==null?g.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,Fe(es,Kt),Kt|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:a,Fe(es,Kt),Kt|=c}else g!==null?(c=g.baseLanes|a,s.memoizedState=null):c=a,Fe(es,Kt),Kt|=c;return It(i,s,h,a),s.child}function mv(i,s){var a=s.ref;(i===null&&a!==null||i!==null&&i.ref!==a)&&(s.flags|=512,s.flags|=2097152)}
vendor: 37,779 bytes, line 40
40function Pd(i,s,a,c,h){var g=Dt(a)?Wr:kt.current;return g=Wi(s,g),Yi(s,h),a=vd(i,s,a,c,g,h),c=yd(),i!==null&&!zt?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~h,Jn(i,s,h)):(qe&&c&&ed(s),s.flags|=1,It(i,s,a,h),s.child)}function gv(i,s,a,c,h){if(Dt(a)){var g=!0;Ba(s)}else g=!1;if(Yi(s,h),s.stateNode===null)al(i,s),iv(s,a,c),Ed(s,a,c,h),c=!0;else if(i===null){var b=s.stateNode,C=s.memoizedProps;b.props=C;var T=b.context,z=a.contextType;typeof z=="object"&&z!==null?z=nn(z):(z=Dt(a)?Wr:kt.current,z=Wi(s,z));var K=a.getDerivedStateFromProps,G=typeof K=="function"||typeof b.getSnapshotBeforeUpdate=="function";G||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==c||T!==z)&&sv(s,b,c,z),gr=!1;var q=s.memoizedState;b.state=q,Qa(s,c,b,h),T=s.memoizedState,C!==c||q!==T||Mt.current||gr?(typeof K=="function"&&(_d(s,a,K,c),T=s.memoizedState),(C=gr||rv(s,a,C,c,q,T,z))?(G||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(s.flags|=4194308)):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=T),b.props=c,b.state=T,b.context=z,c=C):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{b=s.stateNode,Ig(i,s),C=s.memoizedProps,z=s.type===s.elementType?C:xn(s.type,C),b.props=z,G=s.pendingProps,q=b.context,T=a.contextType,typeof T=="object"&&T!==null?T=nn(T):(T=Dt(a)?Wr:kt.current,T=Wi(s,T));var ee=a.getDerivedStateFromProps;(K=typeof ee=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==G||q!==T)&&sv(s,b,c,T),gr=!1,q=s.memoizedState,b.state=q,Qa(s,c,b,h);var ie=s.memoizedState;C!==G||q!==ie||Mt.current||gr?(typeof ee=="function"&&(_d(s,a,ee,c),ie=s.memoizedState),(z=gr||rv(s,a,z,c,q,ie,T)||!1)?(K||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,ie,T),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,ie,T)),typeof b.componentDidUpdate=="function"&&(s.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof b.componentDidUpdate!="function"||C===i.memoizedProps&&q===i.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&q===i.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=ie),b.props=c,b.state=ie,b.context=T,c=z):(typeof b.componentDidUpdate!="function"||C===i.memoizedProps&&q===i.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&q===i.memoizedState||(s.flags|=1024),c=!1)}return Td(i,s,a,c,g,h)}function Td(i,s,a,c,h,g){mv(i,s);var b=(s.flags&128)!==0;if(!c&&!b)return h&&bg(s,a,!1),Jn(i,s,g);c=s.stateNode,xk.current=s;var C=b&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,i!==null&&b?(s.child=Ki(s,i.child,null,g),s.child=Ki(s,null,C,g)):It(i,s,C,g),s.memoizedState=c.state,h&&bg(s,a,!0),s.child}function vv(i){var s=i.stateNode;s.pendingContext?wg(i,s.pendingContext,s.pendingContext!==s.context):s.context&&wg(i,s.context,!1),dd(i,s.containerInfo)}function yv(i,s,a,c,h){return Hi(),id(h),s.flags|=256,It(i,s,a,c),s.child}var jd={dehydrated:null,treeContext:null,retryLane:0};function Ad(i){return{baseLanes:i,cachePool:null,transitions:null}}function wv(i,s,a){var c=s.pendingProps,h=Ge.current,g=!1,b=(s.flags&128)!==0,C;if((C=b)||(C=i!==null&&i.memoizedState===null?!1:(h&2)!==0),C?(g=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(h|=1),Fe(Ge,h&1),i===null)return rd(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(b=c.children,i=c.fallback,g?(c=s.mode,g=s.child,b={mode:"hidden",children:b},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=b):g=wl(b,c,0,null),i=ei(i,c,a,null),g.return=s,i.return=s,g.sibling=i,s.child=g,s.child.memoizedState=Ad(a),s.memoizedState=jd,i):Nd(s,b));if(h=i.memoizedState,h!==null&&(C=h.dehydrated,C!==null))return bk(i,s,b,c,C,h,a);if(g){g=c.fallback,b=s.mode,h=i.child,C=h.sibling;var T={mode:"hidden",children:c.children};return(b&1)===0&&s.child!==h?(c=s.child,c.childLanes=0,c.pendingProps=T,s.deletions=null):(c=_r(h,T),c.subtreeFlags=h.subtreeFlags&14680064),C!==null?g=_r(C,g):(g=ei(g,b,a,null),g.flags|=2),g.return=s,c.return=s,c.sibling=g,s.child=c,c=g,g=s.child,b=i.child.memoizedState,b=b===null?Ad(a):{baseLanes:b.baseLanes|a,cachePool:null,transitions:b.transitions},g.memoizedState=b,g.childLanes=i.childLanes&~a,s.memoizedState=jd,c}return g=i.child,i=g.sibling,c=_r(g,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,i!==null&&(a=s.deletions,a===null?(s.deletions=[i],s.flags|=16):a.push(i)),s.child=c,s.memoizedState=null,c}function Nd(i,s){return s=wl({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function ol(i,s,a,c){return c!==null&&id(c),Ki(s,i.child,null,a),i=Nd(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function bk(i,s,a,c,h,g,b){if(a)return s.flags&256?(s.flags&=-257,c=kd(Error(n(422))),ol(i,s,b,c)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(g=c.fallback,h=s.mode,c=wl({mode:"visible",children:c.children},h,0,null),g=ei(g,h,b,null),g.flags|=2,c.return=s,g.return=s,c.sibling=g,s.child=c,(s.mode&1)!==0&&Ki(s,i.child,null,b),s.child.memoizedState=Ad(b),s.memoizedState=jd,g);if((s.mode&1)===0)return ol(i,s,b,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var C=c.dgst;return c=C,g=Error(n(419)),c=kd(g,c,void 0),ol(i,s,b,c)}if(C=(b&i.childLanes)!==0,zt||C){if(c=vt,c!==null){switch(b&-b){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|b))!==0?0:h,h!==0&&h!==g.retryLane&&(g.retryLane=h,Gn(i,h),_n(c,i,h,-1))}return Hd(),c=kd(Error(n(421))),ol(i,s,b,c)}return h.data==="$?"?(s.flags|=128,s.child=i.child,s=Rk.bind(null,i),h._reactRetry=s,null):(i=g.treeContext,Ht=fr(h.nextSibling),qt=s,qe=!0,wn=null,i!==null&&(en[tn++]=Hn,en[tn++]=Kn,en[tn++]=Zr,Hn=i.id,Kn=i.overflow,Zr=s),s=Nd(s,c.children),s.flags|=4096,s)}function xv(i,s,a){i.lanes|=s;var c=i.alternate;c!==null&&(c.lanes|=s),ld(i.return,s,a)}function Id(i,s,a,c,h){var g=i.memoizedState;g===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(g.isBackwards=s,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=a,g.tailMode=h)}function bv(i,s,a){var c=s.pendingProps,h=c.revealOrder,g=c.tail;if(It(i,s,c.children,a),c=Ge.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&xv(i,a,s);else if(i.tag===19)xv(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}c&=1}if(Fe(Ge,c),(s.mode&1)===0)s.memoizedState=null;else switch(h){case"forwards":for(a=s.child,h=null;a!==null;)i=a.alternate,i!==null&&Xa(i)===null&&(h=a),a=a.sibling;a=h,a===null?(h=s.child,s.child=null):(h=a.sibling,a.sibling=null),Id(s,!1,h,a,g);break;case"backwards":for(a=null,h=s.child,s.child=null;h!==null;){if(i=h.alternate,i!==null&&Xa(i)===null){s.child=h;break}i=h.sibling,h.sibling=a,a=h,h=i}Id(s,!0,a,null,g);break;case"together":Id(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function al(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Jn(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),Yr|=s.lanes,(a&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,a=_r(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=_r(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function Sk(i,s,a){switch(s.tag){case 3:vv(s),Hi();break;case 5:$g(s);break;case 1:Dt(s.type)&&Ba(s);break;case 4:dd(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,h=s.memoizedProps.value;Fe(Ga,c._currentValue),c._currentValue=h;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(Fe(Ge,Ge.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?wv(i,s,a):(Fe(Ge,Ge.current&1),i=Jn(i,s,a),i!==null?i.sibling:null);Fe(Ge,Ge.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(i.flags&128)!==0){if(c)return bv(i,s,a);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Fe(Ge,Ge.current),c)break;return null;case 22:case 23:return s.lanes=0,pv(i,s,a)}return Jn(i,s,a)}var Sv,Od,_v,Ev;Sv=function(i,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)i.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Od=function(){},_v=function(i,s,a,c){var h=i.memoizedProps;if(h!==c){i=s.stateNode,Kr(An.current);var g=null;switch(a){case"input":h=lc(i,h),c=lc(i,c),g=[];break;case"select":h=Q({},h,{value:void 0}),c=Q({},c,{value:void 0}),g=[];break;case"textarea":h=dc(i,h),c=dc(i,c),g=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(i.onclick=Fa)}hc(a,c);var b;a=null;for(z in h)if(!c.hasOwnProperty(z)&&h.hasOwnProperty(z)&&h[z]!=null)if(z==="style"){var C=h[z];for(b in C)C.hasOwnProperty(b)&&(a||(a={}),a[b]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(o.hasOwnProperty(z)?g||(g=[]):(g=g||[]).push(z,null));for(z in c){var T=c[z];if(C=h!=null?h[z]:void 0,c.hasOwnProperty(z)&&T!==C&&(T!=null||C!=null))if(z==="style")if(C){for(b in C)!C.hasOwnProperty(b)||T&&T.hasOwnProperty(b)||(a||(a={}),a[b]="");for(b in T)T.hasOwnProperty(b)&&C[b]!==T[b]&&(a||(a={}),a[b]=T[b])}else a||(g||(g=[]),g.push(z,a)),a=T;else z==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,C=C?C.__html:void 0,T!=null&&C!==T&&(g=g||[]).push(z,T)):z==="children"?typeof T!="string"&&typeof T!="number"||(g=g||[]).push(z,""+T):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(o.hasOwnProperty(z)?(T!=null&&z==="onScroll"&&Be("scroll",i),g||C===T||(g=[])):(g=g||[]).push(z,T))}a&&(g=g||[]).push("style",a);var z=g;(s.updateQueue=z)&&(s.flags|=4)}},Ev=function(i,s,a,c){a!==c&&(s.flags|=4)};function mo(i,s){if(!qe)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:c.sibling=null}}function Pt(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,c=0;if(s)for(var h=i.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=i,h=h.sibling;else for(h=i.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=i,h=h.sibling;return i.subtreeFlags|=c,i.childLanes=a,s}function _k(i,s,a){var c=s.pendingProps;switch(td(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(s),null;case 1:return Dt(s.type)&&Ua(),Pt(s),null;case 3:return c=s.stateNode,Ji(),We(Mt),We(kt),pd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(Ha(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,wn!==null&&(Wd(wn),wn=null))),Od(i,s),Pt(s),null;case 5:fd(s);var h=Kr(uo.current);if(a=s.type,i!==null&&s.stateNode!=null)_v(i,s,a,c,h),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(n(166));return Pt(s),null}if(i=Kr(An.current),Ha(s)){c=s.stateNode,a=s.type;var g=s.memoizedProps;switch(c[jn]=s,c[io]=g,i=(s.mode&1)!==0,a){case"dialog":Be("cancel",c),Be("close",c);break;case"iframe":case"object":case"embed":Be("load",c);break;case"video":case"audio":for(h=0;h<to.length;h++)Be(to[h],c);break;case"source":Be("error",c);break;case"img":case"image":case"link":Be("error",c),Be("load",c);break;case"details":Be("toggle",c);break;case"input":im(c,g),Be("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!g.multiple},Be("invalid",c);break;case"textarea":am(c,g),Be("invalid",c)}hc(a,g),h=null;for(var b in g)if(g.hasOwnProperty(b)){var C=g[b];b==="children"?typeof C=="string"?c.textContent!==C&&(g.suppressHydrationWarning!==!0&&La(c.textContent,C,i),h=["children",C]):typeof C=="number"&&c.textContent!==""+C&&(g.suppressHydrationWarning!==!0&&La(c.textContent,C,i),h=["children",""+C]):o.hasOwnProperty(b)&&C!=null&&b==="onScroll"&&Be("scroll",c)}switch(a){case"input":ga(c),om(c,g,!0);break;case"textarea":ga(c),um(c);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(c.onclick=Fa)}c=h,s.updateQueue=c,c!==null&&(s.flags|=4)}else{b=h.nodeType===9?h:h.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=cm(a)),i==="http://www.w3.org/1999/xhtml"?a==="script"?(i=b.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof c.is=="string"?i=b.createElement(a,{is:c.is}):(i=b.createElement(a),a==="select"&&(b=i,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):i=b.createElementNS(i,a),i[jn]=s,i[io]=c,Sv(i,s,!1,!1),s.stateNode=i;e:{switch(b=pc(a,c),a){case"dialog":Be("cancel",i),Be("close",i),h=c;break;case"iframe":case"object":case"embed":Be("load",i),h=c;break;case"video":case"audio":for(h=0;h<to.length;h++)Be(to[h],i);h=c;break;case"source":Be("error",i),h=c;break;case"img":case"image":case"link":Be("error",i),Be("load",i),h=c;break;case"details":Be("toggle",i),h=c;break;case"input":im(i,c),h=lc(i,c),Be("invalid",i);break;case"option":h=c;break;case"select":i._wrapperState={wasMultiple:!!c.multiple},h=Q({},c,{value:void 0}),Be("invalid",i);break;case"textarea":am(i,c),h=dc(i,c),Be("invalid",i);break;default:h=c}hc(a,h),C=h;for(g in C)if(C.hasOwnProperty(g)){var T=C[g];g==="style"?hm(i,T):g==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&dm(i,T)):g==="children"?typeof T=="string"?(a!=="textarea"||T!=="")&&Ms(i,T):typeof T=="number"&&Ms(i,""+T):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?T!=null&&g==="onScroll"&&Be("scroll",i):T!=null&&M(i,g,T,b))}switch(a){case"input":ga(i),om(i,c,!1);break;case"textarea":ga(i),um(i);break;case"option":c.value!=null&&i.setAttribute("value",""+ke(c.value));break;case"select":i.multiple=!!c.multiple,g=c.value,g!=null?Ii(i,!!c.multiple,g,!1):c.defaultValue!=null&&Ii(i,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(i.onclick=Fa)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Pt(s),null;case 6:if(i&&s.stateNode!=null)Ev(i,s,i.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(n(166));if(a=Kr(uo.current),Kr(An.current),Ha(s)){if(c=s.stateNode,a=s.memoizedProps,c[jn]=s,(g=c.nodeValue!==a)&&(i=qt,i!==null))switch(i.tag){case 3:La(c.nodeValue,a,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&La(c.nodeValue,a,(i.mode&1)!==0)}g&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[jn]=s,s.stateNode=c}return Pt(s),null;case 13:if(We(Ge),c=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(qe&&Ht!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Pg(),Hi(),s.flags|=98560,g=!1;else if(g=Ha(s),c!==null&&c.dehydrated!==null){if(i===null){if(!g)throw Error(n(318));if(g=s.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[jn]=s}else Hi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Pt(s),g=!1}else wn!==null&&(Wd(wn),wn=null),g=!0;if(!g)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(i!==null&&i.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(Ge.current&1)!==0?ft===0&&(ft=3):Hd())),s.updateQueue!==null&&(s.flags|=4),Pt(s),null);case 4:return Ji(),Od(i,s),i===null&&no(s.stateNode.containerInfo),Pt(s),null;case 10:return ad(s.type._context),Pt(s),null;case 17:return Dt(s.type)&&Ua(),Pt(s),null;case 19:if(We(Ge),g=s.memoizedState,g===null)return Pt(s),null;if(c=(s.flags&128)!==0,b=g.rendering,b===null)if(c)mo(g,!1);else{if(ft!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(b=Xa(i),b!==null){for(s.flags|=128,mo(g,!1),c=b.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)g=a,i=c,g.flags&=14680066,b=g.alternate,b===null?(g.childLanes=0,g.lanes=i,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=b.childLanes,g.lanes=b.lanes,g.child=b.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=b.memoizedProps,g.memoizedState=b.memoizedState,g.updateQueue=b.updateQueue,g.type=b.type,i=b.dependencies,g.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a=a.sibling;return Fe(Ge,Ge.current&1|2),s.child}i=i.sibling}g.tail!==null&&ot()>ts&&(s.flags|=128,c=!0,mo(g,!1),s.lanes=4194304)}else{if(!c)if(i=Xa(b),i!==null){if(s.flags|=128,c=!0,a=i.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),mo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!qe)return Pt(s),null}else 2*ot()-g.renderingStartTime>ts&&a!==1073741824&&(s.flags|=128,c=!0,mo(g,!1),s.lanes=4194304);g.isBackwards?(b.sibling=s.child,s.child=b):(a=g.last,a!==null?a.sibling=b:s.child=b,g.last=b)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=ot(),s.sibling=null,a=Ge.current,Fe(Ge,c?a&1|2:a&1),s):(Pt(s),null);case 22:case 23:return qd(),c=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Kt&1073741824)!==0&&(Pt(s),s.subtreeFlags&6&&(s.flags|=8192)):Pt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function Ek(i,s){switch(td(s),s.tag){case 1:return Dt(s.type)&&Ua(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Ji(),We(Mt),We(kt),pd(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return fd(s),null;case 13:if(We(Ge),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Hi()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return We(Ge),null;case 4:return Ji(),null;case 10:return ad(s.type._context),null;case 22:case 23:return qd(),null;case 24:return null;default:return null}}var ll=!1,Tt=!1,kk=typeof WeakSet=="function"?WeakSet:Set,te=null;function Xi(i,s){var a=i.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){et(i,s,c)}else a.current=null}function Rd(i,s,a){try{a()}catch(c){et(i,s,c)}}var kv=!1;function Ck(i,s){if(qc=Ta,i=rg(),zc(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var b=0,C=-1,T=-1,z=0,K=0,G=i,q=null;t:for(;;){for(var ee;G!==a||h!==0&&G.nodeType!==3||(C=b+h),G!==g||c!==0&&G.nodeType!==3||(T=b+c),G.nodeType===3&&(b+=G.nodeValue.length),(ee=G.firstChild)!==null;)q=G,G=ee;for(;;){if(G===i)break t;if(q===a&&++z===h&&(C=b),q===g&&++K===c&&(T=b),(ee=G.nextSibling)!==null)break;G=q,q=G.parentNode}G=ee}a=C===-1||T===-1?null:{start:C,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hc={focusedElem:i,selectionRange:a},Ta=!1,te=s;te!==null;)if(s=te,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,te=i;else for(;te!==null;){s=te;try{var ie=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var se=ie.memoizedProps,at=ie.memoizedState,O=s.stateNode,j=O.getSnapshotBeforeUpdate(s.elementType===s.type?se:xn(s.type,se),at);O.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var $=s.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Y){et(s,s.return,Y)}if(i=s.sibling,i!==null){i.return=s.return,te=i;break}te=s.return}return ie=kv,kv=!1,ie}function go(i,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&i)===i){var g=h.destroy;h.destroy=void 0,g!==void 0&&Rd(s,a,g)}h=h.next}while(h!==c)}}function ul(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&i)===i){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function $d(i){var s=i.ref;if(s!==null){var a=i.stateNode;switch(i.tag){case 5:i=a;break;default:i=a}typeof s=="function"?s(i):s.current=i}}function Cv(i){var s=i.alternate;s!==null&&(i.alternate=null,Cv(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[jn],delete s[io],delete s[Jc],delete s[lk],delete s[uk])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Pv(i){return i.tag===5||i.tag===3||i.tag===4}function Tv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Pv(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Md(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(i,s):a.insertBefore(i,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(i,a)):(s=a,s.appendChild(i)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Fa));else if(c!==4&&(i=i.child,i!==null))for(Md(i,s,a),i=i.sibling;i!==null;)Md(i,s,a),i=i.sibling}function Dd(i,s,a){var c=i.tag;if(c===5||c===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(c!==4&&(i=i.child,i!==null))for(Dd(i,s,a),i=i.sibling;i!==null;)Dd(i,s,a),i=i.sibling}var xt=null,bn=!1;function yr(i,s,a){for(a=a.child;a!==null;)jv(i,s,a),a=a.sibling}function jv(i,s,a){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(Sa,a)}catch{}switch(a.tag){case 5:Tt||Xi(a,s);case 6:var c=xt,h=bn;xt=null,yr(i,s,a),xt=c,bn=h,xt!==null&&(bn?(i=xt,a=a.stateNode,i.nodeType===8?i.parentNode.removeChild(a):i.removeChild(a)):xt.removeChild(a.stateNode));break;case 18:xt!==null&&(bn?(i=xt,a=a.stateNode,i.nodeType===8?Yc(i.parentNode,a):i.nodeType===1&&Yc(i,a),Hs(i)):Yc(xt,a.stateNode));break;case 4:c=xt,h=bn,xt=a.stateNode.containerInfo,bn=!0,yr(i,s,a),xt=c,bn=h;break;case 0:case 11:case 14:case 15:if(!Tt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var g=h,b=g.destroy;g=g.tag,b!==void 0&&((g&2)!==0||(g&4)!==0)&&Rd(a,s,b),h=h.next}while(h!==c)}yr(i,s,a);break;case 1:if(!Tt&&(Xi(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(C){et(a,s,C)}yr(i,s,a);break;case 21:yr(i,s,a);break;case 22:a.mode&1?(Tt=(c=Tt)||a.memoizedState!==null,yr(i,s,a),Tt=c):yr(i,s,a);break;default:yr(i,s,a)}}function Av(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var a=i.stateNode;a===null&&(a=i.stateNode=new kk),s.forEach(function(c){var h=$k.bind(null,i,c);a.has(c)||(a.add(c),c.then(h,h))})}}function Sn(i,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];try{var g=i,b=s,C=b;e:for(;C!==null;){switch(C.tag){case 5:xt=C.stateNode,bn=!1;break e;case 3:xt=C.stateNode.containerInfo,bn=!0;break e;case 4:xt=C.stateNode.containerInfo,bn=!0;break e}C=C.return}if(xt===null)throw Error(n(160));jv(g,b,h),xt=null,bn=!1;var T=h.alternate;T!==null&&(T.return=null),h.return=null}catch(z){et(h,s,z)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Nv(s,i),s=s.sibling}function Nv(i,s){var a=i.alternate,c=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Sn(s,i),In(i),c&4){try{go(3,i,i.return),ul(3,i)}catch(se){et(i,i.return,se)}try{go(5,i,i.return)}catch(se){et(i,i.return,se)}}break;case 1:Sn(s,i),In(i),c&512&&a!==null&&Xi(a,a.return);break;case 5:if(Sn(s,i),In(i),c&512&&a!==null&&Xi(a,a.return),i.flags&32){var h=i.stateNode;try{Ms(h,"")}catch(se){et(i,i.return,se)}}if(c&4&&(h=i.stateNode,h!=null)){var g=i.memoizedProps,b=a!==null?a.memoizedProps:g,C=i.type,T=i.updateQueue;if(i.updateQueue=null,T!==null)try{C==="input"&&g.type==="radio"&&g.name!=null&&sm(h,g),pc(C,b);var z=pc(C,g);for(b=0;b<T.length;b+=2){var K=T[b],G=T[b+1];K==="style"?hm(h,G):K==="dangerouslySetInnerHTML"?dm(h,G):K==="children"?Ms(h,G):M(h,K,G,z)}switch(C){case"input":uc(h,g);break;case"textarea":lm(h,g);break;case"select":var q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!g.multiple;var ee=g.value;ee!=null?Ii(h,!!g.multiple,ee,!1):q!==!!g.multiple&&(g.defaultValue!=null?Ii(h,!!g.multiple,g.defaultValue,!0):Ii(h,!!g.multiple,g.multiple?[]:"",!1))}h[io]=g}catch(se){et(i,i.return,se)}}break;case 6:if(Sn(s,i),In(i),c&4){if(i.stateNode===null)throw Error(n(162));h=i.stateNode,g=i.memoizedProps;try{h.nodeValue=g}catch(se){et(i,i.return,se)}}break;case 3:if(Sn(s,i),In(i),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Hs(s.containerInfo)}catch(se){et(i,i.return,se)}break;case 4:Sn(s,i),In(i);break;case 13:Sn(s,i),In(i),h=i.child,h.flags&8192&&(g=h.memoizedState!==null,h.stateNode.isHidden=g,!g||h.alternate!==null&&h.alternate.memoizedState!==null||(Fd=ot())),c&4&&Av(i);break;case 22:if(K=a!==null&&a.memoizedState!==null,i.mode&1?(Tt=(z=Tt)||K,Sn(s,i),Tt=z):Sn(s,i),In(i),c&8192){if(z=i.memoizedState!==null,(i.stateNode.isHidden=z)&&!K&&(i.mode&1)!==0)for(te=i,K=i.child;K!==null;){for(G=te=K;te!==null;){switch(q=te,ee=q.child,q.tag){case 0:case 11:case 14:case 15:go(4,q,q.return);break;case 1:Xi(q,q.return);var ie=q.stateNode;if(typeof ie.componentWillUnmount=="function"){c=q,a=q.return;try{s=c,ie.props=s.memoizedProps,ie.state=s.memoizedState,ie.componentWillUnmount()}catch(se){et(c,a,se)}}break;case 5:Xi(q,q.return);break;case 22:if(q.memoizedState!==null){Rv(G);continue}}ee!==null?(ee.return=q,te=ee):Rv(G)}K=K.sibling}e:for(K=null,G=i;;){if(G.tag===5){if(K===null){K=G;try{h=G.stateNode,z?(g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(C=G.stateNode,T=G.memoizedProps.style,b=T!=null&&T.hasOwnProperty("display")?T.display:null,C.style.display=fm("display",b))}catch(se){et(i,i.return,se)}}}else if(G.tag===6){if(K===null)try{G.stateNode.nodeValue=z?"":G.memoizedProps}catch(se){et(i,i.return,se)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===i)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===i)break e;for(;G.sibling===null;){if(G.return===null||G.return===i)break e;K===G&&(K=null),G=G.return}K===G&&(K=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Sn(s,i),In(i),c&4&&Av(i);break;case 21:break;default:Sn(s,i),In(i)}}function In(i){var s=i.flags;if(s&2){try{e:{for(var a=i.return;a!==null;){if(Pv(a)){var c=a;break e}a=a.return}throw Error(n(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Ms(h,""),c.flags&=-33);var g=Tv(i);Dd(i,g,h);break;case 3:case 4:var b=c.stateNode.containerInfo,C=Tv(i);Md(i,C,b);break;default:throw Error(n(161))}}catch(T){et(i,i.return,T)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function Pk(i,s,a){te=i,Iv(i)}function Iv(i,s,a){for(var c=(i.mode&1)!==0;te!==null;){var h=te,g=h.child;if(h.tag===22&&c){var b=h.memoizedState!==null||ll;if(!b){var C=h.alternate,T=C!==null&&C.memoizedState!==null||Tt;C=ll;var z=Tt;if(ll=b,(Tt=T)&&!z)for(te=h;te!==null;)b=te,T=b.child,b.tag===22&&b.memoizedState!==null?$v(h):T!==null?(T.return=b,te=T):$v(h);for(;g!==null;)te=g,Iv(g),g=g.sibling;te=h,ll=C,Tt=z}Ov(i)}else(h.subtreeFlags&8772)!==0&&g!==null?(g.return=h,te=g):Ov(i)}}function Ov(i){for(;te!==null;){var s=te;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Tt||ul(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Tt)if(a===null)c.componentDidMount();else{var h=s.elementType===s.type?a.memoizedProps:xn(s.type,a.memoizedProps);c.componentDidUpdate(h,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var g=s.updateQueue;g!==null&&Rg(s,g,c);break;case 3:var b=s.updateQueue;if(b!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}Rg(s,b,a)}break;case 5:var C=s.stateNode;if(a===null&&s.flags&4){a=C;var T=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&a.focus();break;case"img":T.src&&(a.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var z=s.alternate;if(z!==null){var K=z.memoizedState;if(K!==null){var G=K.dehydrated;G!==null&&Hs(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Tt||s.flags&512&&$d(s)}catch(q){et(s,s.return,q)}}if(s===i){te=null;break}if(a=s.sibling,a!==null){a.return=s.return,te=a;break}te=s.return}}function Rv(i){for(;te!==null;){var s=te;if(s===i){te=null;break}var a=s.sibling;if(a!==null){a.return=s.return,te=a;break}te=s.return}}function $v(i){for(;te!==null;){var s=te;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{ul(4,s)}catch(T){et(s,a,T)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var h=s.return;try{c.componentDidMount()}catch(T){et(s,h,T)}}var g=s.return;try{$d(s)}catch(T){et(s,g,T)}break;case 5:var b=s.return;try{$d(s)}catch(T){et(s,b,T)}}}catch(T){et(s,s.return,T)}if(s===i){te=null;break}var C=s.sibling;if(C!==null){C.return=s.return,te=C;break}te=s.return}}var Tk=Math.ceil,cl=L.ReactCurrentDispatcher,zd=L.ReactCurrentOwner,sn=L.ReactCurrentBatchConfig,Pe=0,vt=null,ct=null,bt=0,Kt=0,es=hr(0),ft=0,vo=null,Yr=0,dl=0,Ld=0,yo=null,Lt=null,Fd=0,ts=1/0,Qn=null,fl=!1,Vd=null,wr=null,hl=!1,xr=null,pl=0,wo=0,Ud=null,ml=-1,gl=0;function Ot(){return(Pe&6)!==0?ot():ml!==-1?ml:ml=ot()}function br(i){return(i.mode&1)===0?1:(Pe&2)!==0&&bt!==0?bt&-bt:dk.transition!==null?(gl===0&&(gl=Tm()),gl):(i=Re,i!==0||(i=window.event,i=i===void 0?16:Dm(i.type)),i)}function _n(i,s,a,c){if(50<wo)throw wo=0,Ud=null,Error(n(185));Us(i,a,c),((Pe&2)===0||i!==vt)&&(i===vt&&((Pe&2)===0&&(dl|=a),ft===4&&Sr(i,bt)),Ft(i,c),a===1&&Pe===0&&(s.mode&1)===0&&(ts=ot()+500,Wa&&mr()))}function Ft(i,s){var a=i.callbackNode;dE(i,s);var c=ka(i,i===vt?bt:0);if(c===0)a!==null&&km(a),i.callbackNode=null,i.callbackPriority=0;else if(s=c&-c,i.callbackPriority!==s){if(a!=null&&km(a),s===1)i.tag===0?ck(Dv.bind(null,i)):Sg(Dv.bind(null,i)),ok(function(){(Pe&6)===0&&mr()}),a=null;else{switch(jm(c)){case 1:a=bc;break;case 4:a=Cm;break;case 16:a=ba;break;case 536870912:a=Pm;break;default:a=ba}a=Zv(a,Mv.bind(null,i))}i.callbackPriority=s,i.callbackNode=a}}function Mv(i,s){if(ml=-1,gl=0,(Pe&6)!==0)throw Error(n(327));var a=i.callbackNode;if(ns()&&i.callbackNode!==a)return null;var c=ka(i,i===vt?bt:0);if(c===0)return null;if((c&30)!==0||(c&i.expiredLanes)!==0||s)s=vl(i,c);else{s=c;var h=Pe;Pe|=2;var g=Lv();(vt!==i||bt!==s)&&(Qn=null,ts=ot()+500,Qr(i,s));do try{Nk();break}catch(C){zv(i,C)}while(!0);od(),cl.current=g,Pe=h,ct!==null?s=0:(vt=null,bt=0,s=ft)}if(s!==0){if(s===2&&(h=Sc(i),h!==0&&(c=h,s=Bd(i,h))),s===1)throw a=vo,Qr(i,0),Sr(i,c),Ft(i,ot()),a;if(s===6)Sr(i,c);else{if(h=i.current.alternate,(c&30)===0&&!jk(h)&&(s=vl(i,c),s===2&&(g=Sc(i),g!==0&&(c=g,s=Bd(i,g))),s===1))throw a=vo,Qr(i,0),Sr(i,c),Ft(i,ot()),a;switch(i.finishedWork=h,i.finishedLanes=c,s){case 0:case 1:throw Error(n(345));case 2:Xr(i,Lt,Qn);break;case 3:if(Sr(i,c),(c&130023424)===c&&(s=Fd+500-ot(),10<s)){if(ka(i,0)!==0)break;if(h=i.suspendedLanes,(h&c)!==c){Ot(),i.pingedLanes|=i.suspendedLanes&h;break}i.timeoutHandle=Gc(Xr.bind(null,i,Lt,Qn),s);break}Xr(i,Lt,Qn);break;case 4:if(Sr(i,c),(c&4194240)===c)break;for(s=i.eventTimes,h=-1;0<c;){var b=31-vn(c);g=1<<b,b=s[b],b>h&&(h=b),c&=~g}if(c=h,c=ot()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Tk(c/1960))-c,10<c){i.timeoutHandle=Gc(Xr.bind(null,i,Lt,Qn),c);break}Xr(i,Lt,Qn);break;case 5:Xr(i,Lt,Qn);break;default:throw Error(n(329))}}}return Ft(i,ot()),i.callbackNode===a?Mv.bind(null,i):null}function Bd(i,s){var a=yo;return i.current.memoizedState.isDehydrated&&(Qr(i,s).flags|=256),i=vl(i,s),i!==2&&(s=Lt,Lt=a,s!==null&&Wd(s)),i}function Wd(i){Lt===null?Lt=i:Lt.push.apply(Lt,i)}function jk(i){for(var s=i;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var h=a[c],g=h.getSnapshot;h=h.value;try{if(!yn(g(),h))return!1}catch{return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Sr(i,s){for(s&=~Ld,s&=~dl,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var a=31-vn(s),c=1<<a;i[a]=-1,s&=~c}}function Dv(i){if((Pe&6)!==0)throw Error(n(327));ns();var s=ka(i,0);if((s&1)===0)return Ft(i,ot()),null;var a=vl(i,s);if(i.tag!==0&&a===2){var c=Sc(i);c!==0&&(s=c,a=Bd(i,c))}if(a===1)throw a=vo,Qr(i,0),Sr(i,s),Ft(i,ot()),a;if(a===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Xr(i,Lt,Qn),Ft(i,ot()),null}function Zd(i,s){var a=Pe;Pe|=1;try{return i(s)}finally{Pe=a,Pe===0&&(ts=ot()+500,Wa&&mr())}}function Jr(i){xr!==null&&xr.tag===0&&(Pe&6)===0&&ns();var s=Pe;Pe|=1;var a=sn.transition,c=Re;try{if(sn.transition=null,Re=1,i)return i()}finally{Re=c,sn.transition=a,Pe=s,(Pe&6)===0&&mr()}}function qd(){Kt=es.current,We(es)}function Qr(i,s){i.finishedWork=null,i.finishedLanes=0;var a=i.timeoutHandle;if(a!==-1&&(i.timeoutHandle=-1,sk(a)),ct!==null)for(a=ct.return;a!==null;){var c=a;switch(td(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ua();break;case 3:Ji(),We(Mt),We(kt),pd();break;case 5:fd(c);break;case 4:Ji();break;case 13:We(Ge);break;case 19:We(Ge);break;case 10:ad(c.type._context);break;case 22:case 23:qd()}a=a.return}if(vt=i,ct=i=_r(i.current,null),bt=Kt=s,ft=0,vo=null,Ld=dl=Yr=0,Lt=yo=null,Hr!==null){for(s=0;s<Hr.length;s++)if(a=Hr[s],c=a.interleaved,c!==null){a.interleaved=null;var h=c.next,g=a.pending;if(g!==null){var b=g.next;g.next=h,c.next=b}a.pending=c}Hr=null}return i}function zv(i,s){do{var a=ct;try{if(od(),el.current=il,tl){for(var c=Ye.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}tl=!1}if(Gr=0,gt=dt=Ye=null,co=!1,fo=0,zd.current=null,a===null||a.return===null){ft=1,vo=s,ct=null;break}e:{var g=i,b=a.return,C=a,T=s;if(s=bt,C.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var z=T,K=C,G=K.tag;if((K.mode&1)===0&&(G===0||G===11||G===15)){var q=K.alternate;q?(K.updateQueue=q.updateQueue,K.memoizedState=q.memoizedState,K.lanes=q.lanes):(K.updateQueue=null,K.memoizedState=null)}var ee=uv(b);if(ee!==null){ee.flags&=-257,cv(ee,b,C,g,s),ee.mode&1&&lv(g,z,s),s=ee,T=z;var ie=s.updateQueue;if(ie===null){var se=new Set;se.add(T),s.updateQueue=se}else ie.add(T);break e}else{if((s&1)===0){lv(g,z,s),Hd();break e}T=Error(n(426))}}else if(qe&&C.mode&1){var at=uv(b);if(at!==null){(at.flags&65536)===0&&(at.flags|=256),cv(at,b,C,g,s),id(Qi(T,C));break e}}g=T=Qi(T,C),ft!==4&&(ft=2),yo===null?yo=[g]:yo.push(g),g=b;do{switch(g.tag){case 3:g.flags|=65536,s&=-s,g.lanes|=s;var O=ov(g,T,s);Og(g,O);break e;case 1:C=T;var j=g.type,$=g.stateNode;if((g.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(wr===null||!wr.has($)))){g.flags|=65536,s&=-s,g.lanes|=s;var Y=av(g,C,s);Og(g,Y);break e}}g=g.return}while(g!==null)}Vv(a)}catch(ae){s=ae,ct===a&&a!==null&&(ct=a=a.return);continue}break}while(!0)}function Lv(){var i=cl.current;return cl.current=il,i===null?il:i}function Hd(){(ft===0||ft===3||ft===2)&&(ft=4),vt===null||(Yr&268435455)===0&&(dl&268435455)===0||Sr(vt,bt)}function vl(i,s){var a=Pe;Pe|=2;var c=Lv();(vt!==i||bt!==s)&&(Qn=null,Qr(i,s));do try{Ak();break}catch(h){zv(i,h)}while(!0);if(od(),Pe=a,cl.current=c,ct!==null)throw Error(n(261));return vt=null,bt=0,ft}function Ak(){for(;ct!==null;)Fv(ct)}function Nk(){for(;ct!==null&&!nE();)Fv(ct)}function Fv(i){var s=Wv(i.alternate,i,Kt);i.memoizedProps=i.pendingProps,s===null?Vv(i):ct=s,zd.current=null}function Vv(i){var s=i;do{var a=s.alternate;if(i=s.return,(s.flags&32768)===0){if(a=_k(a,s,Kt),a!==null){ct=a;return}}else{if(a=Ek(a,s),a!==null){a.flags&=32767,ct=a;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{ft=6,ct=null;return}}if(s=s.sibling,s!==null){ct=s;return}ct=s=i}while(s!==null);ft===0&&(ft=5)}function Xr(i,s,a){var c=Re,h=sn.transition;try{sn.transition=null,Re=1,Ik(i,s,a,c)}finally{sn.transition=h,Re=c}return null}function Ik(i,s,a,c){do ns();while(xr!==null);if((Pe&6)!==0)throw Error(n(327));a=i.finishedWork;var h=i.finishedLanes;if(a===null)return null;if(i.finishedWork=null,i.finishedLanes=0,a===i.current)throw Error(n(177));
vendor: 4,148 bytes, line 40
40i.callbackNode=null,i.callbackPriority=0;var g=a.lanes|a.childLanes;if(fE(i,g),i===vt&&(ct=vt=null,bt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||hl||(hl=!0,Zv(ba,function(){return ns(),null})),g=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||g){g=sn.transition,sn.transition=null;var b=Re;Re=1;var C=Pe;Pe|=4,zd.current=null,Ck(i,a),Nv(a,i),QE(Hc),Ta=!!qc,Hc=qc=null,i.current=a,Pk(a),rE(),Pe=C,Re=b,sn.transition=g}else i.current=a;if(hl&&(hl=!1,xr=i,pl=h),g=i.pendingLanes,g===0&&(wr=null),oE(a.stateNode),Ft(i,ot()),s!==null)for(c=i.onRecoverableError,a=0;a<s.length;a++)h=s[a],c(h.value,{componentStack:h.stack,digest:h.digest});if(fl)throw fl=!1,i=Vd,Vd=null,i;return(pl&1)!==0&&i.tag!==0&&ns(),g=i.pendingLanes,(g&1)!==0?i===Ud?wo++:(wo=0,Ud=i):wo=0,mr(),null}function ns(){if(xr!==null){var i=jm(pl),s=sn.transition,a=Re;try{if(sn.transition=null,Re=16>i?16:i,xr===null)var c=!1;else{if(i=xr,xr=null,pl=0,(Pe&6)!==0)throw Error(n(331));var h=Pe;for(Pe|=4,te=i.current;te!==null;){var g=te,b=g.child;if((te.flags&16)!==0){var C=g.deletions;if(C!==null){for(var T=0;T<C.length;T++){var z=C[T];for(te=z;te!==null;){var K=te;switch(K.tag){case 0:case 11:case 15:go(8,K,g)}var G=K.child;if(G!==null)G.return=K,te=G;else for(;te!==null;){K=te;var q=K.sibling,ee=K.return;if(Cv(K),K===z){te=null;break}if(q!==null){q.return=ee,te=q;break}te=ee}}}var ie=g.alternate;if(ie!==null){var se=ie.child;if(se!==null){ie.child=null;do{var at=se.sibling;se.sibling=null,se=at}while(se!==null)}}te=g}}if((g.subtreeFlags&2064)!==0&&b!==null)b.return=g,te=b;else e:for(;te!==null;){if(g=te,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:go(9,g,g.return)}var O=g.sibling;if(O!==null){O.return=g.return,te=O;break e}te=g.return}}var j=i.current;for(te=j;te!==null;){b=te;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,te=$;else e:for(b=j;te!==null;){if(C=te,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:ul(9,C)}}catch(ae){et(C,C.return,ae)}if(C===b){te=null;break e}var Y=C.sibling;if(Y!==null){Y.return=C.return,te=Y;break e}te=C.return}}if(Pe=h,mr(),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Sa,i)}catch{}c=!0}return c}finally{Re=a,sn.transition=s}}return!1}function Uv(i,s,a){s=Qi(a,s),s=ov(i,s,1),i=vr(i,s,1),s=Ot(),i!==null&&(Us(i,1,s),Ft(i,s))}function et(i,s,a){if(i.tag===3)Uv(i,i,a);else for(;s!==null;){if(s.tag===3){Uv(s,i,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(wr===null||!wr.has(c))){i=Qi(a,i),i=av(s,i,1),s=vr(s,i,1),i=Ot(),s!==null&&(Us(s,1,i),Ft(s,i));break}}s=s.return}}function Ok(i,s,a){var c=i.pingCache;c!==null&&c.delete(s),s=Ot(),i.pingedLanes|=i.suspendedLanes&a,vt===i&&(bt&a)===a&&(ft===4||ft===3&&(bt&130023424)===bt&&500>ot()-Fd?Qr(i,0):Ld|=a),Ft(i,s)}function Bv(i,s){s===0&&((i.mode&1)===0?s=1:(s=Ea,Ea<<=1,(Ea&130023424)===0&&(Ea=4194304)));var a=Ot();i=Gn(i,s),i!==null&&(Us(i,s,a),Ft(i,a))}function Rk(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),Bv(i,a)}function $k(i,s){var a=0;switch(i.tag){case 13:var c=i.stateNode,h=i.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=i.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(s),Bv(i,a)}var Wv;Wv=function(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps||Mt.current)zt=!0;else{if((i.lanes&a)===0&&(s.flags&128)===0)return zt=!1,Sk(i,s,a);zt=(i.flags&131072)!==0}else zt=!1,qe&&(s.flags&1048576)!==0&&_g(s,qa,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;al(i,s),i=s.pendingProps;var h=Wi(s,kt.current);Yi(s,a),h=vd(null,s,c,i,h,a);var g=yd();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Dt(c)?(g=!0,Ba(s)):g=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,cd(s),h.updater=sl,s.stateNode=h,h._reactInternals=s,Ed(s,c,i,a),s=Td(null,s,c,!0,g,a)):(s.tag=0,qe&&g&&ed(s),It(null,s,h,a),s=s.child),s;case 16:c=s.elementType;e:{switch(al(i,s),i=s.pendingProps,h=c._init,c=h(c._payload),s.type=c,h=s.tag=Dk(c),i=xn(c,i),h){case 0:s=Pd(null,
vendor: 9,525 bytes, line 40
40s,c,i,a);break e;case 1:s=gv(null,s,c,i,a);break e;case 11:s=dv(null,s,c,i,a);break e;case 14:s=fv(null,s,c,xn(c.type,i),a);break e}throw Error(n(306,c,""))}return s;case 0:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:xn(c,h),Pd(i,s,c,h,a);case 1:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:xn(c,h),gv(i,s,c,h,a);case 3:e:{if(vv(s),i===null)throw Error(n(387));c=s.pendingProps,g=s.memoizedState,h=g.element,Ig(i,s),Qa(s,c,null,a);var b=s.memoizedState;if(c=b.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){h=Qi(Error(n(423)),s),s=yv(i,s,c,a,h);break e}else if(c!==h){h=Qi(Error(n(424)),s),s=yv(i,s,c,a,h);break e}else for(Ht=fr(s.stateNode.containerInfo.firstChild),qt=s,qe=!0,wn=null,a=Ag(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Hi(),c===h){s=Jn(i,s,a);break e}It(i,s,c,a)}s=s.child}return s;case 5:return $g(s),i===null&&rd(s),c=s.type,h=s.pendingProps,g=i!==null?i.memoizedProps:null,b=h.children,Kc(c,h)?b=null:g!==null&&Kc(c,g)&&(s.flags|=32),mv(i,s),It(i,s,b,a),s.child;case 6:return i===null&&rd(s),null;case 13:return wv(i,s,a);case 4:return dd(s,s.stateNode.containerInfo),c=s.pendingProps,i===null?s.child=Ki(s,null,c,a):It(i,s,c,a),s.child;case 11:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:xn(c,h),dv(i,s,c,h,a);case 7:return It(i,s,s.pendingProps,a),s.child;case 8:return It(i,s,s.pendingProps.children,a),s.child;case 12:return It(i,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,h=s.pendingProps,g=s.memoizedProps,b=h.value,Fe(Ga,c._currentValue),c._currentValue=b,g!==null)if(yn(g.value,b)){if(g.children===h.children&&!Mt.current){s=Jn(i,s,a);break e}}else for(g=s.child,g!==null&&(g.return=s);g!==null;){var C=g.dependencies;if(C!==null){b=g.child;for(var T=C.firstContext;T!==null;){if(T.context===c){if(g.tag===1){T=Yn(-1,a&-a),T.tag=2;var z=g.updateQueue;if(z!==null){z=z.shared;var K=z.pending;K===null?T.next=T:(T.next=K.next,K.next=T),z.pending=T}}g.lanes|=a,T=g.alternate,T!==null&&(T.lanes|=a),ld(g.return,a,s),C.lanes|=a;break}T=T.next}}else if(g.tag===10)b=g.type===s.type?null:g.child;else if(g.tag===18){if(b=g.return,b===null)throw Error(n(341));b.lanes|=a,C=b.alternate,C!==null&&(C.lanes|=a),ld(b,a,s),b=g.sibling}else b=g.child;if(b!==null)b.return=g;else for(b=g;b!==null;){if(b===s){b=null;break}if(g=b.sibling,g!==null){g.return=b.return,b=g;break}b=b.return}g=b}It(i,s,h.children,a),s=s.child}return s;case 9:return h=s.type,c=s.pendingProps.children,Yi(s,a),h=nn(h),c=c(h),s.flags|=1,It(i,s,c,a),s.child;case 14:return c=s.type,h=xn(c,s.pendingProps),h=xn(c.type,h),fv(i,s,c,h,a);case 15:return hv(i,s,s.type,s.pendingProps,a);case 17:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:xn(c,h),al(i,s),s.tag=1,Dt(c)?(i=!0,Ba(s)):i=!1,Yi(s,a),iv(s,c,h),Ed(s,c,h,a),Td(null,s,c,!0,i,a);case 19:return bv(i,s,a);case 22:return pv(i,s,a)}throw Error(n(156,s.tag))};function Zv(i,s){return Em(i,s)}function Mk(i,s,a,c){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(i,s,a,c){return new Mk(i,s,a,c)}function Kd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Dk(i){if(typeof i=="function")return Kd(i)?1:0;if(i!=null){if(i=i.$$typeof,i===U)return 11;if(i===Se)return 14}return 2}function _r(i,s){var a=i.alternate;return a===null?(a=on(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&14680064,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a}function yl(i,s,a,c,h,g){var b=2;if(c=i,typeof i=="function")Kd(i)&&(b=1);else if(typeof i=="string")b=5;else e:switch(i){case W:return ei(a.children,h,g,s);case V:b=8,h|=8;break;case X:return i=on(12,a,s,h|2),i.elementType=X,i.lanes=g,i;case J:return i=on(13,a,s,h),i.elementType=J,i.lanes=g,i;case ue:return i=on(19,a,s,h),i.elementType=ue,i.lanes=g,i;case le:return wl(a,h,g,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case oe:b=10;break e;case I:b=9;break e;case U:b=11;break e;case Se:b=14;break e;case Ce:b=16,c=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=on(b,a,s,h),s.elementType=i,s.type=c,s.lanes=g,s}function ei(i,s,a,c){return i=on(7,i,c,s),i.lanes=a,i}function wl(i,s,a,c){return i=on(22,i,c,s),i.elementType=le,i.lanes=a,i.stateNode={isHidden:!1},i}function Gd(i,s,a){return i=on(6,i,null,s),i.lanes=a,i}function Yd(i,s,a){return s=on(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function zk(i,s,a,c,h){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_c(0),this.expirationTimes=_c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Jd(i,s,a,c,h,g,b,C,T){return i=new zk(i,s,a,C,T),s===1?(s=1,g===!0&&(s|=8)):s=0,g=on(3,null,null,s),i.current=g,g.stateNode=i,g.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},cd(g),i}function Lk(i,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:c==null?null:""+c,children:i,containerInfo:s,implementation:a}}function qv(i){if(!i)return pr;i=i._reactInternals;e:{if(Ur(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Dt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var a=i.type;if(Dt(a))return xg(i,a,s)}return s}function Hv(i,s,a,c,h,g,b,C,T){return i=Jd(a,c,!0,i,h,g,b,C,T),i.context=qv(null),a=i.current,c=Ot(),h=br(a),g=Yn(c,h),g.callback=s??null,vr(a,g,h),i.current.lanes=h,Us(i,h,c),Ft(i,c),i}function xl(i,s,a,c){var h=s.current,g=Ot(),b=br(h);return a=qv(a),s.context===null?s.context=a:s.pendingContext=a,s=Yn(g,b),s.payload={element:i},c=c===void 0?null:c,c!==null&&(s.callback=c),i=vr(h,s,b),i!==null&&(_n(i,h,b,g),Ja(i,h,b)),b}function bl(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Kv(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function Qd(i,s){Kv(i,s),(i=i.alternate)&&Kv(i,s)}function Fk(){return null}var Gv=typeof reportError=="function"?reportError:function(i){console.error(i)};function Xd(i){this._internalRoot=i}Sl.prototype.render=Xd.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));xl(i,s,null,null)},Sl.prototype.unmount=Xd.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Jr(function(){xl(null,i,null,null)}),s[Zn]=null}};function Sl(i){this._internalRoot=i}Sl.prototype.unstable_scheduleHydration=function(i){if(i){var s=Im();i={blockedOn:null,target:i,priority:s};for(var a=0;a<ur.length&&s!==0&&s<ur[a].priority;a++);ur.splice(a,0,i),a===0&&$m(i)}};function ef(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function _l(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Yv(){}function Vk(i,s,a,c,h){if(h){if(typeof c=="function"){var g=c;c=function(){var z=bl(b);g.call(z)}}var b=Hv(s,c,i,0,null,!1,!1,"",Yv);return i._reactRootContainer=b,i[Zn]=b.current,no(i.nodeType===8?i.parentNode:i),Jr(),b}for(;h=i.lastChild;)i.removeChild(h);if(typeof c=="function"){var C=c;c=function(){var z=bl(T);C.call(z)}}var T=Jd(i,0,!1,null,null,!1,!1,"",Yv);return i._reactRootContainer=T,i[Zn]=T.current,no(i.nodeType===8?i.parentNode:i),Jr(function(){xl(s,T,a,c)}),T}function El(i,s,a,c,h){var g=a._reactRootContainer;if(g){var b=g;if(typeof h=="function"){var C=h;h=function(){var T=bl(b);C.call(T)}}xl(s,b,i,h)}else b=Vk(a,s,i,h,c);return bl(b)}Am=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var a=Vs(s.pendingLanes);a!==0&&(Ec(s,a|1),Ft(s,ot()),(Pe&6)===0&&(ts=ot()+500,mr()))}break;case 13:Jr(function(){var c=Gn(i,1);if(c!==null){var h=Ot();_n(c,i,1,h)}}),Qd(i,1)}},kc=function(i){if(i.tag===13){var s=Gn(i,134217728);if(s!==null){var a=Ot();_n(s,i,134217728,a)}Qd(i,134217728)}},Nm=function(i){if(i.tag===13){var s=br(i),a=Gn(i,s);if(a!==null){var c=Ot();_n(a,i,s,c)}Qd(i,s)}},Im=function(){return Re},Om=function(i,s){var a=Re;try{return Re=i,s()}finally{Re=a}},vc=function(i,s,a){switch(s){case"input":if(uc(i,a),s=a.name,a.t
vendor: 35,534 bytes, lines 40-48
40ype==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==i&&c.form===i.form){var h=Va(c);if(!h)throw Error(n(90));rm(c),uc(c,h)}}}break;case"textarea":lm(i,a);break;case"select":s=a.value,s!=null&&Ii(i,!!a.multiple,s,!1)}},vm=Zd,ym=Jr;var Uk={usingClientEntryPoint:!1,Events:[so,Ui,Va,mm,gm,Zd]},xo={findFiberByHostInstance:Br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bk={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Sm(i),i===null?null:i.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||Fk,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 kl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kl.isDisabled&&kl.supportsFiber)try{Sa=kl.inject(Bk),Tn=kl}catch{}}return Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uk,Vt.createPortal=function(i,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ef(s))throw Error(n(200));return Lk(i,s,null,a)},Vt.createRoot=function(i,s){if(!ef(i))throw Error(n(299));var a=!1,c="",h=Gv;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(h=s.onRecoverableError)),s=Jd(i,1,!1,null,null,a,!1,c,h),i[Zn]=s.current,no(i.nodeType===8?i.parentNode:i),new Xd(s)},Vt.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=Sm(s),i=i===null?null:i.stateNode,i},Vt.flushSync=function(i){return Jr(i)},Vt.hydrate=function(i,s,a){if(!_l(s))throw Error(n(200));return El(null,i,s,!0,a)},Vt.hydrateRoot=function(i,s,a){if(!ef(i))throw Error(n(405));var c=a!=null&&a.hydratedSources||null,h=!1,g="",b=Gv;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),s=Hv(s,null,i,1,a??null,h,!1,g,b),i[Zn]=s.current,no(i),c)for(i=0;i<c.length;i++)a=c[i],h=a._getVersion,h=h(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,h]:s.mutableSourceEagerHydrationData.push(a,h);return new Sl(s)},Vt.render=function(i,s,a){if(!_l(s))throw Error(n(200));return El(null,i,s,!1,a)},Vt.unmountComponentAtNode=function(i){if(!_l(i))throw Error(n(40));return i._reactRootContainer?(Jr(function(){El(null,null,i,!1,function(){i._reactRootContainer=null,i[Zn]=null})}),!0):!1},Vt.unstable_batchedUpdates=Zd,Vt.unstable_renderSubtreeIntoContainer=function(i,s,a,c){if(!_l(a))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return El(i,s,a,!1,c)},Vt.version="18.3.1-next-f1338f8080-20240426",Vt}var sy;function Xk(){if(sy)return sf.exports;sy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sf.exports=Qk(),sf.exports}var oy;function e2(){if(oy)return Cl;oy=1;var e=Xk();return Cl.createRoot=e.createRoot,Cl.hydrateRoot=e.hydrateRoot,Cl}var t2=e2();const ay=Qw(t2),zh=R.createContext({});function zu(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const Lu=R.createContext(null),sa=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class n2 extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function r2({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),o=R.useRef({width:0,height:0,top:0,left:0}),{nonce:l}=R.useContext(sa);return R.useInsertionEffect(()=>{const{width:u,height:d,top:f,left:p}=o.current;if(t||!r.current||!u||!d)return;r.current.dataset.motionPopId=n;const m=document.createElement("style");return l&&(m.nonce=l),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` 41 [data-motion-pop-id="${n}"] { 42 position: absolute !important; 43 width: ${u}px !important; 44 height: ${d}px !important; 45 top: ${f}px !important; 46 left: ${p}px !important; 47 } 48 `),()=>{document.head.removeChild(m)}},[t]),w.jsx(n2,{isPresent:t,childRef:r,sizeRef:o,children:R.cloneElement(e,{ref:r})})}const i2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:l,mode:u})=>{const d=zu(s2),f=R.useId(),p=R.useCallback(y=>{d.set(y,!0);for(const v of d.values())if(!v)return;r&&r()},[d,r]),m=R.useMemo(()=>({id:f,initial:t,isPresent:n,custom:o,onExitComplete:p,register:y=>(d.set(y,!1),()=>d.delete(y))}),l?[Math.random(),p]:[n,p]);return R.useMemo(()=>{d.forEach((y,v)=>d.set(v,!1))},[n]),R.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),u==="popLayout"&&(e=w.jsx(r2,{isPresent:n,children:e})),w.jsx(Lu.Provider,{value:m,children:e})};function s2(){return new Map}function ex(e=!0){const t=R.useContext(Lu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,l=R.useId();R.useEffect(()=>{e&&o(l)},[e]);const u=R.useCallback(()=>e&&r&&r(l),[l,r,e]);return!n&&r?[!1,u]:[!0]}const Pl=e=>e.key||"";function ly(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const Lh=typeof window<"u",Fu=Lh?R.useLayoutEffect:R.useEffect,tx=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:l="sync",propagate:u=!1})=>{const[d,f]=ex(u),p=R.useMemo(()=>ly(e),[e]),m=u&&!d?[]:p.map(Pl),y=R.useRef(!0),v=R.useRef(p),x=zu(()=>new Map),[_,E]=R.useState(p),[k,P]=R.useState(p);Fu(()=>{y.current=!1,v.current=p;for(let L=0;L<k.length;L++){const D=Pl(k[L]);m.includes(D)?x.delete(D):x.get(D)!==!0&&x.set(D,!1)}},[k,m.length,m.join("-")]);const A=[];if(p!==_){let L=[...p];for(let D=0;D<k.length;D++){const B=k[D],W=Pl(B);m.includes(W)||(L.splice(D,0,B),A.push(B))}l==="wait"&&A.length&&(L=A),P(ly(L)),E(p);return}const{forceRender:M}=R.useContext(zh);return w.jsx(w.Fragment,{children:k.map(L=>{const D=Pl(L),B=u&&!d?!1:p===k||m.includes(D),W=()=>{if(x.has(D))x.set(D,!0);else return;let V=!0;x.forEach(X=>{X||(V=!1)}),V&&(M==null||M(),P(v.current),u&&(f==null||f()),r&&r())};return w.jsx(i2,{isPresent:B,initial:!y.current||n?void 0:!1,custom:B?void 0:t,presenceAffectsLayout:o,mode:l,onExitComplete:B?void 0:W,children:L},D)})})},Jt=e=>e;let nx=Jt;function Fh(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ei=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dn=e=>e*1e3,zn=e=>e/1e3,o2={useManualTiming:!1};function a2(e){let t=new Set,n=new Set,r=!1,o=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(p){l.has(p)&&(f.schedule(p),e()),p(u)}const f={schedule:(p,m=!1,y=!1)=>{const x=y&&r?t:n;return m&&l.add(p),x.has(p)||x.add(p),p},cancel:p=>{n.delete(p),l.delete(p)},process:p=>{if(u=p,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,o&&(o=!1,f.process(p))}};return f}const Tl=["read","resolveKeyframes","update","preRender","render","postRender"],l2=40;function rx(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Tl.reduce((P,A)=>(P[A]=a2(l),P),{}),{read:d,resolveKeyframes:f,update:p,preRender:m,render:y,postRender:v}=u,x=()=>{const P=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(P-o.timestamp,l2),1),o.timestamp=P,o.isProcessing=!0,d.process(o),f.process(o),p.process(o),m.process(o),y.process(o),v.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(x))},_=()=>{n=!0,r=!0,o.isProcessing||e(x)};return{schedule:Tl.reduce((P,A)=>{const M=u[A];return P[A]=(L,D=!1,B=!1)=>(n||_(),M.schedule(L,D,B)),P},{}),cancel:P=>{for(let A=0;A<Tl.length;A++)u[Tl[A]].cancel(P)},state:o,steps:u}}const{schedule:Le,cancel:nr,state:wt,steps:lf}=rx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jt,!0),ix=R.createContext({strict:!1}),uy={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 uy)vs[e]={isEnabled:t=>uy[e].some(n=>!!t[n])};function u2(e){for(const t in e)vs[t]={...vs[t],...e[t]}}const c2=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 tu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||c2.has(e)}let sx=e=>!tu(e);function d2(e){e&&(sx=t=>t.startsWith("on")?!tu(t):e(t))}try{d2(require("@emotion/is-prop-valid").default)}catch{}function f2(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(sx(o)||n===!0&&tu(o)||!t&&!tu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function h2(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Vu=R.createContext({});function Zo(e){return typeof e=="string"||Array.isArray(e)}function Uu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Vh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uh=["initial",...Vh];function Bu(e){return Uu(e.animate)||Uh.some(t=>Zo(e[t]))}function ox(e){return!!(Bu(e)||e.variants)}function p2(e,t){if(Bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zo(n)?n:void 0,animate:Zo(r)?r:void 0}}return e.inherit!==!1?t:{}}function m2(e){const{initial:t,animate:n}=p2(e,R.useContext(Vu));return R.useMemo(()=>({initial:t,animate:n}),[cy(t),cy(n)])}function cy(e){return Array.isArray(e)?e.join(" "):e}const g2=Symbol.for("motionComponentSymbol");function as(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function v2(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):as(n)&&(n.current=r))},[t])}const Bh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),y2="framerAppearId",ax="data-"+Bh(y2),{schedule:Wh}=rx(queueMicrotask,!1),lx=R.createContext({});function w2(e,t,n,r,o){var l,u;const{visualElement:d}=R.useContext(Vu),f=R.useContext(ix),p=R.useContext(Lu),m=R.useContext(sa).reducedMotion,y=R.useRef(null);r=r||f.renderer,!y.current&&r&&(y.current=r(e,{visualState:t,parent:d,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const v=y.current,x=R.useContext(lx);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&x2(y.current,n,o,x);const _=R.useRef(!1);R.useInsertionEffect(()=>{v&&_.current&&v.update(n,p)});const E=n[ax],k=R.useRef(!!E&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,E))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,E)));return Fu(()=>{v&&(_.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Wh.render(v.render),k.current&&v.animationState&&v.animationState.animateChanges())}),R.useEffect(()=>{v&&(!k.current&&v.animationState&&v.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)===null||P===void 0||P.call(window,E)}),k.current=!1))}),v}function x2(e,t,n,r){const{layoutId:o,layout:l,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ux(e.parent)),e.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!u||d&&as(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function ux(e){if(e)return e.options.allowProjection!==!1?e.projection:ux(e.parent)}function b2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var l,u;e&&u2(e);function d(p,m){let y;const v={...R.useContext(sa),...p,layoutId:S2(p)},{isStatic:x}=v,_=m2(p),E=r(p,x);if(!x&&Lh){_2();const k=E2(v);y=k.MeasureLayout,_.visualElement=w2(o,E,v,t,k.ProjectionNode)}return w.jsxs(Vu.Provider,{value:_,children:[y&&_.visualElement?w.jsx(y,{visualElement:_.visualElement,...v}):null,n(o,p,v2(E,_.visualElement,m),E,x,_.visualElement)]})}d.displayName=`motion.${typeof o=="string"?o:`create(${(u=(l=o.displayName)!==null&&l!==void 0?l:o.name)!==null&&u!==void 0?u:""})`}`;const f=R.forwardRef(d);return f[g2]=o,f}function S2({layoutId:e}){const t=R.useContext(zh).id;return t&&e!==void 0?t+"-"+e:e}function _2(e,t){R.useContext(ix).strict}function E2(e){const{drag:t,layout:n}=vs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const k2=["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 Zh(e){return typeof e!="string"||e.includes("-")?!1:!!(k2.indexOf(e)>-1||/[A-Z]/u.test(e))}function dy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qh(e,t,n,r){if(typeof t=="function"){const[o,l]=dy(r);t=t(n!==void 0?n:e.custom,o,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,l]=dy(r);t=t(n!==void 0?n:e.custom,o,l)}return t}const eh=e=>Array.isArray(e),C2=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),P2=e=>eh(e)?e[e.length-1]||0:e,st=e=>!!(e&&e.getVelocity);function Kl(e){const t=st(e)?e.get():e;return C2(t)?t.toValue():t}function T2({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,l){const u={latestValues:j2(r,o,l,e),renderState:t()};return n&&(u.onMount=d=>n({props:r,current:d,...u}),u.onUpdate=d=>n(d)),u}const cx=e=>(t,n)=>{const r=R.useContext(Vu),o=R.useContext(Lu),l=()=>T2(e,t,r,o);return n?l():zu(l)};function j2(e,t,n,r){const o={},l=r(e,{});for(const v in l)o[v]=Kl(l[v]);let{initial:u,animate:d}=e;const f=Bu(e),p=ox(e);t&&p&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const y=m?d:u;if(y&&typeof y!="boolean"&&!Uu(y)){const v=Array.isArray(y)?y:[y];for(let x=0;x<v.length;x++){const _=qh(e,v[x]);if(_){const{transitionEnd:E,transition:k,...P}=_;for(const A in P){let M=P[A];if(Array.isArray(M)){const L=m?M.length-1:0;M=M[L]}M!==null&&(o[A]=M)}for(const A in E)o[A]=E[A]}}}return o}const Cs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ti=new Set(Cs),dx=e=>t=>typeof t=="string"&&t.startsWith(e),fx=dx("--"),A2=dx("var(--"),Hh=e=>A2(e)?N2.test(e.split("/*")[0].trim()):!1,N2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rr=(e,t,n)=>n>t?t:n<e?e:n,Ps={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qo={...Ps,transform:e=>rr(0,1,e)},jl={...Ps,default:1},oa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ar=oa("deg"),Ln=oa("%"),he=oa("px"),I2=oa("vh"),O2=oa("vw"),fy={...Ln,parse:e=>Ln.parse(e)/100,transform:e=>Ln.transform(e*100)},R2={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,backgroundPositionX:he,backgroundPositionY:he},$2={rotate:Ar,rotateX:Ar,rotateY:Ar,rotateZ:Ar,scale:jl,scaleX:jl,scaleY:jl,scaleZ:jl,skew:Ar,skewX:Ar,skewY:Ar,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:qo,originX:fy,originY:fy,originZ:he},hy={...Ps,transform:Math.round},Kh={...R2,...$2,zIndex:hy,size:he,fillOpacity:qo,strokeOpacity:qo,numOctaves:hy},M2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D2=Cs.length;function z2(e,t,n){let r="",o=!0;for(let l=0;l<D2;l++){const u=Cs[l],d=e[u];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(u.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const p=hx(d,Kh[u]);if(!f){o=!1;const m=M2[u]||u;r+=`${m}(${p}) `}n&&(t[u]=p)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Gh(e,t,n){const{style:r,vars:o,transformOrigin:l}=e;let u=!1,d=!1;for(const f in t){const p=t[f];if(Ti.has(f)){u=!0;continue}else if(fx(f)){o[f]=p;continue}else{const m=hx(p,Kh[f]);f.startsWith("origin")?(d=!0,l[f]=m):r[f]=m}}if(t.transform||(u||n?r.transform=z2(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:m=0}=l;r.transformOrigin=`${f} ${p} ${m}`}}const L2={offset:"stroke-dashoffset",array:"stroke-dasharray"},F2={offset:"strokeDashoffset",array:"strokeDasharray"};function V2(e,t,n=1,r=0,o=!0){e.pathLength=1;const l=o?L2:F2;e[l.offset]=he.transform(-r);const u=he.transform(t),d=he.transform(n);e[l.array]=`${u} ${d}`}function py(e,t,n){return typeof e=="string"?e:he.transform(t+n*e)}function U2(e,t,n){const r=py(t,e.x,e.width),o=py(n,e.y,e.height);return`${r} ${o}`}function Yh(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:l,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...p},m,y){if(Gh(e,p,y),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:x,dimensions:_}=e;v.transform&&(_&&(x.transform=v.transform),delete v.transform),_&&(o!==void 0||l!==void 0||x.transform)&&(x.transformOrigin=U2(_,o!==void 0?o:.5,l!==void 0?l:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),u!==void 0&&V2(v,u,d,f,!1)}const Jh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),px=()=>({...Jh(),attrs:{}}),Qh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mx(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const l in n)e.style.setProperty(l,n[l])}const gx=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 vx(e,t,n,r){mx(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(gx.has(o)?o:Bh(o),t.attrs[o])}const nu={};function B2(e){Object.assign(nu,e)}function yx(e,{layout:t,layoutId:n}){return Ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nu[e]||e==="opacity")}function Xh(e,t,n){var r;const{style:o}=e,l={};for(const u in o)(st(o[u])||t.style&&st(t.style[u])||yx(u,e)||((r=n==null?void 0:n.getValue(u))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(l[u]=o[u]);return l}function wx(e,t,n){const r=Xh(e,t,n);for(const o in e)if(st(e[o])||st(t[o])){const l=Cs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[l]=e[o]}return r}function W2(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 my=["x","y","width","height","cx","cy","r"],Z2={useVisualState:cx({scrapeMotionValuesFromProps:wx,createRenderState:px,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let l=!!e.drag;if(!l){for(const d in o)if(Ti.has(d)){l=!0;break}}if(!l)return;let u=!t;if(t)for(let d=0;d<my.length;d++){const f=my[d];e[f]!==t[f]&&(u=!0)}u&&Le.read(()=>{W2(n,r),Le.render(()=>{Yh(r,o,Qh(n.tagName),e.transformTemplate),vx(n,r)})})}})},q2={useVisualState:cx({scrapeMotionValuesFromProps:Xh,createRenderState:Jh})};function xx(e,t,n){for(const r in t)!st(t[r])&&!yx(r,n)&&(e[r]=t[r])}function H2({transformTemplate:e},t){return R.useMemo(()=>{const n=Jh();return Gh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function K2(e,t){const n=e.style||{},r={};return xx(r,n,e),Object.assign(r,H2(e,t)),r}function G2(e,t){const n={},r=K2(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}function Y2(e,t,n,r){const o=R.useMemo(()=>{const l=px();return Yh(l,t,Qh(r),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};xx(l,e.style,e),o.style={...l,...o.style}}return o}function J2(e=!1){return(n,r,o,{latestValues:l},u)=>{const f=(Zh(n)?Y2:G2)(r,l,u,n),p=f2(r,typeof n=="string",e),m=n!==R.Fragment?{...p,...f,ref:o}:{},{children:y}=r,v=R.useMemo(()=>st(y)?y.get():y,[y]);return R.createElement(n,{...m,children:v})}}function Q2(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...Zh(r)?Z2:q2,preloadedFeatures:e,useRender:J2(o),createVisualElement:t,Component:r};return b2(u)}}function bx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wu(e,t,n){const r=e.getProps();return qh(r,t,n!==void 0?n:r.custom,e)}const X2=Fh(()=>window.ScrollTimeline!==void 0);class eC{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 r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(X2()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,l)=>{o&&o(),this.animations[l].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 Sx extends eC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ep(e,t){return e?e[t]||e.default||e:void 0}const ru=2e4;function tp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ru;)t+=n,r=e.next(t);return t>=ru?1/0:t}function tC(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(tp(r),ru);return{type:"keyframes",ease:l=>r.next(o*l).value/t,duration:zn(o)}}function Zu(e){return typeof e=="function"}function gy(e,t){e.timeline=t,e.onfinish=null}const np=e=>Array.isArray(e)&&typeof e[0]=="number",nC={linearEasing:void 0};function rC(e,t){const n=Fh(e);return()=>{var r;return(r=nC[t])!==null&&r!==void 0?r:n()}}const iu=rC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_x=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let l=0;l<o;l++)r+=e(Ei(0,o-1,l))+", ";return`linear(${r.substring(0,r.length-2)})`};function Ex(e){return!!(typeof e=="function"&&iu()||!e||typeof e=="string"&&(e in th||iu())||np(e)||Array.isArray(e)&&e.every(Ex))}const jo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,th={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jo([0,.65,.55,1]),circOut:jo([.55,0,1,.45]),backIn:jo([.31,.01,.66,-.59]),backOut:jo([.33,1.53,.69,.99])};function kx(e,t){if(e)return typeof e=="function"&&iu()?_x(e,t):np(e)?jo(e):Array.isArray(e)?e.map(n=>kx(n,t)||th.easeOut):th[e]}const kn={x:!1,y:!1};function Cx(){return kn.x||kn.y}function Px(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const l=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}function Tx(e,t){const n=Px(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function vy(e){return t=>{t.pointerType==="touch"||Cx()||e(t)}}function iC(e,t,n={}){const[r,o,l]=Tx(e,n),u=vy(d=>{const{target:f}=d,p=t(d);if(typeof p!="function"||!f)return;const m=vy(y=>{p(y),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,o)});return r.forEach(d=>{d.addEventListener("pointerenter",u,o)}),l}const jx=(e,t)=>t?e===t?!0:jx(e,t.parentElement):!1,rp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oC(e){return sC.has(e.tagName)||e.tabIndex!==-1}const Ao=new WeakSet;function yy(e){return t=>{t.key==="Enter"&&e(t)}}function uf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const aC=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yy(()=>{if(Ao.has(n))return;uf(n,"down");const o=yy(()=>{uf(n,"up")}),l=()=>uf(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function wy(e){return rp(e)&&!Cx()}function lC(e,t,n={}){const[r,o,l]=Tx(e,n),u=d=>{const f=d.currentTarget;if(!wy(d)||Ao.has(f))return;Ao.add(f);const p=t(d),m=(x,_)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),!(!wy(x)||!Ao.has(f))&&(Ao.delete(f),typeof p=="function"&&p(x,{success:_}))},y=x=>{m(x,n.useGlobalTarget||jx(f,x.target))},v=x=>{m(x,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",v,o)};return r.forEach(d=>{!oC(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,o),d.addEventListener("focus",p=>aC(p,o),o)}),l}function uC(e){return e==="x"||e==="y"?kn[e]?null:(kn[e]=!0,()=>{kn[e]=!1}):kn.x||kn.y?null:(kn.x=kn.y=!0,()=>{kn.x=kn.y=!1})}const Ax=new Set(["width","height","top","left","right","bottom",...Cs]);let Gl;function cC(){Gl=void 0}const Fn={now:()=>(Gl===void 0&&Fn.set(wt.isProcessing||o2.useManualTiming?wt.timestamp:performance.now()),Gl),set:e=>{Gl=e,queueMicrotask(cC)}};function ip(e,t){e.indexOf(t)===-1&&e.push(t)}function qu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class sp{constructor(){this.subscriptions=[]}add(t){return ip(this.subscriptions,t),()=>qu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let l=0;l<o;l++){const u=this.subscriptions[l];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Nx(e,t){return t?e*(1e3/t):0}const xy=30,dC=e=>!isNaN(parseFloat(e));class fC{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const l=Fn.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&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=Fn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dC(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 sp);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=Fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xy);return Nx(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 ys(e,t){return new fC(e,t)}function hC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ys(n))}function pC(e,t){const n=Wu(e,t);let{transitionEnd:r={},transition:o={},...l}=n||{};l={...l,...r};for(const u in l){const d=P2(l[u]);hC(e,u,d)}}function mC(e){return!!(st(e)&&e.add)}function nh(e,t){const n=e.getValue("willChange");if(mC(n))return n.add(t)}function Ix(e){return e.props[ax]}const Ox=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gC=1e-7,vC=12;function yC(e,t,n,r,o){let l,u,d=0;do u=t+(n-t)/2,l=Ox(u,r,o)-e,l>0?n=u:t=u;while(Math.abs(l)>gC&&++d<vC);return u}function aa(e,t,n,r){if(e===t&&n===r)return Jt;const o=l=>yC(l,0,1,e,n);return l=>l===0||l===1?l:Ox(o(l),t,r)}const Rx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$x=e=>t=>1-e(1-t),Mx=aa(.33,1.53,.69,.99),op=$x(Mx),Dx=Rx(op),zx=e=>(e*=2)<1?.5*op(e):.5*(2-Math.pow(2,-10*(e-1))),ap=e=>1-Math.sin(Math.acos(e)),Lx=$x(ap),Fx=Rx(ap),Vx=e=>/^0[^.\s]+$/u.test(e);function wC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vx(e):!0}const Mo=e=>Math.round(e*1e5)/1e5,lp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xC(e){return e==null}const bC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,up=(e,t)=>n=>!!(typeof n=="string"&&bC.test(n)&&n.startsWith(e)||t&&!xC(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ux=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,l,u,d]=r.match(lp);return{[e]:parseFloat(o),[t]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},SC=e=>rr(0,255,e),cf={...Ps,transform:e=>Math.round(SC(e))},di={test:up("rgb","red"),parse:Ux("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cf.transform(e)+", "+cf.transform(t)+", "+cf.transform(n)+", "+Mo(qo.transform(r))+")"};function _C(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const rh={test:up("#"),parse:_C,transform:di.transform},ls={test:up("hsl","hue"),parse:Ux("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ln.transform(Mo(t))+", "+Ln.transform(Mo(n))+", "+Mo(qo.transform(r))+")"},At={test:e=>di.test(e)||rh.test(e)||ls.test(e),parse:e=>di.test(e)?di.parse(e):ls.test(e)?ls.parse(e):rh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?di.transform(e):ls.transform(e)},EC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EC))===null||n===void 0?void 0:n.length)||0)>0}const Bx="number",Wx="color",CC="var",PC="var(",by="${}",TC=/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 Ho(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let l=0;const d=t.replace(TC,f=>(At.test(f)?(r.color.push(l),o.push(Wx),n.push(At.parse(f))):f.startsWith(PC)?(r.var.push(l),o.push(CC),n.push(f)):(r.number.push(l),o.push(Bx),n.push(parseFloat(f))),++l,by)).split(by);return{values:n,split:d,indexes:r,types:o}}function Zx(e){return Ho(e).values}function qx(e){const{split:t,types:n}=Ho(e),r=t.length;return o=>{let l="";for(let u=0;u<r;u++)if(l+=t[u],o[u]!==void 0){const d=n[u];d===Bx?l+=Mo(o[u]):d===Wx?l+=At.transform(o[u]):l+=o[u]}return l}}const jC=e=>typeof e=="number"?0:e;function AC(e){const t=Zx(e);return qx(e)(t.map(jC))}const $r={test:kC,parse:Zx,createTransformer:qx,getAnimatableNone:AC},NC=new Set(["brightness","contrast","saturate","opacity"]);function IC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(lp)||[];if(!r)return e;const o=n.replace(r,"");let l=NC.has(t)?1:0;return r!==n&&(l*=100),t+"("+l+o+")"}const OC=/\b([a-z-]*)\(.*?\)/gu,ih={...$r,getAnimatableNone:e=>{const t=e.match(OC);return t?t.map(IC).join(" "):e}},RC={...Kh,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:ih,WebkitFilter:ih},cp=e=>RC[e];function Hx(e,t){let n=cp(e);return n!==ih&&(n=$r),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $C=new Set(["auto","none","0"]);function MC(e,t,n){let r=0,o;for(;r<e.length&&!o;){const l=e[r];typeof l=="string"&&!$C.has(l)&&Ho(l).values.length&&(o=e[r]),r++}if(o&&n)for(const l of t)e[l]=Hx(n,o)}const Sy=e=>e===Ps||e===he,_y=(e,t)=>parseFloat(e.split(", ")[t]),Ey=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return _y(o[1],t);{const l=r.match(/^matrix\((.+)\)$/u);return l?_y(l[1],e):0}},DC=new Set(["x","y","z"]),zC=Cs.filter(e=>!DC.has(e));function LC(e){const t=[];
vendor: 4,124 bytes, line 48
48return zC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ws={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:Ey(4,13),y:Ey(5,14)};ws.translateX=ws.x;ws.translateY=ws.y;const xi=new Set;let sh=!1,oh=!1;function Kx(){if(oh){const e=Array.from(xi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=LC(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([l,u])=>{var d;(d=r.getValue(l))===null||d===void 0||d.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}oh=!1,sh=!1,xi.forEach(e=>e.complete()),xi.clear()}function Gx(){xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oh=!0)})}function FC(){Gx(),Kx()}class dp{constructor(t,n,r,o,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xi.add(this),sh||(sh=!0,Le.read(Gx),Le.resolveKeyframes(Kx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let l=0;l<t.length;l++)if(t[l]===null)if(l===0){const u=o==null?void 0:o.get(),d=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),o&&u===void 0&&o.set(t[0])}else t[l]=t[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Yx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),VC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UC(e){const t=VC.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Jx(e,t,n=1){const[r,o]=UC(e);if(!r)return;const l=window.getComputedStyle(t).getPropertyValue(r);if(l){const u=l.trim();return Yx(u)?parseFloat(u):u}return Hh(o)?Jx(o,t,n+1):o}const Qx=e=>t=>t.test(e),BC={test:e=>e==="auto",parse:e=>e},Xx=[Ps,he,Ln,Ar,O2,I2,BC],ky=e=>Xx.find(Qx(e));class eb extends dp{constructor(t,n,r,o,l){super(t,n,r,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let p=t[f];if(typeof p=="string"&&(p=p.trim(),Hh(p))){const m=Jx(p,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Ax.has(r)||t.length!==2)return;const[o,l]=t,u=ky(o),d=ky(l);if(u!==d)if(Sy(u)&&Sy(d))for(let f=0;f<t.length;f++){const p=t[f];typeof p=="string"&&(t[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)wC(t[o])&&r.push(o);r.length&&MC(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ws[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const l=n.getValue(r);l&&l.jump(this.measuredOrigin,!1);const u=o.length-1,d=o[u];o[u]=ws[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEac
vendor: 6,998 bytes, line 48
48h(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Cy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($r.test(e)||e==="0")&&!e.startsWith("url("));function WC(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 ZC(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],u=Cy(o,t),d=Cy(l,t);return!u||!d?!1:WC(e)||(n==="spring"||Zu(n))&&r}const qC=e=>e!==null;function Hu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(qC),l=t&&n!=="loop"&&t%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const HC=40;class tb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:u="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Fn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:l,repeatType:u,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>HC?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&FC(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Fn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:l,delay:u,onComplete:d,onUpdate:f,isGenerator:p}=this.options;if(!p&&!ZC(t,r,o,l))if(u)this.options.duration=0;else{f&&f(Hu(t,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},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 He=(e,t,n)=>e+(t-e)*n;function df(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 KC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,l=0,u=0;if(!t)o=l=u=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;o=df(f,d,e+1/3),l=df(f,d,e),u=df(f,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:r}}function su(e,t){return n=>n>0?t:e}const ff=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},GC=[rh,di,ls],YC=e=>GC.find(t=>t.test(e));function Py(e){const t=YC(e);if(!t)return!1;let n=t.parse(e);return t===ls&&(n=KC(n)),n}const Ty=(e,t)=>{const n=Py(e),r=Py(t);if(!n||!r)return su(e,t);const o={...n};return l=>(o.red=ff(n.red,r.red,l),o.green=ff(n.green,r.green,l),o.blue=ff(n.blue,r.blue,l),o.alpha=He(n.alpha,r.alpha,l),di.transform(o))},JC=(e,t)=>n=>t(e(n)),la=(...e)=>e.reduce(JC),ah=new Set(["none","hidden"]);function QC(e,t){return ah.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function XC(e,t){return n=>He(e,t,n)}function fp(e){return typeof e=="number"?XC:typeof e=="string"?Hh(e)?su:At.test(e)?Ty:nP:Array.isArray(e)?nb:typeof e=="object"?At.test(e)?Ty:eP:su}function nb(e,t){const n=[...e],r=n.length,o=e.map((l,u)=>fp(l)(l,t[u]));return l=>{for(let u=0;u<r;u++)n[u]=o[u](l);return n}}function eP(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=fp(e[o])(e[o],t[o]));return o=>{for(const l in r)n[l]=r[l](o);return n}}function tP(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const u=t.types[l],d=e.indexes[u][o[u]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[l]=f,o[u]++}return r}const nP=(e,t)=>{const n=$r.createTransformer(t),r=Ho(e),o=Ho(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?ah.has(e)&&!o.values.length||ah.has(t)&&!r.values.length?QC(e,t):la(nb(tP(r,o),o.values),n):su(e,t)};function rb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?He(e,t,n):fp(e)(e,t)}const rP=5;function ib(e,t,n){const r=Math.max(t-rP,0);return Nx(n-e(r),t-r)}const it={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},hf=.001;function iP({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let o,l,u=1-t;u=rr(it.minDamping,it.maxDamping,u),e=rr(it.minDuration,it.maxDuration,zn(e)),u<1?(o=p=>{const m=p*u,y=m*e,v=m-n,x=lh(p,u),_=Math.exp(-y);return hf-v/x*_},l=p=>{const y=p*u*e,v=y*n+n,x=Math.pow(u,2)*Math.pow(p,2)*e,_=Math.exp(-y),E=lh(Math.pow(p,2),u);return(-o(p)+hf>0?-1:1)*((v-x)*_)/E}):(o=p=>{const m=Math.exp(-p*e),y=(p-n)*e+1;return-hf+m*y},l=p=>{const m=Math.exp(-p*e),y=(n-p)*(e*e);return m*y});const d=5/e,f=oP(o,l,d);if(e=Dn(e),isNaN(f))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:u*2*Math.sqrt(r*p),duration:e}}}const sP=12;function oP(e,t,n){let r=n;for(let o=1;o<sP;o++)r=r-e(r)/t(r);return r}function lh(e,t){return e*Math.sqrt(1-t*t)}const aP=["duration","bounce"],lP=["stiffness","damping","mass"];function jy(e,t){return t.some(n=>e[n]!==void 0)}function uP(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!jy(e,lP)&&jy(e,aP))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,l=2*rr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:it.mass,stiffness:o,damping:l}}else{const n=iP(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function hp(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:p,mass:m,duration:y,velocity:v,isResolvedFromDuration:x}=uP({...n,velocity:-zn(n.velocity||0)}),_=v||0,E=p/(2*Math.sqrt(f*m)),k=u-l,P=zn(Math.sqrt(f/m)),A=Math.abs(k)<5;r||(r=A?it.restSpeed.granular:it.restSpeed.default),o||(o=A?it.restDelta.granular:it.restDelta.default);let M;if(E<1){const D=lh(P,E);M=B=>{const W=Math.exp(-E*P*B);return u-W*((_+E*P*k)/D*Math.sin(D*B)+k*Math.cos(D*B))}}else if(E===1)M=D=>u-Math.exp(-P*D)*(k+(_+P*k)*D);else{const D=P*Math.sqrt(E*E-1);M=B=>{const W=Math.exp(-E*P*B),V=Math.min(D*B,300);return u-W*((_+E*P*k)*Math.sinh(V)+D*k*Math.cosh(V))/D}}const L={calculatedDuration:x&&y||null,next:D=>{const B=M(D);if(x)d.done=D>=y;else{let W=0;E<1&&(W=D===0?Dn(_):ib(M,D,B));const V=Math.abs(W)<=r,X=Math.abs(u-B)<=o;d.done=V&&X}return d.value=d.done?u:B,d},toString:()=>{const D=Math.min(tp(L),ru),B=_x(W=>L.next(D*W).value,D,30);return D+"ms "+B}};return L}function Ay({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:f,restDelta:p=.5,restSpeed:m}){const y=e[0],v={done:!1,value:y},x=V=>d!==void 0&&V<d||f!==void 0&&V>f,_=V=>d===void 0?f:f===void 0||Math.abs(d-V)<Math.abs(f-V)?d:f;let E=n*t;
vendor: 4,876 bytes, line 48
48const k=y+E,P=u===void 0?k:u(k);P!==k&&(E=P-y);const A=V=>-E*Math.exp(-V/r),M=V=>P+A(V),L=V=>{const X=A(V),oe=M(V);v.done=Math.abs(X)<=p,v.value=v.done?P:oe};let D,B;const W=V=>{x(v.value)&&(D=V,B=hp({keyframes:[v.value,_(v.value)],velocity:ib(M,V,v.value),damping:o,stiffness:l,restDelta:p,restSpeed:m}))};return W(0),{calculatedDuration:null,next:V=>{let X=!1;return!B&&D===void 0&&(X=!0,L(V),W(V)),D!==void 0&&V>=D?B.next(V-D):(!X&&L(V),v)}}}const cP=aa(.42,0,1,1),dP=aa(0,0,.58,1),sb=aa(.42,0,.58,1),ob=e=>Array.isArray(e)&&typeof e[0]!="number",fP={linear:Jt,easeIn:cP,easeInOut:sb,easeOut:dP,circIn:ap,circInOut:Fx,circOut:Lx,backIn:op,backInOut:Dx,backOut:Mx,anticipate:zx},Ny=e=>{if(np(e)){nx(e.length===4);const[t,n,r,o]=e;return aa(t,n,r,o)}else if(typeof e=="string")return fP[e];return e};function hP(e,t,n){const r=[],o=n||rb,l=e.length-1;for(let u=0;u<l;u++){let d=o(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Jt:t;d=la(f,d)}r.push(d)}return r}function pP(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const l=e.length;if(nx(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=hP(t,r,o),f=d.length,p=m=>{if(u&&m<e[0])return t[0];let y=0;if(f>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const v=Ei(e[y],e[y+1],m);return d[y](v)};return n?m=>p(rr(e[0],e[l-1],m)):p}function ab(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ei(0,t,r);e.push(He(n,1,o))}}function lb(e){const t=[0];return ab(t,e.length-1),t}function mP(e,t){return e.map(n=>n*t)}function gP(e,t){return e.map(()=>t||sb).splice(0,e.length-1)}function ou({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ob(r)?r.map(Ny):Ny(r),l={done:!1,value:t[0]},u=mP(n&&n.length===t.length?n:lb(t),e),d=pP(u,t,{ease:Array.isArray(o)?o:gP(t,o)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const vP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>nr(t),now:()=>wt.isProcessing?wt.timestamp:Fn.now()}},yP={decay:Ay,inertia:Ay,tween:ou,keyframes:ou,spring:hp},wP=e=>e/100;class Ku extends tb{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:f}=this.options;f&&f()};const{name:n,motionValue:r,element:o,keyframes:l}=this.options,u=(o==null?void 0:o.KeyframeResolver)||dp,d=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new u(l,d,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:l,velocity:u=0}=this.options,d=Zu(n)?n:yP[n]||ou;let f,p;d!==ou&&typeof t[0]!="number"&&(f=la(wP,rb(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});l==="mirror"&&(p=d({...this.options,keyframes:[...t].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=tp(m));const{calculatedDuration:y}=m,v=y+o,x=v*(r+1)-o;return{generator:m,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:y,resolvedDuration:v,totalDuration:x}}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:r}=this;if(!r){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:o,generator:l,mirroredGenerator:u,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:p,totalDuration:m,resolvedDuration:y}=r;if(this.startTime===null)return l.next(0);const{delay:v,repeat:x,repeatType:_,repeatDelay:E,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/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 P=this.currentTime-v*(this.speed>=0?1:-1),A=this.speed>=0?P<0:P>m;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let M=this.currentTime,L=l;if(x){const V=Math.min(this.currentTime,m)/y;let X=Math.floor(V),oe=V%1;!oe&&V>=1&&(oe=1),oe===1&&X--,X=Math.min(X,x+1),!!(X%2)&&(_==="reverse"?(oe=1-oe,E&&(oe-=E/y)):_==="mirror"&&(L=u)),M=rr(0,1,oe)*y}const D=A?{done:!1,value:f[0]}:L.next(M);d&&(D.value=d(D.value));let{done:B}=D;!A&&p!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return W&&o!==void 0&&(D.value=Hu(f,this.options,o)),k&&k(D.value),W&&this.finish(),D}get duration(){const{resolved:t}=this;return t?zn(t.calculatedDuration):0}
vendor: 56,912 bytes, line 48
48get time(){return zn(this.currentTime)}set time(t){t=Dn(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=zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=vP,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??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)}}function xP(e){return new Ku(e)}const bP=new Set(["opacity","clipPath","filter","transform"]);function SP(e,t,n,{delay:r=0,duration:o=300,repeat:l=0,repeatType:u="loop",ease:d="easeInOut",times:f}={}){const p={[t]:n};f&&(p.offset=f);const m=kx(d,o);return Array.isArray(m)&&(p.easing=m),e.animate(p,{delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const _P=Fh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),au=10,EP=2e4;function kP(e){return Zu(e.type)||e.type==="spring"||!Ex(e.ease)}function CP(e,t){const n=new Ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let l=0;for(;!r.done&&l<EP;)r=n.sample(l),o.push(r.value),l+=au;return{times:void 0,keyframes:o,duration:l-au,ease:"linear"}}const ub={anticipate:zx,backInOut:Dx,circInOut:Fx};function PP(e){return e in ub}class Iy extends tb{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:l}=this.options;this.resolver=new eb(l,(u,d)=>this.onKeyframesResolved(u,d),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:l,type:u,motionValue:d,name:f,startTime:p}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&iu()&&PP(l)&&(l=ub[l]),kP(this.options)){const{onComplete:y,onUpdate:v,motionValue:x,element:_,...E}=this.options,k=CP(t,E);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,o=k.times,l=k.ease,u="keyframes"}const m=SP(d.owner.current,f,t,{...this.options,duration:r,times:o,ease:l});return m.startTime=p??this.calcStartTime(),this.pendingTimeline?(gy(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:y}=this.options;d.set(Hu(t,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:o,type:u,ease:l,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Dn(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:r}=n;r.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 Jt;const{animation:r}=n;gy(r,t)}return Jt}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:r,duration:o,type:l,ease:u,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:m,onComplete:y,element:v,...x}=this.options,_=new Ku({...x,keyframes:r,duration:o,type:l,ease:u,times:d,isGenerator:!0}),E=Dn(this.time);p.setWithVelocity(_.sample(E-au).value,_.sample(E).value,au)}const{onStop:f}=this.options;f&&f(),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:r,repeatDelay:o,repeatType:l,damping:u,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return _P()&&r&&bP.has(r)&&!f&&!p&&!o&&l!=="mirror"&&u!==0&&d!=="inertia"}}const TP={type:"spring",stiffness:500,damping:25,restSpeed:10},jP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),AP={type:"keyframes",duration:.8},NP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IP=(e,{keyframes:t})=>t.length>2?AP:Ti.has(e)?e.startsWith("scale")?jP(t[1]):TP:NP;function OP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:l,repeatType:u,repeatDelay:d,from:f,elapsed:p,...m}){return!!Object.keys(m).length}const pp=(e,t,n,r={},o,l)=>u=>{const d=ep(r,e)||{},f=d.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Dn(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:o};OP(d)||(m={...m,...IP(e,m)}),m.duration&&(m.duration=Dn(m.duration)),m.repeatDelay&&(m.repeatDelay=Dn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(y=!0)),y&&!l&&t.get()!==void 0){const v=Hu(m.keyframes,d);if(v!==void 0)return Le.update(()=>{m.onUpdate(v),m.onComplete()}),new Sx([])}return!l&&Iy.supports(m)?new Iy(m):new Ku(m)};function RP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mp(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var l;let{transition:u=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(u=r);const p=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const y in f){const v=e.getValue(y,(l=e.latestValues[y])!==null&&l!==void 0?l:null),x=f[y];if(x===void 0||m&&RP(m,y))continue;const _={delay:n,...ep(u||{},y)};let E=!1;if(window.MotionHandoffAnimation){const P=Ix(e);if(P){const A=window.MotionHandoffAnimation(P,y,Le);A!==null&&(_.startTime=A,E=!0)}}nh(e,y),v.start(pp(y,v,x,e.shouldReduceMotion&&Ax.has(y)?{type:!1}:_,e,E));const k=v.animation;k&&p.push(k)}return d&&Promise.all(p).then(()=>{Le.update(()=>{d&&pC(e,d)})}),p}function uh(e,t,n={}){var r;const o=Wu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(l=n.transitionOverride);const u=o?()=>Promise.all(mp(e,o,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:v}=l;return $P(e,t,m+p,y,v,n)}:()=>Promise.resolve(),{when:f}=l;if(f){const[p,m]=f==="beforeChildren"?[u,d]:[d,u];return p().then(()=>m())}else return Promise.all([u(),d(n.delay)])}function $P(e,t,n=0,r=0,o=1,l){const u=[],d=(e.variantChildren.size-1)*r,f=o===1?(p=0)=>p*r:(p=0)=>d-p*r;return Array.from(e.variantChildren).sort(MP).forEach((p,m)=>{p.notify("AnimationStart",t),u.push(uh(p,t,{...l,delay:n+f(m)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(u)}function MP(e,t){return e.sortNodePosition(t)}function DP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(l=>uh(e,l,n));r=Promise.all(o)}else if(typeof t=="string")r=uh(e,t,n);else{const o=typeof t=="function"?Wu(e,t,n.custom):t;r=Promise.all(mp(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const zP=Uh.length;function cb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?cb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<zP;n++){const r=Uh[n],o=e.props[r];(Zo(o)||o===!1)&&(t[r]=o)}return t}const LP=[...Vh].reverse(),FP=Vh.length;function VP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>DP(e,n,r)))}function UP(e){let t=VP(e),n=Oy(),r=!0;const o=f=>(p,m)=>{var y;const v=Wu(e,m,f==="exit"?(y=e.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(v){const{transition:x,transitionEnd:_,...E}=v;p={...p,...E,..._}}return p};function l(f){t=f(e)}function u(f){const{props:p}=e,m=cb(e.parent)||{},y=[],v=new Set;let x={},_=1/0;for(let k=0;k<FP;k++){const P=LP[k],A=n[P],M=p[P]!==void 0?p[P]:m[P],L=Zo(M),D=P===f?A.isActive:null;D===!1&&(_=k);let B=M===m[P]&&M!==p[P]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),A.protectedKeys={...x},!A.isActive&&D===null||!M&&!A.prevProp||Uu(M)||typeof M=="boolean")continue;const W=BP(A.prevProp,M);let V=W||P===f&&A.isActive&&!B&&L||k>_&&L,X=!1;const oe=Array.isArray(M)?M:[M];let I=oe.reduce(o(P),{});D===!1&&(I={});const{prevResolvedValues:U={}}=A,J={...U,...I},ue=le=>{V=!0,v.has(le)&&(X=!0,v.delete(le)),A.needsAnimating[le]=!0;const H=e.getValue(le);H&&(H.liveStyle=!1)};for(const le in J){const H=I[le],ne=U[le];if(x.hasOwnProperty(le))continue;let Q=!1;eh(H)&&eh(ne)?Q=!bx(H,ne):Q=H!==ne,Q?H!=null?ue(le):v.add(le):H!==void 0&&v.has(le)?ue(le):A.protectedKeys[le]=!0}A.prevProp=M,A.prevResolvedValues=I,A.isActive&&(x={...x,...I}),r&&e.blockInitialAnimation&&(V=!1),V&&(!(B&&W)||X)&&y.push(...oe.map(le=>({animation:le,options:{type:P}})))}if(v.size){const k={};v.forEach(P=>{const A=e.getBaseTarget(P),M=e.getValue(P);M&&(M.liveStyle=!0),k[P]=A??null}),y.push({animation:k})}let E=!!y.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(y):Promise.resolve()}function d(f,p){var m;if(n[f].isActive===p)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var x;return(x=v.animationState)===null||x===void 0?void 0:x.setActive(f,p)}),n[f].isActive=p;const y=u(f);for(const v in n)n[v].protectedKeys={};return y}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Oy(),r=!0}}}function BP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bx(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oy(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}class zr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class WP extends zr{constructor(t){super(t),t.animationState||(t.animationState=UP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Uu(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 ZP=0;class qP extends zr{constructor(){super(...arguments),this.id=ZP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const HP={animation:{Feature:WP},exit:{Feature:qP}};function Ko(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ua(e){return{point:{x:e.pageX,y:e.pageY}}}const KP=e=>t=>rp(t)&&e(t,ua(t));function Do(e,t,n,r){return Ko(e,t,KP(n),r)}const Ry=(e,t)=>Math.abs(e-t);function GP(e,t){const n=Ry(e.x,t.x),r=Ry(e.y,t.y);return Math.sqrt(n**2+r**2)}class db{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:l=!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 y=mf(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,x=GP(y.offset,{x:0,y:0})>=3;if(!v&&!x)return;const{point:_}=y,{timestamp:E}=wt;this.history.push({..._,timestamp:E});const{onStart:k,onMove:P}=this.handlers;v||(k&&k(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,y)},this.handlePointerMove=(y,v)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=pf(v,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(y,v)=>{this.end();const{onEnd:x,onSessionEnd:_,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=mf(y.type==="pointercancel"?this.lastMoveEventInfo:pf(v,this.transformPagePoint),this.history);this.startEvent&&x&&x(y,k),_&&_(y,k)},!rp(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const u=ua(t),d=pf(u,this.transformPagePoint),{point:f}=d,{timestamp:p}=wt;this.history=[{...f,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,mf(d,this.history)),this.removeListeners=la(Do(this.contextWindow,"pointermove",this.handlePointerMove),Do(this.contextWindow,"pointerup",this.handlePointerUp),Do(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nr(this.updatePoint)}}function pf(e,t){return t?{point:t(e.point)}:e}function $y(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mf({point:e},t){return{point:e,delta:$y(e,fb(t)),offset:$y(e,YP(t)),velocity:JP(t,.1)}}function YP(e){return e[0]}function fb(e){return e[e.length-1]}function JP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=fb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Dn(t)));)n--;if(!r)return{x:0,y:0};const l=zn(o.timestamp-r.timestamp);if(l===0)return{x:0,y:0};const u={x:(o.x-r.x)/l,y:(o.y-r.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const hb=1e-4,QP=1-hb,XP=1+hb,pb=.01,eT=0-pb,tT=0+pb;function Qt(e){return e.max-e.min}function nT(e,t,n){return Math.abs(e-t)<=n}function My(e,t,n,r=.5){e.origin=r,e.originPoint=He(t.min,t.max,e.origin),e.scale=Qt(n)/Qt(t),e.translate=He(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QP&&e.scale<=XP||isNaN(e.scale))&&(e.scale=1),(e.translate>=eT&&e.translate<=tT||isNaN(e.translate))&&(e.translate=0)}function zo(e,t,n,r){My(e.x,t.x,n.x,r?r.originX:void 0),My(e.y,t.y,n.y,r?r.originY:void 0)}function Dy(e,t,n){e.min=n.min+t.min,e.max=e.min+Qt(t)}function rT(e,t,n){Dy(e.x,t.x,n.x),Dy(e.y,t.y,n.y)}function zy(e,t,n){e.min=t.min-n.min,e.max=e.min+Qt(t)}function Lo(e,t,n){zy(e.x,t.x,n.x),zy(e.y,t.y,n.y)}function iT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?He(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?He(n,e,r.max):Math.min(e,n)),e}function Ly(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 sT(e,{top:t,left:n,bottom:r,right:o}){return{x:Ly(e.x,n,o),y:Ly(e.y,t,r)}}function Fy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function oT(e,t){return{x:Fy(e.x,t.x),y:Fy(e.y,t.y)}}function aT(e,t){let n=.5;const r=Qt(e),o=Qt(t);return o>r?n=Ei(t.min,t.max-r,e.min):r>o&&(n=Ei(e.min,e.max-o,t.min)),rr(0,1,n)}function lT(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 ch=.35;function uT(e=ch){return e===!1?e=0:e===!0&&(e=ch),{x:Vy(e,"left","right"),y:Vy(e,"top","bottom")}}function Vy(e,t,n){return{min:Uy(e,t),max:Uy(e,n)}}function Uy(e,t){return typeof e=="number"?e:e[t]||0}const By=()=>({translate:0,scale:1,origin:0,originPoint:0}),us=()=>({x:By(),y:By()}),Wy=()=>({min:0,max:0}),rt=()=>({x:Wy(),y:Wy()});function fn(e){return[e("x"),e("y")]}function mb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dT(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function gf(e){return e===void 0||e===1}function dh({scale:e,scaleX:t,scaleY:n}){return!gf(e)||!gf(t)||!gf(n)}function ui(e){return dh(e)||gb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gb(e){return Zy(e.x)||Zy(e.y)}function Zy(e){return e&&e!=="0%"}function lu(e,t,n){const r=e-n,o=t*r;return n+o}function qy(e,t,n,r,o){return o!==void 0&&(e=lu(e,o,r)),lu(e,n,r)+t}function fh(e,t=0,n=1,r,o){e.min=qy(e.min,t,n,r,o),e.max=qy(e.max,t,n,r,o)}function vb(e,{x:t,y:n}){fh(e.x,t.translate,t.scale,t.originPoint),fh(e.y,n.translate,n.scale,n.originPoint)}const Hy=.999999999999,Ky=1.0000000000001;function fT(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let l,u;for(let d=0;d<o;d++){l=n[d],u=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&ds(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,vb(e,u)),r&&ui(l.latestValues)&&ds(e,l.latestValues))}t.x<Ky&&t.x>Hy&&(t.x=1),t.y<Ky&&t.y>Hy&&(t.y=1)}function cs(e,t){e.min=e.min+t,e.max=e.max+t}function Gy(e,t,n,r,o=.5){const l=He(e.min,e.max,o);fh(e,t,n,l,r)}function ds(e,t){Gy(e.x,t.x,t.scaleX,t.scale,t.originX),Gy(e.y,t.y,t.scaleY,t.scale,t.originY)}function yb(e,t){return mb(dT(e.getBoundingClientRect(),t))}function hT(e,t,n){const r=yb(e,n),{scroll:o}=t;return o&&(cs(r.x,o.offset.x),cs(r.y,o.offset.y)),r}const wb=({current:e})=>e?e.ownerDocument.defaultView:null,pT=new WeakMap;class mT{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=rt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ua(m).point)},l=(m,y)=>{const{drag:v,dragPropagation:x,onDragStart:_}=this.getProps();if(v&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=uC(v),!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),fn(k=>{let P=this.getAxisMotionValue(k).get()||0;if(Ln.test(P)){const{projection:A}=this.visualElement;if(A&&A.layout){const M=A.layout.layoutBox[k];M&&(P=Qt(M)*(parseFloat(P)/100))}}this.originPoint[k]=P}),_&&Le.postRender(()=>_(m,y)),nh(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(m,y)=>{const{dragPropagation:v,dragDirectionLock:x,onDirectionLock:_,onDrag:E}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:k}=y;if(x&&this.currentDirection===null){this.currentDirection=gT(k),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",y.point,k),this.updateAxis("y",y.point,k),this.visualElement.render(),E&&E(m,y)},d=(m,y)=>this.stop(m,y),f=()=>fn(m=>{var y;return this.getAnimationState(m)==="paused"&&((y=this.getAxisMotionValue(m).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new db(t,{onSessionStart:o,onStart:l,onMove:u,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:wb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&Le.postRender(()=>l(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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Al(t,o,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=iT(u,this.constraints[t],this.elastic[t])),l.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&as(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=sT(o.layoutBox,n):this.constraints=!1,this.elastic=uT(r),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&fn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=lT(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!as(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=hT(r,o.root,this.visualElement.getTransformPagePoint());let u=oT(o.layout.layoutBox,l);if(n){const d=n(cT(u));this.hasMutatedConstraints=!!d,d&&(u=mb(d))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},p=fn(m=>{if(!Al(m,n,this.currentDirection))return;let y=f&&f[m]||{};u&&(y={min:0,max:0});const v=o?200:1e6,x=o?40:1e7,_={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,_)});return Promise.all(p).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nh(this.visualElement,t),r.start(pp(t,r,0,n,this.visualElement,!1))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fn(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()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){fn(n=>{const{drag:r}=this.getProps();if(!Al(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:d}=o.layout.layoutBox[n];l.set(t[n]-He(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!as(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();o[u]=aT({min:f,max:f},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fn(u=>{if(!Al(u,t,null))return;const d=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];d.set(He(f,p,o[u]))})}addListeners(){if(!this.visualElement.current)return;pT.set(this.visualElement,this);const t=this.visualElement.current,n=Do(t,"pointerdown",f=>{const{drag:p,dragListener:m=!0}=this.getProps();p&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();as(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Le.read(r);const u=Ko(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(fn(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=f[m].translate,y.set(y.get()+f[m].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:u=ch,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function Al(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vT extends zr{constructor(t){super(t),this.removeGroupControls=Jt,this.removeListeners=Jt,this.controls=new mT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yy=e=>(t,n)=>{e&&Le.postRender(()=>e(t,n))};class yT extends zr{constructor(){super(...arguments),this.removePointerDownListener=Jt}onPointerDown(t){this.session=new db(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Yy(t),onStart:Yy(n),onMove:r,onEnd:(l,u)=>{delete this.session,o&&Le.postRender(()=>o(l,u))}}}mount(){this.removePointerDownListener=Do(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 Yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const So={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const n=Jy(e,t.target.x),r=Jy(e,t.target.y);return`${n}% ${r}%`}},wT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=$r.parse(e);if(o.length>5)return r;const l=$r.createTransformer(e),u=typeof o[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;o[0+u]/=d,o[1+u]/=f;const p=He(d,f,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),l(o)}};class xT extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:l}=t;B2(bT),l&&(n.group&&n.group.add(l),r&&r.register&&o&&r.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:l}=this.props,u=r.projection;return u&&(u.isPresent=l,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||Le.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Wh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function xb(e){const[t,n]=ex(),r=R.useContext(zh);return w.jsx(xT,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(lx),isPresent:t,safeToRemove:n})}const bT={borderRadius:{...So,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:So,borderTopRightRadius:So,borderBottomLeftRadius:So,borderBottomRightRadius:So,boxShadow:wT};function bb(e,t,n){const r=st(e)?e:ys(e);return r.start(pp("",r,t,n)),r.animation}function Sb(e){return e instanceof SVGElement&&e.tagName!=="svg"}const ST=(e,t)=>e.depth-t.depth;class _T{constructor(){this.children=[],this.isDirty=!1}add(t){ip(this.children,t),this.isDirty=!0}remove(t){qu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ST),this.isDirty=!1,this.children.forEach(t)}}function ET(e,t){const n=Fn.now(),r=({timestamp:o})=>{const l=o-n;l>=t&&(nr(r),e(l-t))};return Le.read(r,!0),()=>nr(r)}const _b=["TopLeft","TopRight","BottomLeft","BottomRight"],kT=_b.length,Qy=e=>typeof e=="string"?parseFloat(e):e,Xy=e=>typeof e=="number"||he.test(e);function CT(e,t,n,r,o,l){o?(e.opacity=He(0,n.opacity!==void 0?n.opacity:1,PT(r)),e.opacityExit=He(t.opacity!==void 0?t.opacity:1,0,TT(r))):l&&(e.opacity=He(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let u=0;u<kT;u++){const d=`border${_b[u]}Radius`;let f=e0(t,d),p=e0(n,d);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||Xy(f)===Xy(p)?(e[d]=Math.max(He(Qy(f),Qy(p),r),0),(Ln.test(p)||Ln.test(f))&&(e[d]+="%")):e[d]=p}(t.rotate||n.rotate)&&(e.rotate=He(t.rotate||0,n.rotate||0,r))}function e0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const PT=Eb(0,.5,Lx),TT=Eb(.5,.95,Jt);function Eb(e,t,n){return r=>r<e?0:r>t?1:n(Ei(e,t,r))}function t0(e,t){e.min=t.min,e.max=t.max}function an(e,t){t0(e.x,t.x),t0(e.y,t.y)}function n0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function r0(e,t,n,r,o){return e-=t,e=lu(e,1/n,r),o!==void 0&&(e=lu(e,1/o,r)),e}function jT(e,t=0,n=1,r=.5,o,l=e,u=e){if(Ln.test(t)&&(t=parseFloat(t),t=He(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=He(l.min,l.max,r);e===l&&(d-=t),e.min=r0(e.min,t,n,d,o),e.max=r0(e.max,t,n,d,o)}function i0(e,t,[n,r,o],l,u){jT(e,t[n],t[r],t[o],t.scale,l,u)}const AT=["x","scaleX","originX"],NT=["y","scaleY","originY"];function s0(e,t,n,r){i0(e.x,t,AT,n?n.x:void 0,r?r.x:void 0),i0(e.y,t,NT,n?n.y:void 0,r?r.y:void 0)}function o0(e){return e.translate===0&&e.scale===1}function kb(e){return o0(e.x)&&o0(e.y)}function a0(e,t){return e.min===t.min&&e.max===t.max}function IT(e,t){return a0(e.x,t.x)&&a0(e.y,t.y)}function l0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Cb(e,t){return l0(e.x,t.x)&&l0(e.y,t.y)}function u0(e){return Qt(e.x)/Qt(e.y)}function c0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class OT{constructor(){this.members=[]}add(t){ip(this.members,t),t.scheduleRender()}remove(t){if(qu(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){r=l;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function RT(e,t,n){let r="";const o=e.x.translate/t.x,l=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((o||l||u)&&(r=`translate3d(${o}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:m,rotateX:y,rotateY:v,skewX:x,skewY:_}=n;p&&(r=`perspective(${p}px) ${r}`),m&&(r+=`rotate(${m}deg) `),y&&(r+=`rotateX(${y}deg) `),v&&(r+=`rotateY(${v}deg) `),x&&(r+=`skewX(${x}deg) `),_&&(r+=`skewY(${_}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const ci={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},No=typeof window<"u"&&window.MotionDebug!==void 0,vf=["","X","Y","Z"],$T={visibility:"hidden"},d0=1e3;let MT=0;function yf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Pb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ix(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Le,!(o||l))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Pb(r)}function Tb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(u={},d=t==null?void 0:t()){this.id=MT++,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,No&&(ci.totalNodes=ci.resolvedTargetDeltas=ci.recalculatedProjection=0),this.nodes.forEach(LT),this.nodes.forEach(WT),this.nodes.forEach(ZT),this.nodes.forEach(FT),No&&window.MotionDebug.record(ci)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new _T)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new sp),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const f=this.eventHandlers.get(u);f&&f.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Sb(u),this.instance=u;const{layoutId:f,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(p||f)&&(this.isLayoutDirty=!0),e){let y;const v=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=ET(v,250),Yl.hasAnimatedSinceResize&&(Yl.hasAnimatedSinceResize=!1,this.nodes.forEach(h0))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeTargetChanged:x,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||YT,{onLayoutAnimationStart:k,onLayoutAnimationComplete:P}=m.getProps(),A=!this.targetLayout||!Cb(this.targetLayout,_)||x,M=!v&&x;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||M||v&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,M);const L={...ep(E,"layout"),onPlay:k,onComplete:P};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else v||h0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,nr(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(qT),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(f0);return}this.isUpdating||this.nodes.forEach(UT),this.isUpdating=!1,this.nodes.forEach(BT),this.nodes.forEach(DT),this.nodes.forEach(zT),this.clearAllSnapshots();const d=Fn.now();wt.delta=rr(0,1e3/60,d-wt.timestamp),wt.timestamp=d,wt.isProcessing=!0,lf.update.process(wt),lf.preRender.process(wt),lf.render.process(wt),wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(VT),this.sharedNodes.forEach(HT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!kb(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;u&&(d||ui(this.latestValues)||m)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return u&&(f=this.removeTransform(f)),JT(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:d}=this.options;if(!d)return rt();const f=d.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(QT))){const{scroll:m}=this.root;m&&(cs(f.x,m.offset.x),cs(f.y,m.offset.y))}return f}removeElementScroll(u){var d;const f=rt();if(an(f,u),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let p=0;p<this.path.length;p++){const m=this.path[p],{scroll:y,options:v}=m;m!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&an(f,u),cs(f.x,y.offset.x),cs(f.y,y.offset.y))}return f}applyTransform(u,d=!1){const f=rt();an(f,u);for(let p=0;p<this.path.length;p++){const m=this.path[p];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&ds(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),ui(m.latestValues)&&ds(f,m.latestValues)}return ui(this.latestValues)&&ds(f,this.latestValues),f}removeTransform(u){const d=rt();an(d,u);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!ui(p.latestValues))continue;dh(p.latestValues)&&p.updateSnapshot();const m=rt(),y=p.measurePageBox();an(m,y),s0(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,m)}return ui(this.latestValues)&&s0(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!(!this.layout||!(y||v))){if(this.resolvedRelativeTargetAt=wt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),Lo(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),an(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):an(this.target,this.layout.layoutBox),vb(this.target,this.targetDelta)):an(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),Lo(this.relativeTargetOrigin,this.target,x.target),an(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}No&&ci.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||dh(this.parent.latestValues)||gb(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 u;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===wt.timestamp&&(p=!1),p)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;an(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,x=this.treeScale.y;fT(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=rt());const{target:_}=d;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(n0(this.prevProjectionDelta.x,this.projectionDelta.x),n0(this.prevProjectionDelta.y,this.projectionDelta.y)),zo(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==x||!c0(this.projectionDelta.x,this.prevProjectionDelta.x)||!c0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),No&&ci.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=us(),this.projectionDelta=us(),this.projectionDeltaWithTransform=us()}setAnimationOrigin(u,d=!1){const f=this.snapshot,p=f?f.latestValues:{},m={...this.latestValues},y=us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=rt(),x=f?f.source:void 0,_=this.layout?this.layout.source:void 0,E=x!==_,k=this.getStack(),P=!k||k.members.length<=1,A=!!(E&&!P&&this.options.crossfade===!0&&!this.path.some(GT));this.animationProgress=0;let M;this.mixTargetDelta=L=>{const D=L/1e3;p0(y.x,u.x,D),p0(y.y,u.y,D),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lo(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KT(this.relativeTarget,this.relativeTargetOrigin,v,D),M&&IT(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=rt()),an(M,this.relativeTarget)),E&&(this.animationValues=m,CT(m,p,this.latestValues,D,A,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(nr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{Yl.hasAnimatedSinceResize=!0,this.currentAnimation=bb(0,d0,{...u,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(d0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:f,layout:p,latestValues:m}=u;if(!(!d||!f||!p)){if(this!==u&&this.layout&&p&&jb(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||rt();const y=Qt(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+y;const v=Qt(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+v}an(d,f),ds(d,m),zo(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new OT),this.sharedNodes.get(u).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:d}=this.options;return d?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:d}=this.options;return d?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const p={};f.z&&yf("z",u,p,this.animationValues);for(let m=0;m<vf.length;m++)yf(`rotate${vf[m]}`,u,p,this.animationValues),yf(`skew${vf[m]}`,u,p,this.animationValues);u.render();for(const m in p)u.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);u.scheduleRender()}getProjectionStyles(u){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $T;const p={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Kl(u==null?void 0:u.pointerEvents)||"",p.transform=m?m(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=Kl(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!ui(this.latestValues)&&(E.transform=m?m({},""):"none",this.hasProjected=!1),E}const v=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=RT(this.projectionDeltaWithTransform,this.treeScale,v),m&&(p.transform=m(v,p.transform));const{x,y:_}=this.projectionDelta;p.transformOrigin=`${x.origin*100}% ${_.origin*100}% 0`,y.animationValues?p.opacity=y===this?(f=(d=v.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in nu){if(v[E]===void 0)continue;const{correct:k,applyTo:P}=nu[E],A=p.transform==="none"?v[E]:k(v[E],y);if(P){const M=P.length;for(let L=0;L<M;L++)p[P[L]]=A}else p[E]=A}return this.options.layoutId&&(p.pointerEvents=y===this?Kl(u==null?void 0:u.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(f0),this.root.sharedNodes.clear()}}}function DT(e){e.updateLayout()}function zT(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:r,measuredBox:o}=e.layout,{animationType:l}=e.options,u=n.source!==e.layout.source;l==="size"?fn(y=>{const v=u?n.measuredBox[y]:n.layoutBox[y],x=Qt(v);v.min=r[y].min,v.max=v.min+x}):jb(l,n.layoutBox,r)&&fn(y=>{const v=u?n.measuredBox[y]:n.layoutBox[y],x=Qt(r[y]);v.max=v.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+x)});const d=us();zo(d,r,n.layoutBox);const f=us();u?zo(f,e.applyTransform(o,!0),n.measuredBox):zo(f,r,n.layoutBox);const p=!kb(d);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:x}=y;if(v&&x){const _=rt();Lo(_,n.layoutBox,v.layoutBox);const E=rt();Lo(E,r,x.layoutBox),Cb(_,E)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=_,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function LT(e){No&&ci.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 FT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function VT(e){e.clearSnapshot()}function f0(e){e.clearMeasurements()}function UT(e){e.isLayoutDirty=!1}function BT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function h0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WT(e){e.resolveTargetDelta()}function ZT(e){e.calcProjection()}function qT(e){e.resetSkewAndRotation()}function HT(e){e.removeLeadSnapshot()}function p0(e,t,n){e.translate=He(t.translate,0,n),e.scale=He(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function m0(e,t,n,r){e.min=He(t.min,n.min,r),e.max=He(t.max,n.max,r)}function KT(e,t,n,r){m0(e.x,t.x,n.x,r),m0(e.y,t.y,n.y,r)}function GT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const YT={duration:.45,ease:[.4,0,.1,1]},g0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),v0=g0("applewebkit/")&&!g0("chrome/")?Math.round:Jt;function y0(e){e.min=v0(e.min),e.max=v0(e.max)}function JT(e){y0(e.x),y0(e.y)}function jb(e,t,n){return e==="position"||e==="preserve-aspect"&&!nT(u0(t),u0(n),.2)}function QT(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XT=Tb({attachResizeListener:(e,t)=>Ko(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wf={current:void 0},Ab=Tb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wf.current){const e=new XT({});e.mount(window),e.setOptions({layoutScroll:!0}),wf.current=e}return wf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ej={pan:{Feature:yT},drag:{Feature:vT,ProjectionNode:Ab,MeasureLayout:xb}};function w0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=r[o];l&&Le.postRender(()=>l(t,ua(t)))}class tj extends zr{mount(){const{current:t}=this.node;t&&(this.unmount=iC(t,n=>(w0(this.node,n,"Start"),r=>w0(this.node,r,"End"))))}unmount(){}}class nj extends zr{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=la(Ko(this.node.current,"focus",()=>this.onFocus()),Ko(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function x0(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");
vendor: 4,146 bytes, line 48
48const o="onTap"+(n==="End"?"":n),l=r[o];l&&Le.postRender(()=>l(t,ua(t)))}class rj extends zr{mount(){const{current:t}=this.node;t&&(this.unmount=lC(t,n=>(x0(this.node,n,"Start"),(r,{success:o})=>x0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const hh=new WeakMap,xf=new WeakMap,ij=e=>{const t=hh.get(e.target);t&&t(e)},sj=e=>{e.forEach(ij)};function oj({root:e,...t}){const n=e||document;xf.has(n)||xf.set(n,{});const r=xf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(sj,{root:e,...t})),r[o]}function aj(e,t,n){const r=oj(t);return hh.set(e,n),r.observe(e),()=>{hh.delete(e),r.unobserve(e)}}const lj={some:0,all:1};class uj extends zr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:l}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:lj[o]},d=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),v=p?m:y;v&&v(f)};return aj(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(cj(t,n))&&this.startObserver()}unmount(){}}function cj({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dj={inView:{Feature:uj},tap:{Feature:rj},focus:{Feature:nj},hover:{Feature:tj}},fj={layout:{ProjectionNode:Ab,MeasureLayout:xb}},uu={current:null},gp={current:!1};function Nb(){if(gp.current=!0,!!Lh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uu.current=e.matches;e.addListener(t),t()}else uu.current=!1}const hj=[...Xx,At,$r],pj=e=>hj.find(Qx(e)),xs=new WeakMap;function mj(e,t,n){for(const r in t){const o=t[r],l=n[r];if(st(o))e.addValue(r,o);else if(st(l))e.addValue(r,ys(o,{owner:e}));else if(l!==o)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(r);e.addValue(r,ys(u!==void 0?u:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const b0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ib{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=dp,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 x=Fn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Le.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:m}=u;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Bu(n),this.isVariantNode=ox(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in v){const _=v[x];f[x]!==void 0&&st(_)&&_.set(f[x],!1)}}mount(t){this.current=t,xs.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.forEac
vendor: 5,235 bytes, line 48
48h((n,r)=>this.bindToMotionValue(r,n)),gp.current||Nb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xs.delete(this.current),this.projection&&this.projection.unmount(),nr(this.notifyUpdate),nr(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 r=Ti.has(t),o=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),l(),u&&u(),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:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}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 r=0;r<b0.length;r++){const o=b0[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,u=t[l];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=mj(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}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ys(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Yx(o)||Vx(o))?o=parseFloat(o):!pj(o)&&$r.test(n)&&(o=Hx(t,n)),this.setBaseTarget(t,st(o)?o.get():o)),st(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const u=qh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(r&&o!==void 0)return o;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!st(l)?l:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new sp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ob extends Ib{constructor(){super(...arguments),this.KeyframeResolver=eb}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gj(e){return window.getComputedStyle(e)}class Rb extends Ob{constructor(){super(...arguments),this.type="html",this.renderInstance=mx}readValueFromInstance(t,n){if(Ti.has(n)){const r=cp(n);return r&&r.default||0}else{const r=gj(t),o=(fx(n)?r.getPropertyValue(n):r[n])||0;
48return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yb(t,n)}build(t,n,r){Gh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Xh(t,n,r)}}class $b extends Ob{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ti.has(n)){const r=cp(n);return r&&r.default||0}return n=gx.has(n)?n:Bh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wx(t,n,r)}build(t,n,r){Yh(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){vx(t,n,r,o)}mount(t){this.isSVGTag=Qh(t.tagName),super.mount(t)}}const vj=(e,t)=>Zh(e)?new $b(t):new Rb(t,{allowProjection:e!==R.Fragment}),yj=Q2({...HP,...dj,...ej,...fj},vj),mt=h2(yj);function Fo(e){const t=zu(()=>ys(e)),{isStatic:n}=R.useContext(sa);if(n){const[,r]=R.useState(e);R.useEffect(()=>t.on("change",r),[])}return t}function wj(e,t){const n=Fo(t()),r=()=>n.set(t());return r(),Fu(()=>{const o=()=>Le.preRender(r,!1,!0),l=e.map(u=>u.on("change",o));return()=>{l.forEach(u=>u()),nr(r)}}),n}function xj(e,...t){const n=e.length;function r(){let o="";for(let l=0;l<n;l++){o+=e[l];const u=t[l];u&&(o+=st(u)?u.get():u)}return o}return wj(t.filter(st),r)}function S0(e){return typeof e=="number"?e:parseFloat(e)}function _0(e,t={}){const{isStatic:n}=R.useContext(sa),r=R.useRef(null),o=Fo(st(e)?S0(e.get()):e),l=R.useRef(o.get()),u=R.useRef(()=>{}),d=()=>{const p=r.current;p&&p.time===0&&p.sample(wt.delta),f(),r.current=xP({keyframes:[o.get(),l.current],velocity:o.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:u.current})},f=()=>{r.current&&r.current.stop()};return R.useInsertionEffect(()=>o.attach((p,m)=>n?m(p):(l.current=p,u.current=m,Le.update(d),o.get()),f),[JSON.stringify(t)]),Fu(()=>{if(st(e))return e.on("change",p=>o.set(S0(p)))},[o]),o}function Mb(){!gp.current&&Nb();const[e]=R.useState(uu.current);return e}const bj=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Db(e,t){return ob(e)?e[bj(0,e.length,t)]:e}function vp(e){return typeof e=="object"&&!Array.isArray(e)}function zb(e,t,n,r){return typeof e=="string"&&vp(t)?Px(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Sj(e,t,n){return e*(t+1)}function E0(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}function _j(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(qu(e,o),r--)}}function Ej(e,t,n,r,o,l){_j(e,o,l);for(let u=0;u<t.length;u++)e.push({value:t[u],at:He(o,l,r[u]),easing:Db(n,u)})}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 Pj="easeInOut";function Tj(e,{defaultTransition:t={},...n}={},r,o){const l=t.duration||.3,u=new Map,d=new Map,f={},p=new Map;let m=0,y=0,v=0;for(let x=0;x<e.length;x++){const _=e[x];if(typeof _=="string"){p.set(_,y);continue}else if(!Array.isArray(_)){p.set(_.name,E0(y,_.at,m,p));continue}let[E,k,P={}]=_;P.at!==void 0&&(y=E0(y,P.at,m,p));let A=0;const M=(L,D,B,W=0,V=0)=>{const X=jj(L),{delay:oe=0,times:I=lb(X),type:U="keyframes",repeat:J,repeatType:ue,repeatDelay:Se=0,...Ce}=D;let{ease:le=t.ease||"easeOut",duration:H}=D;const ne=typeof oe=="function"?oe(W,V):oe,Q=X.length,N=Zu(U)?U:o==null?void 0:o[U];if(Q<=2&&N){let xe=100;if(Q===2&&Ij(X)){const ke=X[1]-X[0];xe=Math.abs(ke)}const _e={...Ce};H!==void 0&&(_e.duration=Dn(H));const Ne=tC(_e,xe,N);le=Ne.ease,H=Ne.duration}H??(H=l);const Z=y+ne;I.length===1&&I[0]===0&&(I[1]=1);const ye=I.length-X.length;if(ye>0&&ab(I,ye),X.length===1&&X.unshift(null),J){H=Sj(H,J);const xe=[...X],_e=[...I];le=Array.isArray(le)?[...le]:[le];const Ne=[...le];for(let ke=0;ke<J;ke++){X.push(...xe);for(let Oe=0;Oe<xe.length;Oe++)I.push(_e[Oe]+(ke+1)),le.push(Oe===0?"linear":Db(Ne,Oe-1))}kj(I,J)}const we=Z+H;Ej(B,X,le,I,Z,we),A=Math.max(ne+H,A),v=Math.max(we,v)};if(st(E)){const L=k0(E,d);M(k,P,C0("default",L))}else{const L=zb(E,k,r,f),D=L.length;for(let B=0;B<D;B++){k=k,P=P;const W=L[B],V=k0(W,d);for(const X in k)M(k[X],Aj(P,X),C0(X,V),B,D)}}m=y,y+=A}return d.forEach((x,_)=>{for(const E in x){const k=x[E];k.sort(Cj);const P=[],A=[],M=[];for(let D=0;D<k.length;D++){const{at:B,value:W,easing:V}=k[D];P.push(W),A.push(Ei(0,v,B)),M.push(V||"easeOut")}A[0]!==0&&(A.unshift(0),P.unshift(P[0]),M.unshift(Pj)),A[A.length-1]!==1&&(A.pu
48sh(1),P.push(null)),u.has(_)||u.set(_,{keyframes:{},transition:{}});const L=u.get(_);L.keyframes[E]=P,L.transition[E]={...t,duration:v,ease:M,times:A,...n}}}),u}function k0(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function C0(e,t){return t[e]||(t[e]=[]),t[e]}function jj(e){return Array.isArray(e)?e:[e]}function Aj(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Nj=e=>typeof e=="number",Ij=e=>e.every(Nj);function Oj(e,t){return e in t}class Rj extends Ib{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Oj(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return rt()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function $j(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Sb(e)?new $b(t):new Rb(t);n.mount(e),xs.set(e,n)}function Mj(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Rj(t);n.mount(e),xs.set(e,n)}function Dj(e,t){return st(e)||typeof e=="number"||typeof e=="string"&&!vp(t)}function Lb(e,t,n,r){const o=[];if(Dj(e,t))o.push(bb(e,vp(t)&&t.default||t,n&&(n.default||n)));else{const l=zb(e,t,r),u=l.length;for(let d=0;d<u;d++){const f=l[d],p=f instanceof Element?$j:Mj;xs.has(f)||p(f);const m=xs.get(f),y={...n};"delay"in y&&typeof y.delay=="function"&&(y.delay=y.delay(d,u)),o.push(...mp(m,{...t,transition:y},{}))}}return o}function zj(e,t,n){const r=[];return Tj(e,t,n,{spring:hp}).forEach(({keyframes:l,transition:u},d)=>{r.push(...Lb(d,l,u))}),r}function Lj(e){return Array.isArray(e)&&e.some(Array.isArray)}function Fj(e){function t(n,r,o){let l=[];return Lj(n)?l=zj(n,r,e):l=Lb(n,r,o,e),new Sx(l)}return t}const Nl=Fj(),Fb=R.createContext({activeIndex:0,activeSectionId:"home",sections:[],goToSection:()=>{},nextSection:()=>{},prevSection:()=>{},isAnimating:!1}),ca=()=>R.useContext(Fb),Vj=[{id:"home",label:"Home"},{id:"about",label:"About"},{id:"services",label:"Services"},{id:"events",label:"Events"},{id:"blogs",label:"Blogs"},{id:"contact",label:"Contact"},{id:"footer",label:"Footer"}];function Uj({children:e,fixed:t,sections:n=Vj,cooldownMs:r=950}){var A;const o=Mb(),[l,u]=R.useState(0),[d,f]=R.useState(900),p=R.useRef(null),m=R.useRef(l),y=R.useRef(!1),v=R.useRef(null);R.useEffect(()=>{const M=window.location.hash.slice(1),L=n.findIndex(D=>D.id===M);return L>=0&&(m.current=L,u(L),window.scrollTo(0,0)),()=>clearTimeout(v.current)},[n]),R.useEffect(()=>{m.current=l},[l]),R.useEffect(()=>{const M=()=>{p.current?f(p.current.clientHeight):f(window.innerHeight)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]);const x=R.useCallback(M=>{var D;let L=0;if(typeof M=="string"){const B=M.replace("#",""),W=n.findIndex(V=>V.id===B);if(W===-1)return;L=W}else typeof M=="number"&&(L=M);L<0&&(L=0),L>=n.length&&(L=n.length-1),!(L===m.current&&!y.current)&&(y.current=!0,u(L),m.current=L,p.current&&(p.current.scrollTop=0),typeof window<"u"&&window.scrollTo(0,0),typeof window<"u"&&((D=window.history)!=null&&D.replaceState)&&window.history.replaceState(null,"",`#${n[L].id}`),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{y.current=!1},r))},[n,r]),_=R.useCallback(()=>{m.current<n.length-1&&x(m.current+1)},[x,n.length]),E=R.useCallback(()=>{m.current>0&&x(m.current-1)},[x]);R.useEffect(()=>{const M=()=>{if(window.location.hash){const L=window.location.hash.replace("#",""),D=n.findIndex(B=>B.id===L);D!==-1&&D!==m.current&&x(D)}};return window.addEventListener("hashchange",M),()=>window.removeEventListener("hashchange",M)},[x,n]),R.useEffect(()=>{const M=p.current;if(!M)return;const L=D=>{if(y.current){D.preventDefault();return}if(Math.abs(D.deltaY)<30)return;let W=D.target,V=null;for(;W&&W!==M;){if(W.scrollHeight>W.clientHeight+25&&["auto","scroll"].includes(window.getComputedStyle(W).overflowY)){V=W;break}W=W.parentElement}if(V){const{scrollTop:X,scrollHeight:oe,clientHeight:I}=V,U=X<=3,J=X+I>=oe-4;if(D.deltaY>0&&!J||D.deltaY<0&&!U)return}D.deltaY>0?m.current<n.length-1&&(D.preventDefault(),_()):D.deltaY<0&&m.current>0&&(D.preventDefault(),E())};return M.addEventListener("wheel",L,{passive:!1}),()=>M.removeEventListener("wheel",L)},[_,E,n.length]),R.useEffect(()=>{const M=p.current;if(!M)return;let L=0,D=0;const B=V=>{V.touches.length===1&&(L=V.touches[0].clientY,D=V.touches[0].clientX)},W=V=>{if(y.current||V.changedTouches.length!==1)return;const X=V.changedTouches[0].clientY,oe=V.changedTouches[0].clientX,I=L-X,U=D-oe;if(Math.abs(I)<45||Math.abs(I)<Math.abs(U))return;let J=V.target,ue=null;for(;J&&J!==M;){if(J.scrollHeight>J.clientHeight+25&&["auto","scroll"].includes(window.getComputedStyle(J).overflowY)){ue=J;break}J=J.parentElement}if(ue){const{scrollTop:Se,scrollHeight:Ce,clientHeight:le}=ue,H=Se<=3,ne=Se+le>=Ce-4;if(I>0&&!ne||I<0&&!H)return}I>0?_():E()};return M.addEventListener("touchstart",B,{passive:!0}),M.addEventListener("touchend",W,{passive:!0}),()=>{M.removeEventListener("touchstart",B),M.removeEventListener("touchend",W)}},[_,E]),R.useEffect(()=>{const M=L=>{var B,W;if(y.current)return;const D=(B=L.target)==null?void 0:B.tagName;["INPUT","TEXTAREA","SELECT"].includes(D)||(W=L.target)!=null&&W.isContentEditable||(["ArrowDown","PageDown"].includes(L.key)?m.current<n.length-1&&(L.preventDefault(),_()):["ArrowUp","PageUp"].includes(L.key)?m.current>0&&(L.preventDefault(),E()):L.key===" "?(L.preventDefault(),L.shiftKey?m.current>0&&E():m.current<n.length-1&&_()):L.key==="Home"?(L.preventDefault(),x(0)):L.key==="End"&&(L.preventDefault(),x(n.length-1)))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[x,_,E,n.length]);const k=((A=n[l])==null?void 0:A.id)||"home",P={activeIndex:l,activeSectionId:k,sections:n,goToSection:x,nextSection:_,prevSection:E,isAnimating:y.current};return w.jsx(Fb.Provider,{value:P,children:w.jsxs("div",{ref:p,"data-fullpage-viewport":!0,className:"relative w-full h-screen h-[100dvh] overflow-hidden select-none bg-[var(--paper)]",children:[t,w.jsx(mt.main,{id:"main-content","data-fullpage-stack":!0,className:"w-full h-full will-change-transform",animate:{y:-l*d},transition:{duration:o?.05:.9,ease:[.22,1,.36,1]},children:e})]})})}/** 49 * @license lucide-react v0.475.0 - ISC 50 * 51 * This source code is licensed under the ISC license. 52 * See the LICENSE file in the root directory of this source tree. 53 */const Bj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vb=(...e)=>
vendor: 4,781 bytes, lines 53-123
53e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 54 * @license lucide-react v0.475.0 - ISC 55 * 56 * This source code is licensed under the ISC license. 57 * See the LICENSE file in the root directory of this source tree. 58 */var Wj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 59 * @license lucide-react v0.475.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const Zj=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:u,...d},f)=>R.createElement("svg",{ref:f,...Wj,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Vb("lucide",o),...d},[...u.map(([p,m])=>R.createElement(p,m)),...Array.isArray(l)?l:[l]]));/** 64 * @license lucide-react v0.475.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */const Ue=(e,t)=>{const n=R.forwardRef(({className:r,...o},l)=>R.createElement(Zj,{ref:l,iconNode:t,className:Vb(`lucide-${Bj(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 69 * @license lucide-react v0.475.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const qj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Hj=Ue("ArrowRight",qj);/** 74 * @license lucide-react v0.475.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const Kj=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],ph=Ue("ArrowUpRight",Kj);/** 79 * @license lucide-react v0.475.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const Gj=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Yj=Ue("ArrowUp",Gj);/** 84 * @license lucide-react v0.475.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const Jj=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]],Qj=Ue("CalendarX",Jj);/** 89 * @license lucide-react v0.475.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Xj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],eA=Ue("Check",Xj);/** 94 * @license lucide-react v0.475.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const tA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Gu=Ue("ChevronLeft",tA);/** 99 * @license lucide-react v0.475.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const nA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yu=Ue("ChevronRight",nA);/** 104 * @license lucide-react v0.475.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const rA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],rs=Ue("CircleAlert",rA);/** 109 * @license lucide-react v0.475.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const iA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],sA=Ue("CircleCheck",iA);/** 114 * @license lucide-react v0.475.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const oA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Ub=Ue("Clock",oA);/** 119 * @license lucide-react v0.475.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const aA=[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}
123],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]],lA=Ue("Cog",aA);/** 124 * @license lucide-react v0.475.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const uA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Bb=Ue("ExternalLink",uA);/** 129 * @license lucide-react v0.475.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const cA=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],dA=Ue("FlaskConical",cA);/** 134 * @license lucide-react v0.475.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const fA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],hA=Ue("Globe",fA);/** 139 * @license lucide-react v0.475.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const pA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],mA=Ue("Grid3x3",pA);/** 144 * @license lucide-react v0.475.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const gA=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]],P0=Ue("ImageOff",gA);/** 149 * @license lucide-react v0.475.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const vA=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]],yA=Ue("LayoutPanelTop",vA);/** 154 * @license lucide-react v0.475.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const wA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xA=Ue("LoaderCircle",wA);/** 159 * @license lucide-react v0.475.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const bA=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Go=Ue("Mail",bA);/** 164 * @license lucide-react v0.475.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const SA=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],yp=Ue("MapPin",SA);/** 169 * @license lucide-react v0.475.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const _A=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],EA=Ue("Maximize2",_A);/** 174 * @license lucide-react v0.475.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const kA=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],CA=Ue("Package",kA);/** 179 * @license lucide-react v0.475.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const PA=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],wp=Ue("Phone",PA);/** 184 * @license lucide-react v0.475.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const TA=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],jA=Ue("Send",TA);/** 189 * @license lucide-react v0.475.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const AA=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
193y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wb=Ue("ShieldCheck",AA);/** 194 * @license lucide-react v0.475.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const NA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xp=Ue("X",NA),IA=[{name:"HOME",href:"#home"},{name:"ABOUT",href:"#about"},{name:"SERVICES",href:"#services"},{name:"EVENTS",href:"#events"},{name:"BLOGS",href:"#blogs"},{name:"CONTACT US",href:"#contact"}],T0=new Set(["home","services","footer"]),OA=["home","about","services","events","blogs","contact","footer"];function RA(){const e=ca(),[t,n]=R.useState(!1),r=R.useRef(null),o=(e==null?void 0:e.activeSectionId)||"home",l=e==null?void 0:e.goToSection,[u,d]=R.useState(!0);R.useEffect(()=>{const p=()=>{if(typeof window>"u")return;const y=r.current;if(y){const v=y.getBoundingClientRect(),x=v.top+v.height/2;for(const _ of OA){const E=document.getElementById(_);if(E){const k=E.getBoundingClientRect();if(k.top<=x&&k.bottom>x){d(T0.has(_));return}}}}d(T0.has(o))};p();let m;if(e!=null&&e.isAnimating){const y=()=>{p(),e!=null&&e.isAnimating&&(m=requestAnimationFrame(y))};m=requestAnimationFrame(y)}return window.addEventListener("resize",p),()=>{m&&cancelAnimationFrame(m),window.removeEventListener("resize",p)}},[o,e==null?void 0:e.isAnimating]),R.useEffect(()=>{const p=m=>{m.key==="Escape"&&n(!1)};return t?(document.body.style.overflow="hidden",window.addEventListener("keydown",p)):document.body.style.overflow="",()=>{document.body.style.overflow="",window.removeEventListener("keydown",p)}},[t]);const f=p=>{n(!1);const m=p.replace("#","");if(l)l(m);else{const y=document.getElementById(m);y&&y.scrollIntoView({behavior:"smooth"})}};return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"fixed left-0 top-[33%] -translate-y-1/2 z-40 select-none transition-all duration-300 w-[96px] sm:w-[126px] md:w-[156px] h-[192px] sm:h-[252px] md:h-[312px] group",children:[w.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{clipPath:"url(#nimbusBadgeGlassClip)",WebkitClipPath:"url(#nimbusBadgeGlassClip)",backdropFilter:"blur(5px) saturate(135%) contrast(102%)",WebkitBackdropFilter:"blur(5px) saturate(135%) contrast(102%)",transform:"translateZ(0)"}}),w.jsxs("svg",{viewBox:"0 0 230 460",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute top-0 left-0 w-full h-full overflow-visible pointer-events-none",children:[w.jsxs("defs",{children:[w.jsxs("clipPath",{id:"nimbusBadgeGlassClip",clipPathUnits:"objectBoundingBox",children:[w.jsx("path",{d:"M 0 0 C 0.117391 0.084783, 0.952174 0.078261, 0.986957 0.282609 C 0.969565 0.443478, 0.221739 0.436957, 0 0.608696 Z"}),w.jsx("path",{d:"M 0 0.369565 C 0.386957 0.376087, 0.813043 0.28913, 0.769565 0.51087 C 0.778261 0.615217, 0.178261 0.908696, 0 1 Z"})]}),w.jsx("clipPath",{id:"nimbusUpperGlassClip",clipPathUnits:"objectBoundingBox",children:w.jsx("path",{d:"M 0 0 C 0.117391 0.084783, 0.952174 0.078261, 0.986957 0.282609 C 0.969565 0.443478, 0.221739 0.436957, 0 0.608696 Z"})}),w.jsx("clipPath",{id:"nimbusLowerGlassClip",clipPathUnits:"objectBoundingBox",children:w.jsx("path",{d:"M 0 0.369565 C 0.386957 0.376087, 0.813043 0.28913, 0.769565 0.51087 C 0.778261 0.615217, 0.178261 0.908696, 0 1 Z"})}),w.jsxs("linearGradient",{id:"nimbusLowerGlassGrad",x1:"0%",y1:"0%",x2:"100%",y2:"80%",children:[w.jsx("stop",{offset:"0%",stopColor:"#0B2E5C",stopOpacity:"0.48"}),w.jsx("stop",{offset:"40%",stopColor:"#14509C",stopOpacity:"0.32"}),w.jsx("stop",{offset:"75%",stopColor:"#14509C",stopOpacity:"0.20"}),w.jsx("stop",{offset:"100%",stopColor:"#159A8A",stopOpacity:"0.14"})]}),w.jsxs("linearGradient",{id:"nimbusUpperGlassGrad",x1:"0%",y1:"0%",x2:"100%",y2:"80%",children:[w.jsx("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:"0.32"}),w.jsx("stop",{offset:"35%",stopColor:"#FFFFFF",stopOpacity:"0.20"}),w.jsx("stop",{offset:"70%",stopColor:"#F0F5FA",stopOpacity:"0.12"}),w.jsx("stop",{offset:"100%",stopColor:"#E2ECF7",stopOpacity:"0.08"})]}),w.jsxs("filter",{id:"badgeGlassSoftShadow",x:"-25%",y:"-20%",width:"160%",height:"160%",children:[w.jsx("feDropShadow",{dx:"2",dy:"8",stdDeviation:"12",floodColor:"#05152B",floodOpacity:"0.10"}),w.jsx("feDropShadow",{dx:"1",dy:"3",stdDeviation:"4",floodColor:"#0B2E5C",floodOpacity:"0.06"})]})]}),w.jsx("path",{d:`M 0 170 199 C 89 173, 187 133, 177 235 200 C 179 283, 41 418, 0 460
201 Z`,fill:"url(#nimbusLowerGlassGrad)",filter:"url(#badgeGlassSoftShadow)"}),w.jsx("path",{d:`M 0 0 202 C 27 39, 219 36, 227 130 203 C 223 204, 51 201, 0 280 204 Z`,fill:"url(#nimbusUpperGlassGrad)",filter:"url(#badgeGlassSoftShadow)"})]}),w.jsxs("div",{className:"relative w-full h-full z-10 pointer-events-auto",children:[w.jsx("a",{href:"#home",onClick:p=>{l&&!p.metaKey&&!p.ctrlKey&&!p.shiftKey&&!p.altKey&&p.button===0&&(p.preventDefault(),l("home"))},className:"absolute top-[20%] sm:top-[21%] md:top-[22%] left-2.5 sm:left-3.5 md:left-4.5 w-[75%] h-[15%] flex items-center justify-start focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--nimbus-teal)] rounded-md transition-transform hover:scale-105","aria-label":"Nimbus Chemtech Home",children:w.jsx("img",{ref:r,src:"/logo.png",alt:"Nimbus Chemtech",className:`h-5.5 sm:h-7 md:h-8.5 w-auto max-w-[68px] sm:max-w-[90px] md:max-w-[112px] object-contain transition-all duration-300 ease-in-out hover:opacity-90 ${u?"brightness-0 invert drop-shadow-[0_1px_2px_rgba(0,0,0,0.6)]":"filter-none drop-shadow-sm"}`})}),w.jsxs("button",{type:"button",onClick:()=>n(!0),className:"group/btn absolute top-[59%] sm:top-[60%] md:top-[61%] left-2 sm:left-2.5 md:left-3.5 w-[44%] sm:w-[45%] h-[18%] sm:h-[16%] flex flex-col items-center justify-center gap-0.5 sm:gap-1 cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white rounded-lg transition-all duration-200 hover:translate-x-0.5 active:scale-95 text-white","aria-expanded":t,"aria-label":"Open Navigation Menu",children:[w.jsxs("div",{className:"flex flex-col items-center justify-center gap-0.5 sm:gap-1 w-3.5 sm:w-4.5 md:w-5.5",children:[w.jsx("span",{className:"w-full h-[1.5px] sm:h-[2px] bg-white rounded-full transition-all group-hover/btn:bg-[#48E5C2] drop-shadow-[0_1px_1.5px_rgba(5,21,43,0.7)]"}),w.jsx("span",{className:"w-4/5 h-[1.5px] sm:h-[2px] bg-white rounded-full transition-all group-hover/btn:w-full group-hover/btn:bg-[#48E5C2] drop-shadow-[0_1px_1.5px_rgba(5,21,43,0.7)]"}),w.jsx("span",{className:"w-full h-[1.5px] sm:h-[2px] bg-white rounded-full transition-all group-hover/btn:bg-[#48E5C2] drop-shadow-[0_1px_1.5px_rgba(5,21,43,0.7)]"})]}),w.jsx("span",{className:"text-[8px] sm:text-[9.5px] md:text-[11px] font-bold tracking-[0.16em] uppercase text-white group-hover/btn:text-[#48E5C2] transition-colors font-sans mt-0.5 drop-shadow-[0_1px_1.5px_rgba(5,21,43,0.8)]",children:"MENU"})]})]})]}),w.jsx(tx,{children:t&&w.jsxs(mt.div,{initial:{opacity:0}
204,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:[.22,1,.36,1]},className:"fixed inset-0 z-50 w-screen h-screen h-[100dvh] max-h-[100dvh] overflow-hidden bg-[#05152B]/95 backdrop-blur-2xl flex flex-col justify-between p-6 sm:p-10 select-none text-white",children:[w.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-[var(--nimbus-blue)]/20 rounded-full blur-[140px] pointer-events-none"}),w.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-[var(--nimbus-teal)]/15 rounded-full blur-[140px] pointer-events-none"}),w.jsxs("div",{className:"relative z-10 w-full flex items-center justify-between",children:[w.jsx("div",{className:"flex items-center gap-3",children:w.jsx("img",{src:"/logo.png",alt:"Nimbus Chemtech",className:"h-8 sm:h-10 w-auto brightness-0 invert opacity-90"})}),w.jsxs("div",{className:"hidden sm:block text-right",children:[w.jsx("span",{className:"text-xs font-bold tracking-[0.14em] uppercase text-[var(--nimbus-teal)] block",children:"NIMBUS CHEMTECH"}),w.jsx("span",{className:"text-[11px] text-white/60",children:"Pharmaceutical Indenting & Sourcing"})]})]}),w.jsx("div",{className:"fixed left-4 sm:left-8 md:left-12 top-[33%] -translate-y-1/2 z-30 select-none",children:w.jsxs("button",{type:"button",onClick:()=>n(!1),className:"flex flex-col items-center justify-center gap-1.5 p-2 rounded-xl text-white/80 hover:text-white transition-all group focus-visible:outline-2 focus-visible:outline-[var(--nimbus-teal)]","aria-label":"Close navigation menu",children:[w.jsx("div",{className:"w-11 h-11 sm:w-12 sm:h-12 rounded-full border border-white/30 flex items-center justify-center group-hover:border-white group-hover:scale-105 group-hover:bg-white/10 transition-all shadow-lg",children:w.jsx(xp,{className:"w-5 h-5 sm:w-6 sm:h-6 text-white transition-transform group-hover:rotate-90"})}),w.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold tracking-[0.2em] uppercase text-white/90 group-hover:text-white font-sans",children:"CLOSE"})]})}),w.jsx("div",{className:"relative z-10 my-auto flex flex-col items-center justify-center text-center",children:w.jsx("nav",{className:"flex flex-col gap-4 sm:gap-5 md:gap-6","aria-label":"Main Overlay Navigation",children:IA.map((p,m)=>{const y=p.href.replace("#",""),v=o===y;return w.jsx(mt.div,{initial:{opacity:0,y:25},animate:{opacity:1,y:0},exit:{opacity:0,y:-15},transition:{duration:.35,delay:.06*m,ease:[.22,1,.36,1]},children:w.jsxs("a",{href:p.href,onClick:x=>{x.metaKey||x.ctrlKey||x.shiftKey||x.altKey||x.button!==0||(x.preventDefault(),f(p.href))},"aria-current":v?"location":void 0,className:`group relative inline-flex flex-col items-center py-1.5 sm:py-2 transition-all duration-300 focus-visible:outline-2 focus-visible:outline-[var(--nimbus-teal)] rounded-xl ${v?"text-white":"text-white/80 hover:text-white"}`,children:[w.jsxs("div",{className:"flex items-center gap-2.5",children:[w.jsx("span",{className:`text-xl sm:text-2xl md:text-3xl font-heading font-medium tracking-wider transition-all duration-300 group-hover:tracking-widest ${v?"text-[var(--nimbus-teal)] font-semibold":"text-white"}`,children:p.name}),v&&w.jsx("span",{className:"w-2 h-2 rounded-full bg-[var(--nimbus-teal)] animate-pulse"})]}),w.jsx("span",{className:`mt-1.5 h-0.5 rounded-full transition-all duration-300 ${v?"w-10 sm:w-12 bg-[var(--nimbus-teal)]":"w-0 group-hover:w-8 sm:group-hover:w-10 bg-white/60"}`})]})},p.name)})})}),w.jsxs("div",{className:"relative z-10 w-full pt-4 border-t border-white/10 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-white/60 font-sans",children:[w.jsxs("div",{className:"flex flex-wrap items-center justify-center sm:justify-start gap-4",children:[w.jsxs("span",{className:"flex items-center gap-1.5",children:[w.jsx(yp,{className:"w-3.5 h-3.5 text-[var(--nimbus-teal)]"}),"39 Commercial Cavalry Ground, Lahore Cantt"]}),w.jsx("span",{className:"hidden md:inline text-white/30",children:"|"}),w.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-1.5 hover:text-white transition-colors",children:[w.jsx(Go,{className:"w-3.5 h-3.5 text-[var(--nimbus-teal)]"}),"[email protected]"]}),w.jsx("span",{className:"hidden md:inline text-white/30",children:"|"}),w.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-1.5 hover:text-white transition-colors",children:[w.jsx(Go,{className:"w-3.5 h-3.5 text-[var(--nimbus-teal)]"}),"[email protected]"]}),w.jsx("span",{className:"hidden md:inline text-white/30",children:"|"}),w.jsxs("a",{href:"tel:+924236610428",className:"flex items-center gap-1.5 hover:text-white transition-colors",children:[w.jsx(wp,{className:"w-3.5 h-3.5 text-[var(--nimbus-teal)]"}),"+92 42 3661 0428"]})]}),w.jsxs("div",{className:"flex items-center gap-2 text-white/80",children:[w.jsx(Wb,{className:"w-4 h-4 text-[var(--nimbus-teal)]"}),w.jsx("span",{className:"text-[11px] uppercase tracking-wider font-semibold",children:"Global Pharmaceutical Sourcing"})]})]})]})})]})}
204function bp(e){const[t,n]=R.useState(!1);return R.useEffect(()=>{var u;const r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=navigator.connection,l=()=>n(!document.hidden&&!r.matches&&!(o!=null&&o.saveData));return l(),document.addEventListener("visibilitychange",l),r.addEventListener("change",l),(u=o==null?void 0:o.addEventListener)==null||u.call(o,"change",l),()=>{var d;document.removeEventListener("visibilitychange",l),r.removeEventListener("change",l),(d=o==null?void 0:o.removeEventListener)==null||d.call(o,"change",l)}},[]),e&&t}const bf=[{id:"api",number:"01",title:"API (Active Pharmaceutical Ingredients)",shortLabel:"01 · API Sourcing",src:"/videos/01-api.mp4",tagline:"High-purity chemical synthesis, reaction intermediates & pharmacopeial compliance"},{id:"machine",number:"02",title:"Pharmaceutical Machine",shortLabel:"02 · Machinery & Press",src:"/videos/02-pharmaceutical-machine.mp4",tagline:"Automated rotary tablet presses, blister packaging & liquid filling lines"},{id:"cleanroom",number:"03",title:"Clean Room System",shortLabel:"03 · Clean Room Facility",src:"/videos/03-clean-room-system.mp4",tagline:"Modular cleanroom panels, HVAC laminar airflow & sterile environments"},{id:"raw-material",number:"04",title:"Pharmaceutical Raw Material",shortLabel:"04 · Raw Materials & Excipients",src:"/videos/04-pharmaceutical-raw-material.mp4",tagline:"Solid oral dosage excipients, bulk powders & audited raw chemicals"}],$A=7500;function MA(){const[e,t]=R.useState(0),[n,r]=R.useState(0),[o,l]=R.useState([]),u=R.useRef([]),d=R.useRef(null),{goToSection:f,activeSectionId:p}=ca(),m=bp(p==="home");R.useEffect(()=>{m&&l(v=>v.includes(e)?v:[...v,e])},[e,m]),R.useEffect(()=>{if(d.current&&clearTimeout(d.current),!!m)return d.current=setTimeout(()=>{t(v=>(v+1)%bf.length)},$A),()=>{d.current&&clearTimeout(d.current),d.current=null}},[e,m]),R.useEffect(()=>{u.current.forEach((v,x)=>{var _;if(v){if(!m||x!==e){v.pause();return}v.getAttribute("src")&&(v.readyState>=2&&r(e),(_=v.play())==null||_.catch(()=>{}))}})},[e,m,o]);const y=v=>{d.current&&(clearTimeout(d.current),d.current=null);const x=u.current[v];(x==null?void 0:x.readyState)>=1&&v!==e&&(x.currentTime=0),l(_=>_.includes(v)?_:[..._,v]),t(v),r(v)};return w.jsxs("section",{id:"home",className:"relative h-screen min-h-[100dvh] w-full flex-shrink-0 flex items-center justify-center overflow-hidden bg-[var(--nimbus-deep)]",children:[w.jsxs("div",{className:"absolute inset-0 z-0 overflow-hidden pointer-events-none select-none",children:[bf.map((v,x)=>{const _=n===x;return w.jsx("video",{ref:E=>u.current[x]=E,src:o.includes(x)?v.src:void 0,poster:x===n||x===e?`/images/hero/${v.src.split("/").pop().replace(".mp4",".webp")}`:void 0,width:"1280",height:"720","aria-hidden":"true",onLoadedData:()=>{x===e&&r(x)},muted:!0,playsInline:!0,loop:!0,preload:m&&x===e?"auto":"none",className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-1000 ease-in-out will-change-[opacity] ${_?"opacity-100 z-10":"opacity-0 z-0"}`,style:{filter:"brightness(0.85) contrast(1.05)"}},v.id)}),w.jsx("div",{className:"absolute inset-0 z-10 bg-gradient-to-r from-[#05152B]/95 via-[#0B2E5C]/80 to-[#05152B]/40 md:to-[#14509C]/25"}),w.jsx("div",{className:"absolute inset-0 z-10 bg-gradient-to-b from-[#05152B]/80 via-transparent to-[#05152B]/95"}),w.jsx("div",{className:"absolute inset-0 z-10 opacity-15 pointer-events-none",style:{backgroundImage:"radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 0)",backgroundSize:"32px 32px"}})]}),w.jsx("div",{className:"absolute right-4 sm:right-6 md:right-8 top-1/2 -translate-y-1/2 z-30 hidden sm:flex flex-col items-end gap-3",role:"tablist","aria-label":"Hero video slides",children:bf.map((v,x)=>{const _=e===x;return w.jsxs("button",{type:"button",role:"tab","aria-selected":_,"aria-label":`Slide ${x+1}: ${v.title}`,onClick:()=>y(x),className:"group flex items-center gap-2.5 py-1 focus-visible:outline-2 focus-visible:outline-blue-400 rounded-full",children:[w.jsx("span",{className:`hidden lg:block text-[11px] font-semibold tracking-wider uppercase transition-all duration-200 pointer-events-none whitespace-nowrap ${_?"text-blue-400 opacity-100 font-bold drop-shadow-md":"text-white/60 opacity-0 group-hover:opacity-100 group-hover:text-white"}`,children:v.shortLabel}),w.jsx("div",{className:`h-1 sm:h-1.5 rounded-full transition-all duration-300 ${_?"w-8 sm:w-10 bg-blue-600 sm:bg-[#14509C] ring-1 ring-blue-400/80 shadow-lg shadow-blue-500/60":"w-3.5 sm:w-5 bg-white/40 group-hover:bg-white/90 group-hover:w-6"}`})]},v.id)})}),w.jsxs("div",{className:"relative z-20 mx-auto w-full max-w-5xl px-6 sm:px-12 md:px-16 text-center flex flex-col items-center justify-center",children:[w.jsx(mt.h1,{initial:!1,animate:{o
204pacity:1,y:0},transition:{duration:.65,delay:.1,ease:[.22,1,.36,1]},className:"text-3xl sm:text-5xl lg:text-6xl font-semibold leading-[1.12] max-w-[22ch] mx-auto text-white font-heading tracking-tight mb-4 sm:mb-5",children:"Pharmaceutical raw material sourcing in Pakistan."}),w.jsx(mt.p,{initial:!1,animate:{opacity:1,y:0},transition:{duration:.65,delay:.22,ease:[.22,1,.36,1]},className:"text-sm sm:text-base md:text-lg text-white/90 leading-relaxed max-w-[62ch] mx-auto mb-6 sm:mb-8 font-sans drop-shadow-sm",children:"Based in Lahore, Nimbus Chemtech connects Pakistanâs pharmaceutical industry with global manufacturers of active pharmaceutical ingredients (APIs), intermediates, machinery, packaging materials and cleanroom systems."}),w.jsxs(mt.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.65,delay:.32,ease:[.22,1,.36,1]},className:"flex flex-col sm:flex-row items-center justify-center gap-3.5 sm:gap-4 mb-7 sm:mb-9 w-full",children:[w.jsxs("a",{href:"#services",onClick:v=>{v.preventDefault(),f&&f("services")},className:"group relative w-full sm:w-auto inline-flex items-center justify-center gap-2 overflow-hidden px-7 py-3 sm:py-3.5 rounded-full font-semibold text-white border border-[var(--nimbus-blue)] hover:border-white shadow-lg shadow-[#0B2E5C]/50 hover:shadow-xl transition-all duration-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--nimbus-teal)]",children:[w.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 bg-[var(--nimbus-blue)] rounded-full transition-transform duration-500 ease-out group-hover:translate-x-full pointer-events-none"}),w.jsxs("span",{className:"relative z-10 inline-flex items-center justify-center gap-2",children:[w.jsx("span",{children:"Explore Our Products"}),w.jsx(Hj,{className:"w-4 h-4 transition-transform duration-300 group-hover:translate-x-1"})]})]}),w.jsxs("a",{href:"#contact",onClick:v=>{v.preventDefault(),f&&f("contact")},className:"group relative w-full sm:w-auto inline-flex items-center justify-center gap-2 overflow-hidden px-7 py-3 sm:py-3.5 rounded-full font-semibold text-white border border-white/80 hover:border-[var(--nimbus-blue)] backdrop-blur-sm shadow-md hover:shadow-xl hover:shadow-[#0B2E5C]/50 transition-all duration-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--nimbus-teal)]",children:[w.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 bg-[var(--nimbus-blue)] rounded-full -translate-x-full group-hover:translate-x-0 transition-transform duration-500 ease-out pointer-events-none"}),w.jsx("span",{className:"relative z-10 inline-flex items-center justify-center gap-2",children:w.jsx("span",{children:"Request a Quotation"})})]})]}),w.jsxs(mt.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.65,delay:.44,ease:[.22,1,.36,1]},className:"pt-6 sm:pt-8 border-t border-white/20 grid grid-cols-1 sm:grid-cols-3 gap-5 sm:gap-0 sm:divide-x sm:divide-white/20 text-white w-full max-w-4xl mx-auto",children:[w.jsxs("div",{className:"flex items-center justify-center sm:px-4 first:pl-0 gap-3",children:[w.jsx(Ub,{className:"w-5 h-5 text-[var(--nimbus-teal)] shrink-0"}),w.jsxs("div",{className:"text-left",children:[w.jsx("span",{className:"text-sm font-semibold tracking-wide block",children:"20+ Years"}),w.jsx("span",{className:"text-xs text-white/75",children:"Industry Experience"})]})]}),w.jsxs("div",{className:"flex items-center justify-center sm:px-6 gap-3",children:[w.jsx(hA,{className:"w-5 h-5 text-[var(--nimbus-teal)] shrink-0"}),w.jsxs("div",{className:"text-left",children:[w.jsx("span",{className:"text-sm font-semibold tracking-wide block",children:"Worldwide Supplier Network"}),w.jsx("span",{className:"text-xs text-white/75",children:"GMP Audited Partners"})]})]}),w.jsxs("div",{className:"flex items-center justify-center sm:px-6 gap-3",children:[w.jsx(Wb,{className:"w-5 h-5 text-[var(--nimbus-teal)] shrink-0"}),w.jsxs("div",{className:"text-left",children:[w.jsx("span",{className:"text-sm font-semibold tracking-wide block",children:"Regulatory & Technical Support"}),w.jsx("span",{className:"text-xs text-white/75",children:"End-to-End Compliance"})]})]})]})]})]})}function Zb({id:e,label:t,title:n,subtitle:r,tone:o="paper",children:l,className:u="",titleClassName:d="",labelClassName:f="",headerClassName:p="",headerAddon:m=null,containerClassName:y="",contentMaxWidth:v="max-w-6xl",contentClassName:x=""}){const _=o==="sky"?"bg-[var(--nimbus-sky)]":"bg-[var(--paper)]";return w.jsx("section",{id:e,className:`relative h-screen min-h-[100dvh] w-full flex-shrink-0 flex flex-col justify-center overflow-hidden ${_} ${u}`,children:w.jsx("div",{"data-scroll-container":!0,className:`w-full h-full overflow-y-auto overflow-x-hidden flex flex-col ${y||"py-10 sm:py-14 md:py-16"} px-5 md:px-8`,children:w.jsxs("div",{className:`mx-auto w-full ${v} my-auto ${x}`.trim(),children:[(t||n||r||m)&&w.jsxs(mt.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.2},transition:{duration:.6,ease:[.22,1,.36,1]},className:p||"mb-8 md:mb-12 text-center md:text-left",children:[t&&w.jsx("p",{className:f||"text-xs md:text-sm font-semibold text-[var(--nimbus-teal)] tracking-[0.06em] uppercase mb-2",children:t}),n&&(Xw.isValidElement(n)?n:w.jsx("h2",{className:d||"text-2xl sm:text-3xl md:text-4xl font-semibold tracking-[0.18em] text-[var(--nimbus-deep)] uppercase font-heading",children:n})),m,r&&w.jsx("p",{className:"text-[var(--ink-soft)] text-sm sm:text-base md:text-lg mt-2.5 max-w-[68ch]",children:r})]}),w.jsx(mt.div,{initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.65,delay:.1,ease:[.22,1,.36,1]},children:l})]})})})}function DA({text:e="20+ Years of Excellence",children:t,as:n="h2",className:r="",springConfig:o={damping:25,stiffness:200,mass:.5},radius:l="360px",maxBrightness:u=.7,...d}){const f=R.useRef(null),p=R.useRef(null),m=R.useRef(null),y=R.useRef(null),v=Mb(),x=Fo(50),_=Fo(50),E=_0(x,o),k=_0(_,o),P=Fo(0),A=xj`radial-gradient(circle ${l} at ${E}% ${k}%, #F0F6FC 0%, #E2EEF9 8%, #C4DFF8 20%, #8FBCEB 36%, #4B83C4 52%, #2B62A4 68%, #16417A 84%, var(--nimbus-deep, #0B2E5C) 100%)`,M=oe=>{const I=p.current||m.current;if(!I)return null;const U=I.getBoundingClientRect();if(U.width<=0||U.height<=0)return null;const J=(oe.clientX-U.left)/U.width*100,ue=(oe.clientY-U.top)/U.height*100;return{x:Math.max(-10,Math.min(110,J)),y:Math.max(-20,Math.min(120,ue))}},L=oe=>{if(v||oe.pointerType==="touch")return;const I=M(oe);I&&(x.set(I.x),_.set(I.y),E.stop&&E.stop(),E.jump&&E.jump(I.x),k.stop&&k.stop(),k.jump&&k.jump(I.y),y.current&&y.current.stop(),y.current=Nl(P,u,{duration:.28,ease:"easeOut"}))},D=oe=>{if(v||oe.pointerType==="touch")return;const I=M(oe);if(I){if(P.get()===0){x.set(I.x),_.set(I.y),E.stop&&E.stop(),E.jump&&E.jump(I.x),k.stop&&k.stop(),k.jump&&k.jump(I.y),y.current&&y.current.stop(),y.current=Nl(P,u,{duration:.28,ease:"easeOut"});return}x.set(I.x),_.set(I.y)}},B=oe=>{if(v||oe.pointerType==="touch")return;const I=M(oe);I&&(x.set(I.x),_.set(I.y),E.stop&&E.stop(),E.jump&&E.jump(I.x),k.stop&&k.stop(),k.jump&&k.jump(I.y)),y.current&&y.current.stop(),y.current=Nl(P,0,{duration:.38,ease:"easeOut"})};R.useEffect(()=>{const oe=()=>{y.current&&y.current.stop(),y.current=Nl(P,0,{duration:.35,ease:"easeOut"})},I=U=>{!U.relatedTarget&&!U.toElement&&oe()};return window.addEventListener("blur",oe),window.addEventListener("mouseout",I),()=>{window.removeEventListener("blur",oe),window.removeEventListener("mouseout",I),y.current&&y.current.stop()}},[P]),R.useEffect(()=>{v&&(y.current&&y.current.stop(),P.set(0))},[v,P]);const W=n||"h2",V=e||t,X="inline-block text-[2.8125rem] sm:text-[3.375rem] md:text-7xl lg:text-[5.625rem] font-extrabold tracking-tight font-heading leading-tight text-center";return w.jsx("div",{ref:f,className:"relative w-full flex justify-center py-1 select-none",children:w.jsxs("div",{ref:p,onPointerEnter:L,onPointerMove:D,onPointerLeave:B,className:"relative inline-block text-center cursor-default",children:[w.jsx(W,{ref:m,className:`${X} ${r} text-[var(--nimbus-deep,#0B2E5C)]`.trim(),style:{color:"var(--nimbus-deep, #0B2E5C)"},...d,children:V}),w.jsx(mt.span,{"aria-hidden":"true",className:`${X} ${r} pointer-events-none absolute inset-0 select-none`.trim(),style:{opacity:P,backgroundImage:A,WebkitBackgroun
204dClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"},children:V})]})})}const zA=["Business Development","Commercial","Packaging","Sales & Marketing","Logistics","After sales and service"],LA=["Project management from concept to commercialization","Process and product quality optimization","Analytical support and problem solving","Customer technical queries"],FA={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.08,delayChildren:.1}}},VA={hidden:{opacity:0,y:16},visible:{opacity:1,y:0,transition:{duration:.45,ease:[.22,1,.36,1]}}};function UA(){return w.jsx(Zb,{id:"about",tone:"paper",containerClassName:"py-6 sm:py-8 md:py-8 lg:py-10",label:"WHO WE ARE · SINCE 2004",labelClassName:"text-xs md:text-sm font-semibold text-[var(--nimbus-blue)] tracking-[0.06em] uppercase mb-2 text-center",headerClassName:"mb-6 sm:mb-8 md:mb-10 text-center mx-auto flex flex-col items-center justify-center",title:w.jsx(DA,{text:"20+ Years of Excellence"}),children:w.jsxs("div",{className:"grid lg:grid-cols-[1.15fr_0.85fr] gap-8 lg:gap-10 items-start",children:[w.jsxs(mt.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.15},transition:{duration:.6,ease:[.22,1,.36,1]},className:"space-y-4 sm:space-y-5 text-sm sm:text-base text-[var(--ink)] leading-relaxed",children:[w.jsx("p",{className:"font-medium text-base sm:text-lg text-[var(--nimbus-deep)] leading-relaxed",children:"By the grace of Almighty Allah, Nimbus Chemtech is one of Pakistan's fastest-growing pharmaceutical indenting companies, built on quality service to every customer we serve."}),w.jsx("p",{className:"text-[var(--ink-soft)] leading-relaxed",children:"We are your bridge to quality pharmaceutical, nutritional, sweetener and machinery supply, developing, sourcing and distributing raw materials through an unrivalled worldwide network of manufacturers."}),w.jsx("p",{className:"text-[var(--ink-soft)] leading-relaxed",children:"Our commitment is to research, develop and market novel products of high therapeutic value for human and veterinary medicine, under a standard of corporate governance that keeps buyers and suppliers in long-term, transparent and ethical partnership. We serve local customers with excellence while enabling our foreign principals to market their products in Pakistan as confidently as they do at home, protecting both sides equally, and building relationships on trust, loyalty and mutual interest rather than one-off transactions."}),w.jsxs("div",{className:"pt-4 sm:pt-5 border-t border-[var(--line)]",children:[w.jsx("h3",{className:"text-xs sm:text-sm font-semibold uppercase tracking-[0.06em] text-[var(--nimbus-deep)] mb-3 font-heading",children:"Our Departments"}),w.jsx(mt.div,{variants:FA,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.2},className:"grid grid-cols-2 gap-2.5 sm:gap-3",children:zA.map(e=>w.jsx(mt.div,{variants:VA,whileHover:{scale:1.02,transition:{duration:.15}},className:"bg-[var(--nimbus-sky)] text-[var(--nimbus-deep)] rounded-lg px-3.5 py-2.5 sm:px-4 sm:py-3 text-xs sm:text-sm font-medium flex items-center justify-center text-center transition-colors hover:bg-[#d8e7f8] cursor-default",children:e},e))})]})]}),w.jsxs(mt.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.15},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},className:"space-y-4 sm:space-y-5",children:[w.jsxs("div",{className:"relative bg-[var(--nimbus-deep)] text-white rounded-2xl p-5 sm:p-6 shadow-xl overflow-hidden",children:[w.jsx("span",{className:"text-xs font-semibold tracking-[0.12em] text-[var(--nimbus-teal)] uppercase block mb-1.5",children:"CEO MESSAGE"}),w.jsx("h3",{className:"text-lg sm:text-xl font-semibold text-white font-heading mb-3",children:"Welcome to the Nimbus family"}),w.jsx("p",{className:"text-xs sm:text-sm text-white/85 leading-relaxed mb-3",children:"Nimbus is not only a name or a company; it is a passion, a desire to grow, serve and excel. To our clients it stands for commitment, customer care, integrity, product knowledge and competitive pricing. Our mission is a lasting relationship with our clientele, offering a wide range of quality products backed by exquisite customer care."}),w.jsx("blockquote",{className:"italic text-xs sm:text-sm text-white/95 border-l-2 border-[var(--nimbus-teal)] pl-3 my-3 font-serif",children:"âTo us, success is not a destination: it is a journey, and we are focused on it.â"}),w.jsxs("div",{className:"mt-4 pt-3.5 border-t border-white/15",children:[w.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wider text-[var(--nimbus-sky)] mb-1.5 font-heading",children:"Pioneers in developing Chinese APIs"}),w.jsx("p",{className:"text-xs text-white/80 leading-relaxed mb-3",children:"Among thousands of Chinese API manufacturers, we select only those with the right GMP mindset and compliance record for regulated markets, then support them technically and regulatorily and connect them to buyers."}),w.jsxs("div",{className:"space-y-1.5 pt-1",children:[w.jsx("span",{className:"text-[10px] sm:text-[11px] font-semibold uppercase tracking-wider text-[var(--nimbus-teal)] block mb-1",children:"Regulatory & Technical Support"}),LA.map(e=>w.jsxs("div",{className:"flex items-start gap-2",children:[w.jsx(eA,{className:"w-3.5 h-3.5 text-[var(--nimbus-teal)] shrink-0 mt-0.5"}),w.jsx("span",{className:"text-xs sm:text-sm text-white/85 leading-tight",children:e})]},e))]})]})]}),w.jsxs("div",{className:"bg-white border border-[var(--line)] rounded-2xl p-5 sm:p-6 shadow-sm",children:[w.jsx("span",{className:"text-xs font-semibold tracking-[0.12em] text-[var(--nimbus-blue)] uppercase block mb-1.5 font-heading",children:"COMPANY PROFILE"}),w.jsx("p",{className:"text-xs sm:text-sm text-[var(--ink-soft)] leading-relaxed mb-4",children:"Founded in 2004, Nimbus Chemtech began as a small-scale indenting business and has grown into one of the leading companies of its kind across Pakistan. Our management team brings years of domestic and international experience in business, academia and technology. From our head office in Lahore and offices across Pakistan and abroad, our professionals serve clients globally."}),w.jsxs("div",{className:"grid grid-cols-3 divide-x divide-[var(--line)] pt-3.5 border-t border-[var(--line)] text-center",children:[w.jsxs("div",{className:"px-2 first:pl-0",children:[w.jsx("div",{className:"text-xl sm:text-2xl font-bold text-[var(--nimbus-blue)] font-heading tabular-nums",children:"2004"}),w.jsx("div",{className:"text-[11px] sm:text-xs text-[var(--ink-soft)] mt-0.5",children:"Founded"})]}),w.jsxs("div",{className:"px-2",children:[w.jsx("div",{className:"text-xl sm:text-2xl font-bold text-[var(--nimbus-blue)] font-heading tabular-nums",children:"20+"}),w.jsx("div",{className:"text-[11px] sm:text-xs text-[var(--ink-soft)] mt-0.5",children:"Years of service"})]}),w.jsxs("div",{className:"px-2 last:pr-0",children:[w.jsx("div",{className:"text-xl sm:text-2xl font-bold text-[var(--nimbus-blue)] font-heading",children:"Global"}),w.jsx("div",{className:"text-[11px] sm:text-xs text-[var(--ink-soft)] mt-0.5",children:"Client reach"})]})]})]})]})]})})}const BA=[{id:"api",name:"API",title:"Active Pharmaceutical Ingredients",number:"01",video:"/videos/services-api-powder.mp4",image:"/images/services/api-powder.jpg",icon:dA,tagline:"API sourcing for Pakistanâs pharmaceutical manufacturers, including active ingredients, intermediates and finished formulations.",links:[{label:"API Product List (PDF)",href:"/pdf/api.pdf"},{label:"Pharmaceutical Intermediates (PDF)",href:"/pdf/intermediate.pdf"},{label:"Finished Formulations (PDF)",href:"/pdf/finish-products.pdf"}]},{id:"machine",name:"Pharma Machinery",title:"Pharmaceutical Machinery",number:"02",video:"/videos/services-machinery.mp4",image:"/images/services/machinery.jpg",icon:lA,tagline:"Pharmaceutical machinery sourcing for tablet production, liquid filling and blister packaging, with commissioning support.",links:[{label:"Machinery Product List (PDF)",href:"/pdf/pharmaceutical-machinery.pdf"}]}
204,{id:"cleanroom",name:"Clean Room",title:"Modular Cleanroom Systems",number:"03",video:"/videos/services-cleanroom.mp4",image:"/images/services/cleanroom.jpg",icon:yA,tagline:"Prefabricated cleanroom panels and modular clean room systems for pharmaceutical production facilities.",links:[{label:"Cleanroom Project List (PDF)",href:"/pdf/cleanroom-projects.pdf"}]},{id:"packaging",name:"Packaging",title:"Pharmaceutical Packaging Materials",number:"04",video:"/videos/services-packaging.mp4",image:"/images/services/packaging.jpg",icon:CA,tagline:"Primary and secondary pharmaceutical packaging materials sourced for manufacturers, with product lists for procurement teams.",links:[{label:"Packaging Material List (PDF)",href:"/pdf/packaging-material.pdf"}]}];function j0({src:e,poster:t,playing:n,className:r}){const o=R.useRef(null),[l,u]=R.useState(!1);return R.useEffect(()=>{n&&u(!0)},[n]),R.useEffect(()=>{var f;const d=o.current;d&&(n&&l?(f=d.play())==null||f.catch(()=>{}):d.pause())},[n,l]),w.jsx("video",{ref:o,src:l?e:void 0,poster:t,width:"1280",height:"720","aria-hidden":"true",muted:!0,loop:!0,playsInline:!0,preload:n?"auto":"none",className:r})}function WA(){const{activeSectionId:e}=ca(),t=bp(e==="services"),[n,r]=R.useState(null);return w.jsxs("section",{id:"services","aria-label":"Pharmaceutical sourcing services",className:"relative h-screen min-h-[100dvh] w-full flex-shrink-0 flex flex-col overflow-hidden bg-[var(--nimbus-deep)]",children:[w.jsxs("div",{className:"absolute inset-0 z-0 overflow-hidden pointer-events-none",children:[w.jsx(j0,{src:"/videos/services-bg.mp4",playing:t,className:"w-full h-full object-cover brightness-[0.70] contrast-[1.08]"}),w.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#05152B]/90 via-[#0B2E5C]/50 to-[#05152B]/60 pointer-events-none"})]}),w.jsx("div",{className:"relative z-10 w-full flex-1 min-h-0 flex flex-col md:flex-row",children:BA.map(o=>{const l=o.icon,u=o.links.length>1;return w.jsxs("article",{id:`service-${o.id}`,onMouseEnter:()=>r(o.id),onMouseLeave:()=>r(null),onFocus:()=>r(o.id),onBlur:d=>{d.currentTarget.contains(d.relatedTarget)||r(null)},onClick:d=>{u?d.target.closest("a")||r(o.id):d.target.closest("a")||window.open(o.links[0].href,"_blank","noopener,noreferrer")},className:`service-card group relative flex-1 w-full md:w-auto min-h-0 md:h-full overflow-hidden border-b md:border-b-0 md:border-r last:border-none border-white/20 bg-transparent cursor-pointer transition-all duration-700 ease-out ${n===o.id?"service-card--active flex-[4] md:flex-[1.75]":""} md:hover:flex-[1.75] flex flex-col justify-between p-4 sm:p-6 md:p-8 focus-within:ring-2 focus-within:ring-[var(--nimbus-teal)]`,"aria-labelledby":`service-${o.id}-heading service-${o.id}-title`,children:[w.jsxs("div",{className:"absolute inset-0 z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-700 ease-out overflow-hidden pointer-events-none",children:[w.jsx(j0,{src:o.video,poster:o.image,playing:t&&n===o.id,className:"absolute inset-0 w-full h-full object-cover brightness-[0.80] contrast-[1.10] scale-100 group-hover:scale-105 transition-transform duration-700 ease-out"}),w.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#05152B]/95 via-[#14509C]/70 to-[#0B2E5C]/60 mix-blend-multiply"}),w.jsx("div",{className:"absolute inset-0 bg-[#0B2E5C]/35 mix-blend-color"}),w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#05152B]/75 via-transparent to-[#05152B]/90"})]}),w.jsxs("div",{className:"relative z-20 flex items-center justify-between w-full pt-10 sm:pt-12 md:pt-14",children:[w.jsx("span",{className:"font-heading text-2xl sm:text-3xl font-bold tracking-wider text-white/50 group-hover:text-[var(--nimbus-teal)] transition-colors duration-300",children:o.number}),w.jsx("div",{className:"w-10 h-10 rounded-xl bg-white/10 backdrop-blur-md text-[var(--nimbus-teal)] flex items-center justify-center border border-white/15 transition-all duration-300 group-hover:bg-[var(--nimbus-teal)] group-hover:text-[#05152B] group-hover:scale-110 shadow-lg",children:w.jsx(l,{className:"w-5 h-5"})})]}),w.jsxs("div",{className:"relative z-20 w-full transition-all duration-500 ease-out transform md:group-hover:-translate-x-3 lg:group-hover:-translate-x-5",children:[w.jsx("h2",{id:`service-${o.id}-heading`,className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-white font-heading tracking-wide uppercase mb-1.5 drop-shadow-md transition-transform duration-500",children:o.name}),w.jsx("p",{id:`service-${o.id}-title`,className:"text-xs sm:text-sm text-[var(--nimbus-teal)] font-semibold uppercase tracking-wider mb-2",children:o.title}),w.jsxs("div",{className:`transition-all duration-500 ease-out overflow-hidden group-hover:max-h-[420px] group-hover:opacity-100 group-focus-within:max-h-[420px] group-focus-within:opacity-100 ${n===o.id?"max-h-[420px] opacity-100":"max-h-0 md:max-h-0 opacity-0"}`,children:[w.jsx("p",{className:"text-xs sm:text-sm text-white/85 leading-relaxed mb-4 max-w-[34ch] pt-1",children:o.tagline}),u?w.jsx("div",{className:"flex flex-col gap-2 pt-1 w-full max-w-[320px]",children:o.links.map(d=>w.jsxs("a",{href:d.href,target:"_blank",rel:"noopener noreferrer",className:"group/btn inline-flex items-center justify-between gap-3 px-4 py-2.5 rounded-full bg-[var(--nimbus-blue)] hover:bg-[var(--nimbus-teal)] text-white hover:text-[#05152B] text-[11px] sm:text-xs font-semibold uppercase tracking-wider border border-white/20 shadow-md transition-all duration-200 hover:translate-x-1 focus-visible:outline-2 focus-visible:outline-white",type:"application/pdf","aria-label":`${d.label}, opens in a new tab`,children:[w.jsx("span",{children:d.label}),w.jsx(ph,{className:"w-3.5 h-3.5 shrink-0 transition-transform group-hover/btn:translate-x-0.5 group-hover/btn:-translate-y-0.5"})]},d.label))}):w.jsxs("a",{href:o.links[0].href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-[var(--nimbus-blue)] text-white text-xs font-semibold uppercase tracking-wider border border-white/20 shadow-lg hover:bg-[var(--nimbus-teal)] hover:text-[#05152B] transition-all duration-300 hover:translate-x-0.5 focus-visible:outline-2 focus-visible:outline-white",type:"application/pdf","aria-label":`${o.links[0].label}, opens in a new tab`,children:[w.jsx("span",{children:o.links[0].label}),w.jsx(ph,{className:"w-4 h-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})]})]},o.id)})})]})}const ZA=[{id:"annex-1-cleanroom-material-transfer",title:"Material Transfer in Cleanrooms Under EU GMP Annex 1",service:"Modular
204Cleanrooms",serviceId:"cleanroom",publication:"Cleanroom Technology",author:"Dr. Tim Sandle & Cristina Masciola",date:"Sep 15, 2022",readTime:"9 min read",image:"/images/hero/03-clean-room-system.webp",url:"https://www.cleanroomtechnology.com/news/article_page/The_new_challenges_of_Annex_1_The_transfer_of_materials_in_and_out_of_cleanrooms_and_critical_zones/208226",description:"Critical contamination control strategies during material ingress, detailing dynamic HEPA pass-through chambers, electromagnetic interlocking, and surface biodecontamination."},{id:"tablet-press-tooling-success",title:"The Key to Tableting Success: How to Choose the Right Tooling",service:"Pharma Machinery",serviceId:"machine",publication:"Manufacturing Chemist",author:"Alex Bunting",date:"May 12, 2021",readTime:"7 min read",image:"/images/services/machinery.jpg",url:"https://manufacturingchemist.com/the-key-to-tableting-success-how-to-choose-the-right-tooling-166135",description:"Engineering analysis of rotary tablet press punch materials, steel selection, anti-stick coatings, and dwell-time optimization to prevent capping and tooling wear."},{id:"advancing-barrier-blister-packaging",title:"Advancing Barrier Protection in Pharmaceutical Blister Packaging",service:"Packaging Materials",serviceId:"packaging",publication:"Packaging Gateway",author:"Packaging Gateway Editorial",date:"Jul 18, 2023",readTime:"6 min read",image:"/images/services/packaging.jpg",url:"https://www.packaging-gateway.com/news/aluflexpack-recyclable-blister-pack-pharma-industry/",description:"High-barrier blister packaging innovations, evaluating aluminum foil laminates, cold-form cavities, and moisture protection standards for solid dose pharmaceuticals."},{id:"strategic-api-procurement-resilience",title:"Strategic API Procurement & Sourcing Resilience for Pharma",service:"APIs & Intermediates",serviceId:"api",publication:"Express Pharma",author:"Express Pharma Research",date:"Aug 24, 2023",readTime:"8 min read",image:"/images/services/api-powder.jpg",url:"https://www.expresspharma.in/procurement-lessons-from-indias-pharma-sector/",description:"Strategic insights into raw material procurement, supplier qualification frameworks, and dual-sourcing models to mitigate global API supply chain volatility."},{id:"parenteral-packaging-usp-382",title:"Parenteral Packaging & Container Closure Integrity Under USP <382>",service:"Packaging Materials",serviceId:"packaging",publication:"Drug Development & Delivery",author:"Diane Paskiet & Packaging Team",date:"Oct 3, 2022",readTime:"8 min read",image:"/images/services/finish.jpg",url:"https://drug-dev.com/delivery-system-development-supporting-earlier-delivery-system-decisions-in-injectable-drug-development-through-a-usp-382-aligned-system-level-approach/",description:"Evaluating primary packaging integrity for injectable vials, elastomeric closures, and container-closure seal validation to ensure drug stability and sterility."},{id:"global-api-manufacturing-expansion",title:"Global API Manufacturing Infrastructure & Supply Expansion",service:"APIs & Intermediates",serviceId:"api",publication:"PharmaTimes",author:"PharmaTimes News Desk",date:"Nov 14, 2023",readTime:"5 min read",image:"/images/hero/01-api.webp",url:"https://pharmatimes.com/news/axplora-announces-expansion-as-newest-part-of-60m-api-investment-programme/",description:"Investments in global active ingredient development, specialized HPAPI synthesis suites, and regulatory quality frameworks supporting formulation pipelines."}];function qA(){const e=R.useRef(null),t=n=>{const r=e.current;if(!r)return;const o=r.querySelector("li"),l=o?o.offsetWidth+28:360;r.scrollBy({left:n*l,behavior:"smooth"})};return w.jsx("section",{id:"blogs","aria-label":"Pharmaceutical industry blogs and technical insights",className:"relative h-screen min-h-[100dvh] w-full flex-shrink-0 flex flex-col overflow-hidden bg-[var(--paper)]",children:w.jsx("div",{"data-scroll-container":!0,className:"w-full h-full overflow-y-auto overflow-x-hidden flex flex-col justify-center py-6 sm:py-8 md:py-10 px-3 sm:px-6 md:px-8 overscroll-contain",children:w.jsxs("div",{className:"w-full my-auto flex flex-col",children:[w.jsxs("div",{className:"w-full max-w-5xl mx-auto px-4 mb-3 sm:mb-5 text-center",children:[w.jsx("p",{className:"text-xs sm:text-sm font-semibold text-[var(--nimbus-blue)] tracking-[0.1em] uppercase mb-1 font-sans",children:"Industry Insights"}),w.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold tracking-tight text-[var(--nimbus-deep)] font-heading uppercase mb-1.5",children:"Technical Articles & Guides"}),w.jsx("p",{className:"text-xs sm:text-sm md:text-base text-[var(--ink-soft)] max-w-2xl mx-auto leading-relaxed",children:"Authoritative technical whitepapers, formulation analyses, and regulatory guides from leading pharmaceutical journals."})]}),w.jsxs("div",{className:"relative w-full py-2",children:[w.jsx("button",{type:"button",onClick:()=>t(-1),"aria-label":"Scroll to previous article",className:"absolute left-2 sm:left-4 md:left-6 top-[38%] -translate-y-1/2 z-30 w-10 h-10 sm:w-11 sm:h-11 md:w-12 md:h-12 rounded-full border border-[var(--line)] bg-white/95 backdrop-blur-md text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-xl hover:shadow-2xl transition-all duration-200 flex items-center justify-center active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer select-none",children:w.jsx(Gu,{className:"w-5 h-5 sm:w-6 sm:h-6 -translate-x-0.5"})}),w.jsx("button",{type:"button",onClick:()=>t(1),"aria-label":"Scroll to next article",className:"absolute right-2 sm:right-4 md:right-6 top-[38%] -translate-y-1/2 z-30 w-10 h-10 sm:w-11 sm:h-11 md:w-12 md:h-12 rounded-full border border-[var(--line)] bg-white/95 backdrop-blur-md text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-xl hover:shadow-2xl transition-all duration-200 flex items-center justify-center active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer select-none",children:w.jsx(Yu,{className:"w-5 h-5 sm:w-6 sm:h-6 translate-x-0.5"})}),w.jsx("ul",{ref:e,className:"relative flex items-stretch gap-5 sm:gap-6 md:gap-7 py-3 px-4 sm:px-8 md:px-12 list-none overflow-x-auto overscroll-x-contain",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none"},children:ZA.map(n=>w.jsx("li",{className:"flex-shrink-0 list-none w-[78vw] sm:w-[52vw] md:w-[38vw] lg:w-[30vw] xl:w-[26vw] max-w-[380px] min-w-[260px] group relative focus-within:z-30 hover:z-20 transition-all duration-300",children:w.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","aria-label":`Read full article "${n.title}" on ${n.publication}, opens in a new tab`,className:"w-full text-left flex flex-col cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-4 focus-visible:ring-[var(--nimbus-blue)] rounded-2xl group transition-transform duration-200 active:scale-[0.98]",children:[w.jsxs("div",{className:"relative w-full aspect-[16/10] h-40 sm:h-44 md:h-48 rounded-2xl select-none mb-2.5 overflow-hidden shadow-md group-hover:shadow-2xl group-hover:shadow-[#0B2E5C]/20 transition-all duration-300 border border-[var(--line)]/80 bg-[var(--nimbus-sky)]",children:[w.jsx("img",{src:n.image,alt:n.title,loading:"lazy",decoding:"async",className:"relative z-10 w-full h-full object-cover transition-all duration-500 ease-out group-hover:scale-105"}),w.jsx("div",{className:"absolute inset-0 z-20 bg-gradient-to-t from-[#05152B]/60 via-trans
204parent to-transparent opacity-70 group-hover:opacity-40 transition-opacity duration-300 pointer-events-none"}),w.jsx("div",{className:"absolute top-2.5 left-2.5 z-30 px-2 py-0.5 rounded-lg bg-[#05152B]/85 backdrop-blur-md text-white text-[10.5px] font-semibold uppercase tracking-wider border border-white/15 shadow-sm",children:n.service}),w.jsx("div",{className:"absolute top-2.5 right-2.5 z-30 w-7 h-7 rounded-lg bg-white/90 backdrop-blur-md text-[var(--nimbus-deep)] flex items-center justify-center border border-white/30 group-hover:bg-[var(--nimbus-blue)] group-hover:text-white transition-all shadow-sm","aria-hidden":"true",children:w.jsx(Bb,{className:"w-3.5 h-3.5"})})]}),w.jsxs("div",{className:"w-full px-1",children:[w.jsxs("p",{className:"text-[11.5px] sm:text-xs text-[var(--ink-soft)] flex items-center gap-1.5 font-medium truncate",children:[w.jsx("span",{className:"text-[var(--nimbus-blue)] font-semibold truncate",children:n.publication}),w.jsx("span",{className:"text-[var(--line)]",children:"·"}),w.jsx("span",{className:"shrink-0",children:n.date}),w.jsx("span",{className:"text-[var(--line)]",children:"·"}),w.jsx("span",{className:"shrink-0 text-[var(--ink-soft)]",children:n.readTime})]}),w.jsx("h3",{className:"text-sm sm:text-base font-bold text-[var(--nimbus-deep)] font-heading leading-snug group-hover:text-[var(--nimbus-blue)] transition-colors duration-200 line-clamp-2 mt-1",title:n.title,children:n.title}),w.jsx("p",{className:"text-xs sm:text-[13px] text-[var(--ink-soft)] mt-1.5 line-clamp-2 leading-relaxed",children:n.description}),w.jsxs("div",{className:"mt-2 inline-flex items-center gap-1 text-xs font-semibold text-[var(--nimbus-blue)] group-hover:text-[var(--nimbus-teal)] transition-colors",children:[w.jsx("span",{children:"Read Original Article"}),w.jsx(ph,{className:"w-3.5 h-3.5 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})]})},n.id))})]})]})})})}function HA(e){if(!e)return null;try{const t=new Date(e);return isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return null}}function KA({event:e,onSelect:t,isPriority:n=!1}){var E,k;const[r,o]=R.useState(!1),[l,u]=R.useState(!1),[d,f]=R.useState({}),p=HA(e.date),m=e.gallery||[],y=m.slice(0,2),v=1+m.length,x=`${e.name}, ${e.location}${p?`, ${p}`:""}. Click to open gallery containing ${v} photos.`,_=P=>{f(A=>({...A,[P]:!0}))};return w.jsx("li",{className:"flex-shrink-0 list-none w-[75vw] sm:w-[54vw] md:w-[42vw] lg:w-[38vw] xl:w-[35vw] max-w-[480px] min-w-[270px] group relative focus-within:z-30 hover:z-20 transition-all duration-300 select-none",children:w.jsxs("button",{type:"button",onClick:()=>t(e),"aria-haspopup":"dialog","aria-label":x,className:"w-full text-left flex flex-col cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-4 focus-visible:ring-[var(--nimbus-blue)] rounded-2xl group transition-transform duration-200 active:scale-[0.98]",children:[w.jsxs("div",{className:"relative w-full aspect-[4/5] sm:aspect-[3/4] max-h-[56vh] rounded-2xl select-none mb-3",children:[y.map((P,A)=>{const M=d[A];return w.jsxs("div",{"aria-hidden":"true",className:`fan-blade fan-blade-${A} absolute inset-0 rounded-2xl overflow-hidden border border-white/60 shadow-lg bg-[var(--nimbus-sky)] pointer-events-none origin-bottom`,children:[M?w.jsx("div",{className:"w-full h-full flex items-center justify-center bg-[var(--nimbus-sky)] text-[var(--nimbus-blue)]",children:w.jsx(P0,{className:"w-6 h-6 opacity-40"})}):w.jsx("img",{src:P.url,alt:"",loading:"lazy",decoding:"async",onError:()=>_(A),className:"w-full h-full object-cover brightness-[0.92]"}),w.jsx("div",{className:"absolute inset-0 bg-black/15 pointer-events-none"})]},P.url+A)}),w.jsxs("div",{className:"relative z-10 w-full h-full rounded-2xl overflow-hidden shadow-md group-hover:shadow-2xl group-hover:shadow-[#0B2E5C]/20 transition-all duration-300 border border-[var(--line)]/80 bg-[var(--nimbus-sky)]",children:[((E=e.cover)==null?void 0:E.lqip)&&w.jsx("img",{src:e.cover.lqip,alt:"","aria-hidden":"true",className:`absolute inset-0 z-0 w-full h-full object-cover filter blur-sm scale-105 pointer-events-none transition-opacity duration-500 ease-out ${r?"opacity-0":"opacity-100"}`}),l?w.jsxs("div",{className:"relative z-10 w-full h-full flex flex-col items-center justify-center bg-[var(--nimbus-sky)] text-[var(--ink-soft)] p-4 text-center",children:[w.jsx(P0,{className:"w-8 h-8 text-[var(--nimbus-blue)] mb-1.5 opacity-60"}),w.jsx("span",{className:"text-xs font-medium text-[var(--nimbus-blue)]",children:"Image Unavailable"})]}):w.jsx("img",{ref:P=>
204{P&&P.complete&&P.naturalWidth>0&&!r&&o(!0)},src:e.cover.url,alt:e.cover.alt,width:e.cover.width,height:e.cover.height,loading:n?"eager":"lazy",fetchpriority:n?"high":"auto",decoding:"async",onLoad:()=>o(!0),onError:()=>u(!0),className:`relative z-10 w-full h-full object-cover transition-all duration-500 ease-out group-hover:scale-105 ${r?"opacity-100":(k=e.cover)!=null&&k.lqip?"opacity-0":"opacity-100"}`}),w.jsx("div",{className:"absolute inset-0 z-20 bg-gradient-to-t from-[#05152B]/40 via-transparent to-transparent opacity-60 group-hover:opacity-30 transition-opacity duration-300 pointer-events-none"})]})]}),w.jsxs("div",{className:"w-full px-1",children:[w.jsx("h3",{className:"text-sm sm:text-base md:text-lg font-bold text-[var(--nimbus-deep)] font-heading leading-snug group-hover:text-[var(--nimbus-blue)] transition-colors duration-200 line-clamp-1",title:e.name,children:e.name}),w.jsxs("p",{className:"text-xs sm:text-sm text-[var(--ink-soft)] mt-1 truncate flex items-center gap-1.5",children:[w.jsx("span",{className:"truncate",children:e.location}),p&&w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"text-[var(--line)] shrink-0",children:"·"}),w.jsx("span",{className:"shrink-0 tabular-nums text-[var(--nimbus-blue)] font-medium",children:p})]})]})]})]})})}function GA({events:e,onSelectEvent:t}){const n=R.useRef(null),r=R.useRef(!1),o=R.useRef(!1),l=R.useRef(null),[u,d]=R.useState(!1),{activeSectionId:f}=ca(),p=bp(f==="events"),m=Array.isArray(e)&&e.length>=4,y=m?[...e,...e,...e,...e]:e;R.useEffect(()=>{const _=n.current;if(!_||!m||e.length===0){d(!0);return}const E=setTimeout(()=>{const k=_.scrollWidth/4;k>0&&(_.scrollLeft=k,d(!0))},60);return()=>clearTimeout(E)},[e,m]);const v=()=>{if(!m)return;const _=n.current;if(!_)return;const E=_.scrollWidth/4;E<=0||(_.scrollLeft>=E*2.5?_.scrollLeft-=E:_.scrollLeft<=E*.5&&(_.scrollLeft+=E))};R.useEffect(()=>{if(!m||!p||typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let _;const E=.75,k=()=>{const P=n.current;P&&!r.current&&!o.current&&(P.scrollLeft+=E),_=requestAnimationFrame(k)};return _=requestAnimationFrame(k),()=>{_&&cancelAnimationFrame(_)}},[m,p]);const x=_=>{if(!m)return;const E=n.current;if(!E)return;o.current=!0,l.current&&clearTimeout(l.current);const k=E.querySelector("li"),P=k?k.offsetWidth+36:420;E.scrollBy({left:_*P,behavior:"smooth"}),l.current=setTimeout(()=>{o.current=!1},1200)};return w.jsxs("div",{className:"relative w-full overflow-hidden select-none py-4",onMouseEnter:()=>{r.current=!0},onMouseLeave:()=>{r.current=!1},onTouchStart:()=>{o.current=!0},onTouchEnd:()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{o.current=!1},1e3)},children:[m&&w.jsxs(w.Fragment,{children:[w.jsx("button",{type:"button",onClick:()=>x(-1),"aria-label":"Scroll to previous event",className:"absolute left-3 sm:left-6 md:left-8 top-[44%] -translate-y-1/2 z-30 w-11 h-11 sm:w-12 sm:h-12 md:w-13 md:h-13 rounded-full border border-[var(--line)] bg-white/90 backdrop-blur-md text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-xl hover:shadow-2xl transition-all duration-200 flex items-center justify-center active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer",children:w.jsx(Gu,{className:"w-6 h-6 -translate-x-0.5"})}),w.jsx("button",{type:"button",onClick:()=>x(1),"aria-label":"Scroll to next event",className:"absolute right-3 sm:right-6 md:right-8 top-[44%] -translate-y-1/2 z-30 w-11 h-11 sm:w-12 sm:h-12 md:w-13 md:h-13 rounded-full border border-[var(--line)] bg-white/90 backdrop-blur-md text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-xl hover:shadow-2xl transition-all duration-200 flex items-center justify-center active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer",children:w.jsx(Yu,{className:"w-6 h-6 translate-x-0.5"})})]}),w.jsx("ul",{ref:n,onScroll:m?v:void 0,className:`event-rail-scroll relative flex items-stretch gap-6 sm:gap-8 md:gap-10 py-6 px-4 sm:px-6 list-none overflow-x-auto ${m?"overscroll-x-contain":"max-md:justify-start md:justify-center max-w-7xl mx-auto"}`,style:{scrollBehavior:"auto",WebkitOverflowScrolling:"touch"},children:y.map((_,E)=>w.jsx(KA,{event:_,onSelect:t,isPriority:f==="events"&&E<(m?4:2)},m?`${_.id}-${E}`:_.id))})]})}function YA({event:e,onClose:t}
204){const n=R.useRef(null),r=R.useRef(null),o=R.useRef(null),l=R.useRef(null),[u,d]=R.useState(null),f=e?[e.cover,...e.gallery||[]]:[];R.useEffect(()=>{const v=n.current;if(v){if(e){l.current=document.activeElement;const x=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${x}px`,document.body.style.overflow="hidden",v.open||v.showModal(),setTimeout(()=>{var _;(_=o.current)==null||_.focus()},50)}else v.open&&v.close(),document.body.style.paddingRight="",document.body.style.overflow="",d(null),l.current&&typeof l.current.focus=="function"&&l.current.focus();return()=>{document.body.style.paddingRight="",document.body.style.overflow=""}}},[e]),R.useEffect(()=>{const v=n.current;if(!v||!e)return;const x=_=>{_.stopPropagation()};return v.addEventListener("wheel",x,{capture:!0,passive:!1}),v.addEventListener("touchmove",x,{capture:!0,passive:!1}),()=>{v.removeEventListener("wheel",x,{capture:!0}),v.removeEventListener("touchmove",x,{capture:!0})}},[e]);const p=v=>{v.stopPropagation();const x=r.current;if(!x)return;const{scrollTop:_,scrollHeight:E,clientHeight:k}=x,P=_<=0,A=_+k>=E-2;(P&&v.deltaY<0||A&&v.deltaY>0)&&v.preventDefault()},m=R.useCallback(v=>{u!==null&&(v.key==="ArrowRight"?(v.preventDefault(),d(x=>(x+1)%f.length)):v.key==="ArrowLeft"?(v.preventDefault(),d(x=>(x-1+f.length)%f.length)):v.key==="Escape"&&(v.preventDefault(),v.stopPropagation(),d(null)))},[u,f.length]);if(R.useEffect(()=>{if(e)return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[e,m]),!e)return null;const y=u!==null?f[u]:null;return w.jsxs("dialog",{ref:n,onCancel:v=>{v.preventDefault(),u!==null?d(null):t()},onClick:v=>{v.target===n.current&&t()},"aria-modal":"true","aria-label":"Image gallery",className:"fixed inset-0 m-auto w-[94vw] max-w-5xl h-[88vh] max-h-[88vh] rounded-2xl bg-white shadow-2xl p-0 border border-[var(--line)] backdrop:bg-[#05152B]/85 backdrop:backdrop-blur-sm overflow-hidden outline-none flex flex-col z-50 animate-in fade-in zoom-in-95 duration-200",children:[w.jsx("h2",{className:"sr-only",children:"Image Gallery"}),w.jsxs("div",{className:"absolute top-4 right-4 z-40 flex items-center gap-2.5",children:[u!==null&&w.jsxs("button",{type:"button",onClick:()=>d(null),className:"inline-flex items-center gap-1.5 px-3.5 py-2 rounded-full bg-white/90 backdrop-blur-md border border-[var(--line)] text-xs font-semibold text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer active:scale-95",children:[w.jsx(mA,{className:"w-3.5 h-3.5"}),w.jsx("span",{children:"Grid"})]}),w.jsx("button",{ref:o,type:"button",onClick:t,"aria-label":"Close gallery",className:"w-10 h-10 rounded-full bg-white/90 backdrop-blur-md border border-[var(--line)] text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-md transition-all flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] active:scale-95 cursor-pointer",children:w.jsx(xp,{className:"w-5 h-5"})})]}),w.jsx("div",{ref:r,onWheel:p,className:"flex-1 overflow-y-auto p-5 sm:p-7 sm:pt-14 pt-14 relative bg-slate-50/60 overscroll-contain",style:{overscrollBehavior:"contain"},children:u===null?w.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-5 auto-rows-[240px]",children:f.map((v,x)=>{const _=v.width&&v.height&&v.width/v.height>=1.4&&x%3===0;return w.jsxs("button",{type:"button",onClick:()=>d(x),"aria-label":`View photo ${x+1}`,className:`group relative rounded-xl overflow-hidden border border-[var(--line)] bg-white shadow-sm hover:shadow-lg transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer ${_?"sm:col-span-2":"col-span-1"}`,children:[w.jsx("img",{src:v.url,alt:v.alt||"",loading:"lazy",className:"w-full h-full object-cover transition-transform duration-300 ease-out group-hover:scale-105"}),w.jsx("div",{className:"absolute inset-0 bg-black/20 opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex items-center justify-center pointer-events-none",children:w.jsx("div",{className:"p-2.5 rounded-full bg-white/90 text-[var(--nimbus-deep)] shadow-md",children:w.jsx(EA,{className:"w-4 h-4"})})})]},v.url+x)})}):w.jsxs("div",{className:"relative w-full h-full min-h-[460px] flex items-center justify-center select-none",children:[w.jsx("button",{type:"button",onClick:()=>d(v=>(v-1+f.length)%f.length),"aria-label":"Previous image",className:"absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 z-30 w-11 h-11 sm:w-12 sm:h-12 rounded-full bg-white/90 backdrop-blur-md border border-[var(--line)] text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-lg flex items-center justify-center transition-all hover:scale-105 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer",children:w.jsx(Gu,{className:"w-6 h-6 -translate-x-0.5"})}),w.jsx("div",{className:"relative max-w-full max-h-[72vh] flex items-center justify-center",children:w.jsx("img",{src:y.url,alt:y.alt||"",className:"max-h-[70vh] max-w-full object-contain rounded-xl shadow-xl"})}),w.jsx("button",{type:"button",onClick:()=>d(v=>(v+1)%f.length),"aria-label":"Next image",className:"absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 z-30 w-11 h-11 sm:w-12 sm:h-12 rounded-full bg-white/90 backdrop-blur-md border border-[var(--line)] text-[var(--nimbus-deep)] hover:bg-[var(--nimbus-deep)] hover:text-white shadow-lg flex items-center justify-center transition-all hover:scale-105 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--nimbus-blue)] cursor-pointer",children:w.jsx(Yu,{className:"w-6 h-6 translate-x-0.5"})})]})})]})}function mh(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function A0(e,t="|"){return e.map(n=>Jb(n)).join(t)}function gh(e,t){return typeof t=="bigint"?t.toString():t}class JA{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function Sp(e){return new JA(e)}function QA(e){return e==null}function _p(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function XA(e,t){const n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}function ji(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function qb(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t!=null&&t.get?t.get.raw:t==null?void 0:t.value}function ir(e){return qb(e._zod.def)??e._zod.def.shape}function Hb(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return ji(this,t,r),r},enumerable:!0,configurable:!0})}function Kb(e,t,n){t in e?ji(e,t,n):e[t]=n}function ki(e,t,n,r){const o=ir(t);for(const l of n){const u=Object.getOwnPropertyDescriptor(o,l);u.enumerable&&(u.get?Hb(e,l,()=>{const d=t._zod.def.shape[l];return r?r(d,l):d}):Kb(e,l,r?r(u.value,l):u.value))}}function eN(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Hb(e,n,()=>t[n]):Kb(e,n,r.value))}}function Yt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function tN(e){return JSON.stringify(e)}function nN(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Gb="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function cu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const rN=Sp(()=>{var e;if(Vn.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Yo(e){if(cu(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(cu(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Yb(e){return Yo(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const iN=new Set(["string","number","symbol"]);function Ju(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Lr(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function ce(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Jb(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function sN(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const Qb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},oN={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function aN(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l={};return ki(l,e,Qu(e,t)),Lr(e,Yt(n,{shape:l,checks:[]}))}function Qu(e,t){var o;const n=ir(e),r=[];for(const l of Reflect.ownKeys(t)){if(!((o=Object.getOwnPropertyDescriptor(n,l))!=null&&o.enumerable))throw new Error(`Unrecognized key: "${String(l)}"`);t[l]&&r.push(l)}return r}function lN(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=new Set(Qu(e,t)),u={};return ki(u,e,Reflect.ownKeys(ir(e)).filter(d=>!l.has(d))),Lr(e,Yt(n,{shape:u,checks:[]}))}function uN(e,t){if(!Yo(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=ir(e);for(const l of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,l)!==void 0)throw new Error("Cannot over
204write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Lr(e,Yt(e._zod.def,{shape:Xb(e,t)}))}function Xb(e,t){const n={};return ki(n,e,Reflect.ownKeys(ir(e))),eN(n,t),n}function cN(e,t){if(!Yo(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Lr(e,Yt(e._zod.def,{shape:Xb(e,t)}))}function dN(e,t){var o,l;if(!((o=t==null?void 0:t._zod)!=null&&o.def))throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if((l=e._zod.def.checks)!=null&&l.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};ki(n,e,Reflect.ownKeys(ir(e))),ki(n,t,Reflect.ownKeys(ir(t)));const r=Yt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Lr(e,r)}function N0(e,t,n,r="partial"){const l=t._zod.def.checks;if(l&&l.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const d=n?new Set(Qu(t,n)):void 0,f={};return ki(f,t,Reflect.ownKeys(ir(t)),e&&((p,m)=>d&&!d.has(m)?p:new e({type:"optional",innerType:p}))),Lr(t,Yt(t._zod.def,{shape:f,checks:[]}))}function fN(e,t,n){const r=n?new Set(Qu(t,n)):void 0,o={};return ki(o,t,Reflect.ownKeys(ir(t)),(l,u)=>r&&!r.has(u)?l:new e({type:"nonoptional",innerType:l})),Lr(t,Yt(t._zod.def,{shape:o}))}function tr(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function hN(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function e1(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function _o(e){return typeof e=="string"?e:e==null?void 0:e.message}function I0(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function Ts(e,t,n){var f,p,m,y,v,x,_,E,k,P;var r;const o=(p=(f=e.inst)==null?void 0:f._zod)==null?void 0:p.traits;o!=null&&o.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const l=e.schema!==e.inst?(y=(m=e.schema)==null?void 0:m._zod.def)==null?void 0:y.error:void 0,u=e.message?e.message:_o((_=(x=(v=e.inst)==null?void 0:v._zod.def)==null?void 0:x.error)==null?void 0:_.call(x,e))??_o(l==null?void 0:l(e))??_o((E=t==null?void 0:t.error)==null?void 0:E.call(t,e))??_o((k=n.customError)==null?void 0:k.call(n,e))??_o((P=n.localeError)==null?void 0:P.call(n,e))??"Invalid input",d={};for(const A of Object.keys(e))A==="inst"||A==="schema"||A==="continue"||A==="input"||A==="__proto__"||(d[A]=e[A]);return d.path??(d.path=[]),d.message=u,t!=null&&t.reportInput&&(d.input=e.input),d}const pN=/[\uD800-\uDBFF]/;function Ep(e){const t=e.length;if(!pN.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function kp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function mN(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Jo(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function gN(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):O0(e,n,r.value)}for(const n of Object.getOwnPropertySymbols(t))O0(e,n,t[n])}function Mr(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function t1(e,t,n){return Mr(e,t,n,!1)}function n1(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Mr(this,n,r(this))},set(o){Mr(this,n,o)}})}return t}function O0(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Mr(this,t,n.bind(this))},set(r){Mr(this,t,r)}})}function vN(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}let Sf,Nr=!1;const yN={configurable:!0,get(){Nr=!0}};function Me(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Sf!==e._zod){Sf=void 0;return}Sf=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,yN);const o=Nr;Nr=!1;try{const l=n(this);return Nr?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:l}),Nr=Nr||o,l}catch(l){throw delete this[t],Nr=Nr||o,l}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function wN(e,t,n,r){const o=vN(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){const l={configurable:!0,writable:!0,enumerable:r,value:void 0};
204return Object.defineProperty(this,t,l),l.value=n(this),Object.defineProperty(this,t,l),l.value},set(l){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:l})}})}const xN="~constantCatch";function bN(e){const t=()=>e;return t[xN]=!0,t}var R0;const _f={value:void 0,enumerable:!1};let $0="captureStackTrace"in Error?Error:null;function SN(e){const t=$0;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return $0=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function F(e,t,n,r){const o={};function l(v){this.def=v,this.constr=y,this.traits=new Set}l.prototype=o;const u=n,d=u&&new WeakSet;function f(v,x){if(!v._zod){_f.value=new l(x);try{Object.defineProperty(v,"_zod",_f)}finally{_f.value=void 0}}if(v._zod.traits.has(e))return;if(v._zod.traits.add(e),t(v,x),d){const E=Object.getPrototypeOf(v),k=v._zod.constr.prototype;let P=E;for(;P&&P!==k;)P=Object.getPrototypeOf(P);const A=P??E;d.has(A)||(d.add(A),gN(A,u))}const _=y.prototype;for(const E in _)Object.prototype.hasOwnProperty.call(_,E)&&(E in v||(v[E]=_[E].bind(v)))}const p=(r==null?void 0:r.Parent)??Object;class m extends p{}Object.defineProperty(m,"name",{value:e});function y(v){var k;const x=r!=null&&r.Parent?SN(m):this;f(x,v);const _=x._zod.deferred;if(_){for(const P of _)P();x._zod.deferred=void 0}const E=(k=globalThis.__zod_globalConfig)==null?void 0:k.postProcessor;return E&&E(x),x}return Object.defineProperty(y,"init",{value:f}),Object.defineProperty(y,Symbol.hasInstance,{value:v=>{var x,_;return r!=null&&r.Parent&&v instanceof r.Parent?!0:(_=(x=v==null?void 0:v._zod)==null?void 0:x.traits)==null?void 0:_.has(e)}}),Object.defineProperty(y,"name",{value:e}),y}class bi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class r1 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(R0=globalThis).__zod_globalConfig??(R0.__zod_globalConfig={});const Vn=globalThis.__zod_globalConfig;function Fr(e){return e&&Object.assign(Vn,e),Vn}function _N(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,gh,2)),e.message}function EN(e){this._zod.message=e}const kN={get:_N,set:EN,enumerable:!0,configurable:!0},Ef={value:void 0,enumerable:!1},M0=new WeakSet([Object.prototype,Error.prototype]),CN=(e,t)=>{e.name="$ZodError",Ef.value=t,Object.defineProperty(e,"issues",Ef),Ef.value=void 0,Object.defineProperty(e,"message",kN);const n=Object.getPrototypeOf(e);M0.has(n)||(M0.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},PN=F("$ZodError",CN);function TN(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function jN(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?TN(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function AN(e,t=n=>n.message){const n={_errors:[]},r=(o,l=[])=>{for(const u of o.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(d=>r({issues:d},[...l,...u.path]));else if(u.code==="invalid_key")r({issues:u.issues},[...l,...u.path]);else if(u.code==="invalid_element")r({issues:u.issues},[...l,...u.path]);else{const d=[...l,...u.path];if(d.length===0)n._errors.push(t(u));else{let f=n,p=0;for(;p<d.length;){const m=d[p],y=p===d.length-1;if(m==="_errors"){y&&f._errors.push(t(u)),p++;continue}Object.prototype.hasOwnProperty.call(f,m)||Object.defineProperty(f,m,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const v=f[m];y&&v._errors.push(t(u)),f=v,p++}}}};return r(e),n}function Xu(e,t){return{callee:(t==null?void 0:t.callee)??e,Err:t==null?void 0:t.Err}}const Cp=e=>{const t=(n,r,o,l)=>{const u=o?{...o,async:!1}:{async:!1},d=n._zod.run({value:r,issues:[]},u);if(d instanceof Promise)throw new bi;if(d.issues.length){const f=new((l==null?void 0:l.Err)??e)(d.issues.map(p=>Ts(p,u,Fr())));throw Gb(f,(l==null?void 0:l.callee)??t),f}return d.value};return t},Pp=e=>{const t=async(n,r,o,l)=>{const u=o?{...o,async:!0}:{async:!0};let d=n._zod.run({value:r,issues:[]},u);if(d instanceof Promise&&(d=await d),d.issues.length){const f=new((l==null?void 0:l.Err)??e)(d.issues.map(p=>Ts(p,u,Fr())));throw Gb(f,(l==null?void 0:l.callee)??t),f}return d.value};return t},Tp=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new bi;return l.issues.length?i1(e,l.issues,o):{success:!0,data:l.value}};function i1(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>Ts(o,n,Fr()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}const jp=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let l=t._zod.run({value:n,issues:[]},o);return l instanceof Promise&&(l=await l),l.issues.length?i1(e,l.issues,o):{success:!0,data:l.value}}
204,NN=Symbol.for("zod.compile.invalid"),IN=Symbol.for("zod.compile.fallback"),ON=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==NN)return!0;if(r.definite===!0&&n===void 0)return!1}return RN(e,t,n)});function RN(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun;let l;if(o?(r[IN]=!0,l=o({value:t,issues:[]},r)):l=e._zod.run({value:t,issues:[]},r),l instanceof Promise)throw new bi;return l.issues.length===0}const $N=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},MN=e=>{const t=Cp(e),n=(r,o,l,u)=>{const d=l?{...l,direction:"backward"}:{direction:"backward"};return t(r,o,d,Xu(n,u))};return n},DN=e=>{const t=Cp(e),n=(r,o,l,u)=>t(r,o,l,Xu(n,u));return n},zN=e=>{const t=Pp(e),n=async(r,o,l,u)=>{const d=l?{...l,direction:"backward"}:{direction:"backward"};return await t(r,o,d,Xu(n,u))};return n},LN=e=>{const t=Pp(e),n=async(r,o,l,u)=>await t(r,o,l,Xu(n,u));return n},FN=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Tp(e)(t,n,o)},VN=e=>(t,n,r)=>Tp(e)(t,n,r),UN=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return jp(e)(t,n,o)},BN=e=>async(t,n,r)=>jp(e)(t,n,r),WN=/^[cC][0-9a-z]{6,}$/,ZN=/^[0-9a-z]+$/,qN=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,HN=/^[0-9a-vA-V]{20}$/,KN=/^[A-Za-z0-9]{27}$/,GN=/^[a-zA-Z0-9_-]{21}$/;function YN(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const JN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,D0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,XN=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eI="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function tI(){return new RegExp(eI,"u")}const nI=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rI=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,iI=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,sI=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oI=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aI=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,lI=/^https?$/,uI=/^\+[1-9]\d{6,14}$/,s1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function cI(e){return new RegExp(`^${e}$`)}const dI=cI(s1);function vh(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function fI(e){return new RegExp(`^${vh(e)}$`)}function hI(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${vh({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${vh({precision:e.precision})}`:n;return new RegExp(`^${s1}T(?:${r})$`)}const pI=/^[\s\S]{0,}$/,mI=/^-?\d+(?:\.\d+)?$/,gI=/^(?:true|false)$/i,vI=/^[^A-Z]*$/,yI=/^[^a-z]*$/,Bt=F("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ap=e=>{const t=e.value;return!QA(t)&&t.length!==void 0}
vendor: 1,134 bytes, line 204
204,du={number:"number",bigint:"bigint",object:"date"},o1=F("$ZodCheckLessThan",(e,t)=>{Bt.init(e,t);const n=du[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:du[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),a1=F("$ZodCheckGreaterThan",(e,t)=>{Bt.init(e,t);const n=du[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:du[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wI=F("$ZodCheckMultipleOf",(e,t)=>{Bt.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):XA(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),xI=F("$ZodCheckNumberFormat",(e,t)=>{var u;
204Bt.init(e,t),t.format=t.format||"float64";const n=(u=t.format)==null?void 0:u.includes("int"),r=n?"int":"number",[o,l]=Qb[t.format];e._zod.check=d=>{const f=d.value;if(n){if(!Number.isInteger(f)){d.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?d.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):d.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}f<o&&d.issues.push({origin:"number",input:f,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),f>l&&d.issues.push({origin:"number",input:f,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),bI=F("$ZodCheckMaxLength",(e,t)=>{var n;Bt.init(e,t),(n=e._zod.def).when??(n.when=Ap),e._zod.check=r=>{const o=r.value,l=o.length;if((typeof o=="string"&&l>t.maximum?Ep(o):l)<=t.maximum)return;const d=kp(o);r.issues.push({origin:d,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),SI=F("$ZodCheckMinLength",(e,t)=>{var n;Bt.init(e,t),(n=e._zod.def).when??(n.when=Ap),e._zod.check=r=>{const o=r.value,l=o.length;if((typeof o=="string"&&l>=t.minimum&&l<t.minimum*2?Ep(o):l)>=t.minimum)return;const d=kp(o);r.issues.push({origin:d,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),_I=F("$ZodCheckLengthEquals",(e,t)=>{var n;Bt.init(e,t),(n=e._zod.def).when??(n.when=Ap),e._zod.check=r=>{const o=r.value,l=o.length,u=typeof o=="string"&&l>=t.length&&l<=t.length*2?Ep(o):l;if(u===t.length)return;const d=kp(o),f=u>t.length;r.issues.push({origin:d,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ec=F("$ZodCheckStringFormat",(e,t)=>{var n,r;Bt.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),EI=F("$ZodCheckRegex",(e,t)=>{ec.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),kI=F("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vI),ec.init(e,t)}),CI=F("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=yI),ec.init(e,t)}),PI=F("$ZodCheckIncludes",(e,t)=>{Bt.init(e,t);const n=Ju(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),TI=F("$ZodCheckStartsWith",(e,t)=>{Bt.init(e,t);const n=new RegExp(`^${Ju(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),jI=F("$ZodCheckEndsWith",(e,t)=>{Bt.init(e,t);const n=new RegExp(`.*${Ju(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),AI=F("$ZodCheckOverwrite",(e,t)=>{Bt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class NI{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 205`).filter(u=>u),o=Math.min(...r.map(u=>u.length-u.trimStart().length)),l=r.map(u=>u.slice(o)).map(u=>" ".repeat(this.indent*2)+u);for(const u of l)this.content.push(u)}compile(){const t=Function,n=(this==null?void 0:this.content)??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { 206${n.join(` 207`)} 208};`)(...Object.values(this.closed))}}const II={major:4,minor:6,patch:1},lt=F("$ZodType",(e,t)=>{var l;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=II;const r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r!=null&&r.length?[...r]:[];for(const u of o)for(const d of u._zod.onattach)d(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(l=e._zod.deferred)==null||l.push(()=>{e._zod.run=e._zod.parse});else{const u=(f,p,m)=>{if(f.memo)return f;let y=tr(f),v;for(const x of p){if(x._zod.def.when){if(hN(f)||!x._zod.def.when(f))continue}else if(y)continue;const _=f.issues.length,E=x._zod.check(f);if(E instanceof Promise&&(m==null?void 0:m.async)===!1)throw new bi;if(v||E instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await E,f.issues.length!==_&&(I0(f.issues,_,e),y||(y=tr(f,_)))});else{if(f.issues.length===_)continue;I0(f.issues,_,e),y||(y=tr(f,_))}}return v?v.then(()=>f):f},d=(f,p,m)=>{if(tr(f))return f.aborted=!0,f;const y=u(p,o,m);if(y instanceof Promise){if(m.async===!1)throw new bi;return y.then(v=>e._zod.parse(v,m))}return e._zod.parse(y,m)};e._zod.run=(f,p)=>
208{if(p.skipChecks)return e._zod.parse(f,p);if(p.direction==="backward"){const y=e._zod.parse({value:f.value,issues:[]},{...p,skipChecks:!0});return y instanceof Promise?y.then(v=>d(v,f,p)):d(y,f,p)}const m=e._zod.parse(f,p);if(m instanceof Promise){if(p.async===!1)throw new bi;return m.then(y=>u(y,o,p))}return u(m,o,p)}}},{get"~standard"(){return t1(this,"~standard",u1(this))},set"~standard"(e){Mr(this,"~standard",e)}}),l1=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Ts(n,t,Fr()))}:{value:e.value};async function OI(e,t){const n={async:!0};return l1(await e._zod.run({value:t,issues:[]},n),n)}function u1(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return l1(r,n)}catch{}return OI(e,t)},vendor:"zod",version:1}}const Np=F("$ZodString",(e,t)=>{lt.init(e,t),e._zod.pattern=t.pattern??pI,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ke=F("$ZodStringFormat",(e,t)=>{ec.init(e,t),Np.init(e,t)}),RI=F("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=QN),Ke.init(e,t)}),$I=F("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=D0(r))}else t.pattern??(t.pattern=D0());Ke.init(e,t)}),MI=F("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=XN),Ke.init(e,t)}),c1=1,d1=2;function DI(e,t){var n;if(!t.normalize&&((n=t.protocol)==null?void 0:n.source)===lI.source&&!/^https?:\/\//i.test(e))return c1;try{return new URL(e)}catch{return d1}}const zI=/[\t\n\r]/g;function LI(e){return e.replace(zI,"")}function FI(e,t){return t.lastIndex=0,t.test(e.hostname)}function VI(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}const UI=F("$ZodURL",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=DI(r,t);if(o===c1){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===d1){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!FI(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!VI(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:LI(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),BI=F("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=tI()),Ke.init(e,t)}),WI=F("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?GN:YN(t.length)),Ke.init(e,t)}),ZI=F("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=WN),Ke.init(e,t)}),qI=F("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ZN),Ke.init(e,t)}),HI=F("$ZodULID",(e,t)=>{t.pattern??(t.pattern=qN),Ke.init(e,t)}),KI=F("$ZodXID",(e,t)=>{t.pattern??(t.pattern=HN),Ke.init(e,t)}),GI=F("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=KN),Ke.init(e,t)}),YI=F("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=hI(t)),Ke.init(e,t)}),JI=F("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=dI),Ke.init(e,t)}),QI=F("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=fI(t)),Ke.init(e,t)}),XI=F("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=JN),Ke.init(e,t)}),eO=F("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=nI),Ke.init(e,t)}),tO=/^[0-9a-fA-F:.]+$/;function f1(e){if(!tO.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}const nO=F("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=rI),Ke.init(e,t),e._zod.check=n=>{f1(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),rO=F("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=iI),Ke.init(e,t)});function iO(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const o=Number(r);return`${o}`!==r||o<0||o>128?!1:f1(n)}const sO=F("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=sI),Ke.init(e,t),e._zod.check=n=>{iO(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function h1(e){if(e==="")return!0;
208if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const p1=/^[0-9a-zA-Z+/]*={0,2}$/,oO=F("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=p1),Ke.init(e,t),e._zod.check=n=>{h1(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),Ip=/^[A-Za-z0-9_-]*$/;function aO(e){if(!Ip.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return h1(n)}const lO=F("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ip),Ke.init(e,t),e._zod.check=n=>{aO(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),uO=F("$ZodE164",(e,t)=>{t.pattern??(t.pattern=uI),Ke.init(e,t)});function cO(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const dO=F("$ZodJWT",(e,t)=>{Ke.init(e,t),e._zod.check=n=>{cO(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),m1=F("$ZodNumber",(e,t)=>{lt.init(e,t),e._zod.pattern=mI,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const l=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...l?{received:l}:{}}),n}}),fO=F("$ZodNumberFormat",(e,t)=>{xI.init(e,t),m1.init(e,t)}),hO=F("$ZodBoolean",(e,t)=>{lt.init(e,t),e._zod.pattern=gI,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),pO=F("$ZodUnknown",(e,t)=>{lt.init(e,t),e._zod.parse=n=>n}),mO=F("$ZodNever",(e,t)=>{lt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function z0(e,t,n){e.issues.length&&t.issues.push(...e1(n,e.issues)),t.value[n]=e.value}const gO=F("$ZodArray",(e,t)=>{lt.init(e,t);const n=Vn.memoizer;n==null||n.attach(e),e._zod.parse=(r,o)=>{const l=r.value;if(!Array.isArray(l))return r.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),r;r.value=n?n.alloc(e,r,Array(l.length),o):Array(l.length);const u=[],d=o==null?void 0:o.abortEarly;for(let f=0;f<l.length;f++){const p=l[f],m=t.element._zod.run({value:p,issues:[]},o);if(m instanceof Promise)u.push(m.then(y=>z0(y,r,f)));else if(z0(m,r,f),d&&m.issues.length!==0&&tr(m))break}return u.length?Promise.all(u).then(()=>r):r}});function fu(e,t,n,r,o,l){const u=n in r,d=l==="optional";if(!(!u&&d&&o==="optional")){if(e.issues.length){if(o!==void 0&&d&&!u)return;t.issues.push(...e1(n,e.issues))}if(!u&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?u&&(t.value[n]=void 0):t.value[n]=e.value}}const vO=[];function g1(e){var u,d,f,p;const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:vO,o=r.length?[...t,...r]:t;for(const m of o)if(!((p=(f=(d=(u=e.shape)==null?void 0:u[m])==null?void 0:d._zod)==null?void 0:f.traits)!=null&&p.has("$ZodType")))throw new Error(`Invalid element at key "${String(m)}": expected a Zod schema`);const l=sN(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(l)}}function v1(e,t,n,r,o,l,u){const d=[],f=o.keySet,p=o.catchall._zod,m=p.def.type,y=p.optin,v=p.optout;let x=0;for(const _ in t){if(u&&n.issues.length!==x){if(tr(n,x))break;x=n.issues.length}if(f.has(_))continue;if(_==="__proto__"){m==="never"&&d.push(_);continue}if(m==="never"){d.push(_);continue}const E=p.run({value:t[_],issues:[]},r);E instanceof Promise?e.push(E.then(k=>fu(k,n,_,t,y,v))):fu(E,n,_,t,y,v)}return d.length&&n.issues.push({code:"unrecognized_keys",keys:d,input:t,inst:l,continue:!0}),e.length?Promise.all(e).then(()=>n):n}const yO=F("$ZodObject",(e,t)=>{lt.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n!=null&&n.get?n.get.raw:t.shape??{};if(r){const p=()=>{const m={...r};return Object.defineProperty(t,"shape",{value:m}),p.raw=m,m};p.raw=r,Object.defineProperty(t,"shape",{get:p})}const o=Sp(()=>g1(t));Me(e,"propValues",p=>{const m=p.def.shape,y={};for(const v in m){const x=m[v]._zod;if(x.values){Object.prototype.hasOwnProperty.call(y,v)||ji(y,v,new Set);for(const _ of x.values)y[v].add(_);x.optin!==void 0&&y[v].add(void 0)}}return y});const l=cu,u=t.catchall;let d;const f=Vn.memoizer;f==null||f.attach(e),e._zod.parse=(p,m)=>{d??(d=o.value);const y=p.value;if(!l(y))return p.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),p;p.value=f?f.alloc(e,p,{},m):{};
208const v=[],x=d.shape,_=m==null?void 0:m.abortEarly;let E=p.issues.length;for(const k of d.allKeys){if(_&&p.issues.length!==E){if(tr(p,E))break;E=p.issues.length}if(k==="__proto__")continue;const P=x[k],A=P._zod.optin,M=P._zod.optout,L=P._zod.run({value:y[k],issues:[]},m);L instanceof Promise?v.push(L.then(D=>fu(D,p,k,y,A,M))):fu(L,p,k,y,A,M)}return u?v1(v,y,p,m,o.value,e,_===!0):v.length?Promise.all(v).then(()=>p):p}}),wO=F("$ZodObjectJIT",(e,t)=>{yO.init(e,t);const n=e._zod.parse,r=Sp(()=>g1(t)),o=Vn.memoizer,l=x=>{var D,B;const _=r.value,E=_.symbolKeys,k=new NI(["payload","ctx"],{shape:x,inst:e,memo:o,syms:E}),P=W=>`shape[${W}]._zod.run({ value: input[${W}], issues: [] }, ctx)`,A=(W,V)=>` 209 let ${W}_ab = false; 210 for (let i = 0; i < ${W}.issues.length; i++) { 211 const iss = ${W}.issues[i]; 212 iss.path = iss.path ? [${V}, ...iss.path] : [${V}]; 213 payload.issues.push(iss); 214 if (iss.continue !== true) ${W}_ab = true; 215 } 216 if (${W}_ab && ctx && ctx.abortEarly) { 217 payload.value = newResult; 218 return payload; 219 }`;k.write("const input = payload.value;");const M=Object.create(null);let L=0;for(const W of _.allKeys)M[W]=`key_${L++}`;k.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const W of _.allKeys){if(W==="__proto__")continue;const V=M[W],X=typeof W=="symbol"?`syms[${E.indexOf(W)}]`:tN(W),oe=`${X} in input`,I=x[W],U=(D=I==null?void 0:I._zod)==null?void 0:D.optin,J=U!==void 0,ue=((B=I==null?void 0:I._zod)==null?void 0:B.optout)==="optional";if(k.write(`const ${V} = ${P(X)};`),J&&ue){const Se=U==="optional"?`${V}_present`:`${V}.value !== undefined || ${V}_present`;k.write(` 220 const ${V}_present = ${oe}; 221 if (!${V}.issues.length || ${V}_present) { 222 if (${V}.issues.length) {${A(V,X)} 223 } 224 225 if (${Se}) { 226 newResult[${X}] = ${V}.value; 227 } 228 } 229 230 `)}else J?k.write(` 231 if (${V}.issues.length) {${A(V,X)} 232 } 233 234 if (${V}.value === undefined) { 235 if (${oe}) { 236 newResult[${X}] = undefined; 237 } 238 } else { 239 newResult[${X}] = ${V}.value; 240 } 241 242 `):k.write(` 243 const ${V}_present = ${oe}; 244 if (${V}.issues.length) {${A(V,X)} 245 } 246 if (!${V}_present && !${V}.issues.length) { 247 payload.issues.push({ 248 code: "invalid_type", 249 expected: "nonoptional", 250 input: undefined, 251 path: [${X}] 252 }); 253 if (ctx && ctx.abortEarly) { 254 payload.value = newResult; 255 return payload; 256 } 257 } 258 259 if (${V}_present) { 260 newResult[${X}] = ${V}.value; 261 } 262 263 `)}return k.write("payload.value = newResult;"),k.write("return payload;"),k.compile()};let u;const d=cu,f=!Vn.jitless,m=f&&rN.value,y=t.catchall;let v;e._zod.parse=(x,_)=>{v??(v=r.value);const E=x.value;return d(E)?f&&m&&(_==null?void 0:_.async)===!1&&_.jitless!==!0?(u||(u=l(t.shape)),x=u(x,_),y?v1([],E,x,_,v,e,(_==null?void 0:_.abortEarly)===!0):x):n(x,_):(x.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),x)}});function L0(e,t,n,r){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const o=e.filter(l=>!tr(l));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(u=>Ts(u,r,Fr())))}),t)}const xO=F("$ZodUnion",(e,t)=>{lt.init(e,t),Me(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Me(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Me(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),Me(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){const o=r.def.options.map(l=>l._zod.pattern);return new RegExp(`^(${o.map(l=>_p(l.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let l=!1;const u=[];for(const d of t.options){const f=d._zod.run({value:r.value,issues:[]},o);if(f instanceof Promise)u.push(f),l=!0;else{if(f.issues.length===0)return f;u.push(f)}}return l?Promise.all(u).then(d=>L0(d,r,e,o)):L0(u,r,e,o)}}),bO=F("$ZodIntersection",(e,t)=>{lt.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,l=t.left._zod.run({value:o,issues:[]},r),u=t.right._zod.run({value:o,issues:[]},r);return l instanceof Promise||u instanceof Promise?Promise.all([l,u]).then(([f,p])=>F0(n,f,p)):F0(n,l,u)}});function yh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Yo(e)&&Yo(t)){const n=Object.keys(t),r=Object.keys(e).filter(l=>n.indexOf(l)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(const l of r){if(l==="__proto__")continue;const u=yh(e[l],t[l]);if(!u.valid)return{valid:!1,mergeErrorPath:[l,...u.mergeErrorPath]};o[l]=u.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],l=t[r],u=yh(o,l);if(!u.valid)return{valid:!1,mergeErrorPath:[r,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function F0(e,t,n){const r=new Map;let o;const l=new Map,u=(p,m)=>{var v,x;let y;if(p.code==="unrecognized_keys"&&!((v=p.path)!=null&&v.length))o??(o=p),y=p.keys;else if(p.code==="invalid_key"&&p.origin==="record"&&((x=p.path)==null?void 0:x.length)===1){const _=String(p.path[0]);l.has(_)||l.set(_,p),y=[_]}else return!1;for(const _ of y)r.has(_)||r.set(_,{}),r.get(_)[m]=!0;return!0};for(const p of t.issues)u(p,"l")||e.issues.push(p);for(const p of n.issues)u(p,"r")||e.issues.push(p);const d=[...r].filter(([,p])=>p.l&&p.r).map(([p])=>p);if(d.length){const p=o?d.filter(m=>o.keys.includes(m)):[];p.length&&e.issues.push({...o,keys:p});for(const m of d)!p.includes(m)&&l.has(m)&&e.issues.push(l.get(m))}const f=yh(t.value,n.value);if(!f.valid){if(tr(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(f.mergeErrorPath)}`)}return e.value=f.data,e}const SO=F("$ZodEnum",(e,t)=>{lt.init(e,t);const n=mh(t.entries),r=new Set(n);e._zod.values=r,Me(e,"pattern",o=>{const l=mh(o.def.entries).filter(u=>iN.has(typeof u));return new RegExp(l.length?`^(${l.map(u=>Ju(u.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,l)=>{const u=o.value;return r.has(u)||o.issues.push({code:"invalid_value",values:n,input:u,inst:e}),o}}),_O=F("$ZodTransform",(e,t)=>{var n;lt.init(e,t),e._zod.optin="optional",(n=Vn.memoizer)==null||n.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new r1(e.constructor.name);const l=t.transform(r.value,r);if(o.async)return(l instanceof Promise?l:Promise.resolve(l)).then(d=>(r.value=d,r));if(l instanceof Promise)throw new bi;return r.value=l,r}});function V0(e,t){return e.value=t.issues.length?void 0:t.value,e}const y1=F("$ZodOptional",(e,t)=>{lt.init(e,t),Me(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Me(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Me(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${_p(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(l=>V0(n,l)):V0(n,o)}return t.innerType._zod.run(n,r)}}),EO=F("$ZodExactOptional",(e,t)=>{y1.init(e,t),Me(e,"values",n=>n.def.innerType._zod.values),Me(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),kO=F("$ZodNullable",(e,t)=>{lt.init(e,t),Me(e,"optin",n=>n.def.innerType._zod.optin),Me(e,"optout",n=>n.def.innerType._zod.optout),Me(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${_p(r.source)}|null)$`):void 0}),Me(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),CO=F("$ZodDefault",(e,t)=>{lt.init(e,t),e._zod.optin="defaulted",Me(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(l=>U0(l,t)):U0(o,t)}});function U0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const PO=F("$ZodPrefault",(e,t)=>{lt.init(e,t),e._zod.optin="defaulted",Me(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),TO=F("$ZodNonOptional",(e,t)=>{lt.init(e,t),Me(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(l=>B0(l,e)):B0(o,e)}});function B0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}
263function W0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>Ts(o,r,Fr()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const jO=F("$ZodCatch",(e,t)=>{lt.init(e,t),Me(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Me(e,"optout",n=>n.def.innerType._zod.optout),Me(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(l=>W0(n,l,t,r)):W0(n,o,t,r)}}),AO=F("$ZodPipe",(e,t)=>{lt.init(e,t),Me(e,"values",n=>n.def.in._zod.values),Me(e,"optin",n=>n.def.in._zod.optin),Me(e,"optout",n=>n.def.out._zod.optout),Me(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const l=t.out._zod.run(n,r);return l instanceof Promise?l.then(u=>Il(u,t.in,r)):Il(l,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(l=>Il(l,t.out,r)):Il(o,t.out,r)}});function Il(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const NO=F("$ZodReadonly",(e,t)=>{lt.init(e,t),Me(e,"propValues",n=>n.def.innerType._zod.propValues),Me(e,"values",n=>n.def.innerType._zod.values),Me(e,"optin",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optin}),Me(e,"optout",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Z0):Z0(o)}});function Z0(e){return e.memo||(e.value=Object.freeze(e.value)),e}const IO=F("$ZodCustom",(e,t)=>{Bt.init(e,t),lt.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(l=>q0(l,n,r,e));q0(o,n,r,e)}});function q0(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Jo(o))}}class OO extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const wh="~memo",H0=[];function w1(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function kf(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const x1=new WeakMap,Io=0,Jl=1,Vo=2;function Ql(e,t,n){const r=x1.get(e);if(r!==void 0)return r?Vo:Io;if(t.has(e))return Vo;t.add(e);let o=Io;const l=m=>{if(o!==Vo&&(m!=null&&m._zod)){const y=Ql(m,t);y>o&&(o=y)}},u=(m,y)=>{var x;let v=Io;for(const _ of Reflect.ownKeys(m)){const E=Object.getOwnPropertyDescriptor(m,_);if(y&&!E.enumerable)continue;const k=E.get?Jl:(x=E.value)!=null&&x._zod?Ql(E.value,t):Io;k>v&&(v=k)}return v},d=m=>{m>o&&(o=m)},f=e._zod.def;switch(f.type){case"object":{const m=qb(f);d(m?u(m,!0):Jl),l(f.catchall);break}case"properties":d(u(f.shape,!1));break;case"array":l(f.element);break;case"tuple":for(const m of f.items)l(m);l(f.rest);break;case"record":case"map":l(f.keyType),l(f.valueType);break;case"set":l(f.valueType);break;case"union":for(const m of f.options)l(m);break;case"intersection":l(f.left),l(f.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":l(f.innerType);break;case"pipe":l(f.in),l(f.out);break;case"function":l(f.input),l(f.output);break;case"lazy":{const m=f._cachedInner??void 0;d(m?Ql(m,t):Jl);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const m in f){const y=Object.getOwnPropertyDescriptor(f,m);if(!y||y.get)continue;const v=y.value;if(!(!v||typeof v!="object")){if(v._zod)l(v);else if(Array.isArray(v))for(const x of v)l(x)}}}return t.delete(e),RO(e,o)}function RO(e,t){return t!==Jl&&x1.set(e,t===Vo),t}function $O(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let Ol;
263const Rl=[],MO={alloc(e,t,n){const r=Ol;if(!r)return n;Ol=void 0;const o={value:n,issues:null};return r.set(t.value,o),Rl.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(o,l)=>{if(l.direction!=="backward"&&zO(l,o.value))throw new OO;return n(o,l)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,l;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const u=e._zod.parse,d=(f,p)=>{if(n===void 0){const P=Ql(e,new Set);if(P===Io)return e._zod.parse=u,e._zod.run===d&&(e._zod.run=u),u(f,p);P===Vo||r?n=!0:r=!0}const m=f.value;if(!w1(m))return u(f,p);let y=p[wh];y||(y={buckets:new WeakMap,backEdges:void 0},p[wh]=y);let v;o===p?v=l:(v=$O(y,e),o=p,l=v);const x=v.get(m);if(x)return f.value=x.value,x.issues?x.issues.length&&f.issues.push(...kf(x.issues)):(f.memo=!0,y.backEdges??(y.backEdges=new WeakSet),y.backEdges.add(x.value)),f;Ol=v;const _=Rl.length,E=u(f,p);Ol=void 0;const k=Rl.length>_?Rl.pop():void 0;return E instanceof Promise?E.then(P=>(k&&(k.issues=P.issues.length?kf(P.issues):H0),P)):(k&&(k.issues=E.issues.length?kf(E.issues):H0),E)};e._zod.parse=d,e._zod.run===u&&(e._zod.run=d)})}};function DO(){return MO}function zO(e,t){var r;const n=(r=e[wh])==null?void 0:r.backEdges;return n!==void 0&&w1(t)&&n.has(t)}const LO=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(l){return e[l]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(l,u){return l==="number"&&typeof u=="number"&&!Number.isFinite(u)?String(u):r[l]??l}return l=>{switch(l.code){case"invalid_type":{const u=o(l.expected),d=mN(l.input),f=o(d,l.input);return`Invalid input: expected ${u}, received ${f}`}case"invalid_value":return l.values.length===1?`Invalid input: expected ${Jb(l.values[0])}`:`Invalid option: expected one of ${A0(l.values,"|")}`;case"too_big":{const u=l.exact?"exactly ":l.inclusive?"<=":"<",d=t(l.origin);return d?`Too big: expected ${l.origin??"value"} to have ${u}${l.maximum.toString()} ${d.unit??"elements"}`:`Too big: expected ${l.origin??"value"} to be ${u}${l.maximum.toString()}`}case"too_small":{const u=l.exact?"exactly ":l.inclusive?">=":">",d=t(l.origin);return d?`Too small: expected ${l.origin} to have ${u}${l.minimum.toString()} ${d.unit}`:`Too small: expected ${l.origin} to be ${u}${l.minimum.toString()}`}case"invalid_format":{const u=l;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${n[u.format]??l.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${l.divisor}`;case"unrecognized_keys":return`Unrecognized key${l.keys.length>1?"s":""}: ${A0(l.keys,", ")}`;case"invalid_key":return`Invalid key in ${l.origin}`;case"invalid_union":return l.options&&Array.isArray(l.options)&&l.options.length>0?`Invalid discriminator value. Expected ${l.options.map(d=>`'${d}'`).join(" | ")}`:l.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${l.origin}`;default:return"Invalid input"}}};function FO(){return{localeError:LO()}}var K0;class VO{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function UO(){return new VO}(K0=globalThis).__zod_globalRegistry??(K0.__zod_globalRegistry=UO());const Oo=globalThis.__zod_globalRegistry;function BO(e,t){return new e({type:"string",...ce(t)})}function WO(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ce(t)})}function ZO(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ce(t)})}function qO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ce(t)})}function HO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ce(t)})}function KO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ce(t)})}function GO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ce(t)})}function YO(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ce(t)})}function JO(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ce(t)})}function QO(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ce(t)})}function XO(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ce(t)})}function eR(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ce(t)})}function tR(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ce(t)})}function nR(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ce(t)})}function rR(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ce(t)})}function iR(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ce(t)})}function sR(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ce(t)})}function oR(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ce(t)})}function aR(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ce(t)})}function lR(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ce(t)})}function uR(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ce(t)})}function cR(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ce(t)})}function dR(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ce(t)})}function fR(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ce(t)})}function hR(e,t){return new e({type:"string",format:"date",check:"string_format",...ce(t)})}function pR(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ce(t)})}function mR(e,t){return new e({type:"string",format:"duration",check:"string_format",...ce(t)})}function gR(e,t){return new e({type:"number",checks:[],...ce(t)})}function vR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ce(t)})}function yR(e,t){return new e({type:"boolean",...ce(t)})}function wR(e){return new e({type:"unknown"})}function xR(e,t){return new e({type:"never",...ce(t)})}function G0(e,t){return new o1({check:"less_than",...ce(t),value:e,inclusive:!1})}function Cf(e,t){return new o1({check:"less_than",...ce(t),value:e,inclusive:!0})}function Y0(e,t){return new a1({check:"greater_than",...ce(t),value:e,inclusive:!1})}function Pf(e,t){return new a1({check:"greater_than",...ce(t),value:e,inclusive:!0})}function J0(e,t){return new wI({check:"multiple_of",...ce(t),value:e})}function b1(e,t){return new bI({check:"max_length",...ce(t),maximum:e})}function hu(e,t){return new SI({check:"min_length",...ce(t),minimum:e})}function S1(e,t){return new _I({check:"length_equals",...ce(t),length:e})}function bR(e,t){return new EI({check:"string_format",format:"regex",...ce(t),pattern:e})}function SR(e){return new kI({check:"string_format",format:"lowercase",...ce(e)})}
263function _R(e){return new CI({check:"string_format",format:"uppercase",...ce(e)})}function ER(e,t){return new PI({check:"string_format",format:"includes",...ce(t),includes:e})}function kR(e,t){return new TI({check:"string_format",format:"starts_with",...ce(t),prefix:e})}function CR(e,t){return new jI({check:"string_format",format:"ends_with",...ce(t),suffix:e})}function js(e){return new AI({check:"overwrite",tx:e})}function PR(e){return js(t=>t.normalize(e))}function TR(){return js(e=>e.trim())}function jR(){return js(e=>e.toLowerCase())}function AR(){return js(e=>e.toUpperCase())}function NR(){return js(e=>nN(e))}function IR(e,t,n){return new e({type:"array",element:t,...ce(n)})}function OR(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ce(n)})}function RR(e,t){const n=$R(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Jo(o,r.value,n._zod.def));else{const l=o;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),"input"in l||(l.input=r.value),l.inst??(l.inst=n),l.continue??(l.continue=!n._zod.def.abort),r.issues.push(Jo(l))}},e(r.value,r)),t);return n}function $R(e,t){const n=new Bt({check:"custom",...ce(t)});return n._zod.check=e,n}function Uo(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&ji(e,r,n[r]);return e}function _1(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Oo,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",intersections:[],deferred:[],external:(e==null?void 0:e.external)??void 0}}function As(e,t,n,r,o){const l=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(l==="any")return!1;if(l===void 0||l==="throw")throw new Error(o);return Object.assign(n,l),!0}function Et(e,t,n={path:[],schemaPath:[]}){var m,y;var r;const o=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,u),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const d=(y=(m=e._zod).toJSONSchema)==null?void 0:y.call(m);if(d)u.schema=d;else{const v={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,v);else{const _=u.schema,E=t.processors[o.type];if(!E)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);E(e,t,_,v)}const x=e._zod.parent;x&&(u.ref||(u.ref=x),Et(x,t,v),t.seen.get(x).isParent=!0)}const f=t.metadataRegistry.get(e);return f&&Uo(u.schema,f),t.io==="input"&&Rt(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&"_prefault"in u.schema&&((r=u.schema).default??(r.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function Q0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function E1(e,t){var u,d,f,p;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const m of e.seen.entries()){const y=(u=e.metadataRegistry.get(m[0]))==null?void 0:u.id;if(y){const v=r.get(y);if(v&&v!==m[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(y,m[0])}}const o=m=>{var E;const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const k=(E=e.external.registry.get(m[0]))==null?void 0:E.id,P=e.external.uri??(M=>M);if(k)return{ref:P(k)};const A=m[1].defId??m[1].schema.id??`schema${e.counter++}`;return m[1].defId=A,{defId:A,ref:`${P("__shared")}#/${y}/${Q0(A)}`}}const v="#",x=`${v}/${y}/`;if(m[1]===n&&!m[1].schema.id)return{ref:v};const _=m[1].schema.id??`__schema${e.counter++}`;return{defId:_,ref:x+Q0(_)}},l=m=>{if(m[1].schema.$ref)return;const y=m[1],{ref:v,defId:x}=o(m);y.def={...y.schema},x&&(y.defId=x);const _=y.schema;for(const E in _)delete _[E];_.$ref=v};if(e.cycles==="throw")for(const m of e.seen.entries()){const y=m[1];if(y.cycle)throw new Error(`Cycle detected: #/${(d=y.cycle)==null?void 0:d.join("/")}/<root> 264 265Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const m of e.seen.entries()){const y=m[1];if(t===m[0]){l(m);continue}if(e.external){const x=(f=e.external.registry.get(m[0]))==null?void 0:f.id;if(t!==m[0]&&x){l(m);continue}}if((p=e.metadataRegistry.get(m[0]))==null?void 0:p.id){l(m);continue}if(y.cycle){l(m);continue}
265y.count>1&&e.reused==="ref"&&l(m)}e.external&&(e.sharedDefsExtractedFor=e.external)}function k1(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;k1(r);const o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;const l=r.type;for(const u of Array.isArray(l)?l:[l]){if(typeof u!="string")return;n.includes(u)||n.push(u)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const C1=new Set(["type","properties","required","additionalProperties"]),X0=["oneOf","anyOf"];function ew(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function xh(e){var l;const t=[];for(const u of e){if(typeof u!="object"||u.type!=="object")return null;for(const d in u)if(!C1.has(d))return null;t.push(u)}const n={},r=new Set;for(const u of t){for(const d in u.properties){if(Object.prototype.hasOwnProperty.call(n,d))continue;const f=[];for(const m of t){const y=((l=m.properties)==null?void 0:l[d])??ew(m);y!=null&&(f.some(v=>JSON.stringify(v)===JSON.stringify(y))||f.push(y))}const p=f.length===1?f[0]:xh(f)??{allOf:f};ji(n,d,p)}for(const d of u.required??[])r.add(d)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(u=>u.additionalProperties===!1))o.additionalProperties=!1;else{const u=[];for(const d of t){const f=ew(d);f&&!u.some(p=>JSON.stringify(p)===JSON.stringify(f))&&u.push(f)}u.length===1?o.additionalProperties=u[0]:u.length>1&&(o.additionalProperties={allOf:u})}return o}function MR(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of C1)if(o in e)return;const n=t.filter(o=>X0.some(l=>Array.isArray(o[l])));let r=null;if(!n.length)r=xh(t);else{const o=n[0],l=X0.find(f=>Array.isArray(o[f]));if(Object.keys(o).length!==1)return;const u=t.filter(f=>f!==o),d=o[l].map(f=>xh([...u,f]));if(d.some(f=>!f))return;r={[l]:d}}r&&(delete e.allOf,Uo(e,r))}function P1(e,t){var d,f,p,m;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=y=>{const v=e.seen.get(y);if(v.ref===null)return;const x=v.def??v.schema,_={...x},E=v.ref;if(v.ref=null,E){r(E);const P=e.seen.get(E),A=P.schema;if(A.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(x.allOf=x.allOf??[],x.allOf.push(A)):Uo(x,A),Uo(x,_),y._zod.parent===E)for(const L in x)L==="$ref"||L==="allOf"||L in _||delete x[L];if(A.$ref&&P.def)for(const L in x)L==="$ref"||L==="allOf"||L in P.def&&JSON.stringify(x[L])===JSON.stringify(P.def[L])&&delete x[L]}const k=y._zod.parent;if(k&&k!==E){r(k);const P=e.seen.get(k);if(P!=null&&P.schema.$ref&&(x.$ref=P.schema.$ref,P.def))for(const A in x)A==="$ref"||A==="allOf"||A in P.def&&JSON.stringify(x[A])===JSON.stringify(P.def[A])&&delete x[A]}e.override({zodSchema:y,jsonSchema:x,path:v.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const y of[...e.seen.entries()].reverse())r(y[0]);if(e.target!=="openapi-3.0")for(const y of e.seen.entries())k1(y[1].def??y[1].schema);for(const y of e.deferred)y();if(e.intersections.length){const y=new Map;for(const v of e.seen.values())for(const x of[v.schema,v.def]){const _=x==null?void 0:x.allOf;if(!Array.isArray(_))continue;const E=y.get(_);E?E.push(x):y.set(_,[x])}for(const v of e.intersections)for(const x of y.get(v)??[])MR(x)}}const o={};
265if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(d=e.external)!=null&&d.uri){const y=(f=e.external.registry.get(t))==null?void 0:f.id;if(!y)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(y)}Uo(o,n.defId?n.schema:n.def??n.schema);const l=(p=e.metadataRegistry.get(t))==null?void 0:p.id;l!==void 0&&o.id===l&&delete o.id;const u=((m=e.external)==null?void 0:m.defs)??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const y of e.seen.entries()){const v=y[1];v.def&&v.defId&&(v.def.id===v.defId&&delete v.def.id,ji(u,v.defId,v.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?o.$defs=u:o.definitions=u);try{const y=JSON.parse(JSON.stringify(o));return Object.defineProperty(y,"~standard",{value:{...t["~standard"],jsonSchema:{input:pu(t,"input",e.processors),output:pu(t,"output",e.processors)}},enumerable:!1,writable:!1}),y}catch{throw new Error("Error converting schema to JSON.")}}function Rt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Rt(r.element,n);if(r.type==="set")return Rt(r.valueType,n);if(r.type==="lazy")return Rt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return Rt(r.innerType,n);if(r.type==="intersection")return Rt(r.left,n)||Rt(r.right,n);if(r.type==="record"||r.type==="map")return Rt(r.keyType,n)||Rt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Rt(r.in,n)||Rt(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Rt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Rt(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Rt(o,n))return!0;return!!(r.rest&&Rt(r.rest,n))}return!1}const DR=(e,t={})=>n=>{const r=_1({...n,processors:t});return Et(e,r),E1(r,e),P1(r,e)},pu=(e,t,n={})=>r=>{const{libraryOptions:o,target:l}=r??{},u=_1({...o??{},target:l,io:t,processors:n});return Et(e,u),E1(u,e),P1(u,e)},bs=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Ss=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},tw=(e,t)=>{bs(e,"minimum",t),Ss(e,"maximum",t)},T1=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},j1=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},A1=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},N1=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},nw=(e,t)=>bs(e,"minimum",t.minimum),rw=(e,t)=>Ss(e,"maximum",t.maximum),iw=e=>(t,n)=>{N1(t,n.format);const[r,o]=e[n.format];bs(t,"minimum",r),Ss(t,"maximum",o)},Tf={greater_than:(e,t)=>bs(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Ss(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>T1(e,t.value),number_format:iw(Qb),bigint_format:iw(oN),min_length:nw,max_length:rw,length_equals:(e,t)=>tw(e,t.length),min_size:nw,max_size:rw,size_equals:(e,t)=>tw(e,t.size),string_format:(e,t)=>{N1(e,t.format),t.pattern&&j1(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>A1(e,t.mime)};function Mn(e){var l;const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const u of r)(l=Tf[u._zod.def.check])==null||l.call(Tf,t,u._zod.def);const o=e._zod.bag;o.minimum!==void 0&&bs(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&bs(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&Ss(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&Ss(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&T1(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&A1(t,o.mime);for(const u of o.patterns??[])j1(t,u);return t}const zR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LR=new Map([[p1,oI],[Ip,aI]]),FR=e=>LR.get(e)??e,VR=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:l,maximum:u,format:d,patterns:f,contentEncoding:p,laxFormat:m}=Mn(e);if(typeof l=="number"&&(o.minLength=l),typeof u=="number"&&(o.maxLength=u),d&&(o.format=zR[d]??d,o.format===""&&delete o.format,(d==="time"||m)&&delete o.format),p&&(o.contentEncoding=p),f&&f.size>0){const y=[...f].map(FR);y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(v=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},UR=(e,t,n,r)=>{const o=n,{minimum:l,maximum:u,multipleOf:d,exclusiveMaximum:f,exclusiveMinimum:p,isInt:m}=Mn(e);o.type=m?"integer":"number";const y=typeof p=="number"&&p>=(l??Number.NEGATIVE_INFINITY),v=typeof f=="number"&&f<=(u??Number.POSITIVE_INFINITY),x=t.target==="draft-04"||t.target==="openapi-3.0";if(y?x?(o.minimum=p,o.exclusiveMinimum=!0):o.exclusiveMinimum=p:typeof l=="number"&&(o.minimum=l),v?x?(o.maximum=f,o.exclusiveMaximum=!0):o.exclusiveMaximum=f:typeof u=="number"&&(o.maximum=u),d){const _=new Set;for(const P of d)Number.isFinite(P)&&P!==0?_.add(Math.abs(P)):As(e,t,o,r,`A multipleOf divisor of ${P} cannot be represented in JSON Schema`);const[E,...k]=_;E!==void 0&&(o.multipleOf=E),k.length&&(o.allOf=[...o.allOf??[],...k.map(P=>({multipleOf:P}))])}},BR=(e,t,n,r)=>{n.type="boolean"},WR=(e,t,n,r)=>{n.not={}},ZR=(e,t,n,r)=>{},qR=(e,t,n,r)=>{const o=e._zod.def,l=mh(o.entries);if(l.length===0){n.not={};return}l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),n.enum=l},HR=(e,t,n,r)=>{As(e,t,n,r,"Custom types cannot be represented in JSON Schema")},KR=(e,t,n,r)=>{As(e,t,n,r,"Transforms cannot be represented in JSON Schema")},GR=(e,t,n,r)=>{const o=n,l=e._zod.def,{minimum:u,maximum:d}=Mn(e);typeof u=="number"&&(o.minItems=u),typeof d=="number"&&(o.maxItems=d),o.type="array",o.items=Et(l.element,t,{...r,path:[...r.path,"items"]})};function bh(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?bh(t.out):t.type==="catch"?bh(t.innerType):e._zod.optin}const YR=(e,t,n,r)=>{var m;const o=n,l=e._zod.def,u=l.shape;if(Object.getOwnPropertySymbols(u).length&&As(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const y in u)ji(o.properties,y,Et(u[y],t,{...r,path:[...r.path,"properties",y]}));const f=new Set(Object.keys(u)),p=new Set([...f].filter(y=>{const v=l.shape[y];return t.io==="input"?bh(v)===void 0:v._zod.optout===void 0}));p.size>0&&(o.required=Array.from(p)),((m=l.catchall)==null?void 0:m._zod.def.type)==="never"?o.additionalProperties=!1:l.catchall?l.catchall&&(o.additionalProperties=Et(l.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},JR=(e,t,n,r)=>{const o=e._zod.def,l=o.inclusive===!1,u=o.options.map((d,f)=>Et(d,t,{...r,path:[...r.path,l?"oneOf":"anyOf",f]}));l?n.oneOf=u:n.anyOf=u},QR=(e,t,n,r)=>{const o=e._zod.def,l=Et(o.left,t,{...r,path:[...r.path,"allOf",0]}),u=Et(o.right,t,{...r,path:[...r.path,"allOf",1]}),d=p=>"allOf"in p&&Object.keys(p).length===1,f=[...d(l)?l.allOf:[l],...d(u)?u.allOf:[u]];n.allOf=f,t.intersections.push(f)},XR=(e,t,n,r)=>{const o=e._zod.def,l=Et(o.innerType,t,r),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=o.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},e$=(e,t,n,r)=>{const o=e._zod.def;Et(o.innerType,t,r);const l=t.seen.get(e);l.ref=o.innerType},Op=Symbol();function I1(e,t,n,r,o){let l=!1;const u=JSON.stringify(e,(d,f)=>typeof f!="bigint"?f:(l=!0,null));return l?(As(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Op):JSON.parse(u)}const t$=(e,t,n,r)=>{const o=e._zod.def;Et(o.innerType,t,r);const l=t.seen.get(e);l.ref=o.innerType;const u=I1(o.defaultValue,e,t,n,r);u!==Op&&(n.default=u)},n$=(e,t,n,r)=>{const o=e._zod.def;Et(o.innerType,t,r);const l=t.seen.get(e);if(l.ref=o.innerType,t.io!=="input")return;const u=I1(o.defaultValue,e,t,n,r);u!==Op&&(n._prefault=u)},r$=(e,t,n,r)=>{const o=e._zod.def;Et(o.innerType,t,r);const l=t.seen.get(e);l.ref=o.innerType;let u;
265try{u=o.catchValue(void 0)}catch{As(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=u},i$=(e,t,n,r)=>{const o=e._zod.def,l=o.in._zod.traits.has("$ZodTransform"),u=t.io==="input"?l?o.out:o.in:o.out;Et(u,t,r);const d=t.seen.get(e);d.ref=u},s$=(e,t,n,r)=>{const o=e._zod.def;Et(o.innerType,t,r);const l=t.seen.get(e);l.ref=o.innerType,n.readOnly=!0},O1=(e,t,n,r)=>{const o=e._zod.def;Et(o.innerType,t,r);const l=t.seen.get(e);l.ref=o.innerType},sw=new WeakSet([Object.prototype,Error.prototype]);function $l(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const o$=(e,t)=>{PN.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);sw.has(n)||(sw.add(n),$l(n,"format",r=>o=>AN(r,o)),$l(n,"flatten",r=>o=>jN(r,o)),$l(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,gh,2)}),$l(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,gh,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},gn=F("ZodError",o$,void 0,{Parent:Error}),a$=Cp(gn),l$=Pp(gn),u$=Tp(gn),c$=jp(gn),d$=MN(gn),f$=DN(gn),h$=zN(gn),p$=LN(gn),m$=FN(gn),g$=VN(gn),v$=UN(gn),y$=BN(gn);function w$(){Vn.localeError||Fr(FO())}function Rp(){Vn.memoizer||Fr({memoizer:DO()})}const ut=F("ZodType",(e,t)=>(w$(),lt.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Yt(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Lr(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(v5(e,t))},superRefine(e,t){return this.check(y5(e,t))},overwrite(e){return this.check(js(e))},optional(){return lw(this)},exactOptional(){return i5(this)},nullable(){return uw(this)},nullish(){return lw(uw(this))},nonoptional(e){return c5(this,e)},array(){return M1(this)},or(e){return Q$([this,e])},and(e){return e5(this,e)},transform(e){return cw(this,r5(e))},default(e){return a5(this,e)},prefault(e){return u5(this,e)},catch(e){return f5(this,e)},pipe(e){return cw(this,e)},readonly(){return m5(this)},describe(e){const t=this.clone();return Oo.add(t,{description:e}),t},meta(...e){if(e.length===0)return Oo.get(this);const t=this.clone();return Oo.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return t1(this,"~standard",{...u1(this),jsonSchema:{input:pu(this,"input"),output:pu(this,"output")}})},set"~standard"(e){Mr(this,"~standard",e)},parse:function e(t,n){return a$(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await l$(this,t,n,{callee:e})},safeParse(e,t){return u$(this,e,t)},async safeParseAsync(e,t){return c$(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){Mr(this,"spa",e)},validate(e,t){return ON(this,e,t)},validateAsync(e,t){return $N(this,e,t)},encode:function e(t,n){return d$(this,t,n,{callee:e})},decode:function e(t,n){return f$(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await h$(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await p$(this,t,n,{callee:e})},safeEncode(e,t){return m$(this,e,t)},safeDecode(e,t){return g$(this,e,t)},async safeEncodeAsync(e,t){return v$(this,e,t)},async safeDecodeAsync(e,t){return y$(this,e,t)},toJSONSchema(e){return DR(this,{})(e)},get description(){var e;return(e=Oo.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),R1=F("_ZodString",(e,t)=>{Np.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>VR(e,n,r)},n1({format:e=>Mn(e).format??null,minLength:e=>Mn(e).minimum??null,maxLength:e=>Mn(e).maximum??null},{regex(...e){return this.check(bR(...e))},includes(...e){return this.check(ER(...e))},startsWith(...e){return this.check(kR(...e))},endsWith(...e){return this.check(CR(...e))},min(...e){return this.check(hu(...e))},max(...e){return this.check(b1(...e))},length(...e){return this.check(S1(...e))},nonempty(...e){return this.check(hu(1,...e))},lowercase(e){return this.check(SR(e))},uppercase(e){return this.check(_R(e))},trim(){return this.check(TR())},normalize(...e){return this.check(PR(...e))},toLowerCase(){return this.check(jR())},toUpperCase(){return this.check(AR())},slugify(){return this.check(NR())}})),x$=F("ZodString",(e,t)=>{Np.init(e,t),R1.init(e,t)},{email(e){return this.check(WO(k$,e))},url(e){return this.check(YO(P$,e))},jwt(e){return this.check(dR(U$,e))},emoji(e){return this.check(JO(T$,e))},guid(e){return this.check(ZO(C$,e))},uuid(e){return this.check(qO(Ml,e))},uuidv4(e){return this.check(HO(Ml,e))},uuidv6(e){return this.check(KO(Ml,e))},uuidv7(e){return this.check(GO(Ml,e))},nanoid(e){return this.check(QO(j$,e))},cuid(e){return this.check(XO(A$,e))},cuid2(e){return this.check(eR(N$,e))},ulid(e){return this.check(tR(I$,e))},base64(e){return this.check(lR(L$,e))},base64url(e){return this.check(uR(F$,e))},xid(e){return this.check(nR(O$,e))},ksuid(e){return this.check(rR(R$,e))},ipv4(e){return this.check(iR($$,e))},ipv6(e){return this.check(sR(M$,e))},cidrv4(e){return this.check(oR(D$,e))},cidrv6(e){return this.check(aR(z$,e))},e164(e){return this.check(cR(V$,e))},datetime(e){return this.check(fR(b$,e))},date(e){return this.check(hR(S$,e))},time(e){return this.check(pR(_$,e))},duration(e){return this.check(mR(E$,e))}});function hn(e){return BO(x$,e)}const Xe=F("ZodStringFormat",(e,t)=>{Ke.init(e,t),R1.init(e,t)}),b$=F("ZodISODateTime",(e,t)=>{YI.init(e,t),Xe.init(e,t)}),S$=F("ZodISODate",(e,t)=>{JI.init(e,t),Xe.init(e,t)}),_$=F("ZodISOTime",(e,t)=>{QI.init(e,t),Xe.init(e,t)}),E$=F("ZodISODuration",(e,t)=>{XI.init(e,t),Xe.init(e,t)}),k$=F("ZodEmail",(e,t)=>{MI.init(e,t),Xe.init(e,t)}),C$=F("ZodGUID",(e,t)=>{RI.init(e,t),Xe.init(e,t)}),Ml=F("ZodUUID",(e,t)=>{$I.init(e,t),Xe.init(e,t)}),P$=F("ZodURL",(e,t)=>{UI.init(e,t),Xe.init(e,t)}),T$=F("ZodEmoji",(e,t)=>{BI.init(e,t),Xe.init(e,t)}),j$=F("ZodNanoID",(e,t)=>{WI.init(e,t),Xe.init(e,t)}),A$=F("ZodCUID",(e,t)=>{ZI.init(e,t),Xe.init(e,t)}),N$=F("ZodCUID2",(e,t)=>{qI.init(e,t),Xe.init(e,t)}),I$=F("ZodULID",(e,t)=>{HI.init(e,t),Xe.init(e,t)}),O$=F("ZodXID",(e,t)=>{KI.init(e,t),Xe.init(e,t)}),R$=F("ZodKSUID",(e,t)=>{GI.init(e,t),Xe.init(e,t)}),$$=F("ZodIPv4",(e,t)=>{eO.init(e,t),Xe.init(e,t)}),M$=F("ZodIPv6",(e,t)=>{nO.init(e,t),Xe.init(e,t)}),D$=F("ZodCIDRv4",(e,t)=>{rO.init(e,t),Xe.init(e,t)}),z$=F("ZodCIDRv6",(e,t)=>{sO.init(e,t),Xe.init(e,t)}),L$=F("ZodBase64",(e,t)=>{oO.init(e,t),Xe.init(e,t)}),F$=F("ZodBase64URL",(e,t)=>{lO.init(e,t),Xe.init(e,t)}),V$=F("ZodE164",(e,t)=>{uO.init(e,t),Xe.init(e,t)}),U$=F("ZodJWT",(e,t)=>{dO.init(e,t),Xe.init(e,t)}),$1=F("ZodNumber",(e,t)=>{m1.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>UR(e,n,r,o),e.isFinite=!0},n1({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=Mn(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=Mn(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=Mn(e);return!!t||!!(n!=null&&n.some(Number.isSafeInteger))},format:e=>Mn(e).format??null},{gt(e,t){return this.check(Y0(e,t))},gte(e,t){return this.check(Pf(e,t))},min(e,t){return this.check(Pf(e,t))},lt(e,t){return this.check(G0(e,t))},lte(e,t){return this.check(Cf(e,t))},max(e,t){return this.check(Cf(e,t))},int(e){return this.check(ow(e))},safe(e){return this.check(ow(e))},positive(e){return this.check(Y0(0,e))},nonnegative(e){return this.check(Pf(0,e))},negative(e){return this.check(G0(0,e))},nonpositive(e){return this.check(Cf(0,e))},multipleOf(e,t){return this.check(J0(e,t))},step(e,t){return this.check(J0(e,t))},finite(){return this}}));function Sh(e){return gR($1,e)}const B$=F("ZodNumberFormat",(e,t)=>{fO.init(e,t),$1.init(e,t)});function ow(e){return vR(B$,e)}const W$=F("ZodBoolean",(e,t)=>{hO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>BR(e,n,r)});function Z$(e){return yR(W$,e)}const q$=F("ZodUnknown",(e,t)=>{pO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ZR()});function aw(){return wR(q$)}const H$=F("ZodNever",(e,t)=>{mO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>WR(e,n,r)});function K$(e){return xR(H$,e)}const G$=F("ZodArray",(e,t)=>{Rp(),gO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>GR(e,n,r,o),e.element=t.element},{min(e,t){return this.check(hu(e,t))},nonempty(e){return this.check(hu(1,e))},max(e,t){return this.check(b1(e,t))},length(e,t){return this.check(S1(e,t))},unwrap(){return this.element}});function M1(e,t){return IR(G$,e,t)}const Y$=F("ZodObject",(e,t)=>{Rp(),wO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>YR(e,n,r,o),wN(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return t5(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Yt(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Yt(this._zod.def,{catchall:aw()}))},loose(){return this.clone(Yt(this._zod.def,{catchall:aw()}))},strict(){return this.clone(Yt(this._zod.def,{catchall:K$()}))},strip(){return this.clone(Yt(this._zod.def,{catchall:void 0}))},extend(e){return uN(this,e)},safeExtend(e){return cN(this,e)},merge(e){return dN(this,e)},pick(e){return aN(this,e)},omit(e){return lN(this,e)},partial(...e){return N0(D1,this,e[0])},exactPartial(...e){return N0(z1,this,e[0],"exactPartial")},required(...e){return fN(L1,this,e[0])}});function $p(e,t){const n={type:"object",shape:e??{},...ce(t)};return new Y$(n)}const J$=F("ZodUnion",(e,t)=>{xO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>JR(e,n,r,o),e.options=t.options});function Q$(e,t){return new J$({type:"union",options:e,...ce(t)})}const X$=F("ZodIntersection",(e,t)=>{bO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>QR(e,n,r,o)});function e5(e,t){return new X$({type:"intersection",left:e,right:t})}const _h=F("ZodEnum",(e,t)=>{SO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(r,o,l)=>qR(e,r,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const l={};for(const u of r)if(n.has(u))l[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new _h({...t,checks:[],...ce(o),entries:l})},e.exclude=(r,o)=>{const l={...t.entries};for(const u of r)if(n.has(u))delete l[u];else throw new Error(`Key ${u} not found in enum`);return new _h({...t,checks:[],...ce(o),entries:l})}});function t5(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new _h({type:"enum",entries:n,...ce(t)})}const n5=F("ZodTransform",(e,t)=>{Rp(),_O.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>KR(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new r1(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(Jo(l,n.value,t));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),"input"in u||(u.input=n.value),u.inst??(u.inst=e),n.issues.push(Jo(u))}};
265const o=t.transform(n.value,n);return o instanceof Promise?o.then(l=>(n.value=l,n)):(n.value=o,n)}});function r5(e){return new n5({type:"transform",transform:e})}const D1=F("ZodOptional",(e,t)=>{y1.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>O1(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function lw(e){return new D1({type:"optional",innerType:e})}const z1=F("ZodExactOptional",(e,t)=>{EO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>O1(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function i5(e){return new z1({type:"optional",innerType:e})}const s5=F("ZodNullable",(e,t)=>{kO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>XR(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function uw(e){return new s5({type:"nullable",innerType:e})}const o5=F("ZodDefault",(e,t)=>{CO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>t$(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function a5(e,t){return new o5({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Yb(t)}})}const l5=F("ZodPrefault",(e,t)=>{PO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>n$(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function u5(e,t){return new l5({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Yb(t)}})}const L1=F("ZodNonOptional",(e,t)=>{TO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>e$(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function c5(e,t){return new L1({type:"nonoptional",innerType:e,...ce(t)})}const d5=F("ZodCatch",(e,t)=>{jO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>r$(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function f5(e,t){return new d5({type:"catch",innerType:e,catchValue:typeof t=="function"?t:bN(t)})}const h5=F("ZodPipe",(e,t)=>{AO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>i$(e,n,r,o),e.in=t.in,e.out=t.out});function cw(e,t){return new h5({type:"pipe",in:e,out:t})}const p5=F("ZodReadonly",(e,t)=>{NO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>s$(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function m5(e){return new p5({type:"readonly",innerType:e})}const g5=F("ZodCustom",(e,t)=>{IO.init(e,t),ut.init(e,t),e._zod.processJSONSchema=(n,r,o)=>HR(e,n,r,o)});function v5(e,t={}){return OR(g5,e,t)}function y5(e,t){return RR(e,t)}const w5="modulepreload",x5=function(e){return"/"+e},dw={},F1=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=u(n.map(p=>{if(p=x5(p),p in dw)return;dw[p]=!0;const m=p.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":w5,m||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),m)return new Promise((x,_)=>{v.addEventListener("load",x),v.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};function mn(e){return typeof e=="object"&&!!e&&!Array.isArray(e)}function tc(e){if(typeof AbortSignal.any=="function")return AbortSignal.any(e);let t=new AbortController;for(let r of e)if(r.aborted)return t.abort(r.reason),t.signal;let n=()=>{var r;t.abort((r=e.find(o=>o.aborted))==null?void 0:r.reason);for(let o of e)o.removeEventListener("abort",n)};for(let r of e)r.addEventListener("abort",n);return t.signal}var b5=class extends Error{constructor(e){let t=e.url.length>400?e.url.slice(0,399)+"â¦":e.url;super(`${e.method}-request to ${t} resulted in HTTP ${e.status} ${e.statusText}`),this.name="HttpError",this.url=e.url,this.method=e.method,this.status=e.status,this.statusText=e.statusText,this.headers=e.headers,this.body=e.body,this.response=e.response}}
265,S5=class extends Error{constructor(e){let t=e.url.length>400?e.url.slice(0,399)+"â¦":e.url;super(`Request timed out after ${e.timeoutMs}ms waiting for response headers: ${e.method} ${t}`),this.name="TimeoutError",this.url=e.url,this.method=e.method,this.timeoutMs=e.timeoutMs,this.phase=e.phase,this.code="ETIMEDOUT"}};let _5;function V1(e,t,n,r,o,l){let u,d;return{status:e,statusText:t,headers:n,url:o,redirected:l,body:r,text(){return u??(u=(_5??(_5=new TextDecoder)).decode(r))},json(){return(d??(d={value:JSON.parse(this.text())})).value},bytes(){return r}}}function E5(e){let t=e==null?void 0:e.fetch,n=e==null?void 0:e.base,r=e==null?void 0:e.httpErrors,o=e==null?void 0:e.timeout,l=e==null?void 0:e.credentials,u=(e==null?void 0:e.middleware)??[],d=[],f=[];for(let k of u)typeof k=="object"?d.push(k):f.push(k);async function p(k,P){let{totalMs:A,headersMs:M,attachSignal:L}=k5(P.timeout===void 0?o:P.timeout),{url:D,init:B,clearTotalTimer:W}=A5(P,L?A:void 0,l),V=B.method??"GET",X=!L&&A!==void 0?C5(A,new DOMException("The operation was aborted due to timeout","TimeoutError")):void 0,oe=X==null?void 0:X.deadline,I=()=>{W==null||W(),X==null||X.clear()};if(M===void 0&&oe===void 0)try{return{response:await k(D,B),url:D,method:V,totalDeadline:oe,clearDeadline:I}}catch(le){throw I(),le}let U=oe===void 0?[]:[oe],J,ue;if(M!==void 0){let le=new S5({url:D,method:V,timeoutMs:M,phase:"headers"});ue=L?new AbortController:void 0,U.push(new Promise((H,ne)=>{J=setTimeout(()=>{ne(le),ue==null||ue.abort(le)},M)}))}let Se=ue&&B.signal?tc([B.signal,ue.signal]):(ue==null?void 0:ue.signal)??B.signal,Ce;try{return Ce=Promise.resolve(ue?k(D,{...B,signal:Se}):k(D,B)),{response:await Promise.race([Ce,...U]),url:D,method:V,totalDeadline:oe,clearDeadline:I}}catch(le){throw Ce==null||Ce.then(H=>{var ne;return(ne=H.body)==null?void 0:ne.cancel()}).catch(()=>{}),I(),le}finally{clearTimeout(J)}}async function m(k){let{response:P,url:A,method:M,totalDeadline:L,clearDeadline:D}=await p(k.fetch??t??globalThis.fetch,k),B=k.httpErrors??r??!0;try{return await fw(Eh(P,B,A,M),L)}finally{D()}}let y=pw(m,f);async function v(k){let P=Dl(k,d),A=Af(await y(P),P,d);try{return Nf(A,JSON.parse(A.text()))}catch(M){throw TypeError(`Failed to parse JSON response from ${k.url}: ${M instanceof Error?M.message:M}`,{cause:M})}}async function x(k){let P=Dl(k,d),A=Af(await y(P),P,d);return Nf(A,A.text())}async function _(k){let P=Dl(k,d),A;async function M(D){let{response:B,url:W,method:V,totalDeadline:X,clearDeadline:oe}=await p(D.fetch??t??globalThis.fetch,D),I=D.httpErrors??r??!0;if(I&&B.status>=400)try{return await fw(Eh(B,I,W,V),X)}finally{oe()}return X!==void 0&&oe(),A=B,V1(B.status,B.statusText,B.headers,new Uint8Array,B.url,B.redirected)}if(ni(M,"getItStreamed"),await pw(M,f)(P),!A)throw Error("Stream response was not captured");let L=A.body??new ReadableStream({start(D){D.close()}});return Nf(A,L)}async function E(k){let P=typeof k=="string"?{url:k}:k,A=P.url;n&&!/^https?:\/\//.test(A)&&(A=n.replace(/\/$/,"")+"/"+A.replace(/^\//,""));let M={...P,url:A,headers:j5(e==null?void 0:e.headers,P.headers)};switch(M.as??(e==null?void 0:e.as)){case"json":return await v(M);case"text":return await x(M);case"stream":return await _(M);default:{let L=Dl(M,d);return Af(await y(L),L,d)}}}return ni(p,"performFetch"),ni(m,"getItBuffered"),ni(_,"requestStream"),ni(v,"requestJson"),ni(x,"requestText"),ni(E,"request"),E}function k5(e){return typeof e=="number"||e===!1?{totalMs:jf(e),headersMs:void 0,attachSignal:!0}:{totalMs:(e==null?void 0:e.total)===void 0?12e4:jf(e.total),headersMs:jf(e==null?void 0:e.headers),attachSignal:(e==null?void 0:e.signal)!==!1}}function jf(e){if(!(e===void 0||e===!1||e<=0))return e}function U1(e){typeof e=="object"&&e&&"unref"in e&&typeof e.unref=="function"&&e.unref()}function C5(e,t){let n,r=new Promise((o,l)=>{n=setTimeout(()=>l(t),e),U1(n)});return r.catch(()=>{}),{deadline:r,clear:()=>clearTimeout(n)}}async function fw(e,t){if(t===void 0)return e;try{return await Promise.race([e,t])}catch(n){throw e.catch(()=>{}),n}}function P5(e){if(typeof e!="object"||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function T5(e){return e instanceof Blob||e instanceof ArrayBuffer||e instanceof ReadableStream||ArrayBuffer.isView(e)||e instanceof FormData||e instanceof URLSearchParams}function hw(e){if(e instanceof Headers||Array.isArray(e))return e;let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}function j5(e,t){let n=new Headers(e?hw(e):void 0);
265t&&new Headers(hw(t)).forEach((o,l)=>{n.set(l,o)});let r={};return n.forEach((o,l)=>{r[l]=o}),r}function A5(e,t,n){let r=e.url;if(e.query){let p=e.query instanceof URLSearchParams?e.query.entries():Object.entries(e.query),m=new URLSearchParams;for(let[v,x]of p)x!==void 0&&m.append(v,`${x}`);let y=m.toString();if(y){let v=r.indexOf("#"),x=v===-1?r:r.slice(0,v),_=v===-1?"":r.slice(v);r=`${x}${x.includes("?")?"&":"?"}${y}${_}`}}let o=new Headers(e.headers),l={};if(e.method&&(l.method=e.method),!e.method&&e.body!==void 0&&e.body!==null&&(l.method="POST"),e.body!==void 0&&e.body!==null)if(typeof e.body=="string")l.body=e.body;else if(P5(e.body)||Array.isArray(e.body))l.body=JSON.stringify(e.body),o.has("content-type")||o.set("content-type","application/json");else if(T5(e.body))l.body=e.body;else throw TypeError(`Unsupported body type: ${typeof e.body}`);l.headers=o;let u=e.signal,d;if(t!==void 0){let p=new AbortController,m=setTimeout(()=>p.abort(new DOMException("The operation was aborted due to timeout","TimeoutError")),t);U1(m),d=()=>clearTimeout(m),u=u?tc([u,p.signal]):p.signal}u&&(l.signal=u);let f=e.credentials??n;return f!==void 0&&(l.credentials=f),e.redirect&&(l.redirect=e.redirect),{url:r,init:l,clearTotalTimer:d}}async function Eh(e,t,n,r){let o=await e.arrayBuffer(),l=new Uint8Array(o),u=V1(e.status,e.statusText,e.headers,l,e.url,e.redirected);if(t&&e.status>=400){let d=new b5({url:n,method:r,status:e.status,statusText:e.statusText,headers:e.headers,body:u.text(),response:u});throw N5(Error)&&Error.captureStackTrace(d,Eh),d}return u}function pw(e,t){let n=e;for(let r=t.length-1;r>=0;r--){let o=t[r],l=n;n=u=>o(u,l)}return n}function Dl(e,t){let n=e;for(let r of t)r.beforeRequest&&(n=r.beforeRequest(n));return n}function Af(e,t,n){let r=e;for(let o of n)o.afterResponse&&(r=o.afterResponse(r,t));return r}function Nf(e,t){return{status:e.status,statusText:e.statusText,headers:e.headers,url:e.url,redirected:e.redirected,body:t}}function N5(e){return"captureStackTrace"in e}function ni(e,t){Object.defineProperty(e,"name",{value:t})}function B1(e){if(!kh(e)||e.name!=="HttpError"||typeof e.message!="string"||typeof e.url!="string"||typeof e.method!="string"||typeof e.status!="number"||typeof e.statusText!="string"||!mw(e.headers)||!("body"in e)||!kh(e.response))return!1;let t=e.response;return t.status===e.status&&typeof t.statusText=="string"&&mw(t.headers)&&"body"in t&&(t.url===void 0||typeof t.url=="string")&&(t.redirected===void 0||typeof t.redirected=="boolean")}function kh(e){return typeof e=="object"&&!!e}function mw(e){return kh(e)&&typeof e.get=="function"}function I5(e){let t=(e==null?void 0:e.maxRetries)??5,n=(e==null?void 0:e.retryDelay)??O5,r=(e==null?void 0:e.shouldRetry)??W1;return async function(l,u){let d=typeof l.maxRetries=="number"?l.maxRetries:t,f;for(let p=0;p<=d;p++)try{return await u(l)}catch(m){if(f=m,p>=d||!r(m,p,l))throw m;await M5(n(p),l.signal)}throw f}}function O5(e){return 100*2**e+Math.random()*100}function W1(e,t,n){let r=(n.method??"GET").toUpperCase();return r!=="GET"&&r!=="HEAD"||e instanceof Error&&"name"in e&&e.name==="HttpError"?!1:$5(e)}const R5=new Set(["ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE","ENOTFOUND","ENETDOWN","EHOSTUNREACH","EAI_AGAIN","UND_ERR_CONNECT_TIMEOUT","UND_ERR_SOCKET"]);function $5(e){if(!(e instanceof Error))return!1;let t=gw(e)??gw(e.cause);return t?R5.has(t):e.name==="TimeoutError"||e.name==="AbortError"?!1:"retryable"in e&&typeof e.retryable=="boolean"?e.retryable:e instanceof TypeError}function gw(e){if(e instanceof Error)return"code"in e&&typeof e.code=="string"?e.code:void 0}function M5(e,t){return new Promise((n,r)=>{if(t!=null&&t.aborted){r(t.reason);return}let o=setTimeout(n,e);t==null||t.addEventListener("abort",()=>{clearTimeout(o),r(t.reason)},{once:!0})})}var Ch=function(e,t){return Ch=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ch(e,t)};function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ch(e,t);function n(){this.constructor=e}
vendor: 4,606 bytes, lines 265-267
265e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function D5(e,t,n,r){function o(l){return l instanceof n?l:new n(function(u){u(l)})}return new(n||(n=Promise))(function(l,u){function d(m){try{p(r.next(m))}catch(y){u(y)}}function f(m){try{p(r.throw(m))}catch(y){u(y)}}function p(m){m.done?l(m.value):o(m.value).then(d,f)}p((r=r.apply(e,t||[])).next())})}function Z1(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,o,l,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=d(0),u.throw=d(1),u.return=d(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(p){return function(m){return f([p,m])}}function f(p){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,p[0]&&(n=0)),n;)try{if(r=1,o&&(l=p[0]&2?o.return:p[0]?o.throw||((l=o.return)&&l.call(o),0):o.next)&&!(l=l.call(o,p[1])).done)return l;switch(o=0,l&&(p=[p[0]&2,l.value]),p[0]){case 0:case 1:l=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,o=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!l||p[1]>l[0]&&p[1]<l[3])){n.label=p[1];break}if(p[0]===6&&n.label<l[1]){n.label=l[1],l=p;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(p);break}l[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(m){p=[6,m],o=0}finally{r=l=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function _s(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,l=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)l.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return l}function Xo(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,l;r<o;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}function ps(e){return this instanceof ps?(this.v=e,this):new ps(e)}function z5(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,l=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),d("next"),d("throw"),d("return",u),o[Symbol.asyncIterator]=function(){return this},o;function u(x){return function(_){return Promise.resolve(_).then(x,y)}}function d(x,_){r[x]&&(o[x]=function(E){return new Promise(function(k,P){l.push([x,E,k,P])>1||f(x,E)})},_&&(o[x]=_(o[x])))}function f(x,_){try{p(r[x](_))}catch(E){v(l[0][3],E)}}function p(x){x.value instanceof ps?Promise.resolve(x.value.v).then(m,y):v(l[0][2],x)}function m(x){f("next",x)}function y(x){f("throw",x)}function v(x,_){x(_),l.shift(),l.length&&f(l[0][0],l[0][1])}}function L5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof _s=="function"?_s(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(l){n[l]=e[l]&&function(u){return new Promise(function(d,f){u=e[l](u),o(d,f,u.done,u.value)})}}function o(l,u,d,f){Promise.resolve(f).then(function(p){l({value:p,done:d})},u)}}function Je(e){return typeof e=="function"}function Mp(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var If=Mp(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: 266`+n.map(function(r,o){return o+1+") "+r.toString()}).join(` 267 `):"",this.name="UnsubscriptionError",this.errors=n}});function mu(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var da=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,l;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var d=_s(u),f=d.next();!f.done;f=d.next()){var p=f.value;p.remove(this)}}catch(E){t={error:E}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}else u.remove(this);var m=this.initialTeardown;
vendor: 11,095 bytes, line 267
267if(Je(m))try{m()}catch(E){l=E instanceof If?E.errors:[E]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var v=_s(y),x=v.next();!x.done;x=v.next()){var _=x.value;try{vw(_)}catch(E){l=l??[],E instanceof If?l=Xo(Xo([],Qo(l)),Qo(E.errors)):l.push(E)}}}catch(E){r={error:E}}finally{try{x&&!x.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}if(l)throw new If(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)vw(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&mu(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&mu(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),q1=da.EMPTY;function H1(e){return e instanceof da||e&&"closed"in e&&Je(e.remove)&&Je(e.add)&&Je(e.unsubscribe)}function vw(e){Je(e)?e():e.unsubscribe()}var F5={Promise:void 0},V5={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Xo([e,t],Qo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function K1(e){V5.setTimeout(function(){throw e})}function yw(){}function Xl(e){e()}var Dp=(function(e){Vr(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,H1(n)&&n.add(r)):r.destination=W5,r}return t.create=function(n,r,o){return new ea(n,r,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(da),U5=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){zl(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){zl(r)}else zl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){zl(n)}},e})(),ea=(function(e){Vr(t,e);function t(n,r,o){var l=e.call(this)||this,u;return Je(n)||!n?u={next:n??void 0,error:r??void 0,complete:o??void 0}:u=n,l.destination=new U5(u),l}return t})(Dp);function zl(e){K1(e)}function B5(e){throw e}var W5={closed:!0,next:yw,error:B5,complete:yw},zp=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Lp(e){return e}function Z5(e){return e.length===0?Lp:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var Qe=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,l=H5(t)?t:new ea(t,n,r);return Xl(function(){var u=o,d=u.operator,f=u.source;l.add(d?d.call(l,f):f?o._subscribe(l):o._trySubscribe(l))}),l},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=ww(n),new n(function(o,l){var u=new ea({next:function(d){try{t(d)}catch(f){l(f),u.unsubscribe()}},error:l,complete:o});r.subscribe(u)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[zp]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Z5(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=ww(t),new t(function(r,o){var l;n.subscribe(function(u){return l=u},function(u){return o(u)},function(){return r(l)})})},e.create=function(t){return new e(t)},e})();function ww(e){var t;return(t=e??F5.Promise)!==null&&t!==void 0?t:Promise}function q5(e){return e&&Je(e.next)&&Je(e.error)&&Je(e.complete)}function H5(e){return e&&e instanceof Dp||q5(e)&&H1(e)}function K5(e){return Je(e==null?void 0:e.lift)}function sr(e){return function(t){if(K5(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ci(e,t,n,r,o){return new G5(e,t,n,r,o)}var G5=(function(e){Vr(t,e);function t(n,r,o,l,u,d){var f=e.call(this,n)||this;return f.onFinalize=u,f.shouldUnsubscribe=d,f._next=r?function(p){try{r(p)}catch(m){n.error(m)}}:e.prototype._next,f._error=l?function(p){try{l(p)}catch(m){n.error(m)}finally{this.unsubscribe()}}:e.prototype._error,f._complete=o?function(){try{o()}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._complete,f}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(Dp),Y5=Mp(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),G1=(function(e){Vr(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new xw(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Y5},t.prototype.next=function(n){var r=this;Xl(function(){var o,l;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var u=_s(r.currentObservers),d=u.next();!d.done;d=u.next()){var f=d.value;f.next(n)}}catch(p){o={error:p}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Xl(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Xl(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,l=o.hasError,u=o.isStopped,d=o.observers;return l||u?q1:(this.currentObservers=null,d.push(n),new da(function(){r.currentObservers=null,mu(d,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,l=r.thrownError,u=r.isStopped;o?n.error(l):u&&n.complete()},t.prototype.asObservable=function(){var n=new Qe;return n.source=this,n},t.create=function(n,r){return new xw(n,r)},t})(Qe),xw=(function(e){Vr(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:q1},t})(G1),J5={now:function(){return Date.now()}},Q5=(function(e){Vr(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t})(da),bw={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,Xo([e,t],Qo(n)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},X5=(function(e){Vr(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.pending=!1,o}return t.prototype.schedule=function(n,r){var o;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var l=this.id,u=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(u,l,r)),this.pending=!0,this.delay=r,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(u,this.id,r),this},t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),bw.setInterval(n.flush.bind(n,this),o)},t.prototype.recycleAsyncId=function(n,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;r!=null&&bw.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var o=!1,l;try{this.work(n)}catch(u){o=!0,l=u||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),l},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,o=n.scheduler,l=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,mu(l,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Q5),Sw=(function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=J5.now,e})(),e4=(function(e){Vr(t,e);function t(n,r){r===void 0&&(r=Sw.now);var o=e.call(this,n,r)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var o;this._active=!0;do if(o=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,o){for(;n=r.shift();)n.unsubscribe();throw o}},t})(Sw),t4=new e4(X5),n4=t4,r4=new Qe(function(e){return e.complete()});function i4(e){return e&&Je(e.schedule)}function Y1(e){return e[e.length-1]}function Fp(e){return i4(Y1(e))?e.pop():void 0}function s4(e,t){return typeof Y1(e)=="number"?e.pop():t}var J1=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Q1(e){return Je(e==null?void 0:e.then)}function X1(e){return Je(e[zp])}function eS(e){return Symbol.asyncIterator&&Je(e==null?void 0:e[Symbol.asyncIterator])}function tS(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invali
267d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function o4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var nS=o4();function rS(e){return Je(e==null?void 0:e[nS])}function iS(e){return z5(this,arguments,function(){var n,r,o,l;return Z1(this,function(u){switch(u.label){case 0:n=e.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,ps(n.read())];case 3:return r=u.sent(),o=r.value,l=r.done,l?[4,ps(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,ps(o)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function sS(e){return Je(e==null?void 0:e.getReader)}function Un(e){if(e instanceof Qe)return e;if(e!=null){if(X1(e))return a4(e);if(J1(e))return l4(e);if(Q1(e))return u4(e);if(eS(e))return oS(e);if(rS(e))return c4(e);if(sS(e))return d4(e)}throw tS(e)}function a4(e){return new Qe(function(t){var n=e[zp]();if(Je(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function l4(e){return new Qe(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function u4(e){return new Qe(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,K1)})}function c4(e){return new Qe(function(t){var n,r;try{for(var o=_s(e),l=o.next();!l.done;l=o.next()){var u=l.value;if(t.next(u),t.closed)return}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()})}function oS(e){return new Qe(function(t){f4(e,t).catch(function(n){return t.error(n)})})}function d4(e){return oS(iS(e))}function f4(e,t){var n,r,o,l;return D5(this,void 0,void 0,function(){var u,d;return Z1(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),n=L5(e),f.label=1;case 1:return[4,n.next()];case 2:if(r=f.sent(),!!r.done)return[3,4];if(u=r.value,t.next(u),t.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=f.sent(),o={error:d},[3,11];case 6:return f.trys.push([6,,9,10]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Si(e,t,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var l=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(l),!o)return l}function aS(e,t){return t===void 0&&(t=0),sr(function(n,r){n.subscribe(Ci(r,function(o){return Si(r,e,function(){return r.next(o)},t)},function(){return Si(r,e,function(){return r.complete()},t)},function(o){return Si(r,e,function(){return r.error(o)},t)}))})}function lS(e,t){return t===void 0&&(t=0),sr(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function h4(e,t){return Un(e).pipe(lS(t),aS(t))}function p4(e,t){return Un(e).pipe(lS(t),aS(t))}function m4(e,t){return new Qe(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function g4(e,t){return new Qe(function(n){var r;return Si(n,t,function(){r=e[nS](),Si(n,t,function(){var o,l,u;try{o=r.next(),l=o.value,u=o.done}catch(d){n.error(d);return}u?n.complete():n.next(l)},0,!0)}),function(){return Je(r==null?void 0:r.return)&&r.return()}})}function uS(e,t){if(!e)throw new Error("Iterable cannot be null");return new Qe(function(n){Si(n,t,function(){var r=e[Symbol.asyncIterator]();Si(n,t,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}function v4(e,t){return uS(iS(e),t)}function y4(e,t){if(e!=null){if(X1(e))return h4(e,t);if(J1(e))return m4(e,t);if(Q1(e))return p4(e,t);if(eS(e))return uS(e,t);if(rS(e))return g4(e,t);if(sS(e))return v4(e,t)}throw tS(e)}function nc(e,t){return t?y4(e,t):Un(e)}function gu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Fp(e);return nc(e,n)}function fa(e,t){var n=Je(e)?e:function(){return e},r=function(o){return o.error(n())};return new Qe(r)}function w4(e){return!!e&&(e instanceof Qe||Je(e.lift)&&Je(e.subscribe))}var x4=Mp(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Gt(e,t){return new Promise(function(n,r){var o=!1,l;e.subscribe({next:function(u){l=u,o=!0},error:r,complete:function(){o?n(l):r(new x4)}})})}function b4(e){return e instanceof Date&&!isNaN(e)}function Pn(e,t){return sr(function(n,r){var o=0;n.subscribe(Ci(r,function(l){r.next(e.call(t,l,o++))}))})}function S4(e,t,n,r,o,l,u,d){var f=[],p=0,m=0,y=!1,v=function(){y&&!f.length&&!p&&t.complete()},x=function(E){return p<r?_(E):f.push(E)},_=function(E){p++;var k=!1;Un(n(E,m++)).subscribe(Ci(t,function(P){t.next(P)},function(){k=!0},void 0,function(){if(k)try{p--;for(var P=function(){var A=f.shift();u||_(A)};f.length&&p<r;)P();v()}catch(A){t.error(A)}}))};return e.subscribe(Ci(t,x,function(){y=!0,v()})),function(){}}function Rr(e,t,n){return n===void 0&&(n=1/0),Je(t)?Rr(function(r,o){return Pn(function(l,u){return t(r,l,o,u)})(Un(e(r,o)))},n):(typeof t=="number"&&(n=t),sr(function(r,o){return S4(r,o,e,n)}))}function Vp(e){return e===void 0&&(e=1/0),Rr(Lp,e)}function _4(){return Vp(1)}function E4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _4()(nc(e,Fp(e)))}function Up(e){return new Qe(function(t){Un(e()).subscribe(t)})}function k4(e,t,n){return n===void 0&&(n=n4),new Qe(function(r){var o=b4(e)?+e-n.now():e;o<0&&(o=0);var l=0;return n.schedule(function(){r.closed||(r.next(l++),r.complete())},o)})}function C4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Fp(e),r=s4(e,1/0),o=e;return o.length?o.length===1?Un(o[0]):Vp(r)(nc(o,n)):r4}function Bp(e,t){return sr(function(n,r){var o=0;n.subscribe(Ci(r,function(l){return e.call(t,l,o++)&&r.next(l)}
267))})}function Wp(e){return sr(function(t,n){var r=null,o=!1,l;r=t.subscribe(Ci(n,void 0,void 0,function(u){l=Un(e(u,Wp(e)(t))),r?(r.unsubscribe(),r=null,l.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,l.subscribe(n))})}function cS(e){return sr(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function P4(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new G1}:t,r=e.resetOnError,o=r===void 0?!0:r,l=e.resetOnComplete,u=l===void 0?!0:l,d=e.resetOnRefCountZero,f=d===void 0?!0:d;return function(p){var m,y,v,x=0,_=!1,E=!1,k=function(){y==null||y.unsubscribe(),y=void 0},P=function(){k(),m=v=void 0,_=E=!1},A=function(){var M=m;P(),M==null||M.unsubscribe()};return sr(function(M,L){x++,!E&&!_&&k();var D=v=v??n();L.add(function(){x--,x===0&&!E&&!_&&(y=Of(A,f))}),D.subscribe(L),!m&&x>0&&(m=new ea({next:function(B){return D.next(B)},error:function(B){E=!0,k(),y=Of(P,o,B),D.error(B)},complete:function(){_=!0,k(),y=Of(P,u),D.complete()}}),Un(M).subscribe(m))})(p)}}function Of(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var o=new ea({next:function(){o.unsubscribe(),e()}});return Un(t.apply(void 0,Xo([],Qo(n)))).subscribe(o)}}function T4(e,t,n){var r=Je(e)||t||n?{next:e,error:t,complete:n}:e;return r?sr(function(o,l){var u;(u=r.subscribe)===null||u===void 0||u.call(r);var d=!0;o.subscribe(Ci(l,function(f){var p;(p=r.next)===null||p===void 0||p.call(r,f),l.next(f)},function(){var f;d=!1,(f=r.complete)===null||f===void 0||f.call(r),l.complete()},function(f){var p;d=!1,(p=r.error)===null||p===void 0||p.call(r,f),l.error(f)},function(){var f,p;d&&((f=r.unsubscribe)===null||f===void 0||f.call(r)),(p=r.finalize)===null||p===void 0||p.call(r)}))}):Lp}const _w=/\r\n|[\n\r\u2028\u2029]/;function j4(e,t,n){let r=e.split(_w),{start:o,end:l,markerLines:u}=A4({start:Ew(t.start,r),end:t.end?Ew(t.end,r):void 0},r),d=`${l}`.length;return e.split(_w,l).slice(o,l).map((f,p)=>{let m=o+1+p,y=` ${` ${m}`.slice(-d)} |`,v=u[m],x=!u[m+1];if(!v)return` ${y}${f.length>0?` ${f}`:""}`;let _="";if(Array.isArray(v)){let E=f.slice(0,Math.max(v[0]-1,0)).replace(/[^\t]/g," "),k=v[1]||1;_=[` 268 `,y.replace(/\d/g," ")," ",E,"^".repeat(k)].join(""),x&&n&&(_+=" "+n)}return[">",y,f.length>0?` ${f}`:"",_].join("")}).join(` 269`)}function A4(e,t){let n={...e.start},r={...n,...e.end},o=n.line??-1,l=n.column??0,u=r.line,d=r.column,f=Math.max(o-3,0),p=Math.min(t.length,u+3);o===-1&&(f=0),u===-1&&(p=t.length);let m=u-o,y={};if(m)for(let v=0;v<=m;v++){let x=v+o;y[x]=l?v===0?[l,t[x-1].length-l+1]:v===m?[0,d]:[0,t[x-v].length]:!0}else y[o]=l===d?!l||[l,0]:[l,d-l];return{start:f,end:p,markerLines:y}}function Ew(e,t){var r;let n=0;for(let o=0;o<t.length;o++){let l=t[o].length+1;if(n+l>e)return{line:o+1,column:e-n};n+=l}return{line:t.length,column:((r=t[t.length-1])==null?void 0:r.length)??0}}function ta(e){"@babel/helpers - typeof";return ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ta(e)}function N4(e,t){if(ta(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ta(r)!="object")return r;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I4(e){var t=N4(e,"string");return ta(t)=="symbol"?t:t+""}function re(e,t,n){return(t=I4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O4(e,t,n){return{statusCode:e.status,statusMessage:e.statusText||null,headers:R4(e.headers),body:e.body,url:e.url||t,method:n}}function R4(e){let t={};return e.forEach((n,r)=>{t[r]=n}),t}var $4=class extends Error{constructor(e,t){let n=dS(e,t);super(n.message),re(this,"response",void 0),re(this,"statusCode",400),re(this,"responseBody",void 0),re(this,"traceId",void 0),re(this,"details",void 0),Object.assign(this,n)}},M4=class extends Error{constructor(e){let t=dS(e);super(t.message),re(this,"response",void 0),re(this,"statusCode",500),re(this,"responseBody",void 0),re(this,"traceId",void 0),re(this,"details",void 0),Object.assign(this,t)}};function dS(e,t){let n=e.body,r={response:e,statusCode:e.statusCode,responseBody:F4(n,e),traceId:L4(e),message:"",details:void 0};if(!mn(n))return r.message=`${Rf(e,n)}${kr(r.traceId)}`,r;let o=n.error;
269if(typeof o=="string"&&typeof n.message=="string")return r.message=`${o} - ${n.message}${kr(r.traceId)}`,r;if(typeof o!="object"||!o)return r.message=typeof o=="string"?`${o}${kr(r.traceId)}`:typeof n.message=="string"?`${n.message}${kr(r.traceId)}`:`${Rf(e,n)}${kr(r.traceId)}`,r;if(D4(o)||z4(o)){let l=o.items||[],u=l.slice(0,5).map(f=>{var p;return(p=f.error)==null?void 0:p.description}).filter(Boolean),d=u.length?`: 270- ${u.join(` 271- `)}`:"";return l.length>5&&(d+=` 272...and ${l.length-5} more`),r.message=`${o.description}${kr(r.traceId)}${d}`,r.details=n.error,r}return fS(o)?(r.message=hS(o,t,r.traceId),r.details=n.error,r):"description"in o&&typeof o.description=="string"?(r.message=`${o.description}${kr(r.traceId)}`,r.details=o,r):(r.message=`${Rf(e,n)}${kr(r.traceId)}`,r)}function D4(e){return"type"in e&&e.type==="mutationError"&&"description"in e&&typeof e.description=="string"}function z4(e){return"type"in e&&e.type==="actionError"&&"description"in e&&typeof e.description=="string"}function fS(e){return mn(e)&&e.type==="queryParseError"&&typeof e.query=="string"&&typeof e.start=="number"&&typeof e.end=="number"}function hS(e,t,n){let{query:r,start:o,end:l,description:u}=e,d=n?` 273(traceId: ${n})`:"";if(!r||o===void 0)return`GROQ query parse error: ${u}${d}`;let f=t?` 274 275Tag: ${t}`:"";return`GROQ query parse error: 276${j4(r,{start:o,end:l},u)}${f}${d}`}function Rf(e,t){let n=typeof t=="string"?` (${V4(t,100)})`:"",r=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${r}${n}`}function L4(e){var n;let t=(n=e==null?void 0:e.headers)==null?void 0:n.traceparent;if(t)return t.split("-")[1]}function F4(e,t){return(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")===-1?e:JSON.stringify(e,null,2)}function kr(e){return e?` (traceId: ${e})`:""}function V4(e,t){return e.length>t?`${e.slice(0,t)}â¦`:e}var Ph=class extends Error{constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),re(this,"projectId",void 0),re(this,"addOriginUrl",void 0),this.name="CorsOriginError",this.projectId=e,e&&typeof location<"u"){let n=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:r}=location;n.searchParams.set("cors","add"),n.searchParams.set("origin",r),t&&n.searchParams.set("credentials",""),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else this.message=e?`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:"The current origin is not allowed to connect to the Live Content API."}};function kw(e,t={}){let n=(u,d)=>{var y;let f=(y=u.meta)==null?void 0:y.fetchInit;if(typeof f!="object"||!f)return d(u);let p=u.fetch??e.fetch??globalThis.fetch;return d({...u,fetch:(v,x)=>p(v,{...f,...x})})},r=E5({...e.fetch?{fetch:e.fetch}:{},headers:e.headers,httpErrors:!0,middleware:[I5({shouldRetry:q4,maxRetries:t.maxRetries??5,...t.retryDelay?{retryDelay:t.retryDelay}:{}}),...e.middleware,n,H4(t)]}),o=u=>{if(typeof u.url!="string")throw TypeError("Request options must include a `url`");return U4(r,u)};return{promise:o,observable:u=>new Qe(d=>{let f=new AbortController,p=u.signal,m=p?tc([p,f.signal]):f.signal,y=nc(o({...u,signal:m})).subscribe(d);return()=>{y.unsubscribe(),f.abort()}})}}async function U4(e,t){let n=t.url,r=(t.method??"GET").toUpperCase(),o;try{o=await e(t)}catch(l){if(B1(l)){let u=pS(typeof l.body=="string"?l.body:"",l.headers),d=O4({status:l.status,statusText:l.statusText,headers:l.headers,body:u,url:l.response.url??l.url},n,r),f=B4(t.query);throw d.statusCode>=500?new M4(d):new $4(d,f)}throw l}return{type:"response",body:W4(o),statusCode:o.status,statusMessage:o.statusText||null,headers:Z4(o.headers),url:o.url||n,method:r}}function B4(e){if(!e)return;if(e instanceof URLSearchParams)return e.get("tag")??void 0;let t=e.tag;return typeof t=="string"?t:void 0}function W4(e){return pS(e.text(),e.headers)}function pS(e,t){let n=(t.get("content-type")??"").toLowerCase();if(e){if(n.includes("application/json"))try{return JSON.parse(e)}catch{return e}return e}}function Z4(e){let t={};return e.forEach((n,r)=>{t[r]=n}),t}function q4(e,t,n){if(B1(e)){let r=(n.method??"GET")==="GET"||n.method==="HEAD",o=(n.url??"").includes("/data/query"),l=e.status;return!!((r||o)&&(l===429||l===502||l===503))}
276return W1(e,t,n)}function H4(e){let t={},n=r=>e.ignoreWarnings!==void 0&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(o=>typeof o=="string"?r.includes(o):o.test(r));return{afterResponse(r){let o=r.headers.get("x-sanity-warning");if(!o)return r;for(let l of o.split(",").map(u=>u.trim()))!l||t[l]||n(l)||(t[l]=!0,console.warn(l));return r}}}function Zp(e){return"https://www.sanity.io/help/"+e}const Cw=["image","file"],Pw=["before","after","replace"],Pi=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},K4=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},G4=e=>{if(Cw.indexOf(e)===-1)throw Error(`Invalid asset type: ${e}. Must be one of ${Cw.join(", ")}`)},Bo=(e,t)=>{if(typeof t!="object"||!t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},vu=(e,t)=>{if(typeof t!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},Es=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);vu(e,t._id)},Y4=(e,t)=>{if(typeof t!="string")throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)},mS=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);Y4(e,t._type)},J4=(e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)},Q4=(e,t,n)=>{let r="insert(at, selector, items)";if(Pw.indexOf(e)===-1){let o=Pw.map(l=>`"${l}"`).join(", ");throw Error(`${r} takes an "at"-argument which is one of: ${o}`)}if(typeof t!="string")throw Error(`${r} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw Error(`${r} takes an "items"-argument which must be an array`)},Bn=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&t.type==="dataset"){let n=t.id.split(".");if(n.length!==2)throw Error('Dataset resource ID must be in the format "project.dataset"');return n[1]}throw Error("`dataset` must be provided to perform queries")},gS=e=>{if(typeof e!="string"||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},vS=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:n,id:r}=t;switch(n){case"dataset":if(r.split(".").length!==2)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"knowledge-base":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${n.toString()}`)}},Cn=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)};function X4(e){let t=!1,n;return(...r)=>(t||(n=e(...r),t=!0),n)}const Wn=e=>X4((...t)=>console.warn(e.join(" "),...t)),eM=Wn(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),tM=Wn(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),nM=Wn(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),rM=Wn(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),iM=Wn(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${Zp("js-client-browser-token")} for more information and how to hide this warning.`]),sM=Wn(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),oM=Wn(["Using the Sanity client without specifying an API version is deprecated.",`See ${Zp("js-client-api-version")}`]),aM=Wn(["You have called `createVersion()` with a defined `document`.","If you are creating a version of a document that already exists, prefer providing `baseId` and `releaseId` instead."]),lM=Wn(["The `uri` request option has been renamed to `url`.","Please update your co
276de to use `url` instead. Support for `uri` will be removed in a future version."]),uM=Wn(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),fs={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},cM=["localhost","127.0.0.1","0.0.0.0"],dM=e=>cM.indexOf(e)!==-1;function fM(e){if(e==="1"||e==="X")return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}function yS(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}const wS=(e,t)=>{let n={...t,...e,stega:{...typeof t.stega=="boolean"?{enabled:t.stega}:t.stega||fs.stega,...typeof e.stega=="boolean"?{enabled:e.stega}:e.stega||{}}};n.apiVersion||oM();let r={...fs,...n,apiHost:n.apiHost??fs.apiHost};r["~experimental_resource"]&&!r.resource&&(uM(),r.resource=r["~experimental_resource"]);let o=r.resource,l=r.useProjectHostname&&!o;if(typeof Promise>"u"){let x=Zp("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${x}`)}if(l&&!r.projectId)throw Error("Configuration must contain `projectId`");if(o&&vS(r),r.perspective!==void 0&&yS(r.perspective),"encodeSourceMap"in r)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in r)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if(typeof r.stega.enabled!="boolean")throw Error(`stega.enabled must be a boolean, received ${r.stega.enabled}`);if(r.stega.enabled&&r.stega.studioUrl===void 0)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(r.stega.enabled&&typeof r.stega.studioUrl!="string"&&typeof r.stega.studioUrl!="function")throw Error(`stega.studioUrl must be a string or a function, received ${r.stega.studioUrl}`);let u=typeof window<"u"&&window.location&&window.location.hostname,d=u&&dM(window.location.hostname),f=!!r.token;r.withCredentials&&f&&(sM(),r.withCredentials=!1),u&&d&&f&&r.ignoreBrowserTokenWarning!==!0?iM():r.useCdn===void 0&&tM(),l&&K4(r.projectId),r.dataset&&Pi(r.dataset),"requestTagPrefix"in r&&(r.requestTagPrefix=r.requestTagPrefix?gS(r.requestTagPrefix).replace(/\.+$/,""):void 0),r.apiVersion=`${r.apiVersion}`.replace(/^v/,""),r.isDefaultApi=r.apiHost===fs.apiHost,r.useCdn===!0&&r.withCredentials&&eM(),r.useCdn=r.useCdn!==!1&&!r.withCredentials,fM(r.apiVersion);let p=r.apiHost.split("://",2),m=p[0],y=p[1],v=r.isDefaultApi?"apicdn.sanity.io":y;return l?(r.url=`${m}://${r.projectId}.${y}/v${r.apiVersion}`,r.cdnUrl=`${m}://${r.projectId}.${v}/v${r.apiVersion}`):(r.url=`${r.apiHost}/v${r.apiVersion}`,r.cdnUrl=r.url),r};var xS={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},Ro={0:8203,1:8204,2:8205,3:65279},$o={0:String.fromCodePoint(Ro[0]),1:String.fromCodePoint(Ro[1]),2:String.fromCodePoint(Ro[2]),3:String.fromCodePoint(Ro[3])},hM=[,,,,].fill(String.fromCodePoint(Ro[0])).join("");function pM(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r="";for(let o=0;o<n.length;o++){let l=n[o];r+=$o[l>>6&3]+$o[l>>4&3]+$o[l>>2&3]+$o[l&3]}return hM+r}function mM(e){return!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)?!1:!!Date.parse(e)}function gM(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function Az(e,t,n="auto"){return n===!0||n==="auto"&&(mM(e)||gM(e))?e:`${e}${pM(t)}`}Object.fromEntries(Object.entries($o).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(xS).map(e=>e.reverse()));var vM=`${Object.values(xS).map(e=>`\\u{${e.toString(16)}}`).join("")}`,Tw=RegExp(`[${vM}]{4,}`,"gu");function yM(e){var t;return{cleaned:e.replace(Tw,""),encoded:((t=e.match(Tw))==null?void 0:t[0])||""}}function wM(e){return e&&JSON.parse(yM(JSON.stringify(e)).cleaned)}function xM(e){return wM(e)}const bM=/_key\s*==\s*['"](.*)['"]/;function SM(e){return typeof e=="string"?bM.test(e.trim()):typeof e=="object"&&"_key"in e}function _M(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((t,n,r)=>{let o=typeof n;if(o==="number")return`${t}[${n}]`;
276if(o==="string")return`${t}${r===0?"":"."}${n}`;if(SM(n)&&n._key)return`${t}[_key=="${n._key}"]`;if(Array.isArray(n)){let[l,u]=n;return`${t}[${l}:${u}]`}throw Error(`Unsupported path segment \`${JSON.stringify(n)}\``)},"")}const EM="drafts",kM="versions",yu=`${EM}.`,bS=`${kM}.`;function ha(e){return e.startsWith(yu)}function Ns(e){return e.startsWith(bS)}function SS(e){return!ha(e)&&!Ns(e)}function _S(e){if(Ns(e)){let t=Is(e);return yu+t}return ha(e)?e:yu+e}function pa(e,t){if(t==="drafts"||t==="published")throw Error('Version can not be "published" or "drafts"');return`${bS}${t}.${Is(e)}`}function qp(e){if(!Ns(e))return;let[t,n,...r]=e.split(".");return n}function Is(e){if(Ns(e))return e.split(".").slice(2).join(".");if(ha(e))return e.slice(yu.length);if(SS(e))return e;throw Error(`Unable to resolve a published id from "${e}"`)}const wu={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},jw={"\\f":"\f","\\n":` 277`,"\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function CM(e){return`$${e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,n=>wu[n])}']`:typeof t=="number"?`[${t}]`:t._key===""?`[${t._index}]`:`[?(@._key=='${t._key.replace(/['\\]/g,n=>wu[n])}')]`).join("")}`}function PM(e){return e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,n=>wu[n])}']`:typeof t=="number"?`[${t}]`:t._key===""?`[${t._index}]`:`[?(@._key=='${t._key.replace(/['\\]/g,n=>wu[n])}')]`)}function Nz(e){let t=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g,r;for(;(r=n.exec(e))!==null;){if(r[1]!==void 0){let o=r[1].replace(/\\(\\|f|n|r|t|')/g,l=>jw[l]);t.push(o);continue}if(r[2]!==void 0){t.push(parseInt(r[2],10));continue}if(r[3]!==void 0){let o=r[3].replace(/\\(\\')/g,l=>jw[l]);t.push({_key:o,_index:-1});continue}}return t}function TM(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw Error(`invalid segment:${JSON.stringify(t)}`)})}function Aw(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw Error(`invalid segment:${JSON.stringify(t)}`)})}function Iz(e,t){if(!(t!=null&&t.mappings))return;let n=CM(Aw(e));if(t.mappings[n]!==void 0)return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};let r=PM(Aw(e));for(let o=r.length-1;o>=0;o--){let l=`$${r.slice(0,o).join("")}`,u=t.mappings[l];if(u)return{mapping:u,matchedPath:l,pathSuffix:n.substring(l.length)}}}function jM(e){return e!==null&&Array.isArray(e)}function Eo(e,t,n=[]){if(jM(e))return e.map((r,o)=>{if(mn(r)){let l=r._key;if(typeof l=="string")return Eo(r,t,n.concat({_key:l,_index:o}))}return Eo(r,t,n.concat(o))});if(mn(e)){if(e._type==="block"||e._type==="span"){let r={...e};return e._type==="block"?r.children=Eo(e.children,t,n.concat("children")):e._type==="span"&&(r.text=Eo(e.text,t,n.concat("text"))),r}return Object.fromEntries(Object.entries(e).map(([r,o])=>[r,Eo(o,t,n.concat(r))]))}return t(e,n)}function Oz(e){let{baseUrl:t,workspace:n="default",tool:r="default",id:o,type:l,path:u,projectId:d,dataset:f}=e;if(!t)throw Error("baseUrl is required");if(!u)throw Error("path is required");if(!o)throw Error("id is required");if(t!=="/"&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let p=n==="default"?void 0:n,m=r==="default"?void 0:r,y=Is(o),v=Array.isArray(u)?_M(TM(u)):u,x=new URLSearchParams({baseUrl:t,id:y,type:l,path:v});if(p&&x.set("workspace",p),m&&x.set("tool",m),d&&x.set("projectId",d),f&&x.set("dataset",f),SS(o))x.set("perspective","published");else if(Ns(o)){let k=qp(o);x.set("perspective",k)}let _=[t==="/"?"":t];p&&_.push(p);let E=["mode=presentation",`id=${y}`,`type=${l}`,`path=${encodeURIComponent(v)}`];return m&&E.push(`tool=${m}`),_.push("intent","edit",`${E.join(";")}?${x}`),_.join("/")}function Rz(e){let t=typeof e=="string"?e:e.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof e=="string"?{baseUrl:t}:{...e,baseUrl:t}}
277class Nw extends Event{constructor(n,r){super(n);On(this,"code");On(this,"message");this.code=(r==null?void 0:r.code)??void 0,this.message=(r==null?void 0:r.message)??void 0}[Symbol.for("nodejs.util.inspect.custom")](n,r,o){return o(Iw(this),r)}[Symbol.for("Deno.customInspect")](n,r){return n(Iw(this),r)}}function AM(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function Th(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(Th).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${Th(e.cause)}`:e.message:`${e}`}function Iw(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}class $f extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}const Ll=10,Fl=13,ri=32,Ow=6;function NM(e){if(typeof e=="function")throw new TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");const{maxBufferSize:t,onComment:n,onError:r,onEvent:o,onId:l,onRetry:u}=e,d=[];let f=0,p=!0,m,y="",v=0,x,_=!1,E=!1,k=!1;function P(I){if(_)throw new Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(p&&(p=!1,I.charCodeAt(0)===65279?I=I.slice(1):I.charCodeAt(0)===239&&I.charCodeAt(1)===187&&I.charCodeAt(2)===191&&(I=I.slice(3))),(E||k)&&(I=A(I),!I))return;if(!d.length){const J=B(I);J!==""&&M(J),D();return}if(I.indexOf(` 278`)===-1&&I.indexOf("\r")===-1){if(f<Ow){const J=d.join("")+I.slice(0,Ow-f);if(!L(J)){d.length=0,f=0,E=!0;return}}d.push(I),f+=I.length,D();return}d.push(I);const U=d.join("");d.length=0,f=0,M(B(U)),D()}function A(I){if(I.length===0)return I;if(k)return k=!1,I.charCodeAt(0)===Ll?I.slice(1):I;const U=I.indexOf("\r"),J=I.indexOf(` 279`),ue=U===-1?J:J===-1||U<J?U:J;return ue===-1?"":ue===I.length-1&&I.charCodeAt(ue)===Fl?(E=!1,k=!0,""):(E=!1,I.slice(ue+(I.charCodeAt(ue)===Fl&&I.charCodeAt(ue+1)===Ll?2:1)))}function M(I){if(I){if(I.charCodeAt(I.length-1)===Fl){W(I,0,I.length-1),k=!0;return}if(L(I)){d.push(I),f=I.length;return}E=!0}}function L(I){const U=I.charCodeAt(0);return U===58&&!!n||U===100&&Vl(I,"data")||U===101&&Vl(I,"event")||U===105&&Vl(I,"id")||U===114&&Vl(I,"retry")}function D(){t!==void 0&&(f+y.length<=t||(_=!0,d.length=0,f=0,m=void 0,y="",v=0,x=void 0,E=!1,k=!1,r==null||r(new $f(`Buffered data exceeded max buffer size of ${t} characters`,{type:"max-buffer-size-exceeded"}))))}function B(I){let U=0;if(I.indexOf("\r")===-1){let J=I.indexOf(` 280`,U);for(;J!==-1;){if(U===J){m!==void 0&&(l==null||l(m)),v>0&&(o==null||o({id:m,event:x,data:y})),m=void 0,y="",v=0,x=void 0,U=J+1,J=I.indexOf(` 281`,U);continue}const ue=I.charCodeAt(U);if(Rw(I,U,ue)){const Se=I.charCodeAt(U+5)===ri?U+6:U+5,Ce=I.slice(Se,J);if(v===0&&I.charCodeAt(J+1)===Ll){m!==void 0&&(l==null||l(m)),o==null||o({id:m,event:x,data:Ce}),m=void 0,y="",x=void 0,U=J+2,J=I.indexOf(` 282`,U);continue}y=v===0?Ce:`${y} 283${Ce}`,v++}else $w(I,U,ue)?x=I.slice(I.charCodeAt(U+6)===ri?U+7:U+6,J)||void 0:W(I,U,J);U=J+1,J=I.indexOf(` 284`,U)}return I.slice(U)}for(;U<I.length;){const J=I.indexOf("\r",U),ue=I.indexOf(` 285`,U);let Se=-1;if(J!==-1&&ue!==-1?Se=J<ue?J:ue:J!==-1?J===I.length-1?Se=-1:Se=J:ue!==-1&&(Se=ue),Se===-1)break;W(I,U,Se),U=Se+1,I.charCodeAt(U-1)===Fl&&I.charCodeAt(U)===Ll&&U++}return I.slice(U)}function W(I,U,J){if(U===J){X();return}const ue=I.charCodeAt(U);if(Rw(I,U,ue)){const Q=I.charCodeAt(U+5)===ri?U+6:U+5,N=I.slice(Q,J);y=v===0?N:`${y} 286${N}`,v++;return}if($w(I,U,ue)){x=I.slice(I.charCodeAt(U+6)===ri?U+7:U+6,J)||void 0;return}if(ue===105&&I.charCodeAt(U+1)===100&&I.charCodeAt(U+2)===58){const Q=I.slice(I.charCodeAt(U+3)===ri?U+4:U+3,J);Q.includes("\0")||(m=Q);return}if(ue===58){if(n){const Q=I.slice(U,J);n(Q.slice(I.charCodeAt(U+1)===ri?2:1))}return}const Se=I.slice(U,J),Ce=Se.indexOf(":");if(Ce===-1){V(Se,"",Se);return}const le=Se.slice(0,Ce),H=Se.charCodeAt(Ce+1)===ri?2:1,ne=Se.slice(Ce+H);V(le,ne,Se)}function V(I,U,J){switch(I){case"event":x=U||void 0;break;case"data":y=v===0?U:`${y} 287${U}`,v++;break;case"id":U.includes("\0")||(m=U);break;case"retry":/^\d+$/.test(U)?u==null||u(parseInt(U,10)):r==null||r(new $f(`Invalid \`retry\` value: "${U}"`,{type:"invalid-retry",value:U,line:J}));break;default:r==null||r(new $f(`Unknown field "${I.length>20?`${I.slice(0,20)}â¦`:I}"`,{type:"unknown-field",field:I,value:U,line:J}));break}}function X(){m!==void 0&&(l==null||l(m)),v>0&&(o==null||o({id:m,event:x,data:y})),m=void 0,y="",v=0,x=void 0}function oe(I={}){if(I.consume&&d.length>0){const U=d.join("");W(U,0,U.length)}p=!0,m=void 0,y="",v=0,x=void 0,d.length=0,f=0,_=!1,E=!1,k=!1}return{feed:P,reset:oe}}function Rw(e,t,n){return n===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function $w(e,t,n){return n===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}function Vl(e,t){let n=1;for(;n<e.length&&n<t.length;){if(e.charCodeAt(n)!==t.charCodeAt(n))return!1;n++}return e.length<=t.length||e.charCodeAt(t.length)===58}const IM=100*1024*1024;var jt,Ir,hi,ra,ia,gs,pi,mi,er,gi,vi,yi,wi,Nt,jh,Nu,Iu,ES,Ou,Ru,$u,Mu,os,Ah,Du;
287class ms extends EventTarget{constructor(n,r){super();tt(this,Nt);On(this,"CONNECTING",0);On(this,"OPEN",1);On(this,"CLOSED",2);tt(this,jt);tt(this,Ir);tt(this,hi);tt(this,ra);tt(this,ia);tt(this,gs);tt(this,pi);tt(this,mi,null);tt(this,er);tt(this,gi);tt(this,vi,null);tt(this,yi,null);tt(this,wi,null);tt(this,Nu,async n=>{ve(this,gi).reset();const{body:r,redirected:o,status:l,headers:u}=n;if(l===204){En(this,Nt,os).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(o?Ze(this,hi,new URL(n.url)):Ze(this,hi,void 0),l!==200){En(this,Nt,os).call(this,`Non-200 status code (${l})`,l);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){En(this,Nt,os).call(this,'Invalid content type, expected "text/event-stream"',l);return}if(ve(this,jt)===this.CLOSED)return;Ze(this,jt,this.OPEN);const f=new Event("open");if(this.dispatchEvent(f),typeof r!="object"||!r||!("getReader"in r)){En(this,Nt,os).call(this,"Invalid response body, expected a web ReadableStream",l),this.close();return}const p=new TextDecoder,m=r.getReader();let y=!0;do{const{done:v,value:x}=await m.read();if(ve(this,jt)===this.CLOSED){y=!1;break}x&&ve(this,gi).feed(p.decode(x,{stream:!v})),v&&(y=!1,ve(this,gi).reset(),En(this,Nt,Ah).call(this))}while(y)});tt(this,Iu,n=>{Ze(this,er,void 0),!(n.name==="AbortError"||n.type==="aborted")&&En(this,Nt,Ah).call(this,Th(n))});tt(this,Ou,n=>{Ze(this,mi,n)});tt(this,Ru,n=>{const r=ve(this,hi)?ve(this,hi).origin:ve(this,Ir).origin,o=ve(this,mi)??"",l=new MessageEvent(n.event||"message",{data:n.data,origin:r,lastEventId:o});l.origin!==r&&Mw(l,"origin",r),l.lastEventId!==o&&Mw(l,"lastEventId",o),this.dispatchEvent(l)});tt(this,$u,n=>{Ze(this,gs,n)});tt(this,Mu,n=>{n.type==="max-buffer-size-exceeded"&&(this.close(),En(this,Nt,os).call(this,n.message))});tt(this,Du,()=>{Ze(this,pi,void 0),ve(this,jt)===this.CONNECTING&&En(this,Nt,jh).call(this)});try{if(n instanceof URL)Ze(this,Ir,n);else if(typeof n=="string")Ze(this,Ir,new URL(n,OM()));else throw new Error("Invalid URL")}catch{throw AM("An invalid or illegal string was specified")}Ze(this,gi,NM({maxBufferSize:(r==null?void 0:r.maxBufferSize)??IM,onEvent:ve(this,Ru),onError:ve(this,Mu),onId:ve(this,Ou),onRetry:ve(this,$u)})),Ze(this,jt,this.CONNECTING),Ze(this,gs,3e3),Ze(this,ia,(r==null?void 0:r.fetch)??globalThis.fetch),Ze(this,ra,(r==null?void 0:r.withCredentials)??!1),En(this,Nt,jh).call(this)}get readyState(){return ve(this,jt)}get url(){return ve(this,Ir).href}get withCredentials(){return ve(this,ra)}get onerror(){return ve(this,vi)}set onerror(n){ve(this,vi)&&this.removeEventListener("error",ve(this,vi)),Ze(this,vi,n),n&&this.addEventListener("error",n)}get onmessage(){return ve(this,yi)}set onmessage(n){ve(this,yi)&&this.removeEventListener("message",ve(this,yi)),Ze(this,yi,n),n&&this.addEventListener("message",n)}get onopen(){return ve(this,wi)}set onopen(n){ve(this,wi)&&this.removeEventListener("open",ve(this,wi)),Ze(this,wi,n),n&&this.addEventListener("open",n)}addEventListener(n,r,o){const l=r;super.addEventListener(n,l,o)}removeEventListener(n,r,o){const l=r;super.removeEventListener(n,l,o)}close(){ve(this,pi)&&clearTimeout(ve(this,pi)),ve(this,jt)!==this.CLOSED&&(ve(this,er)&&ve(this,er).abort(),Ze(this,jt,this.CLOSED),Ze(this,er,void 0))}}jt=new WeakMap,Ir=new WeakMap,hi=new WeakMap,ra=new WeakMap,ia=new WeakMap,gs=new WeakMap,pi=new WeakMap,mi=new WeakMap,er=new WeakMap,gi=new WeakMap,vi=new WeakMap,yi=new WeakMap,wi=new WeakMap,Nt=new WeakSet,jh=function(){Ze(this,jt,this.CONNECTING),Ze(this,er,new AbortController),ve(this,ia)(ve(this,Ir),En(this,Nt,ES).call(this)).then(ve(this,Nu)).catch(ve(this,Iu))},Nu=new WeakMap,Iu=new WeakMap,ES=function(){var o;const r={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...ve(this,mi)?{"Last-Event-ID":ve(this,mi)}:void 0},cache:"no-store",signal:(o=ve(this,er))==null?void 0:o.signal};return"window"in globalThis&&(r.credentials=this.withCredentials?"include":"same-origin"),r},Ou=new WeakMap,Ru=new WeakMap,$u=new WeakMap,Mu=new WeakMap,os=function(n,r){ve(this,jt)!==this.CLOSED&&Ze(this,jt,this.CLOSED);const o=new Nw("error",{code:r,message:n});this.dispatchEvent(o)},Ah=function(n,r){if(ve(this,jt)===this.CLOSED)return;Ze(this,jt,this.CONNECTING);const o=new Nw("error",{code:r,message:n});this.dispatchEvent(o);const l=setTimeout(ve(this,Du),ve(this,gs));
287typeof l=="object"&&l!==null&&"unref"in l&&l.unref(),Ze(this,pi,l)},Du=new WeakMap,On(ms,"CONNECTING",0),On(ms,"OPEN",1),On(ms,"CLOSED",2);Object.defineProperty(ms,"name",{value:"EventSource"});Object.defineProperty(ms,Symbol.for("eventsource.supports-fetch-override"),{value:!0,writable:!1,configurable:!1,enumerable:!1});const kS=ms;function OM(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}function Mw(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0})}var Nh=class extends Error{constructor(e,t={}){let{status:n,...r}=t;super(e,r),re(this,"name","ConnectionFailedError"),re(this,"status",void 0),this.status=n}},RM=class extends Error{constructor(e,t,n={}){super(e,n),re(this,"name","DisconnectError"),re(this,"reason",void 0),this.reason=t}},$M=class extends Error{constructor(e,t){super(e),re(this,"name","ChannelError"),re(this,"data",void 0),this.data=t}},MM=class extends Error{constructor(e,t,n={}){super(e,n),re(this,"name","MessageError"),re(this,"data",void 0),this.data=t}},Dw=class extends Error{constructor(...e){super(...e),re(this,"name","MessageParseError")}};const DM=["channelError","disconnect"];function CS(e,t){return Up(()=>{let n=e();return w4(n)?n:gu(n)}).pipe(Rr(n=>zM(n,t)))}function zM(e,t){return new Qe(n=>{let r=new Set(t),o=m=>r.has(m),l=o("open");function u(m){if("data"in m){let[y,v]=zw(m);n.error(y||!v?new Dw("Unable to parse EventSource error message",{cause:y}):new MM(mn(v.data)&&typeof v.data.message=="string"?v.data.message:"",v));return}if(m.code!==void 0){n.error(new Nh("EventSource connection failed",{status:m.code}));return}if(e.readyState===e.CLOSED)n.error(new Nh("EventSource connection failed"));else{let y="reconnect";o(y)&&n.next({type:y})}}function d(){let m="open";o(m)&&n.next({type:m})}function f(m){let[y,v]=zw(m);if(y||!v){n.error(new Dw("Unable to parse EventSource message",{cause:y}));return}if(m.type==="channelError"){let x=new URL(e.url).searchParams.get("tag");n.error(new $M(LM(v==null?void 0:v.data,x),v.data));return}if(m.type==="disconnect"){n.error(new RM(`Server disconnected client: ${mn(v.data)&&typeof v.data.reason=="string"&&v.data.reason||"unknown error"}`));return}o(m.type)&&n.next({type:m.type,id:m.lastEventId,...v.data?{data:v.data}:{}})}e.addEventListener("error",u),l&&e.addEventListener("open",d);let p=[...new Set([...DM,...t])].filter(m=>m!=="error"&&m!=="open"&&m!=="reconnect");return p.forEach(m=>e.addEventListener(m,f)),()=>{e.removeEventListener("error",u),l&&e.removeEventListener("open",d),p.forEach(m=>e.removeEventListener(m,f)),e.close()}})}function zw(e){try{let t=typeof e.data=="string"&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...FM(t)?{}:{data:t}}]}catch(t){return[t,null]}}function LM(e,t){let n=mn(e)?e.error:void 0;if(!n){let r=mn(e)?e.message:void 0;return typeof r=="string"&&r||"Unknown listener error"}if(mn(n)){if(fS(n))return hS(n,t);if(typeof n.description=="string")return n.description}return typeof n=="string"?n:JSON.stringify(n,null,2)}function FM(e){for(let t in e)return!1;return!0}function PS(e){if(typeof e=="string")return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if(typeof e=="object"&&e&&"query"in e&&typeof e.query=="string")return"params"in e&&typeof e.params=="object"&&e.params!==null?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 288`);throw Error(`Unknown selection - must be one of: 289 290${t}`)}function TS(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function pe(e,t,n){TS(e,t),t.set(e,n)}function ze(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError("Private element is not present on this object")}function me(e,t,n){return e.set(ze(e,t),n),n}function S(e,t){return e.get(ze(e,t))}var jS=class{constructor(e,t={}){re(this,"selection",void 0),re(this,"operations",void 0),this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return Bo("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,n){return Q4(e,t,n),this._assign("insert",{[e]:t,items:n})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,n,r){let o=n===void 0||n===-1,l=t<0?t-1:t,u=o?-1:Math.max(0,t+n),d=`${e}[${l}:${l<0&&u>=0?"":u}]`;return this.insert("replace",d,r||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...PS(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,n=!0){return Bo(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}},ko=new WeakMap,Wo=class AS extends jS{constructor(t,n,r){super(t,n),pe(this,ko,void 0),me(ko,this,r)}clone(){return new AS(this.selection,{...this.operations},S(ko,this))}commit(t){if(!S(ko,this))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");
290let n=typeof this.selection=="string",r=Object.assign({returnFirst:n,returnDocuments:!0},t);return S(ko,this).mutate({patch:this.serialize()},r)}},Co=new WeakMap,hs=class NS extends jS{constructor(t,n,r){super(t,n),pe(this,Co,void 0),me(Co,this,r)}clone(){return new NS(this.selection,{...this.operations},S(Co,this))}commit(t){if(!S(Co,this))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let n=typeof this.selection=="string",r=Object.assign({returnFirst:n,returnDocuments:!0},t);return S(Co,this).mutate({patch:this.serialize()},r)}};const IS={returnDocuments:!1};var OS=class{constructor(e=[],t){re(this,"operations",void 0),re(this,"trxId",void 0),this.operations=e,this.trxId=t}create(e){return Bo("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return Bo(t,e),Es(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return Bo(t,e),Es(t,e),this._add({[t]:e})}delete(e){return vu("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}},ii=new WeakMap,RS=class $S extends OS{constructor(t,n,r){super(t,r),pe(this,ii,void 0),me(ii,this,n)}clone(){return new $S([...this.operations],S(ii,this),this.trxId)}commit(t){if(!S(ii,this))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return S(ii,this).mutate(this.serialize(),Object.assign({transactionId:this.trxId},IS,t||{}))}patch(t,n){let r=typeof n=="function",o=typeof t!="string"&&t instanceof hs,l=typeof t=="object"&&("query"in t||"id"in t);if(o)return this._add({patch:t.serialize()});if(r){let u=n(new hs(t,{},S(ii,this)));if(!(u instanceof hs))throw Error("function passed to `patch()` must return the patch");return this._add({patch:u.serialize()})}if(l){let u=new hs(t,n||{},S(ii,this));return this._add({patch:u.serialize()})}return this._add({patch:{id:t,...n}})}},is=new WeakMap,MS=class DS extends OS{constructor(t,n,r){super(t,r),pe(this,is,void 0),me(is,this,n)}clone(){return new DS([...this.operations],S(is,this),this.trxId)}commit(t){if(!S(is,this))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return S(is,this).mutate(this.serialize(),Object.assign({transactionId:this.trxId},IS,t||{}))}patch(t,n){let r=typeof n=="function";if(typeof t!="string"&&t instanceof Wo)return this._add({patch:t.serialize()});if(r){let o=n(new Wo(t,{},S(is,this)));if(!(o instanceof Wo))throw Error("function passed to `patch()` must return the patch");return this._add({patch:o.serialize()})}return this._add({patch:{id:t,...n}})}};const VM=["headers","signal","tag","timeout","token"];function UM(e,t={}){let n={};e.headers&&Object.assign(n,e.headers);let r=t.token||e.token;r&&(n.Authorization=`Bearer ${r}`),!t.useGlobalApi&&!e.useProjectHostname&&e.projectId&&(n["X-Sanity-Project-ID"]=e.projectId);let o={url:t.url,headers:Object.assign(n,t.headers||{})};t.method&&(o.method=t.method),t.body!==void 0&&(o.body=t.body),t.query&&(o.query=BM(t.query)),t.signal&&(o.signal=t.signal),(t.withCredentials===void 0?e.withCredentials:t.withCredentials)&&(o.credentials="include"),typeof t.maxRedirects=="number"&&(o.redirect=t.maxRedirects===0?"manual":"follow");let l=t.timeout===void 0?e.timeout:t.timeout;o.timeout=l===void 0?3e5:l!==0&&l,t.useAbortSignal===!1&&!o.signal&&(o.timeout=typeof o.timeout=="number"&&o.timeout>0&&{total:o.timeout,signal:!1});let u=typeof t.fetch=="object"&&typeof e.fetch=="object"?{...e.fetch,...t.fetch}:t.fetch||e.fetch;return typeof u=="function"?o.fetch=u:typeof u=="object"&&u&&(o.meta={...o.meta,fetchInit:u}),!o.fetch&&e.resolveFetch&&(o.fetch=e.resolveFetch(typeof e.proxy=="string"?e.proxy:void 0)),typeof t.maxRetries=="number"&&(o.maxRetries=t.maxRetries),typeof e.lineage=="string"&&e.lineage&&(o.meta={...o.meta,lineage:e.lineage}),o}function BM(e){if(e instanceof URLSearchParams||!e||typeof e!="object"||!Object.values(e).some(Array.isArray))return e;let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!=null)if(Array.isArray(r))for(let o of r)o!=null&&t.append(n,`${o}`);else t.append(n,`${r}`);return t}const Dr=({query:e,params:t={},options:n={}})=>{let r=new URLSearchParams,{tag:o,includeMutations:l,returnQuery:u,...d}=n;o&&r.append("tag",o),r.append("query",e);for(let[f,p]of Object.entries(t))p!==void 0&&r.append(`$${f}`,JSON.stringify(p));for(let[f,p]of Object.entries(d))p&&r.append(f,`${p}`);return u===!1&&r.append("returnQuery","false"),l===!1&&r.append("includeMutations","fal
290se"),`?${r}`},WM=(e,t)=>e===!1?void 0:e===void 0?t:e,ZM=(e={})=>({dryRun:e.dryRun,returnIds:!0,returnDocuments:WM(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}),qM=(e,t)=>e.reduce((n,r)=>(n[t(r)]=r,n),Object.create(null));function HM(e,t,n){let r="stega"in n?{...e,...typeof n.stega=="boolean"?{enabled:n.stega}:n.stega||{}}:e,o=r.enabled?xM(t):t,l=n.filterResponse===!1?p=>p:p=>p.result,{cache:u,next:d,...f}={useAbortSignal:n.signal!==void 0,resultSourceMap:r.enabled?"withKeyArraySelector":n.resultSourceMap,...n,returnQuery:n.filterResponse===!1&&n.returnQuery!==!1};return{stega:r,params:o,mapResponse:l,reqOpts:u!==void 0||d!==void 0?{...f,fetch:{cache:u,next:d}}:f}}function KM(e,t,n,r,o={},l={}){return Te(l.signal,u=>zS(e,t,n,r,o,{...l,signal:u}))}function zS(e,t,n,r,o={},l={}){let{stega:u,params:d,mapResponse:f,reqOpts:p}=HM(n,o,l),m=Ai(e,t,"query",{query:r,params:d},p);return u.enabled?Promise.all([m,F1(()=>import("./stegaEncodeSourceMap-Dj29aWKG-CSEp33Gx.js"),[]).then(y=>y.n)]).then(([y,{stegaEncodeSourceMap:v}])=>{let x=v(y.result,y.resultSourceMap,u);return f({...y,result:x})}):m.then(f)}function Ih(e,t,n,r={}){return Te(r.signal,o=>Ee(e,t,LS(e,n,{...r,signal:o})).then(l=>FS(l,r.includeAllVersions)))}function Oh(e,t,n,r={}){return Ee(e,t,LS(e,n,r)).then(o=>FS(o,r.includeAllVersions))}function LS(e,t,n){let r=t;if(n.releaseId){let o=qp(t);if(o){if(o!==n.releaseId)throw Error(`The document ID (\`${t}\`) is already a version of \`${o}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`)}else{if(ha(t))throw Error(`The document ID (\`${t}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);r=pa(t,n.releaseId)}}return{url:Xt(e,"doc",r),tag:n.tag,signal:n.signal,query:n.includeAllVersions===void 0?void 0:{includeAllVersions:n.includeAllVersions}}}function FS(e,t){let n=e.documents;return n?t?n:n[0]:t?[]:void 0}function GM(e,t,n,r={}){return Te(r.signal,o=>VS(e,t,n,{...r,signal:o}))}function VS(e,t,n,r={}){return Ee(e,t,YM(e,n,r)).then(o=>JM(o,n))}function YM(e,t,n){return{url:Xt(e,"doc",t.join(",")),tag:n.tag,signal:n.signal}}function JM(e,t){let n=qM(e.documents||[],r=>r._id);return t.map(r=>n[r]||null)}function QM(e,t,n,r={}){return Te(r.signal,o=>US(e,t,n,{...r,signal:o}))}async function US(e,t,n,r={}){let o=new Set;if(n.length===0)return o;for(let l=0;l<n.length;l+=100){let u=n.slice(l,l+100),d=await Ee(e,t,{url:Xt(e,"doc",u.map(encodeURIComponent).join(",")),tag:r.tag,signal:r.signal,query:{excludeContent:!0}}),f=new Set;for(let p of d.omitted||[])p.reason==="existence"&&f.add(p.id);for(let p of u)f.has(p)||o.add(p)}return o}function XM(e,t,n,r={}){return Te(r.signal,o=>BS(e,t,n,{...r,signal:o}))}function BS(e,t,n,r={}){return Ai(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:n}},r)}function e3(e,t,n,r){return Te(r==null?void 0:r.signal,o=>qS(e,t,n,{...r,signal:o}))}function t3(e,t,n,r){return Te(r==null?void 0:r.signal,o=>HS(e,t,n,{...r,signal:o}))}function n3(e,t,n,r,o){return Te(o==null?void 0:o.signal,l=>KS(e,t,n,r,{...o,signal:l}))}function r3(e,t,n,r,o,l,u){return Te(u==null?void 0:u.signal,d=>GS(e,t,n,r,o,l,{...u,signal:d}))}function i3(e,t,n,r){return Te(r==null?void 0:r.signal,o=>ZS(e,t,n,{...r,signal:o}))}function s3(e,t,n,r=!1,o){return Te(o==null?void 0:o.signal,l=>YS(e,t,n,r,{...o,signal:l}))}function o3(e,t,n,r){return Te(r==null?void 0:r.signal,o=>JS(e,t,n,{...r,signal:o}))}function a3(e,t,n,r,o){return Te(o==null?void 0:o.signal,l=>QS(e,t,n,r,{...o,signal:l}))}function l3(e,t,n,r){return Te(r==null?void 0:r.signal,o=>WS(e,t,n,{...r,signal:o}))}function Xn(e,t,n,r){return Te(r==null?void 0:r.signal,o=>$t(e,t,n,{...r,signal:o}))}function u3(e,t,n,r={}){let o=t==="mutate",l=t==="actions",u=t==="query",d=o||l?"":Dr(n),f=!o&&!l&&d.length<11264,p=f?d:"",m=r.returnFirst,{timeout:y,token:v,tag:x,headers:_,returnQuery:E,lastLiveEventId:k,cacheMode:P}=r,A=Xt(e,t,p);return{reqOptions:{method:f?"GET":"POST",url:A,body:f?void 0:n,query:o&&ZM(r),timeout:y,headers:_,token:v,tag:x,returnQuery:E,perspective:r.perspective,variant:r.variant,resultSourceMap:r.resultSourceMap,lastLiveEventId:Array.isArray(k)?k[0]:k,cacheMode:P,canUseCdn:u,signal:r.signal,fetch:r.fetch,useAbortSignal:r.useAbortSignal,useCdn:r.useCdn},isMutation:o,returnFirst:m}}function c3(e,t,n,r){if(!t)return e;let o=e.results||[];if(r)return n?o[0]&&o[0].document:o.map(d=>d.document);let l=n?"documentId":"documentIds",u=n?o[0]&&o[0].id:o.map(d=>d.id);return{transactionId:e.transactionId,results:o,[l]:u}}function Ai(e,t,n,r,o={}){let{reqOptions:l,isMutation:u,returnFirst:d}=u3(e,n,r,o);return Ee(e,t,l).then(f=>c3(f,u,d,o.returnDocuments))}function d3(e,t,n,r,o={}){return Te(o.signal,l=>rc(e,t,n,r,{...o,signal:l}))}function rc(e,t,n,r,o={}){let l={[r]:n},u=Object.assign({returnFirst:!0,returnDocuments:!0},o);return Ai(e,t,"mutate",{mutations:[l]},u)}function $t(e,t,n,r){return Ai(e,t,"actions",{actions:Array.isArray(n)?n:[n],transactionId:r&&r.transactionId||void 0,skipCrossDatasetReferenceValidation:r&&r.skipCrossDatasetReferenceValidation||void 0,dryRun:r&&r.dryRun||void 0},r)}function WS(e,t,n,r){let o;return o=n instanceof hs||n instanceof Wo?{patch:n.serialize()}:n instanceof RS||n instanceof MS?n.serialize():n,Ai(e,t,"mutate",{mutations:Array.isArray(o)?o:[o],transactionId:r&&r.transactionId||void 0},r)}function ZS(e,t,n,r){return Ai(e,t,"mutate",{mutations:[{delete:PS(n)}]},r)}function qS(e,t,n,r){return Es("createIfNotExists",n),rc(e,t,n,"createIfNotExists",r)}
290function HS(e,t,n,r){return Es("createOrReplace",n),rc(e,t,n,"createOrReplace",r)}function KS(e,t,n,r,o){return Es("createVersion",n),mS("createVersion",n),aM(),$t(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,document:n},o)}function GS(e,t,n,r,o,l,u){if(!r)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!n)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return vu("createVersion",r),vu("createVersion",n),$t(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,baseId:r,versionId:o?pa(n,o):_S(n),ifBaseRevisionId:l},u)}function YS(e,t,n,r=!1,o){return $t(e,t,{actionType:"sanity.action.document.version.discard",versionId:n,purge:r},o)}function JS(e,t,n,r){return Es("replaceVersion",n),mS("replaceVersion",n),$t(e,t,{actionType:"sanity.action.document.version.replace",document:n},r)}function QS(e,t,n,r,o){return $t(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:n,publishedId:r},o)}const ma=e=>{let t=e.config();return t.dataset!==void 0&&t.projectId!==void 0||t.resource!==void 0},XS=(e,t)=>ma(e)&&t.startsWith(Xt(e,"query")),f3=(e,t)=>ma(e)&&t.startsWith(Xt(e,"mutate")),h3=(e,t)=>ma(e)&&t.startsWith(Xt(e,"doc","")),p3=(e,t)=>ma(e)&&t.startsWith(Xt(e,"listen")),m3=(e,t)=>ma(e)&&t.startsWith(Xt(e,"history","")),g3=(e,t)=>t.startsWith("/data/")||XS(e,t)||f3(e,t)||h3(e,t)||p3(e,t)||m3(e,t);function Hp(e,t){t.uri!==void 0&&lM();let n=t.uri||t.url;if(typeof n!="string")throw TypeError("Request options must include a `url`");let r=e.config(),o=t.canUseCdn===void 0?["GET","HEAD"].indexOf(t.method||"GET")>=0&&g3(e,n):t.canUseCdn,l=(t.useCdn??r.useCdn)&&o,u=t.tag&&r.requestTagPrefix?[r.requestTagPrefix,t.tag].join("."):t.tag||r.requestTagPrefix;if(u&&t.tag!==null&&(t.query={tag:gS(u),...t.query}),["GET","HEAD","POST"].indexOf(t.method||"GET")>=0&&XS(e,n)){let d=t.resultSourceMap??r.resultSourceMap;d!==void 0&&d!==!1&&(t.query={resultSourceMap:d,...t.query});let f=t.perspective||r.perspective;f!==void 0&&(f==="previewDrafts"&&rM(),yS(f),t.query={perspective:Array.isArray(f)?f.join(","):f,...t.query},(Array.isArray(f)&&f.length>0||f==="previewDrafts"||f==="drafts")&&l&&(l=!1,nM()));let p=t.variant||r.variant;typeof p=="string"&&(t.query={variant:p,...t.query}),typeof p=="object"&&(t.query={variantCondition:b3(p),...t.query}),t.lastLiveEventId&&(t.query={...t.query,lastLiveEventId:t.lastLiveEventId}),t.returnQuery===!1&&(t.query={returnQuery:"false",...t.query}),l&&t.cacheMode=="noStale"&&(t.query={cacheMode:"noStale",...t.query})}return UM(r,Object.assign({},t,{url:Kp(e,n,l)}))}function Te(e,t){return new Qe(n=>{let r=new AbortController;return t(e?tc([e,r.signal]):r.signal).then(o=>{n.next(o),n.complete()},o=>n.error(o)),()=>r.abort()})}function Ee(e,t,n){return t(Hp(e,n),e.config().requestHandler).then(r=>r)}function _t(e,t,n){return Te(n.signal,r=>Ee(e,t,{...n,signal:r}))}function v3(e,t){let n=Hp(e,t),r=e.config().requester,o=new Qe(l=>r(n).subscribe(l)).pipe(Bp(l=>(l==null?void 0:l.type)==="progress"||(l==null?void 0:l.type)==="response"),Pn(l=>l.type==="progress"?{type:"progress",stage:l.stage,percent:l.percent,total:l.total,loaded:l.loaded,lengthComputable:l.lengthComputable}:{type:"response",body:l.body}));return t.signal?o.pipe(y3(t.signal)):o}function Xt(e,t,n){let r=e.config();if(r.resource)return vS(r),`${x3(r)}/${n===void 0?t:`${t}/${n}`}`.replace(/\/($|\?)/,"$1");let o=`/${t}/${Bn(r)}`;return`/data${n===void 0?o:`${o}/${n}`}`.replace(/\/($|\?)/,"$1")}function Kp(e,t,n=!1){let{url:r,cdnUrl:o}=e.config();return`${n?o:r}/${t.replace(/^\//,"")}`}function y3(e){return t=>new Qe(n=>{let r=()=>n.error(w3(e));if(e&&e.aborted){r();return}let o=t.subscribe(n);return e.addEventListener("abort",r),()=>{e.removeEventListener("abort",r),o.unsubscribe()}})}function w3(e){return new DOMException((e==null?void 0:e.reason)??"The operation was aborted.","AbortError")}const x3=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:n,id:r}=t;switch(n){case"dataset":{let o=r.split(".");if(o.length!==2)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${o[0]}/datasets/${o[1]}`}case"canvas":return`/canvases/${r}`;case"knowledge-base":return`/knowledge-bases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${n.toString()}`)}};function b3(e){return Object.entries(e).map(([t,n])=>`${t}:${n}`).toSorted()}function S3(e,t,n){return _t(e,t,{method:"POST",url:`/agent/action/generate/${Bn(e.config())}`,body:n})}function _3(e,t,n){return Ee(e,t,{method:"POST",url:`/agent/action/generate/${Bn(e.config())}`,body:n})}function E3(e,t,n){return Ee(e,t,{method:"POST",url:`/agent/action/patch/${Bn(e.config())}`,body:n})}function k3(e,t,n){return Ee(e,t,{method:"POST",url:`/agent/action/prompt/${Bn(e.config())}`,body:n})}function C3(e,t,n){return _t(e,t,{method:"POST",url:`/agent/action/transform/${Bn(e.config())}`,body:n})}function P3(e,t,n){return Ee(e,t,{method:"POST",url:`/agent/action/transform/${Bn(e.config())}`,body:n})}function T3(e,t,n){return _t(e,t,{method:"POST",url:`/agent/action/translate/${Bn(e.config())}`,body:n})}function j3(e,t,n){return Ee(e,t,{method:"POST",url:`/agent/action/translate/${Bn(e.config())}`,body:n})}var Po=new WeakMap,To=new WeakMap,A3=class{constructor(e,t){pe(this,Po,void 0),pe(this,To,void 0),me(Po,this,e),me(To,this,t)}generate(e){return S3(S(Po,this),S(To,this),e)}transform(e){return C3(S(Po,this),S(To,this),e)}translate(e){return T3(S(Po,this),S(To,this),e)}},si=new WeakMap,oi=new WeakMap,N3=class{constructor(e,t){pe(this,si,void 0),pe(this,oi,void 0),me(si,this,e),me(
290oi,this,t)}generate(e){return _3(S(si,this),S(oi,this),e)}transform(e){return P3(S(si,this),S(oi,this),e)}translate(e){return j3(S(si,this),S(oi,this),e)}prompt(e){return k3(S(si,this),S(oi,this),e)}patch(e){return E3(S(si,this),S(oi,this),e)}},Mf=new WeakMap,Df=new WeakMap,I3=class{constructor(e,t){pe(this,Mf,void 0),pe(this,Df,void 0),me(Mf,this,e),me(Df,this,t)}upload(e,t,n){return e_(S(Mf,this),S(Df,this),e,t,n)}},zf=new WeakMap,Lf=new WeakMap,O3=class{constructor(e,t){pe(this,zf,void 0),pe(this,Lf,void 0),me(zf,this,e),me(Lf,this,t)}upload(e,t,n){let r=e_(S(zf,this),S(Lf,this),e,t,n);return Gt(r.pipe(Bp(o=>o.type==="response"),Pn(o=>$3(o.body))))}};function R3(e){return"asset"in e}function $3(e){return R3(e)?e.asset:e.document}function e_(e,t,n,r,o={}){var M;G4(n);let l=o.extract||void 0;l&&!l.length&&(l=["none"]);let u=e.config(),d=z3(o,r),{tag:f,label:p,title:m,description:y,creditLine:v,filename:x,source:_}=d,E=((M=u.resource)==null?void 0:M.type)==="media-library",k=E?{title:m,filename:x}:{label:p,title:m,description:y,filename:x,meta:l,creditLine:v};_&&!E&&(k.sourceId=_.id,k.sourceName=_.name,k.sourceUrl=_.url);let P=d.contentType?{"Content-Type":d.contentType}:{},A={tag:f,method:"POST",timeout:d.timeout||0,url:D3(u,n),headers:P,query:k,body:r};return typeof XMLHttpRequest<"u"?Up(async()=>{let{uploadWithProgress:L}=await F1(async()=>{const{uploadWithProgress:B}=await import("./browserUpload-BTQyjHMj-CL0PjWyk.js");return{uploadWithProgress:B}},[]),D=Hp(e,{...A});return L({url:M3(D.url,D.query),method:D.method??"POST",headers:D.headers,body:r,withCredentials:D.credentials==="include",timeout:typeof D.timeout=="object"?D.timeout.total:D.timeout,signal:D.signal})}).pipe(Vp()):v3(e,A)}function M3(e,t){if(!t)return e;let n=(t instanceof URLSearchParams?t:new URLSearchParams(Object.entries(t).flatMap(([r,o])=>o==null?[]:[[r,`${o}`]]))).toString();return n?e+(e.includes("?")?"&":"?")+n:e}function D3(e,t){let n=t==="image"?"images":"files",r=e.resource;if(r){let{type:o,id:l}=r;switch(o){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${l}/assets/${n}`;case"knowledge-base":throw Error("Assets are not supported for knowledge-base resources. Use `client.context.imports` to add content instead.");case"media-library":return`/media-libraries/${l}/upload`;case"dashboard":return`/dashboards/${l}/assets/${n}`;default:throw Error(`Unsupported resource type: ${o.toString()}`)}}return`assets/${n}/${Bn(e)}`}function z3(e,t){return typeof File>"u"||!(t instanceof File)?e:Object.assign({filename:e.preserveFilename===!1?void 0:t.name,contentType:t.type},e)}var Gp=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((n,r)=>(n[r]=e[r]===void 0?t[r]:e[r],n),{});const Os=(e,t)=>t.reduce((n,r)=>(e[r]===void 0||(n[r]=e[r]),n),{}),L3=new Set([408,429]);function t_(){return function(e){return e.pipe(Wp((t,n)=>t instanceof Nh&&(typeof t.status!="number"||t.status<400||t.status>=500||L3.has(t.status))?E4(gu({type:"reconnect"}),k4(1e3).pipe(Rr(()=>n))):fa(()=>t)))}}function n_(e,t={}){let n=t.headers,r=t.withCredentials?"include":void 0;return function(l,u){let d=r_(e),f={...u};if(n){let p=new Headers(u==null?void 0:u.headers);for(let[m,y]of Object.entries(n))p.set(m,y);f.headers=p}return r!==void 0&&(f.credentials=r),d(typeof l=="string"?l:l.href,f)}}function r_(e){return e.resolveFetch?e.resolveFetch(typeof e.proxy=="string"?e.proxy:void 0):globalThis.fetch.bind(globalThis)}const Yp=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],Jp={includeResult:!0};function i_(e,t,n={}){let{url:r,requestTagPrefix:o}=this.config(),l=n.tag&&o?[o,n.tag].join("."):n.tag,u={...Gp(n,Jp),tag:l},d=Os(u,Yp),f=Dr({query:e,params:t,options:{tag:l,...d}}),p=`${r}${Xt(this,"listen",f)}`;if(p.length>14800)return fa(()=>Error("Query too large for listener"));let m=u.events?u.events:["mutation"];return Qp(this,p,m)}function Qp(e,t,n){let r=e.config(),{token:o,withCredentials:l,headers:u}=r,d={};return o&&(d.Authorization=`Bearer ${o}`),u&&Object.assign(d,u),CS(()=>new kS(t,{fetch:n_(r,{headers:Object.keys(d).length?d:void 0,withCredentials:l})}),n).pipe(t_(),Bp(p=>n.includes(p.type)),Pn(p=>({type:p.type,..."data"in p?p.data:{}})))}
290const s_=["headers","signal","tag","timeout","token"];function ic(e){if(!e)throw Error("Comment ID must be provided");return`/collaboration/comments/${encodeURIComponent(e)}`}function o_(e){let{resource:t,projectId:n,dataset:r}=e.config();if(t)return t;if(n&&r)return{type:"dataset",id:`${n}.${r}`};throw Error("`resource` or `projectId` and `dataset` must be configured to use collaboration comments")}function Xp(e){let{collaboration:t}=e.config(),n=t==null?void 0:t.organizationId;if(!n)throw Error("`collaboration.organizationId` must be configured to use collaboration comments");let r=o_(e);return{organizationId:n,resourceId:r.id,resourceType:r.type}}function a_(e,t){if(!t)throw Error("Document ID must be provided");let n=o_(e);return`${n.type}:${n.id}:${Is(t)}`}function l_(e,t,n,r,o,l={}){return _t(e,t,{method:n,url:r,body:o,query:{...Xp(e),...l.transactionId?{transactionId:l.transactionId}:{}},...Os(l,s_)})}function sc(e,...t){return l_(...t).pipe(Pn(({results:n})=>{let r=e?n.find(({id:o})=>o===e):n[0];if(!(r!=null&&r.document))throw Error("Comment write did not return a comment document");return r.document}))}function F3(...e){return l_(...e).pipe(Pn(({transactionId:t,results:n})=>({transactionId:t,documentIds:n.map(r=>r.id),results:n})))}function u_(e,t,n,r){return sc(n._id,e,t,"POST","/collaboration/comments",n,r)}function c_(e,t,n,r,o){return sc(n,e,t,"PATCH",ic(n),r,o)}function d_(e,t,n,r){return F3(e,t,"DELETE",ic(n),void 0,r)}function f_(e,t,n,r,o){return sc(n,e,t,"POST",`${ic(n)}/reactions`,{shortName:r},o)}function h_(e,t,n,r,o){return sc(n,e,t,"DELETE",`${ic(n)}/reactions/${encodeURIComponent(r)}`,void 0,o)}function p_(e,t,n,r,o){let l=Xp(e);return _t(e,t,{...Dr({query:n,params:r}).length<11264?{method:"GET",url:`/collaboration/comments/query${Dr({query:n,params:r,options:l})}`}:{method:"POST",url:"/collaboration/comments/query",query:l,body:{query:n,params:r??{}}},...Os(o||{},s_)}).pipe(Pn(u=>u.result))}function m_(e,t,n,r){let o=r??{},{requestTagPrefix:l}=e.config(),u=o.tag&&l?[l,o.tag].join("."):o.tag,d=Os({...Gp(o,Jp),tag:u},Yp),f=Dr({query:t,params:n,options:{...d,...Xp(e)}}),p=`${e.getUrl("/collaboration/comments/listen")}${f}`;return p.length>14800?fa(()=>Error("Query too large for listener")):Qp(e,p,o.events?o.events:["mutation"])}var Rn=new WeakMap,Cr=new WeakMap,V3=class{constructor(e,t){pe(this,Rn,void 0),pe(this,Cr,void 0),me(Rn,this,e),me(Cr,this,t)}create(e,t){return u_(S(Rn,this),S(Cr,this),e,t)}update(e,t,n){return c_(S(Rn,this),S(Cr,this),e,t,n)}delete(e,t){return d_(S(Rn,this),S(Cr,this),e,t)}addReaction(e,t,n){return f_(S(Rn,this),S(Cr,this),e,t,n)}removeReaction(e,t,n){return h_(S(Rn,this),S(Cr,this),e,t,n)}getTargetDocumentRef(e){return a_(S(Rn,this),e)}fetch(e,t,n){return p_(S(Rn,this),S(Cr,this),e,t,n)}listen(e,t,n){return m_(S(Rn,this),e,t,n)}},$n=new WeakMap,Pr=new WeakMap,U3=class{constructor(e,t){pe(this,$n,void 0),pe(this,Pr,void 0),me($n,this,e),me(Pr,this,t)}create(e,t){return Gt(u_(S($n,this),S(Pr,this),e,t))}update(e,t,n){return Gt(c_(S($n,this),S(Pr,this),e,t,n))}delete(e,t){return Gt(d_(S($n,this),S(Pr,this),e,t))}addReaction(e,t,n){return Gt(f_(S($n,this),S(Pr,this),e,t,n))}removeReaction(e,t,n){return Gt(h_(S($n,this),S(Pr,this),e,t,n))}getTargetDocumentRef(e){return a_(S($n,this),e)}fetch(e,t,n){return Gt(p_(S($n,this),S(Pr,this),e,t,n))}listen(e,t,n){return m_(S($n,this),e,t,n)}};function oc(e){var n;let t=(n=e.config().context)==null?void 0:n.organizationId;if(!t)throw Error("`context.organizationId` must be configured to query Context documents");return t}function g_(e,t){return`/context/organizations/${encodeURIComponent(oc(e))}/${t}`}function Rs(e,t,n,r,o){let l=g_(e,"query");return _t(e,t,{...Dr({query:n,params:r}).length<11264?{method:"GET",url:`${l}${Dr({query:n,params:r})}`}:{method:"POST",url:l,body:{query:n,params:r??{}}},...Os(o||{},VM)}).pipe(Pn(u=>u.result))}function v_(e,t,n,r){let o=r??{},{requestTagPrefix:l}=e.config(),u=o.tag&&l?[l,o.tag].join("."):o.tag,d=Os({...Gp(o,Jp),tag:u},Yp),f=Dr({query:t,params:n,options:d}),p=`${e.getUrl(g_(e,"listen"))}${f}`;return p.length>14800?fa(()=>Error("Query too large for listener")):Qp(e,p,o.events?o.events:["mutation"])}
290const y_="sanity.context.entry",w_="sanity.context.issue",x_="sanity.context.mcp";function ac(e,t,n,r,o){return Gt(Rs(e,t,n,r,o))}async function b_(e,t,n,r,o){let l=[],u;for(;;){let d=`*[${u?`${n} && (_createdAt > $c || (_createdAt == $c && _id > $i))`:n}] | order(_createdAt asc, _id asc) [0...200]`,f=await Gt(Rs(e,t,d,u?{...r,...u}:r,o));if(l.push(...f),f.length<200)return l;let p=f[f.length-1];u={c:p._createdAt,i:p._id}}}function S_(e,t,n,r,o){return ac(e,t,`*[_type == "${y_}" && knowledgeBaseId == $kb && path == $path][0]`,{kb:n,path:r},o)}async function __(e,t,n,r){let o=[],l="";for(;;){let u=await Gt(Rs(e,t,`*[_type == "${y_}" && knowledgeBaseId == $kb && path > $after] | order(path asc) [0...200] {_id, path, title, tldr, status}`,{kb:n,after:l},r));if(o.push(...u),u.length<200)return o;l=u[u.length-1].path}}function E_(e,t,n,r,o){return b_(e,t,`_type == "${w_}" && knowledgeBaseId == $kb${r===void 0?"":" && status == $status"}`,r===void 0?{kb:n}:{kb:n,status:r},o)}function k_(e,t,n,r,o){return ac(e,t,`*[_type == "${w_}" && knowledgeBaseId == $kb && _id == $id][0]`,{kb:n,id:r},o)}function C_(e,t,n,r){return b_(e,t,'_type == "sanity.context.instruction" && knowledgeBaseId == $kb && schemaVersion == 1',{kb:n},r)}function P_(e,t,n){return Gt(Rs(e,t,`*[_type == "${x_}" && organizationId == $org] | order(_createdAt asc, _id asc) [0...500]`,{org:oc(e)},n))}function T_(e,t,n,r){return ac(e,t,`*[_type == "${x_}" && organizationId == $org && name == $name][0]`,{org:oc(e),name:n},r)}function j_(e,t,n,r){return ac(e,t,'*[_type == "sanity.context.conversation" && organizationId == $org && threadId == $threadId][0]',{org:oc(e),threadId:n},r)}function B3(e,t){TS(e,t),t.add(e)}const na="/context/knowledge-bases";function pn(e){let t=e.config().resource;if((t==null?void 0:t.type)!=="knowledge-base")throw Error("`resource` of type `knowledge-base` must be configured to use knowledge-base methods");return t.id}function Or(e,t=""){return`${na}/${encodeURIComponent(e)}${t}`}function xu(e,t){var r;let n=(r=e.config().context)==null?void 0:r.organizationId;if(!n)throw Error("`context.organizationId` must be configured to record conversations");if(!t)throw Error("`threadId` must be provided");return`/context/organizations/${encodeURIComponent(n)}/conversations/${encodeURIComponent(t)}`}function bu(e){return Object.fromEntries(Object.entries(e).flatMap(([t,n])=>n===void 0?[]:[[t,`${n}`]]))}function W3(e){return ArrayBuffer.isView(e)?e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Uint8Array.from(e):e}var $e=new WeakMap,pt=new WeakMap,Ve=new WeakSet,Z3=class{constructor(e,t){B3(this,Ve),pe(this,$e,void 0),pe(this,pt,void 0),re(this,"knowledgeBases",{create:(n,r)=>Ee(S($e,this),S(pt,this),{url:na,method:"POST",body:n,...r}),list:n=>Ee(S($e,this),S(pt,this),{url:na,query:bu({organizationId:n.organizationId,cursor:n.cursor,limit:n.limit}),signal:n.signal,tag:n.tag}),get:(n,r)=>Ee(S($e,this),S(pt,this),{url:Or(n),...r}),edit:(n,r,o)=>Ee(S($e,this),S(pt,this),{url:Or(n),method:"PATCH",body:r,...o}),delete:async(n,r)=>{await Ee(S($e,this),S(pt,this),{url:Or(n),method:"DELETE",...r})}}),re(this,"conversations",{save:(n,r)=>{let{threadId:o,...l}=n;return Ee(S($e,this),S(pt,this),{url:xu(S($e,this),o),method:"PUT",body:l,...r})},classify:(n,r)=>{let{threadId:o,...l}=n;return Ee(S($e,this),S(pt,this),{url:xu(S($e,this),o),method:"PATCH",body:l,...r})},get:(n,r)=>j_(S($e,this),S(pt,this),n.threadId,r)}),re(this,"imports",{create:(n,r)=>n.type==="file"?ze(Ve,this,q3).call(this,n,r):ze(Ve,this,nt).call(this,"/imports",{method:"POST",body:n,...r}),list:n=>ze(Ve,this,Lw).call(this,"/imports",n),get:(n,r)=>ze(Ve,this,nt).call(this,`/imports/${encodeURIComponent(n.importId)}`,r),download:(n,r)=>ze(Ve,this,nt).call(this,`/imports/${encodeURIComponent(n.importId)}/download`,r),delete:async(n,r)=>{await ze(Ve,this,nt).call(this,`/imports/${encodeURIComponent(n.importId)}`,{method:"DELETE",...r})}}),re(this,"jobs",{get:(n,r)=>ze(Ve,this,nt).call(this,`/jobs/${encodeURIComponent(n.jobId)}`,r)}),re(this,"issues",{list:(n,r)=>E_(S($e,this),S(pt,this),pn(S($e,this)),n==null?void 0:n.status,r),get:(n,r)=>k_(S($e,this),S(pt,this),pn(S($e,this)),n.issueId,r),resolve:(n,r)=>{let{issueId:o,...l}=n;return ze(Ve,this,nt).call(this,`/issues/${encodeURIComponent(o)}/resolve`,{method:"POST",body:l,...r})}
290,dismiss:(n,r)=>ze(Ve,this,nt).call(this,`/issues/${encodeURIComponent(n.issueId)}/dismiss`,{method:"POST",...r}),reopen:(n,r)=>ze(Ve,this,nt).call(this,`/issues/${encodeURIComponent(n.issueId)}/reopen`,{method:"POST",...r}),apply:(n,r)=>ze(Ve,this,nt).call(this,"/issues/apply",{method:"POST",body:n,...r})}),re(this,"instructions",{create:(n,r)=>ze(Ve,this,nt).call(this,"/instructions",{method:"POST",body:n,...r}),list:n=>C_(S($e,this),S(pt,this),pn(S($e,this)),n),edit:(n,r)=>{let{instructionId:o,...l}=n;return ze(Ve,this,nt).call(this,`/instructions/${encodeURIComponent(o)}`,{method:"PATCH",body:l,...r})},delete:async(n,r)=>{await ze(Ve,this,nt).call(this,`/instructions/${encodeURIComponent(n.instructionId)}`,{method:"DELETE",...r})}}),re(this,"entries",{list:n=>__(S($e,this),S(pt,this),pn(S($e,this)),n),get:(n,r)=>S_(S($e,this),S(pt,this),pn(S($e,this)),n.path,r),rebuild:(n,r)=>ze(Ve,this,nt).call(this,`/entries/${encodeURIComponent(n.path)}/rebuild`,{method:"POST",...r})}),re(this,"mcpEndpoints",{list:n=>P_(S($e,this),S(pt,this),n),get:(n,r)=>T_(S($e,this),S(pt,this),n.name,r)}),re(this,"sources",{list:n=>{var r;return ze(Ve,this,Lw).call(this,"/sources",n,{status:n==null?void 0:n.status,importId:n==null?void 0:n.importId,ids:(r=n==null?void 0:n.ids)==null?void 0:r.join(",")})},get:(n,r)=>ze(Ve,this,nt).call(this,`/sources/${encodeURIComponent(n.sourceId)}`,r),content:(n,r)=>ze(Ve,this,nt).call(this,`/sources/${encodeURIComponent(n.sourceId)}/content`,{query:bu({startLine:n.startLine,endLine:n.endLine}),...r}),delete:async(n,r)=>{await ze(Ve,this,nt).call(this,`/sources/${encodeURIComponent(n.sourceId)}`,{method:"DELETE",...r})}}),me($e,this,e),me(pt,this,t)}fetch(e,t,n){return Gt(Rs(S($e,this),S(pt,this),e,t,n))}listen(e,t,n){return v_(S($e,this),e,t,n)}build(e){return ze(Ve,this,nt).call(this,"/build",{method:"POST",...e})}cancelBuild(e){return ze(Ve,this,nt).call(this,"/build/cancel",{method:"POST",...e})}refresh(e){return ze(Ve,this,nt).call(this,"/refresh",{method:"POST",...e})}};function nt(e,t={}){return Ee(S($e,this),S(pt,this),{url:Or(pn(S($e,this)),e),...t})}function Lw(e,t,n){return ze(Ve,this,nt).call(this,e,{query:bu({cursor:t==null?void 0:t.cursor,limit:t==null?void 0:t.limit,...n}),signal:t==null?void 0:t.signal,tag:t==null?void 0:t.tag})}async function q3(e,t){var l;let n=await ze(Ve,this,nt).call(this,"/imports/uploads",{method:"POST",body:{filename:e.filename,...e.contentType&&{contentType:e.contentType}},...t}),r=S($e,this).config(),o=await(((l=r.resolveFetch)==null?void 0:l.call(r,r.proxy))??globalThis.fetch)(n.uploadUrl,{method:"PUT",body:W3(e.file),...e.contentType&&{headers:{"content-type":e.contentType}},signal:t==null?void 0:t.signal});if(!o.ok)throw Error(`File upload failed: ${o.status} ${o.statusText}`);return ze(Ve,this,nt).call(this,`/imports/uploads/${encodeURIComponent(n.importId)}/complete`,{method:"POST",body:{},...t})}var De=new WeakMap,ht=new WeakMap,H3=class{constructor(e,t){pe(this,De,void 0),pe(this,ht,void 0),re(this,"knowledgeBases",{create:(n,r)=>Te(r==null?void 0:r.signal,o=>Ee(S(De,this),S(ht,this),{url:na,method:"POST",body:n,tag:r==null?void 0:r.tag,signal:o})),list:n=>Te(n.signal,r=>Ee(S(De,this),S(ht,this),{url:na,query:bu({organizationId:n.organizationId,cursor:n.cursor,limit:n.limit}),tag:n.tag,signal:r})),get:(n,r)=>Te(r==null?void 0:r.signal,o=>Ee(S(De,this),S(ht,this),{url:Or(n),tag:r==null?void 0:r.tag,signal:o})),edit:(n,r,o)=>Te(o==null?void 0:o.signal,l=>Ee(S(De,this),S(ht,this),{url:Or(n),method:"PATCH",body:r,tag:o==null?void 0:o.tag,signal:l})),delete:(n,r)=>Te(r==null?void 0:r.signal,o=>Ee(S(De,this),S(ht,this),{url:Or(n),method:"DELETE",tag:r==null?void 0:r.tag,signal:o}))}),re(this,"conversations",{save:(n,r)=>{let{threadId:o,...l}=n;return Te(r==null?void 0:r.signal,u=>Ee(S(De,this),S(ht,this),{url:xu(S(De,this),o),method:"PUT",body:l,tag:r==null?void 0:r.tag,signal:u}))},classify:(n,r)=>{let{threadId:o,...l}=n;return Te(r==null?void 0:r.signal,u=>Ee(S(De,this),S(ht,this),{url:xu(S(De,this),o),method:"PATCH",body:l,tag:r==null?void 0:r.tag,signal:u}))},get:(n,r)=>Te(r==null?void 0:r.signal,o=>j_(S(De,this),S(ht,this),n.threadId,{...r,signal:o}))}),re(this,"entries",{list:n=>Te(n==null?void 0:n.signal,r=>__(S(De,this),S(ht,this),pn(S(De,this)),{...n,signal:r})),get:(n,r)=>Te(r==null?void 0:r.signal,o=>S_(S(De,this),S(ht,this),pn(S(De,this)),n.path,{...r,signal:o})),rebuild:(n,r)=>Te(r==null?void 0:r.signal,o=>Ee(S(De,this),S(ht,this),{url:Or(pn(S(De,this)),`/entries/${encodeURIComponent(n.path)}/rebuild`),method:"POST",tag:r==null?void 0:r.tag,signal:o}))}),re(this,"issues",{list:(n,r)=>Te(r==null?void 0:r.signal,o=>E_(S(De,this),S(ht,this),pn(S(De,this)),n==null?void 0:n.status,{...r,signal:o})),get:(n,r)=>Te(r==null?void 0:r.signal,o=>k_(S(De,this),S(ht,this),pn(S(De,this)),n.issueId,{...r,signal:o}))}),re(this,"instructions",{list:n=>Te(n==null?void 0:n.signal,r=>C_(S(De,this),S(ht,this),pn(S(De,this)),{...n,signal:r}))}),re(this,"mcpEndpoints",{list:n=>Te(n==null?void 0:n.signal,r=>P_(S(De,this),S(ht,this),{...n,signal:r})),get:(n,r)=>Te(r==null?void 0:r.signal,o=>T_(S(De,this),S(ht,this),n.name,{...r,signal:o}))}),me(De,this,e),me(ht,this,t)}
290fetch(e,t,n){return Rs(S(De,this),S(ht,this),e,t,n)}listen(e,t,n){return v_(S(De,this),e,t,n)}};function K3(e,t){return G3(typeof e=="function"?{predicate:e,...t}:e)}function G3(e){return t=>{let n,r=!1,{predicate:o,...l}=e,u=t.pipe(T4(f=>{e.predicate(f)&&(r=!0,n=f)}),cS(()=>{r=!1,n=void 0}),P4(l)),d=new Qe(f=>{r&&f.next(n),f.complete()});return C4(u,d)}}const Fw="2021-03-25";var ss=new WeakMap,A_=class{constructor(e){pe(this,ss,void 0),me(ss,this,e)}events({includeDrafts:e=!1,tag:t,waitFor:n}={}){let r=S(ss,this).config(),{projectId:o,apiVersion:l,token:u,withCredentials:d,requestTagPrefix:f,headers:p}=r,m=l.replace(/^v/,"");if(m!=="X"&&m<Fw)throw Error(`The live events API requires API version ${Fw} or later. The current API version is ${m}. Please update your API version to use this feature.`);if(e&&!u&&!d)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let y=Xt(S(ss,this),"live/events"),v=new URL(S(ss,this).getUrl(y,!1)),x=t&&f?[f,t].join("."):t;x&&v.searchParams.set("tag",x),e&&v.searchParams.set("includeDrafts","true"),n&&v.searchParams.set("waitFor",n);let _={};e&&u&&(_.Authorization=`Bearer ${u}`),p&&Object.assign(_,p);let E=!!(e&&d),k=Ff.get(r.resolveFetch);k||(k=new Map,Ff.set(r.resolveFetch,k));let P=JSON.stringify([v.href,typeof r.proxy=="string"?r.proxy:null,_,E]),A=k.get(P);if(A)return A;let M=()=>new kS(v.href,{fetch:n_(r,{headers:Object.keys(_).length?_:void 0,withCredentials:E}
290)}),L=CS(M,["message","restart","welcome","reconnect","goaway"]),D=Y3(new URL(S(ss,this).getUrl("/check/cors",!1)),o,E,r_(r)),B=L.pipe(t_(),Rr(W=>W.type==="reconnect"?D.pipe(Rr(()=>gu(W))):gu(W)),Wp(W=>W instanceof Ph?fa(()=>W):D.pipe(Rr(()=>{throw W}))),Pn(W=>{if(W.type==="message"){let{data:V,...X}=W;return{...X,tags:V.tags}}return W})).pipe(cS(()=>{k.delete(P),k.size===0&&Ff.delete(r.resolveFetch)}),K3({predicate:W=>W.type==="welcome"}));return k.set(P,B),B}};function Y3(e,t,n,r){return new Qe(o=>{let l=new AbortController,{signal:u}=l;return r(e.href,{method:"GET",credentials:"omit",signal:u}).then(d=>{if(!(u.aborted||!d.ok))return d.text()}).then(d=>{if(u.aborted)return;let f=d===void 0?void 0:JSON.parse(d),p=mn(f)?f.result:void 0;if(n&&mn(p)&&p.withCredentials===!1){o.error(new Ph({projectId:t,credentials:!0}));return}if(mn(p)&&p.allowed===!1){o.error(new Ph({projectId:t,credentials:n}));return}o.next(),o.complete()}).catch(()=>{u.aborted||o.closed||(o.next(),o.complete())}),()=>l.abort()})}const Ff=new Map;var Ut=new WeakMap,Tr=new WeakMap,J3=class{constructor(e,t){pe(this,Ut,void 0),pe(this,Tr,void 0),me(Ut,this,e),me(Tr,this,t)}create(e,t){return Vf(S(Ut,this),S(Tr,this),"PUT",e,t)}edit(e,t){return Vf(S(Ut,this),S(Tr,this),"PATCH",e,t)}delete(e){return Vf(S(Ut,this),S(Tr,this),"DELETE",e)}list(){Cn("dataset",S(Ut,this).config());let e=S(Ut,this).config(),t=e.projectId,n="/datasets";return e.useProjectHostname===!1&&(n=`/projects/${t}/datasets`),_t(S(Ut,this),S(Tr,this),{url:n,tag:null})}getEmbeddingsSettings(e){return Cn("dataset",S(Ut,this).config()),Pi(e),_t(S(Ut,this),S(Tr,this),{url:Su(S(Ut,this),e),tag:null})}editEmbeddingsSettings(e,t){return Cn("dataset",S(Ut,this).config()),Pi(e),_t(S(Ut,this),S(Tr,this),{method:"PUT",url:Su(S(Ut,this),e),body:t,tag:null})}},St=new WeakMap,jr=new WeakMap,Q3=class{constructor(e,t){pe(this,St,void 0),pe(this,jr,void 0),me(St,this,e),me(jr,this,t)}create(e,t){return Cn("dataset",S(St,this).config()),Uf(S(St,this),S(jr,this),"PUT",e,t)}edit(e,t){return Cn("dataset",S(St,this).config()),Uf(S(St,this),S(jr,this),"PATCH",e,t)}delete(e){return Cn("dataset",S(St,this).config()),Uf(S(St,this),S(jr,this),"DELETE",e)}list(){Cn("dataset",S(St,this).config());let e=S(St,this).config(),t=e.projectId,n="/datasets";return e.useProjectHostname===!1&&(n=`/projects/${t}/datasets`),Ee(S(St,this),S(jr,this),{url:n,tag:null})}getEmbeddingsSettings(e){return Cn("dataset",S(St,this).config()),Pi(e),Ee(S(St,this),S(jr,this),{url:Su(S(St,this),e),tag:null})}editEmbeddingsSettings(e,t){return Cn("dataset",S(St,this).config()),Pi(e),Ee(S(St,this),S(jr,this),{method:"PUT",url:Su(S(St,this),e),body:t,tag:null})}};function Su(e,t){let n=e.config();return n.useProjectHostname===!1?`/projects/${n.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function Vf(e,t,n,r,o){return Cn("dataset",e.config()),Pi(r),_t(e,t,{method:n,url:`/datasets/${r}`,body:o,tag:null})}function Uf(e,t,n,r,o){return Cn("dataset",e.config()),Pi(r),Ee(e,t,{method:n,url:`/datasets/${r}`,body:o,tag:null})}const N_=["sanity.function.pubsub"],I_=["sanity.function.durable","sanity.function.pubsub","sanity.function.queue"],X3=[...new Set([...N_,...I_])],eD=(e,t)=>{let n=(t==null?void 0:t.organizationId)||e.organizationId;if(n)return{"X-Sanity-Scope-Type":"organization","X-Sanity-Scope-Id":n};let{projectId:r}=e;if(!r)throw Error("`functions.invoke()` requires a `projectId` to be set in the client config, or an `organizationId` for a stack deployed at organization scope");return{"X-Sanity-Scope-Type":"project","X-Sanity-Scope-Id":r}},tD=(e,t)=>{let n=(t==null?void 0:t.stackId)||e.stackId;if(!n)throw Error("`functions.invoke()` requires a `stackId`, either in the client config or on the request. Function names are only unique within a stack.");return n};function nD(e,t,n,r,o,l,u){return _t(e,t,{method:"GET",url:`/blueprints/stacks/${r}`,headers:o,signal:l==null?void 0:l.signal}).pipe(Pn(d=>{let f=((d==null?void 0:d.resources)||[]).find(p=>{var m;return((m=p.type)==null?void 0:m.startsWith("sanity.function."))&&p.name===n});if(!f)throw Error(`Function "${n}" not found in stack "${r}"`);if(!f.externalId)throw Error(`Function "${n}" is declared in stack "${r}" but is not deployed`);if(!X3.includes(f.type))throw Error(`Function invocation is not supported for ${f.type}`);if(u&&!N_.includes(f.type))throw Error(`Synchronous function invocation is not supported for ${f.type}`);if(!u&&!I_.includes(f.type))throw Error(`Asynchronous function invocation is not supported for ${f.type}`);return f.externalId}))}function O_(e,t,n,r,o){return Up(()=>{let l=e.config(),u=eD(l,r),d=tD(l,r),f=(o==null?void 0:o.sync)??!1;return nD(e,t,n,d,u,r,f).pipe(Rr(p=>{var m;return _t(e,t,{method:"POST",url:`/functions/${p}/invoke${f?"?sync=true":""}`,headers:u,body:{event:{data:((m=r==null?void 0:r.event)==null?void 0:m.data)??{}}},timeout:r==null?void 0:r.timeout,signal:r==null?void 0:r.signal})}))})}var Bf=new WeakMap,Wf=new WeakMap,rD=class{constructor(e,t){pe(this,Bf,void 0),pe(this,Wf,void 0),me(Bf,this,e),me(Wf,this,t)}invoke(e,t,n){return O_(S(Bf,this),S(Wf,this),e,t,n)}},Zf=new WeakMap,qf=new WeakMap,iD=class{constructor(e,t){pe(this,Zf,void 0),pe(this,qf,void 0),me(Zf,this,e),me(qf,this,t)}invoke(e,t,n){return Gt(O_(S(Zf,this),S(qf,this),e,t,n))}},Ul=new WeakMap,Hf=new WeakMap,sD=class{constructor(e,t){pe(this,Ul,void 0),pe(this,Hf,void 0),me(Ul,this,e),me(Hf,this,t)}getPlaybackInfo(e,t={}){var p;let n=S(Ul,this).config(),r=(p=n.resource||n["~experimental_resource"])==null?void 0:p.id,{instanceId:o,library
290Id:l}=R_(e),u=l||r;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let d=$_(o,u),f=M_(t);return _t(S(Ul,this),S(Hf,this),{method:"GET",url:d,query:f})}},Bl=new WeakMap,Kf=new WeakMap,oD=class{constructor(e,t){pe(this,Bl,void 0),pe(this,Kf,void 0),me(Bl,this,e),me(Kf,this,t)}getPlaybackInfo(e,t={}){var p;let n=S(Bl,this).config(),r=(p=n.resource||n["~experimental_resource"])==null?void 0:p.id,{instanceId:o,libraryId:l}=R_(e),u=l||r;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let d=$_(o,u),f=M_(t);return Ee(S(Bl,this),S(Kf,this),{method:"GET",url:d,query:f})}};const aD=/^media-library:(ml[^:]+):([^:]+)$/;function lD(e){return typeof e=="object"&&"_ref"in e}function R_(e){let t=lD(e)?e._ref:e,n=aD.exec(t);if(n){let[,r,o]=n;return{libraryId:r,instanceId:o}}if(typeof e=="string"&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}function $_(e,t){return`/media-libraries/${t}/video/${e}/playback-info`}function M_(e){let t={};if(e.transformations){let{thumbnail:n,animated:r,storyboard:o}=e.transformations;n&&(n.width&&(t.thumbnailWidth=n.width),n.height&&(t.thumbnailHeight=n.height),n.time!==void 0&&(t.thumbnailTime=n.time),n.fit&&(t.thumbnailFit=n.fit),n.format&&(t.thumbnailFormat=n.format)),r&&(r.width&&(t.animatedWidth=r.width),r.height&&(t.animatedHeight=r.height),r.start!==void 0&&(t.animatedStart=r.start),r.end!==void 0&&(t.animatedEnd=r.end),r.fps&&(t.animatedFps=r.fps),r.format&&(t.animatedFormat=r.format)),o&&o.format&&(t.storyboardFormat=o.format)}return e.expiration&&(t.expiration=e.expiration),t}var Wl=new WeakMap,Zl=new WeakMap,uD=class{constructor(e,t){pe(this,Wl,void 0),pe(this,Zl,void 0),me(Wl,this,e),me(Zl,this,t)}list(e){let t={};return(e==null?void 0:e.includeMembers)===!1&&(t.includeMembers="false"),(e==null?void 0:e.includeFeatures)===!1&&(t.includeFeatures="false"),e!=null&&e.organizationId&&(t.organizationId=e.organizationId),e!=null&&e.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),_t(S(Wl,this),S(Zl,this),{url:"/projects",query:t})}getById(e){return _t(S(Wl,this),S(Zl,this),{url:`/projects/${e}`})}},ql=new WeakMap,Hl=new WeakMap,cD=class{constructor(e,t){pe(this,ql,void 0),pe(this,Hl,void 0),me(ql,this,e),me(Hl,this,t)}list(e){let t={};return(e==null?void 0:e.includeMembers)===!1&&(t.includeMembers="false"),(e==null?void 0:e.includeFeatures)===!1&&(t.includeFeatures="false"),e!=null&&e.organizationId&&(t.organizationId=e.organizationId),e!=null&&e.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),Ee(S(ql,this),S(Hl,this),{url:"/projects",query:t})}getById(e){return Ee(S(ql,this),S(Hl,this),{url:`/projects/${e}`})}};function Vw(){let e="";for(;e.length<8;){let t=crypto.getRandomValues(new Uint8Array(8-e.length));for(let n of t){let r=n&63;r<62&&(e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[r])}}return e}const _u=(e,t)=>t?pa(e,t):_S(e);function Eu(e,{releaseId:t,publishedId:n,document:r}){if(n&&r._id){let o=_u(n,t);return J4(o,r),o}if(r._id){let o=ha(r._id),l=Ns(r._id);if(!o&&!l)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(o)throw Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let u=qp(r._id);if(u!==t)throw Error(`\`${e}()\` was called with a document ID (\`${r._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${u}\`).`)}return r._id}if(n)return _u(n,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}const dD=(e,t)=>{if(typeof e=="object"&&e&&("releaseId"in e||"metadata"in e)){let{releaseId:n=Vw(),metadata:r={}}=e;return[n,r,t]}return[Vw(),{},e]},D_=(e,t)=>{let[n,r,o]=dD(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:n,metadata:{...r,releaseType:r.releaseType||"undecided"}},options:o}};var ln=new WeakMap,un=new WeakMap,fD=class{constructor(e,t){pe(this,ln,void 0),pe(this,un,void 0),me(ln,this,e),me(un,this,t)}get({releaseId:e},t){return Ih(S(ln,this),S(un,this),`_.releases.${e}`,t)}create(e,t){let{action:n,options:r}=D_(e,t),{releaseId:o,metadata:l}=n;return Xn(S(ln,this),S(un,this),n,r).pipe(Pn(u=>({...u,releaseId:o,metadata:l})))}edit({releaseId:e,patch:t},n){let r={actionType:"sanity.action.release.edit",releaseId:e,patch:t};return Xn(S(ln,this),S(un,this),r,n)}publish({releaseId:e},t){let n={actionType:"sanity.action.release.publish",releaseId:e};return Xn(S(ln,this),S(un,this),n,t)}archive({releaseId:e},t){let n={actionType:"sanity.action.release.archive",releaseId:e};return Xn(S(ln,this),S(un,this),n,t)}unarchive({releaseId:e},t){let n={actionType:"sanity.action.release.unarchive",releaseId:e};return Xn(S(ln,this),S(un,this),n,t)}schedule({releaseId:e,publishAt:t},n){let r={actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t};return Xn(S(ln,this),S(un,this),r,n)}unschedule({releaseId:e},t){let n={actionType:"sanity.action.release.unschedule",releaseId:e};return Xn(S(ln,this),S(un,this),n,t)}delete({releaseId:e},t){let n={actionType:"sanity.action.release.delete",releaseId:e};return Xn(S(ln,this),S(un,this),n,t)}fetchDocuments({releaseId:e},t){return XM(S(ln,this),S(un,this),e,t)}},cn=new WeakMap,dn=new WeakMap,hD=class{constructor(e,t){pe(this,cn,void 0),pe(this,dn,void 0),me(cn,this,e),me(dn,this,t)}get({releaseId:e},t){return Oh(S(cn,this),S(dn,this),`_.releases.${e}`,t)}async create(e,t){let{action:n,options:r}=D_(e,t),{releaseId:o,metadata:l}=n;return{...await $t(S(cn,this),S(dn,this),n,r),releaseId:o,metadata:l}}edit({releaseId:e,patch:t},n){let r={actionType:"sanity.action.release.edit",releaseId:e,patch:t};return $t(S(cn,this),S(dn,this),r,n)}publish({releaseId:e},t){let n={actionType:"sanity.action.release.publish",releaseId:e};return $t(S(cn,this),S(dn,this),n,t)}archive({releaseId:e},t){let n={actionType:"sanity.action.release.archive",releaseId:e};return $t(S(cn,this),S(dn,this),n,t)}unarchive({releaseId:e},t){let n={actionType:"sanity.action.release.unarchive",releaseId:e};return $t(S(cn,this),S(dn,this),n,t)}schedule({releaseId:e,publishAt:t},n){let r={actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t};return $t(S(cn,this),S(dn,this),r,n)}unschedule({releaseId:e},t){let n={actionType:"sanity.action.release.unschedule",releaseId:e};return $t(S(cn,this),S(dn,this),n,t)}delete({releaseId:e},t){let n={actionType:"sanity.action.release.delete",releaseId:e};return $t(S(cn,this),S(dn,this),n,t)}fetchDocuments({releaseId:e},t){return BS(S(cn,this),S(dn,this),e,t)}},Gf=new WeakMap,Yf=new WeakMap,pD=class{constructor(e,t){pe(this,Gf,void 0),pe(this,Yf,void 0),me(Gf,this,e),me(Yf,this,t)}getById(e){return _t(S(Gf,this),S(Yf,this),{url:`/users/${e}`})}},Jf=new WeakMap,Qf=new WeakMap,mD=class{constructor(e,t){pe(this,Jf,void 0),pe(this,Qf,void 0),me(Jf,this,e),me(Qf,this,t)}getById(e){return Ee(S(Jf,this),S(Qf,this),{url:`/users/${e}`})}},ai=new WeakMap,Ie=new WeakMap,gD=class Rh{constructor(t,n=fs){re(this,"assets",void 0),re(this,"datasets",void 0),re(this,"live",void 0),re(this,"mediaLibrary",void 0),re(this,"projects",void 0),re(this,"users",void 0),re(this,"agent",void 0),re(this,"collaboration",void 0),re(this,"functions",void 0),re(this,"releases",void 0),re(this,"context",void 0),pe(this,ai,void 0),pe(this,Ie,void 0),re(this,"listen",i_),this.config(n),me(Ie,this,t),this.assets=new I3(this,S(Ie,this)),this.datasets=new J3(this,S(Ie,this)),this.live=new A_(this),this.mediaLibrary={video:new sD(this,S(Ie,this))},this.projects=new uD(this,S(Ie,this)),this.users=new pD(this,S(Ie,this)),this.agent={action:new A3(this,S(Ie,this))},this.collaboration={comments:new V3(this,S(Ie,this))},this.functions=new rD(this,S(Ie,this)),this.releases=new fD(this,S(Ie,this)),this.context=new H3(this,S(Ie,this))}clone(){return new Rh(S(Ie,this),this.config())}config(t){if(t===void 0)return{...S(ai,this)};if(S(ai,this)&&S(ai,this).allowReconfigure===!1)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return me(ai,this,wS(t,S(ai,this)||{})),this}withConfig(t){let n=this.config();return new Rh(S(Ie,this),{...n,...t,stega:{...n.stega,...typeof(t==null?void 0:t.stega)=="boolean"?{enabled:t.stega}:(t==null?void 0:t.stega)||{}}})}
290fetch(t,n,r){return KM(this,S(Ie,this),S(ai,this).stega,t,n,r)}getDocument(t,n){if((n==null?void 0:n.includeAllVersions)===!0)return Ih(this,S(Ie,this),t,{...n,includeAllVersions:!0});let r={signal:n==null?void 0:n.signal,tag:n==null?void 0:n.tag,releaseId:n==null?void 0:n.releaseId,...n&&"includeAllVersions"in n?{includeAllVersions:!1}:{}};return Ih(this,S(Ie,this),t,r)}getDocuments(t,n){return GM(this,S(Ie,this),t,n)}documentsExists(t,n){return QM(this,S(Ie,this),t,n)}create(t,n){return d3(this,S(Ie,this),t,"create",n)}createIfNotExists(t,n){return e3(this,S(Ie,this),t,n)}createOrReplace(t,n){return t3(this,S(Ie,this),t,n)}createVersion({document:t,publishedId:n,releaseId:r,baseId:o,ifBaseRevisionId:l},u){if(!t)return r3(this,S(Ie,this),n,o,r,l,u);let d=Eu("createVersion",{document:t,publishedId:n,releaseId:r}),f={...t,_id:d},p=n||Is(t._id);return n3(this,S(Ie,this),f,p,u)}delete(t,n){return i3(this,S(Ie,this),t,n)}discardVersion({releaseId:t,publishedId:n},r,o){let l=_u(n,t);return s3(this,S(Ie,this),l,r,o)}replaceVersion({document:t,publishedId:n,releaseId:r},o){let l=Eu("replaceVersion",{document:t,publishedId:n,releaseId:r}),u={...t,_id:l};return o3(this,S(Ie,this),u,o)}unpublishVersion({releaseId:t,publishedId:n},r){let o=pa(n,t);return a3(this,S(Ie,this),o,n,r)}mutate(t,n){return l3(this,S(Ie,this),t,n)}patch(t,n){return new Wo(t,n,this)}transaction(t){return new MS(t,this)}action(t,n){return Xn(this,S(Ie,this),t,n)}request(t){return _t(this,S(Ie,this),t)}getUrl(t,n){return Kp(this,t,n)}getDataUrl(t,n){return Xt(this,t,n)}},li=new WeakMap,Ae=new WeakMap,vD=class $h{constructor(t,n=fs){re(this,"assets",void 0),re(this,"datasets",void 0),re(this,"live",void 0),re(this,"mediaLibrary",void 0),re(this,"projects",void 0),re(this,"users",void 0),re(this,"agent",void 0),re(this,"collaboration",void 0),re(this,"functions",void 0),re(this,"releases",void 0),re(this,"context",void 0),re(this,"observable",void 0),pe(this,li,void 0),pe(this,Ae,void 0),re(this,"listen",i_),this.config(n),me(Ae,this,t),this.assets=new O3(this,S(Ae,this)),this.datasets=new Q3(this,S(Ae,this)),this.live=new A_(this),this.mediaLibrary={video:new oD(this,S(Ae,this))},this.projects=new cD(this,S(Ae,this)),this.users=new mD(this,S(Ae,this)),this.agent={action:new N3(this,S(Ae,this))},this.collaboration={comments:new U3(this,S(Ae,this))},this.functions=new iD(this,S(Ae,this)),this.releases=new hD(this,S(Ae,this)),this.context=new Z3(this,S(Ae,this)),this.observable=new gD(t,n)}clone(){return new $h(S(Ae,this),this.config())}config(t){if(t===void 0)return{...S(li,this)};if(S(li,this)&&S(li,this).allowReconfigure===!1)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(t),me(li,this,wS(t,S(li,this)||{})),this}withConfig(t){let n=this.config();return new $h(S(Ae,this),{...n,...t,stega:{...n.stega,...typeof(t==null?void 0:t.stega)=="boolean"?{enabled:t.stega}:(t==null?void 0:t.stega)||{}}})}fetch(t,n,r){return zS(this,S(Ae,this),S(li,this).stega,t,n,r)}getDocument(t,n){if((n==null?void 0:n.includeAllVersions)===!0)return Oh(this,S(Ae,this),t,{...n,includeAllVersions:!0});let r={signal:n==null?void 0:n.signal,tag:n==null?void 0:n.tag,releaseId:n==null?void 0:n.releaseId,...n&&"includeAllVersions"in n?{includeAllVersions:!1}:{}};return Oh(this,S(Ae,this),t,r)}getDocuments(t,n){return VS(this,S(Ae,this),t,n)}
290documentsExists(t,n){return US(this,S(Ae,this),t,n)}create(t,n){return rc(this,S(Ae,this),t,"create",n)}createIfNotExists(t,n){return qS(this,S(Ae,this),t,n)}createOrReplace(t,n){return HS(this,S(Ae,this),t,n)}createVersion({document:t,publishedId:n,releaseId:r,baseId:o,ifBaseRevisionId:l},u){if(!t)return GS(this,S(Ae,this),n,o,r,l,u);let d=Eu("createVersion",{document:t,publishedId:n,releaseId:r}),f={...t,_id:d},p=n||Is(t._id);return KS(this,S(Ae,this),f,p,u)}delete(t,n){return ZS(this,S(Ae,this),t,n)}discardVersion({releaseId:t,publishedId:n},r,o){let l=_u(n,t);return YS(this,S(Ae,this),l,r,o)}replaceVersion({document:t,publishedId:n,releaseId:r},o){let l=Eu("replaceVersion",{document:t,publishedId:n,releaseId:r}),u={...t,_id:l};return JS(this,S(Ae,this),u,o)}unpublishVersion({releaseId:t,publishedId:n},r){let o=pa(n,t);return QS(this,S(Ae,this),o,n,r)}mutate(t,n){return WS(this,S(Ae,this),t,n)}patch(t,n){return new hs(t,n,this)}transaction(t){return new RS(t,this)}action(t,n){return $t(this,S(Ae,this),t,n)}request(t){return Ee(this,S(Ae,this),t)}dataRequest(t,n,r){return Ai(this,S(Ae,this),t,n,r)}getUrl(t,n){return Kp(this,t,n)}getDataUrl(t,n){return Xt(this,t,n)}};function yD(e,t){return{requester:kw(e).observable,createClient:o=>{let{observable:l,promise:u}=kw(e,{ignoreWarnings:o.ignoreWarnings,maxRetries:o.maxRetries,retryDelay:o.retryDelay}),d=async p=>(await u({redirect:"manual",...p})).body,f=(p,m)=>m?m(p,d):d(p);return new t(f,{...o,requester:l,resolveFetch:o.resolveFetch??e.resolveFetch})}}}const wD=yD({middleware:[]},vD),xD=wD.createClient,bD={};var SD={};const ku=typeof import.meta<"u"&&bD||typeof process<"u"&&SD||{},_D=ku.VITE_SANITY_PROJECT_ID||ku.SANITY_PROJECT_ID||"bd0ugrk9",ED=ku.VITE_SANITY_DATASET||ku.SANITY_DATASET||"production",kD="2024-01-01",em=xD({projectId:_D,dataset:ED,apiVersion:kD,useCdn:!0,perspective:"published"}),Uw="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function CD(e){const[,t,n,r]=e.split("-");if(!t||!n||!r)throw new Error(`Malformed asset _ref '${e}'. Expected an id like "${Uw}".`);const[o,l]=n.split("x"),u=+o,d=+l;if(!(isFinite(u)&&isFinite(d)))throw new Error(`Malformed asset _ref '${e}'. Expected an id like "${Uw}".`);return{id:t,width:u,height:d,format:r}}const PD=e=>{const t=e;return t?typeof t._ref=="string":!1},TD=e=>{const t=e;return t?typeof t._id=="string":!1},jD=e=>{const t=e;return t&&t.asset?typeof t.asset.url=="string":!1},AD=e=>{if(typeof e=="object"&&e!==null){const t=e;return t._upload&&(!t.asset||!t.asset._ref)}return!1};function ND(e){if(!e)return null;let t;if(typeof e=="string"&&ID(e))t={asset:{_ref:Bw(e)}};else if(typeof e=="string")t={asset:{_ref:e}};else if(PD(e))t={asset:e};else if(TD(e))t={asset:{_ref:e._id||""}};else if(jD(e))t={asset:{_ref:Bw(e.asset.url)}};else if(typeof e.asset=="object")t={...e};else return null;const n=e;return n.crop&&(t.crop=n.crop),n.hotspot&&(t.hotspot=n.hotspot),OD(t)}function ID(e){return/^https?:\/\//.test(`${e}`)}function Bw(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}function OD(e){if(e.crop&&e.hotspot)return e;const t={...e};return t.crop||(t.crop={left:0,top:0,bottom:0,right:0}),t.hotspot||(t.hotspot={x:.5,y:.5,height:1,width:1}),t}const z_=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function RD(e){let t={...e||{}};const n=t.source;delete t.source;const r=ND(n);if(!r){if(n&&AD(n))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw new Error(`Unable to resolve image URL from source (${JSON.stringify(n)})`)}const o=r.asset._ref||r.asset._id||"",l=CD(o),u=Math.round(r.crop.left*l.width),d=Math.round(r.crop.top*l.height),f={left:u,top:d,width:Math.round(l.width-r.crop.right*l.width-u),height:Math.round(l.height-r.crop.bottom*l.height-d)},p=r.hotspot.height*l.height/2,m=r.hotspot.width*l.width/2,y=r.hotspot.x*l.width,v=r.hotspot.y*l.height,x={left:y-m,top:v-p,right:y+m,bottom:v+p};
290return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...MD({crop:f,hotspot:x},t)}),$D({...t,asset:l})}function $D(e){const t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),n=e.vanityName?`/${e.vanityName}`:"",r=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${n}`;let o;e.mediaLibraryId?o=`${t}/media-libraries/${e.mediaLibraryId}/images/${r}`:e.canvasId?o=`${t}/images/canvases/${e.canvasId}/${r}`:o=`${t}/images/${e.projectId}/${e.dataset}/${r}`;const l=[];if(e.rect){const{left:d,top:f,width:p,height:m}=e.rect;(d!==0||f!==0||m!==e.asset.height||p!==e.asset.width)&&l.push(`rect=${d},${f},${p},${m}`)}e.bg&&l.push(`bg=${e.bg}`),e.focalPoint&&(l.push(`fp-x=${e.focalPoint.x}`),l.push(`fp-y=${e.focalPoint.y}`));const u=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return u&&l.push(`flip=${u}`),z_.forEach(d=>{const[f,p]=d;typeof e[f]<"u"?l.push(`${p}=${encodeURIComponent(e[f])}`):typeof e[p]<"u"&&l.push(`${p}=${encodeURIComponent(e[p])}`)}),l.length===0?o:`${o}?${l.join("&")}`}function MD(e,t){let n;const r=t.width,o=t.height;if(!(r&&o))return{width:r,height:o,rect:e.crop};const l=e.crop,u=e.hotspot,d=r/o;if(l.width/l.height>d){const f=Math.round(l.height),p=Math.round(f*d),m=Math.max(0,Math.round(l.top)),y=Math.round((u.right-u.left)/2+u.left);let v=Math.max(0,Math.round(y-p/2));v<l.left?v=l.left:v+p>l.left+l.width&&(v=l.left+l.width-p),n={left:v,top:m,width:p,height:f}}else{const f=l.width,p=Math.round(f/d),m=Math.max(0,Math.round(l.left)),y=Math.round((u.bottom-u.top)/2+u.top);let v=Math.max(0,Math.round(y-p/2));v<l.top?v=l.top:v+p>l.top+l.height&&(v=l.top+l.height-p),n={left:m,top:v,width:f,height:p}}return{width:r,height:o,rect:n}}const DD=["clip","crop","fill","fillmax","max","scale","min"],zD=["top","bottom","left","right","center","focalpoint","entropy"],LD=["format"];function FD(e){return e&&"config"in e?typeof e.config=="function":!1}function VD(e){return e&&"clientConfig"in e?typeof e.clientConfig=="object":!1}function Ww(e){const{apiHost:t,projectId:n,dataset:r}=e,o={baseUrl:(t||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},l=e.resource??e["~experimental_resource"];if((l==null?void 0:l.type)==="media-library"){if(typeof l.id!="string"||l.id.length===0)throw new Error('Media library clients must include an id in "resource"');return{...o,mediaLibraryId:l.id}}if((l==null?void 0:l.type)==="canvas"){if(typeof l.id!="string"||l.id.length===0)throw new Error('Canvas clients must include an id in "resource"');return{...o,canvasId:l.id}}if((l==null?void 0:l.type)==="dataset"){if(typeof l.id!="string"||l.id.length===0)throw new Error('Dataset clients must include an id in "resource"');const[u,d]=l.id.split(".");if(!u||!d)throw new Error('Dataset resource id must be in the format "projectId.dataset", got: '+l.id);return{...o,projectId:u,dataset:d}}return{...o,projectId:n,dataset:r}}function UD(e){const t=z_;for(const n of t){const[r,o]=n;if(e===r||e===o)return r}return e}function L_(e){let t={};return FD(e)?t=Ww(e.config()):VD(e)?t=Ww(e.clientConfig):t=e||{},t}function BD(e,t){const n=L_(t);return new e(null,n)}function WD(e){return BD(Cu,e)}function ZD(e,t){const n=t.baseUrl||e.baseUrl,r={baseUrl:n};for(const o in t)if(t.hasOwnProperty(o)){const l=UD(o);r[l]=t[o]}return{baseUrl:n,...r}}class Cu{constructor(t,n){On(this,"options");this.options=t?{...t.options||{},...n||{}}:{...n||{}}}withOptions(t){const n=ZD(this.options,t);return new Cu(this,n)}image(t){return this.withOptions({source:t})}dataset(t){return this.withOptions({dataset:t})}projectId(t){return this.withOptions({projectId:t})}withClient(t){const n=L_(t),r={...this.options};return delete r.baseUrl,delete r.projectId,delete r.dataset,delete r.mediaLibraryId,delete r.canvasId,new Cu(null,{...n,...r})}bg(t){return this.withOptions({bg:t})}dpr(t){return this.withOptions(t&&t!==1?{dpr:t}:{})}width(t){return this.withOptions({width:t})}height(t){return this.withOptions({height:t})}focalPoint(t,n){return this.withOptions({focalPoint:{x:t,y:n}})}maxWidth(t){return this.withOptions({maxWidth:t})}minWidth(t){return this.withOptions({minWidth:t})}maxHeight(t){return this.withOptions({maxHeight:t})}minHeight(t){return this.withOptions({minHeight:t})}size(t,n){return this.withOptions({width:t,height:n})}blur(t){return this.withOptions({blur:t})}
290sharpen(t){return this.withOptions({sharpen:t})}rect(t,n,r,o){return this.withOptions({rect:{left:t,top:n,width:r,height:o}})}format(t){return this.withOptions({format:t})}invert(t){return this.withOptions({invert:t})}orientation(t){return this.withOptions({orientation:t})}quality(t){return this.withOptions({quality:t})}forceDownload(t){return this.withOptions({download:t})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(t){if(DD.indexOf(t)===-1)throw new Error(`Invalid fit mode "${t}"`);return this.withOptions({fit:t})}crop(t){if(zD.indexOf(t)===-1)throw new Error(`Invalid crop mode "${t}"`);return this.withOptions({crop:t})}saturation(t){return this.withOptions({saturation:t})}auto(t){if(LD.indexOf(t)===-1)throw new Error(`Invalid auto mode "${t}"`);return this.withOptions({auto:t})}pad(t){return this.withOptions({pad:t})}vanityName(t){return this.withOptions({vanityName:t})}frame(t){if(t!==1)throw new Error(`Invalid frame value "${t}"`);return this.withOptions({frame:t})}url(){return RD(this.options)}toString(){return this.url()}}const qD=WD(em);function F_(e){return qD.image(e)}function Zw(e,t=1200,n="Event photograph"){var d,f;if(!e)return{url:"/images/services/api.jpg",alt:n,width:1200,height:800};const r=e.asset||{},o=r.metadata||{},l=o.dimensions||{width:1200,height:800};let u="";try{(d=e.asset)!=null&&d._ref||(f=e.asset)!=null&&f._id?u=F_(e).width(t).auto("format").quality(85).fit("crop").url():r.url?u=r.url:typeof e=="string"&&(u=e)}catch{u=r.url||"/images/services/api.jpg"}return{url:u||r.url||"/images/services/api.jpg",alt:e.alt&&e.alt.trim()||n,width:l.width||1200,height:l.height||800,lqip:o.lqip||void 0,caption:e.caption||void 0}}const HD=` 291*[_type == "exhibitionPopup" && !(_id in path("drafts.**")) && enabled == true] | order(coalesce(orderRank, 9999) asc, _createdAt desc) { 292 _id, 293 _updatedAt, 294 _createdAt, 295 enabled, 296 title, 297 orderRank, 298 linkUrl, 299 "poster": coalesce(poster, image) { 300 asset-> { 301 _id, 302 url, 303 metadata { 304 dimensions { 305 width, 306 height, 307 aspectRatio 308 }, 309 lqip 310 } 311 }, 312 hotspot, 313 crop, 314 alt 315 } 316} 317`,KD=` 318*[_type == "event" && !(_id in path("drafts.**"))] | order( 319 coalesce(orderRank, "999") asc, 320 _createdAt desc 321)[0...$limit] { 322 _id, 323 _createdAt, 324 "name": coalesce(name, title, "Untitled Event"), 325 "title": coalesce(title, name, "Untitled Event"), 326 "slug": coalesce(slug.current, slug, _id), 327 location { 328 venue, 329 city, 330 country 331 }, 332 "date": coalesce(dateRange.startDate, date), 333 dateRange, 334 description, 335 featured, 336 orderRank, 337 cover { 338 asset-> { 339 _id, 340 url, 341 metadata { 342 dimensions { 343 width, 344 height, 345 aspectRatio 346 }, 347 lqip 348 } 349 }, 350 hotspot, 351 crop, 352 alt, 353 caption 354 }, 355 gallery[] { 356 asset-> { 357 _id, 358 url, 359 metadata { 360 dimensions { 361 width, 362 height, 363 aspectRatio 364 }, 365 lqip 366 } 367 }, 368 hotspot, 369 crop, 370 alt, 371 caption 372 } 373} 374`,Pu="nimbus_events_cache_v5",V_="nimbus_events_last_fetch_ts_v5",tm="nimbus_events_last_error_ts_v5",nm=5,U_=900*1e3,GD=60*1e3,YD=300*1e3;let fi=null,B_=null,eu=0,Tu=0;const ju=new Set;function Ni(){if(typeof window>"u")return null;try{const e=window.localStorage,t="__nimbus_cache_test__";return e.setItem(t,"1"),e.removeItem(t),e.removeItem("nimbus_events_cache_v4"),e.removeItem("nimbus_events_last_fetch_ts_v4"),e}catch{try{const e=window.sessionStorage,t="__nimbus_cache_test__";return e.setItem(t,"1"),e.removeItem(t),e.removeItem("nimbus_events_cache_v4"),e.removeItem("nimbus_events_last_fetch_ts_v4"),e}catch{return null}}}function ks(){if(fi&&typeof fi=="object")return fi;const e=Ni();if(!e)return null;try{const t=e.getItem(Pu);if(!t)return null;const n=JSON.parse(t);return n&&typeof n=="object"&&n.version===nm&&Array.isArray(n.events)&&typeof n.timestamp=="number"?(fi=n,n):(e.removeItem(Pu),null)}catch{return null}}function JD(e,t,{notify:n=!0,timestamp:r=Date.now()}={}){const o={version:nm,timestamp:r,events:Array.isArray(e)?e:[],settings:t||{heading:"Events & Exhibitions",maxEvents:8}};fi=o;const l=Ni();if(l)try{l.setItem(Pu,JSON.stringify(o))}catch(u){typeof console<"u"&&console.warn&&console.warn("[Events Cache] Failed to persist cache to storage:",u==null?void 0:u.message)}if(n)for(const u of ju)try{u(o)}catch(d){typeof console<"u"&&console.error&&console.error("[Events Cache] Subscriber notification error:",d)}return o}function W_(e){const t=e||ks();return!t||typeof t.timestamp!="number"||!Array.isArray(t.events)||t.events.length===0?!1:Date.now()-t.timestamp<U_}function QD(e){const t=e||ks();return!t||typeof t.timestamp!="number"?!1:Date.now()-t.timestamp>=U_}function XD(){if(eu>0)return eu;const e=Ni();if(!e)return 0;try{const t=e.getItem(V_),n=Number(t);if(!Number.isNaN(n)&&n>0)return eu=n,n}catch{}return 0}function ez(){const e=Date.now();eu=e;const t=Ni();if(t)try{t.setItem(V_,String(e))}catch{}}function tz(){const e=Date.now();Tu=e;const t=Ni();if(t)try{t.setItem(tm,String(e))}catch{}}function nz(){Tu=0;const e=Ni();if(e)try{e.removeItem(tm)}catch{}}function rz(){let e=Tu;if(!e){const t=Ni();if(t)try{const n=t.getItem(tm),r=Number(n);!Number.isNaN(r)&&r>0&&(e=r,Tu=e)}catch{e=0}}return e?Date.now()-e<YD:!1}function iz(){if(typeof navigator<"u"&&navigator.onLine===!1||rz())return!1;const e=XD();return Date.now()-e>=GD}function Z_(){return B_}function Au(e){B_=e}function sz(e){return typeof e!="function"?()=>{}:(ju.add(e),()=>{ju.delete(e)})}let qw=!1;function oz(){if(!qw&&typeof window<"u"&&typeof window.addEventListener=="function")try{window.addEventListener("storage",e=>
374{if(e.key===Pu){if(!e.newValue){fi=null;return}try{const t=JSON.parse(e.newValue);if(t&&t.version===nm&&Array.isArray(t.events)&&typeof t.timestamp=="number"){fi=t;for(const n of ju)try{n(t)}catch(r){typeof console<"u"&&console.error&&console.error("[Events Cache] Storage event subscriber error:",r)}}}catch{}}}),qw=!0}catch{}}oz();const _i={heading:"Events & Exhibitions",intro:"Global pharmaceutical exhibitions, supplier audits, and turnkey engineering symposiums.",maxEvents:8},Mh=[],Hw=$p({url:hn().min(1,"Image URL cannot be empty"),alt:hn().min(1,"Alt text is required for accessibility"),width:Sh().positive(),height:Sh().positive(),lqip:hn().optional(),caption:hn().optional()}),az=$p({id:hn().min(1),slug:hn().min(1),name:hn().min(1),location:hn().min(1),date:hn().optional(),description:hn().optional(),cover:Hw,gallery:M1(Hw),featured:Z$().optional()});$p({heading:hn().default("Events & Exhibitions"),intro:hn().optional(),maxEvents:Sh().min(1).max(8).default(8)});function lz(e){if(!e||typeof e!="object")return"Location TBA";const t=[e.venue,e.city,e.country].map(n=>typeof n=="string"?n.trim():"").filter(Boolean);return t.length>0?t.join(", "):"Location TBA"}function uz(e){if(!e||typeof e!="object")return null;const t=e.name||e.title||"Untitled Event",n=lz(e.location),r=Zw(e.cover,1200,`${t} photographic cover`),o=Array.isArray(e.gallery)?e.gallery.map((d,f)=>Zw(d,1200,`${t} gallery photograph ${f+1}`)):[],l={id:String(e._id||e.id||`event-${Math.random()}`),slug:String(e.slug||e._id||"event"),name:t,location:n,date:e.date?String(e.date):void 0,description:e.description?String(e.description):void 0,cover:r,gallery:o,featured:!!e.featured},u=az.safeParse(l);return u.success?u.data:(typeof console<"u"&&console.warn&&console.warn(`[Events Data Layer] Event "${t}" failed strict validation:`,u.error.format()),l)}function Kw(){const e=ks();return e&&Array.isArray(e.events)&&e.events.length>0?{events:e.events,settings:e.settings||_i,source:"cache",isFresh:W_(e)}:{events:[],settings:_i,source:"fallback",isFresh:!1}}async function q_({limit:e}={}){ez();try{const t=await em.fetch(KD,{limit:e||8}),n=Array.isArray(t)?t.map(uz).filter(Boolean).slice(0,8):[],r=n.length>0?n:Mh,o=ks(),l=(o==null?void 0:o.settings)||_i;return nz(),JD(r,l),{events:r,settings:l,error:null,fromCache:!1}}catch(t){tz(),typeof console<"u"&&console.error&&console.error("[Events Data Layer] CMS unreachable or query error. Serving cached/fallback data gracefully:",(t==null?void 0:t.message)||t);const n=ks();return{events:Array.isArray(n==null?void 0:n.events)?n.events:Mh,settings:(n==null?void 0:n.settings)||_i,error:t,fromCache:!!(n&&Array.isArray(n.events))}}}function cz({limit:e}={}){if(Z_())return;const t=q_({limit:e}).catch(n=>{typeof console<"u"&&console.warn&&console.warn("[Events Data Layer] SWR background revalidation failed:",n==null?void 0:n.message)}).finally(()=>{Au(null)});Au(t)}async function dz({limit:e,forceRefresh:t=!1}={}){const n=ks();if(!t&&n&&Array.isArray(n.events)&&n.events.length>0&&W_(n))return{events:n.events,settings:n.settings||_i,error:null,fromCache:!0,isFresh:!0};if(!t&&n&&Array.isArray(n.events)&&n.events.length>0&&QD(n))return iz()&&cz({limit:e}),{events:n.events,settings:n.settings||_i,error:null,fromCache:!0,isStale:!0};const r=Z_();if(r)return r;if(typeof navigator<"u"&&navigator.onLine===!1)return{events:Array.isArray(n==null?void 0:n.events)?n.events:Mh,settings:(n==null?void 0:n.settings)||_i,error:null,fromCache:!!(n&&Array.isArray(n.events))};const o=q_({limit:e}).finally(()=>{Au(null)});return Au(o),o}function fz(e){return sz(e)}function hz({events:e}){const[t,n]=R.useState(()=>{if(Array.isArray(e))return e;const f=Kw();return Array.isArray(f==null?void 0:f.events)?f.events:[]}),[r,o]=R.useState(()=>{if(Array.isArray(e))return!1;const f=Kw();return!f||!Array.isArray(f.events)||f.events.length===0}),[l,u]=R.useState(null);R.useEffect(()=>{if(Array.isArray(e)&&e.length>0)return;let f=!0;const p=(y,v)=>y===v?!0:!Array.isArray(y)||!Array.isArray(v)||y.length!==v.length?!1:y.every((x,_)=>{var E,k;return x.id===((E=v[_])==null?void 0:E.id)&&x.name===((k=v[_])==null?void 0:k.name)}),m=fz(y=>{f&&Array.isArray(y==null?void 0:y.events)&&y.events.length>0&&(n(v=>p(v,y.events)?v:y.events),o(!1))});return dz().then(({events:y})=>{f&&(Array.isArray(y)&&n(v=>p(v,y)?v:y),o(!1))}).catch(y=>{f&&(typeof console<"u"&&console.error&&console.error("[EventsSection] Failed to load events from CMS:",y),o(!1))}),()=>{f=!1,m()}},[e]);const d=Array.isArray(t)&&t.length>0;return w.jsx("section",{id:"events",className:"relative h-screen min-h-[100dvh] w-full flex-shrink-0 flex flex-col justify-center overflow-hidden bg-[var(--paper)] select-none",children:r?w.jsx("div",{className:"w-full relative my-auto py-4 flex items-center justify-center","aria-busy":"true","aria-label":"Loading events",children:w.jsx("div",{className:"w-10 h-10 rounded-full border-2 border-[var(--line)] border-t-[var(--nimbus-blue)] animate-spin"})}):d?w.jsxs("div",{className:"w-full relative my-auto py-4",children:[w.jsx(GA,{events:t,onSelectEvent:f=>u(f)}),w.jsx(YA,{event:l,onClose:()=>u(null)})]}):w.jsxs("div",{className:"w-full max-w-md mx-auto py-16 px-6 rounded-2xl border border-dashed border-[var(--line)] bg-[var(--nimbus-sky)]/40 flex flex-col items-center justify-center text-center my-auto",children:[w.jsx("div",{className:"w-12 h-12 rounded-xl bg-white border border-[var(--line)] text-[var(--nimbus-blue)] flex items-center justify-center mb-4 shadow-sm",children:w.jsx(Qj,{className:"w-6 h-6 text-[var(--nimbus-blue)]"})}),w.jsx("h3",{className:"text-lg font-bold text-[var(--nimbus-deep)] font-heading mb-1",children:"No Events Added Yet"}),w.jsx("p",{className:"text-xs sm:text-sm text-[var(--ink-soft)] max-w-md",children:"No events have been added yet. Our upcoming pharmaceutical exhibitions and international delegation schedules will be published shortly."})]})})}function pz(){return w.jsxs("div",{className:"w-full",children:[w.jsx("h3",{className:"text-xs sm:text-sm font-bold tracking-[0.14em] text-[var(--nimbus-deep)] uppercase font-heading mb-4",children:"HEAD OFFICE & DISTRIBUTION HUB"}),w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"flex items-start gap-3.5",children:[w.jsx("div",{className:"w-9 h-9 rounded-full bg-white border border-[var(--line)] text-[var(--nimbus-blue)] flex items-center justify-center shrink-0 shadow-xs mt-0.5",children:w.jsx(yp,{className:"w-4 h-4 text-[var(--nimbus-blue)]"})}),w.jsxs("div",{className:"min-w-0",children:[w.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold uppercase tracking-wider text-[var(--ink-soft)] block font-heading",children:"Address"}),w.jsx("p",{className:"text-xs sm:text-sm font-medium text-[var(--ink)] leading-snug mt-0.5",children:"2nd Floor, 39 Commercial Cavalry Ground, Lahore Cantt, Pakistan"})]})]}),w.jsxs("div",{className:"flex items-start gap-3.5",children:[w.jsx("div",{className:"w-9 h-9 rounded-full bg-white border border-[var(--line)] text-[var(--nimbus-blue)] flex items-center justify-center shrink-0 shadow-xs mt-0.5",children:w.jsx(wp,{className:"w-4 h-4 text-[var(--nimbus-blue)]"})}),w.jsxs("div",{className:"min-w-0",children:[w.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold uppercase tracking-wider text-[var(--ink-soft)] block font-heading",children:"Procurement & Order Inquiries"}),w.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs sm:text-sm",children:[w.jsxs("a",{href:"tel:+923004002025",className:"font-medium text-[var(--nimbus-blue)] hover:text-[#104282] hover:underline tabular-nums focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)]",children:["+92 300 4002025 ",w.jsx("span",{className:"text-[11px] text-[var(--ink-soft)] font-normal",children:"(M
374obile)"})]}),w.jsx("span",{className:"text-[var(--line)] hidden sm:inline",children:"â¢"}),w.jsxs("a",{href:"tel:+924236610428",className:"font-medium text-[var(--nimbus-blue)] hover:text-[#104282] hover:underline tabular-nums focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)]",children:["+92 42 3661 0428 ",w.jsx("span",{className:"text-[11px] text-[var(--ink-soft)] font-normal",children:"(Desk)"})]}),w.jsx("span",{className:"text-[var(--line)] hidden sm:inline",children:"â¢"}),w.jsxs("a",{href:"tel:+923213344475",className:"font-medium text-[var(--nimbus-blue)] hover:text-[#104282] hover:underline tabular-nums focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)]",children:["+92 321 3344475 ",w.jsx("span",{className:"text-[11px] text-[var(--ink-soft)] font-normal",children:"(Mobile)"})]})]})]})]}),w.jsxs("div",{className:"flex items-start gap-3.5",children:[w.jsx("div",{className:"w-9 h-9 rounded-full bg-white border border-[var(--line)] text-[var(--nimbus-blue)] flex items-center justify-center shrink-0 shadow-xs mt-0.5",children:w.jsx(Go,{className:"w-4 h-4 text-[var(--nimbus-blue)]"})}),w.jsxs("div",{className:"min-w-0",children:[w.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold uppercase tracking-wider text-[var(--ink-soft)] block font-heading",children:"Official Corporate Emails"}),w.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs sm:text-sm",children:[w.jsx("a",{href:"mailto:[email protected]",className:"font-medium text-[var(--nimbus-blue)] hover:text-[#104282] hover:underline truncate focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)]",children:"[email protected]"}),w.jsx("span",{className:"text-[var(--line)] hidden sm:inline",children:"â¢"}),w.jsx("a",{href:"mailto:[email protected]",className:"font-medium text-[var(--nimbus-blue)] hover:text-[#104282] hover:underline truncate focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)]",children:"[email protected]"})]})]})]}),w.jsxs("div",{className:"flex items-start gap-3.5",children:[w.jsx("div",{className:"w-9 h-9 rounded-full bg-white border border-[var(--line)] text-[var(--nimbus-blue)] flex items-center justify-center shrink-0 shadow-xs mt-0.5",children:w.jsx(Ub,{className:"w-4 h-4 text-[var(--nimbus-blue)]"})}),w.jsxs("div",{className:"min-w-0",children:[w.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold uppercase tracking-wider text-[var(--ink-soft)] block font-heading",children:"Operating Hours"}),w.jsxs("div",{className:"mt-0.5 text-xs sm:text-sm text-[var(--ink)] leading-snug",children:[w.jsx("span",{className:"font-medium",children:"MonâFri: 9:00 am â 5:00 pm"}),w.jsx("span",{className:"mx-2 text-[var(--ink-soft)]",children:"|"}),w.jsx("span",{className:"font-medium",children:"Sat: 9:00 am â 2:00 pm PKT"})]})]})]})]}),w.jsxs("div",{className:"mt-5 pt-4 border-t border-[var(--line)]",children:[w.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[w.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold uppercase tracking-wider text-[var(--ink-soft)] font-heading",children:"Location Map"}),w.jsxs("a",{href:"https://www.google.com/maps/place/Nimbus+Chemtech/@31.5017795,74.3607274,17z/data=!3m1!4b1!4m6!3m5!1s0x39190572670e242f:0x9e419b47d5b6ca21!8m2!3d31.501775!4d74.3633023!16s%2Fg%2F11pdr6qb0f",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white hover:bg-slate-50 border border-[var(--line)] text-[var(--nimbus-blue)] hover:text-[var(--nimbus-deep)] text-xs font-semibold transition-all group focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)] shadow-xs",children:[w.jsx("span",{children:"Open in Maps"}),w.jsx(Bb,{className:"w-3 h-3 text-[var(--nimbus-blue)] transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]}),w.jsx("div",{className:"relative w-full h-36 sm:h-44 rounded-xl overflow-hidden border border-[var(--line)] shadow-xs bg-slate-100",children:w.jsx("iframe",{title:"Nimbus Chemtech Location Map",src:"https://maps.google.com/maps?q=Nimbus%20Chemtech,%2039%20Commercial%20Cavalry%20Ground,%20Lahore%20Cantt&t=&z=15&ie=UTF8&iwloc=&output=embed",className:"w-full h-full border-0",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]})]})}const mz=["API (Active Pharmaceutical Ingredients)","Intermediate","Finish Products","Pharmaceutical Machinery","Pharmaceutical Packaging Material","Pre-Fabricated Panels for Clean Rooms","Herbal Products"],Gw={customerName:"",contactPerson:"",department:"",email:"",ph
374one:"",requirements:"",company_website:""};function gz(){const[e,t]=R.useState(Gw),[n,r]=R.useState({}),[o,l]=R.useState(!1),[u,d]=R.useState(!1),f={customerName:R.useRef(null),contactPerson:R.useRef(null),phone:R.useRef(null),email:R.useRef(null),requirements:R.useRef(null)},p=x=>{const{name:_,value:E}=x.target;t(k=>({...k,[_]:E})),n[_]&&r(k=>({...k,[_]:null}))},m=()=>{const x={};return e.customerName.trim()||(x.customerName="Customer name is required."),e.contactPerson.trim()||(x.contactPerson="Contact person and designation are required."),e.phone.trim()?e.phone.replace(/\D/g,"").length<10&&(x.phone="Please provide a valid phone number with at least 10 digits."):x.phone="Direct phone / mobile number is required.",e.email.trim()&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email.trim())||(x.email="Please provide a valid email address.")),e.requirements.trim()||(x.requirements="Please specify requirement details and estimated quantities."),x},y=async x=>{var k;if(x.preventDefault(),e.company_website){d(!0);return}const _=m();if(Object.keys(_).length>0){r(_);const P=Object.keys(_)[0];(k=f[P])!=null&&k.current&&f[P].current.focus();return}l(!0);const E=void 0;try{E||await new Promise(P=>setTimeout(P,600)),d(!0)}catch(P){console.error("Submission error:",P),r({form:"Unable to submit inquiry at this moment. Please try again or contact us directly."})}finally{l(!1)}},v=()=>{t(Gw),r({}),d(!1)};return u?w.jsxs("div",{className:"w-full text-center py-6 sm:py-8",children:[w.jsx("div",{className:"w-14 h-14 rounded-full bg-white text-[var(--nimbus-blue)] shadow-sm border border-[var(--line)] mx-auto flex items-center justify-center mb-4",children:w.jsx(sA,{className:"w-8 h-8 text-[var(--nimbus-blue)]"})}),w.jsx("h3",{className:"text-xl sm:text-2xl font-bold text-[var(--nimbus-deep)] font-heading mb-2",children:"Inquiry Submitted Successfully"}),w.jsx("p",{className:"text-[var(--ink-soft)] text-sm sm:text-base leading-relaxed max-w-lg mx-auto mb-6",children:"Thank you. Your inquiry has been received. Our procurement desk will review specifications and respond within one business day."}),w.jsx("button",{type:"button",onClick:v,className:"inline-flex items-center gap-2 px-6 py-2.5 rounded-full bg-[var(--nimbus-blue)] hover:bg-[#104282] text-white font-semibold text-sm transition-all shadow-sm hover:shadow focus-visible:outline-2 focus-visible:outline-[var(--nimbus-blue)]",children:"Send another inquiry"})]}):w.jsxs("div",{className:"w-full",children:[w.jsx("div",{className:"flex justify-end mb-2.5",children:w.jsxs("span",{className:"text-[11px] text-[var(--ink-soft)]",children:["Fields marked with ",w.jsx("span",{className:"text-red-500 font-semibold",children:"*"})," are required"]})}),w.jsxs("form",{onSubmit:y,noValidate:!0,className:"space-y-4",children:[n.form&&w.jsxs("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg text-xs text-red-700 flex items-center gap-2",children:[w.jsx(rs,{className:"w-4 h-4 shrink-0"}),w.jsx("span",{children:n.form})]}),w.jsxs("div",{className:"hidden","aria-hidden":"true",children:[w.jsx("label",{htmlFor:"company_website",children:"Company Website"}),w.jsx("input",{type:"text",id:"company_website",name:"company_website",value:e.company_website,onChange:p,tabIndex:-1,autoComplete:"off"})]}),w.jsxs("div",{children:[w.jsxs("label",{htmlFor:"customerName",className:"block text-xs font-semibold uppercase tracking-wider text-[var(--ink)] mb-1.5",children:["Company / Customer Name ",w.jsx("span",{className:"text-red-500",children:"*"})]}),w.jsx("input",{ref:f.customerName,type:"text",id:"customerName",name:"customerName",value:e.customerName,onChange:p,"aria-invalid":n.customerName?"true":"false","aria-describedby":n.customerName?"customerName-error":void 0,placeholder:"e.g. Searle, Getz, Highnoon...",className:`w-full px-3.5 py-2.5 rounded-lg border text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[var(--nimbus-blue)] bg-white ${n.customerName?"border-red-500 bg-red-50/20":"border-[var(--line)] focus:border-transparent"}`}),n.customerName&&w.jsxs("p",{id:"customerName-error",className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[w.jsx(rs,{className:"w-3.5 h-3.5"}),n.customerName]})]}),w.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3.5 sm:gap-4",children:[w.jsxs("div",{children:[w.jsxs("label",{htmlFor:"contactPerson",className:"block text-xs font-semibold uppercase tracking-wider text-[var(--ink)] mb-1.5",children:["Contact Person & Designation ",w.jsx("span",{className:"text-red-500",children:"*"})]}),w.jsx("input",{ref:f.contactPerson,type:"text",id:"contactPerson",name:"contactPerson",value:e.contactPerson,onChange:p,"aria-invalid":n.contactPerson?"true":"false","aria-describedby":n.contactPerson?"contactPerson-error":void 0,placeholder:"e.g. Dr. Tariq, Procurement Head",className:`w-full px-3.5 py-2.5 rounded-lg border text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[var(--nimbus-blue)] bg-white ${n.contactPerson?"border-red-500 bg-red-50/20":"border-[var(--line)] focus:border-transparent"}`}),n.contactPerson&&w.jsxs("p",{id:"contactPerson-error",className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[w.jsx(rs,{className:"w-3.5 h-3.5"}),n.contactPerson]})]}),w.jsxs("div",{children:[w.jsx("label",{htmlFor:"department",className:"block text-xs font-semibold uppercase tracking-wider text-[var(--ink)] mb-1.5",children:"Product Category"}),w.jsxs("select",{id:"department",name:"department",value:e.department,onChange:p,className:"w-full px-3.5 py-2.5 rounded-lg border border-[var(--line)] text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[var(--nimbus-blue)] focu
374s:border-transparent bg-white text-[var(--ink)]",children:[w.jsx("option",{value:"",disabled:!0,children:"Select a category"}),mz.map(x=>w.jsx("option",{value:x,children:x},x))]})]})]}),w.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3.5 sm:gap-4",children:[w.jsxs("div",{children:[w.jsxs("label",{htmlFor:"email",className:"block text-xs font-semibold uppercase tracking-wider text-[var(--ink)] mb-1.5",children:["Institutional Email ",w.jsx("span",{className:"text-[var(--ink-soft)] font-normal",children:"(Optional)"})]}),w.jsx("input",{ref:f.email,type:"email",id:"email",name:"email",value:e.email,onChange:p,"aria-invalid":n.email?"true":"false","aria-describedby":n.email?"email-error":void 0,placeholder:"[email protected]",className:`w-full px-3.5 py-2.5 rounded-lg border text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[var(--nimbus-blue)] bg-white ${n.email?"border-red-500 bg-red-50/20":"border-[var(--line)] focus:border-transparent"}`}),n.email&&w.jsxs("p",{id:"email-error",className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[w.jsx(rs,{className:"w-3.5 h-3.5"}),n.email]})]}),w.jsxs("div",{children:[w.jsxs("label",{htmlFor:"phone",className:"block text-xs font-semibold uppercase tracking-wider text-[var(--ink)] mb-1.5",children:["Direct Phone / Mobile ",w.jsx("span",{className:"text-red-500",children:"*"})]}),w.jsx("input",{ref:f.phone,type:"tel",id:"phone",name:"phone",value:e.phone,onChange:p,"aria-invalid":n.phone?"true":"false","aria-describedby":n.phone?"phone-error":void 0,placeholder:"+92 300 1234567",className:`w-full px-3.5 py-2.5 rounded-lg border text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[var(--nimbus-blue)] bg-white ${n.phone?"border-red-500 bg-red-50/20":"border-[var(--line)] focus:border-transparent"}`}),n.phone&&w.jsxs("p",{id:"phone-error",className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[w.jsx(rs,{className:"w-3.5 h-3.5"}),n.phone]})]})]}),w.jsxs("div",{children:[w.jsxs("label",{htmlFor:"requirements",className:"block text-xs font-semibold uppercase tracking-wider text-[var(--ink)] mb-1.5",children:["Requirement Details & Estimated Quantities ",w.jsx("span",{className:"text-red-500",children:"*"})]}),w.jsx("textarea",{ref:f.requirements,id:"requirements",name:"requirements",rows:4,value:e.requirements,onChange:p,"aria-invalid":n.requirements?"true":"false","aria-describedby":n.requirements?"requirements-error":void 0,placeholder:"Specify raw materials, chemical CAS numbers, pharmacopoeial grades (USP/BP/EP), required quantities, or equipment specifications...",className:`w-full px-3.5 py-2.5 rounded-lg border text-sm transition-all focus:outline-none focus:ring-2 focus:ring-[var(--nimbus-blue)] bg-white resize-y ${n.requirements?"border-red-500 bg-red-50/20":"border-[var(--line)] focus:border-transparent"}`}),n.requirements&&w.jsxs("p",{id:"requirements-error",className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[w.jsx(rs,{className:"w-3.5 h-3.5"}),n.requirements]})]}),w.jsxs("div",{className:"pt-2 flex flex-col sm:flex-row items-center justify-between gap-3",children:[w.jsx("p",{className:"text-xs text-[var(--ink-soft)] order-2 sm:order-1 text-center sm:text-left",children:"Inquiries handled under standard pharmaceutical commercial confidentiality."}),w.jsx("button",{type:"submit",disabled:o,className:"order-1 sm:order-2 w-full sm:w-auto inline-flex items-center justify-center gap-2 bg-[var(--nimbus-blue)] hover:bg-[#104282] disabled:opacity-75 text-white font-semibold py-2.5 px-7 rounded-full transition-all shadow-md hover:shadow-lg hover:-translate-y-0.5 active:translate-y-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--nimbus-blue)] text-sm",children:o?w.jsxs(w.Fragment,{children:[w.jsx(xA,{className:"w-4 h-4 animate-spin text-white"}),w.jsx("span",{children:"Sending Inquiryâ¦"})]}):w.jsxs(w.Fragment,{children:[w.jsx("span",{children:"Submit Inquiry"}),w.jsx(jA,{className:"w-4 h-4 text-white"})]})})]})]})]})}function vz(){return w.jsx(Zb,{id:"contact",tone:"sky",title:"CONTACT US",contentMaxWidth:"max-w-6xl xl:max-w-7xl",containerClassName:"py-8 sm:py-10 md:py-12",headerClassName:"mb-6 sm:mb-8 text-center max-w-3xl mx-auto",children:w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-start w-full",children:[w.jsx(mt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.55,ease:[.22,1,.36,1]},className:"order-2 lg:order-1 w-full",children:w.jsx(pz,{})}),w.jsx(mt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.55,delay:.1,ease:[.22,1,.36,1]},className:"order-1 lg:order-2 w-full lg:border-l lg:border-[var(--line)] lg:pl-8 xl:pl-10",children:w.jsx(gz,{})})]})})}const yz=[{name:"HOME",href:"#home"},{name:"ABOUT",href:"#about"},{name:"SERVICES",href:"#services"},{name:"EVENTS",href:"#events"},{name:"CONTACT US",href:"#contact"}];function wz(){const e=new Date().getFullYear(),{goToSection:t}=ca(),n=(r,o)=>{const l=o.replace("#","");t&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey&&r.button===0&&(r.preventDefault(),t(l))};return w.jsxs("footer",{id:"footer",className:"relative h-screen min-h-[100dvh] w-full flex-shrink-0 flex items-center justify-center overflow-hidden bg-[var(--nimbus-deep)] text-white/80 px-6 sm:px-12 md:px-16",children:[w.jsx("div",{className:"absolute top-1/3 left-1/2 -translate-x-1/2 w-[600px] h-[350px] bg-[var(--nimbus-blue)]/20 rounded-full blur-[140px] pointer-events-none"}),w.jsxs(mt.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.2},transition:{duration:.65,ease:[.22,1,.36,1]},className:"relative z-10 mx-auto w-full max-w-5xl flex flex-col items-center text-center",children:[w.jsx("a",{href:"#home",onClick:r=>n(r,"#home"),className:"inline-block mb-4 transition-transform hover:scale-105 focus-visible:outline-2 focus-visible:outline-[var(--nimbus-teal)] rounded-xl","aria-label":"Back to home",children:w.jsx("img",{src:"/logo.png",alt:"Nimbus Chemtech",className:"h-10 sm:h-12 md:h-14 w-auto object-contain brightness-0 invert drop-shadow-md"})}),w.jsxs("p",{className:"text-xs sm:text-sm font-semibold uppercase tracking-[0.2em] sm:tracking-[0.25em] text-[var(--nimbus-teal)] mb-2",children:["China ",w.jsx("span",{className:"text-white/30 font-light mx-1 sm:mx-1.5","aria-hidden":"true",children:"|"})," Egypt ",w.jsx("span",{className:"text-white/30 font-light mx-1 sm:mx-1.5","aria-hidden":"true",children:"|"})," Jordan ",w.jsx("span",{className:"text-white/30 font-light mx-1 sm:mx-1.5","aria-hidden":"true",children:"|"})," Pakistan ",w.jsx("span",{className:"text-white/30 font-light mx-1 sm:mx-1.5","aria-hidden":"true",children:"|"})," Saudi Arabia"]}),w.jsx("p",{className:"text-base sm:text-lg font-medium text-white/90 tracking-wide mb-6",children:"Ahead Together for Healthier Tomorrow"}),w.jsx("nav",{className:"flex flex-wrap items-center justify-center gap-6 sm:gap-8 mb-8 pb-8 border-b border-white/15 w-full max-w-2xl","aria-label":"Footer Navigation",children:yz.map(r=>w.jsx("a",{href:r.href,onClick:o=>n(o,r.href),className:"text-xs sm:text-sm font-semibold tracking-[0.1em] text-white/80 hover:text-[var(--nimbus-teal)] transition-colors focus-visible:outline-2 focus-visible:outline-[var(--nimbus-teal)]",children:r.name},r.name))}),w.jsxs("address",{className:"not-italic flex flex-wrap items-center justify-center gap-4 sm:gap-6 text-xs sm:text-sm text-white/70 mb-8",children:[w.jsxs("span",{className:"flex items-center gap-2",children:[w.jsx(yp,{className:"w-4 h-4 text-[var(--nimbus-teal)]"}),"39 Commercial Cavalry Ground, Lahore Cantt, Pakistan"]}),w.jsx("span",{className:"hidden sm:inline text-white/25",children:"|"}),w.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 hover:text-white transition-colors",children:[w.jsx(Go,{className:"w-4 h-4 text-[var(--nimbus-teal)]"}),"[email protected]"]}),w.jsx("span",{className:"hidden sm:inline text-white/25",children:"|"}),w.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 hover:text-white transition-colors",children:[w.jsx(Go,{className:"w-4 h-4 text-[var(--nimbus-teal)]"}),"[email protected]"]}),w.jsx("span",{className:"hidden sm:inline text-white/25",children:"|"}),w.jsxs("a",{href:"tel:+924236610428",className:"flex items-center gap-2 hover:text-white transition-colors",children:[w.jsx(wp,{className:"w-4 h-4 text-[var(--nimbus-teal)]"}),"+92 42 3661 0428"]})]}),w.jsxs("button",{type:"button",onClick:()=>t&&t(0),className:"group inline-flex items-center gap-2 text-xs text-[var(--nimbus-teal)] hover:text-white transition-colors mb-6 font-semibold uppercase tracking-wider focus-visible:outline-2 focus-visible:outline-[var(--nimbus-teal)]",children:[w.jsx("span",{children:"Back to Top"}),w.jsx(Yj,{className:"w-3.5 h-3.5 transition-transform group-hover:-translate-y-1"})]}),w.jsx("div",{className:"pt-6 border-t border-white/10 w-full text-center text-xs text-white/40",children:w.jsxs("p",{children:["© ",e," Nimbus Chemtech. All rights reserved."]})})]})]})}const Yw="nimbus_exhibition_popups_cache_v2",H_="nimbus_exhibition_popup_dismissed_v2",xz=300*1e3;function bz(e){if(typeof window>"u"||!window.sessionStorage)return!1;if(!e||e.length===0)return!0;try{const t=window.sessionStorage.getItem(H_);if(!t)return!1;const n=JSON.parse(t);return n.dismissedAt?!e.some(o=>{if(!o.updatedAt||o.updatedAt==="initial")return!1;const l=new Date(o.updatedAt).getTime();return!isNaN(l)&&l>n.dismissedAt}):n.dismissedIds&&Array.isArray(n.dismissedIds)?e.every(r=>n.dismissedIds.includes(r.id)):!1}catch{return!1}}function Sz(e){var t;if(!(typeof window>"u"||!window.sessionStorage))try{const n=Array.isArray(e)?e.map(r=>
374r.id).filter(Boolean):e!=null&&e.id?[e.id]:[];window.sessionStorage.setItem(H_,JSON.stringify({id:n[0]||"exhibitionPopup",updatedAt:((t=e==null?void 0:e[0])==null?void 0:t.updatedAt)||"initial",dismissedIds:n,dismissedAt:Date.now()}))}catch{}}function _z(e,t=1400){var r,o;if(!e)return null;const n=e.asset||{};if((r=e.asset)!=null&&r._ref||(o=e.asset)!=null&&o._id)try{return F_(e).width(t).auto("format").quality(90).fit("max").url()}catch{return n.url||null}return n.url||null}function K_(e){if(!(typeof window>"u"||!e))try{const t=new Image;t.src=e}catch{}}function Ez(e){var l;if(!e||!e.enabled)return null;const t=e.poster||null;if(!t||!t.asset&&!t.url)return null;const n=_z(t,1400);if(!n)return null;const r=((l=t.asset)==null?void 0:l.metadata)||{},o=r.dimensions||null;return K_(n),{id:e._id||"exhibitionPopup",updatedAt:e._updatedAt||"initial",createdAt:e._createdAt||null,orderRank:typeof e.orderRank=="number"?e.orderRank:null,enabled:!!e.enabled,title:e.title||"Upcoming Exhibition",linkUrl:e.linkUrl?e.linkUrl.trim():null,poster:{url:n,alt:t.alt||e.title||"Upcoming Exhibition Announcement",width:o==null?void 0:o.width,height:o==null?void 0:o.height,aspectRatio:o==null?void 0:o.aspectRatio,lqip:r.lqip}}}async function kz(){if(typeof window<"u"&&window.sessionStorage)try{const e=window.sessionStorage.getItem(Yw);if(e){const{timestamp:t,data:n}=JSON.parse(e);if(Date.now()-t<xz&&Array.isArray(n))return n.forEach(r=>{var o;(o=r==null?void 0:r.poster)!=null&&o.url&&K_(r.poster.url)}),n}}catch{}try{const e=await em.fetch(HD),t=Array.isArray(e)?e.map(Ez).filter(Boolean):[];if(typeof window<"u"&&window.sessionStorage)try{window.sessionStorage.setItem(Yw,JSON.stringify({timestamp:Date.now(),data:t}))}catch{}return t}catch(e){return console.warn("[Exhibition Popup] Failed to fetch popups data:",e==null?void 0:e.message),[]}}function Cz(){var E;const[e,t]=R.useState([]),[n,r]=R.useState(0),[o,l]=R.useState(!1);R.useEffect(()=>{let k=!0;async function P(){try{const A=await kz();if(!k||!A||A.length===0||bz(A))return;t(A),r(0),l(!0)}catch(A){console.warn("Could not load exhibition popups:",A)}}return P(),()=>{k=!1}},[]);const u=R.useCallback(()=>{l(!1),e.length>0&&Sz(e)},[e]),d=R.useCallback(k=>{k&&k.stopPropagation(),r(P=>(P+1)%e.length)},[e.length]),f=R.useCallback(k=>{k&&k.stopPropagation(),r(P=>(P-1+e.length)%e.length)},[e.length]);if(R.useEffect(()=>{function k(P){o&&(P.key==="Escape"?u():P.key==="ArrowRight"&&e.length>1?d():P.key==="ArrowLeft"&&e.length>1&&f())}return o&&window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[o,u,d,f,e.length]),!o||e.length===0)return null;const p=e[n]||e[0];if(!p||!((E=p.poster)!=null&&E.url))return null;const{poster:m,linkUrl:y,title:v}=p,x=e.length>1,_=w.jsx("img",{src:m.url,alt:m.alt||v||"Upcoming Exhibition",loading:"eager",fetchPriority:"high",decoding:"async",className:"w-auto h-auto max-h-[82vh] max-w-[92vw] sm:max-w-[85vw] md:max-w-2xl object-contain rounded-2xl shadow-2xl block mx-auto border border-white/10 select-none"},p.id);return w.jsx(tx,{children:o&&w.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-3 sm:p-6",role:"dialog","aria-modal":"true","aria-label":v||"Upcoming Exhibition Poster",children:[w.jsx(mt.div,{initial:{opacity:0}
374,animate:{opacity:1},exit:{opacity:0},transition:{duration:.18},onClick:u,className:"fixed inset-0 bg-black/80 backdrop-blur-md cursor-pointer"}),w.jsxs(mt.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{type:"spring",damping:28,stiffness:350},className:"relative z-10 inline-flex flex-col items-center justify-center max-w-full max-h-[92vh]",children:[w.jsx("button",{type:"button",onClick:u,"aria-label":"Close exhibition poster",className:"absolute top-3 right-3 sm:top-4 sm:right-4 z-30 p-2 sm:p-2.5 rounded-full bg-black/75 hover:bg-black text-white/90 hover:text-white border border-white/20 shadow-xl backdrop-blur-md transition-all duration-150 hover:scale-110 active:scale-95 focus:outline-none focus:ring-2 focus:ring-cyan-400 cursor-pointer",children:w.jsx(xp,{className:"w-5 h-5 sm:w-6 sm:h-6"})}),w.jsxs("div",{className:"relative flex items-center justify-center",children:[y?w.jsx("a",{href:y,target:y.startsWith("http")?"_blank":void 0,rel:y.startsWith("http")?"noopener noreferrer":void 0,onClick:u,className:"block cursor-pointer focus:outline-none focus:ring-2 focus:ring-cyan-400 rounded-2xl group transition-transform duration-200 hover:scale-[1.01]",children:_}):w.jsx("div",{children:_}),x&&w.jsxs(w.Fragment,{children:[w.jsx("button",{type:"button",onClick:f,"aria-label":"Previous exhibition poster",className:"absolute left-2 sm:-left-5 top-1/2 -translate-y-1/2 z-20 p-2 sm:p-2.5 rounded-full bg-black/70 hover:bg-black/90 text-white/90 hover:text-white border border-white/20 shadow-2xl backdrop-blur-md transition-all duration-150 hover:scale-110 active:scale-95 focus:outline-none focus:ring-2 focus:ring-cyan-400 cursor-pointer",children:w.jsx(Gu,{className:"w-5 h-5 sm:w-6 sm:h-6"})}),w.jsx("button",{type:"button",onClick:d,"aria-label":"Next exhibition poster",className:"absolute right-2 sm:-right-5 top-1/2 -translate-y-1/2 z-20 p-2 sm:p-2.5 rounded-full bg-black/70 hover:bg-black/90 text-white/90 hover:text-white border border-white/20 shadow-2xl backdrop-blur-md transition-all duration-150 hover:scale-110 active:scale-95 focus:outline-none focus:ring-2 focus:ring-cyan-400 cursor-pointer",children:w.jsx(Yu,{className:"w-5 h-5 sm:w-6 sm:h-6"})})]})]}),x&&w.jsx("div",{className:"flex items-center justify-center gap-2 mt-3 z-20 py-1 px-3 rounded-full bg-black/50 backdrop-blur-md border border-white/10",children:e.map((k,P)=>w.jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),r(P)},"aria-label":`Go to poster ${P+1} of ${e.length}: ${k.title}`,className:`transition-all duration-200 rounded-full cursor-pointer focus:outline-none focus:ring-1 focus:ring-cyan-400 ${P===n?"w-6 h-2 bg-cyan-400 shadow-[0_0_8px_rgba(34,211,238,0.7)]":"w-2 h-2 bg-white/40 hover:bg-white/80"}`},k.id||P))})]})]})})}function Pz(){return w.jsxs(w.Fragment,{children:[w.jsx(Cz,{}),w.jsxs(Uj,{fixed:w.jsx(RA,{}),children:[w.jsx(MA,{}),w.jsx(UA,{}),w.jsx(WA,{}),w.jsx(hz,{}),w.jsx(qA,{}),w.jsx(vz,{}),w.jsx(wz,{})]})]})}const Jw=w.jsx(Xw.StrictMode,{children:w.jsx(Pz,{})}),Xf=document.getElementById("root");Xf.hasChildNodes()?ay.hydrateRoot(Xf,Jw):ay.createRoot(Xf).render(Jw);export{$4 as C,Qe as O,M4 as S,Iz as a,Rz as b,Oz as c,pS as d,O4 as h,TM as j,Nz as p,bM as r,_M as t,Eo as w,Az as y};
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.