vendor: 4,393 bytes, lines 1-9
1var rg=t=>{throw TypeError(t)};var Vc=(t,e,r)=>e.has(t)||rg("Cannot "+r);var _=(t,e,r)=>(Vc(t,e,"read from private field"),r?r.call(t):e.get(t)),ue=(t,e,r)=>e.has(t)?rg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),X=(t,e,r,i)=>(Vc(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),ke=(t,e,r)=>(Vc(t,e,"access private method"),r);var Qa=(t,e,r,i)=>({set _(a){X(t,e,a,r)},get _(){return _(t,e,i)}});function ub(t,e){for(var r=0;r<e.length;r++){const i=e[r];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in t)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function Jv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cb(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return t[i]}})}),r}var Bc={exports:{}},Ji={},Uc={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 sg;function db(){if(sg)return be;sg=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,b={};function S(R,z,ye){this.props=R,this.context=z,this.refs=b,this.updater=ye||T}S.prototype.isReactComponent={},S.prototype.setState=function(R,z){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,z,"setState")},S.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=S.prototype;function V(R,z,ye){this.props=R,this.context=z,this.refs=b,this.updater=ye||T}var L=V.prototype=new A;L.constructor=V,k(L,S.prototype),L.isPureReactComponent=!0;var M=Array.isArray,U=Object.prototype.hasOwnProperty,Q={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function F(R,z,ye){var ve,le={},he=null,Ne=null;if(z!=null)for(ve in z.ref!==void 0&&(Ne=z.ref),z.key!==void 0&&(he=""+z.key),z)U.call(z,ve)&&!Y.hasOwnProperty(ve)&&(le[ve]=z[ve]);var Pe=arguments.length-2;if(Pe===1)le.children=ye;else if(1<Pe){for(var we=Array(Pe),ht=0;ht<Pe;ht++)we[ht]=arguments[ht+2];le.children=we}if(R&&R.defaultProps)for(ve in Pe=R.defaultProps,Pe)le[ve]===void 0&&(le[ve]=Pe[ve]);return{$$typeof:t,type:R,key:he,ref:Ne,props:le,_owner:Q.current}}function J(R,z){return{$$typeof:t,type:R.type,key:z,ref:R.ref,props:R.props,_owner:R._owner}}
vendor: 11,694 bytes, lines 9-33
9function me(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function de(R){var z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ye){return z[ye]})}var Ce=/\/+/g;function De(R,z){return typeof R=="object"&&R!==null&&R.key!=null?de(""+R.key):z.toString(36)}function Re(R,z,ye,ve,le){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var Ne=!1;if(R===null)Ne=!0;else switch(he){case"string":case"number":Ne=!0;break;case"object":switch(R.$$typeof){case t:case e:Ne=!0}}if(Ne)return Ne=R,le=le(Ne),R=ve===""?"."+De(Ne,0):ve,M(le)?(ye="",R!=null&&(ye=R.replace(Ce,"$&/")+"/"),Re(le,z,ye,"",function(ht){return ht})):le!=null&&(me(le)&&(le=J(le,ye+(!le.key||Ne&&Ne.key===le.key?"":(""+le.key).replace(Ce,"$&/")+"/")+R)),z.push(le)),1;if(Ne=0,ve=ve===""?".":ve+":",M(R))for(var Pe=0;Pe<R.length;Pe++){he=R[Pe];var we=ve+De(he,Pe);Ne+=Re(he,z,ye,we,le)}else if(we=w(R),typeof we=="function")for(R=we.call(R),Pe=0;!(he=R.next()).done;)he=he.value,we=ve+De(he,Pe++),Ne+=Re(he,z,ye,we,le);else if(he==="object")throw z=String(R),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return Ne}function Me(R,z,ye){if(R==null)return R;var ve=[],le=0;return Re(R,ve,"","",function(he){return z.call(ye,he,le++)}),ve}function xe(R){if(R._status===-1){var z=R._result;z=z(),z.then(function(ye){(R._status===0||R._status===-1)&&(R._status=1,R._result=ye)},function(ye){(R._status===0||R._status===-1)&&(R._status=2,R._result=ye)}),R._status===-1&&(R._status=0,R._result=z)}if(R._status===1)return R._result.default;throw R._result}var fe={current:null},H={transition:null},se={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:H,ReactCurrentOwner:Q};function B(){throw Error("act(...) is not supported in production builds of React.")}return be.Children={map:Me,forEach:function(R,z,ye){Me(R,function(){z.apply(this,arguments)},ye)},count:function(R){var z=0;return Me(R,function(){z++}),z},toArray:function(R){return Me(R,function(z){return z})||[]},only:function(R){if(!me(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},be.Component=S,be.Fragment=r,be.Profiler=a,be.PureComponent=V,be.StrictMode=i,be.Suspense=h,be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,be.act=B,be.cloneElement=function(R,z,ye){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ve=k({},R.props),le=R.key,he=R.ref,Ne=R._owner;if(z!=null){if(z.ref!==void 0&&(he=z.ref,Ne=Q.current),z.key!==void 0&&(le=""+z.key),R.type&&R.type.defaultProps)var Pe=R.type.defaultProps;for(we in z)U.call(z,we)&&!Y.hasOwnProperty(we)&&(ve[we]=z[we]===void 0&&Pe!==void 0?Pe[we]:z[we])}var we=arguments.length-2;if(we===1)ve.children=ye;else if(1<we){Pe=Array(we);for(var ht=0;ht<we;ht++)Pe[ht]=arguments[ht+2];ve.children=Pe}return{$$typeof:t,type:R.type,key:le,ref:he,props:ve,_owner:Ne}},be.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:l,_context:R},R.Consumer=R},be.createElement=F,be.createFactory=function(R){var z=F.bind(null,R);return z.type=R,z},be.createRef=function(){return{current:null}},be.forwardRef=function(R){return{$$typeof:d,render:R}},be.isValidElement=me,be.lazy=function(R){return{$$typeof:g,_payload:{_status:-1,_result:R},_init:xe}},be.memo=function(R,z){return{$$typeof:m,type:R,compare:z===void 0?null:z}},be.startTransition=function(R){var z=H.transition;H.transition={};try{R()}finally{H.transition=z}},be.unstable_act=B,be.useCallback=function(R,z){return fe.current.useCallback(R,z)},be.useContext=function(R){return fe.current.useContext(R)},be.useDebugValue=function(){},be.useDeferredValue=function(R){return fe.current.useDeferredValue(R)},be.useEffect=function(R,z){return fe.current.useEffect(R,z)},be.useId=function(){return fe.current.useId()},be.useImperativeHandle=function(R,z,ye){return fe.current.useImperativeHandle(R,z,ye)},be.useInsertionEffect=function(R,z){return fe.current.useInsertionEffect(R,z)},be.useLayoutEffect=function(R,z){return fe.current.useLayoutEffect(R,z)},be.useMemo=function(R,z){return fe.current.useMemo(R,z)},be.useReducer=function(R,z,ye){return fe.current.useReducer(R,z,ye)},be.useRef=function(R){return fe.current.useRef(R)},be.useState=function(R){return fe.current.useState(R)},be.useSyncExternalStore=function(R,z,ye){return fe.current.useSyncExternalStore(R,z,ye)},be.useTransition=function(){return fe.current.useTransition()},be.version="18.3.1",be}var ig;function cf(){return ig||(ig=1,Uc.exports=db()),Uc.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 og;function fb(){if(og)return Ji;og=1;var t=cf(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,m){var g,y={},w=null,T=null;m!==void 0&&(w=""+m),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(T=h.ref);for(g in h)i.call(h,g)&&!l.hasOwnProperty(g)&&(y[g]=h[g]);if(d&&d.defaultProps)for(g in h=d.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:e,type:d,key:w,ref:T,props:y,_owner:a.current}}return Ji.Fragment=r,Ji.jsx=c,Ji.jsxs=c,Ji}var ag;function hb(){return ag||(ag=1,Bc.exports=fb()),Bc.exports}var x=hb(),j=cf();const pb=Jv(j),Zv=ub({__proto__:null,default:pb},[j]);var Ga={},zc={exports:{}},Nt={},$c={exports:{}},Wc={};/** 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 lg;function mb(){return lg||(lg=1,(function(t){function e(H,se){var B=H.length;H.push(se);e:for(;0<B;){var R=B-1>>>1,z=H[R];if(0<a(z,se))H[R]=se,H[B]=z,B=R;else break e}}function r(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var se=H[0],B=H.pop();if(B!==se){H[0]=B;e:for(var R=0,z=H.length,ye=z>>>1;R<ye;){var ve=2*(R+1)-1,le=H[ve],he=ve+1,Ne=H[he];if(0>a(le,B))he<z&&0>a(Ne,le)?(H[R]=Ne,H[he]=B,R=he):(H[R]=le,H[ve]=B,R=ve);else if(he<z&&0>a(Ne,B))H[R]=Ne,H[he]=B,R=he;else break e}}return se}function a(H,se){var B=H.sortIndex-se.sortIndex;return B!==0?B:H.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var h=[],m=[],g=1,y=null,w=3,T=!1,k=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(H){for(var se=r(m);se!==null;){if(se.callback===null)i(m);else if(se.startTime<=H)i(m),se.sortIndex=se.expirationTime,e(h,se);else break;se=r(m)}}function M(H){if(b=!1,L(H),!k)if(r(h)!==null)k=!0,xe(U);else{var se=r(m);se!==null&&fe(M,se.startTime-H)}}function U(H,se){k=!1,b&&(b=!1,A(F),F=-1),T=!0;var B=w;try{for(L(se),y=r(h);y!==null&&(!(y.expirationTime>se)||H&&!de());){var R=y.callback;if(typeof R=="function"){y.callback=null,w=y.priorityLevel;var z=R(y.expirationTime<=se);se=t.unstable_now(),typeof z=="function"?y.callback=z:y===r(h)&&i(h),L(se)}else i(h);y=r(h)}if(y!==null)var ye=!0;else{var ve=r(m);ve!==null&&fe(M,ve.startTime-se),ye=!1}return ye}finally{y=null,w=B,T=!1}}var Q=!1,Y=null,F=-1,J=5,me=-1;function de(){return!(t.unstable_now()-me<J)}function Ce(){if(Y!==null){var H=t.unstable_now();me=H;var se=!0;try{se=Y(!0,H)}finally{se?De():(Q=!1,Y=null)}}else Q=!1}var De;if(typeof V=="function")De=function(){V(Ce)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,Me=Re.port2;Re.port1.onmessage=Ce,De=function(){Me.postMessage(null)}}else De=function(){S(Ce,0)};function xe(H){Y=H,Q||(Q=!0,De())}function fe(H,se){F=S(function(){H(t.unstable_now())},se)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_continueExecution=function(){k||T||(k=!0,xe(U))},t.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"):J=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(H){switch(w){case 1:case 2:case 3:var se=3;break;default:se=w}var B=w;w=se;try{return H()}finally{w=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(H,se){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var B=w;w=H;try{return se()}finally{w=B}},t.unstable_scheduleCallback=function(H,se,B){var R=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?R+B:R):B=R,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=B+z,H={id:g++,callback:se,priorityLevel:H,startTime:B,expirationTime:z,sortIndex:-1},B>R?(H.sortIndex=B,e(m,H),r(h)===null&&H===r(m)&&(b?(A(F),F=-1):b=!0,fe(M,B-R))):(H.sortIndex=z,e(h,H),k||T||(k=!0,xe(U))),H},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(H){var se=w;return function(){var B=w;w=se;try{return H.apply(this,arguments)}finally{w=B}}}})(Wc)),Wc}var ug;function gb(){return ug||(ug=1,$c.exports=mb()),$c.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 cg;function yb(){if(cg)return Nt;cg=1;var t=cf(),e=gb();function r(n){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+n,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(n,s){c(n,s),c(n+"Capture",s)}function c(n,s){for(a[n]=s,n=0;n<s.length;n++)i.add(s[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,g={},y={};function w(n){return h.call(y,n)?!0:h.call(g,n)?!1:m.test(n)?y[n]=!0:(g[n]=!0,!1)}function T(n,s,o,u){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return u?!1:o!==null?!o.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function k(n,s,o,u){if(s===null||typeof s>"u"||T(n,s,o,u))return!0;
vendor: 31,997 bytes, lines 33-37
33if(u)return!1;if(o!==null)switch(o.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 b(n,s,o,u,f,p,v){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=n,this.type=s,this.sanitizeURL=p,this.removeEmptyString=v}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){S[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var s=n[0];S[s]=new b(s,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){S[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){S[n]=new b(n,2,!1,n,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(n){S[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){S[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){S[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){S[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){S[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function V(n){return n[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(n){var s=n.replace(A,V);S[s]=new b(s,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var s=n.replace(A,V);S[s]=new b(s,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var s=n.replace(A,V);S[s]=new b(s,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){S[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){S[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function L(n,s,o,u){var f=S.hasOwnProperty(s)?S[s]:null;(f!==null?f.type!==0:u||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(k(s,o,f,u)&&(o=null),u||f===null?w(s)&&(o===null?n.removeAttribute(s):n.setAttribute(s,""+o)):f.mustUseProperty?n[f.propertyName]=o===null?f.type===3?!1:"":o:(s=f.attributeName,u=f.attributeNamespace,o===null?n.removeAttribute(s):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,u?n.setAttributeNS(u,s,o):n.setAttribute(s,o))))}var M=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),Q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),de=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),H=Symbol.iterator;function se(n){return n===null||typeof n!="object"?null:(n=H&&n[H]||n["@@iterator"],typeof n=="function"?n:null)}var B=Object.assign,R;function z(n){if(R===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);R=s&&s[1]||""}return` 34`+R+n}var ye=!1;function ve(n,s){if(!n||ye)return"";ye=!0;var o=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(D){var u=D}Reflect.construct(n,[],s)}else{try{s.call()}catch(D){u=D}n.call(s.prototype)}else{try{throw Error()}catch(D){u=D}n()}}catch(D){if(D&&u&&typeof D.stack=="string"){for(var f=D.stack.split(` 35`),p=u.stack.split(` 36`),v=f.length-1,E=p.length-1;1<=v&&0<=E&&f[v]!==p[E];)E--;for(;1<=v&&0<=E;v--,E--)if(f[v]!==p[E]){if(v!==1||E!==1)do if(v--,E--,0>E||f[v]!==p[E]){var C=` 37`+f[v].replace(" at new "," at ");return n.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",n.displayName)),C}while(1<=v&&0<=E);break}}}finally{ye=!1,Error.prepareStackTrace=o}return(n=n?n.displayName||n.name:"")?z(n):""}function le(n){switch(n.tag){case 5:return z(n.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return n=ve(n.type,!1),n;case 11:return n=ve(n.type.render,!1),n;case 1:return n=ve(n.type,!0),n;default:return""}}function he(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Y:return"Fragment";case Q:return"Portal";case J:return"Profiler";case F:return"StrictMode";case De:return"Suspense";case Re:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case de:return(n.displayName||"Context")+".Consumer";case me:return(n._context.displayName||"Context")+".Provider";case Ce:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Me:return s=n.displayName||null,s!==null?s:he(n.type)||"Memo";case xe:s=n._payload,n=n._init;try{return he(n(s))}catch{}}return null}function Ne(n){var s=n.type;switch(n.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 n=s.render,n=n.displayName||n.name||"",s.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(s);case 8:return s===F?"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 Pe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function we(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ht(n){var s=we(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,s),u=""+n[s];if(!n.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,p=o.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return f.call(this)},set:function(v){u=""+v,p.call(this,v)}}),Object.defineProperty(n,s,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(v){u=""+v},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function Cn(n){n._valueTracker||(n._valueTracker=ht(n))}function Nr(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var o=s.getValue(),u="";return n&&(u=we(n)?n.checked?"true":"false":n.value),n=u,n!==o?(s.setValue(n),!0):!1}function Wn(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function qn(n,s){var o=s.checked;return B({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??n._wrapperState.initialChecked})}function ch(n,s){var o=s.defaultValue==null?"":s.defaultValue,u=s.checked!=null?s.checked:s.defaultChecked;o=Pe(s.value!=null?s.value:o),n._wrapperState={initialChecked:u,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function dh(n,s){s=s.checked,s!=null&&L(n,"checked",s,!1)}function Kl(n,s){dh(n,s);var o=Pe(s.value),u=s.type;if(o!=null)u==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+o):n.value!==""+o&&(n.value=""+o);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}s.hasOwnProperty("value")?Ql(n,s.type,o):s.hasOwnProperty("defaultValue")&&Ql(n,s.type,Pe(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(n.defaultChecked=!!s.defaultChecked)}function fh(n,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var u=s.type;if(!(u!=="submit"&&u!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+n._wrapperState.initialValue,o||s===n.value||(n.value=s),n.defaultValue=s}o=n.name,o!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,o!==""&&(n.name=o)}function Ql(n,s,o){(s!=="number"||Wn(n.ownerDocument)!==n)&&(o==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+o&&(n.defaultValue=""+o))}var hi=Array.isArray;function ps(n,s,o,u){if(n=n.options,s){s={};for(var f=0;f<o.length;f++)s["$"+o[f]]=!0;for(o=0;o<n.length;o++)f=s.hasOwnProperty("$"+n[o].value),n[o].selected!==f&&(n[o].selected=f),f&&u&&(n[o].defaultSelected=!0)}else{for(o=""+Pe(o),s=null,f=0;f<n.length;f++){if(n[f].value===o){n[f].selected=!0,u&&(n[f].defaultSelected=!0);return}s!==null||n[f].disabled||(s=n[f])}s!==null&&(s.selected=!0)}}function Gl(n,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return B({},s,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function hh(n,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(r(92));if(hi(o)){if(1<o.length)throw Error(r(93));o=o[0]}s=o}s==null&&(s=""),o=s}n._wrapperState={initialValue:Pe(o)}}function ph(n,s){var o=Pe(s.value),u=Pe(s.defaultValue);o!=null&&(o=""+o,o!==n.value&&(n.value=o),s.defaultValue==null&&n.defaultValue!==o&&(n.defaultValue=o)),u!=null&&(n.defaultValue=""+u)}function mh(n){var s=n.textContent;s===n._wrapperState.initialValue&&s!==""&&s!==null&&(n.value=s)}function gh(n){switch(n){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 Yl(n,s){return n==null||n==="http://www.w3.org/1999/xhtml"?gh(s):n==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Bo,yh=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,u,f){MSApp.execUnsafeLocalFunction(function(){return n(s,o,u,f)})}:n})(function(n,s){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=s;else{for(Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Bo.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;s.firstChild;)n.appendChild(s.firstChild)}});function pi(n,s){if(s){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=s;return}}n.textContent=s}var mi={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},h1=["Webkit","ms","Moz","O"];Object.keys(mi).forEach(function(n){h1.forEach(function(s){s=s+n.charAt(0).toUpperCase()+n.substring(1),mi[s]=mi[n]})});function vh(n,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||mi.hasOwnProperty(n)&&mi[n]?(""+s).trim():s+"px"}function wh(n,s){n=n.style;for(var o in s)if(s.hasOwnProperty(o)){var u=o.indexOf("--")===0,f=vh(o,s[o],u);o==="float"&&(o="cssFloat"),u?n.setProperty(o,f):n[o]=f}}var p1=B({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 Xl(n,s){if(s){if(p1[n]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function Jl(n,s){if(n.indexOf("-")===-1)return typeof s.is=="string";switch(n){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 Zl=null;function eu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var tu=null,ms=null,gs=null;function xh(n){if(n=Fi(n)){if(typeof tu!="function")throw Error(r(280));var s=n.stateNode;s&&(s=ua(s),tu(n.stateNode,n.type,s))}}function Sh(n){ms?gs?gs.push(n):gs=[n]:ms=n}function bh(){if(ms){var n=ms,s=gs;if(gs=ms=null,xh(n),s)for(n=0;n<s.length;n++)xh(s[n])}}function kh(n,s){return n(s)}function Eh(){}var nu=!1;function Th(n,s,o){if(nu)return n(s,o);nu=!0;try{return kh(n,s,o)}finally{nu=!1,(ms!==null||gs!==null)&&(Eh(),bh())}}function gi(n,s){var o=n.stateNode;if(o===null)return null;var u=ua(o);if(u===null)return null;o=u[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":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(r(231,s,typeof o));return o}var ru=!1;if(d)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){ru=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{ru=!1}function m1(n,s,o,u,f,p,v,E,C){var D=Array.prototype.slice.call(arguments,3);try{s.apply(o,D)}catch(W){this.onError(W)}}var vi=!1,Uo=null,zo=!1,su=null,g1={onError:function(n){vi=!0,Uo=n}};function y1(n,s,o,u,f,p,v,E,C){vi=!1,Uo=null,m1.apply(g1,arguments)}function v1(n,s,o,u,f,p,v,E,C){if(y1.apply(this,arguments),vi){if(vi){var D=Uo;vi=!1,Uo=null}else throw Error(r(198));zo||(zo=!0,su=D)}}function Or(n){var s=n,o=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(o=s.return),n=s.return;while(n)}return s.tag===3?o:null}function Ch(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function _h(n){if(Or(n)!==n)throw Error(r(188))}function w1(n){var s=n.alternate;if(!s){if(s=Or(n),s===null)throw Error(r(188));return s!==n?null:n}for(var o=n,u=s;;){var f=o.return;if(f===null)break;var p=f.alternate;if(p===null){if(u=f.return,u!==null){o=u;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===o)return _h(f),n;if(p===u)return _h(f),s;p=p.sibling}throw Error(r(188))}if(o.return!==u.return)o=f,u=p;else{for(var v=!1,E=f.child;E;){if(E===o){v=!0,o=f,u=p;break}if(E===u){v=!0,u=f,o=p;break}E=E.sibling}if(!v){for(E=p.child;E;){if(E===o){v=!0,o=p,u=f;break}if(E===u){v=!0,u=p,o=f;break}E=E.sibling}if(!v)throw Error(r(189))}}if(o.alternate!==u)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?n:s}function Ph(n){return n=w1(n),n!==null?Ah(n):null}function Ah(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var s=Ah(n);if(s!==null)return s;n=n.sibling}return null}var Rh=e.unstable_scheduleCallback,Nh=e.unstable_cancelCallback,x1=e.unstable_shouldYield,S1=e.unstable_requestPaint,Ge=e.unstable_now,b1=e.unstable_getCurrentPriorityLevel,iu=e.unstable_ImmediatePriority,Oh=e.unstable_UserBlockingPriority,$o=e.unstable_NormalPriority,k1=e.unstable_LowPriority,jh=e.unstable_IdlePriority,Wo=null,pn=null;function E1(n){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Wo,n,void 0,(n.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:_1,T1=Math.log,C1=Math.LN2;function _1(n){return n>>>=0,n===0?32:31-(T1(n)/C1|0)|0}var qo=64,Ho=4194304;function wi(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ko(n,s){var o=n.pendingLanes;if(o===0)return 0;var u=0,f=n.suspendedLanes,p=n.pingedLanes,v=o&268435455;if(v!==0){var E=v&~f;E!==0?u=wi(E):(p&=v,p!==0&&(u=wi(p)))}else v=o&~f,v!==0?u=wi(v):p!==0&&(u=wi(p));if(u===0)return 0;if(s!==0&&s!==u&&(s&f)===0&&(f=u&-u,p=s&-s,f>=p||f===16&&(p&4194240)!==0))return s;if((u&4)!==0&&(u|=o&16),s=n.entangledLanes,s!==0)for(n=n.entanglements,s&=u;0<s;)o=31-tn(s),f=1<<o,u|=n[o],s&=~f;return u}function P1(n,s){switch(n){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 A1(n,s){for(var o=n.suspendedLanes,u=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes;0<p;){var v=31-tn(p),E=1<<v,C=f[v];C===-1?((E&o)===0||(E&u)!==0)&&(f[v]=P1(E,s)):C<=s&&(n.expiredLanes|=E),p&=~E}}function ou(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Dh(){var n=qo;return qo<<=1,(qo&4194240)===0&&(qo=64),n}function au(n){for(var s=[],o=0;31>o;o++)s.push(n);return s}function xi(n,s,o){n.pendingLanes|=s,s!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,s=31-tn(s),n[s]=o}function R1(n,s){var o=n.pendingLanes&~s;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=s,n.mutableReadLanes&=s,n.entangledLanes&=s,s=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<o;){var f=31-tn(o),p=1<<f;s[f]=0,u[f]=-1,n[f]=-1,o&=~p}}function lu(n,s){var o=n.entangledLanes|=s;for(n=n.entanglements;o;){var u=31-tn(o),f=1<<u;f&s|n[u]&s&&(n[u]|=s),o&=~f}}var je=0;function Lh(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Mh,uu,Fh,Ih,Vh,cu=!1,Qo=[],Hn=null,Kn=null,Qn=null,Si=new Map,bi=new Map,Gn=[],N1="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 Bh(n,s){switch(n){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":Si.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":bi.delete(s.pointerId)}}function ki(n,s,o,u,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:s,domEventName:o,eventSystemFlags:u,nativeEvent:p,targetContainers:[f]},s!==null&&(s=Fi(s),s!==null&&uu(s)),n):(n.eventSystemFlags|=u,s=n.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),n)}function O1(n,s,o,u,f){switch(s){case"focusin":return Hn=ki(Hn,n,s,o,u,f),!0;case"dragenter":return Kn=ki(Kn,n,s,o,u,f),!0;case"mouseover":return Qn=ki(Qn,n,s,o,u,f),!0;case"pointerover":var p=f.pointerId;return Si.set(p,ki(Si.get(p)||null,n,s,o,u,f)),!0;case"gotpointercapture":return p=f.pointerId,bi.set(p,ki(bi.get(p)||null,n,s,o,u,f)),!0}return!1}function Uh(n){var s=jr(n.target);if(s!==null){var o=Or(s);if(o!==null){if(s=o.tag,s===13){if(s=Ch(o),s!==null){n.blockedOn=s,Vh(n.priority,function(){Fh(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Go(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var o=fu(n.domEventName,n.eventSystemFlags,s[0],n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);Zl=u,o.target.dispatchEvent(u),Zl=null}else return s=Fi(o),s!==null&&uu(s),n.blockedOn=o,!1;s.shift()}return!0}function zh(n,s,o){Go(n)&&o.delete(s)}function j1(){cu=!1,Hn!==null&&Go(Hn)&&(Hn=null),Kn!==null&&Go(Kn)&&(Kn=null),Qn!==null&&Go(Qn)&&(Qn=null),Si.forEach(zh),bi.forEach(zh)}function Ei(n,s){n.blockedOn===s&&(n.blockedOn=null,cu||(cu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,j1)))}function Ti(n){function s(f){return Ei(f,n)}if(0<Qo.length){Ei(Qo[0],n);for(var o=1;o<Qo.length;o++){var u=Qo[o];u.blockedOn===n&&(u.blockedOn=null)}}for(Hn!==null&&Ei(Hn,n),Kn!==null&&Ei(Kn,n),Qn!==null&&Ei(Qn,n),Si.forEach(s),bi.forEach(s),o=0;o<Gn.length;o++)u=Gn[o],u.blockedOn===n&&(u.blockedOn=null);for(;0<Gn.length&&(o=Gn[0],o.blockedOn===null);)Uh(o),o.blockedOn===null&&Gn.shift()}var ys=M.ReactCurrentBatchConfig,Yo=!0;function D1(n,s,o,u){var f=je,p=ys.transition;ys.transition=null;try{je=1,du(n,s,o,u)}finally{je=f,ys.transition=p}}function L1(n,s,o,u){var f=je,p=ys.transition;ys.transition=null;try{je=4,du(n,s,o,u)}finally{je=f,ys.transition=p}}function du(n,s,o,u){if(Yo){var f=fu(n,s,o,u);if(f===null)Au(n,s,u,Xo,o),Bh(n,u);else if(O1(f,n,s,o,u))u.stopPropagation();else if(Bh(n,u),s&4&&-1<N1.indexOf(n)){for(;f!==null;){var p=Fi(f);if(p!==null&&Mh(p),p=fu(n,s,o,u),p===null&&Au(n,s,u,Xo,o),p===f)break;f=p}f!==null&&u.stopPropagation()}else Au(n,s,u,null,o)}}var Xo=null;function fu(n,s,o,u){if(Xo=null,n=eu(u),n=jr(n),n!==null)if(s=Or(n),s===null)n=null;else if(o=s.tag,o===13){if(n=Ch(s),n!==null)return n;n=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null);return Xo=n,null}function $h(n){switch(n){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(b1()){case iu:return 1;case Oh:return 4;case $o:case k1:return 16;case jh:return 536870912;default:return 16}default:return 16}}var Yn=null,hu=null,Jo=null;function Wh(){if(Jo)return Jo;var n,s=hu,o=s.length,u,f="value"in Yn?Yn.value:Yn.textContent,p=f.length;for(n=0;n<o&&s[n]===f[n];n++);var v=o-n;for(u=1;u<=v&&s[o-u]===f[p-u];u++);return Jo=f.slice(n,1<u?1-u:void 0)}function Zo(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function ea(){return!0}function qh(){return!1}function Ft(n){function s(o,u,f,p,v){this._reactName=o,this._targetInst=f,this.type=u,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(o=n[E],this[E]=o?o(p):p[E]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ea:qh,this.isPropagationStopped=qh,this}return B(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ea)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ea)},persist:function(){},isPersistent:ea}),s}var vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pu=Ft(vs),Ci=B({},vs,{view:0,detail:0}),M1=Ft(Ci),mu,gu,_i,ta=B({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==_i&&(_i&&n.type==="mousemove"?(mu=n.screenX-_i.screenX,gu=n.screenY-_i.screenY):gu=mu=0,_i=n),mu)},movementY:function(n){return"movementY"in n?n.movementY:gu}}),Hh=Ft(ta),F1=B({},ta,{dataTransfer:0}),I1=Ft(F1),V1=B({},Ci,{relatedTarget:0}),yu=Ft(V1),B1=B({},vs,{animationName:0,elapsedTime:0,pseudoElement:0}),U1=Ft(B1),z1=B({},vs,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),$1=Ft(z1),W1=B({},vs,{data:0}),Kh=Ft(W1),q1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H1={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"},K1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q1(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=K1[n])?!!s[n]:!1}function vu(){return Q1}var G1=B({},Ci,{key:function(n){if(n.key){var s=q1[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=Zo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?H1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(n){return n.type==="keypress"?Zo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Zo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Y1=Ft(G1),X1=B({},ta,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qh=Ft(X1),J1=B({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),Z1=Ft(J1),eS=B({},vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),tS=Ft(eS),nS=B({},ta,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),rS=Ft(nS),sS=[9,13,27,32],wu=d&&"CompositionEvent"in window,Pi=null;d&&"documentMode"in document&&(Pi=document.documentMode);var iS=d&&"TextEvent"in window&&!Pi,Gh=d&&(!wu||Pi&&8<Pi&&11>=Pi),Yh=" ",Xh=!1;function Jh(n,s){switch(n){case"keyup":return sS.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zh(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ws=!1;function oS(n,s){switch(n){case"compositionend":return Zh(s);case"keypress":return s.which!==32?null:(Xh=!0,Yh);case"textInput":return n=s.data,n===Yh&&Xh?null:n;default:return null}}function aS(n,s){if(ws)return n==="compositionend"||!wu&&Jh(n,s)?(n=Wh(),Jo=hu=Yn=null,ws=!1,n):null;switch(n){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 Gh&&s.locale!=="ko"?null:s.data;default:return null}}var lS={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 ep(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!lS[n.type]:s==="textarea"}function tp(n,s,o,u){Sh(u),s=oa(s,"onChange"),0<s.length&&(o=new pu("onChange","change",null,o,u),n.push({event:o,listeners:s}))}var Ai=null,Ri=null;function uS(n){wp(n,0)}function na(n){var s=Es(n);if(Nr(s))return n}function cS(n,s){if(n==="change")return s}var np=!1;if(d){var xu;if(d){var Su="oninput"in document;if(!Su){var rp=document.createElement("div");rp.setAttribute("oninput","return;"),Su=typeof rp.oninput=="function"}xu=Su}else xu=!1;np=xu&&(!document.documentMode||9<document.documentMode)}function sp(){Ai&&(Ai.detachEvent("onpropertychange",ip),Ri=Ai=null)}function ip(n){if(n.propertyName==="value"&&na(Ri)){var s=[];tp(s,Ri,n,eu(n)),Th(uS,s)}}function dS(n,s,o){n==="focusin"?(sp(),Ai=s,Ri=o,Ai.attachEvent("onpropertychange",ip)):n==="focusout"&&sp()}function fS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return na(Ri)}function hS(n,s){if(n==="click")return na(s)}function pS(n,s){if(n==="input"||n==="change")return na(s)}function mS(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var nn=typeof Object.is=="function"?Object.is:mS;function Ni(n,s){if(nn(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var o=Object.keys(n),u=Object.keys(s);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var f=o[u];if(!h.call(s,f)||!nn(n[f],s[f]))return!1}return!0}function op(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function ap(n,s){var o=op(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=s&&u>=s)return{node:o,offset:s-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=op(o)}}function lp(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?lp(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function up(){for(var n=window,s=Wn();s instanceof n.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}
vendor: 2,461 bytes, line 37
37if(o)n=s.contentWindow;else break;s=Wn(n.document)}return s}function bu(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}function gS(n){var s=up(),o=n.focusedElem,u=n.selectionRange;if(s!==o&&o&&o.ownerDocument&&lp(o.ownerDocument.documentElement,o)){if(u!==null&&bu(o)){if(s=u.start,n=u.end,n===void 0&&(n=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(n,o.value.length);else if(n=(s=o.ownerDocument||document)&&s.defaultView||window,n.getSelection){n=n.getSelection();var f=o.textContent.length,p=Math.min(u.start,f);u=u.end===void 0?p:Math.min(u.end,f),!n.extend&&p>u&&(f=u,u=p,p=f),f=ap(o,p);var v=ap(o,u);f&&v&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==v.node||n.focusOffset!==v.offset)&&(s=s.createRange(),s.setStart(f.node,f.offset),n.removeAllRanges(),p>u?(n.addRange(s),n.extend(v.node,v.offset)):(s.setEnd(v.node,v.offset),n.addRange(s)))}}for(s=[],n=o;n=n.parentNode;)n.nodeType===1&&s.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)n=s[o],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var yS=d&&"documentMode"in document&&11>=document.documentMode,xs=null,ku=null,Oi=null,Eu=!1;function cp(n,s,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Eu||xs==null||xs!==Wn(u)||(u=xs,"selectionStart"in u&&bu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Oi&&Ni(Oi,u)||(Oi=u,u=oa(ku,"onSelect"),0<u.length&&(s=new pu("onSelect","select",null,s,o),n.push({event:s,listeners:u}),s.target=xs)))}function ra(n,s){var o={};return o[n.toLowerCase()]=s.toLowerCase(),o["Webkit"+n]="webkit"+s,o["Moz"+n]="moz"+s,o}var Ss={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionend:ra("Transition","TransitionEnd")},Tu={},dp={};d&&(dp=document.createElement("div").style,"AnimationEvent"in window||(delete Ss.animationend.animation,delete Ss.animationiteration.animation,delete Ss.animationstart.animation),"TransitionEvent"in window||delete Ss.transitionend.transition);
vendor: 12,004 bytes, lines 37-38
37function sa(n){if(Tu[n])return Tu[n];if(!Ss[n])return n;var s=Ss[n],o;for(o in s)if(s.hasOwnProperty(o)&&o in dp)return Tu[n]=s[o];return n}var fp=sa("animationend"),hp=sa("animationiteration"),pp=sa("animationstart"),mp=sa("transitionend"),gp=new Map,yp="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 Xn(n,s){gp.set(n,s),l(s,[n])}for(var Cu=0;Cu<yp.length;Cu++){var _u=yp[Cu],vS=_u.toLowerCase(),wS=_u[0].toUpperCase()+_u.slice(1);Xn(vS,"on"+wS)}Xn(fp,"onAnimationEnd"),Xn(hp,"onAnimationIteration"),Xn(pp,"onAnimationStart"),Xn("dblclick","onDoubleClick"),Xn("focusin","onFocus"),Xn("focusout","onBlur"),Xn(mp,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin 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 ji="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(" "),xS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function vp(n,s,o){var u=n.type||"unknown-event";n.currentTarget=o,v1(u,s,void 0,n),n.currentTarget=null}function wp(n,s){s=(s&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],f=u.event;u=u.listeners;e:{var p=void 0;if(s)for(var v=u.length-1;0<=v;v--){var E=u[v],C=E.instance,D=E.currentTarget;if(E=E.listener,C!==p&&f.isPropagationStopped())break e;vp(f,E,D),p=C}else for(v=0;v<u.length;v++){if(E=u[v],C=E.instance,D=E.currentTarget,E=E.listener,C!==p&&f.isPropagationStopped())break e;vp(f,E,D),p=C}}}if(zo)throw n=su,zo=!1,su=null,n}function Ve(n,s){var o=s[Lu];o===void 0&&(o=s[Lu]=new Set);var u=n+"__bubble";o.has(u)||(xp(s,n,2,!1),o.add(u))}function Pu(n,s,o){var u=0;s&&(u|=4),xp(o,n,u,s)}var ia="_reactListening"+Math.random().toString(36).slice(2);function Di(n){if(!n[ia]){n[ia]=!0,i.forEach(function(o){o!=="selectionchange"&&(xS.has(o)||Pu(o,!1,n),Pu(o,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[ia]||(s[ia]=!0,Pu("selectionchange",!1,s))}}function xp(n,s,o,u){switch($h(s)){case 1:var f=D1;break;case 4:f=L1;break;default:f=du}o=f.bind(null,s,o,n),f=void 0,!ru||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),u?f!==void 0?n.addEventListener(s,o,{capture:!0,passive:f}):n.addEventListener(s,o,!0):f!==void 0?n.addEventListener(s,o,{passive:f}):n.addEventListener(s,o,!1)}function Au(n,s,o,u,f){var p=u;if((s&1)===0&&(s&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var E=u.stateNode.containerInfo;if(E===f||E.nodeType===8&&E.parentNode===f)break;if(v===4)for(v=u.return;v!==null;){var C=v.tag;if((C===3||C===4)&&(C=v.stateNode.containerInfo,C===f||C.nodeType===8&&C.parentNode===f))return;v=v.return}for(;E!==null;){if(v=jr(E),v===null)return;if(C=v.tag,C===5||C===6){u=p=v;continue e}E=E.parentNode}}u=u.return}Th(function(){var D=p,W=eu(o),q=[];e:{var $=gp.get(n);if($!==void 0){var G=pu,ee=n;switch(n){case"keypress":if(Zo(o)===0)break e;case"keydown":case"keyup":G=Y1;break;case"focusin":ee="focus",G=yu;break;case"focusout":ee="blur",G=yu;break;case"beforeblur":case"afterblur":G=yu;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=I1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Z1;break;case fp:case hp:case pp:G=U1;break;case mp:G=tS;break;case"scroll":G=M1;break;case"wheel":G=rS;break;case"copy":case"cut":case"paste":G=$1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Qh}var re=(s&4)!==0,Ye=!re&&n==="scroll",N=re?$!==null?$+"Capture":null:$;re=[];for(var P=D,O;P!==null;){O=P;var K=O.stateNode;if(O.tag===5&&K!==null&&(O=K,N!==null&&(K=gi(P,N),K!=null&&re.push(Li(P,K,O)))),Ye)break;P=P.return}0<re.length&&($=new G($,ee,null,o,W),q.push({event:$,listeners:re}))}}if((s&7)===0){e:{if($=n==="mouseover"||n==="pointerover",G=n==="mouseout"||n==="pointerout",$&&o!==Zl&&(ee=o.relatedTarget||o.fromElement)&&(jr(ee)||ee[_n]))break e;if((G||$)&&($=W.window===W?W:($=W.ownerDocument)?$.defaultView||$.parentWindow:window,G?(ee=o.relatedTarget||o.toElement,G=D,ee=ee?jr(ee):null,ee!==null&&(Ye=Or(ee),ee!==Ye||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(G=null,ee=D),G!==ee)){if(re=Hh,K="onMouseLeave",N="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(re=Qh,K="onPointerLeave",N="onPointerEnter",P="pointer"),Ye=G==null?$:Es(G),O=ee==null?$:Es(ee),$=new re(K,P+"leave",G,o,W),$.target=Ye,$.relatedTarget=O,K=null,jr(W)===D&&(re=new re(N,P+"enter",ee,o,W),re.target=O,re.relatedTarget=Ye,K=re),Ye=K,G&&ee)t:{for(re=G,N=ee,P=0,O=re;O;O=bs(O))P++;for(O=0,K=N;K;K=bs(K))O++;for(;0<P-O;)re=bs(re),P--;for(;0<O-P;)N=bs(N),O--;for(;P--;){if(re===N||N!==null&&re===N.alternate)break t;re=bs(re),N=bs(N)}re=null}else re=null;G!==null&&Sp(q,$,G,re,!1),ee!==null&&Ye!==null&&Sp(q,Ye,ee,re,!0)}}e:{if($=D?Es(D):window,G=$.nodeName&&$.nodeName.toLowerCase(),G==="select"||G==="input"&&$.type==="file")var ie=cS;else if(ep($))if(np)ie=pS;else{ie=fS;var oe=dS}else(G=$.nodeName)&&G.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(ie=hS);if(ie&&(ie=ie(n,D))){tp(q,ie,o,W);break e}oe&&oe(n,$,D),n==="focusout"&&(oe=$._wrapperState)&&oe.controlled&&$.type==="number"&&Ql($,"number",$.value)}switch(oe=D?Es(D):window,n){case"focusin":(ep(oe)||oe.contentEditable==="true")&&(xs=oe,ku=D,Oi=null);break;case"focusout":Oi=ku=xs=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,cp(q,o,W);break;case"selectionchange":if(yS)break;case"keydown":case"keyup":cp(q,o,W)}var ae;if(wu)e:{switch(n){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else ws?Jh(n,o)&&(ge="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(ge="onCompositionStart");ge&&(Gh&&o.locale!=="ko"&&(ws||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&ws&&(ae=Wh()):(Yn=W,hu="value"in Yn?Yn.value:Yn.textContent,ws=!0)),oe=oa(D,ge),0<oe.length&&(ge=new Kh(ge,n,null,o,W),q.push({event:ge,listeners:oe}),ae?ge.data=ae:(ae=Zh(o),ae!==null&&(ge.data=ae)))),(ae=iS?oS(n,o):aS(n,o))&&(D=oa(D,"onBeforeInput"),0<D.length&&(W=new Kh("onBeforeInput","beforeinput",null,o,W),q.push({event:W,listeners:D}),W.data=ae))}wp(q,s)})}function Li(n,s,o){return{instance:n,listener:s,currentTarget:o}}function oa(n,s){for(var o=s+"Capture",u=[];n!==null;){var f=n,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=gi(n,o),p!=null&&u.unshift(Li(n,p,f)),p=gi(n,s),p!=null&&u.push(Li(n,p,f))),n=n.return}return u}function bs(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Sp(n,s,o,u,f){for(var p=s._reactName,v=[];o!==null&&o!==u;){var E=o,C=E.alternate,D=E.stateNode;if(C!==null&&C===u)break;E.tag===5&&D!==null&&(E=D,f?(C=gi(o,p),C!=null&&v.unshift(Li(o,C,E))):f||(C=gi(o,p),C!=null&&v.push(Li(o,C,E)))),o=o.return}v.length!==0&&n.push({event:s,listeners:v})}var SS=/\r\n?/g,bS=/\u0000|\uFFFD/g;function bp(n){return(typeof n=="string"?n:""+n).replace(SS,` 38`).replace(bS,"")}function aa(n,s,o){if(s=bp(s),bp(n)!==s&&o)throw Error(r(425))}function la(){}var Ru=null,Nu=null;function Ou(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var ju=typeof setTimeout=="function"?setTimeout:void 0,kS=typeof clearTimeout=="function"?clearTimeout:void 0,kp=typeof Promise=="function"?Promise:void 0,ES=typeof queueMicrotask=="function"?queueMicrotask:typeof kp<"u"?function(n){return kp.resolve(null).then(n).catch(TS)}:ju;function TS(n){setTimeout(function(){throw n})}function Du(n,s){var o=s,u=0;do{var f=o.nextSibling;if(n.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(u===0){n.removeChild(f),Ti(s);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=f}while(o);Ti(s)}function Jn(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return n}function Ep(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return n;s--}else o==="/$"&&s++}n=n.previousSibling}return null}var ks=Math.random().toString(36).slice(2),mn="__reactFiber$"+ks,Mi="__reactProps$"+ks,_n="__reactContainer$"+ks,Lu="__reactEvents$"+ks,CS="__reactListeners$"+ks,_S="__reactHandles$"+ks;function jr(n){var s=n[mn];if(s)return s;for(var o=n.parentNode;o;){if(s=o[_n]||o[mn]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(n=Ep(n);n!==null;){if(o=n[mn])return o;n=Ep(n)}return s}n=o,o=n.parentNode}return null}function Fi(n){return n=n[mn]||n[_n],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Es(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function ua(n){return n[Mi]||null}var Mu=[],Ts=-1;function Zn(n){return{current:n}}function Be(n){0>Ts||(n.current=Mu[Ts],Mu[Ts]=null,Ts--)}function Fe(n,s){Ts++,Mu[Ts]=n.current,n.current=s}var er={},pt=Zn(er),Ct=Zn(!1),Dr=er;function Cs(n,s){var o=n.type.contextTypes;if(!o)return er;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===s)return u.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in o)f[p]=s[p];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=s,n.__reactInternalMemoizedMaskedChildContext=f),f}function _t(n){return n=n.childContextTypes,n!=null}function ca(){Be(Ct),Be(pt)}function Tp(n,s,o){if(pt.current!==er)throw Error(r(168));Fe(pt,s),Fe(Ct,o)}function Cp(n,s,o){var u=n.stateNode;if(s=s.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var f in u)if(!(f in s))throw Error(r(108,Ne(n)||"Unknown",f));return B({},o,u)}function da(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||er,Dr=pt.current,Fe(pt,n),Fe(Ct,Ct.current),!0}function _p(n,s,o){var u=n.stateNode;if(!u)throw Error(r(169));o?(n=Cp(n,s,Dr),u.__reactInternalMemoizedMergedChildContext=n,Be(Ct),Be(pt),Fe(pt,n)):Be(Ct),Fe(Ct,o)}var Pn=null,fa=!1,Fu=!1;function Pp(n){Pn===null?Pn=[n]:Pn.push(n)}function PS(n){fa=!0,Pp(n)}function tr(){if(!Fu&&Pn!==null){Fu=!0;var n=0,s=je;try{var o=Pn;for(je=1;n<o.length;n++){var u=o[n];do u=u(!0);while(u!==null)}Pn=null,fa=!1}catch(f){throw Pn!==null&&(Pn=Pn.slice(n+1)),Rh(iu,tr),f}finally{je=s,Fu=!1}}return null}var _s=[],Ps=0,ha=null,pa=0,$t=[],Wt=0,Lr=null,An=1,Rn="";
vendor: 5,586 bytes, line 38
38function Mr(n,s){_s[Ps++]=pa,_s[Ps++]=ha,ha=n,pa=s}function Ap(n,s,o){$t[Wt++]=An,$t[Wt++]=Rn,$t[Wt++]=Lr,Lr=n;var u=An;n=Rn;var f=32-tn(u)-1;u&=~(1<<f),o+=1;var p=32-tn(s)+f;if(30<p){var v=f-f%5;p=(u&(1<<v)-1).toString(32),u>>=v,f-=v,An=1<<32-tn(s)+f|o<<f|u,Rn=p+n}else An=1<<p|o<<f|u,Rn=n}function Iu(n){n.return!==null&&(Mr(n,1),Ap(n,1,0))}function Vu(n){for(;n===ha;)ha=_s[--Ps],_s[Ps]=null,pa=_s[--Ps],_s[Ps]=null;for(;n===Lr;)Lr=$t[--Wt],$t[Wt]=null,Rn=$t[--Wt],$t[Wt]=null,An=$t[--Wt],$t[Wt]=null}var It=null,Vt=null,ze=!1,rn=null;function Rp(n,s){var o=Qt(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=n,s=n.deletions,s===null?(n.deletions=[o],n.flags|=16):s.push(o)}function Np(n,s){switch(n.tag){case 5:var o=n.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(n.stateNode=s,It=n,Vt=Jn(s.firstChild),!0):!1;case 6:return s=n.pendingProps===""||s.nodeType!==3?null:s,s!==null?(n.stateNode=s,It=n,Vt=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=Lr!==null?{id:An,overflow:Rn}:null,n.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=Qt(18,null,null,0),o.stateNode=s,o.return=n,n.child=o,It=n,Vt=null,!0):!1;default:return!1}}function Bu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Uu(n){if(ze){var s=Vt;if(s){var o=s;if(!Np(n,s)){if(Bu(n))throw Error(r(418));s=Jn(o.nextSibling);var u=It;s&&Np(n,s)?Rp(u,o):(n.flags=n.flags&-4097|2,ze=!1,It=n)}}else{if(Bu(n))throw Error(r(418));n.flags=n.flags&-4097|2,ze=!1,It=n}}}function Op(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;It=n}function ma(n){if(n!==It)return!1;if(!ze)return Op(n),ze=!0,!1;var s;if((s=n.tag!==3)&&!(s=n.tag!==5)&&(s=n.type,s=s!=="head"&&s!=="body"&&!Ou(n.type,n.memoizedProps)),s&&(s=Vt)){if(Bu(n))throw jp(),Error(r(418));for(;s;)Rp(n,s),s=Jn(s.nextSibling)}if(Op(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,s=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"){if(s===0){Vt=Jn(n.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}n=n.nextSibling}Vt=null}}else Vt=It?Jn(n.stateNode.nextSibling):null;return!0}function jp(){for(var n=Vt;n;)n=Jn(n.nextSibling)}function As(){Vt=It=null,ze=!1}function zu(n){rn===null?rn=[n]:rn.push(n)}var AS=M.ReactCurrentBatchConfig;function Ii(n,s,o){if(n=o.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(r(309));var u=o.stateNode}if(!u)throw Error(r(147,n));var f=u,p=""+n;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===p?s.ref:(s=function(v){var E=f.refs;v===null?delete E[p]:E[p]=v},s._stringRef=p,s)}if(typeof n!="string")throw Error(r(284));if(!o._owner)throw Error(r(290,n))}return n}function ga(n,s){throw n=Object.prototype.toString.call(s),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n))}function Dp(n){var s=n._init;return s(n._payload)}function Lp(n){function s(N,P){if(n){var O=N.deletions;O===null?(N.deletions=[P],N.flags|=16):O.push(P)}}function o(N,P){if(!n)return null;for(;P!==null;)s(N,P),P=P.sibling;return null}function u(N,P){for(N=new Map;P!==null;)P.key!==null?N.set(P.key,P):N.set(P.index,P),P=P.sibling;return N}function f(N,P){return N=ur(N,P),N.index=0,N.sibling=null,N}function p(N,P,O){return N.index=O,n?(O=N.alternate,O!==null?(O=O.index,O<P?(N.flags|=2,P):O):(N.flags|=2,P)):(N.flags|=1048576,P)}function v(N){return n&&N.alternate===null&&(N.flags|=2),N}function E(N,P,O,K){return P===null||P.tag!==6?(P=jc(O,N.mode,K),P.return=N,P):(P=f(P,O),P.return=N,P)}function C(N,P,O,K){var ie=O.type;return ie===Y?W(N,P,O.props.children,K,O.key):P!==null&&(P.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&Dp(ie)===P.type)?(K=f(P,O.props),K.ref=Ii(N,P,O),K.return=N,K):(K=Ba(O.type,O.key,O.props,null,N.mode,K),K.ref=Ii(N,P,O),K.return=N,K)}function D(N,P,O,K){return P===null||P.tag!==4||P.stateNode.containerInfo!==O.containerInfo||P.stateNode.implementation!==O.implementation?(P=Dc(O,N.mode,K),P.return=N,P):(P=f(P,O.children||[]),P.return=N,P)}function W(N,P,O,K,ie){return P===null||P.tag!==7?(P=Wr(O,N.mode,K,ie),P.return=N,P):(P=f(P,O),P.return=N,P)}function q(N,P,O){if(typeof P=="string"&&P!==""||typeof P=="number")return P=jc(""+P,N.mode,O),P.return=N,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case U:return O=Ba(P.type,P.key,P.props,null,N.mode,O),O.ref=Ii(N,null,P),O.return=N,O;case Q:return P=Dc(P,N.mode,O),P.return=N,P;case xe:var K=P._init;return q(N,K(P._payload),O)}if(hi(P)||se(P))return P=Wr(P,N.mode,O,null),P.return=N,P;ga(N,P)}return null}function $(N,P,O,K){var ie=P!==null?P.key:null;if(typeof O=="string"&&O!==""||typeof O=="number")return ie!==null?null:E(N,P,""+O,K);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case U:return O.key===ie?C(N,P,O,K):null;case Q:return O.key===ie?D(N,P,O,K):null;case xe:return ie=O._init,$(N,P,ie(O._payload),K)}if(hi(O)||se(O))return ie!==null?null:W(N,P,O,K,null);ga(N,O)}return null}function G(N,P,O,K,ie){if(typeof K=="string"&&K!==""||typeof K=="number")return N=N.get(O)||null,E(P,N,""+K,ie);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case U:return N=N.get(K.key===null?O:K.key)||null,C(P,N,K,ie);case Q:return N=N.get(K.key===null?O:K.key)||null,D(P,N,K,ie);case xe:var oe=K._init;return G(N,P,O,oe(K._payload),ie)}if(hi(K)||se(K))return N=N.get(O)||null,W(P,N,K,ie,null);ga(P,K)}return null}function ee(N,P,O,K){for(var ie=null,oe=null,ae=P,ge=P=0,ot=null;ae!==null&&ge<O.length;ge++){ae.index>
vendor: 6,784 bytes, line 38
38ge?(ot=ae,ae=null):ot=ae.sibling;var Ae=$(N,ae,O[ge],K);if(Ae===null){ae===null&&(ae=ot);break}n&&ae&&Ae.alternate===null&&s(N,ae),P=p(Ae,P,ge),oe===null?ie=Ae:oe.sibling=Ae,oe=Ae,ae=ot}if(ge===O.length)return o(N,ae),ze&&Mr(N,ge),ie;if(ae===null){for(;ge<O.length;ge++)ae=q(N,O[ge],K),ae!==null&&(P=p(ae,P,ge),oe===null?ie=ae:oe.sibling=ae,oe=ae);return ze&&Mr(N,ge),ie}for(ae=u(N,ae);ge<O.length;ge++)ot=G(ae,N,ge,O[ge],K),ot!==null&&(n&&ot.alternate!==null&&ae.delete(ot.key===null?ge:ot.key),P=p(ot,P,ge),oe===null?ie=ot:oe.sibling=ot,oe=ot);return n&&ae.forEach(function(cr){return s(N,cr)}),ze&&Mr(N,ge),ie}function re(N,P,O,K){var ie=se(O);if(typeof ie!="function")throw Error(r(150));if(O=ie.call(O),O==null)throw Error(r(151));for(var oe=ie=null,ae=P,ge=P=0,ot=null,Ae=O.next();ae!==null&&!Ae.done;ge++,Ae=O.next()){ae.index>ge?(ot=ae,ae=null):ot=ae.sibling;var cr=$(N,ae,Ae.value,K);if(cr===null){ae===null&&(ae=ot);break}n&&ae&&cr.alternate===null&&s(N,ae),P=p(cr,P,ge),oe===null?ie=cr:oe.sibling=cr,oe=cr,ae=ot}if(Ae.done)return o(N,ae),ze&&Mr(N,ge),ie;if(ae===null){for(;!Ae.done;ge++,Ae=O.next())Ae=q(N,Ae.value,K),Ae!==null&&(P=p(Ae,P,ge),oe===null?ie=Ae:oe.sibling=Ae,oe=Ae);return ze&&Mr(N,ge),ie}for(ae=u(N,ae);!Ae.done;ge++,Ae=O.next())Ae=G(ae,N,ge,Ae.value,K),Ae!==null&&(n&&Ae.alternate!==null&&ae.delete(Ae.key===null?ge:Ae.key),P=p(Ae,P,ge),oe===null?ie=Ae:oe.sibling=Ae,oe=Ae);return n&&ae.forEach(function(lb){return s(N,lb)}),ze&&Mr(N,ge),ie}function Ye(N,P,O,K){if(typeof O=="object"&&O!==null&&O.type===Y&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case U:e:{for(var ie=O.key,oe=P;oe!==null;){if(oe.key===ie){if(ie=O.type,ie===Y){if(oe.tag===7){o(N,oe.sibling),P=f(oe,O.props.children),P.return=N,N=P;break e}}else if(oe.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&Dp(ie)===oe.type){o(N,oe.sibling),P=f(oe,O.props),P.ref=Ii(N,oe,O),P.return=N,N=P;break e}o(N,oe);break}else s(N,oe);oe=oe.sibling}O.type===Y?(P=Wr(O.props.children,N.mode,K,O.key),P.return=N,N=P):(K=Ba(O.type,O.key,O.props,null,N.mode,K),K.ref=Ii(N,P,O),K.return=N,N=K)}return v(N);case Q:e:{for(oe=O.key;P!==null;){if(P.key===oe)if(P.tag===4&&P.stateNode.containerInfo===O.containerInfo&&P.stateNode.implementation===O.implementation){o(N,P.sibling),P=f(P,O.children||[]),P.return=N,N=P;break e}else{o(N,P);break}else s(N,P);P=P.sibling}P=Dc(O,N.mode,K),P.return=N,N=P}return v(N);case xe:return oe=O._init,Ye(N,P,oe(O._payload),K)}if(hi(O))return ee(N,P,O,K);if(se(O))return re(N,P,O,K);ga(N,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,P!==null&&P.tag===6?(o(N,P.sibling),P=f(P,O),P.return=N,N=P):(o(N,P),P=jc(O,N.mode,K),P.return=N,N=P),v(N)):o(N,P)}return Ye}var Rs=Lp(!0),Mp=Lp(!1),ya=Zn(null),va=null,Ns=null,$u=null;function Wu(){$u=Ns=va=null}function qu(n){var s=ya.current;Be(ya),n._currentValue=s}function Hu(n,s,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),n===o)break;n=n.return}}function Os(n,s){va=n,$u=Ns=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&s)!==0&&(Pt=!0),n.firstContext=null)}function qt(n){var s=n._currentValue;if($u!==n)if(n={context:n,memoizedValue:s,next:null},Ns===null){if(va===null)throw Error(r(308));Ns=n,va.dependencies={lanes:0,firstContext:n}}else Ns=Ns.next=n;return s}var Fr=null;function Ku(n){Fr===null?Fr=[n]:Fr.push(n)}function Fp(n,s,o,u){var f=s.interleaved;return f===null?(o.next=o,Ku(s)):(o.next=f.next,f.next=o),s.interleaved=o,Nn(n,u)}function Nn(n,s){n.lanes|=s;var o=n.alternate;for(o!==null&&(o.lanes|=s),o=n,n=n.return;n!==null;)n.childLanes|=s,o=n.alternate,o!==null&&(o.childLanes|=s),o=n,n=n.return;return o.tag===3?o.stateNode:null}var nr=!1;function Qu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ip(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function On(n,s){return{eventTime:n,lane:s,tag:0,payload:null,callback:null,next:null}}function rr(n,s,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(_e&2)!==0){var f=u.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s,Nn(n,o)}return f=u.interleaved,f===null?(s.next=s,Ku(u)):(s.next=f.next,f.next=s),u.interleaved=s,Nn(n,o)}function wa(n,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var u=s.lanes;u&=n.pendingLanes,o|=u,s.lanes=o,lu(n,o)}}function Vp(n,s){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var f=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};p===null?f=p=v:p=p.next=v,o=o.next}while(o!==null);p===null?f=p=s:p=p.next=s}else f=p=s;o={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:u.shared,effects:u.effects},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=s:n.next=s,o.lastBaseUpdate=s}function xa(n,s,o,u){var f=n.updateQueue;nr=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var C=E,D=C.next;C.next=null,v===null?p=D:v.next=D,v=C;var W=n.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==v&&(E===null?W.firstBaseUpdate=D:E.next=D,W.lastBaseUpdate=C))}if(p!==null){var q=f.baseState;v=0,W=D=C=null,E=p;do{var $=E.lane,G=E.eventTime;if((u&$)===$){W!==null&&(W=W.next={eventTime:G,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var ee=n,re=E;switch($=s,G=o,re.tag){case 1:if(ee=re.payload,typeof ee=="function"){q=ee.call(G,q,$);break e}q=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=re.payload,$=typeof ee=="function"?ee.call(G,q,$):ee,$==null)break e;q=B({},q,$);break e;case 2:nr=!0}}E.callback!==null&&E.lane!==0&&(n.flags|=64,$=f.effects,$===null?f.effects=[E]:$.push(E))}else G={eventTime:G,lane:$,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(D=W=G,C=q):W=W.next=G,v|=$;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;$=E,E=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);if(W===null&&(C=q),f.baseState=C,f.firstBaseUpdate=D,f.lastBaseUpdate=W,s=f.shared.interleaved,s!==null){f=s;do v|=f.lane,f=f.next;while(f!==s)}else p===null&&(f.shared.lanes=0);Br|=v,n.lanes=v,n.memoizedState=q}}function Bp(n,s,o){if(n=s.effects,s.effects=null,n!==null)for(s=0;s<n.length;s++){var u=n[s],f=u.callback;if(f!==null){if(u.callback=null,u=o,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var Vi={},gn=Zn(Vi),Bi=Zn(Vi),Ui=Zn(Vi);
vendor: 9,074 bytes, line 38
38function Ir(n){if(n===Vi)throw Error(r(174));return n}function Gu(n,s){switch(Fe(Ui,s),Fe(Bi,n),Fe(gn,Vi),n=s.nodeType,n){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Yl(null,"");break;default:n=n===8?s.parentNode:s,s=n.namespaceURI||null,n=n.tagName,s=Yl(s,n)}Be(gn),Fe(gn,s)}function js(){Be(gn),Be(Bi),Be(Ui)}function Up(n){Ir(Ui.current);var s=Ir(gn.current),o=Yl(s,n.type);s!==o&&(Fe(Bi,n),Fe(gn,o))}function Yu(n){Bi.current===n&&(Be(gn),Be(Bi))}var $e=Zn(0);function Sa(n){for(var s=n;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.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===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Xu=[];function Ju(){for(var n=0;n<Xu.length;n++)Xu[n]._workInProgressVersionPrimary=null;Xu.length=0}var ba=M.ReactCurrentDispatcher,Zu=M.ReactCurrentBatchConfig,Vr=0,We=null,tt=null,st=null,ka=!1,zi=!1,$i=0,RS=0;function mt(){throw Error(r(321))}function ec(n,s){if(s===null)return!1;for(var o=0;o<s.length&&o<n.length;o++)if(!nn(n[o],s[o]))return!1;return!0}function tc(n,s,o,u,f,p){if(Vr=p,We=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,ba.current=n===null||n.memoizedState===null?DS:LS,n=o(u,f),zi){p=0;do{if(zi=!1,$i=0,25<=p)throw Error(r(301));p+=1,st=tt=null,s.updateQueue=null,ba.current=MS,n=o(u,f)}while(zi)}if(ba.current=Ca,s=tt!==null&&tt.next!==null,Vr=0,st=tt=We=null,ka=!1,s)throw Error(r(300));return n}function nc(){var n=$i!==0;return $i=0,n}function yn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?We.memoizedState=st=n:st=st.next=n,st}function Ht(){if(tt===null){var n=We.alternate;n=n!==null?n.memoizedState:null}else n=tt.next;var s=st===null?We.memoizedState:st.next;if(s!==null)st=s,tt=n;else{if(n===null)throw Error(r(310));tt=n,n={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},st===null?We.memoizedState=st=n:st=st.next=n}return st}function Wi(n,s){return typeof s=="function"?s(n):s}function rc(n){var s=Ht(),o=s.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var u=tt,f=u.baseQueue,p=o.pending;if(p!==null){if(f!==null){var v=f.next;f.next=p.next,p.next=v}u.baseQueue=f=p,o.pending=null}if(f!==null){p=f.next,u=u.baseState;var E=v=null,C=null,D=p;do{var W=D.lane;if((Vr&W)===W)C!==null&&(C=C.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),u=D.hasEagerState?D.eagerState:n(u,D.action);else{var q={lane:W,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};C===null?(E=C=q,v=u):C=C.next=q,We.lanes|=W,Br|=W}D=D.next}while(D!==null&&D!==p);C===null?v=u:C.next=E,nn(u,s.memoizedState)||(Pt=!0),s.memoizedState=u,s.baseState=v,s.baseQueue=C,o.lastRenderedState=u}if(n=o.interleaved,n!==null){f=n;do p=f.lane,We.lanes|=p,Br|=p,f=f.next;while(f!==n)}else f===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function sc(n){var s=Ht(),o=s.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var u=o.dispatch,f=o.pending,p=s.memoizedState;if(f!==null){o.pending=null;var v=f=f.next;do p=n(p,v.action),v=v.next;while(v!==f);nn(p,s.memoizedState)||(Pt=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),o.lastRenderedState=p}return[p,u]}function zp(){}function $p(n,s){var o=We,u=Ht(),f=s(),p=!nn(u.memoizedState,f);if(p&&(u.memoizedState=f,Pt=!0),u=u.queue,ic(Hp.bind(null,o,u,n),[n]),u.getSnapshot!==s||p||st!==null&&st.memoizedState.tag&1){if(o.flags|=2048,qi(9,qp.bind(null,o,u,f,s),void 0,null),it===null)throw Error(r(349));(Vr&30)!==0||Wp(o,s,f)}return f}function Wp(n,s,o){n.flags|=16384,n={getSnapshot:s,value:o},s=We.updateQueue,s===null?(s={lastEffect:null,stores:null},We.updateQueue=s,s.stores=[n]):(o=s.stores,o===null?s.stores=[n]:o.push(n))}function qp(n,s,o,u){s.value=o,s.getSnapshot=u,Kp(s)&&Qp(n)}function Hp(n,s,o){return o(function(){Kp(s)&&Qp(n)})}function Kp(n){var s=n.getSnapshot;n=n.value;try{var o=s();return!nn(n,o)}catch{return!0}}function Qp(n){var s=Nn(n,1);s!==null&&ln(s,n,1,-1)}function Gp(n){var s=yn();return typeof n=="function"&&(n=n()),s.memoizedState=s.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:n},s.queue=n,n=n.dispatch=jS.bind(null,We,n),[s.memoizedState,n]}function qi(n,s,o,u){return n={tag:n,create:s,destroy:o,deps:u,next:null},s=We.updateQueue,s===null?(s={lastEffect:null,stores:null},We.updateQueue=s,s.lastEffect=n.next=n):(o=s.lastEffect,o===null?s.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,s.lastEffect=n)),n}function Yp(){return Ht().memoizedState}function Ea(n,s,o,u){var f=yn();We.flags|=n,f.memoizedState=qi(1|s,o,void 0,u===void 0?null:u)}function Ta(n,s,o,u){var f=Ht();u=u===void 0?null:u;var p=void 0;if(tt!==null){var v=tt.memoizedState;if(p=v.destroy,u!==null&&ec(u,v.deps)){f.memoizedState=qi(s,o,p,u);return}}We.flags|=n,f.memoizedState=qi(1|s,o,p,u)}function Xp(n,s){return Ea(8390656,8,n,s)}function ic(n,s){return Ta(2048,8,n,s)}function Jp(n,s){return Ta(4,2,n,s)}function Zp(n,s){return Ta(4,4,n,s)}function em(n,s){if(typeof s=="function")return n=n(),s(n),function(){s(null)};if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function tm(n,s,o){return o=o!=null?o.concat([n]):null,Ta(4,4,em.bind(null,s,n),o)}function oc(){}function nm(n,s){var o=Ht();s=s===void 0?null:s;var u=o.memoizedState;return u!==null&&s!==null&&ec(s,u[1])?u[0]:(o.memoizedState=[n,s],n)}function rm(n,s){var o=Ht();s=s===void 0?null:s;var u=o.memoizedState;return u!==null&&s!==null&&ec(s,u[1])?u[0]:(n=n(),o.memoizedState=[n,s],n)}function sm(n,s,o){return(Vr&21)===0?(n.baseState&&(n.baseState=!1,Pt=!0),n.memoizedState=o):(nn(o,s)||(o=Dh(),We.lanes|=o,Br|=o,n.baseState=!0),s)}function NS(n,s){var o=je;je=o!==0&&4>o?o:4,n(!0);var u=Zu.transition;Zu.transition={};try{n(!1),s()}finally{je=o,Zu.transition=u}}function im(){return Ht().memoizedState}function OS(n,s,o){var u=ar(n);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},om(n))am(s,o);else if(o=Fp(n,s,o,u),o!==null){var f=Et();ln(o,n,u,f),lm(o,s,u)}}function jS(n,s,o){var u=ar(n),f={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(om(n))am(s,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var v=s.lastRenderedState,E=p(v,o);if(f.hasEagerState=!0,f.eagerState=E,nn(E,v)){var C=s.interleaved;C===null?(f.next=f,Ku(s)):(f.next=C.next,C.next=f),s.interleaved=f;return}}catch{}finally{}o=Fp(n,s,f,u),o!==null&&(f=Et(),ln(o,n,u,f),lm(o,s,u))}}function om(n){var s=n.alternate;return n===We||s!==null&&s===We}function am(n,s){zi=ka=!0;var o=n.pending;o===null?s.next=s:(s.next=o.next,o.next=s),n.pending=s}function lm(n,s,o){if((o&4194240)!==0){var u=s.lanes;u&=n.pendingLanes,o|=u,s.lanes=o,lu(n,o)}}var Ca={readContext:qt,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},DS={readContext:qt,useCallback:function(n,s){return yn().memoizedState=[n,s===void 0?null:s],n},useContext:qt,useEffect:Xp,useImperativeHandle:function(n,s,o){return o=o!=null?o.concat([n]):null,Ea(4194308,4,em.bind(null,s,n),o)},useLayoutEffect:function(n,s){return Ea(4194308,4,n,s)},useInsertionEffect:function(n,s){return Ea(4,2,n,s)},useMemo:function(n,s){var o=yn();return s=s===void 0?null:s,n=n(),o.memoizedState=[n,s],n},useReducer:function(n,s,o){var u=yn();return s=o!==void 0?o(s):s,u.memoizedState=u.baseState=s,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:s},u.queue=n,n=n.dispatch=OS.bind(null,We,n),[u.memoizedState,n]},useRef:function(n){var s=yn();return n={current:n},s.memoizedState=n},useState:Gp,useDebugValue:oc,useDeferredValue:function(n){return yn().memoizedState=n},useTransition:function(){var n=Gp(!1),s=n[0];return n=NS.bind(null,n[1]),yn().memoizedState=n,[s,n]},useMutableSource:function(){},useSyncExternalStore:function(n,s,o){var u=We,f=yn();if(ze){if(o===void 0)throw Error(r(407));o=o()}else{if(o=s(),it===null)throw Error(r(349));(Vr&30)!==0||Wp(u,s,o)}f.memoizedState=o;var p={value:o,getSnapshot:s};return f.queue=p,Xp(Hp.bind(null,u,p,n),[n]),u.flags|=2048,qi(9,qp.bind(null,u,p,o,s),void 0,null),o},useId:function(){var n=yn(),s=it.identifierPrefix;if(ze){var o=Rn,u=An;o=(u&~(1<<32-tn(u)-1)).toString(32)+o,s=":"+s+"R"+o,o=$i++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=RS++,s=":"+s+"r"+o.toString(32)+":";return n.memoizedState=s},unstable_isNewReconciler:!1},LS={readContext:qt,useCallback:nm,useContext:qt,useEffect:ic,useImperativeHandle:tm,useInsertionEffect:Jp,useLayoutEffect:Zp,useMemo:rm,useReducer:rc,useRef
vendor: 4,324 bytes, lines 38-40
38:Yp,useState:function(){return rc(Wi)},useDebugValue:oc,useDeferredValue:function(n){var s=Ht();return sm(s,tt.memoizedState,n)},useTransition:function(){var n=rc(Wi)[0],s=Ht().memoizedState;return[n,s]},useMutableSource:zp,useSyncExternalStore:$p,useId:im,unstable_isNewReconciler:!1},MS={readContext:qt,useCallback:nm,useContext:qt,useEffect:ic,useImperativeHandle:tm,useInsertionEffect:Jp,useLayoutEffect:Zp,useMemo:rm,useReducer:sc,useRef:Yp,useState:function(){return sc(Wi)},useDebugValue:oc,useDeferredValue:function(n){var s=Ht();return tt===null?s.memoizedState=n:sm(s,tt.memoizedState,n)},useTransition:function(){var n=sc(Wi)[0],s=Ht().memoizedState;return[n,s]},useMutableSource:zp,useSyncExternalStore:$p,useId:im,unstable_isNewReconciler:!1};function sn(n,s){if(n&&n.defaultProps){s=B({},s),n=n.defaultProps;for(var o in n)s[o]===void 0&&(s[o]=n[o]);return s}return s}function ac(n,s,o,u){s=n.memoizedState,o=o(u,s),o=o==null?s:B({},s,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var _a={isMounted:function(n){return(n=n._reactInternals)?Or(n)===n:!1},enqueueSetState:function(n,s,o){n=n._reactInternals;var u=Et(),f=ar(n),p=On(u,f);p.payload=s,o!=null&&(p.callback=o),s=rr(n,p,f),s!==null&&(ln(s,n,f,u),wa(s,n,f))},enqueueReplaceState:function(n,s,o){n=n._reactInternals;var u=Et(),f=ar(n),p=On(u,f);p.tag=1,p.payload=s,o!=null&&(p.callback=o),s=rr(n,p,f),s!==null&&(ln(s,n,f,u),wa(s,n,f))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var o=Et(),u=ar(n),f=On(o,u);f.tag=2,s!=null&&(f.callback=s),s=rr(n,f,u),s!==null&&(ln(s,n,u,o),wa(s,n,u))}};function um(n,s,o,u,f,p,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,v):s.prototype&&s.prototype.isPureReactComponent?!Ni(o,u)||!Ni(f,p):!0}function cm(n,s,o){var u=!1,f=er,p=s.contextType;return typeof p=="object"&&p!==null?p=qt(p):(f=_t(s)?Dr:pt.current,u=s.contextTypes,p=(u=u!=null)?Cs(n,f):er),s=new s(o,p),n.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_a,n.stateNode=s,s._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=p),s}function dm(n,s,o,u){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,u),s.state!==n&&_a.enqueueReplaceState(s,s.state,null)}function lc(n,s,o,u){var f=n.stateNode;f.props=o,f.state=n.memoizedState,f.refs={},Qu(n);var p=s.contextType;typeof p=="object"&&p!==null?f.context=qt(p):(p=_t(s)?Dr:pt.current,f.context=Cs(n,p)),f.state=n.memoizedState,p=s.getDerivedStateFromProps,typeof p=="function"&&(ac(n,s,p,o),f.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(s=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),s!==f.state&&_a.enqueueReplaceState(f,f.state,null),xa(n,o,f,u),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308)}function Ds(n,s){try{var o="",u=s;do o+=le(u),u=u.return;while(u);var f=o}catch(p){f=` 39Error generating stack: `+p.message+` 40`+p.stack}return{value:n,source:s,stack:f,digest:null}}function uc(n,s,o){return{value:n,source:null,stack:o??null,digest:s??null}}function cc(n,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var FS=typeof WeakMap=="function"?WeakMap:Map;function fm(n,s,o){o=On(-1,o),o.tag=3,o.payload={element:null};var u=s.value;return o.callback=function(){Da||(Da=!0,Tc=u),cc(n,s)},o}function hm(n,s,o){o=On(-1,o),o.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var f=s.value;o.payload=function(){return u(f)},o.callback=function(){cc(n,s)}}var p=n.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(o.callback=function(){cc(n,s),typeof u!="function"&&(ir===null?ir=new Set([this]):ir.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})}),o}function pm(n,s,o){var u=n.pingCache;if(u===null){u=n.pingCache=new FS;var f=new Set;u.set(s,f)}else f=u.get(s),f===void 0&&(f=new Set,u.set(s,f));
vendor: 42,612 bytes, line 40
40f.has(o)||(f.add(o),n=XS.bind(null,n,s,o),s.then(n,n))}function mm(n){do{var s;if((s=n.tag===13)&&(s=n.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return n;n=n.return}while(n!==null);return null}function gm(n,s,o,u,f){return(n.mode&1)===0?(n===s?n.flags|=65536:(n.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=On(-1,1),s.tag=2,rr(o,s,1))),o.lanes|=1),n):(n.flags|=65536,n.lanes=f,n)}var IS=M.ReactCurrentOwner,Pt=!1;function kt(n,s,o,u){s.child=n===null?Mp(s,null,o,u):Rs(s,n.child,o,u)}function ym(n,s,o,u,f){o=o.render;var p=s.ref;return Os(s,f),u=tc(n,s,o,u,p,f),o=nc(),n!==null&&!Pt?(s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~f,jn(n,s,f)):(ze&&o&&Iu(s),s.flags|=1,kt(n,s,u,f),s.child)}function vm(n,s,o,u,f){if(n===null){var p=o.type;return typeof p=="function"&&!Oc(p)&&p.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=p,wm(n,s,p,u,f)):(n=Ba(o.type,null,u,s,s.mode,f),n.ref=s.ref,n.return=s,s.child=n)}if(p=n.child,(n.lanes&f)===0){var v=p.memoizedProps;if(o=o.compare,o=o!==null?o:Ni,o(v,u)&&n.ref===s.ref)return jn(n,s,f)}return s.flags|=1,n=ur(p,u),n.ref=s.ref,n.return=s,s.child=n}function wm(n,s,o,u,f){if(n!==null){var p=n.memoizedProps;if(Ni(p,u)&&n.ref===s.ref)if(Pt=!1,s.pendingProps=u=p,(n.lanes&f)!==0)(n.flags&131072)!==0&&(Pt=!0);else return s.lanes=n.lanes,jn(n,s,f)}return dc(n,s,o,u,f)}function xm(n,s,o){var u=s.pendingProps,f=u.children,p=n!==null?n.memoizedState:null;if(u.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(Ms,Bt),Bt|=o;else{if((o&1073741824)===0)return n=p!==null?p.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:n,cachePool:null,transitions:null},s.updateQueue=null,Fe(Ms,Bt),Bt|=n,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=p!==null?p.baseLanes:o,Fe(Ms,Bt),Bt|=u}else p!==null?(u=p.baseLanes|o,s.memoizedState=null):u=o,Fe(Ms,Bt),Bt|=u;return kt(n,s,f,o),s.child}function Sm(n,s){var o=s.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function dc(n,s,o,u,f){var p=_t(o)?Dr:pt.current;return p=Cs(s,p),Os(s,f),o=tc(n,s,o,u,p,f),u=nc(),n!==null&&!Pt?(s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~f,jn(n,s,f)):(ze&&u&&Iu(s),s.flags|=1,kt(n,s,o,f),s.child)}function bm(n,s,o,u,f){if(_t(o)){var p=!0;da(s)}else p=!1;if(Os(s,f),s.stateNode===null)Aa(n,s),cm(s,o,u),lc(s,o,u,f),u=!0;else if(n===null){var v=s.stateNode,E=s.memoizedProps;v.props=E;var C=v.context,D=o.contextType;typeof D=="object"&&D!==null?D=qt(D):(D=_t(o)?Dr:pt.current,D=Cs(s,D));var W=o.getDerivedStateFromProps,q=typeof W=="function"||typeof v.getSnapshotBeforeUpdate=="function";q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==u||C!==D)&&dm(s,v,u,D),nr=!1;var $=s.memoizedState;v.state=$,xa(s,u,v,f),C=s.memoizedState,E!==u||$!==C||Ct.current||nr?(typeof W=="function"&&(ac(s,o,W,u),C=s.memoizedState),(E=nr||um(s,o,E,u,$,C,D))?(q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(s.flags|=4194308)):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=C),v.props=u,v.state=C,v.context=D,u=E):(typeof v.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{v=s.stateNode,Ip(n,s),E=s.memoizedProps,D=s.type===s.elementType?E:sn(s.type,E),v.props=D,q=s.pendingProps,$=v.context,C=o.contextType,typeof C=="object"&&C!==null?C=qt(C):(C=_t(o)?Dr:pt.current,C=Cs(s,C));var G=o.getDerivedStateFromProps;(W=typeof G=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==q||$!==C)&&dm(s,v,u,C),nr=!1,$=s.memoizedState,v.state=$,xa(s,u,v,f);var ee=s.memoizedState;E!==q||$!==ee||Ct.current||nr?(typeof G=="function"&&(ac(s,o,G,u),ee=s.memoizedState),(D=nr||um(s,o,D,u,$,ee,C)||!1)?(W||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,ee,C),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,ee,C)),typeof v.componentDidUpdate=="function"&&(s.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof v.componentDidUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=ee),v.props=u,v.state=ee,v.context=C,u=D):(typeof v.componentDidUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===n.memoizedProps&&$===n.memoizedState||(s.flags|=1024),u=!1)}return fc(n,s,o,u,p,f)}function fc(n,s,o,u,f,p){Sm(n,s);var v=(s.flags&128)!==0;if(!u&&!v)return f&&_p(s,o,!1),jn(n,s,p);u=s.stateNode,IS.current=s;var E=v&&typeof o.getDerivedStateFromError!="function"?null:u.render();return s.flags|=1,n!==null&&v?(s.child=Rs(s,n.child,null,p),s.child=Rs(s,null,E,p)):kt(n,s,E,p),s.memoizedState=u.state,f&&_p(s,o,!0),s.child}function km(n){var s=n.stateNode;s.pendingContext?Tp(n,s.pendingContext,s.pendingContext!==s.context):s.context&&Tp(n,s.context,!1),Gu(n,s.containerInfo)}function Em(n,s,o,u,f){return As(),zu(f),s.flags|=256,kt(n,s,o,u),s.child}var hc={dehydrated:null,treeContext:null,retryLane:0};function pc(n){return{baseLanes:n,cachePool:null,transitions:null}}function Tm(n,s,o){var u=s.pendingProps,f=$e.current,p=!1,v=(s.flags&128)!==0,E;if((E=v)||(E=n!==null&&n.memoizedState===null?!1:(f&2)!==0),E?(p=!0,s.flags&=-129):(n===null||n.memoizedState!==null)&&(f|=1),Fe($e,f&1),n===null)return Uu(s),n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((s.mode&1)===0?s.lanes=1:n.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(v=u.children,n=u.fallback,p?(u=s.mode,p=s.child,v={mode:"hidden",children:v},(u&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=v):p=Ua(v,u,0,null),n=Wr(n,u,o,null),p.return=s,n.return=s,p.sibling=n,s.child=p,s.child.memoizedState=pc(o),s.memoizedState=hc,n):mc(s,v));if(f=n.memoizedState,f!==null&&(E=f.dehydrated,E!==null))return VS(n,s,v,u,E,f,o);if(p){p=u.fallback,v=s.mode,f=n.child,E=f.sibling;var C={mode:"hidden",children:u.children};return(v&1)===0&&s.child!==f?(u=s.child,u.childLanes=0,u.pendingProps=C,s.deletions=null):(u=ur(f,C),u.subtreeFlags=f.subtreeFlags&14680064),E!==null?p=ur(E,p):(p=Wr(p,v,o,null),p.flags|=2),p.return=s,u.return=s,u.sibling=p,s.child=u,u=p,p=s.child,v=n.child.memoizedState,v=v===null?pc(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},p.memoizedState=v,p.childLanes=n.childLanes&~o,s.memoizedState=hc,u}return p=n.child,n=p.sibling,u=ur(p,{mode:"visible",children:u.children}),(s.mode&1)===0&&(u.lanes=o),u.return=s,u.sibling=null,n!==null&&(o=s.deletions,o===null?(s.deletions=[n],s.flags|=16):o.push(n)),s.child=u,s.memoizedState=null,u}function mc(n,s){return s=Ua({mode:"visible",children:s},n.mode,0,null),s.return=n,n.child=s}function Pa(n,s,o,u){return u!==null&&zu(u),Rs(s,n.child,null,o),n=mc(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function VS(n,s,o,u,f,p,v){if(o)return s.flags&256?(s.flags&=-257,u=uc(Error(r(422))),Pa(n,s,v,u)):s.memoizedState!==null?(s.child=n.child,s.flags|=128,null):(p=u.fallback,f=s.mode,u=Ua({mode:"visible",children:u.children},f,0,null),p=Wr(p,f,v,null),p.flags|=2,u.return=s,p.return=s,u.sibling=p,s.child=u,(s.mode&1)!==0&&Rs(s,n.child,null,v),s.child.memoizedState=pc(v),s.memoizedState=hc,p);if((s.mode&1)===0)return Pa(n,s,v,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var E=u.dgst;return u=E,p=Error(r(419)),u=uc(p,u,void 0),Pa(n,s,v,u)}if(E=(v&n.childLanes)!==0,Pt||E){if(u=it,u!==null){switch(v&-v){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|v))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,Nn(n,f),ln(u,n,f,-1))}return Nc(),u=uc(Error(r(421))),Pa(n,s,v,u)}return f.data==="$?"?(s.flags|=128,s.child=n.child,s=JS.bind(null,n),f._reactRetry=s,null):(n=p.treeContext,Vt=Jn(f.nextSibling),It=s,ze=!0,rn=null,n!==null&&($t[Wt++]=An,$t[Wt++]=Rn,$t[Wt++]=Lr,An=n.id,Rn=n.overflow,Lr=s),s=mc(s,u.children),s.flags|=4096,s)}function Cm(n,s,o){n.lanes|=s;var u=n.alternate;u!==null&&(u.lanes|=s),Hu(n.return,s,o)}function gc(n,s,o,u,f){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:f}:(p.isBackwards=s,p.rendering=null,p.renderingStartTime=0,p.last=u,p.tail=o,p.tailMode=f)}function _m(n,s,o){var u=s.pendingProps,f=u.revealOrder,p=u.tail;if(kt(n,s,u.children,o),u=$e.current,(u&2)!==0)u=u&1|2,s.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Cm(n,o,s);else if(n.tag===19)Cm(n,o,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(Fe($e,u),(s.mode&1)===0)s.memoizedState=null;else switch(f){case"forwards":for(o=s.child,f=null;o!==null;)n=o.alternate,n!==null&&Sa(n)===null&&(f=o),o=o.sibling;o=f,o===null?(f=s.child,s.child=null):(f=o.sibling,o.sibling=null),gc(s,!1,f,o,p);break;case"backwards":for(o=null,f=s.child,s.child=null;f!==null;){if(n=f.alternate,n!==null&&Sa(n)===null){s.child=f;break}n=f.sibling,f.sibling=o,o=f,f=n}gc(s,!0,o,null,p);break;case"together":gc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Aa(n,s){(s.mode&1)===0&&n!==null&&(n.alternate=null,s.alternate=null,s.flags|=2)}function jn(n,s,o){if(n!==null&&(s.dependencies=n.dependencies),Br|=s.lanes,(o&s.childLanes)===0)return null;if(n!==null&&s.child!==n.child)throw Error(r(153));if(s.child!==null){for(n=s.child,o=ur(n,n.pendingProps),s.child=o,o.return=s;n.sibling!==null;)n=n.sibling,o=o.sibling=ur(n,n.pendingProps),o.return=s;o.sibling=null}return s.child}function BS(n,s,o){switch(s.tag){case 3:km(s),As();break;case 5:Up(s);break;case 1:_t(s.type)&&da(s);break;case 4:Gu(s,s.stateNode.containerInfo);break;case 10:var u=s.type._context,f=s.memoizedProps.value;Fe(ya,u._currentValue),u._currentValue=f;break;case 13:if(u=s.memoizedState,u!==null)return u.dehydrated!==null?(Fe($e,$e.current&1),s.flags|=128,null):(o&s.child.childLanes)!==0?Tm(n,s,o):(Fe($e,$e.current&1),n=jn(n,s,o),n!==null?n.sibling:null);Fe($e,$e.current&1);break;case 19:if(u=(o&s.childLanes)!==0,(n.flags&128)!==0){if(u)return _m(n,s,o);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Fe($e,$e.current),u)break;return null;case 22:case 23:return s.lanes=0,xm(n,s,o)}return jn(n,s,o)}var Pm,yc,Am,Rm;Pm=function(n,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)n.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},yc=function(){},Am=function(n,s,o,u){var f=n.memoizedProps;if(f!==u){n=s.stateNode,Ir(gn.current);var p=null;switch(o){case"input":f=qn(n,f),u=qn(n,u),p=[];break;case"select":f=B({},f,{value:void 0}),u=B({},u,{value:void 0}),p=[];break;case"textarea":f=Gl(n,f),u=Gl(n,u),p=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=la)}Xl(o,u);var v;o=null;for(D in f)if(!u.hasOwnProperty(D)&&f.hasOwnProperty(D)&&f[D]!=null)if(D==="style"){var E=f[D];for(v in E)E.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?p||(p=[]):(p=p||[]).push(D,null));for(D in u){var C=u[D];if(E=f!=null?f[D]:void 0,u.hasOwnProperty(D)&&C!==E&&(C!=null||E!=null))if(D==="style")if(E){for(v in E)!E.hasOwnProperty(v)||C&&C.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in C)C.hasOwnProperty(v)&&E[v]!==C[v]&&(o||(o={}),o[v]=C[v])}else o||(p||(p=[]),p.push(D,o)),o=C;else D==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,E=E?E.__html:void 0,C!=null&&E!==C&&(p=p||[]).push(D,C)):D==="children"?typeof C!="string"&&typeof C!="number"||(p=p||[]).push(D,""+C):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(a.hasOwnProperty(D)?(C!=null&&D==="onScroll"&&Ve("scroll",n),p||E===C||(p=[])):(p=p||[]).push(D,C))}o&&(p=p||[]).push("style",o);var D=p;(s.updateQueue=D)&&(s.flags|=4)}},Rm=function(n,s,o,u){o!==u&&(s.flags|=4)};function Hi(n,s){if(!ze)switch(n.tailMode){case"hidden":s=n.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function gt(n){var s=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(s)for(var f=n.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=u,n.childLanes=o,s}function US(n,s,o){var u=s.pendingProps;switch(Vu(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(s),null;case 1:return _t(s.type)&&ca(),gt(s),null;case 3:return u=s.stateNode,js(),Be(Ct),Be(pt),Ju(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(ma(s)?s.flags|=4:n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,rn!==null&&(Pc(rn),rn=null))),yc(n,s),gt(s),null;case 5:Yu(s);var f=Ir(Ui.current);if(o=s.type,n!==null&&s.stateNode!=null)Am(n,s,o,u,f),n.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!u){if(s.stateNode===null)throw Error(r(166));return gt(s),null}if(n=Ir(gn.current),ma(s)){u=s.stateNode,o=s.type;var p=s.memoizedProps;switch(u[mn]=s,u[Mi]=p,n=(s.mode&1)!==0,o){case"dialog":Ve("cancel",u),Ve("close",u);break;case"iframe":case"object":case"embed":Ve("load",u);break;case"video":case"audio":for(f=0;f<ji.length;f++)Ve(ji[f],u);break;case"source":Ve("error",u);break;case"img":case"image":case"link":Ve("error",u),Ve("load",u);break;case"details":Ve("toggle",u);break;case"input":ch(u,p),Ve("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!p.multiple},Ve("invalid",u);break;case"textarea":hh(u,p),Ve("invalid",u)}Xl(o,p),f=null;for(var v in p)if(p.hasOwnProperty(v)){var E=p[v];v==="children"?typeof E=="string"?u.textContent!==E&&(p.suppressHydrationWarning!==!0&&aa(u.textContent,E,n),f=["children",E]):typeof E=="number"&&u.textContent!==""+E&&(p.suppressHydrationWarning!==!0&&aa(u.textContent,E,n),f=["children",""+E]):a.hasOwnProperty(v)&&E!=null&&v==="onScroll"&&Ve("scroll",u)}switch(o){case"input":Cn(u),fh(u,p,!0);break;case"textarea":Cn(u),mh(u);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(u.onclick=la)}u=f,s.updateQueue=u,u!==null&&(s.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=gh(o)),n==="http://www.w3.org/1999/xhtml"?o==="script"?(n=v.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=v.createElement(o,{is:u.is}):(n=v.createElement(o),o==="select"&&(v=n,u.multiple?v.multiple=!0:u.size&&(v.size=u.size))):n=v.createElementNS(n,o),n[mn]=s,n[Mi]=u,Pm(n,s,!1,!1),s.stateNode=n;e:{switch(v=Jl(o,u),o){case"dialog":Ve("cancel",n),Ve("close",n),f=u;break;case"iframe":case"object":case"embed":Ve("load",n),f=u;break;case"video":case"audio":for(f=0;f<ji.length;f++)Ve(ji[f],n);f=u;break;case"source":Ve("error",n),f=u;break;case"img":case"image":case"link":Ve("error",n),Ve("load",n),f=u;break;case"details":Ve("toggle",n),f=u;break;case"input":ch(n,u),f=qn(n,u),Ve("invalid",n);break;case"option":f=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},f=B({},u,{value:void 0}),Ve("invalid",n);break;case"textarea":hh(n,u),f=Gl(n,u),Ve("invalid",n);break;default:f=u}Xl(o,f),E=f;for(p in E)if(E.hasOwnProperty(p)){var C=E[p];p==="style"?wh(n,C):p==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&yh(n,C)):p==="children"?typeof C=="string"?(o!=="textarea"||C!=="")&&pi(n,C):typeof C=="number"&&pi(n,""+C):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?C!=null&&p==="onScroll"&&Ve("scroll",n):C!=null&&L(n,p,C,v))}switch(o){case"input":Cn(n),fh(n,u,!1);break;case"textarea":Cn(n),mh(n);break;case"option":u.value!=null&&n.setAttribute("value",""+Pe(u.value));break;case"select":n.multiple=!!u.multiple,p=u.value,p!=null?ps(n,!!u.multiple,p,!1):u.defaultValue!=null&&ps(n,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=la)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return gt(s),null;case 6:if(n&&s.stateNode!=null)Rm(n,s,n.memoizedProps,u);else{if(typeof u!="string"&&s.stateNode===null)throw Error(r(166));if(o=Ir(Ui.current),Ir(gn.current),ma(s)){if(u=s.stateNode,o=s.memoizedProps,u[mn]=s,(p=u.nodeValue!==o)&&(n=It,n!==null))switch(n.tag){case 3:aa(u.nodeValue,o,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&aa(u.nodeValue,o,(n.mode&1)!==0)}p&&(s.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[mn]=s,s.stateNode=u}return gt(s),null;case 13:if(Be($e),u=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(ze&&Vt!==null&&(s.mode&1)!==0&&(s.flags&128)===0)jp(),As(),s.flags|=98560,p=!1;else if(p=ma(s),u!==null&&u.dehydrated!==null){if(n===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[mn]=s}else As(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gt(s),p=!1}else rn!==null&&(Pc(rn),rn=null),p=!0;if(!p)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=o,s):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(s.child.flags|=8192,(s.mode&1)!==0&&(n===null||($e.current&1)!==0?nt===0&&(nt=3):Nc())),s.updateQueue!==null&&(s.flags|=4),gt(s),null);case 4:return js(),yc(n,s),n===null&&Di(s.stateNode.containerInfo),gt(s),null;case 10:return qu(s.type._context),gt(s),null;case 17:return _t(s.type)&&ca(),gt(s),null;case 19:if(Be($e),p=s.memoizedState,p===null)return gt(s),null;if(u=(s.flags&128)!==0,v=p.rendering,v===null)if(u)Hi(p,!1);else{if(nt!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(v=Sa(n),v!==null){for(s.flags|=128,Hi(p,!1),u=v.updateQueue,u!==null&&(s.updateQueue=u,s.flags|=4),s.subtreeFlags=0,u=o,o=s.child;o!==null;)p=o,n=u,p.flags&=14680066,v=p.alternate,v===null?(p.childLanes=0,p.lanes=n,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=v.childLanes,p.lanes=v.lanes,p.child=v.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=v.memoizedProps,p.memoizedState=v.memoizedState,p.updateQueue=v.updateQueue,p.type=v.type,n=v.dependencies,p.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),o=o.sibling;return Fe($e,$e.current&1|2),s.child}n=n.sibling}p.tail!==null&&Ge()>Fs&&(s.flags|=128,u=!0,Hi(p,!1),s.lanes=4194304)}else{if(!u)if(n=Sa(v),n!==null){if(s.flags|=128,u=!0,o=n.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),Hi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!ze)return gt(s),null}else 2*Ge()-p.renderingStartTime>Fs&&o!==1073741824&&(s.flags|=128,u=!0,Hi(p,!1),s.lanes=4194304);p.isBackwards?(v.sibling=s.child,s.child=v):(o=p.last,o!==null?o.sibling=v:s.child=v,p.last=v)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Ge(),s.sibling=null,o=$e.current,Fe($e,u?o&1|2:o&1),s):(gt(s),null);case 22:case 23:return Rc(),u=s.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(s.flags|=8192),u&&(s.mode&1)!==0?(Bt&1073741824)!==0&&(gt(s),s.subtreeFlags&6&&(s.flags|=8192)):gt(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function zS(n,s){switch(Vu(s),s.tag){case 1:return _t(s.type)&&ca(),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return js(),Be(Ct),Be(pt),Ju(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 5:return Yu(s),null;case 13:if(Be($e),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(r(340));As()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return Be($e),null;case 4:return js(),null;case 10:return qu(s.type._context),null;case 22:case 23:return Rc(),null;case 24:return null;default:return null}}var Ra=!1,yt=!1,$S=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Ls(n,s){var o=n.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){He(n,s,u)}else o.current=null}function vc(n,s,o){try{o()}catch(u){He(n,s,u)}}var Nm=!1;function WS(n,s){if(Ru=Yo,n=up(),bu(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var f=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var v=0,E=-1,C=-1,D=0,W=0,q=n,$=null;t:for(;;){for(var G;q!==o||f!==0&&q.nodeType!==3||(E=v+f),q!==p||u!==0&&q.nodeType!==3||(C=v+u),q.nodeType===3&&(v+=q.nodeValue.length),(G=q.firstChild)!==null;)$=q,q=G;for(;;){if(q===n)break t;if($===o&&++D===f&&(E=v),$===p&&++W===u&&(C=v),(G=q.nextSibling)!==null)break;q=$,$=q.parentNode}q=G}o=E===-1||C===-1?null:{start:E,end:C}}else o=null}o=o||{start:0,end:0}}else o=null;for(Nu={focusedElem:n,selectionRange:o},Yo=!1,Z=s;Z!==null;)if(s=Z,n=s.child,(s.subtreeFlags&1028)!==0&&n!==null)n.return=s,Z=n;else for(;Z!==null;){s=Z;try{var ee=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var re=ee.memoizedProps,Ye=ee.memoizedState,N=s.stateNode,P=N.getSnapshotBeforeUpdate(s.elementType===s.type?re:sn(s.type,re),Ye);N.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var O=s.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(K){He(s,s.return,K)}if(n=s.sibling,n!==null){n.return=s.return,Z=n;break}Z=s.return}return ee=Nm,Nm=!1,ee}function Ki(n,s,o){var u=s.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&n)===n){var p=f.destroy;f.destroy=void 0,p!==void 0&&vc(s,o,p)}f=f.next}while(f!==u)}}function Na(n,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&n)===n){var u=o.create;o.destroy=u()}o=o.next}while(o!==s)}}function wc(n){var s=n.ref;if(s!==null){var o=n.stateNode;switch(n.tag){case 5:n=o;break;default:n=o}typeof s=="function"?s(n):s.current=n}}function Om(n){var s=n.alternate;s!==null&&(n.alternate=null,Om(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&(delete s[mn],delete s[Mi],delete s[Lu],delete s[CS],delete s[_S])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function jm(n){return n.tag===5||n.tag===3||n.tag===4}function Dm(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||jm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function xc(n,s,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(n,s):o.insertBefore(n,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(n,o)):(s=o,s.appendChild(n)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=la));else if(u!==4&&(n=n.child,n!==null))for(xc(n,s,o),n=n.sibling;n!==null;)xc(n,s,o),n=n.sibling}function Sc(n,s,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,s?o.insertBefore(n,s):o.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(Sc(n,s,o),n=n.sibling;n!==null;)Sc(n,s,o),n=n.sibling}var lt=null,on=!1;function sr(n,s,o){for(o=o.child;o!==null;)Lm(n,s,o),o=o.sibling}function Lm(n,s,o){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Wo,o)}catch{}switch(o.tag){case 5:yt||Ls(o,s);case 6:var u=lt,f=on;lt=null,sr(n,s,o),lt=u,on=f,lt!==null&&(on?(n=lt,o=o.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)):lt.removeChild(o.stateNode));break;case 18:lt!==null&&(on?(n=lt,o=o.stateNode,n.nodeType===8?Du(n.parentNode,o):n.nodeType===1&&Du(n,o),Ti(n)):Du(lt,o.stateNode));break;case 4:u=lt,f=on,lt=o.stateNode.containerInfo,on=!0,sr(n,s,o),lt=u,on=f;break;case 0:case 11:case 14:case 15:if(!yt&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var p=f,v=p.destroy;p=p.tag,v!==void 0&&((p&2)!==0||(p&4)!==0)&&vc(o,s,v),f=f.next}while(f!==u)}sr(n,s,o);break;case 1:if(!yt&&(Ls(o,s),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(E){He(o,s,E)}sr(n,s,o);break;case 21:sr(n,s,o);break;case 22:o.mode&1?(yt=(u=yt)||o.memoizedState!==null,sr(n,s,o),yt=u):sr(n,s,o);break;default:sr(n,s,o)}}function Mm(n){var s=n.updateQueue;if(s!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new $S),s.forEach(function(u){var f=ZS.bind(null,n,u);o.has(u)||(o.add(u),u.then(f,f))})}}function an(n,s){var o=s.deletions;if(o!==null)for(var u=0;u<o.length;u++){var f=o[u];try{var p=n,v=s,E=v;e:for(;E!==null;){switch(E.tag){case 5:lt=E.stateNode,on=!1;break e;case 3:lt=E.stateNode.containerInfo,on=!0;break e;case 4:lt=E.stateNode.containerInfo,on=!0;break e}E=E.return}if(lt===null)throw Error(r(160));Lm(p,v,f),lt=null,on=!1;var C=f.alternate;C!==null&&(C.return=null),f.return=null}catch(D){He(f,s,D)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Fm(s,n),s=s.sibling}function Fm(n,s){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(an(s,n),vn(n),u&4){try{Ki(3,n,n.return),Na(3,n)}catch(re){He(n,n.return,re)}try{Ki(5,n,n.return)}catch(re){He(n,n.return,re)}}break;case 1:an(s,n),vn(n),u&512&&o!==null&&Ls(o,o.return);break;case 5:if(an(s,n),vn(n),u&512&&o!==null&&Ls(o,o.return),n.flags&32){var f=n.stateNode;try{pi(f,"")}catch(re){He(n,n.return,re)}}if(u&4&&(f=n.stateNode,f!=null)){var p=n.memoizedProps,v=o!==null?o.memoizedProps:p,E=n.type,C=n.updateQueue;if(n.updateQueue=null,C!==null)try{E==="input"&&p.type==="radio"&&p.name!=null&&dh(f,p),Jl(E,v);var D=Jl(E,p);for(v=0;v<C.length;v+=2){var W=C[v],q=C[v+1];W==="style"?wh(f,q):W==="dangerouslySetInnerHTML"?yh(f,q):W==="children"?pi(f,q):L(f,W,q,D)}switch(E){case"input":Kl(f,p);break;case"textarea":ph(f,p);break;case"select":var $=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var G=p.value;G!=null?ps(f,!!p.multiple,G,!1):$!==!!p.multiple&&(p.defaultValue!=null?ps(f,!!p.multiple,p.defaultValue,!0):ps(f,!!p.multiple,p.multiple?[]:"",!1))}f[Mi]=p}catch(re){He(n,n.return,re)}}break;case 6:if(an(s,n),vn(n),u&4){if(n.stateNode===null)throw Error(r(162));f=n.stateNode,p=n.memoizedProps;try{f.nodeValue=p}catch(re){He(n,n.return,re)}}break;case 3:if(an(s,n),vn(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Ti(s.containerInfo)}catch(re){He(n,n.return,re)}break;case 4:an(s,n),vn(n);break;case 13:an(s,n),vn(n),f=n.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(Ec=Ge())),u&4&&Mm(n);break;case 22:if(W=o!==null&&o.memoizedState!==null,n.mode&1?(yt=(D=yt)||W,an(s,n),yt=D):an(s,n),vn(n),u&8192){if(D=n.memoizedState!==null,(n.stateNode.isHidden=D)&&!W&&(n.mode&1)!==0)for(Z=n,W=n.child;W!==null;){for(q=Z=W;Z!==null;){switch($=Z,G=$.child,$.tag){case 0:case 11:case 14:case 15:Ki(4,$,$.return);break;case 1:Ls($,$.return);var ee=$.stateNode;if(typeof ee.componentWillUnmount=="function"){u=$,o=$.return;try{s=u,ee.props=s.memoizedProps,ee.state=s.memoizedState,ee.componentWillUnmount()}catch(re){He(u,o,re)}}break;case 5:Ls($,$.return);break;case 22:if($.memoizedState!==null){Bm(q);continue}}G!==null?(G.return=$,Z=G):Bm(q)}W=W.sibling}e:for(W=null,q=n;;){if(q.tag===5){if(W===null){W=q;try{f=q.stateNode,D?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(E=q.stateNode,C=q.memoizedProps.style,v=C!=null&&C.hasOwnProperty("display")?C.display:null,E.style.display=vh("display",v))}catch(re){He(n,n.return,re)}}}else if(q.tag===6){if(W===null)try{q.stateNode.nodeValue=D?"":q.memoizedProps}catch(re){He(n,n.return,re)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===n)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===n)break e;for(;q.sibling===null;){if(q.return===null||q.return===n)break e;W===q&&(W=null),q=q.return}W===q&&(W=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:an(s,n),vn(n),u&4&&Mm(n);break;case 21:break;default:an(s,n),vn(n)}}function vn(n){var s=n.flags;if(s&2){try{e:{for(var o=n.return;o!==null;){if(jm(o)){var u=o;break e}o=o.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(pi(f,""),u.flags&=-33);var p=Dm(n);Sc(n,p,f);break;case 3:case 4:var v=u.stateNode.containerInfo,E=Dm(n);xc(n,E,v);break;default:throw Error(r(161))}}catch(C){He(n,n.return,C)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function qS(n,s,o){Z=n,Im(n)}function Im(n,s,o){for(var u=(n.mode&1)!==0;Z!==null;){var f=Z,p=f.child;if(f.tag===22&&u){var v=f.memoizedState!==null||Ra;if(!v){var E=f.alternate,C=E!==null&&E.memoizedState!==null||yt;E=Ra;var D=yt;if(Ra=v,(yt=C)&&!D)for(Z=f;Z!==null;)v=Z,C=v.child,v.tag===22&&v.memoizedState!==null?Um(f):C!==null?(C.return=v,Z=C):Um(f);for(;p!==null;)Z=p,Im(p),p=p.sibling;Z=f,Ra=E,yt=D}Vm(n)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,Z=p):Vm(n)}}function Vm(n){for(;Z!==null;){var s=Z;if((s.flags&8772)!==0){var o=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:yt||Na(5,s);break;case 1:var u=s.stateNode;if(s.flags&4&&!yt)if(o===null)u.componentDidMount();else{var f=s.elementType===s.type?o.memoizedProps:sn(s.type,o.memoizedProps);u.componentDidUpdate(f,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var p=s.updateQueue;p!==null&&Bp(s,p,u);break;case 3:var v=s.updateQueue;if(v!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}Bp(s,v,o)}break;case 5:var E=s.stateNode;if(o===null&&s.flags&4){o=E;var C=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&o.focus();break;case"img":C.src&&(o.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var D=s.alternate;if(D!==null){var W=D.memoizedState;if(W!==null){var q=W.dehydrated;q!==null&&Ti(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}yt||s.flags&512&&wc(s)}catch($){He(s,s.return,$)}}if(s===n){Z=null;break}if(o=s.sibling,o!==null){o.return=s.return,Z=o;break}Z=s.return}}function Bm(n){for(;Z!==null;){var s=Z;if(s===n){Z=null;break}var o=s.sibling;if(o!==null){o.return=s.return,Z=o;break}Z=s.return}}function Um(n){for(;Z!==null;){var s=Z;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Na(4,s)}catch(C){He(s,o,C)}break;case 1:var u=s.stateNode;if(typeof u.componentDidMount=="function"){var f=s.return;try{u.componentDidMount()}catch(C){He(s,f,C)}}var p=s.return;try{wc(s)}catch(C){He(s,p,C)}break;case 5:var v=s.return;try{wc(s)}catch(C){He(s,v,C)}}}catch(C){He(s,s.return,C)}if(s===n){Z=null;break}var E=s.sibling;if(E!==null){E.return=s.return,Z=E;break}Z=s.return}}var HS=Math.ceil,Oa=M.ReactCurrentDispatcher,bc=M.ReactCurrentOwner,Kt=M.ReactCurrentBatchConfig,_e=0,it=null,Ze=null,ut=0,Bt=0,Ms=Zn(0),nt=0,Qi=null,Br=0,ja=0,kc=0,Gi=null,At=null,Ec=0,Fs=1/0,Dn=null,Da=!1,Tc=null,ir=null,La=!1,or=null,Ma=0,Yi=0,Cc=null,Fa=-1,Ia=0;function Et(){return(_e&6)!==0?Ge():Fa!==-1?Fa:Fa=Ge()}function ar(n){return(n.mode&1)===0?1:(_e&2)!==0&&ut!==0?ut&-ut:AS.transition!==null?(Ia===0&&(Ia=Dh()),Ia):(n=je,n!==0||(n=window.event,n=n===void 0?16:$h(n.type)),n)}function ln(n,s,o,u){if(50<Yi)throw Yi=0,Cc=null,Error(r(185));xi(n,o,u),((_e&2)===0||n!==it)&&(n===it&&((_e&2)===0&&(ja|=o),nt===4&&lr(n,ut)),Rt(n,u),o===1&&_e===0&&(s.mode&1)===0&&(Fs=Ge()+500,fa&&tr()))}function Rt(n,s){var o=n.callbackNode;A1(n,s);var u=Ko(n,n===it?ut:0);if(u===0)o!==null&&Nh(o),n.callbackNode=null,n.callbackPriority=0;else if(s=u&-u,n.callbackPriority!==s){if(o!=null&&Nh(o),s===1)n.tag===0?PS($m.bind(null,n)):Pp($m.bind(null,n)),ES(function(){(_e&6)===0&&tr()}),o=null;else{switch(Lh(u)){case 1:o=iu;break;case 4:o=Oh;break;case 16:o=$o;break;case 536870912:o=jh;break;default:o=$o}o=Xm(o,zm.bind(null,n))}n.callbackPriority=s,n.callbackNode=o}}function zm(n,s){if(Fa=-1,Ia=0,(_e&6)!==0)throw Error(r(327));var o=n.callbackNode;if(Is()&&n.callbackNode!==o)return null;var u=Ko(n,n===it?ut:0);if(u===0)return null;if((u&30)!==0||(u&n.expiredLanes)!==0||s)s=Va(n,u);else{s=u;var f=_e;_e|=2;var p=qm();(it!==n||ut!==s)&&(Dn=null,Fs=Ge()+500,zr(n,s));do try{GS();break}catch(E){Wm(n,E)}while(!0);Wu(),Oa.current=p,_e=f,Ze!==null?s=0:(it=null,ut=0,s=nt)}if(s!==0){if(s===2&&(f=ou(n),f!==0&&(u=f,s=_c(n,f))),s===1)throw o=Qi,zr(n,0),lr(n,u),Rt(n,Ge()),o;if(s===6)lr(n,u);else{if(f=n.current.alternate,(u&30)===0&&!KS(f)&&(s=Va(n,u),s===2&&(p=ou(n),p!==0&&(u=p,s=_c(n,p))),s===1))throw o=Qi,zr(n,0),lr(n,u),Rt(n,Ge()),o;switch(n.finishedWork=f,n.finishedLanes=u,s){case 0:case 1:throw Error(r(345));case 2:$r(n,At,Dn);break;case 3:if(lr(n,u),(u&130023424)===u&&(s=Ec+500-Ge(),10<s)){if(Ko(n,0)!==0)break;if(f=n.suspendedLanes,(f&u)!==u){Et(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=ju($r.bind(null,n,At,Dn),s);break}$r(n,At,Dn);break;case 4:if(lr(n,u),(u&4194240)===u)break;for(s=n.eventTimes,f=-1;0<u;){var v=31-tn(u);p=1<<v,v=s[v],v>f&&(f=v),u&=~p}if(u=f,u=Ge()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*HS(u/1960))-u,10<u){n.timeoutHandle=ju($r.bind(null,n,At,Dn),u);break}$r(n,At,Dn);break;case 5:$r(n,At,Dn);break;default:throw Error(r(329))}}}return Rt(n,Ge()),n.callbackNode===o?zm.bind(null,n):null}function _c(n,s){var o=Gi;return n.current.memoizedState.isDehydrated&&(zr(n,s).flags|=256),n=Va(n,s),n!==2&&(s=At,At=o,s!==null&&Pc(s)),n}function Pc(n){At===null?At=n:At.push.apply(At,n)}function KS(n){for(var s=n;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var f=o[u],p=f.getSnapshot;f=f.value;try{if(!nn(p(),f))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function lr(n,s){for(s&=~kc,s&=~ja,n.suspendedLanes|=s,n.pingedLanes&=~s,n=n.expirationTimes;0<s;){var o=31-tn(s),u=1<<o;n[o]=-1,s&=~u}}function $m(n){if((_e&6)!==0)throw Error(r(327));Is();var s=Ko(n,0);if((s&1)===0)return Rt(n,Ge()),null;var o=Va(n,s);if(n.tag!==0&&o===2){var u=ou(n);u!==0&&(s=u,o=_c(n,u))}if(o===1)throw o=Qi,zr(n,0),lr(n,s),Rt(n,Ge()),o;if(o===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=s,$r(n,At,Dn),Rt(n,Ge()),null}function Ac(n,s){var o=_e;_e|=1;try{return n(s)}finally{_e=o,_e===0&&(Fs=Ge()+500,fa&&tr())}}function Ur(n){or!==null&&or.tag===0&&(_e&6)===0&&Is();var s=_e;_e|=1;var o=Kt.transition,u=je;try{if(Kt.transition=null,je=1,n)return n()}finally{je=u,Kt.transition=o,_e=s,(_e&6)===0&&tr()}}function Rc(){Bt=Ms.current,Be(Ms)}function zr(n,s){n.finishedWork=null,n.finishedLanes=0;var o=n.timeoutHandle;if(o!==-1&&(n.timeoutHandle=-1,kS(o)),Ze!==null)for(o=Ze.return;o!==null;){var u=o;switch(Vu(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&ca();break;case 3:js(),Be(Ct),Be(pt),Ju();break;case 5:Yu(u);break;case 4:js();break;case 13:Be($e);break;case 19:Be($e);break;case 10:qu(u.type._context);break;case 22:case 23:Rc()}o=o.return}if(it=n,Ze=n=ur(n.current,null),ut=Bt=s,nt=0,Qi=null,kc=ja=Br=0,At=Gi=null,Fr!==null){for(s=0;s<Fr.length;s++)if(o=Fr[s],u=o.interleaved,u!==null){o.interleaved=null;var f=u.next,p=o.pending;if(p!==null){var v=p.next;p.next=f,u.next=v}o.pending=u}Fr=null}return n}function Wm(n,s){do{var o=Ze;try{if(Wu(),ba.current=Ca,ka){for(var u=We.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}ka=!1}if(Vr=0,st=tt=We=null,zi=!1,$i=0,bc.current=null,o===null||o.return===null){nt=1,Qi=s,Ze=null;break}e:{var p=n,v=o.return,E=o,C=s;if(s=ut,E.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var D=C,W=E,q=W.tag;if((W.mode&1)===0&&(q===0||q===11||q===15)){var $=W.alternate;$?(W.updateQueue=$.updateQueue,W.memoizedState=$.memoizedState,W.lanes=$.lanes):(W.updateQueue=null,W.memoizedState=null)}var G=mm(v);if(G!==null){G.flags&=-257,gm(G,v,E,p,s),G.mode&1&&pm(p,D,s),s=G,C=D;var ee=s.updateQueue;if(ee===null){var re=new Set;re.add(C),s.updateQueue=re}else ee.add(C);break e}else{if((s&1)===0){pm(p,D,s),Nc();break e}C=Error(r(426))}}else if(ze&&E.mode&1){var Ye=mm(v);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),gm(Ye,v,E,p,s),zu(Ds(C,E));break e}}p=C=Ds(C,E),nt!==4&&(nt=2),Gi===null?Gi=[p]:Gi.push(p),p=v;do{switch(p.tag){case 3:p.flags|=65536,s&=-s,p.lanes|=s;var N=fm(p,C,s);Vp(p,N);break e;case 1:E=C;var P=p.type,O=p.stateNode;if((p.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(ir===null||!ir.has(O)))){p.flags|=65536,s&=-s,p.lanes|=s;var K=hm(p,E,s);Vp(p,K);break e}}p=p.return}while(p!==null)}Km(o)}catch(ie){s=ie,Ze===o&&o!==null&&(Ze=o=o.return);continue}break}while(!0)}function qm(){var n=Oa.current;return Oa.current=Ca,n===null?Ca:n}function Nc(){(nt===0||nt===3||nt===2)&&(nt=4),it===null||(Br&268435455)===0&&(ja&268435455)===0||lr(it,ut)}function Va(n,s){var o=_e;_e|=2;var u=qm();(it!==n||ut!==s)&&(Dn=null,zr(n,s));do try{QS();break}catch(f){Wm(n,f)}while(!0);if(Wu(),_e=o,Oa.current=u,Ze!==null)throw Error(r(261));return it=null,ut=0,nt}function QS(){for(;Ze!==null;)Hm(Ze)}function GS(){for(;Ze!==null&&!x1();)Hm(Ze)}function Hm(n){var s=Ym(n.alternate,n,Bt);n.memoizedProps=n.pendingProps,s===null?Km(n):Ze=s,bc.current=null}function Km(n){var s=n;do{var o=s.alternate;if(n=s.return,(s.flags&32768)===0){if(o=US(o,s,Bt),o!==null){Ze=o;return}}else{if(o=zS(o,s),o!==null){o.flags&=32767,Ze=o;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{nt=6,Ze=null;return}}if(s=s.sibling,s!==null){Ze=s;return}Ze=s=n}while(s!==null);nt===0&&(nt=5)}function $r(n,s,o){var u=je,f=Kt.transition;try{Kt.transition=null,je=1,YS(n,s,o,u)}finally{Kt.transition=f,je=u}return null}function YS(n,s,o,u){do Is();while(or!==null);if((_e&6)!==0)throw Error(r(327));o=n.finishedWork;var f=n.finishedLanes;if(o===null)return null;if(n.finishedWork=null,n.finishedLanes=0,o===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var p=o.lanes|o.childLanes;if(R1(n,p),n===it&&(Ze=it=null,ut=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||La||(La=!0,Xm($o,function(){return Is(),null})),p=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||p){p=Kt.transition,Kt.transition=null;var v=je;je=1;var E=_e;_e|=4,bc.current=null,WS(n,o),Fm(o,n),gS(Nu),Yo=!!Ru,Nu=Ru=null,n.current=o,qS(o),S1(),_e=E,je=v,Kt.transition=p}else n.current=o;if(La&&(La=!1,or=n,Ma=f),p=n.pendingLanes,p===0&&(ir=null),E1(o.stateNode),Rt(n,Ge()),s!==null)for(u=n.onRecoverableError,o=0;o<s.length;o++)f=s[o],u(f.value,{componentStack:f.stack,digest:f.digest});if(Da)throw Da=!1,n=Tc,Tc=null,n;return(Ma&1)!==0&&n.tag!==0&&Is(),p=n.pendingLanes,(p&1)!==0?n===Cc?Yi++:(Yi=0,Cc=n):Yi=0,tr(),null}function Is(){if(or!==null){var n=Lh(Ma),s=Kt.transition,o=je;try{if(Kt.transition=null,je=16>n?16:n,or===null)var u=!1;else{if(n=or,or=null,Ma=0,(_e&6)!==0)throw Error(r(331));var f=_e;for(_e|=4,Z=n.current;Z!==null;){var p=Z,v=p.child;if((Z.flags&16)!==0){var E=p.deletions;if(E!==null){for(var C=0;C<E.length;C++){var D=E[C];for(Z=D;Z!==null;){var W=Z;switch(W.tag){case 0:case 11:case 15:Ki(8,W,p)}var q=W.child;if(q!==null)q.return=W,Z=q;else for(;Z!==null;){W=Z;var $=W.sibling,G=W.return;if(Om(W),W===D){Z=null;break}if($!==null){$.return=G,Z=$;break}Z=G}}}var ee=p.alternate;if(ee!==null){var re=ee.child;if(re!==null){ee.child=null;do{var Ye=re.sibling;re.sibling=null,re=Ye}while(re!==null)}}Z=p}}if((p.subtreeFlags&2064)!==0&&v!==null)v.return=p,Z=v;else e:for(;Z!==null;){if(p=Z,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Ki(9,p,p.return)}var N=p.sibling;if(N!==null){N.return=p.return,Z=N;break e}Z=p.return}}var P=n.current;for(Z=P;Z!==null;){v=Z;var O=v.child;if((v.subtreeFlags&2064)!==0&&O!==null)O.return=v,Z=O;else e:for(v=P;Z!==null;){if(E=Z,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Na(9,E)}}catch(ie){He(E,E.return,ie)}if(E===v){Z=null;break e}var K=E.sibling;if(K!==null){K.return=E.return,Z=K;break e}Z=E.return}}if(_e=f,tr(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Wo,n)}catch{}u=!0}return u}finally{je=o,Kt.transition=s}}return!1}function Qm(n,s,o){s=Ds(o,s),s=fm(n,s,1),n=rr(n,s,1),s=Et(),n!==null&&(xi(n,1,s),Rt(n,s))}function He(n,s,o){if(n.tag===3)Qm(n,n,o);else for(;s!==null;){if(s.tag===3){Qm(s,n,o);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ir===null||!ir.has(u))){n=Ds(o,n),n=hm(s,n,1),s=rr(s,n,1),n=Et(),s!==null&&(xi(s,1,n),Rt(s,n));break}}s=s.return}}function XS(n,s,o){var u=n.pingCache;u!==null&&u.delete(s),s=Et(),n.pingedLanes|=n.suspendedLanes&o,it===n&&(ut&o)===o&&(nt===4||nt===3&&(ut&130023424)===ut&&500>
vendor: 4,508 bytes, line 40
40Ge()-Ec?zr(n,0):kc|=o),Rt(n,s)}function Gm(n,s){s===0&&((n.mode&1)===0?s=1:(s=Ho,Ho<<=1,(Ho&130023424)===0&&(Ho=4194304)));var o=Et();n=Nn(n,s),n!==null&&(xi(n,s,o),Rt(n,o))}function JS(n){var s=n.memoizedState,o=0;s!==null&&(o=s.retryLane),Gm(n,o)}function ZS(n,s){var o=0;switch(n.tag){case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(s),Gm(n,o)}var Ym;Ym=function(n,s,o){if(n!==null)if(n.memoizedProps!==s.pendingProps||Ct.current)Pt=!0;else{if((n.lanes&o)===0&&(s.flags&128)===0)return Pt=!1,BS(n,s,o);Pt=(n.flags&131072)!==0}else Pt=!1,ze&&(s.flags&1048576)!==0&&Ap(s,pa,s.index);switch(s.lanes=0,s.tag){case 2:var u=s.type;Aa(n,s),n=s.pendingProps;var f=Cs(s,pt.current);Os(s,o),f=tc(null,s,u,n,f,o);var p=nc();return s.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,_t(u)?(p=!0,da(s)):p=!1,s.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Qu(s),f.updater=_a,s.stateNode=f,f._reactInternals=s,lc(s,u,n,o),s=fc(null,s,u,!0,p,o)):(s.tag=0,ze&&p&&Iu(s),kt(null,s,f,o),s=s.child),s;case 16:u=s.elementType;e:{switch(Aa(n,s),n=s.pendingProps,f=u._init,u=f(u._payload),s.type=u,f=s.tag=tb(u),n=sn(u,n),f){case 0:s=dc(null,s,u,n,o);break e;case 1:s=bm(null,s,u,n,o);break e;case 11:s=ym(null,s,u,n,o);break e;case 14:s=vm(null,s,u,sn(u.type,n),o);break e}throw Error(r(306,u,""))}return s;case 0:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:sn(u,f),dc(n,s,u,f,o);case 1:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:sn(u,f),bm(n,s,u,f,o);case 3:e:{if(km(s),n===null)throw Error(r(387));u=s.pendingProps,p=s.memoizedState,f=p.element,Ip(n,s),xa(s,u,null,o);var v=s.memoizedState;if(u=v.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){f=Ds(Error(r(423)),s),s=Em(n,s,u,o,f);break e}else if(u!==f){f=Ds(Error(r(424)),s),s=Em(n,s,u,o,f);break e}else for(Vt=Jn(s.stateNode.containerInfo.firstChild),It=s,ze=!0,rn=null,o=Mp(s,null,u,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(As(),u===f){s=jn(n,s,o);break e}kt(n,s,u,o)}s=s.child}return s;case 5:return Up(s),n===null&&Uu(s),u=s.type,f=s.pendingProps,p=n!==null?n.memoizedProps:null,v=f.children,Ou(u,f)?v=null:p!==null&&Ou(u,p)&&(s.flags|=32),Sm(n,s),kt(n,s,v,o),s.child;case 6:return n===null&&Uu(s),null;case 13:return Tm(n,s,o);case 4:return Gu(s,s.stateNode.containerInfo),u=s.pendingProps,n===null?s.child=Rs(s,null,u,o):kt(n,s,u,o),s.child;case 11:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:sn(u,f),ym(n,s,u,f,o);case 7:return kt(n,s,s.pendingProps,o),s.child;case 8:return kt(n,s,s.pendingProps.children,o),s.child;case 12:return kt(n,s,s.pendingProps.children,o),s.child;case 10:e:{if(u=s.type._context,f=s.pendingProps,p=s.memoizedProps,v=f.value,Fe(ya,u._currentValue),u._currentValue=v,p!==null)if(nn(p.value,v)){if(p.children===f.children&&!Ct.current){s=jn(n,s,o);break e}}else for(p=s.child,p!==null&&(p.return=s);p!==null;){var E=p.dependencies;if(E!==null){v=p.child;for(var C=E.firstContext;C!==null;){if(C.context===u){if(p.tag===1){C=On(-1,o&-o),C.tag=2;var D=p.updateQueue;if(D!==null){D=D.shared;var W=D.pending;W===null?C.next=C:(C.next=W.next,W.next=C),D.pending=C}}p.lanes|=o,C=p.alternate,C!==null&&(C.lanes|=o),Hu(p.return,o,s),E.lanes|=o;break}C=C.next}}else if(p.tag===10)v=p.type===s.type?null:p.child;else if(p.tag===18){if(v=p.return,v===null)throw Error(r(341));v.lanes|=o,E=v.alternate,E!==null&&(E.lanes|=o),Hu(v,o,s),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===s){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}kt(n,s,f.children,o),s=s.child}return s;case 9:return f=s.type,u=s.pendingProps.children,Os(s,o),f=qt(f),u=u(f),s.flags|=1,kt(n,s,u,o),s.child;case 14:return u=s.type,f=sn(u,s.pendingProps),f=sn(u.type,f),vm(n,s,u,f,o);case 15:return wm(n,s,s.type,s.pendingProps,o);case 17:return u=s.type,f=s.pendingProps,f=s.elementType===u?f:sn(u,f),Aa(n,s),s.tag=1,_t(u)?(n=!0,da(s)):n=!1,Os(s,o),cm(s,u,f),lc(s,u,f,o),fc(null,s,u,!0,n,o);case 19:return _m(n,s,o);case 22:return xm(n,s,o)}throw Error(r(156,s.tag))};function Xm(n,s){return Rh(n,s)}function eb(n,s,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 6,765 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(n,s,o,u){return new eb(n,s,o,u)}function Oc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function tb(n){if(typeof n=="function")return Oc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===Ce)return 11;if(n===Me)return 14}return 2}function ur(n,s){var o=n.alternate;return o===null?(o=Qt(n.tag,s,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=s,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&14680064,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,s=n.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o}function Ba(n,s,o,u,f,p){var v=2;if(u=n,typeof n=="function")Oc(n)&&(v=1);else if(typeof n=="string")v=5;else e:switch(n){case Y:return Wr(o.children,f,p,s);case F:v=8,f|=8;break;case J:return n=Qt(12,o,s,f|2),n.elementType=J,n.lanes=p,n;case De:return n=Qt(13,o,s,f),n.elementType=De,n.lanes=p,n;case Re:return n=Qt(19,o,s,f),n.elementType=Re,n.lanes=p,n;case fe:return Ua(o,f,p,s);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case me:v=10;break e;case de:v=9;break e;case Ce:v=11;break e;case Me:v=14;break e;case xe:v=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return s=Qt(v,o,s,f),s.elementType=n,s.type=u,s.lanes=p,s}function Wr(n,s,o,u){return n=Qt(7,n,u,s),n.lanes=o,n}function Ua(n,s,o,u){return n=Qt(22,n,u,s),n.elementType=fe,n.lanes=o,n.stateNode={isHidden:!1},n}function jc(n,s,o){return n=Qt(6,n,null,s),n.lanes=o,n}function Dc(n,s,o){return s=Qt(4,n.children!==null?n.children:[],n.key,s),s.lanes=o,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}function nb(n,s,o,u,f){this.tag=s,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=au(0),this.expirationTimes=au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=au(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function Lc(n,s,o,u,f,p,v,E,C){return n=new nb(n,s,o,E,C),s===1?(s=1,p===!0&&(s|=8)):s=0,p=Qt(3,null,null,s),n.current=p,p.stateNode=n,p.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qu(p),n}function rb(n,s,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Q,key:u==null?null:""+u,children:n,containerInfo:s,implementation:o}}function Jm(n){if(!n)return er;n=n._reactInternals;e:{if(Or(n)!==n||n.tag!==1)throw Error(r(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(_t(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(n.tag===1){var o=n.type;if(_t(o))return Cp(n,o,s)}return s}function Zm(n,s,o,u,f,p,v,E,C){return n=Lc(o,u,!0,n,f,p,v,E,C),n.context=Jm(null),o=n.current,u=Et(),f=ar(o),p=On(u,f),p.callback=s??null,rr(o,p,f),n.current.lanes=f,xi(n,f,u),Rt(n,u),n}function za(n,s,o,u){var f=s.current,p=Et(),v=ar(f);return o=Jm(o),s.context===null?s.context=o:s.pendingContext=o,s=On(p,v),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=rr(f,s,v),n!==null&&(ln(n,f,v,p),wa(n,f,v)),v}function $a(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function eg(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<s?o:s}}function Mc(n,s){eg(n,s),(n=n.alternate)&&eg(n,s)}function sb(){return null}var tg=typeof reportError=="function"?reportError:function(n){console.error(n)};function Fc(n){this._internalRoot=n}Wa.prototype.render=Fc.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(r(409));za(n,s,null,null)},Wa.prototype.unmount=Fc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;Ur(function(){za(null,n,null,null)}),s[_n]=null}};function Wa(n){this._internalRoot=n}Wa.prototype.unstable_scheduleHydration=function(n){if(n){var s=Ih();n={blockedOn:null,target:n,priority:s};for(var o=0;o<Gn.length&&s!==0&&s<Gn[o].priority;o++);Gn.splice(o,0,n),o===0&&Uh(n)}};function Ic(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function qa(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function ng(){}function ib(n,s,o,u,f){if(f){if(typeof u=="function"){var p=u;u=function(){var D=$a(v);p.call(D)}}var v=Zm(s,u,n,0,null,!1,!1,"",ng);return n._reactRootContainer=v,n[_n]=v.current,Di(n.nodeType===8?n.parentNode:n),Ur(),v}for(;f=n.lastChild;)n.removeChild(f);if(typeof u=="function"){var E=u;u=function(){var D=$a(C);E.call(D)}}var C=Lc(n,0,!1,null,null,!1,!1,"",ng);return n._reactRootContainer=C,n[_n]=C.current,Di(n.nodeType===8?n.parentNode:n),Ur(function(){za(s,C,o,u)}),C}function Ha(n,s,o,u,f){var p=o._reactRootContainer;if(p){var v=p;if(typeof f=="function"){var E=f;f=function(){var C=$a(v);E.call(C)}}za(s,v,n,f)}else v=ib(o,s,n,f,u);return $a(v)}Mh=function(n){switch(n.tag){case 3:var s=n.stateNode;if(s.current.memoizedState.isDehydrated){var o=wi(s.pendingLanes);o!==0&&(lu(s,o|1),Rt(s,Ge()),(_e&6)===0&&(Fs=Ge()+500,tr()))}break;case 13:Ur(function(){var u=Nn(n,1);if(u!==null){var f=Et();ln(u,n,1,f)}}),Mc(n,1)}},uu=function(n){if(n.tag===13){var s=Nn(n,134217728);if(s!==null){var o=Et();ln(s,n,134217728,o)}Mc(n,134217728)}},Fh=function(n){if(n.tag===13){var s=ar(n),o=Nn(n,s);if(o!==null){var u=Et();ln(o,n,s,u)}Mc(n,s)}},Ih=function(){return je},Vh=function(n,s){var o=je;try{return je=n,s()}finally{je=o}},tu=function(n,s,o){switch(s){case"input":if(Kl(n,o),s=o.name,o.type==="radio"&&s!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var u=o[s];if(u!==n&&u.form===n.form){var f=ua(u);if(!f)throw Error(r(90));Nr(u),Kl(u,f)}}}break;case"textarea":ph(n,o);break;case"select":s=o.value,s!=null&&ps(n,!!o.multiple,s,!1)}},kh=Ac,Eh=Ur;var ob={usingClientEntryPoint:!1,Events:[Fi,Es,ua,Sh,bh,Ac]}
40,Xi={findFiberByHostInstance:jr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ab={bundleType:Xi.bundleType,version:Xi.version,rendererPackageName:Xi.rendererPackageName,rendererConfig:Xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Ph(n),n===null?null:n.stateNode},findFiberByHostInstance:Xi.findFiberByHostInstance||sb,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 Ka=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ka.isDisabled&&Ka.supportsFiber)try{Wo=Ka.inject(ab),pn=Ka}catch{}}return Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ob,Nt.createPortal=function(n,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ic(s))throw Error(r(200));return rb(n,s,null,o)},Nt.createRoot=function(n,s){if(!Ic(n))throw Error(r(299));var o=!1,u="",f=tg;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onRecoverableError!==void 0&&(f=s.onRecoverableError)),s=Lc(n,1,!1,null,null,o,!1,u,f),n[_n]=s.current,Di(n.nodeType===8?n.parentNode:n),new Fc(s)},Nt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Ph(s),n=n===null?null:n.stateNode,n},Nt.flushSync=function(n){return Ur(n)},Nt.hydrate=function(n,s,o){if(!qa(s))throw Error(r(200));return Ha(null,n,s,!0,o)},Nt.hydrateRoot=function(n,s,o){if(!Ic(n))throw Error(r(405));var u=o!=null&&o.hydratedSources||null,f=!1,p="",v=tg;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),s=Zm(s,null,n,1,o??null,f,!1,p,v),n[_n]=s.current,Di(n),u)for(n=0;n<u.length;n++)o=u[n],f=o._getVersion,f=f(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,f]:s.mutableSourceEagerHydrationData.push(o,f);return new Wa(s)},Nt.render=function(n,s,o){if(!qa(s))throw Error(r(200));return Ha(null,n,s,!1,o)},Nt.unmountComponentAtNode=function(n){if(!qa(n))throw Error(r(40));return n._reactRootContainer?(Ur(function(){Ha(null,null,n,!1,function(){n._reactRootContainer=null,n[_n]=null})}),!0):!1},Nt.unstable_batchedUpdates=Ac,Nt.unstable_renderSubtreeIntoContainer=function(n,s,o,u){if(!qa(o))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Ha(n,s,o,!1,u)},Nt.version="18.3.1-next-f1338f8080-20240426",Nt}var dg;function e0(){if(dg)return zc.exports;dg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),zc.exports=yb(),zc.exports}var fg;function vb(){if(fg)return Ga;fg=1;var t=e0();return Ga.createRoot=t.createRoot,Ga.hydrateRoot=t.hydrateRoot,Ga}var wb=vb();const xb=Jv(wb),Sb=20,bb=1e6,Vn={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let qc=0;function kb(){return qc=(qc+1)%Number.MAX_VALUE,qc.toString()}const Hc=new Map,hg=t=>{if(Hc.has(t))return;const e=setTimeout(()=>{Hc.delete(t),fo({type:Vn.REMOVE_TOAST,toastId:t})},bb);Hc.set(t,e)},Eb=(t,e)=>{switch(e.type){case Vn.ADD_TOAST:return{...t,toasts:[e.toast,...t.toasts].slice(0,Sb)};case Vn.UPDATE_TOAST:return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case Vn.DISMISS_TOAST:{const{toastId:r}=e;return r?hg(r):t.toasts.forEach(i=>{hg(i.id)}),{...t,toasts:t.toasts.map(i=>
40i.id===r||r===void 0?{...i,open:!1}:i)}}case Vn.REMOVE_TOAST:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},il=[];let ol={toasts:[]};function fo(t){ol=Eb(ol,t),il.forEach(e=>{e(ol)})}function Tb({...t}){const e=kb(),r=a=>fo({type:Vn.UPDATE_TOAST,toast:{...a,id:e}}),i=()=>fo({type:Vn.DISMISS_TOAST,toastId:e});return fo({type:Vn.ADD_TOAST,toast:{...t,id:e,open:!0,onOpenChange:a=>{a||i()}}}),{id:e,dismiss:i,update:r}}function Cb(){const[t,e]=j.useState(ol);return j.useEffect(()=>(il.push(e),()=>{const r=il.indexOf(e);r>-1&&il.splice(r,1)}),[t]),{...t,toast:Tb,dismiss:r=>fo({type:Vn.DISMISS_TOAST,toastId:r})}}function t0(t){var e,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=t0(t[e]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function n0(){for(var t,e,r=0,i="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=t0(t))&&(i&&(i+=" "),i+=e);return i}const pg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,mg=n0,df=(t,e)=>r=>{var i;if((e==null?void 0:e.variants)==null)return mg(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:l}=e,c=Object.keys(a).map(m=>{const g=r==null?void 0:r[m],y=l==null?void 0:l[m];if(g===null)return null;const w=pg(g)||pg(y);return a[m][w]}),d=r&&Object.entries(r).reduce((m,g)=>{let[y,w]=g;return w===void 0||(m[y]=w),m},{}),h=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((m,g)=>{let{class:y,className:w,...T}=g;return Object.entries(T).every(k=>{let[b,S]=k;return Array.isArray(S)?S.includes({...l,...d}[b]):{...l,...d}[b]===S})?[...m,y,w]:m},[]);return mg(t,c,h,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const _b=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),r0=(...t)=>t.filter((e,r,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===r).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var Pb={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"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const Ab=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:c,...d},h)=>j.createElement("svg",{ref:h,...Pb,width:e,height:e,stroke:t,strokeWidth:i?Number(r)*24/Number(e):r,className:r0("lucide",a),...d},[...c.map(([m,g])=>j.createElement(m,g)),...Array.isArray(l)?l:[l]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const bt=(t,e)=>{const r=j.forwardRef(({className:i,...a},l)=>j.createElement(Ab,{ref:l,iconNode:e,className:r0(`lucide-${_b(t)}`,i),...a}));return r.displayName=`${t}`,r};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Rb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nb=bt("ChevronDown",Rb);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Ob=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jb=bt("ChevronUp",Ob);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Db=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Lb=bt("CircleCheckBig",Db);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const Mb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Fb=bt("Clock",Mb);
80/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const Ib=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Vb=bt("Download",Ib);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const Bb=[["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"}]],ff=bt("ExternalLink",Bb);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Ub=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],zb=bt("Eye",Ub);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const $b=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],gg=bt("Facebook",$b);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const Wb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],s0=bt("LoaderCircle",Wb);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const qb=[["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"}]],Hb=bt("Mail",qb);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const Kb=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],Qb=bt("Quote",Kb);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const Gb=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],yg=bt("Share2",Gb);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const Yb=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],hf=bt("Star",Yb);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const Xb=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Jb=bt("TriangleAlert",Xb);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const Zb=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],vg=bt("Twitter",Zb);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const ek=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,026 bytes, line 140
140],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tk=bt("X",ek),nk=(t,e)=>{const r=new Array(t.length+e.length);for(let i=0;i<t.length;i++)r[i]=t[i];for(let i=0;i<e.length;i++)r[t.length+i]=e[i];return r},rk=(t,e)=>({classGroupId:t,validator:e}),i0=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),wl="-",wg=[],sk="arbitrary..",ik=t=>{const e=ak(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return ok(c);const d=c.split(wl),h=d[0]===""&&d.length>1?1:0;return o0(d,h,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=i[c],m=r[c];return h?m?nk(m,h):h:m||wg}return r[c]||wg}}},o0=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const a=t[e],l=r.nextPart.get(a);if(l){const m=o0(t,e+1,l);if(m)return m}const c=r.validators;if(c===null)return;const d=e===0?t.join(wl):t.slice(e).join(wl),h=c.length;for(let m=0;m<h;m++){const g=c[m];if(g.validator(d))return g.classGroupId}},ok=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),i=e.slice(0,r);return i?sk+i:void 0})(),ak=t=>{const{theme:e,classGroups:r}=t;return lk(r,e)},lk=(t,e)=>{const r=i0();for(const i in t){const a=t[i];pf(a,r,i,e)}return r},pf=(t,e,r,i)=>{const a=t.length;for(let l=0;l<a;l++){const c=t[l];uk(c,e,r,i)}},uk=(t,e,r,i)=>{if(typeof t=="string"){ck(t,e,r);return}if(typeof t=="function"){dk(t,e,r,i);return}fk(t,e,r,i)},ck=(t,e,r)=>{const i=t===""?e:a0(e,t);i.classGroupId=r},dk=(t,e,r,i)=>{if(hk(t)){pf(t(i),e,r,i);return}e.validators===null&&(e.validators=[]),e.validators.push(rk(r,t))},fk=(t,e,r,i)=>{const a=Object.entries(t),l=a.length;for(let c=0;c<l;c++){const[d,h]=a[c];pf(h,a0(e,d),r,i)}},a0=(t,e)=>{let r=t;const i=e.split(wl),a=i.length;for(let l=0;l<a;l++){const c=i[l];let d=r.nextPart.get(c);d||(d=i0(),r.nextPart.set(c,d)),r=d}return r},hk=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,pk=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),i=Object.create(null);const a=(l,c)=>{r[l]=c,e++,e>t&&(e=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return a(l,c),c},set(l,c){l in r?r[l]=c:a(l,c)}}},vd="!",xg=":",mk=[],Sg=(t,e,r,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:i,isExternal:a}),gk=t=>{const{prefix:e,experimentalParseClassName:r}=t;let i=a=>{const l=[];let c=0,d=0,h=0,m;const g=a.length;for(let b=0;b<g;b++){const S=a[b];if(c===0&&d===0){if(S===xg){l.push(a.slice(h,b)),h=b+1;continue}if(S==="/"){m=b;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const y=l.length===0?a:a.slice(h);let w=y,T=!1;y.endsWith(vd)?(w=y.slice(0,-1),T=!0):y.startsWith(vd)&&(w=y.slice(1),T=!0);const k=m&&m>h?m-h:void 0;return Sg(l,T,w,k)};if(e){const a=e+xg,l=i;i=c=>c.startsWith(a)?l(c.slice(a.length)):Sg(mk,!1,c,void 0,!0)}if(r){const a=i;i=l=>r({className:l,parseClassName:a})}return i},yk=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,i)=>{e.set(r,1e6+i)}),r=>{const i=[];let a=[];for(let l=0;l<r.length;l++){const c=r[l],d=c[0]==="[",h=e.has(c);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(c)):a.push(c)}return a.length>0&&(a.sort(),i.push(...a)),i}},vk=t=>({cache:pk(t.cacheSize),parseClassName:gk(t),sortModifiers:yk(t),...ik(t)}),wk=/\s+/,xk=(t,e)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,c=[],d=t.trim().split(wk);let h="";for(let m=d.length-1;m>=0;m-=1){const g=d[m],{isExternal:y,modifiers:w,hasImportantModifier:T,baseClassName:k,maybePostfixModifierPosition:b}=r(g);if(y){h=g+(h.length>0?" "+h:h);continue}let S=!!b,A=i(S?k.substring(0,b):k);if(!A){if(!S){h=g+(h.length>0?" "+h:h);continue}if(A=i(k),!A){h=g+(h.length>0?" "+h:h);continue}S=!1}const V=w.length===0?"":w.length===1?w[0]:l(w).join(":"),L=T?V+vd:V,M=L+A;if(c.indexOf(M)>-1)continue;c.push(M);const U=a(A,S);for(let Q=0;Q<U.length;++Q){const Y=U[Q];c.push(L+Y)}h=g+(h.length>0?" "+h:h)}return h},Sk=(...t)=>{let e=0,r,i,a="";for(;e<t.length;
vendor: 4,382 bytes, line 140
140)(r=t[e++])&&(i=l0(r))&&(a&&(a+=" "),a+=i);return a},l0=t=>{if(typeof t=="string")return t;let e,r="";for(let i=0;i<t.length;i++)t[i]&&(e=l0(t[i]))&&(r&&(r+=" "),r+=e);return r},bk=(t,...e)=>{let r,i,a,l;const c=h=>{const m=e.reduce((g,y)=>y(g),t());return r=vk(m),i=r.cache.get,a=r.cache.set,l=d,d(h)},d=h=>{const m=i(h);if(m)return m;const g=xk(h,r);return a(h,g),g};return l=c,(...h)=>l(Sk(...h))},kk=[],rt=t=>{const e=r=>r[t]||kk;return e.isThemeGetter=!0,e},u0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,c0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ek=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ck=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_k=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ak=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=t=>Ek.test(t),Se=t=>!!t&&!Number.isNaN(Number(t)),fr=t=>!!t&&Number.isInteger(Number(t)),Kc=t=>t.endsWith("%")&&Se(t.slice(0,-1)),Ln=t=>Tk.test(t),d0=()=>!0,Rk=t=>Ck.test(t)&&!_k.test(t),mf=()=>!1,Nk=t=>Pk.test(t),Ok=t=>Ak.test(t),jk=t=>!te(t)&&!ne(t),Dk=t=>Ar(t,p0,mf),te=t=>u0.test(t),qr=t=>Ar(t,m0,Rk),bg=t=>Ar(t,zk,Se),Lk=t=>Ar(t,y0,d0),Mk=t=>Ar(t,g0,mf),kg=t=>Ar(t,f0,mf),Fk=t=>Ar(t,h0,Ok),Ya=t=>Ar(t,v0,Nk),ne=t=>c0.test(t),Zi=t=>fs(t,m0),Ik=t=>fs(t,g0),Eg=t=>fs(t,f0),Vk=t=>fs(t,p0),Bk=t=>fs(t,h0),Xa=t=>fs(t,v0,!0),Uk=t=>fs(t,y0,!0),Ar=(t,e,r)=>{const i=u0.exec(t);return i?i[1]?e(i[1]):r(i[2]):!1},fs=(t,e,r=!1)=>{const i=c0.exec(t);return i?i[1]?e(i[1]):r:!1},f0=t=>t==="position"||t==="percentage",h0=t=>t==="image"||t==="url",p0=t=>t==="length"||t==="size"||t==="bg-size",m0=t=>t==="length",zk=t=>t==="number",g0=t=>t==="family-name",y0=t=>t==="number"||t==="weight",v0=t=>t==="shadow",$k=()=>{const t=rt("color"),e=rt("font"),r=rt("text"),i=rt("font-weight"),a=rt("tracking"),l=rt("leading"),c=rt("breakpoint"),d=rt("container"),h=rt("spacing"),m=rt("radius"),g=rt("shadow"),y=rt("inset-shadow"),w=rt("text-shadow"),T=rt("drop-shadow"),k=rt("blur"),b=rt("perspective"),S=rt("aspect"),A=rt("ease"),V=rt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...M(),ne,te],Q=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],F=()=>[ne,te,h],J=()=>[dr,"full","auto",...F()],me=()=>[fr,"none","subgrid",ne,te],de=()=>["auto",{span:["full",fr,ne,te]},fr,ne,te],Ce=()=>[fr,"auto",ne,te],De=()=>["auto","min","max","fr",ne,te],Re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Me=()=>["start","end","center","stretch","center-safe","end-safe"],xe=()=>["auto",...F()],fe=()=>[dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],H=()=>[dr,"screen","full","dvw","lvw","svw","min","max","fit",...F()],se=()=>[dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],B=()=>[t,ne,te],R=()=>[...M(),Eg,kg,{position:[ne,te]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Vk,Dk,{size:[ne,te]}],ve=()=>[Kc,Zi,qr],le=()=>["","none","full",m,ne,te],he=()=>["",Se,Zi,qr],Ne=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[Se,Kc,Eg,kg],ht=()=>["","none",k,ne,te],Cn=()=>["none",Se,ne,te],Nr=()=>["none",Se,ne,te],Wn=()=>[Se,ne,te],qn=()=>[dr,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[d0],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[jk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",Se],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dr,te,ne,S]}
vendor: 6,133 bytes, line 140
140],container:["container"],columns:[{columns:[Se,te,ne,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{"inset-s":J(),start:J()}],end:[{"inset-e":J(),end:J()}],"inset-bs":[{"inset-bs":J()}],"inset-be":[{"inset-be":J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[fr,"auto",ne,te]}],basis:[{basis:[dr,"full","auto",d,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,dr,"auto","initial","none",te]}],grow:[{grow:["",Se,ne,te]}],shrink:[{shrink:["",Se,ne,te]}],order:[{order:[fr,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...Re(),"normal"]}],"justify-items":[{"justify-items":[...Me(),"normal"]}],"justify-self":[{"justify-self":["auto",...Me()]}],"align-content":[{content:["normal",...Re()]}],"align-items":[{items:[...Me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Me(),{baseline:["","last"]}]}],"place-content":[{"place-content":Re()}],"place-items":[{"place-items":[...Me(),"baseline"]}],"place-self":[{"place-self":["auto",...Me()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:xe()}],mx:[{mx:xe()}],my:[{my:xe()}],ms:[{ms:xe()}],me:[{me:xe()}],mbs:[{mbs:xe()}],mbe:[{mbe:xe()}],mt:[{mt:xe()}],mr:[{mr:xe()}],mb:[{mb:xe()}],ml:[{ml:xe()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[d,"screen",...fe()]}],"min-w":[{"min-w":[d,"screen","none",...fe()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,Zi,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Uk,Lk]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,te]}],"font-family":[{font:[Ik,Mk,e]}],"font-features":[{"font-features":[te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ne,te]}],"line-clamp":[{"line-clamp":[Se,"none",ne,bg]}],leading:[{leading:[l,...F()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ne,qr]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Se,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fr,ne,te],radial:["",ne,te],conic:[fr,ne,te]},Bk,Fk]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:ve()}
140],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,756 bytes, line 140
140],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ne,te]}],"outline-w":[{outline:["",Se,Zi,qr]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",g,Xa,Ya]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",y,Xa,Ya]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Se,qr]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",w,Xa,Ya]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Se,ne,te]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:ht()}],brightness:[{brightness:[Se,ne,te]}],contrast:[{contrast:[Se,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",T,Xa,Ya]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Se,ne,te]}],"hue-rotate":[{"hue-rotate":[Se,ne,te]}],invert:[{invert:["",Se,ne,te]}],saturate:[{saturate:[Se,ne,te]}],sepia:[{sepia:["",Se,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":ht()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",Se,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ne,te]}],ease:[{ease:["linear","initial",A,ne,te]}],delay:[{delay:[Se,ne,te]}],animate:[{animate:["none",V,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ne,te]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Cn()}],"rotate-x":[{"rotate-x":Cn()}],"rotate-y":[{"rotate-y":Cn()}],"rotate-z":[{"rotate-z":Cn()}],scale:[{scale:Nr()}],"scale-x":[{"scale-x":Nr()}],"scale-y":[{"scale-y":Nr()}],"scale-z":[{"scale-z":Nr()}],"scale-3d":["scale-3d"],skew:[{skew:Wn()}],"skew-x":[{"skew-x":Wn()}],"skew-y":[{"skew-y":Wn()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qn()}],"translate-x":[{"translate-x":qn()}],"translate-y":[{"translate-y":qn()}],"translate-z":[{"translate-z":qn()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,955 bytes, line 140
140],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,te]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Se,Zi,qr,bg]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wk=bk($k);function $n(...t){return Wk(n0(t))}const w0=j.forwardRef(({...t},e)=>x.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));w0.displayName="ToastProvider";const x0=j.forwardRef(({...t},e)=>x.jsx("div",{ref:e,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...t}));x0.displayName="ToastViewport";const qk=df("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),S0=j.forwardRef(({className:t,variant:e,...r},i)=>x.jsx("div",{ref:i,className:$n(qk({variant:e}),t),...r}));S0.displayName="Toast";const Hk=j.forwardRef(({className:t,...e},r)=>x.jsx("div",{ref:r,className:$n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));Hk.displayName="ToastAction";const b0=j.forwardRef(({className:t,...e},r)=>x.jsx("button",{ref:r,className:$n("absolute right-2 top-2 rounded-md p-1 text-foreground
140/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:x.jsx(tk,{className:"h-4 w-4"})}));b0.displayName="ToastClose";const k0=j.forwardRef(({className:t,...e},r)=>x.jsx("div",{ref:r,className:$n("text-sm font-semibold",t),...e}));k0.displayName="ToastTitle";const E0=j.forwardRef(({className:t,...e},r)=>x.jsx("div",{ref:r,className:$n("text-sm opacity-90",t),...e}));E0.displayName="ToastDescription";function Kk(){const{toasts:t}=Cb();return x.jsxs(w0,{children:[t.map(function({id:e,title:r,description:i,action:a,...l}){return x.jsxs(S0,{...l,children:[x.jsxs("div",{className:"grid gap-1",children:[r&&x.jsx(k0,{children:r}),i&&x.jsx(E0,{children:i})]}),a,x.jsx(b0,{})]},e)}),x.jsx(x0,{})]})}var Ro=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qk={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},mr,uf,zv,Gk=(zv=class{constructor(){ue(this,mr,Qk);ue(this,uf,!1)}setTimeoutProvider(t){X(this,mr,t)}setTimeout(t,e){return _(this,mr).setTimeout(t,e)}clearTimeout(t){_(this,mr).clearTimeout(t)}setInterval(t,e){return _(this,mr).setInterval(t,e)}clearInterval(t){_(this,mr).clearInterval(t)}},mr=new WeakMap,uf=new WeakMap,zv),Gr=new Gk;function Yk(t){setTimeout(t,0)}var cs=typeof window>"u"||"Deno"in globalThis;function jt(){}function Xk(t,e){return typeof t=="function"?t(e):t}function wd(t){return typeof t=="number"&&t>=0&&t!==1/0}function T0(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Tr(t,e){return typeof t=="function"?t(e):t}function Zt(t,e){return typeof t=="function"?t(e):t}function Tg(t,e){const{type:r="all",exact:i,fetchStatus:a,predicate:l,queryKey:c,stale:d}=t;if(c){if(i){if(e.queryHash!==gf(c,e.options))return!1}else if(!wo(e.queryKey,c))return!1}if(r!=="all"){const h=e.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||a&&a!==e.state.fetchStatus||l&&!l(e))}function Cg(t,e){const{exact:r,status:i,predicate:a,mutationKey:l}=t;if(l){if(!e.options.mutationKey)return!1;if(r){if(vo(e.options.mutationKey)!==vo(l))return!1}else if(!wo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function gf(t,e){return((e==null?void 0:e.queryKeyHashFn)||vo)(t)}function vo(t){return JSON.stringify(t,(e,r)=>Sd(r)?Object.keys(r).sort().reduce((i,a)=>(i[a]=r[a],i),{}):r)}function wo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>wo(t[r],e[r])):!1}var Jk=Object.prototype.hasOwnProperty;function C0(t,e,r=0){if(t===e)return t;if(r>500)return e;const i=_g(t)&&_g(e);if(!i&&!(Sd(t)&&Sd(e)))return e;const l=(i?t:Object.keys(t)).length,c=i?e:Object.keys(e),d=c.length,h=i?new Array(d):{};let m=0;for(let g=0;g<d;g++){const y=i?g:c[g],w=t[y],T=e[y];if(w===T){h[y]=w,(i?g<l:Jk.call(t,y))&&m++;continue}if(w===null||T===null||typeof w!="object"||typeof T!="object"){h[y]=T;continue}const k=C0(w,T,r+1);h[y]=k,k===w&&m++}return l===d&&m===l?t:h}function xd(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function _g(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Sd(t){if(!Pg(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Pg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Pg(t){return Object.prototype.toString.call(t)==="[object Object]"}function Zk(t){return new Promise(e=>{Gr.setTimeout(e,t)})}function bd(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?C0(t,e):e}function eE(t,e,r=0){const i=[...t,e];return r&&i.length>r?i.slice(1):i}function tE(t,e,r=0){const i=[e,...t];return r&&i.length>r?i.slice(0,-1):i}var yf=Symbol();function _0(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===yf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function P0(t,e){return typeof t=="function"?t(...e):!!t}function nE(t,e,r){let i=!1,a;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(a??(a=e()),i||(i=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),t}var Zr,gr,Hs,$v,rE=($v=class extends Ro{constructor(){super();ue(this,Zr);ue(this,gr);ue(this,Hs);X(this,Hs,e=>{if(!cs&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){_(this,gr)||this.setEventListener(_(this,Hs))}onUnsubscribe(){var e;this.hasListeners()||((e=_(this,gr))==null||e.call(this),X(this,gr,void 0))}setEventListener(e){var r;X(this,Hs,e),(r=_(this,gr))==null||r.call(this),X(this,gr,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){_(this,Zr)!==e&&(X(this,Zr,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,597 bytes, line 140
140this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof _(this,Zr)=="boolean"?_(this,Zr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Zr=new WeakMap,gr=new WeakMap,Hs=new WeakMap,$v),vf=new rE;function kd(){let t,e;const r=new Promise((a,l)=>{t=a,e=l});r.status="pending",r.catch(()=>{});function i(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{i({status:"fulfilled",value:a}),t(a)},r.reject=a=>{i({status:"rejected",reason:a}),e(a)},r}var sE=Yk;function iE(){let t=[],e=0,r=d=>{d()},i=d=>{d()},a=sE;const l=d=>{e?t.push(d):a(()=>{r(d)})},c=()=>{const d=t;t=[],d.length&&a(()=>{i(()=>{d.forEach(h=>{r(h)})})})};return{batch:d=>{let h;e++;try{h=d()}finally{e--,e||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{a=d}}}var ft=iE(),Ks,yr,Qs,Wv,oE=(Wv=class extends Ro{constructor(){super();ue(this,Ks,!0);ue(this,yr);ue(this,Qs);X(this,Qs,e=>{if(!cs&&window.addEventListener){const r=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){_(this,yr)||this.setEventListener(_(this,Qs))}onUnsubscribe(){var e;this.hasListeners()||((e=_(this,yr))==null||e.call(this),X(this,yr,void 0))}setEventListener(e){var r;X(this,Qs,e),(r=_(this,yr))==null||r.call(this),X(this,yr,e(this.setOnline.bind(this)))}setOnline(e){_(this,Ks)!==e&&(X(this,Ks,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return _(this,Ks)}},Ks=new WeakMap,yr=new WeakMap,Qs=new WeakMap,Wv),xl=new oE;function aE(t){return Math.min(1e3*2**t,3e4)}function A0(t){return(t??"online")==="online"?xl.isOnline():!0}var Ed=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function R0(t){let e=!1,r=0,i;const a=kd(),l=()=>a.status!=="pending",c=b=>{var S;if(!l()){const A=new Ed(b);w(A),(S=t.onCancel)==null||S.call(t,A)}},d=()=>{e=!0},h=()=>{e=!1},m=()=>vf.isFocused()&&(t.networkMode==="always"||xl.isOnline())&&t.canRun(),g=()=>A0(t.networkMode)&&t.canRun(),y=b=>{l()||(i==null||i(),a.resolve(b))},w=b=>{l()||(i==null||i(),a.reject(b))},T=()=>new Promise(b=>{var S;i=A=>{(l()||m())&&b(A)},(S=t.onPause)==null||S.call(t)}).then(()=>{var b;i=void 0,l()||(b=t.onContinue)==null||b.call(t)}),k=()=>{if(l())return;let b;const S=r===0?t.initialPromise:void 0;try{b=S??t.fn()}catch(A){b=Promise.reject(A)}Promise.resolve(b).then(y).catch(A=>{var Q;if(l())return;const V=t.retry??(cs?0:3),L=t.retryDelay??aE,M=typeof L=="function"?L(r,A):L,U=V===!0||typeof V=="number"&&r<V||typeof V=="function"&&V(r,A);if(e||!U){w(A);return}r++,(Q=t.onFail)==null||Q.call(t,r,A),Zk(M).then(()=>m()?void 0:T()).then(()=>{e?w(A):k()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(i==null||i(),a),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?k():T().then(k),a)}}var es,qv,N0=(qv=class{constructor(){ue(this,es)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wd(this.gcTime)&&X(this,es,Gr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(cs?1/0:300*1e3))}clearGcTimeout(){_(this,es)&&(Gr.clearTimeout(_(this,es)),X(this,es,void 0))}},es=new WeakMap,qv),ts,Gs,Jt,ns,at,To,rs,cn,Mn,Hv,lE=(Hv=class extends N0{constructor(e){super();ue(this,cn);ue(this,ts);ue(this,Gs);ue(this,Jt);ue(this,ns);ue(this,at);ue(this,To);ue(this,rs);X(this,rs,!1),X(this,To,e.defaultOptions),this.setOptions(e.options),this.observers=[],X(this,ns,e.client),X(this,Jt,_(this,ns).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,X(this,ts,Rg(this.options)),this.state=e.state??_(this,ts),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=_(this,at))==null?void 0:e.promise}setOptions(e){if(this.options={..._(this,To),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Rg(this.options);r.data!==void 0&&(this.setState(Ag(r.data,r.dataUpdatedAt)),X(this,ts,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,Jt).remove(this)}setData(e,r){const i=bd(this.state.data,e,this.options);return ke(this,cn,Mn).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(e,r){ke(this,cn,Mn).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var i,a;const r=(i=_(this,at))==null?void 0:i.promise;
vendor: 3,556 bytes, line 140
140return(a=_(this,at))==null||a.cancel(e),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,ts))}isActive(){return this.observers.some(e=>Zt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Tr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!T0(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=_(this,at))==null||r.continue()}onOnline(){var r;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=_(this,at))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),_(this,Jt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(_(this,at)&&(_(this,rs)?_(this,at).cancel({revert:!0}):_(this,at).cancelRetry()),this.scheduleGc()),_(this,Jt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,cn,Mn).call(this,{type:"invalidate"})}async fetch(e,r){var h,m,g,y,w,T,k,b,S,A,V,L;if(this.state.fetchStatus!=="idle"&&((h=_(this,at))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(_(this,at))return _(this,at).continueRetry(),_(this,at).promise}if(e&&this.setOptions(e),!this.options.queryFn){const M=this.observers.find(U=>U.options.queryFn);M&&this.setOptions(M.options)}const i=new AbortController,a=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(X(this,rs,!0),i.signal)})},l=()=>{const M=_0(this.options,r),Q=(()=>{const Y={client:_(this,ns),queryKey:this.queryKey,meta:this.meta};return a(Y),Y})();return X(this,rs,!1),this.options.persister?this.options.persister(M,Q,this):M(Q)},d=(()=>{const M={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:_(this,ns),state:this.state,fetchFn:l};return a(M),M})();(m=this.options.behavior)==null||m.onFetch(d,this),X(this,Gs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&ke(this,cn,Mn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),X(this,at,R0({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:M=>{M instanceof Ed&&M.revert&&this.setState({..._(this,Gs),fetchStatus:"idle"}),i.abort()},onFail:(M,U)=>{ke(this,cn,Mn).call(this,{type:"failed",failureCount:M,error:U})},onPause:()=>{ke(this,cn,Mn).call(this,{type:"pause"})},onContinue:()=>{ke(this,cn,Mn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const M=await _(this,at).start();if(M===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(M),(T=(w=_(this,Jt).config).onSuccess)==null||T.call(w,M,this),(b=(k=_(this,Jt).config).onSettled)==null||b.call(k,M,this.state.error,this),M}
140catch(M){if(M instanceof Ed){if(M.silent)return _(this,at).promise;if(M.revert){if(this.state.data===void 0)throw M;return this.state.data}}throw ke(this,cn,Mn).call(this,{type:"error",error:M}),(A=(S=_(this,Jt).config).onError)==null||A.call(S,M,this),(L=(V=_(this,Jt).config).onSettled)==null||L.call(V,this.state.data,M,this),M}finally{this.scheduleGc()}}},ts=new WeakMap,Gs=new WeakMap,Jt=new WeakMap,ns=new WeakMap,at=new WeakMap,To=new WeakMap,rs=new WeakMap,cn=new WeakSet,Mn=function(e){const r=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...O0(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...Ag(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,Gs,e.manual?a:void 0),a;case"error":const l=e.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=r(this.state),ft.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),_(this,Jt).notify({query:this,type:"updated",action:e})})},Hv);function O0(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:A0(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Ag(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Rg(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ot,Ee,Co,Tt,ss,Ys,Fn,vr,_o,Xs,Js,is,os,wr,Zs,Oe,so,Td,Cd,_d,Pd,Ad,Rd,Nd,j0,Kv,uE=(Kv=class extends Ro{constructor(e,r){super();ue(this,Oe);ue(this,Ot);ue(this,Ee);ue(this,Co);ue(this,Tt);ue(this,ss);ue(this,Ys);ue(this,Fn);ue(this,vr);ue(this,_o);ue(this,Xs);ue(this,Js);ue(this,is);ue(this,os);ue(this,wr);ue(this,Zs,new Set);this.options=r,X(this,Ot,e),X(this,vr,null),X(this,Fn,kd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Ee).addObserver(this),Ng(_(this,Ee),this.options)?ke(this,Oe,so).call(this):this.updateResult(),ke(this,Oe,Pd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Od(_(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Od(_(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,Oe,Ad).call(this),ke(this,Oe,Rd).call(this),_(this,Ee).removeObserver(this)}setOptions(e){const r=this.options,i=_(this,Ee);if(this.options=_(this,Ot).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Zt(this.options.enabled,_(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ke(this,Oe,Nd).call(this),_(this,Ee).setOptions(this.options),r._defaulted&&!xd(this.options,r)&&_(this,Ot).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Ee),observer:this});const a=this.hasListeners();a&&Og(_(this,Ee),i,this.options,r)&&ke(this,Oe,so).call(this),this.updateResult(),a&&(_(this,Ee)!==i||Zt(this.options.enabled,_(this,Ee))!==Zt(r.enabled,_(this,Ee))||Tr(this.options.staleTime,_(this,Ee))!==Tr(r.staleTime,_(this,Ee)))&&ke(this,Oe,Td).call(this);const l=ke(this,Oe,Cd).call(this);a&&(_(this,Ee)!==i||Zt(this.options.enabled,_(this,Ee))!==Zt(r.enabled,_(this,Ee))||l!==_(this,wr))&&ke(this,Oe,_d).call(this,l)}getOptimisticResult(e){const r=_(this,Ot).getQueryCache().build(_(this,Ot),e),i=this.createResult(r,e);return dE(this,i)&&(X(this,Tt,i),X(this,Ys,this.options),X(this,ss,_(this,Ee).state)),i}getCurrentResult(){return _(this,Tt)}trackResult(e,r){return new Proxy(e,{get:(i,a)=>(this.trackProp(a),r==null||r(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,Fn).status==="pending"&&_(this,Fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,a))})}trackProp(e){_(this,Zs).add(e)}getCurrentQuery(){return _(this,Ee)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=_(this,Ot).defaultQueryOptions(e),i=_(this,Ot).getQueryCache().build(_(this,Ot),r);return i.fetch().then(()=>this.createResult(i,r))}
vendor: 4,358 bytes, line 140
140fetch(e){return ke(this,Oe,so).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,Tt)))}createResult(e,r){var J;const i=_(this,Ee),a=this.options,l=_(this,Tt),c=_(this,ss),d=_(this,Ys),m=e!==i?e.state:_(this,Co),{state:g}=e;let y={...g},w=!1,T;if(r._optimisticResults){const me=this.hasListeners(),de=!me&&Ng(e,r),Ce=me&&Og(e,i,r,a);(de||Ce)&&(y={...y,...O0(g.data,e.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:k,errorUpdatedAt:b,status:S}=y;T=y.data;let A=!1;if(r.placeholderData!==void 0&&T===void 0&&S==="pending"){let me;l!=null&&l.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(me=l.data,A=!0):me=typeof r.placeholderData=="function"?r.placeholderData((J=_(this,Js))==null?void 0:J.state.data,_(this,Js)):r.placeholderData,me!==void 0&&(S="success",T=bd(l==null?void 0:l.data,me,r),w=!0)}if(r.select&&T!==void 0&&!A)if(l&&T===(c==null?void 0:c.data)&&r.select===_(this,_o))T=_(this,Xs);else try{X(this,_o,r.select),T=r.select(T),T=bd(l==null?void 0:l.data,T,r),X(this,Xs,T),X(this,vr,null)}catch(me){X(this,vr,me)}_(this,vr)&&(k=_(this,vr),T=_(this,Xs),b=Date.now(),S="error");const V=y.fetchStatus==="fetching",L=S==="pending",M=S==="error",U=L&&V,Q=T!==void 0,F={status:S,fetchStatus:y.fetchStatus,isPending:L,isSuccess:S==="success",isError:M,isInitialLoading:U,isLoading:U,data:T,dataUpdatedAt:y.dataUpdatedAt,error:k,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:V,isRefetching:V&&!L,isLoadingError:M&&!Q,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:M&&Q,isStale:wf(e,r),refetch:this.refetch,promise:_(this,Fn),isEnabled:Zt(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const me=F.data!==void 0,de=F.status==="error"&&!me,Ce=Me=>{de?Me.reject(F.error):me&&Me.resolve(F.data)},De=()=>{const Me=X(this,Fn,F.promise=kd());Ce(Me)},Re=_(this,Fn);switch(Re.status){case"pending":e.queryHash===i.queryHash&&Ce(Re);break;case"fulfilled":(de||F.data!==Re.value)&&De();break;case"rejected":(!de||F.error!==Re.reason)&&De();break}}return F}updateResult(){const e=_(this,Tt),r=this.createResult(_(this,Ee),this.options);if(X(this,ss,_(this,Ee).state),X(this,Ys,this.options),_(this,ss).data!==void 0&&X(this,Js,_(this,Ee)),xd(r,e))return;X(this,Tt,r);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!_(this,Zs).size)return!0;const c=new Set(l??_(this,Zs));return this.options.throwOnError&&c.add("error"),Object.keys(_(this,Tt)).some(d=>{const h=d;return _(this,Tt)[h]!==e[h]&&c.has(h)})};ke(this,Oe,j0).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,Oe,Pd).call(this)}},Ot=new WeakMap,Ee=new WeakMap,Co=new WeakMap,Tt=new WeakMap,ss=new WeakMap,Ys=new WeakMap,Fn=new WeakMap,vr=new WeakMap,_o=new WeakMap,Xs=new WeakMap,Js=new WeakMap,is=new WeakMap,os=new WeakMap,wr=new WeakMap,Zs=new WeakMap,Oe=new WeakSet,so=function(e){ke(this,Oe,Nd).call(this);let r=_(this,Ee).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(jt)),r},Td=function(){ke(this,Oe,Ad).call(this);const e=Tr(this.options.staleTime,_(this,Ee));if(cs||_(this,Tt).isStale||!wd(e))return;const i=T0(_(this,Tt).dataUpdatedAt,e)+1;X(this,is,Gr.setTimeout(()=>{_(this,Tt).isStale||this.updateResult()},i))},Cd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Ee)):this.options.refetchInterval)??!1},_d=function(e){ke(this,Oe,Rd).call(this),X(this,wr,e),!(cs||Zt(this.options.enabled,_(this,Ee))===!1||!wd(_(this,wr))||_(this,wr)===0)&&X(this,os,Gr.setInterval(()=>{(this.options.refetchIntervalInBackground||vf.isFocused())&&ke(this,Oe,so).call(this)},_(this,wr)))},Pd=function(){ke(this,Oe,Td).call(this),ke(this,Oe,_d).call(this,ke(this,Oe,Cd).call(this))},Ad=function(){_(this,is)&&(Gr.clearTimeout(_(this,is)),X(this,is,void 0))},Rd=function(){_(this,os)&&(Gr.clearInterval(_(this,os)),X(this,os,void 0))},Nd=function(){const e=_(this,Ot).getQueryCache().build(_(this,Ot),this.options);if(e===_(this,Ee))return;const r=_(this,Ee);
vendor: 5,584 bytes, line 140
140X(this,Ee,e),X(this,Co,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},j0=function(e){ft.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(_(this,Tt))}),_(this,Ot).getQueryCache().notify({query:_(this,Ee),type:"observerResultsUpdated"})})},Kv);function cE(t,e){return Zt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ng(t,e){return cE(t,e)||t.state.data!==void 0&&Od(t,e,e.refetchOnMount)}function Od(t,e,r){if(Zt(e.enabled,t)!==!1&&Tr(e.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&wf(t,e)}return!1}function Og(t,e,r,i){return(t!==e||Zt(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&wf(t,r)}function wf(t,e){return Zt(e.enabled,t)!==!1&&t.isStaleByTime(Tr(e.staleTime,t))}function dE(t,e){return!xd(t.getCurrentResult(),e)}function jg(t){return{onFetch:(e,r)=>{var g,y,w,T,k;const i=e.options,a=(w=(y=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,l=((T=e.state.data)==null?void 0:T.pages)||[],c=((k=e.state.data)==null?void 0:k.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const m=async()=>{let b=!1;const S=L=>{nE(L,()=>e.signal,()=>b=!0)},A=_0(e.options,e.fetchOptions),V=async(L,M,U)=>{if(b)return Promise.reject();if(M==null&&L.pages.length)return Promise.resolve(L);const Y=(()=>{const de={client:e.client,queryKey:e.queryKey,pageParam:M,direction:U?"backward":"forward",meta:e.options.meta};return S(de),de})(),F=await A(Y),{maxPages:J}=e.options,me=U?tE:eE;return{pages:me(L.pages,F,J),pageParams:me(L.pageParams,M,J)}};if(a&&l.length){const L=a==="backward",M=L?fE:Dg,U={pages:l,pageParams:c},Q=M(i,U);d=await V(U,Q,L)}else{const L=t??l.length;do{const M=h===0?c[0]??i.initialPageParam:Dg(i,d);if(h>0&&M==null)break;d=await V(d,M),h++}while(h<L)}return d};e.options.persister?e.fetchFn=()=>{var b,S;return(S=(b=e.options).persister)==null?void 0:S.call(b,m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=m}}}function Dg(t,{pages:e,pageParams:r}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,r[i],r):void 0}function fE(t,{pages:e,pageParams:r}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,r[0],r):void 0}var Po,wn,vt,as,xn,hr,Qv,hE=(Qv=class extends N0{constructor(e){super();ue(this,xn);ue(this,Po);ue(this,wn);ue(this,vt);ue(this,as);X(this,Po,e.client),this.mutationId=e.mutationId,X(this,vt,e.mutationCache),X(this,wn,[]),this.state=e.state||pE(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){_(this,wn).includes(e)||(_(this,wn).push(e),this.clearGcTimeout(),_(this,vt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,wn,_(this,wn).filter(r=>r!==e)),this.scheduleGc(),_(this,vt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){_(this,wn).length||(this.state.status==="pending"?this.scheduleGc():_(this,vt).remove(this))}continue(){var e;return((e=_(this,as))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var c,d,h,m,g,y,w,T,k,b,S,A,V,L,M,U,Q,Y;const r=()=>{ke(this,xn,hr).call(this,{type:"continue"})},i={client:_(this,Po),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,as,R0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(F,J)=>{ke(this,xn,hr).call(this,{type:"failed",failureCount:F,error:J})},onPause:()=>{ke(this,xn,hr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,vt).canRun(this)}));const a=this.state.status==="pending",l=!_(this,as).canStart();try{if(a)r();else{ke(this,xn,hr).call(this,{type:"pending",variables:e,isPaused:l}),_(this,vt).config.onMutate&&await _(this,vt).config.onMutate(e,this,i);const J=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,e,i));J!==this.state.context&&ke(this,xn,hr).call(this,{type:"pending",context:J,variables:e,isPaused:l})}const F=await _(this,as).start();return await((m=(h=_(this,vt).config).onSuccess)==null?void 0:m.call(h,F,e,this.state.context,this,i)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,F,e,this.state.context,i)),await((T=(w=_(this,vt).config).onSettled)==null?void 0:T.call(w,F,null,this.state.variables,this.state.context,this,i)),await((b=(k=this.options).onSettled)==null?void 0:b.call(k,F,null,e,this.state.context,i)),ke(this,xn,hr).call(this,{type:"success",data:F}),F}catch(F){try{await((A=(S=_(this,vt).config).onError)==null?void 0:A.call(S,F,e,this.state.context,this,i))}catch(J){Promise.reject(J)}try{await((L=(V=this.options).onError)==null?void 0:L.call(V,F,e,this.state.context,i))}catch(J){Promise.reject(J)}try{await((U=(M=_(this,vt).config).onSettled)==null?void 0:U.call(M,void 0,F,this.state.variables,this.state.context,this,i))}catch(J){Promise.reject(J)}try{await((Y=(Q=this.options).onSettled)==null?void 0:Y.call(Q,void 0,F,e,this.state.context,i))}catch(J){Promise.reject(J)}throw ke(this,xn,hr).call(this,{type:"error",error:F}),F}finally{_(this,vt).runNext(this)}}},Po=new WeakMap,wn=new WeakMap,vt=new WeakMap,as=new WeakMap,xn=new WeakSet,hr=function(e){const r=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};
vendor: 1,027 bytes, line 140
140case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ft.batch(()=>{_(this,wn).forEach(i=>{i.onMutationUpdate(e)}),_(this,vt).notify({mutation:this,type:"updated",action:e})})},Qv);function pE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var In,dn,Ao,Gv,mE=(Gv=class extends Ro{constructor(e={}){super();ue(this,In);ue(this,dn);ue(this,Ao);this.config=e,X(this,In,new Set),X(this,dn,new Map),X(this,Ao,0)}build(e,r,i){const a=new hE({client:e,mutationCache:this,mutationId:++Qa(this,Ao)._,options:e.defaultMutationOptions(r),state:i}
140);return this.add(a),a}add(e){_(this,In).add(e);const r=Ja(e);if(typeof r=="string"){const i=_(this,dn).get(r);i?i.push(e):_(this,dn).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(_(this,In).delete(e)){const r=Ja(e);if(typeof r=="string"){const i=_(this,dn).get(r);if(i)if(i.length>1){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}else i[0]===e&&_(this,dn).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=Ja(e);if(typeof r=="string"){const i=_(this,dn).get(r),a=i==null?void 0:i.find(l=>l.state.status==="pending");return!a||a===e}else return!0}runNext(e){var i;const r=Ja(e);if(typeof r=="string"){const a=(i=_(this,dn).get(r))==null?void 0:i.find(l=>l!==e&&l.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{_(this,In).forEach(e=>{this.notify({type:"removed",mutation:e})}),_(this,In).clear(),_(this,dn).clear()})}getAll(){return Array.from(_(this,In))}find(e){const r={exact:!0,...e};return this.getAll().find(i=>Cg(r,i))}findAll(e={}){return this.getAll().filter(r=>Cg(e,r))}notify(e){ft.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>
vendor: 4,201 bytes, line 140
140r.state.isPaused);return ft.batch(()=>Promise.all(e.map(r=>r.continue().catch(jt))))}},In=new WeakMap,dn=new WeakMap,Ao=new WeakMap,Gv);function Ja(t){var e;return(e=t.options.scope)==null?void 0:e.id}var Sn,Yv,gE=(Yv=class extends Ro{constructor(e={}){super();ue(this,Sn);this.config=e,X(this,Sn,new Map)}build(e,r,i){const a=r.queryKey,l=r.queryHash??gf(a,r);let c=this.get(l);return c||(c=new lE({client:e,queryKey:a,queryHash:l,options:e.defaultQueryOptions(r),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(c)),c}add(e){_(this,Sn).has(e.queryHash)||(_(this,Sn).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=_(this,Sn).get(e.queryHash);r&&(e.destroy(),r===e&&_(this,Sn).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ft.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return _(this,Sn).get(e)}getAll(){return[..._(this,Sn).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(i=>Tg(r,i))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(i=>Tg(e,i)):r}notify(e){ft.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Sn=new WeakMap,Yv),Ke,xr,Sr,ei,ti,br,ni,ri,Xv,yE=(Xv=class{constructor(t={}){ue(this,Ke);ue(this,xr);ue(this,Sr);ue(this,ei);ue(this,ti);ue(this,br);ue(this,ni);ue(this,ri);X(this,Ke,t.queryCache||new gE),X(this,xr,t.mutationCache||new mE),X(this,Sr,t.defaultOptions||{}),X(this,ei,new Map),X(this,ti,new Map),X(this,br,0)}mount(){Qa(this,br)._++,_(this,br)===1&&(X(this,ni,vf.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,Ke).onFocus())})),X(this,ri,xl.subscribe(async t=>{t&&(await this.resumePausedMutations(),_(this,Ke).onOnline())})))}unmount(){var t,e;Qa(this,br)._--,_(this,br)===0&&((t=_(this,ni))==null||t.call(this),X(this,ni,void 0),(e=_(this,ri))==null||e.call(this),X(this,ri,void 0))}isFetching(t){return _(this,Ke).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return _(this,xr).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=_(this,Ke).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=_(this,Ke).build(this,e),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Tr(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return _(this,Ke).findAll(t).map(({queryKey:e,state:r})=>{const i=r.data;return[e,i]})}setQueryData(t,e,r){const i=this.defaultQueryOptions({queryKey:t}),a=_(this,Ke).get(i.queryHash),l=a==null?void 0:a.state.data,c=Xk(e,l);if(c!==void 0)return _(this,Ke).build(this,i).setData(c,{...r,manual:!0})}setQueriesData(t,e,r){return ft.batch(()=>_(this,Ke).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=_(this,Ke).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=_(this,Ke);ft.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=_(this,Ke);return ft.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},i=ft.batch(()=>_(this,Ke).findAll(t).map(a=>a.cancel(r)));return Promise.all(i).then(jt).catch(jt)}invalidateQueries(t,e={}){return ft.batch(()=>(_(this,Ke).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},i=ft.batch(()=>_(this,Ke).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,r);return r.throwOnError||(l=l.catch(jt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(jt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=_(this,Ke).build(this,e);return r.isStaleByTime(Tr(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}
140prefetchQuery(t){return this.fetchQuery(t).then(jt).catch(jt)}fetchInfiniteQuery(t){return t.behavior=jg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(jt).catch(jt)}ensureInfiniteQueryData(t){return t.behavior=jg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return xl.isOnline()?_(this,xr).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,Ke)}getMutationCache(){return _(this,xr)}getDefaultOptions(){return _(this,Sr)}setDefaultOptions(t){X(this,Sr,t)}setQueryDefaults(t,e){_(this,ei).set(vo(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[..._(this,ei).values()],r={};return e.forEach(i=>{wo(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,e){_(this,ti).set(vo(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[..._(this,ti).values()],r={};return e.forEach(i=>{wo(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={..._(this,Sr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=gf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===yf&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{..._(this,Sr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){_(this,Ke).clear(),_(this,xr).clear()}},Ke=new WeakMap,xr=new WeakMap,Sr=new WeakMap,ei=new WeakMap,ti=new WeakMap,br=new WeakMap,ni=new WeakMap,ri=new WeakMap,Xv),D0=j.createContext(void 0),vE=t=>{const e=j.useContext(D0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},wE=({client:t,children:e})=>(j.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),x.jsx(D0.Provider,{value:t,children:e})),L0=j.createContext(!1),xE=()=>j.useContext(L0);L0.Provider;function SE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var bE=j.createContext(SE()),kE=()=>j.useContext(bE),EE=(t,e,r)=>{const i=r!=null&&r.state.error&&typeof t.throwOnError=="function"?P0(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&(e.isReset()||(t.retryOnMount=!1))},TE=t=>{j.useEffect(()=>{t.clearReset()},[t])},CE=({result:t,errorResetBoundary:e,throwOnError:r,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||P0(r,[t.error,i])),_E=t=>{if(t.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...a)=>r(i(...a)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},PE=(t,e)=>t.isLoading&&t.isFetching&&!e,AE=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Lg=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function RE(t,e,r){var w,T,k,b;const i=xE(),a=kE(),l=vE(),c=l.defaultQueryOptions(t);(T=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||T.call(w,c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=i?"isRestoring":"optimistic",_E(c),EE(c,a,d),TE(a);const h=!l.getQueryCache().get(c.queryHash),[m]=j.useState(()=>new e(l,c)),g=m.getOptimisticResult(c),y=!i&&t.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(S=>{const A=y?m.subscribe(ft.batchCalls(S)):jt;return m.updateResult(),A},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),j.useEffect(()=>{m.setOptions(c)},[c,m]),AE(c,g))throw Lg(c,m,a);if(CE({result:g,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw g.error;if((b=(k=l.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||b.call(k,c,g),c.experimental_prefetchInRender&&!cs&&PE(g,i)){const S=h?Lg(c,m,a):d==null?void 0:d.promise;S==null||S.catch(jt).finally(()=>{m.updateResult()})}return c.notifyOnChangeProps?g:m.trackResult(g)}function M0(t,e){return RE(t,uE)}const NE=new yE({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});e0();/** 141 * @remix-run/router v1.23.2 142 * 143 * Copyright (c) Remix Software Inc. 144 * 145 * This source code is licensed under the MIT license found in the 146 * LICENSE.md file in the root directory of this source tree. 147 * 148 * @license MIT 149 */function Sl(){return Sl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Sl.apply(this,arguments)}var kr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(kr||(kr={}));const Mg="popstate";function OE(t){t===void 0&&(t={});function e(i,a){let{pathname:l,search:c,hash:d}=i.location;return jd("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}
vendor: 4,515 bytes, line 149
149function r(i,a){return typeof a=="string"?a:I0(a)}return DE(e,r,null,t)}function Mt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function F0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function jE(){return Math.random().toString(36).substr(2,8)}function Fg(t,e){return{usr:t.state,key:t.key,idx:e}}function jd(t,e,r,i){return r===void 0&&(r=null),Sl({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ol(e):e,{state:r,key:e&&e.key||i||jE()})}function I0(t){let{pathname:e="/",search:r="",hash:i=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Ol(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function DE(t,e,r,i){i===void 0&&(i={});let{window:a=document.defaultView,v5Compat:l=!1}=i,c=a.history,d=kr.Pop,h=null,m=g();m==null&&(m=0,c.replaceState(Sl({},c.state,{idx:m}),""));function g(){return(c.state||{idx:null}).idx}function y(){d=kr.Pop;let S=g(),A=S==null?null:S-m;m=S,h&&h({action:d,location:b.location,delta:A})}function w(S,A){d=kr.Push;let V=jd(b.location,S,A);m=g()+1;let L=Fg(V,m),M=b.createHref(V);try{c.pushState(L,"",M)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(M)}l&&h&&h({action:d,location:b.location,delta:1})}function T(S,A){d=kr.Replace;let V=jd(b.location,S,A);m=g();let L=Fg(V,m),M=b.createHref(V);c.replaceState(L,"",M),l&&h&&h({action:d,location:b.location,delta:0})}function k(S){let A=a.location.origin!=="null"?a.location.origin:a.location.href,V=typeof S=="string"?S:I0(S);return V=V.replace(/ $/,"%20"),Mt(A,"No window.location.(origin|href) available to create URL for href: "+V),new URL(V,A)}let b={get action(){return d},get location(){return t(a,c)},listen(S){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Mg,y),h=S,()=>{a.removeEventListener(Mg,y),h=null}},createHref(S){return e(a,S)},createURL:k,encodeLocation(S){let A=k(S);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:T,go(S){return c.go(S)}};return b}var Ig;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ig||(Ig={}));function LE(t,e,r){return r===void 0&&(r="/"),ME(t,e,r)}function ME(t,e,r,i){let a=typeof e=="string"?Ol(e):e,l=U0(a.pathname||"/",r);if(l==null)return null;let c=V0(t);FE(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let m=GE(l);d=HE(c[h],m)}return d}function V0(t,e,r,i){e===void 0&&(e=[]),r===void 0&&(r=[]),i===void 0&&(i="");let a=(l,c,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};h.relativePath.startsWith("/")&&(Mt(h.relativePath.startsWith(i),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(i.length));let m=qs([i,h.relativePath]),g=r.concat(h);l.children&&l.children.length>0&&(Mt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),V0(l.children,e,g,m)),!(l.path==null&&!l.index)&&e.push({path:m,score:WE(m,l.index),routesMeta:g})};return t.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,c);else for(let h of B0(l.path))a(l,c,h)}),e}function B0(t){let e=t.split("/");if(e.length===0)return[];let[r,...i]=e,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(i.length===0)return a?[l,""]:[l];let c=B0(i.join("/")),d=[];return d.push(...c.map(h=>h===""?l:[l,h].join("/"))),a&&d.push(...c),d.map(h=>t.startsWith("/")&&h===""?"/":h)}function FE(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:qE(e.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const IE=/^:[\w-]+$/,VE=3,BE=2,UE=1,zE=10,$E=-2,Vg=t=>t==="*";function WE(t,e){let r=t.split("/"),i=r.length;return r.some(Vg)&&(i+=$E),e&&(i+=BE),r.filter(a=>!Vg(a)).reduce((a,l)=>a+(IE.test(l)?VE:l===""?UE:zE),i)}function qE(t,e){return t.length===e.length&&t.slice(0,-1).every((i,a)=>i===e[a])?t[t.length-1]-e[e.length-1]:0}function HE(t,e,r){let{routesMeta:i}=t,a={},l="/",c=[];for(let d=0;d<i.length;++d){let h=i[d],m=d===i.length-1,g=l==="/"?e:e.slice(l.length)||"/",y=KE({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),w=h.route;if(!y)return null;
vendor: 4,131 bytes, lines 149-158
149Object.assign(a,y.params),c.push({params:a,pathname:qs([l,y.pathname]),pathnameBase:YE(qs([l,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(l=qs([l,y.pathnameBase]))}return c}function KE(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,i]=QE(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:i.reduce((m,g,y)=>{let{paramName:w,isOptional:T}=g;if(w==="*"){let b=d[y]||"";c=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}const k=d[y];return T&&!k?m[w]=void 0:m[w]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:c,pattern:t}}function QE(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),F0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}function GE(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return F0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function U0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,i=t.charAt(r);return i&&i!=="/"?null:t.slice(r)||"/"}const qs=t=>t.join("/").replace(/\/\/+/g,"/"),YE=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/");function XE(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const z0=["post","put","patch","delete"];new Set(z0);const JE=["get",...z0];new Set(JE);/** 150 * React Router v6.30.3 151 * 152 * Copyright (c) Remix Software Inc. 153 * 154 * This source code is licensed under the MIT license found in the 155 * LICENSE.md file in the root directory of this source tree. 156 * 157 * @license MIT 158 */function bl(){return bl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bl.apply(this,arguments)}const ZE=j.createContext(null),eT=j.createContext(null),$0=j.createContext(null),jl=j.createContext(null),Dl=j.createContext({outlet:null,matches:[],isDataRoute:!1}),W0=j.createContext(null);function xf(){return j.useContext(jl)!=null}function q0(){return xf()||Mt(!1),j.useContext(jl).location}function tT(t,e){return nT(t,e)}function nT(t,e,r,i){xf()||Mt(!1);let{navigator:a}=j.useContext($0),{matches:l}=j.useContext(Dl),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let m=q0(),g;if(e){var y;let S=typeof e=="string"?Ol(e):e;h==="/"||(y=S.pathname)!=null&&y.startsWith(h)||Mt(!1),g=S}else g=m;let w=g.pathname||"/",T=w;if(h!=="/"){let S=h.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(S.length).join("/")}let k=LE(t,{pathname:T}),b=aT(k&&k.map(S=>Object.assign({},S,{params:Object.assign({},d,S.params),pathname:qs([h,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?h:qs([h,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,r,i);return e&&b?j.createElement(jl.Provider,{value:{location:bl({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:kr.Pop}},b):b}function rT(){let t=dT(),e=XE(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application
158Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},e),r?j.createElement("pre",{style:a},r):null,null)}const sT=j.createElement(rT,null);class iT extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?j.createElement(Dl.Provider,{value:this.props.routeContext},j.createElement(W0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oT(t){let{routeContext:e,match:r,children:i}=t,a=j.useContext(ZE);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),j.createElement(Dl.Provider,{value:e},i)}function aT(t,e,r,i){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),i===void 0&&(i=null),t==null){var l;if(!r)return null;if(r.errors)t=r.matches;else if((l=i)!=null&&l.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let c=t,d=(a=r)==null?void 0:a.errors;if(d!=null){let g=c.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);g>=0||Mt(!1),c=c.slice(0,Math.min(c.length,g+1))}let h=!1,m=-1;if(r&&i&&i.v7_partialHydration)for(let g=0;g<c.length;g++){let y=c[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(m=g),y.route.id){let{loaderData:w,errors:T}=r,k=y.route.loader&&w[y.route.id]===void 0&&(!T||T[y.route.id]===void 0);if(y.route.lazy||k){h=!0,m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}return c.reduceRight((g,y,w)=>{let T,k=!1,b=null,S=null;r&&(T=d&&y.route.id?d[y.route.id]:void 0,b=y.route.errorElement||sT,h&&(m<0&&w===0?(fT("route-fallback"),k=!0,S=null):m===w&&(k=!0,S=y.route.hydrateFallbackElement||null)));let A=e.concat(c.slice(0,w+1)),V=()=>{let L;return T?L=b:k?L=S:y.route.Component?L=j.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=g,j.createElement(oT,{match:y,routeContext:{outlet:g,matches:A,isDataRoute:r!=null},children:L})};return r&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?j.createElement(iT,{location:r.location,revalidation:r.revalidation,component:b,error:T,children:V(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):V()},null)}var H0=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(H0||{});function lT(t){let e=j.useContext(eT);return e||Mt(!1),e}function uT(t){let e=j.useContext(Dl);return e||Mt(!1),e}function cT(t){let e=uT(),r=e.matches[e.matches.length-1];return r.route.id||Mt(!1),r.route.id}function dT(){var t;let e=j.useContext(W0),r=lT(H0.UseRouteError),i=cT();return e!==void 0?e:(t=r.errors)==null?void 0:t[i]}const Bg={};function fT(t,e,r){Bg[t]||(Bg[t]=!0)}function hT(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function al(t){Mt(!1)}function pT(t){let{basename:e="/",children:r=null,location:i,navigationType:a=kr.Pop,navigator:l,static:c=!1,future:d}=t;xf()&&Mt(!1);let h=e.replace(/^\/*/,"/"),m=j.useMemo(()=>({basename:h,navigator:l,static:c,future:bl({v7_relativeSplatPath:!1},d)}),[h,d,l,c]);typeof i=="string"&&(i=Ol(i));let{pathname:g="/",search:y="",hash:w="",state:T=null,key:k="default"}=i,b=j.useMemo(()=>{let S=U0(g,h);return S==null?null:{location:{pathname:S,search:y,hash:w,state:T,key:k},navigationType:a}},[h,g,y,w,T,k,a]);return b==null?null:j.createElement($0.Provider,{value:m},j.createElement(jl.Provider,{children:r,value:b}))}function mT(t){let{children:e,location:r}=t;return tT(Dd(e),r)}new Promise(()=>{});function Dd(t,e){e===void 0&&(e=[]);let r=[];
158return j.Children.forEach(t,(i,a)=>{if(!j.isValidElement(i))return;let l=[...e,a];if(i.type===j.Fragment){r.push.apply(r,Dd(i.props.children,l));return}i.type!==al&&Mt(!1),!i.props.index||!i.props.children||Mt(!1);let c={id:i.props.id||l.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Dd(i.props.children,l)),r.push(c)}),r}/** 159 * React Router DOM v6.30.3 160 * 161 * Copyright (c) Remix Software Inc. 162 * 163 * This source code is licensed under the MIT license found in the 164 * LICENSE.md file in the root directory of this source tree. 165 * 166 * @license MIT 167 */const gT="6";try{window.__reactRouterVersion=gT}catch{}const yT="startTransition",Ug=Zv[yT];function vT(t){let{basename:e,children:r,future:i,window:a}=t,l=j.useRef();l.current==null&&(l.current=OE({window:a,v5Compat:!0}));let c=l.current,[d,h]=j.useState({action:c.action,location:c.location}),{v7_startTransition:m}=i||{},g=j.useCallback(y=>{m&&Ug?Ug(()=>h(y)):h(y)},[h,m]);return j.useLayoutEffect(()=>c.listen(g),[c,g]),j.useEffect(()=>hT(i),[i]),j.createElement(pT,{basename:e,children:r,location:d.location,navigationType:d.action,navigator:c,future:i})}var zg;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(zg||(zg={}));var $g;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})($g||($g={}));function K0(t,e){return function(){return t.apply(e,arguments)}}const{toString:wT}=Object.prototype,{getPrototypeOf:Sf}=Object,{iterator:Ll,toStringTag:Q0}=Symbol,Ml=(t=>e=>{const r=wT.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),hn=t=>(t=t.toLowerCase(),e=>Ml(e)===t),Fl=t=>e=>typeof e===t,{isArray:ui}=Array,si=Fl("undefined");function No(t){return t!==null&&!si(t)&&t.constructor!==null&&!si(t.constructor)&&Dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const G0=hn("ArrayBuffer");function xT(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&G0(t.buffer),e}const ST=Fl("string"),Dt=Fl("function"),Y0=Fl("number"),Oo=t=>t!==null&&typeof t=="object",bT=t=>t===!0||t===!1,ll=t=>{if(Ml(t)!=="object")return!1;const e=Sf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Q0 in t)&&!(Ll in t)},kT=t=>{if(!Oo(t)||No(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},ET=hn("Date"),TT=hn("File"),CT=hn("Blob"),_T=hn("FileList"),PT=t=>Oo(t)&&Dt(t.pipe),AT=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Dt(t.append)&&((e=Ml(t))==="formdata"||e==="object"&&Dt(t.toString)&&t.toString()==="[object FormData]"))},RT=hn("URLSearchParams"),[NT,OT,jT,DT]=["ReadableStream","Request","Response","Headers"].map(hn),LT=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),ui(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(No(t))return;const l=r?Object.getOwnPropertyNames(t):Object.keys(t),c=l.length;let d;for(i=0;i<c;i++)d=l[i],e.call(null,t[d],d,t)}}function X0(t,e){if(No(t))return null;e=e.toLowerCase();const r=Object.keys(t);let i=r.length,a;for(;i-- >0;)if(a=r[i],e===a.toLowerCase())return a;return null}const Yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,J0=t=>!si(t)&&t!==Yr;function Ld(){const{caseless:t,skipUndefined:e}=J0(this)&&this||{},r={},i=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const c=t&&X0(r,l)||l;ll(r[c])&&ll(a)?r[c]=Ld(r[c],a):ll(a)?r[c]=Ld({},a):ui(a)?r[c]=a.slice():(!e||!si(a))&&(r[c]=a)};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&jo(arguments[a],i);return r}const MT=(t,e,r,{allOwnKeys:i}={})=>(jo(e,(a,l)=>{r&&Dt(a)?Object.defineProperty(t,l,{value:K0(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),FT=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),IT=(t,e,r,i)=>
vendor: 1,890 bytes, line 167
167{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},VT=(t,e,r,i)=>{let a,l,c;const d={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),l=a.length;l-- >0;)c=a[l],(!i||i(c,t,e))&&!d[c]&&(e[c]=t[c],d[c]=!0);t=r!==!1&&Sf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},BT=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const i=t.indexOf(e,r);return i!==-1&&i===r},UT=t=>{if(!t)return null;if(ui(t))return t;let e=t.length;if(!Y0(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},zT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Sf(Uint8Array)),$T=(t,e)=>{const i=(t&&t[Ll]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},WT=(t,e)=>{let r;const i=[];for(;(r=t.exec(e))!==null;)i.push(r);return i},qT=hn("HTMLFormElement"),HT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,a){return i.toUpperCase()+a}),Wg=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),KT=hn("RegExp"),Z0=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),i={};jo(r,(a,l)=>{let c;(c=e(a,l,t))!==!1&&(i[l]=c||a)}),Object.defineProperties(t,i)},QT=t=>{Z0(t,(e,r)=>{if(Dt(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(Dt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},GT=(t,e)=>{const r={},i=a=>{a.forEach(l=>{r[l]=!0})};return ui(t)?i(t):i(String(t).split(e)),r},YT=()=>{},XT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function JT(t){return!!(t&&Dt(t.append)&&t[Q0]==="FormData"&&t[Ll])}const ZT=t=>{const e=new Array(10),r=(i,a)=>{if(Oo(i)){if(e.indexOf(i)>=0)return;if(No(i))return i;
vendor: 9,679 bytes, lines 167-168
167if(!("toJSON"in i)){e[a]=i;const l=ui(i)?[]:{};return jo(i,(c,d)=>{const h=r(c,a+1);!si(h)&&(l[d]=h)}),e[a]=void 0,l}}return i};return r(t,0)},eC=hn("AsyncFunction"),tC=t=>t&&(Oo(t)||Dt(t))&&Dt(t.then)&&Dt(t.catch),ew=((t,e)=>t?setImmediate:e?((r,i)=>(Yr.addEventListener("message",({source:a,data:l})=>{a===Yr&&l===r&&i.length&&i.shift()()},!1),a=>{i.push(a),Yr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Dt(Yr.postMessage)),nC=typeof queueMicrotask<"u"?queueMicrotask.bind(Yr):typeof process<"u"&&process.nextTick||ew,rC=t=>t!=null&&Dt(t[Ll]),I={isArray:ui,isArrayBuffer:G0,isBuffer:No,isFormData:AT,isArrayBufferView:xT,isString:ST,isNumber:Y0,isBoolean:bT,isObject:Oo,isPlainObject:ll,isEmptyObject:kT,isReadableStream:NT,isRequest:OT,isResponse:jT,isHeaders:DT,isUndefined:si,isDate:ET,isFile:TT,isBlob:CT,isRegExp:KT,isFunction:Dt,isStream:PT,isURLSearchParams:RT,isTypedArray:zT,isFileList:_T,forEach:jo,merge:Ld,extend:MT,trim:LT,stripBOM:FT,inherits:IT,toFlatObject:VT,kindOf:Ml,kindOfTest:hn,endsWith:BT,toArray:UT,forEachEntry:$T,matchAll:WT,isHTMLForm:qT,hasOwnProperty:Wg,hasOwnProp:Wg,reduceDescriptors:Z0,freezeMethods:QT,toObjectSet:GT,toCamelCase:HT,noop:YT,toFiniteNumber:XT,findKey:X0,global:Yr,isContextDefined:J0,isSpecCompliantForm:JT,toJSONObject:ZT,isAsyncFn:eC,isThenable:tC,setImmediate:ew,asap:nC,isIterable:rC};let pe=class tw extends Error{static from(e,r,i,a,l,c){const d=new tw(e.message,r||e.code,i,a,l);return d.cause=e,d.name=e.name,c&&Object.assign(d,c),d}constructor(e,r,i,a,l){super(e),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),i&&(this.config=i),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}};pe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";pe.ERR_BAD_OPTION="ERR_BAD_OPTION";pe.ECONNABORTED="ECONNABORTED";pe.ETIMEDOUT="ETIMEDOUT";pe.ERR_NETWORK="ERR_NETWORK";pe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";pe.ERR_DEPRECATED="ERR_DEPRECATED";pe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";pe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";pe.ERR_CANCELED="ERR_CANCELED";pe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";pe.ERR_INVALID_URL="ERR_INVALID_URL";const sC=null;function Md(t){return I.isPlainObject(t)||I.isArray(t)}function nw(t){return I.endsWith(t,"[]")?t.slice(0,-2):t}function qg(t,e,r){return t?t.concat(e).map(function(a,l){return a=nw(a),!r&&l?"["+a+"]":a}).join(r?".":""):e}function iC(t){return I.isArray(t)&&!t.some(Md)}const oC=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Il(t,e,r){if(!I.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!I.isUndefined(S[b])});const i=r.metaTokens,a=r.visitor||g,l=r.dots,c=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(a))throw new TypeError("visitor must be a function");function m(k){if(k===null)return"";if(I.isDate(k))return k.toISOString();if(I.isBoolean(k))return k.toString();if(!h&&I.isBlob(k))throw new pe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(k)||I.isTypedArray(k)?h&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function g(k,b,S){let A=k;if(k&&!S&&typeof k=="object"){if(I.endsWith(b,"{}"))b=i?b:b.slice(0,-2),k=JSON.stringify(k);else if(I.isArray(k)&&iC(k)||(I.isFileList(k)||I.endsWith(b,"[]"))&&(A=I.toArray(k)))return b=nw(b),A.forEach(function(L,M){!(I.isUndefined(L)||L===null)&&e.append(c===!0?qg([b],M,l):c===null?b:b+"[]",m(L))}),!1}return Md(k)?!0:(e.append(qg(S,b,l),m(k)),!1)}const y=[],w=Object.assign(oC,{defaultVisitor:g,convertValue:m,isVisitable:Md});function T(k,b){if(!I.isUndefined(k)){if(y.indexOf(k)!==-1)throw Error("Circular reference detected in "+b.join("."));y.push(k),I.forEach(k,function(A,V){(!(I.isUndefined(A)||A===null)&&a.call(e,A,I.isString(V)?V.trim():V,b,w))===!0&&T(A,b?b.concat(V):[V])}),y.pop()}}if(!I.isObject(t))throw new TypeError("data must be an object");return T(t),e}function Hg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function bf(t,e){this._pairs=[],t&&Il(t,this,e)}const rw=bf.prototype;rw.append=function(e,r){this._pairs.push([e,r])};rw.toString=function(e){const r=e?function(i){return e.call(this,i,Hg)}:Hg;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function aC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function sw(t,e,r){if(!e)return t;const i=r&&r.encode||aC,a=I.isFunction(r)?{serialize:r}:r,l=a&&a.serialize;let c;if(l?c=l(e,a):c=I.isURLSearchParams(e)?e.toString():new bf(e,a).toString(i),c){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class Kg{constructor(){this.handlers=[]}use(e,r,i){return this.handlers.push({fulfilled:e,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(i){i!==null&&e(i)})}}const kf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},lC=typeof URLSearchParams<"u"?URLSearchParams:bf,uC=typeof FormData<"u"?FormData:null,cC=typeof Blob<"u"?Blob:null,dC={isBrowser:!0,classes:{URLSearchParams:lC,FormData:uC,Blob:cC},protocols:["http","https","file","blob","url","data"]},Ef=typeof window<"u"&&typeof document<"u",Fd=typeof navigator=="object"&&navigator||void 0,fC=Ef&&(!Fd||["ReactNative","NativeScript","NS"].indexOf(Fd.product)<0),hC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pC=Ef&&window.location.href||"http://localhost",mC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ef,hasStandardBrowserEnv:fC,hasStandardBrowserWebWorkerEnv:hC,navigator:Fd,origin:pC},Symbol.toStringTag,{value:"Module"})),xt={...mC,...dC};function gC(t,e){return Il(t,new xt.classes.URLSearchParams,{visitor:function(r,i,a,l){return xt.isNode&&I.isBuffer(r)?(this.append(i,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}function yC(t){return I.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vC(t){const e={},r=Object.keys(t);let i;const a=r.length;let l;for(i=0;i<a;i++)l=r[i],e[l]=t[l];return e}function iw(t){function e(r,i,a,l){let c=r[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),h=l>=r.length;return c=!c&&I.isArray(a)?a.length:c,h?(I.hasOwnProp(a,c)?a[c]=[a[c],i]:a[c]=i,!d):((!a[c]||!I.isObject(a[c]))&&(a[c]=[]),e(r,i,a[c],l)&&I.isArray(a[c])&&(a[c]=vC(a[c])),!d)}if(I.isFormData(t)&&I.isFunction(t.entries)){const r={};return I.forEachEntry(t,(i,a)=>{e(yC(i),a,r,0)}),r}return null}function wC(t,e,r){if(I.isString(t))try{return(e||JSON.parse)(t),I.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const Do={transitional:kf,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",a=i.indexOf("application/json")>-1,l=I.isObject(e);if(l&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return a?JSON.stringify(iw(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e)||I.isReadableStream(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(l){if(i.indexOf("application/x-www-form-urlencoded")>-1)return gC(e,this.formSerializer).toString();if((d=I.isFileList(e))||i.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Il(d?{"files[]":e}:e,h&&new h,this.formSerializer)}}return l||a?(r.setContentType("application/json",!1),wC(e)):e}],transformResponse:[function(e){const r=this.transitional||Do.transitional,i=r&&r.forcedJSONParsing,a=this.responseType==="json";if(I.isResponse(e)||I.isReadableStream(e))return e;if(e&&I.isString(e)&&(i&&!this.responseType||a)){const c=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(d){if(c)throw d.name==="SyntaxError"?pe.from(d,pe.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],t=>{Do.headers[t]={}});const xC=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SC=t=>{const e={};let r,i,a;return t&&t.split(` 168`).forEach(function(c){a=c.indexOf(":"),r=c.substring(0,a).trim().toLowerCase(),i=c.substring(a+1).trim(),!(!r||e[r]&&xC[r])&&(r==="set-cookie"?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e},Qg=Symbol("internals");function eo(t){return t&&String(t).trim().toLowerCase()}function ul(t){return t===!1||t==null?t:I.isArray(t)?t.map(ul):String(t)}function bC(t){const e=Object.create(null),r=/([^\s,;
168=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)e[i[1]]=i[2];return e}const kC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qc(t,e,r,i,a){if(I.isFunction(i))return i.call(this,e,r);if(a&&(e=r),!!I.isString(e)){if(I.isString(i))return e.indexOf(i)!==-1;if(I.isRegExp(i))return i.test(e)}}function EC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,i)=>r.toUpperCase()+i)}function TC(t,e){const r=I.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(a,l,c){return this[i].call(this,e,a,l,c)},configurable:!0})})}let Lt=class{constructor(e){e&&this.set(e)}set(e,r,i){const a=this;function l(d,h,m){const g=eo(h);if(!g)throw new Error("header name must be a non-empty string");const y=I.findKey(a,g);(!y||a[y]===void 0||m===!0||m===void 0&&a[y]!==!1)&&(a[y||h]=ul(d))}const c=(d,h)=>I.forEach(d,(m,g)=>l(m,g,h));if(I.isPlainObject(e)||e instanceof this.constructor)c(e,r);else if(I.isString(e)&&(e=e.trim())&&!kC(e))c(SC(e),r);else if(I.isObject(e)&&I.isIterable(e)){let d={},h,m;for(const g of e){if(!I.isArray(g))throw TypeError("Object iterator must return a key-value pair");d[m=g[0]]=(h=d[m])?I.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}c(d,r)}else e!=null&&l(r,e,i);return this}get(e,r){if(e=eo(e),e){const i=I.findKey(this,e);if(i){const a=this[i];if(!r)return a;
vendor: 4,587 bytes, lines 168-169
168if(r===!0)return bC(a);if(I.isFunction(r))return r.call(this,a,i);if(I.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=eo(e),e){const i=I.findKey(this,e);return!!(i&&this[i]!==void 0&&(!r||Qc(this,this[i],i,r)))}return!1}delete(e,r){const i=this;let a=!1;function l(c){if(c=eo(c),c){const d=I.findKey(i,c);d&&(!r||Qc(i,i[d],d,r))&&(delete i[d],a=!0)}}return I.isArray(e)?e.forEach(l):l(e),a}clear(e){const r=Object.keys(this);let i=r.length,a=!1;for(;i--;){const l=r[i];(!e||Qc(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const r=this,i={};return I.forEach(this,(a,l)=>{const c=I.findKey(i,l);if(c){r[c]=ul(a),delete r[l];return}const d=e?EC(l):String(l).trim();d!==l&&delete r[l],r[d]=ul(a),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return I.forEach(this,(i,a)=>{i!=null&&i!==!1&&(r[a]=e&&I.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` 169`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const i=new this(e);return r.forEach(a=>i.set(a)),i}static accessor(e){const i=(this[Qg]=this[Qg]={accessors:{}}).accessors,a=this.prototype;function l(c){const d=eo(c);i[d]||(TC(a,c),i[d]=!0)}return I.isArray(e)?e.forEach(l):l(e),this}};Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Lt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[r]=i}}});I.freezeMethods(Lt);function Gc(t,e){const r=this||Do,i=e||r,a=Lt.from(i.headers);let l=i.data;return I.forEach(t,function(d){l=d.call(r,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function ow(t){return!!(t&&t.__CANCEL__)}let Lo=class extends pe{constructor(e,r,i){super(e??"canceled",pe.ERR_CANCELED,r,i),this.name="CanceledError",this.__CANCEL__=!0}};function aw(t,e,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):e(new pe("Request failed with status code "+r.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function CC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function _C(t,e){t=t||10;const r=new Array(t),i=new Array(t);let a=0,l=0,c;return e=e!==void 0?e:1e3,function(h){const m=Date.now(),g=i[l];c||(c=m),r[a]=h,i[a]=m;let y=l,w=0;for(;y!==a;)w+=r[y++],y=y%t;if(a=(a+1)%t,a===l&&(l=(l+1)%t),m-c<e)return;const T=g&&m-g;return T?Math.round(w*1e3/T):void 0}}function PC(t,e){let r=0,i=1e3/e,a,l;const c=(m,g=Date.now())=>{r=g,a=null,l&&(clearTimeout(l),l=null),t(...m)};return[(...m)=>{const g=Date.now(),y=g-r;y>=i?c(m,g):(a=m,l||(l=setTimeout(()=>{l=null,c(a)},i-y)))},()=>a&&c(a)]}const kl=(t,e,r=3)=>{let i=0;const a=_C(50,250);return PC(l=>{const c=l.loaded,d=l.lengthComputable?l.total:void 0,h=c-i,m=a(h),g=c<=d;i=c;const y={loaded:c,total:d,progress:d?c/d:void 0,bytes:h,rate:m||void 0,estimated:m&&d&&g?(d-c)/m:void 0,event:l,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(y)},r)},Gg=(t,e)=>{const r=t!=null;return[i=>e[0]({lengthComputable:r,total:t,loaded:i}),e[1]]},Yg=t=>(...e)=>I.asap(()=>t(...e)),AC=xt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,xt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(xt.origin),xt.navigator&&/(msie|trident)/i.test(xt.navigator.userAgent)):()=>!0,RC=xt.hasStandardBrowserEnv?{write(t,e,r,i,a,l,c){if(typeof document>"u")return;const d=[`${t}=${encodeURIComponent(e)}`];I.isNumber(r)&&d.push(`expires=${new Date(r).toUTCString()}`),I.isString(i)&&d.push(`path=${i}`),I.isString(a)&&d.push(`domain=${a}`),l===!0&&d.push("secure"),I.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function NC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function OC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function lw(t,e,r){let i=!NC(e);return t&&(i||r==!1)?OC(t,e):e}const Xg=t=>t instanceof Lt?{...t}:t;function ds(t,e){e=e||{};const r={};function i(m,g,y,w){return I.isPlainObject(m)&&I.isPlainObject(g)?I.merge.call({caseless:w}
vendor: 6,051 bytes, line 169
169,m,g):I.isPlainObject(g)?I.merge({},g):I.isArray(g)?g.slice():g}function a(m,g,y,w){if(I.isUndefined(g)){if(!I.isUndefined(m))return i(void 0,m,y,w)}else return i(m,g,y,w)}function l(m,g){if(!I.isUndefined(g))return i(void 0,g)}function c(m,g){if(I.isUndefined(g)){if(!I.isUndefined(m))return i(void 0,m)}else return i(void 0,g)}function d(m,g,y){if(y in e)return i(m,g);if(y in t)return i(void 0,m)}const h={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(m,g,y)=>a(Xg(m),Xg(g),y,!0)};return I.forEach(Object.keys({...t,...e}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const y=I.hasOwnProp(h,g)?h[g]:a,w=y(t[g],e[g],g);I.isUndefined(w)&&y!==d||(r[g]=w)}),r}const uw=t=>{const e=ds({},t);let{data:r,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:l,headers:c,auth:d}=e;if(e.headers=c=Lt.from(c),e.url=sw(lw(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),I.isFormData(r)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(I.isFunction(r.getHeaders)){const h=r.getHeaders(),m=["content-type","content-length"];Object.entries(h).forEach(([g,y])=>{m.includes(g.toLowerCase())&&c.set(g,y)})}}if(xt.hasStandardBrowserEnv&&(i&&I.isFunction(i)&&(i=i(e)),i||i!==!1&&AC(e.url))){const h=a&&l&&RC.read(l);h&&c.set(a,h)}return e},jC=typeof XMLHttpRequest<"u",DC=jC&&function(t){return new Promise(function(r,i){const a=uw(t);let l=a.data;const c=Lt.from(a.headers).normalize();let{responseType:d,onUploadProgress:h,onDownloadProgress:m}=a,g,y,w,T,k;function b(){T&&T(),k&&k(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let S=new XMLHttpRequest;S.open(a.method.toUpperCase(),a.url,!0),S.timeout=a.timeout;function A(){if(!S)return;const L=Lt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),U={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:L,config:t,request:S};aw(function(Y){r(Y),b()},function(Y){i(Y),b()},U),S=null}"onloadend"in S?S.onloadend=A:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(A)},S.onabort=function(){S&&(i(new pe("Request aborted",pe.ECONNABORTED,t,S)),S=null)},S.onerror=function(M){const U=M&&M.message?M.message:"Network Error",Q=new pe(U,pe.ERR_NETWORK,t,S);Q.event=M||null,i(Q),S=null},S.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const U=a.transitional||kf;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),i(new pe(M,U.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,t,S)),S=null},l===void 0&&c.setContentType(null),"setRequestHeader"in S&&I.forEach(c.toJSON(),function(M,U){S.setRequestHeader(U,M)}),I.isUndefined(a.withCredentials)||(S.withCredentials=!!a.withCredentials),d&&d!=="json"&&(S.responseType=a.responseType),m&&([w,k]=kl(m,!0),S.addEventListener("progress",w)),h&&S.upload&&([y,T]=kl(h),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",T)),(a.cancelToken||a.signal)&&(g=L=>{S&&(i(!L||L.type?new Lo(null,t,S):L),S.abort(),S=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const V=CC(a.url);if(V&&xt.protocols.indexOf(V)===-1){i(new pe("Unsupported protocol "+V+":",pe.ERR_BAD_REQUEST,t));return}S.send(l||null)})},LC=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let i=new AbortController,a;const l=function(m){if(!a){a=!0,d();const g=m instanceof Error?m:this.reason;i.abort(g instanceof pe?g:new Lo(g instanceof Error?g.message:g))}};let c=e&&setTimeout(()=>{c=null,l(new pe(`timeout of ${e}ms exceeded`,pe.ETIMEDOUT))},e);const d=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(m=>{m.unsubscribe?m.unsubscribe(l):m.removeEventListener("abort",l)}),t=null)};t.forEach(m=>m.addEventListener("abort",l));const{signal:h}=i;return h.unsubscribe=()=>I.asap(d),h}},MC=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let i=0,a;for(;i<r;)a=i+e,yield t.slice(i,a),i=a},FC=async function*(t,e){for await(const r of IC(t))yield*MC(r,e)},IC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:i}=await e.read();if(r)break;yield i}}finally{await e.cancel()}},Jg=(t,e,r,i)=>{const a=FC(t,e);let l=0,c,d=h=>{c||(c=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await a.next();if(m){d(),h.close();return}let y=g.byteLength;if(r){let w=l+=y;r(w)}h.enqueue(new Uint8Array(g))}catch(m){throw d(m),m}},cancel(h){return d(h),a.return()}},{highWaterMark:2})},Zg=64*1024,{isFunction:Za}=I,VC=(({Request:t,Response:e})=>({Request:t,Response:e}))(I.global),{ReadableStream:ey,TextEncoder:ty}=I.global,ny=(t,...e)=>{try{return!!t(...e)}catch{return!1}},BC=t=>{t=I.merge.call({skipUndefined:!0},VC,t);const{fetch:e,Request:r,Response:i}=t,a=e?Za(e):typeof fetch=="function",l=Za(r),c=Za(i);if(!a)return!1;const d=a&&Za(ey),h=a&&(typeof ty=="function"?(k=>b=>k.encode(b))(new ty):async k=>new Uint8Array(await new r(k).arrayBuffer())),m=l&&d&&ny(()=>{let k=!1;const b=new r(xt.origin,{body:new ey,method:"POST",get duplex(){return k=!0,"half"}}).headers.has("Content-Type");return k&&!b}),g=c&&d&&ny(()=>I.isReadableStream(new i("").body)),y={stream:g&&(k=>k.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!y[k]&&(y[k]=(b,S)=>{let A=b&&b[k];if(A)return A.call(b);throw new pe(`Response type '${k}' is not supported`,pe.ERR_NOT_SUPPORT,S)})});const w=async k=>
vendor: 2,590 bytes, line 169
169{if(k==null)return 0;if(I.isBlob(k))return k.size;if(I.isSpecCompliantForm(k))return(await new r(xt.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(I.isArrayBufferView(k)||I.isArrayBuffer(k))return k.byteLength;if(I.isURLSearchParams(k)&&(k=k+""),I.isString(k))return(await h(k)).byteLength},T=async(k,b)=>{const S=I.toFiniteNumber(k.getContentLength());return S??w(b)};return async k=>{let{url:b,method:S,data:A,signal:V,cancelToken:L,timeout:M,onDownloadProgress:U,onUploadProgress:Q,responseType:Y,headers:F,withCredentials:J="same-origin",fetchOptions:me}=uw(k),de=e||fetch;Y=Y?(Y+"").toLowerCase():"text";let Ce=LC([V,L&&L.toAbortSignal()],M),De=null;const Re=Ce&&Ce.unsubscribe&&(()=>{Ce.unsubscribe()});let Me;try{if(Q&&m&&S!=="get"&&S!=="head"&&(Me=await T(F,A))!==0){let R=new r(b,{method:"POST",body:A,duplex:"half"}),z;if(I.isFormData(A)&&(z=R.headers.get("content-type"))&&F.setContentType(z),R.body){const[ye,ve]=Gg(Me,kl(Yg(Q)));A=Jg(R.body,Zg,ye,ve)}}I.isString(J)||(J=J?"include":"omit");const xe=l&&"credentials"in r.prototype,fe={...me,signal:Ce,method:S.toUpperCase(),headers:F.normalize().toJSON(),body:A,duplex:"half",credentials:xe?J:void 0};De=l&&new r(b,fe);let H=await(l?de(De,me):de(b,fe));const se=g&&(Y==="stream"||Y==="response");if(g&&(U||se&&Re)){const R={};["status","statusText","headers"].forEach(le=>{R[le]=H[le]});const z=I.toFiniteNumber(H.headers.get("content-length")),[ye,ve]=U&&Gg(z,kl(Yg(U),!0))||[];H=new i(Jg(H.body,Zg,ye,()=>{ve&&ve(),Re&&Re()}),R)}Y=Y||"text";let B=await y[I.findKey(y,Y)||"text"](H,k);return!se&&Re&&Re(),await new Promise((R,z)=>{aw(R,z,{data:B,headers:Lt.from(H.headers),status:H.status,statusText:H.statusText,config:k,request:De})})}catch(xe){throw Re&&Re(),xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)?Object.assign(new pe("Network Error",pe.ERR_NETWORK,k,De,xe&&xe.response),{cause:xe.cause||xe}):pe.from(xe,xe&&xe.code,k,De,xe&&xe.response)}}},UC=new Map,cw=t=>{let e=t&&t.env||{};const{fetch:r,Request:i,Response:a}=e,l=[i,a,r];let c=l.length,d=c,h,m,g=UC;for(;d--;)h=l[d],m=g.get(h),m===void 0&&g.set(h,m=d?new Map:BC(e)),g=m;return m};cw();const Tf={http:sC,xhr:DC,fetch:{get:cw}};I.forEach(Tf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ry=t=>`- ${t}`,zC=t=>I.isFunction(t)||t===null||t===!1;function $C(t,e){t=I.isArray(t)?t:[t];const{length:r}=t;let i,a;const l={};for(let c=0;c<r;c++){i=t[c];let d;if(a=i,!zC(i)&&(a=Tf[(d=String(i)).toLowerCase()],a===void 0))throw new pe(`Unknown adapter '${d}'`);
vendor: 5,276 bytes, lines 169-172
169if(a&&(I.isFunction(a)||(a=a.get(e))))break;l[d||"#"+c]=a}if(!a){const c=Object.entries(l).map(([h,m])=>`adapter ${h} `+(m===!1?"is not supported by the environment":"is not available in the build"));let d=r?c.length>1?`since : 170`+c.map(ry).join(` 171`):" "+ry(c[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return a}const dw={getAdapter:$C,adapters:Tf};function Yc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Lo(null,t)}function sy(t){return Yc(t),t.headers=Lt.from(t.headers),t.data=Gc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),dw.getAdapter(t.adapter||Do.adapter,t)(t).then(function(i){return Yc(t),i.data=Gc.call(t,t.transformResponse,i),i.headers=Lt.from(i.headers),i},function(i){return ow(i)||(Yc(t),i&&i.response&&(i.response.data=Gc.call(t,t.transformResponse,i.response),i.response.headers=Lt.from(i.response.headers))),Promise.reject(i)})}const fw="1.13.5",Vl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Vl[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const iy={};Vl.transitional=function(e,r,i){function a(l,c){return"[Axios v"+fw+"] Transitional option '"+l+"'"+c+(i?". "+i:"")}return(l,c,d)=>{if(e===!1)throw new pe(a(c," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!iy[c]&&(iy[c]=!0,console.warn(a(c," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(l,c,d):!0}};Vl.spelling=function(e){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function WC(t,e,r){if(typeof t!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let a=i.length;for(;a-- >0;){const l=i[a],c=e[l];if(c){const d=t[l],h=d===void 0||c(d,l,t);if(h!==!0)throw new pe("option "+l+" must be "+h,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+l,pe.ERR_BAD_OPTION)}}const cl={assertOptions:WC,validators:Vl},Gt=cl.validators;let ls=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Kg,response:new Kg}}async request(e,r){try{return await this._request(e,r)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?l&&!String(i.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(i.stack+=` 172`+l):i.stack=l}catch{}}throw i}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=ds(this.defaults,r);const{transitional:i,paramsSerializer:a,headers:l}=r;i!==void 0&&cl.assertOptions(i,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean),legacyInterceptorReqResOrdering:Gt.transitional(Gt.boolean)},!1),a!=null&&(I.isFunction(a)?r.paramsSerializer={serialize:a}:cl.assertOptions(a,{encode:Gt.function,serialize:Gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),cl.assertOptions(r,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=l&&I.merge(l.common,l[r.method]);l&&I.forEach(["delete","get","head","post","put","patch","common"],k=>{delete l[k]}),r.headers=Lt.concat(c,l);const d=[];let h=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(r)===!1)return;h=h&&b.synchronous;const S=r.transitional||kf;S&&S.legacyInterceptorReqResOrdering?d.unshift(b.fulfilled,b.rejected):d.push(b.fulfilled,b.rejected)});const m=[];this.interceptors.response.forEach(function(b){m.push(b.fulfilled,b.rejected)});let g,y=0,w;if(!h){const k=[sy.bind(this),void 0];for(k.unshift(...d),k.push(...m),w=k.length,g=Promise.resolve(r);y<w;)g=g.then(k[y++],k[y++]);return g}w=d.length;let T=r;for(;y<w;){const k=d[y++],b=d[y++];try{T=k(T)}catch(S){b.call(this,S);break}}try{g=sy.call(this,T)}catch(k){return Promise.reject(k)}for(y=0,w=m.length;y<w;)g=g.then(m[y++],m[y++]);return g}getUri(e){e=ds(this.defaults,e);const r=lw(e.baseURL,e.url,e.allowAbsoluteUrls);return sw(r,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){ls.prototype[e]=function(r,i){return this.request(ds(i||{},{method:e,url:r,data:(i||{}).data}))}});I.forEach(["post","put","patch"],function(e){function r(i){return function(l,c,d){return this.request(ds(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}ls.prototype[e]=r(),ls.prototype[e+"Form"]=r(!0)});let qC=class hw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const i=this;this.promise.then(a=>{if(!i._listeners)return;let l=i._listeners.length;for(;l-- >0;)i._listeners[l](a);i._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(d=>{i.subscribe(d),l=d}).then(a);return c.cancel=function(){i.unsubscribe(l)},c},e(function(l,c,d){i.reason||(i.reason=new Lo(l,c,d),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
172subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=i=>{e.abort(i)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new hw(function(a){e=a}),cancel:e}}};function HC(t){return function(r){return t.apply(null,r)}}function KC(t){return I.isObject(t)&&t.isAxiosError===!0}const Id={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Id).forEach(([t,e])=>{Id[e]=t});function pw(t){const e=new ls(t),r=K0(ls.prototype.request,e);return I.extend(r,ls.prototype,e,{allOwnKeys:!0}),I.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return pw(ds(t,a))},r}const Je=pw(Do);Je.Axios=ls;Je.CanceledError=Lo;Je.CancelToken=qC;Je.isCancel=ow;Je.VERSION=fw;Je.toFormData=Il;Je.AxiosError=pe;Je.Cancel=Je.CanceledError;Je.all=function(e){return Promise.all(e)};Je.spread=HC;Je.isAxiosError=KC;Je.mergeConfig=ds;Je.AxiosHeaders=Lt;Je.formToJSON=t=>iw(I.isHTMLForm(t)?new FormData(t):t);Je.getAdapter=dw.getAdapter;Je.HttpStatusCode=Id;Je.default=Je;const{Axios:VO,AxiosError:BO,CanceledError:UO,isCancel:zO,CancelToken:$O,VERSION:WO,all:qO,Cancel:HO,isAxiosError:KO,spread:QO,toFormData:GO,AxiosHeaders:YO,HttpStatusCode:XO,formToJSON:JO,getAdapter:ZO,mergeConfig:ej}=Je,QC=typeof window>"u",oy=!QC&&window.self!==window.top,Xc=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),ct=[];for(let t=0;t<256;++t)ct.push((t+256).toString(16).slice(1));function GC(t,e=0){return(ct[t[e+0]]+ct[t[e+1]]+ct[t[e+2]]+ct[t[e+3]]+"-"+ct[t[e+4]]+ct[t[e+5]]+"-"+ct[t[e+6]]+ct[t[e+7]]+"-"+ct[t[e+8]]+ct[t[e+9]]+"-"+ct[t[e+10]]+ct[t[e+11]]+ct[t[e+12]]+ct[t[e+13]]+ct[t[e+14]]+ct[t[e+15]]).toLowerCase()}let Jc;const YC=new Uint8Array(16);function XC(){if(!Jc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Jc=crypto.getRandomValues.bind(crypto)}return Jc(YC)}const JC=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ay={randomUUID:JC};function ZC(t,e,r){var a;t=t||{};const i=t.random??((a=t.rng)==null?void 0:a.call(t))??XC();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,GC(i)}function e_(t,e,r){return ay.randomUUID&&!t?ay.randomUUID():ZC(t)}class mw extends Error{constructor(e,r,i,a,l){super(e),this.name="Base44Error",this.status=r,this.code=i,this.data=a,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function io({baseURL:t,headers:e={},token:r,interceptResponses:i=!0,onError:a}){const l=Je.create({baseURL:t,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return r&&(l.defaults.headers.common.Authorization=`Bearer ${r}`),l.interceptors.request.use(c=>{typeof window<"u"&&c.headers.set("X-Origin-URL",window.location.href);const d=e_();if(c.requestId=d,oy)try{window.parent.postMessage({type:"api-request-start",requestId:d,data:{url:t+c.url,method:c.method,body:c.data instanceof FormData?"[FormData object]":c.data}},"*")}catch{}return c}),i&&l.interceptors.response.use(c=>{var d;const h=(d=c.config)===null||d===void 0?void 0:d.requestId;try{oy&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:c.status,response:c.data}},"*")}catch{}return c.data},c=>{var d,h,m,g,y,w,T,k;const b=((h=(d=c.response)===null||d===void 0?void 0:d.data)===null||h===void 0?void 0:h.message)||((g=(m=c.response)===null||m===void 0?void 0:m.data)===null||g===void 0?void 0:g.detail)||c.message,S=new mw(b,(y=c.response)===null||y===void 0?void 0:y.status,(T=(w=c.response)===null||w===void 0?void 0:w.data)===null||T===void 0?void 0:T.code,(k=c.response)===null||k===void 0?void 0:k.data,c);return a==null||a(S),Promise.reject(S)}),l}function ly(t){const{axios:e,appId:r,getSocket:i}=t;return new Proxy({},{get(a,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return n_(e,r,l,i)}})}function t_(t){var e;try{const r=JSON.parse(t);return{type:r.type,data:r.data,id:r.id||((e=r.data)===null||e===void 0?void 0:e.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}function n_(t,e,r,i){const a=`/apps/${e}/entities/${r}`;return{async list(l,c,d,h){const m={};return l&&(m.sort=l),c&&(m.limit=c),d&&(m.skip=d),h&&(m.fields=Array.isArray(h)?h.join(","):h),t.get(a,{params:m})},async filter(l,c,d,h,m){const g={q:JSON.stringify(l)};return c&&(g.sort=c),d&&(g.limit=d),h&&(g.skip=h),m&&(g.fields=Array.isArray(m)?m.join(","):m),t.get(a,{params:g})},async get(l){return t.get(`${a}/${l}`)},async create(l){return t.post(a,l)},async update(l,c){return t.put(`${a}/${l}`,c)},async delete(l){return t.delete(`${a}/${l}`)},async deleteMany(l){return t.delete(a,{data:l})},async bulkCreate(l){return t.post(`${a}/bulk`,l)},async updateMany(l,c){return t.patch(`${a}/update-many`,{query:l,data:c})},async bulkUpdate(l){return t.put(`${a}/bulk`,l)},async importEntities(l){const c=new FormData;return c.append("file",l,l.name),t.post(`${a}/import`,c,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const c=`entities:${e}:${r}`;return i().subscribeToRoom(c,{update_model:m=>{const g=t_(m.data);if(g)try{l(g)}catch(y){console.error("[Base44 SDK] Subscription callback error:",y)}}})}}}function r_(t,e){return{async call(r,i,a){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:c,...d}=a??{},h={...d,...l&&{path_params:l},...c&&{query_params:c}};return await t.post(`/apps/${e}/integrations/custom/${r}/${i}`,h)}}}function uy(t,e){const r=r_(t,e);return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return a==="custom"?r:new Proxy({},{get(l,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return async d=>
172{if(typeof d=="string")throw new Error(`Integration ${c} must receive an object with named parameters, received: ${d}`);let h,m;return d instanceof FormData||d&&Object.values(d).some(g=>g instanceof File)?(h=new FormData,Object.keys(d).forEach(g=>{d[g]instanceof File?h.append(g,d[g],d[g].name):typeof d[g]=="object"&&d[g]!==null?h.append(g,JSON.stringify(d[g])):h.append(g,d[g])}),m="multipart/form-data"):(h=d,m="application/json"),a==="Core"?t.post(`/apps/${e}/integration-endpoints/Core/${c}`,h||d,{headers:{"Content-Type":m}}):t.post(`/apps/${e}/integration-endpoints/installable/${a}/integration-endpoints/${c}`,h||d,{headers:{"Content-Type":m}})}}})}})}function s_(){return typeof window>"u"?!1:window!==window.parent}function i_(t,e,r){const l=Math.round(window.screenX+(window.outerWidth-500)/2),c=Math.round(window.screenY+(window.outerHeight-600)/2),d=window.open(t,"base44_auth",`width=500,height=600,left=${l},top=${c},resizable=yes,scrollbars=yes`);if(!d)return;const h=()=>{window.removeEventListener("message",m),clearInterval(g),d.closed||d.close()},m=y=>{var w;if(y.origin!==r||y.source!==d||!(!((w=y.data)===null||w===void 0)&&w.access_token))return;h();const T=new URL(e),{access_token:k,is_new_user:b}=y.data;T.searchParams.set("access_token",k),b!=null&&T.searchParams.set("is_new_user",String(b)),window.location.href=T.toString()},g=setInterval(()=>{d.closed&&h()},500);window.addEventListener("message",m)}function o_(t,e,r,i){return{async me(){return t.get(`/apps/${r}/entities/User/me`)},async updateMe(a){return t.put(`/apps/${r}/entities/User/me`,a)},redirectToLogin(a){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const l=a?new URL(a,window.location.origin).toString():window.location.href,c=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(l)}`;window.location.href=c},loginWithProvider(a,l="/"){const c=new URL(l,window.location.origin).toString(),d=`app_id=${r}&from_url=${encodeURIComponent(c)}`;let h;a==="sso"?h=`/apps/${r}/auth/sso/login`:h=`/apps/auth${a==="google"?"":`/${a}`}/login`;const m=`${i.appBaseUrl}/api${h}?${d}`;if(s_()){const g=`${m}&popup_origin=${encodeURIComponent(window.location.origin)}`;return i_(g,c,window.location.origin)}window.location.href=m},logout(a){if(delete t.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(d){console.error("Failed to remove token from localStorage:",d)}const l=a||window.location.href,c=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(l)}`;window.location.href=c}},setToken(a,l=!0){if(a&&(t.defaults.headers.common.Authorization=`Bearer ${a}`,e.defaults.headers.common.Authorization=`Bearer ${a}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",a),window.localStorage.setItem("token",a)}catch(c){console.error("Failed to save token to localStorage:",c)}},async loginViaEmailPassword(a,l,c){var d;try{const h=await t.post(`/apps/${r}/auth/login`,{email:a,password:l,...c&&{turnstile_token:c}}),{access_token:m,user:g}=h;return m&&this.setToken(m),{access_token:m,user:g}}catch(h){throw((d=h.response)===null||d===void 0?void 0:d.status)===401&&await this.logout(),h}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(a,l){return t.post(`/apps/${r}/users/invite-user`,{user_email:a,role:l})},register(a){return t.post(`/apps/${r}/auth/register`,a)},verifyOtp({email:a,otpCode:l}){return t.post(`/apps/${r}/auth/verify-otp`,{email:a,otp_code:l})},resendOtp(a){return t.post(`/apps/${r}/auth/resend-otp`,{email:a})},resetPasswordRequest(a){return t.post(`/apps/${r}/auth/reset-password-request`,{email:a})},resetPassword({resetToken:a,newPassword:l}){return t.post(`/apps/${r}/auth/reset-password`,{reset_token:a,new_password:l})},changePassword({userId:a,currentPassword:l,newPassword:c}){return t.post(`/apps/${r}/auth/change-password`,{user_id:a,current_password:l,new_password:c})}}}function a_(t,e){return{async getAccessToken(r){const i=`/apps/${e}/auth/sso/accesstoken/${r}`;return t.get(i)}}}function l_(t,e){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${e}/external-auth/tokens/${r}`)).access_token},async getConnection(r){var i;if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");const l=await t.get(`/apps/${e}/external-auth/tokens/${r}`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${e}/app-user-auth/connectors/${r}/token`)).access_token},async getCurrentAppUserConnection(r){var i;if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");const l=await t.get(`/apps/${e}/app-user-auth/connectors/${r}/token`);return{accessToken:l.access_token,connectionConfig:(i=l.connection_config)!==null&&i!==void 0?i:null}}}}function u_(t,e){return{async connectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${e}/app-user-auth/connectors/${r}/initiate`)).redirect_url},async disconnectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${e}/app-user-auth/connectors/${r}`)}}}function ii(t={}){const{storageKey:e="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:a=!0}=t;let l=null;if(typeof window<"u"&&window.location)try{const c=new URLSearchParams(window.location.search);if(l=c.get(r),l){if(i&&gw(l,{storageKey:e}),a){c.delete(r);const d=`${window.location.pathname}
172${c.toString()?`?${c.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}return l}}catch(c){console.error("Error retrieving token from URL:",c)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(e),l}catch(c){console.error("Error retrieving token from local storage:",c)}return null}function gw(t,e){const{storageKey:r="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(r,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function c_(t){const{storageKey:e="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage)return!1;try{return window.localStorage.removeItem(e),!0}catch(r){return console.error("Error removing token from local storage:",r),!1}}function d_(t,e){const{serverUrl:r,appId:i,loginPath:a="/login"}=e;if(!r||!i)throw new Error("serverUrl and appId are required to construct login URL");const l=encodeURIComponent(t||(typeof window<"u"?window.location.href:""));return`${r}${a}?from_url=${l}&app_id=${i}`}function cy(t,e,r){const i=(l,c)=>l?`${String(l).replace(/\/$/,"")}${c}`:c,a=l=>{const c=new Headers;if(r!=null&&r.getAuthHeaders){const d=r.getAuthHeaders();Object.entries(d).forEach(([h,m])=>{m!=null&&c.set(h,String(m))})}return l&&new Headers(l).forEach((d,h)=>{c.set(h,d)}),c};return{async invoke(l,c){if(typeof c=="string")throw new Error(`Function ${l} must receive an object with named parameters, received: ${c}`);let d,h;return c instanceof FormData||c&&Object.values(c).some(m=>m instanceof File)?(d=new FormData,Object.keys(c).forEach(m=>{c[m]instanceof File?d.append(m,c[m],c[m].name):typeof c[m]=="object"&&c[m]!==null?d.append(m,JSON.stringify(c[m])):d.append(m,c[m])}),h="multipart/form-data"):(d=c,h="application/json"),t.post(`/apps/${e}/functions/${l}`,d||c,{headers:{"Content-Type":h}})},async fetch(l,c={}){const h=`/functions${l.startsWith("/")?l:`/${l}`}`,m=a(c.headers),g={...c,headers:m};return await fetch(i(r==null?void 0:r.baseURL,h),g)}}}function dy({axios:t,getSocket:e,appId:r,serverUrl:i,token:a}){const l=`/apps/${r}/agents`,c={},d=()=>t.get(`${l}/conversations`),h=b=>t.get(`${l}/conversations/${b}`);return{getConversations:d,getConversation:h,listConversations:b=>t.get(`${l}/conversations`,{params:b}),createConversation:b=>t.post(`${l}/conversations`,b),addMessage:async(b,S)=>t.post(`${l}/conversations/v2/${b.id}/messages`,S),subscribeToConversation:(b,S)=>{const A=`/agent-conversations/${b}`,V=e(),L=h(b).then(M=>(c[b]=M,M));return V.subscribeToRoom(A,{connect:()=>{},update_model:async({data:M})=>{const U=JSON.parse(M);if(U._message){await L;const Q=U._message,Y=c[b];if(Y){const F=Y.messages||[],J=F.findIndex(de=>de.id===Q.id),me=J!==-1?F.map((de,Ce)=>Ce===J?Q:de):[...F,Q];c[b]={...Y,messages:me},S==null||S(c[b])}}}})},getWhatsAppConnectURL:b=>{const S=`${i}/api/apps/${r}/agents/${encodeURIComponent(b)}/whatsapp`,A=a??ii();return A?`${S}?token=${A}`:S},getTelegramConnectURL:b=>{const S=`${i}/api/apps/${r}/agents/${encodeURIComponent(b)}/telegram`,A=a??ii();return A?`${S}?token=${A}`:S}}}function fy(t,e){const r=`/app-logs/${e}`;return{async logUserInApp(i){await t.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(r,{params:i})},async getStats(i={}){return await t.get(`${r}/stats`,{params:i})}}}function f_(t,e){return{async inviteUser(r,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await t.post(`/apps/${e}/runtime/users/invite-user`,{user_email:r,role:i})}}}const Tn=Object.create(null);Tn.open="0";Tn.close="1";Tn.ping="2";Tn.pong="3";Tn.message="4";Tn.upgrade="5";Tn.noop="6";const dl=Object.create(null);Object.keys(Tn).forEach(t=>{dl[Tn[t]]=t});const Vd={type:"error",data:"parser error"},yw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",vw=typeof ArrayBuffer=="function",ww=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Cf=({type:t,data:e},r,i)=>yw&&e instanceof Blob?r?i(e):hy(e,i):vw&&(e instanceof ArrayBuffer||ww(e))?r?i(e):hy(new Blob([e]),i):i(Tn[t]+(e||"")),hy=(t,e)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];e("b"+(i||""))}
vendor: 5,467 bytes, line 172
172,r.readAsDataURL(t)};function py(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Zc;function h_(t,e){if(yw&&t.data instanceof Blob)return t.data.arrayBuffer().then(py).then(e);if(vw&&(t.data instanceof ArrayBuffer||ww(t.data)))return e(py(t.data));Cf(t,!1,r=>{Zc||(Zc=new TextEncoder),e(Zc.encode(r))})}const my="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<my.length;t++)oo[my.charCodeAt(t)]=t;const p_=t=>{let e=t.length*.75,r=t.length,i,a=0,l,c,d,h;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const m=new ArrayBuffer(e),g=new Uint8Array(m);for(i=0;i<r;i+=4)l=oo[t.charCodeAt(i)],c=oo[t.charCodeAt(i+1)],d=oo[t.charCodeAt(i+2)],h=oo[t.charCodeAt(i+3)],g[a++]=l<<2|c>>4,g[a++]=(c&15)<<4|d>>2,g[a++]=(d&3)<<6|h&63;return m},m_=typeof ArrayBuffer=="function",_f=(t,e)=>{if(typeof t!="string")return{type:"message",data:xw(t,e)};const r=t.charAt(0);return r==="b"?{type:"message",data:g_(t.substring(1),e)}:dl[r]?t.length>1?{type:dl[r],data:t.substring(1)}:{type:dl[r]}:Vd},g_=(t,e)=>{if(m_){const r=p_(t);return xw(r,e)}else return{base64:!0,data:t}},xw=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Sw="�",y_=(t,e)=>{const r=t.length,i=new Array(r);let a=0;t.forEach((l,c)=>{Cf(l,!1,d=>{i[c]=d,++a===r&&e(i.join(Sw))})})},v_=(t,e)=>{const r=t.split(Sw),i=[];for(let a=0;a<r.length;a++){const l=_f(r[a],e);if(i.push(l),l.type==="error")break}return i};function w_(){return new TransformStream({transform(t,e){h_(t,r=>{const i=r.length;let a;if(i<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,i);else if(i<65536){a=new Uint8Array(3);const l=new DataView(a.buffer);l.setUint8(0,126),l.setUint16(1,i)}else{a=new Uint8Array(9);const l=new DataView(a.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(r)})}})}let ed;function el(t){return t.reduce((e,r)=>e+r.length,0)}function tl(t,e){if(t[0].length===e)return t.shift();const r=new Uint8Array(e);let i=0;for(let a=0;a<e;a++)r[a]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),r}function x_(t,e){ed||(ed=new TextDecoder);const r=[];let i=0,a=-1,l=!1;return new TransformStream({transform(c,d){for(r.push(c);;){if(i===0){if(el(r)<1)break;const h=tl(r,1);l=(h[0]&128)===128,a=h[0]&127,a<126?i=3:a===126?i=1:i=2}else if(i===1){if(el(r)<2)break;const h=tl(r,2);a=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),i=3}else if(i===2){if(el(r)<8)break;const h=tl(r,8),m=new DataView(h.buffer,h.byteOffset,h.length),g=m.getUint32(0);if(g>Math.pow(2,21)-1){d.enqueue(Vd);break}a=g*Math.pow(2,32)+m.getUint32(4),i=3}else{if(el(r)<a)break;const h=tl(r,a);d.enqueue(_f(l?h:ed.decode(h),e)),i=0}if(a===0||a>t){d.enqueue(Vd);break}}}})}const bw=4;function et(t){if(t)return S_(t)}function S_(t){for(var e in et.prototype)t[e]=et.prototype[e];return t}et.prototype.on=et.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};et.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};et.prototype.off=et.prototype.removeListener=et.prototype.removeAllListeners=et.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,a=0;a<r.length;a++)if(i=r[a],i===e||i.fn===e){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+t],this};et.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,a=r.length;i<a;++i)r[i].apply(this,e)}return this};et.prototype.emitReserved=et.prototype.emit;et.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};et.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Bl=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),en=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),b_="arraybuffer";function kw(t,...e){return e.reduce((r,i)=>(t.hasOwnProperty(i)&&(r[i]=t[i]),r),{})}const k_=en.setTimeout,E_=en.clearTimeout;function Ul(t,e){e.useNativeTimers?(t.setTimeoutFn=k_.bind(en),t.clearTimeoutFn=E_.bind(en)):(t.setTimeoutFn=en.setTimeout.bind(en),t.clearTimeoutFn=en.clearTimeout.bind(en))}const T_=1.33;function C_(t){return typeof t=="string"?__(t):Math.ceil((t.byteLength||t.size)*T_)}function __(t){let e=0,r=0;for(let i=0,a=t.length;i<a;i++)e=t.charCodeAt(i),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(i++,r+=4);return r}function Ew(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function P_(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function A_(t){let e={},r=t.split("&");for(let i=0,a=r.length;i<a;i++){let l=r[i].split("=");e[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return e}
vendor: 6,199 bytes, line 172
172class R_ extends Error{constructor(e,r,i){super(e),this.description=r,this.context=i,this.type="TransportError"}}class Pf extends et{constructor(e){super(),this.writable=!1,Ul(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,i){return super.emitReserved("error",new R_(e,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const r=_f(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const r=P_(e);return r.length?"?"+r:""}}class N_ extends Pf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};v_(e,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,y_(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Ew()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}}let Tw=!1;try{Tw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const O_=Tw;function j_(){}class D_ extends N_{constructor(e){if(super(e),typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,r){const i=this.request({method:"POST",data:e});i.on("success",r),i.on("error",(a,l)=>{this.onError("xhr post error",a,l)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=e}}class bn extends et{constructor(e,r,i){super(),this.createRequest=e,Ul(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const r=kw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&i.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var a;i.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=bn.requestsCount++,bn.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=j_,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete bn.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}bn.requestsCount=0;bn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gy);else if(typeof addEventListener=="function"){const t="onpagehide"in en?"pagehide":"unload";addEventListener(t,gy,!1)}}function gy(){for(let t in bn.requests)bn.requests.hasOwnProperty(t)&&bn.requests[t].abort()}const L_=(function(){const t=Cw({xdomain:!1});return t&&t.responseType!==null})();class M_ extends D_{constructor(e){super(e);const r=e&&e.forceBase64;this.supportsBinary=L_&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new bn(Cw,this.uri(),e)}}function Cw(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||O_))return new XMLHttpRequest}catch{}if(!e)try{return new en[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _w=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class F_ extends Pf{get name(){return"websocket"}doOpen(){const e=this.uri(),r=this.opts.protocols,i=_w?{}:kw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,i)}catch(a){return this.emitReserved("error",a)}
vendor: 17,830 bytes, line 172
172this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const i=e[r],a=r===e.length-1;Cf(i,this.supportsBinary,l=>{try{this.doWrite(i,l)}catch{}a&&Bl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Ew()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}}const td=en.WebSocket||en.MozWebSocket;class I_ extends F_{createSocket(e,r,i){return _w?new td(e,r,i):r?new td(e,r):new td(e)}doWrite(e,r){this.ws.send(r)}}class V_ extends Pf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const r=x_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(r).getReader(),a=w_();a.readable.pipeTo(e.writable),this._writer=a.writable.getWriter();const l=()=>{i.read().then(({done:d,value:h})=>{d||(this.onPacket(h),l())}).catch(d=>{})};l();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const i=e[r],a=r===e.length-1;this._writer.write(i).then(()=>{a&&Bl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const B_={websocket:I_,webtransport:V_,polling:M_},U_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,z_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Bd(t){if(t.length>8e3)throw"URI too long";const e=t,r=t.indexOf("["),i=t.indexOf("]");r!=-1&&i!=-1&&(t=t.substring(0,r)+t.substring(r,i).replace(/:/g,";")+t.substring(i,t.length));let a=U_.exec(t||""),l={},c=14;for(;c--;)l[z_[c]]=a[c]||"";return r!=-1&&i!=-1&&(l.source=e,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=$_(l,l.path),l.queryKey=W_(l,l.query),l}function $_(t,e){const r=/\/{2,9}/g,i=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function W_(t,e){const r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,a,l){a&&(r[a]=l)}),r}const Ud=typeof addEventListener=="function"&&typeof removeEventListener=="function",fl=[];Ud&&addEventListener("offline",()=>{fl.forEach(t=>t())},!1);class Cr extends et{constructor(e,r){if(super(),this.binaryType=b_,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){const i=Bd(e);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Bd(r.host).host);Ul(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{const a=i.prototype.name;this.transports.push(a),this._transportsByName[a]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=A_(this.opts.query)),Ud&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},fl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const r=Object.assign({},this.opts.query);r.EIO=bw,r.transport=e,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Cr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Cr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const a=this.writeBuffer[i].data;if(a&&(r+=C_(a)),i>0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Bl(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,i){return this._sendPacket("message",e,r,i),this}send(e,r,i){return this._sendPacket("message",e,r,i),this}_sendPacket(e,r,i,a){if(typeof r=="function"&&(a=r,r=void 0),typeof i=="function"&&(a=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const l={type:e,data:r,options:i};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(Cr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ud&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=fl.indexOf(this._offlineEventListener);i!==-1&&fl.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}}Cr.protocol=bw;class q_ extends Cr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),i=!1;Cr.priorWebsocketSuccess=!1;const a=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",y=>{if(!i)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Cr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=r.name,this.emitReserved("upgradeError",w)}}))};function l(){i||(i=!0,g(),r.close(),r=null)}const c=y=>{const w=new Error("probe error: "+y);w.transport=r.name,l(),this.emitReserved("upgradeError",w)};function d(){c("transport closed")}function h(){c("socket closed")}function m(y){r&&y.name!==r.name&&l()}const g=()=>{r.removeListener("open",a),r.removeListener("error",c),r.removeListener("close",d),this.off("close",h),this.off("upgrading",m)};r.once("open",a),r.once("error",c),r.once("close",d),this.once("close",h),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const r=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&r.push(e[i]);return r}}let H_=class extends q_{constructor(e,r={}){const i=typeof e=="object"?e:r;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(a=>B_[a]).filter(a=>!!a)),super(e,i)}};function K_(t,e="",r){let i=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),i=Bd(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const l=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+l+":"+i.port+e,i.href=i.protocol+"://"+l+(r&&r.port===i.port?"":":"+i.port),i}const Q_=typeof ArrayBuffer=="function",G_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Pw=Object.prototype.toString,Y_=typeof Blob=="function"||typeof Blob<"u"&&Pw.call(Blob)==="[object BlobConstructor]",X_=typeof File=="function"||typeof File<"u"&&Pw.call(File)==="[object FileConstructor]";function Af(t){return Q_&&(t instanceof ArrayBuffer||G_(t))||Y_&&t instanceof Blob||X_&&t instanceof File}function hl(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,i=t.length;r<i;r++)if(hl(t[r]))return!0;return!1}if(Af(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return hl(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&hl(t[r]))return!0;return!1}function J_(t){const e=[],r=t.data,i=t;return i.data=zd(r,e),i.attachments=e.length,{packet:i,buffers:e}}function zd(t,e){if(!t)return t;if(Af(t)){const r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){const r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=zd(t[i],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){const r={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=zd(t[i],e));return r}return t}function Z_(t,e){return t.data=$d(t.data,e),delete t.attachments,t}function $d(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=$d(t[r],e);else if(typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=$d(t[r],e));return t}const eP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Te;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Te||(Te={}));class tP{constructor(e){this.replacer=e}encode(e){return(e.type===Te.EVENT||e.type===Te.ACK)&&hl(e)?this.encodeAsBinary({type:e.type===Te.EVENT?Te.BINARY_EVENT:Te.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===Te.BINARY_EVENT||e.type===Te.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){const r=J_(e),i=this.encodeAsString(r.packet),a=r.buffers;return a.unshift(i),a}}class Rf extends et{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);const i=r.type===Te.BINARY_EVENT;i||r.type===Te.BINARY_ACK?(r.type=i?Te.EVENT:Te.ACK,this.reconstructor=new nP(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Af(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0;const i={type:Number(e.charAt(0))};if(Te[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Te.BINARY_EVENT||i.type===Te.BINARY_ACK){const l=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);const c=e.substring(l,r);if(c!=Number(c)||e.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(c)}if(e.charAt(r+1)==="/"){const l=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););i.nsp=e.substring(l,r)}else i.nsp="/";const a=e.charAt(r+1);if(a!==""&&Number(a)==a){const l=r+1;for(;++r;){const c=e.charAt(r);if(c==null||Number(c)!=c){--r;break}if(r===e.length)break}i.id=Number(e.substring(l,r+1))}if(e.charAt(++r)){const l=this.tryParse(e.substr(r));if(Rf.isPayloadValid(i.type,l))i.data=l;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case Te.CONNECT:return yy(r);case Te.DISCONNECT:return r===void 0;case Te.CONNECT_ERROR:return typeof r=="string"||yy(r);case Te.EVENT:case Te.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&eP.indexOf(r[0])===-1);case Te.ACK:case Te.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class nP{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const r=Z_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function yy(t){return Object.prototype.toString.call(t)==="[object Object]"}const rP=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rf,Encoder:tP,get PacketType(){return Te}},Symbol.toStringTag,{value:"Module"}));function fn(t,e,r){return t.on(e,r),function(){t.off(e,r)}}const sP=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Aw extends et{constructor(e,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[fn(e,"open",this.onopen.bind(this)),fn(e,"packet",this.onpacket.b
vendor: 2,660 bytes, line 172
172ind(this)),fn(e,"error",this.onerror.bind(this)),fn(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var i,a,l;if(sP.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const c={type:Te.EVENT,data:r};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const g=this.ids++,y=r.pop();this._registerAckCallback(g,y),c.id=g}const d=(a=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||a===void 0?void 0:a.writable,h=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!d||(h?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(e,r){var i;const a=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(a===void 0){this.acks[e]=r;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===e&&this.sendBuffer.splice(d,1);r.call(this,new Error("operation has timed out"))},a),c=(...d)=>{this.io.clearTimeoutFn(l),r.apply(this,d)};c.withError=!0,this.acks[e]=c}emitWithAck(e,...r){return new Promise((i,a)=>{const l=(c,d)=>c?a(c):i(d);l.withError=!0,r.push(l),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...l)=>(this._queue[0],a!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(a)):(this._queue.shift(),r&&r(null,...l)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Te.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}
vendor: 7,049 bytes, line 172
172_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Te.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Te.EVENT:case Te.BINARY_EVENT:this.onevent(e);break;case Te.ACK:case Te.BINARY_ACK:this.onack(e);break;case Te.DISCONNECT:this.ondisconnect();break;case Te.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const r=this;let i=!1;return function(...a){i||(i=!0,r.packet({type:Te.ACK,id:e,data:a}))}}onack(e){const r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Te.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(e===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(e===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,e.data)}}}function ci(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}ci.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};ci.prototype.reset=function(){this.attempts=0};ci.prototype.setMin=function(t){this.ms=t};ci.prototype.setMax=function(t){this.max=t};ci.prototype.setJitter=function(t){this.jitter=t};class Wd extends et{constructor(e,r){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Ul(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new ci({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;const a=r.parser||rP;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new H_(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const a=fn(r,"open",function(){i.onopen(),e&&e()}),l=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},c=fn(r,"error",l);if(this._timeout!==!1){const d=this._timeout,h=this.setTimeoutFn(()=>{a(),l(new Error("timeout")),r.close()},d);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(a),this.subs.push(c),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(fn(e,"ping",this.onping.bind(this)),fn(e,"data",this.ondata.bind(this)),fn(e,"error",this.onerror.bind(this)),fn(e,"close",this.onclose.bind(this)),fn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){Bl(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new Aw(this,e,r),this.nsps[e]=i),i}_destroy(e){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(e){const r=this.encoder.encode(e);for(let i=0;i<r.length;
172i++)this.engine.write(r[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const to={};function pl(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const r=K_(t,e.path||"/socket.io"),i=r.source,a=r.id,l=r.path,c=to[a]&&l in to[a].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||c;let h;return d?h=new Wd(i,e):(to[a]||(to[a]=new Wd(i,e)),h=to[a]),r.query&&!e.query&&(e.query=r.queryKey),h.socket(r.path,e)}Object.assign(pl,{Manager:Wd,Socket:Aw,io:pl,connect:pl});function vy(t,e){var r;const i=pl(t.serverUrl,{path:t.mountPath,transports:t.transports,query:{app_id:t.appId,token:(r=t.token)!==null&&r!==void 0?r:ii()}});return i.on("connect",async()=>{var a;return console.log("connect",i.id),(a=e.connect)===null||a===void 0?void 0:a.call(e)}),i.on("update_model",async a=>{var l;return(l=e.update_model)===null||l===void 0?void 0:l.call(e,a)}),i.on("error",async a=>{var l;return(l=e.error)===null||l===void 0?void 0:l.call(e,a)}),i.on("connect_error",async a=>{var l;return console.error("connect_error",a),(l=e.error)===null||l===void 0?void 0:l.call(e,a)}),i}function iP({config:t}){let e={...t};const r={},i={connect:async()=>{const T=[];Object.keys(r).forEach(k=>{h(k);const b=y(k);b==null||b.forEach(({connect:S})=>{const A=async()=>S==null?void 0:S();T.push(A())})}),await Promise.all(T)},update_model:async T=>{const b=y(T.room).map(S=>{var A;return(A=S.update_model)===null||A===void 0?void 0:A.call(S,T)});await Promise.all(b)},error:async T=>{console.error("error",T);const k=Object.values(r).flat().map(b=>{var S;return(S=b.error)===null||S===void 0?void 0:S.call(b,T)});await Promise.all(k)}};let a=vy(t,i);function l(){c()}function c(){a&&a.disconnect()}function d(T){l(),e={...e,...T},a=vy(e,i)}function h(T){a.emit("join",T)}function m(T){a.emit("leave",T)}async function g(T,k){var b;const S=JSON.stringify(k);return(b=i.update_model)===null||b===void 0?void 0:b.call(i,{room:T,data:S})}function y(T){return r[T]}return{socket:a,subscribeToRoom:(T,k)=>(r[T]||(h(T),r[T]=[]),r[T].push(k),()=>{var b,S;r[T]=(S=(b=r[T])===null||b===void 0?void 0:b.filter(A=>A!==k))!==null&&S!==void 0?S:[],r[T].length===0&&m(T)}),updateConfig:d,updateModel:g,disconnect:c}}const no=typeof window<"u"?window:{base44SharedInstances:{}};function oP(t,e){return no.base44SharedInstances||(no.base44SharedInstances={}),no.base44SharedInstances[t]||(no.base44SharedInstances[t]={instance:e()}),no.base44SharedInstances[t].instance}const aP="__user_heartbeat_event__",lP="__initialization_event__",uP="__session_duration_event__",wy="analytics-enable",xy="base44_analytics_session_id",cP={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},dP="analytics",Le=oP(dP,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...cP,...wP()}})),fP=({axiosClient:t,serverUrl:e,appId:r,userAuthModule:i})=>{var a;const{maxQueueSize:l,throttleTime:c,batchSize:d}=Le.config;if(!(!((a=Le.config)===null||a===void 0)&&a.enabled))return{track:()=>{},cleanup:()=>{}};let h;const m=`${e}/api/apps/${r}/analytics/track/batch`,g=async L=>{await t.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:L}})},y=L=>{try{const M=JSON.stringify({events:L}),U=new Blob([M],{type:"application/json"});return typeof navigator>"u"||M.length>6e4||!navigator.sendBeacon(m,U)}catch{return!1}},w=async(L,M={})=>
172{if(L.length===0)return;const U=await vP(i),Q=L.map(yP(U));try{(!M.isBeacon||!y(Q))&&await g(Q)}catch{}},T=()=>{by(w,{throttleTime:c,batchSize:d})},k=L=>{if(Le.requestsQueue.length>=l)return;const M=gP();Le.requestsQueue.push({...L,...M}),T()},b=()=>{by(w,{throttleTime:c,batchSize:d}),h=ky(k),pP()},S=()=>{Sy(),h==null||h(),mP(k);const L=Le.requestsQueue.splice(0);w(L,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&b())},V=()=>{Sy(),h==null||h(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return T(),h=ky(k),hP(k),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:k,cleanup:V}};function Sy(){Le.isProcessing=!1}async function by(t,e){if(Le.isProcessing)return;Le.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=e??{};for(;Le.isProcessing&&Le.requestsQueue.length>0;){const a=Le.requestsQueue.splice(0,i);a.length&&await t(a),await new Promise(l=>setTimeout(l,r))}Le.isProcessing=!1}function ky(t){var e;if(Le.isHeartBeatProcessing||((e=Le.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Le.isHeartBeatProcessing=!0;const r=setInterval(()=>{t({eventName:aP})},Le.config.heartBeatInterval);return()=>{clearInterval(r),Le.isHeartBeatProcessing=!1}}function hP(t){typeof window>"u"||Le.wasInitializationTracked||(Le.wasInitializationTracked=!0,t({eventName:lP,properties:{referrer:document==null?void 0:document.referrer}}))}function pP(){typeof window>"u"||Le.sessionStartTime!==null||(Le.sessionStartTime=new Date().toISOString())}function mP(t){if(typeof window>"u"||Le.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Le.sessionStartTime).getTime();Le.sessionStartTime=null,t({eventName:uP,properties:{sessionDuration:e}})}function gP(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function yP(t){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...t})}let nd=null;async function vP(t){if(!Le.sessionContext){if(!nd){const e=xP();nd=t.me().then(r=>({user_id:r.id,session_id:e})).catch(()=>({user_id:null,session_id:e}))}Le.sessionContext=await nd}return Le.sessionContext}function wP(){if(typeof window>"u")return;const e=new URLSearchParams(window.location.search).get(wy);if(e==null||!e.length)return;const r=new URLSearchParams(window.location.search);r.delete(wy);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:e==="true"}}function xP(){if(typeof window>"u")return Xc();try{const t=localStorage.getItem(xy);if(!t){const e=Xc();return localStorage.setItem(xy,e),e}return t}catch{return Xc()}}function Nf(t){var e,r;const{serverUrl:i="https://base44.app",appId:a,token:l,serviceToken:c,requiresAuth:d=!1,appBaseUrl:h,options:m,functionsVersion:g,headers:y}=t,w=typeof h=="string"?h:"",T={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:a,token:l};let k=null;const b=()=>(k||(k=iP({config:T})),k),S={...y,"X-App-Id":String(a)},A=g?{...S,"Base44-Functions-Version":g}:S,V=io({baseURL:`${i}/api`,headers:S,token:l,onError:m==null?void 0:m.onError}),L=io({baseURL:`${i}/api`,headers:A,token:l,interceptResponses:!1,onError:m==null?void 0:m.onError}),M={...S,...l?{"on-behalf-of":`Bearer ${l}`}:{}},U=io({baseURL:`${i}/api`,headers:M,token:c,onError:m==null?void 0:m.onError}),Q=io({baseURL:`${i}/api`,headers:A,token:c,interceptResponses:!1}),Y=o_(V,L,a,{appBaseUrl:w}),F={entities:ly({axios:V,appId:a,getSocket:b}),integrations:uy(V,a),connectors:u_(V,a),auth:Y,functions:cy(L,a,{getAuthHeaders:()=>{const de={},Ce=l||ii();return Ce&&(de.Authorization=`Bearer ${Ce}`),de},baseURL:(e=L.defaults)===null||e===void 0?void 0:e.baseURL}),agents:dy({axios:V,getSocket:b,appId:a,serverUrl:i,token:l}),appLogs:fy(V,a),users:f_(V,a),analytics:fP({axiosClient:V,serverUrl:i,appId:a,userAuthModule:Y}),cleanup:()=>{F.analytics.cleanup(),k&&k.disconnect()}},J={entities:ly({axios:U,appId:a,getSocket:b}),integrations:uy(U,a),sso:a_(U,a),connectors:l_(U,a),functions:cy(Q,a,{getAuthHeaders:()=>{const de={};return c&&(de.Authorization=`Bearer ${c}`),de},baseURL:(r=Q.defaults)===null||r===void 0?void 0:r.baseURL}),agents:dy({axios:U,getSocket:b,appId:a,serverUrl:i,token:l}),appLogs:fy(U,a),cleanup:()=>{k&&k.disconnect()}};if(typeof window<"u"){const de=l||ii();de&&F.auth.setToken(de)}return d&&typeof window<"u"&&setTimeout(async()=>{try{await F.auth.isAuthenticated()||F.auth.redirectToLogin(window.location.href)}catch(de){console.error("Authentication check failed:",de),F.auth.redirectToLogin(window.location.href)}},0),{...F,setToken(de){F.auth.setToken(de),k&&k.updateConfig({token:de}),T.token=de},getConfig(){return{serverUrl:i,appId:a,requiresAuth:d}},get asServiceRole(){if(!c)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return J}}}function SP(t){const e=t.headers.get("Authorization"),r=t.headers.get("Base44-Service-Authorization"),i=t.headers.get("Base44-App-Id"),a=t.headers.get("Base44-Api-Url"),l=t.headers.get("Base44-Functions-Version"),c=t.headers.get("Base44-State");if(!i)throw new Error("Base44-App-Id header is required, but is was not found on the request");let d,h;
172if(r!==null){if(r===""||!r.startsWith("Bearer ")||r.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');d=r.split(" ")[1]}if(e!==null){if(e===""||!e.startsWith("Bearer ")||e.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');h=e.split(" ")[1]}const m={};return c&&(m["Base44-State"]=c),Nf({serverUrl:a||"https://base44.app",appId:i,token:h,serviceToken:d,functionsVersion:l??void 0,headers:m})}const bP=Object.freeze(Object.defineProperty({__proto__:null,Base44Error:mw,createClient:Nf,createClientFromRequest:SP,getAccessToken:ii,getLoginUrl:d_,removeAccessToken:c_,saveAccessToken:gw},Symbol.toStringTag,{value:"Module"})),Rw=typeof window>"u",kP=Rw?{localStorage:new Map}:window,ho=kP.localStorage,EP=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Vs=(t,{defaultValue:e=void 0,removeFromUrl:r=!1}={})=>{if(Rw)return e;const i=`base44_${EP(t)}`,a=new URLSearchParams(window.location.search),l=a.get(t);if(r){a.delete(t);const d=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,d)}if(l)return ho.setItem(i,l),l;if(e)return ho.setItem(i,e),e;const c=ho.getItem(i);return c||null},TP=()=>(Vs("clear_access_token")==="true"&&(ho.removeItem("base44_access_token"),ho.removeItem("token")),{appId:Vs("app_id",{defaultValue:"68d6867ae4f27171bb5d1819"}),token:Vs("access_token",{removeFromUrl:!0}),fromUrl:Vs("from_url",{defaultValue:window.location.href}),functionsVersion:Vs("functions_version",{defaultValue:"prod"}),appBaseUrl:Vs("app_base_url",{defaultValue:void 0})}),ao={...TP()},{appId:CP,token:_P,functionsVersion:PP,appBaseUrl:AP}=ao,Xr=Nf({appId:CP,token:_P,functionsVersion:PP,serverUrl:"",requiresAuth:!1,appBaseUrl:AP});function RP({}){var a;const e=q0().pathname.substring(1),{data:r,isFetched:i}=M0({queryKey:["user"],queryFn:async()=>{try{return{user:await Xr.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return x.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:x.jsx("div",{className:"max-w-md w-full",children:x.jsxs("div",{className:"text-center space-y-6",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),x.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),x.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",x.jsxs("span",{className:"font-medium text-slate-700",children:['"',e,'"']})," could not be found in this application."]})]}),i&&r.isAuthenticated&&((a=r.user)==null?void 0:a.role)==="admin"&&x.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:x.jsxs("div",{className:"flex items-start space-x-3",children:[x.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:x.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),x.jsxs("div",{className:"text-left space-y-1",children:[x.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),x.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),x.jsx("div",{className:"pt-6",children:x.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[x.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const Nw=j.createContext(),NP=({children:t})=>{const[e,r]=j.useState(null),[i,a]=j.useState(!1),[l,c]=j.useState(!0),[d,h]=j.useState(!0),[m,g]=j.useState(null),[y,w]=j.useState(null);j.useEffect(()=>{T()},[]);const T=async()=>{var A,V;try{h(!0),g(null);const L=io({baseURL:"/api/apps/public",headers:{"X-App-Id":ao.appId},token:ao.token,interceptResponses:!0});try{const M=await L.get(`/prod/public-settings/by-id/${ao.appId}`);w(M),ao.token?await k():(c(!1),a(!1)),h(!1)}
172catch(M){if(console.error("App state check failed:",M),M.status===403&&((V=(A=M.data)==null?void 0:A.extra_data)!=null&&V.reason)){const U=M.data.extra_data.reason;g(U==="auth_required"?{type:"auth_required",message:"Authentication required"}:U==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:U,message:M.message})}else g({type:"unknown",message:M.message||"Failed to load app"});h(!1),c(!1)}}catch(L){console.error("Unexpected error:",L),g({type:"unknown",message:L.message||"An unexpected error occurred"}),h(!1),c(!1)}},k=async()=>{try{c(!0);const A=await Xr.auth.me();r(A),a(!0),c(!1)}catch(A){console.error("User auth check failed:",A),c(!1),a(!1),(A.status===401||A.status===403)&&g({type:"auth_required",message:"Authentication required"})}},b=(A=!0)=>{r(null),a(!1),A?Xr.auth.logout(window.location.href):Xr.auth.logout()},S=()=>{Xr.auth.redirectToLogin(window.location.href)};return x.jsx(Nw.Provider,{value:{user:e,isAuthenticated:i,isLoadingAuth:l,isLoadingPublicSettings:d,authError:m,appPublicSettings:y,logout:b,navigateToLogin:S,checkAppState:T},children:t})},OP=()=>{const t=j.useContext(Nw);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},jP=()=>x.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:x.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:x.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),x.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),x.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),x.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[x.jsx("p",{children:"If you believe this is an error, you can:"}),x.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[x.jsx("li",{children:"Verify you are logged in with the correct account"}),x.jsx("li",{children:"Contact the app administrator for access"}),x.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function DP(){return j.useEffect(()=>{document.title="Article Five: A World War Three Novel by J.D. Duncan | Military Thriller";const t=(i,a,l=!1)=>{const c=l?"property":"name";let d=document.querySelector(`meta[${c}="${i}"]`);d||(d=document.createElement("meta"),d.setAttribute(c,i),document.head.appendChild(d)),d.setAttribute("content",a)};t("description","When global tensions reach a breaking point, Article Five of NATO's founding treaty becomes humanity's last hope. A gripping military thriller exploring modern warfare, political intrigue, and human resilience. Available now on Amazon Kindle."),t("keywords","Article Five, J.D. Duncan, military thriller, World War Three novel, war fiction, NATO, geopolitical thriller, political thriller, military fiction, war novel, kindle book, Amazon book"),t("author","J.D. Duncan"),t("robots","index, follow"),t("language","English"),t("og:type","book",!0),t("og:url",window.location.href,!0),t("og:title","Article Five: A World War Three Novel by J.D. Duncan",!0),t("og:description","When diplomacy fails, war begins. A gripping military thriller exploring the terrifying reality of global conflict in the 21st century. Available now on Amazon Kindle.",!0),t("og:image","https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/79ea074bb_ArticleFiveEbookCover.png",!0),t("og:image:width","1200",!0),t("og:image:height","630",!0),t("og:site_name","Article Five - J.D. Duncan",!0),t("og:locale","en_US",!0),t("book:author","J.D. Duncan",!0),t("book:isbn","B0FPCZ6V8B",!0),t("book:release_date","2024",!0),t("twitter:card","summary_large_image",!0),t("twitter:url",window.location.href,!0),t("twitter:title","Article Five: A World War Three Novel b
172y J.D. Duncan",!0),t("twitter:description","When diplomacy fails, war begins. A gripping military thriller exploring the terrifying reality of global conflict in the 21st century.",!0),t("twitter:image","https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/79ea074bb_ArticleFiveEbookCover.png",!0);const e={"@context":"https://schema.org","@graph":[{"@type":"Book","@id":"https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/",name:"Article Five: A World War Three Novel",author:{"@type":"Person",name:"J.D. Duncan",url:window.location.origin,description:"Author of military thriller and geopolitical fiction"},genre:["Military Thriller","War Fiction","Political Thriller"],bookFormat:"EBook",inLanguage:"en",numberOfPages:"300",aggregateRating:{"@type":"AggregateRating",ratingValue:"5",reviewCount:"3",bestRating:"5",worstRating:"1"},description:"In a world balanced on the edge of destruction, a single incident triggers the invocation of NATO's Article Fiveâthe clause that binds allies to collective defense. What follows is a gripping tale of modern warfare, political intrigue, and human resilience.",url:"https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/",offers:[{"@type":"Offer",price:"1.47",priceCurrency:"GBP",availability:"https://schema.org/InStock",url:"https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/",bookFormat:"EBook"},{"@type":"Offer",price:"9.99",priceCurrency:"GBP",availability:"https://schema.org/InStock",url:"https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/",bookFormat:"Paperback"}],image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/79ea074bb_ArticleFiveEbookCover.png"},{"@type":"WebSite","@id":window.location.origin+"/#website",url:window.location.origin,name:"Article Five - A World War Three Novel",description:"Official website for Article Five, a gripping military thriller by J.D. Duncan. Available now on Amazon Kindle.",publisher:{"@type":"Person",name:"J.D. Duncan"}},{"@type":"Person","@id":window.location.origin+"/#author",name:"J.D. Duncan",url:window.location.origin,image:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/69f89d2c1_profilea.jpg",sameAs:["https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/"],jobTitle:"Author",description:"Award-winning author of military thriller and geopolitical fiction. Winner of Open Book Awards.",knowsAbout:["Military Fiction","Geopolitics","International Relations","Modern Warfare"]},{"@type":"VideoObject",name:"Article Five Book Trailer",description:"Official trailer for Article Five - A World War Three Novel by J.D. Duncan",thumbnailUrl:"https://img.youtube.com/vi/XY-2y1WDIuU/maxresdefault.jpg",uploadDate:"2024-01-01",contentUrl:"https://www.youtube.com/watch?v=XY-2y1WDIuU",embedUrl:"https://www.youtube.com/embed/XY-2y1WDIuU"}]};let r=document.getElementById("structured-data");return r||(r=document.createElement("script"),r.id="structured-data",r.type="application/ld+json",document.head.appendChild(r)),r.textContent=JSON.stringify(e),()=>{}},[]),null}function Ey(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function LP(...t){return e=>{let r=!1;const i=t.map(a=>{const l=Ey(a,e);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():Ey(t[a],null)}}}}var MP=Symbol.for("react.lazy"),El=Zv[" use ".trim().toString()];function FP(t){return typeof t=="object"&&t!==null&&"then"in t}function Ow(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===MP&&"_payload"in t&&FP(t._payload)}function jw(t){const e=VP(t),r=j.forwardRef((i,a)=>{let{children:l,...c}=i;Ow(l)&&typeof El=="function"&&(l=El(l._payload));const d=j.Children.toArray(l),h=d.find(UP);if(h){const m=h.props.children,g=d.map(y=>y===h?j.Children.count(m)>1?j.Children.only(null):j.isValidElement(m)?m.props.children:null:y);return x.jsx(e,{...c,ref:a,children:j.isValidElement(m)?j.cloneElement(m,void 0,g):null})}return x.jsx(e,{...c,ref:a,children:l})});return r.displayName=`${t}.Slot`,r}var IP=jw("Slot");function VP(t){const e=j.forwardRef((r,i)=>{let{children:a,...l}=r;if(Ow(a)&&typeof El=="function"&&(a=El(a._payload)),j.isValidElement(a)){const c=$P(a),d=zP(l,a.props);return a.type!==j.Fragment&&(d.ref=i?LP(i,c):c),j.cloneElement(a,d)}return j.Children.count(a)>1?j.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var BP=Symbol("radix.slottable");function UP(t){return j.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===BP}function zP(t,e){const r={...e};for(const i in e){const a=t[i],l=e[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}
vendor: 30,993 bytes, line 172
172:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...t,...r}}function $P(t){var i,a;let e=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const WP=df("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Er=j.forwardRef(({className:t,variant:e,size:r,asChild:i=!1,...a},l)=>{const c=i?IP:"button";return x.jsx(c,{className:$n(WP({variant:e,size:r,className:t})),ref:l,...a})});Er.displayName="Button";const Dw=j.createContext({});function qP(t){const e=j.useRef(null);return e.current===null&&(e.current=t()),e.current}const Of=j.createContext(null),Lw=j.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function HP(t=!0){const e=j.useContext(Of);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:i,register:a}=e,l=j.useId();j.useEffect(()=>{t&&a(l)},[t]);const c=j.useCallback(()=>t&&i&&i(l),[l,i,t]);return!r&&i?[!1,c]:[!0]}const jf=typeof window<"u",KP=jf?j.useLayoutEffect:j.useEffect,Ut=t=>t;let Mw=Ut;function Df(t){let e;return()=>(e===void 0&&(e=t()),e)}const oi=(t,e,r)=>{const i=e-t;return i===0?1:(r-t)/i},Bn=t=>t*1e3,Un=t=>t/1e3,QP={useManualTiming:!1};function GP(t){let e=new Set,r=new Set,i=!1,a=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(h.schedule(m),t()),m(c)}const h={schedule:(m,g=!1,y=!1)=>{const T=y&&i?e:r;return g&&l.add(m),T.has(m)||T.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){a=!0;return}i=!0,[e,r]=[r,e],e.forEach(d),e.clear(),i=!1,a&&(a=!1,h.process(m))}};return h}const nl=["read","resolveKeyframes","update","preRender","render","postRender"],YP=40;function Fw(t,e){let r=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,c=nl.reduce((A,V)=>(A[V]=GP(l),A),{}),{read:d,resolveKeyframes:h,update:m,preRender:g,render:y,postRender:w}=c,T=()=>{const A=performance.now();r=!1,a.delta=i?1e3/60:Math.max(Math.min(A-a.timestamp,YP),1),a.timestamp=A,a.isProcessing=!0,d.process(a),h.process(a),m.process(a),g.process(a),y.process(a),w.process(a),a.isProcessing=!1,r&&e&&(i=!1,t(T))},k=()=>{r=!0,i=!0,a.isProcessing||t(T)};return{schedule:nl.reduce((A,V)=>{const L=c[V];return A[V]=(M,U=!1,Q=!1)=>(r||k(),L.schedule(M,U,Q)),A},{}),cancel:A=>{for(let V=0;V<nl.length;V++)c[nl[V]].cancel(A)},state:a,steps:c}}const{schedule:Ue,cancel:_r,state:dt,steps:rd}=Fw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ut,!0),Iw=j.createContext({strict:!1}),Ty={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"]},ai={};for(const t in Ty)ai[t]={isEnabled:e=>Ty[t].some(r=>!!e[r])};function XP(t){for(const e in t)ai[e]={...ai[e],...t[e]}}const JP=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 Tl(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||JP.has(t)}let Vw=t=>!Tl(t);function ZP(t){t&&(Vw=e=>e.startsWith("on")?!Tl(e):t(e))}try{ZP(require("@emotion/is-prop-valid").default)}catch{}function eA(t,e,r){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(Vw(a)||r===!0&&Tl(a)||!e&&!Tl(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function tA(t){if(typeof Proxy>"u")return t;const e=new Map,r=(...i)=>t(...i);return new Proxy(r,{get:(i,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const zl=j.createContext({});function xo(t){return typeof t=="string"||Array.isArray(t)}function $l(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Lf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mf=["initial",...Lf];function Wl(t){return $l(t.animate)||Mf.some(e=>xo(t[e]))}function Bw(t){return!!(Wl(t)||t.variants)}function nA(t,e){if(Wl(t)){const{initial:r,animate:i}=t;return{initial:r===!1||xo(r)?r:void 0,animate:xo(i)?i:void 0}}return t.inherit!==!1?e:{}}function rA(t){const{initial:e,animate:r}=nA(t,j.useContext(zl));return j.useMemo(()=>({initial:e,animate:r}),[Cy(e),Cy(r)])}function Cy(t){return Array.isArray(t)?t.join(" "):t}const sA=Symbol.for("motionComponentSymbol");function Bs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function iA(t,e,r){return j.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),r&&(typeof r=="function"?r(i):Bs(r)&&(r.current=i))},[e])}const Ff=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oA="framerAppearId",Uw="data-"+Ff(oA),{schedule:If}=Fw(queueMicrotask,!1),zw=j.createContext({});function aA(t,e,r,i,a){var l,c;const{visualElement:d}=j.useContext(zl),h=j.useContext(Iw),m=j.useContext(Of),g=j.useContext(Lw).reducedMotion,y=j.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(t,{visualState:e,parent:d,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g}));const w=y.current,T=j.useContext(zw);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&lA(y.current,r,a,T);const k=j.useRef(!1);j.useInsertionEffect(()=>{w&&k.current&&w.update(r,m)});const b=r[Uw],S=j.useRef(!!b&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,b))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,b)));return KP(()=>{w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),If.render(w.render),S.current&&w.animationState&&w.animationState.animateChanges())}),j.useEffect(()=>{w&&(!S.current&&w.animationState&&w.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)===null||A===void 0||A.call(window,b)}),S.current=!1))}),w}function lA(t,e,r,i){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:m}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:$w(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&Bs(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:m})}function $w(t){if(t)return t.options.allowProjection!==!1?t.projection:$w(t.parent)}function uA({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:i,Component:a}){var l,c;t&&XP(t);function d(m,g){let y;const w={...j.useContext(Lw),...m,layoutId:cA(m)},{isStatic:T}=w,k=rA(m),b=i(m,T);if(!T&&jf){dA();const S=fA(w);y=S.MeasureLayout,k.visualElement=aA(a,b,w,e,S.ProjectionNode)}return x.jsxs(zl.Provider,{value:k,children:[y&&k.visualElement?x.jsx(y,{visualElement:k.visualElement,...w}):null,r(a,m,iA(b,k.visualElement,g),b,T,k.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(c=(l=a.displayName)!==null&&l!==void 0?l:a.name)!==null&&c!==void 0?c:""})`}`;const h=j.forwardRef(d);return h[sA]=a,h}function cA({layoutId:t}){const e=j.useContext(Dw).id;return e&&t!==void 0?e+"-"+t:t}function dA(t,e){j.useContext(Iw).strict}function fA(t){const{drag:e,layout:r}=ai;if(!e&&!r)return{};const i={...e,...r};return{MeasureLayout:e!=null&&e.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const hA=["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 Vf(t){return typeof t!="string"||t.includes("-")?!1:!!(hA.indexOf(t)>-1||/[A-Z]/u.test(t))}function _y(t){const e=[{},{}];return t==null||t.values.forEach((r,i)=>{e[0][i]=r.get(),e[1][i]=r.getVelocity()}),e}function Bf(t,e,r,i){if(typeof e=="function"){const[a,l]=_y(i);e=e(r!==void 0?r:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=_y(i);e=e(r!==void 0?r:t.custom,a,l)}return e}const qd=t=>Array.isArray(t),pA=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),mA=t=>qd(t)?t[t.length-1]||0:t,St=t=>!!(t&&t.getVelocity);function ml(t){const e=St(t)?t.get():t;return pA(e)?e.toValue():e}function gA({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:r},i,a,l){const c={latestValues:yA(i,a,l,t),renderState:e()};return r&&(c.onMount=d=>r({props:i,current:d,...c}),c.onUpdate=d=>r(d)),c}const Ww=t=>(e,r)=>{const i=j.useContext(zl),a=j.useContext(Of),l=()=>gA(t,e,i,a);return r?l():qP(l)};function yA(t,e,r,i){const a={},l=i(t,{});for(const w in l)a[w]=ml(l[w]);let{initial:c,animate:d}=t;const h=Wl(t),m=Bw(t);e&&m&&!h&&t.inherit!==!1&&(c===void 0&&(c=e.initial),d===void 0&&(d=e.animate));let g=r?r.initial===!1:!1;g=g||c===!1;const y=g?d:c;if(y&&typeof y!="boolean"&&!$l(y)){const w=Array.isArray(y)?y:[y];for(let T=0;T<w.length;T++){const k=Bf(t,w[T]);if(k){const{transitionEnd:b,transition:S,...A}=k;for(const V in A){let L=A[V];if(Array.isArray(L)){const M=g?L.length-1:0;L=L[M]}L!==null&&(a[V]=L)}for(const V in b)a[V]=b[V]}}}return a}const di=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hs=new Set(di),qw=t=>e=>typeof e=="string"&&e.startsWith(t),Hw=qw("--"),vA=qw("var(--"),Uf=t=>vA(t)?wA.test(t.split("/*")[0].trim()):!1,wA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Kw=(t,e)=>e&&typeof t=="number"?e.transform(t):t,zn=(t,e,r)=>r>e?e:r<t?t:r,fi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},So={...fi,transform:t=>zn(0,1,t)},rl={...fi,default:1},Mo=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),pr=Mo("deg"),kn=Mo("%"),ce=Mo("px"),xA=Mo("vh"),SA=Mo("vw"),Py={...kn,parse:t=>kn.parse(t)/100,transform:t=>kn.transform(t*100)},bA={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,radius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,top:ce,right:ce,bottom:ce,left:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,backgroundPositionX:ce,backgroundPositionY:ce},kA={rotate:pr,rotateX:pr,rotateY:pr,rotateZ:pr,scale:rl,scaleX:rl,scaleY:rl,scaleZ:rl,skew:pr,skewX:pr,skewY:pr,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:So,originX:Py,originY:Py,originZ:ce},Ay={...fi,transform:Math.round},zf={...bA,...kA,zIndex:Ay,size:ce,fillOpacity:So,strokeOpacity:So,numOctaves:Ay},EA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TA=di.length;function CA(t,e,r){let i="",a=!0;for(let l=0;l<TA;l++){const c=di[l],d=t[c];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(c.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||r){const m=Kw(d,zf[c]);if(!h){a=!1;const g=EA[c]||c;i+=`${g}(${m}) `}r&&(e[c]=m)}}return i=i.trim(),r?i=r(e,a?"":i):a&&(i="none"),i}function $f(t,e,r){const{style:i,vars:a,transformOrigin:l}=t;let c=!1,d=!1;for(const h in e){const m=e[h];if(hs.has(h)){c=!0;continue}else if(Hw(h)){a[h]=m;continue}else{const g=Kw(m,zf[h]);h.startsWith("origin")?(d=!0,l[h]=g):i[h]=g}}if(e.transform||(c||r?i.transform=CA(e,t.transform,r):i.transform&&(i.transform="none")),d){const{originX:h="50%",originY:m="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${m} ${g}`}}const _A={offset:"stroke-dashoffset",array:"stroke-dasharray"},PA={offset:"strokeDashoffset",array:"strokeDasharray"};function AA(t,e,r=1,i=0,a=!0){t.pathLength=1;const l=a?_A:PA;t[l.offset]=ce.transform(-i);const c=ce.transform(e),d=ce.transform(r);t[l.array]=`${c} ${d}`}function Ry(t,e,r){return typeof t=="string"?t:ce.transform(e+r*t)}function RA(t,e,r){const i=Ry(e,t.x,t.width),a=Ry(r,t.y,t.height);return`${i} ${a}`}function Wf(t,{attrX:e,attrY:r,attrScale:i,originX:a,originY:l,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...m},g,y){if($f(t,m,y),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:T,dimensions:k}=t;w.transform&&(k&&(T.transform=w.transform),delete w.transform),k&&(a!==void 0||l!==void 0||T.transform)&&(T.transformOrigin=RA(k,a!==void 0?a:.5,l!==void 0?l:.5)),e!==void 0&&(w.x=e),r!==void 0&&(w.y=r),i!==void 0&&(w.scale=i),c!==void 0&&AA(w,c,d,h,!1)}const qf=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Qw=()=>({...qf(),attrs:{}}),Hf=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gw(t,{style:e,vars:r},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const l in r)t.style.setProperty(l,r[l])}const Yw=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 Xw(t,e,r,i){Gw(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(Yw.has(a)?a:Ff(a),e.attrs[a])}const Cl={};function NA(t){Object.assign(Cl,t)}function Jw(t,{layout:e,layoutId:r}){return hs.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Cl[t]||t==="opacity")}function Kf(t,e,r){var i;const{style:a}=t,l={};for(const c in a)(St(a[c])||e.style&&St(e.style[c])||Jw(c,t)||((i=r==null?void 0:r.getValue(c))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(l[c]=a[c]);return l}function Zw(t,e,r){const i=Kf(t,e,r);for(const a in t)if(St(t[a])||St(e[a])){const l=di.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}function OA(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Ny=["x","y","width","height","cx","cy","r"],jA={useVisualState:Ww({scrapeMotionValuesFromProps:Zw,createRenderState:Qw,onUpdate:({props:t,prevProps:e,current:r,renderState:i,latestValues:a})=>{if(!r)return;let l=!!t.drag;if(!l){for(const d in a)if(hs.has(d)){l=!0;break}}if(!l)return;let c=!e;if(e)for(let d=0;d<Ny.length;d++){const h=Ny[d];t[h]!==e[h]&&(c=!0)}c&&Ue.read(()=>{OA(r,i),Ue.render(()=>{Wf(i,a,Hf(r.tagName),t.transformTemplate),Xw(r,i)})})}})},DA={useVisualState:Ww({scrapeMotionValuesFromProps:Kf,createRenderState:qf})};function ex(t,e,r){for(const i in e)!St(e[i])&&!Jw(i,r)&&(t[i]=e[i])}function LA({transformTemplate:t},e){return j.useMemo(()=>{const r=qf();return $f(r,e,t),Object.assign({},r.vars,r.style)},[e])}function MA(t,e){const r=t.style||{},i={};return ex(i,r,t),Object.assign(i,LA(t,e)),i}function FA(t,e){const r={},i=MA(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}function IA(t,e,r,i){const a=j.useMemo(()=>{const l=Qw();return Wf(l,e,Hf(i),t.transformTemplate),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};ex(l,t.style,t),a.style={...l,...a.style}}return a}function VA(t=!1){return(r,i,a,{latestValues:l},c)=>{const h=(Vf(r)?IA:FA)(i,l,c,r),m=eA(i,typeof r=="string",t),g=r!==j.Fragment?{...m,...h,ref:a}:{},{children:y}=i,w=j.useMemo(()=>St(y)?y.get():y,[y]);return j.createElement(r,{...g,children:w})}}function BA(t,e){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...Vf(i)?jA:DA,preloadedFeatures:t,useRender:VA(a),createVisualElement:e,Component:i};return uA(c)}}function tx(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function ql(t,e,r){const i=t.getProps();return Bf(i,e,r!==void 0?r:i.custom,t)}const UA=Df(()=>window.ScrollTimeline!==void 0);class zA{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=r}attachTimeline(e,r){const i=this.animations.map(a=>{if(UA()&&a.attachTimeline)return a.attachTimeline(e);if(typeof r=="function")return r(a)});return()=>{i.forEach((a,l)=>{a&&a(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let r=0;r<this.animations.length;r++)e=Math.max(e,this.animations[r].duration);return e}runAll(e){this.animations.forEach(r=>r[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $A extends zA{then(e,r){return Promise.all(this.animations).then(e).catch(r)}}function Qf(t,e){return t?t[e]||t.default||t:void 0}const Hd=2e4;function nx(t){let e=0;const r=50;let i=t.next(e);for(;!i.done&&e<Hd;)e+=r,i=t.next(e);return e>=Hd?1/0:e}function Gf(t){return typeof t=="function"}function Oy(t,e){t.timeline=e,t.onfinish=null}const Yf=t=>Array.isArray(t)&&typeof t[0]=="number",WA={linearEasing:void 0};function qA(t,e){const r=Df(t);return()=>{var i;return(i=WA[e])!==null&&i!==void 0?i:r()}}const _l=qA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rx=(t,e,r=10)=>{let i="";const a=Math.max(Math.round(e/r),2);for(let l=0;l<a;l++)i+=t(oi(0,a-1,l))+", ";return`linear(${i.substring(0,i.length-2)})`};function sx(t){return!!(typeof t=="function"&&_l()||!t||typeof t=="string"&&(t in Kd||_l())||Yf(t)||Array.isArray(t)&&t.every(sx))}const lo=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`,Kd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lo([0,.65,.55,1]),circOut:lo([.55,0,1,.45]),backIn:lo([.31,.01,.66,-.59]),backOut:lo([.33,1.53,.69,.99])};function ix(t,e){if(t)return typeof t=="function"&&_l()?rx(t,e):Yf(t)?lo(t):Array.isArray(t)?t.map(r=>ix(r,e)||Kd.easeOut):Kd[t]}const un={x:!1,y:!1};function ox(){return un.x||un.y}function HA(t,e,r){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let a=document;const l=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}function ax(t,e){const r=HA(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[r,a,()=>i.abort()]}function jy(t){return e=>{e.pointerType==="touch"||ox()||t(e)}}function KA(t,e,r={}){const[i,a,l]=ax(t,r),c=jy(d=>{const{target:h}=d,m=e(d);if(typeof m!="function"||!h)return;const g=jy(y=>{m(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,a)});return i.forEach(d=>{d.addEventListener("pointerenter",c,a)}),l}const lx=(t,e)=>e?t===e?!0:lx(t,e.parentElement):!1,Xf=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,QA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GA(t){return QA.has(t.tagName)||t.tabIndex!==-1}const uo=new WeakSet;function Dy(t){return e=>{e.key==="Enter"&&t(e)}}function sd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const YA=(t,e)=>{const r=t.currentTarget;if(!r)return;const i=Dy(()=>{if(uo.has(r))return;sd(r,"down");const a=Dy(()=>{sd(r,"up")}),l=()=>sd(r,"cancel");r.addEventListener("keyup",a,e),r.addEventListener("blur",l,e)});r.addEventListener("keydown",i,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),e)};function Ly(t){return Xf(t)&&!ox()}function XA(t,e,r={}){const[i,a,l]=ax(t,r),c=d=>{const h=d.currentTarget;if(!Ly(d)||uo.has(h))return;uo.add(h);const m=e(d),g=(T,k)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),!(!Ly(T)||!uo.has(h))&&(uo.delete(h),typeof m=="function"&&m(T,{success:k}))},y=T=>{g(T,r.useGlobalTarget||lx(h,T.target))},w=T=>{g(T,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{!GA(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(r.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),d.addEventListener("focus",m=>YA(m,a),a)}),l}function JA(t){return t==="x"||t==="y"?un[t]?null:(un[t]=!0,()=>{un[t]=!1}):un.x||un.y?null:(un.x=un.y=!0,()=>{un.x=un.y=!1})}const ux=new Set(["width","height","top","left","right","bottom",...di]);let gl;function ZA(){gl=void 0}const En={now:()=>(gl===void 0&&En.set(dt.isProcessing||QP.useManualTiming?dt.timestamp:performance.now()),gl),set:t=>{gl=t,queueMicrotask(ZA)}};function Jf(t,e){t.indexOf(e)===-1&&t.push(e)}function Zf(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class eh{constructor(){this.subscriptions=[]}add(e){return Jf(this.subscriptions,e),()=>Zf(this.subscriptions,e)}notify(e,r,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,i);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(e,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function cx(t,e){return e?t*(1e3/e):0}const My=30,eR=t=>!isNaN(parseFloat(t));class tR{constructor(e,r={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const l=En.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=En.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=eR(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new eh);const i=this.events[e].add(r);return e==="change"?()=>{i(),Ue.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=En.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>My)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,My);return cx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),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 bo(t,e){return new tR(t,e)}function nR(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,bo(r))}function rR(t,e){const r=ql(t,e);let{transitionEnd:i={},transition:a={},...l}=r||{};l={...l,...i};for(const c in l){const d=mA(l[c]);nR(t,c,d)}}function sR(t){return!!(St(t)&&t.add)}function Qd(t,e){const r=t.getValue("willChange");if(sR(r))return r.add(e)}function dx(t){return t.props[Uw]}const fx=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,iR=1e-7,oR=12;function aR(t,e,r,i,a){let l,c,d=0;do c=e+(r-e)/2,l=fx(c,i,a)-t,l>0?r=c:e=c;while(Math.abs(l)>iR&&++d<oR);return c}function Fo(t,e,r,i){if(t===e&&r===i)return Ut;const a=l=>aR(l,0,1,t,r);return l=>l===0||l===1?l:fx(a(l),e,i)}const hx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,px=t=>e=>1-t(1-e),mx=Fo(.33,1.53,.69,.99),th=px(mx),gx=hx(th),yx=t=>(t*=2)<1?.5*th(t):.5*(2-Math.pow(2,-10*(t-1))),nh=t=>1-Math.sin(Math.acos(t)),vx=px(nh),wx=hx(nh),xx=t=>/^0[^.\s]+$/u.test(t);function lR(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||xx(t):!0}const po=t=>Math.round(t*1e5)/1e5,rh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uR(t){return t==null}const cR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sh=(t,e)=>r=>!!(typeof r=="string"&&cR.test(r)&&r.startsWith(t)||e&&!uR(r)&&Object.prototype.hasOwnProperty.call(r,e)),Sx=(t,e,r)=>i=>{if(typeof i!="string")return i;const[a,l,c,d]=i.match(rh);return{[t]:parseFloat(a),[e]:parseFloat(l),[r]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},dR=t=>zn(0,255,t),id={...fi,transform:t=>Math.round(dR(t))},Jr={test:sh("rgb","red"),parse:Sx("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+id.transform(t)+", "+id.transform(e)+", "+id.transform(r)+", "+po(So.transform(i))+")"};function fR(t){let e="",r="",i="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const Gd={test:sh("#"),parse:fR,transform:Jr.transform},Us={test:sh("hsl","hue"),parse:Sx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+kn.transform(po(e))+", "+kn.transform(po(r))+", "+po(So.transform(i))+")"},wt={test:t=>Jr.test(t)||Gd.test(t)||Us.test(t),parse:t=>Jr.test(t)?Jr.parse(t):Us.test(t)?Us.parse(t):Gd.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Jr.transform(t):Us.transform(t)},hR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pR(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(rh))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(hR))===null||r===void 0?void 0:r.length)||0)>0}const bx="number",kx="color",mR="var",gR="var(",Fy="${}",yR=/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 ko(t){const e=t.toString(),r=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(yR,h=>(wt.test(h)?(i.color.push(l),a.push(kx),r.push(wt.parse(h))):h.startsWith(gR)?(i.var.push(l),a.push(mR),r.push(h)):(i.number.push(l),a.push(bx),r.push(parseFloat(h))),++l,Fy)).split(Fy);return{values:r,split:d,indexes:i,types:a}}function Ex(t){return ko(t).values}function Tx(t){const{split:e,types:r}=ko(t),i=e.length;return a=>{let l="";for(let c=0;c<i;c++)if(l+=e[c],a[c]!==void 0){const d=r[c];d===bx?l+=po(a[c]):d===kx?l+=wt.transform(a[c]):l+=a[c]}return l}}const vR=t=>typeof t=="number"?0:t;function wR(t){const e=Ex(t);return Tx(t)(e.map(vR))}const Pr={test:pR,parse:Ex,createTransformer:Tx,getAnimatableNone:wR},xR=new Set(["brightness","contrast","saturate","opacity"]);function SR(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=r.match(rh)||[];if(!i)return t;const a=r.replace(i,"");let l=xR.has(e)?1:0;return i!==r&&(l*=100),e+"("+l+a+")"}const bR=/\b([a-z-]*)\(.*?\)/gu,Yd={...Pr,getAnimatableNone:t=>{const e=t.match(bR);return e?e.map(SR).join(" "):t}},kR={...zf,color:wt,backgroundColor:wt,outlineColor:wt,fill:wt,stroke:wt,borderColor:wt,borderTopColor:wt,borderRightColor:wt,borderBottomColor:wt,borderLeftColor:wt,filter:Yd,WebkitFilter:Yd},ih=t=>kR[t];function Cx(t,e){let r=ih(t);return r!==Yd&&(r=Pr),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const ER=new Set(["auto","none","0"]);function TR(t,e,r){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!ER.has(l)&&ko(l).values.length&&(a=t[i]),i++}if(a&&r)for(const l of e)t[l]=Cx(r,a)}const Iy=t=>t===fi||t===ce,Vy=(t,e)=>parseFloat(t.split(", ")[e]),By=(t,e)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return Vy(a[1],e);{const l=i.match(/^matrix\((.+)\)$/u);return l?Vy(l[1],t):0}},CR=new Set(["x","y","z"]),_R=di.filter(t=>!CR.has(t));function PR(t){const e=[];return _R.forEach(r=>{const i=t.getValue(r);i!==void 0&&(e.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),e}const li={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:By(4,13),y:By(5,14)};li.translateX=li.x;li.translateY=li.y;const us=new Set;let Xd=!1,Jd=!1;function _x(){if(Jd){const t=Array.from(us).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),r=new Map;e.forEach(i=>
vendor: 3,420 bytes, line 172
172{const a=PR(i);a.length&&(r.set(i,a),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const a=r.get(i);a&&a.forEach(([l,c])=>{var d;(d=i.getValue(l))===null||d===void 0||d.set(c)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Jd=!1,Xd=!1,us.forEach(t=>t.complete()),us.clear()}function Px(){us.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Jd=!0)})}function AR(){Px(),_x()}class oh{constructor(e,r,i,a,l,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=i,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(us.add(this),Xd||(Xd=!0,Ue.read(Px),Ue.resolveKeyframes(_x))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:i,motionValue:a}=this;for(let l=0;l<e.length;l++)if(e[l]===null)if(l===0){const c=a==null?void 0:a.get(),d=e[e.length-1];if(c!==void 0)e[0]=c;else if(i&&r){const h=i.readValue(r,d);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=d),a&&c===void 0&&a.set(e[0])}else e[l]=e[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),us.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,us.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ax=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),RR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NR(t){const e=RR.exec(t);if(!e)return[,];const[,r,i,a]=e;return[`--${r??i}`,a]}function Rx(t,e,r=1){const[i,a]=NR(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const c=l.trim();return Ax(c)?parseFloat(c):c}return Uf(a)?Rx(a,e,r+1):a}const Nx=t=>e=>e.test(t),OR={test:t=>t==="auto",parse:t=>t},Ox=[fi,ce,kn,pr,SA,xA,OR],Uy=t=>Ox.find(Nx(t));class jx extends oh{constructor(e,r,i,a,l){super(e,r,i,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:r,name:i}=this;if(!r||!r.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let m=e[h];if(typeof m=="string"&&(m=m.trim(),Uf(m))){const g=Rx(m,r.current);g!==void 0&&(e[h]=g),h===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!ux.has(i)||e.length!==2)return;const[a,l]=e,c=Uy(a),d=Uy(l);if(c!==d)if(Iy(c)&&Iy(d))for(let h=0;h<e.length;h++){const m=e[h];typeof m=="string"&&(e[h]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:r}=this,i=[];for(let a=0;a<e.length;a++)lR(e[a])&&i.push(a);i.length&&TR(e,i,r)}measureInitialState(){const{element:e,unresolvedKeyframes:r,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=li[i](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&e.getValue(i,a).jump(a,!1)}measureEndState(){var e;const{element:r,name:i,unresolvedKeyframes:a}=this;if(!r||!r.current)return;const l=r.getValue(i);l&&l.jump(this.measuredOrigin,!1);const c=a.length-1,d=a[c];a[c]=li[i](r.measureViewportBox(),window.getComputedStyle(r.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
vendor: 7,175 bytes, line 172
172h(([h,m])=>{r.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const zy=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pr.test(t)||t==="0")&&!t.startsWith("url("));function jR(t){const e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function DR(t,e,r,i){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],c=zy(a,e),d=zy(l,e);return!c||!d?!1:jR(t)||(r==="spring"||Gf(r))&&i}const LR=t=>t!==null;function Hl(t,{repeat:e,repeatType:r="loop"},i){const a=t.filter(LR),l=e&&r!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}const MR=40;class Dx{constructor({autoplay:e=!0,delay:r=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=En.now(),this.options={autoplay:e,delay:r,type:i,repeat:a,repeatDelay:l,repeatType:c,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>MR?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&AR(),this._resolved}onKeyframesResolved(e,r){this.resolvedAt=En.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:l,delay:c,onComplete:d,onUpdate:h,isGenerator:m}=this.options;if(!m&&!DR(e,i,a,l))if(c)this.options.duration=0;else{h&&h(Hl(e,this.options,r)),d&&d(),this.resolveFinishedPromise();return}const g=this.initPlayback(e,r);g!==!1&&(this._resolved={keyframes:e,finalKeyframe:r,...g},this.onPostResolved())}onPostResolved(){}then(e,r){return this.currentFinishedPromise.then(e,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const qe=(t,e,r)=>t+(e-t)*r;function od(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function FR({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,e/=100,r/=100;let a=0,l=0,c=0;if(!e)a=l=c=r;else{const d=r<.5?r*(1+e):r+e-r*e,h=2*r-d;a=od(h,d,t+1/3),l=od(h,d,t),c=od(h,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:i}}function Pl(t,e){return r=>r>0?e:t}const ad=(t,e,r)=>{const i=t*t,a=r*(e*e-i)+i;return a<0?0:Math.sqrt(a)},IR=[Gd,Jr,Us],VR=t=>IR.find(e=>e.test(t));function $y(t){const e=VR(t);if(!e)return!1;let r=e.parse(t);return e===Us&&(r=FR(r)),r}const Wy=(t,e)=>{const r=$y(t),i=$y(e);if(!r||!i)return Pl(t,e);const a={...r};return l=>(a.red=ad(r.red,i.red,l),a.green=ad(r.green,i.green,l),a.blue=ad(r.blue,i.blue,l),a.alpha=qe(r.alpha,i.alpha,l),Jr.transform(a))},BR=(t,e)=>r=>e(t(r)),Io=(...t)=>t.reduce(BR),Zd=new Set(["none","hidden"]);function UR(t,e){return Zd.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function zR(t,e){return r=>qe(t,e,r)}function ah(t){return typeof t=="number"?zR:typeof t=="string"?Uf(t)?Pl:wt.test(t)?Wy:qR:Array.isArray(t)?Lx:typeof t=="object"?wt.test(t)?Wy:$R:Pl}function Lx(t,e){const r=[...t],i=r.length,a=t.map((l,c)=>ah(l)(l,e[c]));return l=>{for(let c=0;c<i;c++)r[c]=a[c](l);return r}}function $R(t,e){const r={...t,...e},i={};for(const a in r)t[a]!==void 0&&e[a]!==void 0&&(i[a]=ah(t[a])(t[a],e[a]));return a=>{for(const l in i)r[l]=i[l](a);return r}}function WR(t,e){var r;const i=[],a={color:0,var:0,number:0};for(let l=0;l<e.values.length;l++){const c=e.types[l],d=t.indexes[c][a[c]],h=(r=t.values[d])!==null&&r!==void 0?r:0;i[l]=h,a[c]++}return i}const qR=(t,e)=>{const r=Pr.createTransformer(e),i=ko(t),a=ko(e);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Zd.has(t)&&!a.values.length||Zd.has(e)&&!i.values.length?UR(t,e):Io(Lx(WR(i,a),a.values),r):Pl(t,e)};function Mx(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?qe(t,e,r):ah(t)(t,e)}const HR=5;function Fx(t,e,r){const i=Math.max(e-HR,0);return cx(r-t(i),e-i)}const Qe={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},ld=.001;function KR({duration:t=Qe.duration,bounce:e=Qe.bounce,velocity:r=Qe.velocity,mass:i=Qe.mass}){let a,l,c=1-e;c=zn(Qe.minDamping,Qe.maxDamping,c),t=zn(Qe.minDuration,Qe.maxDuration,Un(t)),c<1?(a=m=>{const g=m*c,y=g*t,w=g-r,T=ef(m,c),k=Math.exp(-y);return ld-w/T*k},l=m=>{const y=m*c*t,w=y*r+r,T=Math.pow(c,2)*Math.pow(m,2)*t,k=Math.exp(-y),b=ef(Math.pow(m,2),c);return(-a(m)+ld>0?-1:1)*((w-T)*k)/b}):(a=m=>{const g=Math.exp(-m*t),y=(m-r)*t+1;return-ld+g*y},l=m=>{const g=Math.exp(-m*t),y=(r-m)*(t*t);return g*y});const d=5/t,h=GR(a,l,d);if(t=Bn(t),isNaN(h))return{stiffness:Qe.stiffness,damping:Qe.damping,duration:t};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:c*2*Math.sqrt(i*m),duration:t}}}const QR=12;function GR(t,e,r){let i=r;for(let a=1;a<QR;a++)i=i-t(i)/e(i);return i}function ef(t,e){return t*Math.sqrt(1-e*e)}const YR=["duration","bounce"],XR=["stiffness","damping","mass"];function qy(t,e){return e.some(r=>t[r]!==void 0)}function JR(t){let e={velocity:Qe.velocity,stiffness:Qe.stiffness,damping:Qe.damping,mass:Qe.mass,isResolvedFromDuration:!1,...t};if(!qy(t,XR)&&qy(t,YR))if(t.visualDuration){const r=t.visualDuration,i=2*Math.PI/(r*1.2),a=i*i,l=2*zn(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Qe.mass,stiffness:a,damping:l}}else{const r=KR(t);e={...e,...r,mass:Qe.mass},e.isResolvedFromDuration=!0}return e}function Ix(t=Qe.visualDuration,e=Qe.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:a}=r;const l=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:m,mass:g,duration:y,velocity:w,isResolvedFromDuration:T}=JR({...r,velocity:-Un(r.velocity||0)}),k=w||0,b=m/(2*Math.sqrt(h*g)),S=c-l,A=Un(Math.sqrt(h/g)),V=Math.abs(S)<5;i||(i=V?Qe.restSpeed.granular:Qe.restSpeed.default),a||(a=V?Qe.restDelta.granular:Qe.restDelta.default);let L;if(b<1){const U=ef(A,b);L=Q=>{const Y=Math.exp(-b*A*Q);return c-Y*((k+b*A*S)/U*Math.sin(U*Q)+S*Math.cos(U*Q))}}else if(b===1)L=U=>c-Math.exp(-A*U)*(S+(k+A*S)*U);else{const U=A*Math.sqrt(b*b-1);L=Q=>{const Y=Math.exp(-b*A*Q),F=Math.min(U*Q,300);return c-Y*((k+b*A*S)*Math.sinh(F)+U*S*Math.cosh(F))/U}}const M={calculatedDuration:T&&y||null,next:U=>{const Q=L(U);if(T)d.done=U>=y;else{let Y=0;b<1&&(Y=U===0?Bn(k):Fx(L,U,Q));const F=Math.abs(Y)<=i,J=Math.abs(c-Q)<=a;d.done=F&&J}return d.value=d.done?c:Q,d},toString:()=>{const U=Math.min(nx(M),Hd),Q=rx(Y=>M.next(U*Y).value,U,30);return U+"ms "+Q}};return M}function Hy({keyframes:t,velocity:e=0,power:r=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:h,restDelta:m=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},T=F=>d!==void 0&&F<d||h!==void 0&&F>h,k=F=>d===void 0?h:h===void 0||Math.abs(d-F)<Math.abs(h-F)?d:h;let b=r*e;const S=y+b,A=c===void 0?S:c(S);A!==S&&(b=A-y);const V=F=>-b*Math.exp(-F/i),L=F=>A+V(F),M=F=>{const J=V(F),me=L(F);w.done=Math.abs(J)<=m,w.value=w.done?A:me};let U,Q;const Y=F=>
vendor: 4,699 bytes, line 172
172{T(w.value)&&(U=F,Q=Ix({keyframes:[w.value,k(w.value)],velocity:Fx(L,F,w.value),damping:a,stiffness:l,restDelta:m,restSpeed:g}))};return Y(0),{calculatedDuration:null,next:F=>{let J=!1;return!Q&&U===void 0&&(J=!0,M(F),Y(F)),U!==void 0&&F>=U?Q.next(F-U):(!J&&M(F),w)}}}const ZR=Fo(.42,0,1,1),eN=Fo(0,0,.58,1),Vx=Fo(.42,0,.58,1),tN=t=>Array.isArray(t)&&typeof t[0]!="number",nN={linear:Ut,easeIn:ZR,easeInOut:Vx,easeOut:eN,circIn:nh,circInOut:wx,circOut:vx,backIn:th,backInOut:gx,backOut:mx,anticipate:yx},Ky=t=>{if(Yf(t)){Mw(t.length===4);const[e,r,i,a]=t;return Fo(e,r,i,a)}else if(typeof t=="string")return nN[t];return t};function rN(t,e,r){const i=[],a=r||Mx,l=t.length-1;for(let c=0;c<l;c++){let d=a(t[c],t[c+1]);if(e){const h=Array.isArray(e)?e[c]||Ut:e;d=Io(h,d)}i.push(d)}return i}function sN(t,e,{clamp:r=!0,ease:i,mixer:a}={}){const l=t.length;if(Mw(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const c=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=rN(e,i,a),h=d.length,m=g=>{if(c&&g<t[0])return e[0];let y=0;if(h>1)for(;y<t.length-2&&!(g<t[y+1]);y++);const w=oi(t[y],t[y+1],g);return d[y](w)};return r?g=>m(zn(t[0],t[l-1],g)):m}function iN(t,e){const r=t[t.length-1];for(let i=1;i<=e;i++){const a=oi(0,e,i);t.push(qe(r,1,a))}}function oN(t){const e=[0];return iN(e,t.length-1),e}function aN(t,e){return t.map(r=>r*e)}function lN(t,e){return t.map(()=>e||Vx).splice(0,t.length-1)}function Al({duration:t=300,keyframes:e,times:r,ease:i="easeInOut"}){const a=tN(i)?i.map(Ky):Ky(i),l={done:!1,value:e[0]},c=aN(r&&r.length===e.length?r:oN(e),t),d=sN(c,e,{ease:Array.isArray(a)?a:lN(e,a)});return{calculatedDuration:t,next:h=>(l.value=d(h),l.done=h>=t,l)}}const uN=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Ue.update(e,!0),stop:()=>_r(e),now:()=>dt.isProcessing?dt.timestamp:En.now()}},cN={decay:Hy,inertia:Hy,tween:Al,keyframes:Al,spring:Ix},dN=t=>t/100;class lh extends Dx{constructor(e){super(e),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:h}=this.options;h&&h()};const{name:r,motionValue:i,element:a,keyframes:l}=this.options,c=(a==null?void 0:a.KeyframeResolver)||oh,d=(h,m)=>this.onKeyframesResolved(h,m);this.resolver=new c(l,d,r,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=this.options,d=Gf(r)?r:cN[r]||Al;let h,m;d!==Al&&typeof e[0]!="number"&&(h=Io(dN,Mx(e[0],e[1])),e=[0,100]);const g=d({...this.options,keyframes:e});l==="mirror"&&(m=d({...this.options,keyframes:[...e].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=nx(g));const{calculatedDuration:y}=g,w=y+a,T=w*(i+1)-a;return{generator:g,mirroredGenerator:m,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:w,totalDuration:T}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,r=!1){const{resolved:i}=this;if(!i){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:a,generator:l,mirroredGenerator:c,mapPercentToKeyframes:d,keyframes:h,calculatedDuration:m,totalDuration:g,resolvedDuration:y}=i;if(this.startTime===null)return l.next(0);const{delay:w,repeat:T,repeatType:k,repeatDelay:b,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),r?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const A=this.currentTime-w*(this.speed>=0?1:-1),V=this.speed>=0?A<0:A>g;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let L=this.currentTime,M=l;if(T){const F=Math.min(this.currentTime,g)/y;let J=Math.floor(F),me=F%1;!me&&F>=1&&(me=1),me===1&&J--,J=Math.min(J,T+1),!!(J%2)&&(k==="reverse"?(me=1-me,b&&(me-=b/y)):k==="mirror"&&(M=c)),L=zn(0,1,me)*y}const U=V?{done:!1,value:h[0]}:M.next(L);d&&(U.value=d(U.value));let{done:Q}=U;!V&&m!==null&&(Q=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return Y&&a!==void 0&&(U.value=Hl(h,this.options,a)),S&&S(U.value),Y&&this.finish(),U}get duration(){const{resolved:e}=this;return e?Un(e.calculatedDuration):0}
vendor: 57,585 bytes, line 172
172get time(){return Un(this.currentTime)}set time(e){e=Bn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=Un(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=uN,onPlay:r,startTime:i}=this.options;this.driver||(this.driver=e(l=>this.tick(l))),r&&r();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}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(e){return this.startTime=0,this.tick(e,!0)}}const fN=new Set(["opacity","clipPath","filter","transform"]);function hN(t,e,r,{delay:i=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeInOut",times:h}={}){const m={[e]:r};h&&(m.offset=h);const g=ix(d,a);return Array.isArray(g)&&(m.easing=g),t.animate(m,{delay:i,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"})}const pN=Df(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rl=10,mN=2e4;function gN(t){return Gf(t.type)||t.type==="spring"||!sx(t.ease)}function yN(t,e){const r=new lh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const a=[];let l=0;for(;!i.done&&l<mN;)i=r.sample(l),a.push(i.value),l+=Rl;return{times:void 0,keyframes:a,duration:l-Rl,ease:"linear"}}const Bx={anticipate:yx,backInOut:gx,circInOut:wx};function vN(t){return t in Bx}class Qy extends Dx{constructor(e){super(e);const{name:r,motionValue:i,element:a,keyframes:l}=this.options;this.resolver=new jx(l,(c,d)=>this.onKeyframesResolved(c,d),r,i,a),this.resolver.scheduleResolve()}initPlayback(e,r){let{duration:i=300,times:a,ease:l,type:c,motionValue:d,name:h,startTime:m}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof l=="string"&&_l()&&vN(l)&&(l=Bx[l]),gN(this.options)){const{onComplete:y,onUpdate:w,motionValue:T,element:k,...b}=this.options,S=yN(e,b);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,a=S.times,l=S.ease,c="keyframes"}const g=hN(d.owner.current,h,e,{...this.options,duration:i,times:a,ease:l});return g.startTime=m??this.calcStartTime(),this.pendingTimeline?(Oy(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;d.set(Hl(e,this.options,r)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:i,times:a,type:c,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:r}=e;return Un(r)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:r}=e;return Un(r.currentTime||0)}set time(e){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.currentTime=Bn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:r}=e;return r.playbackRate}set speed(e){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:r}=e;return r.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:r}=e;return r.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:r}=this;if(!r)return Ut;const{animation:i}=r;Oy(i,e)}return Ut}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:r}=e;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:r}=e;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:r,keyframes:i,duration:a,type:l,ease:c,times:d}=e;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:g,onComplete:y,element:w,...T}=this.options,k=new lh({...T,keyframes:i,duration:a,type:l,ease:c,times:d,isGenerator:!0}),b=Bn(this.time);m.setWithVelocity(k.sample(b-Rl).value,k.sample(b).value,Rl)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:r,name:i,repeatDelay:a,repeatType:l,damping:c,type:d}=e;if(!r||!r.owner||!(r.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=r.owner.getProps();return pN()&&i&&fN.has(i)&&!h&&!m&&!a&&l!=="mirror"&&c!==0&&d!=="inertia"}}const wN={type:"spring",stiffness:500,damping:25,restSpeed:10},xN=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),SN={type:"keyframes",duration:.8},bN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kN=(t,{keyframes:e})=>e.length>2?SN:hs.has(t)?t.startsWith("scale")?xN(e[1]):wN:bN;function EN({when:t,delay:e,delayChildren:r,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:c,repeatDelay:d,from:h,elapsed:m,...g}){return!!Object.keys(g).length}const uh=(t,e,r,i={},a,l)=>c=>{const d=Qf(i,t)||{},h=d.delay||i.delay||0;let{elapsed:m=0}=i;m=m-Bn(h);let g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-m,onUpdate:w=>{e.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};EN(d)||(g={...g,...kN(t,g)}),g.duration&&(g.duration=Bn(g.duration)),g.repeatDelay&&(g.repeatDelay=Bn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!l&&e.get()!==void 0){const w=Hl(g.keyframes,d);if(w!==void 0)return Ue.update(()=>{g.onUpdate(w),g.onComplete()}),new $A([])}return!l&&Qy.supports(g)?new Qy(g):new lh(g)};function TN({protectedKeys:t,needsAnimating:e},r){const i=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,i}function Ux(t,e,{delay:r=0,transitionOverride:i,type:a}={}){var l;let{transition:c=t.getDefaultTransition(),transitionEnd:d,...h}=e;i&&(c=i);const m=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const y in h){const w=t.getValue(y,(l=t.latestValues[y])!==null&&l!==void 0?l:null),T=h[y];if(T===void 0||g&&TN(g,y))continue;const k={delay:r,...Qf(c||{},y)};let b=!1;if(window.MotionHandoffAnimation){const A=dx(t);if(A){const V=window.MotionHandoffAnimation(A,y,Ue);V!==null&&(k.startTime=V,b=!0)}}Qd(t,y),w.start(uh(y,w,T,t.shouldReduceMotion&&ux.has(y)?{type:!1}:k,t,b));const S=w.animation;S&&m.push(S)}return d&&Promise.all(m).then(()=>{Ue.update(()=>{d&&rR(t,d)})}),m}function tf(t,e,r={}){var i;const a=ql(t,e,r.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(l=r.transitionOverride);const c=a?()=>Promise.all(Ux(t,a,r)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=l;return CN(t,e,g+m,y,w,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,g]=h==="beforeChildren"?[c,d]:[d,c];return m().then(()=>g())}else return Promise.all([c(),d(r.delay)])}function CN(t,e,r=0,i=0,a=1,l){const c=[],d=(t.variantChildren.size-1)*i,h=a===1?(m=0)=>m*i:(m=0)=>d-m*i;return Array.from(t.variantChildren).sort(_N).forEach((m,g)=>{m.notify("AnimationStart",e),c.push(tf(m,e,{...l,delay:r+h(g)}).then(()=>m.notify("AnimationComplete",e)))}),Promise.all(c)}function _N(t,e){return t.sortNodePosition(e)}function PN(t,e,r={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>tf(t,l,r));i=Promise.all(a)}else if(typeof e=="string")i=tf(t,e,r);else{const a=typeof e=="function"?ql(t,e,r.custom):e;i=Promise.all(Ux(t,a,r))}return i.then(()=>{t.notify("AnimationComplete",e)})}const AN=Mf.length;function zx(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?zx(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;r<AN;r++){const i=Mf[r],a=t.props[i];(xo(a)||a===!1)&&(e[i]=a)}return e}const RN=[...Lf].reverse(),NN=Lf.length;function ON(t){return e=>Promise.all(e.map(({animation:r,options:i})=>PN(t,r,i)))}function jN(t){let e=ON(t),r=Gy(),i=!0;const a=h=>(m,g)=>{var y;const w=ql(t,g,h==="exit"?(y=t.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(w){const{transition:T,transitionEnd:k,...b}=w;m={...m,...b,...k}}return m};function l(h){e=h(t)}function c(h){const{props:m}=t,g=zx(t.parent)||{},y=[],w=new Set;let T={},k=1/0;for(let S=0;S<NN;S++){const A=RN[S],V=r[A],L=m[A]!==void 0?m[A]:g[A],M=xo(L),U=A===h?V.isActive:null;U===!1&&(k=S);let Q=L===g[A]&&L!==m[A]&&M;if(Q&&i&&t.manuallyAnimateOnMount&&(Q=!1),V.protectedKeys={...T},!V.isActive&&U===null||!L&&!V.prevProp||$l(L)||typeof L=="boolean")continue;const Y=DN(V.prevProp,L);let F=Y||A===h&&V.isActive&&!Q&&M||S>k&&M,J=!1;const me=Array.isArray(L)?L:[L];let de=me.reduce(a(A),{});U===!1&&(de={});const{prevResolvedValues:Ce={}}=V,De={...Ce,...de},Re=fe=>{F=!0,w.has(fe)&&(J=!0,w.delete(fe)),V.needsAnimating[fe]=!0;const H=t.getValue(fe);H&&(H.liveStyle=!1)};for(const fe in De){const H=de[fe],se=Ce[fe];if(T.hasOwnProperty(fe))continue;let B=!1;qd(H)&&qd(se)?B=!tx(H,se):B=H!==se,B?H!=null?Re(fe):w.add(fe):H!==void 0&&w.has(fe)?Re(fe):V.protectedKeys[fe]=!0}V.prevProp=L,V.prevResolvedValues=de,V.isActive&&(T={...T,...de}),i&&t.blockInitialAnimation&&(F=!1),F&&(!(Q&&Y)||J)&&y.push(...me.map(fe=>({animation:fe,options:{type:A}})))}if(w.size){const S={};w.forEach(A=>{const V=t.getBaseTarget(A),L=t.getValue(A);L&&(L.liveStyle=!0),S[A]=V??null}),y.push({animation:S})}let b=!!y.length;return i&&(m.initial===!1||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(y):Promise.resolve()}function d(h,m){var g;if(r[h].isActive===m)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(w=>{var T;return(T=w.animationState)===null||T===void 0?void 0:T.setActive(h,m)}),r[h].isActive=m;const y=c(h);for(const w in r)r[w].protectedKeys={};return y}return{animateChanges:c,setActive:d,setAnimateFunction:l,getState:()=>r,reset:()=>{r=Gy(),i=!0}}}function DN(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!tx(e,t):!1}function Hr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gy(){return{animate:Hr(!0),whileInView:Hr(),whileHover:Hr(),whileTap:Hr(),whileDrag:Hr(),whileFocus:Hr(),exit:Hr()}}class Rr{constructor(e){this.isMounted=!1,this.node=e}update(){}}class LN extends Rr{constructor(e){super(e),e.animationState||(e.animationState=jN(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$l(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let MN=0;class FN extends Rr{constructor(){super(...arguments),this.id=MN++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const a=this.node.animationState.setActive("exit",!e);r&&!e&&a.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const IN={animation:{Feature:LN},exit:{Feature:FN}};function Eo(t,e,r,i={passive:!0}){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r)}function Vo(t){return{point:{x:t.pageX,y:t.pageY}}}const VN=t=>e=>Xf(e)&&t(e,Vo(e));function mo(t,e,r,i){return Eo(t,e,VN(r),i)}const Yy=(t,e)=>Math.abs(t-e);function BN(t,e){const r=Yy(t.x,e.x),i=Yy(t.y,e.y);return Math.sqrt(r**2+i**2)}class $x{constructor(e,r,{transformPagePoint:i,contextWindow:a,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=cd(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,T=BN(y.offset,{x:0,y:0})>=3;if(!w&&!T)return;const{point:k}=y,{timestamp:b}=dt;this.history.push({...k,timestamp:b});const{onStart:S,onMove:A}=this.handlers;w||(S&&S(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=ud(w,this.transformPagePoint),Ue.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:T,onSessionEnd:k,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=cd(y.type==="pointercancel"?this.lastMoveEventInfo:ud(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(y,S),k&&k(y,S)},!Xf(e))return;this.dragSnapToOrigin=l,this.handlers=r,this.transformPagePoint=i,this.contextWindow=a||window;const c=Vo(e),d=ud(c,this.transformPagePoint),{point:h}=d,{timestamp:m}=dt;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=r;g&&g(e,cd(d,this.history)),this.removeListeners=Io(mo(this.contextWindow,"pointermove",this.handlePointerMove),mo(this.contextWindow,"pointerup",this.handlePointerUp),mo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function ud(t,e){return e?{point:e(t.point)}:t}function Xy(t,e){return{x:t.x-e.x,y:t.y-e.y}}function cd({point:t},e){return{point:t,delta:Xy(t,Wx(e)),offset:Xy(t,UN(e)),velocity:zN(e,.1)}}function UN(t){return t[0]}function Wx(t){return t[t.length-1]}function zN(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null;const a=Wx(t);for(;r>=0&&(i=t[r],!(a.timestamp-i.timestamp>Bn(e)));)r--;if(!i)return{x:0,y:0};const l=Un(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const qx=1e-4,$N=1-qx,WN=1+qx,Hx=.01,qN=0-Hx,HN=0+Hx;function zt(t){return t.max-t.min}function KN(t,e,r){return Math.abs(t-e)<=r}function Jy(t,e,r,i=.5){t.origin=i,t.originPoint=qe(e.min,e.max,t.origin),t.scale=zt(r)/zt(e),t.translate=qe(r.min,r.max,t.origin)-t.originPoint,(t.scale>=$N&&t.scale<=WN||isNaN(t.scale))&&(t.scale=1),(t.translate>=qN&&t.translate<=HN||isNaN(t.translate))&&(t.translate=0)}function go(t,e,r,i){Jy(t.x,e.x,r.x,i?i.originX:void 0),Jy(t.y,e.y,r.y,i?i.originY:void 0)}function Zy(t,e,r){t.min=r.min+e.min,t.max=t.min+zt(e)}function QN(t,e,r){Zy(t.x,e.x,r.x),Zy(t.y,e.y,r.y)}function ev(t,e,r){t.min=e.min-r.min,t.max=t.min+zt(e)}function yo(t,e,r){ev(t.x,e.x,r.x),ev(t.y,e.y,r.y)}function GN(t,{min:e,max:r},i){return e!==void 0&&t<e?t=i?qe(e,t,i.min):Math.max(t,e):r!==void 0&&t>r&&(t=i?qe(r,t,i.max):Math.min(t,r)),t}function tv(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function YN(t,{top:e,left:r,bottom:i,right:a}){return{x:tv(t.x,r,a),y:tv(t.y,e,i)}}function nv(t,e){let r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function XN(t,e){return{x:nv(t.x,e.x),y:nv(t.y,e.y)}}function JN(t,e){let r=.5;const i=zt(t),a=zt(e);return a>i?r=oi(e.min,e.max-i,t.min):i>a&&(r=oi(t.min,t.max-a,e.min)),zn(0,1,r)}function ZN(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const nf=.35;function e2(t=nf){return t===!1?t=0:t===!0&&(t=nf),{x:rv(t,"left","right"),y:rv(t,"top","bottom")}}function rv(t,e,r){return{min:sv(t,e),max:sv(t,r)}}function sv(t,e){return typeof t=="number"?t:t[e]||0}const iv=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:iv(),y:iv()}),ov=()=>({min:0,max:0}),Xe=()=>({x:ov(),y:ov()});function Xt(t){return[t("x"),t("y")]}function Kx({top:t,left:e,right:r,bottom:i}){return{x:{min:e,max:r},y:{min:t,max:i}}}function t2({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function n2(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function dd(t){return t===void 0||t===1}function rf({scale:t,scaleX:e,scaleY:r}){return!dd(t)||!dd(e)||!dd(r)}function Kr(t){return rf(t)||Qx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qx(t){return av(t.x)||av(t.y)}function av(t){return t&&t!=="0%"}function Nl(t,e,r){const i=t-r,a=e*i;return r+a}function lv(t,e,r,i,a){return a!==void 0&&(t=Nl(t,a,i)),Nl(t,r,i)+e}function sf(t,e=0,r=1,i,a){t.min=lv(t.min,e,r,i,a),t.max=lv(t.max,e,r,i,a)}function Gx(t,{x:e,y:r}){sf(t.x,e.translate,e.scale,e.originPoint),sf(t.y,r.translate,r.scale,r.originPoint)}const uv=.999999999999,cv=1.0000000000001;function r2(t,e,r,i=!1){const a=r.length;if(!a)return;e.x=e.y=1;let l,c;for(let d=0;d<a;d++){l=r[d],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Ws(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,Gx(t,c)),i&&Kr(l.latestValues)&&Ws(t,l.latestValues))}e.x<cv&&e.x>uv&&(e.x=1),e.y<cv&&e.y>uv&&(e.y=1)}function $s(t,e){t.min=t.min+e,t.max=t.max+e}function dv(t,e,r,i,a=.5){const l=qe(t.min,t.max,a);sf(t,e,r,l,i)}function Ws(t,e){dv(t.x,e.x,e.scaleX,e.scale,e.originX),dv(t.y,e.y,e.scaleY,e.scale,e.originY)}function Yx(t,e){return Kx(n2(t.getBoundingClientRect(),e))}function s2(t,e,r){const i=Yx(t,r),{scroll:a}=e;return a&&($s(i.x,a.offset.x),$s(i.y,a.offset.y)),i}const Xx=({current:t})=>t?t.ownerDocument.defaultView:null,i2=new WeakMap;class o2{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xe(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Vo(g).point)},l=(g,y)=>{const{drag:w,dragPropagation:T,onDragStart:k}=this.getProps();if(w&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=JA(w),!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),Xt(S=>{let A=this.getAxisMotionValue(S).get()||0;if(kn.test(A)){const{projection:V}=this.visualElement;if(V&&V.layout){const L=V.layout.layoutBox[S];L&&(A=zt(L)*(parseFloat(A)/100))}}this.originPoint[S]=A}),k&&Ue.postRender(()=>k(g,y)),Qd(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(g,y)=>{const{dragPropagation:w,dragDirectionLock:T,onDirectionLock:k,onDrag:b}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:S}=y;if(T&&this.currentDirection===null){this.currentDirection=a2(S),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",y.point,S),this.updateAxis("y",y.point,S),this.visualElement.render(),b&&b(g,y)},d=(g,y)=>this.stop(g,y),h=()=>Xt(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new $x(e,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Xx(this.visualElement)})}stop(e,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&Ue.postRender(()=>l(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,i){const{drag:a}=this.getProps();if(!i||!sl(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let c=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(c=GN(c,this.constraints[e],this.elastic[e])),l.set(c)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,l=this.constraints;r&&Bs(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=YN(a.layoutBox,r):this.constraints=!1,this.elastic=e2(i),l!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Xt(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=ZN(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Bs(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=s2(i,a.root,this.visualElement.getTransformPagePoint());let c=XN(a.layout.layoutBox,l);if(r){const d=r(t2(c));this.hasMutatedConstraints=!!d,d&&(c=Kx(d))}return c}startAnimation(e){const{drag:r,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},m=Xt(g=>{if(!sl(g,r,this.currentDirection))return;let y=h&&h[g]||{};c&&(y={min:0,max:0});const w=a?200:1e6,T=a?40:1e7,k={type:"inertia",velocity:i?e[g]:0,bounceStiffness:w,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,k)});return Promise.all(m).then(d)}startAxisValueAnimation(e,r){const i=this.getAxisMotionValue(e);return Qd(this.visualElement,e),i.start(uh(e,i,0,r,this.visualElement,!1))}stopAnimation(){Xt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Xt(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),a=i[r];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Xt(r=>{const{drag:i}=this.getProps();if(!sl(r,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(r);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[r];l.set(e[r]-qe(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!Bs(r)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Xt(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();a[c]=JN({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Xt(c=>{if(!sl(c,e,null))return;const d=this.getAxisMotionValue(c),{min:h,max:m}=this.constraints[c];d.set(qe(h,m,a[c]))})}addListeners(){if(!this.visualElement.current)return;i2.set(this.visualElement,this);const e=this.visualElement.current,r=mo(e,"pointerdown",h=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();Bs(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Ue.read(i);const c=Eo(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Xt(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{c(),r(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=nf,dragMomentum:d=!0}=e;return{...e,drag:r,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function sl(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function a2(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class l2 extends Rr{constructor(e){super(e),this.removeGroupControls=Ut,this.removeListeners=Ut,this.controls=new o2(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const fv=t=>(e,r)=>{t&&Ue.postRender(()=>t(e,r))};class u2 extends Rr{constructor(){super(...arguments),this.removePointerDownListener=Ut}onPointerDown(e){this.session=new $x(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xx(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:fv(e),onStart:fv(r),onMove:i,onEnd:(l,c)=>{delete this.session,a&&Ue.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=mo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function hv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ro={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ce.test(t))t=parseFloat(t);else return t;const r=hv(t,e.target.x),i=hv(t,e.target.y);return`${r}% ${i}%`}},c2={correct:(t,{treeScale:e,projectionDelta:r})=>{const i=t,a=Pr.parse(t);if(a.length>5)return i;const l=Pr.createTransformer(t),c=typeof a[0]!="number"?1:0,d=r.x.scale*e.x,h=r.y.scale*e.y;a[0+c]/=d,a[1+c]/=h;const m=qe(d,h,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),l(a)}};class d2 extends j.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;NA(f2),l&&(r.group&&r.group.add(l),i&&i.register&&a&&i.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:i,drag:a,isPresent:l}=this.props,c=i.projection;return c&&(c.isPresent=l,a||e.layoutDependency!==r||r===void 0?c.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?c.promote():c.relegate()||Ue.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),If.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Jx(t){const[e,r]=HP(),i=j.useContext(Dw);return x.jsx(d2,{...t,layoutGroup:i,switchLayoutGroup:j.useContext(zw),isPresent:e,safeToRemove:r})}const f2={borderRadius:{...ro,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:c2};function h2(t,e,r){const i=St(t)?t:bo(t);return i.start(uh("",i,e,r)),i.animation}function p2(t){return t instanceof SVGElement&&t.tagName!=="svg"}const m2=(t,e)=>t.depth-e.depth;class g2{constructor(){this.children=[],this.isDirty=!1}add(e){Jf(this.children,e),this.isDirty=!0}remove(e){Zf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(m2),this.isDirty=!1,this.children.forEach(e)}}function y2(t,e){const r=En.now(),i=({timestamp:a})=>{const l=a-r;l>=e&&(_r(i),t(l-e))};return Ue.read(i,!0),()=>_r(i)}const Zx=["TopLeft","TopRight","BottomLeft","BottomRight"],v2=Zx.length,pv=t=>typeof t=="string"?parseFloat(t):t,mv=t=>typeof t=="number"||ce.test(t);function w2(t,e,r,i,a,l){a?(t.opacity=qe(0,r.opacity!==void 0?r.opacity:1,x2(i)),t.opacityExit=qe(e.opacity!==void 0?e.opacity:1,0,S2(i))):l&&(t.opacity=qe(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let c=0;c<v2;c++){const d=`border${Zx[c]}Radius`;let h=gv(e,d),m=gv(r,d);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||mv(h)===mv(m)?(t[d]=Math.max(qe(pv(h),pv(m),i),0),(kn.test(m)||kn.test(h))&&(t[d]+="%")):t[d]=m}(e.rotate||r.rotate)&&(t.rotate=qe(e.rotate||0,r.rotate||0,i))}function gv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const x2=e1(0,.5,vx),S2=e1(.5,.95,Ut);function e1(t,e,r){return i=>i<t?0:i>e?1:r(oi(t,e,i))}function yv(t,e){t.min=e.min,t.max=e.max}function Yt(t,e){yv(t.x,e.x),yv(t.y,e.y)}function vv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function wv(t,e,r,i,a){return t-=e,t=Nl(t,1/r,i),a!==void 0&&(t=Nl(t,1/a,i)),t}function b2(t,e=0,r=1,i=.5,a,l=t,c=t){if(kn.test(e)&&(e=parseFloat(e),e=qe(c.min,c.max,e/100)-c.min),typeof e!="number")return;let d=qe(l.min,l.max,i);t===l&&(d-=e),t.min=wv(t.min,e,r,d,a),t.max=wv(t.max,e,r,d,a)}function xv(t,e,[r,i,a],l,c){b2(t,e[r],e[i],e[a],e.scale,l,c)}const k2=["x","scaleX","originX"],E2=["y","scaleY","originY"];function Sv(t,e,r,i){xv(t.x,e,k2,r?r.x:void 0,i?i.x:void 0),xv(t.y,e,E2,r?r.y:void 0,i?i.y:void 0)}function bv(t){return t.translate===0&&t.scale===1}function t1(t){return bv(t.x)&&bv(t.y)}function kv(t,e){return t.min===e.min&&t.max===e.max}function T2(t,e){return kv(t.x,e.x)&&kv(t.y,e.y)}function Ev(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function n1(t,e){return Ev(t.x,e.x)&&Ev(t.y,e.y)}function Tv(t){return zt(t.x)/zt(t.y)}function Cv(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class C2{constructor(){this.members=[]}add(e){Jf(this.members,e),e.scheduleRender()}remove(e){if(Zf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let i;for(let a=r;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(e,r){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,r&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:i}=e;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _2(t,e,r){let i="";const a=t.x.translate/e.x,l=t.y.translate/e.y,c=(r==null?void 0:r.z)||0;if((a||l||c)&&(i=`translate3d(${a}px, ${l}px, ${c}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:m,rotate:g,rotateX:y,rotateY:w,skewX:T,skewY:k}=r;m&&(i=`perspective(${m}px) ${i}`),g&&(i+=`rotate(${g}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),T&&(i+=`skewX(${T}deg) `),k&&(i+=`skewY(${k}deg) `)}const d=t.x.scale*e.x,h=t.y.scale*e.y;return(d!==1||h!==1)&&(i+=`scale(${d}, ${h})`),i||"none"}const Qr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},co=typeof window<"u"&&window.MotionDebug!==void 0,fd=["","X","Y","Z"],P2={visibility:"hidden"},_v=1e3;let A2=0;function hd(t,e,r,i){const{latestValues:a}=e;a[t]&&(r[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function r1(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=dx(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",Ue,!(a||l))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&r1(i)}function s1({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(c={},d=e==null?void 0:e()){this.id=A2++,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,co&&(Qr.totalNodes=Qr.resolvedTargetDeltas=Qr.recalculatedProjection=0),this.nodes.forEach(O2),this.nodes.forEach(F2),this.nodes.forEach(I2),this.nodes.forEach(j2),co&&window.MotionDebug.record(Qr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,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 h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new g2)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new eh),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=p2(c),this.instance=c;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||h)&&(this.isLayoutDirty=!0),t){let y;const w=()=>this.root.updateBlockedByResize=!1;t(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=y2(w,250),yl.hasAnimatedSinceResize&&(yl.hasAnimatedSinceResize=!1,this.nodes.forEach(Av))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:T,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||g.getDefaultTransition()||$2,{onLayoutAnimationStart:S,onLayoutAnimationComplete:A}=g.getProps(),V=!this.targetLayout||!n1(this.targetLayout,k)||T,L=!w&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||L||w&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,L);const M={...Qf(b,"layout"),onPlay:S,onComplete:A};(g.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else w||Av(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_r(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(V2),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&r1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Pv);return}this.isUpdating||this.nodes.forEach(L2),this.isUpdating=!1,this.nodes.forEach(M2),this.nodes.forEach(R2),this.nodes.forEach(N2),this.clearAllSnapshots();const d=En.now();dt.delta=zn(0,1e3/60,d-dt.timestamp),dt.timestamp=d,dt.isProcessing=!0,rd.update.process(dt),rd.preRender.process(dt),rd.render.process(dt),dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,If.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(D2),this.sharedNodes.forEach(B2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ue.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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xe(),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,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!t1(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;c&&(d||Kr(this.latestValues)||g)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),W2(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:d}=this.options;if(!d)return Xe();const h=d.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(q2))){const{scroll:g}=this.root;g&&($s(h.x,g.offset.x),$s(h.y,g.offset.y))}return h}removeElementScroll(c){var d;const h=Xe();if(Yt(h,c),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return h;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:y,options:w}=g;g!==this.root&&y&&w.layoutScroll&&(y.wasRoot&&Yt(h,c),$s(h.x,y.offset.x),$s(h.y,y.offset.y))}return h}applyTransform(c,d=!1){const h=Xe();Yt(h,c);for(let m=0;m<this.path.length;m++){const g=this.path[m];!d&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ws(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Kr(g.latestValues)&&Ws(h,g.latestValues)}return Kr(this.latestValues)&&Ws(h,this.latestValues),h}removeTransform(c){const d=Xe();Yt(d,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Kr(m.latestValues))continue;rf(m.latestValues)&&m.updateSnapshot();const g=Xe(),y=m.measurePageBox();Yt(g,y),Sv(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return Kr(this.latestValues)&&Sv(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!(!this.layout||!(y||w))){if(this.resolvedRelativeTargetAt=dt.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),yo(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yt(this.target,this.layout.layoutBox),Gx(this.target,this.targetDelta)):Yt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),yo(this.relativeTargetOrigin,this.target,T.target),Yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}co&&Qr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||rf(this.parent.latestValues)||Qx(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 c;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===dt.timestamp&&(m=!1),m)return;const{layout:g,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||!(g||y))return;Yt(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,T=this.treeScale.y;r2(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Xe());const{target:k}=d;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vv(this.prevProjectionDelta.x,this.projectionDelta.x),vv(this.prevProjectionDelta.y,this.projectionDelta.y)),go(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==T||!Cv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k)),co&&Qr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zs(),this.projectionDelta=zs(),this.projectionDeltaWithTransform=zs()}setAnimationOrigin(c,d=!1){const h=this.snapshot,m=h?h.latestValues:{},g={...this.latestValues},y=zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const w=Xe(),T=h?h.source:void 0,k=this.layout?this.layout.source:void 0,b=T!==k,S=this.getStack(),A=!S||S.members.length<=1,V=!!(b&&!A&&this.options.crossfade===!0&&!this.path.some(z2));this.animationProgress=0;let L;this.mixTargetDelta=M=>{const U=M/1e3;Rv(y.x,c.x,U),Rv(y.y,c.y,U),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),U2(this.relativeTarget,this.relativeTargetOrigin,w,U),L&&T2(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=Xe()),Yt(L,this.relativeTarget)),b&&(this.animationValues=g,w2(g,m,this.latestValues,U,V,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ue.update(()=>{yl.hasAnimatedSinceResize=!0,this.currentAnimation=h2(0,_v,{...c,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_v),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:m,latestValues:g}=c;if(!(!d||!h||!m)){if(this!==c&&this.layout&&m&&i1(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Xe();const y=zt(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const w=zt(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+w}Yt(d,h),Ws(d,g),go(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new C2),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:d}=this.options;return d?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:d}=this.options;return d?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const m={};h.z&&hd("z",c,m,this.animationValues);for(let g=0;g<fd.length;g++)hd(`rotate${fd[g]}`,c,m,this.animationValues),hd(`skew${fd[g]}`,c,m,this.animationValues);c.render();for(const g in m)c.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);c.scheduleRender()}getProjectionStyles(c){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return P2;const m={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=ml(c==null?void 0:c.pointerEvents)||"",m.transform=g?g(this.latestValues,""):"none",m;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ml(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Kr(this.latestValues)&&(b.transform=g?g({},""):"none",this.hasProjected=!1),b}const w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),m.transform=_2(this.projectionDeltaWithTransform,this.treeScale,w),g&&(m.transform=g(w,m.transform));const{x:T,y:k}=this.projectionDelta;m.transformOrigin=`${T.origin*100}% ${k.origin*100}% 0`,y.animationValues?m.opacity=y===this?(h=(d=w.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:m.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const b in Cl){if(w[b]===void 0)continue;const{correct:S,applyTo:A}=Cl[b],V=m.transform==="none"?w[b]:S(w[b],y);if(A){const L=A.length;for(let M=0;M<L;M++)m[A[M]]=V}else m[b]=V}return this.options.layoutId&&(m.pointerEvents=y===this?ml(c==null?void 0:c.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Pv),this.root.sharedNodes.clear()}}}function R2(t){t.updateLayout()}function N2(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:l}=t.options,c=r.source!==t.layout.source;l==="size"?Xt(y=>{const w=c?r.measuredBox[y]:r.layoutBox[y],T=zt(w);w.min=i[y].min,w.max=w.min+T}):i1(l,r.layoutBox,i)&&Xt(y=>{const w=c?r.measuredBox[y]:r.layoutBox[y],T=zt(i[y]);w.max=w.min+T,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+T)});const d=zs();go(d,i,r.layoutBox);const h=zs();c?go(h,t.applyTransform(a,!0),r.measuredBox):go(h,i,r.layoutBox);const m=!t1(d);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:T}=y;if(w&&T){const k=Xe();yo(k,r.layoutBox,w.layoutBox);const b=Xe();yo(b,i,T.layoutBox),n1(k,b)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=k,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function O2(t){co&&Qr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function j2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function D2(t){t.clearSnapshot()}function Pv(t){t.clearMeasurements()}function L2(t){t.isLayoutDirty=!1}function M2(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Av(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function F2(t){t.resolveTargetDelta()}function I2(t){t.calcProjection()}function V2(t){t.resetSkewAndRotation()}function B2(t){t.removeLeadSnapshot()}function Rv(t,e,r){t.translate=qe(e.translate,0,r),t.scale=qe(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Nv(t,e,r,i){t.min=qe(e.min,r.min,i),t.max=qe(e.max,r.max,i)}function U2(t,e,r,i){Nv(t.x,e.x,r.x,i),Nv(t.y,e.y,r.y,i)}function z2(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const $2={duration:.45,ease:[.4,0,.1,1]},Ov=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),jv=Ov("applewebkit/")&&!Ov("chrome/")?Math.round:Ut;function Dv(t){t.min=jv(t.min),t.max=jv(t.max)}function W2(t){Dv(t.x),Dv(t.y)}function i1(t,e,r){return t==="position"||t==="preserve-aspect"&&!KN(Tv(e),Tv(r),.2)}function q2(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const H2=s1({attachResizeListener:(t,e)=>Eo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pd={current:void 0},o1=s1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!pd.current){const t=new H2({});t.mount(window),t.setOptions({layoutScroll:!0}),pd.current=t}return pd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),K2={pan:{Feature:u2},drag:{Feature:l2,ProjectionNode:o1,MeasureLayout:Jx}};function Lv(t,e,r){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,l=i[a];l&&Ue.postRender(()=>l(e,Vo(e)))}class Q2 extends Rr{mount(){const{current:e}=this.node;e&&(this.unmount=KA(e,r=>(Lv(this.node,r,"Start"),i=>Lv(this.node,i,"End"))))}unmount(){}}class G2 extends Rr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Io(Eo(this.node.current,"focus",()=>this.onFocus()),Eo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mv(t,e,r){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),l=i[a];l&&Ue.postRender(()=>l(e,Vo(e)))}class Y2 extends Rr{mount(){const{current:e}=this.node;e&&(this.unmount=XA(e,r=>(Mv(this.node,r,"Start"),(i,{success:a})=>Mv(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const of=new WeakMap,md=new WeakMap,X2=t=>{const e=of.get(t.target);e&&e(t)},J2=t=>{t.forEach(X2)};function Z2({root:t,...e}){const r=t||document;md.has(r)||md.set(r,{});const i=md.get(r),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(J2,{root:t,...e})),i[a]}function eO(t,e,r){const i=Z2(e);return of.set(t,r),i.observe(t),()=>{of.delete(t),i.unobserve(t)}}const tO={some:0,all:1};
vendor: 4,981 bytes, line 172
172class nO extends Rr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:l}=e,c={root:r?r.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:tO[a]},d=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=m?g:y;w&&w(h)};return eO(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(rO(e,r))&&this.startObserver()}unmount(){}}function rO({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const sO={inView:{Feature:nO},tap:{Feature:Y2},focus:{Feature:G2},hover:{Feature:Q2}},iO={layout:{ProjectionNode:o1,MeasureLayout:Jx}},af={current:null},a1={current:!1};function oO(){if(a1.current=!0,!!jf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>af.current=t.matches;t.addListener(e),e()}else af.current=!1}const aO=[...Ox,wt,Pr],lO=t=>aO.find(Nx(t)),Fv=new WeakMap;function uO(t,e,r){for(const i in e){const a=e[i],l=r[i];if(St(a))t.addValue(i,a);else if(St(l))t.addValue(i,bo(a,{owner:t}));else if(l!==a)if(t.hasValue(i)){const c=t.getValue(i);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=t.getStaticValue(i);t.addValue(i,bo(c!==void 0?c:a,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Iv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cO{scrapeMotionValuesFromProps(e,r,i){return{}}constructor({parent:e,props:r,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oh,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 T=En.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Ue.render(this.render,!1,!0))};const{latestValues:h,renderState:m,onUpdate:g}=c;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=r.initial?{...h}:{},this.renderState=m,this.parent=e,this.props=r,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Wl(r),this.isVariantNode=Bw(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...w}=this.scrapeMotionValuesFromProps(r,{},this);for(const T in w){const k=w[T];h[T]!==void 0&&St(k)&&k.set(h[T],!1)}}mount(e){this.current=e,Fv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),a1.current||oO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:af.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Fv.delete(this.current),this.projection&&this.projection.unmount(),_r(this.notifyUpdate),_r(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=hs.has(e),a=r.on("change",d=>{this.latestValues[e]=d,this.props.onUpdate&&Ue.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),l=r.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{a(),l(),c&&c(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ai){const r=ai[e];if(!r)continue;const{isEnabled:i,Feature:a}=r;if(!this.features[e]&&a&&i(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];
vendor: 6,091 bytes, line 172
172l.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):Xe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<Iv.length;i++){const a=Iv[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=e[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=uO(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){const i=this.values.get(e);r!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&r!==void 0&&(i=bo(r===null?void 0:r,{owner:this}),this.addValue(e,i)),i}readValue(e,r){var i;let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(Ax(a)||xx(a))?a=parseFloat(a):!lO(a)&&Pr.test(r)&&(a=Cx(e,r)),this.setBaseTarget(e,St(a)?a.get():a)),St(a)?a.get():a}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const c=Bf(this.props,i,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);c&&(a=c[e])}if(i&&a!==void 0)return a;const l=this.getBaseTargetFromProps(this.props,e);return l!==void 0&&!St(l)?l:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new eh),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class l1 extends cO{constructor(){super(...arguments),this.KeyframeResolver=jx}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:i}){delete r[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;St(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function dO(t){return window.getComputedStyle(t)}class fO extends l1{constructor(){super(...arguments),this.type="html",this.renderInstance=Gw}readValueFromInstance(e,r){if(hs.has(r)){const i=ih(r);return i&&i.default||0}else{const i=dO(e),a=(Hw(r)?i.getPropertyValue(r):i[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:r}){return Yx(e,r)}build(e,r,i){$f(e,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,r,i){return Kf(e,r,i)}}class hO extends l1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(hs.has(r)){const i=ih(r);return i&&i.default||0}return r=Yw.has(r)?r:Ff(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,i){return Zw(e,r,i)}build(e,r,i){Wf(e,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,i,a){Xw(e,r,i,a)}mount(e){this.isSVGTag=Hf(e.tagName),super.mount(e)}}const pO=(t,e)=>Vf(t)?new hO(e):new fO(e,{allowProjection:t!==j.Fragment}),mO=BA({...IN,...sO,...K2,...iO},pO),Ie=tA(mO);function u1({variant:t="default"}){const e="https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/",r="Check out this gripping military thriller: Article Five - A World War Three Novel",i=()=>{const d=`https://twitter.com/intent/tweet?text=${encodeURIComponent(r)}&url=${encodeURIComponent(e)}`;window.open(d,"_blank","width=600,height=400")},a=()=>{const d=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`;window.open(d,"_blank","width=600,height=400")},l=()=>{window.open("https://www.goodreads.com/search?q=Article+Five+J.D.+Duncan","_blank")},c=()=>{window.open("https://x.com/johnsbookclub1?s=11","_blank")};return t==="compact"?x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("span",{className:"text-sm text-gray-400 flex items-center gap-2",children:[x.jsx(yg,{className:"w-4 h-4"}),"Share:"]}),x.jsx("button",{onClick:c,className:"text-gray-400 hover:text-white transition-colors font-bold text-sm","aria-label":"Follow on X",title:"Follow @JDDuncanOfficial on X",children:"ð"}),x.jsx("button",{onClick:i,className:"text-gray-400 hover:text-blue-400 transition-colors","aria-label":"Share on Twitter",children:x.jsx(vg,{className:"w-5 h-5"})}),x.jsx("button",{onClick:a,className:"text-gray-400 hover:text-blue-600 transition-colors","aria-label":"Share on Facebook",children:x.jsx(gg,{className:"w-5 h-5"})}),x.jsx("button",{onClick:l,className:"text-gray-400 hover:text-amber-600 transition-colors font-bold text-lg","aria-label":"Share on Goodreads",children:"G"})]}):x.jsxs(Ie.div,{initial:{opacity:0,y:20}
172,animate:{opacity:1,y:0},transition:{delay:1.4},className:"flex flex-col sm:flex-row items-center gap-4",children:[x.jsxs("span",{className:"text-gray-400 flex items-center gap-2",children:[x.jsx(yg,{className:"w-4 h-4"}),"Share this book:"]}),x.jsxs("div",{className:"flex gap-3 flex-wrap justify-center sm:justify-start",children:[x.jsxs(Er,{variant:"outline",size:"sm",onClick:c,className:"border-white text-white bg-white/10 hover:bg-white hover:text-slate-900 transition-all",children:[x.jsx("span",{className:"font-bold mr-2",children:"ð"}),"Follow @JDDuncanOfficial"]}),x.jsxs(Er,{variant:"outline",size:"sm",onClick:i,className:"border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white transition-all",children:[x.jsx(vg,{className:"w-4 h-4 mr-2"}),"Share"]}),x.jsxs(Er,{variant:"outline",size:"sm",onClick:a,className:"border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-white transition-all",children:[x.jsx(gg,{className:"w-4 h-4 mr-2"}),"Facebook"]}),x.jsxs(Er,{variant:"outline",size:"sm",onClick:l,className:"border-amber-600 text-amber-600 hover:bg-amber-600 hover:text-white transition-all",children:[x.jsx("span",{className:"font-bold mr-2",children:"G"}),"Goodreads"]})]})]})}function gO(){return x.jsxs("section",{className:"relative min-h-screen bg-gradient-to-br from-slate-900 via-blue-900 to-slate-800 overflow-hidden",children:[x.jsx("div",{className:"absolute inset-0 bg-black/20"}),x.jsxs("div",{className:"absolute inset-0",children:[x.jsx("div",{className:"absolute top-20 left-10 w-72 h-72 bg-red-600/10 rounded-full blur-3xl animate-pulse"}),x.jsx("div",{className:"absolute bottom-20 right-10 w-96 h-96 bg-blue-600/10 rounded-full blur-3xl animate-pulse delay-1000"})]}),x.jsx("div",{className:"relative z-10 container mx-auto px-4 h-screen flex items-center",children:x.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center w-full",children:[x.jsxs(Ie.div,{className:"text-center lg:text-left space-y-8",initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},children:[x.jsxs("div",{className:"space-y-4",children:[x.jsx(Ie.p,{className:"text-red-400 font-medium tracking-wider uppercase text-sm",initial:{opacity:0}
172,animate:{opacity:1},transition:{delay:.3},children:"New Military Thriller"}),x.jsxs(Ie.h1,{className:"text-4xl md:text-6xl lg:text-7xl font-bold text-white leading-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:["Article",x.jsx("span",{className:"block text-red-400",children:"Five"})]}),x.jsx(Ie.p,{className:"text-xl md:text-2xl text-gray-300 font-light",initial:{opacity:0},animate:{opacity:1},transition:{delay:.6},children:"A World War Three Novel"})]}),x.jsx(Ie.p,{className:"text-gray-400 text-lg max-w-2xl leading-relaxed",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:"When global tensions reach a breaking point, Article Five of NATO's founding treaty becomes humanity's last hopeâor its final undoing."}),x.jsx(Ie.div,{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},children:x.jsxs(Er,{size:"lg",className:"bg-red-600 hover:bg-red-700 text-white px-8 py-4 text-lg font-semibold transition-all duration-300 transform hover:scale-105",onClick:()=>window.open("https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/","_blank"),children:[x.jsx(ff,{className:"w-5 h-5 mr-2"}),"Read on Kindle"]})}),x.jsxs(Ie.div,{className:"flex items-center gap-2 justify-center lg:justify-start",initial:{opacity:0}
172,animate:{opacity:1},transition:{delay:1.2},children:[x.jsx("div",{className:"flex",children:[...Array(5)].map((t,e)=>x.jsx(hf,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},e))}),x.jsx("span",{className:"text-gray-400",children:"Available now on Amazon Kindle"})]}),x.jsx("div",{className:"flex justify-center lg:justify-start",children:x.jsx(u1,{})})]}),x.jsx(Ie.div,{className:"flex justify-center lg:justify-end",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2},children:x.jsxs("div",{className:"relative group",children:[x.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/79ea074bb_ArticleFiveEbookCover.png",alt:"Article Five Book Cover by J.D. Duncan",className:"max-w-full h-auto max-h-[500px] md:max-h-[600px] object-contain rounded-lg shadow-2xl shadow-black/50 transform group-hover:scale-105 transition-transform duration-500"}),x.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-red-600/20 to-transparent rounded-lg blur-xl transform scale-110 -z-10"})]})})]})})]})}function yO(){return x.jsx("section",{id:"book-details",className:"py-20 bg-white",children:x.jsx("div",{className:"container mx-auto px-4",children:x.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[x.jsxs(Ie.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.8},viewport:{once:!0},children:[x.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-8",children:["When Diplomacy Fails,",x.jsx("span",{className:"text-red-600 block",children:"War Begins"})]}),x.jsxs("div",{className:"space-y-6 text-gray-600 text-lg leading-relaxed",children:[x.jsx("p",{children:"In a world balanced on the edge of destruction, a single incident triggers the invocation of NATO's Article Fiveâthe clause that binds allies to collective defense. What follows is a gripping tale of modern warfare, political intrigue, and human resilience."}),x.jsxs("p",{children:["From the corridors of power in Washington and Moscow to the battlefields of Eastern Europe, ",x.jsx("strong",{children:"Article Five"})," explores the terrifying reality of global conflict in the 21st century."]}),x.jsx("p",{children:"This isn't just another war novelâit's a chilling glimpse into a future we hope never comes to pass, told through the eyes of those who must navigate the unthinkable."})]})]}),x.jsx(Ie.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.8},viewport:{once:!0},className:"flex justify-center",children:x.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/79ea074bb_ArticleFiveEbookCover.png",alt:"Article Five Book Cover",className:"max-h-[500px] object-contain rounded-xl shadow-2xl"})})]})})})}function vO(){return x.jsx("section",{className:"py-20 bg-slate-900 text-white",children:x.jsx("div",{className:"container mx-auto px-4",children:x.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[x.jsx(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},children:x.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-12",children:["About the ",x.jsx("span",{className:"text-red-400",children:"Author"})]})}),x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},viewport:{once:!0},className:"grid md:grid-cols-3 gap-12 items-center",children:[x.jsxs("div",{className:"md:col-span-1 flex flex-col items-center gap-8",children:[x.jsx("div",{className:"w-48 h-48 mx-auto rounded-full overflow-hidden shadow-2xl",children:x.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/dc3e30893_JohnDuncan1.png",alt:"J.D. Duncan",className:"w-full h-full object-cover"})}),x.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/68d6867ae4f27171bb5d1819/daed91610_BeigeAestheticQuoteInstagramPost-32.jpg",alt:"Open Book Awards Winner",className:"w-48 h-auto rounded-lg shadow-lg"})]}),x.jsxs("div",{className:"md:col-span-2 text-left space-y-6",children:[x.jsx("h3",{className:"text-3xl font-bold text-white mb-4",children:"J.D. Duncan"}),x.jsx("p",{className:"text-xl text-gray-300 leading-relaxed",children:"Drawing from extensive research into military history and contemporary geopolitics, this debut novel represents years of careful study into the complexities of modern warfare and international relations."}),x.jsxs("p",{className:"text-lg text-gray-400 leading-relaxed",children:[x.jsx("strong",{children:"Article Five"})," emerged from a deep fascination with the delicate balance of global power and the human stories that unfold when that balance is shattered. J.D. Duncan brings a unique perspective to military fiction, combining technical authenticity with compelling character development."]}),x.jsx("p",{className:"text-lg text-gray-400 leading-relaxed",children:"When not writing, they can be found researching historical conflicts, studying international law, and exploring the ever-evolving landscape of 21st-century geopolitics."}),x.jsxs("div",{className:"pt-4",children:[x.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Writing Philosophy"}),x.jsx("p",{className:"text-gray-400 italic",children:`"The best military fiction doesn't glorify warâit reveals the human cost of conflict and the courage required to prevent it."`})]})]})]})]})})})}function wO(){const t=[{text:"After each chapter of Article Five, you'll be checking your phone, almost expecting a push alert that the fiction has just made the news.",author:"American Book Blogger",rating:5},{text:"Brilliantly written & a true to life timeline. This is a book that you will want to read, but hope will never happen.",author:"Geopolitics Enthusiast",rating:5},{text:"A gripping, realistic war thriller thatâs hard to put down. Well-written and highly recommended.",author:"Kindle
172Customer",rating:5}];return x.jsx("section",{className:"py-20 bg-gray-100",children:x.jsxs("div",{className:"container mx-auto px-4",children:[x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[x.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:["What Readers Are ",x.jsx("span",{className:"text-red-600",children:"Saying"})]}),x.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Early readers are already captivated by this compelling military thriller"})]}),x.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:t.map((e,r)=>x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:r*.1},viewport:{once:!0},className:"bg-white p-8 rounded-2xl shadow-lg hover:shadow-xl transition-shadow duration-300",children:[x.jsxs("div",{className:"mb-6",children:[x.jsx(Qb,{className:"w-8 h-8 text-red-600 mb-4"}),x.jsxs("p",{className:"text-gray-700 leading-relaxed text-lg italic",children:['"',e.text,'"']})]}),x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("div",{children:x.jsx("p",{className:"font-semibold text-slate-900",children:e.author})}),x.jsx("div",{className:"flex",children:[...Array(e.rating)].map((i,a)=>x.jsx(hf,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},a))})]})]},r))}),x.jsx(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mt-12",children:x.jsx("p",{className:"text-gray-600 text-lg",children:"Join thousands of readers discovering this thrilling new voice in military fiction"})})]})})}const xO=[{source:"Self Publishing Review",rating:5,date:"May 2026",url:"https://www.selfpublishingreview.com/2026/05/article-five-by-j-d-duncan/",excerpt:"A savagely timely thriller that hits close to home, Article Five: A World War Three Novel takes readers into the crossfire of geopolitical chaos when Russia invades Estonia, the latest step on a slippery slope to global war.",fullReview:`A savagely timely thriller that hits close to home, Article Five: A World War Three Novel by J.D. Duncan takes readers into the crossfire of geopolitical chaos when Russia invades Estonia, the latest step on a slippery slope to global war. 173 174From covert ops, false flag attacks, and terror in the heart of London to exhaustive scenes of breathless battle and the shadowy back rooms where life and death are decided, this novel takes searing aim at the mechanisms of power and empire. 175 176Marked by intensive research, a keen ear for social critique, and a dire warning about the interconnectedness of our modern world, this gritty military drama is a relentless ride through the unseen sides of crisis.`},{source:"Literary Titan",rating:4,logo:"https://literarytitan.com/wp-content/uploads/2017/05/4star.png",date:"February 15, 2026",url:"https://literarytitan.com/2026/02/15/article-five-a-world-war-three-novel/",excerpt:"Article Five is a geopolitical military thriller that kicks off with coordinated attacks and covert sabotage that shove NATO toward its most frightening promise: collective defense.",fullReview:`Article Five, by J.D. Duncan, is a geopolitical military thriller that kicks off with coordinated attacks and covert sabotage that shove NATO toward its most frightening promise: collective defense. We bounce between the pressure-cooker halls of London, field operations chasing a sleeper agent tied to bombings near St Paul's tube station, and the widening war footprint stretching to places like Estonia and Moscow. 177 178What I liked most is how the book moves. Duncan uses tight point-of-view hops and quick location stamps to keep you aware of the board while still letting you feel the sweat in the room. Powell's sections especially land because they aren't written like a superhero fantasy. They feel like a person trying to sound steady while everything is shaking. 179 180The action scenes are crisp without turning into a tech brochure. There's a memorable early sequence with a special forces team taking down a Russian helicopter to grab its electronics, and you can almost smell the burning fuel and wet forest in the aftermath. 181 182I also appreciated the author's willingness to sit in the moral grey. The spy stuff isn't framed as glamorous. It's transactional, paranoid, and sometimes petty in a relatable way. Wars are not only fought with tanks and missiles, but with narratives, timing, and information control. 183
184I'd recommend Article Five to readers who like their thrillers political, modern, and a little unsettling â the kind that makes you put the book down for a second and think. If your happy place is the Tom Clancy and Brad Thor lane, but you want something with a more current-media pulse, you'll probably have a good time here.`}];function SO(){const[t,e]=j.useState({}),r=i=>{e(a=>({...a,[i]:!a[i]}))};return x.jsx("section",{className:"py-20 bg-slate-800 text-white",children:x.jsx("div",{className:"container mx-auto px-4",children:x.jsxs("div",{className:"max-w-4xl mx-auto",children:[x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-14",children:[x.jsx("p",{className:"text-red-400 font-medium tracking-wider uppercase text-sm mb-3",children:"Critical Acclaim"}),x.jsxs("h2",{className:"text-4xl md:text-5xl font-bold",children:["Professional ",x.jsx("span",{className:"text-red-400",children:"Reviews"})]})]}),x.jsx("div",{className:"space-y-8",children:xO.map((i,a)=>x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:a*.1},viewport:{once:!0},className:"bg-slate-700/50 border border-slate-600 rounded-2xl p-8",children:[x.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-6",children:[x.jsxs("div",{children:[x.jsx("h3",{className:"text-2xl font-bold text-white",children:i.source}),x.jsx("p",{className:"text-gray-400 text-sm mt-1",children:i.date})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[[...Array(5)].map((l,c)=>x.jsx(hf,{className:`w-6 h-6 ${c<i.rating?"fill-yellow-400 text-yellow-400":"text-gray-600"}`},c)),x.jsxs("span",{className:"text-gray-400 ml-1 text-sm",children:[i.rating,"/5"]})]})]}),x.jsx("div",{className:"text-gray-300 leading-relaxed space-y-4",children:t[a]?i.fullReview.split(` 185 186`).map((l,c)=>x.jsx("p",{children:l},c)):x.jsxs("p",{className:"italic text-lg",children:['"',i.excerpt,'"']})}),x.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[x.jsx("button",{onClick:()=>r(a),className:"flex items-center gap-2 text-red-400 hover:text-red-300 transition-colors text-sm font-medium",children:t[a]?x.jsxs(x.Fragment,{children:[x.jsx(jb,{className:"w-4 h-4"})," Show less"]}):x.jsxs(x.Fragment,{children:[x.jsx(Nb,{className:"w-4 h-4"})," Read full review"]})}),x.jsxs("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-gray-400 hover:text-white transition-colors text-sm",children:[x.jsx(ff,{className:"w-4 h-4"}),"View on ",i.source]})]})]},a))})]})})})}const lf=j.forwardRef(({className:t,type:e,...r},i)=>x.jsx("input",{type:e,className:$n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:i,...r}));lf.displayName="Input";const c1=j.forwardRef(({className:t,...e},r)=>x.jsx("textarea",{className:$n("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...e}));c1.displayName="Textarea";var bO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kO=bO.reduce((t,e)=>{const r=jw(`Primitive.${e}`),i=j.forwardRef((a,l)=>{const{asChild:c,...d}=a,h=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{}),EO="Label",d1=j.forwardRef((t,e)=>x.jsx(kO.label,{...t,ref:e,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=t.onMouseDown)==null||a.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));d1.displayName=EO;var f1=d1;const TO=df("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vl=j.forwardRef(({className:t,...e},r)=>x.jsx(f1,{ref:r,className:$n(TO(),t),...e}));vl.displayName=f1.displayName;var gd={};const CO=cb(bP);var Vv;function _O(){if(Vv)return gd;Vv=1;const{createClient:t}=CO;return gd.base44=t({appId:"68d6867ae4f27171bb5d1819",serverUrl:"https://base44.app"}),gd}var yd,Bv;function PO(){if(Bv)return yd;Bv=1;const{base44:t}=_O();return yd=new Proxy({},{get:(e,r)=>(...i)=>t.integrations.Core[r](...i)}),yd}var AO=PO();function RO(){const[t,e]=j.useState(""),[r,i]=j.useState(""),[a,l]=j.useState(""),[c,d]=j.useState("idle"),[h,m]=j.useState(null),g=async y=>{if(y.preventDefault(),!t||!r||!a){m("Please fill in all fields."),d("error");return}d("loading"),m(null);try{await AO.SendEmail({to:"[email protected]",from_name:t,subject:"New Message from jdduncan-author.com",body:` 187 You have received a new message from your author website contact form. 188 189 Name: ${t} 190 Reply-to Email: ${r} 191 192 Message: 193 ${a} 194 `}),d("success"),e(""),i(""),l("")}catch(w){console.error("Failed to send email:",w),m("Something went wrong. Please try again later."),d("error")}};return x.jsx("section",{id:"contact",className:"py-20 bg-white",children:x.jsx("div",{className:"container mx-auto px-4",children:x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"max-w-3xl mx-auto",children:[x.jsxs("div",{className:"text-center mb-12",children:[x.jsxs("h2",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4",children:["Get In ",x.jsx("span",{className:"text-red-600",children:"Touch"})]}),x.jsx("p",{className:"text-xl text-gray-600",children:"Have a question or a comment? Send a message directly to the author."})]}),x.jsxs("form",{onSubmit:g,className:"space-y-6 bg-slate-50 p-8 rounded-xl shadow-md",children:[x.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(vl,{htmlFor:"name",className:"text-slate-800",children:"Your Name"}),x.jsx(lf,{id:"name",type:"text",placeholder:"John Doe",value:t,onChange:y=>e(y.target.value),disabled:c==="loading",className:"bg-white"})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(vl,{htmlFor:"email",className:"text-slate-800",children:"Your Email"}),x.jsx(lf,{id:"email",type:"email",placeholder:"[email protected]",value:r,onChange:y=>i(y.target.value),disabled:c==="loading",className:"bg-white"})]})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(vl,{htmlFor:"message",className:"text-slate-800",children:"Your Message"}),x.jsx(c1,{id:"message",placeholder:"Your question or comment...",value:a,onChange:y=>l(y.target.value),rows:6,disabled:c==="loading",className:"bg-white"})]}),x.jsx("div",{children:x.jsx(Er,{type:"submit",className:"w-full bg-red-600 hover:bg-red-700 text-lg py-6",disabled:c==="loading",children:c==="loading"?x.jsxs(x.Fragment,{children:[x.jsx(s0,{className:"mr-2 h-5 w-5 animate-spin"}),"Sending..."]}):x.jsxs(x.Fragment,{children:[x.jsx(Hb,{className:"mr-2 h-5 w-5"}),"Send Message"]})})})]}),c==="success"&&x.jsxs(Ie.div,{initial:{opacity:0,y:10}
194,animate:{opacity:1,y:0},className:"mt-6 p-4 bg-green-100 border border-green-200 text-green-800 rounded-lg flex items-center gap-3",children:[x.jsx(Lb,{className:"h-5 w-5"}),x.jsx("p",{children:"Thank you for your message! It has been sent successfully."})]}),c==="error"&&h&&x.jsxs(Ie.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"mt-6 p-4 bg-red-100 border border-red-200 text-red-800 rounded-lg flex items-center gap-3",children:[x.jsx(Jb,{className:"h-5 w-5"}),x.jsx("p",{children:h})]})]})})})}function NO(){const{data:t,isLoading:e}=M0({queryKey:["visits"],queryFn:()=>Xr.entities.Visit.list(),refetchOnWindowFocus:!1,staleTime:3e5}),r=(t==null?void 0:t.length)||0;return x.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500",children:[x.jsx(zb,{className:"w-4 h-4"}),e?x.jsx(s0,{className:"w-4 h-4 animate-spin"}):x.jsx("span",{className:"font-medium",children:r}),x.jsx("span",{children:"visits"})]})}function OO(){return x.jsxs("section",{className:"py-20 bg-gradient-to-br from-slate-900 via-red-900 to-slate-900 text-white relative overflow-hidden",children:[x.jsxs("div",{className:"absolute inset-0",children:[x.jsx("div",{className:"absolute top-20 left-20 w-64 h-64 bg-red-600/20 rounded-full blur-3xl"}),x.jsx("div",{className:"absolute bottom-20 right-20 w-96 h-96 bg-blue-600/10 rounded-full blur-3xl"})]}),x.jsx("div",{className:"container mx-auto px-4 relative z-10",children:x.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},children:[x.jsxs("h2",{className:"text-4xl md:text-6xl font-bold mb-6",children:["Ready for the",x.jsx("span",{className:"block text-red-400",children:"Ultimate Thriller?"})]}),x.jsx("p",{className:"text-xl md:text-2xl text-gray-300 mb-12 max-w-3xl mx-auto leading-relaxed",children:"Don't waitâdive into Article Five today and experience the tension, strategy, and human drama of global conflict like never before."})]}),x.jsxs(Ie.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},viewport:{once:!0},className:"flex flex-col sm:flex-row gap-6 justify-center items-center mb-12",children:[x.jsxs(Er,{size:"lg",className:"bg-red-600 hover:bg-red-700 text-white px-10 py-6 text-xl font-semibold transition-all duration-300 transform hover:scale-105 shadow-2xl",onClick:()=>window.open("https://www.amazon.co.uk/Five-World-War-Three-Novel-ebook/dp/B0FPCZ6V8B/","_blank"),children:[x.jsx(ff,{className:"w-6 h-6 mr-3"}),"Get it on Kindle Now"]}),x.jsxs("div",{className:"flex items-center gap-3 text-gray-400",children:[x.jsx(Vb,{className:"w-5 h-5"}),x.jsx("span",{children:"Instant download"}),x.jsx(Fb,{className:"w-5 h-5 ml-4"}),x.jsx("span",{children:"Read in minutes"})]})]}),x.jsx(Ie.div,{initial:{opacity:0}
194,whileInView:{opacity:1},transition:{duration:.8,delay:.3},viewport:{once:!0},className:"mb-12",children:x.jsx("div",{className:"flex justify-center",children:x.jsx(u1,{variant:"compact"})})}),x.jsxs(Ie.div,{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.8,delay:.4},viewport:{once:!0},className:"grid sm:grid-cols-3 gap-8 text-center",children:[x.jsx("div",{className:"p-6",children:x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"text-2xl font-bold text-red-400",children:"Kindle £1.47"}),x.jsx("div",{className:"text-2xl font-bold text-red-400",children:"Paperback £9.99"})]})}),x.jsxs("div",{className:"p-6",children:[x.jsx("div",{className:"text-3xl font-bold text-red-400 mb-2",children:"300+"}),x.jsx("p",{className:"text-gray-400",children:"Pages of suspense"})]}),x.jsxs("div",{className:"p-6",children:[x.jsx("div",{className:"text-3xl font-bold text-red-400 mb-2",children:"24/7"}),x.jsx("p",{className:"text-gray-400",children:"Available worldwide"})]})]})]})}),x.jsx(Ie.div,{initial:{opacity:0}
194,whileInView:{opacity:1},transition:{duration:.8,delay:.6},viewport:{once:!0},className:"mt-16 pt-8 border-t border-gray-700 text-center text-gray-400",children:x.jsxs("div",{className:"flex flex-col sm:flex-row justify-center items-center gap-4 sm:gap-8",children:[x.jsx("p",{children:"© 2025 Article Five - A World War Three Novel. Available exclusively on Amazon Kindle."}),x.jsx(NO,{})]})})]})}function Uv(){return j.useEffect(()=>{(async()=>{try{await Xr.entities.Visit.create({page:"Home"})}catch(e){console.error("Failed to log visit:",e)}})()},[]),x.jsxs(x.Fragment,{children:[x.jsx(DP,{}),x.jsxs("div",{className:"min-h-screen bg-gray-50",children:[x.jsx(gO,{}),x.jsx(yO,{}),x.jsx(vO,{}),x.jsx(SO,{}),x.jsx(wO,{}),x.jsx(RO,{}),x.jsx(OO,{})]})]})}const jO=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:e,authError:r,navigateToLogin:i}=OP();if(e||t)return x.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:x.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return x.jsx(jP,{});if(r.type==="auth_required")return i(),null}return x.jsxs(mT,{children:[x.jsx(al,{path:"/",element:x.jsx(Uv,{})}),x.jsx(al,{path:"/Home",element:x.jsx(Uv,{})}),x.jsx(al,{path:"*",element:x.jsx(RP,{})})]})};function DO(){return x.jsx(NP,{children:x.jsxs(wE,{client:NE,children:[x.jsx(vT,{children:x.jsx(jO,{})}),x.jsx(Kk,{})]})})}xb.createRoot(document.getElementById("root")).render(x.jsx(DO,{}));
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.