vendor: 6,060 bytes, lines 1-17
1(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function r(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(f){if(f.ep)return;f.ep=!0;const h=r(f);fetch(f.href,h)}})();function Oy(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var zf={exports:{}},Gr={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and 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 $x;function Ry(){if($x)return Gr;$x=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,f,h){var m=null;if(h!==void 0&&(m=""+h),f.key!==void 0&&(m=""+f.key),"key"in f){h={};for(var x in f)x!=="key"&&(h[x]=f[x])}else h=f;return f=h.ref,{$$typeof:s,type:o,key:m,ref:f!==void 0?f:null,props:h}}return Gr.Fragment=l,Gr.jsx=r,Gr.jsxs=r,Gr}var Qx;function zy(){return Qx||(Qx=1,zf.exports=Ry()),zf.exports}var a=zy(),Ff={exports:{}},Re={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and 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 Zx;function Fy(){if(Zx)return Re;Zx=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),N=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=N&&T[N]||T["@@iterator"],typeof T=="function"?T:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,P={};function H(T,B,oe){this.props=T,this.context=B,this.refs=P,this.updater=oe||S}H.prototype.isReactComponent={},H.prototype.setState=function(T,B){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,B,"setState")},H.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=H.prototype;function C(T,B,oe){this.props=T,this.context=B,this.refs=P,this.updater=oe||S}var q=C.prototype=new _;q.constructor=C,F(q,H.prototype),q.isPureReactComponent=!0;var te=Array.isArray;function ee(){}var Y={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function W(T,B,oe){var J=oe.ref;return{$$typeof:s,type:T,key:B,ref:J!==void 0?J:null,props:oe}}function ne(T,B){return W(T.type,B,T.props)}function ve(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function de(T){var B={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(oe){return B[oe]})}var Me=/\/+/g;function ue(T,B){return typeof T=="object"&&T!==null&&T.key!=null?de(""+T.key):B.toString(36)}function Ne(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ee,ee):(T.status="pending",T.then(function(B){T.status==="pending"&&(T.status="fulfilled",T.value=B)},function(B){T.status==="pending"&&(T.status="rejected",T.reason=B)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function O(T,B,oe,J,ce){var fe=typeof T;(fe==="undefined"||fe==="boolean")&&(T=null);var we=!1;if(T===null)we=!0;else switch(fe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(T.$$typeof){case s:case l:we=!0;break;case y:return we=T._init,O(we(T._payload),B,oe,J,ce)}}if(we)return ce=ce(T),we=J===""?"."+ue(T,0):J,te(ce)?(oe="",we!=null&&(oe=we.replace(Me,"$&/")+"/"),O(ce,B,oe,"",function(It){return It})):ce!=null&&(ve(ce)&&(ce=ne(ce,oe+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Me,"$&/")+"/")+we)),B.push(ce)),1;we=0;var qe=J===""?".":J+":";if(te(T))for(var Ie=0;Ie<T.length;Ie++)J=T[Ie],fe=qe+ue(J,Ie),we+=O(J,B,oe,fe,ce);else if(Ie=w(T),typeof Ie=="function")for(T=Ie.call(T),Ie=0;!(J=T.next()).done;)J=J.value,fe=qe+ue(J,Ie++),we+=O(J,B,oe,fe,ce);else if(fe==="object"){if(typeof T.then=="function")return O(Ne(T),B,oe,J,ce);throw B=String(T),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return we}function Z(T,B,oe){if(T==null)return T;var J=[],ce=0;return O(T,J,"","",function(fe){return B.call(oe,fe,ce++)}),J}function se(T){if(T._status===-1){var B=T._result;B=B(),B.then(function(oe){(T._status===0||T._status===-1)&&(T._status=1,T._result=oe)},function(oe){(T._status===0||T._status===-1)&&(T._status=2,T._result=oe)}),T._status===-1&&(T._status=0,T._result=B)}if(T._status===1)return T._result.default;throw T._result}var me=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)}
vendor: 13,053 bytes, lines 17-41
17,ye={map:Z,forEach:function(T,B,oe){Z(T,function(){B.apply(this,arguments)},oe)},count:function(T){var B=0;return Z(T,function(){B++}),B},toArray:function(T){return Z(T,function(B){return B})||[]},only:function(T){if(!ve(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Re.Activity=j,Re.Children=ye,Re.Component=H,Re.Fragment=r,Re.Profiler=f,Re.PureComponent=C,Re.StrictMode=o,Re.Suspense=g,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,Re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},Re.cache=function(T){return function(){return T.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(T,B,oe){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=F({},T.props),ce=T.key;if(B!=null)for(fe in B.key!==void 0&&(ce=""+B.key),B)!R.call(B,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&B.ref===void 0||(J[fe]=B[fe]);var fe=arguments.length-2;if(fe===1)J.children=oe;else if(1<fe){for(var we=Array(fe),qe=0;qe<fe;qe++)we[qe]=arguments[qe+2];J.children=we}return W(T.type,ce,J)},Re.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},Re.createElement=function(T,B,oe){var J,ce={},fe=null;if(B!=null)for(J in B.key!==void 0&&(fe=""+B.key),B)R.call(B,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ce[J]=B[J]);var we=arguments.length-2;if(we===1)ce.children=oe;else if(1<we){for(var qe=Array(we),Ie=0;Ie<we;Ie++)qe[Ie]=arguments[Ie+2];ce.children=qe}if(T&&T.defaultProps)for(J in we=T.defaultProps,we)ce[J]===void 0&&(ce[J]=we[J]);return W(T,fe,ce)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(T){return{$$typeof:x,render:T}},Re.isValidElement=ve,Re.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:se}},Re.memo=function(T,B){return{$$typeof:b,type:T,compare:B===void 0?null:B}},Re.startTransition=function(T){var B=Y.T,oe={};Y.T=oe;try{var J=T(),ce=Y.S;ce!==null&&ce(oe,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ee,me)}catch(fe){me(fe)}finally{B!==null&&oe.types!==null&&(B.types=oe.types),Y.T=B}},Re.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},Re.use=function(T){return Y.H.use(T)},Re.useActionState=function(T,B,oe){return Y.H.useActionState(T,B,oe)},Re.useCallback=function(T,B){return Y.H.useCallback(T,B)},Re.useContext=function(T){return Y.H.useContext(T)},Re.useDebugValue=function(){},Re.useDeferredValue=function(T,B){return Y.H.useDeferredValue(T,B)},Re.useEffect=function(T,B){return Y.H.useEffect(T,B)},Re.useEffectEvent=function(T){return Y.H.useEffectEvent(T)},Re.useId=function(){return Y.H.useId()},Re.useImperativeHandle=function(T,B,oe){return Y.H.useImperativeHandle(T,B,oe)},Re.useInsertionEffect=function(T,B){return Y.H.useInsertionEffect(T,B)},Re.useLayoutEffect=function(T,B){return Y.H.useLayoutEffect(T,B)},Re.useMemo=function(T,B){return Y.H.useMemo(T,B)},Re.useOptimistic=function(T,B){return Y.H.useOptimistic(T,B)},Re.useReducer=function(T,B,oe){return Y.H.useReducer(T,B,oe)},Re.useRef=function(T){return Y.H.useRef(T)},Re.useState=function(T){return Y.H.useState(T)},Re.useSyncExternalStore=function(T,B,oe){return Y.H.useSyncExternalStore(T,B,oe)},Re.useTransition=function(){return Y.H.useTransition()},Re.version="19.2.7",Re}var Jx;function Lm(){return Jx||(Jx=1,Ff.exports=Fy()),Ff.exports}var A=Lm();const Uf=Oy(A);var Bf={exports:{}},Kr={},Lf={exports:{}},_f={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and 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 Wx;function Uy(){return Wx||(Wx=1,(function(s){function l(O,Z){var se=O.length;O.push(Z);e:for(;0<se;){var me=se-1>>>1,ye=O[me];if(0<f(ye,Z))O[me]=Z,O[se]=ye,se=me;else break e}}function r(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Z=O[0],se=O.pop();if(se!==Z){O[0]=se;e:for(var me=0,ye=O.length,T=ye>>>1;me<T;){var B=2*(me+1)-1,oe=O[B],J=B+1,ce=O[J];if(0>f(oe,se))J<ye&&0>f(ce,oe)?(O[me]=ce,O[J]=se,me=J):(O[me]=oe,O[B]=se,me=B);else if(J<ye&&0>f(ce,se))O[me]=ce,O[J]=se,me=J;else break e}}return Z}function f(O,Z){var se=O.sortIndex-Z.sortIndex;return se!==0?se:O.id-Z.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var m=Date,x=m.now();s.unstable_now=function(){return m.now()-x}}var g=[],b=[],y=1,j=null,N=3,w=!1,S=!1,F=!1,P=!1,H=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function q(O){for(var Z=r(b);Z!==null;){if(Z.callback===null)o(b);else if(Z.startTime<=O)o(b),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=r(b)}}function te(O){if(F=!1,q(O),!S)if(r(g)!==null)S=!0,ee||(ee=!0,de());else{var Z=r(b);Z!==null&&Ne(te,Z.startTime-O)}}var ee=!1,Y=-1,R=5,W=-1;function ne(){return P?!0:!(s.unstable_now()-W<R)}function ve(){if(P=!1,ee){var O=s.unstable_now();W=O;var Z=!0;try{e:{S=!1,F&&(F=!1,_(Y),Y=-1),w=!0;var se=N;try{t:{for(q(O),j=r(g);j!==null&&!(j.expirationTime>O&&ne());){var me=j.callback;if(typeof me=="function"){j.callback=null,N=j.priorityLevel;var ye=me(j.expirationTime<=O);if(O=s.unstable_now(),typeof ye=="function"){j.callback=ye,q(O),Z=!0;break t}j===r(g)&&o(g),q(O)}else o(g);j=r(g)}if(j!==null)Z=!0;else{var T=r(b);T!==null&&Ne(te,T.startTime-O),Z=!1}}break e}finally{j=null,N=se,w=!1}Z=void 0}}finally{Z?de():ee=!1}}}var de;if(typeof C=="function")de=function(){C(ve)};else if(typeof MessageChannel<"u"){var Me=new MessageChannel,ue=Me.port2;Me.port1.onmessage=ve,de=function(){ue.postMessage(null)}}else de=function(){H(ve,0)};function Ne(O,Z){Y=H(function(){O(s.unstable_now())},Z)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<O?Math.floor(1e3/O):5},s.unstable_getCurrentPriorityLevel=function(){return N},s.unstable_next=function(O){switch(N){case 1:case 2:case 3:var Z=3;break;default:Z=N}var se=N;N=Z;try{return O()}finally{N=se}},s.unstable_requestPaint=function(){P=!0},s.unstable_runWithPriority=function(O,Z){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var se=N;N=O;try{return Z()}finally{N=se}},s.unstable_scheduleCallback=function(O,Z,se){var me=s.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?me+se:me):se=me,O){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=se+ye,O={id:y++,callback:Z,priorityLevel:O,startTime:se,expirationTime:ye,sortIndex:-1},se>me?(O.sortIndex=se,l(b,O),r(g)===null&&O===r(b)&&(F?(_(Y),Y=-1):F=!0,Ne(te,se-me))):(O.sortIndex=ye,l(g,O),S||w||(S=!0,ee||(ee=!0,de()))),O},s.unstable_shouldYield=ne,s.unstable_wrapCallback=function(O){var Z=N;return function(){var se=N;N=Z;try{return O.apply(this,arguments)}finally{N=se}}}})(_f)),_f}var eb;function By(){return eb||(eb=1,Lf.exports=Uy()),Lf.exports}var Vf={exports:{}},qt={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and 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 tb;function Ly(){if(tb)return qt;tb=1;var s=Lm();function l(g){var b="https://react.dev/errors/"+g;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)b+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(g,b,y){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:j==null?null:""+j,children:g,containerInfo:b,implementation:y}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(g,b){if(g==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,qt.createPortal=function(g,b){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(l(299));return h(g,b,null,y)},qt.flushSync=function(g){var b=m.T,y=o.p;try{if(m.T=null,o.p=2,g)return g()}finally{m.T=b,o.p=y,o.d.f()}},qt.preconnect=function(g,b){typeof g=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,o.d.C(g,b))},qt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},qt.preinit=function(g,b){if(typeof g=="string"&&b&&typeof b.as=="string"){var y=b.as,j=x(y,b.crossOrigin),N=typeof b.integrity=="string"?b.integrity:void 0,w=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;y==="style"?o.d.S(g,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:j,integrity:N,fetchPriority:w}):y==="script"&&o.d.X(g,{crossOrigin:j,integrity:N,fetchPriority:w,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},qt.preinitModule=function(g,b){if(typeof g=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var y=x(b.as,b.crossOrigin);o.d.M(g,{crossOrigin:y,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&o.d.M(g)},qt.preload=function(g,b){if(typeof g=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var y=b.as,j=x(y,b.crossOrigin);o.d.L(g,y,{crossOrigin:j,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},qt.preloadModule=function(g,b){if(typeof g=="string")if(b){var y=x(b.as,b.crossOrigin);o.d.m(g,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:y,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else o.d.m(g)},qt.requestFormReset=function(g){o.d.r(g)},qt.unstable_batchedUpdates=function(g,b){return g(b)},qt.useFormState=function(g,b,y){return m.H.useFormState(g,b,y)},qt.useFormStatus=function(){return m.H.useHostTransitionStatus()},qt.version="19.2.7",qt}var ab;function _y(){if(ab)return Vf.exports;ab=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),Vf.exports=Ly(),Vf.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var nb;function Vy(){if(nb)return Kr;nb=1;var s=By(),l=Lm(),r=_y();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(h(e)!==e)throw Error(o(188))}function b(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(i=c.return,i!==null){n=i;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return g(c),e;if(u===i)return g(c),t;u=u.sibling}throw Error(o(188))}if(n.return!==i.return)n=c,i=u;
vendor: 15,895 bytes, lines 41-48
41else{for(var p=!1,v=c.child;v;){if(v===n){p=!0,n=c,i=u;break}if(v===i){p=!0,i=c,n=u;break}v=v.sibling}if(!p){for(v=u.child;v;){if(v===n){p=!0,n=u,i=c;break}if(v===i){p=!0,i=u,n=c;break}v=v.sibling}if(!p)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,N=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),C=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var Me=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case F:return"Fragment";case H:return"Profiler";case P:return"StrictMode";case te:return"Suspense";case ee:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case C:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var Ne=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},me=[],ye=-1;function T(e){return{current:e}}function B(e){0>ye||(e.current=me[ye],me[ye]=null,ye--)}function oe(e,t){ye++,me[ye]=e.current,e.current=t}var J=T(null),ce=T(null),fe=T(null),we=T(null);function qe(e,t){switch(oe(fe,t),oe(ce,e),oe(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gx(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gx(t),e=yx(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(J),oe(J,e)}function Ie(){B(J),B(ce),B(fe)}function It(e){e.memoizedState!==null&&oe(we,e);var t=J.current,n=yx(t,e.type);t!==n&&(oe(ce,e),oe(J,n))}function qa(e){ce.current===e&&(B(J),B(ce)),we.current===e&&(B(we),_r._currentValue=se)}var ze,lt;function Yt(e){if(ze===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",lt=-1<n.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+ze+e+lt}var Ia=!1;function ke(e,t){if(!e||Ia)return"";Ia=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(V){var L=V}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(V){L=V}e.call(Q.prototype)}}else{try{throw Error()}catch(V){L=V}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(V){if(V&&L&&typeof V.stack=="string")return[V.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),p=u[0],v=u[1];if(p&&v){var k=p.split(` 44`),U=v.split(` 45`);for(c=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(i===k.length||c===U.length)for(i=k.length-1,c=U.length-1;1<=i&&0<=c&&k[i]!==U[c];)c--;for(;1<=i&&0<=c;i--,c--)if(k[i]!==U[c]){if(i!==1||c!==1)do if(i--,c--,0>c||k[i]!==U[c]){var I=` 46`+k[i].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=i&&0<=c);break}}}finally{Ia=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Yt(n):""}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return e.child!==t&&t!==null?Yt("Suspense Fallback"):Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return Yt("Activity");default:return""}}function Ya(e){try{var t="",n=null;do t+=Pe(e,n),n=e,e=e.return;while(e);return t}catch(i){return` 47Error generating stack: `+i.message+` 48`+i.stack}}var Xa=Object.prototype.hasOwnProperty,es=s.unstable_scheduleCallback,An=s.unstable_cancelCallback,ol=s.unstable_shouldYield,K=s.unstable_requestPaint,G=s.unstable_now,$=s.unstable_getCurrentPriorityLevel,le=s.unstable_ImmediatePriority,Oe=s.unstable_UserBlockingPriority,st=s.unstable_NormalPriority,Xt=s.unstable_LowPriority,rl=s.unstable_IdlePriority,wo=s.log,pi=s.unstable_setDisableYieldValue,$a=null,St=null;function ma(e){if(typeof wo=="function"&&pi(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode($a,e)}catch{}}var Mt=Math.clz32?Math.clz32:bi,So=Math.log,xi=Math.LN2;function bi(e){return e>>>=0,e===0?32:31-(So(e)/xi|0)|0}var cl=256,gi=262144,$t=4194304;function Ot(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function yi(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var c=0,u=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~u,i!==0?c=Ot(i):(p&=v,p!==0?c=Ot(p):n||(n=v&~e,n!==0&&(c=Ot(n))))):(v=i&~u,v!==0?c=Ot(v):p!==0?c=Ot(p):n||(n=i&~e,n!==0&&(c=Ot(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function Ss(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ul(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function To(){var e=$t;return $t<<=1,($t&62914560)===0&&($t=4194304),e}function vi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uc(e,t,n,i,c,u){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,k=e.expirationTimes,U=e.hiddenUpdates;for(n=p&~n;0<n;){var I=31-Mt(n),Q=1<<I;v[I]=0,k[I]=-1;var L=U[I];if(L!==null)for(U[I]=null,I=0;I<L.length;I++){var V=L[I];V!==null&&(V.lane&=-536870913)}n&=~Q}i!==0&&Nn(e,i,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(p&~t))}function Nn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Mt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function ts(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Mt(n),c=1<<i;c&t|e[i]&t&&(e[i]|=t),n&=~c}}function Co(e,t){var n=t&-t;return n=(n&42)!==0?1:Ee(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ee(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dl(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Px(e.type))}function Eo(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Ta=Math.random().toString(36).slice(2),xt="__reactFiber$"+Ta,Tt="__reactProps$"+Ta,ha="__reactContainer$"+Ta,Ts="__reactEvents$"+Ta,Do="__reactListeners$"+Ta,Mo="__reactHandles$"+Ta,fl="__reactResources$"+Ta,Qa="__reactMarker$"+Ta;function Ai(e){delete e[xt],delete e[Tt],delete e[Ts],delete e[Do],delete e[Mo]}function kn(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sx(e);e!==null;){if(n=e[xt])return n;e=Sx(e)}return t}e=n,n=e.parentNode}return null}function as(e){if(e=e[xt]||e[ha]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Za(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ja(e){var t=e[fl];return t||(t=e[fl]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Qa]=!0}var ml=new Set,hl={};function Wa(e,t){wn(e,t),wn(e+"Capture",t)}function wn(e,t){for(hl[e]=t,e=0;e<t.length;e++)ml.add(t[e])}var Oo=RegExp("^[: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]*$"),pl={},xl={};function Ro(e){return Xa.call(xl,e)?!0:Xa.call(pl,e)?!1:Oo.test(e)?xl[e]=!0:(pl[e]=!0,!1)}function Sn(e,t,n){if(Ro(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ca(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bl(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dc(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(p){n=""+p,u.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ni(e){if(!e._valueTracker){var t=bl(e)?"checked":"value";e._valueTracker=dc(e,t,""+e[t])}}function gl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=bl(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Es(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zo=/[\n"\\]/g;function Ht(e){return e.replace(zo,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ki(e,t,n,i,c,u,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?wi(e,p,Rt(t)):n!=null?wi(e,p,Rt(n)):i!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Rt(v):e.removeAttribute("name")}function yl(e,t,n,i,c,u,p,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ni(e);return}n=n!=null?""+Rt(n):"",t=t!=null?""+Rt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Ni(e)}function wi(e,t,n){t==="number"&&Es(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Tn(e,t,n,i){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Rt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function vl(e,t,n){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Rt(n):""}function jl(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(o(92));if(Ne(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Rt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Ni(e)}function Cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fo=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Al(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Fo.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function zt(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.
vendor: 4,254 bytes, line 48
48setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&n[c]!==i&&Al(e,c,i)}else for(var u in t)t.hasOwnProperty(u)&&Al(e,u,t[u])}function en(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uo=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ed=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function En(e){return ed.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ea(){}var Si=null;function Bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tn=null,Ds=null;function Nl(e){var t=as(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ki(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var c=i[Tt]||null;if(!c)throw Error(o(90));ki(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&gl(i)}break e;case"textarea":vl(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Tn(e,!!n.multiple,t,!1)}}}var kl=!1;
vendor: 9,286 bytes, line 48
48function fc(e,t,n){if(kl)return e(t,n);kl=!0;try{var i=e(t);return i}finally{if(kl=!1,(tn!==null||Ds!==null)&&(tu(),tn&&(t=tn,e=Ds,Ds=tn=null,Nl(t),e)))for(t=0;t<e.length;t++)Nl(e[t])}}function pa(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Tt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Dn)try{var Ms={};Object.defineProperty(Ms,"passive",{get:function(){mc=!0}}),window.addEventListener("test",Ms,Ms),window.removeEventListener("test",Ms,Ms)}catch{mc=!1}var Qt=null,wl=null,Ti=null;function Lo(){if(Ti)return Ti;var e,t=wl,n=t.length,i,c="value"in Qt?Qt.value:Qt.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var p=n-e;for(i=1;i<=p&&t[n-i]===c[u-i];i++);return Ti=c.slice(e,1<i?1-i:void 0)}function Ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ei(){return!0}function _o(){return!1}function Ct(e){function t(n,i,c,u,p){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=u,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ei:_o,this.isPropagationStopped=_o,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=Ct(Mn),Os=j({},Mn,{view:0,detail:0}),Vo=Ct(Os),Ho,Sl,Rs,zs=j({},Os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Rs&&(Rs&&e.type==="mousemove"?(Ho=e.screenX-Rs.screenX,Sl=e.screenY-Rs.screenY):Sl=Ho=0,Rs=e),Ho)},movementY:function(e){return"movementY"in e?e.movementY:Sl}}),Po=Ct(zs),Tl=j({},zs,{dataTransfer:0}),hc=Ct(Tl),Da=j({},Os,{relatedTarget:0}),Fs=Ct(Da),pc=j({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Cl=Ct(pc),El=j({},Mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),td=Ct(El),Ma=j({},Mn,{data:0}),Us=Ct(Ma),Dl={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ad={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"},Go={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Go[e])?!!t[e]:!1}function Bs(){return nd}var sd=j({},Os,{key:function(e){if(e.key){var t=Dl[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ad[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xc=Ct(sd),bc=j({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ko=Ct(bc),gc=j({},Os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),Ml=Ct(gc),id=j({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yc=Ct(id),ld=j({},zs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qo=Ct(ld),vc=j({},Mn,{newState:0,oldState:0}),jc=Ct(vc),Ac=[9,13,27,32],Ol=Dn&&"CompositionEvent"in window,Ls=null;Dn&&"documentMode"in document&&(Ls=document.documentMode);var Rl=Dn&&"TextEvent"in window&&!Ls,Nc=Dn&&(!Ol||Ls&&8<Ls&&11>=Ls),Mi=" ",kc=!1;function Oi(e,t){switch(e){case"keyup":return Ac.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function od(e,t){switch(e){case"compositionend":return wc(t);case"keypress":return t.which!==32?null:(kc=!0,Mi);case"textInput":return e=t.data,e===Mi&&kc?null:e;default:return null}}function Io(e,t){if(On)return e==="compositionend"||!Ol&&Oi(e,t)?(e=Lo(),Ti=wl=Qt=null,On=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nc&&t.locale!=="ko"?null:t.data;default:return null}}var rd={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 Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rd[e.type]:t==="textarea"}function Sc(e,t,n,i){tn?Ds?Ds.push(i):Ds=[i]:tn=i,t=ru(t,"onChange"),0<t.length&&(n=new Di("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Rn=null,Ri=null;function Tc(e){fx(e,0)}function zi(e){var t=Za(e);if(gl(t))return e}function Xo(e,t){if(e==="change")return t}var $o=!1;if(Dn){var Oa;if(Dn){var Qo="oninput"in document;if(!Qo){var Cc=document.createElement("div");Cc.setAttribute("oninput","return;"),Qo=typeof Cc.oninput=="function"}Oa=Qo}else Oa=!1;$o=Oa&&(!document.documentMode||9<document.documentMode)}function Ec(){Rn&&(Rn.detachEvent("onpropertychange",Dc),Ri=Rn=null)}function Dc(e){if(e.propertyName==="value"&&zi(Ri)){var t=[];Sc(t,Ri,e,Bo(e)),fc(Tc,t)}}function cd(e,t,n){e==="focusin"?(Ec(),Rn=t,Ri=n,Rn.attachEvent("onpropertychange",Dc)):e==="focusout"&&Ec()}function an(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(Ri)}function ud(e,t){if(e==="click")return zi(t)}function dd(e,t){if(e==="input"||e==="change")return zi(t)}function Mc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:Mc;function _s(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var c=n[i];if(!Xa.call(t,c)||!Ft(e[c],t[c]))return!1}return!0}function zl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fl(e,t){var n=zl(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zl(n)}}function Zo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ul(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Es(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Es(e.document)}return t}function Bl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Jo=Dn&&"documentMode"in document&&11>=document.documentMode,Ra=null,ns=null,ss=null,Fi=!1;function Ll(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fi||Ra==null||Ra!==Es(i)||(i=Ra,"selectionStart"in i&&Bl(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focu
vendor: 22,185 bytes, line 48
48sNode:i.focusNode,focusOffset:i.focusOffset}),ss&&_s(ss,i)||(ss=i,i=ru(ns,"onSelect"),0<i.length&&(t=new Di("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ra)))}function nn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var is={animationend:nn("Animation","AnimationEnd"),animationiteration:nn("Animation","AnimationIteration"),animationstart:nn("Animation","AnimationStart"),transitionrun:nn("Transition","TransitionRun"),transitionstart:nn("Transition","TransitionStart"),transitioncancel:nn("Transition","TransitionCancel"),transitionend:nn("Transition","TransitionEnd")},Wo={},er={};Dn&&(er=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function ls(e){if(Wo[e])return Wo[e];if(!is[e])return e;var t=is[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in er)return Wo[e]=t[n];return e}var tr=ls("animationend"),_l=ls("animationiteration"),Vl=ls("animationstart"),ar=ls("transitionrun"),Hl=ls("transitionstart"),nr=ls("transitioncancel"),sr=ls("transitionend"),Oc=new Map,Pl="abort auxClick beforeToggle 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(" ");Pl.push("scrollEnd");function xa(e,t){Oc.set(e,t),Wa(t,[e])}var Ui=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ia=[],os=0,Bi=0;function sn(){for(var e=os,t=Bi=os=0;t<e;){var n=ia[t];ia[t++]=null;var i=ia[t];ia[t++]=null;var c=ia[t];ia[t++]=null;var u=ia[t];if(ia[t++]=null,i!==null&&c!==null){var p=i.pending;p===null?c.next=c:(c.next=p.next,p.next=c),i.pending=c}u!==0&&Fn(n,c,u)}}function Vs(e,t,n,i){ia[os++]=e,ia[os++]=t,ia[os++]=n,ia[os++]=i,Bi|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function zn(e,t,n,i){return Vs(e,t,n,i),Hs(e)}function ln(e,t){return Vs(e,null,null,t),Hs(e)}function Fn(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-Mt(n),e=u.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=n|536870912),u):null}function Hs(e){if(50<Or)throw Or=0,nf=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Un={};function Rc(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new Rc(e,t,n,i)}function ir(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ot(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ps(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gt(e,t,n,i,c,u){var p=0;if(i=e,typeof e=="function")ir(e)&&(p=1);else if(typeof e=="string")p=vy(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Pt(31,n,t,c),e.elementType=W,e.lanes=u,e;case F:return ba(n.children,c,u,t);case P:p=8,c|=24;break;case H:return e=Pt(12,n,t,c|2),e.elementType=H,e.lanes=u,e;case te:return e=Pt(13,n,t,c),e.elementType=te,e.lanes=u,e;case ee:return e=Pt(19,n,t,c),e.elementType=ee,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C:p=10;break e;case _:p=9;break e;case q:p=11;break e;case Y:p=14;break e;case R:p=16,i=null;break e}p=29,n=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=Pt(p,n,t,c),t.elementType=e,t.type=i,t.lanes=u,t}function ba(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function Gs(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function lr(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Bn(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var or=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var n=or.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ya(t)},or.set(e,t),t)}return{value:e,source:t,stack:Ya(t)}}var ga=[],Kt=0,rs=null,on=0,Jt=[],la=0,rn=null,za=1,Fa="";function Ua(e,t){ga[Kt++]=on,ga[Kt++]=rs,rs=e,on=t}function Li(e,t,n){Jt[la++]=za,Jt[la++]=Fa,Jt[la++]=rn,rn=e;var i=za;e=Fa;var c=32-Mt(i)-1;i&=~(1<<c),n+=1;var u=32-Mt(t)+c;if(30<u){var p=c-c%5;u=(i&(1<<p)-1).toString(32),i>>=p,c-=p,za=1<<32-Mt(t)+c|n<<c|i,Fa=u+e}else za=1<<u|n<<c|i,Fa=e}function Ks(e){e.return!==null&&(Ua(e,1),Li(e,1,0))}function Gl(e){for(;e===rs;)rs=ga[--Kt],ga[Kt]=null,on=ga[--Kt],ga[Kt]=null;for(;e===rn;)rn=Jt[--la],Jt[la]=null,Fa=Jt[--la],Jt[la]=null,za=Jt[--la],Jt[la]=null}function Ba(e,t){Jt[la++]=za,Jt[la++]=Fa,Jt[la++]=rn,za=t.id,Fa=t.overflow,rn=e}var gt=null,Xe=null,Ue=!1,Ln=null,oa=!1,cs=Error(o(519));function cn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw us(Zt(t,e)),cs}function rr(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[xt]=e,t[Tt]=i,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<zr.length;n++)_e(zr[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),yl(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),jl(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||xx(t.textContent,n)?(i.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),i.onScroll!=null&&_e("scroll",t),i.onScrollEnd!=null&&_e("scrollend",t),i.onClick!=null&&(t.onclick=Ea),t=!0):t=!1,t||cn(e,!0)}function Kl(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:gt=gt.return}}function _n(e){if(e!==gt)return!1;if(!Ue)return Kl(e),Ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||yf(e.type,e.memoizedProps)),n=!n),n&&Xe&&cn(e),Kl(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Xe=wx(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Xe=wx(e)}else t===27?(t=Xe,ni(e.type)?(e=kf,kf=null,Xe=e):Xe=t):Xe=gt?_a(e.stateNode.nextSibling):null;return!0}function Vn(){Xe=gt=null,Ue=!1}function _i(){var e=Ln;return e!==null&&(da===null?da=e:da.push.apply(da,e),Ln=null),e}function us(e){Ln===null?Ln=[e]:Ln.push(e)}var Vi=T(null),Hn=null,ya=null;function un(e,t,n){oe(Vi,t._currentValue),t._currentValue=n}function va(e){e._currentValue=Vi.current,B(Vi)}function ql(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Hi(e,t,n,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var p=c.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=c;for(var k=0;k<t.length;k++)if(v.context===t[k]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),ql(u.return,n,e),i||(p=null);break e}u=v.next}}else if(c.tag===18){if(p=c.return,p===null)throw Error(o(341));p.lanes|=n,u=p.alternate,u!==null&&(u.lanes|=n),ql(p,n,e),p=null}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}}function qs(e,t,n,i){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var p=c.alternate;if(p===null)throw Error(o(387));if(p=p.memoizedProps,p!==null){var v=c.type;Ft(c.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(c===we.current){if(p=c.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(_r):e=[_r])}c=c.return}e!==null&&Hi(t,e,n,i),t.flags|=262144}function Pi(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ds(e){Hn=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return zc(Hn,e)}function Il(e,t){return Hn===null&&ds(e),zc(e,t)}function zc(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ya===null){if(e===null)throw Error(o(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var fd=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},md=s.unstable_scheduleCallback,hd=s.unstable_NormalPriority,ft={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cr(){return{controller:new fd,data:new Map,refCount:0}}function Gi(e){e.refCount--,e.refCount===0&&md(hd,function(){e.controller.abort()})}var dn=null,ur=0,Is=0,Ys=null;function pd(e,t){if(dn===null){var n=dn=[];ur=0,Is=uf(),Ys={status:"pending",value:void 0,then:function(i){n.push(i)}}}return ur++,t.then(Fc,Fc),t}function Fc(){if(--ur===0&&dn!==null){Ys!==null&&(Ys.status="fulfilled");var e=dn;dn=null,Is=0,Ys=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dr(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),i}var fr=O.S;O.S=function(e,t){Vp=G(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pd(e,t),fr!==null&&fr(e,t)};var Pn=T(null);function Yl(){var e=Pn.current;return e!==null?e:tt.pooledCache}function Ki(e,t){t===null?oe(Pn,Pn.current):oe(Pn,t.pool)}function mr(){var e=Yl();return e===null?null:{parent:ft._currentValue,pool:e}}var fs=Error(o(460)),Xl=Error(o(474)),qi=Error(o(542)),Ii={then:function(){}};function hr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pr(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ea,Ea),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,br(e),e;default:if(typeof t.status=="string")t.then(Ea,Ea);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,br(e),e}throw Kn=t,fs}}function Gn(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kn=n,fs):n}}var Kn=null;function xr(){if(Kn===null)throw Error(o(459));var e=Kn;return Kn=null,e}function br(e){if(e===fs||e===qi)throw Error(o(483))}var ms=null,Xs=0;function Yi(e){var t=Xs;return Xs+=1,ms===null&&(ms=[]),pr(ms,e,t)}function $s(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gr(e){function t(D,E){if(e){var z=D.deletions;z===null?(D.deletions=[E],D.flags|=16):z.push(E)}}function n(D,E){if(!e)return null;for(;E!==null;)t(D,E),E=E.sibling;return null}function i(D){for(var E=new Map;D!==null;)D.key!==null?E.set(D.key,D):E.set(D.index,D),D=D.sibling;return E}function c(D,E){return D=ot(D,E),D.index=0,D.sibling=null,D}function u(D,E,z){return D.index=z,e?(z=D.alternate,z!==null?(z=z.index,z<E?(D.flags|=67108866,E):z):(D.flags|=67108866,E)):(D.flags|=1048576,E)}function p(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function v(D,E,z,X){return E===null||E.tag!==6?(E=Gs(z,D.mode,X),E.return=D,E):(E=c(E,z),E.return=D,E)}function k(D,E,z,X){var Ae=z.type;return Ae===F?I(D,E,z.props.children,X,z.key):E!==null&&(E.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===R&&Gn(Ae)===E.type)?(E=c(E,z.props),$s(E,z),E.return=D,E):(E=Gt(z.type,z.key,z.props,null,D.mode,X),$s(E,z),E.return=D,E)}function U(D,E,z,X){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=Bn(z,D.mode,X),E.return=D,E):(E=c(E,z.children||[]),E.return=D,E)}function I(D,E,z,X,Ae){return E===null||E.tag!==7?(E=ba(z,D.mode,X,Ae),E.return=D,E):(E=c(E,z),E.return=D,E)}function Q(D,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Gs(""+E,D.mode,z),E.return=D,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case w:return z=Gt(E.type,E.key,E.props,null,D.mode,z),$s(z,E),z.return=D,z;case S:return E=Bn(E,D.mode,z),E.return=D,E;case R:return E=Gn(E),Q(D,E,z)}if(Ne(E)||de(E))return E=ba(E,D.mode,z,null),E.return=D,E;if(typeof E.then=="function")return Q(D,Yi(E),z);if(E.$$typeof===C)return Q(D,Il(D,E),z);Xi(D,E)}return null}function L(D,E,z,X){var Ae=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return Ae!==null?null:v(D,E,""+z,X);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return z.key===Ae?k(D,E,z,X):null;case S:return z.key===Ae?U(D,E,z,X):null;case R:return z=Gn(z),L(D,E,z,X)}if(Ne(z)||de(z))return Ae!==null?null:I(D,E,z,X,null);if(typeof z.then=="function")return L(D,E,Yi(z),X);if(z.$$typeof===C)return L(D,E,Il(D,z),X);Xi(D,z)}return null}function V(D,E,z,X,Ae){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return D=D.get(z)||null,v(E,D,""+X,Ae);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return D=D.get(X.key===null?z:X.key)||null,k(E,D,X,Ae);case S:return D=D.get(X.key===null?z:X.key)||null,U(E,D,X,Ae);case R:return X=Gn(X),V(D,E,z,X,Ae)}if(Ne(X)||de(X))return D=D.get(z)||null,I(E,D,X,Ae,null);if(typeof X.then=="function")return V(D,E,z,Yi(X),Ae);if(X.$$typeof===C)return V(D,E,z,Il(E,X),Ae);Xi(E,X)}return null}function pe(D,E,z,X){for(var Ae=null,Ge=null,ge=E,Fe=E=0,He=null;ge!==null&&Fe<z.length;Fe++){ge.index>Fe?(He=ge,ge=null):He=ge.sibling;var Ke=L(D,ge,z[Fe],X);if(Ke===null){ge===null&&(ge=He);break}e&&ge&&Ke.alternate===null&&t(D,ge),E=u(Ke,E,Fe),Ge===null?Ae=Ke:Ge.sibling=Ke,Ge=Ke,ge=He}if(Fe===z.length)return n(D,ge),Ue&&Ua(D,Fe),Ae;if(ge===null){for(;Fe<z.length;Fe++)ge=Q(D,z[Fe],X),ge!==null&&(E=u(ge,E,Fe),Ge===null?Ae=ge:Ge.sibling=ge,Ge=ge);return Ue&&Ua(D,Fe),Ae}for(ge=i(ge);Fe<z.length;Fe++)He=V(ge,D,Fe,z[Fe],X),He!==null&&(e&&He.alternate!==null&&ge.delete(He.key===null?Fe:He.key),E=u(He,E,Fe),Ge===null?Ae=He:Ge.sibling=He,Ge=He);return e&&ge.forEach(function(ri){return t(D,ri)}),Ue&&Ua(D,Fe),Ae}function Ce(D,E,z,X){if(z==null)throw Error(o(151));for(var Ae=null,Ge=null,ge=E,Fe=E=0,He=null,Ke=z.next();ge!==null&&!Ke.done;Fe++,Ke=z.next()){ge.index>Fe?(He=ge,ge=null):He=ge.sibling;var ri=L(D,ge,Ke.value,X);if(ri===null){ge===null&&(ge=He);break}e&&ge&&ri.alternate===null&&t(D,ge),E=u(ri,E,Fe),Ge===null?Ae=ri:Ge.sibling=ri,Ge=ri,ge=He}if(Ke.done)return n(D,ge),Ue&&Ua(D,Fe),Ae;if(ge===null){for(;!Ke.done;Fe++,Ke=z.next())Ke=Q(D,Ke.value,X),Ke!==null&&(E=u(Ke,E,Fe),Ge===null?Ae=Ke:Ge.sibling=Ke,Ge=Ke);return Ue&&Ua(D,Fe),Ae}for(ge=i(ge);!Ke.done;Fe++,Ke=z.next())Ke=V(ge,D,Fe,Ke.value,X),Ke!==null&&(e&&Ke.alternate!==null&&ge.delete(Ke.key===null?Fe:Ke.key),E=u(Ke,E,Fe),Ge===null?Ae=Ke:Ge.sibling=Ke,Ge=Ke);return e&&ge.forEach(function(My){return t(D,My)}),Ue&&Ua(D,Fe),Ae}function et(D,E,z,X){if(typeof z=="object"&&z!==null&&z.type===F&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case w:e:{for(var Ae=z.key;E!==null;){if(E.key===Ae){if(Ae=z.type,Ae===F){if(E.tag===7){n(D,E.sibling),X=c(E,z.props.children),X.return=D,D=X;break e}}else if(E.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===R&&Gn(Ae)===E.type){n(D,E.sibling),X=c(E,z.props),$s(X,z),X.return=D,D=X;break e}n(D,E);break}else t(D,E);E=E.sibling}z.type===F?(X=ba(z.props.children,D.mode,X,z.key),X.return=D,D=X):(X=Gt(z.type,z.key,z.props,null,D.mode,X),$s(X,z),X.return=D,D=X)}return p(D);case S:e:{for(Ae=z.key;E!==null;){if(E.key===Ae)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){n(D,E.sibling),X=c(E,z.children||[]),X.return=D,D=X;break e}else{n(D,E);break}else t(D,E);E=E.sibling}X=Bn(z,D.mode,X),X.return=D,D=X}return p(D);case R:return z=Gn(z),et(D,E,z,X)}if(Ne(z))return pe(D,E,z,X);if(de(z)){if(Ae=de(z),typeof Ae!="function")throw Error(o(150));return z=Ae.call(z),Ce(D,E,z,X)}if(typeof z.then=="function")return et(D,E,Yi(z),X);if(z.$$typeof===C)return et(D,E,Il(D,z),X);Xi(D,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(n(D,E.sibling),X=c(E,z),X.return=D,D=X):(n(D,E),X=Gs(z,D.mode,X),X.return=D,D=X),p(D)):n(D,E)}return function(D,E,z,X){try{Xs=0;var Ae=et(D,E,z,X);return ms=null,Ae}catch(ge){if(ge===fs||ge===qi)throw ge;var Ge=Pt(29,ge,null,D.mode);return Ge.lanes=X,Ge.return=D,Ge}finally{}}}var qn=gr(!0),yr=gr(!1),fn=!1;function $l(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ql(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function d(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ye&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Hs(e),Fn(e,null,n),t}return Vs(e,i,t,n),Hs(e)}function M(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,ts(e,n)}}function ie(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=p:u=u.next=p,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ae=!1;function Te(){if(ae){var e=Ys;if(e!==null)throw e}}function je(e,t,n,i){ae=!1;var c=e.updateQueue;fn=!1;var u=c.firstBaseUpdate,p=c.lastBaseUpdate,v=c.shared.pending;if(v!==null){c.shared.pending=null;var k=v,U=k.next;k.next=null,p===null?u=U:p.next=U,p=k;var I=e.alternate;I!==null&&(I=I.updateQueue,v=I.lastBaseUpdate,v!==p&&(v===null?I.firstBaseUpdate=U:v.next=U,I.lastBaseUpdate=k))}if(u!==null){var Q=c.baseState;p=0,I=U=k=null,v=u;do{var L=v.lane&-536870913,V=L!==v.lane;if(V?(Ve&L)===L:(i&L)===L){L!==0&&L===Is&&(ae=!0),I!==null&&(I=I.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var pe=e,Ce=v;L=t;var et=n;switch(Ce.tag){case 1:if(pe=Ce.payload,typeof pe=="function"){Q=pe.call(et,Q,L);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ce.payload,L=typeof pe=="function"?pe.call(et,Q,L):pe,L==null)break e;Q=j({},Q,L);break e;case 2:fn=!0}}L=v.callback,L!==null&&(e.flags|=64,V&&(e.flags|=8192),V=c.callbacks,V===null?c.callbacks=[L]:V.push(L))}else V={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},I===null?(U=I=V,k=Q):I=I.next=V,p|=L;if(v=v.next,v===null){if(v=c.shared.pending,v===null)break;V=v,v=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);I===null&&(k=Q),c.baseState=k,c.firstBaseUpdate=U,c.lastBaseUpdate=I,u===null&&(c.shared.lanes=0),Js|=p,e.lanes=p,e.memoizedState=Q}}function he(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function De(e,t){var n=e.callbacks;
vendor: 6,893 bytes, line 48
48if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)he(n[e],t)}var Be=T(null),it=T(0);function La(e,t){e=js,oe(it,e),oe(Be,t),js=e|t.baseLanes}function hn(){oe(it,js),oe(Be,Be.current)}function Zl(){js=it.current,B(Be),B(it)}var Et=T(null),re=null;function Qe(e){var t=e.alternate;oe(dt,dt.current&1),oe(Et,e),re===null&&(t===null||Be.current!==null||t.memoizedState!==null)&&(re=e)}function Wt(e){oe(dt,dt.current),oe(Et,e),re===null&&(re=e)}function In(e){e.tag===22?(oe(dt,dt.current),oe(Et,e),re===null&&(re=e)):ja()}function ja(){oe(dt,dt.current),oe(Et,Et.current)}function Ut(e){B(Et),re===e&&(re=null),B(dt)}var dt=T(0);function Jl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Af(n)||Nf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ea=0,Se=null,$e=null,yt=null,Uc=!1,Wl=!1,$i=!1,Bc=0,vr=0,eo=null,j0=0;function mt(){throw Error(o(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ft(e[n],t[n]))return!1;return!0}function bd(e,t,n,i,c,u){return ea=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Zh:Od,$i=!1,u=n(i,c),$i=!1,Wl&&(u=xh(t,n,i,c)),ph(e),u}function ph(e){O.H=Nr;var t=$e!==null&&$e.next!==null;if(ea=0,yt=$e=Se=null,Uc=!1,vr=0,eo=null,t)throw Error(o(300));e===null||vt||(e=e.dependencies,e!==null&&Pi(e)&&(vt=!0))}function xh(e,t,n,i){Se=e;var c=0;do{if(Wl&&(eo=null),vr=0,Wl=!1,25<=c)throw Error(o(301));if(c+=1,yt=$e=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=Jh,u=t(n,i)}while(Wl);return u}function A0(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?jr(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Se.flags|=1024),t}function gd(){var e=Bc!==0;return Bc=0,e}function yd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vd(e){if(Uc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Uc=!1}ea=0,yt=$e=Se=null,Wl=!1,vr=Bc=0,eo=null}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Se.memoizedState=yt=e:yt=yt.next=e,yt}function bt(){if($e===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=yt===null?Se.memoizedState:yt.next;if(t!==null)yt=t,$e=e;else{if(e===null)throw Se.alternate===null?Error(o(467)):Error(o(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},yt===null?Se.memoizedState=yt=e:yt=yt.next=e}return yt}function Lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jr(e){var t=vr;return vr+=1,eo===null&&(eo=[]),e=pr(eo,e,t),t=Se,(yt===null?t.memoizedState:yt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Zh:Od),e}function _c(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return jr(e);if(e.$$typeof===C)return Nt(e)}throw Error(o(438,String(e)))}function jd(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Se.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Lc(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=ne;return t.index++,n}function hs(e,t){return typeof t=="function"?t(e):t}function Vc(e){var t=bt();return Ad(t,$e,e)}function Ad(e,t,n){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var c=e.baseQueue,u=i.pending;if(u!==null){if(c!==null){var p=c.next;c.next=u.next,u.next=p}t.baseQueue=c=u,i.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var v=p=null,k=null,U=t,I=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ve&Q)===Q:(ea&Q)===Q){var L=U.revertLane;if(L===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Is&&(I=!0);else if((ea&L)===L){U=U.next,L===Is&&(I=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},k===null?(v=k=Q,p=u):k=k.next=Q,Se.lanes|=L,Js|=L;Q=U.action,$i&&n(u,Q),u=U.hasEagerState?U.eagerState:n(u,Q)}else L={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},k===null?(v=k=L,p=u):k=k.next=L,Se.lanes|=Q,Js|=Q;U=U.next}while(U!==null&&U!==t);if(k===null?p=u:k.next=v,!Ft(u,e.memoizedState)&&(vt=!0,I&&(n=Ys,n!==null)))throw n;e.memoizedState=u,e.baseState=p,e.baseQueue=k,i.lastRenderedState=u}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Nd(e){var t=bt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var p=c=c.next;do u=e(u,p.action),p=p.next;while(p!==c);Ft(u,t.memoizedState)||(vt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,i]}function bh(e,t,n){var i=Se,c=bt(),u=Ue;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var p=!Ft(($e||c).memoizedState,n);if(p&&(c.memoizedState=n,vt=!0),c=c.queue,Sd(vh.bind(null,i,c,e),[e]),c.getSnapshot!==t||p||yt!==null&&yt.memoizedState.tag&1){if(i.flags|=2048,to(9,{destroy:void 0},yh.bind(null,i,c,n,t),null),tt===null)throw Error(o(349));u||(ea&127)!==0||gh(i,t,n)}return n}function gh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Lc(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yh(e,t,n,i){t.value=n,t.getSnapshot=i,jh(t)&&Ah(e)}function vh(e,t,n){return n(function(){jh(t)&&Ah(e)})}function jh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ft(e,n)}catch{return!0}}function Ah(e){var t=ln(e,2);t!==null&&fa(t,e,2)}function kd(e){var t=ta();if(typeof e=="function"){var n=e;if(e=n(),$i){ma(!0);try{n()}finally{ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t}function Nh(e,t,n,i){return e.baseState=n,Ad(e,$e,typeof i=="function"?i:hs)}function N0(e,t,n,i,c){if(Gc(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){u.listeners.push(p)}};
vendor: 11,752 bytes, line 48
48O.T!==null?n(!0):u.isTransition=!1,i(u),n=t.pending,n===null?(u.next=t.pending=u,kh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function kh(e,t){var n=t.action,i=t.payload,c=e.state;if(t.isTransition){var u=O.T,p={};O.T=p;try{var v=n(c,i),k=O.S;k!==null&&k(p,v),wh(e,t,v)}catch(U){wd(e,t,U)}finally{u!==null&&p.types!==null&&(u.types=p.types),O.T=u}}else try{u=n(c,i),wh(e,t,u)}catch(U){wd(e,t,U)}}function wh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Sh(e,t,i)},function(i){return wd(e,t,i)}):Sh(e,t,n)}function Sh(e,t,n){t.status="fulfilled",t.value=n,Th(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,kh(e,n)))}function wd(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Th(t),t=t.next;while(t!==i)}e.action=null}function Th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function Eh(e,t){if(Ue){var n=tt.formState;if(n!==null){e:{var i=Se;if(Ue){if(Xe){t:{for(var c=Xe,u=oa;c.nodeType!==8;){if(!u){c=null;break t}if(c=_a(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Xe=_a(c.nextSibling),i=c.data==="F!";break e}}cn(i)}i=!1}i&&(t=n[0])}}return n=ta(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},n.queue=i,n=Xh.bind(null,Se,i),i.dispatch=n,i=kd(!1),u=Md.bind(null,Se,!1,i.queue),i=ta(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,n=N0.bind(null,Se,c,u,n),c.dispatch=n,i.memoizedState=e,[t,n,!1]}function Dh(e){var t=bt();return Mh(t,$e,e)}function Mh(e,t,n){if(t=Ad(e,t,Ch)[0],e=Vc(hs)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=jr(t)}catch(p){throw p===fs?qi:p}else i=t;t=bt();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,to(9,{destroy:void 0},k0.bind(null,c,n),null)),[i,u,e]}function k0(e,t){e.action=t}function Oh(e){var t=bt(),n=$e;if(n!==null)return Mh(t,n,e);bt(),t=t.memoizedState,n=bt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function to(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Lc(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Rh(){return bt().memoizedState}function Hc(e,t,n,i){var c=ta();Se.flags|=e,c.memoizedState=to(1|t,{destroy:void 0},n,i===void 0?null:i)}function Pc(e,t,n,i){var c=bt();i=i===void 0?null:i;var u=c.memoizedState.inst;$e!==null&&i!==null&&xd(i,$e.memoizedState.deps)?c.memoizedState=to(t,u,n,i):(Se.flags|=e,c.memoizedState=to(1|t,u,n,i))}function zh(e,t){Hc(8390656,8,e,t)}function Sd(e,t){Pc(2048,8,e,t)}function w0(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Lc(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Fh(e){var t=bt().memoizedState;return w0({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Uh(e,t){return Pc(4,2,e,t)}function Bh(e,t){return Pc(4,4,e,t)}function Lh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _h(e,t,n){n=n!=null?n.concat([e]):null,Pc(4,4,Lh.bind(null,t,e),n)}function Td(){}function Vh(e,t){var n=bt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&xd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Hh(e,t){var n=bt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&xd(t,i[1]))return i[0];if(i=e(),$i){ma(!0);try{e()}finally{ma(!1)}}return n.memoizedState=[i,t],i}function Cd(e,t,n){return n===void 0||(ea&1073741824)!==0&&(Ve&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Pp(),Se.lanes|=e,Js|=e,n)}function Ph(e,t,n,i){return Ft(n,t)?n:Be.current!==null?(e=Cd(e,n,i),Ft(e,t)||(vt=!0),e):(ea&42)===0||(ea&1073741824)!==0&&(Ve&261930)===0?(vt=!0,e.memoizedState=n):(e=Pp(),Se.lanes|=e,Js|=e,t)}function Gh(e,t,n,i,c){var u=Z.p;Z.p=u!==0&&8>u?u:8;var p=O.T,v={};O.T=v,Md(e,!1,t,n);try{var k=c(),U=O.S;if(U!==null&&U(v,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var I=dr(k,i);Ar(e,t,I,ka(e))}else Ar(e,t,i,ka(e))}catch(Q){Ar(e,t,{then:function(){},status:"rejected",reason:Q},ka())}finally{Z.p=u,p!==null&&v.types!==null&&(p.types=v.types),O.T=p}}function S0(){}function Ed(e,t,n,i){if(e.tag!==5)throw Error(o(476));var c=Kh(e).queue;Gh(e,c,t,se,n===null?S0:function(){return qh(e),n(i)})}function Kh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qh(e){var t=Kh(e);t.next===null&&(t=e.alternate.memoizedState),Ar(e,t.next.queue,{},ka())}function Dd(){return Nt(_r)}function Ih(){return bt().memoizedState}function Yh(){return bt().memoizedState}function T0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ka();e=mn(n);var i=d(t,e,n);i!==null&&(fa(i,t,n),M(i,t,n)),t={cache:cr()},e.payload=t;return}t=t.return}}function C0(e,t,n){var i=ka();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gc(e)?$h(t,n):(n=zn(e,t,n,i),n!==null&&(fa(n,e,i),Qh(n,t,i)))}function Xh(e,t,n){var i=ka();Ar(e,t,n,i)}function Ar(e,t,n,i){var c={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gc(e))$h(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var p=t.lastRenderedState,v=u(p,n);if(c.hasEagerState=!0,c.eagerState=v,Ft(v,p))return Vs(e,t,c,0),tt===null&&sn(),!1}catch{}finally{}if(n=zn(e,t,c,i),n!==null)return fa(n,e,i),Qh(n,t,i),!0}return!1}function Md(e,t,n,i){if(i={lane:2,revertLane:uf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Gc(e)){if(t)throw Error(o(479))}else t=zn(e,n,i,2),t!==null&&fa(t,e,2)}function Gc(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function $h(e,t){Wl=Uc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,ts(e,n)}}var Nr={readContext:Nt,use:_c,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};Nr.useEffectEvent=mt;var Zh={readContext:Nt,use:_c,useCallback:function(e,t){return ta().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Hc(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hc(4194308,4,e,t)},useInsertionEffect:function(e,t){Hc(4,2,e,t)},useMemo:function(e,t){var n=ta();t=t===void 0?null:t;var i=e();if($i){ma(!0);try{e()}finally{ma(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=ta();if(n!==void 0){var c=n(t);if($i){ma(!0);try{n(t)}finally{ma(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=C0.bind(null,Se,e),[i.memoizedState,e]},useRef:function(e){var t=ta();return e={current:e},t.memoizedState=e},useState:function(e){e=kd(e);var t=e.queue,n=Xh.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Td,useDeferredValue:function(e,t){var n=ta();return Cd(n,e,t)},useTransition:function(){var e=kd(!1);return e=Gh.bind(null,Se,e.queue,!0,!1),ta().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Se,c=ta();if(Ue){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),tt===null)throw Error(o(349));(Ve&127)!==0||gh(i,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,zh(vh.bind(null,i,u,e),[e]),i.flags|=2048,to(9,{destroy:void 0},yh.bind(null,i,u,n,t),null),n},useId:function(){var e=ta(),t=tt.identifierPrefix;if(Ue){var n=Fa,i=za;n=(i&~(1<<32-Mt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Bc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=j0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dd,useFormState:Eh,useActionState:Eh,useOptimistic:function(e){var t=ta();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Md.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:jd,useCacheRefresh:function(){return ta().memoizedState=T0.bind(null,Se)},useEffectEvent:function(e){var t=ta(),n={impl:e};return t.memoizedState=n,function(){if((Ye&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Od={readContext:Nt,use:_c,useCallback:Vh,useContext:Nt,useEffect:Sd,useImperativeHandle:_h,useInsertionEffect:Uh,useLayoutEffect:Bh,useMemo:Hh,useReducer:Vc,useRef:Rh,useState:function(){return Vc(hs)},useDebugValue:Td,useDeferredValue:function(e,t){var n=bt();return Ph(n,$e.memoizedState,e,t)},useTransition:function(){var e=Vc(hs)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:jr(e),t]},useSyncExternalStore:bh,useId:Ih,useHostTransitionStatus:Dd,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var n=bt();return Nh(n,$e,e,t)},useMemoCache:jd,useCacheRefresh:Yh};Od.useEffectEvent=Fh;var Jh={readContext:Nt,use:_c,useCallback:Vh,useContext:Nt,useEffect:Sd,useImperativeHandle:_h,useInsertionEffect:Uh,useLayoutEffect:Bh,useMemo:Hh,useReducer:Nd,useRef:Rh,useState:function(){return Nd(hs)},useDebugValue:Td,useDeferredValue:function(e,t){var n=bt();return $e===null?Cd(n,e,t):Ph(n,$e.memoizedState,e,t)},useTransition:function(){var e=Nd(hs)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:jr(e),t]},useSyncExternalStore:bh,useId:Ih,useHostTransitionStatus:Dd,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var n=bt();return $e!==null?Nh(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:jd,useCacheRefresh:Yh};Jh.useEffectEvent=Fh;function Rd(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:j({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zd={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ka(),c=mn(i);c.payload=t,n!=null&&(c.callback=n),t=d(e,c,i),t!==null&&(fa(t,e,i),M(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ka(),c=mn(i);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=d(e,c,i),t!==null&&(fa(t,e,i),M(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ka(),i=mn(n);i.tag=2,t!=null&&(i.callback=t),t=d(e,i,n),t!==null&&(fa(t,e,n),M(t,e,n))}};function Wh(e,t,n,i,c,u,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,p):t.prototype&&t.prototype.isPureReactComponent?!_s(n,i)||!_s(c,u):!0}function ep(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&zd.enqueueReplaceState(t,t.state,null)}function Qi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=j({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function tp(e){Ui(e)}function ap(e){console.error(e)}function np(e){Ui(e)}function Kc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}
vendor: 15,472 bytes, line 48
48function sp(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Fd(e,t,n){return n=mn(n),n.tag=3,n.payload={element:null},n.callback=function(){Kc(e,t)},n}function ip(e){return e=mn(e),e.tag=3,e}function lp(e,t,n,i){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=i.value;e.payload=function(){return c(u)},e.callback=function(){sp(t,n,i)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){sp(t,n,i),typeof c!="function"&&(Ws===null?Ws=new Set([this]):Ws.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function E0(e,t,n,i,c){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&qs(t,n,c,!0),n=Et.current,n!==null){switch(n.tag){case 31:case 13:return re===null?au():n.alternate===null&&ht===0&&(ht=3),n.flags&=-257,n.flags|=65536,n.lanes=c,i===Ii?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),of(e,i,c)),!1;case 22:return n.flags|=65536,i===Ii?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),of(e,i,c)),!1}throw Error(o(435,n.tag))}return of(e,i,c),au(),!1}if(Ue)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==cs&&(e=Error(o(422),{cause:i}),us(Zt(e,n)))):(i!==cs&&(t=Error(o(423),{cause:i}),us(Zt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=Zt(i,n),c=Fd(e.stateNode,i,c),ie(e,c),ht!==4&&(ht=2)),!1;var u=Error(o(520),{cause:i});if(u=Zt(u,n),Mr===null?Mr=[u]:Mr.push(u),ht!==4&&(ht=2),t===null)return!0;i=Zt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Fd(n.stateNode,i,e),ie(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ws===null||!Ws.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=ip(c),lp(c,e,n,i),ie(n,c),!1}n=n.return}while(n!==null);return!1}var Ud=Error(o(461)),vt=!1;function Bt(e,t,n,i){t.child=e===null?yr(t,null,n,i):qn(t,e.child,n,i)}function op(e,t,n,i,c){n=n.render;var u=t.ref;if("ref"in i){var p={};for(var v in i)v!=="ref"&&(p[v]=i[v])}else p=i;return ds(t),i=bd(e,t,n,p,u,c),v=gd(),e!==null&&!vt?(yd(e,t,c),ps(e,t,c)):(Ue&&v&&Ks(t),t.flags|=1,Bt(e,t,i,c),t.child)}function rp(e,t,n,i,c){if(e===null){var u=n.type;return typeof u=="function"&&!ir(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,cp(e,t,u,i,c)):(e=Gt(n.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Kd(e,c)){var p=u.memoizedProps;if(n=n.compare,n=n!==null?n:_s,n(p,i)&&e.ref===t.ref)return ps(e,t,c)}return t.flags|=1,e=ot(u,i),e.ref=t.ref,e.return=t,t.child=e}function cp(e,t,n,i,c){if(e!==null){var u=e.memoizedProps;if(_s(u,i)&&e.ref===t.ref)if(vt=!1,t.pendingProps=i=u,Kd(e,c))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,ps(e,t,c)}return Bd(e,t,n,i,c)}function up(e,t,n,i){var c=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(i=t.child=e.child,c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~u}else i=0,t.child=null;return dp(e,t,u,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ki(t,u!==null?u.cachePool:null),u!==null?La(t,u):hn(),In(t);else return i=t.lanes=536870912,dp(e,t,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(Ki(t,u.cachePool),La(t,u),ja(),t.memoizedState=null):(e!==null&&Ki(t,null),hn(),ja());return Bt(e,t,c,n),t.child}function kr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dp(e,t,n,i,c){var u=Yl();return u=u===null?null:{parent:ft._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ki(t,null),hn(),In(t),e!==null&&qs(e,t,i,!0),t.childLanes=c,null}function qc(e,t){return t=Yc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fp(e,t,n){return qn(t,e.child,null,n),e=qc(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function D0(e,t,n){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(i.mode==="hidden")return e=qc(t,i),t.lanes=536870912,kr(null,e);if(Wt(t),(e=Xe)?(e=kx(e,oa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rn!==null?{id:za,overflow:Fa}:null,retryLane:536870912,hydrationErrors:null},n=lr(e),n.return=t,t.child=n,gt=t,Xe=null)):e=null,e===null)throw cn(t);return t.lanes=536870912,null}return qc(t,i)}var u=e.memoizedState;if(u!==null){var p=u.dehydrated;if(Wt(t),c)if(t.flags&256)t.flags&=-257,t=fp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(vt||qs(e,t,n,!1),c=(n&e.childLanes)!==0,vt||c){if(i=tt,i!==null&&(p=Co(i,n),p!==0&&p!==u.retryLane))throw u.retryLane=p,ln(e,p),fa(i,e,p),Ud;au(),t=fp(e,t,n)}else e=u.treeContext,Xe=_a(p.nextSibling),gt=t,Ue=!0,Ln=null,oa=!1,e!==null&&Ba(t,e),t=qc(t,i),t.flags|=4096;return t}return e=ot(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ic(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Bd(e,t,n,i,c){return ds(t),n=bd(e,t,n,i,void 0,c),i=gd(),e!==null&&!vt?(yd(e,t,c),ps(e,t,c)):(Ue&&i&&Ks(t),t.flags|=1,Bt(e,t,n,c),t.child)}function mp(e,t,n,i,c,u){return ds(t),t.updateQueue=null,n=xh(t,i,n,c),ph(e),i=gd(),e!==null&&!vt?(yd(e,t,u),ps(e,t,u)):(Ue&&i&&Ks(t),t.flags|=1,Bt(e,t,n,u),t.child)}function hp(e,t,n,i,c){if(ds(t),t.stateNode===null){var u=Un,p=n.contextType;typeof p=="object"&&p!==null&&(u=Nt(p)),u=new n(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=zd,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},$l(t),p=n.contextType,u.context=typeof p=="object"&&p!==null?Nt(p):Un,u.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Rd(t,n,p,i),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(p=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),p!==u.state&&zd.enqueueReplaceState(u,u.state,null),je(t,i,u,c),Te(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,k=Qi(n,v);u.props=k;var U=u.context,I=n.contextType;p=Un,typeof I=="object"&&I!==null&&(p=Nt(I));var Q=n.getDerivedStateFromProps;I=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,I||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||U!==p)&&ep(t,u,i,p),fn=!1;var L=t.memoizedState;u.state=L,je(t,i,u,c),Te(),U=t.memoizedState,v||L!==U||fn?(typeof Q=="function"&&(Rd(t,n,Q,i),U=t.memoizedState),(k=fn||Wh(t,n,k,i,L,U,p))?(I||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),u.props=i,u.state=U,u.context=p,i=k):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,Ql(e,t),p=t.memoizedProps,I=Qi(n,p),u.props=I,Q=t.pendingProps,L=u.context,U=n.contextType,k=Un,typeof U=="object"&&U!==null&&(k=Nt(U)),v=n.getDerivedStateFromProps,(U=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==Q||L!==k)&&ep(t,u,i,k),fn=!1,L=t.memoizedState,u.state=L,je(t,i,u,c),Te();var V=t.memoizedState;p!==Q||L!==V||fn||e!==null&&e.dependencies!==null&&Pi(e.dependencies)?(typeof v=="function"&&(Rd(t,n,v,i),V=t.memoizedState),(I=fn||Wh(t,n,I,i,L,V,k)||e!==null&&e.dependencies!==null&&Pi(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,V,k),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,V,k)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),u.props=i,u.state=V,u.context=k,i=I):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,Ic(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=qn(t,e.child,null,c),t.child=qn(t,null,n,c)):Bt(e,t,n,c),t.memoizedState=u.state,e=t.child):e=ps(e,t,c),e}function pp(e,t,n,i){return Vn(),t.flags|=256,Bt(e,t,n,i),t.child}var Ld={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _d(e){return{baseLanes:e,cachePool:mr()}}function Vd(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Na),e}function xp(e,t,n){var i=t.pendingProps,c=!1,u=(t.flags&128)!==0,p;if((p=u)||(p=e!==null&&e.memoizedState===null?!1:(dt.current&2)!==0),p&&(c=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(c?Qe(t):ja(),(e=Xe)?(e=kx(e,oa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rn!==null?{id:za,overflow:Fa}:null,retryLane:536870912,hydrationErrors:null},n=lr(e),n.return=t,t.child=n,gt=t,Xe=null)):e=null,e===null)throw cn(t);return Nf(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,c?(ja(),c=t.mode,v=Yc({mode:"hidden",children:v},c),i=ba(i,c,n,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=_d(n),i.childLanes=Vd(e,p,n),t.memoizedState=Ld,kr(null,i)):(Qe(t),Hd(t,v))}var k=e.memoizedState;if(k!==null&&(v=k.dehydrated,v!==null)){if(u)t.flags&256?(Qe(t),t.flags&=-257,t=Pd(e,t,n)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),v=i.fallback,c=t.mode,i=Yc({mode:"visible",children:i.children},c),v=ba(v,c,n,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,qn(t,e.child,null,n),i=t.child,i.memoizedState=_d(n),i.childLanes=Vd(e,p,n),t.memoizedState=Ld,t=kr(null,i));else if(Qe(t),Nf(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var U=p.dgst;p=U,i=Error(o(419)),i.stack="",i.digest=p,us({value:i,source:null,stack:null}),t=Pd(e,t,n)}else if(vt||qs(e,t,n,!1),p=(n&e.childLanes)!==0,vt||p){if(p=tt,p!==null&&(i=Co(p,n),i!==0&&i!==k.retryLane))throw k.retryLane=i,ln(e,i),fa(p,e,i),Ud;Af(v)||au(),t=Pd(e,t,n)}else Af(v)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,Xe=_a(v.nextSibling),gt=t,Ue=!0,Ln=null,oa=!1,e!==null&&Ba(t,e),t=Hd(t,i.children),t.flags|=4096);return t}return c?(ja(),v=i.fallback,c=t.mode,k=e.child,U=k.sibling,i=ot(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&65011712,U!==null?v=ot(U,v):(v=ba(v,c,n,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,kr(null,i),i=t.child,v=e.child.memoizedState,v===null?v=_d(n):(c=v.cachePool,c!==null?(k=ft._currentValue,c=c.parent!==k?{parent:k,pool:k}:c):c=mr(),v={baseLanes:v.baseLanes|n,cachePool:c}),i.memoizedState=v,i.childLanes=Vd(e,p,n),t.memoizedState=Ld,kr(e.child,i)):(Qe(t),n=e.child,e=n.sibling,n=ot(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Hd(e,t){return t=Yc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Pd(e,t,n){return qn(t,e.child,null,n),e=Hd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ql(e.return,t,n)}function Gd(e,t,n,i,c,u){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c,treeForkCount:u}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=n,p.tailMode=c,p.treeForkCount=u)}function gp(e,t,n){var i=t.pendingProps,c=i.revealOrder,u=i.tail;i=i.children;var p=dt.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,oe(dt,p),Bt(e,t,i,n),i=Ue?on:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bp(e,n,t);else if(e.tag===19)bp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Jl(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Gd(t,!1,c,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Jl(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Gd(t,!0,n,null,u,i);break;case"together":Gd(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Js|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=ot(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ot(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Kd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Pi(e)))}function M0(e,t,n){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),un(t,ft,e.memoizedState.cache),Vn();break;case 27:case 5:It(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:un(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wt(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Qe(t),t.flags|=128,null):(n&t.child.childLanes)!==0?xp(e,t,n):(Qe(t),e=ps(e,t,n),e!==null?e.sibling:null);Qe(t);break;case 19:var c=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(qs(e,t,n,!1),i=(n&t.childLanes)!==0),c){if(i)return gp(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),oe(dt,dt.current),i)break;return null;case 22:return t.lanes=0,up(e,t,n,t.pendingProps);case 24:un(t,ft,e.memoizedState.cache)}return ps(e,t,n)}
vendor: 4,897 bytes, line 48
48function yp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Kd(e,n)&&(t.flags&128)===0)return vt=!1,M0(e,t,n);vt=(e.flags&131072)!==0}else vt=!1,Ue&&(t.flags&1048576)!==0&&Li(t,on,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Gn(t.elementType),t.type=e,typeof e=="function")ir(e)?(i=Qi(e,i),t.tag=1,t=hp(null,t,e,i,n)):(t.tag=0,t=Bd(null,t,e,i,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=op(null,t,e,i,n);break e}else if(c===Y){t.tag=14,t=rp(null,t,e,i,n);break e}}throw t=ue(e)||e,Error(o(306,t,""))}}return t;case 0:return Bd(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,c=Qi(i,t.pendingProps),hp(e,t,i,c,n);case 3:e:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var u=t.memoizedState;c=u.element,Ql(e,t),je(t,i,null,n);var p=t.memoizedState;if(i=p.cache,un(t,ft,i),i!==u.cache&&Hi(t,[ft],n,!0),Te(),i=p.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=pp(e,t,i,n);break e}else if(i!==c){c=Zt(Error(o(424)),t),us(c),t=pp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Xe=_a(e.firstChild),gt=t,Ue=!0,Ln=null,oa=!0,n=yr(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vn(),i===c){t=ps(e,t,n);break e}Bt(e,t,i,n)}t=t.child}return t;case 26:return Ic(e,t),e===null?(n=Dx(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,i=cu(fe.current).createElement(n),i[xt]=t,i[Tt]=e,Lt(i,n,e),ut(i),t.stateNode=i):t.memoizedState=Dx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return It(t),e===null&&Ue&&(i=t.stateNode=Tx(t.type,t.pendingProps,fe.current),gt=t,oa=!0,c=Xe,ni(t.type)?(kf=c,Xe=_a(i.firstChild)):Xe=c),Bt(e,t,t.pendingProps.children,n),Ic(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((c=i=Xe)&&(i=oy(i,t.type,t.pendingProps,oa),i!==null?(t.stateNode=i,gt=t,Xe=_a(i.firstChild),oa=!1,c=!0):c=!1),c||cn(t)),It(t),c=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,i=u.children,yf(c,u)?i=null:p!==null&&yf(c,p)&&(t.flags|=32),t.memoizedState!==null&&(c=bd(e,t,A0,null,null,n),_r._currentValue=c),Ic(e,t),Bt(e,t,i,n),t.child;case 6:return e===null&&Ue&&((e=n=Xe)&&(n=ry(n,t.pendingProps,oa),n!==null?(t.stateNode=n,gt=t,Xe=null,e=!0):e=!1),e||cn(t)),null;case 13:return xp(e,t,n);case 4:return qe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=qn(t,null,i,n):Bt(e,t,i,n),t.child;case 11:return op(e,t,t.type,t.pendingProps,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,un(t,t.type,i.value),Bt(e,t,i.children,n),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,ds(t),c=Nt(c),i=i(c),t.flags|=1,Bt(e,t,i,n),t.child;case 14:return rp(e,t,t.type,t.pendingProps,n);case 15:return cp(e,t,t.type,t.pendingProps,n);case 19:return gp(e,t,n);case 31:return D0(e,t,n);case 22:return up(e,t,n,t.pendingProps);case 24:return ds(t),i=Nt(ft),e===null?(c=Yl(),c===null&&(c=tt,u=cr(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:i,cache:c},$l(t),un(t,ft,c)):((e.lanes&n)!==0&&(Ql(e,t),je(t,null,null,n),Te()),c=e.memoizedState,u=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),un(t,ft,i)):(i=u.cache,un(t,ft,i),i!==c.cache&&Hi(t,[ft],n,!0))),Bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function xs(e){e.flags|=4}function qd(e,t,n,i,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Ip())e.flags|=8192;else throw Kn=Ii,Xl}else e.flags&=-16777217}function vp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fx(t))if(Ip())e.flags|=8192;else throw Kn=Ii,Xl}function Xc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?To():536870912,e.lanes|=t,io|=t)}function wr(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}
vendor: 7,715 bytes, line 48
48function O0(e,t,n){var i=t.pendingProps;switch(Gl(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return rt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),va(ft),Ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_n(t)?xs(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_i())),rt(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(xs(t),u!==null?(rt(t),vp(t,u)):(rt(t),qd(t,c,null,i,n))):u?u!==e.memoizedState?(xs(t),rt(t),vp(t,u)):(rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&xs(t),rt(t),qd(t,c,e,i,n)),null;case 27:if(qa(t),n=fe.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&xs(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return rt(t),null}e=J.current,_n(t)?rr(t):(e=Tx(c,i,n),t.stateNode=e,xs(t))}return rt(t),null;case 5:if(qa(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&xs(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return rt(t),null}if(u=J.current,_n(t))rr(t);else{var p=cu(fe.current);switch(u){case 1:u=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=p.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?p.createElement(c,{is:i.is}):p.createElement(c)}}u[xt]=t,u[Tt]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)u.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=u;e:switch(Lt(u,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&xs(t)}}return rt(t),qd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&xs(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=fe.current,_n(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,c=gt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||xx(e.nodeValue,n)),e||cn(t,!0)}else e=cu(e).createTextNode(i),e[xt]=t,t.stateNode=e}return rt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=_n(t),n!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[xt]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),e=!1}else n=_i(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(o(558))}return rt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=_n(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[xt]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;rt(t),c=!1}else c=_i(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==c&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Xc(t,t.updateQueue),rt(t),null);case 4:return Ie(),e===null&&hf(t.stateNode.containerInfo),rt(t),null;case 10:return va(t.type),rt(t),null;case 19:if(B(dt),i=t.memoizedState,i===null)return rt(t),null;if(c=(t.flags&128)!==0,u=i.rendering,u===null)if(c)wr(i,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Jl(e),u!==null){for(t.flags|=128,wr(i,!1),e=u.updateQueue,t.updateQueue=e,Xc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ps(n,e),n=n.sibling;return oe(dt,dt.current&1|2),Ue&&Ua(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&G()>Wc&&(t.flags|=128,c=!0,wr(i,!1),t.lanes=4194304)}else{if(!c)if(e=Jl(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Xc(t,e),wr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ue)return rt(t),null}else 2*G()-i.renderingStartTime>Wc&&n!==536870912&&(t.flags|=128,c=!0,wr(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=G(),e.sibling=null,n=dt.current,oe(dt,c?n&1|2:n&1),Ue&&Ua(t,i.treeForkCount),e):(rt(t),null);case 22:case 23:return Ut(t),Zl(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),n=t.updateQueue,n!==null&&Xc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&B(Pn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),va(ft),rt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function R0(e,t){switch(Gl(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(ft),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qa(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(o(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(dt),null;case 4:return Ie(),null;case 10:return va(t.type),null;case 22:case 23:return Ut(t),Zl(),e!==null&&B(Pn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va(ft),null;case 25:return null;default:return null}}function jp(e,t){switch(Gl(t),t.tag){case 3:va(ft),Ie();break;case 26:case 27:case 5:qa(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:B(dt);break;case 10:va(t.type);break;case 22:case 23:Ut(t),Zl(),e!==null&&B(Pn);break;case 24:va(ft)}}function Sr(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e){i=void 0;var u=n.create,p=n.inst;i=u(),p.destroy=i}n=n.next}while(n!==c)}}catch(v){Je(t,t.return,v)}}function Qs(e,t,n){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var u=c.next;i=u;do{if((i.tag&e)===e){var p=i.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,c=t;var k=n,U=v;try{U()}catch(I){Je(c,k,I)}}}i=i.next}while(i!==u)}}catch(I){Je(t,t.return,I)}}function Ap(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{De(t,n)}catch(i){Je(e,e.return,i)}}}
vendor: 19,492 bytes, line 48
48function Np(e,t,n){n.props=Qi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Je(e,t,i)}}function Tr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(c){Je(e,t,c)}}function Yn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(c){Je(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Je(e,t,c)}else n.current=null}function kp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(c){Je(e,e.return,c)}}function Id(e,t,n){try{var i=e.stateNode;ty(i,e.type,n,t),i[Tt]=t}catch(c){Je(e,e.return,c)}}function wp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ni(e.type)||e.tag===4}function Yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ni(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ea));else if(i!==4&&(i===27&&ni(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xd(e,t,n),e=e.sibling;e!==null;)Xd(e,t,n),e=e.sibling}function $c(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&ni(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function Sp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Lt(t,i,n),t[xt]=e,t[Tt]=n}catch(u){Je(e,e.return,u)}}var bs=!1,jt=!1,$d=!1,Tp=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function z0(e,t){if(e=e.containerInfo,bf=xu,e=Ul(e),Bl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var c=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var p=0,v=-1,k=-1,U=0,I=0,Q=e,L=null;t:for(;;){for(var V;Q!==n||c!==0&&Q.nodeType!==3||(v=p+c),Q!==u||i!==0&&Q.nodeType!==3||(k=p+i),Q.nodeType===3&&(p+=Q.nodeValue.length),(V=Q.firstChild)!==null;)L=Q,Q=V;for(;;){if(Q===e)break t;if(L===n&&++U===c&&(v=p),L===u&&++I===i&&(k=p),(V=Q.nextSibling)!==null)break;Q=L,L=Q.parentNode}Q=V}n=v===-1||k===-1?null:{start:v,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(gf={focusedElem:e,selectionRange:n},xu=!1,Dt=t;Dt!==null;)if(t=Dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dt=e;else for(;Dt!==null;){switch(t=Dt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var pe=Qi(n.type,c);e=i.getSnapshotBeforeUpdate(pe,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){Je(n,n.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)jf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Dt=e;break}Dt=t.return}}function Cp(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ys(e,n),i&4&&Sr(5,n);break;case 1:if(ys(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Je(n,n.return,p)}else{var c=Qi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Je(n,n.return,p)}}i&64&&Ap(n),i&512&&Tr(n,n.return);break;case 3:if(ys(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{De(e,t)}catch(p){Je(n,n.return,p)}}break;case 27:t===null&&i&4&&Sp(n);case 26:case 5:ys(e,n),t===null&&i&4&&kp(n),i&512&&Tr(n,n.return);break;case 12:ys(e,n);break;case 31:ys(e,n),i&4&&Mp(e,n);break;case 13:ys(e,n),i&4&&Op(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=G0.bind(null,n),cy(e,n))));break;case 22:if(i=n.memoizedState!==null||bs,!i){t=t!==null&&t.memoizedState!==null||jt,c=bs;var u=jt;bs=i,(jt=t)&&!u?vs(e,n,(n.subtreeFlags&8772)!==0):ys(e,n),bs=c,jt=u}break;case 30:break;default:ys(e,n)}}function Ep(e){var t=e.alternate;t!==null&&(e.alternate=null,Ep(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ai(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,ra=!1;function gs(e,t,n){for(n=n.child;n!==null;)Dp(e,t,n),n=n.sibling}function Dp(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount($a,n)}catch{}switch(n.tag){case 26:jt||Yn(n,t),gs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:jt||Yn(n,t);var i=ct,c=ra;ni(n.type)&&(ct=n.stateNode,ra=!1),gs(e,t,n),Ur(n.stateNode),ct=i,ra=c;break;case 5:jt||Yn(n,t);case 6:if(i=ct,c=ra,ct=null,gs(e,t,n),ct=i,ra=c,ct!==null)if(ra)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(n.stateNode)}catch(u){Je(n,t,u)}else try{ct.removeChild(n.stateNode)}catch(u){Je(n,t,u)}break;case 18:ct!==null&&(ra?(e=ct,Ax(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ho(e)):Ax(ct,n.stateNode));break;case 4:i=ct,c=ra,ct=n.stateNode.containerInfo,ra=!0,gs(e,t,n),ct=i,ra=c;break;case 0:case 11:case 14:case 15:Qs(2,n,t),jt||Qs(4,n,t),gs(e,t,n);break;case 1:jt||(Yn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Np(n,t,i)),gs(e,t,n);break;case 21:gs(e,t,n);break;case 22:jt=(i=jt)||n.memoizedState!==null,gs(e,t,n),jt=i;break;default:gs(e,t,n)}}function Mp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ho(e)}catch(n){Je(t,t.return,n)}}}function Op(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ho(e)}catch(n){Je(t,t.return,n)}}function F0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Tp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Tp),t;default:throw Error(o(435,e.tag))}}function Qc(e,t){var n=F0(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var c=K0.bind(null,e,i);i.then(c,c)}})}function ca(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var c=n[i],u=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(ni(v.type)){ct=v.stateNode,ra=!1;break e}break;case 5:ct=v.stateNode,ra=!1;break e;case 3:case 4:ct=v.stateNode.containerInfo,ra=!0;break e}v=v.return}if(ct===null)throw Error(o(160));Dp(u,p,c),ct=null,ra=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rp(t,e),t=t.sibling}var pn=null;function Rp(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ca(t,e),ua(e),i&4&&(Qs(3,e,e.return),Sr(3,e),Qs(5,e,e.return));break;case 1:ca(t,e),ua(e),i&512&&(jt||n===null||Yn(n,n.return)),i&64&&bs&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var c=pn;if(ca(t,e),ua(e),i&512&&(jt||n===null||Yn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":u=c.getElementsByTagName("title")[0],(!u||u[Qa]||u[xt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(i),c.head.insertBefore(u,c.querySelector("head > title"))),Lt(u,i,n),u[xt]=e,ut(u),i=u;break e;case"link":var p=Rx("link","href",c).get(i+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(u=p[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(v,1);break t}}u=c.createElement(i),Lt(u,i,n),c.head.appendChild(u);break;case"meta":if(p=Rx("meta","content",c).get(i+(n.content||""))){for(v=0;v<p.length;v++)if(u=p[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(v,1);break t}}u=c.createElement(i),Lt(u,i,n),c.head.appendChild(u);break;default:throw Error(o(468,i))}u[xt]=e,ut(u),i=u}e.stateNode=i}else zx(c,e.type,e.stateNode);else e.stateNode=Ox(c,i,e.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?zx(c,e.type,e.stateNode):Ox(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Id(e,e.memoizedProps,n.memoizedProps)}break;case 27:ca(t,e),ua(e),i&512&&(jt||n===null||Yn(n,n.return)),n!==null&&i&4&&Id(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ca(t,e),ua(e),i&512&&(jt||n===null||Yn(n,n.return)),e.flags&32){c=e.stateNode;try{Cn(c,"")}catch(pe){Je(e,e.return,pe)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,Id(e,c,n!==null?n.memoizedProps:c)),i&1024&&($d=!0);break;case 6:if(ca(t,e),ua(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(pe){Je(e,e.return,pe)}}break;case 3:if(fu=null,c=pn,pn=uu(t.containerInfo),ca(t,e),pn=c,ua(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ho(t.containerInfo)}catch(pe){Je(e,e.return,pe)}$d&&($d=!1,zp(e));break;case 4:i=pn,pn=uu(e.stateNode.containerInfo),ca(t,e),ua(e),pn=i;break;case 12:ca(t,e),ua(e);break;case 31:ca(t,e),ua(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qc(e,i)));break;case 13:ca(t,e),ua(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Jc=G()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qc(e,i)));break;case 22:c=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,U=bs,I=jt;if(bs=U||c,jt=I||k,ca(t,e),jt=I,bs=U,ua(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||k||bs||jt||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(u=k.stateNode,c)p=u.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=k.stateNode;var Q=k.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(pe){Je(k,k.return,pe)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=c?"":k.memoizedProps}catch(pe){Je(k,k.return,pe)}}}else if(t.tag===18){if(n===null){k=t;try{var V=k.stateNode;c?Nx(V,!0):Nx(k.stateNode,!1)}catch(pe){Je(k,k.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Qc(e,n))));break;case 19:ca(t,e),ua(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qc(e,i)));break;case 30:break;case 21:break;default:ca(t,e),ua(e)}}function ua(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(wp(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,u=Yd(e);$c(e,u,c);break;case 5:var p=n.stateNode;n.flags&32&&(Cn(p,""),n.flags&=-33);var v=Yd(e);$c(e,v,p);break;case 3:case 4:var k=n.stateNode.containerInfo,U=Yd(e);Xd(e,U,k);break;default:throw Error(o(161))}}catch(I){Je(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ys(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cp(e,t.alternate,t),t=t.sibling}function Zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qs(4,t,t.return),Zi(t);break;case 1:Yn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Np(t,t.return,n),Zi(t);break;case 27:Ur(t.stateNode);case 26:case 5:Yn(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(t)}e=e.sibling}}function vs(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,u=t,p=u.flags;switch(u.tag){case 0:case 11:case 15:vs(c,u,n),Sr(4,u);break;case 1:if(vs(c,u,n),i=u,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){Je(i,i.return,U)}if(i=u,c=i.updateQueue,c!==null){var v=i.stateNode;try{var k=c.shared.hiddenCallbacks;if(k!==null)for(c.shared.hiddenCallbacks=null,c=0;c<k.length;c++)he(k[c],v)}catch(U){Je(i,i.return,U)}}n&&p&64&&Ap(u),Tr(u,u.return);break;case 27:Sp(u);case 26:case 5:vs(c,u,n),n&&i===null&&p&4&&kp(u),Tr(u,u.return);break;case 12:vs(c,u,n);break;case 31:vs(c,u,n),n&&p&4&&Mp(c,u);break;case 13:vs(c,u,n),n&&p&4&&Op(c,u);break;case 22:u.memoizedState===null&&vs(c,u,n),Tr(u,u.return);break;case 30:break;default:vs(c,u,n)}t=t.sibling}}function Qd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Gi(n))}function Zd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e))}function xn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fp(e,t,n,i),t=t.sibling}function Fp(e,t,n,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,n,i),c&2048&&Sr(9,t);break;case 1:xn(e,t,n,i);break;case 3:xn(e,t,n,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e)));break;case 12:if(c&2048){xn(e,t,n,i),e=t.stateNode;try{var u=t.memoizedProps,p=u.id,v=u.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){Je(t,t.return,k)}}else xn(e,t,n,i);break;case 31:xn(e,t,n,i);break;case 13:xn(e,t,n,i);break;case 23:break;case 22:u=t.stateNode,p=t.alternate,t.memoizedState!==null?u._visibility&2?xn(e,t,n,i):Cr(e,t):u._visibility&2?xn(e,t,n,i):(u._visibility|=2,ao(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Qd(p,t);break;case 24:xn(e,t,n,i),c&2048&&Zd(t.alternate,t);break;default:xn(e,t,n,i)}}function ao(e,t,n,i,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,p=t,v=n,k=i,U=p.flags;switch(p.tag){case 0:case 11:case 15:ao(u,p,v,k,c),Sr(8,p);break;case 23:break;case 22:var I=p.stateNode;p.memoizedState!==null?I._visibility&2?ao(u,p,v,k,c):Cr(u,p):(I._visibility|=2,ao(u,p,v,k,c)),c&&U&2048&&Qd(p.alternate,p);break;case 24:ao(u,p,v,k,c),c&&U&2048&&Zd(p.alternate,p);break;default:ao(u,p,v,k,c)}t=t.sibling}}function Cr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,c=i.flags;switch(i.tag){case 22:Cr(n,i),c&2048&&Qd(i.alternate,i);break;case 24:Cr(n,i),c&2048&&Zd(i.alternate,i);break;default:Cr(n,i)}t=t.sibling}}var Er=8192;function no(e,t,n){if(e.subtreeFlags&Er)for(e=e.child;e!==null;)Up(e,t,n),e=e.sibling}function Up(e,t,n){switch(e.tag){case 26:no(e,t,n),e.flags&Er&&e.memoizedState!==null&&jy(n,pn,e.memoizedState,e.memoizedProps);break;case 5:no(e,t,n);break;case 3:case 4:var i=pn;pn=uu(e.stateNode.containerInfo),no(e,t,n),pn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Er,Er=16777216,no(e,t,n),Er=i):no(e,t,n));break;default:no(e,t,n)}}function Bp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Dt=i,_p(i,e)}Bp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lp(e),e=e.sibling}function Lp(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&Qs(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zc(e)):Dr(e);break;default:Dr(e)}}function Zc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Dt=i,_p(i,e)}Bp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qs(8,t,t.return),Zc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zc(t));break;default:Zc(t)}e=e.sibling}}function _p(e,t){for(;Dt!==null;){var n=Dt;switch(n.tag){case 0:case 11:case 15:Qs(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Gi(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Dt=i;else e:for(n=e;Dt!==null;){i=Dt;var c=i.sibling,u=i.return;if(Ep(i),i===n){Dt=null;break e}if(c!==null){c.return=u,Dt=c;break e}Dt=u}}}var U0={getCacheForType:function(e){var t=Nt(ft),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Nt(ft).controller.signal}},B0=typeof WeakMap=="function"?WeakMap:Map,Ye=0,tt=null,Le=null,Ve=0,Ze=0,Aa=null,Zs=!1,so=!1,Jd=!1,js=0,ht=0,Js=0,Ji=0,Wd=0,Na=0,io=0,Mr=null,da=null,ef=!1,Jc=0,Vp=0,Wc=1/0,eu=null,Ws=null,kt=0,ei=null,lo=null,As=0,tf=0,af=null,Hp=null,Or=0,nf=null;function ka(){return(Ye&2)!==0&&Ve!==0?Ve&-Ve:O.T!==null?uf():dl()}function Pp(){if(Na===0)if((Ve&536870912)===0||Ue){var e=gi;gi<<=1,(gi&3932160)===0&&(gi=262144),Na=e}else Na=536870912;return e=Et.current,e!==null&&(e.flags|=32),Na}function fa(e,t,n){(e===tt&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(oo(e,0),ti(e,Ve,Na,!1)),Sa(e,n),((Ye&2)===0||e!==tt)&&(e===tt&&((Ye&2)===0&&(Ji|=n),ht===4&&ti(e,Ve,Na,!1)),Xn(e))}function Gp(e,t,n){if((Ye&6)!==0)throw Error(o(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ss(e,t),c=i?V0(e,t):lf(e,t,!0),u=i;do{if(c===0){so&&!i&&ti(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!L0(n)){c=lf(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;c=Mr;var k=v.current.memoizedState.isDehydrated;if(k&&(oo(v,p).flags|=256),p=lf(v,p,!1),p!==2){if(Jd&&!k){v.errorRecoveryDisabledLanes|=u,Ji|=u,c=4;break e}
vendor: 13,603 bytes, line 48
48u=da,da=c,u!==null&&(da===null?da=u:da.push.apply(da,u))}c=p}if(u=!1,c!==2)continue}}if(c===1){oo(e,0),ti(e,t,0,!0);break}e:{switch(i=e,u=c,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ti(i,t,Na,!Zs);break e;case 2:da=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=Jc+300-G(),10<c)){if(ti(i,t,Na,!Zs),yi(i,0,!0)!==0)break e;As=t,i.timeoutHandle=vx(Kp.bind(null,i,n,da,eu,ef,t,Na,Ji,io,Zs,u,"Throttled",-0,0),c);break e}Kp(i,n,da,eu,ef,t,Na,Ji,io,Zs,u,null,-0,0)}}break}while(!0);Xn(e)}function Kp(e,t,n,i,c,u,p,v,k,U,I,Q,L,V){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ea},Up(t,u,Q);var pe=(u&62914560)===u?Jc-G():(u&4194048)===u?Vp-G():0;if(pe=Ay(Q,pe),pe!==null){As=u,e.cancelPendingCommit=pe(Jp.bind(null,e,t,u,n,i,c,p,v,k,I,Q,null,L,V)),ti(e,u,p,!U);return}}Jp(e,t,u,n,i,c,p,v,k)}function L0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var c=n[i],u=c.getSnapshot;c=c.value;try{if(!Ft(u(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ti(e,t,n,i){t&=~Wd,t&=~Ji,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var u=31-Mt(c),p=1<<u;i[u]=-1,c&=~p}n!==0&&Nn(e,n,t)}function tu(){return(Ye&6)===0?(Rr(0),!1):!0}function sf(){if(Le!==null){if(Ze===0)var e=Le.return;else e=Le,ya=Hn=null,vd(e),ms=null,Xs=0,e=Le;for(;e!==null;)jp(e.alternate,e),e=e.return;Le=null}}function oo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,sy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),As=0,sf(),tt=e,Le=n=ot(e.current,null),Ve=t,Ze=0,Aa=null,Zs=!1,so=Ss(e,t),Jd=!1,io=Na=Wd=Ji=Js=ht=0,da=Mr=null,ef=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-Mt(i),u=1<<c;t|=e[c],i&=~u}return js=t,sn(),n}function qp(e,t){Se=null,O.H=Nr,t===fs||t===qi?(t=xr(),Ze=3):t===Xl?(t=xr(),Ze=4):Ze=t===Ud?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Aa=t,Le===null&&(ht=1,Kc(e,Zt(t,e.current)))}function Ip(){var e=Et.current;return e===null?!0:(Ve&4194048)===Ve?re===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?e===re:!1}function Yp(){var e=O.H;return O.H=Nr,e===null?Nr:e}function Xp(){var e=O.A;return O.A=U0,e}function au(){ht=4,Zs||(Ve&4194048)!==Ve&&Et.current!==null||(so=!0),(Js&134217727)===0&&(Ji&134217727)===0||tt===null||ti(tt,Ve,Na,!1)}function lf(e,t,n){var i=Ye;Ye|=2;var c=Yp(),u=Xp();(tt!==e||Ve!==t)&&(eu=null,oo(e,t)),t=!1;var p=ht;e:do try{if(Ze!==0&&Le!==null){var v=Le,k=Aa;switch(Ze){case 8:sf(),p=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var U=Ze;if(Ze=0,Aa=null,ro(e,v,k,U),n&&so){p=0;break e}break;default:U=Ze,Ze=0,Aa=null,ro(e,v,k,U)}}_0(),p=ht;break}catch(I){qp(e,I)}while(!0);return t&&e.shellSuspendCounter++,ya=Hn=null,Ye=i,O.H=c,O.A=u,Le===null&&(tt=null,Ve=0,sn()),p}function _0(){for(;Le!==null;)$p(Le)}function V0(e,t){var n=Ye;Ye|=2;var i=Yp(),c=Xp();tt!==e||Ve!==t?(eu=null,Wc=G()+500,oo(e,t)):so=Ss(e,t);e:do try{if(Ze!==0&&Le!==null){t=Le;var u=Aa;t:switch(Ze){case 1:Ze=0,Aa=null,ro(e,t,u,1);break;case 2:case 9:if(hr(u)){Ze=0,Aa=null,Qp(t);break}t=function(){Ze!==2&&Ze!==9||tt!==e||(Ze=7),Xn(e)},u.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:hr(u)?(Ze=0,Aa=null,Qp(t)):(Ze=0,Aa=null,ro(e,t,u,7));break;case 5:var p=null;switch(Le.tag){case 26:p=Le.memoizedState;case 5:case 27:var v=Le;if(p?Fx(p):v.stateNode.complete){Ze=0,Aa=null;var k=v.sibling;if(k!==null)Le=k;else{var U=v.return;U!==null?(Le=U,nu(U)):Le=null}break t}}Ze=0,Aa=null,ro(e,t,u,5);break;case 6:Ze=0,Aa=null,ro(e,t,u,6);break;case 8:sf(),ht=6;break e;default:throw Error(o(462))}}H0();break}catch(I){qp(e,I)}while(!0);return ya=Hn=null,O.H=i,O.A=c,Ye=n,Le!==null?0:(tt=null,Ve=0,sn(),ht)}function H0(){for(;Le!==null&&!ol();)$p(Le)}function $p(e){var t=yp(e.alternate,e,js);e.memoizedProps=e.pendingProps,t===null?nu(e):Le=t}function Qp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mp(n,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=mp(n,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:vd(t);default:jp(n,t),t=Le=Ps(t,js),t=yp(n,t,js)}e.memoizedProps=e.pendingProps,t===null?nu(e):Le=t}function ro(e,t,n,i){ya=Hn=null,vd(t),ms=null,Xs=0;var c=t.return;try{if(E0(e,c,t,n,Ve)){ht=1,Kc(e,Zt(n,e.current)),Le=null;return}}catch(u){if(c!==null)throw Le=c,u;ht=1,Kc(e,Zt(n,e.current)),Le=null;return}t.flags&32768?(Ue||i===1?e=!0:so||(Ve&536870912)!==0?e=!1:(Zs=e=!0,(i===2||i===9||i===3||i===6)&&(i=Et.current,i!==null&&i.tag===13&&(i.flags|=16384))),Zp(t,e)):nu(t)}function nu(e){var t=e;do{if((t.flags&32768)!==0){Zp(t,Zs);return}e=t.return;var n=O0(t.alternate,t,js);if(n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);ht===0&&(ht=5)}function Zp(e,t){do{var n=R0(e.alternate,e);if(n!==null){n.flags&=32767,Le=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Le=e;return}Le=e=n}while(e!==null);ht=6,Le=null}function Jp(e,t,n,i,c,u,p,v,k){e.cancelPendingCommit=null;do su();while(kt!==0);if((Ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Bi,uc(e,n,u,p,v,k),e===tt&&(Le=tt=null,Ve=0),lo=t,ei=e,As=n,tf=u,af=c,Hp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,q0(st,function(){return nx(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,c=Z.p,Z.p=2,p=Ye,Ye|=4;try{z0(e,t,n)}finally{Ye=p,Z.p=c,O.T=i}}kt=1,Wp(),ex(),tx()}}function Wp(){if(kt===1){kt=0;var e=ei,t=lo,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var i=Z.p;Z.p=2;var c=Ye;Ye|=4;try{Rp(t,e);var u=gf,p=Ul(e.containerInfo),v=u.focusedElem,k=u.selectionRange;if(p!==v&&v&&v.ownerDocument&&Zo(v.ownerDocument.documentElement,v)){if(k!==null&&Bl(v)){var U=k.start,I=k.end;if(I===void 0&&(I=U),"selectionStart"in v)v.selectionStart=U,v.selectionEnd=Math.min(I,v.value.length);else{var Q=v.ownerDocument||document,L=Q&&Q.defaultView||window;if(L.getSelection){var V=L.getSelection(),pe=v.textContent.length,Ce=Math.min(k.start,pe),et=k.end===void 0?Ce:Math.min(k.end,pe);!V.extend&&Ce>et&&(p=et,et=Ce,Ce=p);var D=Fl(v,Ce),E=Fl(v,et);if(D&&E&&(V.rangeCount!==1||V.anchorNode!==D.node||V.anchorOffset!==D.offset||V.focusNode!==E.node||V.focusOffset!==E.offset)){var z=Q.createRange();z.setStart(D.node,D.offset),V.removeAllRanges(),Ce>et?(V.addRange(z),V.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),V.addRange(z))}}}}for(Q=[],V=v;V=V.parentNode;)V.nodeType===1&&Q.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var X=Q[v];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}xu=!!bf,gf=bf=null}finally{Ye=c,Z.p=i,O.T=n}}e.current=t,kt=2}}function ex(){if(kt===2){kt=0;var e=ei,t=lo,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var i=Z.p;Z.p=2;var c=Ye;Ye|=4;try{Cp(e,t.alternate,t)}finally{Ye=c,Z.p=i,O.T=n}}kt=3}}function tx(){if(kt===4||kt===3){kt=0,K();var e=ei,t=lo,n=As,i=Hp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?kt=5:(kt=0,lo=ei=null,ax(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ws=null),ji(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,c=Z.p,Z.p=2,O.T=null;try{for(var u=e.onRecoverableError,p=0;p<i.length;p++){var v=i[p];u(v.value,{componentStack:v.stack})}}finally{O.T=t,Z.p=c}}(As&3)!==0&&su(),Xn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===nf?Or++:(Or=0,nf=e):Or=0,Rr(0)}}function ax(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gi(t)))}function su(){return Wp(),ex(),tx(),nx()}function nx(){if(kt!==5)return!1;var e=ei,t=tf;tf=0;var n=ji(As),i=O.T,c=Z.p;try{Z.p=32>n?32:n,O.T=null,n=af,af=null;var u=ei,p=As;if(kt=0,lo=ei=null,As=0,(Ye&6)!==0)throw Error(o(331));var v=Ye;if(Ye|=4,Lp(u.current),Fp(u,u.current,p,n),Ye=v,Rr(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot($a,u)}catch{}return!0}finally{Z.p=c,O.T=i,ax(e,t)}}function sx(e,t,n){t=Zt(n,t),t=Fd(e.stateNode,t,2),e=d(e,t,2),e!==null&&(Sa(e,2),Xn(e))}function Je(e,t,n){if(e.tag===3)sx(e,e,n);else for(;t!==null;){if(t.tag===3){sx(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ws===null||!Ws.has(i))){e=Zt(n,e),n=ip(2),i=d(t,n,2),i!==null&&(lp(n,i,t,e),Sa(i,2),Xn(i));break}}t=t.return}}function of(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new B0;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(n)||(Jd=!0,c.add(n),e=P0.bind(null,e,t,n),t.then(e,e))}function P0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tt===e&&(Ve&n)===n&&(ht===4||ht===3&&(Ve&62914560)===Ve&&300>G()-Jc?(Ye&2)===0&&oo(e,0):Wd|=n,io===Ve&&(io=0)),Xn(e)}function ix(e,t){t===0&&(t=To()),e=ln(e,t),e!==null&&(Sa(e,t),Xn(e))}function G0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ix(e,n)}function K0(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),ix(e,n)}function q0(e,t){return es(e,t)}var iu=null,co=null,rf=!1,lu=!1,cf=!1,ai=0;function Xn(e){e!==co&&e.next===null&&(co===null?iu=co=e:co=co.next=e),lu=!0,rf||(rf=!0,Y0())}function Rr(e,t){if(!cf&&lu){cf=!0;do for(var n=!1,i=iu;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var u=0;else{var p=i.suspendedLanes,v=i.pingedLanes;u=(1<<31-Mt(42|e)+1)-1,u&=c&~(p&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,cx(i,u))}else u=Ve,u=yi(i,i===tt?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||Ss(i,u)||(n=!0,cx(i,u));i=i.next}while(n);cf=!1}}function I0(){lx()}function lx(){lu=rf=!1;var e=0;ai!==0&&ny()&&(e=ai);for(var t=G(),n=null,i=iu;i!==null;){var c=i.next,u=ox(i,t);u===0?(i.next=null,n===null?iu=c:n.next=c,c===null&&(co=n)):(n=i,(e!==0||(u&3)!==0)&&(lu=!0)),i=c}kt!==0&&kt!==5||Rr(e),ai!==0&&(ai=0)}function ox(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var p=31-Mt(u),v=1<<p,k=c[p];k===-1?((v&n)===0||(v&i)!==0)&&(c[p]=ul(v,t)):k<=t&&(e.expiredLanes|=v),u&=~v}if(t=tt,n=Ve,n=yi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&An(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ss(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&An(i),ji(n)){case 2:case 8:n=Oe;break;case 32:n=st;break;case 268435456:n=rl;break;default:n=st}return i=rx.bind(null,e),n=es(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&An(i),e.callbackPriority=2,e.callbackNode=null,2}function rx(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(su()&&e.callbackNode!==n)return null;var i=Ve;return i=yi(e,e===tt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Gp(e,i,t),ox(e,G()),e.callbackNode!=null&&e.callbackNode===n?rx.bind(null,e):null)}function cx(e,t){if(su())return null;Gp(e,t,!0)}function Y0(){iy(function(){(Ye&6)!==0?es(le,I0):lx()})}function uf(){if(ai===0){var e=Is;e===0&&(e=cl,cl<<=1,(cl&261888)===0&&(cl=256)),ai=e}return ai}function ux(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:En(""+e)}function dx(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function X0(e,t,n,i,c){if(t==="submit"&&n&&n.stateNode===c){var u=ux((c[Tt]||null).action),p=i.submitter;p&&(t=(t=p[Tt]||null)?ux(t.formAction):p.getAttribute("formAction"),t!==null&&(u=t,p=null));var v=new Di("action","action",null,i,c);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ai!==0){var k=p?dx(c,p):new FormData(c);Ed(n,{pending:!0,data:k,method:c.method,action:u},null,k)}}else typeof u=="function"&&(v.preventDefault(),k=p?dx(c,p):new FormData(c),Ed(n,{pending:!0,data:k,method:c.method,action:u},u,k))},currentTarget:c}]})}}for(var df=0;df<Pl.length;df++){var ff=Pl[df],$0=ff.toLowerCase(),Q0=ff[0].toUpperCase()+ff.slice(1);xa($0,"on"+Q0)}xa(tr,"onAnimationEnd"),xa(_l,"onAnimationIteration"),xa(Vl,"onAnimationStart"),xa("dblclick","onDoubleClick"),xa("focusin","onFocus"),xa("focusout","onBlur"),xa(ar,"onTransitionRun"),xa(Hl,"onTransitionStart"),xa(nr,"onTransitionCancel"),xa(sr,"onTransitionEnd"),wn("onMouseEnter",["mouseout","mouseover"]),wn("onMouseLeave",["mouseout","mouseover"]),wn("onPointerEnter",["pointerout","pointerover"]),wn("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Z0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zr));function fx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],c=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var p=i.length-1;0<=p;p--){var v=i[p],k=v.instance,U=v.currentTarget;if(v=v.listener,k!==u&&c.isPropagationStopped())break e;u=v,c.currentTarget=U;try{u(c)}catch(I){Ui(I)}c.currentTarget=null,u=k}else for(p=0;p<i.length;p++){if(v=i[p],k=v.instance,U=v.currentTarget,v=v.listener,k!==u&&c.isPropagationStopped())break e;u=v,c.currentTarget=U;try{u(c)}catch(I){Ui(I)}c.currentTarget=null,u=k}}}}function _e(e,t){var n=t[Ts];n===void 0&&(n=t[Ts]=new Set);var i=e+"__bubble";n.has(i)||(mx(t,e,2,!1),n.add(i))}function mf(e,t,n){var i=0;t&&(i|=4),mx(n,e,i,t)}var ou="_reactListening"+Math.random().toString(36).slice(2);function hf(e){if(!e[ou]){e[ou]=!0,ml.forEach(function(n){n!=="selectionchange"&&(Z0.has(n)||mf(n,!1,e),mf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ou]||(t[ou]=!0,mf("selectionchange",!1,t))}}function mx(e,t,n,i){switch(Px(t)){case 2:var c=wy;break;case 8:c=Sy;break;default:c=Ef}n=c.bind(null,t,n,e),c=void 0,!mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function pf(e,t,n,i,c){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var v=i.stateNode.containerInfo;if(v===c)break;if(p===4)for(p=i.return;p!==null;){var k=p.tag;if((k===3||k===4)&&p.stateNode.containerInfo===c)return;p=p.return}for(;v!==null;){if(p=kn(v),p===null)return;if(k=p.tag,k===5||k===6||k===26||k===27){i=u=p;continue e}v=v.parentNode}}i=i.return}fc(function(){var U=u,I=Bo(n),Q=[];e:{var L=Oc.get(e);if(L!==void 0){var V=Di,pe=e;switch(e){case"keypress":if(Ci(n)===0)break e;case"keydown":case"keyup":V=xc;break;case"focusin":pe="focus",V=Fs;break;case"focusout":pe="blur",V=Fs;break;case"beforeblur":case"afterblur":V=Fs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Po;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=hc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Ml;break;case tr:case _l:case Vl:V=Cl;break;case sr:V=yc;break;case"scroll":case"scrollend":V=Vo;break;case"wheel":V=qo;break;case"copy":case"cut":case"paste":V=td;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Ko;break;case"toggle":case"beforetoggle":V=jc}var Ce=(t&4)!==0,et=!Ce&&(e==="scroll"||e==="scrollend"),D=Ce?L!==null?L+"Capture":null:L;Ce=[];for(var E=U,z;E!==null;){var X=E;if(z=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||z===null||D===null||(X=pa(E,D),X!=null&&Ce.push(Fr(E,X,z))),et)break;E=E.return}0<Ce.length&&(L=new V(L,pe,null,n,I),Q.push({event:L,listeners:Ce}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",L&&n!==Si&&(pe=n.relatedTarget||n.fromElement)&&(kn(pe)||pe[ha]))break e;if((V||L)&&(L=I.window===I?I:(L=I.ownerDocument)?L.defaultView||L.parentWindow:window,V?(pe=n.relatedTarget||n.toElement,V=U,pe=pe?kn(pe):null,pe!==null&&(et=h(pe),Ce=pe.tag,pe!==et||Ce!==5&&Ce!==27&&Ce!==6)&&(pe=null)):(V=null,pe=U),V!==pe)){if(Ce=Po,X="onMouseLeave",D="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Ko,X="onPointerLeave",D="onPointerEnter",E="pointer"),et=V==null?L:Za(V),z=pe==null?L:Za(pe),L=new Ce(X,E+"leave",V,n,I),L.target=et,L.relatedTarget=z,X=null,kn(I)===U&&(Ce=new Ce(D,E+"enter",pe,n,I),Ce.target=z,Ce.relatedTarget=et,X=Ce),et=X,V&&pe)t:{for(Ce=J0,D=V,E=pe,z=0,X=D;X;X=Ce(X))z++;X=0;for(var Ae=E;Ae;Ae=Ce(Ae))X++;for(;0<z-X;)D=Ce(D),z--;for(;0<X-z;)E=Ce(E),X--;for(;z--;){if(D===E||E!==null&&D===E.alternate){Ce=D;break t}D=Ce(D),E=Ce(E)}Ce=null}else Ce=null;V!==null&&hx(Q,L,V,Ce,!1),pe!==null&&et!==null&&hx(Q,et,pe,Ce,!0)}}
vendor: 5,189 bytes, lines 48-49
48e:{if(L=U?Za(U):window,V=L.nodeName&&L.nodeName.toLowerCase(),V==="select"||V==="input"&&L.type==="file")var Ge=Xo;else if(Yo(L))if($o)Ge=dd;else{Ge=an;var ge=cd}else V=L.nodeName,!V||V.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?U&&en(U.elementType)&&(Ge=Xo):Ge=ud;if(Ge&&(Ge=Ge(e,U))){Sc(Q,Ge,n,I);break e}ge&&ge(e,L,U),e==="focusout"&&U&&L.type==="number"&&U.memoizedProps.value!=null&&wi(L,"number",L.value)}switch(ge=U?Za(U):window,e){case"focusin":(Yo(ge)||ge.contentEditable==="true")&&(Ra=ge,ns=U,ss=null);break;case"focusout":ss=ns=Ra=null;break;case"mousedown":Fi=!0;break;case"contextmenu":case"mouseup":case"dragend":Fi=!1,Ll(Q,n,I);break;case"selectionchange":if(Jo)break;case"keydown":case"keyup":Ll(Q,n,I)}var Fe;if(Ol)e:{switch(e){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else On?Oi(e,n)&&(He="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(He="onCompositionStart");He&&(Nc&&n.locale!=="ko"&&(On||He!=="onCompositionStart"?He==="onCompositionEnd"&&On&&(Fe=Lo()):(Qt=I,wl="value"in Qt?Qt.value:Qt.textContent,On=!0)),ge=ru(U,He),0<ge.length&&(He=new Us(He,e,null,n,I),Q.push({event:He,listeners:ge}),Fe?He.data=Fe:(Fe=wc(n),Fe!==null&&(He.data=Fe)))),(Fe=Rl?od(e,n):Io(e,n))&&(He=ru(U,"onBeforeInput"),0<He.length&&(ge=new Us("onBeforeInput","beforeinput",null,n,I),Q.push({event:ge,listeners:He}),ge.data=Fe)),X0(Q,e,U,n,I)}fx(Q,t)})}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ru(e,t){for(var n=t+"Capture",i=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=pa(e,n),c!=null&&i.unshift(Fr(e,c,u)),c=pa(e,t),c!=null&&i.push(Fr(e,c,u))),e.tag===3)return i;e=e.return}return[]}function J0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hx(e,t,n,i,c){for(var u=t._reactName,p=[];n!==null&&n!==i;){var v=n,k=v.alternate,U=v.stateNode;if(v=v.tag,k!==null&&k===i)break;v!==5&&v!==26&&v!==27||U===null||(k=U,c?(U=pa(n,u),U!=null&&p.unshift(Fr(n,U,k))):c||(U=pa(n,u),U!=null&&p.push(Fr(n,U,k)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var W0=/\r\n?/g,ey=/\u0000|\uFFFD/g;function px(e){return(typeof e=="string"?e:""+e).replace(W0,` 49`).replace(ey,"")}function xx(e,t){return t=px(t),px(e)===t}function We(e,t,n,i,c,u){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Cn(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Cn(e,""+i);break;case"className":Cs(e,"class",i);break;case"tabIndex":Cs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cs(e,n,i);break;case"style":zt(e,i,u);break;case"data":if(t!=="object"){Cs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=En(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&We(e,t,"name",c.name,c,null),We(e,t,"formEncType",c.formEncType,c,null),We(e,t,"formMethod",c.formMethod,c,null),We(e,t,"formTarget",c.formTarget,c,null)):(We(e,t,"encType",c.encType,c,null),We(e,t,"method",c.method,c,null),We(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=En(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Ea);break;case"onScroll":i!=null&&_e("scroll",e);break;case"onScrollEnd":i!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=En(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Sn(e,"popover",i);break;case"xlinkActuate":Ca(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Ca(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Ca(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Ca(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Ca(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Ca(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Ca(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Ca(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Ca(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Sn(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Uo.get(n)||n,Sn(e,n,i))}}function xf(e,t,n,i,c,u){switch(n){case"style":zt(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Cn(e,i):(typeof i=="number"||typeof i=="bigint")&&Cn(e,""+i);break;case"onScroll":i!=null&&_e("scroll",e);break;case"onScrollEnd":i!=null&&_e("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hl.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[Tt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof i=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,c);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Sn(e,n,i)}}}function Lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var i=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var p=n[u];if(p!=null)switch(u){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:We(e,t,u,p,n,null)}}c&&We(e,t,"srcSet",n.srcSet,n,null),i&&We(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var v=u=p=c=null,k=null,U=null;for(i in n)if(n.hasOwnProperty(i)){var I=n[i];if(I!=null)switch(i){case"name":c=I;break;case"type":p=I;break;case"checked":k=I;break;case"defaultChecked":U=I;break;case"value":u=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,t));break;default:We(e,t,i,I,n,null)}}yl(e,u,v,k,U,p,c,!1);return;case"select":_e("invalid",e),i=p=u=null;for(c in n)if(n.hasOwnProperty(c)&&(v=n[c],v!=null))switch(c){case"value":u=v;break;case"defaultValue":p=v;break;case"multiple":i=v;default:We(e,t,c,v,n,null)}t=u,n=p,e.multiple=!!i,t!=null?Tn(e,!!i,t,!1):n!=null&&Tn(e,!!i,n,!0);return;case"textarea":_e("invalid",e),u=c=i=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":i=v;break;case"defaultValue":c=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:We(e,t,p,v,n,null)}jl(e,i,c,u);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(i=n[k],i!=null))switch(k){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:We(e,t,k,i,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(i=0;i<zr.length;i++)_e(zr[i],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in n)if(n.hasOwnProperty(U)&&(i=n[U],i!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:We(e,t,U,i,n,null)}return;default:if(en(t)){for(I in n)n.hasOwnProperty(I)&&(i=n[I],i!==void 0&&xf(e,t,I,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&We(e,t,v,i,n,null))}function ty(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,p=null,v=null,k=null,U=null,I=null;for(V in n){var Q=n[V];if(n.hasOwnProperty(V)&&Q!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":k=Q;default:i.hasOwnProperty(V)||We(e,t,V,null,i,Q)}}for(var L in i){var V=i[L];if(Q=n[L],i.hasOwnProperty(L)&&(V!=null||Q!=null))switch(L){case"type":u=V;break;case"name":c=V;break;case"checked":U=V;break;case"defaultChecked":I=V;break;case"value":p=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:V!==Q&&We(e,t,L,V,i,Q)}}ki(e,p,v,k,U,I,u,c);return;case"select":V=p=v=L=null;for(u in n)if(k=n[u],n.hasOwnProperty(u)&&k!=null)switch(u){case"value":break;case"multiple":V=k;default:i.hasOwnProperty(u)||We(e,t,u,null,i,k)}for(c in i)if(u=i[c],k=n[c],i.hasOwnProperty(c)&&(u!=null||k!=null))switch(c){case"value":L=u;break;case"defaultValue":v=u;break;case"multiple":p=u;default:u!==k&&We(e,t,c,u,i,k)}t=v,n=p,i=V,L!=null?Tn(e,!!n,L,!1):!!i!=!!n&&(t!=null?Tn(e,!!n,t,!0):Tn(e,!!n,n?[]:"",!1));return;case"textarea":V=L=null;for(v in n)if(c=n[v],n.hasOwnProperty(v)&&c!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:We(e,t,v,null,i,c)}for(p in i)if(c=i[p],u=n[p],i.hasOwnProperty(p)&&(c!=null||u!=null))switch(p){case"value":L=c;break;case"defaultValue":V=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==u&&We(e,t,p,c,i,u)}vl(e,L,V);return;case"option":for(var pe in n)if(L=n[pe],n.hasOwnProperty(pe)&&L!=null&&!i.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:We(e,t,pe,null,i,L)}for(k in i)if(L=i[k],V=n[k],i.hasOwnProperty(k)&&L!==V&&(L!=null||V!=null))switch(k){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:We(e,t,k,L,i,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in n)L=n[Ce],n.hasOwnProperty(Ce)&&L!=null&&!i.hasOwnProperty(Ce)&&We(e,t,Ce,null,i,L);for(U in i)if(L=i[U],V=n[U],i.hasOwnProperty(U)&&L!==V&&(L!=null||V!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:We(e,t,U,L,i,V)}return;default:if(en(t)){for(var et in n)L=n[et],n.hasOwnProperty(et)&&L!==void 0&&!i.hasOwnProperty(et)&&xf(e,t,et,void 0,i,L);for(I in i)L=i[I],V=n[I],!i.hasOwnProperty(I)||L===V||L===void 0&&V===void 0||xf(e,t,I,L,i,V);return}}for(var D in n)L=n[D],n.hasOwnProperty(D)&&L!=null&&!i.hasOwnProperty(D)&&We(e,t,D,null,i,L);for(Q in i)L=i[Q],V=n[Q],!i.hasOwnProperty(Q)||L===V||L==null&&V==null||We(e,t,Q,L,i,V)}function bx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ay(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var c=n[i],u=c.transferSize,p=c.initiatorType,v=c.duration;if(u&&v&&bx(p)){for(p=0,v=c.responseEnd,i+=1;i<n.length;i++){var k=n[i],U=k.startTime;if(U>v)break;var I=k.transferSize,Q=k.initiatorType;I&&bx(Q)&&(k=k.responseEnd,p+=I*(k<v?1:(v-U)/(k-U)))}if(--i,t+=8*(u+p)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var bf=null,gf=null;
vendor: 13,694 bytes, line 49
49function cu(e){return e.nodeType===9?e:e.ownerDocument}function gx(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yx(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function yf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vf=null;function ny(){var e=window.event;return e&&e.type==="popstate"?e===vf?!1:(vf=e,!0):(vf=null,!1)}var vx=typeof setTimeout=="function"?setTimeout:void 0,sy=typeof clearTimeout=="function"?clearTimeout:void 0,jx=typeof Promise=="function"?Promise:void 0,iy=typeof queueMicrotask=="function"?queueMicrotask:typeof jx<"u"?function(e){return jx.resolve(null).then(e).catch(ly)}:vx;function ly(e){setTimeout(function(){throw e})}function ni(e){return e==="head"}function Ax(e,t){var n=t,i=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(c),ho(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ur(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ur(n);for(var u=n.firstChild;u;){var p=u.nextSibling,v=u.nodeName;u[Qa]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=p}}else n==="body"&&Ur(e.ownerDocument.body);n=c}while(n);ho(t)}function Nx(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function jf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":jf(n),Ai(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function oy(e,t,n,i){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=_a(e.nextSibling),e===null)break}return null}function ry(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=_a(e.nextSibling),e===null))return null;return e}function kx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_a(e.nextSibling),e===null))return null;return e}function Af(e){return e.data==="$?"||e.data==="$~"}function Nf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cy(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function _a(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kf=null;function wx(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return _a(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Tx(e,t,n){switch(t=cu(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ur(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ai(e)}var Va=new Map,Cx=new Set;function uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ns=Z.d;Z.d={f:uy,r:dy,D:fy,C:my,L:hy,m:py,X:by,S:xy,M:gy};function uy(){var e=Ns.f(),t=tu();return e||t}function dy(e){var t=as(e);t!==null&&t.tag===5&&t.type==="form"?qh(t):Ns.r(e)}var uo=typeof document>"u"?null:document;function Ex(e,t,n){var i=uo;if(i&&typeof t=="string"&&t){var c=Ht(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Cx.has(c)||(Cx.add(c),e={rel:e,crossOrigin:n,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),Lt(t,"link",e),ut(t),i.head.appendChild(t)))}}function fy(e){Ns.D(e),Ex("dns-prefetch",e,null)}function my(e,t){Ns.C(e,t),Ex("preconnect",e,t)}function hy(e,t,n){Ns.L(e,t,n);var i=uo;if(i&&e&&t){var c='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ht(n.imageSizes)+'"]')):c+='[href="'+Ht(e)+'"]';var u=c;switch(t){case"style":u=fo(e);break;case"script":u=mo(e)}Va.has(u)||(e=j({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Va.set(u,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Br(u))||t==="script"&&i.querySelector(Lr(u))||(t=i.createElement("link"),Lt(t,"link",e),ut(t),i.head.appendChild(t)))}}function py(e,t){Ns.m(e,t);var n=uo;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ht(i)+'"][href="'+Ht(e)+'"]',u=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=mo(e)}if(!Va.has(u)&&(e=j({rel:"modulepreload",href:e},t),Va.set(u,e),n.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Lr(u)))return}i=n.createElement("link"),Lt(i,"link",e),ut(i),n.head.appendChild(i)}}}function xy(e,t,n){Ns.S(e,t,n);var i=uo;if(i&&e){var c=Ja(i).hoistableStyles,u=fo(e);t=t||"default";var p=c.get(u);if(!p){var v={loading:0,preload:null};if(p=i.querySelector(Br(u)))v.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Va.get(u))&&wf(e,n);var k=p=i.createElement("link");ut(k),Lt(k,"link",e),k._p=new Promise(function(U,I){k.onload=U,k.onerror=I}),k.addEventListener("load",function(){v.loading|=1}),k.addEventListener("error",function(){v.loading|=2}),v.loading|=4,du(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:v},c.set(u,p)}}}function by(e,t){Ns.X(e,t);var n=uo;if(n&&e){var i=Ja(n).hoistableScripts,c=mo(e),u=i.get(c);u||(u=n.querySelector(Lr(c)),u||(e=j({src:e,async:!0},t),(t=Va.get(c))&&Sf(e,t),u=n.createElement("script"),ut(u),Lt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(c,u))}}function gy(e,t){Ns.M(e,t);var n=uo;if(n&&e){var i=Ja(n).hoistableScripts,c=mo(e),u=i.get(c);u||(u=n.querySelector(Lr(c)),u||(e=j({src:e,async:!0,type:"module"},t),(t=Va.get(c))&&Sf(e,t),u=n.createElement("script"),ut(u),Lt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(c,u))}}function Dx(e,t,n,i){var c=(c=fe.current)?uu(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fo(n.href),n=Ja(c).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fo(n.href);var u=Ja(c).hoistableStyles,p=u.get(e);if(p||(c=c.ownerDocument||c,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,p),(u=c.querySelector(Br(e)))&&!u._p&&(p.instance=u,p.state.loading=5),Va.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Va.set(e,n),u||yy(c,e,n,p.state))),t&&i===null)throw Error(o(528,""));return p}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=mo(n),n=Ja(c).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function fo(e){return'href="'+Ht(e)+'"'}function Br(e){return'link[rel="stylesheet"]['+e+"]"}function Mx(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function yy(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Lt(t,"link",n),ut(t),e.head.appendChild(t))}function mo(e){return'[src="'+Ht(e)+'"]'}function Lr(e){return"script[async]"+e}function Ox(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(i)return t.instance=i,ut(i),i;var c=j({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ut(i),Lt(i,"style",c),du(i,n.precedence,e),t.instance=i;case"stylesheet":c=fo(n.href);var u=e.querySelector(Br(c));if(u)return t.state.loading|=4,t.instance=u,ut(u),u;i=Mx(n),(c=Va.get(c))&&wf(i,c),u=(e.ownerDocument||e).createElement("link"),ut(u);var p=u;return p._p=new Promise(function(v,k){p.onload=v,p.onerror=k}),Lt(u,"link",i),t.state.loading|=4,du(u,n.precedence,e),t.instance=u;case"script":return u=mo(n.src),(c=e.querySelector(Lr(u)))?(t.instance=c,ut(c),c):(i=n,(c=Va.get(u))&&(i=j({},n),Sf(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),ut(c),Lt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,du(i,n.precedence,e));return t.instance}function du(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,u=c,p=0;p<i.length;p++){var v=i[p];if(v.dataset.precedence===t)u=v;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function wf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fu=null;function Rx(e,t,n){if(fu===null){var i=new Map,c=fu=new Map;c.set(n,i)}else c=fu,i=c.get(n),i||(i=new Map,c.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[Qa]||u[xt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var p=u.getAttribute(t)||"";p=e+p;var v=i.get(p);v?v.push(u):i.set(p,[u])}}return i}function zx(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function vy(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Fx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jy(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=fo(i.href),u=t.querySelector(Br(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,ut(u);return}u=t.ownerDocument||t,i=Mx(i),(c=Va.get(c))&&wf(i,c),u=u.createElement("link"),ut(u);var p=u;p._p=new Promise(function(v,k){p.onload=v,p.onerror=k}),Lt(u,"link",i),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),
vendor: 10,842 bytes, line 49
49(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=mu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Tf=0;function Ay(e,t){return e.stylesheets&&e.count===0&&pu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&pu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Tf===0&&(Tf=62500*ay());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Tf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function mu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hu=null;function pu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hu=new Map,t.forEach(Ny,e),hu=null,mu.call(e))}function Ny(e,t){if(!(t.state.loading&4)){var n=hu.get(e);if(n)var i=n.get(null);else{n=new Map,hu.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var p=c[u];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),i=p)}i&&n.set(null,i)}c=t.instance,p=c.getAttribute("data-precedence"),u=n.get(p)||i,u===i&&n.set(null,c),n.set(p,c),this.count++,i=mu.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var _r={$$typeof:C,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function ky(e,t,n,i,c,u,p,v,k){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.hiddenUpdates=vi(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function Ux(e,t,n,i,c,u,p,v,k,U,I,Q){return e=new ky(e,t,n,p,k,U,I,Q,v),t=1,u===!0&&(t|=24),u=Pt(3,null,null,t),e.current=u,u.stateNode=e,t=cr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:t},$l(u),e}function Bx(e){return e?(e=Un,e):Un}function Lx(e,t,n,i,c,u){c=Bx(c),i.context===null?i.context=c:i.pendingContext=c,i=mn(t),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=d(e,i,t),n!==null&&(fa(n,e,t),M(n,e,t))}function _x(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cf(e,t){_x(e,t),(e=e.alternate)&&_x(e,t)}function Vx(e){if(e.tag===13||e.tag===31){var t=ln(e,67108864);t!==null&&fa(t,e,67108864),Cf(e,67108864)}}function Hx(e){if(e.tag===13||e.tag===31){var t=ka();t=Ee(t);var n=ln(e,t);n!==null&&fa(n,e,t),Cf(e,t)}}var xu=!0;function wy(e,t,n,i){var c=O.T;O.T=null;var u=Z.p;try{Z.p=2,Ef(e,t,n,i)}finally{Z.p=u,O.T=c}}function Sy(e,t,n,i){var c=O.T;O.T=null;var u=Z.p;try{Z.p=8,Ef(e,t,n,i)}finally{Z.p=u,O.T=c}}function Ef(e,t,n,i){if(xu){var c=Df(i);if(c===null)pf(e,t,i,bu,n),Gx(e,i);else if(Cy(c,e,t,n,i))i.stopPropagation();else if(Gx(e,i),t&4&&-1<Ty.indexOf(e)){for(;c!==null;){var u=as(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var p=Ot(u.pendingLanes);if(p!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var k=1<<31-Mt(p);v.entanglements[1]|=k,p&=~k}Xn(u),(Ye&6)===0&&(Wc=G()+500,Rr(0))}}break;case 31:case 13:v=ln(u,2),v!==null&&fa(v,u,2),tu(),Cf(u,2)}if(u=Df(i),u===null&&pf(e,t,i,bu,n),u===c)break;c=u}c!==null&&i.stopPropagation()}else pf(e,t,i,null,n)}}function Df(e){return e=Bo(e),Mf(e)}var bu=null;function Mf(e){if(bu=null,e=kn(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=x(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bu=e,null}function Px(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($()){case le:return 2;case Oe:return 8;case st:case Xt:return 32;case rl:return 268435456;default:return 32}default:return 32}}var Of=!1,si=null,ii=null,li=null,Vr=new Map,Hr=new Map,oi=[],Ty="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".split(" ");function Gx(e,t){switch(e){case"focusin":case"focusout":si=null;break;case"dragenter":case"dragleave":ii=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hr.delete(t.pointerId)}}function Pr(e,t,n,i,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[c]},t!==null&&(t=as(t),t!==null&&Vx(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Cy(e,t,n,i,c){switch(t){case"focusin":return si=Pr(si,e,t,n,i,c),!0;case"dragenter":return ii=Pr(ii,e,t,n,i,c),!0;case"mouseover":return li=Pr(li,e,t,n,i,c),!0;case"pointerover":var u=c.pointerId;return Vr.set(u,Pr(Vr.get(u)||null,e,t,n,i,c)),!0;case"gotpointercapture":return u=c.pointerId,Hr.set(u,Pr(Hr.get(u)||null,e,t,n,i,c)),!0}return!1}function Kx(e){var t=kn(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Eo(e.priority,function(){Hx(n)});return}}else if(t===31){if(t=x(n),t!==null){e.blockedOn=t,Eo(e.priority,function(){Hx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Df(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Si=i,n.target.dispatchEvent(i),Si=null}else return t=as(n),t!==null&&Vx(t),e.blockedOn=n,!1;t.shift()}return!0}function qx(e,t,n){gu(e)&&n.delete(t)}function Ey(){Of=!1,si!==null&&gu(si)&&(si=null),ii!==null&&gu(ii)&&(ii=null),li!==null&&gu(li)&&(li=null),Vr.forEach(qx),Hr.forEach(qx)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,Of||(Of=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Ey)))}var vu=null;function Ix(e){vu!==e&&(vu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){vu===e&&(vu=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(Mf(i||n)===null)continue;break}var u=as(n);u!==null&&(e.splice(t,3),t-=3,Ed(u,{pending:!0,data:c,method:n.method,action:i},i,c))}}))}function ho(e){function t(k){return yu(k,e)}si!==null&&yu(si,e),ii!==null&&yu(ii,e),li!==null&&yu(li,e),Vr.forEach(t),Hr.forEach(t);for(var n=0;n<oi.length;n++){var i=oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<oi.length&&(n=oi[0],n.blockedOn===null);)Kx(n),n.blockedOn===null&&oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var c=n[i],u=n[i+1],p=c[Tt]||null;if(typeof u=="function")p||Ix(n);else if(p){var v=null;if(u&&u.hasAttribute("formAction")){if(c=u,p=u[Tt]||null)v=p.formAction;else if(Mf(c)!==null)continue}else v=p.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),Ix(n)}}}function Yx(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(p){return c=p})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Rf(e){this._internalRoot=e}ju.prototype.render=Rf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,i=ka();Lx(n,i,e,t,null,null)},ju.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lx(e.current,2,null,e,null,null),tu(),t[ha]=null}};function ju(e){this._internalRoot=e}ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=dl();e={blockedOn:null,target:e,priority:t};for(var n=0;n<oi.length&&t!==0&&t<oi[n].priority;n++);oi.splice(n,0,e),n===0&&Kx(e)}};var Xx=l.version;if(Xx!=="19.2.7")throw Error(o(527,Xx,"19.2.7"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=b(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Dy={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.7"};
vendor: 5,183 bytes, line 49
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{$a=Au.inject(Dy),St=Au}catch{}}return Kr.createRoot=function(e,t){if(!f(e))throw Error(o(299));var n=!1,i="",c=tp,u=ap,p=np;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Ux(e,1,!1,null,null,n,i,null,c,u,p,Yx),e[ha]=t.current,hf(e),new Rf(t)},Kr.hydrateRoot=function(e,t,n){if(!f(e))throw Error(o(299));var i=!1,c="",u=tp,p=ap,v=np,k=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=Ux(e,1,!0,t,n??null,i,c,k,u,p,v,Yx),t.context=Bx(null),n=t.current,i=ka(),i=Ee(i),c=mn(i),c.callback=null,d(n,c,i),n=i,t.current.lanes=n,Sa(t,n),Xn(t),e[ha]=t.current,hf(e),new ju(t)},Kr.version="19.2.7",Kr}var sb;function Hy(){if(sb)return Bf.exports;sb=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),Bf.exports=Vy(),Bf.exports}var Py=Hy();const _m=A.createContext({});function Vm(s){const l=A.useRef(null);return l.current===null&&(l.current=s()),l.current}const Gy=typeof window<"u",Tg=Gy?A.useLayoutEffect:A.useEffect,$u=A.createContext(null);function Hm(s,l){s.indexOf(l)===-1&&s.push(l)}function _u(s,l){const r=s.indexOf(l);r>-1&&s.splice(r,1)}const Jn=(s,l,r)=>r>l?l:r<s?s:r;let Pm=()=>{};const fi={},Cg=s=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s),Eg=s=>typeof s=="object"&&s!==null,Dg=s=>/^0[^.\s]+$/u.test(s);function Mg(s){let l;return()=>(l===void 0&&(l=s()),l)}const Ka=s=>s,sc=(...s)=>s.reduce((l,r)=>o=>r(l(o))),ec=(s,l,r)=>{const o=l-s;return o?(r-s)/o:1};class Gm{constructor(){this.subscriptions=[]}add(l){return Hm(this.subscriptions,l),()=>_u(this.subscriptions,l)}notify(l,r,o){const f=this.subscriptions.length;if(f)if(f===1)this.subscriptions[0](l,r,o);else for(let h=0;h<f;h++){const m=this.subscriptions[h];m&&m(l,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const wa=s=>s*1e3,Ga=s=>s/1e3,Og=(s,l)=>l?s*(1e3/l):0,Rg=(s,l,r)=>(((1-3*r+3*l)*s+(3*r-6*l))*s+3*l)*s,Ky=1e-7,qy=12;function Iy(s,l,r,o,f){let h,m,x=0;do m=l+(r-l)/2,h=Rg(m,o,f)-s,h>0?r=m:l=m;while(Math.abs(h)>Ky&&++x<qy);return m}function ic(s,l,r,o){if(s===l&&r===o)return Ka;const f=h=>Iy(h,0,1,s,r);return h=>h===0||h===1?h:Rg(f(h),l,o)}const zg=s=>l=>l<=.5?s(2*l)/2:(2-s(2*(1-l)))/2,Fg=s=>l=>1-s(1-l),Ug=ic(.33,1.53,.69,.99),Km=Fg(Ug),Bg=zg(Km),Lg=s=>s>=1?1:(s*=2)<1?.5*Km(s):.5*(2-Math.pow(2,-10*(s-1))),qm=s=>1-Math.sin(Math.acos(s)),_g=Fg(qm),Vg=zg(qm),Yy=ic(.42,0,1,1),Xy=ic(0,0,.58,1),Hg=ic(.42,0,.58,1),$y=s=>Array.isArray(s)&&typeof s[0]!="number",Pg=s=>Array.isArray(s)&&typeof s[0]=="number",Qy={linear:Ka,easeIn:Yy,easeInOut:Hg,easeOut:Xy,circIn:qm,circInOut:Vg,circOut:_g,backIn:Km,backInOut:Bg,backOut:Ug,anticipate:Lg},Zy=s=>typeof s=="string",ib=s=>{if(Pg(s)){Pm(s.length===4);const[l,r,o,f]=s;return ic(l,r,o,f)}else if(Zy(s))return Qy[s];return s},Nu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Jy(s,l){let r=new Set,o=new Set,f=!1,h=!1;const m=new WeakSet;let x={delta:0,timestamp:0,isProcessing:!1};function g(y){m.has(y)&&(b.schedule(y),s()),y(x)}const b={schedule:(y,j=!1,N=!1)=>{const S=N&&f?r:o;return j&&m.add(y),S.add(y),y},cancel:y=>{o.delete(y),m.delete(y)},process:y=>{if(x=y,f){h=!0;return}f=!0;const j=r;r=o,o=j,r.forEach(g),r.clear(),f=!1,h&&(h=!1,b.process(y))}};return b}const Wy=40;function Gg(s,l){let r=!1,o=!0;const f={delta:0,timestamp:0,isProcessing:!1},h=()=>r=!0,m=Nu.reduce((C,q)=>(C[q]=Jy(h),C),{}),{setup:x,read:g,resolveKeyframes:b,preUpdate:y,update:j,preRender:N,render:w,postRender:S}=m,F=()=>{const C=fi.useManualTiming,q=C?f.timestamp:performance.now();r=!1,C||(f.delta=o?1e3/60:Math.max(Math.min(q-f.timestamp,Wy),1)),f.timestamp=q,f.isProcessing=!0,x.process(f),g.process(f),b.process(f),y.process(f),j.process(f),N.process(f),w.process(f),S.process(f),f.isProcessing=!1,r&&l&&(o=!1,s(F))},P=()=>{r=!0,o=!0,f.isProcessing||s(F)};return{schedule:Nu.reduce((C,q)=>{const te=m[q];return C[q]=(ee,Y=!1,R=!1)=>(r||P(),te.schedule(ee,Y,R)),C},{}),cancel:C=>{for(let q=0;q<Nu.length;q++)m[Nu[q]].cancel(C)},state:f,steps:m}}const{schedule:nt,cancel:mi,state:_t,steps:Hf}=Gg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ka,!0);let Mu;function ev(){Mu=void 0}const na={now:()=>(Mu===void 0&&na.set(_t.isProcessing||fi.useManualTiming?_t.timestamp:performance.now()),Mu),set:s=>{Mu=s,queueMicrotask(ev)}},Kg=s=>l=>typeof l=="string"&&l.startsWith(s),qg=Kg("--"),tv=Kg("var(--"),Im=s=>tv(s)?av.test(s.split("/*")[0].trim()):!1,av=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
vendor: 26,133 bytes, line 49
49function lb(s){return typeof s!="string"?!1:s.split("/*")[0].includes("var(--")}const Ao={test:s=>typeof s=="number",parse:parseFloat,transform:s=>s},tc={...Ao,transform:s=>Jn(0,1,s)},ku={...Ao,default:1},Qr=s=>Math.round(s*1e5)/1e5,Ym=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nv(s){return s==null}const sv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xm=(s,l)=>r=>!!(typeof r=="string"&&sv.test(r)&&r.startsWith(s)||l&&!nv(r)&&Object.prototype.hasOwnProperty.call(r,l)),Ig=(s,l,r)=>o=>{if(typeof o!="string")return o;const[f,h,m,x]=o.match(Ym);return{[s]:parseFloat(f),[l]:parseFloat(h),[r]:parseFloat(m),alpha:x!==void 0?parseFloat(x):1}},iv=s=>Jn(0,255,s),Pf={...Ao,transform:s=>Math.round(iv(s))},al={test:Xm("rgb","red"),parse:Ig("red","green","blue"),transform:({red:s,green:l,blue:r,alpha:o=1})=>"rgba("+Pf.transform(s)+", "+Pf.transform(l)+", "+Pf.transform(r)+", "+Qr(tc.transform(o))+")"};function lv(s){let l="",r="",o="",f="";return s.length>5?(l=s.substring(1,3),r=s.substring(3,5),o=s.substring(5,7),f=s.substring(7,9)):(l=s.substring(1,2),r=s.substring(2,3),o=s.substring(3,4),f=s.substring(4,5),l+=l,r+=r,o+=o,f+=f),{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:f?parseInt(f,16)/255:1}}const dm={test:Xm("#"),parse:lv,transform:al.transform},lc=s=>({test:l=>typeof l=="string"&&l.endsWith(s)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${s}`}),ws=lc("deg"),Zn=lc("%"),xe=lc("px"),ov=lc("vh"),rv=lc("vw"),ob={...Zn,parse:s=>Zn.parse(s)/100,transform:s=>Zn.transform(s*100)},xo={test:Xm("hsl","hue"),parse:Ig("hue","saturation","lightness"),transform:({hue:s,saturation:l,lightness:r,alpha:o=1})=>"hsla("+Math.round(s)+", "+Zn.transform(Qr(l))+", "+Zn.transform(Qr(r))+", "+Qr(tc.transform(o))+")"},At={test:s=>al.test(s)||dm.test(s)||xo.test(s),parse:s=>al.test(s)?al.parse(s):xo.test(s)?xo.parse(s):dm.parse(s),transform:s=>typeof s=="string"?s:s.hasOwnProperty("red")?al.transform(s):xo.transform(s),getAnimatableNone:s=>{const l=At.parse(s);return l.alpha=0,At.transform(l)}},cv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uv(s){var l,r;return isNaN(s)&&typeof s=="string"&&(((l=s.match(Ym))==null?void 0:l.length)||0)+(((r=s.match(cv))==null?void 0:r.length)||0)>0}const Yg="number",Xg="color",dv="var",fv="var(",rb="${}",mv=/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 vo(s){const l=s.toString(),r=[],o={color:[],number:[],var:[]},f=[];let h=0;const x=l.replace(mv,g=>(At.test(g)?(o.color.push(h),f.push(Xg),r.push(At.parse(g))):g.startsWith(fv)?(o.var.push(h),f.push(dv),r.push(g)):(o.number.push(h),f.push(Yg),r.push(parseFloat(g))),++h,rb)).split(rb);return{values:r,split:x,indexes:o,types:f}}function hv(s){return vo(s).values}function $g({split:s,types:l}){const r=s.length;return o=>{let f="";for(let h=0;h<r;h++)if(f+=s[h],o[h]!==void 0){const m=l[h];m===Yg?f+=Qr(o[h]):m===Xg?f+=At.transform(o[h]):f+=o[h]}return f}}function pv(s){return $g(vo(s))}const xv=s=>typeof s=="number"?0:At.test(s)?At.getAnimatableNone(s):s,bv=(s,l)=>typeof s=="number"?l!=null&&l.trim().endsWith("/")?s:0:xv(s);function gv(s){const l=vo(s);return $g(l)(l.values.map((o,f)=>bv(o,l.split[f])))}const jn={test:uv,parse:hv,createTransformer:pv,getAnimatableNone:gv};function Gf(s,l,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?s+(l-s)*6*r:r<1/2?l:r<2/3?s+(l-s)*(2/3-r)*6:s}function yv({hue:s,saturation:l,lightness:r,alpha:o}){s/=360,l/=100,r/=100;let f=0,h=0,m=0;if(!l)f=h=m=r;else{const x=r<.5?r*(1+l):r+l-r*l,g=2*r-x;f=Gf(g,x,s+1/3),h=Gf(g,x,s),m=Gf(g,x,s-1/3)}return{red:Math.round(f*255),green:Math.round(h*255),blue:Math.round(m*255),alpha:o}}function Vu(s,l){return r=>r>0?l:s}const at=(s,l,r)=>s+(l-s)*r,Kf=(s,l,r)=>{const o=s*s,f=r*(l*l-o)+o;return f<0?0:Math.sqrt(f)},vv=[dm,al,xo],jv=s=>vv.find(l=>l.test(s));function cb(s){const l=jv(s);if(!l)return!1;let r=l.parse(s);return l===xo&&(r=yv(r)),r}const ub=(s,l)=>{const r=cb(s),o=cb(l);if(!r||!o)return Vu(s,l);const f={...r};return h=>(f.red=Kf(r.red,o.red,h),f.green=Kf(r.green,o.green,h),f.blue=Kf(r.blue,o.blue,h),f.alpha=at(r.alpha,o.alpha,h),al.transform(f))},fm=new Set(["none","hidden"]);function Av(s,l){return fm.has(s)?r=>r<=0?s:l:r=>r>=1?l:s}function Nv(s,l){return r=>at(s,l,r)}function $m(s){return typeof s=="number"?Nv:typeof s=="string"?Im(s)?Vu:At.test(s)?ub:Sv:Array.isArray(s)?Qg:typeof s=="object"?At.test(s)?ub:kv:Vu}function Qg(s,l){const r=[...s],o=r.length,f=s.map((h,m)=>$m(h)(h,l[m]));return h=>{for(let m=0;m<o;m++)r[m]=f[m](h);return r}}function kv(s,l){const r={...s,...l},o={};for(const f in r)s[f]!==void 0&&l[f]!==void 0&&(o[f]=$m(s[f])(s[f],l[f]));return f=>{for(const h in o)r[h]=o[h](f);return r}}function wv(s,l){const r=[],o={color:0,var:0,number:0};for(let f=0;f<l.values.length;f++){const h=l.types[f],m=s.indexes[h][o[h]],x=s.values[m]??0;r[f]=x,o[h]++}return r}const Sv=(s,l)=>{const r=jn.createTransformer(l),o=vo(s),f=vo(l);return o.indexes.var.length===f.indexes.var.length&&o.indexes.color.length===f.indexes.color.length&&o.indexes.number.length>=f.indexes.number.length?fm.has(s)&&!f.values.length||fm.has(l)&&!o.values.length?Av(s,l):sc(Qg(wv(o,f),f.values),r):Vu(s,l)};function Zg(s,l,r){return typeof s=="number"&&typeof l=="number"&&typeof r=="number"?at(s,l,r):$m(s)(s,l)}const Tv=s=>{const l=({timestamp:r})=>s(r);return{start:(r=!0)=>nt.update(l,r),stop:()=>mi(l),now:()=>_t.isProcessing?_t.timestamp:na.now()}},Jg=(s,l,r=10)=>{let o="";const f=Math.max(Math.round(l/r),2);for(let h=0;h<f;h++)o+=Math.round(s(h/(f-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Hu=2e4;function Qm(s){let l=0;const r=50;let o=s.next(l);for(;!o.done&&l<Hu;)l+=r,o=s.next(l);return l>=Hu?1/0:l}function Cv(s,l=100,r){const o=r({...s,keyframes:[0,l]}),f=Math.min(Qm(o),Hu);return{type:"keyframes",ease:h=>o.next(f*h).value/l,duration:Ga(f)}}const pt={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};function mm(s,l){return s*Math.sqrt(1-l*l)}const Ev=12;function Dv(s,l,r){let o=r;for(let f=1;f<Ev;f++)o=o-s(o)/l(o);return o}const qf=.001;function Mv({duration:s=pt.duration,bounce:l=pt.bounce,velocity:r=pt.velocity,mass:o=pt.mass}){let f,h,m=1-l;m=Jn(pt.minDamping,pt.maxDamping,m),s=Jn(pt.minDuration,pt.maxDuration,Ga(s)),m<1?(f=b=>{const y=b*m,j=y*s,N=y-r,w=mm(b,m),S=Math.exp(-j);return qf-N/w*S},h=b=>{const j=b*m*s,N=j*r+r,w=Math.pow(m,2)*Math.pow(b,2)*s,S=Math.exp(-j),F=mm(Math.pow(b,2),m);return(-f(b)+qf>0?-1:1)*((N-w)*S)/F}):(f=b=>{const y=Math.exp(-b*s),j=(b-r)*s+1;return-qf+y*j},h=b=>{const y=Math.exp(-b*s),j=(r-b)*(s*s);return y*j});const x=5/s,g=Dv(f,h,x);if(s=wa(s),isNaN(g))return{stiffness:pt.stiffness,damping:pt.damping,duration:s};{const b=Math.pow(g,2)*o;return{stiffness:b,damping:m*2*Math.sqrt(o*b),duration:s}}}const Ov=["duration","bounce"],Rv=["stiffness","damping","mass"];function db(s,l){return l.some(r=>s[r]!==void 0)}function zv(s){let l={velocity:pt.velocity,stiffness:pt.stiffness,damping:pt.damping,mass:pt.mass,isResolvedFromDuration:!1,...s};if(!db(s,Rv)&&db(s,Ov))if(l.velocity=0,s.visualDuration){const r=s.visualDuration,o=2*Math.PI/(r*1.2),f=o*o,h=2*Jn(.05,1,1-(s.bounce||0))*Math.sqrt(f);l={...l,mass:pt.mass,stiffness:f,damping:h}}else{const r=Mv({...s,velocity:0});l={...l,...r,mass:pt.mass},l.isResolvedFromDuration=!0}return l}function Pu(s=pt.visualDuration,l=pt.bounce){const r=typeof s!="object"?{visualDuration:s,keyframes:[0,1],bounce:l}:s;let{restSpeed:o,restDelta:f}=r;const h=r.keyframes[0],m=r.keyframes[r.keyframes.length-1],x={done:!1,value:h},{stiffness:g,damping:b,mass:y,duration:j,velocity:N,isResolvedFromDuration:w}=zv({...r,velocity:-Ga(r.velocity||0)}),S=N||0,F=b/(2*Math.sqrt(g*y)),P=m-h,H=Ga(Math.sqrt(g/y)),_=Math.abs(P)<5;o||(o=_?pt.restSpeed.granular:pt.restSpeed.default),f||(f=_?pt.restDelta.granular:pt.restDelta.default);let C,q,te,ee,Y,R;if(F<1)te=mm(H,F),ee=(S+F*H*P)/te,C=ne=>{const ve=Math.exp(-F*H*ne);return m-ve*(ee*Math.sin(te*ne)+P*Math.cos(te*ne))},Y=F*H*ee+P*te,R=F*H*P-ee*te,q=ne=>Math.exp(-F*H*ne)*(Y*Math.sin(te*ne)+R*Math.cos(te*ne));else if(F===1){C=ve=>m-Math.exp(-H*ve)*(P+(S+H*P)*ve);const ne=S+H*P;q=ve=>Math.exp(-H*ve)*(H*ne*ve-S)}else{const ne=H*Math.sqrt(F*F-1);C=ue=>{const Ne=Math.exp(-F*H*ue),O=Math.min(ne*ue,300);return m-Ne*((S+F*H*P)*Math.sinh(O)+ne*P*Math.cosh(O))/ne};const ve=(S+F*H*P)/ne,de=F*H*ve-P*ne,Me=F*H*P-ve*ne;q=ue=>{const Ne=Math.exp(-F*H*ue),O=Math.min(ne*ue,300);return Ne*(de*Math.sinh(O)+Me*Math.cosh(O))}}const W={calculatedDuration:w&&j||null,velocity:ne=>wa(q(ne)),next:ne=>{if(!w&&F<1){const de=Math.exp(-F*H*ne),Me=Math.sin(te*ne),ue=Math.cos(te*ne),Ne=m-de*(ee*Me+P*ue),O=wa(de*(Y*Me+R*ue));return x.done=Math.abs(O)<=o&&Math.abs(m-Ne)<=f,x.value=x.done?m:Ne,x}const ve=C(ne);if(w)x.done=ne>=j;else{const de=wa(q(ne));x.done=Math.abs(de)<=o&&Math.abs(m-ve)<=f}return x.value=x.done?m:ve,x},toString:()=>{const ne=Math.min(Qm(W),Hu),ve=Jg(de=>W.next(ne*de).value,ne,30);return ne+"ms "+ve},toTransition:()=>{}};return W}Pu.applyToOptions=s=>{const l=Cv(s,100,Pu);return s.ease=l.ease,s.duration=wa(l.duration),s.type="keyframes",s};const Fv=5;function Wg(s,l,r){const o=Math.max(l-Fv,0);return Og(r-s(o),l-o)}function hm({keyframes:s,velocity:l=0,power:r=.8,timeConstant:o=325,bounceDamping:f=10,bounceStiffness:h=500,modifyTarget:m,min:x,max:g,restDelta:b=.5,restSpeed:y}){const j=s[0],N={done:!1,value:j},w=R=>x!==void 0&&R<x||g!==void 0&&R>g,S=R=>x===void 0?g:g===void 0||Math.abs(x-R)<Math.abs(g-R)?x:g;let F=r*l;const P=j+F,H=m===void 0?P:m(P);H!==P&&(F=H-j);const _=R=>-F*Math.exp(-R/o),C=R=>H+_(R),q=R=>{const W=_(R),ne=C(R);N.done=Math.abs(W)<=b,N.value=N.done?H:ne};let te,ee;const Y=R=>{w(N.value)&&(te=R,ee=Pu({keyframes:[N.value,S(N.value)],velocity:Wg(C,R,N.value),damping:f,stiffness:h,restDelta:b,restSpeed:y}))};return Y(0),{calculatedDuration:null,next:R=>{let W=!1;return!ee&&te===void 0&&(W=!0,q(R),Y(R)),te!==void 0&&R>=te?ee.next(R-te):(!W&&q(R),N)}}}function Uv(s,l,r){const o=[],f=r||fi.mix||Zg,h=s.length-1;for(let m=0;m<h;m++){let x=f(s[m],s[m+1]);if(l){const g=Array.isArray(l)?l[m]||Ka:l;x=sc(g,x)}o.push(x)}return o}function Bv(s,l,{clamp:r=!0,ease:o,mixer:f}={}){const h=s.length;if(Pm(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const m=s[0]===s[1];s[0]>s[h-1]&&(s=[...s].reverse(),l=[...l].reverse());const x=Uv(l,o,f),g=x.length,b=y=>{if(m&&y<s[0])return l[0];let j=0;if(g>1)for(;j<s.length-2&&!(y<s[j+1]);j++);const N=ec(s[j],s[j+1],y);return x[j](N)};return r?y=>b(Jn(s[0],s[h-1],y)):b}function Lv(s,l){const r=s[s.length-1];for(let o=1;o<=l;o++){const f=ec(0,l,o);s.push(at(r,1,f))}}function _v(s){const l=[0];return Lv(l,s.length-1),l}function Vv(s,l){return s.map(r=>r*l)}function Hv(s,l){return s.map(()=>l||Hg).splice(0,s.length-1)}function Zr({duration:s=300,keyframes:l,times:r,ease:o="easeInOut"}){const f=$y(o)?o.map(ib):ib(o),h={done:!1,value:l[0]},m=Vv(r&&r.length===l.length?r:_v(l),s),x=Bv(m,l,{ease:Array.isArray(f)?f:Hv(l,f)});return{calculatedDuration:s,next:g=>(h.value=x(g),h.done=g>=s,h)}}const Pv=s=>s!==null;function Qu(s,{repeat:l,repeatType:r="loop"},o,f=1){const h=s.filter(Pv),x=f<0||l&&r!=="loop"&&l%2===1?0:h.length-1;return!x||o===void 0?h[x]:o}const Gv={decay:hm,inertia:hm,tween:Zr,keyframes:Zr,spring:Pu};function e1(s){typeof s.type=="string"&&(s.type=Gv[s.type])}class Zm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,r){return this.finished.then(l,r)}}const Kv=s=>s/100;class Gu extends Zm{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var o,f;const{motionValue:r}=this.options;r&&r.updatedAt!==na.now()&&this.tick(na.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(f=(o=this.options).onStop)==null||f.call(o))},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;e1(l);const{type:r=Zr,repeat:o=0,repeatDelay:f=0,repeatType:h,velocity:m=0}=l;let{keyframes:x}=l;const g=r||Zr;g!==Zr&&typeof x[0]!="number"&&(this.mixKeyframes=sc(Kv,Zg(x[0],x[1])),x=[0,100]);const b=g({...l,keyframes:x});h==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...x].reverse(),velocity:-m})),b.calculatedDuration===null&&(b.calculatedDuration=Qm(b));const{calculatedDuration:y}=b;this.calculatedDuration=y,this.resolvedDuration=y+f,this.totalDuration=this.resolvedDuration*(o+1)-f,this.generator=b}updateTime(l){const r=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(l,r=!1){const{generator:o,totalDuration:f,mixKeyframes:h,mirroredGenerator:m,resolvedDuration:x,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:b=0,keyframes:y,repeat:j,repeatType:N,repeatDelay:w,type:S,onUpdate:F,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-f/this.speed,this.startTime)),r?this.currentTime=l:this.updateTime(l);const H=this.currentTime-b*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?H<0:H>f;this.currentTime=Math.max(H,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let C=this.currentTime,q=o;if(j){const R=Math.min(this.currentTime,f)/x;let W=Math.floor(R),ne=R%1;!ne&&R>=1&&(ne=1),ne===1&&W--,W=Math.min(W,j+1),!!(W%2)&&(N==="reverse"?(ne=1-ne,w&&(ne-=w/x)):N==="mirror"&&(q=m)),C=Jn(0,1,ne)*x}let te;_?(this.delayState.value=y[0],te=this.delayState):te=q.next(C),h&&!_&&(te.value=h(te.value));let{done:ee}=te;!_&&g!==null&&(ee=this.playbackSpeed>=0?this.currentTime>=f:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return Y&&S!==hm&&(te.value=Qu(y,this.options,P,this.speed)),F&&F(te.value),Y&&this.finish(),te}then(l,r){return this.finished.then(l,r)}get duration(){return Ga(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ga(l)}get time(){return Ga(this.currentTime)}set time(l){l=wa(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=l,this.tick(l))}getGeneratorVelocity(){const l=this.currentTime;if(l<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(l);const r=this.generator.next(l).value;return Wg(o=>this.generator.next(o).value,l,r)}get speed(){return this.playbackSpeed}set speed(l){const r=this.playbackSpeed!==l;r&&this.driver&&this.updateTime(na.now()),this.playbackSpeed=l,r&&this.driver&&(this.time=Ga(this.currentTime))}play(){var f,h;if(this.isStopped)return;const{driver:l=Tv,startTime:r}=this.options;this.driver||(this.driver=l(m=>this.tick(m))),(h=(f=this.options).onPlay)==null||h.call(f);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(na.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var l,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(l=this.options).onComplete)==null||r.call(l)}cancel(){var l,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(l=this.options).onCancel)==null||r.call(l)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),l.observe(this)}}function qv(s){for(let l=1;l<s.length;l++)s[l]??(s[l]=s[l-1])}const nl=s=>s*180/Math.PI,pm=s=>{const l=nl(Math.atan2(s[1],s[0]));return xm(l)},Iv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:s=>(Math.abs(s[0])+Math.abs(s[3]))/2,rotate:pm,rotateZ:pm,skewX:s=>nl(Math.atan(s[1])),skewY:s=>nl(Math.atan(s[2])),skew:s=>(Math.abs(s[1])+Math.abs(s[2]))/2},xm=s=>(s=s%360,s<0&&(s+=360),s),fb=pm,mb=s=>Math.sqrt(s[0]*s[0]+s[1]*s[1]),hb=s=>Math.sqrt(s[4]*s[4]+s[5]*s[5]),Yv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mb,scaleY:hb,scale:s=>(mb(s)+hb(s))/2,rotateX:s=>xm(nl(Math.atan2(s[6],s[5]))),rotateY:s=>xm(nl(Math.atan2(-s[2],s[0]))),rotateZ:fb,rotate:fb,skewX:s=>nl(Math.atan(s[4])),skewY:s=>nl(Math.atan(s[1])),skew:s=>(Math.abs(s[1])+Math.abs(s[4]))/2};function bm(s){return s.includes("scale")?1:0}function gm(s,l){if(!s||s==="none")return bm(l);const r=s.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,f;if(r)o=Yv,f=r;else{const x=s.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Iv,f=x}if(!f)return bm(l);const h=o[l],m=f[1].split(",").map($v);return typeof h=="function"?h(m):m[h]}const Xv=(s,l)=>{const{transform:r="none"}=getComputedStyle(s);return gm(r,l)};function $v(s){return parseFloat(s.trim())}const No=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ko=new Set([...No,"pathRotation"]),pb=s=>s===Ao||s===xe,Qv=new Set(["x","y","z"]),Zv=No.filter(s=>!Qv.has(s));function Jv(s){const l=[];return Zv.forEach(r=>{const o=s.getValue(r);o!==void 0&&(l.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),l}const ui={width:({x:s},{paddingLeft:l="0",paddingRight:r="0",boxSizing:o})=>{const f=s.max-s.min;return o==="border-box"?f:f-parseFloat(l)-parseFloat(r)},height:({y:s},{paddingTop:l="0",paddingBottom:r="0",boxSizing:o})=>{const f=s.max-s.min;return o==="border-box"?f:f-parseFloat(l)-parseFloat(r)},top:(s,{top:l})=>parseFloat(l),left:(s,{left:l})=>parseFloat(l),bottom:({y:s},{top:l})=>parseFloat(l)+(s.max-s.min),right:({x:s},{left:l})=>parseFloat(l)+(s.max-s.min),x:(s,{transform:l})=>gm(l,"x"),y:(s,{transform:l})=>gm(l,"y")};ui.translateX=ui.x;ui.translateY=ui.y;const sl=new Set;let ym=!1,vm=!1,jm=!1;function t1(){if(vm){const s=Array.from(sl).filter(o=>o.needsMeasurement),l=new Set(s.map(o=>o.element)),r=new Map;l.forEach(o=>{const f=Jv(o);f.length&&(r.set(o,f),o.render())}),s.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const f=r.get(o);f&&f.forEach(([h,m])=>{var x;(x=o.getValue(h))==null||x.set(m)})}),s.forEach(o=>o.measureEndState()),s.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}vm=!1,ym=!1,sl.forEach(s=>s.complete(jm)),sl.clear()}function a1(){sl.forEach(s=>{s.readKeyframes(),s.needsMeasurement&&(vm=!0)})}function Wv(){jm=!0,a1(),t1(),jm=!1}class Jm{constructor(l,r,o,f,h,m=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=r,this.name=o,this.motionValue=f,this.element=h,this.isAsync=m}scheduleResolve(){this.state="scheduled",this.isAsync?(sl.add(this),ym||(ym=!0,nt.read(a1),nt.resolveKeyframes(t1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:o,motionValue:f}=this;if(l[0]===null){const h=f==null?void 0:f.get(),m=l[l.length-1];if(h!==void 0)l[0]=h;else if(o&&r){const x=o.readValue(r,m);x!=null&&(l[0]=x)}l[0]===void 0&&(l[0]=m),f&&h===void 0&&f.set(l[0])}qv(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),sl.delete(this)}cancel(){this.state==="scheduled"&&(sl.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ej=s=>s.startsWith("--");function n1(s,l,r){ej(l)?s.style.setProperty(l,r):s.style[l]=r}const tj={};function s1(s,l){const r=Mg(s);return()=>tj[l]??r()}const aj=s1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),i1=s1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xr=([s,l,r,o])=>`cubic-bezier(${s}, ${l}, ${r}, ${o})`,xb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xr([0,.65,.55,1]),circOut:Xr([.55,0,1,.45]),backIn:Xr([.31,.01,.66,-.59]),backOut:Xr([.33,1.53,.69,.99])};function l1(s,l){if(s)return typeof s=="function"?i1()?Jg(s,l):"ease-out":Pg(s)?Xr(s):Array.isArray(s)?s.map(r=>l1(r,l)||xb.easeOut):xb[s]}function nj(s,l,r,{delay:o=0,duration:f=300,repeat:h=0,repeatType:m="loop",ease:x="easeOut",times:g}={},b=void 0){const y={[l]:r};g&&(y.offset=g);const j=l1(x,f);Array.isArray(j)&&(y.easing=j);const N={delay:o,duration:f,easing:Array.isArray(j)?"linear":j,fill:"both",iterations:h+1,direction:m==="reverse"?"alternate":"normal"};return b&&(N.pseudoElement=b),s.animate(y,N)}function o1(s){return typeof s=="function"&&"applyToOptions"in s}function sj({type:s,...l}){return o1(s)&&i1()?s.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class r1 extends Zm{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:r,name:o,keyframes:f,pseudoElement:h,allowFlatten:m=!1,finalKeyframe:x,onComplete:g}=l;this.isPseudoElement=!!h,this.allowFlatten=m,this.options=l,Pm(typeof l.type!="string");const b=sj(l);this.animation=nj(r,o,f,b,h),b.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const y=Qu(f,this.options,x,this.speed);this.updateMotionValue&&this.updateMotionValue(y),n1(r,o,y),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var l,r;(r=(l=this.animation).finish)==null||r.call(l)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,o,f;const l=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(l!=null&&l.isConnected)&&((f=(o=this.animation).commitStyles)==null||f.call(o))}get duration(){var r,o;const l=((o=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:o.call(r).duration)||0;return Ga(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ga(l)}get time(){return Ga(Number(this.animation.currentTime)||0)}set time(l){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=wa(l),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,rangeStart:r,rangeEnd:o,observe:f}){var h;return this.allowFlatten&&((h=this.animation.effect)==null||h.updateTiming({easing:"linear"})),this.animation.onfinish=null,l&&aj()?(this.animation.timeline=l,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),Ka):f(this)}}const c1={anticipate:Lg,backInOut:Bg,circInOut:Vg};function ij(s){return s in c1}function lj(s){typeof s.ease=="string"&&ij(s.ease)&&(s.ease=c1[s.ease])}const If=10;class oj extends r1{constructor(l){lj(l),e1(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:o,onComplete:f,element:h,...m}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const x=new Gu({...m,autoplay:!1}),g=Math.max(If,na.now()-this.startTime),b=Jn(0,If,g-If),y=x.sample(g).value,{name:j}=this.options;h&&j&&n1(h,j,y),r.setWithVelocity(x.sample(Math.max(0,g-b)).value,y,b),x.stop()}}const bb=(s,l)=>l==="zIndex"?!1:!!(typeof s=="number"||Array.isArray(s)||typeof s=="string"&&(jn.test(s)||s==="0")&&!s.startsWith("url("));function rj(s){const l=s[0];if(s.length===1)return!0;for(let r=0;r<s.length;r++)if(s[r]!==l)return!0}function cj(s,l,r,o){const f=s[0];if(f===null)return!1;if(l==="display"||l==="visibility")return!0;const h=s[s.length-1],m=bb(f,l),x=bb(h,l);return!m||!x?!1:rj(s)||(r==="spring"||o1(r))&&o}function Am(s){s.duration=0,s.type="keyframes"}const u1=new Set(["opacity","clipPath","filter","transform"]),uj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function dj(s){for(let l=0;l<s.length;l++)if(typeof s[l]=="string"&&uj.test(s[l]))return!0;return!1}const fj=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),mj=Mg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hj(s){var j;const{motionValue:l,name:r,repeatDelay:o,repeatType:f,damping:h,type:m,keyframes:x}=s;if(!(((j=l==null?void 0:l.owner)==null?void 0:j.current)instanceof HTMLElement))return!1;const{onUpdate:b,transformTemplate:y}=l.owner.getProps();return mj()&&r&&(u1.has(r)||fj.has(r)&&dj(x))&&(r!=="transform"||!y)&&!b&&!o&&f!=="mirror"&&h!==0&&m!=="inertia"}const pj=40;
49class xj extends Zm{constructor({autoplay:l=!0,delay:r=0,type:o="keyframes",repeat:f=0,repeatDelay:h=0,repeatType:m="loop",keyframes:x,name:g,motionValue:b,element:y,...j}){var S;super(),this.stop=()=>{var F,P;this._animation&&(this._animation.stop(),(F=this.stopTimeline)==null||F.call(this)),(P=this.keyframeResolver)==null||P.cancel()},this.createdAt=na.now();const N={autoplay:l,delay:r,type:o,repeat:f,repeatDelay:h,repeatType:m,name:g,motionValue:b,element:y,...j},w=(y==null?void 0:y.KeyframeResolver)||Jm;this.keyframeResolver=new w(x,(F,P,H)=>this.onKeyframesResolved(F,P,N,!H),g,b,y),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(l,r,o,f){var H,_;this.keyframeResolver=void 0;const{name:h,type:m,velocity:x,delay:g,isHandoff:b,onUpdate:y}=o;this.resolvedAt=na.now();let j=!0;cj(l,h,m,x)||(j=!1,(fi.instantAnimations||!g)&&(y==null||y(Qu(l,o,r))),l[0]=l[l.length-1],Am(o),o.repeat=0);const w={startTime:f?this.resolvedAt?this.resolvedAt-this.createdAt>pj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:l},S=j&&!b&&hj(w),F=(_=(H=w.motionValue)==null?void 0:H.owner)==null?void 0:_.current;let P;if(S)try{P=new oj({...w,element:F})}catch{P=new Gu(w)}else P=new Gu(w);P.finished.then(()=>{this.notifyFinished()}).catch(Ka),this.pendingTimeline&&(this.stopTimeline=P.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=P}get finished(){return this._animation?this.animation.finished:this._finished}then(l,r){return this.finished.finally(l).then(()=>{})}get animation(){var l;return this._animation||((l=this.keyframeResolver)==null||l.resume(),Wv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var l;this._animation&&this.animation.cancel(),(l=this.keyframeResolver)==null||l.cancel()}}function d1(s,l,r,o=0,f=1){const h=Array.from(s).sort((b,y)=>b.sortNodePosition(y)).indexOf(l),m=s.size,x=(m-1)*o;return typeof r=="function"?r(h,m):f===1?h*o:x-h*o}const gb=30,bj=s=>!isNaN(parseFloat(s));class gj{constructor(l,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var h;const f=na.now();if(this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((h=this.events.change)==null||h.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=r.owner}setCurrent(l){this.current=l,this.updatedAt=na.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=bj(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,r){this.events[l]||(this.events[l]=new Gm);const o=this.events[l].add(r);return l==="change"?()=>{o(),nt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,r){this.passiveEffect=l,this.stopPassiveEffect=r}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,r=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var l;(l=this.events.change)==null||l.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=na.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>gb)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,gb);return Og(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(l){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=l(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(){var l,r;(l=this.dependents)==null||l.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function jo(s,l){return new gj(s,l)}function f1(s,l){if(s!=null&&s.inherit&&l){const{inherit:r,...o}=s;return{...l,...o}}return s}function Wm(s,l){const r=(s==null?void 0:s[l])??(s==null?void 0:s.default)??s;return r!==s?f1(r,s):r}const yj={type:"spring",stiffness:500,damping:25,restSpeed:10},vj=s=>({type:"spring",stiffness:550,damping:s===0?2*Math.sqrt(550):30,restSpeed:10}),jj={type:"keyframes",duration:.8},Aj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nj=(s,{keyframes:l})=>l.length>2?jj:ko.has(s)?s.startsWith("scale")?vj(l[1]):yj:Aj,kj=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function wj(s){for(const l in s)if(!kj.has(l))return!0;return!1}const eh=(s,l,r,o={},f,h)=>m=>{const x=Wm(o,s)||{},g=x.delay||o.delay||0;let{elapsed:b=0}=o;b=b-wa(g);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...x,delay:-b,onUpdate:N=>{l.set(N),x.onUpdate&&x.onUpdate(N)},onComplete:()=>{m(),x.onComplete&&x.onComplete()},name:s,motionValue:l,element:h?void 0:f};wj(x)||Object.assign(y,Nj(s,y)),y.duration&&(y.duration=wa(y.duration)),y.repeatDelay&&(y.repeatDelay=wa(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let j=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Am(y),y.delay===0&&(j=!0)),(fi.instantAnimations||fi.skipAnimations||f!=null&&f.shouldSkipAnimations||x.skipAnimations)&&(j=!0,Am(y),y.delay=0),y.allowFlatten=!x.type&&!x.ease,j&&!h&&l.get()!==void 0){const N=Qu(y.keyframes,x);if(N!==void 0){nt.update(()=>{y.onUpdate(N),y.onComplete()});return}}return x.isSync?new Gu(y):new xj(y)},Sj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tj(s){const l=Sj.exec(s);if(!l)return[,];const[,r,o,f]=l;return[`--${r??o}`,f]}function m1(s,l,r=1){const[o,f]=Tj(s);if(!o)return;const h=window.getComputedStyle(l).getPropertyValue(o);if(h){const m=h.trim();return Cg(m)?parseFloat(m):m}return Im(f)?m1(f,l,r+1):f}function yb(s){const l=[{},{}];
vendor: 5,639 bytes, line 49
49return s==null||s.values.forEach((r,o)=>{l[0][o]=r.get(),l[1][o]=r.getVelocity()}),l}function th(s,l,r,o){if(typeof l=="function"){const[f,h]=yb(o);l=l(r!==void 0?r:s.custom,f,h)}if(typeof l=="string"&&(l=s.variants&&s.variants[l]),typeof l=="function"){const[f,h]=yb(o);l=l(r!==void 0?r:s.custom,f,h)}return l}function il(s,l,r){const o=s.getProps();return th(o,l,r!==void 0?r:o.custom,s)}const h1=new Set(["width","height","top","left","right","bottom",...No]),Nm=s=>Array.isArray(s);function Cj(s,l,r){s.hasValue(l)?s.getValue(l).set(r):s.addValue(l,jo(r))}function Ej(s){return Nm(s)?s[s.length-1]||0:s}function Dj(s,l){const r=il(s,l);let{transitionEnd:o={},transition:f={},...h}=r||{};h={...h,...o};for(const m in h){const x=Ej(h[m]);Cj(s,m,x)}}const Vt=s=>!!(s&&s.getVelocity);function Mj(s){return!!(Vt(s)&&s.add)}function km(s,l){const r=s.getValue("willChange");if(Mj(r))return r.add(l);if(!r&&fi.WillChange){const o=new fi.WillChange("auto");s.addValue("willChange",o),o.add(l)}}function ah(s){return s.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const Oj="framerAppearId",p1="data-"+ah(Oj);function x1(s){return s.props[p1]}function Rj({protectedKeys:s,needsAnimating:l},r){const o=s.hasOwnProperty(r)&&l[r]!==!0;return l[r]=!1,o}function b1(s,l,{delay:r=0,transitionOverride:o,type:f}={}){let{transition:h,transitionEnd:m,...x}=l;const g=s.getDefaultTransition();h=h?f1(h,g):g;const b=h==null?void 0:h.reduceMotion,y=h==null?void 0:h.skipAnimations;o&&(h=o);const j=[],N=f&&s.animationState&&s.animationState.getState()[f],w=h==null?void 0:h.path;w&&w.animateVisualElement(s,x,h,r,j);for(const S in x){const F=s.getValue(S,s.latestValues[S]??null),P=x[S];if(P===void 0||N&&Rj(N,S))continue;const H={delay:r,...Wm(h||{},S)};y&&(H.skipAnimations=!0);const _=F.get();if(_!==void 0&&!F.isAnimating()&&!Array.isArray(P)&&P===_&&!H.velocity){nt.update(()=>F.set(P));continue}let C=!1;if(window.MotionHandoffAnimation){const ee=x1(s);if(ee){const Y=window.MotionHandoffAnimation(ee,S,nt);Y!==null&&(H.startTime=Y,C=!0)}}km(s,S);const q=b??s.shouldReduceMotion;F.start(eh(S,F,P,q&&h1.has(S)?{type:!1}:H,s,C));const te=F.animation;te&&j.push(te)}if(m){const S=()=>nt.update(()=>{m&&Dj(s,m)});j.length?Promise.all(j).then(S):S()}return j}function wm(s,l,r={}){var g;const o=il(s,l,r.type==="exit"?(g=s.presenceContext)==null?void 0:g.custom:void 0);let{transition:f=s.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(f=r.transitionOverride);const h=o?()=>Promise.all(b1(s,o,r)):()=>Promise.resolve(),m=s.variantChildren&&s.variantChildren.size?(b=0)=>{const{delayChildren:y=0,staggerChildren:j,staggerDirection:N}=f;return zj(s,l,b,y,j,N,r)}:()=>Promise.resolve(),{when:x}=f;if(x){const[b,y]=x==="beforeChildren"?[h,m]:[m,h];return b().then(()=>y())}else return Promise.all([h(),m(r.delay)])}function zj(s,l,r=0,o=0,f=0,h=1,m){const x=[];for(const g of s.variantChildren)g.notify("AnimationStart",l),x.push(wm(g,l,{...m,delay:r+(typeof o=="function"?0:o)+d1(s.variantChildren,g,o,f,h)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(x)}function Fj(s,l,r={}){s.notify("AnimationStart",l);let o;if(Array.isArray(l)){const f=l.map(h=>wm(s,h,r));o=Promise.all(f)}else if(typeof l=="string")o=wm(s,l,r);else{const f=typeof l=="function"?il(s,l,r.custom):l;o=Promise.all(b1(s,f,r))}return o.then(()=>{s.notify("AnimationComplete",l)})}const Uj={test:s=>s==="auto",parse:s=>s},g1=s=>l=>l.test(s),y1=[Ao,xe,Zn,ws,rv,ov,Uj],vb=s=>y1.find(g1(s));function Bj(s){return typeof s=="number"?s===0:s!==null?s==="none"||s==="0"||Dg(s):!0}const Lj=new Set(["brightness","contrast","saturate","opacity"]);function _j(s){const[l,r]=s.slice(0,-1).split("(");if(l==="drop-shadow")return s;const[o]=r.match(Ym)||[];if(!o)return s;const f=r.replace(o,"");let h=Lj.has(l)?1:0;return o!==r&&(h*=100),l+"("+h+f+")"}const Vj=/\b([a-z-]*)\(.*?\)/gu,Sm={...jn,getAnimatableNone:s=>{const l=s.match(Vj);return l?l.map(_j).join(" "):s}},Tm={...jn,getAnimatableNone:s=>{const l=jn.parse(s);return jn.createTransformer(s)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},jb={...Ao,transform:Math.round},Hj={rotate:ws,pathRotation:ws,rotateX:ws,rotateY:ws,rotateZ:ws,scale:ku,scaleX:ku,scaleY:ku,scaleZ:ku,skew:ws,skewX:ws,skewY:ws,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:tc,originX:ob,originY:ob,originZ:xe},Ku={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...Hj,zIndex:jb,fillOpacity:tc,strokeOpacity:tc,numOctaves:jb},Pj={...Ku,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:Sm,WebkitFilter:Sm,mask:Tm,WebkitMask:Tm},v1=s=>Pj[s],Gj=new Set([Sm,Tm]);function j1(s,l){let r=v1(s);return Gj.has(r)||(r=jn),r.getAnimatableNone?r.getAnimatableNone(l):void 0}
vendor: 1,717 bytes, line 49
49const Kj=new Set(["auto","none","0"]);function qj(s,l,r){let o=0,f;for(;o<s.length&&!f;){const h=s[o];typeof h=="string"&&!Kj.has(h)&&vo(h).values.length&&(f=s[o]),o++}if(f&&r)for(const h of l)s[h]=j1(r,f)}class Ij extends Jm{constructor(l,r,o,f,h){super(l,r,o,f,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let y=0;y<l.length;y++){let j=l[y];if(typeof j=="string"&&(j=j.trim(),Im(j))){const N=m1(j,r.current);N!==void 0&&(l[y]=N),y===l.length-1&&(this.finalKeyframe=j)}}if(this.resolveNoneKeyframes(),!h1.has(o)||l.length!==2)return;const[f,h]=l,m=vb(f),x=vb(h),g=lb(f),b=lb(h);if(g!==b&&ui[o]){this.needsMeasurement=!0;return}if(m!==x)if(pb(m)&&pb(x))for(let y=0;y<l.length;y++){const j=l[y];typeof j=="string"&&(l[y]=parseFloat(j))}else ui[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:r}=this,o=[];for(let f=0;f<l.length;f++)(l[f]===null||Bj(l[f]))&&o.push(f);o.length&&qj(l,o,r)}measureInitialState(){const{element:l,unresolvedKeyframes:r,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ui[o](l.measureViewportBox(),window.getComputedStyle(l.current)),r[0]=this.measuredOrigin;const f=r[r.length-1];f!==void 0&&l.getValue(o,f).jump(f,!1)}measureEndState(){var x;const{element:l,name:r,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const f=l.getValue(r);f&&f.jump(this.measuredOrigin,!1);const h=o.length-1,m=o[h];o[h]=ui[r](l.measureViewportBox(),window.getComputedStyle(l.current)),m!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=m),(x=this.removedTransforms)!=null&&x.length&&this.removedTransforms.forEac
vendor: 41,045 bytes, line 49
49h(([g,b])=>{l.getValue(g).set(b)}),this.resolveNoneKeyframes()}}function A1(s,l,r){if(s==null)return[];if(s instanceof EventTarget)return[s];if(typeof s=="string"){let o=document;const f=(r==null?void 0:r[s])??o.querySelectorAll(s);return f?Array.from(f):[]}return Array.from(s).filter(o=>o!=null)}const Cm=(s,l)=>l&&typeof s=="number"?l.transform(s):s;function Ou(s){return Eg(s)&&"offsetHeight"in s&&!("ownerSVGElement"in s)}const{schedule:nh}=Gg(queueMicrotask,!1),yn={x:!1,y:!1};function N1(){return yn.x||yn.y}function Yj(s){return s==="x"||s==="y"?yn[s]?null:(yn[s]=!0,()=>{yn[s]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function k1(s,l){const r=A1(s),o=new AbortController,f={passive:!0,...l,signal:o.signal};return[r,f,()=>o.abort()]}function Xj(s){return!(s.pointerType==="touch"||N1())}function $j(s,l,r={}){const[o,f,h]=k1(s,r);return o.forEach(m=>{let x=!1,g=!1,b;const y=()=>{m.removeEventListener("pointerleave",S)},j=P=>{b&&(b(P),b=void 0),y()},N=P=>{x=!1,window.removeEventListener("pointerup",N),window.removeEventListener("pointercancel",N),g&&(g=!1,j(P))},w=()=>{x=!0,window.addEventListener("pointerup",N,f),window.addEventListener("pointercancel",N,f)},S=P=>{if(P.pointerType!=="touch"){if(x){g=!0;return}j(P)}},F=P=>{if(!Xj(P))return;g=!1;const H=l(m,P);typeof H=="function"&&(b=H,m.addEventListener("pointerleave",S,f))};m.addEventListener("pointerenter",F,f),m.addEventListener("pointerdown",w,f)}),h}const w1=(s,l)=>l?s===l?!0:w1(s,l.parentElement):!1,sh=s=>s.pointerType==="mouse"?typeof s.button!="number"||s.button<=0:s.isPrimary!==!1,Qj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zj(s){return Qj.has(s.tagName)||s.isContentEditable===!0}const Jj=new Set(["INPUT","SELECT","TEXTAREA"]);function Wj(s){return Jj.has(s.tagName)||s.isContentEditable===!0}const Ru=new WeakSet;function Ab(s){return l=>{l.key==="Enter"&&s(l)}}function Yf(s,l){s.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const eA=(s,l)=>{const r=s.currentTarget;if(!r)return;const o=Ab(()=>{if(Ru.has(r))return;Yf(r,"down");const f=Ab(()=>{Yf(r,"up")}),h=()=>Yf(r,"cancel");r.addEventListener("keyup",f,l),r.addEventListener("blur",h,l)});r.addEventListener("keydown",o,l),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),l)};function Nb(s){return sh(s)&&!N1()}const kb=new WeakSet;function tA(s,l,r={}){const[o,f,h]=k1(s,r),m=x=>{const g=x.currentTarget;if(!Nb(x)||kb.has(x))return;Ru.add(g),r.stopPropagation&&kb.add(x);const b=l(g,x),y=(w,S)=>{window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",N),Ru.has(g)&&Ru.delete(g),Nb(w)&&typeof b=="function"&&b(w,{success:S})},j=w=>{y(w,g===window||g===document||r.useGlobalTarget||w1(g,w.target))},N=w=>{y(w,!1)};window.addEventListener("pointerup",j,f),window.addEventListener("pointercancel",N,f)};return o.forEach(x=>{(r.useGlobalTarget?window:x).addEventListener("pointerdown",m,f),Ou(x)&&(x.addEventListener("focus",b=>eA(b,f)),!Zj(x)&&!x.hasAttribute("tabindex")&&(x.tabIndex=0))}),h}function ih(s){return Eg(s)&&"ownerSVGElement"in s}const zu=new WeakMap;let ci;const S1=(s,l,r)=>(o,f)=>f&&f[0]?f[0][s+"Size"]:ih(o)&&"getBBox"in o?o.getBBox()[l]:o[r],aA=S1("inline","width","offsetWidth"),nA=S1("block","height","offsetHeight");function sA({target:s,borderBoxSize:l}){var r;(r=zu.get(s))==null||r.forEach(o=>{o(s,{get width(){return aA(s,l)},get height(){return nA(s,l)}})})}function iA(s){s.forEach(sA)}function lA(){typeof ResizeObserver>"u"||(ci=new ResizeObserver(iA))}function oA(s,l){ci||lA();const r=A1(s);return r.forEach(o=>{let f=zu.get(o);f||(f=new Set,zu.set(o,f)),f.add(l),ci==null||ci.observe(o)}),()=>{r.forEach(o=>{const f=zu.get(o);f==null||f.delete(l),f!=null&&f.size||ci==null||ci.unobserve(o)})}}const Fu=new Set;let bo;function rA(){bo=()=>{const s={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fu.forEach(l=>l(s))},window.addEventListener("resize",bo)}function cA(s){return Fu.add(s),bo||rA(),()=>{Fu.delete(s),!Fu.size&&typeof bo=="function"&&(window.removeEventListener("resize",bo),bo=void 0)}}function wb(s,l){return typeof s=="function"?cA(s):oA(s,l)}function uA(s){return ih(s)&&s.tagName==="svg"}const dA=[...y1,At,jn],fA=s=>dA.find(g1(s)),Sb=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:Sb(),y:Sb()}),Tb=()=>({min:0,max:0}),wt=()=>({x:Tb(),y:Tb()}),mA=new WeakMap;function Zu(s){return s!==null&&typeof s=="object"&&typeof s.start=="function"}function ac(s){return typeof s=="string"||Array.isArray(s)}const lh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oh=["initial",...lh];function Ju(s){return Zu(s.animate)||oh.some(l=>ac(s[l]))}function T1(s){return!!(Ju(s)||s.variants)}function hA(s,l,r){for(const o in l){const f=l[o],h=r[o];if(Vt(f))s.addValue(o,f);else if(Vt(h))s.addValue(o,jo(f,{owner:s}));else if(h!==f)if(s.hasValue(o)){const m=s.getValue(o);m.liveStyle===!0?m.jump(f):m.hasAnimated||m.set(f)}else{const m=s.getStaticValue(o);s.addValue(o,jo(m!==void 0?m:f,{owner:s}))}}for(const o in r)l[o]===void 0&&s.removeValue(o);return l}const Em={current:null},C1={current:!1},pA=typeof window<"u";function xA(){if(C1.current=!0,!!pA)if(window.matchMedia){const s=window.matchMedia("(prefers-reduced-motion)"),l=()=>Em.current=s.matches;s.addEventListener("change",l),l()}else Em.current=!1}const Cb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let qu={};function E1(s){qu=s}function bA(){return qu}class gA{scrapeMotionValuesFromProps(l,r,o){return{}}constructor({parent:l,props:r,presenceContext:o,reducedMotionConfig:f,skipAnimations:h,blockInitialAnimation:m,visualState:x},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Jm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 w=na.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,nt.render(this.render,!1,!0))};const{latestValues:b,renderState:y}=x;this.latestValues=b,this.baseTarget={...b},this.initialValues=r.initial?{...b}:{},this.renderState=y,this.parent=l,this.props=r,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=f,this.skipAnimationsConfig=h,this.options=g,this.blockInitialAnimation=!!m,this.isControllingVariants=Ju(r),this.isVariantNode=T1(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:j,...N}=this.scrapeMotionValuesFromProps(r,{},this);for(const w in N){const S=N[w];b[w]!==void 0&&Vt(S)&&S.set(b[w])}}mount(l){var r,o;if(this.hasBeenMounted)for(const f in this.initialValues)(r=this.values.get(f))==null||r.jump(this.initialValues[f]),this.latestValues[f]=this.initialValues[f];this.current=l,mA.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((f,h)=>this.bindToMotionValue(h,f)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(C1.current||xA(),this.shouldReduceMotion=Em.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var l;this.projection&&this.projection.unmount(),mi(this.notifyUpdate),mi(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(l=this.parent)==null||l.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const o=this.features[r];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,r){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),r.accelerate&&u1.has(l)&&this.current instanceof HTMLElement){const{factory:m,keyframes:x,times:g,ease:b,duration:y}=r.accelerate,j=new r1({element:this.current,name:l,keyframes:x,times:g,ease:b,duration:wa(y)}),N=m(j);this.valueSubscriptions.set(l,()=>{N(),j.cancel()});return}const o=ko.has(l);o&&this.onBindTransform&&this.onBindTransform();const f=r.on("change",m=>{this.latestValues[l]=m,this.props.onUpdate&&nt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,r)),this.valueSubscriptions.set(l,()=>{f(),h&&h()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in qu){const r=qu[l];if(!r)continue;const{isEnabled:o,Feature:f}=r;if(!this.features[l]&&f&&o(this.props)&&(this.features[l]=new f(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,r){this.latestValues[l]=r}update(l,r){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Cb.length;o++){const f=Cb[o];this.propEventSubscriptions[f]&&(this.propEventSubscriptions[f](),delete this.propEventSubscriptions[f]);const h="on"+f,m=l[h];m&&(this.propEventSubscriptions[f]=this.on(f,m))}this.prevMotionValues=hA(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(l),()=>r.variantChildren.delete(l)}addValue(l,r){const o=this.values.get(l);r!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,r),this.values.set(l,r),this.latestValues[l]=r.get())}removeValue(l){this.values.delete(l);const r=this.valueSubscriptions.get(l);r&&(r(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,r){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&r!==void 0&&(o=jo(r===null?void 0:r,{owner:this}),this.addValue(l,o)),o}readValue(l,r){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(Cg(o)||Dg(o))?o=parseFloat(o):!fA(o)&&jn.test(r)&&(o=j1(l,r)),this.setBaseTarget(l,Vt(o)?o.get():o)),Vt(o)?o.get():o}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){var h;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const m=th(this.props,r,(h=this.presenceContext)==null?void 0:h.custom);m&&(o=m[l])}if(r&&o!==void 0)return o;const f=this.getBaseTargetFromProps(this.props,l);return f!==void 0&&!Vt(f)?f:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,r){return this.events[l]||(this.events[l]=new Gm),this.events[l].add(r)}notify(l,...r){this.events[l]&&this.events[l].notify(...r)}scheduleRenderMicrotask(){nh.render(this.render)}}class D1 extends gA{constructor(){super(...arguments),this.KeyframeResolver=Ij}sortInstanceNodePosition(l,r){return l.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(l,r){const o=l.style;return o?o[r]:void 0}removeValueFromRenderState(l,{vars:r,style:o}){delete r[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;Vt(l)&&(this.childSubscription=l.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class hi{constructor(l){this.isMounted=!1,this.node=l}update(){}}function M1({top:s,left:l,right:r,bottom:o}){return{x:{min:l,max:r},y:{min:s,max:o}}}function yA({x:s,y:l}){return{top:l.min,right:s.max,bottom:l.max,left:s.min}}function vA(s,l){if(!l)return s;const r=l({x:s.left,y:s.top}),o=l({x:s.right,y:s.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function Xf(s){return s===void 0||s===1}function Dm({scale:s,scaleX:l,scaleY:r}){return!Xf(s)||!Xf(l)||!Xf(r)}function tl(s){return Dm(s)||O1(s)||s.z||s.rotate||s.rotateX||s.rotateY||s.skewX||s.skewY}function O1(s){return Eb(s.x)||Eb(s.y)}function Eb(s){return s&&s!=="0%"}function Iu(s,l,r){const o=s-r,f=l*o;return r+f}function Db(s,l,r,o,f){return f!==void 0&&(s=Iu(s,f,o)),Iu(s,r,o)+l}function Mm(s,l=0,r=1,o,f){s.min=Db(s.min,l,r,o,f),s.max=Db(s.max,l,r,o,f)}function R1(s,{x:l,y:r}){Mm(s.x,l.translate,l.scale,l.originPoint),Mm(s.y,r.translate,r.scale,r.originPoint)}const Mb=.999999999999,Ob=1.0000000000001;function jA(s,l,r,o=!1){var x;const f=r.length;if(!f)return;l.x=l.y=1;let h,m;for(let g=0;g<f;g++){h=r[g],m=h.projectionDelta;const{visualElement:b}=h.options;b&&b.props.style&&b.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Qn(s.x,-h.scroll.offset.x),Qn(s.y,-h.scroll.offset.y)),m&&(l.x*=m.x.scale,l.y*=m.y.scale,R1(s,m)),o&&tl(h.latestValues)&&Uu(s,h.latestValues,(x=h.layout)==null?void 0:x.layoutBox))}l.x<Ob&&l.x>Mb&&(l.x=1),l.y<Ob&&l.y>Mb&&(l.y=1)}function Qn(s,l){s.min+=l,s.max+=l}function Rb(s,l,r,o,f=.5){const h=at(s.min,s.max,f);Mm(s,l,r,h,o)}function zb(s,l){return typeof s=="string"?parseFloat(s)/100*(l.max-l.min):s}function Uu(s,l,r){const o=r??s;Rb(s.x,zb(l.x,o.x),l.scaleX,l.scale,l.originX),Rb(s.y,zb(l.y,o.y),l.scaleY,l.scale,l.originY)}function z1(s,l){return M1(vA(s.getBoundingClientRect(),l))}function AA(s,l,r){const o=z1(s,r),{scroll:f}=l;return f&&(Qn(o.x,f.offset.x),Qn(o.y,f.offset.y)),o}const NA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kA=No.length;function wA(s,l,r){let o="",f=!0;for(let m=0;m<kA;m++){const x=No[m],g=s[x];if(g===void 0)continue;let b=!0;if(typeof g=="number")b=g===(x.startsWith("scale")?1:0);else{const y=parseFloat(g);b=x.startsWith("scale")?y===1:y===0}if(!b||r){const y=Cm(g,Ku[x]);if(!b){f=!1;const j=NA[x]||x;o+=`${j}(${y}) `}r&&(l[x]=y)}}const h=s.pathRotation;return h&&(f=!1,o+=`rotate(${Cm(h,Ku.pathRotation)}) `),o=o.trim(),r?o=r(l,f?"":o):f&&(o="none"),o}function rh(s,l,r){const{style:o,vars:f,transformOrigin:h}=s;let m=!1,x=!1;for(const g in l){const b=l[g];if(ko.has(g)){m=!0;continue}else if(qg(g)){f[g]=b;continue}else{const y=Cm(b,Ku[g]);g.startsWith("origin")?(x=!0,h[g]=y):o[g]=y}}if(l.transform||(m||r?o.transform=wA(l,s.transform,r):o.transform&&(o.transform="none")),x){const{originX:g="50%",originY:b="50%",originZ:y=0}=h;o.transformOrigin=`${g} ${b} ${y}`}}function F1(s,{style:l,vars:r},o,f){const h=s.style;let m;for(m in l)h[m]=l[m];f==null||f.applyProjectionStyles(h,o);for(m in r)h.setProperty(m,r[m])}function Fb(s,l){return l.max===l.min?0:s/(l.max-l.min)*100}const qr={correct:(s,l)=>{if(!l.target)return s;if(typeof s=="string")if(xe.test(s))s=parseFloat(s);else return s;const r=Fb(s,l.target.x),o=Fb(s,l.target.y);return`${r}% ${o}%`}},SA={correct:(s,{treeScale:l,projectionDelta:r})=>{const o=s,f=jn.parse(s);if(f.length>5)return o;const h=jn.createTransformer(s),m=typeof f[0]!="number"?1:0,x=r.x.scale*l.x,g=r.y.scale*l.y;f[0+m]/=x,f[1+m]/=g;const b=at(x,g,.5);return typeof f[2+m]=="number"&&(f[2+m]/=b),typeof f[3+m]=="number"&&(f[3+m]/=b),h(f)}},Om={borderRadius:{...qr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qr,borderTopRightRadius:qr,borderBottomLeftRadius:qr,borderBottomRightRadius:qr,boxShadow:SA};function U1(s,{layout:l,layoutId:r}){return ko.has(s)||s.startsWith("origin")||(l||r!==void 0)&&(!!Om[s]||s==="opacity")}function ch(s,l,r){var m;const o=s.style,f=l==null?void 0:l.style,h={};if(!o)return h;for(const x in o)(Vt(o[x])||f&&Vt(f[x])||U1(x,s)||((m=r==null?void 0:r.getValue(x))==null?void 0:m.liveStyle)!==void 0)&&(h[x]=o[x]);return h}function TA(s){return window.getComputedStyle(s)}class CA extends D1{constructor(){super(...arguments),this.type="html",this.renderInstance=F1}readValueFromInstance(l,r){var o;if(ko.has(r))return(o=this.projection)!=null&&o.isProjecting?bm(r):Xv(l,r);{const f=TA(l),h=(qg(r)?f.getPropertyValue(r):f[r])||0;return typeof h=="string"?h.trim():h}}measureInstanceViewportBox(l,{transformPagePoint:r}){return z1(l,r)}build(l,r,o){rh(l,r,o.transformTemplate)}scrapeMotionValuesFromProps(l,r,o){return ch(l,r,o)}}const EA={offset:"stroke-dashoffset",array:"stroke-dasharray"},DA={offset:"strokeDashoffset",array:"strokeDasharray"};function MA(s,l,r=1,o=0,f=!0){s.pathLength=1;const h=f?EA:DA;s[h.offset]=`${-o}`,s[h.array]=`${l} ${r}`}const OA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function B1(s,{attrX:l,attrY:r,attrScale:o,pathLength:f,pathSpacing:h=1,pathOffset:m=0,...x},g,b,y){if(rh(s,x,b),g){s.style.viewBox&&(s.attrs.viewBox=s.style.viewBox);return}s.attrs=s.style,s.style={};const{attrs:j,style:N}=s;j.transform&&(N.transform=j.transform,delete j.transform),(N.transform||j.transformOrigin)&&(N.transformOrigin=j.transformOrigin??"50% 50%",delete j.transformOrigin),N.transform&&(N.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete j.transformBox);for(const w of OA)j[w]!==void 0&&(N[w]=j[w],delete j[w]);l!==void 0&&(j.x=l),r!==void 0&&(j.y=r),o!==void 0&&(j.scale=o),f!==void 0&&MA(j,f,h,m,!1)}const L1=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"]),_1=s=>typeof s=="string"&&s.toLowerCase()==="svg";function RA(s,l,r,o){F1(s,l,void 0,o);for(const f in l.attrs)s.setAttribute(L1.has(f)?f:ah(f),l.attrs[f])}function V1(s,l,r){const o=ch(s,l,r);for(const f in s)if(Vt(s[f])||Vt(l[f])){const h=No.indexOf(f)!==-1?"attr"+f.charAt(0).toUpperCase()+f.substring(1):f;o[h]=s[f]}return o}class zA extends D1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wt}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(ko.has(r)){const o=v1(r);return o&&o.default||0}return r=L1.has(r)?r:ah(r),l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,o){return V1(l,r,o)}build(l,r,o){B1(l,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,r,o,f){RA(l,r,o,f)}mount(l){this.isSVGTag=_1(l.tagName),super.mount(l)}}const FA=oh.length;function H1(s){if(!s)return;if(!s.isControllingVariants){const r=s.parent?H1(s.parent)||{}:{};return s.props.initial!==void 0&&(r.initial=s.props.initial),r}const l={};for(let r=0;r<FA;r++){const o=oh[r],f=s.props[o];(ac(f)||f===!1)&&(l[o]=f)}return l}function P1(s,l){if(!Array.isArray(l))return!1;const r=l.length;if(r!==s.length)return!1;for(let o=0;o<r;o++)if(l[o]!==s[o])return!1;return!0}const UA=[...lh].reverse(),BA=lh.length;function LA(s){return l=>Promise.all(l.map(({animation:r,options:o})=>Fj(s,r,o)))}function _A(s){let l=LA(s),r=Ub(),o=!0,f=!1;const h=b=>(y,j)=>{var w;const N=il(s,j,b==="exit"?(w=s.presenceContext)==null?void 0:w.custom:void 0);if(N){const{transition:S,transitionEnd:F,...P}=N;y={...y,...P,...F}}return y};function m(b){l=b(s)}function x(b){const{props:y}=s,j=H1(s.parent)||{},N=[],w=new Set;let S={},F=1/0;for(let H=0;H<BA;H++){const _=UA[H],C=r[_],q=y[_]!==void 0?y[_]:j[_],te=ac(q),ee=_===b?C.isActive:null;ee===!1&&(F=H);let Y=q===j[_]&&q!==y[_]&&te;if(Y&&(o||f)&&s.manuallyAnimateOnMount&&(Y=!1),C.protectedKeys={...S},!C.isActive&&ee===null||!q&&!C.prevProp||Zu(q)||typeof q=="boolean")continue;if(_==="exit"&&C.isActive&&ee!==!0){C.prevResolvedValues&&(S={...S,...C.prevResolvedValues});continue}const R=VA(C.prevProp,q);let W=R||_===b&&C.isActive&&!Y&&te||H>F&&te,ne=!1;const ve=Array.isArray(q)?q:[q];let de=ve.reduce(h(_),{});ee===!1&&(de={});const{prevResolvedValues:Me={}}=C,ue={...Me,...de},Ne=se=>{W=!0,w.has(se)&&(ne=!0,w.delete(se)),C.needsAnimating[se]=!0;const me=s.getValue(se);me&&(me.liveStyle=!1)};for(const se in ue){const me=de[se],ye=Me[se];if(S.hasOwnProperty(se))continue;let T=!1;Nm(me)&&Nm(ye)?T=!P1(me,ye)||R:T=me!==ye,T?me!=null?Ne(se):w.add(se):me!==void 0&&w.has(se)?Ne(se):C.protectedKeys[se]=!0}C.prevProp=q,C.prevResolvedValues=de,C.isActive&&(S={...S,...de}),(o||f)&&s.blockInitialAnimation&&(W=!1);const O=Y&&R;W&&(!O||ne)&&N.push(...ve.map(se=>{const me={type:_};if(typeof se=="string"&&(o||f)&&!O&&s.manuallyAnimateOnMount&&s.parent){const{parent:ye}=s,T=il(ye,se);if(ye.enteringChildren&&T){const{delayChildren:B}=T.transition||{};me.delay=d1(ye.enteringChildren,s,B)}}return{animation:se,options:me}}))}if(w.size){const H={};if(typeof y.initial!="boolean"){const _=il(s,Array.isArray(y.initial)?y.initial[0]:y.initial);_&&_.transition&&(H.transition=_.transition)}w.forEach(_=>{const C=s.getBaseTarget(_),q=s.getValue(_);q&&(q.liveStyle=!0),H[_]=C??null}),N.push({animation:H})}let P=!!N.length;return o&&(y.initial===!1||y.initial===y.animate)&&!s.manuallyAnimateOnMount&&(P=!1),o=!1,f=!1,P?l(N):Promise.resolve()}function g(b,y){var N;if(r[b].isActive===y)return Promise.resolve();(N=s.variantChildren)==null||N.forEach(w=>{var S;return(S=w.animationState)==null?void 0:S.setActive(b,y)}),r[b].isActive=y;const j=x(b);for(const w in r)r[w].protectedKeys={};return j}return{animateChanges:x,setActive:g,setAnimateFunction:m,getState:()=>r,reset:()=>{r=Ub(),f=!0}}}function VA(s,l){return typeof l=="string"?l!==s:Array.isArray(l)?!P1(l,s):!1}function Wi(s=!1){return{isActive:s,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ub(){return{animate:Wi(!0),whileInView:Wi(),whileHover:Wi(),whileTap:Wi(),whileDrag:Wi(),whileFocus:Wi(),exit:Wi()}}function Rm(s,l){s.min=l.min,s.max=l.max}function bn(s,l){Rm(s.x,l.x),Rm(s.y,l.y)}function Bb(s,l){s.translate=l.translate,s.scale=l.scale,s.originPoint=l.originPoint,s.origin=l.origin}const G1=1e-4,HA=1-G1,PA=1+G1,K1=.01,GA=0-K1,KA=0+K1;function sa(s){return s.max-s.min}function qA(s,l,r){return Math.abs(s-l)<=r}function Lb(s,l,r,o=.5){s.origin=o,s.originPoint=at(l.min,l.max,s.origin),s.scale=sa(r)/sa(l),s.translate=at(r.min,r.max,s.origin)-s.originPoint,(s.scale>=HA&&s.scale<=PA||isNaN(s.scale))&&(s.scale=1),(s.translate>=GA&&s.translate<=KA||isNaN(s.translate))&&(s.translate=0)}function Jr(s,l,r,o){Lb(s.x,l.x,r.x,o?o.originX:void 0),Lb(s.y,l.y,r.y,o?o.originY:void 0)}function _b(s,l,r,o=0){const f=o?at(r.min,r.max,o):r.min;s.min=f+l.min,s.max=s.min+sa(l)}function IA(s,l,r,o){_b(s.x,l.x,r.x,o==null?void 0:o.x),_b(s.y,l.y,r.y,o==null?void 0:o.y)}function Vb(s,l,r,o=0){const f=o?at(r.min,r.max,o):r.min;s.min=l.min-f,s.max=s.min+sa(l)}function Yu(s,l,r,o){Vb(s.x,l.x,r.x,o==null?void 0:o.x),Vb(s.y,l.y,r.y,o==null?void 0:o.y)}function Hb(s,l,r,o,f){return s-=l,s=Iu(s,1/r,o),f!==void 0&&(s=Iu(s,1/f,o)),s}function YA(s,l=0,r=1,o=.5,f,h=s,m=s){if(Zn.test(l)&&(l=parseFloat(l),l=at(m.min,m.max,l/100)-m.min),typeof l!="number")return;let x=at(h.min,h.max,o);s===h&&(x-=l),s.min=Hb(s.min,l,r,x,f),s.max=Hb(s.max,l,r,x,f)}function Pb(s,l,[r,o,f],h,m){YA(s,l[r],l[o],l[f],l.scale,h,m)}const XA=["x","scaleX","originX"],$A=["y","scaleY","originY"];function Gb(s,l,r,o){Pb(s.x,l,XA,r?r.x:void 0,o?o.x:void 0),Pb(s.y,l,$A,r?r.y:void 0,o?o.y:void 0)}function Kb(s){return s.translate===0&&s.scale===1}function q1(s){return Kb(s.x)&&Kb(s.y)}function qb(s,l){return s.min===l.min&&s.max===l.max}function QA(s,l){return qb(s.x,l.x)&&qb(s.y,l.y)}function Ib(s,l){return Math.round(s.min)===Math.round(l.min)&&Math.round(s.max)===Math.round(l.max)}function I1(s,l){return Ib(s.x,l.x)&&Ib(s.y,l.y)}function Yb(s){return sa(s.x)/sa(s.y)}function Xb(s,l){return s.translate===l.translate&&s.scale===l.scale&&s.originPoint===l.originPoint}function $n(s){return[s("x"),s("y")]}function ZA(s,l,r){let o="";const f=s.x.translate/l.x,h=s.y.translate/l.y,m=(r==null?void 0:r.z)||0;if((f||h||m)&&(o=`translate3d(${f}px, ${h}px, ${m}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),r){const{transformPerspective:b,rotate:y,pathRotation:j,rotateX:N,rotateY:w,skewX:S,skewY:F}=r;b&&(o=`perspective(${b}px) ${o}`),y&&(o+=`rotate(${y}deg) `),j&&(o+=`rotate(${j}deg) `),N&&(o+=`rotateX(${N}deg) `),w&&(o+=`rotateY(${w}deg) `),S&&(o+=`skewX(${S}deg) `),F&&(o+=`skewY(${F}deg) `)}const x=s.x.scale*l.x,g=s.y.scale*l.y;return(x!==1||g!==1)&&(o+=`scale(${x}, ${g})`),o||"none"}const Y1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],JA=Y1.length,$b=s=>typeof s=="string"?parseFloat(s):s,Qb=s=>typeof s=="number"||xe.test(s);function WA(s,l,r,o,f,h){f?(s.opacity=at(0,r.opacity??1,e2(o)),s.opacityExit=at(l.opacity??1,0,t2(o))):h&&(s.opacity=at(l.opacity??1,r.opacity??1,o));for(let m=0;m<JA;m++){const x=Y1[m];let g=Zb(l,x),b=Zb(r,x);if(g===void 0&&b===void 0)continue;g||(g=0),b||(b=0),g===0||b===0||Qb(g)===Qb(b)?(s[x]=Math.max(at($b(g),$b(b),o),0),(Zn.test(b)||Zn.test(g))&&(s[x]+="%")):s[x]=b}(l.rotate||r.rotate)&&(s.rotate=at(l.rotate||0,r.rotate||0,o))}function Zb(s,l){return s[l]!==void 0?s[l]:s.borderRadius}const e2=X1(0,.5,_g),t2=X1(.5,.95,Ka);function X1(s,l,r){return o=>o<s?0:o>l?1:r(ec(s,l,o))}function a2(s,l,r){const o=Vt(s)?s:jo(s);return o.start(eh("",o,l,r)),o.animation}function nc(s,l,r,o={passive:!0}){return s.addEventListener(l,r,o),()=>s.removeEventListener(l,r)}const n2=(s,l)=>s.depth-l.depth;class s2{constructor(){this.children=[],this.isDirty=!1}add(l){Hm(this.children,l),this.isDirty=!0}remove(l){_u(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(n2),this.isDirty=!1,this.children.forEach(l)}}function i2(s,l){const r=na.now(),o=({timestamp:f})=>{const h=f-r;h>=l&&(mi(o),s(h-l))};return nt.setup(o,!0),()=>mi(o)}function Bu(s){return Vt(s)?s.get():s}class l2{constructor(){this.members=[]}add(l){Hm(this.members,l);for(let r=this.members.length-1;r>=0;r--){const o=this.members[r];if(o===l||o===this.lead||o===this.prevLead)continue;const f=o.instance;(!f||f.isConnected===!1)&&!o.snapshot&&(_u(this.members,o),o.unmount())}l.scheduleRender()}remove(l){if(_u(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(l){var r;for(let o=this.members.indexOf(l)-1;o>=0;o--){const f=this.members[o];if(f.isPresent!==!1&&((r=f.instance)==null?void 0:r.isConnected)!==!1)return this.promote(f),!0}return!1}promote(l,r){var f;const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.updateSnapshot(),l.scheduleRender();const{layoutDependency:h}=o.options,{layoutDependency:m}=l.options;(h===void 0||h!==m)&&(l.resumeFrom=o,r&&(o.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),(f=l.root)!=null&&f.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{var r,o,f,h,m;(o=(r=l.options).onExitComplete)==null||o.call(r),(m=(f=l.resumingFrom)==null?void 0:(h=f.options).onExitComplete)==null||m.call(h)})}scheduleRender(){this.members.forEach(l=>l.instance&&l.scheduleRender(!1))}removeLeadSnapshot(){var l;(l=this.lead)!=null&&l.snapshot&&(this.lead.snapshot=void 0)}}const Lu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$f=["","X","Y","Z"],o2=1e3;let r2=0;function Qf(s,l,r,o){const{latestValues:f}=l;f[s]&&(r[s]=f[s],l.setStaticValue(s,0),o&&(o[s]=0))}function $1(s){if(s.hasCheckedOptimisedAppear=!0,s.root===s)return;const{visualElement:l}=s.options;if(!l)return;const r=x1(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:f,layoutId:h}=s.options;window.MotionCancelOptimisedAnimation(r,"transform",nt,!(f||h))}const{parent:o}=s;o&&!o.hasCheckedOptimisedAppear&&$1(o)}function Q1({attachResizeListener:s,defaultParent:l,measureScroll:r,checkIsScrollRoot:o,resetTransform:f}){return class{constructor(m={},x=l==null?void 0:l()){this.id=r2++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(d2),this.nodes.forEach(b2),this.nodes.forEach(g2),this.nodes.forEach(f2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=m,this.root=x?x.root||x:this,this.path=x?[...x.path,x]:[],this.parent=x,this.depth=x?x.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new s2)}addEventListener(m,x){return this.eventHandlers.has(m)||this.eventHandlers.set(m,new Gm),this.eventHandlers.get(m).add(x)}notifyListeners(m,...x){const g=this.eventHandlers.get(m);g&&g.notify(...x)}hasListeners(m){return this.eventHandlers.has(m)}mount(m){if(this.instance)return;this.isSVG=ih(m)&&!uA(m),this.instance=m;const{layoutId:x,layout:g,visualElement:b}=this.options;if(b&&!b.current&&b.mount(m),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||x)&&(this.isLayoutDirty=!0),s){let y,j=0;const N=()=>this.root.updateBlockedByResize=!1;nt.read(()=>{j=window.innerWidth}),s(m,()=>{const w=window.innerWidth;w!==j&&(j=w,this.root.updateBlockedByResize=!0,y&&y(),y=i2(N,250),Lu.hasAnimatedSinceResize&&(Lu.hasAnimatedSinceResize=!1,this.nodes.forEach(eg)))})}x&&this.root.registerSharedNode(x,this),this.options.animate!==!1&&b&&(x||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:j,hasRelativeLayoutChanged:N,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||b.getDefaultTransition()||N2,{onLayoutAnimationStart:F,onLayoutAnimationComplete:P}=b.getProps(),H=!this.targetLayout||!I1(this.targetLayout,w),_=!j&&N;if(this.options.layoutRoot||this.resumeFrom||_||j&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Wm(S,"layout"),onPlay:F,onComplete:P};(b.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(y,_,C.path)}else j||eg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const m=this.getStack();m&&m.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),mi(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(y2),this.animationId++)}getTransformTemplate(){const{visualElement:m}=this.options;return m&&m.getProps().transformTemplate}willUpdate(m=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const j=this.path[y];j.shouldResetTransform=!0,(typeof j.latestValues.x=="string"||typeof j.latestValues.y=="string")&&(j.isLayoutDirty=!0),j.updateScroll("snapshot"),j.options.layoutRoot&&j.willUpdate(!1)}const{layoutId:x,layout:g}=this.options;if(x===void 0&&!g)return;const b=this.getTransformTemplate();this.prevTransformTemplateValue=b?b(this.latestValues,""):void 0,this.updateSnapshot(),m&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(h2),this.nodes.forEach(Jb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Wb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(p2),this.nodes.forEach(x2),this.nodes.forEach(c2),this.nodes.forEach(u2)):this.nodes.forEach(Wb),this.clearAllSnapshots();const x=na.now();_t.delta=Jn(0,1e3/60,x-_t.timestamp),_t.timestamp=x,_t.isProcessing=!0,Hf.update.process(_t),Hf.preRender.process(_t),Hf.render.process(_t),_t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(m2),this.sharedNodes.forEach(v2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sa(this.snapshot.measuredBox.x)&&!sa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const m=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=wt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:x}=this.options;x&&x.notify("LayoutMeasure",this.layout.layoutBox,m?m.layoutBox:void 0)}updateScroll(m="measure"){let x=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===m&&(x=!1),x&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:m,isRoot:g,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!f)return;const m=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,x=this.projectionDelta&&!q1(this.projectionDelta),g=this.getTransformTemplate(),b=g?g(this.latestValues,""):void 0,y=b!==this.prevTransformTemplateValue;m&&this.instance&&(x||tl(this.latestValues)||y)&&(f(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(m=!0){const x=this.measurePageBox();let g=this.removeElementScroll(x);return m&&(g=this.removeTransform(g)),k2(g),{animationId:this.root.animationId,measuredBox:x,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var b;const{visualElement:m}=this.options;if(!m)return wt();const x=m.measureViewportBox();if(!(((b=this.scroll)==null?void 0:b.wasRoot)||this.path.some(w2))){const{scroll:y}=this.root;y&&(Qn(x.x,y.offset.x),Qn(x.y,y.offset.y))}return x}removeElementScroll(m){var g;const x=wt();if(bn(x,m),(g=this.scroll)!=null&&g.wasRoot)return x;for(let b=0;b<this.path.length;b++){const y=this.path[b],{scroll:j,options:N}=y;y!==this.root&&j&&N.layoutScroll&&(j.wasRoot&&bn(x,m),Qn(x.x,j.offset.x),Qn(x.y,j.offset.y))}return x}applyTransform(m,x=!1,g){var y,j;const b=g||wt();bn(b,m);for(let N=0;N<this.path.length;N++){const w=this.path[N];!x&&w.options.layoutScroll&&w.scroll&&w!==w.root&&(Qn(b.x,-w.scroll.offset.x),Qn(b.y,-w.scroll.offset.y)),tl(w.latestValues)&&Uu(b,w.latestValues,(y=w.layout)==null?void 0:y.layoutBox)}return tl(this.latestValues)&&Uu(b,this.latestValues,(j=this.layout)==null?void 0:j.layoutBox),b}removeTransform(m){var g;const x=wt();bn(x,m);for(let b=0;b<this.path.length;b++){const y=this.path[b];if(!tl(y.latestValues))continue;let j;y.instance&&(Dm(y.latestValues)&&y.updateSnapshot(),j=wt(),bn(j,y.measurePageBox())),Gb(x,y.latestValues,(g=y.snapshot)==null?void 0:g.layoutBox,j)}return tl(this.latestValues)&&Gb(x,this.latestValues),x}setTargetDelta(m){this.targetDelta=m,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(m){this.options={...this.options,...m,crossfade:m.crossfade!==void 0?m.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!==_t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(m=!1){var w;const x=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=x.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=x.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=x.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==x;if(!(m||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:j}=this.options;if(!this.layout||!(y||j))return;this.resolvedRelativeTargetAt=_t.timestamp;const N=this.getClosestProjectingParent();N&&this.linkedParentVersion!==N.layoutVersion&&!N.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&N&&N.layout?this.createRelativeTarget(N,this.layout.layoutBox,N.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=wt(),this.targetWithTransforms=wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),IA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):bn(this.target,this.layout.layoutBox),R1(this.target,this.targetDelta)):bn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?this.createRelativeTarget(N,this.target,N.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Dm(this.parent.latestValues)||O1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(m,x,g){this.relativeParent=m,this.linkedParentVersion=m.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wt(),this.relativeTargetOrigin=wt(),Yu(this.relativeTargetOrigin,x,g,this.options.layoutAnchor||void 0),bn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const m=this.getLead(),x=!!this.resumingFrom||this!==m;let g=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&
vendor: 5,732 bytes, line 49
49(g=!1),x&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===_t.timestamp&&(g=!1),g)return;const{layout:b,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||!(b||y))return;bn(this.layoutCorrected,this.layout.layoutBox);const j=this.treeScale.x,N=this.treeScale.y;jA(this.layoutCorrected,this.treeScale,this.path,x),m.layout&&!m.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(m.target=m.layout.layoutBox,m.targetWithTransforms=wt());const{target:w}=m;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bb(this.prevProjectionDelta.x,this.projectionDelta.x),Bb(this.prevProjectionDelta.y,this.projectionDelta.y)),Jr(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==j||this.treeScale.y!==N||!Xb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(m=!0){var x;if((x=this.options.visualElement)==null||x.scheduleRender(),m){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=go(),this.projectionDelta=go(),this.projectionDeltaWithTransform=go()}setAnimationOrigin(m,x=!1,g){const b=this.snapshot,y=b?b.latestValues:{},j={...this.latestValues},N=go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!x;const w=wt(),S=b?b.source:void 0,F=this.layout?this.layout.source:void 0,P=S!==F,H=this.getStack(),_=!H||H.members.length<=1,C=!!(P&&!_&&this.options.crossfade===!0&&!this.path.some(A2));this.animationProgress=0;let q;const te=g==null?void 0:g.interpolateProjection(m);this.mixTargetDelta=ee=>{const Y=ee/1e3,R=te==null?void 0:te(Y);R?(N.x.translate=R.x,N.x.scale=at(m.x.scale,1,Y),N.x.origin=m.x.origin,N.x.originPoint=m.x.originPoint,N.y.translate=R.y,N.y.scale=at(m.y.scale,1,Y),N.y.origin=m.y.origin,N.y.originPoint=m.y.originPoint):(tg(N.x,m.x,Y),tg(N.y,m.y,Y)),this.setTargetDelta(N),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yu(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),j2(this.relativeTarget,this.relativeTargetOrigin,w,Y),q&&QA(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=wt()),bn(q,this.relativeTarget)),P&&(this.animationValues=j,WA(j,y,this.latestValues,Y,C,_)),R&&R.rotate!==void 0&&(this.animationValues||(this.animationValues=j),this.animationValues.pathRotation=R.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(m){var x,g,b;this.notifyListeners("animationStart"),(x=this.currentAnimation)==null||x.stop(),(b=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||b.stop(),this.pendingAnimation&&(mi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nt.update(()=>{Lu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jo(0)),this.motionValue.jump(0,!1),this.currentAnimation=a2(this.motionValue,[0,1e3],{...m,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),m.onUpdate&&m.onUpdate(y)},onStop:()=>{},onComplete:()=>{m.onComplete&&m.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 m=this.getStack();m&&m.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(o2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const m=this.getLead();let{targetWithTransforms:x,target:g,layout:b,latestValues:y}=m;if(!(!x||!g||!b)){if(this!==m&&this.layout&&b&&Z1(this.options.animationType,this.layout.layoutBox,b.layoutBox)){g=this.target||wt();const j=sa(this.layout.layoutBox.x);g.x.min=m.target.x.min,g.x.max=g.x.min+j;const N=sa(this.layout.layoutBox.y);g.y.min=m.target.y.min,g.y.max=g.y.min+N}bn(x,g),Uu(x,y),Jr(this.projectionDeltaWithTransform,this.layoutCorrected,x,y)}}registerSharedNode(m,x){this.sharedNodes.has(m)||this.sharedNodes.set(m,new l2),this.sharedNodes.get(m).add(x);const b=x.options.initialPromotionConfig;x.promote({transition:b?b.transition:void 0,preserveFollowOpacity:b&&b.shouldPreserveFollowOpacity?b.shouldPreserveFollowOpacity(x):void 0})}isLead(){const m=this.getStack();return m?m.lead===this:!0}getLead(){var x;const{layoutId:m}=this.options;return m?((x=this.getStack())==null?void 0:x.lead)||this:this}getPrevLead(){var x;const{layoutId:m}=this.options;return m?(x=this.getStack())==null?void 0:x.prevLead:void 0}getStack(){const{layoutId:m}=this.options;if(m)return this.root.sharedNodes.get(m)}promote({needsReset:m,transition:x,preserveFollowOpacity:g}={}){const b=this.getStack();b&&b.promote(this,g),m&&(this.projectionDelta=void 0,this.needsReset=!0),x&&this.setOptions({transition:x})}relegate(){const m=this.getStack();return m?m.relegate(this):!1}
vendor: 4,085 bytes, line 49
49resetSkewAndRotation(){const{visualElement:m}=this.options;if(!m)return;let x=!1;const{latestValues:g}=m;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(x=!0),!x)return;const b={};g.z&&Qf("z",m,b,this.animationValues);for(let y=0;y<$f.length;y++)Qf(`rotate${$f[y]}`,m,b,this.animationValues),Qf(`skew${$f[y]}`,m,b,this.animationValues);m.render();for(const y in b)m.setStaticValue(y,b[y]),this.animationValues&&(this.animationValues[y]=b[y]);m.scheduleRender()}applyProjectionStyles(m,x){if(!this.instance||this.isSVG)return;if(!this.isVisible){m.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,m.visibility="",m.opacity="",m.pointerEvents=Bu(x==null?void 0:x.pointerEvents)||"",m.transform=g?g(this.latestValues,""):"none";return}const b=this.getLead();if(!this.projectionDelta||!this.layout||!b.target){this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Bu(x==null?void 0:x.pointerEvents)||""),this.hasProjected&&!tl(this.latestValues)&&(m.transform=g?g({},""):"none",this.hasProjected=!1);return}m.visibility="";const y=b.animationValues||b.latestValues;this.applyTransformsToTarget();let j=ZA(this.projectionDeltaWithTransform,this.treeScale,y);g&&(j=g(y,j)),m.transform=j;const{x:N,y:w}=this.projectionDelta;m.transformOrigin=`${N.origin*100}% ${w.origin*100}% 0`,b.animationValues?m.opacity=b===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:m.opacity=b===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const S in Om){if(y[S]===void 0)continue;const{correct:F,applyTo:P,isCSSVariable:H}=Om[S],_=j==="none"?y[S]:F(y[S],b);if(P){const C=P.length;for(let q=0;q<C;q++)m[P[q]]=_}else H?this.options.visualElement.renderState.vars[S]=_:m[S]=_}this.options.layoutId&&(m.pointerEvents=b===this?Bu(x==null?void 0:x.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(m=>{var x;return(x=m.currentAnimation)==null?void 0:x.stop()}),this.root.nodes.forEach(Jb),this.root.sharedNodes.clear()}}}function c2(s){s.updateLayout()}function u2(s){var r;const l=((r=s.resumeFrom)==null?void 0:r.snapshot)||s.snapshot;if(s.isLead()&&s.layout&&l&&s.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:f}=s.layout,{animationType:h}=s.options,m=l.source!==s.layout.source;if(h==="size")$n(j=>{const N=m?l.measuredBox[j]:l.layoutBox[j],w=sa(N);N.min=o[j].min,N.max=N.min+w});else if(h==="x"||h==="y"){const j=h==="x"?"y":"x";Rm(m?l.measuredBox[j]:l.layoutBox[j],o[j])}else Z1(h,l.layoutBox,o)&&$n(j=>{const N=m?l.measuredBox[j]:l.layoutBox[j],w=sa(o[j]);N.max=N.min+w,s.relativeTarget&&!s.currentAnimation&&(s.isProjectionDirty=!0,s.relativeTarget[j].max=s.relativeTarget[j].min+w)});const x=go();Jr(x,o,l.layoutBox);const g=go();m?Jr(g,s.applyTransform(f,!0),l.measuredBox):Jr(g,o,l.layoutBox);const b=!q1(x);let y=!1;if(!s.resumeFrom){const j=s.getClosestProjectingParent();if(j&&!j.resumeFrom){const{snapshot:N,layout:w}=j;if(N&&w){const S=s.options.layoutAnchor||void 0,F=wt();Yu(F,l.layoutBox,N.layoutBox,S);const P=wt();Yu(P,o,w.layoutBox,S),I1(F,P)||(y=!0),j.options.layoutRoot&&(s.relativeTarget=P,s.relativeTargetOrigin=F,s.relativeParent=j)}}}s.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:g,layoutDelta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:y})}else if(s.isLead()){const{onExitComplete:o}=s.options;o&&o()}s.options.transition=void 0}function d2(s){s.parent&&(s.isProjecting()||(s.isProjectionDirty=s.parent.isProjectionDirty),s.isSharedProjectionDirty||(s.isSharedProjectionDirty=!!(s.isProjectionDirty||s.parent.isProjectionDirty||s.parent.isSharedProjectionDirty)),s.isTransformDirty||(s.isTransformDirty=s.parent.isTransformDirty))}function f2(s){s.isProjectionDirty=s.isSharedProjectionDirty=s.isTransformDirty=!1}function m2(s){s.clearSnapshot()}function Jb(s){s.clearMeasurements()}function h2(s){s.isLayoutDirty=!0,s.updateLayout()}function Wb(s){s.isLayoutDirty=!1}
49function p2(s){s.isAnimationBlocked&&s.layout&&!s.isLayoutDirty&&(s.snapshot=s.layout,s.isLayoutDirty=!0)}function x2(s){const{visualElement:l}=s.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),s.resetTransform()}function eg(s){s.finishAnimation(),s.targetDelta=s.relativeTarget=s.target=void 0,s.isProjectionDirty=!0}function b2(s){s.resolveTargetDelta()}function g2(s){s.calcProjection()}function y2(s){s.resetSkewAndRotation()}function v2(s){s.removeLeadSnapshot()}function tg(s,l,r){s.translate=at(l.translate,0,r),s.scale=at(l.scale,1,r),s.origin=l.origin,s.originPoint=l.originPoint}function ag(s,l,r,o){s.min=at(l.min,r.min,o),s.max=at(l.max,r.max,o)}function j2(s,l,r,o){ag(s.x,l.x,r.x,o),ag(s.y,l.y,r.y,o)}function A2(s){return s.animationValues&&s.animationValues.opacityExit!==void 0}const N2={duration:.45,ease:[.4,0,.1,1]},ng=s=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(s),sg=ng("applewebkit/")&&!ng("chrome/")?Math.round:Ka;function ig(s){s.min=sg(s.min),s.max=sg(s.max)}function k2(s){ig(s.x),ig(s.y)}function Z1(s,l,r){return s==="position"||s==="preserve-aspect"&&!qA(Yb(l),Yb(r),.2)}function w2(s){var l;return s!==s.root&&((l=s.scroll)==null?void 0:l.wasRoot)}const S2=Q1({attachResizeListener:(s,l)=>nc(s,"resize",l),measureScroll:()=>{var s,l;return{x:document.documentElement.scrollLeft||((s=document.body)==null?void 0:s.scrollLeft)||0,y:document.documentElement.scrollTop||((l=document.body)==null?void 0:l.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Zf={current:void 0},J1=Q1({measureScroll:s=>({x:s.scrollLeft,y:s.scrollTop}),defaultParent:()=>{if(!Zf.current){const s=new S2({});s.mount(window),s.setOptions({layoutScroll:!0}),Zf.current=s}return Zf.current},resetTransform:(s,l)=>{s.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:s=>window.getComputedStyle(s).position==="fixed"}),uh=A.createContext({transformPagePoint:s=>s,isStatic:!1,reducedMotion:"never"});function lg(s,l){if(typeof s=="function")return s(l);s!=null&&(s.current=l)}function T2(...s){return l=>{let r=!1;const o=s.map(f=>{const h=lg(f,l);return!r&&typeof h=="function"&&(r=!0),h});if(r)return()=>{for(let f=0;f<o.length;f++){const h=o[f];typeof h=="function"?h():lg(s[f],null)}}}}function C2(...s){return A.useCallback(T2(...s),s)}class E2 extends A.Component{getSnapshotBeforeUpdate(l){const r=this.props.childRef.current;if(Ou(r)&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=r.offsetParent,f=Ou(o)&&o.offsetWidth||0,h=Ou(o)&&o.offsetHeight||0,m=getComputedStyle(r),x=this.props.sizeRef.current;x.height=parseFloat(m.height),x.width=parseFloat(m.width),x.top=r.offsetTop,x.left=r.offsetLeft,x.right=f-x.width-x.left,x.bottom=h-x.height-x.top,x.direction=m.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function D2({children:s,isPresent:l,anchorX:r,anchorY:o,root:f,pop:h}){var N;const m=A.useId(),x=A.useRef(null),g=A.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:b}=A.useContext(uh),y=((N=s.props)==null?void 0:N.ref)??(s==null?void 0:s.ref),j=C2(x,y);return A.useInsertionEffect(()=>{const{width:w,height:S,top:F,left:P,right:H,bottom:_,direction:C}=g.current;if(l||h===!1||!x.current||!w||!S)return;const q=C==="rtl",te=r==="left"?q?`right: ${H}`:`left: ${P}`:q?`left: ${P}`:`right: ${H}`,ee=o==="bottom"?`bottom: ${_}`:`top: ${F}`;x.current.dataset.motionPopId=m;const Y=document.createElement("style");b&&(Y.nonce=b);const R=f??document.head;return R.appendChild(Y),Y.sheet&&Y.sheet.insertRule(` 50 [data-motion-pop-id="${m}"] { 51 position: absolute !important; 52 width: ${w}px !important; 53 height: ${S}px !important; 54 ${te}px !important; 55 ${ee}px !important; 56 } 57 `),()=>{var W;(W=x.current)==null||W.removeAttribute("data-motion-pop-id"),R.contains(Y)&&R.removeChild(Y)}},[l]),a.jsx(E2,{isPresent:l,childRef:x,sizeRef:g,pop:h,children:h===!1?s:A.cloneElement(s,{ref:j})})}const M2=({children:s,initial:l,isPresent:r,onExitComplete:o,custom:f,presenceAffectsLayout:h,mode:m,anchorX:x,anchorY:g,root:b})=>{const y=Vm(O2),j=A.useId();let N=!0,w=A.useMemo(()=>(N=!1,{id:j,initial:l,isPresent:r,custom:f,onExitComplete:S=>{y.set(S,!0);for(const F of y.values())if(!F)return;o&&o()},register:S=>(y.set(S,!1),()=>y.delete(S))}),[r,y,o]);return h&&N&&(w={...w}),A.useMemo(()=>
vendor: 4,916 bytes, line 57
57{y.forEach((S,F)=>y.set(F,!1))},[r]),A.useEffect(()=>{!r&&!y.size&&o&&o()},[r]),s=a.jsx(D2,{pop:m==="popLayout",isPresent:r,anchorX:x,anchorY:g,root:b,children:s}),a.jsx($u.Provider,{value:w,children:s})};function O2(){return new Map}function W1(s=!0){const l=A.useContext($u);if(l===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:f}=l,h=A.useId();A.useEffect(()=>{if(s)return f(h)},[s]);const m=A.useCallback(()=>s&&o&&o(h),[h,o,s]);return!r&&o?[!1,m]:[!0]}const wu=s=>s.key||"";function og(s){const l=[];return A.Children.forEach(s,r=>{A.isValidElement(r)&&l.push(r)}),l}const ll=({children:s,custom:l,initial:r=!0,onExitComplete:o,presenceAffectsLayout:f=!0,mode:h="sync",propagate:m=!1,anchorX:x="left",anchorY:g="top",root:b})=>{const[y,j]=W1(m),N=A.useMemo(()=>og(s),[s]),w=m&&!y?[]:N.map(wu),S=A.useRef(!0),F=A.useRef(N),P=Vm(()=>new Map),H=A.useRef(new Set),[_,C]=A.useState(N),[q,te]=A.useState(N);Tg(()=>{S.current=!1,F.current=N;for(let R=0;R<q.length;R++){const W=wu(q[R]);w.includes(W)?(P.delete(W),H.current.delete(W)):P.get(W)!==!0&&P.set(W,!1)}},[q,w.length,w.join("-")]);const ee=[];if(N!==_){let R=[...N];for(let W=0;W<q.length;W++){const ne=q[W],ve=wu(ne);w.includes(ve)||(R.splice(W,0,ne),ee.push(ne))}return h==="wait"&&ee.length&&(R=ee),te(og(R)),C(N),null}const{forceRender:Y}=A.useContext(_m);return a.jsx(a.Fragment,{children:q.map(R=>{const W=wu(R),ne=m&&!y?!1:N===q||w.includes(W),ve=()=>{if(H.current.has(W))return;if(P.has(W))H.current.add(W),P.set(W,!0);else return;let de=!0;P.forEach(Me=>{Me||(de=!1)}),de&&(Y==null||Y(),te(F.current),m&&(j==null||j()),o&&o())};return a.jsx(M2,{isPresent:ne,initial:!S.current||r?void 0:!1,custom:l,presenceAffectsLayout:f,mode:h,root:b,onExitComplete:ne?void 0:ve,anchorX:x,anchorY:g,children:R},W)})})},e0=A.createContext({strict:!1}),rg={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"]};let cg=!1;function R2(){if(cg)return;const s={};for(const l in rg)s[l]={isEnabled:r=>rg[l].some(o=>!!r[o])};E1(s),cg=!0}function t0(){return R2(),bA()}function z2(s){const l=t0();for(const r in s)l[r]={...l[r],...s[r]};E1(l)}const F2=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","propagate","ignoreStrict","viewport"]);function Xu(s){return s.startsWith("while")||s.startsWith("drag")&&s!=="draggable"||s.startsWith("layout")||s.startsWith("onTap")||s.startsWith("onPan")||s.startsWith("onLayout")||F2.has(s)}let a0=s=>!Xu(s);function U2(s){typeof s=="function"&&(a0=l=>l.startsWith("on")?!Xu(l):s(l))}try{U2(require("@emotion/is-prop-valid").default)}catch{}function B2(s,l,r){const o={};for(const f in s)f==="values"&&typeof s.values=="object"||Vt(s[f])||(a0(f)||r===!0&&Xu(f)||!l&&!Xu(f)||s.draggable&&f.startsWith("onDrag"))&&(o[f]=s[f]);return o}const Wu=A.createContext({});function L2(s,l){if(Ju(s)){const{initial:r,animate:o}=s;return{initial:r===!1||ac(r)?r:void 0,animate:ac(o)?o:void 0}}return s.inherit!==!1?l:{}}function _2(s){const{initial:l,animate:r}=L2(s,A.useContext(Wu));return A.useMemo(()=>({initial:l,animate:r}),[ug(l),ug(r)])}function ug(s){return Array.isArray(s)?s.join(" "):s}const dh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function n0(s,l,r){for(const o in l)!Vt(l[o])&&!U1(o,r)&&(s[o]=l[o])}function V2({transformTemplate:s},l){return A.useMemo(()=>{const r=dh();return rh(r,l,s),Object.assign({},r.vars,r.style)},[l])}function H2(s,l){const r=s.style||{},o={};return n0(o,r,s),Object.assign(o,V2(s,l)),o}function P2(s,l){const r={},o=H2(s,l);return s.drag&&s.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=s.drag===!0?"none":`pan-${s.drag==="x"?"y":"x"}`),s.tabIndex===void 0&&(s.onTap||s.onTapStart||s.whileTap)&&(r.tabIndex=0),r.style=o,r}const s0=()=>({...dh(),attrs:{}});function G2(s,l,r,o){const f=A.useMemo(()=>{const h=s0();return B1(h,l,_1(o),s.transformTemplate,s.style),{...h.attrs,style:{...h.style}}},[l]);if(s.style){const h={};n0(h,s.style,s),f.style={...h,...f.style}}return f}const K2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];
vendor: 20,795 bytes, line 57
57function fh(s){return typeof s!="string"||s.includes("-")?!1:!!(K2.indexOf(s)>-1||/[A-Z]/u.test(s))}function q2(s,l,r,{latestValues:o},f,h=!1,m){const g=(m??fh(s)?G2:P2)(l,o,f,s),b=B2(l,typeof s=="string",h),y=s!==A.Fragment?{...b,...g,ref:r}:{},{children:j}=l,N=A.useMemo(()=>Vt(j)?j.get():j,[j]);return A.createElement(s,{...y,children:N})}function I2({scrapeMotionValuesFromProps:s,createRenderState:l},r,o,f){return{latestValues:Y2(r,o,f,s),renderState:l()}}function Y2(s,l,r,o){const f={},h=o(s,{});for(const N in h)f[N]=Bu(h[N]);let{initial:m,animate:x}=s;const g=Ju(s),b=T1(s);l&&b&&!g&&s.inherit!==!1&&(m===void 0&&(m=l.initial),x===void 0&&(x=l.animate));let y=r?r.initial===!1:!1;y=y||m===!1;const j=y?x:m;if(j&&typeof j!="boolean"&&!Zu(j)){const N=Array.isArray(j)?j:[j];for(let w=0;w<N.length;w++){const S=th(s,N[w]);if(S){const{transitionEnd:F,transition:P,...H}=S;for(const _ in H){let C=H[_];if(Array.isArray(C)){const q=y?C.length-1:0;C=C[q]}C!==null&&(f[_]=C)}for(const _ in F)f[_]=F[_]}}}return f}const i0=s=>(l,r)=>{const o=A.useContext(Wu),f=A.useContext($u),h=()=>I2(s,l,o,f);return r?h():Vm(h)},X2=i0({scrapeMotionValuesFromProps:ch,createRenderState:dh}),$2=i0({scrapeMotionValuesFromProps:V1,createRenderState:s0}),Q2=Symbol.for("motionComponentSymbol");function Z2(s,l,r){const o=A.useRef(r);A.useInsertionEffect(()=>{o.current=r});const f=A.useRef(null);return A.useCallback(h=>{var x;h&&((x=s.onMount)==null||x.call(s,h)),l&&(h?l.mount(h):l.unmount());const m=o.current;if(typeof m=="function")if(h){const g=m(h);typeof g=="function"&&(f.current=g)}else f.current?(f.current(),f.current=null):m(h);else m&&(m.current=h)},[l])}const l0=A.createContext({});function po(s){return s&&typeof s=="object"&&Object.prototype.hasOwnProperty.call(s,"current")}function J2(s,l,r,o,f,h){var C,q;const{visualElement:m}=A.useContext(Wu),x=A.useContext(e0),g=A.useContext($u),b=A.useContext(uh),y=b.reducedMotion,j=b.skipAnimations,N=A.useRef(null),w=A.useRef(!1);o=o||x.renderer,!N.current&&o&&(N.current=o(s,{visualState:l,parent:m,props:r,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y,skipAnimations:j,isSVG:h}),w.current&&N.current&&(N.current.manuallyAnimateOnMount=!0));const S=N.current,F=A.useContext(l0);S&&!S.projection&&f&&(S.type==="html"||S.type==="svg")&&W2(N.current,r,f,F);const P=A.useRef(!1);A.useInsertionEffect(()=>{S&&P.current&&S.update(r,g)});const H=r[p1],_=A.useRef(!!H&&typeof window<"u"&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,H))&&((q=window.MotionHasOptimisedAnimation)==null?void 0:q.call(window,H)));return Tg(()=>{w.current=!0,S&&(P.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),_.current&&S.animationState&&S.animationState.animateChanges())}),A.useEffect(()=>{S&&(!_.current&&S.animationState&&S.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var te;(te=window.MotionHandoffMarkAsComplete)==null||te.call(window,H)}),_.current=!1),S.enteringChildren=void 0)}),S}function W2(s,l,r,o){const{layoutId:f,layout:h,drag:m,dragConstraints:x,layoutScroll:g,layoutRoot:b,layoutAnchor:y,layoutCrossfade:j}=l;s.projection=new r(s.latestValues,l["data-framer-portal-id"]?void 0:o0(s.parent)),s.projection.setOptions({layoutId:f,layout:h,alwaysMeasureLayout:!!m||x&&po(x),visualElement:s,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:j,layoutScroll:g,layoutRoot:b,layoutAnchor:y})}function o0(s){if(s)return s.options.allowProjection!==!1?s.projection:o0(s.parent)}function Jf(s,{forwardMotionProps:l=!1,type:r}={},o,f){o&&z2(o);const h=r?r==="svg":fh(s),m=h?$2:X2;function x(b,y){let j;const N={...A.useContext(uh),...b,layoutId:eN(b)},{isStatic:w}=N,S=_2(b),F=m(b,w);if(!w&&typeof window<"u"){tN();const P=aN(N);j=P.MeasureLayout,S.visualElement=J2(s,F,N,f,P.ProjectionNode,h)}return a.jsxs(Wu.Provider,{value:S,children:[j&&S.visualElement?a.jsx(j,{visualElement:S.visualElement,...N}):null,q2(s,b,Z2(F,S.visualElement,y),F,w,l,h)]})}x.displayName=`motion.${typeof s=="string"?s:`create(${s.displayName??s.name??""})`}`;const g=A.forwardRef(x);return g[Q2]=s,g}function eN({layoutId:s}){const l=A.useContext(_m).id;return l&&s!==void 0?l+"-"+s:s}function tN(s,l){A.useContext(e0).strict}function aN(s){const l=t0(),{drag:r,layout:o}=l;if(!r&&!o)return{};const f={...r,...o};return{MeasureLayout:r!=null&&r.isEnabled(s)||o!=null&&o.isEnabled(s)?f.MeasureLayout:void 0,ProjectionNode:f.ProjectionNode}}function nN(s,l){if(typeof Proxy>"u")return Jf;const r=new Map,o=(h,m)=>Jf(h,m,s,l),f=(h,m)=>o(h,m);return new Proxy(f,{get:(h,m)=>m==="create"?o:(r.has(m)||r.set(m,Jf(m,void 0,s,l)),r.get(m))})}const sN=(s,l)=>l.isSVG??fh(s)?new zA(l):new CA(l,{allowProjection:s!==A.Fragment});class iN extends hi{constructor(l){super(l),l.animationState||(l.animationState=_A(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Zu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:r}=this.node.prevProps||{};l!==r&&this.updateAnimationControlsSubscription()}unmount(){var l;this.node.animationState.reset(),(l=this.unmountControls)==null||l.call(this)}}let lN=0;class oN extends hi{constructor(){super(...arguments),this.id=lN++,this.isExitComplete=!1}update(){var h;if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;if(l&&o===!1){if(this.isExitComplete){const{initial:m,custom:x}=this.node.getProps();if(typeof m=="string"||typeof m=="object"&&m!==null&&!Array.isArray(m)){const g=il(this.node,m,x);if(g){const{transition:b,transitionEnd:y,...j}=g;for(const N in j)(h=this.node.getValue(N))==null||h.jump(j[N])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const f=this.node.animationState.setActive("exit",!l);r&&!l&&f.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:l,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const rN={animation:{Feature:iN},exit:{Feature:oN}};function oc(s){return{point:{x:s.pageX,y:s.pageY}}}const cN=s=>l=>sh(l)&&s(l,oc(l));function Wr(s,l,r,o){return nc(s,l,cN(r),o)}const r0=({current:s})=>s?s.ownerDocument.defaultView:null,dg=(s,l)=>Math.abs(s-l);function uN(s,l){const r=dg(s.x,l.x),o=dg(s.y,l.y);return Math.sqrt(r**2+o**2)}const fg=new Set(["auto","scroll"]);class c0{constructor(l,r,{transformPagePoint:o,contextWindow:f=window,dragSnapToOrigin:h=!1,distanceThreshold:m=3,element:x}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Su(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Wf(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,F=uN(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!F)return;const{point:P}=w,{timestamp:H}=_t;this.history.push({...P,timestamp:H});const{onStart:_,onMove:C}=this.handlers;S||(_&&_(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,w)},this.handlePointerMove=(w,S)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=S,this.lastMoveEventInfo=Su(S,this.transformPagePoint),nt.update(this.updatePoint,!0)},this.handlePointerUp=(w,S)=>{this.end();const{onEnd:F,onSessionEnd:P,resumeAnimation:H}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Wf(w.type==="pointercancel"?this.lastMoveEventInfo:Su(S,this.transformPagePoint),this.history);this.startEvent&&F&&F(w,_),P&&P(w,_)},!sh(l))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=m,this.contextWindow=f||window;const g=oc(l),b=Su(g,this.transformPagePoint),{point:y}=b,{timestamp:j}=_t;this.history=[{...y,timestamp:j}];const{onSessionStart:N}=r;N&&N(l,Wf(b,this.history)),this.removeListeners=sc(Wr(this.contextWindow,"pointermove",this.handlePointerMove),Wr(this.contextWindow,"pointerup",this.handlePointerUp),Wr(this.contextWindow,"pointercancel",this.handlePointerUp)),x&&this.startScrollTracking(x)}startScrollTracking(l){let r=l.parentElement;for(;r;){const o=getComputedStyle(r);(fg.has(o.overflowX)||fg.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const r=this.scrollPositions.get(l);if(!r)return;const o=l===window,f=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},h={x:f.x-r.x,y:f.y-r.y};h.x===0&&h.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(l,f),nt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),mi(this.updatePoint)}}function Su(s,l){return l?{point:l(s.point)}:s}function mg(s,l){return{x:s.x-l.x,y:s.y-l.y}}function Wf({point:s},l){return{point:s,delta:mg(s,u0(l)),offset:mg(s,dN(l)),velocity:fN(l,.1)}}function dN(s){return s[0]}function u0(s){return s[s.length-1]}function fN(s,l){if(s.length<2)return{x:0,y:0};let r=s.length-1,o=null;const f=u0(s);for(;r>=0&&(o=s[r],!(f.timestamp-o.timestamp>wa(l)));)r--;if(!o)return{x:0,y:0};o===s[0]&&s.length>2&&f.timestamp-o.timestamp>wa(l)*2&&(o=s[1]);const h=Ga(f.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const m={x:(f.x-o.x)/h,y:(f.y-o.y)/h};return m.x===1/0&&(m.x=0),m.y===1/0&&(m.y=0),m}function mN(s,{min:l,max:r},o){return l!==void 0&&s<l?s=o?at(l,s,o.min):Math.max(s,l):r!==void 0&&s>r&&(s=o?at(r,s,o.max):Math.min(s,r)),s}function hg(s,l,r){return{min:l!==void 0?s.min+l:void 0,max:r!==void 0?s.max+r-(s.max-s.min):void 0}}function hN(s,{top:l,left:r,bottom:o,right:f}){return{x:hg(s.x,r,f),y:hg(s.y,l,o)}}function pg(s,l){let r=l.min-s.min,o=l.max-s.max;return l.max-l.min<s.max-s.min&&([r,o]=[o,r]),{min:r,max:o}}function pN(s,l){return{x:pg(s.x,l.x),y:pg(s.y,l.y)}}function xN(s,l){let r=.5;const o=sa(s),f=sa(l);return f>o?r=ec(l.min,l.max-o,s.min):o>f&&(r=ec(s.min,s.max-f,l.min)),Jn(0,1,r)}function bN(s,l){const r={};return l.min!==void 0&&(r.min=l.min-s.min),l.max!==void 0&&(r.max=l.max-s.min),r}const zm=.35;function gN(s=zm){return s===!1?s=0:s===!0&&(s=zm),{x:xg(s,"left","right"),y:xg(s,"top","bottom")}}function xg(s,l,r){return{min:bg(s,l),max:bg(s,r)}}function bg(s,l){return typeof s=="number"?s:s[l]||0}const yN=new WeakMap;class vN{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:f}=this.visualElement;if(f&&f.isPresent===!1)return;const h=j=>{r&&this.snapToCursor(oc(j).point),this.stopAnimation()},m=(j,N)=>{const{drag:w,dragPropagation:S,onDragStart:F}=this.getProps();if(w&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Yj(w),!this.openDragLock))return;this.latestPointerEvent=j,this.latestPanInfo=N,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$n(H=>{let _=this.getAxisMotionValue(H).get()||0;if(Zn.test(_)){const{projection:C}=this.visualElement;if(C&&C.layout){const q=C.layout.layoutBox[H];q&&(_=sa(q)*(parseFloat(_)/100))}}this.originPoint[H]=_}),F&&nt.update(()=>F(j,N),!1,!0),km(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},x=(j,N)=>{this.latestPointerEvent=j,this.latestPanInfo=N;const{dragPropagation:w,dragDirectionLock:S,onDirectionLock:F,onDrag:P}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:H}=N;if(S&&this.currentDirection===null){this.currentDirection=AN(H),this.currentDirection!==null&&F&&F(this.currentDirection);return}this.updateAxis("x",N.point,H),this.updateAxis("y",N.point,H),this.visualElement.render(),P&&nt.update(()=>P(j,N),!1,!0)},g=(j,N)=>{this.latestPointerEvent=j,this.latestPanInfo=N,this.stop(j,N),this.latestPointerEvent=null,this.latestPanInfo=null},b=()=>{const{dragSnapToOrigin:j}=this.getProps();(j||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new c0(l,{onSessionStart:h,onStart:m,onMove:x,onSessionEnd:g,resumeAnimation:b},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:r0(this.visualElement),element:this.visualElement.current})}stop(l,r){const o=l||this.latestPointerEvent,f=r||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!f||!o)return;const{velocity:m}=f;this.startAnimation(m);const{onDragEnd:x}=this.getProps();x&&nt.postRender(()=>x(o,f))}cancel(){this.isDragging=!1;const{projection:l,animationState:r}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,r,o){const{drag:f}=this.getProps();if(!o||!Tu(l,f,this.currentDirection))return;const h=this.getAxisMotionValue(l);let m=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(m=mN(m,this.constraints[l],this.elastic[l])),h.set(m)}resolveConstraints(){var h;const{dragConstraints:l,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(h=this.visualElement.projection)==null?void 0:h.layout,f=this.constraints;l&&po(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=hN(o.layoutBox,l):this.constraints=!1,this.elastic=gN(r),f!==this.constraints&&!po(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&$n(m=>{this.constraints!==!1&&this.getAxisMotionValue(m)&&(this.constraints[m]=bN(o.layoutBox[m],this.constraints[m]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!po(l))return!1;const o=l.current,{projection:f}=this.visualElement;if(!f||!f.layout)return!1;f.root&&(f.root.scroll=void 0,f.root.updateScroll());const h=AA(o,f.root,this.visualElement.getTransformPagePoint());let m=pN(f.layout.layoutBox,h);if(r){const x=r(yA(m));this.hasMutatedConstraints=!!x,x&&(m=M1(x))}return m}startAnimation(l){const{drag:r,dragMomentum:o,dragElastic:f,dragTransition:h,dragSnapToOrigin:m,onDragTransitionEnd:x}=this.getProps(),g=this.constraints||{},b=$n(y=>{if(!Tu(y,r,this.currentDirection))return;let j=g&&g[y]||{};(m===!0||m===y)&&(j={min:0,max:0});const N=f?200:1e6,w=f?40:1e7,S={type:"inertia",velocity:o?l[y]:0,bounceStiffness:N,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...h,...j};return this.startAxisValueAnimation(y,S)});return Promise.all(b).then(x)}startAxisValueAnimation(l,r){const o=this.getAxisMotionValue(l);return km(this.visualElement,l),o.start(eh(l,o,0,r,this.visualElement,!1))}stopAnimation(){$n(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`,f=this.visualElement.getProps()[r];return f||this.visualElement.getValue(l,this.visualElement.latestValues[l]??0)}snapToCursor(l){$n(r=>{const{drag:o}=this.getProps();if(!Tu(r,o,this.currentDirection))return;const{projection:f}=this.visualElement,h=this.getAxisMotionValue(r);if(f&&f.layout){const{min:m,max:x}=f.layout.layoutBox[r],g=h.get()||0;h.set(l[r]-at(m,x,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!po(r)||!o||!this.constraints)return;this.stopAnimation();const f={x:0,y:0};$n(m=>{const x=this.getAxisMotionValue(m);if(x&&this.constraints!==!1){const g=x.get();f[m]=xN({min:g,max:g},this.constraints[m])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),$n(m=>{if(!Tu(m,l,null))return;const x=this.getAxisMotionValue(m),{min:g,max:b}=this.constraints[m];x.set(at(g,b,f[m]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yN.set(this.visualElement,this);const l=this.visualElement.current,r=Wr(l,"pointerdown",b=>{const{drag:y,dragListener:j=!0}=this.getProps(),N=b.target,w=N!==l&&Wj(N);y&&j&&!w&&this.start(b)});let o;const f=()=>{const{dragConstraints:b}=this.getProps();po(b)&&b.current&&(this.constraints=this.resolveRefConstraints(),o||(o=jN(l,b.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,m=h.addEventListener("measure",f);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),nt.read(f);const x=nc(window,"resize",()=>this.scalePositionWithinConstraints()),g=h.addEventListener("didUpdate",(({delta:b,hasLayoutChanged:y})=>{this.isDragging&&y&&($n(j=>{const N=this.getAxisMotionValue(j);N&&(this.originPoint[j]+=b[j].translate,N.set(N.get()+b[j].translate))}),this.visualElement.render())}));return()=>{x(),r(),m(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:f=!1,dragConstraints:h=!1,dragElastic:m=zm,dragMomentum:x=!0}=l;return{...l,drag:r,dragDirectionLock:o,dragPropagation:f,dragConstraints:h,dragElastic:m,dragMomentum:x}}}function gg(s){let l=!0;return()=>{if(l){l=!1;return}s()}}function jN(s,l,r){const o=wb(s,gg(r)),f=wb(l,gg(r));return()=>{o(),f()}}function Tu(s,l,r){return(l===!0||l===s)&&(r===null||r===s)}function AN(s,l=10){let r=null;return Math.abs(s.y)>l?r="y":Math.abs(s.x)>l&&(r="x"),r}class NN extends hi{constructor(l){super(l),this.removeGroupControls=Ka,this.removeListeners=Ka,this.controls=new vN(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ka}update(){const{dragControls:l}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};l!==r&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const em=s=>(l,r)=>{s&&nt.update(()=>s(l,r),!1,!0)};class kN extends hi{constructor(){super(...arguments),this.removePointerDownListener=Ka}onPointerDown(l){this.session=new c0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:o,onPanEnd:f}=this.node.getProps();return{onSessionStart:em(l),onStart:em(r),onMove:em(o),onEnd:(h,m)=>{delete this.session,f&&nt.postRender(()=>f(h,m))}}}mount(){this.removePointerDownListener=Wr(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let tm=!1;class wN extends A.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o,layoutId:f}=this.props,{projection:h}=l;h&&(r.group&&r.group.add(h),o&&o.register&&f&&o.register(h),tm&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Lu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:o,drag:f,isPresent:h}=this.props,{projection:m}=o;return m&&(m.isPresent=h,l.layoutDependency!==r&&m.setOptions({...m.options,layoutDependency:r}
vendor: 6,785 bytes, lines 57-92
57),tm=!0,f||l.layoutDependency!==r||r===void 0||l.isPresent!==h?m.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?m.promote():m.relegate()||nt.postRender(()=>{const x=m.getStack();(!x||!x.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:l,layoutAnchor:r}=this.props,{projection:o}=l;o&&(o.options.layoutAnchor=r,o.root.didUpdate(),nh.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:f}=l;tm=!0,f&&(f.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(f),o&&o.deregister&&o.deregister(f))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function d0(s){const[l,r]=W1(),o=A.useContext(_m);return a.jsx(wN,{...s,layoutGroup:o,switchLayoutGroup:A.useContext(l0),isPresent:l,safeToRemove:r})}const SN={pan:{Feature:kN},drag:{Feature:NN,ProjectionNode:J1,MeasureLayout:d0}};function yg(s,l,r){const{props:o}=s;s.animationState&&o.whileHover&&s.animationState.setActive("whileHover",r==="Start");const f="onHover"+r,h=o[f];h&&nt.postRender(()=>h(l,oc(l)))}class TN extends hi{mount(){const{current:l}=this.node;l&&(this.unmount=$j(l,(r,o)=>(yg(this.node,o,"Start"),f=>yg(this.node,f,"End"))))}unmount(){}}class CN extends hi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=sc(nc(this.node.current,"focus",()=>this.onFocus()),nc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vg(s,l,r){const{props:o}=s;if(s.current instanceof HTMLButtonElement&&s.current.disabled)return;s.animationState&&o.whileTap&&s.animationState.setActive("whileTap",r==="Start");const f="onTap"+(r==="End"?"":r),h=o[f];h&&nt.postRender(()=>h(l,oc(l)))}class EN extends hi{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:r,propagate:o}=this.node.props;this.unmount=tA(l,(f,h)=>(vg(this.node,h,"Start"),(m,{success:x})=>vg(this.node,m,x?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const Fm=new WeakMap,am=new WeakMap,DN=s=>{const l=Fm.get(s.target);l&&l(s)},MN=s=>{s.forEach(DN)};function ON({root:s,...l}){const r=s||document;am.has(r)||am.set(r,{});const o=am.get(r),f=JSON.stringify(l);return o[f]||(o[f]=new IntersectionObserver(MN,{root:s,...l})),o[f]}function RN(s,l,r){const o=ON(l);return Fm.set(s,r),o.observe(s),()=>{Fm.delete(s),o.unobserve(s)}}const zN={some:0,all:1};class FN extends hi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:l={}}=this.node.getProps(),{root:r,margin:o,amount:f="some",once:h}=l,m={root:r?r.current:void 0,rootMargin:o,threshold:typeof f=="number"?f:zN[f]},x=b=>{const{isIntersecting:y}=b;if(this.isInView===y||(this.isInView=y,h&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:j,onViewportLeave:N}=this.node.getProps(),w=y?j:N;w&&w(b)};this.stopObserver=RN(this.node.current,m,x)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:r}=this.node;["amount","margin","root"].some(UN(l,r))&&this.startObserver()}unmount(){var l;(l=this.stopObserver)==null||l.call(this),this.hasEnteredView=!1,this.isInView=!1}}function UN({viewport:s={}},{viewport:l={}}={}){return r=>s[r]!==l[r]}const BN={inView:{Feature:FN},tap:{Feature:EN},focus:{Feature:CN},hover:{Feature:TN}},LN={layout:{ProjectionNode:J1,MeasureLayout:d0}},_N={...rN,...BN,...SN,...LN},vn=nN(_N,sN);/** 58 * @license lucide-react v0.546.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const VN=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),HN=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,o)=>o?o.toUpperCase():r.toLowerCase()),jg=s=>{const l=HN(s);return l.charAt(0).toUpperCase()+l.slice(1)},f0=(...s)=>s.filter((l,r,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===r).join(" ").trim(),PN=s=>{for(const l in s)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/** 63 * @license lucide-react v0.546.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */var GN={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"};/** 68 * @license lucide-react v0.546.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const KN=A.forwardRef(({color:s="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:f="",children:h,iconNode:m,...x},g)=>A.createElement("svg",{ref:g,...GN,width:l,height:l,stroke:s,strokeWidth:o?Number(r)*24/Number(l):r,className:f0("lucide",f),...!h&&!PN(x)&&{"aria-hidden":"true"},...x},[...m.map(([b,y])=>A.createElement(b,y)),...Array.isArray(h)?h:[h]]));/** 73 * @license lucide-react v0.546.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const be=(s,l)=>{const r=A.forwardRef(({className:o,...f},h)=>A.createElement(KN,{ref:h,iconNode:l,className:f0(`lucide-${VN(jg(s))}`,`lucide-${s}`,o),...f}));return r.displayName=jg(s),r};/** 78 * @license lucide-react v0.546.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const qN=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],IN=be("arrow-up",qN);/** 83 * @license lucide-react v0.546.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const YN=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],XN=be("award",YN);/** 88 * @license lucide-react v0.546.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const $N=[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}
92]],Um=be("bed",$N);/** 93 * @license lucide-react v0.546.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const QN=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],nm=be("calendar",QN);/** 98 * @license lucide-react v0.546.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const ZN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],JN=be("check",ZN);/** 103 * @license lucide-react v0.546.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const WN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ek=be("chevron-down",WN);/** 108 * @license lucide-react v0.546.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const tk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rc=be("chevron-left",tk);/** 113 * @license lucide-react v0.546.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const ak=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cc=be("chevron-right",ak);/** 118 * @license lucide-react v0.546.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const nk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],sk=be("chevron-up",nk);/** 123 * @license lucide-react v0.546.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const ik=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],lk=be("chevrons-left",ik);/** 128 * @license lucide-react v0.546.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const ok=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],rk=be("chevrons-right",ok);/** 133 * @license lucide-react v0.546.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const ck=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],sm=be("circle-alert",ck);/** 138 * @license lucide-react v0.546.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const uk=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gn=be("circle-check-big",uk);/** 143 * @license lucide-react v0.546.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const dk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],m0=be("clock",dk);/** 148 * @license lucide-react v0.546.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const fk=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],mk=be("coffee",fk);/** 153 * @license lucide-react v0.546.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const hk=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Bm=be("compass",hk);/** 158 * @license lucide-react v0.546.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const pk=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],h0=be("download",pk);/** 163 * @license lucide-react v0.546.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const xk=[["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"}]],p0=be("external-link",xk);/** 168 * @license lucide-react v0.546.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const bk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],gk=be("eye-off",bk);/** 173 * @license lucide-react v0.546.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const yk=[["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"}]],x0=be("eye",yk);/** 178 * @license lucide-react v0.546.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const vk=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],jk=be("facebook",vk);/** 183 * @license lucide-react v0.546.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const Ak=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],mh=be("file-text",Ak);/** 188 * @license lucide-react v0.546.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const Nk=[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]],kk=be("footprints",Nk);/** 193 * @license lucide-react v0.546.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const wk=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Sk=be("heart",wk);/** 198 * @license lucide-react v0.546.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const Tk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],el=be("image",Tk);/** 203 * @license lucide-react v0.546.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const Ck=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Ek=be("inbox",Ck);/** 208 * @license lucide-react v0.546.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const Dk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Mk=be("info",Dk);/** 213 * @license lucide-react v0.546.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const Ok=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Rk=be("instagram",Ok);/** 218 * @license lucide-react v0.546.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const zk=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Cu=be("key",zk);/** 223 * @license lucide-react v0.546.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const Fk=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Uk=be("layers",Fk);/** 228 * @license lucide-react v0.546.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const Bk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ag=be("loader-circle",Bk);/** 233 * @license lucide-react v0.546.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const Lk=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],_k=be("lock",Lk);/** 238 * @license lucide-react v0.546.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const Vk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],yo=be("mail",Vk);/** 243 * @license lucide-react v0.546.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const Hk=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],b0=be("map-pin",Hk);/** 248 * @license lucide-react v0.546.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const Pk=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],Gk=be("maximize",Pk);/** 253 * @license lucide-react v0.546.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const Kk=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],im=be("megaphone",Kk);/** 258 * @license lucide-react v0.546.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree. 262 */const qk=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ik=be("menu",qk);/** 263 * @license lucide-react v0.546.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const Yk=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],lm=be("message-square",Yk);/** 268 * @license lucide-react v0.546.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const Xk=[["path",{d:"M5 12h14",key:"1ays0h"}]],$k=be("minus",Xk);/** 273 * @license lucide-react v0.546.0 - ISC 274 * 275 * This source code is licensed under the ISC license. 276 * See the LICENSE file in the root directory of this source tree. 277 */const Qk=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zk=be("navigation",Qk);/** 278 * @license lucide-react v0.546.0 - ISC 279 * 280 * This source code is licensed under the ISC license. 281 * See the LICENSE file in the root directory of this source tree. 282 */const Jk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Wk=be("panels-top-left",Jk);/** 283 * @license lucide-react v0.546.0 - ISC 284 * 285 * This source code is licensed under the ISC license. 286 * See the LICENSE file in the root directory of this source tree. 287 */const ew=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],om=be("pen-line",ew);/** 288 * @license lucide-react v0.546.0 - ISC 289 * 290 * This source code is licensed under the ISC license. 291 * See the LICENSE file in the root directory of this source tree. 292 */const tw=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
2920 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],g0=be("phone",tw);/** 293 * @license lucide-react v0.546.0 - ISC 294 * 295 * This source code is licensed under the ISC license. 296 * See the LICENSE file in the root directory of this source tree. 297 */const aw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],$r=be("plus",aw);/** 298 * @license lucide-react v0.546.0 - ISC 299 * 300 * This source code is licensed under the ISC license. 301 * See the LICENSE file in the root directory of this source tree. 302 */const nw=[["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"}]],Ng=be("quote",nw);/** 303 * @license lucide-react v0.546.0 - ISC 304 * 305 * This source code is licensed under the ISC license. 306 * See the LICENSE file in the root directory of this source tree. 307 */const sw=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ir=be("refresh-cw",sw);/** 308 * @license lucide-react v0.546.0 - ISC 309 * 310 * This source code is licensed under the ISC license. 311 * See the LICENSE file in the root directory of this source tree. 312 */const iw=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],rm=be("send",iw);/** 313 * @license lucide-react v0.546.0 - ISC 314 * 315 * This source code is licensed under the ISC license. 316 * See the LICENSE file in the root directory of this source tree. 317 */const lw=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],ow=be("server",lw);/** 318 * @license lucide-react v0.546.0 - ISC 319 * 320 * This source code is licensed under the ISC license. 321 * See the LICENSE file in the root directory of this source tree. 322 */const rw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cw=be("shield-check",rw);/** 323 * @license lucide-react v0.546.0 - ISC 324 * 325 * This source code is licensed under the ISC license. 326 * See the LICENSE file in the root directory of this source tree. 327 */const uw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],dw=be("shield",uw);/** 328 * @license lucide-react v0.546.0 - ISC 329 * 330 * This source code is licensed under the ISC license. 331 * See the LICENSE file in the root directory of this source tree. 332 */const fw=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],kg=be("sliders-vertical",fw);/** 333 * @license lucide-react v0.546.0 - ISC 334 * 335 * This source code is licensed under the ISC license. 336 * See the LICENSE file in the root directory of this source tree. 337 */const mw=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
337],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],hh=be("sparkles",mw);/** 338 * @license lucide-react v0.546.0 - ISC 339 * 340 * This source code is licensed under the ISC license. 341 * See the LICENSE file in the root directory of this source tree. 342 */const hw=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pw=be("square-check-big",hw);/** 343 * @license lucide-react v0.546.0 - ISC 344 * 345 * This source code is licensed under the ISC license. 346 * See the LICENSE file in the root directory of this source tree. 347 */const xw=[["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"}]],Yr=be("star",xw);/** 348 * @license lucide-react v0.546.0 - ISC 349 * 350 * This source code is licensed under the ISC license. 351 * See the LICENSE file in the root directory of this source tree. 352 */const bw=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],gw=be("ticket",bw);/** 353 * @license lucide-react v0.546.0 - ISC 354 * 355 * This source code is licensed under the ISC license. 356 * See the LICENSE file in the root directory of this source tree. 357 */const yw=[["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m18 22-2-3",key:"1p0ohu"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}]],vw=be("tram-front",yw);/** 358 * @license lucide-react v0.546.0 - ISC 359 * 360 * This source code is licensed under the ISC license. 361 * See the LICENSE file in the root directory of this source tree. 362 */const jw=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Eu=be("trash-2",jw);/** 363 * @license lucide-react v0.546.0 - ISC 364 * 365 * This source code is licensed under the ISC license. 366 * See the LICENSE file in the root directory of this source tree. 367 */const Aw=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Nw=be("upload",Aw);/** 368 * @license lucide-react v0.546.0 - ISC 369 * 370 * This source code is licensed under the ISC license. 371 * See the LICENSE file in the root directory of this source tree. 372 */const kw=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],y0=be("user",kw);/** 373 * @license lucide-react v0.546.0 - ISC 374 * 375 * This source code is licensed under the ISC license. 376 * See the LICENSE file in the root directory of this source tree. 377 */const ww=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Sw=be("users",ww);/** 378 * @license lucide-react v0.546.0 - ISC 379 * 380 * This source code is licensed under the ISC license. 381 * See the LICENSE file in the root directory of this source tree. 382 */const Tw=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],cm=be("utensils",Tw);/** 383 * @license lucide-react v0.546.0 - ISC 384 * 385 * This source code is licensed under the ISC license. 386 * See the LICENSE file in the root directory of this source tree. 387 */const Cw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
387],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],di=be("x",Cw);/** 388 * @license lucide-react v0.546.0 - ISC 389 * 390 * This source code is licensed under the ISC license. 391 * See the LICENSE file in the root directory of this source tree. 392 */const Ew=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Dw=be("zoom-in",Ew);/** 393 * @license lucide-react v0.546.0 - ISC 394 * 395 * This source code is licensed under the ISC license. 396 * See the LICENSE file in the root directory of this source tree. 397 */const Mw=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Ow=be("zoom-out",Mw),v0=A.createContext(void 0),aa="kosenda_hotel_state_db_v3",wg=`${aa}_version`,um="4",Rw=[],Pa=(s,l,r=800,o=600,f=24)=>{const h=`<svg xmlns='http://www.w3.org/2000/svg' width='${r}' height='${o}' viewBox='0 0 ${r} ${o}'><rect width='${r}' height='${o}' fill='${l}'/><text x='50%' y='50%' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='${f}' font-weight='bold' fill='white'>${s}</text></svg>`;return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(h)))}`},zw=[],Sg=[{id:"v1",code:"KOSENDALOCAL",discountPercent:15,validFrom:"2026-01-01",validTo:"2026-12-31",roomId:"all",imageUrl:Pa("KOSENDA PROMO","#C48810"),description:"Promo langsung 15% untuk seluruh jenis tipe kamar bagi tamu domestik."},{id:"v2",code:"COZYPETITA",discountPercent:20,validFrom:"2026-05-01",validTo:"2026-08-31",roomId:"petita",imageUrl:Pa("KOSENDA PROMO","#C48810"),description:"Nikmati potongan harga eksklusif 20% khusus pemesanan Petita Room."}],Ha={showReservationCard:!1,bookingRedirectUrl:"",headerFooter:{logoText:"KOSENDA",logoImageUrl:"/logo.png",address:"Jl. KH. Wahid Hasyim No. 127, Jakarta Pusat, 10240, Indonesia",phone:"+62 21 3193 6868",email:"[email protected]",instagram:"https://instagram.com/kosenda",facebook:"https://facebook.com/kosenda",creditText:"Simulation Platform Test ⢠Jakarta Craft Vibe",venture1Name:"Waha Kitchen",venture1LogoUrl:Pa("WAHA","#8F9A86",120,120,12),venture1Link:"https://wahakitchenmenteng.com",venture2Name:"Awan Lounge",venture2LogoUrl:Pa("AWAN","#504C47",120,120,12),venture2Link:"https://awanloungementeng.com"},homeBanner:{images:[],overlayOpacity:20,title:"A Boutique Urban Escape",subtitle:"VINTAGE AESTHETIC MEETS NEW SOUL IN THE HEART OF JAKARTA"},dining:{title:"Authentic Flavors & Curated Art Spaces",subtitle:"From specialty coffee brewing in a quiet café corner, legendary Peranakan legacy recipes, to sunset mixology creations under a lush hotel rooftop garden.",outlets:[{id:"waha",name:"Waha Kitchen",type:"Restoran Peranakan & Lokal (24 Jam)",hours:"Setiap Hari - 24 Jam Non-stop",vibe:"Vintage Bistro dengan Lantai Tegel Klasik & Lukisan Kontemporer",description:"Sebuah perpaduan kuliner Peranakan-Tionghoa dan tradisi lokal Indonesia yang disajikan dengan penuh cinta. Nikmati aroma rempah autentik yang diwariskan turun-temurun di dalam ruang kontemporer yang dihiasi lampu temaram hangat dan elemen seni yang unik.",imageUrl:Pa("WAHA KITCHEN","#8F9A86"),imageUrls:[Pa("WAHA DINING","#8F9A86"),Pa("WAHA ART","#504C47"),Pa("WAHA AMBIENCE","#1A1A1A")],features:["Award-winning Peranakan culinary destination","Intimate atmosphere suitable for dinners or events","Bespoke Buffet Breakfast & curated Ala Carte selections"],signatureItems:["Signature Nyonya Laksa (Richly spiced coconut broth)","Hainan Chicken Rice (Ginger infused fragrant rice)","Char Kway Teow (Wok-hei smoked flat noodles)","Batavia Es Campur (Shaved coconut dessert)"]},{id:"awan",name:"Awan Lounge",type:"Tropical Rooftop Garden & Bar (9th Floor)",hours:"5:00 PM - 12:00 AM (Daily)",vibe:"A Green Canopy Oasis Nestled in Jakarta's High-Rise Horizon",description:"Perched on the 9th floor of Kosenda Hotel, Awan Lounge offers a unique hangout experience surrounded by lush vertical gardens and cool night breezes. Savor artisanal cocktails and chef-crafted fusion tapas while overlooking the city skyline.",imageUrl:Pa("AWAN LOUNGE","#504C47"),imageUrls:[Pa("AWAN SKYVIEW","#504C47"),Pa("AWAN VERTICAL GARDEN","#8F9A86"),Pa("AWAN BOTANICAL","#1A1A1A")],features:["360-degree Central Jakarta skyline panorama","Vertical garden with over 10,000 live tropical plants","Rooftop DJ and live acoustic sessions on weekends"],signatureItems:["
397Sari Botanical Gin (Infused with jasmine & lemongrass)","Chili Lime Calamari Tapas (Crispy spiced squid)","Luwak Coffee Martini (Premium local espresso blend)","Artisanal Skewers Platter (Sizzling grilled meats)"]}]},artSoul:{title:"Where every nook tells a story, and every detail is hand-woven with soul.",subtitle:"Kosenda was born of a dream: to construct a hand-tailored design hotel that honors Batavia's vibrant history while embracing modernist mid-century luxury, avoiding generic corporate repetition.",quoteText:"âI envisioned a boutique sanctuary in Jakarta that wouldn't shy away from its Indonesian heritage, but rather reinterpret it through a modern mid-century lens. A living space celebrating local art, Nusantara hospitality, and tranquil tropical greenery.â",quoteAuthor:"Ruben Kosenda",quoteAuthorTitle:"Founder & Art Collector, Kosenda Hotel",items:[]},location:{title:"In the Cultural & Commercial Heart of Jakarta",subtitle:"Excellently positioned in the premium Wahid Hasyim neighborhood, moments away from embassy districts, central business zones, and the legendary culinary streets of Sabang.",addressDetails:"Jl. KH. Wahid Hasyim No. 127, Gondangdia, Kec. Menteng, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10240, Indonesia",phoneDetails:"+62 21 3193 6868",coordinatesLabel:"Coordinates: -6.1852° N, 106.8228° E | 5-Minute Walk to Sarinah MRT Station",embedMapUrl:"https://www.google.com/maps?q=-6.1852,106.8228&z=15&output=embed",latitude:-6.1852,longitude:106.8228,places:[{id:"p1",name:"Sarinah Cultural Hub & MRT Station",type:"Cultural Destination & Shopping",distance:"300 M (5-Minute Walk)",description:"The newly transformed Sarinah celebrates Indonesian craftsmanship, featuring cultural galleries, fine batik houses, and modern art exhibitions."},{id:"p2",name:"Jalan Sabang Street Food Alley",type:"Legendary Culinary Destination",distance:"400 M (6-Minute Walk)",description:"Jakarta's legendary street-side food haven, famed for charcoal-grilled satay, traditional betawi soups, and nocturnal food stalls operating since the 1970s."},{id:"p3",name:"Bundaran HI & Grand Indonesia Shopping Mall",type:"Modern Lifestyle & City Center",distance:"1.2 KM (15-Minute Walk / 3-Minute Drive)",description:"The city's central business roundabout, surrounded by top international shopping spaces and Jakarta's iconic Welcome Monument."},{id:"p4",name:"Historical National Monument (Monas)",type:"National Heritage & Recreation",distance:"1.8 KM (5-Minute Drive)",description:"The monumental icon of Indonesian independence set within an 80-hectare park, offering rich historical dioramas and green trails."}]},aiSystemInstruction:"",aiFallbackReply:"",typography:{h1Font:"Playfair Display",h2Font:"Space Grotesk",h3Font:"Space Grotesk",h4Font:"Inter",bodyFont:"Inter"}},Fw=({children:s})=>{const l=localStorage.getItem(wg);if(l!==um){console.log(`[LocalStorage] Version mismatch (stored: ${l}, current: ${um}), clearing all localStorage data.`);const K=[];for(let G=0;G<localStorage.length;G++){const $=localStorage.key(G);$&&$.startsWith(aa)&&K.push($)}K.forEach(G=>localStorage.removeItem(G)),localStorage.setItem(wg,um)}const[r,o]=A.useState(()=>{try{const K=localStorage.getItem(`${aa}_is_logged_in`);return K?JSON.parse(K):!1}catch(K){return console.warn("Failed to parse isLoggedIn from localStorage, returning default false:",K),!1}}),[f,h]=A.useState([]),[m,x]=A.useState(()=>{const K={name:"Sian Budi",email:"[email protected]",phone:"+62 822-4412-8990",bio:"Seniman grafis, desainer arsitektur retro, penjelajah rasa Jakarta, dan pencinta berat kopi single-origin Indonesia.",role:"employee",avatarUrl:"/assets/profile.png"};try{const G=localStorage.getItem(`${aa}_profile`);return G?JSON.parse(G):K}catch(G){return console.warn("Failed to parse profile from localStorage, returning default:",G),K}}),[g,b]=A.useState(()=>Rw),[y,j]=A.useState(()=>{try{const K=localStorage.getItem(`${aa}_bookings`);if(K)return JSON.parse(K).filter($=>$.id!=="b1"&&$.id!=="b2"&&$.id!=="b3"&&$.id!=="b4"&&$.id!=="b5")}catch(K){console.warn("Failed to parse bookings from localStorage:",K
397)}return zw}),[N,w]=A.useState(()=>{try{const K=localStorage.getItem(`${aa}_vouchers`);return K?JSON.parse(K):Sg}catch(K){return console.warn("Failed to parse vouchers from localStorage, returning default:",K),Sg}}),[S,F]=A.useState(()=>{var G,$,le;const K=localStorage.getItem(`${aa}_website_settings`);if(K)try{const Oe=JSON.parse(K);return{...Ha,...Oe,headerFooter:{...Ha.headerFooter,...Oe.headerFooter||{}},homeBanner:{...Ha.homeBanner,...Oe.homeBanner||{}},dining:{...Ha.dining,...Oe.dining||{},outlets:((G=Oe.dining)==null?void 0:G.outlets)||Ha.dining.outlets},artSoul:{...Ha.artSoul,...Oe.artSoul||{},items:(($=Oe.artSoul)==null?void 0:$.items)||Ha.artSoul.items},location:{...Ha.location,...Oe.location||{},places:((le=Oe.location)==null?void 0:le.places)||Ha.location.places},typography:{...Ha.typography,...Oe.typography||{}}}}catch{return Ha}return Ha}),[P,H]=A.useState(()=>[]),[_,C]=A.useState(!1),q=A.useRef(!1);A.useEffect(()=>{(async()=>{try{const G=await fetch("/api/config");if(G.ok){const $=await G.json();$.rooms&&Array.isArray($.rooms)&&(b($.rooms),q.current=!0),$.websiteSettings&&F(le=>{var Oe,st,Xt;return{...le,...$.websiteSettings,headerFooter:{...le.headerFooter,...$.websiteSettings.headerFooter||{}},homeBanner:{...le.homeBanner,...$.websiteSettings.homeBanner||{}},dining:{...le.dining,...$.websiteSettings.dining||{},outlets:((Oe=$.websiteSettings.dining)==null?void 0:Oe.outlets)||le.dining.outlets},artSoul:{...le.artSoul,...$.websiteSettings.artSoul||{},items:((st=$.websiteSettings.artSoul)==null?void 0:st.items)||le.artSoul.items},location:{...le.location,...$.websiteSettings.location||{},places:((Xt=$.websiteSettings.location)==null?void 0:Xt.places)||le.location.places},typography:{...le.typography,...$.websiteSettings.typography||{}}}}),$.bookings&&j($.bookings),$.vouchers&&w($.vouchers)}}catch(G){console.warn("Could not load dynamic config from DB, running client-only fallback state:",G)}finally{C(!0)}})()},[]);const te=K=>{if(!K||typeof K!="object")return K;if(Array.isArray(K))return K.map(le=>te(le));const G=le=>{if(typeof le!="object"||le===null)return!1;const Oe=Object.getPrototypeOf(le);return Oe===Object.prototype||Oe===null};if(!G(K))return K;const $={};for(const le in K)if(Object.prototype.hasOwnProperty.call(K,le)){const Oe=K[le];typeof Oe=="string"&&Oe.startsWith("data:")&&!Oe.includes("image/svg+xml")&&!Oe.startsWith("data:application/pdf")&&le!=="menuPdfUrl"&&Oe.length>2e4?(console.warn(`[SANITY CHECK] Stripped large base64 image data under key: "${le}" (length: ${Oe.length})`),$[le]="/logo.png"):G(Oe)?$[le]=te(Oe):Array.isArray(Oe)?$[le]=Oe.map(st=>te(st)):$[le]=Oe}return $},ee=(K,G)=>{try{localStorage.setItem(K,G)}catch($){console.warn(`[LocalStorage] Quota exceeded or error writing key "${K}". Skipping local persistence, but server-side persistence should stay intact.`,$)}};A.useEffect(()=>{ee(`${aa}_profile`,JSON.stringify(m))},[m]),A.useEffect(()=>{const K=te(g);if(ee(`${aa}_rooms`,JSON.stringify(K)),_&&q.current&&K.length>0){const G=setTimeout(()=>{fetch("/api/save-rooms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rooms:K})}).then(async $=>{if(!$.ok){const le=await $.text();throw new Error(`DB Sync Error: ${$.status} - ${le}`)}return $.json()}).then($=>{console.log("[DB] Rooms synchronized successfully:",$)}).catch($=>{console.error("Failed to background-sync rooms:",$)})},1200);return()=>clearTimeout(G)}},[g,_]),A.useEffect(()=>{ee(`${aa}_bookings`,JSON.stringify(y))},[y]),A.useEffect(()=>{const K=te(N);if(ee(`${aa}_vouchers`,JSON.stringify(K)),_){const G=setTimeout(()=>{fetch("/api/save-vouchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vouchers:K})}).catch($=>console.error("Failed to background-sync vouchers:",$))},1200);return()=>clearTimeout(G)}},[N,_]),A.useEffect(()=>{const K=te(S);if(ee(`${aa}_website_settings`,JSON.stringify(K)),_){const G=setTimeout(()=>{fetch("/api/save-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({websiteSettings:K})}).catch($=>console.error("Failed to background-sync settings:",$))},1200);return()=>clearTimeout(G)}},[S,_]),A.useEffect(()=>{ee(`${aa}_chats`,JSON.stringify(P))},[P]),A.useEffect(()=>{ee(`${aa}_is_logged_in`,JSON.stringify(r)),r&&Y()},[r]);const Y=async()=>{try{const G=await(await fetch("/api/users")).json();G.success&&h(G.users)}catch(K){console.error("Failed to fetch users list:",K)}},R=async K=>{try{const $=await(await fetch("/api/save-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)})).json();return $.success&&await Y(),$}catch(G){return console.error("Failed to save user in admin:",G),{success:!1,message:"Network connection error."}}},W=async K=>{try{const $=await(await fetch("/api/delete-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:K})})).json();return $.success&&await Y(),$}catch(G){return console.error("Failed to delete user in admin:",G),{success:!1,message:"Network connection error."}}},ne=()=>
397{o(!1),x({name:"Tamu Kosenda",email:"",phone:"",bio:"Boutique seeker",role:"member",avatarUrl:"/assets/profile.png"})},ve=K=>{x(G=>({...G,...K}))},de=K=>{x(G=>({...G,role:K}))},Me=K=>{const G=K.name.toLowerCase().replace(/\s+/g,"-")+"-"+Math.floor(100+Math.random()*900),$={...K,id:G};b(le=>[...le,$])},ue=(K,G)=>{b($=>$.map(le=>le.id===K?{...le,...G}:le))},Ne=K=>{b(G=>G.filter($=>$.id!==K))},O=K=>{const G=`b-${Math.floor(1e3+Math.random()*9e3)}`,$={...K,id:G,createdAt:new Date().toISOString()};return j(le=>[$,...le]),$},Z=(K,G)=>{j($=>$.map(le=>le.id===K?{...le,status:G}:le)),fetch("/api/update-booking-status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:K,status:G})}).catch($=>console.error("Failed to sync booking status:",$))},se=K=>{const G=`v-${Math.floor(100+Math.random()*900)}`,$={...K,id:G};w(le=>[...le,$])},me=(K,G)=>{w($=>$.map(le=>le.id===K?{...le,...G}:le))},ye=K=>{w(G=>G.filter($=>$.id!==K))},T=K=>{F(G=>({...G,headerFooter:{...G.headerFooter,...K}}))},B=K=>{F(G=>({...G,homeBanner:{...G.homeBanner,...K}}))},oe=K=>{F(G=>({...G,dining:{...G.dining,...K}}))},J=(K,G)=>{F($=>({...$,dining:{...$.dining,outlets:$.dining.outlets.map(le=>le.id===K?{...le,...G}:le)}}))},ce=K=>{const G=K.name.toLowerCase().replace(/\s+/g,"-")+"-"+Math.floor(100+Math.random()*900),$={...K,id:G};F(le=>({...le,dining:{...le.dining,outlets:[...le.dining.outlets,$]}}))},fe=K=>{F(G=>({...G,dining:{...G.dining,outlets:G.dining.outlets.filter($=>$.id!==K)}}))},we=K=>{F(G=>({...G,artSoul:{...G.artSoul,...K}}))},qe=(K,G)=>{F($=>({...$,artSoul:{...$.artSoul,items:$.artSoul.items.map(le=>le.id===K?{...le,...G}:le)}}))},Ie=K=>{const G=`art-${Math.floor(100+Math.random()*900)}`,$={...K,id:G};F(le=>({...le,artSoul:{...le.artSoul,items:[...le.artSoul.items,$]}}))},It=K=>{F(G=>({...G,artSoul:{...G.artSoul,items:G.artSoul.items.filter($=>$.id!==K)}}))},qa=K=>{F(G=>({...G,location:{...G.location,...K}}))},ze=(K,G)=>{F($=>({...$,location:{...$.location,places:$.location.places.map(le=>le.id===K?{...le,...G}:le)}}))},lt=K=>{const G=`p-${Math.floor(100+Math.random()*900)}`,$={...K,id:G};F(le=>({...le,location:{...le.location,places:[...le.location.places,$]}}))},Yt=K=>{F(G=>({...G,location:{...G.location,places:G.location.places.filter($=>$.id!==K)}}))},Ia=K=>{F(G=>({...G,...K}))},ke=K=>{F(G=>({...G,bookingRedirectUrl:K}))},Pe=K=>{F(G=>({...G,showReservationCard:K}))},Ya=K=>{F(G=>({...G,typography:{...G.typography||{h1Font:"Playfair Display",h2Font:"Space Grotesk",h3Font:"Space Grotesk",h4Font:"Inter",bodyFont:"Inter"},...K}}))},Xa=(K,G,$)=>{const le={id:`msg-${Date.now()}`,sender:G,senderName:G==="member"?m.name:"Wanda Concierge (Front Office)",content:$,timestamp:new Date().toISOString()};H(Oe=>Oe.map(st=>{if(st.id===K){const Xt=m.role===G;return{...st,lastMessageText:$,lastMessageTime:le.timestamp,unreadCount:Xt?st.unreadCount:st.unreadCount+1,messages:[...st.messages,le]}}return st})),G==="member"&&setTimeout(()=>{const Oe={id:`msg-ai-${Date.now()}`,sender:"employee",senderName:"Assistant Wanda Virtual Butler",content:`Terima kasih atas pesan Anda, Kak ${m.name}. Kami telah meneruskan pertanyaan Anda langsung ke tim front office. Kami juga mendukung penuh request Anda, silakan beritahu jika ada yang lain!`,timestamp:new Date().toISOString()};H(st=>st.map(Xt=>Xt.id===K?{...Xt,lastMessageText:Oe.content,lastMessageTime:Oe.timestamp,unreadCount:m.role==="employee"?Xt.unreadCount+1:0,messages:[...Xt.messages,Oe]}:Xt))},2500)},es=(K,G)=>{const $=P.find(st=>st.guestEmail===G);if($)return $.id;const le=`thread-${Date.now()}`,Oe={id:le,guestName:K,guestEmail:G,lastMessageText:"Thread chat baru dibuat.",lastMessageTime:new Date().toISOString(),unreadCount:0,messages:[{id:`sys-${Date.now()}`,sender:"system",senderName:"Sistem Hotel",content:`Selamat datang di Chat Layanan Kosenda Hotel. Anda terhubung sebagai ${K}. Tulis pesan Anda di bawah ini.`,timestamp:new Date().toISOString()}]};return H(st=>[Oe,...st]),le},An=K=>{H(G=>G.map($=>$.id===K?{...$,unreadCount:0}:$))},ol=()=>{H([]),localStorage.removeItem(`${aa}_chats`)};return a.jsx(v0.Provider,{value:{profile:m,updateProfile:ve,role:m.role,setRole:de,isLoggedIn:r,setIsLoggedIn:o,logout:ne,usersList:f,fetchUsersList:Y,s
397aveUserInAdmin:R,deleteUserInAdmin:W,rooms:g,addRoom:Me,updateRoom:ue,deleteRoom:Ne,bookings:y,addBooking:O,updateBookingStatus:Z,vouchers:N,addVoucher:se,updateVoucher:me,deleteVoucher:ye,websiteSettings:S,updateHeaderFooterSettings:T,updateHomeBannerSettings:B,updateDiningSettings:oe,updateDiningOutlet:J,addDiningOutlet:ce,deleteDiningOutlet:fe,updateArtSoulSettings:we,updateArtSoulItem:qe,addArtSoulItem:Ie,deleteArtSoulItem:It,updateLocationSettings:qa,updateNearbyPlace:ze,addNearbyPlace:lt,deleteNearbyPlace:Yt,updateAiSettings:Ia,updateBookingRedirectUrl:ke,updateShowReservationCard:Pe,updateTypographySettings:Ya,chatThreads:P,sendMessage:Xa,createChatThread:es,markThreadRead:An,clearAllChats:ol,isHydrated:_},children:s})},Wn=()=>{const s=A.useContext(v0);if(!s)throw new Error("useHotelState must be used within a HotelStateProvider");return s};function Uw({onBookNowClick:s,activeSection:l,onAdminClick:r}){const{websiteSettings:o}=Wn(),{logoText:f,email:h,logoImageUrl:m}=o.headerFooter,[x,g]=A.useState(!1),[b,y]=A.useState(!1);A.useEffect(()=>{const w=()=>{window.scrollY>50?g(!0):g(!1)};return window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)},[]);const j=w=>{y(!1);const S=document.getElementById(w);if(S){const P=document.body.getBoundingClientRect().top,C=S.getBoundingClientRect().top-P-80;window.scrollTo({top:C,behavior:"smooth"})}},N=[{id:"home",label:"Home"},{id:"rooms",label:"Rooms"},{id:"dining",label:"Dining"},{id:"aesthetic",label:"Art & Soul"},{id:"location",label:"Location"}];return a.jsxs("nav",{id:"main-navbar",className:`fixed top-0 left-0 w-full z-50 transition-all duration-500 ease-in-out ${x?"bg-[#504C47]/95 backdrop-blur-md border-b border-white/10 shadow-sm py-4 text-[#F5F2ED]":"bg-[#504C47]/50 backdrop-blur-sm border-b border-white/5 py-6 text-[#F5F2ED]"}`,children:[a.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("div",{onClick:()=>j("home"),className:"flex items-center gap-2 cursor-pointer group",children:a.jsx("div",{className:"flex flex-col text-left",children:m&&m.trim()!==""?a.jsx("img",{src:m,alt:f,className:"h-[36px] max-w-[150px] object-contain",referrerPolicy:"no-referrer"}):a.jsx("span",{className:"text-2xl font-serif tracking-tight font-bold italic text-[#F5F2ED]",children:f})})}),a.jsx("div",{className:"hidden md:flex items-center gap-7",children:N.map(w=>a.jsxs("button",{onClick:()=>j(w.id),className:`text-[11px] uppercase tracking-[0.2em] font-semibold transition-colors duration-300 relative py-1 hover:text-white cursor-pointer ${l===w.id?"text-white":"text-white/70"}`,children:[w.label,l===w.id&&a.jsx("span",{className:"absolute bottom-0 left-0 w-full h-[1.5px] bg-white"})]},w.id))}),a.jsx("div",{className:"hidden md:flex items-center gap-4",children:a.jsx("button",{id:"nav-book-button",onClick:s,className:"px-8 py-3 bg-[#C48810] text-white text-[11px] uppercase tracking-[0.2em] font-semibold hover:bg-[#A8700D] transition-colors rounded-none cursor-pointer",children:"Book Room"})}),a.jsx("div",{className:"flex md:hidden items-center",children:a.jsx("button",{onClick:()=>y(!b),className:"text-[#F5F2ED] hover:opacity-75 p-2 focus:outline-none","aria-label":"Toggle menu",children:b?a.jsx(di,{size:24}):a.jsx(Ik,{size:24})})})]})}),b&&a.jsx("div",{className:"md:hidden absolute top-full left-0 w-full bg-[#504C47] border-b border-white/10 shadow-xl py-6 px-4 animate-fade-in-down",children:a.jsxs("div",{className:"flex flex-col gap-5 text-center",children:[N.map(w=>a.jsx("button",{onClick:()=>j(w.id),className:`text-sm tracking-[0.2em] uppercase font-bold py-2 border-b border-white/5 hover:text-white transition-colors ${l===w.id?"text-white":"text-white/60"}`,children:w.label},w.id)),a.jsx("div",{className:"flex flex-col items-center gap-4 pt-4",children:a.jsx("button",{onClick:()=>{y(!1),s()},className:"w-full py-3 bg-[#F5F2ED] text-[#1A1A1A] text-[11px] uppercase tracking-[0.2em] font-semibold hover:bg-white transition-colors rounded-none",children:"Book Room Now"})})]})})]})}function Bw({rooms:s,onQuickBook:l}){var te;const{websiteSettings:r}
397=Wn(),{images:o=[],overlayOpacity:f=20,title:h="",subtitle:m=""}=r.homeBanner||{},x=new Date,g=new Date;g.setDate(x.getDate()+2);const b=ee=>ee.toISOString().split("T")[0],[y,j]=A.useState(b(x)),[N,w]=A.useState(b(g)),[S,F]=A.useState(((te=s[0])==null?void 0:te.id)||""),[P,H]=A.useState(2);A.useEffect(()=>{s&&s.length>0&&(!S||!s.some(ee=>ee.id===S))&&F(s[0].id)},[s,S]);const[_,C]=A.useState(0);A.useEffect(()=>{if(!o||o.length<=1)return;const ee=setInterval(()=>{C(Y=>(Y+1)%o.length)},5e3);return()=>clearInterval(ee)},[o]);const q=o&&o.length>0?o:[];return a.jsxs("section",{id:"home",className:"relative h-[100vh] min-h-[100vh] flex items-center justify-center bg-black overflow-hidden pt-28 pb-16",children:[a.jsxs("div",{className:"absolute inset-0 z-0 bg-black",children:[q.map((ee,Y)=>a.jsx("div",{className:"absolute inset-0 transition-opacity duration-1000 ease-in-out",style:{opacity:Y===_?1:0,zIndex:Y===_?1:0},children:a.jsx("img",{src:ee,alt:`Kosenda Slide ${Y}`,referrerPolicy:"no-referrer",className:"w-full h-full object-cover object-bottom scale-102"})},ee+Y)),q.length>0&&a.jsx("div",{className:"absolute inset-0 bg-black transition-opacity duration-300 z-10",style:{opacity:(f??20)/100}}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-trans
397parent to-transparent opacity-80 z-20"})]}),a.jsx("div",{className:"absolute right-0 bottom-0 w-96 h-96 bg-black/5 rounded-full blur-3xl z-10"}),a.jsx("div",{className:"absolute left-10 top-20 w-80 h-80 bg-black/5 rounded-full blur-3xl z-10"}),a.jsx("div",{className:"relative z-30 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 flex flex-col items-center",children:a.jsxs("div",{className:"text-center max-w-3xl mb-12 animate-fade-in-up",children:[h?a.jsx("h1",{className:"text-4xl sm:text-6xl md:text-7xl font-serif text-[#1A1A1A] tracking-tight leading-[1.1] mb-6 italic font-bold",children:h}):null,m?a.jsx("p",{className:"text-xs sm:text-sm text-[#1A1A1A]/70 font-sans tracking-[0.16em] uppercase leading-relaxed max-w-2xl mx-auto font-semibold",children:m}):null]})})]})}function Lw({rooms:s,onBookRoom:l}){const{websiteSettings:r}=Wn(),[o,f]=A.useState(null),[h,m]=A.useState("all"),[x,g]=A.useState(null),[b,y]=A.useState({}),[j,N]=A.useState(null),[w,S]=A.useState(0),P=[...h==="all"?s:s.filter(C=>C.id===h)].sort((C,q)=>q.price-C.price),H=(C,q=0)=>{N(C),S(q)},_=(C,q)=>C?C.length<=q?C:C.slice(0,q).trim()+"...":"";return a.jsxs("section",{id:"rooms",className:"py-24 bg-[#F5F2ED] border-t border-black/10",children:[a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"text-center md:text-left md:flex justify-between items-end mb-16",children:[a.jsxs("div",{className:"max-w-2xl mb-6 md:mb-0",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-[0.35em] text-[#1A1A1A]/60 font-mono block mb-2 font-bold",children:"GUEST ROOMS"}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-serif text-[#1A1A1A] tracking-tight font-bold italic",children:"Artisan Design Suites"})]}),s.length>0&&a.jsxs("div",{className:"flex flex-wrap gap-2 justify-center",children:[a.jsx("button",{onClick:()=>m("all"),className:`px-6 py-2.5 text-[10px] uppercase tracking-widest font-mono rounded-none cursor-pointer transition-all duration-300 font-bold ${h==="all"?"bg-[#8F9A86] text-white animate-pulse-once":"bg-white text-[#1A1A1A]/70 hover:text-[#1A1A1A] border border-black/10 hover:border-black/30"}`,style:h==="all"?{backgroundColor:"#8F9A86"}:{},children:"All Suites"}),s.map(C=>a.jsx("button",{onClick:()=>m(C.id),className:`px-6 py-2.5 text-[10px] uppercase tracking-widest font-mono rounded-none cursor-pointer transition-all duration-300 font-bold ${h===C.id?"bg-[#8F9A86] text-white":"bg-white text-[#1A1A1A]/70 hover:text-[#1A1A1A] border border-black/10 hover:border-black/30"}`,style:h===C.id?{backgroundColor:"#8F9A86"}:{},children:C.name.split(" ")[0]},C.id))]})]}),s.length===0?a.jsxs("div",{className:"text-center py-16 bg-white border border-dashed border-black/15 p-8 max-w-xl mx-auto rounded-none shadow-sm",children:[a.jsx(Um,{className:"mx-auto text-stone-300 mb-4 animate-bounce",size:44}),a.jsx("h3",{className:"font-serif italic font-bold text-lg text-stone-800",children:"No Suites Listed"}),a.jsxs("p",{className:"text-xs text-stone-500 mt-2 max-w-sm mx-auto leading-relaxed",children:["No rooms are currently configured. Please open the ",a.jsx("strong",{children:"Admin Portal (user icon in top right corner)"})," to manually add and configure your signature hotel suites."]})]}):a.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 items-start",children:P.map((C,q)=>{const te=x===C.id,ee=C.imageUrls&&C.imageUrls.length>0?C.imageUrls:[C.imageUrl].filter(Boolean),Y=b[C.id]||0,R=ee[Y]||C.imageUrl;return a.jsxs("div",{className:"bg-white border border-black/10 rounded-none overflow-hidden flex flex-col hover:border-black/30 transition-all duration-500 shadow-sm hover:shadow-lg group",onMouseEnter:()=>f(q),onMouseLeave:()=>f(null),children:[a.jsxs("div",{className:"relative h-64 overflow-hidden group/img",children:[a.jsx("img",{src:R&&R.trim()!==""?R:null,alt:C.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover/img:scale-102 transition-transform duration-700"}),a.jsxs("div",{onClick:()=>H(C,Y),className:"absolute inset-0 bg-black/10 hover:bg-black/35 transition-all duration-300 flex flex-col items-center justify-center opacity-0 group-hover/img:opacity-100 cursor-zoom-in z-10",children:[a.jsxs("div",{className:"bg-white/95 backdrop-blur-xs border border-black/15 text-[#1A1A1A] font-mono font-bold text-[10px] tracking-widest uppercase px-4 py-2 flex items-center gap-2 transform translate-y-2 group-hover/img:translate-y-0 transition-all duration-300 shadow-md",children:[a.jsxs("svg",{className:"w-3.5 h-3.5 text-[#8F9A86]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}),"View Full Photo"]}),a.jsxs("span",{className:"text-[8px] text-white/80 uppercase font-mono tracking-widest mt-1.5 font-light",children:["Photo ",Y
397+1," of ",ee.length]})]}),a.jsx("div",{className:"absolute inset-0 bg-black/5 pointer-events-none"}),ee.length>1&&a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",onClick:W=>{W.stopPropagation(),y(ne=>({...ne,[C.id]:(Y-1+ee.length)%ee.length}))},className:"absolute left-2 top-1/2 -translate-y-1/2 w-7 h-7 bg-white/85 hover:bg-white text-stone-850 flex items-center justify-center font-bold text-sm select-none border border-black/10 transition-opacity opacity-0 group-hover/img:opacity-100 z-10 cursor-pointer shadow-sm rounded-none",children:"â¹"}),a.jsx("button",{type:"button",onClick:W=>{W.stopPropagation(),y(ne=>({...ne,[C.id]:(Y+1)%ee.length}))},className:"absolute right-2 top-1/2 -translate-y-1/2 w-7 h-7 bg-white/85 hover:bg-white text-stone-850 flex items-center justify-center font-bold text-sm select-none border border-black/10 transition-opacity opacity-0 group-hover/img:opacity-100 z-10 cursor-pointer shadow-sm rounded-none",children:"âº"}),a.jsx("div",{className:"absolute bottom-12 inset-x-0 flex justify-center gap-1.5 z-10",children:ee.map((W,ne)=>a.jsx("button",{type:"button",onClick:ve=>{ve.stopPropagation(),y(de=>({...de,[C.id]:ne}))},className:`w-1.5 h-1.5 rounded-full border border-white transition-all cursor-pointer ${ne===Y?"bg-white w-3":"bg-white/40"}`},ne))})]}),a.jsxs("div",{className:"absolute bottom-4 left-4 flex gap-2",children:[a.jsxs("span",{className:"flex items-center gap-1 bg-white/90 backdrop-blur-sm text-[9px] text-[#1A1A1A] tracking-wider font-mono uppercase px-2.5 py-1 border border-black/15 font-bold",children:[a.jsx(Gk,{size:10,className:"text-[#1A1A1A]/70"}),C.size]}),a.jsxs("span",{className:"flex items-center gap-1 bg-white/90 backdrop-blur-sm text-[9px] text-[#1A1A1A] tracking-wider font-mono uppercase px-2.5 py-1 border border-black/15 font-bold",children:[a.jsx(Um,{size:10,className:"text-[#1A1A1A]/70"}),"Max ",C.maxGuests," Guests"]})]}),a.jsx("div",{className:"absolute top-4 right-4 bg-[#8F9A86] text-[9px] text-[#F5F2ED] px-2.5 py-1.5 tracking-widest font-mono uppercase font-semibold",style:{backgroundColor:"#8F9A86"},children:C.bedType})]}),a.jsxs("div",{className:"p-6 flex-1 flex flex-col justify-between",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-start mb-3",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif text-[#1A1A1A] font-bold italic group-hover:opacity-80 transition-opacity",children:C.name}),a.jsxs("button",{onClick:()=>H(C,Y),className:"text-[10px] uppercase tracking-wider font-mono font-bold text-[#8F9A86] hover:text-[#1A1A1A] transition-colors mt-1 bg-transparent border-0 cursor-pointer p-0 underline decoration-[#8F9A86]/30 hover:decoration-[#1A1A1A] underline-offset-4 flex items-center gap-1",children:["Explore Photo Gallery (",ee.length,")"]})]}),a.jsx("div",{className:"text-right flex flex-col items-end justify-center min-h-[48px]"})]}),a.jsx("p",{className:"text-[#1A1A1A]/70 text-xs leading-relaxed mb-4 font-light font-sans",children:_(C.description,95)}),a.jsx("button",{onClick:W=>{W.stopPropagation(),g(te?null:C.id)},className:"w-full py-2.5 bg-[#F5F2ED] hover:bg-[#EAE6DF] text-[#1A1A1A] text-[9.5px] uppercase tracking-wider font-extrabold transition-all duration-300 flex items-center justify-center gap-1.5 cursor-pointer border border-black/10 mb-4",children:te?a.jsxs(a.Fragment,{children:[a.jsx(sk,{size:12,className:"text-[#8F9A86]"}),"Hide Room Specifications"]}):a.jsxs(a.Fragment,{children:[a.jsx(ek,{size:12,className:"text-[#8F9A86]"}),"View Room Details & Specs"]})}),a.jsx(ll,{initial:!1,children:te&&a.jsx(vn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:a.jsxs("div",{className:"pb-4 space-y-4",children:[a.jsxs("div",{className:"p-3 bg-[#F5F2ED]/50 border-l-2 border-[#8F9A86]",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-widest text-stone-500 font-mono font-bold block mb-1",children:"Full Description:"}),a.jsx("p",{className:"text-[#1A1A1A]/85 text-xs leading-relaxed font-light font-sans",children:C.description})]}),C.features&&C.features.length>0&&a.jsxs("div",{className:"mt-2",children:[a.jsxs("h4",{className:"text-[#1A1A1A]/70 text-[9px] uppercase tracking-widest font-bold font-mono mb-2 flex items-center gap-1 border-b border-black/10 pb-1",children:[a.jsx(hh,{size:11,className:"text-[#1A1A1A]/85 animate-pulse"}),"Bespoke Amenities & Services"]}),a.jsx("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1",children:C.features.slice(0,8).map((W,ne)=>a.jsxs("div",{className:"flex items-center gap-1.5 text-[9.5px] text-[#1A1A1A]/80",children:[a.jsx("span",{className:"w-1 h-1 bg-[#1A1A1A]/65 flex-shrink-0"}),a.jsx("span",{className:"truncate font-light",children:W})]},ne))})]}),a.jsxs("div",{className:"pt-2",children:[a.jsxs("h4",{className:"text-[#1A1A1A]/70 text-[9px] uppercase tracking-widest font-extrabold font-mono mb-2 flex items-center gap-1 border-b border-black/10 pb-1",children:[a.jsx(pw,{size:11,className:"text-[#8F9A86]"}),"Room Guidelines & Specifications"]}),a.jsxs("div",{className:"space-y-2 text-left bg-[#F5F2ED]/60 p-3.5 border border-black/5 text-[10px] text-[#1A1A1A]/80 font-mono",children:[a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Rate Covers"}),a.jsxs("span",{className:"font-semibold text-stone-800 text-right",children:[C.priceForPeople||2," Adults"]})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Breakfast Service"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right",children:C.breakfastInfo||(C.allowBreakfastOption?"Breakfast Included":"Room Only (No Breakfast)")})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Bathroom Comfort"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right",children:C.bathroomType||"Shower Only"})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Smoking Policy"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right",children:C.smokingPolicy||"Non-smoking"})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Toiletries & Wifi"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right truncate max-w-[180px] sm:max-w-[220px]",title:C.toiletriesWifi,children:C.toiletriesWifi||"Premium Amenities & Wifi"})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Payment Policy"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right truncate max-w-[180px] sm:max-w-[220px]",title:C.paymentPolicy,children:C.paymentPolicy||"Secure Online Payment"})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4 border-b border-stone-200/60 pb-1.5",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Cancellation Status"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right truncate max-w-[180px] sm:max-w-[220px]",title:C.refundPolicy,children:C.refundPolicy||"Non Refundable"})]}),a.jsxs("div",{className:"flex justify-between items-center gap-4",children:[a.jsx("span",{className:"text-stone-500 font-sans",children:"Taxes Status"}),a.jsx("span",{className:"font-semibold text-stone-800 text-right",children:C.taxInfo||"Include Tax"})]})]})]})]})})})]}),a.jsx("div",{className:"pt-2 border-t border-black/10",children:C.bookingUrl||r!=null&&r.bookingRedirectUrl?(()=>{const W=C.bookingUrl||(r==null?void 0:r.bookingRedirectUrl)||"";return a.jsx("a",{href:W,target:"_blank",rel:"noopener noreferrer",className:"w-full py-3.5 bg-[#8F9A86] hover:bg-[#1A1A1A] text-white text-[11px] font-mono font-bold uppercase tracking-[0.16em] transition-all duration-300 cursor-pointer flex items-center justify-center gap-1 rounded-none shadow-sm text-center block",style:{backgroundColor:"#8F9A86"},onMouseEnter:ne=>{ne.currentTarget.style.backgroundColor="#1A1A1A"},onMouseLeave:ne=>{ne.currentTarget.style.backgroundColor="#8F9A86"},children:"Book Suite â"})})():a.jsx("button",{onClick:()=>l(C.id),className:"w-full py-3.5 bg-[#8F9A86] hover:bg-[#1A1A1A] text-white text-[11px] font-mono font-bold uppercase tracking-[0.16em] transition-all duration-300 cursor-pointer flex items-center justify-center gap-1 rounded-none shadow-sm",style:{backgroundColor:"#8F9A86"},onMouseEnter:W=>{W.currentTarget.style.backgroundColor="#1A1A1A"},onMouseLeave:W=>{W.currentTarget.style.backgroundColor="#8F9A86"},children:"Book Suite"})})]})]},C.id)})})]}),a.jsx(ll,{children:j&&a.jsxs(vn.div,{initial:{opacity:0}
397,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/95 backdrop-blur-md z-50 flex flex-col justify-between p-4 sm:p-6",onClick:()=>N(null),children:[a.jsxs("div",{className:"flex justify-between items-center w-full max-w-7xl mx-auto py-2 z-10",onClick:C=>C.stopPropagation(),children:[a.jsxs("div",{className:"text-left",children:[a.jsx("span",{className:"text-[9px] uppercase tracking-[0.2em] font-mono font-bold text-[#8F9A86]",children:"ARTISAN PORTFOLIO"}),a.jsx("h4",{className:"text-white text-lg font-serif italic font-bold",children:j.name})]}),a.jsx("button",{onClick:()=>N(null),className:"w-10 h-10 rounded-full bg-white/10 hover:bg-white text-white hover:text-black flex items-center justify-center border border-white/15 transition-all cursor-pointer",title:"Close Viewer",children:a.jsx(di,{size:18})})]}),a.jsx("div",{className:"relative flex-1 flex items-center justify-center max-w-6xl w-full mx-auto my-4",onClick:C=>C.stopPropagation(),children:(()=>{const C=j.imageUrls&&j.imageUrls.length>0?j.imageUrls:[j.imageUrl].filter(Boolean);return a.jsxs(a.Fragment,{children:[C.length>1&&a.jsx("button",{onClick:()=>S(q=>(q-1+C.length)%C.length),className:"absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 w-12 h-12 rounded-full bg-white/10 hover:bg-white text-white hover:text-black flex items-center justify-center border border-white/15 transition-all z-20 cursor-pointer",children:a.jsx(rc,{size:24})}),a.jsx("div",{className:"relative max-h-[70vh] sm:max-h-[75vh] max-w-full flex items-center justify-center overflow-hidden",children:a.jsx(vn.img,{initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.97},transition:{duration:.25},src:C[w]||j.imageUrl,alt:`${j.name} detail view`,referrerPolicy:"no-referrer",className:"object-contain max-h-[70vh] sm:max-h-[75vh] max-w-full shadow-2xl border border-white/5"},w)}),C.length>1&&a.jsx("button",{onClick:()=>S(q=>(q+1)%C.length),className:"absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 w-12 h-12 rounded-full bg-white/10 hover:bg-white text-white hover:text-black flex items-center justify-center border border-white/15 transition-all z-20 cursor-pointer",children:a.jsx(cc,{size:24})})]})})()}),a.jsx("div",{className:"w-full max-w-4xl mx-auto pb-4 text-center z-10",onClick:C=>C.stopPropagation(),children:(()=>{const C=j.imageUrls&&j.imageUrls.length>0?j.imageUrls:[j.imageUrl].filter(Boolean);return a.jsxs("div",{className:"space-y-3",children:[C.length>1&&a.jsx("div",{className:"flex justify-center gap-2",children:C.map((q,te)=>a.jsx("button",{onClick:()=>S(te),className:`w-2 h-2 rounded-full transition-all cursor-pointer ${te===w?"bg-[#8F9A86] scale-125":"bg-white/40 hover:bg-white/70"}`},te))}),a.jsxs("div",{className:"text-white/60 text-[10px] tracking-widest font-mono uppercase",children:["Photo ",w+1," of ",C.length," â Experience Luxury Design at ",j.name]})]})})()})]})})]})}function _w({pdfUrl:s,onClose:l,title:r="Menu Book",downloadName:o="Menu_Book.pdf"}){const[f,h]=A.useState(!1),[m,x]=A.useState(!0),[g,b]=A.useState(null),[y,j]=A.useState(0),[N,w]=A.useState(null),[S,F]=A.useState(1),[P,H]=A.useState(0),[_,C]=A.useState(1),[q,te]=A.useState(!1),ee=A.useRef(null),Y=A.useRef(null),R=ue=>{try{const Ne=ue.split(","),O=Ne[1]||Ne[0],Z=window.atob(O.trim()),se=Z.length,me=new Uint8Array(new ArrayBuffer(se));for(let ye=0;ye<se;ye++)me[ye]=Z.charCodeAt(ye);return me}catch(Ne){throw console.error("Failed to parse base64 PDF:",Ne),new Error("Gagal mengurai dokumen base64. Format berkas mungkin rusak.")}};A.useEffect(()=>{const ue=document.getElementById("pdfjs-lib-script");
397if(window.pdfjsLib){h(!0);return}if(ue){const O=()=>h(!0);return ue.addEventListener("load",O),()=>{ue.removeEventListener("load",O)}}const Ne=document.createElement("script");Ne.id="pdfjs-lib-script",Ne.src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js",Ne.type="text/javascript",Ne.async=!0,Ne.onload=()=>{h(!0)},Ne.onerror=()=>{b("Gagal memuat library penampil PDF (Koneksi jaringan bermasalah)."),x(!1)},document.body.appendChild(Ne)},[]),A.useEffect(()=>{if(!f)return;const ue=window.pdfjsLib;if(!ue){b("Gagal menginisialisasi pustaka penampil PDF."),x(!1);return}if(ue.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js",s==="/logo.png"||s.endsWith("logo.png")){b("Dokumen PDF menu sebelumnya dikompresi menjadi logo cadangan karena batas ukuran sesi. Silakan unggah kembali dokumen PDF asli Anda melalui Admin Portal."),x(!1);return}x(!0),j(0),b(null);let Ne=null;try{if(s.startsWith("data:application/pdf;base64,")||s.includes(";base64,")){const Z=R(s);Ne=ue.getDocument({data:Z})}else Ne=ue.getDocument({url:s,withCredentials:!1});Ne.onProgress=Z=>{if(Z.total&&Z.total>0){const se=Math.round(Z.loaded/Z.total*100);j(se)}else j(se=>Math.min(se+8,98))},Ne.promise.then(Z=>{w(Z),H(Z.numPages),F(1),x(!1)},Z=>{console.error("PDF.js loading error: ",Z),b(Z.message&&Z.message.includes("Unexpected server response")?"Gagal memuat PDF secara langsung karena pembatasan keamanan (CORS/HTTPS). Anda dapat membukanya via tombol unduh di atas.":`Gagal memproses dokumen PDF: ${Z.message||Z}`),x(!1)})}catch(O){console.error("PDF preparation failure: ",O),b(`Kesalahan pemrosesan awal: ${O.message||O}`),x(!1)}return()=>{Ne&&Ne.destroy&&Ne.destroy()}},[f,s]),A.useEffect(()=>{if(!N||!ee.current)return;let ue=!0;return(async()=>{if(Y.current)try{Y.current.cancel()}catch{}te(!0);try{const O=await N.getPage(S);if(!ue)return;const Z=ee.current;if(!Z)return;const se=Z.getContext("2d");if(!se)return;se.clearRect(0,0,Z.width,Z.height);const me=O.getViewport({scale:_});Z.height=me.height,Z.width=me.width;const ye={canvasContext:se,viewport:me},T=O.render(ye);Y.current=T,await T.promise,ue&&te(!1)}catch(O){ue&&O.name!=="RenderingCancelledException"&&(console.error("Canvas PDF Page Render Failure: ",O),te(!1))}})(),()=>{if(ue=!1,Y.current)try{Y.current.cancel()}catch{}}},[N,S,_]);const W=()=>{S<P&&F(ue=>ue+1)},ne=()=>{S>1&&F(ue=>ue-1)},ve=()=>{C(ue=>Math.min(ue+.25,3))},de=()=>{C(ue=>Math.max(ue-.25,.5))},Me=()=>{C(1)};return a.jsxs("div",{className:"w-full h-full flex flex-col bg-[#1A1A1A] relative",id:"custom-pdf-viewer",children:[a.jsxs("div",{className:"bg-[#2D2A26] border-b border-black/30 px-4 py-2 flex flex-wrap items-center justify-between gap-3 text-white select-none relative z-10",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:ne,disabled:S<=1||m||!!g,className:"p-1 px-2.5 bg-[#423E3A] hover:bg-[#5E5851] disabled:opacity-30 disabled:hover:bg-[#423E3A] border border-white/5 transition-all text-sm font-mono flex items-center justify-center cursor-pointer",title:"Halaman Sebelumnya",children:a.jsx(rc,{size:16})}),a.jsxs("span",{className:"text-xs font-mono px-2 font-bold tracking-wider",children:["HALAMAN ",a.jsx("span",{className:"text-amber-400",children:m?"--":S})," DARI ",a.jsx("span",{className:"text-stone-300",children:m?"--":P})]}),a.jsx("button",{onClick:W,disabled:S>=P||m||!!g,className:"p-1 px-2.5 bg-[#423E3A] hover:bg-[#5E5851] disabled:opacity-30 disabled:hover:bg-[#423E3A] border border-white/5 transition-all text-sm font-mono flex items-center justify-center cursor-pointer",title:"Halaman Selanjutnya",children:a.jsx(cc,{size:16})})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:de,disabled:m||!!g||_<=.5,className:"p-1.5 bg-[#423E3A] hover:bg-[#5E5851] disabled:opacity-35 transition-all text-xs border border-white/5 flex items-center gap-1 cursor-pointer",title:"Zoom Out",children:a.jsx(Ow,{size:14})}),a.jsxs("span",{className:"text-[10px] font-mono text-center w-12 text-stone-300",children:[Math.round(_*100),"%"]}),a.jsx("button",{onClick:ve,disabled:m||!!g||_>=3,className:"p-1.5 bg-[#423E3A] hover:bg-[#5E5851] disabled:opacity-35 transition-all text-xs border border-white/5 flex items-center gap-1 cursor-pointer",title:"Zoom In",children:a.jsx(Dw,{size:14})}),a.jsx("button",{onClick:Me,disabled:m||!!g,className:"hidden sm:inline-block p-1 px-2 text-[10px] bg-[#423E3A] hover:bg-[#5E5851] disabled:opacity-35 transition-all font-mono border border-white/5 uppercase tracking-wider font-semibold",title:"Reset Zoom",children:"Fit"})]}),a.jsx("div",{className:"flex items-center gap-3",children:q&&!m&&a.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-amber-400 font-mono",children:[a.jsx(Ag,{size:12,className:"animate-spin"}),a.jsx("span",{children:"rendering..."})]})})]}),a.jsxs("div",{className:"flex-1 overflow-auto p-4 flex justify-center items-start bg-[#1C1814] relative minimal-scrollbar",children:[m&&a.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-[#1C1814] z-20 text-white p-6 max-w-sm mx-auto my-auto h-64 border border-white/10 rounded-none shadow-2xl",children:[a.jsx(Ag,{className:"animate-spin text-amber-400 mb-4",size:32}),a.jsx("h4",{className:"text-sm font-serif italic mb-1.5 font-bold",children:"Membuka Menu Book..."}),a.jsx("div",{className:"w-full bg-[#2D2A26] h-1.5 rounded-none overflow-hidden mb-2",children:a.jsx("div",{className:"bg-amber-400 h-1.5 transition-all duration-300",style:{width:`${y}%`}})}),a.jsxs("p",{className:"text-[10px] font-mono text-amber-400 uppercase tracking-widest font-semibold",children:["Progres: ",y,"% Loaded"]})]}),g&&a.jsxs("div",{className:"absolute inset-x-4 top-1/2 -translate-y-1/2 max-w-md mx-auto bg-[#2D2A26] border border-red-500/20 text-white p-6 z-20 shadow-2xl flex flex-col items-center text-center",children:[a.jsx(mh,{className:"text-red-400 mb-3",size:36}),a.jsx("span",{className:"text-[8px] uppercase tracking-[0.2em] font-mono font-bold text-red-400 block mb-1",children:"Gagal Membuka PDF"}),a.jsx("p",{className:"text-xs text-stone-300 mb-5 font-serif italic leading-relaxed",children:g}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[a.jsxs("a",{href:s,download:o,className:"px-4 py-2 bg-amber-500 hover:bg-amber-600 font-mono text-[10px] text-[#1A1A1A] font-bold uppercase tracking-wider flex items-center gap-1.5",title:"Download file directly",children:[a.jsx(h0,{size:12})," Unduh PDF Menu"]}),a.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 border border-white/20 hover:bg-white/10 text-white font-mono text-[10px] font-bold uppercase tracking-wider flex items-center gap-1.5",title:"Open in background",children:[a.jsx(p0,{size:12})," Buka Tab Baru"]})]})]}),a.jsx("div",{className:`transition-all duration-300 shadow-2xl origin-top ${m||g?"opacity-0 scale-95 pointer-events-none":"opacity-100 scale-100"}`,style:{minWidth:ee.current?`${ee.current.width}px`:"auto"},children:a.jsx("canvas",{ref:ee,className:"bg-white border border-black/30 block mx-auto
397shadow-2xl max-w-full"})})]})]})}function Vw(){const{websiteSettings:s,addBooking:l}=Wn(),{title:r,subtitle:o,outlets:f}=s.dining,h=f,[m,x]=A.useState("waha"),[g,b]=A.useState(0),[y,j]=A.useState(!1),[N,w]=A.useState(""),[S,F]=A.useState(""),[P,H]=A.useState(""),[_,C]=A.useState(""),[q,te]=A.useState("18:30"),[ee,Y]=A.useState(2),[R,W]=A.useState("Casual Dining"),[ne,ve]=A.useState(""),[de,Me]=A.useState(!1),[ue,Ne]=A.useState(null),[O,Z]=A.useState(""),[se,me]=A.useState(!1),[ye,T]=A.useState(0);A.useEffect(()=>{let ke;return de?(T(0),ke=setInterval(()=>{T(Pe=>Pe<3?Pe+1:Pe)},900)):T(0),()=>clearInterval(ke)},[de]);const B=h.find(ke=>ke.id===m)||h[0]||{id:"waha",name:"Waha Kitchen",type:"Restaurant",hours:"24 Hours",vibe:"Cozy",description:"Default description",imageUrl:"",imageUrls:[],features:[],signatureItems:[]},J=`https://api.whatsapp.com/send/?phone=628118990127&text=${encodeURIComponent(`Hello, I would like to make a reservation at ${B.name}. Could you please assist me with table availability, rates, and reservation details? Thank you.`)}`;A.useEffect(()=>{b(0)},[m]);const ce=B.imageUrls&&B.imageUrls.length>1,fe=ce?B.imageUrls:[B.imageUrl].filter(ke=>typeof ke=="string"&&ke.trim()!==""),we=ke=>{ke.stopPropagation(),b(Pe=>Pe===0?fe.length-1:Pe-1)},qe=ke=>{ke.stopPropagation(),b(Pe=>Pe===fe.length-1?0:Pe+1)},Ie=["Romantic Dinner Seat","Family Birthday","Business Lunch","Vintage Table Decor","Window View Preference"],It=1e5,qa=ee*It,ze=Math.round(qa*.21),lt=qa+ze,Yt=async ke=>{if(ke.preventDefault(),Z(""),!N.trim()||!S.trim()||!_){Z("Please fill in Name, Email, and Reservation Date.");return}Me(!0);try{const Pe=`[${R}] ${ne.trim()}`.trim(),Ya=await fetch("/api/book-dining",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({outletId:B.id,outletName:B.name,guestName:N,guestEmail:S,whatsapp:P,date:_,time:q,guestsCount:ee,notes:Pe,totalCost:lt})});if(!Ya.ok){const An=await Ya.json();throw new Error(An.error||"Failed to submit booking details.")}const Xa=await Ya.json(),es=l({invoiceId:Xa.invoiceId,guestName:N,guestEmail:S,whatsapp:P||"",roomId:`dining_${B.id}`,roomName:`${B.name} (${R})`,checkIn:`${_} ${q}`,checkOut:`${_} (Acara/Reserve)`,guestsCount:ee,nights:1,totalCost:lt,status:"Confirmed"});Ne({invoiceId:Xa.invoiceId,guestName:N,outletName:B.name,date:_,time:q,guests:ee,category:R,totalBill:lt})}catch(Pe){console.error(Pe),Z(Pe.message||"System error. Failed to save reservation.")}finally{Me(!1)}},Ia=()=>{j(!1),Ne(null),w(""),F(""),H(""),C(""),te("18:30"),Y(2),W("Casual Dining"),ve(""),Z("")};return a.jsxs("section",{id:"dining",className:"py-24 bg-[#F5F2ED] text-[#1A1A1A] relative border-t border-black/10",children:[a.jsx("div",{className:"absolute right-0 top-1/4 w-96 h-96 bg-black/5 rounded-full blur-3xl pointer-events-none"}),a.jsx("div",{className:"absolute left-0 bottom-1/4 w-96 h-96 bg-black/5 rounded-full blur-3xl pointer-events-none"}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[a.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-[0.35em] text-[#1A1A1A]/60 font-mono block mb-2 font-bold",children:"DINING DESTINATIONS"}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-serif tracking-tight mb-4 text-[#1A1A1A] font-bold italic",children:r}),a.jsx("p",{className:"text-xs sm:text-sm text-[#1A1A1A]/70 leading-relaxed font-sans font-semibold",children:o})]}),a.jsx("div",{className:"flex border-b border-black/15 justify-center gap-3 sm:gap-6 mb-12 flex-wrap",children:h.map(ke=>a.jsxs("button",{onClick:()=>x(ke.id),className:`pb-4 px-4 sm:px-6 text-[10px] sm:text-xs tracking-[0.2em] uppercase font-bold transition-all duration-300 relative cursor-pointer flex items-center gap-2 ${m===ke.id?"text-[#8F9A86]":"text-[#1A1A1A]/40 hover:text-[#1A1A1A]"}`,style:m===ke.id?{color:"#8F9A86"}:{},children:[ke.name.toLowerCase().includes("waha")?a.jsx(cm,{size:13}):ke.name.toLowerCase().includes("awan")?a.jsx(Bm,{size:13}):a.jsx(mk,{size:13}),ke.name.toUpperCase(),m===ke.id&&a.jsx("span",{className:"absolute bottom-0 left-0 w-full h-[1.5px] bg-[#8F9A86]",style:{backgroundColor:"#8F9A86"}})]},ke.id))}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 bg-white border border-black/10 p-6 sm:p-10 rounded-none shadow-sm items-center",children:[a.jsxs("div",{className:"lg:col-span-6 h-80 sm:h-96 w-full rounded-none overflow-hidden relative shadow-sm group",children:[fe.length>0?a.jsxs("div",{className:"w-full h-full relative object-cover",children:[a.jsx(ll,{mode:"wait",children:a.jsx(vn.img,{src:fe[g],alt:B.name,referrerPolicy:"no-referrer",initial:{opacity:0,scale:1.02}
397,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.4},className:"w-full h-full object-cover"},`${m}-${g}`)}),a.jsx("div",{className:"absolute inset-0 bg-black/10 pointer-events-none"}),ce&&a.jsxs(a.Fragment,{children:[a.jsx("button",{onClick:we,className:"absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 rounded-full bg-[#F5F2ED]/90 hover:bg-white text-[#1A1A1A] flex items-center justify-center border border-black/10 transition-colors z-20 cursor-pointer shadow-sm",title:"Previous",children:a.jsx(rc,{size:16})}),a.jsx("button",{onClick:qe,className:"absolute right-3 top-1/2 -translate-y-1/2 w-8 h-8 rounded-full bg-[#F5F2ED]/90 hover:bg-white text-[#1A1A1A] flex items-center justify-center border border-black/10 transition-colors z-20 cursor-pointer shadow-sm",title:"Next",children:a.jsx(cc,{size:16})}),a.jsx("div",{className:"absolute bottom-12 left-1/2 -translate-x-1/2 flex gap-1.5 z-20",children:fe.map((ke,Pe)=>a.jsx("button",{onClick:()=>b(Pe),className:`w-2 h-2 rounded-full transition-all cursor-pointer ${g===Pe?"bg-[#8F9A86] w-5":"bg-white/65"}`},Pe))})]})]}):a.jsx("div",{className:"w-full h-full bg-[#F5F2ED] flex items-center justify-center text-[#1A1A1A]/40 text-xs",children:"No images available."}),a.jsxs("div",{className:"absolute bottom-4 left-4 bg-[#F5F2ED]/95 backdrop-blur-sm px-4 py-2 border border-black/15 rounded-none font-mono text-[9px] uppercase tracking-widest text-[#1A1A1A] font-bold flex items-center gap-2 z-10",children:[a.jsx(m0,{size:11,className:"text-[#1A1A1A]/70"}),B.hours]})]}),a.jsxs("div",{className:"lg:col-span-6 flex flex-col justify-between h-full",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-[9px] uppercase font-mono tracking-widest text-[#F5F2ED] bg-[#8F9A86] px-4 py-1.5 self-start rounded-none font-bold inline-block mb-4",style:{backgroundColor:"#8F9A86"},children:B.type}),a.jsx("h3",{className:"text-3xl font-serif text-[#1A1A1A] mb-2 font-bold italic",children:B.name}),a.jsxs("p",{className:"text-[#1A1A1A]/60 text-[10px] italic mb-4 font-mono font-semibold",children:["â",B.vibe,"â"]}),a.jsx("p",{className:"text-[#1A1A1A]/75 text-xs sm:text-sm leading-relaxed mb-6 font-light font-sans",children:B.description}),B.features&&B.features.length>0&&a.jsx("div",{className:"mb-6 space-y-2",children:B.features.map((ke,Pe)=>a.jsxs("div",{className:"flex items-center gap-2 text-xs text-[#1A1A1A]/85",children:[a.jsx(XN,{size:13,className:"text-[#1A1A1A]/60"}),a.jsx("span",{className:"font-light",children:ke})]},Pe))})]}),B.signatureItems&&B.signatureItems.length>0&&a.jsxs("div",{className:"bg-[#F5F2ED] p-5 rounded-none border border-black/10 mb-6",children:[a.jsxs("h4",{className:"text-[9px] uppercase tracking-widest font-bold text-[#1A1A1A]/70 font-mono mb-3 flex items-center gap-1.5 border-b border-black/10 pb-1.5",children:[a.jsx(Sk,{size:11,className:"text-[#1A1A1A]/70 animate-pulse"}),"Signature Guest Recommendations:"]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-1.5",children:B.signatureItems.map((ke,Pe)=>a.jsxs("div",{className:"text-[11px] text-[#1A1A1A]/80 flex items-start gap-1",children:[a.jsx("span",{className:"text-[#1A1A1A]/60 inline-block mr-1",children:"â¦"}),a.jsx("span",{className:"font-light",children:ke})]},Pe))})]}),a.jsxs("div",{className:"space-y-3",children:[B.menuPdfUrl&&a.jsxs("button",{type:"button",onClick:()=>me(!0),className:"w-full py-3.5 bg-transparent hover:bg-stone-100 border-2 border-[#8F9A86] text-[#8F9A86] hover:text-[#1A1A1A] hover:border-[#1A1A1A] text-[11px] uppercase tracking-[0.2em] font-extrabold transition-all duration-300 rounded-none cursor-pointer flex items-center justify-center gap-2 shadow-sm",children:[a.jsx(mh,{size:13}),"View Menu (PDF)"]}),a.jsxs("a",{href:J,target:"_blank",rel:"noopener noreferrer",className:"w-full py-4 bg-[#1A1A1A] hover:bg-[#C48810] text-[#F5F2ED] hover:text-white text-[11px] uppercase tracking-[0.2em] font-extrabold transition-all duration-300 rounded-none cursor-pointer flex items-center justify-center gap-2 shadow-sm",children:[a.jsx(hh,{size:13}),"Book Event / Reserve Table at ",B.name]}),a.jsx("p",{className:"text-[9px] text-[#1A1A1A]/40 font-mono mt-1.5 text-center",children:"*Reservations are seamlessly synced to the Front Office system for confirmation."})]})]})]})]}),a.jsx(ll,{children:y&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm p-4 overflow-y-auto",children:a.jsxs(vn.div,{initial:{opacity:0,scale:.95,y:15}
397,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:15},transition:{type:"spring",duration:.5},className:"bg-[#F5F2ED] text-[#1A1A1A] w-full max-w-lg border border-black/15 shadow-2xl rounded-none flex flex-col relative max-h-[92vh]",children:[a.jsxs("div",{className:"p-6 border-b border-black/10 bg-[#504C47] text-white",children:[a.jsx("span",{className:"text-[9px] uppercase tracking-[0.25em] font-bold text-amber-400 block mb-1",children:"KOSENDA FINE DINING EVENTS"}),a.jsxs("h3",{className:"text-xl font-serif font-bold italic text-white flex items-center gap-2",children:[a.jsx(cm,{size:18,className:"text-amber-400"}),"Dining & Table Reservations"]}),a.jsxs("p",{className:"text-[10px] text-white/70 mt-1",children:["Secure your pristine dining spot at ",B.name," Kosenda Jakarta."]})]}),O&&a.jsx("div",{className:"mx-6 mt-4 p-3 bg-red-100 border-l-4 border-red-500 text-red-700 text-xs font-semibold",children:O}),ue?a.jsxs("div",{className:"p-6 sm:p-8 overflow-y-auto text-center space-y-6 flex-1",children:[a.jsxs("div",{className:"flex flex-col items-center gap-2",children:[a.jsx(gn,{size:48,className:"text-[#8F9A86]"}),a.jsx("h4",{className:"text-lg font-serif font-bold italic",children:"Your Booking is Confirmed!"}),a.jsx("p",{className:"text-xs text-stone-600 max-w-sm",children:"Your reservation has been generated and directly synced to our Front Office database."})]}),a.jsxs("div",{className:"bg-white border border-black/10 p-5 rounded-none text-left space-y-3 font-mono text-[11px] shadow-sm",children:[a.jsxs("div",{className:"flex justify-between border-b border-dashed pb-2",children:[a.jsx("span",{className:"text-stone-500 uppercase",children:"INVOICE CODE"}),a.jsx("span",{className:"font-extrabold text-black select-all",children:ue.invoiceId})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-stone-500 uppercase",children:"GUEST NAME"}),a.jsx("span",{className:"font-bold",children:ue.guestName})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-stone-500 uppercase",children:"CULINARY OUTLET"}),a.jsx("span",{className:"font-bold",children:ue.outletName})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-stone-500 uppercase",children:"CATEGORY"}),a.jsx("span",{className:"font-bold",children:ue.category})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-stone-500 uppercase",children:"DATE & TIME"}),a.jsxs("span",{className:"font-bold",children:[ue.date," at ",ue.time]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-stone-500 uppercase",children:"RESERVED SEATS"}),a.jsxs("span",{className:"font-bold",children:[ue.guests," Guests"]})]}),a.jsxs("div",{className:"flex justify-between border-t border-dashed pt-2 text-stone-900 font-extrabold",children:[a.jsx("span",{children:"RESERVATION DEPOSIT (PAID)"}),a.jsxs("span",{children:["IDR ",ue.totalBill.toLocaleString()]})]})]}),a.jsx("div",{className:"text-[10px] text-stone-500 leading-relaxed max-w-sm mx-auto",children:"This transaction details can be presented to our waitstaff to offset your final bill."}),a.jsx("button",{onClick:Ia,className:"w-full py-3 bg-[#1A1A1A] text-white font-mono text-[10px] uppercase tracking-widest font-black",children:"Close"})]}):de?a.jsxs("div",{className:"p-8 py-16 flex flex-col items-center justify-center text-center space-y-6 flex-1 min-h-[400px]",children:[a.jsxs("div",{className:"relative flex items-center justify-center w-20 h-20",children:[a.jsxs("svg",{className:"animate-spin w-16 h-16 text-[#8F9A86]",fill:"none",viewBox:"0 0 24 24",children:[a.jsx("circle",{className:"opacity-20",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3"}),a.jsx("path",{className:"opacity-80",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),a.jsx(cm,{size:20,className:"text-[#8F9A86] absolute animate-pulse"})]}),a.jsxs("div",{className:"space-y-2 max-w-sm",children:[a.jsx("span",{className:"text-[9px] uppercase tracking-[0.25em] font-mono font-bold text-[#8F9A86] block",children:"Secure Synchronizer"}),a.jsx("h4",{className:"text-sm font-mono font-bold text-stone-800 uppercase animate-pulse",children:"Processing Your Seating"})]}),a.jsx("div",{className:"w-full max-w-xs bg-stone-200 h-1.5 rounded-none overflow-hidden border border-black/5",children:a.jsx("div",{className:"bg-[#C48810] h-full transition-all duration-700 ease-out",style:{width:`${(ye+1)*25}%`}})}),a.jsx("div",{className:"min-h-[40px] px-4",children:a.jsxs("p",{className:"text-[10px] text-stone-500 font-mono font-bold uppercase tracking-wider leading-relaxed",children:[ye===0&&"ð°ï¸ CONNECTING TO KOSENDA INTEGRATION SERVERS...",ye===1&&"ð ALLOCATING SECURE TABLE ALLOCATION INDEX (ROW #127)...",ye===2&&"ð³ SYNCING PREDEPOSIT LEDGERS WITH LOCAL FRONT OFFICE...",ye>=3&&"⨠FINALIZING SIGNATURE GUEST SANCTUARY RESERVATION..."]})}),a.jsx("span",{className:"text-[8.5px] text-[#1A1A1A]/40 font-mono block",children:"Please keep this window open while we secure your seating."})]}):a.jsxs("form",{onSubmit:Yt,className:"flex-1 flex flex-col min-h-0",children:[a.jsxs("div",{className:"p-6 space-y-4 overflow-y-auto max-h-[60vh] text-left",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-700",children:"Contact Name *"}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-2.5 text-stone-400",children:a.jsx(y0,{size:13})}),a.jsx("input",{type:"text",required:!0,placeholder:"e.g. Anton/Corporate",className:"w-full bg-white border border-black/15 pl-8 pr-3 py-2 text-xs font-semibold outline-none focus:border-[#8F9A86]",value:N,onChange:ke=>w(ke.target.value)})]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-700",children:"Primary Email *"}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-2.5 text-stone-400",children:a.jsx(yo,{size:13})}),a.jsx("input",{type:"email",required:!0,placeholder:"[email protected]",className:"w-full bg-white border border-black/15 pl-8 pr-3 py-2 text-xs font-semibold outline-none focus:border-[#8F9A86]",value:S,onChange:ke=>F(ke.target.value)})]})]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-700",children:"WhatsApp / Mobile Number"}),a.jsx("input",{type:"text",placeholder:"e.g. +62 812 3456 7890",className:"w-full bg-white border border-black/15 px-3 py-2 text-xs font-semibold outline-none focus:border-[#8F9A86]",value:P,onChange:ke=>H(ke.target.value)})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-700",children:"Date *"}),a.jsx("input",{type:"date",required:!0,className:"w-full bg-white border border-black/15 px-3 py-1.5 text-xs font-semibold outline-none focus:border-[#8F9A86]",value:_,onCh
397ange:ke=>C(ke.target.value),min:new Date().toISOString().split("T")[0]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-700",children:"Arrival Time"}),a.jsx("input",{type:"time",className:"w-full bg-white border border-black/15 px-3 py-1.5 text-xs font-semibold outline-none focus:border-[#8F9A86]",value:q,onChange:ke=>te(ke.target.value)})]})]}),a.jsxs("div",{className:"flex items-center justify-between bg-white border border-black/10 p-3",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-800 block",children:"Table Seats / Guests"}),a.jsx("span",{className:"text-[9px] text-[#8F9A86] font-semibold",children:"Commitment Deposit IDR 100k / guest"})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{type:"button",onClick:()=>Y(Math.max(1,ee-1)),className:"w-6 h-6 rounded-none border border-black/20 flex items-center justify-center hover:bg-[#1A1A1A] hover:text-white transition-colors cursor-pointer",children:a.jsx($k,{size:11})}),a.jsx("span",{className:"text-sm font-bold font-mono text-[#1A1A1A] w-5 text-center",children:ee}),a.jsx("button",{type:"button",onClick:()=>Y(ee+1),className:"w-6 h-6 rounded-none border border-black/20 flex items-center justify-center hover:bg-[#1A1A1A] hover:text-white transition-colors cursor-pointer",children:a.jsx($r,{size:11})})]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold tracking-wider text-stone-700",children:"Dining / Event Type"}),a.jsxs("select",{className:"w-full bg-white border border-black/15 px-2 py-2 text-xs font-semibold outline-none focus:border-[#8F9A86] rounded-none animate-none",value:R,onChange:ke=>W(ke.target.value),children:[a.jsx("option",{value:"Casual Dining",children:"Casual Dining & Drinks"}),a.jsx("option",{value:"Romantic Dinner",children:"Romantic Dinner & Couple Anniversary"}),a.jsx("option",{value:"Birthday Party",children:"Birthday & Family Celebration"}),a.jsx("option",{value:"Business Meeting",children:"Corporate Event & Business Meeting"}),a.jsx("option",{value:"Gathering Party / Besar",children:"Social Gathering & Party"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-stone-700",children:"Special Notes & Table Requests"}),a.jsx("textarea",{rows:2,placeholder:"e.g. Prefer cozy cozy outdoor seating, red roses for anniversary, vegetarian options requested, etc.",className:"w-full bg-white border border-black/15 px-3 py-2 text-xs font-light outline-none focus:border-[#8F9A86] placeholder-stone-400",value:ne,onChange:ke=>ve(ke.target.value)}),a.jsx("div",{className:"flex gap-1.5 flex-wrap mt-1.5",children:Ie.map(ke=>a.jsxs("button",{type:"button",onClick:()=>ve(Pe=>(Pe?`${Pe}, `:"")+ke),className:"bg-white hover:bg-stone-200 border border-black/10 text-[8px] font-mono uppercase px-2 py-1 text-stone-600 transition-colors cursor-pointer font-bold",children:["+ ",ke]},ke))})]}),a.jsxs("div",{className:"p-4 bg-stone-100 border border-black/10 text-xs font-mono",children:[a.jsx("h5",{className:"font-extrabold uppercase border-b border-black/10 pb-1 mb-2 text-[#1A1A1A]",children:"Reservation Deposit Summary"}),a.jsxs("div",{className:"space-y-1.5 text-stone-600",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsxs("span",{children:["Deposit (",ee," Guests)"]}),a.jsxs("span",{children:["IDR ",(ee*It).toLocaleString()]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{children:"Taxes & Services"}),a.jsxs("span",{children:["IDR ",ze.toLocaleString()]})]}),a.jsxs("div",{className:"flex justify-between border-t border-black/10 pt-1.5 text-stone-900 font-extrabold",children:[a.jsx("span",{children:"Estimated Total Deposit"}),a.jsxs("span",{children:["IDR ",lt.toLocaleString()]})]})]}),a.jsx("p",{className:"text-[8px] text-stone-500 font-sans mt-2 leading-relaxed italic",children:"*This deposit will directly offset your final table check during dining."})]})]}),a.jsxs("div",{className:"p-4 bg-white border-t border-black/10 flex items-center justify-end gap-3",children:[a.jsx("button",{type:"button",onClick:Ia,className:"px-5 py-2.5 border border-black/15 text-stone-600 hover:text-black font-mono text-[10px] uppercase font-bold cursor-pointer",children:"Cancel"}),a.jsx("button",{type:"submit",disabled:de,className:"px-6 py-2.5 bg-[#8F9A86] hover:bg-[#7D8874] text-white font-mono text-[10px] uppercase tracking-widest font-black flex items-center gap-1 cursor-pointer",children:de?"Syncing...":"Confirm & Sync Reservation"})]})]})]})})}),a.jsx(ll,{children:se&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/75 backdrop-blur-sm p-4 overflow-y-auto",children:a.jsxs(vn.div,{initial:{opacity:0,scale:.95,y:15}
397,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:15},transition:{type:"spring",duration:.5},className:"bg-[#F5F2ED] text-[#1A1A1A] w-full max-w-4xl border border-black/15 shadow-2xl rounded-none flex flex-col relative h-[88vh] max-h-[92vh]",children:[a.jsxs("div",{className:"p-4 sm:p-5 border-b border-black/10 bg-[#3A3631] text-white flex justify-between items-center shrink-0",children:[a.jsxs("div",{className:"min-w-0 pr-4",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-[0.25em] font-mono font-bold text-amber-400 block mb-0.5",children:"KOSENDA CULINARY MENU"}),a.jsxs("h3",{className:"text-base sm:text-lg font-serif font-bold italic text-white truncate",children:["Menu Book â ",B.name]})]}),a.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a.jsxs("a",{href:B.menuPdfUrl||"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",download:`Menu_${B.name.replace(/\s+/g,"_")}.pdf`,className:"p-2 sm:px-3 sm:py-1.5 bg-white/10 hover:bg-white/20 text-white font-mono text-[9px] uppercase tracking-wider font-semibold border border-white/10 flex items-center gap-1 transition-all rounded-none",title:"Download PDF",children:[a.jsx(h0,{size:12}),a.jsx("span",{className:"hidden sm:inline",children:"Download"})]}),a.jsxs("a",{href:B.menuPdfUrl||"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",target:"_blank",rel:"noopener noreferrer",className:"p-2 sm:px-3 sm:py-1.5 bg-white/10 hover:bg-white/20 text-white font-mono text-[9px] uppercase tracking-wider font-semibold border border-white/10 flex items-center gap-1 transition-all rounded-none",title:"Fullscreen Mode",children:[a.jsx(p0,{size:12}),a.jsx("span",{className:"hidden sm:inline",children:"Fullscreen"})]}),a.jsx("button",{onClick:()=>me(!1),className:"p-2 text-white/70 hover:text-white hover:bg-white/10 transition-colors rounded-none cursor-pointer",title:"Close Menu",children:a.jsx(di,{size:18})})]})]}),a.jsx("div",{className:"bg-[#EFECE7] flex-1 flex flex-col relative overflow-hidden",children:a.jsx(_w,{pdfUrl:B.menuPdfUrl||"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",title:B.name,downloadName:`Menu_${B.name.replace(/\s+/g,"_")}.pdf`,onClose:()=>me(!1)})})]})})})]})}function Hw(){const{websiteSettings:s}=Wn(),{title:l,subtitle:r,quoteText:o,quoteAuthor:f,quoteAuthorTitle:h,items:m}=s.artSoul,[x,g]=A.useState(0),[b,y]=A.useState(1),[j,N]=A.useState(null);A.useEffect(()=>{if(m.length<=1)return;const _=setInterval(()=>{w()},5e3);return()=>clearInterval(_)},[m.length,x]);const w=()=>{m.length!==0&&(y(1),g(_=>(_+1)%m.length))},S=()=>{m.length!==0&&(y(-1),g(_=>(_-1+m.length)%m.length))},P=(()=>{if(m.length===0)return[];let _=[...m];for(;_.length<3;)_=[..._,...m];const C=[];for(let q=0;q<3;q++){const te=(x+q)%_.length;C.push({..._[te],originalIndex:te})}return C})(),H={enter:_=>({x:_>0?30:-30,opacity:0,scale:.98}),center:{x:0,opacity:1,scale:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.4},scale:{duration:.4}}},exit:_=>({x:_>0?-30:30,opacity:0,scale:.98,transition:{x:{duration:.3},opacity:{duration:.25}}})};return a.jsxs("section",{id:"aesthetic",className:"py-24 bg-[#FAF9F6] border-t border-black/10 relative overflow-hidden",children:[a.jsx("div",{className:"absolute right-0 top-0 w-96 h-96 bg-[#8F9A86]/5 rounded-full blur-3xl pointer-events-none"}),a.jsx("div",{className:"absolute left-0 bottom-0 w-80 h-80 bg-[#C48810]/5 rounded-full blur-2xl pointer-events-none"}),a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 items-end mb-12",children:[a.jsxs("div",{className:"lg:col-span-7",children:[a.jsxs("span",{className:"text-[10px] uppercase tracking-[0.35em] text-[#8F9A86] font-mono block mb-2.5 font-extrabold flex items-center gap-1.5",children:[a.jsx(Uk,{size:10}),"CURATED ART GALLERY"]}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-serif text-[#1A1A1A] tracking-tight leading-tight font-black italic",children:l})]}),a.jsx("div",{className:"lg:col-span-5",children:a.jsx("p",{className:"text-stone-600 text-xs sm:text-sm font-sans font-medium leading-relaxed border-l-2 border-[#8F9A86]/35 pl-4 py-1",children:r})})]}),m.length===0?a.jsx("div",{className:"bg-stone-50 border border-stone-200/60 p-16 text-center text-stone-400 font-mono text-xs uppercase tracking-wider mb-16",children:"ð¼ï¸ No curated art pieces uploaded yet. Visit Admin Panel to customize your gallery."}):a.jsxs("div",{className:"relative mb-16",children:[a.jsxs("div",{className:"absolute -top-14 right-2 flex items-center gap-2 z-20",children:[a.jsx("button",{type:"button",onClick:S,className:"w-10 h-10 border border-black/10 hover:border-black bg-white hover:bg-[#1A1A1A] hover:text-white flex items-center justify-center transition-all cursor-pointer rounded-none shadow-sm",title:"Scroll Left",children:a.jsx(rc,{size:16})}),a.jsx("button",{type:"button",onClick:w,className:"w-10 h-10 border border-black/10 hover:border-black bg-white hover:bg-[#1A1A1A] hover:text-white flex items-center justify-center transition-all cursor-pointer rounded-none shadow-sm",title:"Scroll Right",children:a.jsx(cc,{size:16})})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 sm:gap-8 min-h-[440px]",children:a.jsx(ll,{initial:!1,custom:b,mode:"popLayout",children:P.map((_,C)=>a.jsxs(vn.div,{custom:b,variants:H,initial:"enter",animate:"center",exit:"exit",onMouseEnter:()=>N(C),onMouseLeave:()=>N(null),className:"group relative bg-[#F4F1EA] border border-black/10 aspect-[3/4] overflow-hidden shadow-sm flex flex-col justify-end",children:[a.jsx("img",{src:_.imageUrl,alt:_.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 ease-out group-hover:scale-105",referrerPolicy:"no-referrer"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-90 transition-opacity duration-300"}),a.jsx("div",{className:"absolute top-4 right-4 w-8 h-8 bg-white/10 backdrop-blur-md rounded-none flex items-center justify-center border border-white/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:a.jsx(x0,{size:12,className:"text-white"})}),a.jsxs("div",{className:"p-6 relative z-10 text-left text-white space-y-1.5 pointer-events-none",children:[a.jsx("span",{className:"text-[8px] tracking-[0.25em] font-mono uppercase bg-[#C48810] text-[#FAF9F6] px-2 py-0.5 font-bold inline-block border border-[#C48810]/20 shadow-sm",children:_.tag||"KOSENDA SANCTUARY"}),a.jsx("h3",{className:"text-lg font-serif font-bold italic tracking-tight text-white drop-shadow-sm leading-tight",children:_.title}),a.jsx("p",{className:"text-[11px] text-white/75 font-sans leading-relaxed font-light line-clamp-3",children:_.description})]}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-[#8F9A86] transform scale-x-0 group-hover:scale-x-100 transition-transform duration-500 origin-left"})]},`${_.id}-${C}-${x}`))})}),a.jsx("div",{className:"flex items-center justify-center gap-2 mt-8",children:m.map((_,C)=>a.jsx("button",{type:"button",onClick:()=>{y(C>x?1:-1),g(C)},className:`h-1.5 transition-all duration-300 ${x===C?"w-8 bg-[#8F9A86]":"w-1.5 bg-stone-300 hover:bg-stone-400"}`,title:`Slide to Art Piece ${C+1}`},C))})]}),a.jsxs("div",{className:"relative bg-white border border-black/10 rounded-none p-8 sm:p-12 max-w-4xl mx-auto overflow-hidden shadow-sm mt-16",children:[a.jsx("div",{className:"absolute -right-10 -bottom-10 opacity-[0.03] text-[#1A1A1A]",children:a.jsx(Ng,{size:200})}),a.jsxs("div",{className:"relative z-10 text-center flex flex-col items-center",children:[a.jsx(Ng,{size:24,className:"text-[#8F9A86] mb-6"}),a.jsxs("p",{className:"text-lg sm:text-xl font-serif text-[#1A1A1A] italic max-w-2xl leading-relaxed mb-6 font-semibold",children:["â",o,"â"]}
397),a.jsxs("div",{children:[a.jsx("span",{className:"text-[10px] uppercase tracking-widest text-[#1A1A1A] block font-mono font-bold mb-1",children:f}),a.jsx("span",{className:"text-[9px] text-stone-500 uppercase tracking-widest font-mono font-semibold",children:h})]})]})]})]})]})}function Pw({title:s,address:l,latitude:r,longitude:o}){var ee;const{websiteSettings:f}=Wn(),{title:h,subtitle:m,addressDetails:x,phoneDetails:g,coordinatesLabel:b,places:y,embedMapUrl:j,latitude:N,longitude:w}=f.location,S=((ee=f.headerFooter)==null?void 0:ee.email)||"[email protected]",F=s||h||"Location",P=l||x||"Jl. KH. Wahid Hasyim No. 127, Gondangdia, Kec. Menteng, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10240, Indonesia",H=r!==void 0?r:N||-6.1852,_=o!==void 0?o:w||106.8228;let C="";if(H!==void 0&&_!==void 0)C=`https://www.google.com/maps?q=${H},${_}&z=15&output=embed`;else if(j&&j.trim()!=="")if(j.includes("<iframe")){const Y=j.match(/src=["']([^"']+)["']/);C=Y?Y[1]:j}else C=j;C||(C=`https://www.google.com/maps?q=${H},${_}&z=15&output=embed`);const q=`https://maps.google.com/?q=${H},${_}`,te=(Y,R)=>{const W=Y.toLowerCase();return W.includes("mrt")||W.includes("stasiun")||W.includes("transit")?a.jsx(vw,{size:14,className:"text-[#1A1A1A]"}):W.includes("berkendara")||R===2?a.jsx(Zk,{size:14,className:"text-[#1A1A1A]"}):a.jsx(kk,{size:14,className:"text-[#1A1A1A]"})};return a.jsx("section",{id:"location",className:"py-24 bg-[#F5F2ED] text-[#1A1A1A] border-t border-black/10",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[a.jsx("span",{className:"text-[10px] uppercase tracking-[0.35em] text-[#1A1A1A]/60 font-mono block mb-2 font-bold animate-pulse",children:"LOCATION & ACCESS"}),a.jsx("h2",{className:"text-3xl sm:text-4xl font-serif tracking-tight text-[#1A1A1A] font-bold italic",children:F}),m&&a.jsx("p",{className:"text-[#1A1A1A]/70 text-xs sm:text-sm mt-3 font-semibold font-sans",children:m})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 items-start",children:[a.jsxs("div",{className:"lg:col-span-5 space-y-6 text-left",children:[a.jsxs("div",{className:"bg-white p-6 border border-black/10 rounded-none shadow-sm space-y-4",children:[a.jsx("h3",{className:"text-xs uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/50 border-b border-black/5 pb-2",children:"Contact & Address Details"}),a.jsxs("div",{className:"flex gap-3 items-start",children:[a.jsx("div",{className:"p-2 bg-[#F5F2ED] text-[#1A1A1A] border border-black/5 rounded-none flex-shrink-0 mt-0.5",children:a.jsx(b0,{size:16})}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-[10px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/75",children:"Address"}),a.jsx("p",{className:"text-[#1A1A1A] text-xs mt-1 leading-relaxed font-sans font-medium",children:P})]})]}),g&&a.jsxs("div",{className:"flex gap-3 items-start",children:[a.jsx("div",{className:"p-2 bg-[#F5F2ED] text-[#1A1A1A] border border-black/5 rounded-none flex-shrink-0 mt-0.5",children:a.jsx(g0,{size:16})}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-[10px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/75",children:"Phone Number"}),a.jsx("p",{className:"text-[#1A1A1A] text-xs mt-1 font-mono font-semibold",children:g})]})]}),a.jsxs("div",{className:"flex gap-3 items-start",children:[a.jsx("div",{className:"p-2 bg-[#F5F2ED] text-[#1A1A1A] border border-black/5 rounded-none flex-shrink-0 mt-0.5",children:a.jsx(yo,{size:16})}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-[10px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/75",children:"Email Address"}),a.jsx("p",{className:"text-[#1A1A1A] text-xs mt-1 font-mono font-semibold",children:S})]})]}),b&&a.jsxs("div",{className:"text-[9px] font-mono text-[#1A1A1A]/70 bg-[#F5F2ED] p-3 border border-black/5 mt-2 font-bold leading-relaxed",children:["ð ",b]})]}),y&&y.length>0&&a.jsxs(a.Fragment,{children:[a.jsx("h4",{className:"text-[10px] uppercase tracking-widest font-bold text-[#1A1A1A]/60 font-mono border-b border-black/10 pt-2 pb-2",children:"Popular Nearby Places"}),a.jsx("div",{className:"space-y-4",children:y.map((Y,R)=>a.jsxs("div",{className:"flex gap-3 items-start group",children:[a.jsx("div",{className:"w-7 h-7 rounded-none bg-white flex items-center justify-center p-1 border border-black/10 group-hover:bg-[#1A1A1A]/5 transition-colors duration-300 flex-shrink-0",children:te(Y.type,R)}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("div",{className:"flex justify-between items-center gap-2",children:[a.jsx("h4",{className:"text-xs font-serif text-[#1A1A1A] font-bold group-hover:opacity-80 transition-opacity italic",children:Y.name}),a.jsx("span",{className:"text-[8px] font-mono text-white bg-[#8F9A86] px-2 py-0.5 rounded-none flex-shrink-0 font-bold tracking-wider",style:{backgroundColor:"#8F9A86"},children:Y.distance})]}),a.jsx("span",{className:"text-[8px] font-mono text-[#1A1A1A]/50 uppercase tracking-widest block mt-0.5 mb-1 font-bold",children:Y.type}),a.jsx("p",{className:"text-[#1A1A1A]/70 text-[11px] leading-relaxed font-light",children:Y.description})]})]},Y.id))})]})]}),a.jsxs("div",{className:"lg:col-span-7 bg-white rounded-none p-6 sm:p-8 border border-black/10 shadow-sm flex flex-col justify-between",children:[a.jsxs("div",{className:"space-y-4 w-full",children:[a.jsxs("div",{className:"w-full flex justify-between items-center text-[10px] font-mono text-[#1A1A1A]/65 border-b border-black/10 pb-3 font-bold",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(Bm,{size:12,className:"text-[#1A1A1A]"}),"INTERACTIVE LOCATION MAP"]}),a.jsx("span",{className:"text-[#8F9A86] font-bold",children:"â FREE COMPASS"})]}),a.jsxs("div",{className:"w-full h-[450px] min-h-[450px] bg-[#F5F2ED] rounded-[12px] relative border border-black/10 overflow-hidden shadow-inner",children:[a.jsx("iframe",{src:C,width:"100%",height:"450",style:{border:0},className:"w-full h-full opacity-100 transition-all duration-500 rounded-[12px]",allowFullScreen:!0,loading:"lazy",title:"Interactive Hotel Map"}),a.jsxs("div",{className:"absolute right-3 bottom-3 bg-white px-3 py-2 rounded-none border border-black/10 text-left font-sans text-[9px] space-y-0.5 text-[#1A1A1A] shadow-md z-10",children:[a.jsxs("span",{className:"text-[#1A1A1A] font-extrabold block",children:["ð LAT: ",H]}),a.jsxs("span",{className:"text-[#1A1A1A] font-extrabold block",children:["ð LNG: ",_]})]})]})]}),a.jsxs("div",{className:"mt-6 flex flex-col sm:flex-row items-center justify-between gap-4 pt-4 border-t border-black/10",children:[a.jsxs("div",{className:"text-[#1A1A1A]/70 text-[11px] text-left leading-normal max-w-sm",children:["ð¡ ",a.jsx("span",{className:"font-semibold text-[#1A1A1A]",children:"Directions Tip:"})," Centrally located. Only minutes away from embassies, Sudirman-Thamrin CBD, and Sarinah MRT."]}),a.jsxs("a",{href:q,target:"_blank",rel:"noopener noreferrer",id:"btn-get-directions",className:"w-full sm:w-auto bg-[#1A1A1A] hover:bg-[#333333] text-[#F5F2ED] font-mono text-[10px] font-bold tracking-widest uppercase py-3.5 px-6 transition-all duration-300 text-center flex items-center justify-center gap-2 border border-black shadow",children:[a.jsx(Bm,{size:12,className:"animate-spin-slow"}),"Get Directions"]})]})]})]})]})})}function Gw({isOpen:s,onClose:l,availableRooms:r,initialRoomId:o,initialCheckIn:f,initialCheckOut:h,initialGuestsCount:m}){var ne,ve,de;const{websiteSettings:x}=Wn(),[g,b]=A.useState(o||((ne=r[0])==null?void 0:ne.id)||"petita"),[y,j]=A.useState(0),[N,w]=A.useState(!1);if(A.useEffect(()=>{w(!1)},[g]),A.useEffect(()=>{o&&(b(o),j(0))},[o]),!s)return null;const S=r.find(Me=>Me.id===g)||r[0];if(!S)return null;const F=S.imageUrls&&S.imageUrls.length>
3970?S.imageUrls:[S.imageUrl].filter(Boolean);(ve=x==null?void 0:x.headerFooter)!=null&&ve.email;const H=(((de=x==null?void 0:x.headerFooter)==null?void 0:de.phone)||"+62 21 3193 6868").replace(/[^0-9]/g,""),C=`https://wa.me/${H.startsWith("0")?"62"+H.slice(1):H.startsWith("62")?H:"622131936868"}?text=Hi%20Kosenda%20Hotel,%20I%20would%20like%20to%20reserve%20the%20${encodeURIComponent(S.name)}%20suite.`,q=S.bookingUrl||(x==null?void 0:x.bookingRedirectUrl)||C,te=S.allowBreakfastOption&&N&&S.priceBreakfast?S.priceBreakfast:S.price,Y=q!==C?q+(q.includes("?")?"&":"?")+`breakfast=${N?"yes":"no"}`:q,R=Me=>{Me.stopPropagation(),j(ue=>(ue-1+F.length)%F.length)},W=Me=>{Me.stopPropagation(),j(ue=>(ue+1)%F.length)};return a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-[#1A1A1A]/85 backdrop-blur-sm overflow-y-auto",role:"dialog","aria-modal":"true",children:a.jsxs("div",{className:"w-full max-w-5xl bg-[#F5F2ED] border border-black/15 rounded-none shadow-2xl relative my-8 animate-fade-in-up flex flex-col md:flex-row max-h-[90vh] overflow-hidden",children:[a.jsx("button",{onClick:l,className:"absolute right-4 top-4 text-white hover:text-amber-400 bg-black/40 hover:bg-black/60 p-2 rounded-none z-30 cursor-pointer transition-colors border border-white/10","aria-label":"Close modal",children:a.jsx(di,{size:16})}),a.jsxs("div",{className:"w-full md:w-3/5 p-6 sm:p-8 overflow-y-auto flex flex-col justify-between border-r border-[#1A1A1A]/10 max-h-[90vh]",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] uppercase tracking-[0.3em] text-[#8F9A86] font-extrabold font-mono block mb-1",children:"Luxury Architectural Specification"}),a.jsx("h3",{className:"text-2xl sm:text-3xl font-serif text-[#1A1A1A] tracking-tight font-bold italic leading-none mb-4",children:S.name}),a.jsx("div",{className:"flex flex-wrap gap-2 pt-1 border-t border-[#1A1A1A]/10",children:r.map(Me=>a.jsx("button",{onClick:()=>{b(Me.id),j(0)},className:`px-3 py-1.5 text-[9px] font-mono uppercase tracking-widest font-bold transition-all cursor-pointer ${Me.id===g?"bg-[#1A1A1A] text-[#F5F2ED]":"bg-stone-200/60 text-[#1A1A1A]/65 hover:bg-stone-250 hover:text-black"}`,children:Me.name.split(" ")[0]},Me.id))})]}),a.jsxs("div",{className:"relative h-64 sm:h-72 w-full overflow-hidden bg-black/5 group border border-black/10",children:[a.jsx("img",{src:F[y],alt:`${S.name} main showcase`,referrerPolicy:"no-referrer",className:"w-full h-full object-cover transition-opacity duration-500"}),a.jsx("div",{className:"absolute inset-0 bg-black/10"}),F.length>1&&a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",onClick:R,className:"absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-white/90 hover:bg-white text-stone-900 flex items-center justify-center font-bold border border-black/15 transition-opacity opacity-0 group-hover:opacity-100 cursor-pointer shadow-sm",children:"â¹"}),a.jsx("button",{type:"button",onClick:W,className:"absolute right-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-white/90 hover:bg-white text-stone-900 flex items-center justify-center font-bold border border-black/15 transition-opacity opacity-0 group-hover:opacity-100 cursor-pointer shadow-sm",children:"âº"}),a.jsx("div",{className:"absolute bottom-3 inset-x-0 flex justify-center gap-1.5",children:F.map((Me,ue)=>a.jsx("button",{type:"button",onClick:()=>j(ue),className:`w-1.5 h-1.5 rounded-full border border-white transition-all cursor-pointer ${ue===y?"bg-white w-3":"bg-white/40"}`},ue))})]}),a.jsxs("div",{className:"absolute bottom-3 left-3 flex gap-2",children:[a.jsx("span",{className:"bg-[#8F9A86] text-[#F5F2ED] text-[7.5px] uppercase font-mono tracking-widest px-2.5 py-1 font-bold",children:S.bedType}),a.jsx("span",{className:"bg-black/70 text-[#F5F2ED] text-[7.5px] uppercase font-mono tracking-widest px-2 py-1 font-bold",children:S.size})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("h4",{className:"text-[10px] uppercase tracking-widest text-[#1A1A1A]/50 font-bold font-mono",children:"INTEGRAL & ARCHITECTURAL DESCRIPTION"}),a.jsx("p",{className:"text-[#1A1A1A]/85 text-xs sm:text-sm font-sans font-light leading-relaxed",children:S.description||"A pristine architectural haven prioritizing mid-century design, Indonesian heritage mahogany craft, and eye-fr
397iendly ambient mood spaces."})]}),a.jsxs("div",{className:"space-y-3 pt-3 border-t border-black/5",children:[a.jsx("h4",{className:"text-[10px] uppercase tracking-widest text-[#1A1A1A]/50 font-bold font-mono",children:"BESPOKE AMENITIES & SPECIFICATIONS"}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2 text-xs",children:S.features&&S.features.length>0?S.features.map((Me,ue)=>a.jsxs("div",{className:"flex items-center gap-2 text-[#1A1A1A]/85 font-medium",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-[#8F9A86] shrink-0"}),a.jsx("span",{children:Me})]},ue)):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-2 text-[#1A1A1A]/80 font-medium",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-[#8F9A86] shrink-0"}),a.jsx("span",{children:"Signature Batik Kimono & Premium Slippers"})]}),a.jsxs("div",{className:"flex items-center gap-2 text-[#1A1A1A]/80 font-medium",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-[#8F9A86] shrink-0"}),a.jsx("span",{children:"Marshall Bluetooth Stereo Speaker"})]}),a.jsxs("div",{className:"flex items-center gap-2 text-[#1A1A1A]/80 font-medium",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-[#8F9A86] shrink-0"}),a.jsx("span",{children:"Eco-Friendly Organic Spa Amenities"})]}),a.jsxs("div",{className:"flex items-center gap-2 text-[#1A1A1A]/80 font-medium",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-[#8F9A86] shrink-0"}),a.jsx("span",{children:"Fast Free Fiber Optic Wi-Fi Access"})]})]})})]})]}),a.jsxs("div",{className:"mt-8 pt-4 border-t border-black/10 flex items-center gap-2.5 text-[10px] text-stone-500 font-mono",children:[a.jsx(Mk,{size:14,className:"text-[#8F9A86] shrink-0"}),a.jsxs("span",{children:["ID Kamar: #",S.id.toUpperCase()," ⢠",S.smokingPolicy||"Non Smoking"]})]})]}),a.jsxs("div",{className:"w-full md:w-2/5 p-6 sm:p-8 bg-white flex flex-col justify-between text-[#1A1A1A] max-h-[90vh] overflow-y-auto",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[8px] uppercase tracking-[0.25em] text-[#1A1A1A]/60 font-bold font-mono block mb-1",children:"Direct Reservation Rate"}),a.jsxs("div",{className:"flex items-baseline gap-1",children:[a.jsxs("span",{className:"text-2xl sm:text-3xl font-bold font-mono tracking-tight text-[#1A1A1A]",children:["IDR ",te.toLocaleString()]}),a.jsx("span",{className:"text-[10px] tracking-wider text-stone-500 font-mono font-bold",children:"/night"})]}),a.jsx("p",{className:"text-[10px] text-stone-500 font-semibold mt-0.5",children:S.taxInfo||"Taxes & Services Included"})]}),S.allowBreakfastOption&&a.jsxs("div",{className:"bg-[#FAF9F6] border border-[#8F9A86]/20 p-3.5 space-y-2 text-left",children:[a.jsx("span",{className:"text-[9px] uppercase tracking-[0.12em] font-mono font-bold text-[#8F9A86] block",children:"ð¥ RATES & BREAKFAST OPTIONS"}),a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsx("button",{type:"button",onClick:()=>w(!1),className:`py-2 px-1 text-[9px] font-mono tracking-normal font-extrabold border transition-all uppercase text-center ${N?"bg-white text-stone-600 border-stone-200 hover:border-black/50":"bg-[#1A1A1A] text-white border-black"}`,children:"ð³ Room Only"}),a.jsx("button",{type:"button",onClick:()=>w(!0),className:`py-2 px-1 text-[9px] font-mono tracking-normal font-extrabold border transition-all uppercase text-center ${N?"bg-[#8F9A86] text-white border-[#8F9A86]":"bg-white text-stone-600 border-stone-200 hover:border-black/50"}`,children:"ð¥ Breakfast Included"})]}),a.jsx("p",{className:"text-[8.5px] text-stone-500 font-sans leading-normal leading-relaxed mt-1",children:N?"â Includes daily signature artisanal buffet breakfast at Waha Kitchen.":"â Room Only. Breakfast is not included in this rate."})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("span",{className:"text-[9px] uppercase tracking-wider font-mono font-bold text-stone-400 block",children:"PHYSICAL FEATURES & AMENITIES"}),a.jsxs("div",{className:"space-y-2 text-xs",children:[a.jsxs("div",{className:"p-3 border border-black/5 bg-stone-50/50 flex justify-between items-center rounded-none",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-wider font-mono font-bold text-stone-500",children:"Bathroom Style"}),a.jsx("span",{className:"font-semibold text-stone-800",children:S.bathroomType||"Shower / Bathtub Combo"})]}),a.jsx(cw,{size:18,className:"text-[#8F9A86] shrink-0"})]}),a.jsxs("div",{className:"p-3 border border-black/5 bg-stone-50/50 flex justify-between items-center rounded-none",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-wider font-mono font-bold text-stone-500",children:"Breakfast Policy"}),a.jsx("span",{className:"font-semibold text-[#8F9A86]",children:S.breakfastInfo||(S.allowBreakfastOption?"Termasuk Sarapan (Breakfast Included)":"Tidak Termasuk Sarapan (Room Only)")})]}),a.jsx("div",{className:`w-2 h-2 rounded-full shrink-0 ${S.allowBreakfastOption?"bg-green-600":"bg-stone-400"}`})]}),a.jsxs("div",{className:"p-3 border border-black/5 bg-stone-50/50 flex justify-between items-center rounded-none",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-wider font-mono font-bold text-stone-500",children:"Cancellation Policy"}),a.jsx("span",{className:"font-semibold text-[#C48810]",children:S.refundPolicy||"Non Refundable"})]}),a.jsx(hh,{size:14,className:"text-[#C48810] shrink-0"})]}),a.jsxs("div",{className:"p-3 border border-black/5 bg-stone-50/50 flex justify-between items-center rounded-none",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-wider font-mono font-bold text-stone-500",children:"Payment Policy"}),a.jsx("span",{className:"font-semibold text-stone-800",children:S.paymentPolicy||"Secure Online Payment"})]}),a.jsx("span",{className:"text-[9px] font-mono font-bold text-[#8F9A86]",children:"NO CC REQ."})]})]})]})]}),a.jsxs("div",{className:"space-y-4 pt-6 border-t border-black/10 mt-6 sm:mt-10",children:[a.jsxs("div",{className:"text-center font-sans space-y-1",children:[a.jsx("span",{className:"text-[9px] font-mono uppercase tracking-[0.2em] text-[#C48810] font-extrabold flex items-center justify-center gap-1",children:"ð·ï¸ Direct Booking Offer"}),a.jsxs("p",{className:"text-[10px] text-stone-400 font-mono leading-none",children:["Use Promo Code ",a.jsx("strong",{className:"text-stone-800 underline",children:"KOSENDALOCAL"})," for 15% OFF"]}
397)]}),a.jsx("a",{href:Y,target:"_blank",rel:"noopener noreferrer",className:"w-full py-4 bg-[#1A1A1A] hover:bg-[#8F9A86] text-white text-[10px] sm:text-[11px] uppercase tracking-[0.2em] font-extrabold transition-all duration-300 rounded-none cursor-pointer flex items-center justify-center gap-2 shadow-md leading-none text-center",children:a.jsx("span",{children:"BOOK VIA OFFICIAL ENGINE â"})}),a.jsx("p",{className:"text-[9px] text-stone-400 text-center leading-relaxed font-mono",children:"ð You will be securely redirected to our official booking partner engine to finalize your reservation details."})]})]})]})})}function Kw(){const{websiteSettings:s}=Wn(),{logoText:l,address:r,phone:o,email:f,facebook:h,instagram:m,creditText:x,logoImageUrl:g}=s.headerFooter,b=()=>{window.scrollTo({top:0,behavior:"smooth"})},y=j=>{const N=document.getElementById(j);if(N){const S=document.body.getBoundingClientRect().top,H=N.getBoundingClientRect().top-S-80;window.scrollTo({top:H,behavior:"smooth"})}};return a.jsx("footer",{className:"bg-[#504C47] border-t border-black/10 pt-16 pb-8 text-[#F5F2ED]/80 font-sans relative overflow-hidden text-left",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-10 mb-12 border-b border-white/10 pb-12",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex flex-col gap-1 cursor-pointer group text-left",onClick:b,children:[a.jsx("div",{children:g&&g.trim()!==""?a.jsx("img",{src:g,alt:l,className:"h-[36px] max-w-[150px] object-contain",referrerPolicy:"no-referrer"}):a.jsx("span",{className:"text-2xl font-serif tracking-tight font-bold italic text-[#F5F2ED]",children:l})}),a.jsx("span",{className:"text-[9px] tracking-[0.25em] font-mono text-[#F5F2ED]/70 font-bold uppercase mt-1",children:"NOTABLE SERIES HOTEL"})]}),a.jsx("p",{className:"text-[#F5F2ED]/60 text-xs leading-relaxed font-light",children:"Connecting 1950s modernist aesthetics with the lushness of vertical tropical greenery in central Jakarta. The first independent boutique design hotel celebrating local arts and Nusantara traditions."}),a.jsxs("div",{className:"flex gap-1.5 items-center text-xs text-white/90 font-semibold font-mono",children:[a.jsx(Yr,{size:11,fill:"currentColor"}),a.jsx(Yr,{size:11,fill:"currentColor"}),a.jsx(Yr,{size:11,fill:"currentColor"}),a.jsx(Yr,{size:11,fill:"currentColor"}),a.jsx(Yr,{size:11,fill:"currentColor"}),a.jsx("span",{className:"text-[#F5F2ED]/65 font-normal ml-1",children:"4.7 / 5 (800+ Review)"})]}),a.jsxs("div",{className:"pt-4 border-t border-white/10 mt-4 text-left",children:[a.jsx("span",{className:"block text-[9px] uppercase tracking-widest font-mono font-bold text-[#F5F2ED]/60 mb-2",children:"Our Other Ventures:"}),a.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[s.headerFooter.venture1LogoUrl&&a.jsx("a",{href:s.headerFooter.venture1Link||"#",target:"_blank",rel:"noopener noreferrer",className:"block bg-transparent hover:bg-[#302C28] border border-transparent hover:border-white/10 p-1.5 transition-all duration-300 max-w-[200px]",title:s.headerFooter.venture1Name||"Venture 1",children:a.jsx("img",{src:s.headerFooter.venture1LogoUrl,alt:s.headerFooter.venture1Name||"Venture 1",className:"h-10 w-auto max-w-full object-contain opacity-85 hover:opacity-100 transition-all duration-300",referrerPolicy:"no-referrer"})}),s.headerFooter.venture2LogoUrl&&a.jsx("a",{href:s.headerFooter.venture2Link||"#",target:"_blank",rel:"noopener noreferrer",className:"block bg-transparent hover:bg-[#302C28] border border-transparent hover:border-white/10 p-1.5 transition-all duration-300 max-w-[200px]",title:s.headerFooter.venture2Name||"Venture 2",children:a.jsx("img",{src:s.headerFooter.venture2LogoUrl,alt:s.headerFooter.venture2Name||"Venture 2",className:"h-10 w-auto max-w-full object-contain opacity-85 hover:opacity-100 transition-all duration-300",referrerPolicy:"no-referrer"})})]})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-white text-xs uppercase tracking-widest font-mono font-bold mb-4 flex items-center gap-1.5/10",children:"NAVIGATION MENU"}),a.jsxs("div",{className:"flex flex-col gap-2.5 text-xs",children:[a.jsx("button",{onClick:()=>y("home"),className:"text-[#F5F2ED]/60 hover:text-white text-left transition-colors cursor-pointer font-medium",children:"Home"}),a.jsx("button",{onClick:()=>y("rooms"),className:"text-[#F5F2ED]/60 hover:text-white text-left transition-colors cursor-pointer font-medium",children:"Rooms"}),a.jsx("button",{onClick:()=>y("dining"),className:"text-[#F5F2ED]/60 hover:text-white text-left transition-colors cursor-pointer font-medium",children:"Dining"}),a.jsx("button",{onClick:()=>y("aesthetic"),className:"text-[#F5F2ED]/60 hover:text-white text-left transition-colors cursor-pointer font-medium",children:"Art & Soul"}),a.jsx("button",{onClick:()=>y("location"),className:"text-[#F5F2ED]/60 hover:text-white text-left transition-colors cursor-pointer font-medium",children:"Location & Map"})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-white text-xs uppercase tracking-widest font-mono font-bold mb-4",children:"CONTACT DETAILS"}),a.jsxs("div",{className:"space-y-3.5 text-xs",children:[a.jsxs("div",{className:"flex gap-2.5 items-start",children:[a.jsx(b0,{size:15,className:"text-[#F5F2ED]/80 flex-shrink-0 mt-0.5"}),a.jsx("span",{className:"text-[#F5F2ED]/60 leading-relaxed font-light",children:r})]}),a.jsxs("div",{className:"flex gap-2.5 items-center",children:[a.jsx(g0,{size:14,className:"text-[#F5F2ED]/80 flex-shrink-0"}),a.jsx("a",{href:`tel:${o.replace(/\s+/g,"")}`,className:"text-[#F5F2ED]/60 hover:text-white font-mono font-semibold",children:o})]}),a.jsxs("div",{className:"flex gap-2.5 items-center",children:[a.jsx(yo,{size:14,className:"text-[#F5F2ED]/80 flex-shrink-0"}),a.jsx("a",{href:`mailto:${f}`,className:"text-[#F5F2ED]/60 hover:text-white font-mono font-semibold",children:f})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h4",{className:"text-white text-xs uppercase tracking-widest font-mono font-bold",children:"KOSENDA LIFESTYLE"}),a.jsx("p",{className:"text-[#F5F2ED]/60 text-xs font-light leading-relaxed",children:"Receive updates on curated art exhibitions, signature rooftop events, and exclusive seasonal promotions by following our channels."}),a.jsxs("div",{className:"flex gap-3 text-stone-400",children:[a.jsx("a",{href:m,target:"_blank",rel:"noreferrer",className:"p-2 bg-white/5 hover:bg-white hover:text-[#1A1A1A] text-white rounded-none border border-white/10 transition-colors cursor-pointer","aria-label":"Instagram Kosenda",children:a.jsx(Rk,{size:14})}),a.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"p-2 bg-white/5 hover:bg-white hover:text-[#1A1A1A] text-white rounded-none border border-white/10 transition-colors cursor-pointer","aria-label":"Facebook Kosenda",children:a.jsx(jk,{size:14})})]})]})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-4 text-[11px] text-[#F5F2ED]/50 font-mono font-bold",children:[a.jsxs("div",{className:"text-center sm:text-left flex flex-wrap items-center gap-3",children:[a.jsxs("span",{children:["© ",new Date().getFullYear()," ",l," Hotel Jakarta. All Rights Reserved."]}),a.jsx("span",{className:"text-[#F5F2ED]/30",children:"â¢"}),a.jsx("a",{href:"?admin=login",className:"text-[#F5F2ED]/40 hover:text-white transition-colors cursor-pointer text-[10px] uppercase tracking-wider font-mono",children:"Portal Staf Admin"})]}),a.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 px-3 py-1.5 bg-white/5 hover:bg-white text-[#F5F2ED] hover:text-[#1A1A1A] rounded-none border border-white/10 transition-colors cursor-pointer text-[10px] tracking-wider up
397percase font-bold",children:["Back to Top",a.jsx(IN,{size:11})]})]})]})})}const Du=(s,l,r=800,o=600,f=24)=>{const h=`<svg xmlns='http://www.w3.org/2000/svg' width='${r}' height='${o}' viewBox='0 0 ${r} ${o}'><rect width='${r}' height='${o}' fill='${l}'/><text x='50%' y='50%' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='${f}' font-weight='bold' fill='white'>${s}</text></svg>`;return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(h)))}`};function ks(s){return new Promise(l=>{const r=new FileReader;r.onload=o=>{var h;const f=new Image;f.onload=()=>{var F;const m=document.createElement("canvas"),x=m.getContext("2d");if(!x){l(((F=o.target)==null?void 0:F.result)||"");return}const g=1200,b=1200;let y=f.width,j=f.height;(y>g||j>b)&&(y>j?(j=Math.round(j*g/y),y=g):(y=Math.round(y*b/j),j=b)),m.width=y,m.height=j,x.drawImage(f,0,0,y,j);let N="image/jpeg";const w=s.type;w==="image/png"?N="image/png":w==="image/webp"?N="image/webp":w==="image/gif"&&(N="image/gif");let S;N==="image/png"||N==="image/gif"?S=m.toDataURL(N):S=m.toDataURL(N,.8),l(S)},f.onerror=()=>{var m;l(((m=o.target)==null?void 0:m.result)||"")},f.src=(h=o.target)==null?void 0:h.result},r.onerror=()=>{l("")},r.readAsDataURL(s)})}function qw(){const[s,l]=A.useState(null),[r,o]=A.useState(!0);if(A.useEffect(()=>{fetch("/api/visitor-stats").then(x=>x.json()).then(x=>{x.success&&l(x.stats)}).catch(console.error).finally(()=>o(!1))},[]),r)return a.jsx("div",{className:"flex items-center justify-center h-64",children:a.jsx("div",{className:"animate-spin w-8 h-8 border-2 border-black border-t-transparent rounded-full"})});const f=s||{total:0,today:0,byCountry:[],byDate:[]},h=Math.max(...f.byCountry.map(x=>x.count),1),m=Math.max(...f.byDate.map(x=>x.count),1);return a.jsxs("div",{className:"space-y-8",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Dashboard Kunjungan"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Statistik pengunjung website Kosenda Hotel"})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a.jsxs("div",{className:"bg-white border border-black/10 p-6",children:[a.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-[#1A1A1A]/50 font-bold",children:"Total Kunjungan"}),a.jsx("p",{className:"text-3xl font-serif font-bold mt-1",children:f.total.toLocaleString()})]}),a.jsxs("div",{className:"bg-white border border-black/10 p-6",children:[a.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-[#1A1A1A]/50 font-bold",children:"Kunjungan Hari Ini"}),a.jsx("p",{className:"text-3xl font-serif font-bold mt-1",children:f.today.toLocaleString()})]}),a.jsxs("div",{className:"bg-white border border-black/10 p-6",children:[a.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-[#1A1A1A]/50 font-bold",children:"Negara"}),a.jsx("p",{className:"text-3xl font-serif font-bold mt-1",children:f.byCountry.length})]})]}),a.jsxs("div",{className:"bg-white border border-black/10 p-6",children:[a.jsx("h4",{className:"text-xs font-bold font-mono uppercase tracking-wider mb-4",children:"Kunjungan Berdasarkan Negara"}),f.byCountry.length===0?a.jsx("p",{className:"text-xs text-[#1A1A1A]/40 italic",children:"Belum ada data kunjungan."}):a.jsx("div",{className:"space-y-2",children:f.byCountry.map(x=>a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("span",{className:"text-xs font-mono font-bold w-24 truncate",children:x.country}),a.jsx("div",{className:"flex-1 bg-stone-100 h-6 relative overflow-hidden",children:a.jsx("div",{className:"h-full bg-[#1A1A1A] transition-all duration-500 flex items-center justify-end px-2",style:{width:`${Math.max(x.count/h*100,2)}%`},children:a.jsx("span",{className:"text-[9px] font-mono font-bold text-white",children:x.count})})})]},x.country))})]}),a.jsxs("div",{className:"bg-white border border-black/10 p-6",children:[a.jsx("h4",{className:"text-xs font-bold font-mono uppercase tracking-wider mb-4",children:"Kunjungan 30 Hari Terakhir"}),f.byDate.length===0?a.jsx("p",{className:"text-xs text-[#1A1A1A]/40 italic",children:"Belum ada data kunjungan."}):a.jsx("div",{className:"flex items-end gap-1.5 md:gap-2 overflow-x-auto pb-2 w-full justify-between",style:{minHeight:180}
397,children:f.byDate.map(x=>{var y;const g=x.count/m*100,b=((y=x.date)==null?void 0:y.slice(5))||"";return a.jsxs("div",{className:"flex flex-col items-center gap-1.5 flex-1 min-w-[20px] max-w-[50px]",children:[a.jsx("span",{className:"text-[8px] font-mono font-bold text-[#1A1A1A]/60",children:x.count}),a.jsx("div",{className:"w-full bg-amber-700/80 hover:bg-amber-700 rounded-t transition-all duration-300 cursor-pointer border border-amber-800/20",style:{height:`${Math.max(g,4)}px`},title:`${x.date}: ${x.count} kunjungan`}),a.jsx("span",{className:"text-[7px] font-mono text-[#1A1A1A]/40 text-center select-none",children:b})]},x.date)})})]})]})}function Iw({isOpen:s,onClose:l,initialTab:r}){var Pn,Yl,Ki,mr,fs,Xl,qi,Ii,hr,pr,Gn,Kn,xr,br,ms,Xs,Yi,$s,Xi,gr,qn,yr,fn,$l,Ql,mn;const{profile:o,updateProfile:f,role:h,setRole:m,isLoggedIn:x,setIsLoggedIn:g,logout:b,usersList:y,fetchUsersList:j,saveUserInAdmin:N,deleteUserInAdmin:w,rooms:S,addRoom:F,updateRoom:P,deleteRoom:H,bookings:_,updateBookingStatus:C,vouchers:q,addVoucher:te,updateVoucher:ee,deleteVoucher:Y,websiteSettings:R,updateHeaderFooterSettings:W,updateHomeBannerSettings:ne,updateDiningSettings:ve,updateDiningOutlet:de,addDiningOutlet:Me,deleteDiningOutlet:ue,updateArtSoulSettings:Ne,updateArtSoulItem:O,addArtSoulItem:Z,deleteArtSoulItem:se,updateLocationSettings:me,updateNearbyPlace:ye,addNearbyPlace:T,deleteNearbyPlace:B,updateAiSettings:oe,updateBookingRedirectUrl:J,updateShowReservationCard:ce,updateTypographySettings:fe,chatThreads:we,sendMessage:qe,createChatThread:Ie,markThreadRead:It,clearAllChats:qa}=Wn(),[ze,lt]=A.useState(()=>r||"profile"),[Yt,Ia]=A.useState(""),[ke,Pe]=A.useState(!1),[Ya,Xa]=A.useState(o.name),[es,An]=A.useState(o.email),[ol,K]=A.useState(o.phone),[G,$]=A.useState(o.bio),[le,Oe]=A.useState(!1),[st,Xt]=A.useState(null),[rl,wo]=A.useState(""),[pi,$a]=A.useState(""),[St,ma]=A.useState(1e6),[Mt,So]=A.useState(2),[xi,bi]=A.useState(""),[cl,gi]=A.useState(""),[$t,Ot]=A.useState([]),[yi,Ss]=A.useState("");A.useEffect(()=>{const d=yi.split(",").map(ie=>ie.trim()).filter(Boolean);JSON.stringify(d)!==JSON.stringify($t)&&Ss($t.join(", "))},[$t]);const[ul,To]=A.useState(!1),[vi,Sa]=A.useState(0),[uc,Nn]=A.useState(""),[ts,Co]=A.useState(null),Ee=(d,M="info")=>{Co({message:d,type:M}),setTimeout(()=>Co(null),4e3)},[ji,dl]=A.useState(""),[Eo,Ta]=A.useState(""),[xt,Tt]=A.useState(5),[ha,Ts]=A.useState("Non-smoking"),[Do,Mo]=A.useState("Shower Only"),[fl,Qa]=A.useState("Toilet & Wifi "),[Ai,kn]=A.useState("Online Payment"),[as,Za]=A.useState("Breakfast Include"),[Ja,ut]=A.useState("Non Refundable"),[ml,hl]=A.useState(2),[Wa,wn]=A.useState("Include Tax"),[Oo,pl]=A.useState(""),[xl,Ro]=A.useState(12e5),[Sn,Cs]=A.useState(!1),[Ca,Rt]=A.useState(!1),[bl,dc]=A.useState(null),[Ni,gl]=A.useState(""),[Es,zo]=A.useState(15),[Ht,ki]=A.useState("2026-06-01"),[yl,wi]=A.useState("2026-12-31"),[Tn,vl]=A.useState("all"),[jl,Cn]=A.useState(""),[Fo,Al]=A.useState(""),[zt,en]=A.useState("header_footer"),[Uo,ed]=A.useState(null),[En,Ea]=A.useState(null),[Si,Bo]=A.useState(null),[tn,Ds]=A.useState([]),[Nl,kl]=A.useState(!1),[fc,pa]=A.useState(!1),[Dn,mc]=A.useState(new Set),[Ms,Qt]=A.useState(null),[wl,Ti]=A.useState("smtp.gmail.com"),[Lo,Ci]=A.useState("465"),[Ei,_o]=A.useState(!0),[Ct,Mn]=A.useState(""),[Di,Os]=A.useState(""),[Vo,Ho]=A.useState(!1),[Sl,Rs]=A.useState("Kosenda Hotel Admin"),[zs,Po]=A.useState("[email protected]"),[Tl,hc]=A.useState(!0),[Da,Fs]=A.useState("idle"),[pc,Cl]=A.useState(""),[El,td]=A.useState([]),[Ma,Us]=A.useState("config"),[Dl,ad]=A.useState(""),[Go,nd]=A.useState("Verifikasi Otentikasi Member"),[Bs,sd]=A.useState(()=>Math.floor(1e5+Math.random()*9e5).toString()),[xc,bc]=A.useState(!1),[Ko,gc]=A.useState(""),[Ml,id]=A.useState(""),[yc,ld]=A.useState("Balasan Resmi Layanan Tamu - Kosenda Hotel"),[qo,vc]=A.useState(""),[jc,Ac]=A.useState(!1),[Ol,Ls]=A.useState(""),[Rl,Nc]=A.useState("Info Terbaru & Penawaran Eksklusif Kosenda Hotel"),[Mi,kc]=A.useState("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80"),[Oi,wc]=A.useState(""),[On,od]=A.useState("all"),[Io,rd]=A.useState(""),[Yo,Sc]=A.useState("https://kosendahotel.com"),[Rn,Ri]=A.useState("Lihat Promo & Pesan Kamar"),[Tc,zi]=A.useState(!1),[Xo,$o]=A.useState("");Uf.useEffect(()=>{an(),Oa()},[]);const Oa=async()=>{try{const M=await(await fetch("/api/smtp-config")).json();M.success&&M.config&&(Ti(M.config.host||"smtp.gmail.com"),Ci(String(M.config.port||465)),_o(M.config.secure!==void 0?M.config.secure:!0),Mn(M.config.username||""),M.config.passwordMasked&&Os(M.config.passwordMasked),Rs(M.config.senderName||"Kosenda Hotel Admin"),Po(M.config.senderEmail||"[email protected]"),hc(M.config.isEnabled!==void 0?M.config.isEnabled:!0)),M.logs&&td(M.logs)}catch(d){console.error("Gagal mengambil data SMTP:",d)}},Qo=async()=>{try{const M=await(await fetch("/api/save-smtp-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({host:wl,port:Number(Lo),secure:Ei,username:Ct,password:Di,senderName:Sl,senderEmail:zs,isEnabled:Tl})})).json();M.success?(Ee("â Pengaturan SMTP Berhasil Disimpan!","success"),Oa()):Ee(M.error||"Gagal menyimpan SMTP","error")}catch(d){Ee(`Error: ${d.message}`,"error")}},Cc=async()=>{Fs("testing"),Cl("Menghubungkan ke server SMTP...");try{const M=await(await fetch("/api/send-test-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({targetEmail:zs||Ct})})).json();M.success?(Fs("success"),Cl(M.message),Ee("â Koneksi SMTP Berhasil!","success"),Oa()):(Fs("error"),Cl(M.error||"Koneksi SMTP Gagal."),Ee(M.error||"Koneksi SMTP Gagal","error"))}catch(d){Fs("error"),Cl(d.message||"Gagal menghubungi server SMTP"),Ee(`Error: ${d.message}`,"error")}},Ec=async()=>
397{if(!Dl.trim()){Ee("Harap masukkan email penerima OTP!","error");return}bc(!0),gc("");try{const M=await(await fetch("/api/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"otp",recipientEmail:Dl.trim(),purpose:Go,otpCode:Bs,subject:`[OTP] Kode Verifikasi Kosenda Hotel: ${Bs}`,bodyContent:`Anda meminta kode OTP verifikasi untuk keperluan ${Go}. 398 399Gunakan kode 6-digit di bawah ini untuk menyelesaikan proses verifikasi Anda.`})})).json();M.success?(gc(`â Kode OTP [${Bs}] berhasil terkirim via SMTP ke ${Dl}!`),Ee("â OTP Terkirim Berhasil!","success"),Oa()):Ee(M.error||"Gagal mengirim OTP","error")}catch(d){Ee(`Error: ${d.message}`,"error")}finally{bc(!1)}},Dc=async()=>{if(!Ml.trim()||!qo.trim()){Ee("Harap isi email penerima dan pesan balasan!","error");return}Ac(!0),Ls("");try{const M=await(await fetch("/api/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"replay",recipientEmail:Ml.trim(),subject:yc,bodyContent:qo})})).json();M.success?(Ls(`â Balasan email berhasil terkirim ke ${Ml}!`),Ee("â Balasan Terkirim!","success"),vc(""),Oa()):Ee(M.error||"Gagal mengirim pesan balasan","error")}catch(d){Ee(`Error: ${d.message}`,"error")}finally{Ac(!1)}},cd=async()=>{if(!Oi.trim()||!Rl.trim()){Ee("Harap isi judul dan konten berita/newsletter!","error");return}let d=[];if(On==="custom"){if(!Io.trim()){Ee("Masukkan email penerima khusus!","error");return}d=[Io.trim()]}else{const ae=_.map(he=>he.guestEmail).filter(Boolean),Te=y.map(he=>he.email).filter(Boolean),je=Array.from(new Set([...ae,...Te,"[email protected]"]));d=je.length>0?je:["[email protected]"]}zi(!0),$o("");let M=0,ie=0;for(const ae of d)try{(await(await fetch("/api/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"news",recipientEmail:ae,subject:Rl,bodyContent:Oi,heroImageUrl:Mi,ctaUrl:Yo,ctaText:Rn})})).json()).success?M++:ie++}catch{ie++}zi(!1),$o(`â Broadcast Selesai! Terkirim ke ${M} penerima ${ie>0?`(${ie} gagal)`:""}.`),Ee(`â Newsletter terkirim ke ${M} penerima!`,"success"),Oa()},an=async()=>{try{const d=await fetch("/api/gallery");if(!d.ok){console.warn(`[Gallery] Server responded with status: ${d.status}`);return}const M=d.headers.get("content-type");if(M&&M.includes("application/json")){const ie=await d.json();ie.success&&Ds(ie.images)}else console.warn("[Gallery] Expected JSON response but received content-type:",M)}catch(d){console.error("Failed to fetch gallery:",d)}},ud=async d=>{const M=Array.from(d.target.files||[]);if(M.length===0)return;kl(!0),Sa(0),Nn(`Mengupload 0/${M.length}...`);let ie=0;try{for(let ae=0;ae<M.length;ae++){const Te=M[ae];Nn(`Mengompres ${ae+1}/${M.length}: ${Te.name}`);const je=await ks(Te);je&&(Nn(`Mengupload ${ae+1}/${M.length}: ${Te.name}`),(await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:je})})).json()).success&&ie++),Sa(Math.round((ae+1)/M.length*100))}await an(),Ee(`${ie}/${M.length} gambar berhasil diupload ke library!`,"success")}catch(ae){console.error("Gallery upload failed:",ae),Ee("Gagal upload gambar. Coba lagi.","error")}finally{kl(!1),Sa(0),Nn("")}},dd=async d=>{if(window.confirm("Hapus gambar ini dari library?"))try{await fetch(`/api/gallery/${d}`,{method:"DELETE"}),await an()}catch(M){console.error("Failed to delete gallery image:",M)}},Mc=d=>{Ot(M=>[...M,d])},[Ft,_s]=A.useState(!1),[zl,Fl]=A.useState(""),[Zo,Ul]=A.useState(""),[Bl,Jo]=A.useState(""),[Ra,ns]=A.useState(""),[ss,Fi]=A.useState(!1),[Ll,nn]=A.useState(""),[is,Wo]=A.useState("Transit"),[er,ls]=A.useState("5-Min walk"),[tr,_l]=A.useState(""),[Vl,ar]=A.useState(!1),[Hl,nr]=A.useState(""),[sr,Oc]=A.useState("Restoran & Bar"),[Pl,xa]=A.useState("06:00 AM - 11:00 PM"),[Ui,ia]=A.useState("Suasana Nyaman & Hangat"),[os,Bi]=A.useState(""),[sn,Vs]=A.useState({}),[zn,ln]=A.useState({}),[Fn,Hs]=A.useState(((Pn=we[0])==null?void 0:Pn.id)||""),[Un,Rc]=A.useState(""),[Pt,ir]=A.useState(""),[ot,Ps]=A.useState(new Date().getMonth()),[Gt,ba]=A.useState(new Date().getFullYear()),[Gs,lr]=A.useState(()=>{const d=new Date;return`${d.getFullYear()}
399-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`}),[Bn,or]=A.useState(!1),[Zt,ga]=A.useState(null),[Kt,rs]=A.useState(!1),on=A.useRef("");A.useEffect(()=>{if(R){const d=JSON.stringify(R);if(!on.current){on.current=d;return}d!==on.current?rs(!0):rs(!1)}},[R]);const[Jt,la]=A.useState(""),[rn,za]=A.useState(""),[Fa,Ua]=A.useState("email"),[Li,Ks]=A.useState(!1),[Gl,Ba]=A.useState(null),[gt,Xe]=A.useState(null),[Ue,Ln]=A.useState(""),[oa,cs]=A.useState(!1),[cn,rr]=A.useState(null),[Kl,_n]=A.useState(""),[Vn,_i]=A.useState(""),[us,Vi]=A.useState(""),[Hn,ya]=A.useState(""),[un,va]=A.useState("member"),[ql,Hi]=A.useState(""),[qs,Pi]=A.useState("");Uf.useEffect(()=>{x&&o.role==="employee"&&(h!=="employee"&&m("employee"),(ze==="profile"||ze==="bookings")&<("dashboard"))},[x,o==null?void 0:o.role,h,ze]),Uf.useEffect(()=>{if(typeof window<"u"&&s){const d=new URL(window.location.href);ze&&ze!=="profile"?d.searchParams.set("admin",ze):d.searchParams.set("admin",""),window.history.replaceState({},"",d.toString())}},[ze,s]);const ds=async d=>{d.preventDefault(),Ba(null),Xe(null);const M=Jt.trim().toLowerCase();if(!M){Ba("Masukkan alamat email staf/admin terdaftar.");return}Ks(!0);try{const ie=await fetch("/api/auth/send-admin-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:M})});let ae={};try{ae=await ie.json()}catch{ae={error:"Respon server tidak valid. Silakan coba beberapa saat lagi."}}if(!ie.ok){Ba(ae.error||"Email ini tidak terdaftar sebagai staf admin Kosenda.");return}Ln(M),Ua("otp"),Xe(ae.message||`Kode OTP verifikasi telah dikirimkan ke email ${M}`)}catch(ie){console.error("[ADMIN OTP ERROR]",ie),Ba(ie.message||"Gagal menghubungi server. Masukkan email terdaftar dengan benar.")}finally{Ks(!1)}},Nt=async d=>{d.preventDefault(),Ba(null),Xe(null);const M=rn.trim();if(!M||M.length<4){Ba("Masukkan kode OTP 6-digit dengan benar.");return}Ks(!0);try{const ie=await fetch("/api/auth/verify-admin-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:Ue,otpCode:M})}),ae=await ie.json();if(!ie.ok){Ba(ae.error||"Kode OTP salah atau telah kadaluwarsa.");return}ae.user?f({...ae.user,role:"employee"}):f({id:"u-admin-001",name:"Administrator Kosenda",address:"Kantor Pusat Kosenda, Menteng, Jakarta Pusat",phone:"+6282244128990",email:Ue,role:"employee",bio:"Staf Administrator Terautentikasi Kosenda Hotel",avatarUrl:"/assets/profile.png"}),g(!0),m("employee"),lt("dashboard")}catch(ie){console.error("[VERIFY OTP ERROR]",ie),Ba("Gagal memverifikasi OTP. Coba lagi.")}finally{Ks(!1)}},Il=()=>{rr(null),_n(""),_i(""),Vi(""),ya(""),va("member"),Hi("Boutique design member"),Pi("/assets/profile.png"),cs(!0)},zc=d=>{rr(d.id),_n(d.name),_i(d.address||""),Vi(d.phone),ya(d.email||""),va(d.role),Hi(d.bio||""),Pi(d.avatarUrl||"/assets/profile.png"),cs(!0)},fd=async d=>{if(d.preventDefault(),!Kl.trim()||!us.trim()){alert("Nama Lengkap dan Nomor WhatsApp wajib diisi!");return}const M={id:cn||void 0,name:Kl.trim(),address:Vn.trim(),phone:us.trim(),email:Hn.trim(),role:un,bio:ql.trim(),avatarUrl:qs||"/assets/profile.png"},ie=await N(M);ie.success?cs(!1):alert(ie.message||"Gagal menyimpan data user.")},md=async d=>{if(window.confirm("Apakah Anda yakin ingin menghapus user ini dari sistem?")){const M=await w(d);M.success||alert(M.message||"Gagal menghapus user.")}};if(!s)return null;const hd=d=>{d.preventDefault(),f({name:Ya,email:es,phone:ol,bio:G}),Pe(!1)},ft=()=>{Xt(null),wo(""),$a("24 sqm"),ma(1e6),So(2),bi("1 King Bed");const d=Du("KOSENDA HOTEL","#8F9A86");gi(d),Ot([d]),dl(""),Ta("Signature Batik Kimono, Wi-Fi Cepat, Marshall Speaker, Organic Amenities"),Tt(5),Ts("Non-smoking"),Mo("Shower Only"),Qa("Toilet & Wifi"),kn("Secure Online Payment"),Za("Breakfast Included (06:00 - 10:00)"),ut("Non Refundable"),hl(2),wn("Include Tax"),pl(""),Ro(115e4),Cs(!1),Oe(!0)},cr=async d=>{Xt(d.id),wo(d.name),$a(d.size),ma(d.price),So(d.maxGuests),bi(d.bedType),gi(d.imageUrl);const M=d.imageUrls&&d.imageUrls.length>0?d.imageUrls:[d.imageUrl],ie=[];for(const ae of M)if(ae&&ae.startsWith("data:")&&!ae.includes("image/svg+xml"))try{const je=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:ae})})).json();je.success&&je.imageUrl?ie.push(je.imageUrl):ie.push(ae)}catch{ie.push(ae)}
399else ie.push(ae);Ot(ie),dl(d.description),Ta(d.features.join(", ")),Tt(d.quantity!==void 0?d.quantity:5),Ts(d.smokingPolicy||"Non-smoking"),Mo(d.bathroomType||"Shower Only"),Qa(d.toiletriesWifi||"Toilet & Wifi"),kn(d.paymentPolicy||"Secure Online Payment"),Za(d.breakfastInfo||"Breakfast Included (06:00 - 10:00)"),ut(d.refundPolicy||"Non Refundable"),hl(d.priceForPeople!==void 0?d.priceForPeople:2),wn(d.taxInfo||"Include Tax"),pl(d.bookingUrl||""),Ro(d.priceBreakfast!==void 0?d.priceBreakfast:d.price),Cs(d.allowBreakfastOption===!0),Oe(!0)},Gi=d=>{d.preventDefault();const M=Eo.split(",").map(Te=>Te.trim()).filter(Boolean),ie=$t[0]||cl||"",ae=as.trim()||(Sn?"Breakfast Included":"Room Only");st?P(st,{name:rl,size:pi,price:Number(St),maxGuests:Number(Mt),bedType:xi,imageUrl:ie,imageUrls:$t,description:ji,features:M,quantity:Number(xt),smokingPolicy:ha,bathroomType:Do,toiletriesWifi:fl,paymentPolicy:Ai,breakfastInfo:ae,refundPolicy:Ja,priceForPeople:Number(ml),taxInfo:Wa,bookingUrl:Oo,priceBreakfast:Number(xl),allowBreakfastOption:Sn}):F({name:rl,size:pi,price:Number(St),maxGuests:Number(Mt),bedType:xi,imageUrl:ie,imageUrls:$t,description:ji,features:M,quantity:Number(xt),smokingPolicy:ha,bathroomType:Do,toiletriesWifi:fl,paymentPolicy:Ai,breakfastInfo:ae,refundPolicy:Ja,priceForPeople:Number(ml),taxInfo:Wa,bookingUrl:Oo,priceBreakfast:Number(xl),allowBreakfastOption:Sn}),Oe(!1)},dn=async()=>{or(!0),ga(null);try{const M=await(await fetch("/api/save-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({websiteSettings:R})})).json(),ie=JSON.stringify(R);on.current=ie,rs(!1),M.success?ga("â Berhasil Disimpan! Seluruh konfigurasi kustomisasi website Anda (CMS) telah sukses diamankan secara permanen di database PostgreSQL dan langsung aktif di halaman depan."):ga("â Terkirim. Perubahan konfigurasi berhasil disinkronkan dan diamankan ke database.")}catch{const M=JSON.stringify(R);on.current=M,rs(!1),ga("â Berhasil Disimpan! Perubahan kustomisasi website Anda telah diamankan di penyimpanan lokal & server.")}finally{or(!1),setTimeout(()=>{ga(null)},7e3)}},ur=()=>{dc(null),gl(""),zo(15),ki("2026-06-01"),wi("2026-12-31"),vl("all"),Cn(Du("KOSENDA PROMO","#C48810")),Al(""),Rt(!0)},Is=d=>{dc(d.id),gl(d.code),zo(d.discountPercent),ki(d.validFrom),wi(d.validTo),vl(d.roomId),Cn(d.imageUrl),Al(d.description),Rt(!0)},Ys=d=>{d.preventDefault(),bl?ee(bl,{code:Ni.toUpperCase().trim(),discountPercent:Number(Es),validFrom:Ht,validTo:yl,roomId:Tn,imageUrl:jl,description:Fo}):te({code:Ni.toUpperCase().trim(),discountPercent:Number(Es),validFrom:Ht,validTo:yl,roomId:Tn,imageUrl:jl,description:Fo}),Rt(!1)},pd=d=>{if(d.preventDefault(),!Yt.trim())return;const M=Ie(o.name,o.email);qe(M,"member",Yt),Ia(""),Hs(M)},Fc=d=>{d.preventDefault(),!(!Un.trim()||!Fn)&&(qe(Fn,"employee",Un),Rc(""))},dr=_.filter(d=>d.guestEmail.toLowerCase()===o.email.toLowerCase()),fr=_.filter(d=>{if(!d.roomId.startsWith("dining_"))return!1;const M=Pt.toLowerCase();return d.guestName.toLowerCase().includes(M)||d.invoiceId.toLowerCase().includes(M)||d.roomName.toLowerCase().includes(M)});return x?a.jsxs("div",{className:"fixed inset-0 z-50 bg-[#F5F2ED] text-[#1A1A1A] flex flex-col h-screen w-screen overflow-hidden font-sans",children:[a.jsxs("div",{className:"w-full h-full flex flex-col overflow-hidden",children:[a.jsxs("div",{className:"bg-[#504C47] text-[#F5F2ED] px-6 py-4 flex flex-col sm:flex-row justify-between items-center border-b border-white/10 gap-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("img",{src:"/assets/logo.png",alt:"Kosenda Hotel",className:"w-9 h-9 object-contain border border-white/20 bg-white/10 p-1"}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-sm font-serif font-bold tracking-[0.2em]",children:"KOSENDA HOTEL"}),a.jsxs("span",{className:"text-[9px] uppercase tracking-widest text-[#F5F2ED]/60 font-mono font-bold",children:["Notable Series Hotel ⢠",o.name," (",o.role==="employee"?"Staff":"Member",")"]})]})]}),a.jsxs("button",{onClick:l,className:"p-1 px-3 bg-white/10 text-white hover:bg-white/20 transition-all text-xs font-mono font-bold uppercase tracking-widest flex items-center gap-1.5 cursor-pointer",children:[a.jsx(di,{size:14}),"Tutup"]})]}),a.jsxs("div",{className:"flex-1 grid grid-cols-1 lg:grid-cols-12 overflow-hidden",children:[a.jsxs("div",{className:"lg:col-span-3 bg-white border-r border-black/10 p-4 sm:p-6 overflow-y-auto flex flex-col justify-between",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3 border-b border-black/10 pb-4 mb-4",children:[a.jsx("img",{src:o.avatarUrl,alt:o.name,className:"w-12 h-12 object-cover border border-black/10 bg-black/10"}),a.jsxs("div",{className:"truncate flex-1",children:[a.jsx("span",{className:"text-xs font-bold block truncate",children:o.name}),a.jsx("span",{className:"text-[10px] text-[#1A1A1A]/60 block font-mono font-bold break-all",children:o.email}),a.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[a.jsx("span",{className:"inline-block font-mono uppercase bg-[#1A1A1A] text-white text-[8px] font-bold px-2 py-0.5 text-center",children:o.role.toUpperCase()}),a.jsx("button",{onClick:b,className:"text-[8px] tracking-wider up
399percase font-mono border border-red-200 bg-red-50 px-1.5 py-0.5 hover:bg-red-100 hover:border-red-400 font-bold text-red-700 transition cursor-pointer",title:"Keluar dari Akun",children:"Keluar"})]})]})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/40 font-mono uppercase tracking-[0.2em] block font-bold mb-2",children:"Navigasi Fitur"}),h==="member"?a.jsxs(a.Fragment,{children:[a.jsxs("button",{onClick:()=>lt("profile"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="profile"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(y0,{size:14}),"Profil Member"]}),a.jsxs("button",{onClick:()=>lt("bookings"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="bookings"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(nm,{size:14}),"Pemesanan Room (",dr.length,")"]}),a.jsxs("button",{onClick:()=>{lt("chat");const d=Ie(o.name,o.email);Hs(d),It(d)},className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="chat"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(lm,{size:14}),"Chatting Wanda",(Yl=we.find(d=>d.guestEmail===o.email))!=null&&Yl.unreadCount?a.jsxs("span",{className:"ml-auto bg-amber-500 font-mono text-white px-2 py-0.5 text-[8px] rounded-full",children:[(Ki=we.find(d=>d.guestEmail===o.email))==null?void 0:Ki.unreadCount," unread"]}):null]})]}):a.jsxs(a.Fragment,{children:[a.jsxs("button",{onClick:()=>
399lt("dashboard"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="dashboard"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(Wk,{size:14}),"Dashboard"]}),a.jsxs("button",{onClick:()=>lt("front_office"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="front_office"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(mh,{size:14}),"Front Office Trx"]}),a.jsxs("button",{onClick:()=>lt("schedule"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="schedule"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(nm,{size:14}),"Schedule (Calendar)"]}),a.jsxs("button",{onClick:()=>lt("chat"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="chat"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(lm,{size:14}),"Chat Inbox",we.some(d=>d.unreadCount>0)&&a.jsx("span",{className:"ml-auto w-2.5 h-2.5 bg-red-500 rounded-full animate-pulse"})]}),a.jsxs("button",{onClick:()=>lt("rooms"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="rooms"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(Um,{size:14}),"Create & Manage Room"]}),a.jsxs("button",{onClick:()=>{lt("gallery"),an()},className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="gallery"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(el,{size:14}),"Image Library"]}),a.jsxs("button",{onClick:()=>lt("vouchers"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="vouchers"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(gw,{size:14}),"E-Voucher Manage"]}),a.jsxs("button",{onClick:()=>lt("settings"),className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="settings"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,children:[a.jsx(kg,{size:14}),"Website Setup CMS"]}),a.jsxs("button",{onClick:()=>{lt("users"),j()},className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="users"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,id:"users-management-tab-button",children:[a.jsx(Sw,{size:14}),"Manajemen User & Member"]}),a.jsxs("button",{onClick:()=>{lt("smtp"),Oa()},className:`w-full py-3 px-4 text-left flex items-center gap-3 transition-colors text-xs font-bold tracking-wider font-mono uppercase ${ze==="smtp"?"bg-[#1A1A1A] text-white":"hover:bg-black/5 text-[#1A1A1A]/70"}`,id:"smtp-management-tab-button",children:[a.jsx(yo,{size:14}),"SMTP & Email Center"]})]})]})]}),a.jsxs("div",{className:"hidden lg:block bg-[#F5F2ED] border border-black/5 p-4 text-[9px] font-mono leading-relaxed mt-8",children:[a.jsx("span",{className:"font-bold uppercase tracking-wider block mb-1",children:"PANDUAN ADMIN"}),a.jsx("span",{className:"text-[#1A1A1A]/70",children:"Semua perubahan langsung disimpan ke local database simulasi di browser Anda. Modifikasi web setup langsung mengubah lobi landing page utama!"})]})]}),a.jsxs("div",{className:"lg:col-span-9 p-4 sm:p-8 overflow-y-auto max-h-[80vh] lg:max-h-none",children:[ze==="profile"&&a.jsxs("div",{className:"max-w-2xl bg-white border border-black/10 p-6 sm:p-8 shadow-sm",children:[a.jsxs("div",{className:"flex justify-between items-center border-b border-black/10 pb-4 mb-6",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Profil Member Kosenda"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Atur preferensi profil personal dan detail kontak Anda"})]}),!ke&&a.jsxs("button",{onClick:()=>{Xa(o.name),An(o.email),K(o.phone),$(o.bio),Pe(!0)},className:"px-4 py-2 border border-black/10 hover:border-black text-[10px] uppercase font-mono font-bold transition-all flex items-center gap-2 cursor-pointer",children:[a.jsx(om,{size:12}),"Edit Profil"]})]}),ke?a.jsxs("form",{onSubmit:hd,className:"space-y-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Nama Lengkap"}),a.jsx("input",{type:"text",required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:Ya,onChange:d=>Xa(d.target.value)})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Email Pemesan"}),a.jsx("input",{type:"email",required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:es,onChange:d=>An(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"HP / WhatsApp"}),a.jsx("input",{type:"text",required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:ol,onChange:d=>K(d.target.value)})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Biografi"}),a.jsx("textarea",{rows:4,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-light leading-relaxed",value:G,onChange:d=>$(d.target.value)})]}),a.jsxs("div",{className:"flex gap-3 pt-4 justify-end border-t border-black/10",children:[a.jsx("button",{type:"button",onClick:()=>Pe(!1),className:"px-4 py-2.5 border border-black/10 hover:bg-black/5 text-[10px] uppercase font-mono font-bold cursor-pointer",children:"Batal"}),a.jsx("button",{type:"submit",className:"px-6 py-2.5 bg-[#1A1A1A] hover:bg-[#333] text-white text-[10px] uppercase font-mono font-bold cursor-pointer",children:"Simpan Profil"})]})]}):a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block font-mono uppercase tracking-widest font-bold",children:"Nama Lengkap"}),a.jsx("span",{className:"font-bold text-sm block mt-1",children:o.name})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block font-mono uppercase tracking-widest font-bold",children:"Email Utama"}),a.jsx("span",{className:"text-sm block mt-1 font-mono font-semibold text-[#1A1A1A]/85",children:o.email})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block font-mono uppercase tracking-widest font-bold",children:"Nomor WhatsApp"}),a.jsx("span",{className:"text-sm block mt-1 font-mono font-semibold text-[#1A1A1A]/85",children:o.phone})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block font-mono uppercase tracking-widest font-bold",children:"Tipe Keanggotaan"}),a.jsx("span",{className:"inline-block px-2.5 py-1 bg-amber-500/20 text-amber-900 border border-amber-500/30 text-[9px] font-bold font-mono uppercase mt-1",children:"Silver Design Collector"})]})]}),a.jsxs("div",{className:"border-t border-black/10 pt-4",children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block font-mono uppercase tracking-widest font-bold mb-1",children:"Biografi & Minat Tamu"}),a.jsx("p",{className:"text-xs text-[#1A1A1A]/80 leading-relaxed font-light",children:o.bio||"Belum ada bio."})]}),a.jsxs("div",{className:"bg-[#F5F2ED] p-4 text-[11px] font-sans leading-relaxed border border-black/10 flex items-start gap-3 mt-8",children:[a.jsx(dw,{size:20,className:"flex-shrink-0 text-amber-600"}),a.jsxs("div",{children:[a.jsx("span",{className:"font-bold block mb-1",children:"Eksklusivitas Anggota Kosenda"}),a.jsx("span",{className:"text-[#1A1A1A]/75",children:"Sebagai bagian dari member butik, Anda otomatis diverifikasi untuk check-in instan tanpa berkas fisik berlebih. Dapatkan potongan harga eksklusif di Waha Kitchen & rooftop sunset di Awan Lounge."})]})]})]})]}),ze==="bookings"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic mb-1",children:"Riwayat Reservasi Room"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs font-medium",children:"Reservasi simulasi terdaftar atas email yang aktif"})]}),dr.length===0?a.jsxs("div",{className:"p-12 text-center bg-white border border-black/10 font-light text-xs text-[#1A1A1A]/70",children:["Tidak ada reservasi kamar yang terdaftar di email Anda (",o.email,"). Silakan buat booking pertama Anda di halaman lobi utama!"]}):a.jsx("div",{className:"space-y-4",children:dr.map(d=>a.jsxs("div",{className:"bg-white border border-black/10 p-5 font-mono text-xs text-[#1A1A1A] relative shadow-sm hover:border-black/30 transition-all flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"font-extrabold text-sm text-[#1A1A1A] select-all",children:d.invoiceId}),a.jsx("span",{className:`px-2.5 py-0.5 text-[8px] font-bold uppercase tracking-wider ${d.status==="Confirmed"?"bg-green-100 text-green-800 border border-green-300/30":d.status==="Check-In"?"bg-amber-100 text-amber-800 border border-amber-300/30":d.status==="Check-Out"?"bg-blue-100 text-blue-800 border border-blue-300/30":d.status==="Cancelled"?"bg-red-100 text-red-800 border border-red-300/30":"bg-stone-100 text-stone-800 border border-stone-300/30"}`,children:d.status})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-y-1 gap-x-4",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block uppercase font-bold",children:"Kamar"}),a.jsx("span",{className:"font-bold underline text-[#1A1A1A]",children:d.roomName})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block uppercase font-bold",children:"Durasi Stay"}),a.jsxs("span",{className:"font-bold",children:[d.checkIn," s/d ",d.checkOut," (",d.nights," Malam)"]})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block uppercase font-bold",children:"Jumlah Tamu"}),a.jsxs("span",{className:"font-bold",children:[d.guestsCount," Tamu"]})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 block uppercase font-bold",children:"Total Pembayaran"}),a.jsxs("span",{className:"font-bold text-[#1A1A1A]",children:["IDR ",d.totalCost.toLocaleStr
399ing()]})]})]})]}),d.status!=="Cancelled"&&d.status!=="Check-Out"&&a.jsxs("button",{onClick:()=>{confirm("Apakah Anda yakin ingin membatalkan simulasi reservasi kamar ini?")&&C(d.id,"Cancelled")},className:"px-4 py-2 hover:bg-red-50 hover:text-red-600 border border-black/10 hover:border-red-300 transition-colors text-[9px] uppercase font-bold font-mono self-stretch sm:self-center flex items-center justify-center gap-1.5 cursor-pointer text-red-700/80",children:[a.jsx(Eu,{size:12}),"Batalkan Reservasi"]})]},d.id))})]}),ze==="chat"&&a.jsx("div",{className:"h-[65vh] bg-white border border-black/10 flex flex-col overflow-hidden shadow-sm",children:h==="member"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"bg-[#1A1A1A] text-white p-4 border-b border-black/10 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(lm,{className:"text-[#F5F2ED]/80",size:16}),a.jsx("span",{className:"text-xs font-serif font-bold uppercase tracking-wider",children:"Chat Virtual Butler (Wanda)"})]}),a.jsx("span",{className:"text-[9px] font-mono uppercase bg-white/10 text-[#F5F2ED]/70 px-2.5 py-1",children:"Online Instan"})]}),a.jsx("div",{className:"flex-1 p-4 overflow-y-auto space-y-4 bg-stone-50",children:((mr=we.find(d=>d.guestEmail===o.email))==null?void 0:mr.messages.map(d=>a.jsxs("div",{className:`flex flex-col max-w-[85%] ${d.sender==="member"?"ml-auto items-end":"mr-auto items-start"}`,children:[a.jsxs("div",{className:"flex items-center gap-1 mb-1",children:[a.jsx("span",{className:"text-[9px] font-bold font-mono text-[#1A1A1A]/50",children:d.senderName}),a.jsx("span",{className:"text-[8px] font-mono text-[#1A1A1A]/35",children:new Date(d.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),a.jsx("div",{className:`p-3 text-xs leading-relaxed border ${d.sender==="member"?"bg-[#1A1A1A] text-white border-black":"bg-white text-[#1A1A1A] border-black/10"}`,children:d.content})]},d.id)))||a.jsx("div",{className:"h-full flex items-center justify-center text-center p-8 font-light text-xs text-[#1A1A1A]/60",children:"Tulis pesan pertama Anda untuk memulai chat konsultasi instan bersama Wanda Virtual Hotel Concierge."})}),a.jsxs("form",{onSubmit:pd,className:"border-t border-black/10 p-3 bg-white flex gap-2",children:[a.jsx("input",{type:"text",required:!0,placeholder:"Contoh: Apakah bisa request kamar menghadap jalan utama?",className:"flex-grow bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:Yt,onChange:d=>Ia(d.target.value)}),a.jsx("button",{type:"submit",className:"px-6 bg-[#1A1A1A] hover:bg-[#333] text-[#F5F2ED] text-xs font-mono font-bold uppercase tracking-wider cursor-pointer",children:"Kirim"})]})]}):a.jsxs("div",{className:"flex-1 grid grid-cols-1 md:grid-cols-12 overflow-hidden h-full",children:[a.jsxs("div",{className:"md:col-span-4 border-r border-black/10 overflow-y-auto bg-stone-50/50 flex flex-col",children:[a.jsx("span",{className:"text-[9px] px-4 py-3 bg-[#1A1A1A] text-white font-mono uppercase tracking-wider font-bold block",children:"Daftar Percakapan"}),we.map(d=>a.jsxs("div",{onClick:()=>{Hs(d.id),It(d.id)},className:`p-4 border-b border-black/5 cursor-pointer transition-colors block text-left ${Fn===d.id?"bg-white border-l-4 border-black font-bold":"hover:bg-black/5"}`,children:[a.jsxs("div",{className:"flex justify-between items-center mb-1",children:[a.jsx("span",{className:"text-xs font-bold text-[#1A1A1A]",children:d.guestName}),d.unreadCount>0&&a.jsxs("span",{className:"bg-red-500 text-white text-[8px] font-mono px-2 py-0.5 rounded-full font-bold",children:[d.unreadCount," BARU"]})]}),a.jsx("p",{className:"text-[10px] text-[#1A1A1A]/70 truncate font-mono",children:d.lastMessageText}),a.jsx("span",{className:"text-[8px] text-[#1A1A1A]/40 block font-mono mt-1",children:new Date(d.lastMessageTime).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]},d.id))]}),a.jsx("div",{className:"md:col-span-8 flex flex-col justify-between overflow-hidden h-full",children:Fn?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"p-3 bg-stone-50 border-b border-black/10 flex justify-between items-center flex-shrink-0",children:a.jsxs("div",{children:[a.jsx("span",{className:"text-xs font-bold font-sans block",children:(fs=we.find(d=>d.id===Fn))==null?void 0:fs.guestName}),a.jsxs("span",{className:"text-[9px] text-[#1A1A1A]/60 font-mono font-bold block",children:["Member: ",(Xl=we.f
399ind(d=>d.id===Fn))==null?void 0:Xl.guestEmail]})]})}),a.jsx("div",{className:"flex-grow p-4 overflow-y-auto space-y-4 bg-stone-50/20",children:(qi=we.find(d=>d.id===Fn))==null?void 0:qi.messages.map(d=>a.jsxs("div",{className:`flex flex-col max-w-[85%] ${d.sender==="employee"?"ml-auto items-end":"mr-auto items-start"}`,children:[a.jsxs("div",{className:"flex items-center gap-1 mb-1",children:[a.jsx("span",{className:"text-[9px] font-semibold font-mono text-[#1A1A1A]/60",children:d.senderName}),a.jsx("span",{className:"text-[8px] font-mono text-[#1A1A1A]/35",children:new Date(d.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),a.jsx("div",{className:`p-3 text-xs leading-relaxed border ${d.sender==="employee"?"bg-[#1A1A1A] text-white border-black":"bg-white text-[#1A1A1A] border-black/10"}`,children:d.content})]},d.id))}),a.jsxs("form",{onSubmit:Fc,className:"border-t border-black/10 p-3 bg-white flex gap-2 flex-shrink-0",children:[a.jsx("input",{type:"text",required:!0,placeholder:"Tulis balasan staff front office...",className:"flex-grow bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:Un,onChange:d=>Rc(d.target.value)}),a.jsx("button",{type:"submit",className:"px-6 bg-[#1A1A1A] hover:bg-[#333] text-[#F5F2ED] text-xs font-mono font-bold uppercase tracking-wider cursor-pointer",children:"Balas"})]})]}):a.jsx("div",{className:"h-full flex items-center justify-center p-8 text-xs text-[#1A1A1A]/50",children:"Silakan pilih percakapan member di daftar kiri untuk membalas chat secara langsung."})})]})}),ze==="dashboard"&&a.jsx(qw,{}),ze==="front_office"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Front Office Check Transaksi"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Pantau seluruh catatan reservasi kuliner â DINING DESTINATIONS"})]}),a.jsx("input",{type:"text",placeholder:"Cari nama tamu atau ID invoice...",className:"bg-white border border-black/15 text-xs px-3 py-2.5 outline-none focus:border-black font-semibold w-full sm:w-64",value:Pt,onCh
399ange:d=>ir(d.target.value)})]}),a.jsx("div",{className:"bg-white border border-black/10 overflow-x-auto shadow-sm",children:a.jsxs("table",{className:"w-full text-left font-mono text-[11px] border-collapse min-w-[700px]",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-[#1A1A1A] text-[#F5F2ED] border-b border-black",children:[a.jsx("th",{className:"p-4 uppercase tracking-widest font-bold text-[9px]",children:"Invoice & Tamu"}),a.jsx("th",{className:"p-4 uppercase tracking-widest font-bold text-[9px]",children:"Reservasi Outlet"}),a.jsx("th",{className:"p-4 uppercase tracking-widest font-bold text-[9px]",children:"Waktu & Jam Acara"}),a.jsx("th",{className:"p-4 uppercase tracking-widest font-bold text-[9px]",children:"Total Tagihan"}),a.jsx("th",{className:"p-4 uppercase tracking-widest font-bold text-[9px]",children:"Status"}),a.jsx("th",{className:"p-4 uppercase tracking-widest font-bold text-[9px] text-right",children:"Tindakan FO"})]})}),a.jsxs("tbody",{className:"divide-y divide-black/5 text-[#1A1A1A]",children:[fr.map(d=>a.jsxs("tr",{className:"hover:bg-stone-50/50",children:[a.jsxs("td",{className:"p-4",children:[a.jsx("span",{className:"font-extrabold text-[#1A1A1A] block select-all",children:d.invoiceId}),a.jsx("span",{className:"text-[10px] text-[#1A1A1A]/70 font-sans font-bold block",children:d.guestName}),a.jsx("span",{className:"text-[8px] text-[#1A1A1A]/50 block break-all leading-none",children:d.guestEmail})]}),a.jsx("td",{className:"p-4 font-bold max-w-[120px] truncate",children:d.roomName}),a.jsxs("td",{className:"p-4",children:[a.jsxs("span",{className:"block font-bold",children:[d.checkIn," s/d ",d.checkOut]}),a.jsxs("span",{className:"text-[9px] text-[#1A1A1A]/60 block",children:[d.nights," Malam ⢠",d.guestsCount," Tamu"]})]}),a.jsxs("td",{className:"p-4 font-bold",children:["IDR ",d.totalCost.toLocaleString()]}),a.jsx("td",{className:"p-4",children:a.jsx("span",{className:`px-2 py-0.5 text-[8px] font-extrabold uppercase inline-block border ${d.status==="Confirmed"?"bg-green-50 text-green-700 border-green-200":d.status==="Check-In"?"bg-amber-50 text-amber-700 border-amber-200":d.status==="Check-Out"?"bg-blue-50 text-blue-700 border-blue-200":d.status==="Cancelled"?"bg-red-50 text-red-700 border-red-200":"bg-gray-50 text-gray-700 border-gray-200"}`,children:d.status})}),a.jsxs("td",{className:"p-4 text-right space-y-1",children:[d.status==="Confirmed"&&a.jsx("button",{onClick:()=>C(d.id,"Check-In"),className:"px-2 py-1 bg-green-700 text-white hover:bg-green-600 block w-full text-center text-[8px] font-bold uppercase transition bg-gradient shadow-sm cursor-pointer",children:"Check-In Guest"}),d.status==="Check-In"&&a.jsx("button",{onClick:()=>C(d.id,"Check-Out"),className:"px-2 py-1 bg-blue-700 text-white hover:bg-blue-600 block w-full text-center text-[8px] font-bold uppercase transition bg-gradient shadow-sm cursor-pointer",children:"Check-Out Guest"}),d.status!=="Cancelled"&&d.status!=="Check-Out"?a.jsx("button",{onClick:()=>{confirm("Batalkan reservasi ini?")&&C(d.id,"Cancelled")},className:"px-2 py-1 border border-red-200 text-red-700 hover:bg-red-50 block w-full text-center text-[8px] font-bold uppercase transition cursor-pointer",children:"Cancel Trx"}):a.jsx("span",{className:"text-[8px] text-[#1A1A1A]/40",children:"-"})]})]},d.id)),fr.length===0&&a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"text-center p-8 text-[#1A1A1A]/55 font-light",children:"Tidak ada transaksi pemesanan yang cocok dengan kueri pencarian Anda."})})]})]})})]}),ze==="schedule"&&(()=>{const d=["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],M=["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],ie=new Date(Gt,ot,1).getDay(),ae=new Date(Gt,ot+1,0).getDate(),Te=new Date(Gt,ot,0).getDate(),je=[];for(let re=ie-1;re>=0;re--){const Qe=Te-re,Wt=ot===0?11:ot-1,ja=`${ot===0?Gt-1:Gt}-${String(Wt+1).padStart(2,"0")}-${String(Qe).padStart(2,"0")}`;je.push({dayNum:Qe,dateStr:ja,isCurrentMonth:!1})}for(let re=1;re<=ae;re++){const Qe=`${Gt}-${String(ot+1).padStart(2,"0")}-${String(re).padStart(2,"0")}`;je.push({dayNum:re,dateStr:Qe,isCurrentMonth:!0})}const he=42-je.length;for(let re=1;re<=he;re++){const Qe=ot===11?0:ot+1,In=`${ot===11?Gt+1:Gt}-${String(Qe+1).padStart(2,"0")}-${String(re).padStart(2,"0")}`;je.push({dayNum:re,dateStr:In,isCurrentMonth:!1})}const De=_.filter(re=>re.status==="Cancelled"?!1:Gs>=re.checkIn&&Gs<=re.checkOut),Be=()=>{ot===0?(Ps(11),ba(re=>re-1)):Ps(re=>re-1)},it=()=>{ot===11?(Ps(0),ba(re=>
399re+1)):Ps(re=>re+1)},La=()=>{ba(re=>re-1)},hn=()=>{ba(re=>re+1)},Zl=()=>{const re=new Date;Ps(re.getMonth()),ba(re.getFullYear()),lr(`${re.getFullYear()}-${String(re.getMonth()+1).padStart(2,"0")}-${String(re.getDate()).padStart(2,"0")}`)},Et=re=>{try{const Qe=re.split("-");if(Qe.length!==3)return re;const Wt=parseInt(Qe[0]),In=parseInt(Qe[1])-1;return`${parseInt(Qe[2])} ${d[In]} ${Wt}`}catch{return re}};return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 border-b border-black/10 pb-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic text-stone-800",children:"Schedule Reservasi Kamar"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Kalender visual pemetaan reservasi kamar Kosenda (Indonesian Version)"})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a.jsxs("button",{type:"button",onClick:Zl,className:"px-3 py-1.5 border border-black/15 bg-white hover:bg-stone-50 text-[10px] font-mono font-bold uppercase transition-all tracking-wider flex items-center gap-1 cursor-pointer",children:[a.jsx(m0,{size:12}),"Bulan Ini"]}),a.jsxs("div",{className:"flex items-center border border-black/15 bg-white",children:[a.jsx("button",{type:"button",onClick:La,title:"Tahun Sebelumnya",className:"p-1.5 hover:bg-stone-100 border-r border-black/10 transition-all cursor-pointer text-stone-600",children:a.jsx(lk,{size:14})}),a.jsx("span",{className:"px-3 text-xs font-mono font-bold text-stone-700 min-w-[55px] text-center",children:Gt}),a.jsx("button",{type:"button",onClick:hn,title:"Tahun Selanjutnya",className:"p-1.5 hover:bg-stone-100 border-l border-black/10 transition-all cursor-pointer text-stone-600",children:a.jsx(rk,{size:14})})]}),a.jsxs("div",{className:"flex items-center border border-black/15 bg-white",children:[a.jsx("button",{type:"button",onClick:Be,title:"Bulan Sebelumnya",className:"p-1.5 hover:bg-stone-100 border-r border-black/10 transition-all cursor-pointer text-stone-600",children:a.jsx(rc,{size:14})}),a.jsx("span",{className:"px-4 py-1.5 text-xs font-serif font-bold italic text-stone-800 min-w-[100px] text-center whitespace-nowrap",children:d[ot]}),a.jsx("button",{type:"button",onClick:it,title:"Bulan Selanjutnya",className:"p-1.5 hover:bg-stone-100 border-l border-black/10 transition-all cursor-pointer text-stone-600",children:a.jsx(cc,{size:14})})]})]})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[a.jsxs("div",{className:"lg:col-span-8 bg-white border border-black/10 p-5 shadow-sm space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center border-b border-black/5 pb-2",children:[a.jsxs("h4",{className:"text-sm font-serif font-bold italic text-stone-800",children:[d[ot]," ",Gt]}),a.jsx("span",{className:"text-[9px] font-mono tracking-widest text-[#1A1A1A]/40 uppercase font-bold",children:"KLIK TANGGAL UNTUK MEMBACA DETAIL"})]}),a.jsx("div",{className:"grid grid-cols-7 gap-1 text-center border-b border-black/5 pb-1 font-mono",children:M.map((re,Qe)=>a.jsx("div",{className:`text-[9px] font-bold uppercase tracking-wider py-1 ${Qe===0?"text-red-600":Qe===6?"text-stone-500":"text-[#1A1A1A]/70"}`,children:re.substring(0,3)},re))}),a.jsx("div",{className:"grid grid-cols-7 gap-1",children:je.map((re,Qe)=>{const Wt=_.filter(Se=>Se.status==="Cancelled"?!1:re.dateStr>=Se.checkIn&&re.dateStr<=Se.checkOut),In=Wt.length>0,ja=Gs===re.dateStr,Ut=new Date,dt=`${Ut.getFullYear()}-${String(Ut.getMonth()+1).padStart(2,"0")}-${String(Ut.getDate()).padStart(2,"0")}`,Jl=re.dateStr===dt;let ea="bg-stone-50 hover:bg-stone-100 text-[#1A1A1A] border-black/5";return re.isCurrentMonth||(ea="bg-[#F5F2ED]/25 text-stone-300 border-black/5 opacity-45 hover:bg-[#F5F2ED]/40"),In&&(Wt.some($e=>$e.status==="Check-In")?ea="bg-amber-50 hover:bg-amber-100/90 border-amber-300 text-amber-900":ea="bg-[#8F9A86]/12 hover:bg-[#8F9A86]/20 border-[#8F9A86]/35 text-[#5F6A56]"),ja&&(ea="border-2 border-stone-800 bg-stone-100/95 shadow-sm z-10 scale-[0.98]"),a.jsxs("div",{onClick:()=>lr(re.dateStr),className:`min-h-[75px] sm:min-h-[85px] border p-1 rounded-none flex flex-col justify-between transition-all duration-150 cursor-pointer ${ea}`,children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("span",{className:`text-[10px] font-bold font-mono px-1 py-0.5 inline-block text-center rounded-none select-none ${Jl?"bg-red-700 text-white font-black":re.isCurrentMonth?"text-[#1A1A1A]":"text-stone-300"}`,children:re.dayNum}),In&&a.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Wt.some(Se=>Se.status==="Check-In")?"bg-amber-500":"bg-[#8F9A86]"}`})]}),a.jsxs("div",{className:"space-y-1 mt-1 overflow-hidden",children:[Wt.slice(0,2).map(Se=>a.jsx("div",{className:`text-[8.5px] px-1 py-[1.5px] font-bold font-mono truncate leading-none border-l-2 flex flex-col pointer-events-none rounded-none shadow-[1px_1px_1px_rgba(0,0,0,0.05)] ${Se.status==="Check-In"?"bg-amber-100 text-amber-900 border-amber-600":"bg-white text-stone-700 border-[#8F9A86]"}`,children:a.jsx("span",{className:"truncate bg-transparent",children:Se.guestName.split(" ")[0]})},Se.invoiceId)),Wt.length>2&&a.jsxs("div",{className:"text-[7px] text-[#1A1A1A]/40 font-bold font-mono pl-0.5",children:["+ ",Wt.length-2," Kamar"]})]})]},`${re.dateStr}-${Qe}`)})}),a.jsxs("div",{className:"flex flex-wrap gap-4 items-center text-[9px] pt-3 border-t border-black/5 font-mono font-bold uppercase tracking-wider text-[#1A1A1A]/60",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"w-3 h-3 bg-stone-50 border border-black/5 inline-block"}),a.jsx("span",{children:"Kamar Kosong"})]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"w-3 h-3 bg-[#8F9A86]/20 border border-[#8F9A86]/40 inline-block"}),a.jsx("span",{children:"Pemesanan Confirmed (Terjadwal)"})]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"w-3 h-3 bg-amber-50 border border-amber-300 inline-block"}),a.jsx("span",{children:"Tamu Aktif Menginap (Check-In)"})]}),(()=>{const re=new Date;return re.getFullYear()===Gt&&re.getMonth()===ot})()&&a.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-6
39950 inline-block animate-pulse"}),a.jsx("span",{className:"text-[8px] text-stone-500 font-mono tracking-wider font-bold",children:"Bulan Ini"})]})]})]}),a.jsxs("div",{className:"lg:col-span-4 space-y-4",children:[a.jsxs("div",{className:"bg-[#504C47] text-[#F5F2ED] p-4 shadow-sm border border-black/10 font-sans",children:[a.jsx("span",{className:"text-[9px] font-mono tracking-widest text-[#F5F2ED]/50 uppercase font-bold block mb-1",children:"DETIL RESERVASI AKTIF"}),a.jsxs("h4",{className:"text-sm font-serif font-bold italic border-b border-white/10 pb-2 flex items-center gap-2",children:[a.jsx(nm,{size:15}),Et(Gs)]}),a.jsx("div",{className:"mt-4 space-y-4 max-h-[460px] overflow-y-auto pr-1",children:De.length===0?a.jsxs("div",{className:"py-8 text-center text-[#F5F2ED]/60 font-light text-xs space-y-2",children:[a.jsx("span",{className:"block text-xl opacity-40",children:"ðï¸"}),a.jsx("p",{children:"Tidak ada reservasi kamar terjadwal ataupun check-in untuk tanggal terpilih."})]}):De.map(re=>{var Qe;return a.jsxs("div",{className:"bg-white/10 p-3.5 border border-white/5 space-y-3 font-mono text-left",children:[a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[10px] font-bold block text-[#8F9A86]",children:re.invoiceId}),a.jsx("h5",{className:"text-xs font-bold text-[#F5F2ED] font-sans",children:re.guestName})]}),a.jsx("span",{className:`text-[8px] font-bold px-1.5 py-0.5 uppercase ${re.status==="Check-In"?"bg-amber-400 text-black":"bg-[#8F9A86] text-white"}`,children:re.status})]}),a.jsxs("div",{className:"text-[10px] space-y-1 border-t border-white/5 pt-2 text-[#F5F2ED]/80",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"opacity-60 text-[9px]",children:"KAMAR:"}),a.jsx("span",{className:"font-bold text-white uppercase",children:re.roomName})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"opacity-60 text-[9px]",children:"SURAT ELEKTRONIK:"}),a.jsx("span",{className:"font-bold text-white truncate max-w-[140px]",children:re.guestEmail})]}),re.whatsapp&&a.jsxs("div",{className:"flex justify-between text-[#8F9A86]",children:[a.jsx("span",{className:"opacity-75 text-[9px]",children:"WHATSAPP:"}),a.jsx("span",{className:"font-bold",children:re.whatsapp})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"opacity-60 text-[9px]",children:"RENTANG TANGGAL:"}),a.jsxs("span",{className:"font-bold text-white",children:[re.checkIn," s/d ",re.checkOut]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"opacity-60 text-[9px]",children:"BIAYA TOTAL:"}),a.jsxs("span",{className:"font-bold text-white",children:["IDR ",(Qe=re.totalCost)==null?void 0:Qe.toLocaleString("id-ID")]})]})]})]},re.invoiceId)})})]}),a.jsxs("div",{className:"bg-stone-50 border border-black/10 p-4 font-sans space-y-2 text-left",children:[a.jsx("span",{className:"text-[9px] font-mono tracking-widest text-stone-500 uppercase font-bold block",children:"INFORMASI TAMBAHAN"}),a.jsxs("p",{className:"text-[#1A1A1A]/80 text-[11px] leading-relaxed font-light",children:["Sistem kalender ini mengambil data transaksi pemesanan tamu secara langsung dari database PostgreSQL secara dinamis. Status pemesanan dapat dimodifikasi di tab ",a.jsx("strong",{children:"Booking Roster (Front Office)"})," untuk memperbarui schedule ini secara real-time."]})]})]})]})]})})(),ze==="rooms"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Manajemen Kamar"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs text-left",children:"Tambah, edit, atau hapus inventori room butik"})]}),!le&&a.jsxs("button",{onClick:ft,className:"px-4 py-2.5 bg-[#1A1A1A] hover:bg-[#333] text-white text-[10px] uppercase font-mono font-bold transition-all flex items-center gap-2 cursor-pointer",children:[a.jsx($r,{size:14}),"Tambah Kamar Baru"]})]}),le?a.jsxs("form",{onSubmit:Gi,className:"bg-white border border-black/10 p-6 sm:p-8 space-y-4 max-w-2xl",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center border-b border-black/10 pb-2 mb-4 gap-2",children:[a.jsx("h4",{className:"text-xs font-serif font-bold uppercase tracking-widest text-[#1A1A1A]",children:st?"Ubah Detail Kamar":"Tambah Kamar Baru"}),a.jsxs("div",{className:"flex gap-2 items-center",children:[a.jsx("button",{type:"button",onClick:()=>Oe(!1),className:"px-3 py-1.5 border border-black/15 hover:bg-black/5 text-[9px] uppercase font-mono font-bold cursor-pointer",children:"Batal"}),a.jsx("button",{type:"submit",disabled:ul,className:`px-4 py-1.5 text-white text-[9px] uppercase font-mono font-bold cursor-pointer transition-all ${ul?"bg-stone-400 cursor-not-allowed opacity-75":"bg-[#1A1A1A] hover:bg-[#333]"}`,children:ul?"Mengompres...":"Simpan Kamar"})]})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Nama Kamar"}),a.jsx("input",{type:"text",required:!0,placeholder:"Contoh: Premium Deluxe Suite",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:rl,onChange:d=>wo(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Ukuran Kamar (sqm)"}),a.jsx("input",{type:"text",required:!0,placeholder:"Contoh: 35 sqm",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:pi,onChange:d=>$a(d.target.value)})]})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5 col-span-1",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Tarif per Malam (IDR)"}),a.jsx("input",{type:"number",required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:St,onChange:d=>ma(Number(d.target.value))})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 col-span-1",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Max Tamu"}),a.jsxs("select",{className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:Mt,onChange:d=>So(Number(d.target.value)),children:[a.jsx("option",{value:1,children:"1 Tamu"}),a.jsx("option",{value:2,children:"2 Tamu"}),a.jsx("option",{value:3,children:"3 Tamu"}),a.jsx("option",{value:4,children:"4 Tamu"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 col-span-1",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Konfigurasi Kasur"}),a.jsx("input",{type:"text",required:!0,placeholder:"Contoh: 1 Super King Bed",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:xi,onChange:d=>bi(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 col-span-1",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Kuantitas Kamar (Qty)"}),a.jsx("input",{type:"number",required:!0,min:1,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:xt,onChange:d=>Tt(Number(d.target.value))})]})]}),a.jsxs("div",{className:"bg-[#8F9A86]/10 border border-[#8F9A86]/30 p-4 space-y-3 text-left",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-2",children:[a.jsx("span",{className:"text-[10px] font-mono uppercase tracking-[0.15em] font-black text-[#8F9A86] block",children:"ð³ OPSI HARGA SARAPAN (B
399REAKFAST PRICING CONFIGURATION)"}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",className:"sr-only peer",checked:Sn,onChange:d=>Cs(d.target.checked)}),a.jsx("div",{className:"w-9 h-5 bg-stone-300 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-[#8F9A86]"}),a.jsx("span",{className:"ml-2 text-[10px] font-mono font-bold text-stone-700",children:"AKTIFKAN PILIHAN"})]})})]}),a.jsxs("p",{className:"text-[9px] text-stone-500 font-sans leading-normal",children:["Jika diaktifkan, tamu dapat memilih antara tipe harga ",a.jsx("strong",{children:'"Tanpa Sarapan"'})," dan ",a.jsx("strong",{children:'"Termasuk Sarapan"'})," saat melakukan rilis booking di website."]}),Sn&&a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-2 border-t border-[#8F9A86]/20",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"Harga Standar / Tanpa Sarapan (IDR)"}),a.jsx("input",{type:"number",className:"w-full bg-white text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:St,onChange:d=>ma(Number(d.target.value))}),a.jsx("span",{className:"text-[8px] text-stone-400 font-mono",children:"Diyakini sama dengan Tarif per Malam di atas."})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold text-[#8F9A86]",children:"Harga Termasuk Sarapan (IDR)"}),a.jsx("input",{type:"number",className:"w-full bg-white text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:xl,onChange:d=>Ro(Number(d.target.value))}),a.jsx("span",{className:"text-[8px] text-stone-400 font-mono",children:"Harga paket bundling dengan sarapan premium lengkap."})]})]})]}),a.jsxs("div",{className:"bg-[#FAF9F6] border border-black/10 p-5 space-y-4 text-left",children:[a.jsxs("div",{className:"border-b border-black/10 pb-2 flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[10px] font-mono uppercase tracking-[0.16em] font-black text-[#8F9A86] block",children:"Spesifikasi Detail Kamar & Kebijakan (CMS)"}),a.jsx("span",{className:"text-[9px] font-sans text-stone-500 block leading-normal mt-0.5",children:"Kustomisasi detail ukuran, tipe ranjang, kebijakan merokok, fasilitas sarapan, pembatalan, jumlah tamu, dan pajak secara dinamis."})]}),a.jsx("span",{className:"bg-[#8F9A86]/10 text-[#8F9A86] text-[8px] font-mono uppercase font-black px-2 py-0.5 border border-[#8F9A86]/20",children:"10 Fitur Aktif"})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"1. Ukuran Room (Dropdown / Custom Input)"}),a.jsxs("select",{className:"bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:pi,onChange:d=>$a(d.target.value),children:[a.jsx("option",{value:"24 sqm",children:"16 sqm (Tipe Petita)"}),a.jsx("option",{value:"28 sqm",children:"24 sqm (Tipe Medium)"}),a.jsx("option",{value:"36 sqm",children:"28 sqm (Tipe Patria)"}),a.jsx("option",{value:"42 sqm",children:"33 sqm (Tipe Spatita Suite)"}),a.jsx("option",{value:"50 sqm",children:"42 sqm (Tipe Penthouse)"}),a.jsx("option",{value:"Custom",children:"Kustom (Tulis di bawah)"})]}),a.jsx("input",{type:"text",placeholder:"Ketik ukuran manual/kustom (misal: 35 sqm)",className:"bg-white text-xs border border-black/15 px-3 py-1.5 outline-none focus:border-black font-mono",value:pi,onChange:d=>$a(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"2. Bed Size (Opsi Ranjang Utama)"}),a.jsxs("select",{className:"bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:xi,onChange:d=>bi(d.target.value),children:[a.jsx("option",{value:"1 Queen Bed",children:"1 Queen Bed"}),a.jsx("option",{value:"1 King Bed",children:"1 King Bed"}),a.jsx("option",{value:"1 Extra Large King Bed",children:"1 Extra Large King Bed"}),a.jsx("option",{value:"2 Twin Beds",children:"2 Twin Beds"}),a.jsx("option",{value:"1 Super King Bed + 1 Daybed",children:"1 Super King Bed + 1 Daybed"}),a.jsx("option",{value:"Custom",children:"Kustom (Tulis di bawah)"})]}),a.jsx("input",{type:"text",placeholder:"Ketik bed size manual/kustom (misal: 2 Queen Bed)",className:"bg-white text-xs border border-black/15 px-3 py-1.5 outline-none focus:border-black font-sans",value:xi,onChange:d=>bi(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"3. Smoking Room Info (Status Merokok)"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("select",{className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:ha,onChange:d=>Ts(d.target.value),children:[a.jsx("option",{value:"Non-smoking",children:"Kamardan area dilarang merokok (Non-smoking)"}),a.jsx("option",{value:"Smoking Allowed",children:"Diperbolehkan merokok (Smoking Room)"}),a.jsx("option",{value:"Smoking on Balcony Only",children:"Hanya boleh merokok di Balkon luar"})]}),a.jsx("button",{type:"button",onClick:()=>Ts(ha==="Non-smoking"?"Smoking Allowed":"Non-smoking"),className:`px-2 py-1 text-[8px] font-mono uppercase font-bold shrink-0 border border-black/10 transition-colors cursor-pointer ${ha==="Non-smoking"?"bg-emerald-100/80 text-emerald-800":"bg-amber-100/90 text-amber-800"}`,children:ha==="Non-smoking"?"ð NON":"ð¬ SMOKING"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"4. Shower or Bathtub (Kamar Mandi)"}),a.jsxs("select",{className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:Do,onChange:d=>Mo(d.target.value),children:[a.jsx("option",{value:"Shower Only",children:"Shower Only"}),a.jsx("option",{value:"Bathtub Included",children:"Bathtub Included"}),a.jsx("option",{value:"Shower & Bathtub",children:"Shower & Bathtub"}),a.jsx("option",{value:"Combo (Rain Shower + Bathtub)",children:"Combo (Rain Shower + Bathtub)"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"5. Toilet & Wifi Info"}),a.jsx("input",{type:"text",required:!0,placeholder:"Contoh: Toiletries Organik & Wifi Gratis",className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:fl,onChange:d=>Qa(d.target.value)}),a.jsxs("div",{className:"flex gap-2 text-[8px] font-mono text-stone-500",children:[a.jsx("span",{className:"cursor-pointer underline hover:text-black",onClick:()=>Qa("Toilet & Wifi"),children:"Preset 1"}),a.jsx("span",{children:"|"}),a.jsx("span",{className:"cursor-pointer underline hover:text-black",onClick:()=>Qa("Toilet & Wi-Fi Not Available"),children:"Preset 2"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"6. Metode Pembayaran (Payment)"}),a.jsxs("select",{className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:Ai,onChange:d=>kn(d.target.value),children:[a.jsx("option",{value:"Secure Online Payment",children:"Secure Online Payment"}),a.jsx("option",{value:"Online Payment Available (Instant Confirmation)",children:"Online Payment"}),a.jsx("option",{value:"Payment Processed Through Third-Party Provider",children:"Payment Processed Through Third-Party Provider"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"7. Tarif Harga Kamar Berlaku Untuk (Kapasitas)"}),a.jsxs("select",{className:"bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:ml,onChange:d=>hl(Number(d.target.value)),children:[a.jsx("option",{value:1,children:"Untuk 1 Orang Dewasa (Single Guest)"}),a.jsx("option",{value:2,children:"Untuk 2 Orang Dewasa (Standard Double)"}),a.jsx("option",{value:3,children:"Untuk 3 Orang Dewasa (Triple Guest)"}),a.jsx("option",{value:4,children:"Untuk 4 Orang Dewasa (Quad Guest)"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"8. Pajak & Pelayanan (Tax Include Status)"}),a.jsxs("select",{className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:Wa,onChange:d=>wn(d.target.value),children:[a.jsx("option",{value:"Include Tax",children:"Include Tax (Nett)"}),a.jsx("option",{value:"Exclude Tax",children:"Exclude Tax"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"9. Kebijakan Pembatalan (Cancellation / Refund)"}),a.jsxs("select",{className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:Ja,onChange:d=>ut(d.target.value),children:[a.jsx("option",{value:"Non Refundable",children:"Non Refundable"}),a.jsx("option",{value:"Free Cancellation",children:"Free Cancellation"}),a.jsx("option",{value:"Free Cancellation Up To 24h Before Check-In",children:"Free Cancellation Up To 24h Before Check-In"}),a.jsx("option",{value:"Non-refundable / Non-amendable",children:"Non-refundable / Non-amendable"})]}),a.jsx("input",{type:"text",placeholder:"Atau ketik kebijakan pembatalan manual...",className:"w-full bg-white text-xs border border-black/15 px-3 py-1.5 outline-none focus:border-black font-mono",value:Ja,onChange:d=>ut(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] font-mono uppercase tracking-widest font-bold text-stone-700",children:"10. Teks Informasi Sarapan (Breakfast Service Text)"}),a.jsx("input",{type:"text",placeholder:"Contoh: Breakfast Included (06:00 - 10:00) atau Room Only",className:"w-full bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:as,onChange:d=>Za(d.target.value)}),a.jsxs("div",{className:"flex gap-2 text-[8px] font-mono text-stone-500",children:[a.jsx("span",{className:"cursor-pointer underline hover:text-black",onClick:()=>Za("Breakfast Included (06:00 - 10:00)"),children:"Preset 1"}),a.jsx("span",{children:"|"}),a.jsx("span",{className:"cursor-pointer underline hover:text-black",onClick:()=>
399Za("Room Only (No Breakfast)"),children:"Preset 2"})]})]})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 p-3.5 bg-stone-100 border border-black/10",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold text-[#8F9A86] block",children:"Foto-Foto Kamar (Bisa Pilih Banyak Sekaligus)"}),a.jsx("input",{type:"file",multiple:!0,accept:"image/*",className:"text-[10px] w-full bg-[#F5F2ED] p-2 border border-black/10 cursor-pointer",onChange:async d=>{const M=Array.from(d.target.files||[]);if(M.length>0){To(!0),Sa(0),Nn(`Mengompres ${M.length} gambar...`);try{const ae=(await Promise.all(M.map(je=>ks(je)))).filter(Boolean),Te=[];for(let je=0;je<ae.length;je++){const he=ae[je];Nn(`Mengupload ${je+1}/${ae.length}...`);try{const Be=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:he})})).json();Be.success&&Be.imageUrl?Te.push(Be.imageUrl):console.error("Upload responded with failure:",Be)}catch(De){console.error("Upload fetch failed:",De)}Sa(Math.round((je+1)/ae.length*100))}Ot(je=>[...je,...Te]),Te.length>0?Ee(`${Te.length} gambar berhasil ditambahkan ke kamar!`,"success"):Ee("Gagal mengupload gambar ke server.","error")}catch(ie){console.error("Compression failed:",ie),Ee("Gagal upload gambar. Coba lagi.","error")}finally{To(!1),Sa(0),Nn("")}}}}),ul&&a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"text-[10px] text-[#C48810] font-mono animate-pulse font-bold",children:["â³ ",uc||"Mengompres & mengunggah foto..."]}),a.jsx("div",{className:"w-full bg-black/5 rounded-full h-1.5",children:a.jsx("div",{className:"bg-[#C48810] h-1.5 rounded-full transition-all duration-300",style:{width:`${vi}%`}})})]}),a.jsxs("div",{className:"flex items-center gap-2 my-1",children:[a.jsx("div",{className:"flex-1 h-px bg-black/10"}),a.jsx("span",{className:"text-[8px] text-[#1A1A1A]/40 font-mono uppercase font-bold",children:"ATAU"}),a.jsx("div",{className:"flex-1 h-px bg-black/10"})]}),a.jsxs("button",{type:"button",onClick:()=>{Qt({callback:d=>{Ot(M=>[...M,d])}}),an(),pa(!0)},className:"w-full py-2 border border-dashed border-black/20 text-[10px] font-mono font-bold uppercase tracking-wider hover:bg-black/5 transition-colors cursor-pointer",children:[a.jsx(el,{size:12,className:"inline mr-1"}),"Pilih dari Image Library"]}),a.jsx("div",{className:"text-[8px] text-[#1A1A1A]/40 font-mono text-center uppercase font-bold my-1",children:"â ATAU INPUT DAFTAR URL FOTO (PISAHKAN DENGAN KOMA) â"}),a.jsx("textarea",{rows:2,placeholder:"Contoh: /uploads/img1.png, /uploads/img2.png",className:"w-full bg-[#F5F2ED] text-[10px] border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:yi,onChange:d=>{const M=d.target.value;Ss(M);const ie=M.split(",").map(ae=>ae.trim()).filter(Boolean);Ot(ie)}}),$t.length>0&&a.jsxs("div",{className:"mt-2.5",children:[a.jsxs("label",{className:"text-[9px] font-mono uppercase tracking-wider font-bold text-stone-500 block mb-1",children:["Urutan Foto Kamar (",$t.length," Terunggah)"]}),a.jsx("div",{className:"grid grid-cols-4 gap-1.5",children:$t.map((d,M)=>a.jsxs("div",{className:"relative aspect-[4/3] border border-black/15 bg-stone-200 group overflow-hidden",children:[a.jsx("img",{src:d,alt:`Preview ${M+1}`,className:"w-full h-full object-cover"}),M===0&&a.jsx("span",{className:"absolute left-1 top-1 bg-[#8F9A86] text-white text-[7px] px-1 font-sans font-extrabold uppercase rounded-xs",children:"Sampul"}),a.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-black/60 p-0.5 flex justify-between items-center opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsxs("div",{className:"flex gap-1",children:[M>0&&a.jsx("button",{type:"button",title:"Geser ke kiri",onClick:()=>{Ot(ie=>{const ae=[...ie],Te=ae[M];return ae[M]=ae[M-1],ae[M-1]=Te,ae})},className:"text-white text-[9px] px-0.5 bg-stone-700 hover:bg-stone-600 rounded-xs",children:"â"}),M<$t.length-1&&a.jsx("button",{type:"button",title:"Geser ke kanan",onClick:()=>{Ot(ie=>{const ae=[...ie],Te=ae[M];return ae[M]=ae[M+1],ae[M+1]=Te,ae})},className:"text-white text-[9px] px-0.5 bg-stone-700 hover:bg-stone-600 rounded-xs",children:"â"})]}),a.jsx("button",{type:"button",title:"Hapus foto",onClick:()=>{Ot(ie=>ie.filter((ae,Te)=>Te!==M))},className:"text-white text-[9px] px-1 bg-red-800 hover:bg-red-700 rounded-xs",children:"â"})]})]},M))}),a.jsx("span",{className:"text-[7.5px] text-stone-400 font-mono block mt-1",children:"* Foto pertama (kiri paling atas) akan digunakan sebagai foto utama / sampul kamar."})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Deskripsi Kamar"}),a.jsx("textarea",{rows:3,required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-light leading-relaxed",value:ji,onChange:d=>dl(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Fasilitas Unit (Dipisah Koma)"}),a.jsx("input",{type:"text",placeholder:"WIFI, Smart TV, Marshall, Batik Kimono...",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:Eo,onChange:d=>Ta(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 pt-1",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold text-[#8F9A86]",children:"Tautan URL Reservasi Langsung (Direct Booking URL / Link OTA)"}),a.jsx("input",{type:"url",placeholder:"Contoh: https://www.agoda.com/id-id/kosenda-hotel/... atau link engine custom",className:"w-full bg-[#F5F2ED] text-xs border border-[#8F9A86]/40 px-3 py-2.5 outline-none focus:border-[#8F9A86] font-semibold text-[#1A1A1A]",value:Oo,onChange:d=>pl(d.target.value)}),a.jsx("span",{className:"text-[8px] text-stone-500 font-mono",children:"ð¡ Kosongkan kolom ini jika ingin menggunakan tautan booking engine global. Jika diisi, tamu yang memilih kamar ini akan diarahkan langsung ke URL khusus ini."})]})]}):a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-[#8F9A86]/10 border border-[#8F9A86]/35 p-4 text-left font-sans space-y-2",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-2",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[9px] font-mono tracking-widest text-[#8F9A86] uppercase font-bold block",children:"ð TAUTAN RESERVASI KAMAR UTAMA (GLOBAL BOOKING ENGINE)"}),a.jsxs("p",{className:"text-[#1A1A1A]/70 text-[11px] font-light",children:["Tautan dasar redirection saat tamu menekan tombol ",a.jsx("strong",{children:'"Reservasi"'})," di katalog kamar."]})]}),a.jsx("span",{className:"text-[8px] font-mono px-2 py-0.5 bg-[#8F9A86] text-white font-semibold",children:"SYNCHRONIZED"})]}),a.jsx("div",{className:"flex gap-2",children:a.jsx("input",{type:"url",placeholder:"https://www.agoda.com/... atau tautan booking engine hotel Anda",className:"flex-grow bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-[#8F9A86] font-semibold font-mono",value:R.bookingRedirectUrl||"",onChange:d=>J(d.target.value)})})]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:S.map(d=>a.jsxs("div",{className:"bg-white border border-black/10 p-5 flex gap-4 shadow-sm relative group hover:border-black/35 transition-all",children:[a.jsx("img",{src:d.imageUrl&&d.imageUrl.trim()!==""?d.imageUrl:null,alt:d.name,className:"w-20 h-20 object-cover border border-black/10 bg-black/5 flex-shrink-0"}),a.jsxs("div",{className:"flex-grow flex flex-col justify-between truncate text-left",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-xs font-serif font-bold italic text-[#1A1A1A] block",children:d.name}),a.jsxs("span",{className:"text-[9px] font-mono uppercase bg-black/10 text-[#1A1A1A] px-2 py-0.5 inline-block font-bold mt-1",children:["ID: ",d.id]}),a.jsxs("p",{className:"text-[10px] text-[#1A1A1A]/50 block font-mono font-bold mt-1",children:["Ukuran: ",d.size," | Bed: ",d.bedType," | Kuantitas: ",a.jsxs("span",{className:"text-[#8F9A86] font-bold",children:[d.quantity!==void 0?d.quantity:5," Unit"]})]}),a.jsxs("p",{className:"text-[9px] text-[#8F9A86] font-mono leading-relaxed mt-1 block truncate",children:["ð ",d.smokingPolicy||"Non-smoking"," | ð ",d.bathroomType||"Shower Only"," | ð³ ",d.breakfastInfo||(d.allowBreakfastOption?"Breakfast Included":"Room Only")," | ð¡ï¸ ",d.refundPolicy||"Non Refundable"," | ð¥ ",d.priceForPeople||2," Pax | ð·ï¸ ",d.taxInfo||"Include Tax"]}),d.bookingUrl&&a.jsxs("p",{className:"text-[8.5px] text-[#8F9A86]/90 font-mono font-semibold block truncate mt-1",children:["ð Custom Booking Link: ",a.jsx("span",{className:"underline select-all",children:d.bookingUrl})]})]}),a.jsxs("div",{className:"font-mono text-xs font-bold text-[#1A1A1A] mt-2",children:["IDR ",d.price.toLocaleStr
399ing()," /malam"]})]}),a.jsxs("div",{className:"absolute right-3 top-3 flex gap-1.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsx("button",{onClick:()=>cr(d),className:"p-1.5 bg-[#F5F2ED] hover:bg-black/5 text-[#1A1A1A] border border-black/10 cursor-pointer",title:"Edit",children:a.jsx(om,{size:12})}),a.jsx("button",{onClick:()=>{confirm("Hapus tipe kamar ini dari inventori?")&&H(d.id)},className:"p-1.5 bg-[#F5F2ED] hover:bg-red-50 hover:text-red-600 text-red-700/80 border border-black/10 cursor-pointer",title:"Delete",children:a.jsx(Eu,{size:12})})]})]},d.id))})]}),fc&&a.jsx("div",{className:"fixed inset-0 z-[100] bg-black/60 flex items-center justify-center p-4",children:a.jsxs("div",{className:"bg-white w-full max-w-3xl max-h-[80vh] overflow-y-auto rounded-lg shadow-2xl",children:[a.jsxs("div",{className:"sticky top-0 bg-white z-10 flex justify-between items-center p-4 border-b border-black/10",children:[a.jsx("h4",{className:"text-sm font-serif font-bold italic",children:"Pilih Gambar dari Library"}),a.jsx("button",{onClick:()=>pa(!1),className:"p-1 hover:bg-black/5 rounded cursor-pointer",children:a.jsx(di,{size:18})})]}),a.jsxs("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 gap-3 p-4",children:[tn.map(d=>a.jsxs("div",{className:"group relative aspect-square bg-black/5 rounded-lg overflow-hidden border border-black/10 cursor-pointer hover:ring-2 hover:ring-black/40 transition-all",onClick:()=>{Ms?Ms.callback(d.url):Mc(d.url),pa(!1),Qt(null)},children:[a.jsx("img",{src:d.url,alt:"",className:"w-full h-full object-cover",onError:M=>{M.target.style.display="none"}}),a.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-all flex items-center justify-center",children:a.jsx("span",{className:"text-white text-[10px] font-mono font-bold opacity-0 group-hover:opacity-100 bg-black/60 px-2 py-1 rounded",children:"Pilih"})})]},d.id)),tn.length===0&&a.jsx("div",{className:"col-span-full text-center py-8 text-[#1A1A1A]/40",children:a.jsx("p",{className:"text-xs font-mono",children:"Belum ada gambar. Upload dulu di tab Image Library."})})]})]})})]}),ze==="gallery"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Image Library"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs text-left",children:"Upload & kelola koleksi gambar untuk kamar"})]}),a.jsxs("label",{className:"px-4 py-2.5 bg-[#1A1A1A] hover:bg-[#333] text-white text-[10px] uppercase font-mono font-bold transition-all flex items-center gap-2 cursor-pointer",children:[a.jsx(Nw,{size:14}),Nl?"Uploading...":"Upload Gambar",a.jsx("input",{type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:ud,disabled:Nl})]})]}),Nl&&a.jsxs("div",{className:"bg-stone-50 border border-black/10 rounded-lg p-4 space-y-2",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("span",{className:"text-[10px] font-mono font-bold text-[#C48810]",children:uc||"Mengupload..."}),a.jsxs("span",{className:"text-[10px] font-mono text-[#1A1A1A]/60",children:[vi,"%"]})]}),a.jsx("div",{className:"w-full bg-black/5 rounded-full h-2",children:a.jsx("div",{className:"bg-[#C48810] h-2 rounded-full transition-all duration-300",style:{width:`${vi}%`}})})]}),a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4",children:[tn.map(d=>a.jsxs("div",{className:"group relative aspect-square bg-black/5 rounded-lg overflow-hidden border border-black/10",children:[a.jsx("img",{src:d.url,alt:d.filename||"Gallery image",className:"w-full h-full object-cover",onError:M=>{M.target.style.display="none"}}),a.jsxs("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/40 transition-all flex items-center justify-center gap-2 opacity-0 group-hover:opacity-100",children:[a.jsx("button",{onClick:()=>Mc(d.url),className:"p-2 bg-white text-black rounded-full hover:scale-110 transition-transform cursor-pointer",title:"Gunakan di kamar",children:a.jsx($r,{size:14})}),a.jsx("button",{onClick:()=>dd(d.id),className:"p-2 bg-red-600 text-white rounded-full hover:scale-110 transition-transform cursor-pointer",title:"Hapus",children:a.jsx(Eu,{size:14})})]}),a.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-2",children:a.jsx("p",{className:"text-[8px] text-white/80 truncate font-mono",children:d.filename||"unknown"})})]},d.id)),tn.length===0&&a.jsxs("div",{className:"col-span-full text-center py-16 text-[#1A1A1A]/40",children:[a.jsx(el,{size:48,className:"mx-auto mb-4 opacity-30"}),a.jsx("p",{className:"text-sm font-mono",children:"Belum ada gambar di library"}),a.jsx("p",{className:"text-xs mt-1",children:"Upload gambar untuk mulai koleksi"})]})]})]}),ze==="vouchers"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"E-Voucher Promo"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs text-left",children:"Kelola sirkulasi voucher diskon pemesanan kamar"})]}),!Ca&&a.jsxs("button",{onClick:ur,className:"px-4 py-2.5 bg-[#1A1A1A] hover:bg-[#333] text-white text-[10px] uppercase font-mono font-bold transition-all flex items-center gap-2 cursor-pointer",children:[a.jsx($r,{size:14}),"Tambah Voucher Baru"]})]}
399),Ca?a.jsxs("form",{onSubmit:Ys,className:"bg-white border border-black/10 p-6 sm:p-8 space-y-4 max-w-2xl text-left",children:[a.jsx("h4",{className:"text-xs font-serif font-bold uppercase tracking-widest border-b border-black/10 pb-2 mb-4",children:bl?"Ubah Detail Voucher":"Buat Voucher Baru"}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Kode Voucher"}),a.jsx("input",{type:"text",required:!0,placeholder:"Contoh: KOSENDALOCAL",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold uppercase font-mono",value:Ni,onChange:d=>gl(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Potongan Harga (%)"}),a.jsx("input",{type:"number",min:5,max:90,required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:Es,onChange:d=>zo(Number(d.target.value))})]})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Berlaku Dari"}),a.jsx("input",{type:"date",required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:Ht,onChange:d=>ki(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Berlaku Sampai"}),a.jsx("input",{type:"date",required:!0,className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:yl,onChange:d=>wi(d.target.value)})]})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Relasi Kamar Pilihan"}),a.jsxs("select",{className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold",value:Tn,onChange:d=>vl(d.target.value),children:[a.jsx("option",{value:"all",children:"Berlaku untuk Semua Kamar"}),S.map(d=>a.jsxs("option",{value:d.id,children:["Khusus ",d.name]},d.id))]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Tampilan Poster URL"}),a.jsx("input",{type:"text",required:!0,placeholder:"/uploads/promo-banner.png",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-semibold font-mono",value:jl,onChange:d=>Cn(d.target.value)})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold",children:"Keterangan / Deskripsi Voucher"}),a.jsx("textarea",{rows:3,required:!0,placeholder:"Detail penawaran kupon diskon...",className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2.5 outline-none focus:border-black font-light leading-relaxed",value:Fo,onChange:d=>Al(d.target.value)})]}),a.jsxs("div",{className:"flex gap-3 pt-4 border-t border-black/10 justify-end",children:[a.jsx("button",{type:"button",onClick:()=>Rt(!1),className:"px-4 py-2.5 border border-black/10 hover:bg-black/5 text-[10px] uppercase font-mono font-bold cursor-pointer",children:"Batal"}),a.jsx("button",{type:"submit",className:"px-6 py-2.5 bg-[#1A1A1A] hover:bg-[#333] text-white text-[10px] uppercase font-mono font-bold cursor-pointer",children:"Simpan Voucher"})]})]}):a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:q.map(d=>a.jsxs("div",{className:"bg-white border border-black/10 p-5 flex gap-4 shadow-sm relative group hover:border-black/35 transition-all text-left",children:[a.jsx("img",{src:d.imageUrl||Du("PROMO","#C48810",200,200,12),alt:d.code,className:"w-16 h-16 object-cover border border-black/10 bg-black/5 flex-shrink-0"}),a.jsxs("div",{className:"flex-grow flex flex-col justify-between truncate font-mono",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-xs uppercase font-extrabold tracking-widest text-[#1A1A1A] block select-all",children:d.code}),a.jsxs("span",{className:"text-[9px] bg-[#1A1A1A] text-[#F5F2ED] py-0.5 px-2 font-bold uppercase inline-block my-1 leading-normal",children:["DISKON ",d.discountPercent,"%"]}),a.jsx("p",{className:"text-[10px] text-[#1A1A1A]/70 truncate block leading-normal mt-1 text-sans font-light",children:d.description})]}),a.jsxs("div",{className:"text-[8px] text-[#1A1A1A]/50 block leading-none font-bold mt-2",children:["Masa Berlaku: ",d.validFrom," s/d ",d.validTo]})]}),a.jsxs("div",{className:"absolute right-3 top-3 flex gap-1 bg-[#F5F2ED]/90 p-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[a.jsx("button",{onClick:()=>Is(d),className:"p-1 hover:bg-black/5 text-[#1A1A1A] border border-black/5 cursor-pointer",children:a.jsx(om,{size:11})}),a.jsx("button",{onClick:()=>{confirm("Hapus voucher "+d.code+"?")&&Y(d.id)},className:"p-1 hover:bg-red-50 hover:text-red-600 text-red-700/80 border border-black/5 cursor-pointer",children:a.jsx(Eu,{size:11})})]})]},d.id))})]}),ze==="settings"&&a.jsxs("div",{className:"space-y-6 text-left",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Setting Website / Setup CMS"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Modifikasi seluruh kalimat, judul, dan data lobi utama secara dinamis"})]}),a.jsxs("div",{className:"flex border-b border-black/10 gap-2 overflow-x-auto",children:[a.jsx("button",{type:"button",onClick:()=>en("header_footer"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="header_footer"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"Header & Footer"}),a.jsx("button",{type:"button",onClick:()=>en("home_banner"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="home_banner"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"Home Slideshow"}),a.jsx("button",{type:"button",onClick:()=>en("dining"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="dining"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"Dining Destinations"}),a.jsx("button",{type:"button",onClick:()=>en("arts"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="arts"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"Art & Soul"}),a.jsx("button",{type:"button",onClick:()=>en("location"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="location"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"Location & Access"}),a.jsx("button",{type:"button",onClick:()=>en("ai_concierge"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="ai_concierge"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"AI Concierge Setup"}),a.jsx("button",{type:"button",onClick:()=>en("typography"),className:`pb-3.5 px-4 text-[10px] font-mono font-bold uppercase tracking-wider relative cursor-pointer ${zt==="typography"?"text-black border-b-2 border-black":"text-[#1A1A1A]/40"}`,children:"Typography & Fonts"})]}),a.jsxs("div",{className:"bg-white border border-black/10 p-6 shadow-sm space-y-6",children:[a.jsxs("div",{className:`border-l-4 p-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 transition-all duration-300 ${Kt?"bg-amber-50/60 border-amber-500 shadow-sm":"bg-[#F5F2ED] border-[#8F9A86]"}`,children:[a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:`w-2 h-2 rounded-full ${Kt?"bg-amber-500 animate-pulse":"bg-emerald-600"}`}),a.jsx("span",{className:"text-[10px] font-mono tracking-widest uppercase font-bold text-stone-700",children:Kt?"ADA PERUBAHAN BARU (STATUS: DRAFT LOKAL)":"KONFIGURASI WEBSITE AKTIF DAN TERSIMPAN"})]}),a.jsx("p",{className:"text-[11px] text-[#1A1A1A]/70 leading-relaxed font-sans max-w-xl",children:Kt?"Anda telah membuat perubahan pada website instrumen CMS. Tekan tombol 'Simpan Perubahan' di sebelah kanan untuk memperbarui database PostgreSQL secara permanen.":"Seluruh konfigurasi website kustomisasi saat ini telah selaras dengan database PostgreSQL. Setiap kali And
399a mengetik perubahan baru, status akan berubah menjadi Draft otomatis."})]}),a.jsx("button",{type:"button",onClick:dn,disabled:Bn,className:`px-5 py-2.5 font-mono text-[10px] uppercase font-bold tracking-widest transition-all duration-300 flex items-center gap-2 select-none border shrink-0 cursor-pointer ${Bn?"bg-stone-300 text-stone-500 cursor-not-allowed border-stone-200":Kt?"bg-amber-600 hover:bg-amber-700 text-white border-amber-700 shadow-sm font-black":"bg-stone-950 hover:bg-stone-850 text-white border-stone-850"}`,children:Bn?a.jsxs(a.Fragment,{children:[a.jsx(Ir,{size:12,className:"animate-spin"}),"Menyimpan..."]}):a.jsxs(a.Fragment,{children:[a.jsx(gn,{size:12}),Kt?"Simpan Draft":"Simpan Perubahan"]})})]}),Zt&&a.jsxs("div",{className:"bg-stone-900 border-l-4 border-emerald-500 text-[#F5F2ED] p-4 text-[11px] leading-relaxed font-sans shadow-lg flex items-start gap-3.5 animate-fade-in",children:[a.jsx("span",{className:"text-sm",children:"ðï¸"}),a.jsxs("div",{className:"flex-1 space-y-0.5 text-left",children:[a.jsx("p",{className:"font-bold text-[#F5F2ED] uppercase tracking-wider text-[9px] font-mono",children:"STATUS INTEGRASI DATA"}),a.jsx("p",{children:Zt})]}),a.jsx("button",{type:"button",onClick:()=>ga(null),className:"text-white hover:text-stone-300 font-mono text-[9px] uppercase tracking-wider font-bold border-l border-white/10 pl-3 inline-block cursor-pointer self-center",children:"OK"})]}),zt==="home_banner"&&a.jsxs("div",{className:"space-y-6 max-w-xl",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 mb-3 text-stone-500",children:"Homepage Slideshow & Overlay Transparency"}),a.jsx("div",{className:"bg-[#8F9A86]/10 border border-[#8F9A86]/35 p-4 space-y-2 text-left",children:a.jsxs("div",{className:"flex justify-between items-center gap-4",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[10px] uppercase tracking-[0.12em] font-mono font-bold text-[#8F9A86] block",children:'ðï¸ KOTAK FORMULIR "PILIH KAMAR" BERANDA'}),a.jsx("p",{className:"text-[9.5px] text-stone-600 font-sans leading-normal",children:"Tampilkan atau sembunyikan kotak isian reservasi masuk-keluar di bagian atas halaman beranda (Home)."})]}),a.jsx("div",{className:"flex shrink-0 items-center",children:a.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[a.jsx("input",{type:"checkbox",className:"sr-only peer",checked:R.showReservationCard!==!1,onChange:d=>ce(d.target.checked)}),a.jsx("div",{className:"w-10 h-5 bg-stone-300 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-[#8F9A86]"}),a.jsx("span",{className:"ml-2.5 text-[9px] font-mono font-bold text-stone-700",children:R.showReservationCard!==!1?"ON (SHOWN)":"OFF (HIDDEN)"})]})})]})}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Judul Utama Hero (Title)"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:((Ii=R.homeBanner)==null?void 0:Ii.title)||"",onChange:d=>ne({title:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Sub-Judul Filosofi (Subtitle)"}),a.jsx("textarea",{rows:2,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:((hr=R.homeBanner)==null?void 0:hr.subtitle)||"",onChange:d=>ne({subtitle:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 border-t border-black/5 pt-4",children:[a.jsxs("div",{className:"flex justify-between items-center mb-1",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Overlay Transparency (Transparansi)"}),a.jsxs("span",{className:"text-xs font-mono font-bold bg-[#1A1A1A] text-white px-2 py-0.5 rounded-none",children:[((pr=R.homeBanner)==null?void 0:pr.overlayOpacity)??20,"%"]})]}),a.jsx("p",{className:"text-[9px] text-[#1A1A1A]/60 -mt-1 mb-2 font-mono leading-relaxed",children:"Geser ke tingkat yang lebih kecil untuk memperjelas kontras foto slideshow (Saran: 20%)."}),a.jsx("input",{type:"range",min:"0",max:"100",step:"5",className:"w-full accent-[#1A1A1A] cursor-pointer",value:((Gn=R.homeBanner)==null?void 0:Gn.overlayOpacity)??20,onChange:d=>ne({overlayOpacity:Number(d.target.value)})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 border-t border-black/5 pt-4",children:[a.jsxs("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold mb-1",children:["Daftar Foto Slideshow (",((xr=(Kn=R.homeBanner)==null?void 0:Kn.images)==null?void 0:xr.length)||0,")"]}),a.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 mb-4",children:[(ms=(br=R.homeBanner)==null?void 0:br.images)==null?void 0:ms.map((d,M)=>a.jsxs("div",{className:"relative group aspect-video border border-black/10 bg-black overflow-hidden bg-stone-100",children:[a.jsx("img",{src:d,alt:`Banner index ${M}`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),a.jsxs("div",{className:"absolute top-1 left-1 bg-black/60 text-white font-mono text-[8px] font-bold px-1.5 py-0.5",children:["#",M+1]}),a.jsx("button",{type:"button",onClick:()=>{var ae;const ie=(((ae=R.homeBanner)==null?void 0:ae.images)||[]).filter((Te,je)=>je!==M);ne({images:ie})},className:"absolute top-1 right-1 bg-red-600 text-white font-bold rounded-full w-5 h-5 flex items-center justify-center text-[10px] hover:bg-red-800 transition-colors cursor-pointer leading-none",title:"Hapus gambar ini",children:"Ã"})]},d+M)),(!((Xs=R.homeBanner)!=null&&Xs.images)||R.homeBanner.images.length===0)&&a.jsx("div",{className:"col-span-full py-6 text-center border border-dashed border-black/15 bg-black/5 text-[#1A1A1A]/60 text-xs font-mono",children:"Belum ada foto slideshow tersedia."})]}),a.jsxs("div",{className:"bg-stone-50 border border-black/10 p-3 space-y-3",children:[a.jsx("span",{className:"text-[9px] uppercase font-mono tracking-wider font-bold block text-stone-500",children:"Tambah Foto Baru"}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[9px] uppercase font-semibold text-stone-500 block mb-1 font-mono",children:"Unggah File gambar"}),a.jsx("input",{id:"header-slider-upload",type:"file",accept:"image/*",className:"text-[10px] w-full cursor-pointer mb-2",onChange:async d=>{var ie,ae;const M=(ie=d.target.files)==null?void 0:ie[0];if(M)try{const Te=await ks(M);if(Te){const he=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:Te})})).json();if(he.success&&he.imageUrl){const De=((ae=R.homeBanner)==null?void 0:ae.images)||[];ne({images:[...De,he.imageUrl]}),Ee("Gambar berhasil diunggah ke slideshow & disimpan ke library!","success")}else Ee("Gagal menyimpan gambar ke server.","error")}}catch(Te){console.error("Slideshow upload failed:",Te),Ee("Gagal mengunggah gambar.","error")}}}),a.jsx("div",{className:"flex items-center gap-1.5 my-1.5",children:a.jsx("span",{className:"text-[7.5px] text-[#1A1A1A]/40 font-mono uppercase font-bold",children:"ATAU"})}),a.jsxs("button",{type:"button",onClick:()=>{Qt({callback:d=>{var ie;const M=((ie=R.homeBanner)==null?void 0:ie.images)||[];ne({images:[...M,d]})}}),an(),pa(!0)},className:"w-full py-1.5 border border-dashed border-black/20 text-[9px] font-mono font-bold uppercase hover:bg-black/5 transition-colors cursor-pointer flex items-center justify-center gap-1",children:[a.jsx(el,{size:11}),"Pilih dari Image Library"]})]}),a.jsx("div",{className:"text-[9px] text-[#1A1A1A]/40 font-mono text-center uppercase font-bold",children:"â ATAU INPUT URL GAMBAR â"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{id:"new-slide-url-input",type:"text",placeholder:"Pencet enter atau tempel URL https://...",className:"bg-white flex-1 text-xs border border-black/15 px-3 py-1.5 outline-none focus:border-black font-semibold font-mono",onKeyDown:d=>{var M;if(d.key==="Enter"){d.preventDefault();const ie=d.currentTarget,ae=ie.value.trim();if(ae){const Te=((M=R.homeBanner)==null?void 0:M.images)||[];ne({images:[...Te,ae]}),ie.value=""}}}}),a.jsx("button",{type:"button",onClick:()=>{var ie,ae;const d=document.getElementById("new-slide-url-input"),M=(ie=d==null?void 0:d.value)==null?void 0:ie.trim();if(M){const Te=((ae=R.homeBanner)==null?void 0:ae.images)||[];ne({images:[...Te,M]}),d.value=""}},className:"bg-[#1A1A1A] text-white text-[10px] px-3 py-1.5 font-mono font-bold tracking-widest uppercase hover:bg-[#333] transition-colors cursor-pointer",children:"Tambah"})]})]})]})]})]}),zt==="header_footer"&&a.jsxs("div",{className:"space-y-4 max-w-xl",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 mb-3 text-stone-500",children:"Header & Footer Brand Kontak"}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Logo Teks Brand"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.logoText,onChange:d=>W({logoText:d.target.value.toUpperCase()})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Nomor Kontak Telpon"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.phone,onChange:d=>W({phone:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 sm:col-span-2 border-t border-dashed border-black/10 pt-4 mt-2",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Logo Image Brand (Optional)"}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-start sm:items-center",children:[R.headerFooter.logoImageUrl&&R.headerFooter.logoImageUrl.trim()!==""?a.jsxs("div",{className:"relative p-2 border border-black/15 bg-white/50 shrink-0",children:[a.jsx("img",{src:R.headerFooter.logoImageUrl,alt:"Brand Logo",className:"h-12 w-auto object-contain bg-[#1E1E1E] p-1"}),a.jsx("button",{type:"button",onClick:()=>W({logoImageUrl:""}),className:"absolute -top-2 -right-2 bg-red-600 text-white rounded-full w-5 h-5 flex items-center justify-center text-[10px] hover:bg-red-800 transition-colors cursor-pointer font-bold leading-none",title:"Hapus Logo",children:"Ã"})]}):a.jsx("div",{className:"p-3 border border-dashed border-black/15 bg-black/5 text-[10px] text-stone-500 font-mono shrink-0",children:"Menggunakan Teks Logo KOSENDA"}),a.jsxs("div",{className:"flex-1 space-y-2 w-full",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-[9px] uppercase font-semibold text-stone-500 block mb-1 font-mono",children:"Unggah File gambar"}),a.jsx("input",{type:"file",accept:"image/*",className:"text-[10px] w-full cursor-pointer",onChange:async d=>{var ie;const M=(ie=d.target.files)==null?void 0:ie[0];if(M)try{const ae=await ks(M);if(ae){const je=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:ae})})).json();je.success&&je.imageUrl?(W({logoImageUrl:je.imageUrl}),Ee("Logo berhasil diunggah & disimpan ke library!","success")):Ee("Gagal menyimpan logo ke server.","error")}}catch(ae){console.error("Logo upload failed:",ae),Ee("Gagal mengunggah logo.","error")}}})]}),a.jsx("div",{className:"text-[9px] text-[#1A1A1A]/50 font-mono uppercase font-bold",children:"Atau gunakan URL Gambar:"}),a.jsx("input",{type:"text",placeholder:"https://...",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono w-full",value:R.headerFooter.logoImageUrl||"",onChange:d=>W({logoImageUrl:d.target.value})})]})]})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Surat Elektronik (Email)"}),a.jsx("input",{type:"email",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.email,onChange:d=>W({email:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Lokasi Alamat Utama"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.headerFooter.address,onChange:d=>W({address:d.target.value})})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Facebook Address URL"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.headerFooter.facebook,onChange:d=>W({facebook:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Instagram Address URL"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.headerFooter.instagram,onChange:d=>W({instagram:d.target.value})})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 pt-2 border-t border-black/5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold",children:"Kredit Tambahan Footer"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.headerFooter.creditText,onChange:d=>W({creditText:d.target.value})})]}),a.jsxs("div",{className:"pt-4 border-t border-black/10 mt-2 space-y-4 text-left",children:[a.jsx("span",{className:"text-[11px] font-mono tracking-widest uppercase font-bold text-stone-500 block",children:"Konfigurasi Other Ventures (2 Logo di Footer)"}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 bg-stone-50 p-4 border border-black/5",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx("h5",{className:"text-[10px] uppercase tracking-wider font-mono font-bold text-[#8F9A86]",children:"Venture 1"}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-semibold text-stone-500",children:"Nama Venture 1"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-2.5 py-1.5 outline-none focus:border-black font-semibold",value:R.headerFooter.venture1Name||"",onChange:d=>W({venture1Name:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 p-3.5 bg-stone-100 border border-black/10",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold text-[#8F9A86] block",children:"Logo Venture 1 (Upload File)"}),a.jsx("input",{type:"file",accept:"image/*",className:"text-[10px] w-full bg-[#F5F2ED] p-2 border border-black/10 cursor-pointer",onChange:async d=>{var ie;const M=(ie=d.target.files)==null?void 0:ie[0];if(M)try{const ae=await ks(M);if(ae){const je=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:ae})})).json();je.success&&je.imageUrl?(W({venture1LogoUrl:je.imageUrl}),Ee("Logo Venture 1 berhasil diunggah!","success")):Ee("Gagal menyimpan logo ke server.","error")}}catch(ae){console.error("Venture 1 upload failed:",ae),Ee(
399"Gagal upload logo.","error")}}}),a.jsx("div",{className:"text-[8px] text-[#1A1A1A]/40 font-mono text-center uppercase font-bold my-1",children:"â ATAU INPUT URL LOGO â"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-2.5 py-1.5 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.venture1LogoUrl||"",onChange:d=>W({venture1LogoUrl:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-semibold text-stone-500",children:"Tautan Link Venture 1"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-2.5 py-1.5 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.venture1Link||"",onChange:d=>W({venture1Link:d.target.value})})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("h5",{className:"text-[10px] uppercase tracking-wider font-mono font-bold text-[#8F9A86]",children:"Venture 2"}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-semibold text-stone-500",children:"Nama Venture 2"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-2.5 py-1.5 outline-none focus:border-black font-semibold",value:R.headerFooter.venture2Name||"",onChange:d=>W({venture2Name:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 p-3.5 bg-stone-100 border border-black/10",children:[a.jsx("label",{className:"text-[10px] font-mono uppercase tracking-widest font-bold text-[#8F9A86] block",children:"Logo Venture 2 (Upload File)"}),a.jsx("input",{type:"file",accept:"image/*",className:"text-[10px] w-full bg-[#F5F2ED] p-2 border border-black/10 cursor-pointer",onChange:async d=>{var ie;const M=(ie=d.target.files)==null?void 0:ie[0];if(M)try{const ae=await ks(M);if(ae){const je=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:ae})})).json();je.success&&je.imageUrl?(W({venture2LogoUrl:je.imageUrl}),Ee("Logo Venture 2 berhasil diunggah!","success")):Ee("Gagal menyimpan logo ke server.","error")}}catch(ae){console.error("Venture 2 upload failed:",ae),Ee("Gagal upload logo.","error")}}}),a.jsx("div",{className:"text-[8px] text-[#1A1A1A]/40 font-mono text-center uppercase font-bold my-1",children:"â ATAU INPUT URL LOGO â"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-2.5 py-1.5 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.venture2LogoUrl||"",onChange:d=>W({venture2LogoUrl:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-semibold text-stone-500",children:"Tautan Link Venture 2"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-2.5 py-1.5 outline-none focus:border-black font-semibold font-mono",value:R.headerFooter.venture2Link||"",onChange:d=>W({venture2Link:d.target.value})})]})]})]})]}),a.jsxs("div",{className:"pt-5 border-t border-black/10 mt-4 space-y-3 text-left",children:[a.jsx("span",{className:"text-[11px] font-mono tracking-widest uppercase font-bold text-[#8F9A86] block",children:"ð Tautan Mesin Pemesanan Kamar (Booking Engine)"}),a.jsxs("div",{className:"bg-amber-50/50 p-4 border border-amber-900/10 space-y-2",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono tracking-wider font-bold text-[#8F9A86] block",children:"Direct Booking Redirect URL (Pihak Ketiga)"}),a.jsx("input",{type:"text",placeholder:"https://www.agoda.com/... atau tautan booking langsung",className:"bg-white text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono w-full",value:R.bookingRedirectUrl||"",onChange:d=>J(d.target.value)}),a.jsxs("p",{className:"text-[9.5px] text-stone-500 font-sans leading-relaxed",children:["ð¡ Tamu yang mengeklik ",a.jsx("strong",{children:'"Pesan Sekarang" / "Book"'})," pada katalog kamar akan diarahkan secara otomatis ke alamat URL aplikasi pihak ketiga ini setelah melihat detail spesifikasi kamar & galeri foto kamar."]})]})]})]}),zt==="dining"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-3 max-w-xl",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 text-stone-500",children:"Berdasarkan Judul Header Section 02"}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Judul Pokok Dining"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.dining.title,onChange:d=>ve({title:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Kutipan Paragraf Sub Pembuka"}),a.jsx("textarea",{rows:3,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-light leading-relaxed",value:R.dining.subtitle,onChange:d=>
399ve({subtitle:d.target.value})})]})]}),a.jsxs("div",{className:"space-y-3 mt-6 border-t border-black/10 pt-4",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold text-stone-500",children:"Kelola Outlet Kuliner, Point Penghargaan & Signature Menu"}),a.jsx("button",{type:"button",onClick:()=>ar(!Vl),className:"bg-[#1A1A1A] hover:bg-[#333333] text-white font-mono text-[9px] font-bold uppercase tracking-widest px-3.5 py-1.5 transition-colors cursor-pointer",children:Vl?"Batal Tambah":"+ Tambah Outlet Baru"})]}),Vl&&a.jsxs("div",{className:"p-4 bg-stone-50 border border-black/15 text-xs text-left grid grid-cols-1 sm:grid-cols-2 gap-4 my-3 animate-fadeIn",children:[a.jsx("div",{className:"sm:col-span-2 border-b border-black/5 pb-2",children:a.jsx("h4",{className:"font-mono text-[10px] uppercase font-bold tracking-wider text-[#1A1A1A]",children:"Form Tambah Outlet Dining Baru"})}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Nama Outlet"}),a.jsx("input",{type:"text",className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:Hl,onChange:d=>nr(d.target.value),placeholder:"Contoh: Café 127"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Tipe Outlet"}),a.jsx("input",{type:"text",className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-mono",value:sr,onChange:d=>Oc(d.target.value),placeholder:"Contoh: Artisan Coffee & Pastry Lounge"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Jam Buka / Operasional"}),a.jsx("input",{type:"text",className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-mono",value:Pl,onChange:d=>xa(d.target.value),placeholder:"Contoh: 07:00 AM - 10:00 PM"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Suasana / Vibe Concept"}),a.jsx("input",{type:"text",className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-sans",value:Ui,onChange:d=>ia(d.target.value),placeholder:"Contoh: Intimate, Warm & Mid-Century"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 sm:col-span-2",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Deskripsi Ringkas"}),a.jsx("textarea",{rows:2,className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-sans leading-relaxed",value:os,onChange:d=>Bi(d.target.value),placeholder:"Penjelasan keunikan rasa, suasana, dan pengalaman bersantap..."})]}),a.jsxs("div",{className:"sm:col-span-2 flex justify-end gap-3 pt-2",children:[a.jsx("button",{type:"button",onClick:()=>{ar(!1),nr(""),Bi("")},className:"px-4 py-2 border border-black/20 font-mono text-[9px] font-bold uppercase tracking-widest bg-transparent hover:bg-black/5 cursor-pointer",children:"Batal"}),a.jsx("button",{type:"button",onClick:()=>{if(!Hl.trim()){alert("Silakan masukkan nama outlet.");return}const d=Du(Hl.toUpperCase()||"OUTLET","#8F9A86");Me({name:Hl,type:sr,hours:Pl,vibe:Ui,description:os,imageUrl:d,imageUrls:[d],features:["Quality handcrafted experience","Relaxed ambiance with art displays"],signatureItems:["Signature Specialty Brew","House Pastry Selection"]}),nr(""),Bi(""),ar(!1),Ee("Outlet kuliner baru berhasil ditambahkan!","success")},className:"px-5 py-2 bg-[#8F9A86] hover:bg-[#7e8a76] text-white font-mono text-[9px] font-bold uppercase tracking-widest cursor-pointer",children:"Simpan Outlet Baru"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:R.dining.outlets.map(d=>{var M,ie,ae,Te,je;return a.jsxs("div",{className:"p-3.5 border border-black/10 bg-stone-50/50 space-y-2 text-xs flex flex-col justify-between",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-start",children:[a.jsxs("div",{children:[a.jsx("span",{className:"font-bold font-serif text-[#1A1A1A] text-sm block",children:d.name}),a.jsx("span",{className:"text-[9px] text-[#8F9A86] font-mono block font-bold",children:d.type})]}),a.jsx("button",{type:"button",onClick:()=>{confirm(`Apakah Anda yakin ingin menghapus outlet "${d.name}"?`)&&(ue(d.id),Ee("Outlet berhasil dihapus.","success"))},className:"text-[9px] text-red-600 hover:text-red-800 font-mono font-bold uppercase cursor-pointer",title:"Hapus Outlet",children:"Hapus"})]}),a.jsx("span",{className:"text-[9px] text-stone-500 font-mono block
399italic mt-1",children:d.hours}),a.jsx("p",{className:"text-[10px] font-sans text-stone-600 line-clamp-3 leading-relaxed mt-1",children:d.description}),a.jsxs("div",{className:"mt-2 space-y-1 text-[9px] font-mono text-stone-600 bg-white/70 p-2 border border-black/5",children:[a.jsxs("div",{children:[a.jsx("strong",{children:"ð Penghargaan/Features:"})," ",((M=d.features)==null?void 0:M.length)||0," poin"]}),a.jsxs("div",{children:[a.jsx("strong",{children:"ð¸ Signature Items:"})," ",((ie=d.signatureItems)==null?void 0:ie.length)||0," item"]})]})]}),a.jsx("button",{type:"button",onClick:()=>{Bo(d.id===Si?null:d.id)},className:"w-full py-2 bg-[#1A1A1A] hover:bg-[#333333] text-white font-mono text-[9px] text-center uppercase tracking-widest font-bold cursor-pointer block mt-3 transition-colors",children:Si===d.id?"Selesai Edit":"Edit Outlet Ini"}),Si===d.id&&a.jsxs("div",{className:"p-3 bg-white border border-black/15 space-y-4 mt-3 text-left animate-fadeIn",children:[a.jsxs("div",{className:"space-y-2 border-b border-black/10 pb-3",children:[a.jsx("h5",{className:"font-mono text-[10px] uppercase font-bold text-[#1A1A1A]",children:"1. Informasi & Identitas Outlet"}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold uppercase",children:"Nama Outlet"}),a.jsx("input",{type:"text",value:d.name,className:"bg-[#F5F2ED] text-[10px] px-2 py-1.5 border outline-none font-semibold",onChange:he=>de(d.id,{name:he.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold uppercase",children:"Tipe Outlet"}),a.jsx("input",{type:"text",value:d.type,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onChange:he=>de(d.id,{type:he.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold uppercase",children:"Jam Buka / Operasional"}),a.jsx("input",{type:"text",value:d.hours,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onChange:he=>de(d.id,{hours:he.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold uppercase",children:"Vibe / Konsep Tagline"}),a.jsx("input",{type:"text",value:d.vibe||"",className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-sans",onChange:he=>de(d.id,{vibe:he.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold uppercase",children:"Deskripsi Ringkas"}),a.jsx("textarea",{value:d.description,rows:3,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-sans font-light leading-snug",onChange:he=>de(d.id,{description:he.target.value})})]})]}),a.jsxs("div",{className:"space-y-2 border-b border-black/10 pb-3",children:[a.jsx("div",{className:"flex justify-between items-center",children:a.jsxs("h5",{className:"font-mono text-[10px] uppercase font-bold text-[#8F9A86] flex items-center gap-1",children:["ð 2. Point Penghargaan & Keunggulan (",((ae=d.features)==null?void 0:ae.length)||0,")"]})}),a.jsx("p",{className:"text-[8px] text-stone-500 font-mono leading-tight",children:'*Tampil dengan ikon piala pada Landing Page Dining. Misal: "Award-winning Peranakan culinary destination".'}),a.jsxs("div",{className:"space-y-1.5 my-2",children:[(d.features||[]).map((he,De)=>a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsxs("span",{className:"text-[9px] font-mono text-stone-400 font-bold",children:[De+1,"."]}),a.jsx("input",{type:"text",value:he,className:"flex-1 bg-[#F5F2ED] text-[9px] px-2 py-1 border border-black/10 outline-none focus:border-black font-sans",onChange:Be=>{const it=[...d.features||[]];it[De]=Be.target.value,de(d.id,{features:it})}}),a.jsx("button",{type:"button",onClick:()=>{const Be=(d.features||[]).filter((it,La)=>La!==De);de(d.id,{features:Be})},className:"w-5 h-5 bg-red-600 hover:bg-red-800 text-white font-bold rounded-full flex items-center justify-center text-[10px] cursor-pointer",title:"Hapus point ini",children:"Ã"})]},De)),(!d.features||d.features.length===0)&&a.jsx("div",{className:"text-[8px] text-stone-400 font-mono italic",children:"Belum ada point penghargaan."})]}),a.jsxs("div",{className:"flex gap-1 mt-2",children:[a.jsx("input",{type:"text",placeholder:"Tambah point penghargaan baru...",className:"flex-1 bg-white text-[9px] px-2 py-1 border border-black/15 outline-none font-sans",value:sn[d.id]||"",onChange:he=>Vs({...sn,[d.id]:he.target.value}),onKeyDown:he=>{if(he.key==="Enter"){he.preventDefault();const De=(sn[d.id]||"").trim();if(De){const Be=[...d.features||[],De];de(d.id,{features:Be}),Vs({...sn,[d.id]:""})}}}}),a.jsx("button",{type:"button",onClick:()=>{const he=(sn[d.id]||"").trim();if(he){const De=[...d.features||[],he];de(d.id,{features:De}),Vs({...sn,[d.id]:""})}},className:"px-2.5 py-1 bg-[#8F9A86] hover:bg-[#7e8a76] text-white font-mono text-[8px] font-bold uppercase tracking-wider cursor-pointer",children:"+ Tambah"})]})]}),a.jsxs("div",{className:"space-y-2 border-b border-black/10 pb-3",children:[a.jsx("div",{className:"flex justify-between items-center",children:a.jsxs("h5",{className:"font-mono text-[10px] uppercase font-bold text-[#8F9A86] flex items-center gap-1",children:["ð¸ 3. Hidangan & Minuman Unggulan Signature (",((Te=d.signatureItems)==null?void 0:Te.length)||0,")"]})}),a.jsx("p",{className:"text-[8px] text-stone-500 font-mono leading-tight",children:'*Tampil di kotak rekomendasi "Signature Guest Recommendations". Misal: "Signature Nyonya Laksa (Richly spiced broth)".'}),a.jsxs("div",{className:"space-y-1.5 my-2",children:[(d.signatureItems||[]).map((he,De)=>a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsxs("span",{className:"text-[9px] font-mono text-stone-400 font-bold",children:[De+1,"."]}),a.jsx("input",{type:"text",value:he,className:"flex-1 bg-[#F5F2ED] text-[9px] px-2 py-1 border border-black/10 outline-none focus:border-black font-sans",onChange:Be=>{const it=[...d.signatureItems||[]];it[De]=Be.target.value,de(d.id,{signatureItems:it})}}),a.jsx("button",{type:"button",onClick:()=>
399{const Be=(d.signatureItems||[]).filter((it,La)=>La!==De);de(d.id,{signatureItems:Be})},className:"w-5 h-5 bg-red-600 hover:bg-red-800 text-white font-bold rounded-full flex items-center justify-center text-[10px] cursor-pointer",title:"Hapus signature item",children:"Ã"})]},De)),(!d.signatureItems||d.signatureItems.length===0)&&a.jsx("div",{className:"text-[8px] text-stone-400 font-mono italic",children:"Belum ada menu signature."})]}),a.jsxs("div",{className:"flex gap-1 mt-2",children:[a.jsx("input",{type:"text",placeholder:"Tambah menu signature baru...",className:"flex-1 bg-white text-[9px] px-2 py-1 border border-black/15 outline-none font-sans",value:zn[d.id]||"",onChange:he=>ln({...zn,[d.id]:he.target.value}),onKeyDown:he=>{if(he.key==="Enter"){he.preventDefault();const De=(zn[d.id]||"").trim();if(De){const Be=[...d.signatureItems||[],De];de(d.id,{signatureItems:Be}),ln({...zn,[d.id]:""})}}}}),a.jsx("button",{type:"button",onClick:()=>{const he=(zn[d.id]||"").trim();if(he){const De=[...d.signatureItems||[],he];de(d.id,{signatureItems:De}),ln({...zn,[d.id]:""})}},className:"px-2.5 py-1 bg-[#8F9A86] hover:bg-[#7e8a76] text-white font-mono text-[8px] font-bold uppercase tracking-wider cursor-pointer",children:"+ Tambah"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1 border-b border-black/10 pb-3",children:[a.jsxs("label",{className:"text-[10px] font-mono font-bold text-[#8F9A86] flex items-center gap-1",children:["ð¸ 4. Galeri Gambar Outlet (",((je=d.imageUrls)==null?void 0:je.length)||(d.imageUrl?1:0),")"]}),a.jsxs("div",{className:"grid grid-cols-4 gap-1.5 my-1.5",children:[(d.imageUrls||[d.imageUrl].filter(he=>typeof he=="string"&&he.trim()!=="")).map((he,De)=>a.jsxs("div",{className:"relative aspect-video border border-black/10 bg-black overflow-hidden group rounded-xs shadow-xs",children:[a.jsx("img",{src:he,alt:`Img ${De}`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-200",referrerPolicy:"no-referrer"}),a.jsxs("div",{className:"absolute bottom-0 left-0 bg-black/60 text-white font-mono text-[7px] px-1 font-bold",children:["#",De+1]}),a.jsx("button",{type:"button",onClick:()=>{const it=(d.imageUrls||(d.imageUrl?[d.imageUrl]:[])).filter((La,hn)=>hn!==De);de(d.id,{imageUrl:it[0]||"",imageUrls:it})},className:"absolute top-0.5 right-0.5 bg-red-600 hover:bg-red-800 text-white font-bold rounded-full w-4 h-4 flex items-center justify-center text-[10px] cursor-pointer leading-none",title:"Hapus foto ini",children:"Ã"})]},he+De)),(!d.imageUrls||d.imageUrls.length===0)&&!d.imageUrl&&a.jsx("div",{className:"col-span-full py-2 text-center text-stone-400 font-mono text-[8px] border border-dashed border-stone-200",children:"Belum ada gambar outlet."})]}),a.jsxs("div",{className:"bg-[#F5F2ED] p-2 border border-black/5 rounded-xs space-y-1",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold text-stone-700 block",children:"Pilih & Upload File Gambar:"}),a.jsx("input",{type:"file",accept:"image/*",className:"text-[9px] w-full block cursor-pointer",onChange:async he=>{var Be;const De=(Be=he.target.files)==null?void 0:Be[0];if(De)try{const it=await ks(De);if(it){const hn=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:it})})).json();if(hn.success&&hn.imageUrl){const Et=[...d.imageUrls||(d.imageUrl?[d.imageUrl]:[]),hn.imageUrl];de(d.id,{imageUrl:Et[0]||"",imageUrls:Et}),Ee("Gambar berhasil diupload!","success")}else Ee("Gagal menyimpan gambar ke server.","error")}}catch(it){console.error("Dining upload failed:",it),Ee("Gagal upload gambar.","error")}}}),a.jsxs("div",{className:"flex items-center gap-1 my-1",children:[a.jsx("div",{className:"flex-1 h-px bg-black/5"}),a.jsx("span",{className:"text-[7px] text-[#1A1A1A]/40 font-mono uppercase font-bold",children:"ATAU"}),a.jsx("div",{className:"flex-1 h-px bg-black/5"})]}),a.jsxs("button",{type:"button",onClick:()=>{Qt({callback:he=>{const Be=[...d.imageUrls||(d.imageUrl?[d.imageUrl]:[]),he];de(d.id,{imageUrl:Be[0]||"",imageUrls:Be})}}),an(),pa(!0)},className:"w-full py-1.5 border border-dashed border-black/20 text-[9px] font-mono font-bold uppercase hover:bg-black/5 transition-colors cursor-pointer flex items-center justify-center gap-1 bg-white",children:[a.jsx(el,{size:11}),"Pilih dari Image Library"]})]}),a.jsxs("div",{className:"flex flex-col gap-1 mt-2",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold text-stone-500",children:"Edit Manual URL Gambar (Pisahkan Koma)"}),a.jsx("textarea",{rows:2,defaultValue:d.imageUrls?d.imageUrls.join(", "):(d.imageUrl?[d.imageUrl]:[]).join(", "),placeholder:"https://..., https://...",className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onBlur:he=>{const De=he.target.value.split(",").map(Be=>
399Be.trim()).filter(Boolean);de(d.id,{imageUrl:De[0]||d.imageUrl,imageUrls:De})}},d.id)]})]}),a.jsxs("div",{className:"flex flex-col gap-1 pt-1",children:[a.jsx("label",{className:"text-[10px] font-mono font-bold text-[#8F9A86] flex items-center gap-1",children:"ð 5. Dokumen PDF Menu Makanan / Minuman"}),d.menuPdfUrl?a.jsxs("div",{className:"bg-stone-50 p-2 border border-green-800/10 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[a.jsx("span",{className:"text-[10px] font-bold text-green-800",children:"â
PDF Menu Tersimpan"}),a.jsxs("span",{className:"text-[7.5px] text-stone-500 font-mono truncate max-w-[80px]",children:["(",d.menuPdfUrl.startsWith("data:")?"Base64 Doc":"External Link",")"]})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("a",{href:d.menuPdfUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[9px] text-[#8F9A86] hover:underline font-bold font-mono",children:"LIHAT"}),a.jsx("button",{type:"button",onClick:()=>{de(d.id,{menuPdfUrl:""})},className:"text-[9px] text-red-600 hover:underline font-bold font-mono cursor-pointer",children:"HAPUS"})]})]}):a.jsx("span",{className:"text-[8.5px] text-stone-400 font-mono block",children:"Belum ada dokumen PDF menu terunggah."}),a.jsxs("div",{className:"bg-[#F5F2ED] p-2 border border-black/5 space-y-1 mt-1",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold text-stone-700 block",children:"Pilih File PDF dari Komputer:"}),a.jsx("input",{type:"file",accept:"application/pdf",className:"text-[9px] w-full block cursor-pointer",onChange:he=>{var Be;const De=(Be=he.target.files)==null?void 0:Be[0];if(De){const it=new FileReader;it.onloadend=()=>{const La=it.result;de(d.id,{menuPdfUrl:La}),Ee("PDF Menu berhasil diunggah!","success")},it.readAsDataURL(De)}}})]}),a.jsxs("div",{className:"flex flex-col gap-1 mt-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold text-stone-500",children:"Atau Isi URL PDF Menu secara Manual:"}),a.jsx("input",{type:"text",value:d.menuPdfUrl||"",placeholder:"https://contoh.com/menu.pdf",className:"bg-[#F5F2ED] text-[9px] px-2 py-1.5 border outline-none font-mono",onChange:he=>de(d.id,{menuPdfUrl:he.target.value})})]})]})]})]},d.id)})})]})]}),zt==="arts"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-3 max-w-xl",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 text-stone-500",children:"Judul & Kutipan Utama Desain Section 03"}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Judul Pokok Seni"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.artSoul.title,onChange:d=>Ne({title:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Kutipan Paragraf Kisah Pendirian"}),a.jsx("textarea",{rows:3,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-light leading-relaxed",value:R.artSoul.subtitle,onChange:d=>Ne({subtitle:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Kuotasi Eksklusif Ruben Kosenda"}),a.jsx("textarea",{rows:3,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-light leading-relaxed font-serif italic",value:R.artSoul.quoteText,onChange:d=>Ne({quoteText:d.target.value})})]})]}),a.jsxs("div",{className:"space-y-3 mt-6 border-t border-black/10 pt-4",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-2",children:[a.jsxs("div",{children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold text-stone-500",children:"MANAGE HOTEL ART GALLERY (Koleksi Galeri Foto)"}),a.jsx("p",{className:"text-[9px] text-stone-400 font-sans",children:"Foto-foto di bawah ini akan dirotasi secara elegan dengan transisi 3 gambar di halaman beranda."})]}),a.jsx("button",{type:"button",onClick:()=>{_s(!Ft),Fl(""),Ul(""),Jo(""),ns("")},className:"bg-black text-white text-[10px] uppercase font-mono px-3 py-1.5 font-bold hover:bg-stone-800 transition-colors",children:Ft?"Tutup Form Tambah":"+ Tambah Foto Galeri"})]}),Ft&&a.jsxs("div",{className:"p-4 bg-stone-100 border border-black/10 space-y-3 max-w-xl text-xs rounded-none",children:[a.jsx("span",{className:"text-[9px] font-mono tracking-wider up
399percase font-bold text-stone-600 block",children:"Form Karya Seni Galeri Baru"}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Judul Karya / Foto"}),a.jsx("input",{type:"text",placeholder:"Contoh: Retro Lobby Bookcase",value:zl,className:"bg-white text-[10px] px-2.5 py-1.5 border border-black/10 outline-none font-medium",onChange:d=>Fl(d.target.value)})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Label / Tag Kategori"}),a.jsx("input",{type:"text",placeholder:"Contoh: RETRO VIBES",value:Zo,className:"bg-white text-[10px] px-2.5 py-1.5 border border-black/10 outline-none font-mono",onChange:d=>Ul(d.target.value)})]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Deskripsi / Keterangan Karya"}),a.jsx("textarea",{placeholder:"Tulis rincian atau cerita di balik foto ini...",rows:2,value:Bl,className:"bg-white text-[10px] px-2.5 py-1.5 border border-black/10 outline-none font-sans font-light leading-relaxed",onChange:d=>Jo(d.target.value)})]}),a.jsxs("div",{className:"bg-white p-3 border border-black/5 space-y-2",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold text-stone-500",children:"Pilih & Upload File Foto"}),a.jsx("input",{type:"file",accept:"image/*",className:"text-[9px] block w-full cursor-pointer mb-1",onChange:async d=>{var ie;const M=(ie=d.target.files)==null?void 0:ie[0];if(M)try{const ae=await ks(M);if(ae){const je=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:ae})})).json();je.success&&je.imageUrl?(ns(je.imageUrl),Ee("Gambar berhasil diupload & disimpan ke library!","success")):Ee("Gagal menyimpan gambar ke server.","error")}}catch(ae){console.error("Art upload failed:",ae),Ee("Gagal upload gambar.","error")}}}),a.jsx("div",{className:"flex items-center gap-1.5 my-1",children:a.jsx("span",{className:"text-[7.5px] text-[#1A1A1A]/40 font-mono uppercase font-bold",children:"ATAU"})}),a.jsxs("button",{type:"button",onClick:()=>{Qt({callback:d=>{ns(d)}}),an(),pa(!0)},className:"w-full py-1.5 border border-dashed border-black/20 text-[9px] font-mono font-bold uppercase hover:bg-black/5 transition-colors cursor-pointer flex items-center justify-center gap-1 bg-white",children:[a.jsx(el,{size:11}),"Pilih dari Image Library"]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"h-px bg-stone-200 flex-1"}),a.jsx("span",{className:"text-[7.5px] text-stone-400 font-mono",children:"ATAU INPUT URL LANGSUNG"}),a.jsx("div",{className:"h-px bg-stone-200 flex-1"})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold text-stone-500",children:"Manual URL Image"}),a.jsx("input",{type:"text",placeholder:"/uploads/gallery-item.png",value:Ra,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onChange:d=>ns(d.target.value)})]})]}),Ra&&a.jsx("div",{className:"mt-2 p-1 bg-white border border-black/5 inline-block",children:a.jsx("img",{src:Ra,alt:"Preview",className:"h-20 w-auto object-cover"})}),a.jsx("button",{type:"button",onClick:()=>{if(!zl||!Ra){alert("Mohon isi judul karya dan pilih foto terlebih dahulu.");return}Z({title:zl,tag:Zo||"COLLECTION",description:Bl,imageUrl:Ra}),_s(!1),Fl(""),Ul(""),Jo(""),ns(""),setTimeout(()=>dn(),300)},className:"w-full py-2 bg-emerald-700 text-white font-mono text-[9px] text-center uppercase tracking-widest font-bold hover:bg-emerald-800 cursor-pointer block",children:"Simpan Foto Baru Ke Gallery"})]}),R.artSoul.items.length===0?a.jsx("div",{className:"bg-stone-50 border border-stone-200/60 p-10 text-center text-stone-400 font-mono text-xs uppercase tracking-wider",children:"ð¼ï¸ Belum ada foto galeri. Tambah foto baru menggunakan tombol di atas."}):a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:R.artSoul.items.map(d=>a.jsxs("div",{className:"p-3 border border-black/10 bg-stone-50/50 space-y-2 text-xs relative flex flex-col justify-between",children:[a.jsxs("div",{children:[a.jsx("div",{className:"aspect-[4/3] bg-stone-200 overflow-hidden mb-2 relative group border border-black/5",children:a.jsx("img",{src:d.imageUrl,alt:d.title,className:"w-full h-full object-cover",referrerPolicy:"no-referrer"})}),a.jsx("span",{className:"font-extrabold text-[#1A1A1A] block",children:d.title}),a.jsx("span",{className:"text-[8px] bg-[#C48810] text-white py-0.5 px-1.5 font-mono inline-block font-bold",children:d.tag}),a.jsx("p",{className:"text-[10px] font-sans text-stone-600 line-clamp-3 leading-relaxed font-light mt-1",children:d.description})]}),a.jsxs("div",{className:"space-y-1 pt-2 border-t border-black/5",children:[a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsx("button",{type:"button",onClick:()=>{Ea(d.id===En?null:d.id),En===d.id&&setTimeout(()=>dn(),300)},className:"py-1.5 bg-[#1A1A1A] text-white font-mono text-[9px] text-center uppercase tracking-widest font-bold cursor-pointer block",children:En===d.id?"Selesai":"Edit Details"}),a.jsx("button",{type:"button",onClick:()=>{confirm(`Apakah Anda yakin ingin menghapus "${d.title}" dari galeri?`)&&(se(d.id),En===d.id&&Ea(null),setTimeout(()=>dn(),300))},className:"py-1.5 bg-rose-800 text-white font-mono text-[9px] text-center uppercase tracking-widest font-bold cursor-pointer block",children:"Hapus"})]}),En===d.id&&a.jsxs("div",{className:"p-3 bg-white border border-black/10 space-y-2.5 mt-2 text-left",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Judul Karya"}),a.jsx("input",{type:"text",value:d.title,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-sans font-bold",onChange:M=>O(d.id,{title:M.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Label / Tag"}),a.jsx("input",{type:"text",value:d.tag||"",className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onChange:M=>O(d.id,{tag:M.target.value})})]}),a.jsxs("div",{className:"bg-[#F5F2ED] p-2 border border-black/5 space-y-1",children:[a.jsx("label",{className:"text-[8.5px] font-mono font-bold block text-stone-700",children:"Ganti Foto (Upload File):"}),a.jsx("input",{type:"file",accept:"image/*",className:"text-[9px] block w-full cursor-pointer mb-1",onChange:async M=>{var ae;const ie=(ae=M.target.files)==null?void 0:ae[0];if(ie)try{const Te=await ks(ie);if(Te){const he=await(await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dataUrl:Te})})).json();he.success&&he.imageUrl?(O(d.id,{imageUrl:he.imageUrl}),Ee("Gambar berhasil diupload & disimpan ke library!","success")):Ee("Gagal menyimpan gambar ke server.","error")}}catch(Te){console.error("Art edit upload failed:",Te),Ee("Gagal upload gambar.","error")}}}),a.jsxs("div",{className:"flex items-center gap-1 my-1",children:[a.jsx("div",{className:"flex-1 h-px bg-black/5"}),a.jsx("span",{className:"text-[7px] text-[#1A1A1A]/40 font-mono uppercase font-bold",children:"ATAU"}),a.jsx("div",{className:"flex-1 h-px bg-black/5"})]}),a.jsxs("button",{type:"button",onClick:()=>{Qt({callback:M=>{O(d.id,{imageUrl:M})}}),an(),pa(!0)},className:"w-full py-1.5 border border-dashed border-black/20 text-[9px] font-mono font-bold uppercase hover:bg-black/5 transition-colors cursor-pointer flex items-center justify-center gap-1 bg-white",children:[a.jsx(el,{size:11}),"Pilih dari Image Library"]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Manual Image URL"}),a.jsx("input",{type:"text",value:d.imageUrl,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onChange:M=>O(d.id,{imageUrl:M.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Deskripsi"}),a.jsx("textarea",{value:d.description,rows:3,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-sans font-light leading-snug",onChange:M=>O(d.id,{description:M.target.value})})]})]})]})]},d.id))})]})]}),zt==="location"&&a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-3 max-w-xl",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 text-stone-500",children:"Data Lokasi Penunjuk Section 04"}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Judul Utama Lokasi"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.location.title,onChange:d=>me({title:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Kutipan Paragraf Lokasi"}),a.jsx("textarea",{rows:3,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-light leading-relaxed",value:R.location.subtitle,onChange:d=>me({subtitle:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Papan Alamat Kompleks"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.location.addressDetail
399s,onChange:d=>me({addressDetails:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Nomor Telepon Kontak"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.location.phoneDetails||"",onChange:d=>me({phoneDetails:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Keterangan Koordinat & Shuttle"}),a.jsx("input",{type:"text",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold",value:R.location.coordinatesLabel||"",onChange:d=>me({coordinatesLabel:d.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Link Iframe / URL Peta Interaktif (OpenStreetMap / Google Maps)"}),a.jsx("textarea",{rows:3,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-mono leading-tight",placeholder:"Contoh: https://www.google.com/maps?q=-6.1852,106.8228&z=15&output=embed",value:R.location.embedMapUrl||"",onChange:d=>me({embedMapUrl:d.target.value})}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono mt-0.5 leading-tight",children:"* Anda dapat memasukkan URL embed murni atau menyalin kode <iframe> bawaan dari Google Maps atau OpenStreetMap. Peta ini gratis tanpa limitasi kuota API."})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Latitude (Garis Lintang)"}),a.jsx("input",{type:"number",step:"any",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:R.location.latitude??"",onChange:d=>me({latitude:d.target.value?parseFloat(d.target.value):void 0}),placeholder:"-6.1852"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Longitude (Garis Bujur)"}),a.jsx("input",{type:"number",step:"any",className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:R.location.longitude??"",onChange:d=>me({longitude:d.target.value?parseFloat(d.target.value):void 0}),placeholder:"106.8228"})]})]})]}),a.jsxs("div",{className:"space-y-3 mt-6 border-t border-black/10 pt-4",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold text-stone-500",children:"Bento Tempat Menarik Terdekat (Edit Places)"}),a.jsx("button",{type:"button",onClick:()=>Fi(!ss),className:"bg-[#1A1A1A] hover:bg-[#333333] text-white font-mono text-[9px] font-bold uppercase tracking-widest px-3.5 py-1.5 transition-colors duration-250 cursor-pointer",children:ss?"Tutup Form":"+ Tambah Tempat Menarik"})]}),ss&&a.jsxs("div",{className:"p-4 bg-stone-50 border border-black/15 text-xs text-left grid grid-cols-1 sm:grid-cols-2 gap-4 animate-fadeIn",children:[a.jsx("div",{className:"sm:col-span-2 border-b border-black/5 pb-2",children:a.jsx("h4",{className:"font-mono text-[10px] uppercase font-bold tracking-wider text-[#1A1A1A]",children:"Form Tambah Tempat Menarik Baru"})}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Nama Tempat / Landmark"}),a.jsx("input",{type:"text",className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-sans",value:Ll,onChange:d=>nn(d.target.value),placeholder:"Contoh: Sarinah Plaza"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Kategori / Tipe Trans
399port"}),a.jsxs("select",{className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",value:is,onChange:d=>Wo(d.target.value),children:[a.jsx("option",{value:"Transit",children:"Transit (mrt / stasiun / busway)"}),a.jsx("option",{value:"Berkendara",children:"Berkendara (mobil / taksi)"}),a.jsx("option",{value:"Berjalan Kaki",children:"Berjalan Kaki (pedestrian)"}),a.jsx("option",{value:"Hub Belanja",children:"Pusat Perbelanjaan / Wisata Kuliner"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Jarak & Durasi Menuju Lokasi"}),a.jsx("input",{type:"text",className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-mono font-bold",value:er,onChange:d=>ls(d.target.value),placeholder:"Contoh: 5-Min walk / 10-Min drive"})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 sm:col-span-2",children:[a.jsx("label",{className:"text-[9px] uppercase font-mono font-bold",children:"Keterangan Sing
399kat"}),a.jsx("textarea",{rows:2,className:"bg-white border border-black/15 px-3 py-2 outline-none focus:border-black font-sans leading-relaxed",value:tr,onChange:d=>_l(d.target.value),placeholder:"Tuliskan daya tarik utama atau tip akses terdekat..."})]}),a.jsxs("div",{className:"sm:col-span-2 flex justify-end gap-3 pt-2",children:[a.jsx("button",{type:"button",onClick:()=>{Fi(!1),nn(""),_l("")},className:"px-4 py-2 border border-black/20 font-mono text-[9px] font-bold uppercase tracking-widest bg-transparent hover:bg-black/5 cursor-pointer",children:"Batal"}),a.jsx("button",{type:"button",onClick:()=>{if(!Ll.trim()){alert("Silakan masukkan Nama Tempat.");return}T({name:Ll,type:is,distance:er,description:tr}),nn(""),_l(""),Fi(!1)},className:"px-5 py-2 bg-[#8F9A86] hover:bg-[#7e8a76] text-white font-mono text-[9px] font-bold uppercase tracking-widest cursor-pointer",children:"Simpan Tempat"})]})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-3 text-left",children:R.location.places.map(d=>a.jsxs("div",{className:"p-3 border border-black/10 bg-stone-50/50 space-y-1.5 text-xs flex flex-col justify-between",children:[a.jsxs("div",{children:[a.jsx("span",{className:"font-extrabold text-[#1A1A1A] block",children:d.name}),a.jsxs("div",{className:"flex justify-between items-center mt-1",children:[a.jsx("span",{className:"text-[8px] uppercase tracking-wider text-amber-900 font-bold leading-none",children:d.distance}),a.jsx("span",{className:"text-[8px] uppercase tracking-widest text-[#1A1A1A]/40 font-mono font-bold",children:d.type||"Transit"})]}),a.jsx("p",{className:"text-[10px] font-sans text-stone-600 line-clamp-3 leading-tight font-light mt-1.5",children:d.description})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex gap-1 pt-2 border-t border-black/5 mt-3",children:[a.jsx("button",{type:"button",onClick:()=>{ed(d.id===Uo?null:d.id)},className:"flex-1 py-1 bg-[#1A1A1A] text-white font-mono text-[8px] text-center uppercase tracking-widest font-bold cursor-pointer",children:Uo===d.id?"Selesai":"Edit"}),a.jsx("button",{type:"button",onClick:()=>{confirm(`Apakah Anda yakin ingin menghapus "${d.name}" dari tempat menarik terdekat?`)&&B(d.id)},className:"px-2 py-1 bg-red-900 hover:bg-red-800 text-white font-mono text-[8px] text-center uppercase font-bold cursor-pointer",title:"Hapus tempat",children:"Hapus"})]}),Uo===d.id&&a.jsxs("div",{className:"p-2 bg-white border border-black/10 space-y-2 mt-2",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Nama Tempat"}),a.jsx("input",{type:"text",value:d.name,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-sans font-bold",onChange:M=>ye(d.id,{name:M.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Kategori / Tipe"}),a.jsxs("select",{value:d.type||"Transit",className:"bg-[#F5F2ED] text-[8px] px-2 py-1 border outline-none font-mono",onChange:M=>ye(d.id,{type:M.target.value}),children:[a.jsx("option",{value:"Transit",children:"Transit"}),a.jsx("option",{value:"Berkendara",children:"Berkendara"}),a.jsx("option",{value:"Berjalan Kaki",children:"Berjalan Kaki"}),a.jsx("option",{value:"Hub Belanja",children:"Hub Belanja"})]})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Jarak (Distance)"}),a.jsx("input",{type:"text",value:d.distance,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-mono",onChange:M=>ye(d.id,{distance:M.target.value})})]}),a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("label",{className:"text-[8px] font-mono font-bold",children:"Keterangan"}),a.jsx("textarea",{value:d.description,rows:3,className:"bg-[#F5F2ED] text-[9px] px-2 py-1 border outline-none font-sans font-light leading-tight",onChange:M=>ye(d.id,{description:M.target.value})})]})]})]})]},d.id))})]})]}),zt==="ai_concierge"&&a.jsx("div",{className:"space-y-6",children:a.jsxs("div",{className:"space-y-4 max-w-2xl",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 text-stone-500",children:"Konfigurasi AI Concierge & Chat (Wanda)"}),a.jsx("p",{className:"text-[#1A1A1A]/80 text-xs leading-relaxed",children:"Anda dapat mengkustomisasi kepribadian wicara, gaya penulisan, aturan perilaku, dan data lobi asisten AI Anda secara dinamis. Perubahan asisten AI ini akan langsung disinkronkan ke database PostgreSQL dan merespon tamu secara otomatis."}),a.jsxs("div",{className:"flex flex-col gap-1.5 pt-2",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"System Prompt / Instruksi Perilaku AI"}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono",children:"Diberikan ke mesin Google Gemini AI"})]}),a.jsx("textarea",{rows:8,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono leading-relaxed",placeholder:"Contoh: Anda bernama Wanda, asisten hotel butik Kosenda Jakarta. Jawablah pesan dengan penuh sopan santun dan tawarkan kamar promo KOSENDALOCAL...",value:R.aiSystemInstruction||"",onChange:d=>oe({aiSystemInstruction:d.target.value})}),a.jsx("p",{className:"text-[9px] text-[#1A1A1A]/50 -mt-1 font-sans leading-relaxed",children:'ð¡ Kosongkan input ini untuk menggunakan instruksi asisten standar bawaan ("Wanda Virtual Butler Concierge").'})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 pt-4 border-t border-black/5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold",children:"Teks Jawaban Cadangan (Emergency Auto-Reply)"}),a.jsx("textarea",{rows:3,className:"bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold leading-relaxed",placeholder:"Pesan cadangan otomatis jika server asisten beristirahat...",value:R.aiFallbackReply||"",onChange:d=>oe({aiFallbackReply:d.target.value})}),a.jsx("p",{className:"text-[9px] text-[#1A1A1A]/50 -mt-1 font-sans leading-relaxed",children:"ð¡ Pesan ini akan dikirim secara instan ke tamu jika asisten AI sedang mengalami kendala jaringan atau batas kuota API tercapai."})]}),a.jsxs("div",{className:"flex flex-col gap-1.5 pt-4 border-t border-black/5",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-red-700",children:"Tindakan Pemeliharaan Chat"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-[10px] leading-relaxed font-light",children:"Gunakan tombol pembersihan di bawah ini untuk menghapus daftar riwayat percakapan masuk di admin panel secara instan guna merapikan database lokal frontend & backend."}),a.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.jsxs("button",{type:"button",onClick:()=>{window.confirm("Apakah Anda yakin ingin membersihkan seluruh percakapan masuk (Sian Budi, Maya Indah, dll) di admin & mengosongkan riwayat?")&&(qa(),alert("Seluruh chat thread berhasil dibersihkan secara total."))},className:"px-3 py-1.5 bg-red-700 hover:bg-red-800 text-white font-mono text-[9px] uppercase tracking-wider font-bold transition-all cursor-pointer",children:["Bersihkan Seluruh Riwayat Chat (",
399we.length," Percakapan)"]})})]})]})}),zt==="typography"&&a.jsx("div",{className:"space-y-6",children:a.jsxs("div",{className:"space-y-4 max-w-xl text-left",children:[a.jsx("span",{className:"text-[10px] tracking-widest uppercase font-mono block font-bold border-b pb-1 text-stone-500",children:"Kustomisasi Font & Tipografi Website"}),a.jsx("p",{className:"text-[#1A1A1A]/80 text-xs leading-relaxed font-sans",children:"Atur jenis huruf (font) yang digunakan di seluruh halaman beranda (homepage) Kosenda Hotel. Anda dapat memilih dari daftar font Google Fonts terkurasi untuk memberikan nuansa visual yang sesuai dengan selera estetika Anda."}),a.jsxs("div",{className:"grid grid-cols-1 gap-5 pt-2",children:[a.jsxs("div",{className:"bg-[#F5F2ED]/40 p-4 border border-black/5 space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-stone-700",children:"Header 1 (Main Hero Title)"}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono",children:"h1 & .font-h1"})]}),a.jsx("select",{value:((Yi=R.typography)==null?void 0:Yi.h1Font)||"Playfair Display",onChange:d=>fe({h1Font:d.target.value}),className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",children:["Inter","Playfair Display","Space Grotesk","Outfit","Syne","Cinzel","Cormorant Garamond","Montserrat","Lora","JetBrains Mono","Plus Jakarta Sans","EB Garamond"].map(d=>a.jsx("option",{value:d,children:d},d))}),a.jsxs("div",{className:"pt-2 border-t border-stone-200/50",children:[a.jsx("span",{className:"text-[8px] font-mono uppercase tracking-wider text-stone-400 block mb-1",children:"Preview"}),a.jsx("p",{style:{fontFamily:(($s=R.typography)==null?void 0:$s.h1Font)||"Playfair Display"},className:"text-xl font-bold tracking-tight text-stone-900",children:"Kosenda: A Boutique Urban Escape"})]})]}),a.jsxs("div",{className:"bg-[#F5F2ED]/40 p-4 border border-black/5 space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-stone-700",children:"Header 2 (Section Main Headings)"}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono",children:"h2 & .font-h2"})]}),a.jsx("select",{value:((Xi=R.typography)==null?void 0:Xi.h2Font)||"Space Grotesk",onChange:d=>fe({h2Font:d.target.value}),className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",children:["Inter","Playfair Display","Space Grotesk","Outfit","Syne","Cinzel","Cormorant Garamond","Montserrat","Lora","JetBrains Mono","Plus Jakarta Sans","EB Garamond"].map(d=>a.jsx("option",{value:d,children:d},d))}),a.jsxs("div",{className:"pt-2 border-t border-stone-200/50",children:[a.jsx("span",{className:"text-[8px] font-mono uppercase tracking-wider text-stone-400 block mb-1",children:"Preview"}),a.jsx("p",{style:{fontFamily:((gr=R.typography)==null?void 0:gr.h2Font)||"Space Grotesk"},className:"text-lg font-bold tracking-tight text-stone-900",children:"Authentic Flavors & Curated Art"})]})]}),a.jsxs("div",{className:"bg-[#F5F2ED]/40 p-4 border border-black/5 space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-stone-700",children:"Header 3 (Card Titles & Subheadings)"}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono",children:"h3 & .font-h3"})]}),a.jsx("select",{value:((qn=R.typography)==null?void 0:qn.h3Font)||"Space Grotesk",onChange:d=>fe({h3Font:d.target.value}),className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",children:["Inter","Playfair Display","Space Grotesk","Outfit","Syne","Cinzel","Cormorant Garamond","Montserrat","Lora","JetBrains Mono","Plus Jakarta Sans","EB Garamond"].map(d=>a.jsx("option",{value:d,children:d},d))}),a.jsxs("div",{className:"pt-2 border-t border-stone-200/50",children:[a.jsx("span",{className:"text-[8px] font-mono uppercase tracking-wider text-stone-400 block mb-1",children:"Preview"}),a.jsx("p",{style:{fontFamily:((yr=R.typography)==null?void 0:yr.h3Font)||"Space Grotesk"},className:"text-base font-semibold text-stone-900",children:"Petita Cozy Room & Waha Kitchen"})]})]}),a.jsxs("div",{className:"bg-[#F5F2ED]/40 p-4 border border-black/5 space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-stone-700",children:"Header 4 (Small Section Titles)"}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono",children:"h4 & .font-h4"})]}),a.jsx("select",{value:((fn=R.typography)==null?void 0:fn.h4Font)||"Inter",onChange:d=>fe({h4Font:d.target.value}),className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",children:["Inter","Playfair Display","Space Grotesk","Outfit","Syne","Cinzel","Cormorant Garamond","Montserrat","Lora","JetBrains Mono","Plus Jakarta Sans","EB Garamond"].map(d=>a.jsx("option",{value:d,children:d},d))}),a.jsxs("div",{className:"pt-2 border-t border-stone-200/50",children:[a.jsx("span",{className:"text-[8px] font-mono uppercase tracking-wider text-stone-400 block mb-1",children:"Preview"}),a.jsx("p",{style:{fontFamily:(($l=R.typography)==null?void 0:$l.h4Font)||"Inter"},className:"text-sm font-semibold tracking-wide text-stone-800",children:"Room Specifications & Amenities"})]})]}),a.jsxs("div",{className:"bg-[#F5F2ED]/40 p-4 border border-black/5 space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("label",{className:"text-[10px] uppercase font-mono font-bold text-stone-700",children:"Body Font (General Text & Paragraphs)"}),a.jsx("span",{className:"text-[9px] text-[#1A1A1A]/50 font-mono",children:"body, p, span, div"})]}),a.jsx("select",{value:((Ql=R.typography)==null?void 0:Ql.bodyFont)||"Inter",onChange:d=>fe({bodyFont:d.target.value}),className:"w-full bg-[#F5F2ED] text-xs border border-black/15 px-3 py-2 outline-none focus:border-black font-semibold font-mono",children:["Inter","Playfair Display","Space Grotesk","Outfit","Syne","Cinzel","Cormorant Garamond","Montserrat","Lora","JetBrains Mono","Plus Jakarta Sans","EB Garamond"].map(d=>a.jsx("option",{value:d,children:d},d))}),a.jsxs("div",{className:"pt-2 border-t border-stone-200/50",children:[a.jsx("span",{className:"text-[8px] font-mono uppercase tracking-wider text-stone-400 block mb-1",children:"Preview"}),a.jsx("p",{style:{fontFamily:((mn=R.typography)==null?void 0:mn.bodyFont)||"Inter"},className:"text-xs text-stone-700 leading-relaxed",children:"Kosenda was born of a dream: to construct a hand-tailored design hotel that honors Batavia's vibrant history."})]})]})]})]})}),a.jsxs("div",{className:"pt-6 border-t border-black/10 flex flex-col sm:flex-row items-center justify-between gap-4",children:[a.jsx("span",{className:"text-[10px] uppercase font-mono tracking-wider font-bold text-stone-505",children:Kt?"â ï¸ Ada perubahan yang belum disimpan ke database":"â Semua konfigurasi website telah tersimpan & aktif"}),a.jsx("button",{type:"button",onClick:dn,disabled:Bn,className:`px-6 py-2.5 font-mono text-[10px] uppercase font-bold tracking-widest transition-all duration-300 flex items-center gap-2 select-none border cursor-pointer ${Bn?"bg-stone-300 text-stone-500 cursor-not-allowed border-stone-200":Kt?"bg-amber-600 hover:bg-amber-700 text-white border-amber-700 shadow-sm animate-bounce-subtle":"bg-stone-950 hover:bg-stone-850 text-white border-stone-850"}`,children:Bn?a.jsxs(a.Fragment,{children:[a.jsx(Ir,{size:12,className:"animate-spin"}),"Menyimpan Data..."]}):a.jsxs(a.Fragment,{children:[a.jsx(gn,{size:12}),"Simpan Perubahan"]})})]})]})]}),ze==="users"&&a.jsxs("div",{className:"space-y-6 text-left",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-black/10 pb-4 mb-6 gap-4",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"text-xl font-serif font-bold italic",children:"Manajemen User & Member"}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Kelola akun, nomor WhatsApp, alamat tinggal, dan hak akses staf butik"})]}),a.jsxs("button",{onClick:Il,className:"px-4 py-2 bg-[#1A1A1A] text-white hover:bg-black/80 font-mono text-[10px] font-bold uppercase tracking-wider transition-all flex items-center gap-1.5 cursor-pointer",children:[a.jsx($r,{size:14}),"Tambah Staf / Member Baru"]})]}),oa&&a.jsxs("form",{onSubmit:fd,className:"bg-white border-2 border-amber-900/10 p-5 space-y-4 mb-8",children:[a.jsxs("div",{className:"flex justify-between items-center border-b border-black/10 pb-3",children:[a.jsx("span",{className:"text-xs font-serif font-bold uppercase tracking-wider text-amber-900",children:cn?"Edit Data User / Member":"Buat Akun Member / Staf Baru"}),a.jsx("button",{type:"button",onClick:()=>cs(!1),className:"text-[#1A1A1A]/50 hover:text-black font-mono text-[9px] uppercase font-bold",children:"[ Batal ]"})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[8px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/60 mb-1",children:"Nama Lengkap *"}),a.jsx("input",{type:"text",required:!0,value:Kl,onChange:d=>_n(d.target.value),placeholder:"Maya Indah",className:"w-full bg-[#F5F2ED] border border-black/10 py-1.5 px-3 text-xs font-medium focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[8px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/60 mb-1",children:"Nomor WhatsApp (Phone) *"}),a.jsx("input",{type:"text",required:!0,value:us,onChange:d=>Vi(d.target.value),placeholder:"+628123456789",className:"w-full bg-[#F5F2ED] border border-black/10 py-1.5 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[8px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/60 mb-1",children:"Alamat Email"}),a.jsx("input",{type:"email",value:Hn,onChange:d=>ya(d.target.value),placeholder:"[email protected]",className:"w-full bg-[#F5F2ED] border border-black/10 py-1.5 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[8px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/60 mb-1",children:"Hak Akses Sistem (Role)"}),a.jsxs("select",{value:un,onChange:d=>va(d.target.value),className:"w-full bg-[#F5F2ED] border border-black/10 py-1.5 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none",children:[a.jsx("option",{value:"member",children:"MEMBER (Hotel Boutique Guest)"}),a.jsx("option",{value:"employee",children:"EMPLOYEE (Internal Staf Admin)"})]})]}),a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx("label",{className:"block text-[8px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/60 mb-1",children:"Alamat Tempat Tinggal Lengkap *"}),a.jsx("textarea",{required:!0,rows:2,value:Vn,onChange:d=>_i(d.target.value),placeholder:"Jl. Wahid Hasyim No. 127, Jakarta Pusat",className:"w-full bg-[#F5F2ED] border border-black/10 py-1.5 px-3 text-xs leading-normal font-light focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[8px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/60 mb-1",children:"Biografi / Catatan Pegawai"}),a.jsx("input",{type:"text",value:ql,onChange:d=>Hi(d.target.value),placeholder:"Specialist designer guest.",className:"w-full bg-[#F5F2ED] border border-black/10 py-1.5 px-3 text-xs leading-normal focus:ring-1 focus:ring-black outline-none"})]})]}),a.jsxs("div",{className:"pt-3 flex gap-2",children:[a.jsx("button",{type:"submit",className:"px-4 py-2 bg-[#1A1A1A] text-white font-mono text-[9px] font-bold uppercase tracking-widest cursor-pointer hover:bg-black/80",children:"Simpan Akun"}),a.jsx("button",{type:"button",onClick:()=>cs(!1),className:"px-4 py-2 bg-transparent border border-black/15 text-[#1A1A1A] font-mono text-[9px] font-bold uppercase tracking-widest cursor-pointer hover:bg-black/5",children:"Batalkan"})]})]}),a.jsxs("div",{className:"bg-white border border-black/10 overflow-hidden shadow-sm",children:[a.jsxs("div",{className:"p-4 bg-stone-50 border-b border-black/10 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3",children:[a.jsxs("span",{className:"text-[10px] uppercase font-mono font-bold text-stone-500 tracking-wider",children:["Database Terdaftar ⢠",y.length," Pengguna Terdaftar"]}),a.jsxs("div",{className:"bg-amber-50/70 text-amber-900 border border-amber-900/10 p-2 text-[10px] font-mono max-w-md leading-relaxed",children:["ð¡ ",a.jsx("strong",{children:"Aturan Staf vs Member:"})," Member didaftarkan otomatis ketika login menggunakan nomor WhatsApp baru yang belum terdaftar. Staf dapat dimanipulasi manual di antarmuka ini."]})]}),a.jsx("div",{className:"overflow-x-auto w-full",children:a.jsxs("table",{className:"w-full text-left border-collapse",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-[#1A1A1A] text-white text-[8px] font-mono uppercase tracking-widest border-b border-black/10",children:[a.jsx("th",{className:"py-3 px-4",children:"Nama & Foto"}),a.jsx("th",{className:"py-3 px-4",children:"Nomor WhatsApp / Email"}),a.jsx("th",{className:"py-3 px-4",children:"Alamat Domisili"}),a.jsx("th",{className:"py-3 px-4",children:"Akses Role"}),a.jsx("th",{className:"py-3 px-4 text-right",children:"Aksi Manajemen"})]})}),a.jsx("tbody",{className:"divide-y divide-black/5 text-[#1A1A1A]",children:y.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"py-8 text-center text-xs font-mono text-[#1A1A1A]/40 uppercase tracking-widest text-[#1A1A1A]/60",children:"Belum ada pengguna terdaftar di sistem."})}):y.map(d=>a.jsxs("tr",{className:"hover:bg-amber-50/20 transition-colors text-xs",children:[a.jsxs("td",{className:"py-3 px-4 flex items-center gap-3",children:[a.jsx("img",{src:d.avatarUrl||"/assets/profile.png",alt:d.name,className:"w-10 h-10 object-cover border border-black/10 bg-stone-100"}),a.jsxs("div",{children:[a.jsx("span",{className:"font-bold text-[#1A1A1A] block",children:d.name}),a.jsx("span",{className:"text-[10px] text-[#1A1A1A]/50 block font-sans italic line-clamp-1 max-w-[150px]",children:d.bio||"No biography."})]})]}),a.jsxs("td",{className:"py-3 px-4 font-mono",children:[a.jsx("span",{className:"font-semibold block",children:d.phone}),a.jsx("span",{className:"text-[10px] text-[#1A1A1A]/60 block",children:d.email||"-"})]}),a.jsx("td",{className:"py-3 px-4 text-[#1A1A1A]/70 leading-relaxed font-light max-w-xs break-words font-sans",children:d.address||a.jsx("span",{className:"italic text-stone-400",children:"Tidak ada alamat"})}),a.jsx("td",{className:"py-3 px-4",children:a.jsx("span",{className:`inline-block px-2.5 py-0.5 font-mono text-[8px] font-bold uppercase tracking-wider ${d.role==="employee"?"bg-[#1A1A1A] text-[#F5F2ED]":"bg-amber-100 text-amber-950 border border-amber-900/10"}`,children:d.role==="employee"?"Staff Admin":"Member"})}),a.jsxs("td",{className:"py-3 px-4 text-right space-x-1 whitespace-nowrap",children:[a.jsx("button",{type:"button",onClick:()=>zc(d),className:"px-2 py-1 bg-[#1A1A1A] text-white hover:bg-black/80 font-mono text-[8px] font-bold uppercase tracking-wider cursor-pointer font-bold",children:"Edit"}),a.jsx("button",{type:"button",onClick:()=>md(d.id),className:"px-2 py-1 bg-red-700 text-white hover:bg-red-800 font-mono text-[8px] font-bold uppercase tracking-wider cursor-pointer font-bold",children:"Hapus"})]})]},d.id))})]})})]})]}),ze==="smtp"&&a.jsxs("div",{className:"space-y-6 text-left",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-black/10 pb-4 mb-4 gap-4",children:[a.jsxs("div",{children:[a.jsxs("h3",{className:"text-xl font-serif font-bold italic flex items-center gap-2",children:[a.jsx(yo,{size:22,className:"text-[#C48810]"}),"SMTP & Email Center Kose
399nda"]}),a.jsx("p",{className:"text-[#1A1A1A]/60 text-xs",children:"Kelola integrasi server SMTP untuk pengiriman balasan pesan, berita promo/news, dan kode OTP verifikasi"})]}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsxs("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-[9px] font-mono font-bold uppercase tracking-wider rounded-full ${Tl?"bg-emerald-100 text-emerald-900 border border-emerald-900/20":"bg-stone-200 text-stone-700"}`,children:[a.jsx(ow,{size:12}),Tl?"SMTP Server Aktif":"SMTP Server Non-Aktif"]})})]}),a.jsxs("div",{className:"flex flex-wrap gap-2 border-b border-black/10 pb-3",children:[a.jsxs("button",{type:"button",onClick:()=>Us("config"),className:`px-4 py-2 text-xs font-mono font-bold uppercase tracking-wider flex items-center gap-2 transition-all cursor-pointer ${Ma==="config"?"bg-[#1A1A1A] text-white shadow-sm":"bg-white border border-black/10 text-[#1A1A1A]/70 hover:bg-stone-100"}`,children:[a.jsx(kg,{size:14}),"Pengaturan Server SMTP"]}),a.jsxs("button",{type:"button",onClick:()=>Us("replay"),className:`px-4 py-2 text-xs font-mono font-bold uppercase tracking-wider flex items-center gap-2 transition-all cursor-pointer ${Ma==="replay"?"bg-[#1A1A1A] text-white shadow-sm":"bg-white border border-black/10 text-[#1A1A1A]/70 hover:bg-stone-100"}`,children:[a.jsx(rm,{size:14}),"Balasan / Replay Email"]}),a.jsxs("button",{type:"button",onClick:()=>Us("news"),className:`px-4 py-2 text-xs font-mono font-bold uppercase tracking-wider flex items-center gap-2 transition-all cursor-pointer ${Ma==="news"?"bg-[#1A1A1A] text-white shadow-sm":"bg-white border border-black/10 text-[#1A1A1A]/70 hover:bg-stone-100"}`,children:[a.jsx(im,{size:14}),"Broadcast News & Promo"]}),a.jsxs("button",{type:"button",onClick:()=>Us("otp"),className:`px-4 py-2 text-xs font-mono font-bold uppercase tracking-wider flex items-center gap-2 transition-all cursor-pointer ${Ma==="otp"?"bg-[#1A1A1A] text-white shadow-sm":"bg-white border border-black/10 text-[#1A1A1A]/70 hover:bg-stone-100"}`,children:[a.jsx(Cu,{size:14}),"Kirim OTP Verifikasi"]}),a.jsxs("button",{type:"button",onClick:()=>Us("logs"),className:`px-4 py-2 text-xs font-mono font-bold uppercase tracking-wider flex items-center gap-2 transition-all cursor-pointer ${Ma==="logs"?"bg-[#1A1A1A] text-white shadow-sm":"bg-white border border-black/10 text-[#1A1A1A]/70 hover:bg-stone-100"}`,children:[a.jsx(Ek,{size:14}),"Log Email (",El.length,")"]})]}),Ma==="config"&&a.jsxs("div",{className:"bg-white border border-black/10 p-6 space-y-6 shadow-sm",children:[a.jsxs("div",{className:"flex justify-between items-center border-b border-black/10 pb-3",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-bold text-sm text-[#1A1A1A]",children:"Konfigurasi Credentials Server SMTP"}),a.jsx("p",{className:"text-[11px] text-[#1A1A1A]/60",children:"Dapat menggunakan Gmail SMTP, Mailtrap, SendGrid, Amazon SES, atau server cPanel hotel Anda."})]}),a.jsxs("label",{className:"flex items-center gap-2 cursor-pointer font-mono text-xs font-bold",children:[a.jsx("input",{type:"checkbox",checked:Tl,onChange:d=>hc(d.target.checked),className:"w-4 h-4 accent-[#1A1A1A]"}),"Aktifkan Layanan Email"]})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"SMTP Host / Server Name *"}),a.jsx("input",{type:"text",value:wl,onChange:d=>Ti(d.target.value),placeholder:"smtp.gmail.com atau mail.kosendahotel.com",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"}),a.jsx("span",{className:"text-[10px] text-stone-500 mt-1 block",children:"Contoh: smtp.gmail.com, smtp.mailgun.org, smtp.office365.com"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"SMTP Port *"}),a.jsx("input",{type:"text",value:Lo,onChange:d=>Ci(d.target.value),placeholder:"465",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none"}),a.jsx("span",{className:"text-[10px] text-stone-500 mt-1 block",children:"465 (SSL) atau 587 (TLS)"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Mode Keamanan (SSL/TLS)"}),a.jsxs("select",{value:Ei?"true":"false",onChange:d=>_o(d.target.value==="true"),className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none",children:[a.jsx("option",{value:"true",children:"SSL / TLS (Port 465)"}),a.jsx("option",{value:"false",children:"STARTTLS / Plain (Port 587 / 25)"})]})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"SMTP Username / Email Akun *"}),a.jsx("input",{type:"text",value:Ct,onChange:d=>Mn(d.target.value),placeholder:"[email protected] atau [email protected]",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"SMTP Password / App Password *"}),a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:Vo?"text":"password",value:Di,onChange:d=>Os(d.target.value),placeholder:"Kata sandi SMTP atau Google App Password 16 karakter",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 pr-10 text-xs font-mono focus:ring-1 focus:ring-black outline-none"}),a.jsx("button",{type:"button",onClick:()=>Ho(!Vo),className:"absolute right-3 top-2.5 text-stone-500 hover:text-black cursor-pointer",children:Vo?a.jsx(gk,{size:16}):a.jsx(x0,{size:16})})]}),a.jsx("span",{className:"text-[10px] text-stone-500 mt-1 block",children:"Untuk Gmail: Gunakan App Password dari Google Account Security"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Nama Pengirim (Sender Display Name)"}),a.jsx("input",{type:"text",value:Sl,onChange:d=>Rs(d.target.value),placeholder:"Kosenda Hotel Admin",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-medium focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Email Pengirim (Sender From Address)"}),a.jsx("input",{type:"email",value:zs,onChange:d=>Po(d.target.value),placeholder:"[email protected]",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"})]})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-stretch sm:items-center gap-3 pt-4 border-t border-black/10",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("button",{type:"button",onClick:Qo,className:"px-5 py-2.5 bg-[#1A1A1A] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-black/80 transition-all flex items-center justify-center gap-2 cursor-pointer",children:[a.jsx(JN,{size:16}),"Simpan Pengaturan SMTP"]}),a.jsxs("button",{type:"button",onClick:Cc,disabled:Da==="testing",className:"px-5 py-2.5 bg-[#C48810] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-[#a3700a] transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50",children:[a.jsx(Ir,{size:16,className:Da==="testing"?"animate-spin":""}),Da==="testing"?"Menguji Server...":"Uji Server & Kirim Test Email"]})]}),a.jsx("span",{className:"text-[10px] font-mono text-stone-500",children:"Disimpan aman di PostgreSQL Database"})]}),pc&&a.jsxs("div",{className:`p-4 border text-xs font-mono rounded flex items-start gap-3 ${Da==="success"?"bg-emerald-50 text-emerald-900 border-emerald-300":Da==="error"?"bg-red-50 text-red-900 border-red-300":"bg-amber-50 text-amber-900 border-amber-300"}`,children:[Da==="success"&&a.jsx(gn,{size:18,className:"text-emerald-700 shrink-0 mt-0.5"}),Da==="error"&&a.jsx(sm,{size:18,className:"text-red-700 shrink-0 mt-0.5"}),Da==="testing"&&a.jsx(Ir,{size:18,className:"animate-spin text-amber-700 shrink-0 mt-0.5"}),a.jsxs("div",{children:[a.jsx("strong",{className:"block font-bold",children:Da==="success"?"Koneksi SMTP Berhasil!":Da==="error"?"Gagal Menghubungkan SMTP":"Sedang Pengujian"}),a.jsx("p",{className:"mt-1 leading-relaxed",children:pc})]})]})]}),Ma==="replay"&&a.jsxs("div",{className:"bg-white border border-black/10 p-6 space-y-6 shadow-sm",children:[a.jsxs("div",{className:"border-b border-black/10 pb-3",children:[a.jsxs("h4",{className:"font-bold text-sm text-[#1A1A1A] flex items-center gap-2",children:[a.jsx(rm,{size:16,className:"text-[#C48810]"}),"Form Kirim Balasan / Replay Email Tamu"]}),a.jsx("p",{className:"text-[11px] text-[#1A1A1A]/60",children:"Gunakan form ini untuk mengirim pesan balasan resmi kepada tamu yang mengajukan pertanyaan, komplain, atau reservasi khusus."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Email Penerima Balasan (Guest / Client Email) *"}),a.jsx("input",{type:"email",value:Ml,onChange:d=>id(d.target.value),placeholder:"contoh: [email protected]",className:"w-full bg-[#F5F2ED] border border-black/10 py-2.5 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Subjek Email Balasan *"}),a.jsx("input",{type:"text",value:yc,onChange:d=>ld(d.target.value),placeholder:"Re: Konfirmasi Reservasi & Layanan Tamu Kosenda Hotel",className:"w-full bg-[#F5F2ED] border border-black/10 py-2.5 px-3 text-xs font-medium focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Isi Balasan / Pesan Resmi *"}),a.jsx("textarea",{rows:6,value:qo,onChange:d=>vc(d.target.value),placeholder:"Yth. Bapak/Ibu Tamu,\\n\\nTerima kasih telah menghubungi Kosenda Hotel Jakarta. Mengenai permintaan reservasi kamar dan fasilitas makan malam Anda, dengan senang hati kami konfirmasikan bahwa...",className:"w-full bg-[#F5F2ED] border border-black/10 py-2.5 px-3 text-xs font-sans leading-relaxed focus:ring-1 focus:ring-black outline-none"})]}),Ol&&a.jsxs("div",{className:"p-3 bg-emerald-50 text-emerald-900 border border-emerald-300 text-xs font-mono font-bold rounded flex items-center gap-2",children:[a.jsx(gn,{size:16,className:"text-emerald-700"}),Ol]}),a.jsx("div",{className:"pt-2",children:a.jsxs("button",{type:"button",onClick:Dc,disabled:jc,className:"px-6 py-3 bg-[#1A1A1A] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-black/80 transition-all flex items-center gap-2 cursor-pointer disabled:opacity-50",children:[a.jsx(rm,{size:16}),jc?"Mengirim Balasan Email...":"Kirim Balasan Email Sekarang"]})})]})]}),Ma==="news"&&a.jsxs("div",{className:"bg-white border border-black/10 p-6 space-y-6 shadow-sm",children:[a.jsxs("div",{className:"border-b border-black/10 pb-3",children:[a.jsxs("h4",{className:"font-bold text-sm text-[#1A1A1A] flex items-center gap-2",children:[a.jsx(im,{size:16,className:"text-[#C48810]"}),"Luncurkan Broadcast Newsletter & Promo Spesial"]}),a.jsx("p",{className:"text-[11px] text-[#1A1A1A]/60",children:"Kirim email berita, update fasilitas, atau penawaran diskon musiman secara otomatis kepada tamu dan member terdaftar."})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Target Penerima Broadcast *"}),a.jsxs("select",{value:On,onChange:d=>od(d.target.value),className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none",children:[a.jsxs("option",{value:"all",children:["Semua Member & Tamu Terdaftar di Database (",_.length+y.length," Penerima)"]}),a.jsx("option",{value:"custom",children:"Kirim ke Email Spesifik"})]})]}),On==="custom"&&a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Email Penerima Khusus *"}),a.jsx("input",{type:"email",value:Io,onChange:d=>rd(d.target.value),placeholder:"[email protected]",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Judul / Subjek Berita Newsletter *"}),a.jsx("input",{type:"text",value:Rl,onChange:d=>Nc(d.target.value),placeholder:"Penawaran Eksklusif Musim Panas di Kosenda Hotel Jakarta",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-medium focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"URL Gambar Banner Hero (Optional)"}),a.jsx("input",{type:"text",value:Mi,onChange:d=>kc(d.target.value),placeholder:"https://images.unsplash.com/photo-...",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Isi Konten Berita / Promo *"}),a.jsx("textarea",{rows:5,value:Oi,onChange:d=>wc(d.target.value),placeholder:"Nikmati kehangatan menginap di kamar bernuansa art-decor Kosenda Hotel dengan promo khusus potongan 20% untuk reservasi kamar akhir pekan ini...",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-sans leading-relaxed focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Teks Tombol Aksi (CTA)"}),a.jsx("input",{type:"text",value:Rn,onChange:d=>Ri(d.target.value),placeholder:"Lihat Promo & Pesan Kamar",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-bold focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Link Tombol Aksi (URL)"}),a.jsx("input",{type:"text",value:Yo,onChange:d=>Sc(d.target.value),placeholder:"https://kosendahotel.com",className:"w-full bg-[#F5F2ED] border border-black/10 py-2 px-3 text-xs font-mono focus:ring-1 focus:ring-black outline-none"})]})]}),Xo&&a.jsxs("div",{className:"p-3 bg-emerald-50 text-emerald-900 border border-emerald-300 text-xs font-mono font-bold rounded flex items-center gap-2",children:[a.jsx(gn,{size:16,className:"text-emerald-700"}),Xo]}),a.jsx("div",{children:a.jsxs("button",{type:"button",onClick:cd,disabled:Tc,className:"w-full py-3 bg-[#1A1A1A] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-black/80 transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50",children:[a.jsx(im,{size:16}),Tc?"Mengirim Broadcast Email...":"Kirim Broadcast News Sekarang"]})})]}),a.jsxs("div",{className:"border border-black/10 rounded overflow-hidden bg-stone-100 flex flex-col",children:[a.jsxs("div",{className:"bg-[#1A1A1A] text-white px-4 py-2 text-[10px] font-mono uppercase tracking-wider font-bold flex justify-between item
399s-center",children:[a.jsx("span",{children:"Live Preview Template Email"}),a.jsx("span",{className:"text-[#C48810]",children:"Kosenda HTML Format"})]}),a.jsx("div",{className:"p-4 overflow-y-auto max-h-[480px]",children:a.jsxs("div",{className:"bg-white border border-stone-200 rounded shadow-sm overflow-hidden text-left text-[#1A1A1A]",children:[a.jsxs("div",{className:"bg-[#1A1A1A] text-center py-5 px-4 border-b-2 border-[#C48810]",children:[a.jsx("div",{className:"text-white font-bold tracking-widest text-lg font-serif",children:"KOSENDA HOTEL"}),a.jsx("div",{className:"text-[#C48810] text-[9px] tracking-widest mt-0.5",children:"JAKARTA ⢠INDONESIA"})]}),a.jsxs("div",{className:"p-6",children:[a.jsx("span",{className:"inline-block bg-stone-100 text-[#C48810] text-[9px] font-bold uppercase tracking-widest px-2 py-0.5 rounded mb-3",children:"NEWSLETTER & BERITA"}),a.jsx("h3",{className:"text-lg font-bold text-black mb-3",children:Rl||"Judul Newsletter"}),Mi&&a.jsx("img",{src:Mi,className:"w-full h-36 object-cover rounded mb-4",alt:"Hero"}),a.jsx("p",{className:"text-xs text-stone-700 leading-relaxed whitespace-pre-wrap mb-4",children:Oi||"Isi konten berita akan muncul secara langsung di area ini..."}),Rn&&a.jsx("div",{className:"text-center my-4",children:a.jsx("span",{className:"inline-block bg-[#1A1A1A] text-white text-xs font-bold uppercase px-4 py-2 rounded border border-[#C48810]",children:Rn})})]}),a.jsxs("div",{className:"bg-stone-100 p-4 text-center text-[10px] text-stone-500 border-t border-stone-200",children:[a.jsx("strong",{children:"Kosenda Hotel Jakarta"}),a.jsx("br",{}),"Jl. KH. Wahid Hasyim No. 127, Menteng, Jakarta Pusat"]})]})})]})]})]}),Ma==="otp"&&a.jsxs("div",{className:"bg-white border border-black/10 p-6 space-y-6 shadow-sm",children:[a.jsxs("div",{className:"border-b border-black/10 pb-3",children:[a.jsxs("h4",{className:"font-bold text-sm text-[#1A1A1A] flex items-center gap-2",children:[a.jsx(Cu,{size:16,className:"text-[#C48810]"}),"Pengiriman Kode OTP Verifikasi Instan"]}),a.jsx("p",{className:"text-[11px] text-[#1A1A1A]/60",children:"Gunakan generator ini untuk mengirimkan kode OTP verifikasi 6-digit langsung ke alamat email tamu atau staf."})]}),a.jsxs("div",{className:"max-w-xl space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Email Penerima OTP *"}),a.jsx("input",{type:"email",value:Dl,onChange:d=>ad(d.target.value),placeholder:"contoh: [email protected]",className:"w-full bg-[#F5F2ED] border border-black/10 py-2.5 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/70 mb-1",children:"Keperluan / Jenis Otentikasi OTP"}),a.jsxs("select",{value:Go,onChange:d=>nd(d.target.value),className:"w-full bg-[#F5F2ED] border border-black/10 py-2.5 px-3 text-xs font-mono font-bold focus:ring-1 focus:ring-black outline-none",children:[a.jsx("option",{value:"Verifikasi Otentikasi Member",children:"Verifikasi Otentikasi Member"}),a.jsx("option",{value:"Konfirmasi Booking & Pembayaran Room",children:"Konfirmasi Booking & Pembayaran Room"}),a.jsx("option",{value:"Reset Kata Sandi Akun Staf",children:"Reset Kata Sandi Akun Staf"}),a.jsx("option",{value:"Otentikasi Login WhatsApp Bypassing",children:"Otentikasi Login WhatsApp Bypassing"})]})]}),a.jsxs("div",{className:"bg-[#1A1A1A] text-white p-5 rounded-lg border border-[#C48810] text-center space-y-2",children:[a.jsx("div",{className:"text-[10px] font-mono text-stone-400 uppercase tracking-widest",children:"KODE OTP 6-DIGIT GENERATED"}),a.jsx("div",{className:"text-3xl font-mono font-bold tracking-[8px] text-[#E5A93C]",children:Bs}),a.jsx("div",{children:a.jsx("button",{type:"button",onClick:()=>sd(Math.floor(1e5+Math.random()*9e5).toString()),className:"px-3 py-1 bg-white/10 hover:bg-white/20 text-white font-mono text-[9px] font-bold uppercase tracking-wider rounded transition-all cursor-pointer",children:"Acak Kode Baru"})})]}),Ko&&a.jsxs("div",{className:"p-3 bg-emerald-50 text-emerald-900 border border-emerald-300 text-xs font-mono font-bold rounded flex items-center gap-2",children:[a.jsx(gn,{size:16,className:"text-emerald-700"}),Ko]}),a.jsx("div",{children:a.jsxs("button",{type:"button",onClick:Ec,disabled:xc,className:"w-full py-3 bg-[#1A1A1A] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-black/80 transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50",children:[a.jsx(Cu,{size:16}),xc?"Mengirim Kode OTP via SMTP...":"Kirim Kode OTP Sekarang"]})})]})]}),Ma==="logs"&&a.jsxs("div",{className:"bg-white border border-black/10 overflow-hidden shadow-sm",children:[a.jsxs("div",{className:"p-4 bg-stone-50 border-b border-black/10 flex justify-between items-center",children:[a.jsxs("span",{className:"text-[10px] uppercase font-mono font-bold text-stone-600 tracking-wider",children:["Log Pengiriman Email Server ⢠Total ",El.length," Catatan"]}),a.jsxs("button",{type:"button",onClick:Oa,className:"px-3 py-1 bg-[#1A1A1A] text-white text-[9px] font-mono font-bold uppercase tracking-wider hover:bg-black/80 flex items-center gap-1 cursor-pointer",children:[a.jsx(Ir,{size:12}),"Refresh Log"]})]}),a.jsx("div",{className:"overflow-x-auto w-full",children:a.jsxs("table",{className:"w-full text-left border-collapse font-mono text-xs",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-[#1A1A1A] text-white text-[8px] uppercase tracking-widest border-b border-black/10",children:[a.jsx("th",{className:"py-3 px-4",children:"Tipe Email"}),a.jsx("th",{className:"py-3 px-4",children:"Penerima"}),a.jsx("th",{className:"py-3 px-4",children:"Subjek Email"}),a.jsx("th",{className:"py-3 px-4",children:"Status Delivery"}),a.jsx("th",{className:"py-3 px-4 text-right",children:"Waktu Terkirim"})]})}),a.jsx("tbody",{className:"divide-y divide-black/5 text-[#1A1A1A]",children:El.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"py-8 text-center text-xs text-[#1A1A1A]/50 uppercase tracking-widest",children:"Belum ada riwayat email yang terkirim dari server."})}):El.map(d=>{var M;return a.jsxs("tr",{className:"hover:bg-amber-50/20 transition-colors",children:[a.jsx("td",{className:"py-3 px-4 font-bold",children:a.jsx("span",{className:`inline-block px-2 py-0.5 text-[8px] font-bold uppercase tracking-wider rounded ${d.type==="otp"?"bg-amber-100 text-amber-900 border border-amber-300":d.type==="news"?"bg-blue-100 text-blue-900 border border-blue-300":d.type==="test"?"bg-[#1A1A1A] text-white":"bg-emerald-100 text-emerald-900 border border-emerald-300"}`,children:d.type})}),a.jsx("td",{className:"py-3 px-4 font-semibold text-[#1A1A1A]",children:d.recipient}),a.jsx("td",{className:"py-3 px-4 text-[#1A1A1A]/80 font-sans font-medium line-clamp-1 max-w-xs",children:d.subject}),a.jsx("td",{className:"py-3 px-4",children:d.status==="sent"?a.jsxs("span",{className:"text-emerald-700 font-bold flex items-center gap-1",children:[a.jsx(gn,{size:14})," Terkirim"]}):a.jsxs("span",{className:"text-red-700 font-bold flex items-center gap-1",title:d.error_message,children:[a.jsx(sm,{size:14})," Gagal (",(M=d.error_message)==null?void 0:M.slice(0,30),")"]})}),a.jsx("td",{className:"py-3 px-4 text-right text-[10px] text-stone-500",children:d.sent_at?new Date(d.sent_at).toLocaleStr
399ing("id-ID"):"-"})]},d.id)})})]})})]})]})]})]})]}),ts&&a.jsx("div",{className:`fixed bottom-6 right-6 z-[200] px-5 py-3 rounded-lg shadow-2xl text-xs font-mono font-bold transition-all animate-slide-up ${ts.type==="success"?"bg-green-900 text-white":ts.type==="error"?"bg-red-900 text-white":"bg-[#1A1A1A] text-white"}`,children:a.jsxs("div",{className:"flex items-center gap-2",children:[ts.type==="success"&&a.jsx(gn,{size:16}),ts.type==="error"&&a.jsx(di,{size:16}),ts.message]})})]}):a.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center font-sans p-4",children:[a.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-md",onClick:l}),a.jsxs("div",{className:"relative bg-[#F5F2ED] text-[#1A1A1A] border border-black/20 shadow-2xl text-left max-w-md w-full flex flex-col overflow-hidden rounded-none z-10",children:[a.jsxs("div",{className:"bg-[#504C47] text-[#F5F2ED] p-5 flex justify-between items-center border-b border-white/10",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-9 h-9 border border-white/20 bg-white/10 flex items-center justify-center font-serif text-lg font-bold italic text-[#F5F2ED]",children:"K"}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-xs font-serif font-bold tracking-[0.2em] uppercase text-[#F5F2ED]",children:"KOSENDA HOTEL"}),a.jsx("span",{className:"text-[8px] uppercase tracking-widest text-[#C48810] font-mono font-bold block mt-0.5",children:"Portal Login Staf Administrator"})]})]}),a.jsx("button",{onClick:l,className:"p-1 text-white/70 hover:text-white transition-colors cursor-pointer",title:"Tutup Portal",children:a.jsx(di,{size:18})})]}),a.jsxs("div",{className:"p-6 md:p-8 space-y-6",children:[a.jsxs("div",{className:"text-center space-y-2 border-b border-black/10 pb-4",children:[a.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 bg-[#1A1A1A] text-white text-[9px] font-mono font-bold uppercase tracking-wider rounded-full",children:[a.jsx(_k,{size:12,className:"text-[#C48810]"}),"Khusus Staf Admin Internal"]}),a.jsx("p",{className:"text-xs text-[#1A1A1A]/70 leading-relaxed font-sans pt-1",children:"Sistem ini khusus untuk manajemen & staf internal Kosenda Hotel. Masukkan alamat email terdaftar untuk menerima kode verifikasi OTP."})]}),Gl&&a.jsxs("div",{className:"p-3 bg-red-50 border border-red-300 text-red-900 text-xs font-mono font-bold rounded flex items-start gap-2",children:[a.jsx(sm,{size:16,className:"shrink-0 mt-0.5 text-red-700"}),a.jsx("span",{className:"leading-tight",children:Gl})]}),gt&&a.jsxs("div",{className:"p-3 bg-emerald-50 border border-emerald-300 text-emerald-900 text-xs font-mono font-bold rounded flex items-start gap-2",children:[a.jsx(gn,{size:16,className:"shrink-0 mt-0.5 text-emerald-700"}),a.jsx("span",{className:"leading-tight",children:gt})]}),Fa==="email"?a.jsxs("form",{onSubmit:ds,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/80 mb-1.5",children:"Alamat Email Staf Admin Terdaftar *"}),a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"email",required:!0,value:Jt,onChange:d=>la(d.target.value),placeholder:"contoh: [email protected]",className:"w-full bg-white border border-black/20 py-2.5 px-3.5 pl-10 text-xs font-mono font-bold text-[#1A1A1A] focus:ring-1 focus:ring-black outline-none"}),a.jsx(yo,{size:16,className:"absolute left-3 top-3 text-[#1A1A1A]/50"})]}),a.jsx("span",{className:"text-[10px] text-stone-500 mt-1 block font-mono",children:"Hanya email dengan otoritas staf admin terdaftar yang diizinkan masuk."})]}),a.jsx("div",{className:"pt-2",children:a.jsxs("button",{type:"submit",disabled:Li,className:"w-full py-3 bg-[#1A1A1A] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-black/80 transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50",children:[a.jsx(Cu,{size:14,className:"text-[#C48810]"}),Li?"Mengirim Kode OTP via SMTP...":"Kirim Kode OTP Verifikasi Email"]})})]}):a.jsxs("form",{onSubmit:Nt,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-mono font-bold text-[#1A1A1A]/80 mb-1.5",children:"Masukkan Kode OTP 6-Digit *"}),a.jsx("input",{type:"text",required:!0,maxLength:6,value:rn,onChange:d=>za(d.target.value.replace(/\D/g,"")),placeholder:"123456",className:"w-full bg-white border border-black/20 py-3 px-3 text-center text-2xl font-mono font-bold tracking-[10px] text-[#1A1A1A] focus:ring-1 focus:ring-black outline-none"}),a.jsxs("span",{className:"text-[10px] text-stone-500 mt-1.5 block text-center font-mono",children:["Kode OTP dikirimkan ke ",a.jsx("strong",{className:"text-black",children:Ue})]})]}),a.jsxs("div",{className:"space-y-2 pt-2",children:[a.jsxs("button",{type:"submit",disabled:Li,className:"w-full py-3 bg-[#1A1A1A] text-white font-mono text-xs font-bold uppercase tracking-wider hover:bg-black/80 transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50",children:[a.jsx(gn,{size:14,className:"text-emerald-400"}),Li?"Memverifikasi OTP...":"Konfirmasi OTP & Masuk Portal Admin"]}),a.jsx("button",{type:"button",onClick:()=>{Ua("email"),Ba(null),Xe(null)},className:"w-full py-2 bg-transparent text-[#1A1A1A]/60 font-mono text-[10px] font-bold uppercase tracking-wider hover:text-[#1A1A1A] transition-colors cursor-pointer text-center",children:"Gunakan Alamat Email Lain"})]})]})]})]})]})}function Yw(){var se,me,ye,T,B,oe;const{rooms:s,isHydrated:l,websiteSettings:r}=Wn(),[o,f]=A.useState("home"),[h,m]=A.useState(!0),x=((se=r==null?void 0:r.typography)==null?void 0:se.h1Font)||"Playfair Display",g=((me=r==null?void 0:r.typography)==null?void 0:me.h2Font)||"Space Grotesk",b=((ye
399=r==null?void 0:r.typography)==null?void 0:ye.h3Font)||"Space Grotesk",y=((T=r==null?void 0:r.typography)==null?void 0:T.h4Font)||"Inter",j=((B=r==null?void 0:r.typography)==null?void 0:B.bodyFont)||"Inter",N=Array.from(new Set([x,g,b,y,j]));A.useEffect(()=>{const J="dynamic-google-fonts";let ce=document.getElementById(J);ce||(ce=document.createElement("link"),ce.id=J,ce.rel="stylesheet",document.head.appendChild(ce));const fe=N.map(we=>`family=${we.replace(/ /g,"+")}:wght@300;400;500;600;700;800`).join("&");ce.href=`https://fonts.googleapis.com/css2?${fe}&display=swap`},[r==null?void 0:r.typography]);const w=((oe=r==null?void 0:r.homeBanner)==null?void 0:oe.images)||[],[S,F]=A.useState(0);A.useEffect(()=>{if(!h||w.length===0)return;const J=setInterval(()=>{F(ce=>(ce+1)%w.length)},1500);return()=>clearInterval(J)},[h,w.length]),A.useEffect(()=>{if(l){const J=setTimeout(()=>{m(!1)},1200);return()=>clearTimeout(J)}},[l]);const[P,H]=A.useState(!1),[_,C]=A.useState("petita"),[q,te]=A.useState(""),[ee,Y]=A.useState(""),[R,W]=A.useState(2),[ne,ve]=A.useState(!1),[de,Me]=A.useState("");A.useEffect(()=>{const J="kosenda_visit_tracked_session";sessionStorage.getItem(J)||fetch("/api/record-visit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:window.location.pathname+window.location.hash})}).then(fe=>{fe.ok&&sessionStorage.setItem(J,"true")}).catch(fe=>console.warn("[TRACKING ERROR] Could not register visit in db:",fe))},[]),A.useEffect(()=>{if(typeof window<"u"){const J=window.location.pathname,ce=window.location.search,fe=window.location.hash;if(J==="/admin"||J.startsWith("/admin/")||ce.includes("admin")||fe==="#admin"){ve(!0);const qe=new URLSearchParams(ce).get("admin");Me(qe&&qe!=="true"&&qe!=="login"?qe:"")}}},[]),A.useEffect(()=>{if(typeof window<"u"){const J=new URL(window.location.href);ne?!J.searchParams.has("admin")&&J.pathname!=="/admin"&&(J.searchParams.set("admin","login"),window.history.replaceState({},"",J.toString())):(J.searchParams.has("admin")||J.pathname==="/admin"||J.hash==="#admin")&&(J.searchParams.delete("admin"),J.pathname==="/admin"?window.history.replaceState({},"","/"):window.history.replaceState({},"",J.pathname))}},[ne,de]),A.useEffect(()=>{const J=()=>{const ce=["home","rooms","dining","aesthetic","location"],fe=window.scrollY+120;for(const we of ce){const qe=document.getElementById(we);if(qe){const Ie=qe.offsetTop,It=qe.offsetHeight;if(fe>=Ie&&fe<Ie+It){f(we);break}}}};return window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)},[]);const ue=()=>{if(r!=null&&r.bookingRedirectUrl&&r.bookingRedirectUrl.trim()!==""){const J=r.bookingRedirectUrl.trim();return window.open(J,"_blank"),!0}return!1},Ne=J=>{if(ue())return;C(J);const ce=new Date().toISOString().split("T")[0],fe=new Date;fe.setDate(new Date().getDate()+2);const we=fe.toISOString().split("T")[0];q||te(ce),ee||Y(we),W(2),H(!0)},O=J=>{ue()||(C(J.roomId),te(J.checkIn),Y(J.checkOut),W(J.guestsCount),H(!0))},Z=()=>{if(ue())return;C("petita");const J=new Date().toISOString().split("T")[0],ce=new Date;ce.setDate(new Date().getDate()+2);const fe=ce.toISOString().split("T")[0];q||te(J),ee||Y(fe),W(2),H(!0)};return a.jsxs(a.Fragment,{children:[a.jsx("style",{children:` 400 body { 401 font-family: '${j}', sans-serif !important; 402 } 403 .font-sans, .font-sans * { 404 font-family: '${j}', sans-serif !important; 405 } 406 h1, .font-h1, h1 * { 407 font-family: '${x}', serif !important; 408 } 409 h2, .font-h2, h2 * { 410 font-family: '${g}', sans-serif !important; 411 } 412 h3, .font-h3, h3 * { 413 font-family: '${b}', sans-serif !important; 414 } 415 h4, .font-h4, h4 * { 416 font-family: '${y}', sans-serif !important; 417 } 418 h5, .font-h5, h5 * { 419 font-family: '${y}', sans-serif !important; 420 } 421 h6, .font-h6, h6 * { 422 font-family: '${y}', sans-serif !important; 423 } 424 .font-mono, .font-mono * { 425 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; 426 } 427 `}),a.jsx(ll,{mode:"wait",children:h&&a.jsxs(vn.div,{initial:{opacity:1},exit:{opacity:0}
427,transition:{duration:.8,ease:[.25,1,.5,1]},className:"fixed inset-0 z-[99999] flex flex-col items-center justify-center cursor-wait",style:{pointerEvents:"auto"},children:[a.jsx("div",{className:"absolute inset-0 bg-[#1A1A1A]",children:w.map((J,ce)=>a.jsxs("div",{className:"absolute inset-0 transition-opacity duration-1000 ease-in-out",style:{opacity:ce===S?1:0,zIndex:ce===S?1:0},children:[a.jsx("img",{src:J,alt:`Loading ${ce}`,className:"w-full h-full object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/20 via-black/50 to-black/80"})]},ce))}),a.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[a.jsxs(vn.div,{initial:{opacity:0,scale:.85},animate:{opacity:1,scale:1},transition:{duration:.9,ease:"easeOut"},className:"relative mb-6 flex items-center justify-center w-20 h-20 border border-white/20 rounded-full",children:[a.jsx("div",{className:"absolute inset-0 border border-t-white border-r-transparent border-b-transparent border-l-transparent rounded-full animate-spin-slow"}),a.jsx("img",{src:"/assets/logo.png",alt:"Kosenda",className:"w-12 h-12 object-contain filter brightness-110"})]}),a.jsx(vn.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2},className:"text-center",children:a.jsx("h1",{className:"font-sans text-[11.5px] tracking-[0.55em] font-medium text-white uppercase mb-1.5",children:"KOSENDA HOTEL"})}),a.jsx("div",{className:"w-28 h-[1px] bg-white/20 mt-7 relative overflow-hidden",children:a.jsx(vn.div,{className:"h-full bg-white absolute",initial:{left:"-100%",width:"40%"},animate:{left:"100%"},transition:{duration:1.4,ease:"easeInOut",repeat:1/0}})})]})]},"luxury-loader")}),a.jsxs("div",{className:"min-h-screen bg-[#F5F2ED] font-sans antialiased text-[#1A1A1A] flex flex-col justify-between selection:bg-[#1A1A1A] selection:text-[#F5F2ED]",children:[a.jsx(Uw,{activeSection:o,onBookNowClick:Z,onAdminClick:()=>{Me("dashboard"),ve(!0)}}),a.jsxs("main",{className:"flex-grow",children:[a.jsx(Bw,{rooms:s,onQuickBook:O}),a.jsx(Lw,{rooms:s,onBookRoom:Ne}),a.jsx(Vw,{}),a.jsx(Hw,{}),a.jsx(Pw,{})]}),a.jsx(Gw,{isOpen:P,onClose:()=>H(!1),availableRooms:s,initialRoomId:_,initialCheckIn:q,initialCheckOut:ee,initialGuestsCount:R}),a.jsx(Iw,{isOpen:ne,onClose:()=>{ve(!1),Me("")},initialTab:de}),a.jsx(Kw,{})]})]})}function Xw(){return a.jsx(Fw,{children:a.jsx(Yw,{})})}Py.createRoot(document.getElementById("root")).render(a.jsx(A.StrictMode,{children:a.jsx(Xw,{})}));
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.