PageSourceSearch

https://sushi-site-cloner.lovable.app/assets/index-6X-OCllR.js

js sushi-site-cloner.lovable.app collected 2026-10-03 03:39:49 UTC 696,153 bytes, 361 lines download raw bytes

vendor: 6,235 bytes, lines 1-9
1var Yk=Object.defineProperty;var gf=e=>{throw TypeError(e)};var Qk=(e,t,n)=>t in e?Yk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mr=(e,t,n)=>Qk(e,typeof t!="symbol"?t+"":t,n),hu=(e,t,n)=>t.has(e)||gf("Cannot "+n);var I=(e,t,n)=>(hu(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>t.has(e)?gf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pe=(e,t,n,r)=>(hu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),It=(e,t,n)=>(hu(e,t,"access private method"),n);var Di=(e,t,n,r)=>({set _(a){pe(e,t,a,n)},get _(){return I(e,t,r)}});function qk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vy={exports:{}},Tc={},wy={exports:{}},ze={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ni=Symbol.for("react.element"),Jk=Symbol.for("react.portal"),Xk=Symbol.for("react.fragment"),e1=Symbol.for("react.strict_mode"),t1=Symbol.for("react.profiler"),n1=Symbol.for("react.provider"),r1=Symbol.for("react.context"),a1=Symbol.for("react.forward_ref"),s1=Symbol.for("react.suspense"),o1=Symbol.for("react.memo"),i1=Symbol.for("react.lazy"),yf=Symbol.iterator;function l1(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var by={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ky=Object.assign,jy={};function so(e,t,n){this.props=e,this.context=t,this.refs=jy,this.updater=n||by}so.prototype.isReactComponent={};so.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};so.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sy(){}Sy.prototype=so.prototype;function Dm(e,t,n){this.props=e,this.context=t,this.refs=jy,this.updater=n||by}var Fm=Dm.prototype=new Sy;Fm.constructor=Dm;ky(Fm,so.prototype);Fm.isPureReactComponent=!0;var xf=Array.isArray,Ny=Object.prototype.hasOwnProperty,Um={current:null},Ey={key:!0,ref:!0,__self:!0,__source:!0};function zy(e,t,n){var r,a={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Ny.call(t,r)&&!Ey.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return{$$typeof:Ni,type:e,key:o,ref:i,props:a,_owner:Um.current}}function c1(e,t){return{$$typeof:Ni,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $m(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ni}function u1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vf=/\/+/g;function gu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?u1(""+e.key):t.toString(36)}function xl(e,t,n,r,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ni:case Jk:i=!0}}if(i)return i=e,a=a(i),e=r===""?"."+gu(i,0):r,xf(a)?(n="",e!=null&&(n=e.replace(vf,"$&/")+"/"),xl(a,t,n,"",function(u){return u})):a!=null&&($m(a)&&(a=c1(a,n+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(vf,"$&/")+"/")+e)),t.push(a)),1;if(i=0,r=r===""?".":r+":",xf(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+gu(o,l);i+=xl(o,t,n,c,a)}else if(c=l1(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+gu(o,l++),i+=xl(o,t,n,c,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Fi(e,t,n){if(e==null)return e;var r=[],a=0;return xl(e,r,"","",function(o){return t.call(n,o,a++)}),r}function d1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qt={current:null},vl={transition:null},m1={ReactCurrentDispatcher:qt,ReactCurrentBatchConfig:vl,ReactCurrentOwner:Um};function Cy(){throw Error("act(...) is not supported in production builds of React.")}ze.Children={map:Fi,forEach:function(e,t,n){Fi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fi(e,function(){t++}),t},toArray:function(e){return Fi(e,function(t){return t})||[]},only:function(e){if(!$m(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ze.Component=so;ze.Fragment=Xk;ze.Profiler=t1;
vendor: 8,070 bytes, lines 9-33
9ze.PureComponent=Dm;ze.StrictMode=e1;ze.Suspense=s1;ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m1;ze.act=Cy;ze.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ky({},e.props),a=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Um.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Ny.call(t,c)&&!Ey.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ni,type:e.type,key:a,ref:o,props:r,_owner:i}};ze.createContext=function(e){return e={$$typeof:r1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:n1,_context:e},e.Consumer=e};ze.createElement=zy;ze.createFactory=function(e){var t=zy.bind(null,e);return t.type=e,t};ze.createRef=function(){return{current:null}};ze.forwardRef=function(e){return{$$typeof:a1,render:e}};ze.isValidElement=$m;ze.lazy=function(e){return{$$typeof:i1,_payload:{_status:-1,_result:e},_init:d1}};ze.memo=function(e,t){return{$$typeof:o1,type:e,compare:t===void 0?null:t}};ze.startTransition=function(e){var t=vl.transition;vl.transition={};try{e()}finally{vl.transition=t}};ze.unstable_act=Cy;ze.useCallback=function(e,t){return qt.current.useCallback(e,t)};ze.useContext=function(e){return qt.current.useContext(e)};ze.useDebugValue=function(){};ze.useDeferredValue=function(e){return qt.current.useDeferredValue(e)};ze.useEffect=function(e,t){return qt.current.useEffect(e,t)};ze.useId=function(){return qt.current.useId()};ze.useImperativeHandle=function(e,t,n){return qt.current.useImperativeHandle(e,t,n)};ze.useInsertionEffect=function(e,t){return qt.current.useInsertionEffect(e,t)};ze.useLayoutEffect=function(e,t){return qt.current.useLayoutEffect(e,t)};ze.useMemo=function(e,t){return qt.current.useMemo(e,t)};ze.useReducer=function(e,t,n){return qt.current.useReducer(e,t,n)};ze.useRef=function(e){return qt.current.useRef(e)};ze.useState=function(e){return qt.current.useState(e)};ze.useSyncExternalStore=function(e,t,n){return qt.current.useSyncExternalStore(e,t,n)};ze.useTransition=function(){return qt.current.useTransition()};ze.version="18.3.1";wy.exports=ze;var m=wy.exports;const O=Si(m),Bm=qk({__proto__:null,default:O},[m]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var p1=m,f1=Symbol.for("react.element"),h1=Symbol.for("react.fragment"),g1=Object.prototype.hasOwnProperty,y1=p1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x1={key:!0,ref:!0,__self:!0,__source:!0};function Ay(e,t,n){var r,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)g1.call(t,r)&&!x1.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:f1,type:e,key:o,ref:i,props:a,_owner:y1.current}}Tc.Fragment=h1;Tc.jsx=Ay;Tc.jsxs=Ay;vy.exports=Tc;var s=vy.exports,Ty={exports:{}},gn={},Py={exports:{}},Ry={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(z,R){var D=z.length;z.push(R);e:for(;0<D;){var X=D-1>>>1,Y=z[X];if(0<a(Y,R))z[X]=R,z[D]=Y,D=X;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var R=z[0],D=z.pop();if(D!==R){z[0]=D;e:for(var X=0,Y=z.length,ne=Y>>>1;X<ne;){var Z=2*(X+1)-1,ve=z[Z],_e=Z+1,B=z[_e];if(0>a(ve,D))_e<Y&&0>a(B,ve)?(z[X]=B,z[_e]=D,X=_e):(z[X]=ve,z[Z]=D,X=Z);else if(_e<Y&&0>a(B,D))z[X]=B,z[_e]=D,X=_e;else break e}}return R}function a(z,R){var D=z.sortIndex-R.sortIndex;return D!==0?D:z.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,k=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(z){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=z)r(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(u)}}function j(z){if(g=!1,w(z),!k)if(n(c)!==null)k=!0,_(S);else{var R=n(u);R!==null&&U(j,R.startTime-z)}}function S(z,R){k=!1,g&&(g=!1,x(T),T=-1),h=!0;var D=f;try{for(w(R),p=n(c);p!==null&&(!(p.expirationTime>R)||z&&!K());){var X=p.callback;if(typeof X=="function"){p.callback=null,f=p.priorityLevel;var Y=X(p.expirationTime<=R);R=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(c)&&r(c),w(R)}else r(c);p=n(c)}if(p!==null)var ne=!0;else{var Z=n(u);Z!==null&&U(j,Z.startTime-R),ne=!1}return ne}finally{p=null,f=D,h=!1}}var N=!1,E=null,T=-1,P=5,L=-1;function K(){return!(e.unstable_now()-L<P)}function F(){if(E!==null){var z=e.unstable_now();L=z;var R=!0;try{R=E(!0,z)}finally{R?ee():(N=!1,E=null)}}else N=!1}var ee;if(typeof y=="function")ee=function(){y(F)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,W=M.port2;M.port1.onmessage=F,ee=function(){W.postMessage(null)}}else ee=function(){b(F,0)};function _(z){E=z,N||(N=!0,ee())}function U(z,R){T=b(function(){z(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){k||h||(k=!0,_(S))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(z){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var D=f;f=R;try{return z()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,R){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var D=f;f=z;try{return R()}finally{f=D}},e.unstable_scheduleCallback=function(z,R,D){var X=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?X+D:X):D=X,z){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=D+Y,z={id:d++,callback:R,priorityLevel:z,startTime:D,expirationTime:Y,sortIndex:-1},D>X?(z.sortIndex=D,t(u,z),n(c)===null&&z===n(u)&&(g?(x(T),T=-1):g=!0,U(j,D-X))):(z.sortIndex=Y,t(c,z),k||h||(k=!0,_(S))),z},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(z){var R=f;return function(){var D=f;f=R;try{return z.apply(this,arguments)}finally{f=D}}}})(Ry);Py.exports=Ry;var v1=Py.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var w1=m,hn=v1;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Oy=new Set,qo={};
vendor: 4,996 bytes, line 33
33function Ha(e,t){Vs(e,t),Vs(e+"Capture",t)}function Vs(e,t){for(qo[e]=t,e=0;e<t.length;e++)Oy.add(t[e])}var Er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fd=Object.prototype.hasOwnProperty,b1=/^[: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]*$/,wf={},bf={};function k1(e){return fd.call(bf,e)?!0:fd.call(wf,e)?!1:b1.test(e)?bf[e]=!0:(wf[e]=!0,!1)}function j1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S1(e,t,n,r){if(t===null||typeof t>"u"||j1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Jt(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var At={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){At[e]=new Jt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];At[t]=new Jt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){At[e]=new Jt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){At[e]=new Jt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){At[e]=new Jt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){At[e]=new Jt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){At[e]=new Jt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){At[e]=new Jt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){At[e]=new Jt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Km=/[\-:]([a-z])/g;function Wm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Km,Wm);At[t]=new Jt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Km,Wm);At[t]=new Jt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Km,Wm);At[t]=new Jt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){At[e]=new Jt(e,1,!1,e.toLowerCase(),null,!1,!1)});At.xlinkHref=new Jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){At[e]=new Jt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hm(e,t,n,r){var a=At.hasOwnProperty(t)?At[t]:null;(a!==null?a.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(S1(t,n,a,r)&&(n=null),r||a===null?k1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,r=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 7,269 bytes, lines 33-37
33var Rr=w1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),ms=Symbol.for("react.portal"),ps=Symbol.for("react.fragment"),Vm=Symbol.for("react.strict_mode"),hd=Symbol.for("react.profiler"),My=Symbol.for("react.provider"),Iy=Symbol.for("react.context"),Gm=Symbol.for("react.forward_ref"),gd=Symbol.for("react.suspense"),yd=Symbol.for("react.suspense_list"),Zm=Symbol.for("react.memo"),Fr=Symbol.for("react.lazy"),_y=Symbol.for("react.offscreen"),kf=Symbol.iterator;function vo(e){return e===null||typeof e!="object"?null:(e=kf&&e[kf]||e["@@iterator"],typeof e=="function"?e:null)}var ot=Object.assign,yu;function Po(e){if(yu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yu=t&&t[1]||""}return`
34`+yu+e}var xu=!1;function vu(e,t){if(!e||xu)return"";xu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var a=u.stack.split(`
35`),o=r.stack.split(`
36`),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||a[i]!==o[l]){var c=`
37`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{xu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Po(e):""}function N1(e){switch(e.tag){case 5:return Po(e.type);case 16:return Po("Lazy");case 13:return Po("Suspense");case 19:return Po("SuspenseList");case 0:case 2:case 15:return e=vu(e.type,!1),e;case 11:return e=vu(e.type.render,!1),e;case 1:return e=vu(e.type,!0),e;default:return""}}function xd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ps:return"Fragment";case ms:return"Portal";case hd:return"Profiler";case Vm:return"StrictMode";case gd:return"Suspense";case yd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Iy:return(e.displayName||"Context")+".Consumer";case My:return(e._context.displayName||"Context")+".Provider";case Gm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zm:return t=e.displayName||null,t!==null?t:xd(e.type)||"Memo";case Fr:t=e._payload,e=e._init;try{return xd(e(t))}catch{}}return null}function E1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xd(t);case 8:return t===Vm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ca(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ly(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z1(e){var t=Ly(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $i(e){e._valueTracker||(e._valueTracker=z1(e))}function Dy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ly(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vd(e,t){var n=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ca(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fy(e,t){t=t.checked,t!=null&&Hm(e,"checked",t,!1)}function wd(e,t){Fy(e,t);var n=ca(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&bd(e,t.type,ca(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bd(e,t,n){(t!=="number"||Hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ro=Array.isArray;function Es(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ca(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function kd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return ot({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Nf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error($(92));if(Ro(n)){if(1<n.length)throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ca(n)}}function Uy(e,t){var n=ca(t.value),r=ca(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ef(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $y(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
vendor: 10,669 bytes, line 37
37function jd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$y(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,By=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $o={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C1=["Webkit","ms","Moz","O"];Object.keys($o).forEach(function(e){C1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$o[t]=$o[e]})});function Ky(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$o.hasOwnProperty(e)&&$o[e]?(""+t).trim():t+"px"}function Wy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=Ky(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var A1=ot({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sd(e,t){if(t){if(A1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function Nd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ed=null;function Ym(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zd=null,zs=null,Cs=null;function zf(e){if(e=Ci(e)){if(typeof zd!="function")throw Error($(280));var t=e.stateNode;t&&(t=Ic(t),zd(e.stateNode,e.type,t))}}function Hy(e){zs?Cs?Cs.push(e):Cs=[e]:zs=e}function Vy(){if(zs){var e=zs,t=Cs;if(Cs=zs=null,zf(e),t)for(e=0;e<t.length;e++)zf(t[e])}}function Gy(e,t){return e(t)}function Zy(){}var wu=!1;function Yy(e,t,n){if(wu)return e(t,n);wu=!0;try{return Gy(e,t,n)}finally{wu=!1,(zs!==null||Cs!==null)&&(Zy(),Vy())}}function Xo(e,t){var n=e.stateNode;if(n===null)return null;var r=Ic(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error($(231,t,typeof n));return n}var Cd=!1;if(Er)try{var wo={};Object.defineProperty(wo,"passive",{get:function(){Cd=!0}}),window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{Cd=!1}function T1(e,t,n,r,a,o,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Bo=!1,Vl=null,Gl=!1,Ad=null,P1={onError:function(e){Bo=!0,Vl=e}};function R1(e,t,n,r,a,o,i,l,c){Bo=!1,Vl=null,T1.apply(P1,arguments)}function O1(e,t,n,r,a,o,i,l,c){if(R1.apply(this,arguments),Bo){if(Bo){var u=Vl;Bo=!1,Vl=null}else throw Error($(198));Gl||(Gl=!0,Ad=u)}}function Va(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Qy(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 Cf(e){if(Va(e)!==e)throw Error($(188))}function M1(e){var t=e.alternate;if(!t){if(t=Va(e),t===null)throw Error($(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Cf(a),e;if(o===r)return Cf(a),t;o=o.sibling}throw Error($(188))}if(n.return!==r.return)n=a,r=o;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i)throw Error($(189))}}if(n.alternate!==r)throw Error($(190))}if(n.tag!==3)throw Error($(188));return n.stateNode.current===n?e:t}function qy(e){return e=M1(e),e!==null?Jy(e):null}function Jy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jy(e);if(t!==null)return t;e=e.sibling}return null}var Xy=hn.unstable_scheduleCallback,Af=hn.unstable_cancelCallback,I1=hn.unstable_shouldYield,_1=hn.unstable_requestPaint,ht=hn.unstable_now,L1=hn.unstable_getCurrentPriorityLevel,Qm=hn.unstable_ImmediatePriority,ex=hn.unstable_UserBlockingPriority,Zl=hn.unstable_NormalPriority,D1=hn.unstable_LowPriority,tx=hn.unstable_IdlePriority,Pc=null,or=null;function F1(e){if(or&&typeof or.onCommitFiberRoot=="function")try{or.onCommitFiberRoot(Pc,e,void 0,(e.current.flags&128)===128)}catch{}}var Wn=Math.clz32?Math.clz32:B1,U1=Math.log,$1=Math.LN2;function B1(e){return e>>>=0,e===0?32:31-(U1(e)/$1|0)|0}var Ki=64,Wi=4194304;function Oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~a;l!==0?r=Oo(l):(o&=i,o!==0&&(r=Oo(o)))}else i=n&~a,i!==0?r=Oo(i):o!==0&&(r=Oo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Wn(t),a=1<<n,r|=e[n],t&=~a;return r}function K1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function W1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Wn(o),l=1<<i,c=a[i];c===-1?(!(l&n)||l&r)&&(a[i]=K1(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function Td(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nx(){var e=Ki;return Ki<<=1,!(Ki&4194240)&&(Ki=64),e}function bu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wn(t),e[t]=n}function H1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Wn(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}function qm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var Ue=0;function rx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ax,Jm,sx,ox,ix,Pd=!1,Hi=[],Xr=null,ea=null,ta=null,ei=new Map,ti=new Map,$r=[],V1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tf(e,t){switch(e){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function bo(e,t,n,r,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Ci(t),t!==null&&Jm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function G1(e,t,n,r,a){switch(t){case"focusin":return Xr=bo(Xr,e,t,n,r,a),!0;case"dragenter":return ea=bo(ea,e,t,n,r,a),!0;case"mouseover":return ta=bo(ta,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return ei.set(o,bo(ei.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ti.set(o,bo(ti.get(o)||null,e,t,n,r,a)),!0}return!1}function lx(e){var t=ka(e.target);if(t!==null){var n=Va(t);if(n!==null){if(t=n.tag,t===13){if(t=Qy(n),t!==null){e.blockedOn=t,ix(e.priority,function(){sx(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 wl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ed=r,n.target.dispatchEvent(r),Ed=null}else return t=Ci(n),t!==null&&Jm(t),e.blockedOn=n,!1;t.shift()}return!0}function Pf(e,t,n){wl(e)&&n.delete(t)}function Z1(){Pd=!1,Xr!==null&&wl(Xr)&&(Xr=null),ea!==null&&wl(ea)&&(ea=null),ta!==null&&wl(ta)&&(ta=null),ei.forEac
vendor: 8,846 bytes, line 37
37h(Pf),ti.forEach(Pf)}function ko(e,t){e.blockedOn===t&&(e.blockedOn=null,Pd||(Pd=!0,hn.unstable_scheduleCallback(hn.unstable_NormalPriority,Z1)))}function ni(e){function t(a){return ko(a,e)}if(0<Hi.length){ko(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xr!==null&&ko(Xr,e),ea!==null&&ko(ea,e),ta!==null&&ko(ta,e),ei.forEach(t),ti.forEach(t),n=0;n<$r.length;n++)r=$r[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<$r.length&&(n=$r[0],n.blockedOn===null);)lx(n),n.blockedOn===null&&$r.shift()}var As=Rr.ReactCurrentBatchConfig,Ql=!0;function Y1(e,t,n,r){var a=Ue,o=As.transition;As.transition=null;try{Ue=1,Xm(e,t,n,r)}finally{Ue=a,As.transition=o}}function Q1(e,t,n,r){var a=Ue,o=As.transition;As.transition=null;try{Ue=4,Xm(e,t,n,r)}finally{Ue=a,As.transition=o}}function Xm(e,t,n,r){if(Ql){var a=Rd(e,t,n,r);if(a===null)Pu(e,t,r,ql,n),Tf(e,r);else if(G1(a,e,t,n,r))r.stopPropagation();else if(Tf(e,r),t&4&&-1<V1.indexOf(e)){for(;a!==null;){var o=Ci(a);if(o!==null&&ax(o),o=Rd(e,t,n,r),o===null&&Pu(e,t,r,ql,n),o===a)break;a=o}a!==null&&r.stopPropagation()}else Pu(e,t,r,null,n)}}var ql=null;function Rd(e,t,n,r){if(ql=null,e=Ym(r),e=ka(e),e!==null)if(t=Va(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Qy(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 ql=e,null}function cx(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(L1()){case Qm:return 1;case ex:return 4;case Zl:case D1:return 16;case tx:return 536870912;default:return 16}default:return 16}}var Zr=null,ep=null,bl=null;function ux(){if(bl)return bl;var e,t=ep,n=t.length,r,a="value"in Zr?Zr.value:Zr.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===a[o-r];r++);return bl=a.slice(e,1<r?1-r:void 0)}function kl(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 Vi(){return!0}function Rf(){return!1}function yn(e){function t(n,r,a,o,i){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vi:Rf,this.isPropagationStopped=Rf,this}return ot(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=Vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),t}var oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tp=yn(oo),zi=ot({},oo,{view:0,detail:0}),q1=yn(zi),ku,ju,jo,Rc=ot({},zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:np,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!==jo&&(jo&&e.type==="mousemove"?(ku=e.screenX-jo.screenX,ju=e.screenY-jo.screenY):ju=ku=0,jo=e),ku)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),Of=yn(Rc),J1=ot({},Rc,{dataTransfer:0}),X1=yn(J1),ej=ot({},zi,{relatedTarget:0}),Su=yn(ej),tj=ot({},oo,{animationName:0,elapsedTime:0,pseudoElement:0}),nj=yn(tj),rj=ot({},oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aj=yn(rj),sj=ot({},oo,{data:0}),Mf=yn(sj),oj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ij={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"},lj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lj[e])?!!t[e]:!1}function np(){return cj}var uj=ot({},zi,{key:function(e){if(e.key){var t=oj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ij[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:np,charCode:function(e){return e.type==="keypress"?kl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dj=yn(uj),mj=ot({},Rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=yn(mj),pj=ot({},zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:np}),fj=yn(pj),hj=ot({},oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),gj=yn(hj),yj=ot({},Rc,{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}),xj=yn(yj),vj=[9,13,27,32],rp=Er&&"CompositionEvent"in window,Ko=null;Er&&"documentMode"in document&&(Ko=document.documentMode);var wj=Er&&"TextEvent"in window&&!Ko,dx=Er&&(!rp||Ko&&8<Ko&&11>=Ko),_f=" ",Lf=!1;function mx(e,t){switch(e){case"keyup":return vj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function px(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fs=!1;function bj(e,t){switch(e){case"compositionend":return px(t);case"keypress":return t.which!==32?null:(Lf=!0,_f);case"textInput":return e=t.data,e===_f&&Lf?null:e;default:return null}}function kj(e,t){if(fs)return e==="compositionend"||!rp&&mx(e,t)?(e=ux(),bl=ep=Zr=null,fs=!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 dx&&t.locale!=="ko"?null:t.data;default:return null}}var jj={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 Df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jj[e.type]:t==="textarea"}function fx(e,t,n,r){Hy(r),t=Jl(t,"onChange"),0<t.length&&(n=new tp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wo=null,ri=null;function Sj(e){Nx(e,0)}function Oc(e){var t=ys(e);if(Dy(t))return e}function Nj(e,t){if(e==="change")return t}var hx=!1;if(Er){var Nu;if(Er){var Eu="oninput"in document;if(!Eu){var Ff=document.createElement("div");Ff.setAttribute("oninput","return;"),Eu=typeof Ff.oninput=="function"}Nu=Eu}else Nu=!1;hx=Nu&&(!document.documentMode||9<document.documentMode)}function Uf(){Wo&&(Wo.detachEvent("onpropertychange",gx),ri=Wo=null)}function gx(e){if(e.propertyName==="value"&&Oc(ri)){var t=[];fx(t,ri,e,Ym(e)),Yy(Sj,t)}}
vendor: 5,253 bytes, line 37
37function Ej(e,t,n){e==="focusin"?(Uf(),Wo=t,ri=n,Wo.attachEvent("onpropertychange",gx)):e==="focusout"&&Uf()}function zj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oc(ri)}function Cj(e,t){if(e==="click")return Oc(t)}function Aj(e,t){if(e==="input"||e==="change")return Oc(t)}function Tj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vn=typeof Object.is=="function"?Object.is:Tj;function ai(e,t){if(Vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!fd.call(t,a)||!Vn(e[a],t[a]))return!1}return!0}function $f(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bf(e,t){var n=$f(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$f(n)}}function yx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xx(){for(var e=window,t=Hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hl(e.document)}return t}function ap(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pj(e){var t=xx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yx(n.ownerDocument.documentElement,n)){if(r!==null&&ap(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=Bf(n,o);var i=Bf(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rj=Er&&"documentMode"in document&&11>=document.documentMode,hs=null,Od=null,Ho=null,Md=!1;function Kf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Md||hs==null||hs!==Hl(r)||(r=hs,"selectionStart"in r&&ap(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ho&&ai(Ho,r)||(Ho=r,r=Jl(Od,"onSelect"),0<r.length&&(t=new tp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hs)))}function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gs={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionend:Gi("Transition","TransitionEnd")},zu={},vx={};Er&&(vx=document.createElement("div").style,"AnimationEvent"in window||(delete gs.animationend.animation,delete gs.animationiteration.animation,delete gs.animationstart.animation),"TransitionEvent"in window||delete gs.transitionend.transition);function Mc(e){if(zu[e])return zu[e];if(!gs[e])return e;var t=gs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vx)return zu[e]=t[n];return e}var wx=Mc("animationend"),bx=Mc("animationiteration"),kx=Mc("animationstart"),jx=Mc("transitionend"),Sx=new Map,Wf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function pa(e,t){Sx.set(e,t),Ha(t,[e])}for(var Cu=0;Cu<Wf.length;Cu++){var Au=Wf[Cu],Oj=Au.toLowerCase(),Mj=Au[0].toUpperCase()+Au.slice(1);pa(Oj,"on"+Mj)}pa(wx,"onAnimationEnd");pa(bx,"onAnimationIteration");pa(kx,"onAnimationStart");pa("dblclick","onDoubleClick");pa("focusin","onFocus");pa("focusout","onBlur");pa(jx,"onTransitionEnd");Vs("onMouseEnter",["mouseout","mouseover"]);Vs("onMouseLeave",["mouseout","mouseover"]);Vs("onPointerEnter",["pointerout","pointerover"]);Vs("onPointerLeave",["pointerout","pointerover"]);Ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,181 bytes, line 37
37Ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ha("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="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(" "),Ij=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mo));function Hf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,O1(r,t,void 0,e),e.currentTarget=null}function Nx(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&a.isPropagationStopped())break e;Hf(a,l,u),o=c}else for(i=0;i<r.length;i++){if(l=r[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&a.isPropagationStopped())break e;Hf(a,l,u),o=c}}}if(Gl)throw e=Ad,Gl=!1,Ad=null,e}function qe(e,t){var n=t[Fd];n===void 0&&(n=t[Fd]=new Set);var r=e+"__bubble";n.has(r)||(Ex(t,e,2,!1),n.add(r))}function Tu(e,t,n){var r=0;t&&(r|=4),Ex(n,e,r,t)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[Zi]){e[Zi]=!0,Oy.forEach(function(n){n!=="selectionchange"&&(Ij.has(n)||Tu(n,!1,e),Tu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zi]||(t[Zi]=!0,Tu("selectionchange",!1,t))}}function Ex(e,t,n,r){switch(cx(t)){case 1:var a=Y1;break;case 4:a=Q1;break;default:a=Xm}n=a.bind(null,t,n,e),a=void 0,!Cd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Pu(e,t,n,r,a){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;i=i.return}for(;l!==null;){if(i=ka(l),i===null)return;if(c=i.tag,c===5||c===6){r=o=i;continue e}l=l.parentNode}}r=r.return}Yy(function(){var u=o,d=Ym(n),p=[];e:{var f=Sx.get(e);if(f!==void 0){var h=tp,k=e;switch(e){case"keypress":if(kl(n)===0)break e;case"keydown":case"keyup":h=dj;break;case"focusin":k="focus",h=Su;break;case"focusout":k="blur",h=Su;break;case"beforeblur":case"afterblur":h=Su;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":h=Of;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=X1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=fj;break;case wx:case bx:case kx:h=nj;break;case jx:h=gj;break;case"scroll":h=q1;break;case"wheel":h=xj;break;case"copy":case"cut":case"paste":h=aj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=If}var g=(t&4)!==0,b=!g&&e==="scroll",x=g?f!==null?f+"Capture":null:f;g=[];for(var y=u,w;y!==null;){w=y;var j=w.stateNode;if(w.tag===5&&j!==null&&(w=j,x!==null&&(j=Xo(y,x),j!=null&&g.push(oi(y,j,w)))),b)break;y=y.return}0<g.length&&(f=new h(f,k,null,n,d),p.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Ed&&(k=n.relatedTarget||n.fromElement)&&(ka(k)||k[zr]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(k=n.relatedTarget||n.toElement,h=u,k=k?ka(k):null,k!==null&&(b=Va(k),k!==b||k.tag!==5&&k.tag!==6)&&(k=null)):(h=null,k=u),h!==k)){if
vendor: 4,224 bytes, lines 37-38
37(g=Of,j="onMouseLeave",x="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=If,j="onPointerLeave",x="onPointerEnter",y="pointer"),b=h==null?f:ys(h),w=k==null?f:ys(k),f=new g(j,y+"leave",h,n,d),f.target=b,f.relatedTarget=w,j=null,ka(d)===u&&(g=new g(x,y+"enter",k,n,d),g.target=w,g.relatedTarget=b,j=g),b=j,h&&k)t:{for(g=h,x=k,y=0,w=g;w;w=Xa(w))y++;for(w=0,j=x;j;j=Xa(j))w++;for(;0<y-w;)g=Xa(g),y--;for(;0<w-y;)x=Xa(x),w--;for(;y--;){if(g===x||x!==null&&g===x.alternate)break t;g=Xa(g),x=Xa(x)}g=null}else g=null;h!==null&&Vf(p,f,h,g,!1),k!==null&&b!==null&&Vf(p,b,k,g,!0)}}e:{if(f=u?ys(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=Nj;else if(Df(f))if(hx)S=Aj;else{S=zj;var N=Ej}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=Cj);if(S&&(S=S(e,u))){fx(p,S,n,d);break e}N&&N(e,f,u),e==="focusout"&&(N=f._wrapperState)&&N.controlled&&f.type==="number"&&bd(f,"number",f.value)}switch(N=u?ys(u):window,e){case"focusin":(Df(N)||N.contentEditable==="true")&&(hs=N,Od=u,Ho=null);break;case"focusout":Ho=Od=hs=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,Kf(p,n,d);break;case"selectionchange":if(Rj)break;case"keydown":case"keyup":Kf(p,n,d)}var E;if(rp)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else fs?mx(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(dx&&n.locale!=="ko"&&(fs||T!=="onCompositionStart"?T==="onCompositionEnd"&&fs&&(E=ux()):(Zr=d,ep="value"in Zr?Zr.value:Zr.textContent,fs=!0)),N=Jl(u,T),0<N.length&&(T=new Mf(T,e,null,n,d),p.push({event:T,listeners:N}),E?T.data=E:(E=px(n),E!==null&&(T.data=E)))),(E=wj?bj(e,n):kj(e,n))&&(u=Jl(u,"onBeforeInput"),0<u.length&&(d=new Mf("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=E))}Nx(p,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jl(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Xo(e,n),o!=null&&r.unshift(oi(e,o,a)),o=Xo(e,t),o!=null&&r.push(oi(e,o,a))),e=e.return}return r}function Xa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vf(e,t,n,r,a){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,a?(c=Xo(n,o),c!=null&&i.unshift(oi(n,c,l))):a||(c=Xo(n,o),c!=null&&i.push(oi(n,c,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var _j=/\r\n?/g,Lj=/\u0000|\uFFFD/g;function Gf(e){return(typeof e=="string"?e:""+e).replace(_j,`
38`).replace(Lj,"")}function Yi(e,t,n){if(t=Gf(t),Gf(e)!==t&&n)throw Error($(425))}function Xl(){}var Id=null,_d=null;function Ld(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Dj=typeof clearTimeout=="function"?clearTimeout:void 0,Zf=typeof Promise=="function"?Promise:void 0,Fj=typeof queueMicrotask=="function"?queueMicrotask:typeof Zf<"u"?function(e){return Zf.resolve(null).then(e).catch(Uj)}:Dd;function Uj(e){setTimeout(function(){throw e})}function Ru(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),ni(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);ni(t)}function na(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var io=Math.random().toString(36).slice(2),rr="__reactFiber$"+io,ii="__reactProps$"+io,zr="__reactContainer$"+io,Fd="__reactEvents$"+io,$j="__reactListeners$"+io,Bj="__reactHandles$"+io;function ka(e){var t=e[rr];
vendor: 15,551 bytes, line 38
38if(t)return t;for(var n=e.parentNode;n;){if(t=n[zr]||n[rr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yf(e);e!==null;){if(n=e[rr])return n;e=Yf(e)}return t}e=n,n=e.parentNode}return null}function Ci(e){return e=e[rr]||e[zr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ys(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function Ic(e){return e[ii]||null}var Ud=[],xs=-1;function fa(e){return{current:e}}function Je(e){0>xs||(e.current=Ud[xs],Ud[xs]=null,xs--)}function Ge(e,t){xs++,Ud[xs]=e.current,e.current=t}var ua={},$t=fa(ua),nn=fa(!1),Ma=ua;function Gs(e,t){var n=e.type.contextTypes;if(!n)return ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function rn(e){return e=e.childContextTypes,e!=null}function ec(){Je(nn),Je($t)}function Qf(e,t,n){if($t.current!==ua)throw Error($(168));Ge($t,t),Ge(nn,n)}function zx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error($(108,E1(e)||"Unknown",a));return ot({},n,r)}function tc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,Ma=$t.current,Ge($t,e),Ge(nn,nn.current),!0}function qf(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=zx(e,t,Ma),r.__reactInternalMemoizedMergedChildContext=e,Je(nn),Je($t),Ge($t,e)):Je(nn),Ge(nn,n)}var wr=null,_c=!1,Ou=!1;function Cx(e){wr===null?wr=[e]:wr.push(e)}function Kj(e){_c=!0,Cx(e)}function ha(){if(!Ou&&wr!==null){Ou=!0;var e=0,t=Ue;try{var n=wr;for(Ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wr=null,_c=!1}catch(a){throw wr!==null&&(wr=wr.slice(e+1)),Xy(Qm,ha),a}finally{Ue=t,Ou=!1}}return null}var vs=[],ws=0,nc=null,rc=0,Sn=[],Nn=0,Ia=null,jr=1,Sr="";function va(e,t){vs[ws++]=rc,vs[ws++]=nc,nc=e,rc=t}function Ax(e,t,n){Sn[Nn++]=jr,Sn[Nn++]=Sr,Sn[Nn++]=Ia,Ia=e;var r=jr;e=Sr;var a=32-Wn(r)-1;r&=~(1<<a),n+=1;var o=32-Wn(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,jr=1<<32-Wn(t)+a|n<<a|r,Sr=o+e}else jr=1<<o|n<<a|r,Sr=e}function sp(e){e.return!==null&&(va(e,1),Ax(e,1,0))}function op(e){for(;e===nc;)nc=vs[--ws],vs[ws]=null,rc=vs[--ws],vs[ws]=null;for(;e===Ia;)Ia=Sn[--Nn],Sn[Nn]=null,Sr=Sn[--Nn],Sn[Nn]=null,jr=Sn[--Nn],Sn[Nn]=null}var pn=null,mn=null,tt=!1,Bn=null;function Tx(e,t){var n=En(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Jf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,pn=e,mn=na(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,pn=e,mn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ia!==null?{id:jr,overflow:Sr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=En(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,pn=e,mn=null,!0):!1;default:return!1}}function $d(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bd(e){if(tt){var t=mn;if(t){var n=t;if(!Jf(e,t)){if($d(e))throw Error($(418));t=na(n.nextSibling);var r=pn;t&&Jf(e,t)?Tx(r,n):(e.flags=e.flags&-4097|2,tt=!1,pn=e)}}else{if($d(e))throw Error($(418));e.flags=e.flags&-4097|2,tt=!1,pn=e}}}function Xf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pn=e}function Qi(e){if(e!==pn)return!1;if(!tt)return Xf(e),tt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ld(e.type,e.memoizedProps)),t&&(t=mn)){if($d(e))throw Px(),Error($(418));for(;t;)Tx(e,t),t=na(t.nextSibling)}if(Xf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mn=na(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mn=null}}else mn=pn?na(e.stateNode.nextSibling):null;return!0}function Px(){for(var e=mn;e;)e=na(e.nextSibling)}function Zs(){mn=pn=null,tt=!1}function ip(e){Bn===null?Bn=[e]:Bn.push(e)}var Wj=Rr.ReactCurrentBatchConfig;function So(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error($(309));var r=n.stateNode}if(!r)throw Error($(147,e));var a=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=a.refs;i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function eh(e){var t=e._init;return t(e._payload)}function Rx(e){function t(x,y){if(e){var w=x.deletions;w===null?(x.deletions=[y],x.flags|=16):w.push(y)}}function n(x,y){if(!e)return null;for(;y!==null;)t(x,y),y=y.sibling;return null}function r(x,y){for(x=new Map;y!==null;)y.key!==null?x.set(y.key,y):x.set(y.index,y),y=y.sibling;return x}function a(x,y){return x=oa(x,y),x.index=0,x.sibling=null,x}function o(x,y,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<y?(x.flags|=2,y):w):(x.flags|=2,y)):(x.flags|=1048576,y)}function i(x){return e&&x.alternate===null&&(x.flags|=2),x}function l(x,y,w,j){return y===null||y.tag!==6?(y=Uu(w,x.mode,j),y.return=x,y):(y=a(y,w),y.return=x,y)}function c(x,y,w,j){var S=w.type;return S===ps?d(x,y,w.props.children,j,w.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Fr&&eh(S)===y.type)?(j=a(y,w.props),j.ref=So(x,y,w),j.return=x,j):(j=Al(w.type,w.key,w.props,null,x.mode,j),j.ref=So(x,y,w),j.return=x,j)}function u(x,y,w,j){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=$u(w,x.mode,j),y.return=x,y):(y=a(y,w.children||[]),y.return=x,y)}function d(x,y,w,j,S){return y===null||y.tag!==7?(y=Oa(w,x.mode,j,S),y.return=x,y):(y=a(y,w),y.return=x,y)}function p(x,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Uu(""+y,x.mode,w),y.return=x,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ui:return w=Al(y.type,y.key,y.props,null,x.mode,w),w.ref=So(x,null,y),w.return=x,w;case ms:return y=$u(y,x.mode,w),y.return=x,y;case Fr:var j=y._init;return p(x,j(y._payload),w)}if(Ro(y)||vo(y))return y=Oa(y,x.mode,w,null),y.return=x,y;qi(x,y)}return null}function f(x,y,w,j){var S=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:l(x,y,""+w,j);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ui:return w.key===S?c(x,y,w,j):null;case ms:return w.key===S?u(x,y,w,j):null;case Fr:return S=w._init,f(x,y,S(w._payload),j)}if(Ro(w)||vo(w))return S!==null?null:d(x,y,w,j,null);qi(x,w)}return null}function h(x,y,w,j,S){if(typeof j=="string"&&j!==""||typeof j=="number")return x=x.get(w)||null,l(y,x,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ui:return x=x.get(j.key===null?w:j.key)||null,c(y,x,j,S);case ms:return x=x.get(j.key===null?w:j.key)||null,u(y,x,j,S);case Fr:var N=j._init;return h(x,y,w,N(j._payload),S)}if(Ro(j)||vo(j))return x=x.get(w)||null,d(y,x,j,S,null);qi(y,j)}return null}function k(x,y,w,j){for(var S=null,N=null,E=y,T=y=0,P=null;E!==null&&T<w.length;T++){E.index>T?(P=E,E=null):P=E.sibling;var L=f(x,E,w[T],j);if(L===null){E===null&&(E=P);break}e&&E&&L.alternate===null&&t(x,E),y=o(L,y,T),N===null?S=L:N.sibling=L,N=L,E=P}if(T===w.length)return n(x,E),tt&&va(x,T),S;if(E===null){for(;T<w.length;T++)E=p(x,w[T],j),E!==null&&(y=o(E,y,T),N===null?S=E:N.sibling=E,N=E);return tt&&va(x,T),S}for(E=r(x,E);T<w.length;T++)P=h(E,x,T,w[T],j),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?T:P.key),y=o(P,y,T),N===null?S=P:N.sibling=P,N=P);return e&&E.forEach(function(K){return t(x,K)}),tt&&va(x,T),S}function g(x,y,w,j){var S=vo(w);if(typeof S!="function")throw Error($(150));if(w=S.call(w),w==null)throw Error($(151));for(var N=S=null,E=y,T=y=0,P=null,L=w.next();E!==null&&!L.done;T++,L=w.next()){E.index>T?(P=E,E=null):P=E.sibling;var K=f(x,E,L.value,j);if(K===null){E===null&&(E=P);break}e&&E&&K.alternate===null&&t(x,E),y=o(K,y,T),N===null?S=K:N.sibling=K,N=K,E=P}if(L.done)return n(x,E),tt&&va(x,T),S;if(E===null){for(;!L.done;T++,L=w.next())L=p(x,L.value,j),L!==null&&(y=o(L,y,T),N===null?S=L:N.sibling=L,N=L);return tt&&va(x,T),S}for(E=r(x,E);!L.done;T++,L=w.next())L=h(E,x,T,L.value,j),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),y=o(L,y,T),N===null?S=L:N.sibling=L,N=L);return e&&E.forEach(function(F){return t(x,F)}),tt&&va(x,T),S}function b(x,y,w,j){if(typeof w=="object"&&w!==null&&w.type===ps&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ui:e:{for(var S=w.key,N=y;N!==null;){if(N.key===S){if(S=w.type,S===ps){if(N.tag===7){n(x,N.sibling),y=a(N,w.props.children),y.return=x,x=y;break e}}else if(N.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Fr&&eh(S)===N.type){n(x,N.sibling),y=a(N,w.props),y.ref=So(x,N,w),y.return=x,x=y;break e}n(x,N);break}else t(x,N);N=N.sibling}w.type===ps?(y=Oa(w.props.children,x.mode,j,w.key),y.return=x,x=y):(j=Al(w.type,w.key,w.props,null,x.mode,j),j.ref=So(x,y,w),j.return=x,x=j)}return i(x);case ms:e:{for(N=w.key;y!==null;){if(y.key===N)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(x,y.sibling),y=a(y,w.children||[]),y.return=x,x=y;break e}else{n(x,y);break}else t(x,y);y=y.sibling}y=$u(w,x.mode,j),y.return=x,x=y}return i(x);case Fr:return N=w._init,b(x,y,N(w._payload),j)}if(Ro(w))return k(x,y,w,j);if(vo(w))return g(x,y,w,j);qi(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(x,y.sibling),y=a(y,w),y.return=x,x=y):(n(x,y),y=Uu(w,x.mode,j),y.return=x,x=y),i(x)):n(x,y)}return b}var Ys=Rx(!0),Ox=Rx(!1),ac=fa(null),sc=null,bs=null,lp=null;function cp(){lp=bs=sc=null}function up(e){var t=ac.current;Je(ac),e._currentValue=t}function Kd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ts(e,t){sc=e,lp=bs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tn=!0),e.firstContext=null)}function Cn(e){var t=e._currentValue;if(lp!==e)if(e={context:e,memoizedValue:t,next:null},bs===null){if(sc===null)throw Error($(308));bs=e,sc.dependencies={lanes:0,firstContext:e}}else bs=bs.next=e;return t}var ja=null;function dp(e){ja===null?ja=[e]:ja.push(e)}function Mx(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,dp(t)):(n.next=a.next,a.next=n),t.interleaved=n,Cr(e,r)}function Cr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ur=!1;function mp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ix(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Oe&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Cr(e,n)}return a=r.interleaved,a===null?(t.next=t,dp(r)):(t.next=a.next,a.next=t),r.interleaved=t,Cr(e,n)}function jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qm(e,n)}}function th(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oc(e,t,n,r){var a=e.updateQueue;Ur=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var p=a.baseState;i=0,d=u=c=null,l=o;do{var f=l.lane,h=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var k=e,g=l;switch(f=t,h=n,g.tag){case 1:if(k=g.payload,typeof k=="function"){p=k.call(h,p,f);break e}p=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=g.payload,f=typeof k=="function"?k.call(h,p,f):k,f==null)break e;p=ot({},p,f);break e;case 2:Ur=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=a.effects,f===null?a.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=p):d=d.next=h,i|=f;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;f=l,l=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(!0);if(d===null&&(c=p),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);La|=i,e.lanes=i,e.memoizedState=p}}function nh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!="function")throw Error($(191,a));a.call(r)}}}var Ai={},ir=fa(Ai),li=fa(Ai),ci=fa(Ai);function Sa(e){if(e===Ai)throw Error($(174));return e}function pp(e,t){switch(Ge(ci,t),Ge(li,e),Ge(ir,Ai),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jd(t,e)}Je(ir),Ge(ir,t)}function Qs(){Je(ir),Je(li),Je(ci)}function _x(e){Sa(ci.current);var t=Sa(ir.current),n=jd(t,e.type);t!==n&&(Ge(li,e),Ge(ir,n))}function fp(e){li.current===e&&(Je(ir),Je(li))}var at=fa(0);function ic(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mu=[];function hp(){for(var e=0;e<Mu.length;e++)Mu[e]._workInProgressVersionPrimary=null;Mu.length=0}var Sl=Rr.ReactCurrentDispatcher,Iu=Rr.ReactCurrentBatchConfig,_a=0,st=null,bt=null,St=null,lc=!1,Vo=!1,ui=0,Hj=0;function _t(){throw Error($(321))}function gp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vn(e[n],t[n]))return!1;return!0}function yp(e,t,n,r,a,o){if(_a=o,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Sl.current=e===null||e.memoizedState===null?Yj:Qj,e=n(r,a),Vo){o=0;
vendor: 4,135 bytes, line 38
38do{if(Vo=!1,ui=0,25<=o)throw Error($(301));o+=1,St=bt=null,t.updateQueue=null,Sl.current=qj,e=n(r,a)}while(Vo)}if(Sl.current=cc,t=bt!==null&&bt.next!==null,_a=0,St=bt=st=null,lc=!1,t)throw Error($(300));return e}function xp(){var e=ui!==0;return ui=0,e}function Xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?st.memoizedState=St=e:St=St.next=e,St}function An(){if(bt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=St===null?st.memoizedState:St.next;if(t!==null)St=t,bt=e;else{if(e===null)throw Error($(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},St===null?st.memoizedState=St=e:St=St.next=e}return St}function di(e,t){return typeof t=="function"?t(e):t}function _u(e){var t=An(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=bt,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var i=a.next;a.next=o.next,o.next=i}r.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,r=r.baseState;var l=i=null,c=null,u=o;do{var d=u.lane;if((_a&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=p,i=r):c=c.next=p,st.lanes|=d,La|=d}u=u.next}while(u!==null&&u!==o);c===null?i=r:c.next=l,Vn(r,t.memoizedState)||(tn=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){a=e;do o=a.lane,st.lanes|=o,La|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lu(e){var t=An(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do o=e(o,i.action),i=i.next;while(i!==a);Vn(o,t.memoizedState)||(tn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lx(){}function Dx(e,t){var n=st,r=An(),a=t(),o=!Vn(r.memoizedState,a);if(o&&(r.memoizedState=a,tn=!0),r=r.queue,vp($x.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||St!==null&&St.memoizedState.tag&1){if(n.flags|=2048,mi(9,Ux.bind(null,n,r,a,t),void 0,null),Nt===null)throw Error($(349));_a&30||Fx(n,t,a)}return a}function Fx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ux(e,t,n,r){t.value=n,t.getSnapshot=r,Bx(t)&&Kx(e)}function $x(e,t,n){return n(function(){Bx(t)&&Kx(e)})}function Bx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vn(e,n)}catch{return!0}}function Kx(e){var t=Cr(e,1);t!==null&&Hn(t,e,1,-1)}function rh(e){var t=Xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},t.queue=e,e=e.dispatch=Zj.bind(null,st,e),[t.memoizedState,e]}function mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Wx(){return An().memoizedState}function Nl(e,t,n,r){var a=Xn();st.flags|=e,a.memoizedState=mi(1|t,n,void 0,r===void 0?null:r)}function Lc(e,t,n,r){var a=An();r=r===void 0?null:r;var o=void 0;if(bt!==null){var i=bt.memoizedState;if(o=i.destroy,r!==null&&gp(r,i.deps)){a.memoizedState=mi(t,n,o,r);return}}st.flags|=e,a.memoizedState=mi(1|t,n,o,r)}function ah(e,t){return Nl(8390656,8,e,t)}function vp(e,t){return Lc(2048,8,e,t)}function Hx(e,t){return Lc(4,2,e,t)}function Vx(e,t){return Lc(4,4,e,t)}function Gx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zx(e,t,n){return n=n!=null?n.concat([e]):null,Lc(4,4,Gx.bind(null,t,e),n)}function wp(){}function Yx(e,t){var n=An();
vendor: 7,656 bytes, lines 38-40
38t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qx(e,t){var n=An();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qx(e,t,n){return _a&21?(Vn(n,t)||(n=nx(),st.lanes|=n,La|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tn=!0),e.memoizedState=n)}function Vj(e,t){var n=Ue;Ue=n!==0&&4>n?n:4,e(!0);var r=Iu.transition;Iu.transition={};try{e(!1),t()}finally{Ue=n,Iu.transition=r}}function Jx(){return An().memoizedState}function Gj(e,t,n){var r=sa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xx(e))ev(t,n);else if(n=Mx(e,t,n,r),n!==null){var a=Qt();Hn(n,e,r,a),tv(n,t,r)}}function Zj(e,t,n){var r=sa(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xx(e))ev(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,Vn(l,i)){var c=t.interleaved;c===null?(a.next=a,dp(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=Mx(e,t,a,r),n!==null&&(a=Qt(),Hn(n,e,r,a),tv(n,t,r))}}function Xx(e){var t=e.alternate;return e===st||t!==null&&t===st}function ev(e,t){Vo=lc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qm(e,n)}}var cc={readContext:Cn,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},Yj={readContext:Cn,useCallback:function(e,t){return Xn().memoizedState=[e,t===void 0?null:t],e},useContext:Cn,useEffect:ah,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4194308,4,Gx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nl(4,2,e,t)},useMemo:function(e,t){var n=Xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gj.bind(null,st,e),[r.memoizedState,e]},useRef:function(e){var t=Xn();return e={current:e},t.memoizedState=e},useState:rh,useDebugValue:wp,useDeferredValue:function(e){return Xn().memoizedState=e},useTransition:function(){var e=rh(!1),t=e[0];return e=Vj.bind(null,e[1]),Xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=st,a=Xn();if(tt){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Nt===null)throw Error($(349));_a&30||Fx(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ah($x.bind(null,r,o,e),[e]),r.flags|=2048,mi(9,Ux.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xn(),t=Nt.identifierPrefix;if(tt){var n=Sr,r=jr;n=(r&~(1<<32-Wn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ui++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Hj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Qj={readContext:Cn,useCallback:Yx,useContext:Cn,useEffect:vp,useImperativeHandle:Zx,useInsertionEffect:Hx,useLayoutEffect:Vx,useMemo:Qx,useReducer:_u,useRef:Wx,useState:function(){return _u(di)},useDebugValue:wp,useDeferredValue:function(e){var t=An();return qx(t,bt.memoizedState,e)},useTransition:function(){var e=_u(di)[0],t=An().memoizedState;return[e,t]},useMutableSource:Lx,useSyncExternalStore:Dx,useId:Jx,unstable_isNewReconciler:!1},qj={readContext:Cn,useCallback:Yx,useContext:Cn,useEffect:vp,useImperativeHandle:Zx,useInsertionEffect:Hx,useLayoutEffect:Vx,useMemo:Qx,useReducer:Lu,useRef:Wx,useState:function(){return Lu(di)},useDebugValue:wp,useDeferredValue:function(e){var t=An();return bt===null?t.memoizedState=e:qx(t,bt.memoizedState,e)},useTransition:function(){var e=Lu(di)[0],t=An().memoizedState;return[e,t]},useMutableSource:Lx,useSyncExternalStore:Dx,useId:Jx,unstable_isNewReconciler:!1};function Ln(e,t){if(e&&e.defaultProps){t=ot({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Wd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ot({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dc={isMounted:function(e){return(e=e._reactInternals)?Va(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Qt(),a=sa(e),o=Nr(r,a);o.payload=t,n!=null&&(o.callback=n),t=ra(e,o,a),t!==null&&(Hn(t,e,a,r),jl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Qt(),a=sa(e),o=Nr(r,a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ra(e,o,a),t!==null&&(Hn(t,e,a,r),jl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qt(),r=sa(e),a=Nr(n,r);a.tag=2,t!=null&&(a.callback=t),t=ra(e,a,r),t!==null&&(Hn(t,e,r,n),jl(t,e,r))}};function sh(e,t,n,r,a,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!ai(n,r)||!ai(a,o):!0}function nv(e,t,n){var r=!1,a=ua,o=t.contextType;return typeof o=="object"&&o!==null?o=Cn(o):(a=rn(t)?Ma:$t.current,r=t.contextTypes,o=(r=r!=null)?Gs(e,a):ua),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function oh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Dc.enqueueReplaceState(t,t.state,null)}function Hd(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},mp(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=Cn(o):(o=rn(t)?Ma:$t.current,a.context=Gs(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Wd(e,t,o,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Dc.enqueueReplaceState(a,a.state,null),oc(e,n,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function qs(e,t){try{var n="",r=t;do n+=N1(r),r=r.return;while(r);var a=n}catch(o){a=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:a,digest:null}}function Du(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jj=typeof WeakMap=="function"?WeakMap:Map;function rv(e,t,n){n=Nr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dc||(dc=!0,nm=r),Vd(e,t)},n}function av(e,t,n){n=Nr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Vd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Vd(e,t),typeof r!="function"&&(aa===null?aa=new Set([this]):aa.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}
vendor: 8,477 bytes, line 40
40function ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jj;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=m2.bind(null,e,t,n),t.then(e,e))}function lh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ch(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nr(-1,1),t.tag=2,ra(n,t,1))),n.lanes|=1),e)}var Xj=Rr.ReactCurrentOwner,tn=!1;function Zt(e,t,n,r){t.child=e===null?Ox(t,null,n,r):Ys(t,e.child,n,r)}function uh(e,t,n,r,a){n=n.render;var o=t.ref;return Ts(t,a),r=yp(e,t,n,r,o,a),n=xp(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ar(e,t,a)):(tt&&n&&sp(t),t.flags|=1,Zt(e,t,r,a),t.child)}function dh(e,t,n,r,a){if(e===null){var o=n.type;return typeof o=="function"&&!Cp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,sv(e,t,o,r,a)):(e=Al(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(i,r)&&e.ref===t.ref)return Ar(e,t,a)}return t.flags|=1,e=oa(o,r),e.ref=t.ref,e.return=t,t.child=e}function sv(e,t,n,r,a){if(e!==null){var o=e.memoizedProps;if(ai(o,r)&&e.ref===t.ref)if(tn=!1,t.pendingProps=r=o,(e.lanes&a)!==0)e.flags&131072&&(tn=!0);else return t.lanes=e.lanes,Ar(e,t,a)}return Gd(e,t,n,r,a)}function ov(e,t,n){var r=t.pendingProps,a=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(js,un),un|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ge(js,un),un|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ge(js,un),un|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ge(js,un),un|=r;return Zt(e,t,a,n),t.child}function iv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Gd(e,t,n,r,a){var o=rn(n)?Ma:$t.current;return o=Gs(t,o),Ts(t,a),n=yp(e,t,n,r,o,a),r=xp(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ar(e,t,a)):(tt&&r&&sp(t),t.flags|=1,Zt(e,t,n,a),t.child)}function mh(e,t,n,r,a){if(rn(n)){var o=!0;tc(t)}else o=!1;if(Ts(t,a),t.stateNode===null)El(e,t),nv(t,n,r),Hd(t,n,r,a),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Cn(u):(u=rn(n)?Ma:$t.current,u=Gs(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&oh(t,i,r,u),Ur=!1;var f=t.memoizedState;i.state=f,oc(t,r,i,a),c=t.memoizedState,l!==r||f!==c||nn.current||Ur?(typeof d=="function"&&(Wd(t,n,d,r),c=t.memoizedState),(l=Ur||sh(t,n,l,r,f,c,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ix(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ln(t.type,l),i.props=u,p=t.pendingProps,f=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Cn(c):(c=rn(n)?Ma:$t.current,c=Gs(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||f!==c)&&oh(t,i,r,c),Ur=!1,f=t.memoizedState,i.state=f,oc(t,r,i,a);var k=t.memoizedState;l!==p||f!==k||nn.current||Ur?(typeof h=="function"&&(Wd(t,n,h,r),k=t.memoizedState),(u=Ur||sh(t,n,u,r,f,k,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,k,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,k,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),i.props=r,i.state=k,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Zd(e,t,n,r,o,a)}function Zd(e,t,n,r,a,o){iv(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return a&&qf(t,n,!1),Ar(e,t,o);r=t.stateNode,Xj.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ys(t,e.child,null,o),t.child=Ys(t,null,l,o)):Zt(e,t,l,o),t.memoizedState=r.state,a&&qf(t,n,!0),t.child}function lv(e){var t=e.stateNode;t.pendingContext?Qf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qf(e,t.context,!1),pp(e,t.containerInfo)}function ph(e,t,n,r,a){return Zs(),ip(a),t.flags|=256,Zt(e,t,n,r),t.child}var Yd={dehydrated:null,treeContext:null,retryLane:0};function Qd(e){return{baseLanes:e,cachePool:null,transitions:null}}function cv(e,t,n){var r=t.pendingProps,a=at.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ge(at,a&1),e===null)return Bd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=$c(i,r,0,null),e=Oa(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Qd(n),t.memoizedState=Yd,e):bp(t,i));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return e2(e,t,i,r,l,a,n);if(o){o=r.fallback,i=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=oa(a,c),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?o=oa(l,o):(o=Oa(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Qd(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Yd,r}return o=e.child,e=o.sibling,r=oa(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bp(e,t){return t=$c({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ji(e,t,n,r){return r!==null&&ip(r),Ys(t,e.child,null,n),e=bp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e2(e,t,n,r,a,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Du(Error($(422))),Ji(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=$c({mode:"visible",children:r.children},a,0,null),o=Oa(o,a,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ys(t,e.child,null,i),t.child.memoizedState=Qd(i),t.memoizedState=Yd,o);if(!(t.mode&1))return Ji(e,t,i,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error($(419)),r=Du(o,r,void 0),Ji(e,t,i,r)}if(l=(i&e.childLanes)!==0,tn||l){if(r=Nt,r!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}
vendor: 7,384 bytes, line 40
40a=a&(r.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Cr(e,a),Hn(r,e,a,-1))}return zp(),r=Du(Error($(421))),Ji(e,t,i,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=p2.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,mn=na(a.nextSibling),pn=t,tt=!0,Bn=null,e!==null&&(Sn[Nn++]=jr,Sn[Nn++]=Sr,Sn[Nn++]=Ia,jr=e.id,Sr=e.overflow,Ia=t),t=bp(t,r.children),t.flags|=4096,t)}function fh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Kd(e.return,t,n)}function Fu(e,t,n,r,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function uv(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Zt(e,t,r.children,n),r=at.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fh(e,n,t);else if(e.tag===19)fh(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}r&=1}if(Ge(at,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&ic(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Fu(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&ic(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Fu(t,!0,n,null,o);break;case"together":Fu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ar(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=oa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function t2(e,t,n){switch(t.tag){case 3:lv(t),Zs();break;case 5:_x(t);break;case 1:rn(t.type)&&tc(t);break;case 4:pp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ge(ac,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ge(at,at.current&1),t.flags|=128,null):n&t.child.childLanes?cv(e,t,n):(Ge(at,at.current&1),e=Ar(e,t,n),e!==null?e.sibling:null);Ge(at,at.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uv(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ge(at,at.current),r)break;return null;case 22:case 23:return t.lanes=0,ov(e,t,n)}return Ar(e,t,n)}var dv,qd,mv,pv;dv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};qd=function(){};mv=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Sa(ir.current);var o=null;switch(n){case"input":a=vd(e,a),r=vd(e,r),o=[];break;case"select":a=ot({},a,{value:void 0}),r=ot({},r,{value:void 0}),o=[];break;case"textarea":a=kd(e,a),r=kd(e,r),o=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xl)}Sd(n,r);var i;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qo.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&qe("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};pv=function(e,t,n,r){n!==r&&(t.flags|=4)};function No(e,t){if(!tt)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function n2(e,t,n){var r=t.pendingProps;switch(op(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return rn(t.type)&&ec(),Lt(t),null;case 3:return r=t.stateNode,Qs(),Je(nn),Je($t),hp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bn!==null&&(sm(Bn),Bn=null))),qd(e,t),Lt(t),null;case 5:fp(t);var a=Sa(ci.current);if(n=t.type,e!==null&&t.stateNode!=null)mv(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return Lt(t),null}if(e=Sa(ir.current),Qi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rr]=t,r[ii]=o,e=(t.mode&1)!==0,n){case"dialog":qe("cancel",r),qe("close",r);break;case"iframe":case"object":case"embed":qe("load",r);break;case"video":case"audio":for(a=0;a<Mo.length;a++)qe(Mo[a],r);break;case"source":qe("error",r);break;case"img":case"image":case"link":qe("error",r),qe("load",r);break;case"details":qe("toggle",r);break;case"input":jf(r,o),qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qe("invalid",r);break;case"textarea":Nf(r,o),qe("invalid",r)}Sd(n,o),a=null;for(var i in o)if(o.hasOwnProperty(i)){var l=o[i];i==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Yi(r.textContent,l,e),a=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Yi(r.textContent,l,e),a=["children",""+l]):qo.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&qe("scroll",r)}switch(n){case"input":$i(r),Sf(r,o,!0);break;case"textarea":$i(r),Ef(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Xl)}r=a,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$y(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[rr]=t,e[ii]=r,dv(e,t,!1,!1),t.stateNode=e;e:{switch(i=Nd(n,r),n){case"dialog":qe("cancel",e),qe("close",e),a=r;break;case"iframe":case"object":case"embed":qe("load",e),a=r;break;case"video":case"audio":for(a=0;a<Mo.length;a++)qe(Mo[a],e);a=r;break;case"source":qe("error",e),a=r;break;case"img":case"image":case"link":qe("error",e),qe("load",e),a=r;break;case"details":qe("toggle",e),a=r;break;case"input":jf(e,r),a=vd(e,r),qe("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=ot({},r,{value:void 0}),qe("invalid",e);break;case"textarea":Nf(e,r),a=kd(e,r),qe("invalid",e);break;default:a=r}Sd(n,a),l=a;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?Wy(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&By(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Jo(e,c):typeof c=="number"&&Jo(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(qo.hasOwnProperty(o)?c!=null&&o==="onScroll"&&qe("scroll",e):c!=null&&Hm(e,o,c,i))}switch(n){case"input":$i(e),Sf(e,r,!1);break;case"textarea":$i(e),Ef(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ca(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Es(e,!!r.multiple,o,!1):r.defaultValue!=null&&Es(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Xl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Lt(t),null;case 6:if(e&&t.stateNode!=null)pv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));if(n=Sa(ci.current),Sa(ir.current),Qi(t)){if(r=t.stateNode,n=t.memoizedProps,r[rr]=t,(o=r.nodeValue!==n)&&(e=pn,e!==null))switch(e.tag){case 3:Yi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rr]=t,t.stateNode=r}return Lt(t),null;case 13:if(Je(at),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(tt&&mn!==null&&t.mode&1&&!(t.flags&128))Px(),Zs(),t.flags|=98560,o=!1;else if(o=Qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error($(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error($(317));o[rr]=t}else Zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lt(t),o=!1}else Bn!==null&&(sm(Bn),Bn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||at.current&1?kt===0&&(kt=3):zp())),t.updateQueue!==null&&(t.flags|=4),Lt(t),null);case 4:return Qs(),qd(e,t),e===null&&si(t.stateNode.containerInfo),Lt(t),null;case 10:return up(t.type._context),Lt(t),null;case 17:return rn(t.type)&&ec(),Lt(t),null;case 19:if(Je(at),o=t.memoizedState,o===null)return Lt(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)No(o,!1);else{if(kt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=ic(e),i!==null){for(t.flags|=128,No(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ge(at,at.current&1|2),t.child}e=e.sibling}o.tail!==null&&ht()>Js&&(t.flags|=128,r=!0,No(o,!1),t.lanes=4194304)}else{if(!r)if(e=ic(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),No(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!tt)return Lt(t),null}else 2*ht()-o.renderingStartTime>Js&&n!==1073741824&&(t.flags|=128,r=!0,No(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ht(),t.sibling=null,n=at.current,Ge(at,r?n&1|2:n&1),t):(Lt(t),null);case 22:case 23:return Ep(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?un&1073741824&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function r2(e,t){switch(op(t),t.tag){case 1:return rn(t.type)&&ec(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 23,144 bytes, line 40
40case 3:return Qs(),Je(nn),Je($t),hp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fp(t),null;case 13:if(Je(at),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(at),null;case 4:return Qs(),null;case 10:return up(t.type._context),null;case 22:case 23:return Ep(),null;case 24:return null;default:return null}}var Xi=!1,Ut=!1,a2=typeof WeakSet=="function"?WeakSet:Set,q=null;function ks(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){mt(e,t,r)}else n.current=null}function Jd(e,t,n){try{n()}catch(r){mt(e,t,r)}}var hh=!1;function s2(e,t){if(Id=Ql,e=xx(),ap(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||a!==0&&p.nodeType!==3||(l=i+a),p!==o||r!==0&&p.nodeType!==3||(c=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(h=p.firstChild)!==null;)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=i),f===o&&++d===r&&(c=i),(h=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(_d={focusedElem:e,selectionRange:n},Ql=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var g=k.memoizedProps,b=k.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ln(t.type,g),b);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(j){mt(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return k=hh,hh=!1,k}function Go(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Jd(t,n,o)}a=a.next}while(a!==r)}}function Fc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fv(e){var t=e.alternate;t!==null&&(e.alternate=null,fv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rr],delete t[ii],delete t[Fd],delete t[$j],delete t[Bj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hv(e){return e.tag===5||e.tag===3||e.tag===4}function gh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function em(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xl));else if(r!==4&&(e=e.child,e!==null))for(em(e,t,n),e=e.sibling;e!==null;)em(e,t,n),e=e.sibling}function tm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tm(e,t,n),e=e.sibling;e!==null;)tm(e,t,n),e=e.sibling}var Et=null,$n=!1;function Or(e,t,n){for(n=n.child;n!==null;)gv(e,t,n),n=n.sibling}function gv(e,t,n){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:Ut||ks(n,t);case 6:var r=Et,a=$n;Et=null,Or(e,t,n),Et=r,$n=a,Et!==null&&($n?(e=Et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Et.removeChild(n.stateNode));break;case 18:Et!==null&&($n?(e=Et,n=n.stateNode,e.nodeType===8?Ru(e.parentNode,n):e.nodeType===1&&Ru(e,n),ni(e)):Ru(Et,n.stateNode));break;case 4:r=Et,a=$n,Et=n.stateNode.containerInfo,$n=!0,Or(e,t,n),Et=r,$n=a;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Jd(n,t,i),a=a.next}while(a!==r)}Or(e,t,n);break;case 1:if(!Ut&&(ks(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){mt(n,t,l)}Or(e,t,n);break;case 21:Or(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Or(e,t,n),Ut=r):Or(e,t,n);break;default:Or(e,t,n)}}function yh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new a2),t.forEach(function(r){var a=f2.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Rn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Et=l.stateNode,$n=!1;break e;case 3:Et=l.stateNode.containerInfo,$n=!0;break e;case 4:Et=l.stateNode.containerInfo,$n=!0;break e}l=l.return}if(Et===null)throw Error($(160));gv(o,i,a),Et=null,$n=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){mt(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yv(t,e),t=t.sibling}function yv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(t,e),qn(e),r&4){try{Go(3,e,e.return),Fc(3,e)}catch(g){mt(e,e.return,g)}try{Go(5,e,e.return)}catch(g){mt(e,e.return,g)}}break;case 1:Rn(t,e),qn(e),r&512&&n!==null&&ks(n,n.return);break;case 5:if(Rn(t,e),qn(e),r&512&&n!==null&&ks(n,n.return),e.flags&32){var a=e.stateNode;try{Jo(a,"")}catch(g){mt(e,e.return,g)}}if(r&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Fy(a,o),Nd(l,i);var u=Nd(l,o);for(i=0;i<c.length;i+=2){var d=c[i],p=c[i+1];d==="style"?Wy(a,p):d==="dangerouslySetInnerHTML"?By(a,p):d==="children"?Jo(a,p):Hm(a,d,p,u)}switch(l){case"input":wd(a,o);break;case"textarea":Uy(a,o);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Es(a,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?Es(a,!!o.multiple,o.defaultValue,!0):Es(a,!!o.multiple,o.multiple?[]:"",!1))}a[ii]=o}catch(g){mt(e,e.return,g)}}break;case 6:if(Rn(t,e),qn(e),r&4){if(e.stateNode===null)throw Error($(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(g){mt(e,e.return,g)}}break;case 3:if(Rn(t,e),qn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ni(t.containerInfo)}catch(g){mt(e,e.return,g)}break;case 4:Rn(t,e),qn(e);break;case 13:Rn(t,e),qn(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(Sp=ht())),r&4&&yh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ut=(u=Ut)||d,Rn(t,e),Ut=u):Rn(t,e),qn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(q=e,d=e.child;d!==null;){for(p=q=d;q!==null;){switch(f=q,h=f.child,f.tag){case 0:case 11:case 14:case 15:Go(4,f,f.return);break;case 1:ks(f,f.return);var k=f.stateNode;if(typeof k.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(g){mt(r,n,g)}}break;case 5:ks(f,f.return);break;case 22:if(f.memoizedState!==null){vh(p);continue}}h!==null?(h.return=f,q=h):vh(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{a=p.stateNode,u?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,c=p.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Ky("display",i))}catch(g){mt(e,e.return,g)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){mt(e,e.return,g)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Rn(t,e),qn(e),r&4&&yh(e);break;case 21:break;default:Rn(t,e),qn(e)}}function qn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hv(n)){var r=n;break e}n=n.return}throw Error($(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(Jo(a,""),r.flags&=-33);var o=gh(e);tm(e,o,a);break;case 3:case 4:var i=r.stateNode.containerInfo,l=gh(e);em(e,l,i);break;default:throw Error($(161))}}catch(c){mt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function o2(e,t,n){q=e,xv(e)}function xv(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var a=q,o=a.child;if(a.tag===22&&r){var i=a.memoizedState!==null||Xi;if(!i){var l=a.alternate,c=l!==null&&l.memoizedState!==null||Ut;l=Xi;var u=Ut;if(Xi=i,(Ut=c)&&!u)for(q=a;q!==null;)i=q,c=i.child,i.tag===22&&i.memoizedState!==null?wh(a):c!==null?(c.return=i,q=c):wh(a);for(;o!==null;)q=o,xv(o),o=o.sibling;q=a,Xi=l,Ut=u}xh(e)}else a.subtreeFlags&8772&&o!==null?(o.return=a,q=o):xh(e)}}function xh(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ut||Fc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ut)if(n===null)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ln(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&nh(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nh(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&ni(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($(163))}Ut||t.flags&512&&Xd(t)}catch(f){mt(t,t.return,f)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function vh(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function wh(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fc(4,t)}catch(c){mt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var a=t.return;try{r.componentDidMount()}catch(c){mt(t,a,c)}}var o=t.return;try{Xd(t)}catch(c){mt(t,o,c)}break;case 5:var i=t.return;try{Xd(t)}catch(c){mt(t,i,c)}}}catch(c){mt(t,t.return,c)}if(t===e){q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,q=l;break}q=t.return}}var i2=Math.ceil,uc=Rr.ReactCurrentDispatcher,kp=Rr.ReactCurrentOwner,zn=Rr.ReactCurrentBatchConfig,Oe=0,Nt=null,yt=null,zt=0,un=0,js=fa(0),kt=0,pi=null,La=0,Uc=0,jp=0,Zo=null,en=null,Sp=0,Js=1/0,vr=null,dc=!1,nm=null,aa=null,el=!1,Yr=null,mc=0,Yo=0,rm=null,zl=-1,Cl=0;function Qt(){return Oe&6?ht():zl!==-1?zl:zl=ht()}function sa(e){return e.mode&1?Oe&2&&zt!==0?zt&-zt:Wj.transition!==null?(Cl===0&&(Cl=nx()),Cl):(e=Ue,e!==0||(e=window.event,e=e===void 0?16:cx(e.type)),e):1}function Hn(e,t,n,r){if(50<Yo)throw Yo=0,rm=null,Error($(185));Ei(e,n,r),(!(Oe&2)||e!==Nt)&&(e===Nt&&(!(Oe&2)&&(Uc|=n),kt===4&&Br(e,zt)),an(e,r),n===1&&Oe===0&&!(t.mode&1)&&(Js=ht()+500,_c&&ha()))}function an(e,t){var n=e.callbackNode;W1(e,t);var r=Yl(e,e===Nt?zt:0);if(r===0)n!==null&&Af(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Af(n),t===1)e.tag===0?Kj(bh.bind(null,e)):Cx(bh.bind(null,e)),Fj(function(){!(Oe&6)&&ha()}),n=null;else{switch(rx(r)){case 1:n=Qm;break;case 4:n=ex;break;case 16:n=Zl;break;case 536870912:n=tx;break;default:n=Zl}n=Ev(n,vv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vv(e,t){if(zl=-1,Cl=0,Oe&6)throw Error($(327));var n=e.callbackNode;if(Ps()&&e.callbackNode!==n)return null;var r=Yl(e,e===Nt?zt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pc(e,r);else{t=r;var a=Oe;Oe|=2;var o=bv();(Nt!==e||zt!==t)&&(vr=null,Js=ht()+500,Ra(e,t));do try{u2();break}catch(l){wv(e,l)}while(!0);cp(),uc.current=o,Oe=a,yt!==null?t=0:(Nt=null,zt=0,t=kt)}if(t!==0){if(t===2&&(a=Td(e),a!==0&&(r=a,t=am(e,a))),t===1)throw n=pi,Ra(e,0),Br(e,r),an(e,ht()),n;if(t===6)Br(e,r);else{if(a=e.current.alternate,!(r&30)&&!l2(a)&&(t=pc(e,r),t===2&&(o=Td(e),o!==0&&(r=o,t=am(e,o))),t===1))throw n=pi,Ra(e,0),Br(e,r),an(e,ht()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error($(345));case 2:wa(e,en,vr);break;case 3:if(Br(e,r),(r&130023424)===r&&(t=Sp+500-ht(),10<t)){if(Yl(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){Qt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Dd(wa.bind(null,e,en,vr),t);break}wa(e,en,vr);break;case 4:if(Br(e,r),(r&4194240)===r)break;for(t=e.eventTimes,a=-1;0<r;){var i=31-Wn(r);o=1<<i,i=t[i],i>a&&(a=i),r&=~o}if(r=a,r=ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*i2(r/1960))-r,10<r){e.timeoutHandle=Dd(wa.bind(null,e,en,vr),r);break}wa(e,en,vr);break;case 5:wa(e,en,vr);break;default:throw Error($(329))}}}return an(e,ht()),e.callbackNode===n?vv.bind(null,e):null}function am(e,t){var n=Zo;return e.current.memoizedState.isDehydrated&&(Ra(e,t).flags|=256),e=pc(e,t),e!==2&&(t=en,en=n,t!==null&&sm(t)),e}function sm(e){en===null?en=e:en.push.apply(en,e)}function l2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!Vn(o(),a))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 Br(e,t){for(t&=~jp,t&=~Uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wn(t),r=1<<n;e[n]=-1,t&=~r}}function bh(e){if(Oe&6)throw Error($(327));Ps();var t=Yl(e,0);if(!(t&1))return an(e,ht()),null;var n=pc(e,t);if(e.tag!==0&&n===2){var r=Td(e);r!==0&&(t=r,n=am(e,r))}if(n===1)throw n=pi,Ra(e,0),Br(e,t),an(e,ht()),n;if(n===6)throw Error($(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wa(e,en,vr),an(e,ht()),null}function Np(e,t){var n=Oe;Oe|=1;try{return e(t)}finally{Oe=n,Oe===0&&(Js=ht()+500,_c&&ha())}}function Da(e){Yr!==null&&Yr.tag===0&&!(Oe&6)&&Ps();var t=Oe;Oe|=1;var n=zn.transition,r=Ue;try{if(zn.transition=null,Ue=1,e)return e()}finally{Ue=r,zn.transition=n,Oe=t,!(Oe&6)&&ha()}}function Ep(){un=js.current,Je(js)}function Ra(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Dj(n)),yt!==null)for(n=yt.return;n!==null;){var r=n;switch(op(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ec();break;case 3:Qs(),Je(nn),Je($t),hp();break;case 5:fp(r);break;case 4:Qs();break;case 13:Je(at);break;case 19:Je(at);break;case 10:up(r.type._context);break;case 22:case 23:Ep()}n=n.return}if(Nt=e,yt=e=oa(e.current,null),zt=un=t,kt=0,pi=null,jp=Uc=La=0,en=Zo=null,ja!==null){for(t=0;t<ja.length;t++)if(n=ja[t],r=n.interleaved,r!==null){n.interleaved=null;var a=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=a,r.next=i}n.pending=r}ja=null}return e}function wv(e,t){do{var n=yt;try{if(cp(),Sl.current=cc,lc){for(var r=st.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}lc=!1}if(_a=0,St=bt=st=null,Vo=!1,ui=0,kp.current=null,n===null||n.return===null){kt=1,pi=t,yt=null;break}e:{var o=e,i=n.return,l=n,c=t;if(t=zt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=lh(i);if(h!==null){h.flags&=-257,ch(h,i,l,o,t),h.mode&1&&ih(o,u,t),t=h,c=u;var k=t.updateQueue;if(k===null){var g=new Set;g.add(c),t.updateQueue=g}else k.add(c);break e}else{if(!(t&1)){ih(o,u,t),zp();break e}c=Error($(426))}}else if(tt&&l.mode&1){var b=lh(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),ch(b,i,l,o,t),ip(qs(c,l));break e}}o=c=qs(c,l),kt!==4&&(kt=2),Zo===null?Zo=[o]:Zo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var x=rv(o,c,t);th(o,x);break e;case 1:l=c;var y=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(aa===null||!aa.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var j=av(o,l,t);th(o,j);break e}}o=o.return}while(o!==null)}jv(n)}catch(S){t=S,yt===n&&n!==null&&(yt=n=n.return);continue}break}while(!0)}function bv(){var e=uc.current;return uc.current=cc,e===null?cc:e}function zp(){(kt===0||kt===3||kt===2)&&(kt=4),Nt===null||!(La&268435455)&&!(Uc&268435455)||Br(Nt,zt)}function pc(e,t){var n=Oe;Oe|=2;var r=bv();(Nt!==e||zt!==t)&&(vr=null,Ra(e,t));do try{c2();break}catch(a){wv(e,a)}while(!0);if(cp(),Oe=n,uc.current=r,yt!==null)throw Error($(261));return Nt=null,zt=0,kt}function c2(){for(;yt!==null;)kv(yt)}function u2(){for(;yt!==null&&!I1();)kv(yt)}function kv(e){var t=Nv(e.alternate,e,un);e.memoizedProps=e.pendingProps,t===null?jv(e):yt=t,kp.current=null}function jv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=r2(n,t),n!==null){n.flags&=32767,yt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{kt=6,yt=null;return}}else if(n=n2(n,t,un),n!==null){yt=n;return}if(t=t.sibling,t!==null){yt=t;return}yt=t=e}while(t!==null);kt===0&&(kt=5)}function wa(e,t,n){var r=Ue,a=zn.transition;try{zn.transition=null,Ue=1,d2(e,t,n,r)}finally{zn.transition=a,Ue=r}return null}function d2(e,t,n,r){do Ps();while(Yr!==null);if(Oe&6)throw Error($(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error($(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(H1(e,o),e===Nt&&(yt=Nt=null,zt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||el||(el=!0,Ev(Zl,function(){return Ps(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=zn.transition,zn.transition=null;var i=Ue;Ue=1;var l=Oe;Oe|=4,kp.current=null,s2(e,n),yv(n,e),Pj(_d),Ql=!!Id,_d=Id=null,e.current=n,o2(n),_1(),Oe=l,Ue=i,zn.transition=o}else e.current=n;if(el&&(el=!1,Yr=e,mc=a),o=e.pendingLanes,o===0&&(aa=null),F1(n.stateNode),an(e,ht()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(dc)throw dc=!1,e=nm,nm=null,e;return mc&1&&e.tag!==0&&Ps(),o=e.pendingLanes,o&1?e===rm?Yo++:(Yo=0,rm=e):Yo=0,ha(),null}function Ps(){if(Yr!==null){var e=rx(mc),t=zn.transition,n=Ue;try{if(zn.transition=null,Ue=16>e?16:e,Yr===null)var r=!1;else{if(e=Yr,Yr=null,mc=0,Oe&6)throw Error($(331));var a=Oe;for(Oe|=4,q=e.current;q!==null;){var o=q,i=o.child;if(q.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(q=u;q!==null;){var d=q;switch(d.tag){case 0:case 11:case 15:Go(8,d,o)}var p=d.child;if(p!==null)p.return=d,q=p;else for(;q!==null;){d=q;var f=d.sibling,h=d.return;if(fv(d),d===u){q=null;break}if(f!==null){f.return=h,q=f;break}q=h}}}var k=o.alternate;if(k!==null){var g=k.child;if(g!==null){k.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}q=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,q=i;else e:for(;q!==null;){if(o=q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Go(9,o,o.return)}var x=o.sibling;if(x!==null){x.return=o.return,q=x;break e}q=o.return}}var y=e.current;for(q=y;q!==null;){i=q;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,q=w;else e:for(i=y;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Fc(9,l)}}catch(S){mt(l,l.return,S)}if(l===i){q=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,q=j;break e}q=l.return}}if(Oe=a,ha(),or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(Pc,e)}catch{}r=!0}return r}finally{Ue=n,zn.transition=t}}return!1}function kh(e,t,n){t=qs(n,t),t=rv(e,t,1),e=ra(e,t,1),t=Qt(),e!==null&&(Ei(e,1,t),an(e,t))}function mt(e,t,n){if(e.tag===3)kh(e,e,n);else for(;t!==null;){if(t.tag===3){kh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(aa===null||!aa.has(r))){e=qs(n,e),e=av(t,e,1),t=ra(t,e,1),e=Qt(),t!==null&&(Ei(t,1,e),an(t,e));break}}t=t.return}}function m2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Qt(),e.pingedLanes|=e.suspendedLanes&n,Nt===e&&(zt&n)===n&&(kt===4||kt===3&&(zt&130023424)===zt&&500>ht()-Sp?Ra(e,0):jp|=n),an(e,t)}function Sv(e,t){t===0&&(e.mode&1?(t=Wi,Wi<<=1,!(Wi&130023424)&&(Wi=4194304)):t=1);var n=Qt();e=Cr(e,t),e!==null&&(Ei(e,t,n),an(e,n))}function p2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sv(e,n)}function f2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),Sv(e,n)}var Nv;Nv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nn.current)tn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tn=!1,t2(e,t,n);tn=!!(e.flags&131072)}else tn=!1,tt&&t.flags&1048576&&Ax(t,rc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var a=Gs(t,$t.current);Ts(t,n),a=yp(null,t,r,e,a,n);var o=xp();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rn(r)?(o=!0,tc(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,mp(t),a.updater=Dc,t.stateNode=a,a._reactInternals=t,Hd(t,r,e,n),t=Zd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&sp(t),Zt(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=g2(r),e=Ln(r,e),a){case 0:t=Gd(null,t,r,e,n);break e;case 1:t=mh(null,t,r,e,n);break e;case 11:t=uh(null,t,r,e,n);break e;case 14:t=dh(null,t,r,Ln(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ln(r,a),Gd(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ln(r,a),mh(e,t,r,a,n);case 3:e:{if(lv(t),e===null)throw Error($(387));
vendor: 4,674 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,a=o.element,Ix(e,t),oc(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=qs(Error($(423)),t),t=ph(e,t,r,n,a);break e}else if(r!==a){a=qs(Error($(424)),t),t=ph(e,t,r,n,a);break e}else for(mn=na(t.stateNode.containerInfo.firstChild),pn=t,tt=!0,Bn=null,n=Ox(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zs(),r===a){t=Ar(e,t,n);break e}Zt(e,t,r,n)}t=t.child}return t;case 5:return _x(t),e===null&&Bd(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Ld(r,a)?i=null:o!==null&&Ld(r,o)&&(t.flags|=32),iv(e,t),Zt(e,t,i,n),t.child;case 6:return e===null&&Bd(t),null;case 13:return cv(e,t,n);case 4:return pp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ys(t,null,r,n):Zt(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ln(r,a),uh(e,t,r,a,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ge(ac,r._currentValue),r._currentValue=i,o!==null)if(Vn(o.value,i)){if(o.children===a.children&&!nn.current){t=Ar(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Nr(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Kd(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error($(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Kd(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Zt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ts(t,n),a=Cn(a),r=r(a),t.flags|=1,Zt(e,t,r,n),t.child;case 14:return r=t.type,a=Ln(r,t.pendingProps),a=Ln(r.type,a),dh(e,t,r,a,n);case 15:return sv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ln(r,a),El(e,t),t.tag=1,rn(r)?(e=!0,tc(t)):e=!1,Ts(t,n),nv(t,r,a),Hd(t,r,a,n),Zd(null,t,r,!0,e,n);case 19:return uv(e,t,n);case 22:return ov(e,t,n)}throw Error($(156,t.tag))};function Ev(e,t){return Xy(e,t)}function h2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(e,t,n,r){return new h2(e,t,n,r)}function Cp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g2(e){if(typeof e=="function")return Cp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gm)return 11;if(e===Zm)return 14}return 2}function oa(e,t){var n=e.alternate;return n===null?(n=En(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Al(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")Cp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ps:return Oa(n.children,a,o,t);case Vm:i=8,a|=8;break;case hd:return e=En(12,n,t,a|2),e.elementType=hd,e.lanes=o,e;case gd:return e=En(13,n,t,a),e.elementType=gd,e.lanes=o,e;case yd:return e=En(19,n,t,a),e.elementType=yd,e.lanes=o,e;case _y:return $c(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case My:i=10;break e;case Iy:i=9;break e;case Gm:i=11;break e;case Zm:i=14;break e;case Fr:i=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=En(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Oa(e,t,n,r){return e=En(7,e,r,t),e.lanes=n,e}function $c(e,t,n,r){return e=En(22,e,r,t),e.elementType=_y,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 5,691 bytes, line 40
40function Uu(e,t,n){return e=En(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y2(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bu(0),this.expirationTimes=bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ap(e,t,n,r,a,o,i,l,c){return e=new y2(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=En(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mp(o),e}function x2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ms,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zv(e){if(!e)return ua;e=e._reactInternals;e:{if(Va(e)!==e||e.tag!==1)throw Error($(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error($(171))}if(e.tag===1){var n=e.type;if(rn(n))return zx(e,n,t)}return t}function Cv(e,t,n,r,a,o,i,l,c){return e=Ap(n,r,!0,e,a,o,i,l,c),e.context=zv(null),n=e.current,r=Qt(),a=sa(n),o=Nr(r,a),o.callback=t??null,ra(n,o,a),e.current.lanes=a,Ei(e,a,r),an(e,r),e}function Bc(e,t,n,r){var a=t.current,o=Qt(),i=sa(a);return n=zv(n),t.context===null?t.context=n:t.pendingContext=n,t=Nr(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ra(a,t,i),e!==null&&(Hn(e,a,i,o),jl(e,a,i)),i}function fc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tp(e,t){jh(e,t),(e=e.alternate)&&jh(e,t)}function v2(){return null}var Av=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pp(e){this._internalRoot=e}Kc.prototype.render=Pp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));Bc(e,t,null,null)};Kc.prototype.unmount=Pp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Da(function(){Bc(null,e,null,null)}),t[zr]=null}};function Kc(e){this._internalRoot=e}Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ox();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$r.length&&t!==0&&t<$r[n].priority;n++);$r.splice(n,0,e),n===0&&lx(e)}};function Rp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sh(){}function w2(e,t,n,r,a){if(a){if(typeof r=="function"){var o=r;r=function(){var u=fc(i);o.call(u)}}var i=Cv(t,r,e,0,null,!1,!1,"",Sh);return e._reactRootContainer=i,e[zr]=i.current,si(e.nodeType===8?e.parentNode:e),Da(),i}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var l=r;r=function(){var u=fc(c);l.call(u)}}var c=Ap(e,0,!1,null,null,!1,!1,"",Sh);return e._reactRootContainer=c,e[zr]=c.current,si(e.nodeType===8?e.parentNode:e),Da(function(){Bc(t,c,n,r)}),c}function Hc(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if(typeof a=="function"){var l=a;a=function(){var c=fc(i);l.call(c)}}Bc(t,i,e,a)}else i=w2(n,t,e,a,r);return fc(i)}ax=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oo(t.pendingLanes);n!==0&&(qm(t,n|1),an(t,ht()),!(Oe&6)&&(Js=ht()+500,ha()))}break;case 13:Da(function(){var r=Cr(e,1);if(r!==null){var a=Qt();Hn(r,e,1,a)}}),Tp(e,1)}};Jm=function(e){if(e.tag===13){var t=Cr(e,134217728);if(t!==null){var n=Qt();Hn(t,e,134217728,n)}Tp(e,134217728)}};sx=function(e){if(e.tag===13){var t=sa(e),n=Cr(e,t);if(n!==null){var r=Qt();Hn(n,e,t,r)}Tp(e,t)}};ox=function(){return Ue};ix=function(e,t){var n=Ue;try{return Ue=e,t()}finally{Ue=n}};zd=function(e,t,n){switch(t){case"input":if(wd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ic(r);if(!a)throw Error($(90));Dy(r),wd(r,a)}}}break;case"textarea":Uy(e,n);break;case"select":t=n.value,t!=null&&Es(e,!!n.multiple,t,!1)}};Gy=Np;Zy=Da;var b2={usingClientEntryPoint:!1,Events:[Ci,ys,Ic,Hy,Vy,Np]},Eo={findFiberByHostInstance:ka,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},k2={bundleType:Eo.bundleType,version:Eo.version,rendererPackageName:Eo.rendererPackageName,rendererConfig:Eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qy(e),e===null?null:e.stateNode},findFiberByHostInstance:Eo.findFiberByHostInstance||v2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tl.isDisabled&&tl.supportsFiber)try{Pc=tl.inject(k2),or=tl}catch{}}gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b2;gn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rp(t))throw Error($(200));return x2(e,t,null,n)};gn.createRoot=function(e,t){if(!Rp(e))throw Error($(299));var n=!1,r="",a=Av;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Ap(e,1,!1,null,null,n,!1,r,a),e[zr]=t.current,si(e.nodeType===8?e.parentNode:e),new Pp(t)};gn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):(e=Object.keys(e).join(","),Error($(268,e)));return e=qy(t),e=e===null?null:e.stateNode,e};gn.flushSync=function(e){return Da(e)};gn.hydrate=function(e,t,n){if(!Wc(t))throw Error($(200));return Hc(null,e,t,!0,n)};gn.hydrateRoot=function(e,t,n){if(!Rp(e))throw Error($(405));var r=n!=null&&n.hydratedSources||null,a=!1,o="",i=Av;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Cv(t,null,e,1,n??null,a,!1,o,i),e[zr]=t.current,si(e),r)for(e=0;e<r.length;e++)n=r[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Kc(t)};gn.render=function(e,t,n){if(!Wc(t))throw Error($(200));return Hc(null,e,t,!1,n)};gn.unmountComponentAtNode=function(e){if(!Wc(e))throw Error($(40));return e._reactRootContainer?(Da(function(){Hc(null,null,e,!1,function(){e._reactRootContainer=null,e[zr]=null})}),!0):!1};gn.unstable_batchedUpdates=Np;gn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wc(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Hc(e,t,n,!1,r)};gn.version="18.3.1-next-f1338f8080-20240426";function Tv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tv)}catch(e){console.error(e)}}Tv(),Ty.exports=gn;var Ga=Ty.exports;const Pv=Si(Ga);var Rv,Nh=Ga;Rv=Nh.createRoot,Nh.hydrateRoot;var j2=typeof Element<"u",S2=typeof Map=="function",N2=typeof Set=="function",E2=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Tl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Tl(e[r],t[r]))return!1;return!0}var o;if(S2&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Tl(r.value[1],t.get(r.value[0])))return!1;return!0}if(N2&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(E2&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(j2&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&e.$$typeof)&&!Tl(e[a[r]],t[a[r]]))return!1;return!0}return e!==e&&t!==t}var z2=function(t,n){try{return Tl(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const C2=Si(z2);var A2=function(e,t,n,r,a,o,i,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},T2=A2;const Eh=Si(T2);var P2=function(t,n,r,a){var o=r?r.call(a,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;
40if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var i=Object.keys(t),l=Object.keys(n);if(i.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<i.length;u++){var d=i[u];if(!c(d))return!1;var p=t[d],f=n[d];if(o=r?r.call(a,p,f,d):void 0,o===!1||o===void 0&&p!==f)return!1}return!0};const R2=Si(P2);var Ov=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Ov||{}),Bu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zh=Object.values(Ov),Vc={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Mv=Object.entries(Vc).reduce((e,[t,n])=>(e[n]=t,e),{}),Kn="data-rh",Rs={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Os=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},O2=e=>{let t=Os(e,"title");const n=Os(e,Rs.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Os(e,Rs.DEFAULT_TITLE);return t||r||void 0},M2=e=>Os(e,Rs.ON_CHANGE_CLIENT_STATE)||(()=>{}),Ku=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),I2=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const a=Object.keys(r);for(let o=0;o<a.length;o+=1){const l=a[o].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),_2=e=>console&&typeof console.warn=="function"&&console.warn(e),zo=(e,t,n)=>{const r={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&_2(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,o)=>{const i={};o.filter(c=>{let u;const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const h=d[f],k=h.toLowerCase();t.indexOf(k)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(k==="rel"&&c[k].toLowerCase()==="stylesheet")&&(u=k),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!c[u])return!1;const p=c[u].toLowerCase();return r[u]||(r[u]={}),i[u]||(i[u]={}),r[u][p]?!1:(i[u][p]=!0,!0)}).reverse().forEach(c=>a.push(c));const l=Object.keys(i);for(let c=0;c<l.length;c+=1){const u=l[c],d={...r[u],...i[u]};r[u]=d}return a},[]).reverse()},L2=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},D2=e=>({baseTag:I2(["href"],e),bodyAttributes:Ku("bodyAttributes",e),defer:Os(e,Rs.DEFER),encode:Os(e,Rs.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ku("htmlAttributes",e),linkTags:zo("link",["rel","href"],e),metaTags:zo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:zo("noscript",["innerHTML"],e),onChangeClientState:M2(e),scriptTags:zo("script",["src","innerHTML"],e),styleTags:zo("style",["cssText"],e),title:O2(e),titleAttributes:Ku("titleAttributes",e),prioritizeSeoTags:L2(e,Rs.PRIORITIZE_SEO_TAGS)}),Iv=e=>Array.isArray(e)?e.join(""):e,F2=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Wu=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(F2(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Ch=(e,t)=>({...e,[t]:void 0}),U2=["noscript","script","style"],om=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),_v=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),$2=(e,t,n,r)=>{const a=_v(n),o=Iv(t);return a?`<${e} ${Kn}="true" ${a}>${om(o,r)}</${e}>`:`<${e} ${Kn}="true">${om(o,r)}</${e}>`},B2=(e,t,n=!0)=>t.reduce((r,a)=>{const o=a,i=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const p=typeof o[d]>"u"?d:`${d}="${om(o[d],n)}"`;return u?`${u} ${p}`:p},""),l=o.innerHTML||o.cssText||"",c=U2.indexOf(e)===-1;return`${r}<${e} ${Kn}="true" ${i}${c?"/>":`>${l}</${e}>`}`},""),Lv=(e,t={})=>Object.keys(e).reduce((n,r)=>{const a=Vc[r];return n[a||r]=e[r],n}
40,t),K2=(e,t,n)=>{const r={key:t,[Kn]:!0},a=Lv(n,r);return[O.createElement("title",a,t)]},Pl=(e,t)=>t.map((n,r)=>{const a={key:r,[Kn]:!0};return Object.keys(n).forEach(o=>{const l=Vc[o]||o;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=n[o]}),O.createElement(e,a)}),kn=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>K2(e,t.title,t.titleAttributes),toString:()=>$2(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Lv(t),toString:()=>_v(t)};default:return{toComponent:()=>Pl(e,t),toString:()=>B2(e,t,n)}}},W2=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const a=Wu(e,Bu.meta),o=Wu(t,Bu.link),i=Wu(n,Bu.script);return{priorityMethods:{toComponent:()=>[...Pl("meta",a.priority),...Pl("link",o.priority),...Pl("script",i.priority)],toString:()=>`${kn("meta",a.priority,r)} ${kn("link",o.priority,r)} ${kn("script",i.priority,r)}`},metaTags:a.default,linkTags:o.default,scriptTags:i.default}},H2=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:a,noscriptTags:o,styleTags:i,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:p,scriptTags:f}=e,h={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:h,linkTags:d,metaTags:p,scriptTags:f}=W2(e)),{priority:h,base:kn("base",t,r),bodyAttributes:kn("bodyAttributes",n,r),htmlAttributes:kn("htmlAttributes",a,r),link:kn("link",d,r),meta:kn("meta",p,r),noscript:kn("noscript",o,r),script:kn("script",f,r),style:kn("style",i,r),title:kn("title",{title:l,titleAttributes:c},r)}},im=H2,nl=[],Op=!!(typeof window<"u"&&window.document&&window.document.createElement),lm=class{constructor(e,t){mr(this,"instances",[]);mr(this,"canUseDOM",Op);mr(this,"context");mr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?nl:this.instances,add:e=>{(this.canUseDOM?nl:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?nl:this.instances).indexOf(e);(this.canUseDOM?nl:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=im({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},V2=parseInt(O.version.split(".")[0],10),cm=V2>=19,G2={},Dv=O.createContext(G2),Na,Fv=(Na=class extends m.Component{constructor(n){super(n);mr(this,"helmetData");cm?this.helmetData=null:this.helmetData=new lm(this.props.context||{},Na.canUseDOM)}render(){return cm?O.createElement(O.Fragment,null,this.props.children):O.createElement(Dv.Provider,{value:this.helmetData.value},this.props.children)}},mr(Na,"canUseDOM",Op),Na),es=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Kn}]`),a=[].slice.call(r),o=[];let i;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText"){const d=l.cssText;c.appendChild(document.createTextNode(d))}else{const d=u,p=typeof l[d]>"u"?"":l[d];c.setAttribute(u,p)}c.setAttribute(Kn,"true"),a.some((u,d)=>(i=d,c.isEqualNode(u)))?a.splice(i,1):o.push(c)}),a.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),o.forEach(l=>n.appendChild(l)),{oldTags:a,newTags:o}},um=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Kn),a=r?r.split(","):[],o=[...a],i=Object.keys(t);for(const l of i){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),a.indexOf(l)===-1&&a.push(l);const u=o.indexOf(l);u!==-1&&o.splice(u,1)}for(let l=o.length-1;l>=0;l-=1)n.removeAttribute(o[l]);a.length===o.length?n.removeAttribute(Kn):n.getAttribute(Kn)!==i.join(",")&&n.setAttribute(Kn,i.join(","))},Z2=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Iv(e)),um("title",t)},Ah=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:a,linkTags:o,metaTags:i,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:p,titleAttributes:f}=e;um("body",r),um("html",a),Z2(p,f);const h={baseTag:es("base",n),linkTags:es("link",o),metaTags:es("meta",i),noscriptTags:es("noscript",l),scriptTags:es("script",u),styleTags:es("style",d)},k={},g={};
40Object.keys(h).forEach(b=>{const{newTags:x,oldTags:y}=h[b];x.length&&(k[b]=x),y.length&&(g[b]=h[b].oldTags)}),t&&t(),c(e,k,g)},Co=null,Y2=e=>{Co&&cancelAnimationFrame(Co),e.defer?Co=requestAnimationFrame(()=>{Ah(e,()=>{Co=null})}):(Ah(e),Co=null)},Q2=Y2,Th=class extends m.Component{constructor(){super(...arguments);mr(this,"rendered",!1)}shouldComponentUpdate(t){return!R2(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const a=D2(t.get().map(o=>{const{context:i,...l}=o.props;return l}));Fv.canUseDOM?Q2(a):im&&(r=im(a)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Rl=[],Ph=e=>{const t={};for(const n of Object.keys(e))t[Mv[n]||n]=e[n];return t},xa=e=>{const t={};for(const n of Object.keys(e)){const r=Vc[n];t[r||n]=e[n]}return t},Rh=(e,t)=>{if(!Op)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",a=n.getAttribute(r),o=a?a.split(","):[],i=Object.keys(t);for(const l of o)i.includes(l)||n.removeAttribute(l);for(const l of i){const c=t[l];c==null||c===!1?n.removeAttribute(l):c===!0?n.setAttribute(l,""):n.setAttribute(l,String(c))}i.length>0?n.setAttribute(r,i.join(",")):n.removeAttribute(r)},Hu=()=>{const e={},t={};for(const n of Rl){const{htmlAttributes:r,bodyAttributes:a}=n.props;r&&Object.assign(e,Ph(r)),a&&Object.assign(t,Ph(a))}Rh("html",e),Rh("body",t)},q2=class extends m.Component{componentDidMount(){Rl.push(this),Hu()}componentDidUpdate(){Hu()}componentWillUnmount(){const e=Rl.indexOf(this);e!==-1&&Rl.splice(e,1),Hu()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return O.createElement("title",xa(t),e)}renderBase(){const{base:e}=this.props;return e?O.createElement("base",xa(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>O.createElement("meta",{key:n,...xa(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>O.createElement("link",{key:n,...xa(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...a}=t,o=xa(a);return r&&(o.dangerouslySetInnerHTML={__html:r}),O.createElement("script",{key:n,...o})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...a}=t,o=xa(a);return r&&(o.dangerouslySetInnerHTML={__html:r}),O.createElement("style",{key:n,...o})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...a}=t,o=xa(a);return r&&(o.dangerouslySetInnerHTML={__html:r}),O.createElement("noscript",{key:n,...o})})}render(){return O.createElement(O.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},pd,Za=(pd=class extends m.Component{shouldComponentUpdate(e){return!C2(Ch(this.props,"helmetData"),Ch(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return Eh(zh.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zh.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Eh(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return O.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:a,...o}=r.props,i=Object.keys(o).reduce((c,u)=>(c[Mv[u]||u]=o[u],c),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,a),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,i,a);break;default:t=this.mapObjectTypeChildren(r,t,i,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof lm)){const a=r;r=new lm(a.context,!0),delete n.helmetData}return cm?O.createElement(q2,{...n}):r?O.createElement(Th,{...n,context:r.value}):O.createElement(Dv.Consumer,null,a=>O.createElement(Th,{...n,context:a}))}},mr(pd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),pd),Gc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zc=typeof window>"u"||"Deno"in globalThis;function Dn(){}function J2(e,t){return typeof e=="function"?e(t):e}function X2(e){return typeof e=="number"&&e>=0&&e!==1/0}function eS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function dm(e,t){return typeof e=="function"?e(t):e}function tS(e,t){return typeof e=="function"?e(t):e}function Oh(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==Mp(i,t.options))return!1}else if(!hi(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function Mh(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(fi(t.options.mutationKey)!==fi(o))return!1}else if(!hi(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Mp(e,t){return((t==null?void 0:t.queryKeyHashFn)||fi)(e)}function fi(e){return JSON.stringify(e,(t,n)=>mm(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function hi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>hi(e[n],t[n])):!1}function Uv(e,t){if(e===t)return e;const n=Ih(e)&&Ih(t);if(n||mm(e)&&mm(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),i=o.length,l=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<i;d++){const p=n?d:o[d];(!n&&c.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(l[p]=void 0,u++):(l[p]=Uv(e[p],t[p]),l[p]===e[p]&&e[p]!==void 0&&u++)}return a===i&&u===a?e:l}return t}function Ih(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mm(e){if(!_h(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!_h(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _h(e){return Object.prototype.toString.call(e)==="[object Object]"}function nS(e){return new Promise(t=>{setTimeout(t,e)})}function rS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Uv(e,t):t}function aS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ip=Symbol();function $v(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ip?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ea,Kr,Ds,dy,oS=(dy=class extends Gc{constructor(){super();Me(this,Ea);Me(this,Kr);Me(this,Ds);pe(this,Ds,t=>{if(!Zc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){I(this,Kr)||this.setEventListener(I(this,Ds))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Kr))==null||t.call(this),pe(this,Kr,void 0))}setEventListener(t){var n;pe(this,Ds,t),(n=I(this,Kr))==null||n.call(this),pe(this,Kr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){I(this,Ea)!==t&&(pe(this,Ea,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof I(this,Ea)=="boolean"?I(this,Ea):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ea=new WeakMap,Kr=new WeakMap,Ds=new WeakMap,dy),Bv=new oS,Fs,Wr,Us,my,iS=(my=class extends Gc{constructor(){super();Me(this,Fs,!0);Me(this,Wr);Me(this,Us);pe(this,Us,t=>{if(!Zc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){I(this,Wr)||this.setEventListener(I(this,Us))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Wr))==null||t.call(this),pe(this,Wr,void 0))}setEventListener(t){var n;pe(this,Us,t),(n=I(this,Wr))==null||n.call(this),pe(this,Wr,t(this.setOnline.bind(this)))}setOnline(t){I(this,Fs)!==t&&(pe(this,Fs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return I(this,Fs)}},Fs=new WeakMap,Wr=new WeakMap,Us=new WeakMap,my),hc=new iS;function lS(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function cS(e){return Math.min(1e3*2**e,3e4)}function Kv(e){return(e??"online")==="online"?hc.isOnline():!0}var Wv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vu(e){return e instanceof Wv}function Hv(e){let t=!1,n=0,r=!1,a;const o=lS(),i=g=>{var b;r||(f(new Wv(g)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>Bv.isFocused()&&(e.networkMode==="always"||hc.isOnline())&&e.canRun(),d=()=>Kv(e.networkMode)&&e.canRun(),p=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),a==null||a(),o.resolve(g))},f=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),a==null||a(),o.reject(g))},h=()=>new Promise(g=>{var b;a=x=>{(r||u())&&g(x)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;a=void 0,r||(g=e.onContinue)==null||g.call(e)}),k=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(p).catch(x=>{var N;if(r)return;const y=e.retry??(Zc?0:3),w=e.retryDelay??cS,j=typeof w=="function"?w(n,x):w,S=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,x);if(t||!S){f(x);return}n++,(N=e.onFail)==null||N.call(e,n,x),nS(j).then(()=>u()?void 0:h()).then(()=>{t?f(x):k()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?k():h().then(k),o)}}var uS=e=>setTimeout(e,0);function dS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=uS;const o=l=>{t?e.push(l):a(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var Yt=dS(),za,py,Vv=(py=class{constructor(){Me(this,za)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),X2(this.gcTime)&&pe(this,za,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zc?1/0:5*60*1e3))}clearGcTimeout(){I(this,za)&&(clearTimeout(I(this,za)),pe(this,za,void 0))}},za=new WeakMap,py),$s,Ca,jn,Aa,Ft,ki,Ta,Fn,hr,fy,mS=(fy=class extends Vv{constructor(t){super();Me(this,Fn);Me(this,$s);Me(this,Ca);Me(this,jn);Me(this,Aa);Me(this,Ft);Me(this,ki);Me(this,Ta);pe(this,Ta,!1),pe(this,ki,t.defaultOptions),this.setOptions(t.options),this.observers=[],pe(this,Aa,t.client),pe(this,jn,I(this,Aa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pe(this,$s,fS(this.options)),this.state=t.state??I(this,$s),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,Ft))==null?void 0:t.promise}setOptions(t){this.options={...I(this,ki),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,jn).remove(this)}setData(t,n){const r=rS(this.state.data,t,this.options);return It(this,Fn,hr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){It(this,Fn,hr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=I(this,Ft))==null?void 0:r.promise;return(a=I(this,Ft))==null||a.cancel(t),n?n.then(Dn).catch(Dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,$s))}isActive(){return this.observers.some(t=>tS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ip||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 40
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>dm(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!eS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Ft))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Ft))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(I(this,Ft)&&(I(this,Ta)?I(this,Ft).cancel({revert:!0}):I(this,Ft).cancelRetry()),this.scheduleGc()),I(this,jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||It(this,Fn,hr).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 40
40fetch(t,n){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(I(this,Ft))return I(this,Ft).continueRetry(),I(this,Ft).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(pe(this,Ta,!0),r.signal)})},o=()=>{const f=$v(this.options,n),k=(()=>{const g={client:I(this,Aa),queryKey:this.queryKey,meta:this.meta};return a(g),g})();return pe(this,Ta,!1),this.options.persister?this.options.persister(f,k,this):f(k)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:I(this,Aa),state:this.state,fetchFn:o};return a(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),pe(this,Ca,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&It(this,Fn,hr).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const c=f=>{var h,k,g,b;Vu(f)&&f.silent||It(this,Fn,hr).call(this,{type:"error",error:f}),Vu(f)||((k=(h=I(this,jn).config).onError)==null||k.call(h,f,this),(b=(g=I(this,jn).config).onSettled)==null||b.call(g,this.state.data,f,this)),this.scheduleGc()};return pe(this,Ft,Hv({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,k,g,b;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){c(x);return}(k=(h=I(this,jn).config).onSuccess)==null||k.call(h,f,this),(b=(g=I(this,jn).config).onSettled)==null||b.call(g,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,h)=>{It(this,Fn,hr).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{It(this,Fn,hr).call(this,{type:"pause"})},onContinue:()=>{It(this,Fn,hr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),I(this,Ft).start()}},$s=new WeakMap,Ca=new WeakMap,jn=new WeakMap,Aa=new WeakMap,Ft=new WeakMap,ki=new WeakMap,Ta=new WeakMap,Fn=new WeakSet,hr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...pS(r.data,this.options),fetchMeta:t.meta??null};case"success":return pe(this,Ca,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Vu(a)&&a.revert&&I(this,Ca)?{...I(this,Ca),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),I(this,jn).notify({query:this,type:"updated",action:t})})},fy);function pS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var er,hy,hS=(hy=class extends Gc{constructor(t={}){super();Me(this,er);this.config=t,pe(this,er,new Map)}build(t,n,r){const a=n.queryKey,o=n.queryHash??Mp(a,n);let i=this.get(o);return i||(i=new mS({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){I(this,er).has(t.queryHash)||(I(this,er).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=I(this,er).get(t.queryHash);n&&(t.destroy(),n===t&&I(this,er).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Yt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,er).get(t)}getAll(){return[...I(this,er).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Oh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Oh(t,r)):n}notify(t){Yt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},er=new WeakMap,hy),tr,Gt,Pa,nr,Lr,gy,gS=(gy=class extends Vv{constructor(t){super();Me(this,nr);Me(this,tr);Me(this,Gt);Me(this,Pa);this.mutationId=t.mutationId,pe(this,Gt,t.mutationCache),pe(this,tr,[]),this.state=t.state||yS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,tr).includes(t)||(I(this,tr).push(t),this.clearGcTimeout(),I(this,Gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,tr,I(this,tr).filter(n=>n!==t)),this.scheduleGc(),I(this,Gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,tr).length||(this.state.status==="pending"?this.scheduleGc():I(this,Gt).remove(this))}continue(){var t;return((t=I(this,Pa))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,l,c,u,d,p,f,h,k,g,b,x,y,w,j,S,N,E,T;const n=()=>{It(this,nr,Lr).call(this,{type:"continue"})};pe(this,Pa,Hv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,L)=>{It(this,nr,Lr).call(this,{type:"failed",failureCount:P,error:L})},onPause:()=>{It(this,nr,Lr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,Gt).canRun(this)}));const r=this.state.status==="pending",a=!I(this,Pa).canStart();try{if(r)n();else{It(this,nr,Lr).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=I(this,Gt).config).onMutate)==null?void 0:i.call(o,t,this));const L=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));L!==this.state.context&&It(this,nr,Lr).call(this,{type:"pending",context:L,variables:t,isPaused:a})}const P=await I(this,Pa).start();return await((d=(u=I(this,Gt).config).onSuccess)==null?void 0:d.call(u,P,t,this.state.context,this)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,P,t,this.state.context)),await((k=(h=I(this,Gt).config).onSettled)==null?void 0:k.call(h,P,null,this.state.variables,this.state.context,this)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,P,null,t,this.state.context)),It(this,nr,Lr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(x=I(this,Gt).config).onError)==null?void 0:y.call(x,P,t,this.state.context,this)),await((j=(w=this.options).onError)==null?void 0:j.call(w,P,t,this.state.context)),await((N=(S=I(this,Gt).config).onSettled)==null?void 0:N.call(S,void 0,P,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,P,t,this.state.context)),P}finally{It(this,nr,Lr).call(this,{type:"error",error:P})}}finally{I(this,Gt).runNext(this)}}},tr=new WeakMap,Gt=new WeakMap,Pa=new WeakMap,nr=new WeakSet,Lr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Yt.batch(()=>{I(this,tr).forEach(r=>{r.onMutationUpdate(t)}),I(this,Gt).notify({mutation:this,type:"updated",action:t})})},gy);function yS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kr,Un,ji,yy,xS=(yy=class extends Gc{constructor(t={}){super();Me(this,kr);Me(this,Un);Me(this,ji);this.config=t,pe(this,kr,new Set),pe(this,Un,new Map),pe(this,ji,0)}build(t,n,r){const a=new gS({mutationCache:this,mutationId:++Di(this,ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){I(this,kr).add(t);const n=rl(t);if(typeof n=="string"){const r=I(this,Un).get(n);r?r.push(t):I(this,Un).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,kr).delete(t)){const n=rl(t);if(typeof n=="string"){const r=I(this,Un).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&I(this,Un).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=rl(t);if(typeof n=="string"){const r=I(this,Un).get(n),a=r==null?void 0:r.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=rl(t);if(typeof n=="string"){const a=(r=I(this,Un).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Yt.batch(()=>{I(this,kr).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,kr).clear(),I(this,Un).clear()})}getAll(){return Array.from(I(this,kr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Mh(n,r))}findAll(t={}){return this.getAll().filter(n=>Mh(t,n))}notify(t){Yt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Yt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Dn))))}},kr=new WeakMap,Un=new WeakMap,ji=new WeakMap,yy);function rl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Lh(e){return{onFetch:(t,n)=>{var d,p,f,h,k;const r=t.options,a=(f=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:f.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],i=((k=t.state.data)==null?void 0:k.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},x=$v(t.options,t.fetchOptions),y=async(w,j,S)=>{if(g)return Promise.reject();if(j==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const K={client:t.client,queryKey:t.queryKey,pageParam:j,direction:S?"backward":"forward",meta:t.options.meta};return b(K),K})(),T=await x(E),{maxPages:P}=t.options,L=S?sS:aS;return{pages:L(w.pages,T,P),pageParams:L(w.pageParams,j,P)}};if(a&&o.length){const w=a==="backward",j=w?vS:Dh,S={pages:o,pageParams:i},N=j(r,S);l=await y(S,N,w)}else{const w=e??o.length;do{const j=c===0?i[0]??r.initialPageParam:Dh(r,l);if(c>0&&j==null)break;l=await y(l,j),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Dh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var dt,Hr,Vr,Bs,Ks,Gr,Ws,Hs,xy,wS=(xy=class{constructor(e={}){Me(this,dt);Me(this,Hr);Me(this,Vr);Me(this,Bs);Me(this,Ks);Me(this,Gr);Me(this,Ws);Me(this,Hs);pe(this,dt,e.queryCache||new hS),pe(this,Hr,e.mutationCache||new xS),pe(this,Vr,e.defaultOptions||{}),pe(this,Bs,new Map),pe(this,Ks,new Map),pe(this,Gr,0)}mount(){Di(this,Gr)._++,I(this,Gr)===1&&(pe(this,Ws,Bv.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,dt).onFocus())})),pe(this,Hs,hc.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,dt).onOnline())})))}unmount(){var e,t;Di(this,Gr)._--,I(this,Gr)===0&&((e=I(this,Ws))==null||e.call(this),pe(this,Ws,void 0),(t=I(this,Hs))==null||t.call(this),pe(this,Hs,void 0))}isFetching(e){return I(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Hr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=I(this,dt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(dm(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return I(this,dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=I(this,dt).get(r.queryHash),o=a==null?void 0:a.state.data,i=J2(t,o);if(i!==void 0)return I(this,dt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Yt.batch(()=>I(this,dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=I(this,dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=I(this,dt);Yt.batch(()=>
40{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=I(this,dt);return Yt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Yt.batch(()=>I(this,dt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Dn).catch(Dn)}invalidateQueries(e,t={}){return Yt.batch(()=>(I(this,dt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Yt.batch(()=>I(this,dt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Dn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=I(this,dt).build(this,t);return n.isStaleByTime(dm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dn).catch(Dn)}fetchInfiniteQuery(e){return e.behavior=Lh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dn).catch(Dn)}ensureInfiniteQueryData(e){return e.behavior=Lh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hc.isOnline()?I(this,Hr).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,dt)}getMutationCache(){return I(this,Hr)}getDefaultOptions(){return I(this,Vr)}setDefaultOptions(e){pe(this,Vr,e)}setQueryDefaults(e,t){I(this,Bs).set(fi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,Bs).values()],n={};return t.forEach(r=>{hi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){I(this,Ks).set(fi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Ks).values()],n={};return t.forEach(r=>{hi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,Vr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Mp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ip&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,Vr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,dt).clear(),I(this,Hr).clear()}},dt=new WeakMap,Hr=new WeakMap,Vr=new WeakMap,Bs=new WeakMap,Ks=new WeakMap,Gr=new WeakMap,Ws=new WeakMap,Hs=new WeakMap,xy),bS=m.createContext(void 0),kS=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(bS.Provider,{value:e,children:t}));/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gi.apply(this,arguments)}var Qr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qr||(Qr={}));const Fh="popstate";function jS(e){e===void 0&&(e={});function t(r,a){let{pathname:o,search:i,hash:l}=r.location;return pm("",{pathname:o,search:i,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:gc(a)}return NS(t,n,null,e)}function xt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Gv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SS(){return Math.random().toString(36).substr(2,8)}function Uh(e,t){return{usr:e.state,key:e.key,idx:t}}function pm(e,t,n,r){return n===void 0&&(n=null),gi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?lo(t):t,{state:n,key:t&&t.key||r||SS()})}function gc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function lo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function NS(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l=Qr.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(gi({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){l=Qr.Pop;let b=d(),x=b==null?null:b-u;u=b,c&&c({action:l,location:g.location,delta:x})}function f(b,x){l=Qr.Push;let y=pm(g.location,b,x);u=d()+1;let w=Uh(y,u),j=g.createHref(y);try{i.pushState(w,"",j)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(j)}o&&c&&c({action:l,location:g.location,delta:1})}function h(b,x){l=Qr.Replace;let y=pm(g.location,b,x);u=d();let w=Uh(y,u),j=g.createHref(y);i.replaceState(w,"",j),o&&c&&c({action:l,location:g.location,delta:0})}function k(b){let x=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof b=="string"?b:gc(b);return y=y.replace(/ $/,"%20"),xt(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let g={get action(){return l},get location(){return e(a,i)},listen(b){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(Fh,p),c=b,()=>{a.removeEventListener(Fh,p),c=null}},createHref(b){return t(a,b)},createURL:k,encodeLocation(b){let x=k(b);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:h,go(b){return i.go(b)}};return g}var $h;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($h||($h={}));function ES(e,t,n){return n===void 0&&(n="/"),zS(e,t,n,!1)}function zS(e,t,n,r){let a=typeof t=="string"?lo(t):t,o=_p(a.pathname||"/",n);if(o==null)return null;let i=Zv(e);CS(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let u=FS(o);l=LS(i[c],u,r)}return l}function Zv(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(o,i,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(xt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
49id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=ia([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(xt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zv(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:IS(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let c of Yv(o.path))a(o,i,c)}),t}function Yv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=Yv(r.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function CS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_S(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const AS=/^:[\w-]+$/,TS=3,PS=2,RS=1,OS=10,MS=-2,Bh=e=>e==="*";function IS(e,t){let n=e.split("/"),r=n.length;return n.some(Bh)&&(r+=MS),t&&(r+=PS),n.filter(a=>!Bh(a)).reduce((a,o)=>a+(AS.test(o)?TS:o===""?RS:OS),r)}function _S(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function LS(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=Kh({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=Kh({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!p)return null;
vendor: 6,834 bytes, lines 49-58
49Object.assign(a,p.params),i.push({params:a,pathname:ia([o,p.pathname]),pathnameBase:KS(ia([o,p.pathnameBase])),route:f}),p.pathnameBase!=="/"&&(o=ia([o,p.pathnameBase]))}return i}function Kh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=DS(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,d,p)=>{let{paramName:f,isOptional:h}=d;if(f==="*"){let g=l[p]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const k=l[p];return h&&!k?u[f]=void 0:u[f]=(k||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function DS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Gv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function FS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _p(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function US(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?lo(e):e;return{pathname:n?n.startsWith("/")?n:$S(n,t):t,search:WS(r),hash:HS(a)}}function $S(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Gu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function BS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qv(e,t){let n=BS(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function qv(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=lo(e):(a=gi({},e),xt(!a.pathname||!a.pathname.includes("?"),Gu("?","pathname","search",a)),xt(!a.pathname||!a.pathname.includes("#"),Gu("#","pathname","hash",a)),xt(!a.search||!a.search.includes("#"),Gu("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),p-=1;a.pathname=f.join("/")}l=p>=0?t[p]:"/"}let c=US(a,l),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const ia=e=>e.join("/").replace(/\/\/+/g,"/"),KS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,HS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Jv=["post","put","patch","delete"];new Set(Jv);const GS=["get",...Jv];new Set(GS);/**
50 * React Router v6.30.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yi.apply(this,arguments)}const Lp=m.createContext(null),ZS=m.createContext(null),Ya=m.createContext(null),Yc=m.createContext(null),Qa=m.createContext({outlet:null,matches:[],isDataRoute:!1}),Xv=m.createContext(null);function YS(e,t){let{relative:n}=t===void 0?{}:t;Ti()||xt(!1);let{basename:r,navigator:a}=m.useContext(Ya),{hash:o,pathname:i,search:l}=t0(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:ia([r,i])),a.createHref({pathname:c,search:l,hash:o})}function Ti(){return m.useContext(Yc)!=null}function co(){return Ti()||xt(!1),m.useContext(Yc).location}function e0(e){m.useContext(Ya).static||m.useLayoutEffect(e)}function QS(){let{isDataRoute:e}=m.useContext(Qa);return e?cN():qS()}function qS(){Ti()||xt(!1);let e=m.useContext(Lp),{basename:t,future:n,navigator:r}=m.useContext(Ya),{matches:a}=m.useContext(Qa),{pathname:o}=co(),i=JSON.stringify(Qv(a,n.v7_relativeSplatPath)),l=m.useRef(!1);return e0(()=>{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=qv(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ia([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,i,o,e])}function t0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Ya),{matches:a}=m.useContext(Qa),{pathname:o}=co(),i=JSON.stringify(Qv(a,r.v7_relativeSplatPath));return m.useMemo(()=>qv(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function JS(e,t){return XS(e,t)}function XS(e,t,n,r){Ti()||xt(!1);let{navigator:a}=m.useContext(Ya),{matches:o}=m.useContext(Qa),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=co(),d;if(t){var p;let b=typeof t=="string"?lo(t):t;c==="/"||(p=b.pathname)!=null&&p.startsWith(c)||xt(!1),d=b}else d=u;let f=d.pathname||"/",h=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let k=ES(e,{pathname:h}),g=aN(k&&k.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:ia([c,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:ia([c,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r);return t&&g?m.createElement(Yc.Provider,{value:{location:yi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Qr.Pop}},g):g}function eN(){let e=lN(),t=VS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application 
58Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:a},n):null,null)}const tN=m.createElement(eN,null);class nN extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(Qa.Provider,{value:this.props.routeContext},m.createElement(Xv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rN(e){let{routeContext:t,match:n,children:r}=e,a=m.useContext(Lp);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Qa.Provider,{value:t},r)}function aN(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let d=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||xt(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let p=i[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:f,errors:h}=n,k=p.route.loader&&f[p.route.id]===void 0&&(!h||h[p.route.id]===void 0);if(p.route.lazy||k){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,f)=>{let h,k=!1,g=null,b=null;n&&(h=l&&p.route.id?l[p.route.id]:void 0,g=p.route.errorElement||tN,c&&(u<0&&f===0?(k=!0,b=null):u===f&&(k=!0,b=p.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,f+1)),y=()=>{let w;return h?w=g:k?w=b:p.route.Component?w=m.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=d,m.createElement(rN,{match:p,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||f===0)?m.createElement(nN,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:y(),routeC
58ontext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var n0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(n0||{}),yc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yc||{});function sN(e){let t=m.useContext(Lp);return t||xt(!1),t}function oN(e){let t=m.useContext(ZS);return t||xt(!1),t}function iN(e){let t=m.useContext(Qa);return t||xt(!1),t}function r0(e){let t=iN(),n=t.matches[t.matches.length-1];return n.route.id||xt(!1),n.route.id}function lN(){var e;let t=m.useContext(Xv),n=oN(yc.UseRouteError),r=r0(yc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cN(){let{router:e}=sN(n0.UseNavigateStable),t=r0(yc.UseNavigateStable),n=m.useRef(!1);return e0(()=>{n.current=!0}),m.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,yi({fromRouteId:t},o)))},[e,t])}function uN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Vt(e){xt(!1)}function dN(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Qr.Pop,navigator:o,static:i=!1,future:l}=e;Ti()&&xt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:i,future:yi({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof r=="string"&&(r=lo(r));let{pathname:d="/",search:p="",hash:f="",state:h=null,key:k="default"}=r,g=m.useMemo(()=>{let b=_p(d,c);return b==null?null:{location:{pathname:b,search:p,hash:f,state:h,key:k},navigationType:a}},[c,d,p,f,h,k,a]);return g==null?null:m.createElement(Ya.Provider,{value:u},m.createElement(Yc.Provider,{children:n,value:g}))}function mN(e){let{children:t,location:n}=e;return JS(fm(t),n)}new Promise(()=>{});function fm(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,a)=>{if(!m.isValidElement(r))return;let o=[...t,a];if(r.type===m.Fragment){n.push.apply(n,fm(r.props.children,o));return}r.type!==Vt&&xt(!1),!r.props.index||!r.props.children||xt(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=fm(r.props.children,o)),n.push(i)}),n}/**
59 * React Router DOM v6.30.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hm.apply(this,arguments)}function pN(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function fN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hN(e,t){return e.button===0&&(!t||t==="_self")&&!fN(e)}const gN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yN="6";try{window.__reactRouterVersion=yN}catch{}const xN="startTransition",Wh=Bm[xN];function vN(e){let{basename:t,children:n,future:r,window:a}=e,o=m.useRef();o.current==null&&(o.current=jS({window:a,v5Compat:!0}));let i=o.current,[l,c]=m.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=m.useCallback(p=>{u&&Wh?Wh(()=>c(p)):c(p)},[c,u]);return m.useLayoutEffect(()=>i.listen(d),[i,d]),m.useEffect(()=>uN(r),[r]),m.createElement(dN,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const wN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=m.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p}=t,f=pN(t,gN),{basename:h}=m.useContext(Ya),k,g=!1;if(typeof u=="string"&&bN.test(u)&&(k=u,wN))try{let w=new URL(window.location.href),j=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=_p(j.pathname,h);j.origin===w.origin&&S!=null?u=S+j.search+j.hash:g=!0}catch{}let b=YS(u,{relative:a}),x=kN(u,{replace:i,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:p});function y(w){r&&r(w),w.defaultPrevented||x(w)}return m.createElement("a",hm({},f,{href:k||b,onClick:g||o?r:y,ref:n,target:c}))});var Hh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hh||(Hh={}));var Vh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}
67)(Vh||(Vh={}));function kN(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=QS(),u=co(),d=t0(e,{relative:i});return m.useCallback(p=>{if(hN(p,n)){p.preventDefault();let f=r!==void 0?r:gc(u)===gc(d);c(e,{replace:f,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[u,c,d,r,a,n,e,o,i,l])}var Gh=["light","dark"],jN="(prefers-color-scheme: dark)",SN=m.createContext(void 0),NN={setTheme:e=>{},themes:[]},EN=()=>{var e;return(e=m.useContext(SN))!=null?e:NN};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:i,attrs:l,nonce:c})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(k=>`'${k}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=a?Gh.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(k,g=!1,b=!0)=>{let x=i?i[k]:k,y=g?k+"|| ''":`'${x}'`,w="";return a&&b&&!g&&Gh.includes(k)&&(w+=`d.style.colorScheme = '${k}';`),n==="class"?g||x?w+=`c.add(${y})`:w+="null":x&&(w+=`d[s](n,${y})`),w},h=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${jN}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${p}}catch(t){}}();`;return m.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:h}})});var zN=e=>{switch(e){case"success":return TN;case"info":return RN;case"warning":return PN;case"error":return ON;default:return null}},CN=Array(12).fill(0),AN=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},CN.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),TN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),PN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),RN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ON=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),MN=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),IN=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};
67return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},gm=1,_N=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:gm++,o=this.toasts.find(l=>l.id===a),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...e,id:a,title:n}),{...l,...e,id:a,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
67this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),a=n!==void 0,o,i=r.then(async c=>{if(o=["resolve",c],O.isValidElement(c))a=!1,this.create({id:n,type:"default",message:c});else if(DN(c)&&!c.ok){a=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){a=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(o=["reject",c],t.error!==void 0){a=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;a&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>i.then(()=>o[0]==="reject"?u(o[1]):c(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||gm++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Xt=new _N,LN=(e,t)=>{let n=(t==null?void 0:t.id)||gm++;return Xt.addToast({title:e,...t,id:n}),n},DN=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",FN=LN,UN=()=>Xt.toasts,$N=()=>Xt.getActiveToasts();Object.assign(FN,{success:Xt.success,info:Xt.info,warning:Xt.warning,error:Xt.error,custom:Xt.custom,message:Xt.message,promise:Xt.promise,dismiss:Xt.dismiss,loading:Xt.loading},{getHistory:UN,getToasts:$N});function BN(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BN(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
67left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
67:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
67--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
68`);function al(e){return e.label!==void 0}var KN=3,WN="32px",HN="16px",Zh=4e3,VN=356,GN=14,ZN=20,YN=200;function On(...e){return e.filter(Boolean).join(" ")}function QN(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var qN=e=>{var t,n,r,a,o,i,l,c,u,d,p;let{invert:f,toast:h,unstyled:k,interacting:g,setHeights:b,visibleToasts:x,heights:y,index:w,toasts:j,expanded:S,removeToast:N,defaultRichColors:E,closeButton:T,style:P,cancelButtonStyle:L,actionButtonStyle:K,className:F="",descriptionClassName:ee="",duration:M,position:W,gap:_,loadingIcon:U,expandByDefault:z,classNames:R,icons:D,closeButtonAriaLabel:X="Close toast",pauseWhenPageIsHidden:Y}=e,[ne,Z]=O.useState(null),[ve,_e]=O.useState(null),[B,we]=O.useState(!1),[Ce,be]=O.useState(!1),[oe,V]=O.useState(!1),[$e,ie]=O.useState(!1),[Le,Ve]=O.useState(!1),[Bt,Kt]=O.useState(0),[pt,Ae]=O.useState(0),nt=O.useRef(h.duration||M||Zh),G=O.useRef(null),Q=O.useRef(null),ue=w===0,Pe=w+1<=x,de=h.type,Xe=h.dismissible!==!1,me=h.className||"",ce=h.descriptionClassName||"",De=O.useMemo(()=>y.findIndex(se=>se.toastId===h.id)||0,[y,h.id]),et=O.useMemo(()=>{var se;return(se=h.closeButton)!=null?se:T},[h.closeButton,T]),Pt=O.useMemo(()=>h.duration||M||Zh,[h.duration,M]),gt=O.useRef(0),re=O.useRef(0),rt=O.useRef(0),Rt=O.useRef(null),[on,le]=W.split("-"),Ze=O.useMemo(()=>y.reduce((se,Se,fe)=>fe>=De?se:se+Se.height,0),[y,De]),ln=IN(),Ja=h.invert||f,Wt=de==="loading";re.current=O.useMemo(()=>De*_+Ze,[De,Ze]),O.useEffect(()=>{nt.current=Pt},[Pt]),O.useEffect(()=>{we(!0)},[]),O.useEffect(()=>{let se=Q.current;if(se){let Se=se.getBoundingClientRect().height;return Ae(Se),b(fe=>[{toastId:h.id,height:Se,position:h.position},...fe]),()=>b(fe=>fe.filter(it=>it.toastId!==h.id))}},[b,h.id]),O.useLayoutEffect(()=>{if(!B)return;let se=Q.current,Se=se.style.height;se.style.height="auto";let fe=se.getBoundingClientRect().height;se.style.height=Se,Ae(fe),b(it=>it.find(jt=>jt.toastId===h.id)?it.map(jt=>jt.toastId===h.id?{...jt,height:fe}:jt):[{toastId:h.id,height:fe,position:h.position},...it])},[B,h.title,h.description,b,h.id]);let Ht=O.useCallback(()=>{be(!0),Kt(re.current),b(se=>se.filter(Se=>Se.toastId!==h.id)),setTimeout(()=>{N(h)},YN)},[h,N,b,re]);O.useEffect(()=>{if(h.promise&&de==="loading"||h.duration===1/0||h.type==="loading")return;let se;return S||g||Y&&ln?(()=>{if(rt.current<gt.current){let Se=new Date().getTime()-gt.current;nt.current=nt.current-Se}
68rt.current=new Date().getTime()})():nt.current!==1/0&&(gt.current=new Date().getTime(),se=setTimeout(()=>{var Se;(Se=h.onAutoClose)==null||Se.call(h,h),Ht()},nt.current)),()=>clearTimeout(se)},[S,g,h,de,Y,ln,Ht]),O.useEffect(()=>{h.delete&&Ht()},[Ht,h.delete]);function xn(){var se,Se,fe;return D!=null&&D.loading?O.createElement("div",{className:On(R==null?void 0:R.loader,(se=h==null?void 0:h.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":de==="loading"},D.loading):U?O.createElement("div",{className:On(R==null?void 0:R.loader,(Se=h==null?void 0:h.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":de==="loading"},U):O.createElement(AN,{className:On(R==null?void 0:R.loader,(fe=h==null?void 0:h.classNames)==null?void 0:fe.loader),visible:de==="loading"})}return O.createElement("li",{tabIndex:0,ref:Q,className:On(F,me,R==null?void 0:R.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[de],(n=h==null?void 0:h.classNames)==null?void 0:n[de]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:E,"data-styled":!(h.jsx||h.unstyled||k),"data-mounted":B,"data-promise":!!h.promise,"data-swiped":Le,"data-removed":Ce,"data-visible":Pe,"data-y-position":on,"data-x-position":le,"data-index":w,"data-front":ue,"data-swiping":oe,"data-dismissible":Xe,"data-type":de,"data-invert":Ja,"data-swipe-out":$e,"data-swipe-direction":ve,"data-expanded":!!(S||z&&B),style:{"--index":w,"--toasts-before":w,"--z-index":j.length-w,"--offset":`${Ce?Bt:re.current}px`,"--initial-height":z?"auto":`${pt}px`,...P,...h.style},onDragEnd:()=>{V(!1),Z(null),Rt.current=null},onPointerDown:se=>{Wt||!Xe||(G.current=new Date,Kt(re.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(V(!0),Rt.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,Se,fe,it;if($e||!Xe)return;Rt.current=null;let jt=Number(((se=Q.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((Se=Q.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ft=new Date().getTime()-((fe=G.current)==null?void 0:fe.getTime()),lt=ne==="x"?jt:vt,wt=Math.abs(lt)/ft;if(Math.abs(lt)>=ZN||wt>.11){Kt(re.current),(it=h.onDismiss)==null||it.call(h,h),_e(ne==="x"?jt>0?"right":"left":vt>0?"down":"up"),Ht(),ie(!0),Ve(!1);return}V(!1),Z(null)},onPointerMove:se=>{var Se,fe,it,jt;if(!Rt.current||!Xe||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;let vt=se.clientY-Rt.current.y,ft=se.clientX-Rt.current.x,lt=(fe=e.swipeDirections)!=null?fe:QN(W);!ne&&(Math.abs(ft)>1||Math.abs(vt)>1)&&Z(Math.abs(ft)>Math.abs(vt)?"x":"y");let wt={x:0,y:0};ne==="y"?(lt.includes("top")||lt.includes("bottom"))&&(lt.includes("top")&&vt<0||lt.includes("bottom")&&vt>0)&&(wt.y=vt):ne==="x"&&(lt.includes("left")||lt.includes("right"))&&(lt.includes("left")&&ft<0||lt.includes("right")&&ft>0)&&(wt.x=ft),(Math.abs(wt.x)>0||Math.abs(wt.y)>0)&&Ve(!0),(it=Q.current)==null||it.style.setProperty("--swipe-amount-x",`${wt.x}px`),(jt=Q.current)==null||jt.style.setProperty("--swipe-amount-y",`${wt.y}px`)}},et&&!h.jsx?O.createElement("button",{"aria-label":X,"data-disabled":Wt,"data-close-button":!0,onClick:Wt||!Xe?()=>{}:()=>{var se;Ht(),(se=h.onDismiss)==null||se.call(h,h)},className:On(R==null?void 0:R.closeButton,(a=h==null?void 0:h.classNames)==null?void 0:a.closeButton)},(o=D==null?void 0:D.close)!=null?o:MN):null,h.jsx||m.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:O.createElement(O.Fragment,null,de||h.icon||h.promise?O.createElement("div",{"data-icon":"",className:On(R==null?void 0:R.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||xn():null,h.type!=="loading"?h.icon||(D==null?void 0:D[de])||zN(de):null):null,O.createElement("div",{"data-content":"",className:On(R==null?void 0:R.content,(l=h==null?void 0:h.classNames)==null?void 0:l.content)},O.createElement("div",{"data-title":"",className:On(R==null?void 0:R.title,(c=h==null?void 0:h.classNames)==null?void 0:c.title)},typeof h.title=="function"?h.title():h.title),h.description?O.createElement("div",{"data-description":"",className:On(ee,ce,R==null?void 0:R.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),m.isValidElement(h.cancel)?h.cancel:h.cancel&&al(h.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||L,onClick:se=>{var Se,fe;al(h.cancel)&&Xe&&((fe=(Se=h.cancel).onClick)==null||fe.call(Se,se),Ht())},className:On(R==null?void 0:R.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,m.isValidElement(h.action)?h.action:h.action&&al(h.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||K,onClick:se=>{var Se,fe;al(h.action)&&((fe=(Se=h.action).onClick)==null||fe.call(Se,se),!se.defaultPrevented&&Ht())},className:On(R==null?void 0:R.actionButton,(p=h==null?void 0:h.classNames)==null?void 0:p.actionButton)},h.action.label):null))};function Yh(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function JN(e,t){let n={};return[e,t].forEach((r,a)=>{let o=a===1,i=o?"--mobile-offset":"--offset",l=o?HN:WN;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var XN=m.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:a=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:p,duration:f,style:h,visibleToasts:k=KN,toastOptions:g,dir:b=Yh(),gap:x=GN,loadingIcon:y,icons:w,containerAriaLabel:j="Notifications",pauseWhenPageIsHidden:S}=e,[N,E]=O.useState([]),T=O.useMemo(()=>Array.from(new Set([r].concat(N.filter(Y=>Y.position).map(Y=>Y.position)))),[N,r]),[P,L]=O.useState([]),[K,F]=O.useState(!1),[ee,M]=O.useState(!1),[W,_]=O.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
68k":"light"),U=O.useRef(null),z=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=O.useRef(null),D=O.useRef(!1),X=O.useCallback(Y=>{E(ne=>{var Z;return(Z=ne.find(ve=>ve.id===Y.id))!=null&&Z.delete||Xt.dismiss(Y.id),ne.filter(({id:ve})=>ve!==Y.id)})},[]);return O.useEffect(()=>Xt.subscribe(Y=>{if(Y.dismiss){E(ne=>ne.map(Z=>Z.id===Y.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{Pv.flushSync(()=>{E(ne=>{let Z=ne.findIndex(ve=>ve.id===Y.id);return Z!==-1?[...ne.slice(0,Z),{...ne[Z],...Y},...ne.slice(Z+1)]:[Y,...ne]})})})}),[]),O.useEffect(()=>{if(d!=="system"){_(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_("dark"):_("light")),typeof window>"u")return;let Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:ne})=>{_(ne?"dark":"light")})}catch{Y.addListener(({matches:Z})=>{try{_(Z?"dark":"light")}catch(ve){console.error(ve)}})}},[d]),O.useEffect(()=>{N.length<=1&&F(!1)},[N]),O.useEffect(()=>{let Y=ne=>{var Z,ve;a.every(_e=>ne[_e]||ne.code===_e)&&(F(!0),(Z=U.current)==null||Z.focus()),ne.code==="Escape"&&(document.activeElement===U.current||(ve=U.current)!=null&&ve.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[a]),O.useEffect(()=>{if(U.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,D.current=!1)}},[U.current]),O.createElement("section",{ref:t,"aria-label":`${j} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((Y,ne)=>{var Z;let[ve,_e]=Y.split("-");return N.length?O.createElement("ol",{key:Y,dir:b==="auto"?Yh():b,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":ve,"data-lifted":K&&N.length>1&&!o,"data-x-position":_e,style:{"--front-toast-height":`${((Z=P[0])==null?void 0:Z.height)||0}px`,"--width":`${VN}px`,"--gap":`${x}px`,...h,...JN(c,u)},onBlur:B=>{D.current&&!B.currentTarget.contains(B.relatedTarget)&&(D.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:B=>{B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||D.current||(D.current=!0,R.current=B.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{ee||F(!1)},onDragEnd:()=>F(!1),onPointerDown:B=>{B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},N.filter(B=>!B.position&&ne===0||B.position===Y).map((B,we)=>{var Ce,be;return O.createElement(qN,{key:B.id,icons:w,index:we,toast:B,defaultRichColors:p,duration:(Ce=g==null?void 0:g.duration)!=null?Ce:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:k,closeButton:(be=g==null?void 0:g.closeButton)!=null?be:i,interacting:ee,position:Y,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:X,toasts:N.filter(oe=>oe.position==B.position),heights:P.filter(oe=>oe.position==B.position),setHeights:L,expandByDefault:o,gap:x,loadingIcon:y,expanded:K,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const eE=({...e})=>{const{theme:t="system"}=EN();return s.jsx(XN,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},tE=1,nE=1e6;let Zu=0;function rE(){return Zu=(Zu+1)%Number.MAX_SAFE_INTEGER,Zu.toString()}const Yu=new Map,Qh=e=>{if(Yu.has(e))return;const t=setTimeout(()=>{Yu.delete(e),Qo({type:"REMOVE_TOAST",toastId:e})},nE);Yu.set(e,t)},aE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
68return n?Qh(n):e.toasts.forEach(r=>{Qh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ol=[];let Ml={toasts:[]};function Qo(e){Ml=aE(Ml,e),Ol.forEach(t=>{t(Ml)})}function sE({...e}){const t=rE(),n=a=>Qo({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Qo({type:"DISMISS_TOAST",toastId:t});return Qo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}}function oE(){const[e,t]=m.useState(Ml);return m.useEffect(()=>(Ol.push(t),()=>{const n=Ol.indexOf(t);n>-1&&Ol.splice(n,1)}),[e]),{...e,toast:sE,dismiss:n=>Qo({type:"DISMISS_TOAST",toastId:n})}}function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function qh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function a0(...e){return t=>{let n=!1;const r=e.map(a=>{const o=qh(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():qh(e[a],null)}}}}function He(...e){return m.useCallback(a0(...e),e)}function iE(e,t){const n=m.createContext(t),r=o=>{const{children:i,...l}=o,c=m.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function a(o){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function qa(e,t=[]){let n=[];function r(o,i){const l=m.createContext(i),c=n.length;n=[...n,i];const u=p=>{var x;const{scope:f,children:h,...k}=p,g=((x=f==null?void 0:f[e])==null?void 0:x[c])||l,b=m.useMemo(()=>k,Object.values(k));return s.jsx(g.Provider,{value:b,children:h})};u.displayName=o+"Provider";function d(p,f){var g;const h=((g=f==null?void 0:f[e])==null?void 0:g[c])||l,k=m.useContext(h);if(k)return k;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[u,d]}const a=()=>{const o=n.map(i=>m.createContext(i));return function(l){const c=(l==null?void 0:l[e])||o;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,lE(a,...t)]}function lE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const p=c(o)[`__scope${u}`];return{...l,...p}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Xs(e){const t=uE(e),n=m.forwardRef((r,a)=>{const{children:o,...i}=r,l=m.Children.toArray(o),c=l.find(mE);if(c){const u=c.props.children,d=l.map(p=>p===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:p);return s.jsx(t,{...i,ref:a,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return s.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var cE=Xs("Slot");function uE(e){const t=m.forwardRef((n,r)=>{const{children:a,...o}=n;if(m.isValidElement(a)){const i=fE(a),l=pE(o,a.props);return a.type!==m.Fragment&&(l.ref=r?a0(r,i):i),m.cloneElement(a,l)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var s0=Symbol("radix.slottable");function dE(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=s0,t}function mE(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s0}function pE(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...l)=>{const c=o(...l);return a(...l),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function fE(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function o0(e){const t=e+"CollectionProvider",[n,r]=qa(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:b,children:x}=g,y=O.useRef(null),w=O.useRef(new Map).current;return s.jsx(a,{scope:b,itemMap:w,collectionRef:y,children:x})};i.displayName=t;const l=e+"CollectionSlot",c=Xs(l),u=O.forwardRef((g,b)=>{const{scope:x,children:y}=g,w=o(l,x),j=He(b,w.collectionRef);return s.jsx(c,{ref:j,children:y})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",f=Xs(d),h=O.forwardRef((g,b)=>{const{scope:x,children:y,...w}=g,j=O.useRef(null),S=He(b,j),N=o(d,x);return O.useEffect(()=>(N.itemMap.set(j,{ref:j,...w}),()=>
vendor: 9,168 bytes, line 68
68void N.itemMap.delete(j))),s.jsx(f,{[p]:"",ref:S,children:y})});h.displayName=d;function k(g){const b=o(e+"CollectionConsumer",g);return O.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((N,E)=>w.indexOf(N.ref.current)-w.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},k,r]}var hE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=hE.reduce((e,t)=>{const n=Xs(`Primitive.${t}`),r=m.forwardRef((a,o)=>{const{asChild:i,...l}=a,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function i0(e,t){e&&Ga.flushSync(()=>e.dispatchEvent(t))}function Gn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function gE(e,t=globalThis==null?void 0:globalThis.document){const n=Gn(e);m.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yE="DismissableLayer",ym="dismissableLayer.update",xE="dismissableLayer.pointerDownOutside",vE="dismissableLayer.focusOutside",Jh,l0=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pi=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...c}=e,u=m.useContext(l0),[d,p]=m.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),k=He(t,E=>p(E)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(b),y=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,j=y>=x,S=bE(E=>{const T=E.target,P=[...u.branches].some(L=>L.contains(T));!j||P||(a==null||a(E),i==null||i(E),E.defaultPrevented||l==null||l())},f),N=kE(E=>{const T=E.target;[...u.branches].some(L=>L.contains(T))||(o==null||o(E),i==null||i(E),E.defaultPrevented||l==null||l())},f);return gE(E=>{y===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},f),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Jh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Xh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Jh)}},[d,f,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Xh())},[d,u]),m.useEffect(()=>{const E=()=>h({});return document.addEventListener(ym,E),()=>document.removeEventListener(ym,E)},[]),s.jsx(Te.div,{...c,ref:k,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,N.onFocusCapture),onBlurCapture:he(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,S.onPointerDownCapture)})});Pi.displayName=yE;var wE="DismissableLayerBranch",c0=m.forwardRef((e,t)=>{const n=m.useContext(l0),r=m.useRef(null),a=He(t,r);return m.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),s.jsx(Te.div,{...e,ref:a})});c0.displayName=wE;function bE(e,t=globalThis==null?void 0:globalThis.document){const n=Gn(e),r=m.useRef(!1),a=m.useRef(()=>{});return m.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let c=function(){u0(xE,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kE(e,t=globalThis==null?void 0:globalThis.document){const n=Gn(e),r=m.useRef(!1);return m.useEffect(()=>{const a=o=>{o.target&&!r.current&&u0(vE,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xh(){const e=new CustomEvent(ym);document.dispatchEvent(e)}function u0(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?i0(a,o):a.dispatchEvent(o)}var jE=Pi,SE=c0,Tt=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},NE="Portal",Qc=m.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[a,o]=m.useState(!1);Tt(()=>o(!0),[]);const i=n||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Pv.createPortal(s.jsx(Te.div,{...r,ref:t}),i):null});Qc.displayName=NE;function EE(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var uo=e=>{const{present:t,children:n}=e,r=zE(t),a=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),o=He(r.ref,CE(a));return typeof n=="function"||r.isPresent?m.cloneElement(a,{ref:o}):null};uo.displayName="Presence";function zE(e){const[t,n]=m.useState(),r=m.useRef(null),a=m.useRef(e),o=m.useRef("none"),i=e?"mounted":"unmounted",[l,c]=EE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=sl(r.current);o.current=l==="mounted"?u:"none"},[l]),Tt(()=>{const u=r.current,d=a.current;if(d!==e){const f=o.current,h=sl(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Tt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=h=>{const g=sl(r.current).includes(h.animationName);if(h.target===t&&g&&(c("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=h=>{h.target===t&&(o.current=sl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function sl(e){return(e==null?void 0:e.animationName)||"none"}function CE(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var AE=Bm[" useInsertionEffect ".trim().toString()]||Tt;function xi({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,i]=TE({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:a;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=m.useCallback(d=>{var p;if(l){const f=PE(d)?d(e):d;f!==e&&((p=i.current)==null||p.call(i,f))}else o(d)},[l,e,o,i]);return[c,u]}function TE({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),a=m.useRef(n),o=m.useRef(t);return AE(()=>{o.current=t},[t]),m.useEffect(()=>{var i;a.current!==n&&((i=o.current)==null||i.call(o,n),a.current=n)},[n,a]),[n,r,o]}function PE(e){return typeof e=="function"}var d0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),RE="VisuallyHidden",qc=m.forwardRef((e,t)=>s.jsx(Te.span,{...e,ref:t,style:{...d0,...e.style}}));qc.displayName=RE;var OE=qc,Dp="ToastProvider",[Fp,ME,IE]=o0("Toast"),[m0,M3]=qa("Toast",[IE]),[_E,Jc]=m0(Dp),p0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:i}=e,[l,c]=m.useState(null),[u,d]=m.useState(0),p=m.useRef(!1),f=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Dp}\`. Expected non-empty \`string\`.`),s.jsx(Fp.Provider,{scope:t,children:s.jsx(_E,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:o,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:m.useCallback(()=>d(h=>h+1),[]),onToastRemove:m.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:i})})};p0.displayName=Dp;var f0="ToastViewport",LE=["F8"],xm="toast.viewportPause",vm="toast.viewportResume",h0=m.forwardRef((e,t)=>
68{const{__scopeToast:n,hotkey:r=LE,label:a="Notifications ({hotkey})",...o}=e,i=Jc(f0,n),l=ME(n),c=m.useRef(null),u=m.useRef(null),d=m.useRef(null),p=m.useRef(null),f=He(t,p,i.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=i.toastCount>0;m.useEffect(()=>{const b=x=>{var w;r.length!==0&&r.every(j=>x[j]||x.code===j)&&((w=p.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),m.useEffect(()=>{const b=c.current,x=p.current;if(k&&b&&x){const y=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(xm);x.dispatchEvent(N),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(vm);x.dispatchEvent(N),i.isClosePausedRef.current=!1}},j=N=>{!b.contains(N.relatedTarget)&&w()},S=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",y),b.addEventListener("focusout",j),b.addEventListener("pointermove",y),b.addEventListener("pointerleave",S),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",y),b.removeEventListener("focusout",j),b.removeEventListener("pointermove",y),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[k,i.isClosePausedRef]);const g=m.useCallback(({tabbingDirection:b})=>{const y=l().map(w=>{const j=w.ref.current,S=[j,...QE(j)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?y.reverse():y).flat()},[l]);return m.useEffect(()=>{const b=p.current;if(b){const x=y=>{var S,N,E;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const T=document.activeElement,P=y.shiftKey;if(y.target===b&&P){(S=u.current)==null||S.focus();return}const F=g({tabbingDirection:P?"backwards":"forwards"}),ee=F.findIndex(M=>M===T);Qu(F.slice(ee+1))?y.preventDefault():P?(N=u.current)==null||N.focus():(E=d.current)==null||E.focus()}};return b.addEventListener("keydown",x),()=>b.removeEventListener("keydown",x)}},[l,g]),s.jsxs(SE,{ref:c,role:"region","aria-label":a.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:k?void 0:"none"},children:[k&&s.jsx(wm,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});Qu(b)}}),s.jsx(Fp.Slot,{scope:n,children:s.jsx(Te.ol,{tabIndex:-1,...o,ref:f})}),k&&s.jsx(wm,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});Qu(b)}})]})});h0.displayName=f0;var g0="ToastFocusProxy",wm=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,o=Jc(g0,n);return s.jsx(qc,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(l))&&r()}})});wm.displayName=g0;var Ri="Toast",DE="toast.swipeStart",FE="toast.swipeMove",UE="toast.swipeCancel",$E="toast.swipeEnd",y0=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...i}=e,[l,c]=xi({prop:r,defaultProp:a??!0,onChange:o,caller:Ri});return s.jsx(uo,{present:n||l,children:s.jsx(WE,{open:l,...i,ref:t,onClose:()=>c(!1),onPause:Gn(e.onPause),onResume:Gn(e.onResume),onSwipeStart:he(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:he(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:he(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:he(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})})});y0.displayName=Ri;var[BE,KE]=m0(Ri,{onClose(){}}),WE=m.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:a,open:o,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:f,onSwipeEnd:h,...k}=e,g=Jc(Ri,n),[b,x]=m.useState(null),y=He(t,M=>x(M)),w=m.useRef(null),j=m.useRef(null),S=a||g.duration,N=m.useRef(0),E=m.useRef(S),T=m.useRef(0),{onToastAdd:P,onToastRemove:L}=g,K=Gn(()=>{var W;(b==null?void 0:b.contains(document.activeElement))&&((W=g.viewport)==null||W.focus()),i()}),F=m.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),N.current=new Date().getTime(),T.current=window.setTimeout(K,M))},[K]);m.useEffect(()=>{const M=g.viewport;if(M){const W=()=>{F(E.current),u==null||u()},_=()=>{const U=new Date().getTime()-N.current;E.current=E.current-U,window.clearTimeout(T.current),c==null||c()};return M.addEventListener(xm,_),M.addEventListener(vm,W),()=>{M.removeEventListener(xm,_),M.removeEventListener(vm,W)}}},[g.viewport,S,c,u,F]),m.useEffect(()=>{o&&!g.isClosePausedRef.current&&F(S)},[o,S,g.isClosePausedRef,F]),m.useEffect(()=>(P(),()=>L()),[P,L]);const ee=m.useMemo(()=>b?S0(b):null,[b]);return g.viewport?s.jsxs(s.Fragment,{children:[ee&&s.jsx(HE,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ee}),s.jsx(BE,{scope:n,onClose:K,children:Ga.createPortal(s.jsx(Fp.ItemSlot,{scope:n,children:s.jsx(jE,{asChild:!0,onEscapeKeyDown:he(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||K(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(Te.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...k,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:he(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,K()))}),onPointerDown:he(e.onPointerDown,M=>{M.button===0&&(w.current={x:M.clientX,y:M.clientY})}),onPointerMove:he(e.onPointerMove,M=>{if(!w.current)return;const W=M.clientX-w.current.x,_=M.clientY-w.current.y,U=!!j.current,z=["left","right"].includes(g.swipeDirection),R=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,D=z?R(0,W):0,X=z?0:R(0,_),Y=M.pointerType==="touch"?10:2,ne={x:D,y:X},Z={originalEvent:M,delta:ne};U?(j.current=ne,ol(FE,p,Z,{discrete:!1})):eg(ne,g.swipeDirection,Y)?(j.current=ne,ol(DE,d,Z,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(W)>Y||Math.abs(_)>Y)&&(w.current=null)}),onPointerUp:he(e.onPointerUp,M=>{const W=j.current,_=M.target;if(_.hasPointerCapture(M.pointerId)&&_.releasePointerCapture(M.pointerId),j.current=null,w.current=null,W){const U=M.currentTarget,z={originalEvent:M,delta:W};eg(W,g.swipeDirection,g.swipeThreshold)?ol($E,h,z,{discrete:!0}):ol(UE,f,z,{discrete:!0}),U.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),HE=e=>{const{__scopeToast:t,children:n,...r}=e,a=Jc(Ri,t),[o,i]=m.useState(!1),[l,c]=m.useState(!1);return ZE(()=>i(!0)),m.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:s.jsx(Qc,{asChild:!0,children:s.jsx(qc,{...r,children:o&&s.jsxs(s.Fragment,{children:[a.label," ",n]})})})},VE="ToastTitle",x0=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return s.jsx(Te.div,{...r,ref:t})});x0.displayName=VE;var GE="ToastDescription",v0=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return s.jsx(Te.div,{...r,ref:t})});v0.displayName=GE;var w0="ToastAction",b0=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?s.jsx(j0,{altText:n,asChild:!0,children:s.jsx(Up,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${w0}\`. Expected non-empty \`string\`.`),null)});b0.displayName=w0;var k0="ToastClose",Up=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=KE(k0,n);return s.jsx(j0,{asChild:!0,children:s.jsx(Te.button,{type:"button",...r,ref:t,onClick:he(e.onClick,a.onClose)})})});Up.displayName=k0;var j0=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return s.jsx(Te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function S0(e){const t=[];
vendor: 4,653 bytes, lines 68-98
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),YE(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...S0(r))}}),t}function ol(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?i0(a,o):a.dispatchEvent(o)}var eg=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),o=r>a;return t==="left"||t==="right"?o&&r>n:!o&&a>n};function ZE(e=()=>{}){const t=Gn(e);Tt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function YE(e){return e.nodeType===e.ELEMENT_NODE}function QE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var qE=p0,N0=h0,E0=y0,z0=x0,C0=v0,A0=b0,T0=Up;function P0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=P0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R0(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=P0(e))&&(r&&(r+=" "),r+=t);return r}const tg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ng=R0,Oi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ng(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(u=>{const d=n==null?void 0:n[u],p=o==null?void 0:o[u];if(d===null)return null;const f=tg(d)||tg(p);return a[u][f]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,f]=d;return f===void 0||(u[p]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:f,...h}=d;return Object.entries(h).every(k=>{let[g,b]=k;return Array.isArray(b)?b.includes({...o,...l}[g]):{...o,...l}[g]===b})?[...u,p,f]:u},[]);return ng(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
69 * @license lucide-react v0.462.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const JE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
74 * @license lucide-react v0.462.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */var XE={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"};/**
79 * @license lucide-react v0.462.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const ez=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:i,...l},c)=>m.createElement("svg",{ref:c,...XE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:O0("lucide",a),...l},[...i.map(([u,d])=>m.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
84 * @license lucide-react v0.462.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const xe=(e,t)=>{const n=m.forwardRef(({className:r,...a},o)=>m.createElement(ez,{ref:o,iconNode:t,className:O0(`lucide-${JE(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
89 * @license lucide-react v0.462.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const rg=xe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
94 * @license lucide-react v0.462.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const tz=xe("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}
98],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
99 * @license lucide-react v0.462.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const nz=xe("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
104 * @license lucide-react v0.462.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const M0=xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
109 * @license lucide-react v0.462.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const xc=xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
114 * @license lucide-react v0.462.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const rz=xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
119 * @license lucide-react v0.462.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const az=xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
124 * @license lucide-react v0.462.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const sz=xe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
129 * @license lucide-react v0.462.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const oz=xe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
134 * @license lucide-react v0.462.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const ag=xe("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
139 * @license lucide-react v0.462.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const eo=xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
144 * @license lucide-react v0.462.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const iz=xe("CloudRain",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
149 * @license lucide-react v0.462.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const lz=xe("EyeOff",[["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"}]]);/**
154 * @license lucide-react v0.462.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const cz=xe("Eye",[["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"}]]);/**
159 * @license lucide-react v0.462.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const uz=xe("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
164 * @license lucide-react v0.462.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const I0=xe("FileDown",[["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:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
169 * @license lucide-react v0.462.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const _0=xe("FileText",[["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"}]]);/**
174 * @license lucide-react v0.462.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const sg=xe("Image",[["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"}]]);/**
179 * @license lucide-react v0.462.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const dz=xe("Instagram",[["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"}]]);/**
184 * @license lucide-react v0.462.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const L0=xe("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
189 * @license lucide-react v0.462.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const Dt=xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
194 * @license lucide-react v0.462.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const mz=xe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
199 * @license lucide-react v0.462.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const D0=xe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
204 * @license lucide-react v0.462.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const Fa=xe("MapPin",[["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"}]]);/**
209 * @license lucide-react v0.462.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const pz=xe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
214 * @license lucide-react v0.462.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const og=xe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
219 * @license lucide-react v0.462.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const fz=xe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
224 * @license lucide-react v0.462.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const hz=xe("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
229 * @license lucide-react v0.462.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const $p=xe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
234 * @license lucide-react v0.462.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const qr=xe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
239 * @license lucide-react v0.462.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const ts=xe("RefreshCw",[["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"}]]);/**
244 * @license lucide-react v0.462.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const ns=xe("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
249 * @license lucide-react v0.462.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const gz=xe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 4,346 bytes, lines 253-293
253y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
254 * @license lucide-react v0.462.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const to=xe("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
259 * @license lucide-react v0.462.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const qu=xe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
264 * @license lucide-react v0.462.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const ig=xe("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
269 * @license lucide-react v0.462.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const Ss=xe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
274 * @license lucide-react v0.462.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const vc=xe("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
279 * @license lucide-react v0.462.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const yz=xe("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
284 * @license lucide-react v0.462.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const xz=xe("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
289 * @license lucide-react v0.462.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const no=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Bp="-",vz=e=>{const t=bz(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(Bp);return l[0]===""&&l.length!==1&&l.shift(),F0(l,t)||wz(i)},getConflictingClassGroupIds:(i,l)=>{const c=n[i]||[];return l&&r[i]?[...c,...r[i]]:c}}},F0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?F0(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(Bp);return(i=t.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},lg=/^\[(.+)\]$/,wz=e=>{if(lg.test(e)){const t=lg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bz=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 5,121 bytes, line 293
293return jz(Object.entries(e.classGroups),n).forEach(([o,i])=>{bm(i,r,o,t)}),r},bm=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:cg(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(kz(a)){bm(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,i])=>{bm(i,cg(t,o),n,r)})})},cg=(e,t)=>{let n=e;return t.split(Bp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},kz=e=>e.isThemeGetter,jz=(e,t)=>t?e.map(([n,r])=>{const a=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[n,a]}):e,Sz=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return a(o,i),i},set(o,i){n.has(o)?n.set(o,i):a(o,i)}}},U0="!",Nz=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],o=t.length,i=l=>{const c=[];let u=0,d=0,p;for(let b=0;b<l.length;b++){let x=l[b];if(u===0){if(x===a&&(r||l.slice(b,b+o)===t)){c.push(l.slice(d,b)),d=b+o;continue}if(x==="/"){p=b;continue}}x==="["?u++:x==="]"&&u--}const f=c.length===0?l:l.substring(d),h=f.startsWith(U0),k=h?f.substring(1):f,g=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:k,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:i}):i},Ez=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},zz=e=>({cache:Sz(e.cacheSize),parseClassName:Nz(e),...vz(e)}),Cz=/\s+/,Az=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(Cz);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let k=!!h,g=r(k?f.substring(0,h):f);if(!g){if(!k){l=u+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=u+(l.length>0?" "+l:l);continue}k=!1}const b=Ez(d).join(":"),x=p?b+U0:b,y=x+g;if(o.includes(y))continue;o.push(y);const w=a(g,k);for(let j=0;j<w.length;++j){const S=w[j];o.push(x+S)}l=u+(l.length>0?" "+l:l)}return l};function Tz(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$0(t))&&(r&&(r+=" "),r+=n);return r}const $0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$0(e[r]))&&(n&&(n+=" "),n+=t);return n};function Pz(e,...t){let n,r,a,o=i;function i(c){const u=t.reduce((d,p)=>p(d),e());return n=zz(u),r=n.cache.get,a=n.cache.set,o=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=Az(c,n);return a(c,d),d}return function(){return o(Tz.apply(null,arguments))}}const Qe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},B0=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rz=/^\d+\/\d+$/,Oz=new Set(["px","full","screen"]),Mz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Iz=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pr=e=>Ms(e)||Oz.has(e)||Rz.test(e),Mr=e=>mo(e,"length",Vz),Ms=e=>!!e&&!Number.isNaN(Number(e)),Ju=e=>mo(e,"number",Ms),Ao=e=>!!e&&Number.isInteger(Number(e)),Fz=e=>e.endsWith("%")&&Ms(e.slice(0,-1)),ge=e=>B0.test(e),Ir=e=>Mz.test(e),Uz=new Set(["length","size","percentage"]),$z=e=>mo(e,Uz,K0),Bz=e=>mo(e,"position",K0),Kz=new Set(["image","url"]),Wz=e=>mo(e,Kz,Zz),Hz=e=>mo(e,"",Gz),To=()=>!0,mo=(e,t,n)=>{const r=B0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Vz=e=>Iz.test(e)&&!_z.test(e),K0=()=>!1,Gz=e=>Lz.test(e),Zz=e=>Dz.test(e),Yz=()=>{const e=Qe("colors"),t=Qe("spacing"),n=Qe("blur"),r=Qe("brightness"),a=Qe("borderColor"),o=Qe("borderRadius"),i=Qe("borderSpacing"),l=Qe("borderWidth"),c=Qe("contrast"),u=Qe("grayscale"),d=Qe("hueRotate"),p=Qe("invert"),f=Qe("gap"),h=Qe("gradientColorStops"),k=Qe("gradientColorStopPositions"),g=Qe("inset"),b=Qe("margin"),x=Qe("opacity"),y=Qe("padding"),w=Qe("saturate"),j=Qe("scale"),S=Qe("sepia"),N=Qe("skew"),E=Qe("space"),T=Qe("translate"),P=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",ge,t],F=()=>[ge,t],ee=()=>["",pr,Mr],M=()=>["auto",Ms,ge],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",ge],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[Ms,ge];return{cacheSize:500,separator:":",theme:{colors:[To],spacing:[pr,Mr],blur:["none","",Ir,ge],brightness:X(),borderColor:[e],borderRadius:["n
vendor: 5,146 bytes, line 293
293one","","full",Ir,ge],borderSpacing:F(),borderWidth:ee(),contrast:X(),grayscale:R(),hueRotate:X(),invert:R(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[Fz,Mr],inset:K(),margin:K(),opacity:X(),padding:F(),saturate:X(),scale:X(),sepia:R(),skew:X(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[Ir]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),ge]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ao,ge]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ao,ge]}],"grid-cols":[{"grid-cols":[To]}],"col-start-end":[{col:["auto",{span:["full",Ao,ge]},ge]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[To]}],"row-start-end":[{row:["auto",{span:[Ao,ge]},ge]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[Ir]},Ir]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ir,Mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ju]}],"font-family":[{font:[To]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",Ms,Ju]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pr,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"w
293avy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pr,Mr]}],"underline-offset":[{"underline-offset":["auto",pr,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),Bz]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$z]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wz]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:_()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[pr,ge]}],"outline-w":[{outline:[pr,Mr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[pr,Mr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ir,Hz]}],"shadow-color":[{shadow:[To]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ir,ge]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Ao,ge]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
293none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pr,Mr,Ju]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qz=Pz(Yz);function te(...e){return Qz(R0(e))}const qz=qE,W0=m.forwardRef(({className:e,...t},n)=>s.jsx(N0,{ref:n,className:te("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));W0.displayName=N0.displayName;const Jz=Oi("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),H0=m.forwardRef(({className:e,variant:t,...n},r)=>s.jsx(E0,{ref:r,className:te(Jz({variant:t}),e),...n}));H0.displayName=E0.displayName;const Xz=m.forwardRef(({className:e,...t},n)=>s.jsx(A0,{ref:n,className:te("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Xz.displayName=A0.displayName;const V0=m.forwardRef(({className:e,...t},n)=>s.jsx(T0,{ref:n,className:te("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 11,575 bytes, line 293
293/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(no,{className:"h-4 w-4"})}));V0.displayName=T0.displayName;const G0=m.forwardRef(({className:e,...t},n)=>s.jsx(z0,{ref:n,className:te("text-sm font-semibold",e),...t}));G0.displayName=z0.displayName;const Z0=m.forwardRef(({className:e,...t},n)=>s.jsx(C0,{ref:n,className:te("text-sm opacity-90",e),...t}));Z0.displayName=C0.displayName;function eC(){const{toasts:e}=oE();return s.jsxs(qz,{children:[e.map(function({id:t,title:n,description:r,action:a,...o}){return s.jsxs(H0,{...o,children:[s.jsxs("div",{className:"grid gap-1",children:[n&&s.jsx(G0,{children:n}),r&&s.jsx(Z0,{children:r})]}),a,s.jsx(V0,{})]},t)}),s.jsx(W0,{})]})}var tC=Bm[" useId ".trim().toString()]||(()=>{}),nC=0;function Is(e){const[t,n]=m.useState(tC());return Tt(()=>{n(r=>r??String(nC++))},[e]),t?`radix-${t}`:""}const rC=["top","right","bottom","left"],da=Math.min,dn=Math.max,wc=Math.round,il=Math.floor,lr=e=>({x:e,y:e}),aC={left:"right",right:"left",bottom:"top",top:"bottom"},sC={start:"end",end:"start"};function km(e,t,n){return dn(e,da(t,n))}function Tr(e,t){return typeof e=="function"?e(t):e}function Pr(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function Kp(e){return e==="x"?"y":"x"}function Wp(e){return e==="y"?"height":"width"}const oC=new Set(["top","bottom"]);function sr(e){return oC.has(Pr(e))?"y":"x"}function Hp(e){return Kp(sr(e))}function iC(e,t,n){n===void 0&&(n=!1);const r=po(e),a=Hp(e),o=Wp(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=bc(i)),[i,bc(i)]}function lC(e){const t=bc(e);return[jm(e),t,jm(t)]}function jm(e){return e.replace(/start|end/g,t=>sC[t])}const ug=["left","right"],dg=["right","left"],cC=["top","bottom"],uC=["bottom","top"];function dC(e,t,n){switch(e){case"top":case"bottom":return n?t?dg:ug:t?ug:dg;case"left":case"right":return t?cC:uC;default:return[]}}function mC(e,t,n,r){const a=po(e);let o=dC(Pr(e),n==="start",r);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(jm)))),o}function bc(e){return e.replace(/left|right|bottom|top/g,t=>aC[t])}function pC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y0(e){return typeof e!="number"?pC(e):{top:e,right:e,bottom:e,left:e}}function kc(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function mg(e,t,n){let{reference:r,floating:a}=e;const o=sr(t),i=Hp(t),l=Wp(i),c=Pr(t),u=o==="y",d=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,f=r[l]/2-a[l]/2;let h;switch(c){case"top":h={x:d,y:r.y-a.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-a.width,y:p};break;default:h={x:r.x,y:r.y}}switch(po(t)){case"start":h[i]-=f*(n&&u?-1:1);break;case"end":h[i]+=f*(n&&u?-1:1);break}return h}const fC=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,l=o.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:p}=mg(u,r,c),f=r,h={},k=0;for(let g=0;g<l.length;g++){const{name:b,fn:x}=l[g],{x:y,y:w,data:j,reset:S}=await x({x:d,y:p,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,p=w??p,h={...h,[b]:{...h[b],...j}},S&&k<=50&&(k++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:p}=mg(u,f,c)),g=-1)}return{x:d,y:p,placement:f,strategy:a,middlewareData:h}};async function vi(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=Tr(t,e),k=Y0(h),b=l[f?p==="floating"?"reference":"floating":p],x=kc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),y=p==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),j=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},S=kc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:c}):y);return{top:(x.top-S.top+k.top)/j.y,bottom:(S.bottom-x.bottom+k.bottom)/j.y,left:(x.left-S.left+k.left)/j.x,right:(S.right-x.right+k.right)/j.x}}const hC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Tr(e,t)||{};if(u==null)return{};const p=Y0(d),f={x:n,y:r},h=Hp(a),k=Wp(h),g=await i.getDimensions(u),b=h==="y",x=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",j=o.reference[k]+o.reference[h]-f[h]-o.floating[k],S=f[h]-o.reference[h],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=l.floating[w]||o.floating[k]);const T=j/2-S/2,P=E/2-g[k]/2-1,L=da(p[x],P),K=da(p[y],P),F=L,ee=E-g[k]-K,M=E/2-g[k]/2+T,W=km(F,M,ee),_=!c.arrow&&po(a)!=null&&M!==W&&o.reference[k]/2-(M<F?L:K)-g[k]/2<0,U=_?M<F?M-F:M-ee:0;return{[h]:f[h]+U,data:{[h]:W,centerOffset:M-W-U,..._&&{alignmentOffset:U}},reset:_}}}),gC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:g=!0,...b}=Tr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Pr(a),y=sr(l),w=Pr(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=f||(w||!g?[bc(l)]:lC(l)),N=k!=="none";!f&&N&&S.push(...mC(l,g,k,j));const E=[l,...S],T=await vi(t,b),P=[];let L=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&P.push(T[x]),p){const M=iC(a,i,j);P.push(T[M[0]],T[M[1]])}if(L=[...L,{placement:a,overflows:P}],!P.every(M=>M<=0)){var K,F;const M=(((K=o.flip)==null?void 0:K.index)||0)+1,W=E[M];if(W&&(!(p==="alignment"?y!==sr(W):!1)||L.every(z=>z.overflows[0]>0&&sr(z.placement)===y)))return{data:{index:M,overflows:L},reset:{placement:W}};let _=(F=L.filter(U=>U.overflows[0]<=0).sort((U,z)=>U.overflows[1]-z.overflows[1])[0])==null?void 0:F.placement;if(!_)switch(h){case"bestFit":{var ee;const U=(ee=L.filter(z=>{if(N){const R=sr(z.placement);return R===y||R==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((z,R)=>z[1]-R[1])[0])==null?void 0:ee[0];U&&(_=U);break}case"initialPlacement":_=l;break}if(a!==_)return{reset:{placement:_}}}return{}}}};function pg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fg(e){return rC.some(t=>e[t]>=0)}const yC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Tr(e,t);switch(r){case"referenceHidden":{const o=await vi(t,{...a,elementContext:"reference"}),i=pg(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:fg(i)}}}case"escaped":{const o=await vi(t,{...a,altBoundary:!0}),i=pg(o,n.floating);return{data:{escapedOffsets:i,escaped:fg(i)}}}default:return{}}}}},Q0=new Set(["left","top"]);async function xC(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=Pr(n),l=po(n),c=sr(n)==="y",u=Q0.has(i)?-1:1,d=o&&c?-1:1,p=Tr(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:k}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof k=="number"&&(h=l==="end"?k*-1:k),c?{x:h*d,y:f*u}:{x:f*u,y:h*d}}const vC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:l}=t,c=await xC(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:o+c.y,data:{...c,placement:i}}}}},wC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:b=>{let{x,y}=b;return{x,y}}},...c}=Tr(e,t),u={x:n,y:r},d=await vi(t,c),p=sr(Pr(a)),f=Kp(p);let h=u[f],k=u[p];if(o){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=h+d[b],w=h-d[x];h=km(y,h,w)}if(i){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=k+d[b],w=k-d[x];k=km(y,k,w)}const g=l.fn({...t,[f]:h,[p]:k});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:o,[p]:i}}}}}},bC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Tr(e,t),d={x:n,y:r},p=sr(a),f=Kp(p);let h=d[f],k=d[p];const g=Tr(l,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=f==="y"?"height":"width",j=o.reference[f]-o.floating[w]+b.mainAxis,S=o.reference[f]+o.reference[w]-b.mainAxis;h<j?h=j:h>S&&(h=S)}if(u){var x,y;const w=f==="y"?"width":"height",j=Q0.has(Pr(a)),S=o.reference[p]-o.floating[w]+(j&&((x=i.offset)==null?void 0:x[p])||0)+(j?0:b.crossAxis),N=o.reference[p]+o.reference[w]+(j?0:((y=i.offset)==null?void 0:y[p])||0)-(j?b.crossAxis:0);k<S?k=S:k>N&&(k=N)}return{[f]:h,[p]:k}}}},kC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:l}=t,{apply:c=()=>{},...u}=Tr(e,t),d=await vi(t,u),p=Pr(a),f=po(a),h=sr(a)==="y",{width:k,height:g}=o.floating;let b,x;p==="top"||p==="bottom"?(b=p,x=f===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(x=p,b=f==="end"?"top":"bottom");const y=g-d.top-d.bottom,w=k-d.left-d.right,j=da(g-d[b],y),S=da(k-d[x],w),N=!t.middlewareData.shift;let E=j,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),N&&!f){const L=dn(d.left,0),K=dn(d.right,0),F=dn(d.top,0),ee=dn(d.bottom,0);h?T=k-2*(L!==0||K!==0?L+K:dn(d.left,d.right)):E=g-2*(F!==0||ee!==0?F+ee:dn(d.top,d.bottom))}await c({...t,availableWidth:T,availableHeight:E});const P=await i.getDimensions(l.floating);return k!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function Xc(){return typeof window<"u"}function fo(e){return q0(e)?(e.nodeName||"").toLowerCase():"#document"}function fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(q0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function q0(e){return Xc()?e instanceof Node||e instanceof fn(e).Node:!1}function Zn(e){return Xc()?e instanceof Element||e instanceof fn(e).Element:!1}function cr(e){return Xc()?e instanceof HTMLElement||e instanceof fn(e).HTMLElement:!1}function hg(e){return!Xc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fn(e).ShadowRoot}const jC=new Set(["inline","contents"]);function Mi(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Yn(e);
vendor: 4,121 bytes, line 293
293return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!jC.has(a)}const SC=new Set(["table","td","th"]);function NC(e){return SC.has(fo(e))}const EC=[":popover-open",":modal"];function eu(e){return EC.some(t=>{try{return e.matches(t)}catch{return!1}})}const zC=["transform","translate","scale","rotate","perspective"],CC=["transform","translate","scale","rotate","perspective","filter"],AC=["paint","layout","strict","content"];function Vp(e){const t=Gp(),n=Zn(e)?Yn(e):e;return zC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||CC.some(r=>(n.willChange||"").includes(r))||AC.some(r=>(n.contain||"").includes(r))}function TC(e){let t=ma(e);for(;cr(t)&&!ro(t);){if(Vp(t))return t;if(eu(t))return null;t=ma(t)}return null}function Gp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PC=new Set(["html","body","#document"]);function ro(e){return PC.has(fo(e))}function Yn(e){return fn(e).getComputedStyle(e)}function tu(e){return Zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hg(e)&&e.host||ur(e);return hg(t)?t.host:t}function J0(e){const t=ma(e);return ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:cr(t)&&Mi(t)?t:J0(t)}function wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=J0(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),i=fn(a);if(o){const l=Sm(i);return t.concat(i,i.visualViewport||[],Mi(a)?a:[],l&&n?wi(l):[])}return t.concat(a,wi(a,[],n))}function Sm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X0(e){const t=Yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=cr(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,l=wc(n)!==o||wc(r)!==i;return l&&(n=o,r=i),{width:n,height:r,$:l}}function Zp(e){return Zn(e)?e:e.contextElement}function _s(e){const t=Zp(e);if(!cr(t))return lr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=X0(t);let i=(o?wc(n.width):n.width)/r,l=(o?wc(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const RC=lr(0);function ew(e){const t=fn(e);return!Gp()||!t.visualViewport?RC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fn(e)?!1:t}function Ua(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Zp(e);let i=lr(1);t&&(r?Zn(r)&&(i=_s(r)):i=_s(e));const l=OC(o,n,r)?ew(o):lr(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,d=a.width/i.x,p=a.height/i.y;if(o){const f=fn(o),h=r&&Zn(r)?fn(r):r;let k=f,g=Sm(k);for(;g&&r&&h!==k;){const b=_s(g),x=g.getBoundingClientRect(),y=Yn(g),w=x.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,j=x.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,p*=b.y,c+=w,u+=j,k=fn(g),g=Sm(k)}}return kc({width:d,height:p,x:c,y:u})}function Yp(e,t){const n=tu(e).scrollLeft;return t?t.left+n:Ua(ur(e)).left+n}function tw(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:Yp(e,r)),o=r.top+t.scrollTop;return{x:a,y:o}}function MC(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",i=ur(r),l=t?eu(t.floating):!1;if(r===i||l&&o)return n;let c={scrollLeft:0,scrollTop:0},u=lr(1);const d=lr(0),p=cr(r);if((p||!p&&!o)&&((fo(r)!=="body"||Mi(i))&&(c=tu(r)),cr(r))){const h=Ua(r);u=_s(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const f=i&&!p&&!o?tw(i,c,!0):lr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function IC(e){return Array.from(e.getClientRects())}function _C(e){const t=ur(e),n=tu(e),r=e.ownerDocument.body,a=dn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=dn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yp(e);const l=-n.scrollTop;return Yn(r).direction==="rtl"&&(i+=dn(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:l}}
vendor: 4,590 bytes, line 293
293function LC(e,t){const n=fn(e),r=ur(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,l=0,c=0;if(a){o=a.width,i=a.height;const u=Gp();(!u||u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:l,y:c}}const DC=new Set(["absolute","fixed"]);function FC(e,t){const n=Ua(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=cr(e)?_s(e):lr(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,c=a*o.x,u=r*o.y;return{width:i,height:l,x:c,y:u}}function gg(e,t,n){let r;if(t==="viewport")r=LC(e,n);else if(t==="document")r=_C(ur(e));else if(Zn(t))r=FC(t,n);else{const a=ew(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return kc(r)}function nw(e,t){const n=ma(e);return n===t||!Zn(n)||ro(n)?!1:Yn(n).position==="fixed"||nw(n,t)}function UC(e,t){const n=t.get(e);if(n)return n;let r=wi(e,[],!1).filter(l=>Zn(l)&&fo(l)!=="body"),a=null;const o=Yn(e).position==="fixed";let i=o?ma(e):e;for(;Zn(i)&&!ro(i);){const l=Yn(i),c=Vp(i);!c&&l.position==="fixed"&&(a=null),(o?!c&&!a:!c&&l.position==="static"&&!!a&&DC.has(a.position)||Mi(i)&&!c&&nw(e,i))?r=r.filter(d=>d!==i):a=l,i=ma(i)}return t.set(e,r),r}function $C(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?eu(t)?[]:UC(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,d)=>{const p=gg(t,d,a);return u.top=dn(p.top,u.top),u.right=da(p.right,u.right),u.bottom=da(p.bottom,u.bottom),u.left=dn(p.left,u.left),u},gg(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function BC(e){const{width:t,height:n}=X0(e);return{width:t,height:n}}function KC(e,t,n){const r=cr(t),a=ur(t),o=n==="fixed",i=Ua(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=lr(0);function u(){c.x=Yp(a)}if(r||!r&&!o)if((fo(t)!=="body"||Mi(a))&&(l=tu(t)),r){const h=Ua(t,!0,o,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else a&&u();o&&!r&&a&&u();const d=a&&!r&&!o?tw(a,l):lr(0),p=i.left+l.scrollLeft-c.x-d.x,f=i.top+l.scrollTop-c.y-d.y;return{x:p,y:f,width:i.width,height:i.height}}function Xu(e){return Yn(e).position==="static"}function yg(e,t){if(!cr(e)||Yn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ur(e)===n&&(n=n.ownerDocument.body),n}function rw(e,t){const n=fn(e);if(eu(e))return n;if(!cr(e)){let a=ma(e);for(;a&&!ro(a);){if(Zn(a)&&!Xu(a))return a;a=ma(a)}return n}let r=yg(e,t);for(;r&&NC(r)&&Xu(r);)r=yg(r,t);return r&&ro(r)&&Xu(r)&&!Vp(r)?n:r||TC(e)||n}const WC=async function(e){const t=this.getOffsetParent||rw,n=this.getDimensions,r=await n(e.floating);return{reference:KC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HC(e){return Yn(e).direction==="rtl"}const VC={convertOffsetParentRelativeRectToViewportRelativeRect:MC,getDocumentElement:ur,getClippingRect:$C,getOffsetParent:rw,getElementRects:WC,getClientRects:IC,getDimensions:BC,getScale:_s,isElement:Zn,isRTL:HC};function aw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function GC(e,t){let n=null,r;const a=ur(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const u=e.getBoundingClientRect(),{left:d,top:p,width:f,height:h}=u;if(l||t(),!f||!h)return;const k=il(p),g=il(a.clientWidth-(d+f)),b=il(a.clientHeight-(p+h)),x=il(d),w={rootMargin:-k+"px "+-g+"px "+-b+"px "+-x+"px",threshold:dn(0,da(1,c))||1};let j=!0;function S(N){const E=N[0].intersectionRatio;if(E!==c){if(!j)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!aw(u,e.getBoundingClientRect())&&i(),j=!1}try{n=new IntersectionObserver(S,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return i(!0),o}function ZC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Zp(e),d=a||o?[...u?wi(u):[],...wi(t)]:[];d.forEach(x=>{a&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const p=u&&l?GC(u,n):null;let f=-1,h=null;i&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let k,g=c?Ua(e):null;c&&b();function b(){const x=Ua(e);g&&!aw(g,x)&&n(),g=x,k=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(y=>{a&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(k)}}
vendor: 4,130 bytes, line 293
293const YC=vC,QC=wC,qC=gC,JC=kC,XC=yC,xg=hC,eA=bC,tA=(e,t,n)=>{const r=new Map,a={platform:VC,...n},o={...a.platform,_c:r};return fC(e,t,{...a,platform:o})};var nA=typeof document<"u",rA=function(){},Il=nA?m.useLayoutEffect:rA;function jc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jc(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!jc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function sw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vg(e,t){const n=sw(e);return Math.round(t*n)/n}function ed(e){const t=m.useRef(e);return Il(()=>{t.current=e}),t}function aA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=m.useState(r);jc(f,r)||h(r);const[k,g]=m.useState(null),[b,x]=m.useState(null),y=m.useCallback(z=>{z!==N.current&&(N.current=z,g(z))},[]),w=m.useCallback(z=>{z!==E.current&&(E.current=z,x(z))},[]),j=o||k,S=i||b,N=m.useRef(null),E=m.useRef(null),T=m.useRef(d),P=c!=null,L=ed(c),K=ed(a),F=ed(u),ee=m.useCallback(()=>{if(!N.current||!E.current)return;const z={placement:t,strategy:n,middleware:f};K.current&&(z.platform=K.current),tA(N.current,E.current,z).then(R=>{const D={...R,isPositioned:F.current!==!1};M.current&&!jc(T.current,D)&&(T.current=D,Ga.flushSync(()=>{p(D)}))})},[f,t,n,K,F]);Il(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(z=>({...z,isPositioned:!1})))},[u]);const M=m.useRef(!1);Il(()=>(M.current=!0,()=>{M.current=!1}),[]),Il(()=>{if(j&&(N.current=j),S&&(E.current=S),j&&S){if(L.current)return L.current(j,S,ee);ee()}},[j,S,ee,L,P]);const W=m.useMemo(()=>({reference:N,floating:E,setReference:y,setFloating:w}),[y,w]),_=m.useMemo(()=>({reference:j,floating:S}),[j,S]),U=m.useMemo(()=>{const z={position:n,left:0,top:0};if(!_.floating)return z;const R=vg(_.floating,d.x),D=vg(_.floating,d.y);return l?{...z,transform:"translate("+R+"px, "+D+"px)",...sw(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,l,_.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:ee,refs:W,elements:_,floatingStyles:U}),[d,ee,W,_,U])}const sA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xg({element:r.current,padding:a}).fn(n):{}:r?xg({element:r,padding:a}).fn(n):{}}}},oA=(e,t)=>({...YC(e),options:[e,t]}),iA=(e,t)=>({...QC(e),options:[e,t]}),lA=(e,t)=>({...eA(e),options:[e,t]}),cA=(e,t)=>({...qC(e),options:[e,t]}),uA=(e,t)=>({...JC(e),options:[e,t]}),dA=(e,t)=>({...XC(e),options:[e,t]}),mA=(e,t)=>({...sA(e),options:[e,t]});var pA="Arrow",ow=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return s.jsx(Te.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});ow.displayName=pA;var fA=ow;function iw(e){const[t,n]=m.useState(void 0);return Tt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,l;if("borderBoxSize"in o){const c=o.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Qp="Popper",[lw,nu]=qa(Qp),[hA,cw]=lw(Qp),uw=e=>{const{__scopePopper:t,children:n}=e,[r,a]=m.useState(null);return s.jsx(hA,{scope:t,anchor:r,onAnchorChange:a,children:n})};uw.displayName=Qp;var dw="PopperAnchor",mw=m.forwardRef((e,t)=>
vendor: 1,134 bytes, line 293
293{const{__scopePopper:n,virtualRef:r,...a}=e,o=cw(dw,n),i=m.useRef(null),l=He(t,i);return m.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:s.jsx(Te.div,{...a,ref:l})});mw.displayName=dw;var qp="PopperContent",[gA,yA]=lw(qp),pw=m.forwardRef((e,t)=>{var B,we,Ce,be,oe,V;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:k,...g}=e,b=cw(qp,n),[x,y]=m.useState(null),w=He(t,$e=>y($e)),[j,S]=m.useState(null),N=iw(j),E=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,P=r+(o!=="center"?"-"+o:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},K=Array.isArray(u)?u:[u],F=K.length>0,ee={padding:L,boundary:K.filter(vA),altBoundary:F},{refs:M,floatingStyles:W,placement:_,isPositioned:U,middlewareData:z}=aA({strategy:"fixed",placement:P,whileElementsMounted:(...$e)=>ZC(...$e,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[oA({mainAxis:a+T,alignmentAxis:i}
vendor: 9,198 bytes, line 293
293),c&&iA({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?lA():void 0,...ee}),c&&cA({...ee}),uA({...ee,apply:({elements:$e,rects:ie,availableWidth:Le,availableHeight:Ve})=>{const{width:Bt,height:Kt}=ie.reference,pt=$e.floating.style;pt.setProperty("--radix-popper-available-width",`${Le}px`),pt.setProperty("--radix-popper-available-height",`${Ve}px`),pt.setProperty("--radix-popper-anchor-width",`${Bt}px`),pt.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),j&&mA({element:j,padding:l}),wA({arrowWidth:E,arrowHeight:T}),f&&dA({strategy:"referenceHidden",...ee})]}),[R,D]=gw(_),X=Gn(k);Tt(()=>{U&&(X==null||X())},[U,X]);const Y=(B=z.arrow)==null?void 0:B.x,ne=(we=z.arrow)==null?void 0:we.y,Z=((Ce=z.arrow)==null?void 0:Ce.centerOffset)!==0,[ve,_e]=m.useState();return Tt(()=>{x&&_e(window.getComputedStyle(x).zIndex)},[x]),s.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:U?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(be=z.transformOrigin)==null?void 0:be.x,(oe=z.transformOrigin)==null?void 0:oe.y].join(" "),...((V=z.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(gA,{scope:n,placedSide:R,onArrowChange:S,arrowX:Y,arrowY:ne,shouldHideArrow:Z,children:s.jsx(Te.div,{"data-side":R,"data-align":D,...g,ref:w,style:{...g.style,animation:U?void 0:"none"}})})})});pw.displayName=qp;var fw="PopperArrow",xA={top:"bottom",right:"left",bottom:"top",left:"right"},hw=m.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=yA(fw,r),i=xA[o.placedSide];return s.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:s.jsx(fA,{...a,ref:n,style:{...a.style,display:"block"}})})});hw.displayName=fw;function vA(e){return e!==null}var wA=e=>({name:"transformOrigin",options:e,fn(t){var b,x,y;const{placement:n,rects:r,middlewareData:a}=t,i=((b=a.arrow)==null?void 0:b.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=gw(n),p={start:"0%",center:"50%",end:"100%"}[d],f=(((x=a.arrow)==null?void 0:x.x)??0)+l/2,h=(((y=a.arrow)==null?void 0:y.y)??0)+c/2;let k="",g="";return u==="bottom"?(k=i?p:`${f}px`,g=`${-c}px`):u==="top"?(k=i?p:`${f}px`,g=`${r.floating.height+c}px`):u==="right"?(k=`${-c}px`,g=i?p:`${h}px`):u==="left"&&(k=`${r.floating.width+c}px`,g=i?p:`${h}px`),{data:{x:k,y:g}}}});function gw(e){const[t,n="center"]=e.split("-");return[t,n]}var bA=uw,yw=mw,xw=pw,vw=hw,[ru,I3]=qa("Tooltip",[nu]),Jp=nu(),ww="TooltipProvider",kA=700,wg="tooltip.open",[jA,bw]=ru(ww),kw=e=>{const{__scopeTooltip:t,delayDuration:n=kA,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,i=m.useRef(!0),l=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),s.jsx(jA,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:m.useCallback(u=>{l.current=u},[]),disableHoverableContent:a,children:o})};kw.displayName=ww;var jw="Tooltip",[_3,au]=ru(jw),Nm="TooltipTrigger",SA=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=au(Nm,n),o=bw(Nm,n),i=Jp(n),l=m.useRef(null),c=He(t,l,a.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),p=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),s.jsx(yw,{asChild:!0,...i,children:s.jsx(Te.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:he(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:he(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:he(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:he(e.onBlur,a.onClose),onClick:he(e.onClick,a.onClose)})})});SA.displayName=Nm;var NA="TooltipPortal",[L3,EA]=ru(NA,{forceMount:void 0}),ao="TooltipContent",Sw=m.forwardRef((e,t)=>{const n=EA(ao,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,i=au(ao,e.__scopeTooltip);return s.jsx(uo,{present:r||i.open,children:i.disableHoverableContent?s.jsx(Nw,{side:a,...o,ref:t}):s.jsx(zA,{side:a,...o,ref:t})})}),zA=m.forwardRef((e,t)=>{const n=au(ao,e.__scopeTooltip),r=bw(ao,e.__scopeTooltip),a=m.useRef(null),o=He(t,a),[i,l]=m.useState(null),{trigger:c,onClose:u}=n,d=a.current,{onPointerInTransitChange:p}=r,f=m.useCallback(()=>{l(null),p(!1)},[p]),h=m.useCallback((k,g)=>{const b=k.currentTarget,x={x:k.clientX,y:k.clientY},y=RA(x,b.getBoundingClientRect()),w=OA(x,y),j=MA(g.getBoundingClientRect()),S=_A([...w,...j]);l(S),p(!0)},[p]);return m.useEffect(()=>()=>f(),[f]),m.useEffect(()=>{if(c&&d){const k=b=>h(b,d),g=b=>h(b,c);return c.addEventListener("pointerleave",k),d.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",k),d.removeEventListener("pointerleave",g)}}},[c,d,h,f]),m.useEffect(()=>{if(i){const k=g=>{const b=g.target,x={x:g.clientX,y:g.clientY},y=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),w=!IA(x,i);y?f():w&&(f(),u())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[c,d,i,u,f]),s.jsx(Nw,{...e,ref:o})}),[CA,AA]=ru(jw,{isInside:!1}),TA=dE("TooltipContent"),Nw=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,c=au(ao,n),u=Jp(n),{onClose:d}=c;return m.useEffect(()=>(document.addEventListener(wg,d),()=>document.removeEventListener(wg,d)),[d]),m.useEffect(()=>{if(c.trigger){const p=f=>{const h=f.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),s.jsx(Pi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:s.jsxs(xw,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(TA,{children:r}),s.jsx(CA,{scope:n,isInside:!0,children:s.jsx(OE,{id:c.contentId,role:"tooltip",children:a||r})})]})})});Sw.displayName=ao;var Ew="TooltipArrow",PA=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Jp(n);return AA(Ew,n).isInside?null:s.jsx(vw,{...a,...r,ref:t})});PA.displayName=Ew;function RA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function OA(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function MA(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function IA(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o],c=t[i],u=l.x,d=l.y,p=c.x,f=c.y;d>r!=f>r&&n<(p-u)*(r-d)/(f-d)+u&&(a=!a)}return a}function _A(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),LA(t)}function LA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var DA=kw,zw=Sw;const FA=DA,UA=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>s.jsx(zw,{ref:r,sideOffset:t,className:te("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
293de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));UA.displayName=zw.displayName;const Cw="/assets/logo-clean-MKLOw5ZQ.png",Aw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","gclid","gbraid","wbraid","fbclid"],br="track_";function su(){return typeof window<"u"&&typeof document<"u"}function fr(e,t){if(t)try{localStorage.setItem(e,t)}catch{}}function Jr(e){try{return localStorage.getItem(e)}catch{return null}}function bg(e){if(!su())return null;const t=document.cookie.match(new RegExp(`(^|; )${e}=([^;]+)`));return t?decodeURIComponent(t[2]):null}function kg(e,t){if(!e)return null;const n=e.match(new RegExp(`\\.${t}([^.]+)`));return(n==null?void 0:n[1])??null}function $A(){if(!su())return;const e=new URLSearchParams(window.location.search),t=e.get("pi")||kg(e.get("c"),"pi"),n=e.get("pk")||kg(e.get("c"),"pk"),r=e.get("r"),a=e.get("c");fr("pi",t),fr("pk",n),fr("r",r),fr("c",a);for(const i of Aw)fr(br+i,e.get(i));const o=e.get("fbclid");o&&fr(br+"fbc",`fb.1.${Date.now()}.${o}`),Jr(br+"landing_url")||(fr(br+"landing_url",window.location.href),fr(br+"landing_referrer",document.referrer||""),fr(br+"landing_ts",Date.now().toString()))}function ou(){const e={};if(!su())return e;for(const r of["pi","pk","r","c"]){const a=Jr(r);a&&(e[r]=a)}for(const r of Aw){const a=Jr(br+r);a&&(e[r]=a)}const t=Jr(br+"fbc")||bg("_fbc"),n=bg("_fbp");t&&(e.fbc=t),n&&(e.fbp=n);for(const r of["landing_url","landing_referrer","landing_ts"]){const a=Jr(br+r);a&&(e[r]=a)}return e}function ye(){const e={};if(!su())return e;const t=Jr("pi"),n=Jr("pk"),r=Jr("r");return t&&(e["data-umami-event-pi"]=t),n&&(e["data-umami-event-pk"]=n),r&&(e["data-umami-event-r"]=r),e}const jg=[{label:"RESTAURACJE",href:"/restauracje",event:"click-visit-us",target:"nav"},{label:"REZERWACJE",href:"/rezerwacje",event:"click-book",target:"nav"},{label:"GALERIA",href:"/galeria",event:"click-view-gallery",target:"nav"}],Sg=[{label:"SOPOT",href:"/menu/sopot",event:"click-view-menu",target:"nav-sopot"},{label:"GDYNIA",href:"/menu/gdynia",event:"click-view-menu",target:"nav-gdynia"}],BA="text-sm font-heading font-semibold tracking-[0.15em] uppercase text-white/80 hover:text-white transition-colors duration-300",ll=({href:e,label:t,onClick:n,className:r="",eventName:a,eventTarget:o})=>{const i=`${BA} ${r}`,l={"data-umami-event":a,"data-umami-event-target":o,...ye()};return e.startsWith("/")?s.jsx(Ct,{to:e,className:i,onClick:n,...l,children:t}):s.jsx("a",{href:e,className:i,onClick:n,...l,children:t})},Tn=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(!1),[a,o]=m.useState(!1),i=m.useRef(null);return m.useEffect(()=>{const l=c=>{i.current&&!i.current.contains(c.target)&&r(!1)};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[]),s.jsxs("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-black/95 backdrop-blur-sm border-b border-white/10",children:[s.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex items-center justify-between h-16",children:[s.jsx("div",{className:"hidden lg:flex items-center gap-8",children:jg.map(l=>s.jsx(ll,{href:l.href,label:l.label,eventName:l.event},l.label))}),s.jsx(Ct,{to:"/",className:"mx-4 flex h-16 w-20 flex-shrink-0 items-center justify-center","aria-label":"Moshi Moshi Sushi","data-umami-event":"click-home","data-umami-event-target":"nav",...ye(),children:s.jsx("img",{src:Cw,alt:"Moshi Moshi Sushi",className:"max-h-14 w-auto object-contain"})}),s.jsxs("div",{className:"hidden lg:flex items-center gap-8",children:[s.jsxs("div",{ref:i,className:"relative",children:[s.jsxs("button",{onClick:()=>r(!n),className:"flex items-center gap-1.5 text-sm font-heading font-semibold tracking-[0.15em] uppercase text-white/80 hover:text-white transition-colors duration-300","data-umami-event":"click-view-menu","data-umami-event-target":"nav",...ye(),children:["MENU",s.jsx(xc,{className:`w-3.5 h-3.5 transition-transform duration-200 ${n?"rotate-180":""}`})]}),n&&s.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-4 bg-black/95 backdrop-blur-md border border-white/10 rounded-2xl overflow-hidden shadow-2xl min-w-[200px] animate-fade-in p-1.5",children:Sg.map(l=>s.jsxs(Ct,{to:l.href,onClick:()=>r(!1),className:"flex items-center gap-3 px-5 py-3 text-sm font-heading font-semibold tracking-[0.12em] uppercase text-white/70 hover:text-white hover:bg-white/10 transition-colors duration-200 rounded-xl","data-umami-event":l.event,"data-umami-event-target":l.target,...ye(),children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),l.label]},l.label))})]}),s.jsx(ll,{href:"/zamow-online",label:"ZAMÓW ONLINE",eventName:"click-order",eventTarget:"nav",className:"px-8 py-2.5 text-sm font-heading font-bold tracking-[0.15em] uppercase bg-brand-navy text-white hover:bg-brand-navy
293/80 transition-colors duration-300 rounded-full"})]}),s.jsx("button",{className:"lg:hidden text-white",onClick:()=>t(!e),"aria-label":e?"Zamknij menu":"Otwórz menu","aria-expanded":e,"data-umami-event":"click-nav-toggle","data-umami-event-target":"nav-mobile",...ye(),children:e?s.jsx(no,{size:24}):s.jsx(pz,{size:24})})]}),e&&s.jsxs("div",{className:"lg:hidden bg-black border-t border-white/10 px-4 py-6 space-y-2",children:[jg.map(l=>s.jsx(ll,{href:l.href,label:l.label,eventName:l.event,eventTarget:`${l.target}-mobile`,className:"block py-2",onClick:()=>t(!1)},l.label)),s.jsxs("button",{onClick:()=>o(!a),className:"flex items-center justify-between w-full text-sm font-heading font-semibold tracking-[0.15em] uppercase text-white/80 hover:text-white transition-colors py-2","data-umami-event":"click-view-menu","data-umami-event-target":"nav-mobile",...ye(),children:["MENU",s.jsx(xc,{className:`w-4 h-4 transition-transform duration-200 ${a?"rotate-180":""}`})]}),a&&s.jsx("div",{className:"pl-4 space-y-1 border-l border-white/10 ml-2",children:Sg.map(l=>s.jsx(Ct,{to:l.href,onClick:()=>t(!1),className:"block text-sm font-heading tracking-[0.12em] uppercase text-white/60 hover:text-white transition-colors py-2","data-umami-event":l.event,"data-umami-event-target":`${l.target}-mobile`,...ye(),children:l.label},l.label))}),s.jsx(ll,{href:"/zamow-online",label:"ZAMÓW ONLINE",eventName:"click-order",eventTarget:"nav-mobile",className:"block text-center px-8 py-2.5 text-sm font-heading font-bold tracking-[0.15em] uppercase bg-brand-navy text-white hover:bg-brand-navy/80 transition-colors mt-4 rounded-full",onClick:()=>t(!1)})]})]})},KA=()=>s.jsxs("section",{id:"lunche",className:"relative w-full min-h-[60vh] md:min-h-[80vh] flex items-center justify-center overflow-hidden bg-black",children:[s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover",children:s.jsx("source",{src:"https://efrhukfrctyztkyqeuhg.supabase.co/storage/v1/object/public/videos/moshimoshi-hero.mp4",type:"video/mp4"})}),s.jsx("div",{className:"absolute inset-0 bg-black/40"}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-2xl mx-auto py-12 md:py-0",children:[s.jsx("h1",{className:"sr-only",children:"Moshi Moshi Sushi — Tradycyjna kuchnia japońska w Gdyni i Sopocie"}),s.jsx("h2",{className:"font-japanese text-4xl md:text-7xl mb-1 text-white leading-tight whitespace-nowrap",children:"エイギョウジカン"}),s.jsx("p",{className:"text-lg md:text-2xl text-white/70 mb-6 md:mb-8 tracking-[0.15em]",style:{fontFamily:"'Cormorant Garamond', serif"},children:"eigyō jikan"}),s.jsxs("div",{className:"inline-block text-left space-y-1 md:space-y-2",children:[s.jsx("p",{className:"text-xs md:text-lg tracking-[0.1em] text-white/70",style:{fontFamily:"'Bebas Neue', sans-serif"},children:"GDYNIA"}),s.jsx("p",{className:"text-sm md:text-xl tracking-[0.1em] text-white/90",style:{fontFamily:"'Bebas Neue', sans-serif"},children:"Poniedziałek – Niedziela  12:00 – 22:00"}),s.jsx("p",{className:"text-xs md:text-lg tracking-[0.1em] text-white/70 mt-2",style:{fontFamily:"'Bebas Neue', sans-serif"},children:"SOPOT"}),s.jsx("p",{className:"text-sm md:text-xl tracking-[0.1em] text-white/90",style:{fontFamily:"'Bebas Neue', sans-serif"},children:"Poniedziałek – Czwartek, Niedziela  12:00 – 22:00"}),s.jsx("p",{className:"text-sm md:text-xl tracking-[0.1em] text-white/90",style:{fontFamily:"'Bebas Neue', sans-serif"},children:"Piątek – Sobota  12:00 – 23:00"})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4 mt-6 md:mt-8 justify-center",children:[s.jsx(Ct,{to:"/rezerwacje",className:"px-8 py-3 rounded-full bg-primary text-primary-foreground font-heading font-bold text-sm md:text-base tracking-[0.15em] uppercase hover:bg-primary/80 transition-colors","data-umami-event":"click-book","data-umami-event-target":"hero",...ye(),children:"REZERWACJE"}),s.jsx(Ct,{to:"/zamow-online",className:"px-8 py-3 rounded-full border-2 border-white text-white font-heading font-bold text-sm md:text-base tracking-[0.15em] uppercase hover:bg-white/10 transition-colors","data-umami-event":"click-order","data-umami-event-target":"hero",...ye(),children:"ZAMÓW ONLINE"})]})]})]}),Xp="/assets/sushi-chef-CeiWFjeo.jpg",WA=()=>s.jsx("section",{className:"bg-cream py-16 md:py-20 px-4",children:s.jsxs("div",{className:"max-w-6xl mx-auto grid md:grid-cols-2 gap-8 md:gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"section-title",children:"O nas"}
293),s.jsx("p",{className:"text-foreground/80 leading-relaxed text-sm md:text-lg mb-6 md:mb-8",children:'Moshi Moshi Sushi to nazwa zainspirowana japońskim zwrotem, którym Japończycy witają się odbierając telefon (モシモシ) — „Halo?". Nasi sushi masterzy, którzy poznawali tajniki kuchni bezpośrednio w Kraju Kwitnącej Wiśni, przekładają tradycyjną kuchnię japońską na talerze naszych Gości. Restauracje Moshi Moshi Sushi znajdują się w Gdyni oraz w Sopocie, gdzie serwowane jest najlepsze sushi razem z fenomenalną kuchnią Fusion oraz klasykami kuchni japońskiej przyrządzanymi wedle oryginalnych receptur.'})]}),s.jsx("div",{className:"overflow-hidden",children:s.jsx("img",{src:Xp,alt:"Sushi master przygotowujący sushi",className:"w-full h-60 md:h-80 object-cover",loading:"lazy",width:1200,height:800})})]})}),ef="/assets/sushi-platter-TAdk6dYZ.jpg",tf="/assets/food-maki-B9IlhfT-.jpg",Tw="/assets/food-sashimi-E6R7DwXL.jpg",nf="/assets/food-nigiri-BhBY9WNI.jpg",Pw="/assets/food-uramaki-BGhdbKUr.jpg",HA=[{src:tf,alt:"Futomaki z łososiem",label:"FUTOMAKI"},{src:Tw,alt:"Sashimi z łososia",label:"SASHIMI"},{src:nf,alt:"Nigiri z tuńczykiem",label:"NIGIRI"},{src:Pw,alt:"Uramaki z łososiem",label:"URAMAKI"}],VA=(e=.15)=>{const t=m.useRef(null),[n,r]=m.useState(!1);return m.useEffect(()=>{const a=new IntersectionObserver(([o])=>{o.isIntersecting&&(r(!0),a.disconnect())},{threshold:e});return t.current&&a.observe(t.current),()=>a.disconnect()},[e]),{ref:t,isVisible:n}},GA=()=>{const{ref:e,isVisible:t}=VA(.1);return s.jsxs("section",{className:"section-dark py-16 md:py-20 px-4",children:[s.jsxs("div",{className:"max-w-6xl mx-auto grid md:grid-cols-2 gap-8 md:gap-12 items-center mb-16 md:mb-20",children:[s.jsx("div",{className:"overflow-hidden order-2 md:order-1 rounded-sm",children:s.jsx("img",{src:ef,alt:"Talerz sushi",className:"w-full h-60 md:h-80 object-cover hover:scale-105 transition-transform duration-700",loading:"lazy",width:1200,height:800})}),s.jsxs("div",{className:"order-1 md:order-2",children:[s.jsx("h2",{className:"text-xl md:text-3xl font-heading font-light text-cream mb-4 md:mb-6",children:"Świeże i pyszne sushi tylko u nas!"}),s.jsx("p",{className:"text-cream/80 leading-relaxed text-sm md:text-lg mb-6 md:mb-8",children:"Nasze sushi to perfekcyjne połączenie niezliczonych składników, bogactwo form, uczta wizualna oraz kulinarna. Tradycja, która wyraża istotę mistrzostwa — tak możemy opisać pracę naszych sushi masterów, którzy szkolili się u wybitnych kucharzy w samej Japonii. Starannie wyselekcjonowane najświeższe ryby, owoce morza oraz liczne dodatki sprawiają, że nasi Goście otrzymują gwarancję wyśmienitego sushi w Gdyni oraz w Sopocie."}),s.jsx("a",{href:"/zamow-online",className:"btn-outline-light text-sm","data-umami-event":"click-order","data-umami-event-target":"section-sushi",...ye(),children:"ZAMÓW ONLINE"})]})]}),s.jsxs("div",{ref:e,className:"max-w-6xl mx-auto",children:[s.jsx("p",{className:"section-title text-cream-dark text-center",children:"Nasze specjalności"}),s.jsx("h2",{className:"text-2xl md:text-4xl font-heading font-light text-cream mb-8 md:mb-12 tracking-widest uppercase text-center",children:"スシ   Potrawy"}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4",children:HA.map((n,r)=>s.jsxs("div",{className:"group relative overflow-hidden rounded-sm cursor-pointer",style:{opacity:t?1:0,transform:t?"translateY(0)":"translateY(30px)",transition:`opacity 0.6s ease-out ${r*.15}s, transform 0.6s ease-out ${r*.15}s`},children:[s.jsx("img",{src:n.src,alt:n.alt,className:"w-full aspect-square object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500 flex items-end justify-center pb-4 md:pb-6",children:s.jsx("span",{className:"text-cream text-xs md:text-sm font-heading font-bold tracking-[0.2em]",children:n.label})})]},r))})]})]})},ZA=()=>s.jsx("section",{id:"zamow",className:"bg-cream py-16 md:py-20 px-4",children:s.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[s.jsx("h4",{className:"text-lg md:text-2xl font-heading font-medium text-foreground mb-3 md:mb-4",children:"Zamów już teraz, telefonicznie lub online."}
293),s.jsx("p",{className:"text-foreground/70 leading-relaxed text-sm md:text-lg mb-6 md:mb-8",children:"Dbamy o to aby nasze sushi trafiało w Wasze ręce zaraz po przygotowaniu, dlatego też starannie je pakujemy i szybko dostarczamy."}),s.jsx(Ct,{to:"/zamow-online",className:"btn-primary","data-umami-event":"click-order","data-umami-event-target":"section-order",...ye(),children:"ZAMÓW ONLINE"})]})}),ho="/assets/restaurant-interior-B4yTe7ys.jpg",Rw="/assets/food-bowls-8tEjH84h.jpg",YA=[{src:ef,alt:"Talerz sushi",label:"SUSHI PLATTER"},{src:ho,alt:"Wnętrze restauracji",label:"RESTAURACJA"},{src:tf,alt:"Futomaki z łososiem",label:"FUTOMAKI"},{src:nf,alt:"Nigiri z tuńczykiem",label:"NIGIRI"},{src:Xp,alt:"Przygotowanie sushi",label:"KUCHNIA"},{src:Rw,alt:"Japońskie herbaty",label:"HERBATY"}],QA=()=>{const e=m.useRef(null),[t,n]=m.useState(!1);return m.useEffect(()=>{const r=new IntersectionObserver(([a])=>{a.isIntersecting&&(n(!0),r.disconnect())},{threshold:.05});return e.current&&r.observe(e.current),()=>r.disconnect()},[]),s.jsx("section",{id:"galeria",className:"section-dark py-24 px-4 md:px-8",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"text-xs font-heading font-bold tracking-[0.3em] uppercase text-primary mb-3",children:"ーギャラリー"}),s.jsx("h3",{className:"text-3xl md:text-4xl font-heading font-bold text-cream tracking-[0.12em] uppercase",children:"Potrawy & Restauracje"}),s.jsx("div",{className:"w-16 h-[2px] bg-primary/40 mx-auto mt-5"})]}),s.jsx("div",{ref:e,className:"grid grid-cols-2 md:grid-cols-12 gap-3 md:gap-4 auto-rows-[200px] md:auto-rows-[240px]",children:YA.map((r,a)=>{const o=["md:col-span-7 md:row-span-2","md:col-span-5","md:col-span-5","md:col-span-4","md:col-span-4","md:col-span-4"];return s.jsx("div",{className:`relative overflow-hidden group cursor-pointer rounded-2xl ${o[a]}`,style:{opacity:t?1:0,transform:t?"translateY(0)":"translateY(30px)",transition:`opacity 0.6s ease-out ${a*.1}s, transform 0.6s ease-out ${a*.1}s`},children:s.jsx("img",{src:r.src,alt:r.alt,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"})},a)})}),s.jsx("div",{className:"text-center mt-14",children:s.jsxs(Ct,{to:"/galeria",className:"inline-flex items-center gap-3 px-10 py-4 bg-white/5 border border-white/10 text-cream font-heading font-bold text-sm tracking-[0.15em] uppercase rounded-2xl hover:bg-primary hover:text-primary-foreground hover:border-primary transition-all duration-400 group",children:["Zobacz całą galerię",s.jsx("span",{className:"inline-block transition-transform duration-300 group-hover:translate-x-1",children:"→"})]})})]})})},qA="/assets/nigiri-sushi-C66v1lls.png",JA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAADKCAMAAABQfxahAAAAh1BMVEX///8AAACbm5u/v7+lpaX8/Pzr6+vy8vL39/fv7+/Q0NDk5OTe3t5KSkp2dnbb29uxsbGHh4fGxsaUlJSpqallZWW+vr4JCQnV1dVXV1e4uLhwcHAbGxs3NzcpKSlfX18TExM6OjpGRkYvLy8jIyOPj4+CgoI/Pz9ycnIXFxceHh5SUlImJib1MweEAAAImUlEQVR4nO2da3uqOBCAFeWugiDetVq1nj32//++LT3t2UyAIYMJ0Gfn/bTbQ2KGJHPLhcGAYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGybFdJwqSZbwYWznjxXYURI7XdbPM4YbJeJ6dhwjvj1m6jXy766bqww3Gu+kekxlwyG7L6MePATuMZ+/KMoscM2vddesbM4l3x0ZSf3MedS1CEybp4Smp/zDuWgwqk/SuQeycz/luR27XEinhLV5xaS7ZzdomURg6vu8EF/TZMK9xNtzvgq7FqsW/VYtxfM3SZSgVCFDJ8ydGn//1PvY7EEeZ5KVKhMN8GZaaKlTyfJ77v7//b+60LI4yQcUwP79tq9tc+a4+2OQPZMIf+in7OitvfSyPb8AbIvgpV2wT+Ldb72T3Z2VtP1io2INBjAg+/OPKJFP417RX7q09Lmn4dVzbP5OSYn/Zfj+1hjPi2iMHZ10ywfcLBd8b83bmwnMJ9A+ympHUFl6JIbsvVUqWzpAvXuCjS2j3rT4M+UnRX3tNlEpik/wiu22eBf592n23F5t/VOrvmkleIli4AU+ovV1j2IUBe1IdiB42ybelReKV+MxNoxxknIJq+6UcXGCTfF5RxgHdvukukFkXOlx9CC4QwR/VxcBsP3U12Qsu90bdwYoQwfdYbAJ+dB89L0UDErnFC/WyLpatwdNQPvDputBzS6m9J0oIXe7jq71Ae9et6HKPXyihRJmz+82uvvhcfL7tAS8bY5KexWLys0rCGei5dtWcL83TjOJNur+H1ajJIYr+3mbgakteSEYqjSUjyl2YIqk4TFp04iUFtSEtiWCT/E25FtER+kUWoCkweMAcjxIK7o/AlFCP6M61lZeX2n4n9biNWPITZca6YtzaTlLahqHyiZYNxtx1mm0Wzct7K0uQc9hcmj3FYnKL2JCtUHZGLNsEaazHpMIOIvhLfXEJcfy04MvBsU571zay8FTIwihUJ8TrJ3JpKtAm/abNL2TpqSZOKUeMHahzhYp/As2ljbFCdCfQzDAJpm1leN0N9hptrPv/VAtO8wL/IioddS+oCR5sL22sI6HpP007TKxz0rAOJWCX0/Q6ln9q7ImIRr3huFHCBbP8TiobIoKnzZskhj8G41XosJPWt2xkA8nmiSaJWtOc++6BfPeBVFby/ADPaGXRl74YC1e3oL2kWY4ZtOfcLzFSV1zdoQOijT1FsWMG7cm1klZ0HNBvJK2EpGFoerKEq1CZoZANJg4pilRKZTSupxRRg6gms4iAPS2UyApbUHleH4+E2hRS1g3wQJRGeLsestvvGYP2hRj57o0sMsIUO2FGYWkYHRljMfQ1kpYC8SmhrzCDpsUMiW/2CW9Q7QcI0bCPbOrXMy3FgEDD7CkCVhfU8wi7YTV6jBAYVFpqlBDrR5e4AVjKUVPuDMRCBvITIHmovCSARWi6TBBIGhhQccCPqdrIIoOlHFfaHC6xVgOuOwhXVKMVLELT10bRfyVs3FAFeKCKoTlm0DRGF2Lob2CvGPBd1XSTex1WozGB8hCqNbCuCvKHanoEc950jkqxafSVmlpAoKkkObYp5FVn00SXgbakrYQ4pJQklzdWDKkVKCOOLcoSvCJkybGgXNUqqiGqIAOSgy2nCpJjy6b6TPknYp8bGO3UeY6pN82pE1HDGUjFAUnqrRq2e113QHUW6jawuiZmdxX8L6zLdS+AicsABlYbQNBVWz8WqehVb4OBL1ZuIAcJrHPt8jGyR2ClO1cGWmYgVqNFqUiXa48pgPk0kYIU66/bCoaEKgfti1/A3uquPAfsqK8ZVMhxU+2bmBxRwRkw51KsXZOBrF4yPmtvFzhiYORAE1DueEiE+G/6tzCBINLImVVoqNDZiiwn6R/soHojG6Q8sCEfneijYSXaOwWoFCPpdmlYoV4ishlI90SEXrKBLFwOmOhHbLgjku8
2931Nwp6yYYOdsAZhU1YbAOYXt8VKh8jNi0HBKpYOCifZQNM03j7wXL0BMkXC5jjNLRxQBYISZ5iJzYMojnhIWCDN4zoOGlfcFvoDgIFYGoNsZ2biraZxeDGV2jSkVeMGHRzmNz3KkUiiA3BL8Iyg9ETqtBvQPIT+EVYRjDa5fIedeQtYycRzWB0ezvFc8DOrJjA+LktqN4xP7nlXjd/Vg/e5Yk5ykGzaz+b0cJlUlB3oalI22rNozF7fOcLaNnwqNONpxVN1cu9lSPoHjxNXLfcEi4y7I4BLWQt3akjxSMKmwKddbL9usJaP4tRezdNQK3d2U0+XSAtF/bubkZzSEewjv+jXvelewcMe47yry/G/9H2JUIhOLrW1kUPf5gcu/rlTyJJdNoZ1WeAsX8HFz5Hkn82b+c+G/vWteAfg07q9WkbKt4Bm9NW3dwPN3DOUHTzI96GifxLZ9d7uw9J9Bez3R7B39t0eK+5Xdi/bvAKWl/ajmAwx6xC4ZjK2dB5YE9KdKyMnTtWJSrs650a0Lf2Qjr79eiDx1w8sfFI9I55x5LMSF8+2rEuJtfPsb60WFTYTtmDS52/Gct98sEs0CF8OC681n177qICpVf2X25PzvjJWDabH8z79nGWsPSenP3bqGFD3WRelrrd9UGzyUQVdwRN58R0kR2ObiWdncvdbjSszqRya/clsxKV3vKibbqpui/xrT+KrYhvYYuoh+wtjZP1JHRcz/5r+GzXCaN1skhnGyRJe7D6Nr9lvAS7s/mL1fVyOL9OP7kfriWWQWIX9OHDDLW4i/JZ2pSNRufAOGGs0PNK7PBv+PQRO3j6K2uv6c8Y5CU4yW3TcFHxMU96/VkxBbxwa+0onxa8Zul20ndFTiAM4lv2OFefy14d75uZtVz/IG1GwXZ9J5wEozhfXkxzLGscL4N16PjuT53TDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMP8MP4F4Txlq7aF+XIAAAAASUVORK5CYII=";var XA=Object.defineProperty,Sc=Object.getOwnPropertySymbols,Ow=Object.prototype.hasOwnProperty,Mw=Object.prototype.propertyIsEnumerable,Ng=(e,t,n)=>t in e?XA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Em=(e,t)=>{for(var n in t||(t={}))Ow.call(t,n)&&Ng(e,n,t[n]);if(Sc)for(var n of Sc(t))Mw.call(t,n)&&Ng(e,n,t[n]);return e},zm=(e,t)=>{var n={};for(var r in e)Ow.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Sc)for(var r of Sc(e))t.indexOf(r)<0&&Mw.call(e,r)&&(n[r]=e[r]);return n};/**
294 * @license QR Code generator library (TypeScript)
295 * Copyright (c) Project Nayuki.
296 * SPDX-License-Identifier: MIT
297 */var $a;(e=>{const t=class Ee{constructor(c,u,d,p){if(this.version=c,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],c<Ee.MIN_VERSION||c>Ee.MAX_VERSION)throw new RangeError("Version value out of range");if(p<-1||p>7)throw new RangeError("Mask value out of range");this.size=c*4+17;let f=[];for(let k=0;k<this.size;k++)f.push(!1);for(let k=0;k<this.size;k++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(d);if(this.drawCodewords(h),p==-1){let k=1e9;for(let g=0;g<8;g++){this.applyMask(g),this.drawFormatBits(g);const b=this.getPenaltyScore();b<k&&(p=g,k=b),this.applyMask(g)}}a(0<=p&&p<=7),this.mask=p,this.applyMask(p),this.drawFormatBits(p),this.isFunction=[]}static encodeText(c,u){const d=e.QrSegment.makeSegments(c);return Ee.encodeSegments(d,u)}static encodeBinary(c,u){const d=e.QrSegment.makeBytes(c);return Ee.encodeSegments([d],u)}static encodeSegments(c,u,d=1,p=40,f=-1,h=!0){if(!(Ee.MIN_VERSION<=d&&d<=p&&p<=Ee.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let k,g;for(k=d;;k++){const w=Ee.getNumDataCodewords(k,u)*8,j=i.getTotalBits(c,k);if(j<=w){g=j;break}if(k>=p)throw new RangeError("Data too long")}for(const w of[Ee.Ecc.MEDIUM,Ee.Ecc.QUARTILE,Ee.Ecc.HIGH])h&&g<=Ee.getNumDataCodewords(k,w)*8&&(u=w);let b=[];for(const w of c){n(w.mode.modeBits,4,b),n(w.numChars,w.mode.numCharCountBits(k),b);for(const j of w.getData())b.push(j)}a(b.length==g);const x=Ee.getNumDataCodewords(k,u)*8;a(b.length<=x),n(0,Math.min(4,x-b.length),b),n(0,(8-b.length%8)%8,b),a(b.length%8==0);for(let w=236;b.length<x;w^=253)n(w,8,b);let y=[];for(;y.length*8<b.length;)y.push(0);return b.forEach((w,j)=>y[j>>>3]|=w<<7-(j&7)),new Ee(k,u,y,f)}getModule(c,u){return 0<=c&&c<this.size&&0<=u&&u<this.size&&this.modules[u][c]}getModules(){return this.modules}drawFunctionPatterns(){for(let d=0;d<this.size;d++)this.setFunctionModule(6,d,d%2==0),this.setFunctionModule(d,6,d%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const c=this.getAlignmentPatternPositions(),u=c.length;for(let d=0;d<u;d++)for(let p=0;p<u;p++)d==0&&p==0||d==0&&p==u-1||d==u-1&&p==0||this.drawAlignmentPattern(c[d],c[p]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(c){const u=this.errorCorrectionLevel.formatBits<<3|c;let d=u;for(let f=0;f<10;f++)d=d<<1^(d>>>9)*1335;const p=(u<<10|d)^21522;a(p>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(p,f));this.setFunctionModule(8,7,r(p,6)),this.setFunctionModule(8,8,r(p,7)),this.setFunctionModule(7,8,r(p,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(p,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(p,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(p,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let c=this.version;for(let d=0;d<12;d++)c=c<<1^(c>>>11)*7973;const u=this.version<<12|c;a(u>>>18==0);for(let d=0;d<18;d++){const p=r(u,d),f=this.size-11+d%3,h=Math.floor(d/3);this.setFunctionModule(f,h,p),this.setFunctionModule(h,f,p)}}drawFinderPattern(c,u){for(let d=-4;d<=4;d++)for(let p=-4;p<=4;p++){const f=Math.max(Math.abs(p),Math.abs(d)),h=c+p,k=u+d;0<=h&&h<this.size&&0<=k&&k<this.size&&this.setFunctionModule(h,k,f!=2&&f!=4)}}drawAlignmentPattern(c,u){for(let d=-2;d<=2;d++)for(let p=-2;p<=2;p++)this.setFunctionModule(c+p,u+d,Math.max(Math.abs(p),Math.abs(d))!=1)}setFunctionModule(c,u,d){this.modules[u][c]=d,this.isFunction[u][c]=!0}addEccAndInterleave(c){const u=this.version,d=this.errorCorrectionLevel;if(c.length!=Ee.getNumDataCodewords(u,d))throw new RangeError("Invalid argument");const p=Ee.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u],f=Ee.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u],h=Math.floor(Ee.getNumRawDataModules(u)/8),k=p-h%p,g=Math.floor(h/p);let b=[];const x=Ee.reedSolomonComputeDivisor(f);for(let w=0,j=0;w<p;w++){let S=c.slice(j,j+g-f+(w<k?0:1));j+=S.length;const N=Ee.reedSolomonComputeRemainder(S,x);w<k&&S.push(0),b.push(S.concat(N))}let y=[];for(let w=0;w<b[0].length;w++)b.forEach((j,S)=>{(w!=g-f||S>=k)&&y.push(j[w])});return a(y.length==h),y}drawCodewords(c){if(c.length!=Math.floor(Ee.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let d=this.size-1;d>=1;d-=2){d==6&&(d=5);for(let p=0;p<this.size;p++)for(let f=0;f<2;f++){const h=d-f,g=(d+1&2)==0?this.size-1-p:p;!this.isFunction[g][h]&&u<c.length*8&&(this.modules[g][h]=r(c[u>>>3],7-(u&7)),u++)}}a(u==c.length*8)}
297applyMask(c){if(c<0||c>7)throw new RangeError("Mask value out of range");for(let u=0;u<this.size;u++)for(let d=0;d<this.size;d++){let p;switch(c){case 0:p=(d+u)%2==0;break;case 1:p=u%2==0;break;case 2:p=d%3==0;break;case 3:p=(d+u)%3==0;break;case 4:p=(Math.floor(d/3)+Math.floor(u/2))%2==0;break;case 5:p=d*u%2+d*u%3==0;break;case 6:p=(d*u%2+d*u%3)%2==0;break;case 7:p=((d+u)%2+d*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][d]&&p&&(this.modules[u][d]=!this.modules[u][d])}}getPenaltyScore(){let c=0;for(let f=0;f<this.size;f++){let h=!1,k=0,g=[0,0,0,0,0,0,0];for(let b=0;b<this.size;b++)this.modules[f][b]==h?(k++,k==5?c+=Ee.PENALTY_N1:k>5&&c++):(this.finderPenaltyAddHistory(k,g),h||(c+=this.finderPenaltyCountPatterns(g)*Ee.PENALTY_N3),h=this.modules[f][b],k=1);c+=this.finderPenaltyTerminateAndCount(h,k,g)*Ee.PENALTY_N3}for(let f=0;f<this.size;f++){let h=!1,k=0,g=[0,0,0,0,0,0,0];for(let b=0;b<this.size;b++)this.modules[b][f]==h?(k++,k==5?c+=Ee.PENALTY_N1:k>5&&c++):(this.finderPenaltyAddHistory(k,g),h||(c+=this.finderPenaltyCountPatterns(g)*Ee.PENALTY_N3),h=this.modules[b][f],k=1);c+=this.finderPenaltyTerminateAndCount(h,k,g)*Ee.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let h=0;h<this.size-1;h++){const k=this.modules[f][h];k==this.modules[f][h+1]&&k==this.modules[f+1][h]&&k==this.modules[f+1][h+1]&&(c+=Ee.PENALTY_N2)}let u=0;for(const f of this.modules)u=f.reduce((h,k)=>h+(k?1:0),u);const d=this.size*this.size,p=Math.ceil(Math.abs(u*20-d*10)/d)-1;return a(0<=p&&p<=9),c+=p*Ee.PENALTY_N4,a(0<=c&&c<=2568888),c}getAlignmentPatternPositions(){if(this.version==1)return[];{const c=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(c*2-2))*2;let d=[6];for(let p=this.size-7;d.length<c;p-=u)d.splice(1,0,p);return d}}static getNumRawDataModules(c){if(c<Ee.MIN_VERSION||c>Ee.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*c+128)*c+64;if(c>=2){const d=Math.floor(c/7)+2;u-=(25*d-10)*d-55,c>=7&&(u-=36)}return a(208<=u&&u<=29648),u}static getNumDataCodewords(c,u){return Math.floor(Ee.getNumRawDataModules(c)/8)-Ee.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c]*Ee.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c]}static reedSolomonComputeDivisor(c){if(c<1||c>255)throw new RangeError("Degree out of range");let u=[];for(let p=0;p<c-1;p++)u.push(0);u.push(1);let d=1;for(let p=0;p<c;p++){for(let f=0;f<u.length;f++)u[f]=Ee.reedSolomonMultiply(u[f],d),f+1<u.length&&(u[f]^=u[f+1]);d=Ee.reedSolomonMultiply(d,2)}return u}static reedSolomonComputeRemainder(c,u){let d=u.map(p=>0);for(const p of c){const f=p^d.shift();d.push(0),u.forEach((h,k)=>d[k]^=Ee.reedSolomonMultiply(h,f))}return d}static reedSolomonMultiply(c,u){if(c>>>8||u>>>8)throw new RangeError("Byte out of range");let d=0;for(let p=7;p>=0;p--)d=d<<1^(d>>>7)*285,d^=(u>>>p&1)*c;return a(d>>>8==0),d}finderPenaltyCountPatterns(c){const u=c[1];a(u<=this.size*3);const d=u>0&&c[2]==u&&c[3]==u*3&&c[4]==u&&c[5]==u;return(d&&c[0]>=u*4&&c[6]>=u?1:0)+(d&&c[6]>=u*4&&c[0]>=u?1:0)}finderPenaltyTerminateAndCount(c,u,d){return c&&(this.finderPenaltyAddHistory(u,d),u=0),u+=this.size,this.finderPenaltyAddHistory(u,d),this.finderPenaltyCountPatterns(d)}finderPenaltyAddHistory(c,u){u[0]==0&&(c+=this.size),u.pop(),u.unshift(c)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1)}function r(l,c){return(l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}
297const o=class ct{constructor(c,u,d){if(this.mode=c,this.numChars=u,this.bitData=d,u<0)throw new RangeError("Invalid argument");this.bitData=d.slice()}static makeBytes(c){let u=[];for(const d of c)n(d,8,u);return new ct(ct.Mode.BYTE,c.length,u)}static makeNumeric(c){if(!ct.isNumeric(c))throw new RangeError("String contains non-numeric characters");let u=[];for(let d=0;d<c.length;){const p=Math.min(c.length-d,3);n(parseInt(c.substring(d,d+p),10),p*3+1,u),d+=p}return new ct(ct.Mode.NUMERIC,c.length,u)}static makeAlphanumeric(c){if(!ct.isAlphanumeric(c))throw new RangeError("String contains unencodable characters in alphanumeric mode");let u=[],d;for(d=0;d+2<=c.length;d+=2){let p=ct.ALPHANUMERIC_CHARSET.indexOf(c.charAt(d))*45;p+=ct.ALPHANUMERIC_CHARSET.indexOf(c.charAt(d+1)),n(p,11,u)}return d<c.length&&n(ct.ALPHANUMERIC_CHARSET.indexOf(c.charAt(d)),6,u),new ct(ct.Mode.ALPHANUMERIC,c.length,u)}static makeSegments(c){return c==""?[]:ct.isNumeric(c)?[ct.makeNumeric(c)]:ct.isAlphanumeric(c)?[ct.makeAlphanumeric(c)]:[ct.makeBytes(ct.toUtf8ByteArray(c))]}static makeEci(c){let u=[];if(c<0)throw new RangeError("ECI assignment value out of range");if(c<128)n(c,8,u);else if(c<16384)n(2,2,u),n(c,14,u);else if(c<1e6)n(6,3,u),n(c,21,u);else throw new RangeError("ECI assignment value out of range");return new ct(ct.Mode.ECI,0,u)}static isNumeric(c){return ct.NUMERIC_REGEX.test(c)}static isAlphanumeric(c){return ct.ALPHANUMERIC_REGEX.test(c)}getData(){return this.bitData.slice()}static getTotalBits(c,u){let d=0;for(const p of c){const f=p.mode.numCharCountBits(u);if(p.numChars>=1<<f)return 1/0;d+=4+f+p.bitData.length}return d}static toUtf8ByteArray(c){c=encodeURI(c);let u=[];for(let d=0;d<c.length;d++)c.charAt(d)!="%"?u.push(c.charCodeAt(d)):(u.push(parseInt(c.substring(d+1,d+3),16)),d+=2);return u}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let i=o;e.QrSegment=o})($a||($a={}));(e=>{(t=>{const n=class{constructor(a,o){this.ordinal=a,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})($a||($a={}));(e=>{(t=>{const n=class{constructor(a,o){this.modeBits=a,this.numBitsCharCount=o}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})($a||($a={}));var Ns=$a;/**
298 * @license qrcode.react
299 * Copyright (c) Paul O'Shannessy
300 * SPDX-License-Identifier: ISC
301 */var eT={L:Ns.QrCode.Ecc.LOW,M:Ns.QrCode.Ecc.MEDIUM,Q:Ns.QrCode.Ecc.QUARTILE,H:Ns.QrCode.Ecc.HIGH},Iw=128,_w="L",Lw="#FFFFFF",Dw="#000000",Fw=!1,Uw=1,tT=4,nT=0,rT=.1;function $w(e,t=0){const n=[];return e.forEach(function(r,a){let o=null;r.forEach(function(i,l){if(!i&&o!==null){n.push(`M${o+t} ${a+t}h${l-o}v1H${o+t}z`),o=null;return}if(l===r.length-1){if(!i)return;o===null?n.push(`M${l+t},${a+t} h1v1H${l+t}z`):n.push(`M${o+t},${a+t} h${l+1-o}v1H${o+t}z`);return}i&&o===null&&(o=l)})}),n.join("")}function Bw(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((a,o)=>o<t.x||o>=t.x+t.w?a:!1))}function aT(e,t,n,r){if(r==null)return null;const a=e.length+n*2,o=Math.floor(t*rT),i=a/t,l=(r.width||o)*i,c=(r.height||o)*i,u=r.x==null?e.length/2-l/2:r.x*i,d=r.y==null?e.length/2-c/2:r.y*i,p=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let k=Math.floor(u),g=Math.floor(d),b=Math.ceil(l+u-k),x=Math.ceil(c+d-g);f={x:k,y:g,w:b,h:x}}const h=r.crossOrigin;return{x:u,y:d,h:c,w:l,excavation:f,opacity:p,crossOrigin:h}}function sT(e,t){return t!=null?Math.max(Math.floor(t),0):e?tT:nT}function Kw({value:e,level:t,minVersion:n,includeMargin:r,marginSize:a,imageSettings:o,size:i,boostLevel:l}){let c=O.useMemo(()=>{const k=(Array.isArray(e)?e:[e]).reduce((g,b)=>(g.push(...Ns.QrSegment.makeSegments(b)),g),[]);return Ns.QrCode.encodeSegments(k,eT[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:u,margin:d,numCells:p,calculatedImageSettings:f}=O.useMemo(()=>{let h=c.getModules();const k=sT(r,a),g=h.length+k*2,b=aT(h,i,k,o);return{cells:h,margin:k,numCells:g,calculatedImageSettings:b}}
301,[c,i,o,r,a]);return{qrcode:c,margin:d,cells:u,numCells:p,calculatedImageSettings:f}}var oT=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),iT=O.forwardRef(function(t,n){const r=t,{value:a,size:o=Iw,level:i=_w,bgColor:l=Lw,fgColor:c=Dw,includeMargin:u=Fw,minVersion:d=Uw,boostLevel:p,marginSize:f,imageSettings:h}=r,g=zm(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:b}=g,x=zm(g,["style"]),y=h==null?void 0:h.src,w=O.useRef(null),j=O.useRef(null),S=O.useCallback(M=>{w.current=M,typeof n=="function"?n(M):n&&(n.current=M)},[n]),[N,E]=O.useState(!1),{margin:T,cells:P,numCells:L,calculatedImageSettings:K}=Kw({value:a,level:i,minVersion:d,boostLevel:p,includeMargin:u,marginSize:f,imageSettings:h,size:o});O.useEffect(()=>{if(w.current!=null){const M=w.current,W=M.getContext("2d");if(!W)return;let _=P;const U=j.current,z=K!=null&&U!==null&&U.complete&&U.naturalHeight!==0&&U.naturalWidth!==0;z&&K.excavation!=null&&(_=Bw(P,K.excavation));const R=window.devicePixelRatio||1;M.height=M.width=o*R;const D=o/L*R;W.scale(D,D),W.fillStyle=l,W.fillRect(0,0,L,L),W.fillStyle=c,oT?W.fill(new Path2D($w(_,T))):P.forEach(function(X,Y){X.forEach(function(ne,Z){ne&&W.fillRect(Z+T,Y+T,1,1)})}),K&&(W.globalAlpha=K.opacity),z&&W.drawImage(U,K.x+T,K.y+T,K.w,K.h)}}),O.useEffect(()=>{E(!1)},[y]);const F=Em({height:o,width:o},b);let ee=null;return y!=null&&(ee=O.createElement("img",{src:y,key:y,style:{display:"none"},onLoad:()=>{E(!0)},ref:j,crossOrigin:K==null?void 0:K.crossOrigin})),O.createElement(O.Fragment,null,O.createElement("canvas",Em({style:F,height:o,width:o,ref:S,role:"img"},x)),ee)});iT.displayName="QRCodeCanvas";var rf=O.forwardRef(function(t,n){const r=t,{value:a,size:o=Iw,level:i=_w,bgColor:l=Lw,fgColor:c=Dw,includeMargin:u=Fw,minVersion:d=Uw,boostLevel:p,title:f,marginSize:h,imageSettings:k}=r,g=zm(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:b,cells:x,numCells:y,calculatedImageSettings:w}=Kw({value:a,level:i,minVersion:d,boostLevel:p,includeMargin:u,marginSize:h,imageSettings:k,size:o});let j=x,S=null;k!=null&&w!=null&&(w.excavation!=null&&(j=Bw(x,w.excavation)),S=O.createElement("image",{href:k.src,height:w.h,width:w.w,x:w.x+b,y:w.y+b,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));const N=$w(j,b);return O.createElement("svg",Em({height:o,width:o,viewBox:`0 0 ${y} ${y}`,ref:n,role:"img"},g),!!f&&O.createElement("title",null,f),O.createElement("path",{fill:l,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),O.createElement("path",{fill:c,d:N,shapeRendering:"crispEdges"}),S)});rf.displayName="QRCodeSVG";function lT(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),a=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(a),t&&(r.href=t),a.href=e,a.href}const cT=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function la(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let rs=null;function Ww(e={}){return rs||(e.includeStyleProperties?(rs=e.includeStyleProperties,rs):(rs=la(window.getComputedStyle(document.documentElement)),rs))}function Nc(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function uT(e){const t=Nc(e,"border-left-width"),n=Nc(e,"border-right-width");return e.clientWidth+t+n}function dT(e){const t=Nc(e,"border-top-width"),n=Nc(e,"border-bottom-width");return e.clientHeight+t+n}function Hw(e,t={}){const n=t.width||uT(e),r=t.height||dT(e);return{width:n,height:r}}function mT(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const cn=16384;function pT(e){(e.width>cn||e.height>cn)&&(e.width>cn&&e.height>cn?e.width>e.height?(e.height*=cn/e.width,e.width=cn):(e.width*=cn/e.height,e.height=cn):e.width>cn?(e.height*=cn/e.width,e.width=cn):(e.width*=cn/e.height,e.height=cn))}function Ec(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function fT(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function hT(e,t,n){const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${n}`),a.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),a.appendChild(o),o.appendChild(e),fT(a)}const sn=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||sn(n,t)};function gT(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function yT(e,t){return Ww(t).map(n=>{const r=e.getPropertyValue(n),a=e.getPropertyPriority(n);return`${n}: ${r}${a?" !important":""};`}).join(" ")}function xT(e,t,n,r){const a=`.${e}:${t}`,o=n.cssText?gT(n):yT(n,r);return document.createTextNode(`${a}{${o}}`)}function Eg(e,t,n,r){const a=window.getComputedStyle(e,n),o=a.getPropertyValue("content");
301if(o===""||o==="none")return;const i=cT();try{t.className=`${t.className} ${i}`}catch{return}const l=document.createElement("style");l.appendChild(xT(i,n,a,r)),t.appendChild(l)}function vT(e,t,n){Eg(e,t,":before",n),Eg(e,t,":after",n)}const zg="application/font-woff",Cg="image/jpeg",wT={woff:zg,woff2:zg,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Cg,jpeg:Cg,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function bT(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function af(e){const t=bT(e).toLowerCase();return wT[t]||""}function kT(e){return e.split(/,/)[1]}function Cm(e){return e.search(/^(data:)/)!==-1}function jT(e,t){return`data:${t};base64,${e}`}async function Vw(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const a=await r.blob();return new Promise((o,i)=>{const l=new FileReader;l.onerror=i,l.onloadend=()=>{try{o(n({res:r,result:l.result}))}catch(c){i(c)}},l.readAsDataURL(a)})}const td={};function ST(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function sf(e,t,n){const r=ST(e,t,n.includeQueryParams);if(td[r]!=null)return td[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const o=await Vw(e,n.fetchRequestInit,({res:i,result:l})=>(t||(t=i.headers.get("Content-Type")||""),kT(l)));a=jT(o,t)}catch(o){a=n.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return td[r]=a,a}async function NT(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Ec(t)}async function ET(e,t){if(e.currentSrc){const o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i==null||i.drawImage(e,0,0,o.width,o.height);const l=o.toDataURL();return Ec(l)}const n=e.poster,r=af(n),a=await sf(n,r,t);return Ec(a)}async function zT(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await iu(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function CT(e,t){return sn(e,HTMLCanvasElement)?NT(e):sn(e,HTMLVideoElement)?ET(e,t):sn(e,HTMLIFrameElement)?zT(e,t):e.cloneNode(Gw(e))}const AT=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Gw=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function TT(e,t,n){var r,a;if(Gw(t))return t;let o=[];return AT(e)&&e.assignedNodes?o=la(e.assignedNodes()):sn(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?o=la(e.contentDocument.body.childNodes):o=la(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),o.length===0||sn(e,HTMLVideoElement)||await o.reduce((i,l)=>i.then(()=>iu(l,n)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function PT(e,t,n){const r=t.style;if(!r)return;const a=window.getComputedStyle(e);a.cssText?(r.cssText=a.cssText,r.transformOrigin=a.transformOrigin):Ww(n).forEach(o=>{let i=a.getPropertyValue(o);o==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),sn(e,HTMLIFrameElement)&&o==="display"&&i==="inline"&&(i="block"),o==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),r.setProperty(o,i,a.getPropertyPriority(o))})}function RT(e,t){sn(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),sn(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function OT(e,t){if(sn(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(a=>e.value===a.getAttribute("value"));r&&r.setAttribute("selected","")}}function MT(e,t,n){return sn(t,Element)&&(PT(e,t,n),vT(e,t,n),RT(e,t),OT(e,t)),t}async function IT(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let o=0;o<n.length;o++){const l=n[o].getAttribute("xlink:href");if(l){const c=e.querySelector(l),u=document.querySelector(l);!c&&u&&!r[l]&&(r[l]=await iu(u,t,!0))}}const a=Object.values(r);if(a.length){const o="http://www.w3.org/1999/xhtml",i=document.createElementNS(o,"svg");i.setAttribute("xmlns",o),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const l=document.createElementNS(o,"defs");i.appendChild(l);for(let c=0;c<a.length;c++)l.appendChild(a[c]);e.appendChild(i)}return e}async function iu(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>CT(r,t)).then(r=>TT(e,r,t)).then(r=>MT(e,r,t)).then(r=>IT(r,t))}const Zw=/url\((['"]?)([^'"]+?)\1\)/g,_T=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,LT=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function DT(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function FT(e){const t=[];return e.replace(Zw,(n,r,a)=>(t.push(a),n)),t.filter(n=>!Cm(n))}async function UT(e,t,n,r,a){try{const o=n?lT(t,n):t,i=af(t);let l;return a||(l=await sf(o,i,r)),e.replace(DT(t),`$1${l}$3`)}catch{}return e}function $T(e,{preferredFontFormat:t}){return t?e.replace(LT,n=>{for(;;){const[r,,a]=_T.exec(n)||[];if(!a)return"";if(a===t)return`src: ${r};`}}):e}function Yw(e){return e.search(Zw)!==-1}async function Qw(e,t,n){if(!Yw(e))return e;const r=$T(e,n);return FT(r).reduce((o,i)=>o.then(l=>UT(l,i,t,n)),Promise.resolve(r))}async function as(e,t,n){var r;const a=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(a){const o=await Qw(a,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function BT(e,t){await as("background",e,t)||await as("background-image",e,t),await as("mask",e,t)||await as("-webkit-mask",e,t)||await as("mask-image",e,t)||await as("-webkit-mask-image",e,t)}async function KT(e,t){const n=sn(e,HTMLImageElement);if(!(n&&!Cm(e.src))&&!(sn(e,SVGImageElement)&&!Cm(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,a=await sf(r,af(r),t);await new Promise((o,i)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...c)=>{try{o(t.onImageErrorHandler(...c))}catch(u){i(u)}}:i;const l=e;l.decode&&(l.decode=o),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=a):e.href.baseVal=a})}async function WT(e,t){const r=la(e.childNodes).map(a=>qw(a,t));await Promise.all(r).then(()=>e)}async function qw(e,t){sn(e,Element)&&(await BT(e,t),await KT(e,t),await WT(e,t))}function HT(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(a=>{n[a]=r[a]}),e}const Ag={};async function Tg(e){let t=Ag[e];
301if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},Ag[e]=t,t}async function Pg(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let l=i.replace(r,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),Vw(l,t.fetchRequestInit,({result:c})=>(n=n.replace(i,`url(${c})`),[i,c]))});return Promise.all(o).then(()=>n)}function Rg(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(r);if(c===null)break;t.push(c[0])}r=r.replace(a,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(i,"gi");for(;;){let c=o.exec(r);if(c===null){if(c=l.exec(r),c===null)break;o.lastIndex=l.lastIndex}else l.lastIndex=o.lastIndex;t.push(c[0])}return t}async function VT(e,t){const n=[],r=[];return e.forEach(a=>{if("cssRules"in a)try{la(a.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let l=i+1;const c=o.href,u=Tg(c).then(d=>Pg(d,t)).then(d=>Rg(d).forEach(p=>{try{a.insertRule(p,p.startsWith("@import")?l+=1:a.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:p,error:f})}})).catch(d=>{console.error("Error loading remote css",d.toString())});r.push(u)}})}catch(o){const i=e.find(l=>l.href==null)||document.styleSheets[0];a.href!=null&&r.push(Tg(a.href).then(l=>Pg(l,t)).then(l=>Rg(l).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(e.forEach(a=>{if("cssRules"in a)try{la(a.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${a.href}`,o)}}),n))}function GT(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Yw(t.style.getPropertyValue("src")))}async function ZT(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=la(e.ownerDocument.styleSheets),r=await VT(n,t);return GT(r)}function Jw(e){return e.trim().replace(/["']/g,"")}function YT(e){const t=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(o=>{t.add(Jw(o))}),Array.from(r.children).forEach(o=>{o instanceof HTMLElement&&n(o)})}return n(e),t}async function QT(e,t){const n=await ZT(e,t),r=YT(e);return(await Promise.all(n.filter(o=>r.has(Jw(o.style.fontFamily))).map(o=>{const i=o.parentStyleSheet?o.parentStyleSheet.href:null;return Qw(o.cssText,i,t)}))).join(`
302`)}async function qT(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await QT(e,t);if(n){const r=document.createElement("style"),a=document.createTextNode(n);r.appendChild(a),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function JT(e,t={}){const{width:n,height:r}=Hw(e,t),a=await iu(e,t,!0);return await qT(a,t),await qw(a,t),HT(a,t),await hT(a,n,r)}async function XT(e,t={}){const{width:n,height:r}=Hw(e,t),a=await JT(e,t),o=await Ec(a),i=document.createElement("canvas"),l=i.getContext("2d"),c=t.pixelRatio||mT(),u=t.canvasWidth||n,d=t.canvasHeight||r;return i.width=u*c,i.height=d*c,t.skipAutoScale||pT(i),i.style.width=`${u}`,i.style.height=`${d}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,i.width,i.height)),l.drawImage(o,0,0,i.width,i.height),i}async function eP(e,t={}){return(await XT(e,t)).toDataURL()}const Xw="https://attribution.mysite.cx/api",eb="2af988d7-06ee-4656-922b-9765639703dd";async function nd(e,t){const n=await fetch(`${Xw}/game/${eb}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"omit",body:JSON.stringify(t)});if(!n.ok){const r=await n.json().catch(()=>({})),a=r==null?void 0:r.message;throw{code:typeof a=="string"?a:`http_${n.status}`,message:Array.isArray(a)?a.join(", "):String(a??`HTTP ${n.status}`)}}return n.json()}const cl={getConfig:async()=>{const e=await fetch(`${Xw}/game/${eb}/config`,{credentials:"omit"});if(!e.ok)throw{code:`http_${e.status}`,message:`HTTP ${e.status}`};return e.json()},draw:(e,t)=>nd("/draw",{phone:e,tracking:t}),otpRequest:(e,t)=>
302nd("/otp/request",{draw_id:e,phone:t}),otpVerify:(e,t,n)=>nd("/otp/verify",{draw_id:e,phone:t,otp:n})},Og=["hsl(218, 32%, 28%)","hsl(38, 28%, 82%)","hsl(212, 38%, 38%)","hsl(38, 28%, 82%)","hsl(218, 32%, 28%)","hsl(45, 78%, 52%)","hsl(38, 28%, 82%)","hsl(212, 38%, 38%)","hsl(8, 42%, 42%)"],tP=()=>{var nt;const[e,t]=m.useState(0),[n,r]=m.useState(!1),[a,o]=m.useState(!1),[i,l]=m.useState(null),[c,u]=m.useState(!0),[d,p]=m.useState(null),[f,h]=m.useState(null),[k,g]=m.useState(null),[b,x]=m.useState(""),[y,w]=m.useState(!1),[j,S]=m.useState(!1),[N,E]=m.useState(!1),[T,P]=m.useState(null),[L,K]=m.useState("idle"),[F,ee]=m.useState(""),[M,W]=m.useState(!1),[_,U]=m.useState(null),[z,R]=m.useState(!1),[D,X]=m.useState(null),Y=m.useRef(null),ne=m.useRef(0),Z=m.useRef(0);m.useEffect(()=>{let G=!1;return cl.getConfig().then(Q=>{G||X(Q.segments)}).catch(()=>{G||U("Nie udało się załadować gry.")}),()=>{G=!0}},[]);const ve=(D??[]).map((G,Q)=>({label:G.display_name.replace(/ /g,`
303`),color:Og[Q%Og.length],highlight:/lexus/i.test(G.display_name)})),B=360/(ve.length||1);m.useEffect(()=>{if(!n||a)return;let G=performance.now();const Q=180,ue=Pe=>{const de=(Pe-G)/1e3;G=Pe,Z.current+=Q*de,t(Z.current),ne.current=requestAnimationFrame(ue)};return ne.current=requestAnimationFrame(ue),()=>cancelAnimationFrame(ne.current)},[n,a]);const we=m.useCallback(()=>{n||a||!c||(Z.current=e,l(null),h(null),g(null),R(!1),P(null),K("idle"),ee(""),U(null),r(!0))},[n,a,c,e]),Ce=m.useCallback(G=>{if(a)return;cancelAnimationFrame(ne.current);const ue=(360-(G*B+B/2)+360)%360,Pe=(Math.random()-.5)*(B*.6),de=(ue+Pe+360)%360,Xe=Z.current,me=(Xe%360+360)%360;let ce=de-me;ce<0&&(ce+=360);const et=Xe+4*360+ce;o(!0),r(!1),t(et),setTimeout(()=>{var gt;Z.current=et;
303const Pt=((gt=D==null?void 0:D[G])==null?void 0:gt.display_name)??"";l(Pt),p(G),u(!1),o(!1)},4500)},[a,D]),be=m.useCallback(async()=>{if(!M){W(!0),U(null);try{const G=await cl.draw(b);P(G.draw_id),R(G.losing||!G.draw_id),w(!0),S(!1),Ce(G.prize_id)}catch(G){const Q=G;cancelAnimationFrame(ne.current),r(!1),S(!1),Q.code==="play_limit"?U("Ten numer telefonu już wykorzystał grę."):Q.code==="no_reward_available"?U("Nagrody chwilowo niedostępne. Spróbuj później."):Q.code==="banned"?U("Nie można teraz zagrać."):Q.code==="invalid_phone"?U("Niepoprawny numer telefonu."):U("Coś poszło nie tak. Spróbuj ponownie."),u(!0)}finally{W(!1)}}},[M,b,Ce]),oe=m.useCallback(async()=>{if(!(M||!T)){W(!0),U(null);try{await cl.otpRequest(T,b),K("sent")}catch(G){const Q=G;Q.code==="draw_expired"?U("Czas na odbiór minął. Zagraj ponownie."):Q.code==="sms_send_failed"||Q.code==="sms_not_configured"?U("Nie udało się wysłać SMS. Spróbuj ponownie."):U("Nie udało się wysłać kodu. Spróbuj ponownie.")}finally{W(!1)}}},[M,T,b]),V=m.useCallback(async()=>{var G;if(!(M||!T||F.length<4)){W(!0),U(null);try{const Q=await cl.otpVerify(T,b,F),ue=d!=null?(G=D==null?void 0:D[d])==null?void 0:G.description:null;g(ue??i),h(Q.qr_payload)}catch(Q){const ue=Q;ue.code==="invalid_otp"?U("Niepoprawny kod. Spróbuj ponownie."):ue.code==="draw_expired"||ue.code==="already_confirmed"?U("Czas na odbiór minął lub nagroda już odebrana."):U("Weryfikacja nie powiodła się.")}finally{W(!1)}}},[M,T,b,F,i,d,D]),$e=420,ie=$e/2,Le=$e/2-10,Ve=G=>{const Q=(G*B-90)*(Math.PI/180),ue=((G+1)*B-90)*(Math.PI/180),Pe=ie+Le*Math.cos(Q),de=ie+Le*Math.sin(Q),Xe=ie+Le*Math.cos(ue),me=ie+Le*Math.sin(ue),ce=B>180?1:0;return`M${ie},${ie} L${Pe},${de} A${Le},${Le} 0 ${ce} 1 ${Xe},${me} Z`},Bt=G=>{const Q=((G+.5)*B-90)*(Math.PI/180),ue=Le*.58;return{x:ie+ue*Math.cos(Q),y:ie+ue*Math.sin(Q),angle:(G+.5)*B}},Kt=m.useRef(null),pt=m.useRef(0),Ae=n||a;return m.useEffect(()=>{if(!Ae){pt.current&&cancelAnimationFrame(pt.current);const De=Kt.current;if(De){const et=De.getContext("2d");et&&et.clearRect(0,0,De.width,De.height)}return}const G=Kt.current;if(!G)return;const Q=G.getContext("2d");if(!Q)return;const ue=G.parentElement;ue&&(G.width=ue.offsetWidth,G.height=ue.offsetHeight);const Pe="アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン".split(""),de=18,Xe=Math.floor(G.width/de),me=Array(Xe).fill(0).map(()=>Math.random()*-50),ce=()=>{Q.fillStyle="hsla(220, 44%, 20%, 0.08)",Q.fillRect(0,0,G.width,G.height);for(let De=0;De<me.length;De++){const et=Pe[Math.floor(Math.random()*Pe.length)];Math.random()>.5?Q.fillStyle="hsla(30, 50%, 50%, 0.7)":Q.fillStyle="hsla(30, 45%, 65%, 0.5)",Q.font=`${de}px 'Noto Sans JP', sans-serif`,Q.fillText(et,De*de,me[De]*de),me[De]*de>G.height&&Math.random()>.975&&(me[De]=0),me[De]+=.5+Math.random()*.5}pt.current=requestAnimationFrame(ce)};return ce(),()=>{pt.current&&cancelAnimationFrame(pt.current)}},[Ae]),s.jsxs("section",{id:"nagrody",className:"pt-24 pb-16 md:pt-32 md:pb-20 relative overflow-hidden",style:{backgroundColor:"hsl(var(--brand-navy))",color:"hsl(var(--cream))"},children:[s.jsx("div",{className:"absolute inset-0 pointer-events-none z-0 select-none overflow-hidden",style:{opacity:.04},children:s.jsx("div",{className:"absolute inset-0 font-japanese text-[2rem] leading-[5rem] tracking-[3em] break-all",style:{color:"hsl(var(--cream))",wordBreak:"break-all"},children:"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン".repeat(30)})}),s.jsx("canvas",{ref:Kt,className:"absolute inset-0 w-full h-full pointer-events-none z-[1]",style:{opacity:Ae?.4:0,transition:"opacity 0.5s"}}),s.jsxs("div",{className:"max-w-5xl mx-auto px-4 text-center relative z-10",children:[s.jsx("p",{className:"section-title",children:"ゲーム"}),s.jsx("h2",{className:"text-3xl md:text-5xl tracking-wider mb-2",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(var(--cream))"},children:"ZAKRĘĆ I WYGRAJ"}),s.jsx("p",{className:"mb-8 md:mb-12 tracking-wider text-xs md:text-sm",style:{color:"hsl(var(--cream) / 0.6)"},children:"SPRÓBUJ SZCZĘŚCIA I ZGARNIJ NAGRODĘ"}),s.jsx("div",{className:"relative inline-block w-full max-w-[92vw] sm:max-w-[460px] md:max-w-[600px] lg:max-w-[720px] mx-auto",children:s.jsxs("div",{className:"relative flex items-center justify-center py-6 px-2 sm:px-4",children:[s.jsx("div",{className:`absolute left-1/2 z-30 ${!n&&!a&&i?"animate-chopsticks-reach":""}
303`,style:{top:"-32px",transform:"translateX(-50%)",filter:"drop-shadow(0 4px 8px rgba(0,0,0,0.5))"},children:s.jsxs("svg",{width:"60",height:"100",viewBox:"-7 0 60 100",overflow:"visible",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"chopstickGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:"hsl(28, 38%, 78%)"}),s.jsx("stop",{offset:"50%",stopColor:"hsl(28, 42%, 62%)"}),s.jsx("stop",{offset:"100%",stopColor:"hsl(25, 45%, 42%)"})]})}),s.jsxs("g",{className:!n&&!a&&i?"animate-chopstick-left":"",children:[s.jsx("polygon",{points:"14,0 18,0 24,64 20,68",fill:"url(#chopstickGrad)",stroke:"hsl(25, 45%, 28%)",strokeWidth:"0.6"}),s.jsx("rect",{x:"14",y:"0",width:"4",height:"6",fill:"hsl(8, 42%, 42%)"})]}),s.jsxs("g",{className:!n&&!a&&i?"animate-chopstick-right":"",children:[s.jsx("polygon",{points:"28,0 32,0 26,68 22,64",fill:"url(#chopstickGrad)",stroke:"hsl(25, 45%, 28%)",strokeWidth:"0.6"}),s.jsx("rect",{x:"28",y:"0",width:"4",height:"6",fill:"hsl(8, 42%, 42%)"})]})]})}),s.jsxs("svg",{ref:Y,viewBox:`0 0 ${$e} ${$e}`,preserveAspectRatio:"xMidYMid meet",overflow:"visible",style:{width:"100%",height:"auto",maxWidth:"720px",aspectRatio:"1 / 1",display:"block",overflow:"visible",transform:`rotate(${e}deg)`,transition:a?"transform 4.5s cubic-bezier(0.17, 0.67, 0.12, 0.99)":"none",filter:"drop-shadow(0 10px 30px rgba(0,0,0,0.4))"},children:[s.jsxs("defs",{children:[s.jsxs("filter",{id:"slashGlow",x:"-80%",y:"-80%",width:"260%",height:"260%",children:[s.jsx("feGaussianBlur",{stdDeviation:"6",result:"blur1"}),s.jsx("feGaussianBlur",{stdDeviation:"2",in:"SourceGraphic",result:"blur2"}),s.jsxs("feMerge",{children:[s.jsx("feMergeNode",{in:"blur1"}),s.jsx("feMergeNode",{in:"blur1"}),s.jsx("feMergeNode",{in:"blur2"}),s.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),s.jsxs("filter",{id:"slashGlowIntense",x:"-100%",y:"-100%",width:"300%",height:"300%",children:[s.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur"}),s.jsxs("feMerge",{children:[s.jsx("feMergeNode",{in:"blur"}),s.jsx("feMergeNode",{in:"blur"}),s.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),s.jsxs("pattern",{id:"wheelSeigaiha",x:"0",y:"0",width:"32",height:"16",patternUnits:"userSpaceOnUse",children:[s.jsx("circle",{cx:"16",cy:"16",r:"15",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"16",cy:"16",r:"5",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"0",cy:"16",r:"15",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"0",cy:"16",r:"10",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"0",cy:"16",r:"5",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"32",cy:"16",r:"15",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"32",cy:"16",r:"10",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"}),s.jsx("circle",{cx:"32",cy:"16",r:"5",fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"0.8"})]}),s.jsx("clipPath",{id:"wheelClip",children:s.jsx("circle",{cx:ie,cy:ie,r:Le})}),(()=>{const G=ve.findIndex(Q=>Q.highlight);return G<0?null:s.jsx("clipPath",{id:"lexusSegmentClip",children:s.jsx("path",{d:Ve(G)})})})()]}),s.jsx("circle",{cx:ie,cy:ie,r:Le+4,fill:"none",stroke:"hsl(38, 32%, 92%)",strokeWidth:"1.5",opacity:"0.6"}),ve.map((G,Q)=>s.jsx("path",{d:Ve(Q),fill:G.color,stroke:"hsl(218, 38%, 18%)",strokeWidth:"1"},Q)),s.jsx("rect",{x:ie-Le,y:ie-Le,width:Le*2,height:Le*2,fill:"url(#wheelSeigaiha)",clipPath:"url(#wheelClip)",opacity:"0.18",pointerEvents:"none"}),(()=>{const G=ve.findIndex(ce=>ce.highlight);if(G<0)return null;const Q=G*B,ue=(G+1)*B,Pe=22,de=14,Xe=[{r:.4,count:1},{r:.58,count:2},{r:.74,count:3},{r:.88,count:3}],me=[];return Xe.forEach((ce,De)=>{const Pt=Math.atan2(Pe/2,Le*ce.r)*180/Math.PI+1.5,gt=Q+Pt,re=ue-Pt;for(let rt=0;rt<ce.count;rt++){const Rt=ce.count===1?.5:rt/(ce.count-1),on=gt+Rt*(re-gt),le=(on-90)*(Math.PI/180),Ze=ie+Le*ce.r*Math.cos(le),ln=ie+Le*ce.r*Math.sin(le);me.push({x:Ze,y:ln,rot:on,key:`${De}-${rt}`})}}),s.jsx("g",{pointerEvents:"none",opacity:"0.3",clipPath:"url(#lexusSegmentClip)",style:{mixBlendMode:"multiply"},children:me.map(ce=>s.jsx("image",{href:JA,x:ce.x-Pe/2,y:ce.y-de/2,width:Pe,height:de,preserveAspectRatio:"xMidYMid meet",transform:`rotate(${ce.rot}, ${ce.x}, ${ce.y})`},ce.key))})})(),ve.map((G,Q)=>{const ue=Bt(Q),Pe=G.label.split(`
304`),Xe=[1,3,5,6].includes(Q)?"hsl(218, 38%, 22%)":"hsl(38, 32%, 92%)",me=G.highlight;return s.jsx("text",{x:ue.x,y:ue.y,textAnchor:"middle",dominantBaseline:"central",fill:Xe,stroke:me?"hsl(45, 90%, 95%)":"none",strokeWidth:me?.6:0,paintOrder:"stroke fill",fontSize:me?"14":"17",fontWeight:"900",fontFamily:"'Bebas Neue', sans-serif",letterSpacing:me?"0.04em":"0.12em",transform:`rotate(${ue.angle}, ${ue.x}, ${ue.y})`,children:Pe.map((ce,De)=>s.jsx("tspan",{x:ue.x,dy:De===0?"-0.5em":"1.2em",children:ce},De))},`text-${Q}`)}),s.jsx("circle",{cx:ie,cy:ie,r:22,fill:"hsl(218, 38%, 22%)",stroke:"hsl(38, 32%, 92%)",strokeWidth:"1.5"}),s.jsx("circle",{cx:ie,cy:ie,r:8,fill:"hsl(38, 32%, 92%)"})]}),d!==null&&!n&&!a&&i&&(()=>{const G=Le*.88,Q=ie,ue=ie-G,Pe=64,de=50,Xe=-90,me=ue-de/2,ce=me-18;return s.jsxs("svg",{viewBox:`0 0 ${$e} ${$e}`,preserveAspectRatio:"xMidYMid meet",className:"absolute pointer-events-none z-20",style:{width:"100%",height:"auto",maxWidth:"720px",aspectRatio:"1 / 1",left:"50%",top:"50%",transform:"translate(-50%, -50%)",overflow:"visible"},overflow:"visible",children:[s.jsxs("ellipse",{cx:Q,cy:ue+de*.42,rx:Pe*.15,ry:3,fill:"rgba(0,0,0,0.55)",opacity:0,children:[s.jsx("animate",{attributeName:"opacity",values:"0; 0.15; 0.6; 0.55",keyTimes:"0; 0.4; 0.85; 1",dur:"1.0s",begin:"0s",fill:"freeze"}),s.jsx("animate",{attributeName:"rx",values:`${Pe*.12}; ${Pe*.18}; ${Pe*.46}; ${Pe*.42}`,keyTimes:"0; 0.4; 0.85; 1",dur:"1.0s",begin:"0s",fill:"freeze"}),s.jsx("animate",{attributeName:"ry",values:"2.5; 3.5; 7; 6",keyTimes:"0; 0.4; 0.85; 1",dur:"1.0s",begin:"0s",fill:"freeze"})]}),s.jsxs("g",{children:[s.jsx("animateTransform",{attributeName:"transform",type:"translate",values:`0 ${Xe-me}; 0 ${ce-me}; 0 8; 0 -3; 0 0`,keyTimes:"0; 0.6; 0.78; 0.9; 1",dur:"1.1s",begin:"0s",fill:"freeze",additive:"sum"}),s.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`-15 ${Q} ${me+de/2}; 8 ${Q} ${me+de/2}; -3 ${Q} ${me+de/2}; 0 ${Q} ${me+de/2}`,keyTimes:"0; 0.65; 0.85; 1",dur:"1.1s",begin:"0s",fill:"freeze",additive:"sum"}),s.jsx("image",{href:qA,x:Q-Pe/2,y:me,width:Pe,height:de,preserveAspectRatio:"xMidYMid meet",opacity:0,children:s.jsx("animate",{attributeName:"opacity",values:"0; 1; 1",keyTimes:"0; 0.05; 1",dur:"1.1s",begin:"0s",fill:"freeze"})})]})]},`sushi-${d}-${e}`)})(),j&&n&&!a&&!i&&s.jsx("div",{className:"absolute inset-0 z-40 flex items-center justify-center pointer-events-none animate-fade-in",children:s.jsxs("div",{className:"pointer-events-auto bg-white rounded-2xl shadow-2xl p-4 md:p-5 w-[78%] max-w-[280px] md:max-w-[300px] text-center",style:{backdropFilter:"blur(4px)"}
304,children:[s.jsx("p",{className:"font-bold tracking-wider uppercase mb-2",style:{color:"hsl(8, 42%, 32%)",fontFamily:"'Bebas Neue', sans-serif",fontSize:"1.05rem",lineHeight:1.2},children:"WERYFIKACJA NUMEREM TELEFONU"}),s.jsx("p",{className:"text-[11px] md:text-xs leading-snug mb-3",style:{color:"hsl(0, 0%, 30%)",fontFamily:"'Barlow', sans-serif"},children:"Aby odebrać nagrodę musimy Cię zweryfikować — podaj swój numer telefonu, a koło zatrzyma się i ujawni wygraną."}),s.jsx("p",{className:"text-[10px] text-muted-foreground tracking-wider uppercase mb-3",children:"Twój numer"}),s.jsx("input",{type:"tel",autoFocus:!0,value:b,onChange:G=>{const Q=G.target.value.replace(/[^0-9]/g,"").slice(0,9);x(Q)},maxLength:9,placeholder:"XXXXXXXXX",className:"w-full px-3 py-2 border border-border rounded text-center text-sm md:text-base tracking-[0.25em] mb-2 outline-none focus:ring-2 focus:ring-amber-300",style:{fontFamily:"'Barlow', sans-serif",color:"#111",backgroundColor:"#fff"}}),s.jsxs("p",{className:"text-[10px] text-muted-foreground mb-3",children:[b.length,"/9 cyfr"]}),_&&s.jsx("p",{className:"text-[11px] text-red-600 mb-2",style:{fontFamily:"'Barlow', sans-serif"},children:_}),s.jsx("button",{onClick:()=>{b.length===9&&!M&&be()},disabled:b.length!==9||M,className:"w-full py-2 md:py-2.5 tracking-[0.2em] uppercase disabled:opacity-40 transition-all","data-umami-event":"click-submit-phone","data-umami-event-target":"promo-phone-form",...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(8, 42%, 42%)",color:"hsl(35, 37%, 92%)",fontSize:"1rem",borderRadius:"9999px"},children:M?"LOSOWANIE...":"ZATRZYMAJ I LOSUJ"})]})})]})}),s.jsxs("div",{className:"mt-6 md:mt-8",children:[!n&&!a&&!i&&!j&&s.jsx("button",{onClick:()=>{!c||!D||(we(),S(!0),setTimeout(()=>{var G;(G=document.getElementById("nagrody"))==null||G.scrollIntoView({behavior:"smooth",block:"start"})},50))},disabled:!c||!D,className:"px-10 md:px-14 py-3 md:py-4 tracking-[0.3em] uppercase transition-all duration-300 disabled:opacity-50 hover:brightness-110","data-umami-event":"click-reveal-qr","data-umami-event-target":"promo-teaser",...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(8, 42%, 42%)",color:"hsl(35, 37%, 92%)",fontSize:"clamp(1.1rem, 4vw, 1.6rem)",borderRadius:"9999px"},children:D?c?"ZAKRĘĆ":"WYKORZYSTANO":"ŁADOWANIE..."}),a&&s.jsx("p",{className:"text-2xl md:text-3xl tracking-[0.3em] uppercase animate-pulse",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(8, 42%, 48%)"},children:"LOSOWANIE..."})]}),i&&s.jsxs("div",{className:"mt-8 md:mt-10 animate-fade-in relative px-3",children:[s.jsx("p",{className:"text-muted-foreground text-xs md:text-sm tracking-widest uppercase mb-3",children:z?"NIESPODZIANKA DLA CIEBIE":"TWOJA NAGRODA"}),z?s.jsxs("div",{className:"max-w-xl mx-auto rounded-3xl px-5 py-7 md:px-10 md:py-9 relative overflow-hidden animate-scale-in",style:{background:"linear-gradient(135deg, hsl(8, 42%, 42%) 0%, hsl(8, 55%, 32%) 55%, hsl(218, 38%, 22%) 100%)",border:"2px solid hsl(45, 78%, 60%)",boxShadow:"0 20px 60px hsl(8, 42%, 15%, 0.55), inset 0 0 0 1px hsl(45, 78%, 70%, 0.25)"},children:[s.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 opacity-20 pointer-events-none",style:{background:"radial-gradient(circle at 20% 20%, hsl(45, 90%, 70%) 0%, transparent 45%), radial-gradient(circle at 80% 80%, hsl(45, 90%, 70%) 0%, transparent 45%)"}}),s.jsx("p",{className:"text-2xl md:text-3xl tracking-wider mb-3 relative",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(45, 90%, 78%)"},children:"NIE MARTW SIĘ!"}),s.jsx("p",{className:"mb-4 relative",style:{fontFamily:"'Barlow', sans-serif",color:"hsl(35, 37%, 92%)",fontSize:"clamp(0.95rem, 2.5vw, 1.1rem)",lineHeight:1.5},children:"I tak mamy dla Ciebie niespodziankę:"}),s.jsx("p",{className:"relative inline-block px-4 py-2 rounded-2xl animate-pulse-glow",style:{fontFamily:"'Bebas Neue', sans-serif",background:"linear-gradient(135deg, hsl(45, 95%, 62%), hsl(38, 90%, 52%))",color:"hsl(218, 45%, 12%)",fontSize:"clamp(2.4rem, 9vw, 4.5rem)",fontWeight:900,letterSpacing:"0.04em",lineHeight:1,boxShadow:"0 10px 30px hsl(45, 80%, 30%, 0.55), inset 0 0 0 2px hsl(45, 98%, 82%)"},children:"-5% NA CAŁE MENU"}),s.jsxs("p",{className:"mt-5 relative",style:{fontFamily:"'Barlow', sans-serif",color:"hsl(35, 37%, 92%)",fontSize:"clamp(0.85rem, 2.2vw, 1rem)",lineHeight:1.5},children:["Odbierz rabat w lokalu ",s.jsx("strong",{style:{color:"hsl(45, 90%, 78%)"},children:"Moshi Moshi"})," — po prostu pokaż ten ekran obsłudze."]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-4 animate-scale-in",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(8, 42%, 48%)",fontSize:"clamp(2.4rem, 9vw, 4.5rem)",fontWeight:900,letterSpacing:"0.03em",lineHeight:1.05,textShadow:"0 0 24px hsl(8, 60%, 45%, 0.55), 0 4px 12px hsl(0, 0%, 0%, 0.35)"},children:i}),d!=null&&((nt=D==null?void 0:D[d])==null?void 0:nt.description)&&s.jsx("p",{className:"text-sm md:text-base mb-4 max-w-md mx-auto",style:{color:"hsl(var(--cream) / 0.85)",fontFamily:"'Barlow', sans-serif"},children:D[d].description}),i!=="WEEKEND Z LEXUSEM"&&s.jsx("p",{className:"text-xs md:text-sm mb-5 max-w-md mx-auto px-4 py-2 rounded-full inline-block",style:{color:"hsl(var(--cream) / 0.9)",fontFamily:"'Barlow', sans-serif",backgroundColor:"hsl(8, 42%, 42%, 0.18)",border:"1px solid hsl(8, 42%, 55%, 0.35)"},children:"🍣 Nagroda do odbioru przy zamówieniu w restauracji"})]}),y&&i==="WEEKEND Z LEXUSEM"&&s.jsx("div",{className:"animate-fade-in flex justify-center mt-2",children:s.jsxs("div",{className:"p-6 md:p-8 rounded-2xl shadow-2xl text-center max-w-md mx-auto",style:{background:"linear-gradient(135deg, hsl(45, 78%, 52%), hsl(38, 65%, 60%))",color:"hsl(218, 38%, 18%)",border:"2px s
304olid hsl(45, 78%, 70%)"},children:[s.jsx("p",{className:"text-xs tracking-[0.3em] uppercase mb-2",style:{fontFamily:"'Bebas Neue', sans-serif",fontSize:"1rem"},children:"🎉 GRATULACJE"}),s.jsx("p",{className:"mb-3",style:{fontFamily:"'Bebas Neue', sans-serif",fontSize:"clamp(1.6rem, 5vw, 2.4rem)",lineHeight:1.1,letterSpacing:"0.05em"},children:"WYGRAŁEŚ WEEKEND Z LEXUSEM!"}),s.jsxs("p",{className:"text-sm md:text-base mb-4",style:{fontFamily:"'Barlow', sans-serif"},children:["Skontaktuj się z nami pod"," ",s.jsx("a",{href:"https://lexus-trojmiasto.pl/kontakt",target:"_blank",rel:"noopener noreferrer",className:"underline font-semibold","data-umami-event":"click-visit-us","data-umami-event-target":"promo-lexus",...ye(),style:{color:"hsl(8, 42%, 32%)"},children:"lexus-trojmiasto.pl/kontakt"})," ","i podaj hasło spod kodu QR."]}),f?s.jsx("div",{className:"flex flex-col items-center gap-3 mb-5",children:s.jsx("div",{className:"p-3 rounded-xl",style:{background:"linear-gradient(135deg, hsl(45, 90%, 60%), hsl(38, 70%, 50%))",border:"3px solid hsl(45, 95%, 75%)",boxShadow:"0 8px 24px hsl(38, 65%, 25%, 0.4), inset 0 0 0 2px hsl(45, 60%, 35%)"},children:s.jsx("div",{className:"bg-white p-2 rounded-md",children:s.jsx(rf,{value:f,size:140,level:"M"})})})}):s.jsx("div",{className:"flex flex-col items-center gap-3 mb-5",children:L==="idle"?s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>void oe(),disabled:M,className:"px-8 py-3 tracking-[0.2em] uppercase disabled:opacity-40","data-umami-event":"click-claim-prize","data-umami-event-target":"promo-lexus",...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(218, 38%, 18%)",color:"hsl(45, 90%, 70%)",fontSize:"1.1rem",borderRadius:"9999px"},children:M?"WYSYŁAM SMS...":"ODBIERZ NAGRODĘ"}),_&&s.jsx("p",{className:"text-xs text-red-800",children:_})]}):s.jsxs("div",{className:"bg-white/90 rounded-xl p-4 w-[260px]",children:[s.jsx("p",{className:"text-[11px] mb-2",style:{fontFamily:"'Barlow', sans-serif",color:"hsl(218,38%,18%)"},children:"Wpisz 6-cyfrowy kod z SMS (ważny 3 min)."}),s.jsx("input",{type:"tel",inputMode:"numeric",value:F,onChange:G=>ee(G.target.value.replace(/\D/g,"").slice(0,6)),maxLength:6,placeholder:"000000",className:"w-full px-3 py-2 border rounded text-center tracking-[0.3em] mb-2 outline-none",style:{color:"#111",backgroundColor:"#fff"}}),_&&s.jsx("p",{className:"text-[11px] text-red-700 mb-2",children:_}),s.jsx("button",{onClick:()=>void V(),disabled:F.length<4||M,className:"w-full py-2 tracking-[0.2em] uppercase disabled:opacity-40","data-umami-event":"click-verify-otp","data-umami-event-target":"promo-lexus-otp",...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(218, 38%, 18%)",color:"hsl(45, 90%, 70%)",borderRadius:"9999px"},children:M?"WERYFIKUJĘ...":"POTWIERDŹ"})]})}),s.jsx("div",{className:"text-left text-sm mb-4 px-2",style:{fontFamily:"'Barlow', sans-serif"},children:s.jsxs("label",{className:"flex items-start gap-2 cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:N,onChange:G=>E(G.target.checked),className:"mt-1 w-4 h-4 cursor-pointer accent-[hsl(8,42%,42%)]"}),s.jsxs("span",{children:["Zapoznałem/am się i akceptuję"," ",s.jsx("a",{href:"/regulamin-lexus",target:"_blank",rel:"noopener noreferrer",className:"underline font-semibold","data-umami-event":"click-promo-banner","data-umami-event-target":"promo-lexus-rules",...ye(),style:{color:"hsl(8, 42%, 32%)"},children:"regulamin nagrody „Weekend z Lexusem”"}),"."]})]})}),N&&s.jsx("p",{className:"text-xs md:text-sm mt-2 px-3 py-2 rounded-full inline-block animate-fade-in",style:{backgroundColor:"hsl(218, 38%, 18%)",color:"hsl(45, 78%, 70%)",fontFamily:"'Barlow', sans-serif"},children:"✓ Regulamin zaakceptowany — czekamy na Twój kontakt!"})]})}),y&&!z&&!f&&i!=="WEEKEND Z LEXUSEM"&&s.jsx("div",{className:"inline-block animate-fade-in text-center",children:L==="idle"?s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>void oe(),disabled:M,className:"px-10 md:px-14 py-3 md:py-4 tracking-[0.2em] uppercase transition-all hover:brightness-110 disabled:opacity-40","data-umami-event":"click-claim-prize","data-umami-event-target":"promo-phone-form","data-umami-event-prize":i,...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(8, 42%, 42%)",color:"hsl(35, 37%, 92%)",fontSize:"clamp(1rem, 3vw, 1.4rem)",borderRadius:"9999px"},children:M?"WYSYŁAM SMS...":"ODBIERZ NAGRODĘ"}),_&&s.jsx("p",{className:"text-[11px] text-red-600 mt-2",style:{fontFamily:"'Barlow', sans-serif"},children:_})]}):s.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl p-5 w-[78%] max-w-[300px] mx-auto text-center",children:[s.jsx("p",{className:"font-bold tracking-wider up
304percase mb-2",style:{color:"hsl(8, 42%, 32%)",fontFamily:"'Bebas Neue', sans-serif",fontSize:"1.05rem"},children:"WPISZ KOD Z SMS"}),s.jsxs("p",{className:"text-[11px] leading-snug mb-3",style:{color:"hsl(0,0%,30%)",fontFamily:"'Barlow', sans-serif"},children:["Wysłaliśmy 6-cyfrowy kod na numer ",b,". Kod ważny 3 minuty."]}),s.jsx("input",{type:"tel",inputMode:"numeric",autoFocus:!0,value:F,onChange:G=>ee(G.target.value.replace(/\D/g,"").slice(0,6)),maxLength:6,placeholder:"000000",className:"w-full px-3 py-2 border border-border rounded text-center text-base tracking-[0.3em] mb-2 outline-none focus:ring-2 focus:ring-amber-300",style:{fontFamily:"'Barlow', sans-serif",color:"#111",backgroundColor:"#fff"}}),_&&s.jsx("p",{className:"text-[11px] text-red-600 mb-2",style:{fontFamily:"'Barlow', sans-serif"},children:_}),s.jsx("button",{onClick:()=>void V(),disabled:F.length<4||M,className:"w-full py-2 md:py-2.5 tracking-[0.2em] uppercase disabled:opacity-40 transition-all","data-umami-event":"click-verify-otp","data-umami-event-target":"promo-otp","data-umami-event-prize":i,...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(8, 42%, 42%)",color:"hsl(35, 37%, 92%)",fontSize:"1rem",borderRadius:"9999px"},children:M?"WERYFIKUJĘ...":"POTWIERDŹ I ODBIERZ"}),s.jsx("button",{onClick:()=>void oe(),disabled:M,className:"mt-2 text-[11px] underline text-muted-foreground disabled:opacity-40","data-umami-event":"click-resend-otp","data-umami-event-target":"promo-otp","data-umami-event-prize":i,...ye(),children:"Wyślij kod ponownie"})]})}),f&&i!=="WEEKEND Z LEXUSEM"&&s.jsx(nP,{qrValue:f,qrInstruction:k})]})]})]})},nP=({qrValue:e,qrInstruction:t})=>{const n=m.useRef(null),[r,a]=m.useState(!1),o=m.useCallback(async()=>{if(n.current){a(!0);try{const i=await eP(n.current,{pixelRatio:3,backgroundColor:"#ffffff",cacheBust:!0}),l=document.createElement("a");l.download=`moshi-moshi-nagroda-${Date.now()}.png`,l.href=i,l.click()}catch(i){console.error("QR save failed",i)}finally{a(!1)}}},[]);return s.jsxs("div",{className:"flex flex-col items-center gap-3 animate-fade-in mt-2",children:[s.jsxs("div",{ref:n,className:"bg-white p-6 md:p-8 rounded-2xl shadow-2xl text-center",style:{maxWidth:"320px"},children:[s.jsx("p",{className:"text-xs tracking-[0.2em] uppercase mb-4 font-semibold",style:{color:"hsl(8, 42%, 32%)",fontFamily:"'Bebas Neue', sans-serif",fontSize:"1rem"},children:"🎌 TWÓJ KOD NAGRODY"}),s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx("div",{className:"p-3 rounded-xl",style:{backgroundColor:"hsl(35, 37%, 92%)",border:"2px solid hsl(8, 32%, 75%)"},children:s.jsx(rf,{value:e,size:180,fgColor:"hsl(8, 42%, 25%)",bgColor:"transparent",level:"M"})})}),s.jsx("p",{className:"text-sm font-medium tracking-wider uppercase",style:{color:"hsl(8, 42%, 32%)",fontFamily:"'Bebas Neue', sans-serif",fontSize:"0.95rem"},children:"POKAŻ KOD W RESTAURACJI"}),t&&s.jsx("p",{className:"text-xs mt-3 leading-relaxed px-2",style:{color:"hsl(0, 0%, 45%)",fontFamily:"'Barlow', sans-serif"},children:t})]}),s.jsx("button",{onClick:()=>void o(),disabled:r,className:"py-2 px-6 tracking-[0.2em] uppercase disabled:opacity-40 transition-all","data-umami-event":"click-save-qr","data-umami-event-target":"promo-revealed",...ye(),style:{fontFamily:"'Bebas Neue', sans-serif",backgroundColor:"hsl(8, 42%, 42%)",color:"hsl(35, 37%, 92%)",fontSize:"0.95rem",borderRadius:"9999px"},children:r?"ZAPISYWANIE...":"⬇ ZAPISZ KOD QR"})]})},Pn=()=>s.jsxs("footer",{className:"bg-black text-white py-12 md:py-16 px-4",children:[s.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 gap-8 md:gap-12",children:[s.jsxs("div",{className:"flex flex-col items-start gap-4 col-span-2 md:col-span-1",children:[s.jsx("img",{src:Cw,alt:"Moshi Moshi Sushi",className:"h-16 md:h-24 w-auto"}),s.jsx("p",{className:"text-xs md:text-sm text-white/70 leading-relaxed font-body",children:"Moshi Moshi Sushi jest w ciągłej gotowości do przygotowania pysznego Sushi. Oferujemy bezproblemowe zamawianie jedzenia zarówno w formie online, jak i telefonicznej."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs md:text-sm font-heading font-bold tracking-[0.15em] uppercase mb-4 md:mb-6",children:"SZYBKIE LINKI"}),s.jsx("ul",{className:"space-y-2 md:space-y-3",children:[{label:"Home",href:"/"},{label:"Menu",href:"/menu/sopot"},{label:"Galeria",href:"/galeria"},{label:"Rezerwacje",href:"/rezerwacje"},{label:"Zamów Online",href:"/zamow-online"},{label:"Dostawa",href:"/dostawa"},{label:"Regulamin",href:"/regulamin"}].map(e=>s.jsx("li",{children:s.jsxs(Ct,{to:e.href,className:"text-xs md:text-sm text-white/70 hover:text-white transition-colors font-body flex items-center gap-2",children:[s.jsx("span",{className:"text-white/50",children:"→"})," ",e.label]})},e.label))})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs md:text-sm font-heading font-bold tracking-[0.15em] uppercase mb-4 md:mb-6",children:"LOKALIZACJE"}),s.jsxs("ul",{className:"space-y-2 md:space-y-3",children:[s.jsx("li",{children:s.jsxs(Ct,{to:"/restauracje",className:"text-xs md:text-sm text-white/70 hover:text-white transition-colors font-body flex items-center gap-2",children:[s.jsx("span",{className:"text-white/50",children:"→"})," Sopot"]})}),s.jsx("li",{children:s.jsxs(Ct,{to:"/restauracje",className:"text-xs md:text-sm text-white/70 hover:text-white transition-colors font-body flex items-center gap-2",children:[s.jsx("span",{className:"text-white/50",children:"→"})," Gdynia"]})})]})]}),s.jsx("div",{className:"col-span-2 md:col-span-1",children:s.jsxs("div",{className:"flex items-center gap-3 mt-6 md:mt-8",children:[s.jsx("a",{href:"#",className:"w-9 h-9 md:w-10 md:h-10 rounded-full bg-white/15 hover:bg-white/25 flex items-center justify-center transition-colors","aria-label":"Facebook",children:s.jsx(uz,{size:16,className:"text-white"})}),s.jsx("a",{href:"#",className:"w-9 h-9 md:w-10 md:h-10 rounded-full bg-white/15 hover:bg-white/25 flex items-center justify-center transition-colors","aria-label":"Instagram",children:s.jsx(dz,{size:16,className:"text-white"})})]})})]}),s.jsx("div",{className:"max-w-6xl mx-auto mt-8 md:mt-12 pt-6 md:pt-8 border-t border-white/15 text-center",children:s.jsx("p",{className:"text-[10px] md:text-xs text-white/40 tracking-widest font-body",children:"©2026 MOSHI MOSHI SUSHI | Wszelkie prawa zastrzeżone"})})]}),rP=()=>
304s.jsxs("div",{className:"min-h-screen",children:[s.jsxs(Za,{children:[s.jsx("title",{children:"Moshi Moshi Sushi — Najlepsze Sushi w Sopocie i Gdyni"}),s.jsx("meta",{name:"description",content:"Tradycyjna kuchnia japońska, świeże sushi i sashimi w Gdyni i Sopocie. Rezerwacje online, dostawa i odbiór osobisty."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/"}),s.jsx("meta",{property:"og:title",content:"Moshi Moshi Sushi — Najlepsze Sushi w Sopocie i Gdyni"}),s.jsx("meta",{property:"og:description",content:"Tradycyjna kuchnia japońska, świeże sushi i sashimi w Gdyni i Sopocie."})]}),s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsx(KA,{}),s.jsx(tP,{}),s.jsx(WA,{}),s.jsx(GA,{}),s.jsx(ZA,{}),s.jsx(QA,{})]}),s.jsx(Pn,{})]}),aP="/assets/interior-gdynia-2-CQBaTpc1.jpg",sP="/assets/restaurant-sopot-new-B0Ga_sYZ.jpg",oP=[{name:"Moshi Moshi Sushi Bar",city:"Gdynia",image:aP,phone:"58 620 11 11",email:"[email protected]",address:"ul. Antoniego Abrahama 52, 81-395 Gdynia",mapUrl:"https://www.google.com/maps/place/Moshi+Moshi+Sushi+Bar/@54.5189,18.5319,17z",link:"https://www.moshimoshisushi.pl/lokale/moshi-moshi-gdynia/",hours:[{days:"Niedziela – Czwartek",time:"12:00 – 22:00"},{days:"Piątek – Sobota",time:"12:00 – 23:00"}]},{name:"Moshi Moshi Sushi Sopot",city:"Sopot",image:sP,phone:"785 300 800",email:"[email protected]",address:"ul. Bohaterów Monte Cassino 63/1, 81-767 Sopot",mapUrl:"https://www.google.com/maps/place/Moshi+Moshi+Sushi+Sopot/@54.4414,18.5607,17z",link:"https://www.moshimoshisushi.pl/lokale/moshi-moshi-sushi-sopot-2/",hours:[{days:"Niedziela – Czwartek",time:"12:00 – 22:00"},{days:"Piątek – Sobota",time:"12:00 – 23:00"}]}],iP=()=>s.jsxs("section",{id:"restauracje",children:[s.jsxs("div",{className:"relative w-full h-[200px] md:h-[320px] bg-cover bg-center flex items-center justify-center",style:{backgroundImage:`url(${ho})`},children:[s.jsx("div",{className:"absolute inset-0 bg-black/60"}),s.jsxs("div",{className:"relative z-10 text-center",children:[s.jsx("p",{className:"text-xs md:text-sm font-heading font-bold tracking-[0.3em] uppercase text-cream/50 mb-2",children:"Moshi Moshi Sushi"}),s.jsx("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:"RESTAURACJE"})]})]}),s.jsx("div",{className:"section-dark py-12 md:py-24 px-4 md:px-16",children:s.jsxs("div",{className:"max-w-6xl mx-auto",children:[s.jsx("p",{className:"text-center text-cream/60 text-sm md:text-lg font-heading mb-8 md:mb-12 max-w-xl mx-auto px-4",children:"Odwiedź nas w jednej z naszych restauracji w Trójmieście."}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8",children:oP.map(e=>s.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-3xl overflow-hidden hover:border-primary/30 transition-colors duration-300",children:[s.jsx("div",{className:"overflow-hidden",children:s.jsx("img",{src:e.image,alt:e.name,loading:"lazy",width:768,height:512,className:"w-full h-[220px] md:h-[260px] object-cover hover:scale-105 transition-transform duration-500"})}),s.jsxs("div",{className:"p-8 md:p-12",children:[s.jsx("h2",{className:"text-xl md:text-2xl font-heading font-bold text-cream mb-1",children:e.name}),s.jsx("p",{className:"text-primary text-xs md:text-sm font-heading font-bold tracking-[0.2em] uppercase mb-5 md:mb-6",children:e.city}),s.jsxs("div",{className:"space-y-3 md:space-y-4",children:[s.jsxs("a",{href:e.mapUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-start gap-3 group","data-umami-event":"click-directions","data-umami-event-target":"google-maps-location","data-umami-event-location":e.city.toLowerCase(),...ye(),children:[s.jsx("div",{className:"w-9 h-9 md:w-10 md:h-10 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5 group-hover:bg-primary/20 transition-colors",children:s.jsx(Fa,{className:"w-4 h-4 text-primary"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-cream/40 text-[10px] md:text-xs uppercase tracking-widest mb-0.5",children:"Adres"}),s.jsx("p",{className:"text-cream/80 text-xs md:text-sm group-hover:text-cream transition-colors",children:e.address})]})]}),s.jsxs("a",{href:`tel:${e.phone.replace(/\s/g,"")}`,className:"flex items-start gap-3 group","data-umami-event":"click-call","data-umami-event-target":"section-location","data-umami-event-location":e.city.toLowerCase(),...ye(),children:[s.jsx("div",{className:"w-9 h-9 md:w-10 md:h-10 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5 group-hover:bg-primary/20 transition-colors",children:s.jsx($p,{className:"w-4 h-4 text-primary"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-cream/40 text-[10px] md:text-xs uppercase tracking-widest mb-0.5",children:"Telefon"}),s.jsx("p",{className:"text-cream/80 text-xs md:text-sm group-hover:text-cream transition-colors font-heading font-bold tracking-wide",children:e.phone})]})]}),s.jsxs("a",{href:`mailto:${e.email}`,className:"flex items-start gap-3 group","data-umami-event":"click-email","data-umami-event-target":"section-location","data-umami-event-location":e.city.toLowerCase(),...ye(),children:[s.jsx("div",{className:"w-9 h-9 md:w-10 md:h-10 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5 group-hover:bg-primary/20 transition-colors",children:s.jsx(D0,{className:"w-4 h-4 text-primary"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-cream/40 text-[10px] md:text-xs uppercase tracking-widest mb-0.5",children:"Email"}),s.jsx("p",{className:"text-cream/80 text-xs md:text-sm group-hover:text-cream transition-colors break-all",children:e.email})]})]}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-9 h-9 md:w-10 md:h-10 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx(eo,{className:"w-4 h-4 text-primary"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-cream/40 text-[10px] md:text-xs uppercase tracking-widest mb-1.5",children:"Godziny otwarcia"}),e.hours.map(t=>s.jsxs("div",{className:"mb-1.5 text-xs md:text-sm",children:[s.jsx("span",{className:"text-cream/60 block",children:t.days}),s.jsx("span",{className:"text-cream font-heading font-bold",children:t.time})]},t.days))]})]})]}),s.jsx(Ct,{to:"/galeria",className:"mt-6 md:mt-8 inline-block w-full text-center px-8 py-3 text-sm font-heading font-bold tracking-[0.15em] uppercase bg-primary text-primary-foreground hover:bg-primary/80 transition-colors duration-300 rounded-full","data-umami-event":"click-view-gallery","data-umami-event-target":"section-location","data-umami-event-location":e.city.toLowerCase(),...ye(),children:"ZOBACZ WIĘCEJ"})]})]},e.city))}),s.jsx("div",{className:"mt-12 md:mt-16 text-center border-t border-white/10 pt-8 md:pt-10",children:s.jsx("p",{className:"text-cream/30 text-[10px] md:text-xs leading-relaxed max-w-2xl mx-auto px-4",children:"Moshi Moshi Sp. z o.o. z siedzibą przy ul. Antoniego Abrahama 52, 81-395 Gdynia, wpisana do Krajowego Rejestru Sądowego, o kapitale zakładowym 100 tys. zł, NIP 5862342209, REGON 382702275"})})]})})]}),lP=()=>
304s.jsxs("div",{className:"min-h-screen",children:[s.jsxs(Za,{children:[s.jsx("title",{children:"Restauracje Moshi Moshi Sushi — Gdynia i Sopot"}),s.jsx("meta",{name:"description",content:"Adresy, godziny otwarcia i kontakt do restauracji Moshi Moshi Sushi w Gdyni (Abrahama 52) i w Sopocie."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/restauracje"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/restauracje"}),s.jsx("meta",{property:"og:title",content:"Restauracje Moshi Moshi Sushi — Gdynia i Sopot"})]}),s.jsx(Tn,{}),s.jsx("main",{children:s.jsx(iP,{})}),s.jsx(Pn,{})]}),cP="/assets/menu-hero-CsxCFP-j.jpg",uP=[{name:"Sopot",address:"Monte Cassino 63/1",href:"/menu/sopot"},{name:"Gdynia",address:"Abrahama 52",href:"/menu/gdynia"}],dP=()=>s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("div",{className:"relative w-full h-[300px] md:h-[350px] bg-cover bg-center flex items-center justify-center",style:{backgroundImage:`url(${ho})`},children:[s.jsx("div",{className:"absolute inset-0 bg-black/50"}),s.jsx("h2",{className:"relative z-10 text-4xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:"MENU"})]}),s.jsx("div",{className:"section-dark py-20 md:py-28 px-6 md:px-16",children:s.jsxs("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-12 md:gap-16 items-center",children:[s.jsx("div",{className:"overflow-hidden rounded-2xl shadow-2xl",children:s.jsx("img",{src:cP,alt:"Przygotowywanie sushi",loading:"lazy",width:1024,height:720,className:"w-full h-[350px] md:h-[450px] object-cover"})}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("h3",{className:"text-2xl md:text-3xl font-heading font-bold text-cream mb-3 tracking-wide",children:"Zamów już teraz, telefonicznie lub online."}),s.jsx("p",{className:"text-cream/60 text-base leading-relaxed mb-10",children:"Wybierz lokalizację, aby zobaczyć aktualne menu naszej restauracji."}),s.jsx("div",{className:"space-y-4",children:uP.map(e=>s.jsxs(Ct,{to:e.href,className:"group flex items-center gap-5 p-5 rounded-2xl border border-white/10 bg-white/5 hover:bg-primary/10 hover:border-primary/30 transition-all duration-300","data-umami-event":"click-view-menu","data-umami-event-target":"menu-page","data-umami-event-location":e.name.toLowerCase(),...ye(),children:[s.jsx("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-primary/10 group-hover:bg-primary/20 transition-colors",children:s.jsx(Fa,{className:"w-5 h-5 text-primary"})}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("p",{className:"font-heading font-bold text-cream text-lg tracking-wide uppercase",children:["Menu ",e.name]}),s.jsx("p",{className:"text-cream/50 text-sm",children:e.address})]}),s.jsx("span",{className:"text-cream/30 group-hover:text-primary group-hover:translate-x-1 transition-all duration-300 text-xl",children:"→"})]},e.name))})]})]})})]}),s.jsx(Pn,{})]}),ul=(e,t)=>
304e?typeof e=="string"?e:e[t]??e.pl??"":"",tb=({cat:e,lang:t="pl"})=>{const n=ul(e.title,t),r=ul(e.subtitle,t);return s.jsxs("div",{children:[e.image?s.jsxs("div",{className:"mb-10 flex flex-col md:flex-row gap-6 items-center md:items-end border-b border-cream/15 pb-6",children:[s.jsx("div",{className:"w-32 h-32 md:w-40 md:h-40 rounded-full overflow-hidden flex-shrink-0 ring-1 ring-cream/15 shadow-2xl bg-[hsl(var(--brand-navy))]",children:s.jsx("img",{src:e.image,alt:n,loading:"lazy",className:"w-full h-full object-cover"})}),s.jsxs("div",{className:"text-center md:text-left",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-heading font-bold text-cream tracking-wide uppercase",children:n}),r&&s.jsx("p",{className:"text-cream/60 text-xs tracking-[0.25em] uppercase mt-2",children:r})]})]}):s.jsxs("div",{className:"mb-8 border-b border-cream/15 pb-4",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-bold text-cream tracking-wide uppercase",children:n}),r&&s.jsx("p",{className:"text-cream/60 text-xs tracking-[0.25em] uppercase mt-2",children:r})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-7",children:e.items.map((a,o)=>{const i=ul(a.name,t),l=ul(a.desc,t);return s.jsxs("div",{className:"group flex justify-between gap-4",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsx("h3",{className:"font-heading font-bold text-cream text-[15px] tracking-[0.08em] uppercase",children:i}),a.hot&&s.jsx("span",{className:"text-[10px] text-cream/60",children:"*"})]}),l&&s.jsx("p",{className:"text-cream/75 text-[13px] mt-1 leading-relaxed",children:l})]}),s.jsxs("span",{className:"font-heading font-bold text-cream text-[15px] whitespace-nowrap pt-0.5 tracking-wide",children:[a.price," ",s.jsx("span",{className:"text-cream/60 text-xs",children:"PLN"})]})]},`${i}-${o}`)})})]})},mP={"TUŃCZYK BŁĘKITNOPŁETWY":"/menu/img-bluefin-tuna-navy.jpg","PRZYSTAWKI ZIMNE":"/menu/img-przystawki-zimne-edamame.jpg","PRZYSTAWKI CIEPŁE":"/menu/img-takoyaki-sopot.jpg",ZUPY:"/menu/img-zupy-navy.jpg","DANIA GORĄCE":"/menu/img-dania-gorace-navy.jpg",NIGIRI:"/menu/img-nigiri-navy.jpg",GUNKAN:"/menu/img-gunkan-navy.jpg",SASHIMI:"/menu/img-sashimi-navy.jpg",TATAR:"/menu/img-tatar-navy.jpg",TEMAKI:"/menu/img-temaki-navy.jpg","CALIFORNIA ROLL":"/menu/img-california-navy.jpg",HOSOMAKI:"/menu/img-hosomaki-navy.jpg",FUTOMAKI:"/menu/img-futomaki-navy.jpg",SAŁATKI:"/menu/img-salatki-navy.jpg","ZESTAWY SUSHI":"/menu/img-zestawy-navy.jpg","DLA DZIECI":"/menu/img-dzieci-navy.jpg",DODATKI:"/menu/img-dodatki-navy.jpg",DESERY:"/menu/img-desery-navy.jpg","NAPOJE ZIMNE":"/menu/img-napoje-navy.jpg","DRINKI BEZALKOHOLOWE":"/menu/img-drinki-bezalkohol-navy.jpg","KAWA I HERBATA":"/menu/img-herbata-navy.jpg",DRINKI:"/menu/img-whisky-navy.jpg",ALKOHOLE:"/menu/img-alkohole-navy.jpg"},pP=[{title:{pl:"TUŃCZYK BŁĘKITNOPŁETWY",en:"BLUEFIN TUNA"},subtitle:{pl:"Szlachetny tuńczyk błękitnopłetwy — Nigiri / Hosomaki / Sashimi",en:"Noble bluefin tuna — Nigiri / Hosomaki / Sashimi"},items:[{name:"NIGIRI",desc:{pl:"tuńczyk błękitnopłetwy",en:"bluefin tuna"},price:"45"},{name:"HOSOMAKI",desc:{pl:"tuńczyk błękitnopłetwy",en:"bluefin tuna"},price:"45"},{name:"SASHIMI",desc:{pl:"tuńczyk błękitnopłetwy",en:"bluefin tuna"},price:"65"}]},{title:{pl:"PRZYSTAWKI ZIMNE",en:"COLD STARTERS"},items:[{name:"EDAMAME",desc:{pl:"młode strączki soi z solą",en:"young soybeans with salt"},price:"27"},{name:"SPICY EDAMAME",desc:{pl:"młode strączki soi z togarashi",en:"young soybeans with togarashi"},price:"29"},{name:"FRESH MAKI",desc:{pl:"sałata, ogórek, awokado, marchewka, rzepa marynowana, serek, rukola zawinięte w papier ryżowy z sosem sezamowym",en:"lettuce, cucumber, avocado, marinated carrot, turnip, cheese, rocket wrapped in rice paper with sesame sauce"},price:"36"},{name:"EBI FRESH MAKI",desc:{pl:"gotowana krewetka z warzywami, serek, rukola zawinięte w papier ryżowy z sosem sezamowym",en:"boiled shrimp with vegetables, cheese, rocket, wrapped in rice paper with sesame sauce"},price:"44"},{name:"MAGURO NO TATAKI",desc:{pl:"opiekany tuńczyk z rukolą i ciastem 
304kataifi",en:"roasted tuna with arugula, rocket, kataifi and sweet and sour sauce"},price:"56"},{name:"SAKE NO TATAKI",desc:{pl:"opiekany łosoś, sos na bazie yuzu, kizami wasabi, biała rzepa",en:"roasted salmon, yuzu-based sauce, kizami wasabi, white turnip"},price:"50"}]},{title:{pl:"PRZYSTAWKI CIEPŁE",en:"HOT STARTERS"},items:[{name:"TAKO YAKI",desc:{pl:"smażone kulki z dodatkiem ośmiornicy",en:"fried balls with the addition of octopus"},price:"39"},{name:"AGEDASHI TOFU",desc:{pl:"tofu smażone w dashi z katsuobushi",en:"fried tofu in dashi with katsuobushi"},price:"30"},{name:"IKA TEMPURA",desc:{pl:"6 kalmarów w tempurze z sosem aioli mayo i goma wakame",en:"6 pcs. tempura calamari with aioli mayo sauce and goma wakame"},price:"46"},{name:"DUCK GYOZA",desc:{pl:"pierożki z kaczki — 5 szt., produkcja własna",en:"5 pcs. pan-fried duck dumplings self made"},price:"36"},{name:"EBI TEMPURA",desc:{pl:"5 krewetek w tempurze z sosem aioli mayo i sweet chilli",en:"5 pcs. tempura shrimps with aioli mayo sauce and sweet chilli"},price:"49"},{name:"EBI GYOZA",desc:{pl:"pierożki z krewetkami — 5 szt., produkcja własna",en:"5 pcs. pan-fried shrimp dumplings self made"},price:"38"}]},{title:{pl:"ZUPY",en:"SOUPS"},items:[{name:"MISOSHIRU",desc:{pl:"zupa miso",en:"miso soup"},price:"21"},{name:"SAKE MISOSHIRU",desc:{pl:"zupa miso z łososiem",en:"miso soup with salmon"},price:"32"},{name:"EBI SUPU",desc:{pl:"pikantna zupa z krewetkami i mlekiem kokosowym",en:"spicy soup with shrimps and coconut milk"},price:"36"},{name:"CHILLI BEEF",desc:{pl:"zupa z wołowiną na ostro z makaronem ramen",en:"spicy soup with beef with ramen noodles"},price:"46"}]},{title:{pl:"DANIA GORĄCE",en:"HOT MEALS"},items:[{name:"TORI TERIYAKI",desc:{pl:"kurczak w sosie teriyaki z ryżem",en:"chicken in teriyaki sauce with rice"},price:"58",hot:!0},{name:{pl:"RAMEN Z BOCZKIEM",en:"PORK RAMEN"},desc:{pl:"ramen z boczkiem chashu",en:"braised pork belly ramen"},price:"56"},{name:"SAKE TERIYAKI",desc:{pl:"łosoś w sosie teriyaki z warzywami i ryżem",en:"salmon in teriyaki sauce with vegetables and rice"},price:"78",hot:!0},{name:{pl:"RAMEN Z OWOCAMI MORZA",en:"SEAFOOD RAMEN"},desc:{pl:"z krewetkami, kalmarem, ośmiornicą, małżą Św. Jakuba",en:"with shrimps, squid, octopus, St. Jacob scallop"},price:"94"},{name:"EBI UDON",desc:{pl:"makaron udon z krewetkami i warzywami",en:"fried udon noodles with shrimps and vegetables"},price:"64"},{name:"SEA UDON",desc:{pl:"makaron udon z owocami morza i warzywami na ostro",en:"spicy fried udon noodles with seafood vegetables"},price:"94"}]},{title:"NIGIRI",subtitle:{pl:"2 szt.",en:"2 pcs."},items:[{name:"SAKE",desc:{pl:"łosoś",en:"salmon"},price:"23"},{name:"SAKE TATAKI",desc:{pl:"opiekany łosoś z porem i ikrą pstrąga",en:"roasted salmon with leek and trout roe"},price:"29"},{name:"MAGURO",desc:{pl:"tuńczyk",en:"tuna"},price:"32"},{name:"MAGURO TATAKI",desc:{pl:"opiekany tuńczyk z japońskim majonezem i porem",en:"roasted tuna with Japanese mayonnaise and leek"},price:"35"},{name:"IKA",desc:{pl:"kalmar",en:"squid"},price:"25"},{name:"HAMACHI",desc:{pl:"seriola",en:"yellowtail"},price:"38"},{name:"HAMACHI TATAKI",desc:{pl:"opiekana seriola, japoński majonez i kizami",en:"roasted yellowtail with Japanese mayonnaise and kizami"},price:"41"},{name:"AVOCADO",desc:{pl:"awokado",en:"avocado"},price:"20"},{name:"PINK TAI",desc:{pl:"dorada różowa",en:"pink sea bream"},price:"32"},{name:"UMI BESU",desc:{pl:"okoń morski",en:"sea bass"},price:"31"},{name:"UNAGI",desc:{pl:"pieczony węgorz",en:"roasted eel"},price:"35",hot:!0},{name:"EBI",desc:{pl:"krewetka gotowana",en:"boiled shrimps"},price:"32"},{name:"HOTATE",desc:{pl:"lekko opieczona małża św. Jakuba z puderem yuzu",en:"lightly roasted St. Jacob scallops with yuzu powder"},price:"42"},{name:"TAKO",desc:{pl:"ośmiornica",en:"octopus"},price:"33"},{name:"TAMAGO",desc:{pl:"omlet japoński",en:"Japanese omlette"},price:"20"}]},{title:"GUNKAN",subtitle:{pl:"2 szt.",en:"2 pcs."},items:[{name:"SAKE TATAR",desc:{pl:"tatar z łososia",en:"salmon tartare"},price:"34"}
304,{name:"CAVIAR",desc:{pl:"ikra z pstrąga",en:"trout roe"},price:"46"},{name:"GOMA WAKAME",desc:{pl:"sałatka z trawy morskiej",en:"seagrass salad"},price:"20"},{name:"NATTO",desc:{pl:"fermentowane nasiona soi",en:"fermented soybean"},price:"26"},{name:"EBI TEMPURA",desc:{pl:"siekana krewetka w tempurze, awokado, szczypiorek, pikantny majonez",en:"finely chopped tempura shrimps, avocado, chives, spicy mayo"},price:"34"}]},{title:"SASHIMI",subtitle:{pl:"5 szt.",en:"5 pcs."},items:[{name:{pl:"ŁOSOŚ",en:"SALMON"},desc:"",price:"40"},{name:{pl:"DORADA RÓŻOWA",en:"PINK SEA BREAM"},desc:"",price:"44"},{name:{pl:"TUŃCZYK",en:"TUNA"},desc:"",price:"46"},{name:{pl:"OKOŃ MORSKI",en:"SEA BASS"},desc:"",price:"42"},{name:{pl:"SERIOLA",en:"YELLOWTAIL"},desc:"",price:"56"},{name:{pl:"KREWETKA",en:"SHRIMP"},desc:"",price:"44"},{name:{pl:"OŚMIORNICA",en:"OCTOPUS"},desc:"",price:"58"},{name:{pl:"KALMAR",en:"SQUID"},desc:"",price:"36"},{name:{pl:"PRZEGRZEBEK",en:"ST. JACOB SCALLOPS"},desc:"",price:"57"}]},{title:{pl:"TATAR",en:"TARTARE"},items:[{name:"SAKE",desc:{pl:"łosoś (120g)",en:"salmon (120g)"},price:"58"},{name:"MAGURO",desc:{pl:"tuńczyk (120g)",en:"tuna (120g)"},price:"69"},{name:"SAKE-AVOCADO",desc:{pl:"łosoś i awokado (120g)",en:"salmon and avocado (120g)"},price:"49"}]},{title:"TEMAKI",items:[{name:"SAKE PHILADELPHIA",desc:{pl:"łosoś, serek, ogórek, awokado, sałata",en:"salmon, cheese, cucumber, avocado, lettuce"},price:"36"},{name:"EBI TEN",desc:{pl:"krewetka w tempurze, pikantny majonez, sałata, oshinko, awokado",en:"tempura shrimp, spicy mayo, lettuce, marinated turnip, avocado"},price:"42"},{name:"SAKE TATAR",desc:{pl:"tatar z łososia, ogórek, awokado, sałata",en:"salmon tartare, cucumber, avocado, lettuce"},price:"42"}]},{title:"CALIFORNIA ROLL",subtitle:{pl:"4 szt.",en:"4 pcs."},items:[{name:"SAKE",desc:{pl:"łosoś, serek, ogórek, awokado",en:"salmon, cheese, cucumber, avocado"},price:"33"},{name:"SAKE AVOCADO",desc:{pl:"łosoś, serek, ogórek, awokado na górze, ikra z pstrąga",en:"salmon, cheese, cucumber, avocado on top, trout roe"},price:"41"},{name:"SAKE YAKI TAMAGO",desc:{pl:"łosoś pieczony, serek, awokado, ogórek, całość w omlecie tamago, sos kabayaki",en:"grilled salmon, cheese, cucumber, avocado, rolled in a Japanese omlette, kabayaki sauce"},price:"40",hot:!0},{name:"SAKE GRILL",desc:{pl:"krewetka gotowana, serek, tykwa, awokado, opiekany łosoś na górze, sos kabayaki",en:"boiled shrimp, cheese, marinated Japanese gourd, avocado, grilled salmon, kabayaki sauce"},price:"41",hot:!0},{name:"SPICY MAGURO",desc:{pl:"tuńczyk, pikantny majonez, ogórek, awokado, oshinko, sriracha na górze",en:"tuna, spicy mayo, cucumber, marinated turnip, avocado, sriracha sauce on top"},price:"35"},{name:"MAGURO TATAKI",desc:{pl:"opiekany tuńczyk, ogórek, oshinko, szparag w tempurze, japoński majonez, prażony por",en:"roasted tuna, cucumber, marinated turnip, asparagus tempura, japanese mayonnaise, roasted leek"},price:"39"},{name:"EBI TEN",desc:{pl:"krewetka w tempurze, pikantny majonez, ogórek, awokado",en:"tempura shrimps, spicy mayo, cucumber, avocado"},price:"37"},{name:"EBI KATAIFI",desc:{pl:"serek, krewetka w tempurze, łosoś, ciasto kataifi na górze",en:"cheese, tempura shrimps, salmon, kataifi cake on top"},price:"41"},{name:"KING ROLL",desc:{pl:"krewetka w tempurze, pikantny majonez, ogórek, awokado, tatar z łososia",en:"tempura shrimps, spicy mayo, cucumber, avocado, salmon tartare"},price:"44"},{name:"QUEEN ROLL",desc:{pl:"krewetka w panco, oshinko, awokado na górze, majonez wasabi, prażony por",en:"shrimp in panco, marinated turnip, avocado on top, wasabi mayonnaise, roasted leek"},price:"43"},{name:"MOSHIN DRAGON",desc:{pl:"krewetka w tempurze, serek, ogórek, awokado, węgorz, sos kabayaki",en:"tempura shrimps, cheese, cucumber, avocado, grilled eel, kabayaki sauce"},price:"44",hot:!0},{name:"RAINBOW",desc:{pl:"trzy rodzaje ryby, serek, ogórek, awokado, tykwa, oshinko",en:"3 kinds of fish on top, cheese, cucumber, avocado, marinated Japanese gourd, marinated turnip"},price:"38"}
304,{name:"UNAGI",desc:{pl:"węgorz, serek, ogórek, awokado, tykwa, tamago, sos kabayaki",en:"grilled eel, cheese, cucumber, avocado, marinated Japanese gourd, Japanese omlette, kabayaki sauce"},price:"40",hot:!0},{name:"CATERPILLAR",desc:{pl:"węgorz w tempurze, serek, ogórek, tykwa, awokado na górze, sos kabayaki",en:"tempura eel, cheese, cucumber, marinated Japanese gourd, avocado on top, kabayaki sauce"},price:"43",hot:!0},{name:"VEGE TEMPURA",desc:{pl:"warzywa w tempurze, serek",en:"seasonal tempura vegetables, cheese"},price:"28"},{name:"MANGO",desc:{pl:"mango, serek, rukola, awokado, sezam",en:"mango, cheese, rocket, avocado, sesame"},price:"32"},{name:"HIRATAKE",desc:{pl:"boczniak w panco, majonez aioli, ogórek",en:"oyster mushroom in panco, aioli mayo, cucumber"},price:"31"}]},{title:"HOSOMAKI",subtitle:{pl:"6 szt.",en:"6 pcs."},items:[{name:"AVOCADO",desc:{pl:"awokado, sezam",en:"avocado, sesame"},price:"20"},{name:"KAPPA",desc:{pl:"ogórek, sezam",en:"cucumber, sesame"},price:"20"},{name:"OSHINKO",desc:{pl:"rzepa marynowana, sezam",en:"marinated turnip, sesame"},price:"20"},{name:"KAMPYO",desc:{pl:"tykwa marynowana",en:"marinated Japanese gourd"},price:"22"},{name:"SAKE",desc:{pl:"łosoś",en:"salmon"},price:"29"},{name:"SAKE YAKI",desc:{pl:"pieczony łosoś, sos kabayaki",en:"grilled salmon, kabayaki sauce"},price:"30",hot:!0},{name:"SAKE TEMPURA",desc:{pl:"łosoś, całość w tempurze, sos kabayaki",en:"salmon, all in tempura, kabayaki sauce"},price:"33",hot:!0},{name:"EBI TEN",desc:{pl:"krewetka w tempurze",en:"tempura shrimps"},price:"34"},{name:"MAGURO",desc:{pl:"tuńczyk",en:"tuna"},price:"32"},{name:"NEGI MAGURO MAKI",desc:{pl:"tuńczyk z majonezem wasabi i prażonym porem",en:"tuna with wasabi mayonnaise and roasted leek"},price:"36"}]},{title:"FUTOMAKI",subtitle:{pl:"6 szt.",en:"6 pcs."},items:[{name:"SAKE",desc:{pl:"łosoś, serek, sałata, ogórek, awokado",en:"salmon, cheese, lettuce, cucumber, avocado"},price:"40"},{name:"SAKE TATAKI",desc:{pl:"łosoś opalany, japoński majonez, rukola, ogórek, awokado, okra w tempurze",en:"torched salmon, Japanese mayonnaise, rocket, cucumber, avocado, okra in tempura"},price:"44"},{name:"SAKE YAKI",desc:{pl:"pieczony łosoś, serek, sałata, ogórek, awokado, sos kabayaki",en:"baked salmon, cheese, lettuce, cucumber, avocado, kabayaki sauce"},price:"48",hot:!0},{name:"SAKE KAWA",desc:{pl:"skórka z łososia, japoński majonez, sałata, ogórek, awokado, sos kabayaki",en:"salmon skin, Japanese mayonnaise, lettuce, cucumber, avocado, kabayaki sauce"},price:"42",hot:!0},{name:"NEGI SAKE",desc:{pl:"tatar z łososia, sałata, ogórek, awokado, prażony por",en:"salmon tartare, lettuce, cucumber, avocado, roasted leek"},price:"48"},{name:"VEGE",desc:{pl:"serek, sałata, rukola, awokado, ogórek, oshinko, tykwa",en:"cheese, lettuce, rocket, avocado, cucumber, oshinko, gourd"},price:"32"},{name:"SPICY VEGE SOYA",desc:{pl:"pikantny majonez, mango, awokado, rukola, papierek sojowy",en:"spicy mayonnaise, mango, avocado, rocket, soy paper"},price:"35"},{name:"HIRATAKE",desc:{pl:"boczniak w panko, majonez aioli, sałata, ogórek",en:"oyster mushroom in panko, aioli mayonnaise, lettuce, cucumber"},price:"36"},{name:"KANI KAMA",desc:{pl:"paluszek krabowy, japoński majonez, sałata, awokado",en:"crab stick, Japanese mayonnaise, lettuce, avocado"},price:"32"},{name:"MAGURO",desc:{pl:"tuńczyk, pikantny majonez, sałata, ogórek, awokado, oshinko",en:"tuna, spicy mayonnaise, lettuce, cucumber, avocado, oshinko"},price:"44"},{name:"MAGURO SOYA",desc:{pl:"tuńczyk, serek, sałata, ogórek, awokado, mango, płatek sojowy",en:"tuna, cheese, lettuce, cucumber, avocado, mango, soy flake"},price:"50"},{name:"MAGURO TATAR",desc:{pl:"tatar z tuńczyka, sałata, ogórek, awokado, prażony por, całość w tempurze, goma wakame na górze",en:"tuna tartare, lettuce, cucumber, avocado, roasted leek, all in tempura, goma wakame on top"},price:"52"},{name:"EBIMAGURO",desc:{pl:"krewetka w tempurze, tuńczyk, pikantny majonez, mango, awokado, togarashi",en:"tempura shrimp, tuna, spicy mayonnaise, mango, avocado, togarashi"},price:"51"},{name:"EBI TEN",desc:{pl:"krewetka w tempurze, pikantny majonez, sałata, oshinko, awokado",en:"tempura shrimp, spicy mayonnaise, lettuce, oshinko, avocado"},price:"42"},{name:"EBI SOYA",desc:{pl:"krewetka gotowana, serek, awokado, tykwa, tamago, całość w płatku sojowym",en:"boiled shrimp, cheese, avocado, gourd, tamago, all in soy flakes"},price:"49"},{name:"IKA TEN",desc:{pl:"kalmar w tempurze, pikantny majonez, mango, ogórek, awokado, sałata",en:"tempura squid, spicy mayonnaise, mango, cucumber, avocado, lettuce"},price:"42"},{name:"CRAB ROLL",desc:{pl:"krab w panko, pikantny majonez, sałata, ogórek, awokado, sos kabayaki",en:"panko crab, spicy mayonnaise, lettuce, cucumber, avocado, kabayaki sauce"},price:"66",hot:!0},{name:"HIRAME",desc:{pl:"halibut w panko, sałata, pikantny majonez, awokad
304o, mango",en:"halibut in panko, lettuce, spicy mayonnaise, avocado, mango"},price:"43",hot:!0},{name:"UNAGI",desc:{pl:"pieczony węgorz, sałata, serek, tykwa, ogórek, awokado, tamago, sos kabayaki",en:"roasted eel, lettuce, cheese, gourd, cucumber, avocado, tamago, kabayaki sauce"},price:"51",hot:!0},{name:"HAMACHI",desc:{pl:"seriola, pikantny majonez, awokado, oshinko, shiso, sałata",en:"yellowtail, spicy mayonnaise, avocado, oshinko, shiso, lettuce"},price:"54"},{name:"TAI CAVIAR",desc:{pl:"dorada różowa, sałata, majonez wasabi, ogórek, awokado, ikra z pstrąga",en:"pink bream, lettuce, wasabi mayonnaise, cucumber, avocado, trout roe"},price:"46"},{name:"UMI BESU TATAKI",desc:{pl:"opiekany okoń, japoński majonez, szparag w tempurze, sałata, oshinko, prażony por, całość w płatku sojowym",en:"roasted sea bass, Japanese mayonnaise, tempura asparagus, lettuce, oshinko, roasted leek, all in soy flakes"},price:"50"},{name:"UMI BESU TEMPURA",desc:{pl:"okoń w tempurze, okra, sałata, ogórek, oshinko, aioli mayo",en:"tempura sea bass, okra, lettuce, cucumber, oshinko, aioli mayo"},price:"50"},{name:"TAKO",desc:{pl:"ośmiornica, japoński majonez, sałata, ogórek, awokado, prażony por",en:"octopus, Japanese mayonnaise, lettuce, cucumber, avocado, roasted leek"},price:"52"},{name:"SASHIMI",desc:{pl:"łosoś i tuńczyk zamiast ryżu, sałata, oshinko, szparag, ogórek, szczypiorek",en:"salmon and tuna instead of rice, lettuce, oshinko, asparagus, cucumber, chives"},price:"66"},{name:"TORI",desc:{pl:"kurczak w panko, majonez wasabi, sałata, ogórek, awokado, rukola",en:"panko chicken, wasabi mayonnaise, lettuce, cucumber, avocado, rocket"},price:"38"},{name:"GYUNIKU",desc:{pl:"ostra wołowina, japoński majonez, sałata, ogórek, awokado",en:"spicy beef, Japanese mayonnaise, lettuce, cucumber, avocado"},price:"44"}]},{title:{pl:"SAŁATKI",en:"SALADS"},items:[{name:"WAKAME NO NUTA",desc:{pl:"sałatka z wodorostów wakame z ogórkiem i sosem na bazie pasty miso",en:"wakame seaweed salad with cucumber and sauce based on miso paste"},price:"25"},{name:"GOMA WAKAME",desc:{pl:"sałatka z trawy morskiej z sezamem",en:"seagrass salad with sesame"},price:"25"},{name:{pl:"SAŁATKA Z KREWETKAMI",en:"SHRIMPS SALAD"},desc:{pl:"sałata, rukola, kolendra, ogórek, pomidor cherry, awokado, krewetki w tempurze 3 szt.",en:"lettuce, rocket, cilantro, cucumber, cherry tomato, avocado, shrimp in tempura 3 pcs."},price:"42"},{name:{pl:"SAŁATKA Z WOŁOWINĄ",en:"BEEF SALAD"},desc:{pl:"sałata, rukola, shiso, ogórek, pomidor cherry, rzodkiewka, wołowina na ostro",en:"lettuce, rocket, shiso, cucumber, cherry tomato, radish, spicy beef"},price:"49"}]},{title:{pl:"ZESTAWY SUSHI",en:"SUSHI SETS"},items:[{name:{pl:"AKKI — 12 SZT.",en:"AKKI — 12 PCS."},desc:{pl:"futomaki ebi ten 6 szt., hosomaki negi maguro maki 6 szt.",en:"futomaki ebi ten 6 pcs., hosomaki negi maguro maki 6 pcs."},price:"76"},{name:{pl:"TENGU — 16 SZT.",en:"TENGU — 16 PCS."},desc:{pl:"futomaki sake 6 szt., futomaki vege 6 szt., california sake 4 szt.",en:"futomaki sake 6 pcs., futomaki vege 6 pcs., california sake 4 pcs."},price:"94"},{name:{pl:"NAMAZU — 26 SZT.",en:"NAMAZU — 26 PCS."},desc:{pl:"futomaki sake yaki 6 szt., futomaki kani kama 6 szt., california vege tempura 8 szt., hosomaki sake 6 szt.",en:"futomaki sake yaki 6 pcs., futomaki kani kama 6 pcs., california vege tempura 8 pcs., hosomaki sake 6 pcs."},price:"146",hot:!0},{name:{pl:"MOSHIN — 18 SZT.",en:"MOSHIN — 18 PCS."},desc:{pl:"futomaki maguro 6 szt., futomaki ebi ten 6 szt., futomaki ika ten 6 szt.",en:"futomaki maguro 6 pcs., futomaki ebi ten 6 pcs., futomaki ika ten 6 pcs."},price:"124"},{name:{pl:"DOJI — 24 SZT.",en:"DOJI — 24 PCS."},desc:{pl:"futomaki sake philadelpia 6 szt., futomaki hirame 6 szt., california sake 8 szt., nigiri sake 2 szt., nigiri maguro 2 szt.",en:"futomaki sake philadelpia 6 pcs., futomaki hirame 6 pcs., california sake 8 pcs., nigiri sake 2 pcs., nigiri maguro 2 pcs."},price:"166",hot:!0},{name:{pl:"FUKUKO — 24 SZT.",en:"FUKUKO — 24 PCS."},desc:{pl:"futomaki ebi ten 6 szt., futomaki sake kawa 6 szt., california sake grill 8 szt., california moshin dragon 4 szt.",en:"futomaki ebi ten 6 pcs., futomaki sake kawa 6 pcs., california sake grill 8 pcs., california moshin dragon 4 pcs."},price:"195",hot:!0},{name:{pl:"ENKO — 20 SZT.",en:"ENKO — 20 PCS."},desc:{pl:"zestaw wegetariański: hosomaki kappa 6 szt., california vege tempura 4 szt., futomaki vege 6 szt., nigiri tamago 2 szt., gunkan goma wakame 2 szt.",en:"vegetarian set: hosomaki kappa 6 pcs., california vege tempura 4 pcs., futomaki vege 6 pcs., nigiri tamago 2 pcs., gunkan goma wakame 2 pcs."},price:"105"},{name:{pl:"KIRIN — 7 SZT.",en:"KIRIN — 7 PCS."},desc:{pl:"nigiri sake, nigiri maguro, nigiri pink tai, nigiri awokado, nigiri umi besu, nigiri ebi, nigiri hamachi",en:"nigiri sake, nigiri maguro, nigiri pink tai, nigiri avocado, nigiri umi besu, nigiri ebi, nigiri hamachi"},price:"110"},{name:{pl:"SANSEI — 38 SZT.",en:"SANSEI — 38 PCS."},desc:{pl:"futomaki sake 6 szt., futomaki vege 6 szt., futomaki ebi ten 6 szt., futomaki umi besu 6 szt., california sake yaki tamago 8 szt., hosomaki sake tempura 6 szt.",en:"futomaki sake 6 pcs., futomaki vege 6 pcs., futomaki ebi ten 6 pcs., futomaki umi besu 6 pcs., california sake yaki tamago 8 pcs., hosomaki sake tempura 6 pcs."},price:"275",hot:!0},{name:{pl:"MOSHI SPECIAL SET — 54 SZT.",en:"MOSHI SPECIAL SET — 54 PCS."},desc:{pl:"futomaki sake 6 szt., futomaki ika ten 6 szt., futomaki sake yaki 6 szt., futomaki maguro 6 szt., hosomaki kappa 6 szt., california king roll 8 szt., california spicy maguro 8 szt., nigiri sake 4 szt., nigiri maguro 2 szt., nigiri ebi 2 szt.",en:"futomaki sake 6 pcs., futomaki ika ten 6 pcs., futomaki sake yaki 6 pcs., futomaki maguro 6 pcs., hosomaki kappa 6 pcs., california king roll 8 pcs., california spicy maguro 8 pcs., nigiri sake 4 pcs., nigiri maguro 2 pcs., nigiri ebi 2 pcs."},price:"425",hot:!0}]},{title:{pl:"DLA DZIECI",en:"KIDS MENU"},items:[{name:"MINI NIGIRI",desc:{pl:"6 mini nigiri z łososiem",en:"6 pcs. of mini salmon nigiri"},price:"45"},{name:"TORI PANCO",desc:{pl:"pierś z kurczaka w panco z makaronem udon, marchewką i cukinią",en:"chicken breast in panco with udon noodles, carrots and zucchini"},price:"38"}]},{title:{pl:"DODATKI",en:"SIDES"},items:[{name:{pl:"RYŻ",en:"RICE"},desc:"",price:"10"},{name:{pl:"MAKARON UDON",en:"UDON NOODLES"},desc:"",price:"10"},{name:{pl:"KULKI RYŻOWE Z SEZAMEM (5 SZT.)",en:"RICE BALLS WITH SESAME (5 PCS.)"},desc:"",price:"10"},{name:{pl:"ROLKA W PŁATKU SOJOWYM",en:"ROLL IN SOY FLAKE"},desc:"",price:"7"},{name:{pl:"ROLKA W TEMPURZE",en:"ROLL IN TEMPURA"},desc:"",price:"8"},{name:{pl:"ROLKA W OMLECIE JAPOŃSKIM",en:"ROLL IN JAPANESE OMELETTE"},desc:"",price:"8"},{name:{pl:"SOS SPICY MAYO",en:"SPICY MAYO SAUCE"},desc:"",price:"6"},{name:{pl:"SOS KABAYAKI",en:"KABAYAKI SAUCE"},desc:"",price:"8"},{name:{pl:"SOS JAPOŃSKIE MAYO",en:"JAPANESE MAYONNAISE SAUCE"},desc:"",price:"8"},{name:{pl:"SOS SŁODKO-KWAŚNY",en:"SWEET AND SOUR SAUCE"},desc:"",price:"6"}]},{title:{pl:"DESERY",en:"DESSERTS"},items:[{name:{pl:"LODY Z ZIELONĄ HERBATĄ",en:"ICE CREAM — GREEN TEA"},desc:"",price:"25"},{name:{pl:"LODY SEZAMOWE",en:"ICE CREAM — SESAME"},desc:"",price:"25"},{name:"MOCHI",desc:{pl:"tradycyjne ciastka lodowe (3 szt.)",en:"traditional ice cream cookies (3 pcs.)"},price:"35"},{name:{pl:"OWOCE LYCHEE",en:"LYCHEE"},desc:"",price:"20"}]},{title:{pl:"NAPOJE ZIMNE",en:"COLD BEVERAGES"},items:[{name:"KROPLA BESKIDU 0,33L",desc:{pl:"niegazowana / gazowana",en:"still / sparkling mineral water"},price:"14"},{name:"KROPLA DELICE 0,75L",desc:{pl:"woda mineralna naturalnie gazowana",en:"sparkling natural mineral water"},price:"20"},{name:"KROPLA BESKIDU 0,75L",desc:{pl:"naturalna woda mineralna niegazowana",en:"still natural mineral water"},price:"20"},{name:"NAPOJE 0,25L",desc:{pl:"Coca-Cola Zero / Coca-Cola / Fanta / Sprite / Kinley / FuzeTea (brzoskwinia)",en:"
304Coca-Cola Zero / Coca-Cola / Fanta / Sprite / Kinley / FuzeTea (peach)"},price:"15"},{name:"SOK CAPPY 0,25L",desc:{pl:"pomarańczowy / jabłkowy",en:"orange / apple"},price:"15"},{name:{pl:"ŚWIEŻO WYCISKANY SOK 0,2L",en:"FRESHLY SQUEEZED JUICE 0,2L"},desc:{pl:"pomarańczowy / grejpfrutowy",en:"orange / grapefruit"},price:"20"},{name:{pl:"NAPÓJ ALOESOWY",en:"ALOE DRINK"},desc:"0,2 l / 0,5 l",price:"15/24"},{name:{pl:"JAPOŃSKA LEMONIADA 0,5L",en:"JAPANESE LEMONADE 0,5L"},desc:"",price:"24"},{name:{pl:"LEMONIADA MALINOWA 0,5L",en:"RASPBERRY LEMONADE 0,5L"},desc:"",price:"24"},{name:"MATCHA MANGO 0,3L",desc:"",price:"22"}]},{title:{pl:"DRINKI BEZALKOHOLOWE",en:"ALCOHOL FREE DRINKS"},items:[{name:"APEROL VIRGIN",desc:{pl:"Aperol zero, Prosecco 0%, woda gazowana, pomarańcza, lód",en:"Aperol zero, Prosecco 0%, sparkling mineral water, orange, ice"},price:"29"},{name:"MOJITO VIRGIN",desc:{pl:"Captain Morgan 0%, woda gazowana, limonka, mięta, lód",en:"Captain Morgan 0%, sparkling mineral water, lime, spearmint, ice"},price:"29"},{name:"T&T 0%",desc:{pl:"Tanqueray 0%, Kinley, limonka, lód",en:"Tanqueray 0%, Kinley, lime, ice"},price:"29"}]},{title:{pl:"KAWA I HERBATA",en:"HOT BEVERAGES"},items:[{name:"ESPRESSO",desc:"",price:"15"},{name:"ESPRESSO DOPPIO",desc:"",price:"16"},{name:"AMERICANO",desc:"",price:"16"},{name:"FLAT WHITE",desc:"",price:"18"},{name:"CAPPUCCINO",desc:{pl:"mleko roślinne +3 pln",en:"plant milk +3 pln"},price:"20"},{name:"CAFE LATTE",desc:{pl:"mleko roślinne +3 pln",en:"plant milk +3 pln"},price:"20"},{name:{pl:"NAPAR MALINOWY",en:"RASPBERRY INFUSION"},desc:"",price:"22"},{name:{pl:"DZBANEK HERBATY 300ML",en:"TEA POT 300ML"},desc:{pl:"Sencha / Sencha Sacura / Sencha Jasmine / Genmaicha / herbata czarna",en:"Sencha / Sencha Sacura / Sencha Jasmine / Genmaicha / black tea"},price:"20"}]},{title:{pl:"DRINKI",en:"DRINKS"},items:[{name:"CHOYA SPRITZ",desc:{pl:"Choya Original, Prosecco, limonka, mięta, lód",en:"Choya Original, Prosecco, lime, mint, ice"},price:"34"},{name:"YAMA SOUR",desc:{pl:"Johnnie Walker Black, Angostura, sok z cytryny, syrop cukrowy, lód",en:"Johnnie Walker Black, Angostura, lemon juice, sugar syrup, ice"},price:"36"},{name:"APEROL SPRITZ",desc:{pl:"Aperol, Prosecco, woda gazowana, pomarańcza, lód",en:"Aperol, Prosecco, sparkling mineral water, orange, ice"},price:"36"},{name:"T&T",desc:{pl:"Tanqueray No 10, Kinley tonic, grejpfrut, lód",en:"Tanqueray No.10, Kinley tonic, grapefruit, ice"},price:"42"},{name:"FLOR DE SEVILLA",desc:{pl:"Tanqueray Sevilla, Kinley tonic, pomarańcza, lód",en:"Tanqueray Sevilla, Kinley tonic, orange, ice"},price:"42"}]},{title:{pl:"ALKOHOLE",en:"ALCOHOL"},items:[{name:"ANO TAKO",desc:{pl:"piwo 0,33l",en:"beer 0,33l"},price:"24"},{name:"ASAHI / SAPPORO",desc:{pl:"piwo 0,33l",en:"beer 0,33l"},price:"22"},{name:"LECH / LECH FREE",desc:{pl:"piwo 0,33l",en:"beer 0,33l"},price:"18"},{name:"IKI 0%",desc:{pl:"piwo bezalkoholowe 0,33l",en:"non-alcoholic beer 0,33l"},price:"18"},{name:"HIBIKI / YAMAZAKI 40ML",desc:{pl:"whisky japońska",en:"Japanese whisky"},price:"92"},{name:"LAGAVULIN 16 YO 40ML",desc:{pl:"single malt",en:"single malt"},price:"58"},{name:"THE SINGLETON 12 YO 40ML",desc:{pl:"single malt",en:"single malt"},price:"35"},{name:"ZACAPA XO 40ML",desc:{pl:"rum",en:"rum"},price:"88"},{name:"ZACAPA 23 40ML",desc:{pl:"rum",en:"rum"},price:"49"},{name:"TANQUERAY FLOR DE SEVILLA 40ML",desc:{pl:"gin",en:"gin"},price:"29"},{name:"TANQUERAY NO. TEN 40ML",desc:{pl:"gin",en:"gin"},price:"29"},{name:"BOMBAY SAPPHIRE 40ML",desc:{pl:"gin",en:"gin"},price:"22"},{name:"DON JULIO REPOSADO 40ML",desc:{pl:"tequila",en:"tequila"},price:"42"},{name:"DON JULIO BLANCO 40ML",desc:{pl:"tequila",en:"tequila"},price:"40"}]}],fP=()=>{const[e,t]=m.useState("pl"),r={pl:{kicker:"Moshi Moshi Sushi",title:"MENU SOPOT",pdfPrompt:"Wolisz wersję PDF? Pobierz pełne menu.",pdfBtn:"POBIERZ PDF",footnote1:"* pozycje zawierają orzechy ziemne z miodem i sezamem",footnote2:"Do rachunku dla grup od 5 osób doliczany jest serwis 10% wartości rachunku."},en:{kicker:"Moshi Moshi Sushi",title:"SOPOT MENU",pdfPrompt:"Prefer the PDF? Download the full menu.",pdfBtn:"DOWNLOAD PDF",footnote1:"* selected dishes are served with peanuts, honey and sesame",footnote2:"For groups of 5 or more, a 10% service charge is added to the bill."}}[e];return s.jsxs("div",{className:"min-h-screen",children:[s.jsxs(Z
304a,{children:[s.jsx("title",{children:"Menu Sopot — Moshi Moshi Sushi"}),s.jsx("meta",{name:"description",content:"Pełne menu restauracji Moshi Moshi Sushi w Sopocie — sushi, sashimi, dania gorące, napoje. Wersja polska i angielska."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/menu/sopot"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/menu/sopot"}),s.jsx("meta",{property:"og:title",content:"Menu Sopot — Moshi Moshi Sushi"})]}),s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("div",{className:"relative w-full h-[300px] md:h-[350px] bg-cover bg-center flex items-center justify-center",style:{backgroundImage:`url(${ho})`},children:[s.jsx("div",{className:"absolute inset-0 bg-black/60"}),s.jsxs("div",{className:"relative z-10 text-center",children:[s.jsx("p",{className:"text-sm font-heading font-bold tracking-[0.3em] uppercase text-cream/50 mb-2",children:r.kicker}),s.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:r.title}),s.jsx("p",{className:"text-cream/60 mt-3 text-sm tracking-widest uppercase",children:"Monte Cassino 63/1"})]})]}),s.jsx("div",{className:"bg-[hsl(var(--brand-navy))] border-b border-cream/10",children:s.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-4 flex flex-col sm:flex-row items-center justify-between gap-3",children:[s.jsx("p",{className:"text-sm text-cream/80",children:r.pdfPrompt}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"inline-flex items-center rounded-full border border-cream/25 overflow-hidden",children:[s.jsx("span",{className:"px-3 py-1.5 text-cream/60",children:s.jsx(L0,{className:"w-3.5 h-3.5"})}),s.jsx("button",{onClick:()=>t("pl"),"aria-pressed":e==="pl","data-umami-event":"click-view-menu","data-umami-event-target":"menu-language","data-umami-event-location":"sopot","data-umami-event-language":"pl",...ye(),className:`px-3 py-1.5 text-xs font-heading font-bold tracking-[0.15em] uppercase transition-colors ${e==="pl"?"bg-cream text-[hsl(var(--brand-navy))]":"text-cream/70 hover:text-cream"}`,children:"PL"}),s.jsx("button",{onClick:()=>t("en"),"aria-pressed":e==="en","data-umami-event":"click-view-menu","data-umami-event-target":"menu-language","data-umami-event-location":"sopot","data-umami-event-language":"en",...ye(),className:`px-3 py-1.5 text-xs font-heading font-bold tracking-[0.15em] uppercase transition-colors ${e==="en"?"bg-cream text-[hsl(var(--brand-navy))]":"text-cream/70 hover:text-cream"}`,children:"EN"})]}),s.jsxs("a",{href:e==="pl"?"/menu/Menu_Sopot_PL.pdf":"/menu/Menu_Sopot_EN.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-2 text-xs font-heading font-bold tracking-[0.15em] uppercase bg-cream text-[hsl(var(--brand-navy))] hover:bg-cream/90 transition-colors rounded-full","data-umami-event":"click-view-menu","data-umami-event-target":"menu-pdf-download","data-umami-event-location":"sopot","data-umami-event-language":e,...ye(),children:[s.jsx(I0,{className:"w-3.5 h-3.5"}),r.pdfBtn]})]})]})}),s.jsx("div",{className:"section-dark py-16 md:py-24 px-6 md:px-16",children:s.jsxs("div",{className:"max-w-5xl mx-auto space-y-16",children:[pP.map(a=>{const o=typeof a.title=="string"?a.title:a.title.pl;return s.jsx(tb,{cat:{...a,image:mP[o]},lang:e},o)}),s.jsx("p",{className:"text-cream/60 text-xs text-center",children:r.footnote1}),s.jsx("p",{className:"text-cream/60 text-xs text-center",children:r.footnote2})]})})]}),s.jsx(Pn,{})]})},hP=()=>s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("div",{className:"relative w-full h-[200px] md:h-[350px] bg-cover bg-center flex items-center justify-center",style:{backgroundImage:`url(${ho})`},children:[s.jsx("div",{className:"absolute inset-0 bg-black/50"}),s.jsx("h1",{className:"relative z-10 text-3xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:"LUNCHE"})]}),s.jsx("div",{className:"section-dark py-14 md:py-28 px-4 md:px-16",children:s.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[s.jsxs("div",{className:"relative bg-gradient-to-br from-primary/20 via-white/5 to-primary/10 border border-primary/20 rounded-3xl p-8 md:p-16 mb-10 md:mb-12 overflow-hidden",children:[s.jsx("div",{className:"absolute top-4 right-4 w-24 h-24 rounded-full bg-primary/10 blur-2xl"}),s.jsx("div",{className:"absolute bottom-4 left-4 w-32 h-32 rounded-full bg-primary/5 blur-3xl"}),s.jsxs("div",{className:"relative z-10",children:[s.jsx("p",{className:"text-xs md:text-sm font-heading font-bold tracking-[0.3em] uppercase text-primary mb-4 md:mb-6",children:"Promocja"}),s.jsx("h2",{className:"text-2xl md:text-4xl lg:text-5xl font-heading font-bold text-cream leading-tight mb-3 md:mb-4",children:"Lunche!"}),s.jsx("div",{className:"mt-2 mb-4 md:mb-6",children:s.jsx("span",{className:"text-5xl md:text-8xl lg:text-9xl font-heading font-bold bg-gradient-to-r from-amber-400 via-orange-400 to-red-500 bg-clip-text text-transparent drop-shadow-lg leading-none",children:"-50%"})}),s.jsxs("p",{className:"text-lg md:text-2xl text-cream/80 font-heading leading-relaxed mb-2",children:["Wszystkie ",s.jsx("span",{className:"font-bold text-cream",children:"FUTOMAKI"})]}),s.jsxs("div",{className:"mt-3 md:mt-4 inline-flex items-center gap-2 md:gap-3 bg-gradient-to-r from-amber-500/20 to-orange-500/20 border border-amber-400/30 rounded-2xl px-5 md:px-8 py-3 md:py-4",children:[s.jsx(eo,{className:"w-4 h-4 md:w-5 md:h-5 text-amber-400"}),s.jsx("p",{className:"text-lg md:text-2xl font-heading font-bold text-amber-400 tracking-wide",children:"12:00 – 16:00"})]}),s.jsx("p",{className:"mt-2 md:mt-3 text-cream/60 text-xs md:text-sm font-heading tracking-widest uppercase",children:"poniedziałek – piątek"})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 mb-12 md:mb-16",children:[s.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-6 md:p-8 text-center",children:[s.jsx("div",{className:"w-12 h-12 md:w-14 md:h-14 roun
304ded-full bg-primary/10 flex items-center justify-center mx-auto mb-4 md:mb-5",children:s.jsx(xz,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),s.jsx("h3",{className:"font-heading font-bold text-cream text-base md:text-lg mb-2",children:"Przyjdź"}),s.jsx("p",{className:"text-cream/50 text-xs md:text-sm",children:"Odwiedź nas w Moshi Moshi w godzinach lunchu"})]}),s.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-6 md:p-8 text-center",children:[s.jsx("div",{className:"w-12 h-12 md:w-14 md:h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4 md:mb-5",children:s.jsx(eo,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),s.jsx("h3",{className:"font-heading font-bold text-cream text-base md:text-lg mb-2",children:"Zamów napój"}),s.jsx("p",{className:"text-cream/50 text-xs md:text-sm",children:"Zamów dowolny napój, a rolki lecą do Ciebie ze zniżką!"})]}),s.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-6 md:p-8 text-center",children:[s.jsx("div",{className:"w-12 h-12 md:w-14 md:h-14 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4 md:mb-5",children:s.jsx(hz,{className:"w-5 h-5 md:w-6 md:h-6 text-primary"})}),s.jsx("h3",{className:"font-heading font-bold text-cream text-base md:text-lg mb-2",children:"Ciesz się"}),s.jsx("p",{className:"text-cream/50 text-xs md:text-sm",children:"Rozsiądź się i ciesz smakiem sushi za pół ceny!"})]})]}),s.jsx("p",{className:"text-cream/30 text-[10px] md:text-xs",children:"* oferta dostępna tylko w lokalu w dni powszednie do 30.04.2026"})]})})]}),s.jsx(Pn,{})]}),gP={PRZYSTAWKI:"/menu/img-takoyaki-sopot.jpg",VEGE:"/menu/img-przystawki-zimne-edamame.jpg",ZUPY:"/menu/img-zupy-navy.jpg","DANIA GORĄCE":"/menu/img-dania-gorace-navy.jpg",NIGIRI:"/menu/img-nigiri-navy.jpg",SASHIMI:"/menu/img-sashimi-navy.jpg",TATAR:"/menu/img-tatar-navy.jpg","CALIFORNIA ROLL":"/menu/img-california-navy.jpg",HOSOMAKI:"/menu/img-hosomaki-navy.jpg",FUTOMAKI:"/menu/img-futomaki-navy.jpg","ZESTAWY SUSHI":"/menu/img-zestawy-navy.jpg","DLA DZIECI":"/menu/img-dzieci-navy.jpg",DESERY:"/menu/img-desery-navy.jpg",NAPOJE:"/menu/img-napoje-navy.jpg","DRINKI BEZALKOHOLOWE":"/menu/img-drinki-bezalkohol-navy.jpg","KAWA I HERBATA":"/menu/img-herbata-navy.jpg"},yP=[{title:{pl:"PRZYSTAWKI",en:"STARTERS"},items:[{name:"FRESH MAKI",desc:{pl:"sałata, ogórek, awokado, marchewka, rzepa marynowana, serek, rukola zawinięte w papier ryżowy z sosem sezamowym",en:"lettuce, cucumber, avocado, carrot, pickled turnip, cream cheese and arugula wrapped in rice paper, served with sesame sauce"},price:"28"},{name:"EBI FRESH MAKI",desc:{pl:"krewetka, sałata, ogórek, awokado, marchewka, rzepa marynowana, serek, rukola zawinięte w papier ryżowy z sosem sezamowym",en:"shrimp, lettuce, cucumber, avocado, carrot, pickled radish, cream cheese and arugula wrapped in rice paper, served with sesame sauce"},price:"36"},{name:"TAKO YAKI",desc:{pl:"smażone kulki z dodatkiem ośmiornicy",en:"fried balls with octopus"},price:"29"},{name:"DUCK GYOZA",desc:{pl:"pierożki z kaczki — 5 szt., produkcja własna",en:"5 pcs pan-fried duck dumplings, self made"},price:"29"},{name:"IKA TEMPURA",desc:{pl:"6 kalmarów w tempurze z sosem aioli mayo i goma wakame",en:"6 pcs tempura calamari with aioli mayo sauce and goma wakame"},price:"34"},{name:"EBI TEMPURA",desc:{pl:"5 krewetek w tempurze z sosem aioli mayo i sweet chilli",en:"6 pcs tempura shrimps with aioli mayo sauce and sweet chilli"},price:"36"}]},{title:"VEGE",items:[{name:"EDAMAME",desc:{pl:"młode strączki soi z solą",en:"young soya pods with salt"},price:"20"},{name:"SPICY EDAMAME",desc:{pl:"młode strączki soi z togarashi",en:"young soya pods with togarashi"},price:"22"},{name:"GOMA WAKAME",desc:{pl:"sałatka z trawy morskiej z sezamem",en:"sea grass salad with sesame seeds"},price:"16"}]},{title:{pl:"ZUPY",en:"SOUPS"},items:[{name:"MISOSHIRU",desc:{pl:"zupa miso",en:"miso soup"},price:"12"},{name:"SAKE MISOSHIRU",desc:{pl:"zupa miso z łososiem",en:"miso soup with salmon"},price:"20"},{name:"CHILLI BEEF",desc:{pl:"zupa z wołowiną na ostro i makaronem ramen",en:"spicy soup with beef and ramen noodles"},price:"38"}]},{title:{pl:"DANIA GORĄCE",en:"HOT MEALS"},items:[{name:"TORI TERIYAKI",desc:{pl:"kurczak w sosie teriyaki z ryżem",en:"chicken in teriyaki sauce with rice"},price:"39",hot:!0},{name:{pl:"RAMEN Z BOCZKIEM",en:"PORK RAMEN"},desc:{pl:"ramen z boczkiem chashu",en:"ramen with chashu pork"},price:"44"},{name:"EBI UDON",desc:{pl:"makaron udon z krewetkami i warzywami",en:"udon noodles with shrimp and vegetables"},price:"48"},{name:"TORI UDON",desc:{pl:"makaron udon z kurczakiem i warzywami",en:"udon noodles with chicken and vegetables"},price:"36"}]},{title:"NIGIRI",subtitle:{pl:"2 szt.",en:"2 pcs"},items:[{name:"SAKE",desc:{pl:"łosoś",en:"salmon"},price:"17"},{name:"SAKE TATAKI",desc:{pl:"opiekany łosoś z porem i ikrą pstrąga",en:"roasted salmon with leek and trout roe"},price:"20"},{name:"MAGURO",desc:{pl:"tuńczyk",en:"tuna"},price:"22"}
304,{name:"AVOCADO",desc:{pl:"awokado",en:"avocado"},price:"12"},{name:"UMI BESU",desc:{pl:"okoń morski",en:"sea bass"},price:"24"},{name:"UNAGI",desc:{pl:"pieczony węgorz",en:"roasted eel"},price:"28",hot:!0},{name:"EBI",desc:{pl:"krewetka gotowana",en:"boiled shrimps"},price:"26"},{name:"TAMAGO",desc:{pl:"omlet japoński",en:"Japanese omelette"},price:"10"}]},{title:"HOSOMAKI",subtitle:{pl:"6 szt.",en:"6 pcs"},items:[{name:"AVOCADO",desc:{pl:"awokado, sezam",en:"avocado, sesame seeds"},price:"14"},{name:"KAPPA",desc:{pl:"ogórek, sezam",en:"cucumber, sesame seeds"},price:"14"},{name:"OSHINKO",desc:{pl:"rzepa marynowana, sezam",en:"marinated turnip, sesame seeds"},price:"13"},{name:"KAMPYO",desc:{pl:"tykwa marynowana",en:"marinated Japanese gourd"},price:"14"},{name:"SAKE",desc:{pl:"łosoś",en:"salmon"},price:"19"},{name:"SAKE YAKI",desc:{pl:"pieczony łosoś, sos kabayaki",en:"grilled salmon, kabayaki sauce"},price:"24",hot:!0},{name:"SAKE TEMPURA",desc:{pl:"łosoś, całość w tempurze, sos kabayaki",en:"salmon, all in tempura, kabayaki sauce"},price:"24",hot:!0},{name:"EBI TEN",desc:{pl:"krewetka w tempurze",en:"tempura shrimps"},price:"24"},{name:"NEGI MAGURO MAKI",desc:{pl:"tuńczyk z majonezem wasabi i prażonym porem",en:"tuna with wasabi mayonnaise and roasted leek"},price:"26"}]},{title:"FUTOMAKI",subtitle:{pl:"6 szt.",en:"6 pcs"},items:[{name:"SAKE",desc:{pl:"łosoś, serek, sałata, ogórek, awokado",en:"salmon, cheese, lettuce, cucumber, avocado"},price:"27"},{name:"SAKE TATAKI",desc:{pl:"łosoś opiekany, rukola, ogórek, awokado, okra w tempurze",en:"roasted salmon, rocket, cucumber, avocado, okra in tempura"},price:"30"},{name:"SAKE YAKI",desc:{pl:"pieczony łosoś, serek, sałata, ogórek, awokado, sos kabayaki",en:"baked salmon, cheese, lettuce, cucumber, avocado, kabayaki sauce"},price:"32",hot:!0},{name:"NEGI SAKE",desc:{pl:"tatar z łososia, sałata, ogórek, awokado, prażony por",en:"salmon tartare, lettuce, cucumber, avocado, roasted leek"},price:"32"},{name:"SAKE KAWA",desc:{pl:"skóra z łososia, japoński majonez, sałata, ogórek, awokado, sos kabayaki",en:"salmon skin, Japanese mayonnaise, lettuce, cucumber, avocado, kabayaki sauce"},price:"28",hot:!0},{name:"MAGURO",desc:{pl:"tuńczyk, pikantny majonez, sałata, ogórek, awokado, oshinko",en:"tuna, spicy mayonnaise, lettuce, cucumber, avocado, oshinko"},price:"32"},{name:"MAGURO TATAR",desc:{pl:"tatar z tuńczyka, sałata, ogórek, awokado, całość w tempurze, na górze goma wakame",en:"tuna tartare, lettuce, cucumber, avocado, all in tempura, goma wakame on top"},price:"38"},{name:"EBI MAGURO",desc:{pl:"krewetka w tempurze, tuńczyk, pikantny majonez, mango, awokado, togarashi",en:"tempura shrimp, tuna, spicy mayonnaise, mango, avocado, togarashi"},price:"37"},{name:"EBI TEN",desc:{pl:"krewetka w tempurze, pikantny majonez, sałata, oshinko, awokado",en:"shrimp tempura, spicy mayonnaise, lettuce, oshinko, avocado"},price:"34"},{name:"IKA TEN",desc:{pl:"kalmar w tempurze, pikantny majonez, mango, ogórek, awokado, sałata",en:"tempura squid, spicy mayonnaise, mango, cucumber, avocado, lettuce"},price:"32"},{name:"KANI KAMA",desc:{pl:"paluszek krabowy, japoński majonez, sałata, awokado",en:"crab stick, Japanese mayonnaise, lettuce, avocado"},price:"22"},{name:"VEGE",desc:{pl:"serek, sałata, ogórek, awokado, oshinko, tykwa, rukola",en:"cheese, lettuce, cucumber, avocado, oshinko, gourd, rocket"},price:"23"},{name:"SPICY VEGE SOYA",desc:{pl:"pikantny majonez, mango, awokado, rukola",en:"spicy mayonnaise, mango, avocado, rocket"},price:"27"},{name:"HIRATAKE",desc:{pl:"boczniak w panko, majonez aioli, sałata, ogórek",en:"oyster mushroom in panko, aioli mayonnaise, lettuce, cucumber"},price:"24"},{name:"HIRAME",desc:{pl:"halibut w panko, sałata, pikantny majonez, awokado, mango",en:"halibut in panko, lettuce, spicy mayonnaise, avocado, mango"},price:"36",hot:!0},{name:"CRAB ROLL",desc:{pl:"krab w panko, pikantny majonez, sałata, ogórek, awokado, sos kabayaki",en:"panko crab, spicy mayonnaise, lettuce, cucumber, avocado, kabayaki sauce"},price:"44",hot:!0}
304,{name:"UNAGI",desc:{pl:"pieczony węgorz, sałata, serek, tykwa, ogórek, awokado, tamago, sos kabayaki",en:"baked eel, lettuce, cheese, gourd, cucumber, avocado, tamago, kabayaki sauce"},price:"39",hot:!0},{name:"UMI BESU TATAKI",desc:{pl:"opiekany okoń, japoński majonez, szparag w tempurze, sałata, oshinko, prażony por, całość w płatku sojowym",en:"roasted perch, Japanese mayonnaise, tempura asparagus, lettuce, oshinko, roasted leek, all in soy flakes"},price:"37"},{name:"GYUNIKU",desc:{pl:"ostra wołowina, japoński majonez, sałata, ogórek, awokado",en:"spicy beef, Japanese mayonnaise, lettuce, cucumber, avocado"},price:"38"},{name:"TORI",desc:{pl:"kurczak w panko, majonez wasabi, sałata, ogórek, awokado, rukola",en:"panko chicken, wasabi mayonnaise, lettuce, cucumber, avocado, rocket"},price:"25"},{name:"CHASHU ROLL",desc:{pl:"boczek, japoński majonez, sałata, awokado, ogórek, sos tonkatsu",en:"bacon, Japanese mayonnaise, lettuce, avocado, cucumber, tonkatsu sauce"},price:"26"}]},{title:"CALIFORNIA ROLL",subtitle:{pl:"4 szt.",en:"4 pcs"},items:[{name:"SAKE",desc:{pl:"łosoś, serek, ogórek, awokado",en:"salmon, cheese, cucumber, avocado"},price:"24"},{name:"SAKE AVOCADO",desc:{pl:"łosoś, serek, ogórek, awokado na górze, ikra z pstrąga",en:"salmon, cheese, cucumber, avocado on top, trout roe"},price:"35"},{name:"SAKE YAKI TAMAGO",desc:{pl:"łosoś pieczony, serek, awokado, ogórek, całość w omlecie tamago, sos kabayaki",en:"grilled salmon, cheese, avocado, cucumber, all in tamago omelette, kabayaki sauce"},price:"28",hot:!0},{name:"SAKE GRILL",desc:{pl:"krewetka gotowana, serek, tykwa, awokado, opiekany łosoś na górze, sos kabayaki",en:"boiled shrimp, cream cheese, gourd, avocado, roasted salmon on top, kabayaki sauce"},price:"33",hot:!0},{name:"SPICY MAGURO",desc:{pl:"tuńczyk, pikantny majonez, ogórek, awokado, oshinko, sriracha na górze",en:"tuna, spicy mayonnaise, cucumber, avocado, oshinko, sriracha on top"},price:"26"},{name:"MAGURO TATAKI",desc:{pl:"opiekany tuńczyk, ogórek, oshinko, szparag w tempurze, japoński majonez, prażony por",en:"roasted tuna, cucumber, oshinko, asparagus in tempura, Japanese mayonnaise, roasted leek"},price:"29"},{name:"EBI TEN",desc:{pl:"krewetka w tempurze, pikantny majonez, ogórek, awokado",en:"shrimp in tempura, spicy mayonnaise, cucumber, avocado"},price:"26"},{name:"KING ROLL",desc:{pl:"krewetka w tempurze, pikantny majonez, ogórek, awokado, tatar z łososia",en:"shrimp in tempura, spicy mayonnaise, cucumber, avocado, salmon tartare"},price:"35"},{name:"MOSHIN DRAGON",desc:{pl:"krewetka w tempurze, serek, ogórek, awokado, węgorz, sos kabayaki",en:"shrimp in tempura, cheese, cucumber, avocado, eel, kabayaki sauce"},price:"34",hot:!0},{name:"UNAGI",desc:{pl:"węgorz, serek, ogórek, awokado, tykwa, tamago, sos kabayaki",en:"eel, cheese, cucumber, avocado, gourd, tamago, kabayaki sauce"},price:"28",hot:!0},{name:"CATERPILLAR",desc:{pl:"węgorz w tempurze, serek, ogórek, tykwa, awokado na górze, sos kabayaki",en:"eel in tempura, cheese, cucumber, gourd, avocado on top, kabayaki sauce"},price:"32",hot:!0},{name:"VEGE TEMPURA",desc:{pl:"warzywa w tempurze, serek",en:"vegetables in tempura, cheese"},price:"20"},{name:"HIRATAKE",desc:{pl:"boczniak w panko, majonez aioli, ogórek",en:"oyster mushroom in panko, aioli mayonnaise, cucumber"},price:"22"},{name:"QUEEN ROLL",desc:{pl:"krewetka w panko, oshinko, awokado na górze, majonez wasabi, prażony por",en:"panko shrimp, oshinko, avocado on top, wasabi mayonnaise, roasted leek"},price:"32"}]},{title:{pl:"ZESTAWY SUSHI",en:"SUSHI SETS"},items:[{name:{pl:"AKKI — 12 SZT.",en:"AKKI — 12 PCS"},desc:{pl:"futomaki ebi ten 6 szt., hosomaki negi maguro maki 6 szt.",en:"futomaki ebi ten 6 pcs, hosomaki negi maguro maki 6 pcs"},price:"58"},{name:{pl:"TENGU — 16 SZT.",en:"TENGU — 16 PCS"},desc:{pl:"futomaki sake 6 szt., futomaki vege 6 szt., california sake 4 szt.",en:"futomaki sake 6 pcs, futomaki vege 6 pcs, california sake 4 pcs"},price:"73"},{name:{pl:"MOSHIN — 18 SZT.",en:"MOSHIN — 18 PCS"},desc:{pl:"futomaki maguro 6 szt., futomaki ebi ten 6 szt., futomaki ika ten 6 szt.",en:"futomaki maguro 6 pcs, futomaki ebi ten 6 pcs, futomaki ika ten 6 pcs"},price:"95"},{name:{pl:"NAMAZU — 26 SZT.",en:"NAMAZU — 26 PCS"},desc:{pl:"futomaki sake yaki 6 szt., futomaki kani kama 6 szt., california vege tempura 8 szt., hosomaki sake 6 szt.",en:"futomaki sake yaki 6 pcs, futomaki kani kama 6 pcs, california vege tempura 8 pcs, hosomaki sake 6 pcs"},price:"110",hot:!0},{name:{pl:"DOJI — 24 SZT.",en:"DOJI — 24 PCS"},desc:{pl:"futomaki sake 6 szt., futomaki hirame 6 szt., california sake 8 szt., nigiri sake 2 szt., nigiri maguro 2 szt.",en:"futomaki sake 6 pcs, futomaki hirame 6 pcs, california sake 8 pcs, nigiri sake 2 pcs, nigiri maguro 2 pcs"},price:"146",hot:!0},{name:{pl:"FUKUKO — 24 SZT.",en:"FUKUKO — 24 PCS"},desc:{pl:"futomaki ebi ten 6 szt., futomaki sake kawa 6 szt., california sake grill 8 szt., california moshin dragon 4 szt.",en:"futomaki ebi ten 6 pcs, futomaki sake kawa 6 pcs, california sake grill 8 pcs, california moshin dragon 4 pcs"},price:"160",hot:!0},{name:{pl:"ENKO — 22 SZT.",en:"ENKO — 22 PCS"},desc:{pl:"zestaw wegetariański: hosomaki kappa 6 szt., california vege tempura 4 szt., futomaki vege 6 szt., nigiri tamago 2 szt., gunkan goma wakame 2 szt.",en:"vegetarian set: hosomaki kappa 6 pcs, california vege tempura 4 pcs, futomaki vege 6 pcs, nigiri tamago 2 pcs, gunkan goma wakame 2 pcs"},price:"75"},{name:{pl:"KIRIN — 7 SZT.",en:"KIRIN — 7 PCS"},desc:{pl:"nigiri sake, nigiri maguro, nigiri umi besu, nigiri unagi, nigiri ebi, nigiri avocado, nigiri sake tataki",en:"nigiri sake, nigiri maguro, nigiri umi besu, nigiri unagi, nigiri ebi, nigiri avocado, nigiri sake tataki"},price:"60"},{name:{pl:"SANSEI — 38 SZT.",en:"SANSEI — 38 PCS"},desc:{pl:"futomaki sake 6 szt., futomaki vege 6 szt., futomaki ebi ten 6 szt., futomaki umi besu 6 szt., california sake yaki tamago 8 szt., hosomaki sake tempura 6 szt.",en:"futomaki sake 6 pcs, futomaki vege 6 pcs, futomaki ebi ten 6 pcs, futomaki umi besu 6 pcs, california sake yaki tamago 8 pcs, hosomaki sake tempura 6 pcs"},price:"200",hot:!0},{name:{pl:"MOSHI SPECIAL SET — 54 SZT.",en:"MOSHI SPECIAL SET — 54 PCS"},desc:{pl:"futomaki sake 6 szt., futomaki ika ten 6 szt., futomaki sake yaki 6 szt., futomaki maguro 6 szt., hosomaki kappa 6 szt., california king roll 8 szt., california spicy maguro 8 szt., nigiri sake 4 szt., nigiri maguro 2 szt., nigiri ebi 2 szt.",en:"futomaki sake 6 pcs, futomaki ika ten 6 pcs, futomaki sake yaki 6 pcs, futomaki maguro 6 pcs, hosomaki kappa 6 pcs, california king roll 8 pcs, california spicy maguro 8 pcs, nigiri sake 4 pcs, nigiri maguro 2 pcs, nigiri ebi 2 pcs"},price:"335",hot:!0}]},{title:"SASHIMI",subtitle:{pl:"5 szt.",en:"5 pcs"},items:[{name:{pl:"ŁOSOŚ",en:"SALMON"},desc:"",price:"26"},{name:{pl:"TUŃCZYK",en:"TUNA"},desc:"",price:"29"},{name:{pl:"OKOŃ MORSKI",en:"SEA BASS"},desc:"",price:"29"},{name:{pl:"KREWETKA",en:"SHRIMPS"},desc:"",price:"32"}]},{title:{pl:"TATAR",en:"TARTARE"},items:[{name:"SAKE",desc:{pl:"łosoś (120g)",en:"salmon (120g)"},price:"38"},{name:"MAGURO",desc:{pl:"tuńczyk (120g)",en:"tuna (120g)"},price:"42"}]},{title:{pl:"DLA DZIECI",en:"FOR KIDS"},items:[{name:"MINI NIGIRI",desc:{pl:"6 mini nigiri z łososiem",en:"6 pcs of mini nigiri with salmon"},price:"29"},{name:"TORI PANCO",desc:{pl:"pierś z kurczaka w panco z makaronem udon, marchewką i cukinią",en:"chicken breast in panco with udon noodles, carrots and zucchini"},price:"30"}]},{title:{pl:"DESERY",en:"DESSERTS"},items:[{name:{pl:"LODY SEZAMOWE",en:"SESAME ICE CREAM"},desc:"",price:"18"},{name:{pl:"LODY Z ZIELONĄ HERBATĄ",en:"GREEN TEA ICE CREAM"},desc:"",price:"18"},{name:"LYCHEE",desc:"",price:"14"},{name:"MOCHI",desc:{pl:"tradycyjne ciasteczka lodowe (3 szt.)",en:"traditional ice cream cookies (3 pcs)"},price:"31"}]},{title:{pl:"NAPOJE",en:"DRINKS"},items:[{name:"KROPLA BESKIDU 0,33L",desc:{pl:"niegazowana / gazowana",en:"still / sparkling mineral water"},price:"11"},{name:"KROPLA DELICE 0,75L",desc:{pl:"woda mineralna naturalnie gazowana",en:"sparkling natural mineral water"},price:"18"},{name:"KROPLA BESKIDU 0,75L",desc:{pl:"naturalna woda mineralna niegazowana",en:"still natural mineral water"},price:"18"},{name:"COCA-COLA ZERO / COCA-COLA / FANTA / SPRITE / KINLEY / FUZETEA 0,25L",desc:{pl:"FuzeTea (brzoskwinia)",en:"FuzeTea (peach)"},price:"13"},{name:{pl:"SOK CAPPY 0,25L",en:"CAPPY JUICE 0,25L"}
304,desc:{pl:"pomarańczowy / jabłkowy",en:"orange / apple"},price:"13"},{name:{pl:"ŚWIEŻO WYCISKANY SOK 0,2L",en:"FRESHLY SQUEEZED JUICE 0,2L"},desc:{pl:"pomarańczowy / grejpfrutowy",en:"orange / grapefruit"},price:"20"},{name:{pl:"NAPÓJ ALOESOWY",en:"ALOE VERA DRINK"},desc:{pl:"0,2l / 0,5l",en:"0,2l / 0,5l"},price:"14/22"},{name:{pl:"LEMONIADA MALINOWA 0,5L",en:"RASPBERRY LEMONADE 0,5L"},desc:"",price:"22"},{name:"MATCHA MANGO 0,3L",desc:"",price:"22"}]},{title:{pl:"DRINKI BEZALKOHOLOWE",en:"NON-ALCOHOLIC DRINKS"},items:[{name:"APEROL SHOJO",desc:{pl:"Aperol zero, Prosecco 0%, woda gazowana, pomarańcza, lód",en:"Aperol zero, Prosecco 0%, sparkling water, orange, ice"},price:"29"},{name:"MOJITO SHOJO",desc:{pl:"Captain Morgan 0%, woda gazowana, limonka, mięta, lód",en:"Captain Morgan 0%, sparkling water, lime, mint, ice"},price:"29"},{name:"SHIBO SHOJO",desc:{pl:"Gin Tanqueray 0%, sok z yuzu, syrop z kwiatu czarnego bzu, sok pomarańczowy, Kinley",en:"Tanqueray 0% gin, yuzu juice, elderflower syrup, orange juice, Kinley"},price:"33"}]},{title:{pl:"KAWA I HERBATA",en:"COFFEE & TEA"},subtitle:{pl:"herbata: dzbanek 300ml — 20 pln",en:"tea: 300ml pot — 20 pln"},items:[{name:"ESPRESSO",desc:"",price:"12"},{name:"ESPRESSO DOPPIO",desc:"",price:"16"},{name:"AMERICANO",desc:"",price:"16"},{name:"FLAT WHITE",desc:"",price:"17"},{name:"CAPPUCCINO",desc:"",price:"17"},{name:"CAFE LATTE",desc:{pl:"mleko roślinne +3 pln",en:"plant milk +3 pln"},price:"17"},{name:"SENCHA",desc:{pl:"klasyczna zielona herbata",en:"classic green tea"},price:"20"},{name:"SENCHA SACURA",desc:{pl:"zielona herbata z dodatkiem kwiatu wiśni",en:"green tea with cherry blossom"},price:"20"},{name:"SENCHA JASMINE",desc:{pl:"zielona herbata z dodatkiem kwiatu jaśminu",en:"green tea with jasmine flower"},price:"20"},{name:"GENMAICHA",desc:{pl:"zielona herbata z dodatkiem prażonego ryżu",en:"green tea with dry-roasted rice"},price:"20"}]}],xP=()=>{const[e,t]=m.useState("pl"),r={pl:{kicker:"Moshi Moshi Sushi",title:"MENU GDYNIA",pdfPrompt:"Wolisz wersję PDF? Pobierz pełne menu.",pdfBtn:"POBIERZ PDF",footnote1:"* pozycje zawierają orzechy ziemne z miodem i sezamem",footnote2:"Do rachunku dla grup od 6 osób doliczamy 10% wartości rachunku za serwis."},en:{kicker:"Moshi Moshi Sushi",title:"GDYNIA MENU",pdfPrompt:"Prefer the PDF? Download the full menu.",pdfBtn:"DOWNLOAD PDF",footnote1:"* selected dishes are served with peanuts, honey and sesame",footnote2:"For groups of 6 or more, a 10% service charge is added to the bill."}}[e];return s.jsxs("div",{className:"min-h-screen",children:[s.jsxs(Za,{children:[s.jsx("title",{children:"Menu Gdynia — Moshi Moshi Sushi"}),s.jsx("meta",{name:"description",content:"Pełne menu restauracji Moshi Moshi Sushi w Gdyni (Abrahama 52) — sushi, sashimi, dania gorące, napoje. Wersja polska i angielska."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/menu/gdynia"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/menu/gdynia"}),s.jsx("meta",{property:"og:title",content:"Menu Gdynia — Moshi Moshi Sushi"})]}),s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("div",{className:"relative w-full h-[300px] md:h-[350px] bg-cover bg-center flex items-center justify-center",style:{backgroundImage:`url(${ho})`},children:[s.jsx("div",{className:"absolute inset-0 bg-black/60"}),s.jsxs("div",{className:"relative z-10 text-center",children:[s.jsx("p",{className:"text-sm font-heading font-bold tracking-[0.3em] uppercase text-cream/50 mb-2",children:r.kicker}),s.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:r.title}),s.jsx("p",{className:"text-cream/60 mt-3 text-sm tracking-widest uppercase",children:"Abrahama 52"})]})]}),s.jsx("div",{className:"bg-[hsl(var(--brand-navy))] border-b border-cream/10",children:s.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-4 flex flex-col sm:flex-row items-center justify-between gap-3",children:[s.jsx("p",{className:"text-sm text-cream/80",children:r.pdfPrompt}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"inline-flex items-center rounded-full border border-cream/25 overflow-hidden",children:[s.jsx("span",{className:"px-3 py-1.5 text-cream/60",children:s.jsx(L0,{className:"w-3.5 h-3.5"})}),s.jsx("button",{onClick:()=>t("pl"),"aria-pressed":e==="pl","data-umami-event":"click-view-menu","data-umami-event-target":"menu-language","data-umami-event-location":"gdynia","data-umami-event-language":"pl",...ye(),className:`px-3 py-1.5 text-xs font-heading font-bold tracking-[0.15em] uppercase transition-colors ${e==="pl"?"bg-cream text-[hsl(var(--brand-navy))]":"text-cream/70 hover:text-cream"}`,children:"PL"}),s.jsx("button",{onClick:()=>t("en"),"aria-pressed":e==="en","data-umami-event":"click-view-menu","data-umami-event-target":"menu-language","data-umami-event-location":"gdynia","data-umami-event-language":"en",...ye(),className:`px-3 py-1.5 text-xs font-heading font-bold tracking-[0.15em] uppercase transition-colors ${e==="en"?"bg-cream text-[hsl(var(--brand-navy))]":"text-cream/70 hover:text-cream"}`,children:"EN"})]}),s.jsxs("a",{href:e==="pl"?"/menu/Menu_Gdynia_PL.pdf":"/menu/Menu_Gdynia_EN.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-2 text-xs font-heading font-bold tracking-[0.15em] uppercase bg-cream text-[hsl(var(--brand-navy))] hover:bg-cream/90 transition-colors rounded-full","data-umami-event":"click-view-menu","data-umami-event-target":"menu-pdf-download","data-umami-event-location":"gdynia","data-umami-event-language":e,...ye(),children:[s.jsx(I0,{className:"w-3.5 h-3.5"}),r.pdfBtn]})]})]})}),s.jsx("div",{className:"section-dark py-16 md:py-24 px-6 md:px-16",children:s.jsxs("div",{className:"max-w-5xl mx-auto 
304space-y-16",children:[yP.map(a=>{const o=typeof a.title=="string"?a.title:a.title.pl;return s.jsx(tb,{cat:{...a,image:gP[o]},lang:e},o)}),s.jsx("p",{className:"text-cream/60 text-xs text-center",children:r.footnote1}),s.jsx("p",{className:"text-cream/60 text-xs text-center",children:r.footnote2})]})})]}),s.jsx(Pn,{})]})},vP="/assets/reservation-hero-x3-5fDX8.jpg",wP={sopot:"https://widget.thefork.com/pl/d3489a26-133f-49a5-8686-024ce1ceeb95?step=date",gdynia:"https://widget.thefork.com/pl/521d15a5-7136-4937-895a-16690bc1c150?step=date"},bP=()=>{const[e,t]=m.useState("sopot"),n=m.useRef(null);return s.jsxs("div",{className:"min-h-screen",children:[s.jsxs(Za,{children:[s.jsx("title",{children:"Rezerwacje — Moshi Moshi Sushi Gdynia i Sopot"}),s.jsx("meta",{name:"description",content:"Zarezerwuj stolik online w restauracji Moshi Moshi Sushi w Gdyni lub Sopocie."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/rezerwacje"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/rezerwacje"}),s.jsx("meta",{property:"og:title",content:"Rezerwacje — Moshi Moshi Sushi"})]}),s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("div",{className:"relative py-16 md:py-28 text-center overflow-hidden",children:[s.jsx("img",{src:vP,alt:"Sushi platter",width:1920,height:768,className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-black/60"}),s.jsxs("div",{className:"relative z-10",children:[s.jsx("p",{className:"text-xs md:text-sm font-heading font-bold tracking-[0.3em] uppercase text-primary mb-3",children:"Moshi Moshi Sushi"}),s.jsx("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:"REZERWACJE"}),s.jsx("p",{className:"text-cream/50 mt-2 md:mt-3 text-xs md:text-sm tracking-widest uppercase max-w-md mx-auto px-4",children:"Zarezerwuj stolik i ciesz się wyjątkowym sushi"})]})]}),s.jsx("div",{className:"section-dark py-10 md:py-20 px-4",children:s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-8 md:mb-12",children:[s.jsxs("p",{className:"text-cream/40 text-xs uppercase tracking-[0.2em] font-heading mb-4 md:mb-6 flex items-center justify-center gap-2",children:[s.jsx(Fa,{className:"w-3.5 h-3.5"}),"Wybierz lokal"]}),s.jsx("div",{className:"flex justify-center gap-4",children:["sopot","gdynia"].map(r=>s.jsx("button",{onClick:()=>{t(r),setTimeout(()=>{var a;(a=n.current)==null||a.scrollIntoView({behavior:"smooth",block:"start"})},100)},className:te("px-8 md:px-12 py-3 md:py-4 rounded-2xl text-sm md:text-base font-heading font-bold tracking-[0.15em] uppercase transition-all duration-300 border",e===r?"bg-primary text-primary-foreground border-primary shadow-lg shadow-primary/20 scale-105":"bg-white/5 text-cream/60 border-white/10 hover:border-white/20 hover:text-cream hover:scale-105"),"data-umami-event":"click-book","data-umami-event-target":"reservation-page","data-umami-event-location":r,...ye(),children:r},r))})]}),s.jsxs("div",{ref:n,className:"animate-fade-in",children:[s.jsxs("h2",{className:"font-heading font-bold text-cream text-lg md:text-2xl tracking-[0.15em] uppercase text-center mb-4 md:mb-6",children:["Moshi Moshi Sushi ",s.jsx("span",{className:"text-primary capitalize",children:e})]}),s.jsx("div",{className:"rounded-3xl overflow-hidden border border-white/10 bg-white",children:s.jsx("iframe",{src:wP[e],title:`Rezerwacja - Moshi Moshi ${e}`,className:"w-full border-0 block",style:{height:"780px",minHeight:"600px"},allow:"payment",loading:"lazy"},e)})]})]})})]}),s.jsx(Pn,{})]})},kP="/assets/food-chef-Dq2FKWLV.jpg",jP="/assets/food-plate-D-tyxrCL.jpg",SP="/assets/food-box-ywB9B6Nh.jpg",NP="/assets/interior-sopot-1-DtZzlsqk.jpg",EP="/assets/interior-gdynia-2-CQBaTpc1.jpg",zP="/assets/interior-gdynia-3-DF52oODo.jpg",CP="/assets/interior-gdynia-bar-OyfYtjxp.jpg",AP="/assets/interior-bar-BnbtmsSV.jpg",TP="/assets/interior-w-sercu-BNo-NGFd.jpg",ss=[{src:ef,alt:"Talerz sushi",span:"md:col-span-2 md:row-span-2"},{src:nf,alt:"Nigiri z tuńczykiem"},{src:tf,alt:"Futomaki z łososiem"},{src:Tw,alt:"Sashimi"},{src:Pw,alt:"Uramaki"},{src:jP,alt:"Talerz sushi",span:"md:col-span-2"},{src:NP,alt:"Wnętrze restauracji Sopot",span:"md:col-span-2"},{src:Xp,alt:"Sushi master przy pracy"},{src:kP,alt:"Sushi master w kuchni"},{src:TP,alt:"Sala restauracyjna",span:"md:col-span-2"},{src:AP,alt:"Bar restauracji",span:"md:col-span-2"},{src:EP,alt:"Wnętrze restauracji Gdynia"},{src:zP,alt:"Lampiony w restauracji Gdynia"},{src:CP,alt:"Bar w restauracji Gdynia"},{src:Rw,alt:"Japońskie herbaty"},{src:SP,alt:"Sushi box na wynos"}],PP=()=>{const e=m.useRef(null),[t,n]=m.useState(!1),[r,a]=m.useState(null);m.useEffect(()=>
304{const u=new IntersectionObserver(([d])=>{d.isIntersecting&&(n(!0),u.disconnect())},{threshold:.05});return e.current&&u.observe(e.current),()=>u.disconnect()},[]);const o=()=>a(null),i=()=>a(u=>u===null?u:(u-1+ss.length)%ss.length),l=()=>a(u=>u===null?u:(u+1)%ss.length);m.useEffect(()=>{if(r===null)return;const u=d=>{d.key==="Escape"&&o(),d.key==="ArrowLeft"&&i(),d.key==="ArrowRight"&&l()};return document.addEventListener("keydown",u),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",u),document.body.style.overflow=""}},[r]);const c=r===null?null:ss[r];return s.jsxs("div",{className:"min-h-screen",children:[s.jsxs(Za,{children:[s.jsx("title",{children:"Galeria — Moshi Moshi Sushi Gdynia i Sopot"}),s.jsx("meta",{name:"description",content:"Zdjęcia potraw, sushi masterów oraz wnętrz restauracji Moshi Moshi Sushi w Gdyni i Sopocie."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/galeria"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/galeria"}),s.jsx("meta",{property:"og:title",content:"Galeria — Moshi Moshi Sushi"})]}),s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("div",{className:"bg-gradient-to-b from-black via-black/95 to-background px-4 pb-16 pt-28 text-center md:pb-20 md:pt-32",children:[s.jsx("p",{className:"text-sm font-heading font-bold tracking-[0.3em] uppercase text-primary mb-3",children:"Moshi Moshi Sushi"}),s.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-heading font-bold text-cream tracking-[0.15em] uppercase",children:"GALERIA"}),s.jsx("p",{className:"text-cream/50 mt-3 text-sm tracking-widest uppercase max-w-md mx-auto",children:"Nasze potrawy i restauracje"})]}),s.jsx("section",{className:"section-dark py-16 px-4",children:s.jsx("div",{className:"max-w-6xl mx-auto",children:s.jsx("div",{ref:e,className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:ss.map((u,d)=>s.jsx("button",{type:"button",onClick:()=>a(d),className:`group overflow-hidden rounded-lg text-left focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background ${u.span||""}`,style:{opacity:t?1:0,transform:t?"scale(1)":"scale(0.95)",transition:`opacity 0.5s ease-out ${Math.min(d*.04,1.5)}s, transform 0.5s ease-out ${Math.min(d*.04,1.5)}s`},children:s.jsx("img",{src:u.src,alt:u.alt,className:"w-full h-64 md:h-72 object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"})},d))})})})]}),c&&s.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/95 px-4 py-6",role:"dialog","aria-modal":"true","aria-label":"Podgląd zdjęcia",children:[s.jsx("button",{type:"button",onClick:o,className:"absolute right-4 top-4 flex h-11 w-11 items-center justify-center rounded-full border border-white/15 bg-white/10 text-white transition hover:bg-white/20","aria-label":"Zamknij podgląd",children:s.jsx(no,{className:"h-5 w-5"})}),s.jsx("button",{type:"button",onClick:i,className:"absolute left-3 top-1/2 flex h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full border border-white/15 bg-white/10 text-white transition hover:bg-white/20 md:left-8","aria-label":"Poprzednie zdjęcie",children:s.jsx(rz,{className:"h-7 w-7"})}),s.jsx("img",{src:c.src,alt:c.alt,className:"max-h-[82vh] max-w-[92vw] rounded-xl object-contain shadow-2xl shadow-black"}),s.jsx("button",{type:"button",onClick:l,className:"absolute right-3 top-1/2 flex h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full border border-white/15 bg-white/10 text-white transition hover:bg-white/20 md:right-8","aria-label":"Następne zdjęcie",children:s.jsx(az,{className:"h-7 w-7"})}),s.jsxs("p",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-white/10 px-4 py-2 text-xs font-heading font-bold uppercase tracking-[0.18em] text-white/70",children:[r+1," / ",ss.length]})]}),s.jsx(Pn,{})]})},RP="/assets/zamow-online-hero-D5M6wuM3.jpg",Mg={sopot:{label:"Sopot",address:"ul. Bohaterów Monte Cassino 63/1, 81-767 Sopot",phone:"785 300 800"},gdynia:{label:"Gdynia",address:"ul. Antoniego Abrahama 52, wejście od ul. Władysława IV, 81-395 Gdynia",phone:"58 62
3040 11 11"}},nb=[{value:"cash_on_pickup",label:"Gotówka"},{value:"card_on_pickup",label:"Karta"},{value:"przelewy24",label:"Przelewy24"}],OP=[{id:"sopot-pickup",locationId:"sopot",locationSlug:"sopot",name:"Odbiór osobisty",method:"pickup",city:null,deliveryFeeCents:0,freeDeliveryFromCents:0,minOrderCents:0,packagingFeeCents:0},{id:"gdynia-pickup",locationId:"gdynia",locationSlug:"gdynia",name:"Odbiór osobisty",method:"pickup",city:null,deliveryFeeCents:0,freeDeliveryFromCents:0,minOrderCents:0,packagingFeeCents:0},{id:"sopot-delivery",locationId:"sopot",locationSlug:"sopot",name:"Sopot: dostawa",method:"delivery",city:"Sopot",deliveryFeeCents:1e3,freeDeliveryFromCents:1e4,minOrderCents:5e3,packagingFeeCents:0},{id:"sopot-gdansk-delivery",locationId:"sopot",locationSlug:"sopot",name:"Gdańsk: dostawa",method:"delivery",city:"Gdańsk",deliveryFeeCents:1e3,freeDeliveryFromCents:15e3,minOrderCents:5e3,packagingFeeCents:0},{id:"gdynia-delivery",locationId:"gdynia",locationSlug:"gdynia",name:"Gdynia: dostawa",method:"delivery",city:"Gdynia",deliveryFeeCents:1e3,freeDeliveryFromCents:1e4,minOrderCents:5e3,packagingFeeCents:0}],MP=["sopot","gdynia"].flatMap(e=>["delivery","pickup"].flatMap(t=>[0,1,2,3,4,5,6].map(n=>({locationSlug:e,method:t,dayOfWeek:n,startTime:e==="gdynia"&&(n===5||n===6)?"13:30":"12:30",endTime:e==="sopot"?"21:10":"20:10",slotFrequencyMinutes:30,orderCutoffMinutes:0})))),rb={0:{h:20,m:15},1:{h:20,m:15},2:{h:20,m:15},3:{h:20,m:15},4:{h:20,m:15},5:{h:21,m:15},6:{h:21,m:15}},of="Europe/Warsaw",IP={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};function bi(e){const t=new Intl.DateTimeFormat("en-US",{timeZone:of,year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",weekday:"short",hour12:!1}).formatToParts(e),n=r=>{var a;return((a=t.find(o=>o.type===r))==null?void 0:a.value)??"0"};return{year:Number(n("year")),month:Number(n("month"))-1,day:Number(n("day")),dow:IP[n("weekday")]??0,h:Number(n("hour")),m:Number(n("minute")),s:Number(n("second"))}}function Ig(e){const t=bi(e);return Date.UTC(t.year,t.month,t.day,t.h,t.m,t.s)-Math.floor(e.getTime()/1e3)*1e3}function dl(e,t,n,r,a){const o=new Date(Date.UTC(e,t,n,r,a,0,0)),i=Ig(o),l=new Date(Date.UTC(e,t,n,r,a,0,0)-i),c=Ig(l);return c===i?l:new Date(Date.UTC(e,t,n,r,a,0,0)-c)}function ab(e=new Date,t={}){if(t.bypass)return!0;const n=bi(e),r=rb[n.dow];return n.h*60+n.m<r.h*60+r.m}function _g(e=new Date){const t=bi(e),n=rb[t.dow];return`${String(n.h).padStart(2,"0")}:${String(n.m).padStart(2,"0")}`}function Ie(e){return new Intl.NumberFormat("pl-PL",{style:"currency",currency:"PLN"}).format(e/100)}function _P(e){const t=e.replace(/\D/g,"").slice(0,5);return t.length<=2?t:`${t.slice(0,2)}-${t.slice(2)}`}function LP(e,t){if(!t||t.length<5)return null;const n=t.slice(0,2);if(n==="81"){if(t.startsWith("81-7")||t.startsWith("81-8")){const a=e.find(o=>o.locationSlug==="sopot"&&o.method==="delivery"&&o.city==="Sopot");return a?{locationSlug:"sopot",zone:a,city:"Sopot"}:null}const r=e.find(a=>a.locationSlug==="gdynia"&&a.method==="delivery"&&a.city==="Gdynia");return r?{locationSlug:"gdynia",zone:r,city:"Gdynia"}:null}if(n==="80"){const r=e.find(a=>a.locationSlug==="sopot"&&a.method==="delivery"&&a.city==="Gdańsk");return r?{locationSlug:"sopot",zone:r,city:"Gdańsk"}:null}return null}function DP(e,t){return!e||e.freeDeliveryFromCents&&t>=e.freeDeliveryFromCents?0:e.deliveryFeeCents}const FP="asap",UP={delivery:60,pickup:0};function Lg(e){const[t,n]=e.split(":").map(Number);return t*60+(n||0)}function Dg(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function $P(e){return`${e.year}-${String(e.month+1).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function Fg(e,t){return e===0?"dzisiaj":e===1?"jutro":t.toLocaleDateString("pl-PL",{timeZone:of,weekday:"short",day:"2-digit",month:"2-digit"})}function Ug(e,t,n,r={}){const a=new Date;if(!ab(a,r))return[];const o=bi(a),i=[];let l=null;for(let u=0;u<7;u+=1){const d=dl(o.year,o.month,o.day+u,0,0),p=bi(d),f=$P(p),h=e.filter(k=>k.locationSlug===t&&k.method===n&&k.dayOfWeek===p.dow);for(const k of h){const g=Lg(k.startTime),b=Lg(k.endTime),x=Math.max(15,k.slotFrequencyMinutes||60),y=dl(p.year,p.month,p.day,Math.floor(g/60),g%60),w=dl(p.year,p.month,p.day,Math.floor(b/60),b%60),S=Math.max(0,k.orderCutoffMinutes||0,UP[n]||0)*6e4,N=new Date(a.getTime()+S);if(!l&&N<=w){const E=N<y?y:N,T=E.toLocaleTimeString("pl-PL",{timeZone:of,hour:"2-digit",minute:"2-digit"}),P=Fg(u,E);l={value:FP,slotAt:E.toISOString(),label:u===0?`Jak najszybciej (≈ ${T})`:`Jak najszybciej (${P} ≈ ${T})`,asap:!0}}for(let E=g;E+x<=b;E+=x){const T=dl(p.year,p.month,p.day,Math.floor(E/60),E%60);if(T.getTime()<N.getTime())continue;const P=T.toISOString(),L=Dg(E),K=Dg(E+x);i.push({value:`${f}_${L}_${K}`,slotAt:P,label:`${Fg(u,T)} · ${L}—${K}`})}}}return(l?[l,...i]:i).slice(0,60)}function Am(e){return(e instanceof Date?e:new Date(e)).toLocaleStr
304ing("pl-PL",{timeZone:"Europe/Warsaw",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}async function BP(e){const t=e?`?location=${e}`:"",n=await fetch(`/api/products${t}`),r=await n.json();if(!n.ok)throw new Error((r==null?void 0:r.error)||"Nie udało się pobrać menu");return r.products}const zc=["Lunch","Voucher","Przystawki","Sałatki&Vege","Zupy","Dania Gorące","Nigiri","Gunkan","California","Hosomaki","Futomaki","Tatar","Temaki","Sashimi","Zestawy","Dania dla dzieci","Bez kategorii"],KP=[3447,3462,3464,3466,3468,3578,3336,3470,3434,3439,3340,3341],WP={pending:"Oczekuje na płatność online",paid:"Zapłacono",cash_on_pickup:"Płatność gotówką",card_on_pickup:"Płatność kartą",failed:"Płatność nieudana"};function HP(e,t){return e==="przelewy24"?t:e}const VP="shop-order-revenue",GP="shop-order-success-page",ZP="mm_revenue_tracked:",YP="mm_success_page_tracked:";function QP(e){return e.total_cents<=0?!1:e.payment_provider==="przelewy24"?e.payment_status==="paid":e.payment_provider==="cash_on_pickup"||e.payment_provider==="card_on_pickup"}function qP(e){return`${ZP}${e}`}function JP(e){return`${YP}${e}`}function XP(e){let t=5381;for(let n=0;n<e.length;n+=1)t=t*33^e.charCodeAt(n);return`fallback-${(t>>>0).toString(36)}`}async function eR(e){const t=e.trim().toLowerCase();if(!t)return null;try{const n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t));return Array.from(new Uint8Array(n),r=>r.toString(16).padStart(2,"0")).join("")}catch{return XP(t)}}function sb(){return new Promise(e=>{let t=0;const n=()=>{const r=window.umami;if(r!=null&&r.track)return e(r);if(t+=1,t>=20)return e(null);window.setTimeout(n,250)};n()})}async function tR(e){if(!QP(e))return;const t=qP(e.order_number);if(localStorage.getItem(t))return;const n=await sb();if(!(n!=null&&n.track))return;const r=await eR(e.customer_email||e.customer_phone||e.order_number);r&&n.identify&&await n.identify({id:`shop:${r.slice(0,45)}`,source:"moshimoshi-shop",lastOrderNumber:e.order_number}),await n.track(VP,{revenue:Number((e.total_cents/100).toFixed(2)),currency:"PLN",orderNumber:e.order_number,paymentProvider:e.payment_provider,paymentStatus:e.payment_status,fulfillmentMethod:e.fulfillment_method,promoCode:e.promo_code||void 0,itemCount:e.moshimoshi_order_items.reduce((a,o)=>a+o.quantity,0),...ou()}),localStorage.setItem(t,String(Date.now()))}async function nR(e){const t=JP(e.order_number);if(localStorage.getItem(t))return;const n=await sb();n!=null&&n.track&&(await n.track(GP,{orderNumber:e.order_number,paymentProvider:e.payment_provider,paymentStatus:e.payment_status,fulfillmentMethod:e.fulfillment_method,total:Number((e.total_cents/100).toFixed(2)),currency:"PLN",...ou()}),localStorage.setItem(t,String(Date.now())))}const _l=e=>e.replace(/^\uFEFF/,""),$g=e=>{const t=e.categories.map(r=>_l(r.name)).find(Boolean)||"Bez kategorii",n=zc.indexOf(t);return n===-1?zc.length:n},Bg=e=>{const t=e.sourceId?KP.indexOf(e.sourceId):-1;return t===-1?Number.MAX_SAFE_INTEGER:t},rR=()=>{var dr,Li;const[e,t]=m.useState([]),[n,r]=m.useState(OP),[a,o]=m.useState(MP),[i,l]=m.useState(!0),[c,u]=m.useState("WSZYSTKO"),[d,p]=m.useState([]),[f,h]=m.useState("delivery"),[k,g]=m.useState("sopot"),[b,x]=m.useState(null),[y,w]=m.useState(""),[j,S]=m.useState(""),[N,E]=m.useState({name:"",email:"",phone:""}),[T,P]=m.useState({street:"",buildingNumber:"",apartmentNumber:""}),[L,K]=m.useState(""),[F,ee]=m.useState(!1),[M,W]=m.useState(""),[_,U]=m.useState(""),[z,R]=m.useState(null),[D,X]=m.useState(""),[Y,ne]=m.useState(!1),[Z,ve]=m.useState(null),[_e,B]=m.useState(!1),[we,Ce]=m.useState(!1),[be,oe]=m.useState(!1),[V,$e]=m.useState(null),[ie,Le]=m.useState(!1),[Ve,Bt]=m.useState(null),[Kt,pt]=m.useState(!1),[Ae,nt]=m.useState([]),G=m.useRef(null),Q=new URLSearchParams(window.location.search),ue=Q.get("order"),Pe=Q.get("method");m.useEffect(()=>{BP().then(t).catch(C=>W(C instanceof Error?C.message:"Nie udało się pobrać menu")).finally(()=>l(!1))},[]),m.useEffect(()=>{fetch("/api/shop-settings").then(C=>C.json()).then(C=>{Array.isArray(C==null?void 0:C.deliveryZones)&&C.deliveryZones.length>0&&r(C.deliveryZones),Array.isArray(C==null?void 0:C.timeSlotRules)&&C.timeSlotRules.length>0&&o(C.timeSlotRules)}).catch(()=>{})},[]);const de=m.useCallback(async(C={})=>
304{if(ue){C.silent||Le(!0);try{const J=await fetch(`/api/order-summary?order=${encodeURIComponent(ue)}`),je=await J.json();if(!J.ok)throw new Error((je==null?void 0:je.error)||"Nie udało się pobrać podsumowania");$e(je.order)}catch(J){W(J instanceof Error?J.message:"Nie udało się pobrać podsumowania")}finally{C.silent||Le(!1)}}},[ue]);m.useEffect(()=>{de()},[de]),m.useEffect(()=>{if(!V||V.payment_provider!=="przelewy24"||V.payment_status!=="pending")return;const C=window.setInterval(()=>void de({silent:!0}),3e3),J=window.setTimeout(()=>window.clearInterval(C),6e4);return()=>{window.clearInterval(C),window.clearTimeout(J)}},[de,V]),m.useEffect(()=>{V&&(nR(V).catch(C=>console.warn("[umami] success page tracking failed",C)),tR(V).catch(C=>console.warn("[umami] revenue tracking failed",C)))},[V]);const Xe=m.useMemo(()=>{const C=new Set(e.flatMap(Re=>Re.categories.map(Ne=>_l(Ne.name)))),J=zc.filter(Re=>C.has(Re)),je=Array.from(C).filter(Re=>!zc.includes(Re)).sort((Re,Ne)=>Re.localeCompare(Ne,"pl"));return["WSZYSTKO",...J,...je]},[e]),me=m.useMemo(()=>f==="delivery"?LP(n,y):null,[n,f,y]),ce=f==="pickup"?k:(me==null?void 0:me.locationSlug)??"sopot",De=(me==null?void 0:me.city)??"",et=(me==null?void 0:me.zone)??null,Pt=m.useCallback((C,J)=>J==="sopot"?C.availableSopot!==!1:C.availableGdynia!==!1,[]),gt=m.useMemo(()=>[...(c==="WSZYSTKO"?e:e.filter(je=>je.categories.some(Re=>_l(Re.name)===c))).filter(je=>Pt(je,ce))].sort((je,Re)=>{const Ne=Bg(je)-Bg(Re);if(Ne!==0)return Ne;const Ot=$g(je)-$g(Re);return Ot!==0?Ot:je.name.localeCompare(Re.name,"pl")}),[c,e,ce,Pt]);m.useEffect(()=>{if(e.length===0||d.length===0)return;const C=new Set(e.filter(Ne=>Pt(Ne,ce)).map(Ne=>Ne.id)),J=d.filter(Ne=>!C.has(Ne.id));if(J.length===0)return;p(Ne=>Ne.filter(Ot=>C.has(Ot.id)));const je=ce==="sopot"?"Sopocie":"Gdyni",Re=J.map(Ne=>Ne.name).join(", ");W(`Usunięto z koszyka pozycje niedostępne w ${je}: ${Re}.`)},[ce,e,d,Pt]);const re=d.reduce((C,J)=>C+J.priceCents*J.quantity,0),rt=d.filter(C=>!C.excludedFromDelivery).reduce((C,J)=>C+J.priceCents*J.quantity,0),Rt=d.length>0&&rt===0,on=f==="delivery"&&!Rt?DP(et,rt):0,le=m.useMemo(()=>n.find(C=>C.locationSlug===(f==="pickup"?k:ce)&&C.method===f)??null,[n,f,k,ce]),Ze=f==="delivery"?et:le,ln=d.reduce((C,J)=>C+(J.excludedFromDelivery?0:Math.max(0,J.packagingFeeCents??0)*J.quantity),0),Ja=ln===0&&!Rt?Math.max(0,(Ze==null?void 0:Ze.packagingFeeCents)??0):0,Wt=ln+Ja,Ht=z?Math.min(re,Math.floor(re*z.discountPercent/100)):0,xn=Math.max(0,re-Ht)+on+Wt,[,se]=m.useState(0);m.useEffect(()=>{const C=window.setInterval(()=>se(J=>J+1),6e4);return()=>clearInterval(C)},[]);const Se=m.useMemo(()=>{if(typeof window>"u")return!1;const C=new URLSearchParams(window.location.search);return C.get("debug")==="1"||C.get("x")==="debug"},[]),fe=ab(void 0,{bypass:Se}),it=Ug(a,ce,f,{bypass:Se});m.useEffect(()=>{if(it.length!==0&&(!j||!it.some(C=>C.value===j))){const C=it.find(J=>J.asap);S(C?C.value:it[0].value)}},[it,j]);const jt=d.reduce((C,J)=>C+J.quantity,0),vt=(C,J=[])=>{W("");const je=J.reduce((Ne,Ot)=>Ne+Ot.priceCents,0),Re=`${C.id}:${J.map(Ne=>Ne.id).sort().join("|")}`;Bt(Re),pt(!0),p(Ne=>Ne.find(Mt=>Mt.lineId===Re)?Ne.map(Mt=>Mt.lineId===Re?{...Mt,quantity:Mt.quantity+1}:Mt):[...Ne,{...C,lineId:Re,selectedAddOns:J,priceCents:C.priceCents+je,quantity:1}]),window.setTimeout(()=>Bt(Ne=>Ne===Re?null:Ne),900),window.setTimeout(()=>pt(!1),650),window.requestAnimationFrame(()=>{var Ne;(Ne=G.current)==null||Ne.scrollIntoView({behavior:"smooth",block:"nearest"})})},ft=(C,J)=>{p(je=>je.map(Re=>Re.lineId===C?{...Re,quantity:Re.quantity+J}:Re).filter(Re=>Re.quantity>0))},lt=async()=>{X("");const C=_.trim().toUpperCase();if(!C){R(null);return}ne(!0);try{const J=await fetch("/api/promo-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:C,subtotalCents:re})}),je=await J.json();if(!J.ok){R(null),X((je==null?void 0:je.error)||"Nieprawidłowy kod");return}R({code:je.promo.code,discountPercent:je.promo.discountPercent}),U(je.promo.code)}catch{X("Nie udało się sprawdzić kodu")}finally{ne(!1)}},wt=()=>{R(null),U(""),X("")},Ii=C=>{h(C),S(""),W("")},_i=C=>{g(C),S("")},yo=async()=>
304{if(W(""),d.length===0)return W("Koszyk jest pusty");if(f==="delivery"&&!y)return W("Podaj kod pocztowy dostawy");if(f==="delivery"&&!me)return W("Nie dowozimy pod ten kod pocztowy — wybierz odbiór osobisty");if(f==="delivery"&&(!T.street||!T.buildingNumber))return W("Podaj ulicę i numer budynku");if(f==="delivery"&&et&&re<et.minOrderCents)return W(`Minimalna wartość zamówienia to ${Ie(et.minOrderCents)}`);if(!j)return W("Wybierz termin realizacji");const J=Ug(a,ce,f).find(Mt=>Mt.value===j);if(!J)return S(""),W("Wybrany termin jest już nieaktualny. Wybierz nowy termin.");if(!b)return W("Wybierz sposób płatności");if(!N.name||!N.email||!N.phone)return W("Podaj dane kontaktowe");if(!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(N.email.trim()))return W("Podaj poprawny adres email");if(N.phone.replace(/[^0-9]/g,"").length<9)return W("Podaj poprawny numer telefonu (min. 9 cyfr)");if(!we)return W("Zaakceptuj regulamin przed złożeniem zamówienia");ee(!0);const Ne=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locationSlug:ce,fulfillmentMethod:f,zoneCity:et==null?void 0:et.city,slotValue:J.value,debug:Se?1:void 0,paymentMethod:b,customer:N,address:f==="delivery"?{...T,postalCode:y,city:De}:void 0,notes:L,promoCode:(z==null?void 0:z.code)||null,items:d.map(Mt=>({productId:Mt.id,name:Mt.name,quantity:Mt.quantity,unitPriceCents:Mt.priceCents,selectedAddOns:Mt.selectedAddOns||[]}))})}),Ot=await Ne.json();if(ee(!1),!Ne.ok)return W(Ot.error||"Nie udało się złożyć zamówienia");window.location.assign(Ot.redirectUrl)};return s.jsxs("div",{className:"shop-mobile-safe min-h-screen w-full overflow-x-hidden bg-[radial-gradient(circle_at_top_left,hsl(var(--brand-blue)/0.26),transparent_34rem),linear-gradient(180deg,hsl(var(--brand-navy)),#07101d_58%,hsl(var(--brand-navy)))] text-cream",children:[s.jsxs(Za,{children:[s.jsx("title",{children:"Zamów Online — Moshi Moshi Sushi z dostawą"}),s.jsx("meta",{name:"description",content:"Zamów sushi online z Moshi Moshi Sushi w Gdyni i Sopocie. Dostawa lub odbiór osobisty, płatność online lub przy odbiorze."}),s.jsx("link",{rel:"canonical",href:"https://sushi-site-cloner.lovable.app/zamow-online"}),s.jsx("meta",{property:"og:url",content:"https://sushi-site-cloner.lovable.app/zamow-online"}),s.jsx("meta",{property:"og:title",content:"Zamów Online — Moshi Moshi Sushi"})]}),Se&&s.jsxs("div",{className:"sticky top-0 z-[60] w-full bg-amber-500 px-3 py-1.5 text-center font-heading text-[11px] font-bold uppercase tracking-[0.18em] text-[hsl(var(--brand-navy))] shadow-lg",children:["Debug · bypass godzin otwarcia (zdejmij ",s.jsx("code",{children:"?debug=1"})," z URL, żeby wrócić do produkcji)"]}),s.jsx(Tn,{}),s.jsxs("main",{children:[s.jsxs("section",{className:"relative overflow-hidden px-3 py-16 text-center sm:px-4 md:py-28",children:[s.jsx("img",{src:RP,alt:"Sushi",className:"absolute inset-0 h-full w-full object-cover opacity-45"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/70 via-[hsl(var(--brand-navy))]/78 to-[hsl(var(--brand-navy))]"}),s.jsx("div",{className:"absolute left-1/2 top-16 h-64 w-64 -translate-x-1/2 rounded-full bg-cream/10 blur-3xl"}),s.jsxs("div",{className:"relative mx-auto max-w-4xl",children:[s.jsx("p",{className:"mb-4 text-[10px] font-heading font-bold uppercase tracking-[0.35em] text-cream/65",children:"Moshi Moshi Sushi"}),s.jsx("h1",{className:"text-5xl leading-none drop-shadow-2xl sm:text-6xl md:text-8xl lg:text-9xl",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.035em"},children:"Zamów online"})]})]}),ue&&s.jsx("section",{className:"px-4 pt-10",children:s.jsxs("div",{className:"mx-auto max-w-4xl rounded-2xl border border-cream/15 bg-cream/[0.07] p-5 shadow-2xl shadow-black/20 backdrop-blur md:p-7",children:[s.jsx("p",{className:"font-heading text-xs font-bold uppercase tracking-[0.25em] text-cream/60",children:"Zamówienie przyjęte"}),s.jsxs("div",{className:"mt-2 flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[s.jsxs("div",{children:[s.jsxs("h2",{className:"text-2xl font-heading font-bold text-cream md:text-3xl",children:["Numer: ",ue]}),s.jsx("p",{className:"mt-2 text-sm text-cream/65",children:Pe==="cash_on_pickup"?"Płatność gotówką.":Pe==="card_on_pickup"?"Płatność kartą.":"Jeśli płatność online została zakończona, restauracja otrzyma potwierdzenie i rozpocznie realizację."})]}),ie?s.jsx(Dt,{className:"h-6 w-6 animate-spin text-cream/50"}):null]}),V?s.jsxs("div",{className:"mt-6 grid gap-5 text-left md:grid-cols-[1fr_260px]",children:[s.jsxs("div",{className:"rounded-2xl border border-cream/10 bg-black/15 p-4",children:[s.jsx("h3",{className:"font-heading text-lg font-bold uppercase tracking-[0.12em] text-cream",children:"Co zamówiłeś"}),s.jsx("div",{className:"mt-3 space-y-2",children:V.moshimoshi_order_items.map((C,J)=>s.jsxs("div",{className:"flex justify-between gap-4 text-sm text-cream/70",children:[s.jsxs("span",{children:[C.quantity," × ",C.product_name]}),s.jsx("span",{className:"whitespace-nowrap",children:Ie(C.total_price_cents)})]},`${C.product_name}-${J}`))}),s.jsxs("div",{className:"mt-4 border-t border-cream/10 pt-3 text-sm",children:[s.jsxs("div",{className:"flex justify-between text-cream/50",children:[s.jsx("span",{children:"Produkty"}),s.jsx("span",{children:Ie(V.subtotal_cents)})]}),s.jsxs("div",{className:"flex justify-between text-cream/50",children:[s.jsx("span",{children:"Dostawa"}),s.jsx("span",{children:Ie(V.delivery_fee_cents)})]}),V.packaging_fee_cents?s.jsxs("div",{className:"flex justify-between text-cream/50",children:[s.jsx("span",{children:"Opakowania"}),s.jsx("span",{children:Ie(V.packaging_fee_cents)})]}):null,V.promo_discount_cents?s.jsxs("div",{className:"flex justify-between text-emerald-200",children:[s.jsxs("span",{children:["Rabat",V.promo_code?` (${V.promo_code})`:""]}),s.jsxs("span",{children:["-",Ie(V.promo_discount_cents)]})]}
304):null,s.jsxs("div",{className:"mt-2 flex justify-between font-heading text-xl font-bold text-cream",children:[s.jsx("span",{children:"Razem"}),s.jsx("span",{children:Ie(V.total_cents)})]})]})]}),s.jsxs("div",{className:"rounded-2xl border border-cream/10 bg-black/15 p-4 text-sm text-cream/65",children:[s.jsx("h3",{className:"font-heading text-lg font-bold uppercase tracking-[0.12em] text-cream",children:"Szczegóły"}),s.jsxs("p",{className:"mt-3",children:["Termin: ",Am(V.slot_at)]}),s.jsx("p",{className:"mt-2",children:V.fulfillment_method==="delivery"?`${V.street||""} ${V.building_number||""}${V.apartment_number?`/${V.apartment_number}`:""}, ${V.postal_code||""} ${V.city||""}`:"Odbiór osobisty"}),s.jsxs("div",{className:"mt-3 rounded-xl border border-cream/10 bg-cream/5 p-3",children:[s.jsx("p",{className:"font-semibold text-cream",children:((dr=nb.find(C=>C.value===V.payment_provider))==null?void 0:dr.label)||V.payment_provider}),V.payment_provider==="przelewy24"?s.jsx("p",{className:"mt-1 text-cream/65",children:WP[HP(V.payment_provider,V.payment_status)]||V.payment_status}):null]}),V.notes?s.jsxs("p",{className:"mt-2",children:["Uwagi: ",V.notes]}):null]})]}):ie?null:s.jsx("p",{className:"mt-4 rounded-xl border border-cream/10 bg-black/15 p-3 text-sm text-cream/55",children:"Nie udało się pobrać szczegółów zamówienia, ale numer zamówienia został zapisany powyżej."})]})}),s.jsx("section",{className:"px-3 pb-28 pt-10 sm:px-4 md:px-8 md:py-16",children:s.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-8 lg:grid lg:grid-cols-[minmax(0,1fr)_400px]",children:[s.jsx("div",{className:"space-y-6",children:s.jsxs("div",{className:"rounded-[1.5rem] border border-cream/10 bg-cream/[0.04] shadow-2xl shadow-black/20 backdrop-blur md:rounded-[2rem]",children:[s.jsxs("div",{className:"flex items-center justify-between gap-4 rounded-t-[1.5rem] border-b border-cream/10 bg-black/10 p-5 md:rounded-t-[2rem]",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[10px] uppercase tracking-[0.3em] text-cream/40",children:"Menu"}),s.jsx("h2",{className:"text-2xl md:text-3xl",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.04em"},children:c==="WSZYSTKO"?"Wszystkie pozycje":c})]}),s.jsxs("span",{className:"text-sm text-cream/45",children:[gt.length," pozycji"]})]}),s.jsx("div",{className:"sticky top-20 z-30 border-b border-cream/10 bg-[hsl(var(--brand-navy))]/95 p-3 shadow-lg shadow-black/20 backdrop-blur md:p-4",children:s.jsx("div",{className:"scrollbar-hide flex gap-2 overflow-x-auto pb-1 md:flex-wrap md:overflow-visible md:pb-0",children:Xe.map(C=>s.jsx("button",{onClick:()=>u(C),className:te("shrink-0 rounded-full border px-4 py-2 text-[11px] font-heading font-bold uppercase tracking-[0.14em] transition",c===C?"border-cream bg-cream text-[hsl(var(--brand-navy))]":"border-cream/15 bg-black/10 text-cream/60 hover:border-cream/35 hover:text-cream"),children:C},C))})}),i?s.jsx("div",{className:"flex justify-center py-20 text-cream/60",children:s.jsx(Dt,{className:"h-8 w-8 animate-spin"})}):gt.length===0?s.jsx("div",{className:"py-16 text-center text-sm uppercase tracking-[0.2em] text-cream/40",children:"Brak produktów w tej kategorii"}):s.jsx("div",{className:"divide-y divide-cream/10 px-3 pb-4 sm:px-4",children:gt.map(C=>s.jsxs("article",{role:"button",tabIndex:0,onClick:()=>{nt([]),ve(C)},onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(nt([]),ve(C))},className:"group flex cursor-pointer gap-3 rounded-2xl py-4 transition hover:bg-cream/[0.035] focus:outline-none focus:ring-2 focus:ring-cream/35 sm:gap-4 sm:px-3",children:[s.jsx("div",{className:"flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-2xl bg-gradient-to-br from-cream/10 to-black/20 p-2 ring-1 ring-cream/10 transition group-hover:ring-cream/25 sm:h-24 sm:w-24 sm:p-3",children:C.imageUrl?s.jsx("img",{src:C.imageUrl,alt:C.name,className:"h-full w-full object-contain",loading:"lazy"}):s.jsx(to,{className:"h-8 w-8 text-cream/20"})}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx("h3",{className:"font-heading text-sm font-bold uppercase tracking-[0.06em] text-cream sm:text-base sm:tracking-[0.08em]",children:C.name}),s.jsx("p",{className:"mt-1 line-clamp-2 text-xs leading-relaxed text-cream/50 sm:text-sm",children:C.description||"Moshi Moshi Sushi"}),s.jsxs("div",{className:"mt-2 flex items-center justify-between gap-3",children:[s.jsx("span",{className:"whitespace-nowrap font-heading text-base font-bold text-cream sm:text-lg",children:Ie(C.priceCents)}),s.jsx("button",{onClick:J=>{var je;J.stopPropagation(),(je=C.addOns)!=null&&je.length?(nt([]),ve(C)):vt(C)},className:te("inline-flex min-w-[92px] items-center justify-center gap-1.5 rounded-full px-3.5 py-1.5 text-[11px] font-heading font-bold uppercase tracking-[0.14em] shadow-lg shadow-black/20 transition sm:min-w-[112px] sm:px-5 sm:py-2 sm:text-xs sm:tracking-[0.16em]",Ve!=null&&Ve.startsWith(`${C.id}:`)?"scale-105 bg-emerald-300 text-emerald-950":"bg-cream text-[hsl(var(--brand-navy))] hover:-translate-y-0.5 hover:bg-cream/90"),"data-umami-event":"click-add-to-cart","data-umami-event-target":"shop","data-umami-event-product-id":String(C.id),"data-umami-event-product-name":C.name,...ye(),children:Ve!=null&&Ve.startsWith(`${C.id}:`)?"Dodane +1":s.jsxs(s.Fragment,{children:[s.jsx(qr,{className:"h-3.5 w-3.5"})," Dodaj"]})})]})]})]},C.id))})]})}
304),s.jsxs("aside",{ref:G,className:te("hidden h-fit rounded-[2rem] border border-cream/10 bg-cream/[0.08] p-5 shadow-2xl shadow-black/30 backdrop-blur transition duration-300 lg:sticky lg:top-24 lg:block",Kt?"-translate-y-1 border-emerald-300/60 bg-emerald-300/10 shadow-emerald-950/30 ring-2 ring-emerald-300/30":""),children:[s.jsxs("div",{className:"mb-5 flex items-center justify-between",children:[s.jsx("h2",{className:"font-heading text-lg font-bold uppercase tracking-[0.18em] text-cream",children:"Koszyk"}),s.jsx("span",{className:"rounded-full bg-black/20 px-3 py-1 text-sm text-cream/65",children:jt})]}),s.jsx("div",{className:"max-h-[32vh] space-y-3 overflow-auto pr-1",children:d.length===0?s.jsx("p",{className:"rounded-xl border border-cream/10 p-4 text-sm text-cream/50",children:"Dodaj produkty, aby złożyć zamówienie."}):d.map(C=>{var J;return s.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-black/15 p-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate font-heading text-sm font-bold uppercase tracking-[0.08em] text-cream",children:C.name}),(J=C.selectedAddOns)!=null&&J.length?s.jsxs("p",{className:"mt-1 text-xs text-cream/45",children:["+ ",C.selectedAddOns.map(je=>je.label).join(", ")]}):null,s.jsx("p",{className:"mt-1 text-sm text-cream/60",children:Ie(C.priceCents*C.quantity)})]}),s.jsx(os,{onClick:()=>ft(C.lineId,-1),children:s.jsx(og,{className:"h-3.5 w-3.5"})}),s.jsx("span",{className:"w-5 text-center text-sm font-bold",children:C.quantity}),s.jsx(os,{onClick:()=>ft(C.lineId,1),children:s.jsx(qr,{className:"h-3.5 w-3.5"})}),s.jsx(os,{onClick:()=>ft(C.lineId,-C.quantity),danger:!0,children:s.jsx(Ss,{className:"h-3.5 w-3.5"})})]},C.lineId)})}),s.jsxs("div",{className:"mt-5 space-y-2 border-t border-cream/10 pt-5 text-sm",children:[s.jsxs("div",{className:"flex justify-between text-cream/60",children:[s.jsx("span",{children:"Produkty"}),s.jsx("span",{children:Ie(re)})]}),s.jsxs("div",{className:"flex justify-between text-cream/60",children:[s.jsx("span",{children:"Dostawa"}),s.jsx("span",{children:Ie(on)})]}),Wt?s.jsxs("div",{className:"flex justify-between text-cream/60",children:[s.jsx("span",{children:"Opakowania na wynos"}),s.jsx("span",{children:Ie(Wt)})]}):null,z?s.jsxs("div",{className:"flex justify-between text-emerald-200",children:[s.jsxs("span",{children:["Rabat (",z.code," · -",z.discountPercent,"%)"]}),s.jsxs("span",{children:["-",Ie(Ht)]})]}):null,s.jsxs("div",{className:"flex justify-between font-heading text-xl font-bold text-cream",children:[s.jsx("span",{children:"Razem"}),s.jsx("span",{children:Ie(xn)})]})]}),d.length>0?s.jsxs("div",{className:"mt-4 rounded-xl border border-cream/10 bg-black/15 p-3",children:[s.jsx("p",{className:"mb-2 text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Kod promocyjny"}),z?s.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg bg-emerald-400/10 px-3 py-2 text-sm text-emerald-100",children:[s.jsxs("span",{children:[s.jsx("strong",{children:z.code})," · -",z.discountPercent,"%"]}),s.jsx("button",{type:"button",onClick:wt,className:"text-xs underline underline-offset-4 hover:text-white",children:"Usuń"})]}):s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:_,onChange:C=>U(C.target.value.toUpperCase()),placeholder:"np. MOSHI10",className:"shop-input flex-1",onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),lt())}}),s.jsx("button",{type:"button",onClick:()=>void lt(),disabled:Y||!_.trim(),className:"rounded-full bg-cream px-4 text-xs font-heading font-bold uppercase tracking-[0.14em] text-[hsl(var(--brand-navy))] transition hover:bg-cream/90 disabled:opacity-50",children:Y?"...":"Zastosuj"})]}),D?s.jsx("p",{className:"mt-2 text-xs text-red-200",children:D}):null]}):null,d.length>0&&!_e?s.jsxs("button",{onClick:()=>B(!0),className:"mt-5 inline-flex w-full items-center justify-center gap-2 rounded-full bg-cream px-6 py-4 text-sm font-heading font-bold uppercase tracking-[0.18em] text-[hsl(var(--brand-navy))] transition hover:bg-cream/90","data-umami-event":"click-checkout-open","data-umami-event-target":"shop","data-umami-event-location":"desktop",...ye(),children:["Przejdź do zamówienia ",s.jsx(rg,{className:"h-4 w-4"})]}):null,_e?s.jsx(Kg,{method:f,onMethodChange:Ii,postalCode:y,onPostalCodeChange:w,resolvedCity:De,deliveryZone:et,deliveryFeeCents:on,pickupLocation:k,onPickupLocationChange:_i,address:T,setAddress:P,slots:it,slotAt:j,setSlotAt:S,paymentMethod:b,
304setPaymentMethod:x,customer:N,setCustomer:E,notes:L,setNotes:K,acceptedTerms:we,setAcceptedTerms:Ce,onHide:()=>B(!1)}):null,!fe&&s.jsxs("p",{className:"mt-4 rounded-xl border border-amber-400/25 bg-amber-500/15 p-3 text-sm text-amber-100",children:["Przyjmowanie zamówień zakończone na dziś (do ",_g(),"). Zapraszamy jutro!"]}),M?s.jsx("p",{className:"mt-4 rounded-xl bg-red-500/15 p-3 text-sm text-red-100",children:M}):null,_e?s.jsx("button",{disabled:F||d.length===0||!fe,onClick:yo,className:"mt-5 w-full rounded-full bg-cream px-6 py-4 text-sm font-heading font-bold uppercase tracking-[0.18em] text-[hsl(var(--brand-navy))] transition hover:bg-cream/90 disabled:cursor-not-allowed disabled:opacity-50","data-umami-event":"click-checkout-submit","data-umami-event-target":"shop","data-umami-event-method":f,"data-umami-event-payment":b,...ye(),children:F?"Przekierowuję...":fe?b==="przelewy24"?"Zapłać online":"Złóż zamówienie":"Zamknięte"}):null]})]})})]}),d.length>0?s.jsxs("button",{type:"button",onClick:()=>oe(!0),className:te("fixed bottom-3 left-3 right-3 z-40 flex max-w-[calc(100vw-1.5rem)] items-center justify-between rounded-full border border-cream/15 bg-cream px-5 py-4 text-[hsl(var(--brand-navy))] shadow-2xl shadow-black/40 transition duration-300 lg:hidden",Kt?"-translate-y-1 scale-[1.02] ring-4 ring-emerald-300/45":""),children:[s.jsxs("span",{className:"font-heading text-sm font-bold uppercase tracking-[0.16em]",children:["Koszyk (",jt,")"]}),s.jsx("span",{className:"font-heading text-lg font-bold",children:Ie(xn)})]}):null,be?s.jsxs("div",{className:"fixed inset-0 z-[90] max-w-[100dvw] overflow-x-hidden bg-black/70 backdrop-blur-sm lg:hidden",role:"dialog","aria-modal":"true","aria-label":"Koszyk",children:[s.jsx("button",{type:"button",className:"absolute inset-0 h-full w-full cursor-default",onClick:()=>oe(!1),"aria-label":"Zamknij koszyk"}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 box-border max-h-[88dvh] w-full max-w-[100dvw] overflow-auto rounded-t-[1.5rem] border border-cream/10 bg-[hsl(var(--brand-navy))] p-4 pb-6 shadow-2xl shadow-black",children:[s.jsx("div",{className:"mx-auto mb-4 h-1.5 w-12 rounded-full bg-cream/20"}),s.jsxs("div",{className:"mb-5 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[10px] font-heading font-bold uppercase tracking-[0.25em] text-cream/40",children:"Twoje zamówienie"}),s.jsx("h2",{className:"font-heading text-2xl font-bold uppercase tracking-[0.1em] text-cream",children:"Koszyk"})]}),s.jsx("button",{type:"button",onClick:()=>oe(!1),className:"flex h-10 w-10 items-center justify-center rounded-full border border-cream/15 bg-black/20 text-cream",children:s.jsx(no,{className:"h-5 w-5"})})]}),s.jsx("div",{className:"max-h-[28vh] space-y-3 overflow-auto pr-1",children:d.length===0?s.jsx("p",{className:"rounded-xl border border-cream/10 p-4 text-sm text-cream/50",children:"Dodaj produkty, aby złożyć zamówienie."}):d.map(C=>{var J;return s.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-black/20 p-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate font-heading text-sm font-bold uppercase tracking-[0.08em] text-cream",children:C.name}),(J=C.selectedAddOns)!=null&&J.length?s.jsxs("p",{className:"mt-1 text-xs text-cream/45",children:["+ ",C.selectedAddOns.map(je=>je.label).join(", ")]}):null,s.jsx("p",{className:"mt-1 text-sm text-cream/60",children:Ie(C.priceCents*C.quantity)})]}),s.jsx(os,{onClick:()=>ft(C.lineId,-1),children:s.jsx(og,{className:"h-3.5 w-3.5"})}),s.jsx("span",{className:"w-5 text-center text-sm font-bold",children:C.quantity}),s.jsx(os,{onClick:()=>ft(C.lineId,1),children:s.jsx(qr,{className:"h-3.5 w-3.5"})}),s.jsx(os,{onClick:()=>ft(C.lineId,-C.quantity),danger:!0,children:s.jsx(Ss,{className:"h-3.5 w-3.5"})})]},C.lineId)})}),s.jsxs("div",{className:"mt-5 space-y-2 border-t border-cream/10 pt-5 text-sm",children:[s.jsxs("div",{className:"flex justify-between text-cream/60",children:[s.jsx("span",{children:"Produkty"}),s.jsx("span",{children:Ie(re)})]}),s.jsxs("div",{className:"flex justify-between text-cream/60",children:[s.jsx("span",{children:"Dostawa"}),s.jsx("span",{children:Ie(on)})]}),Wt?s.jsxs("div",{className:"flex justify-between text-cream/60",children:[s.jsx("span",{children:"Opakowania na wynos"}),s.jsx("span",{children:Ie(Wt)})]}):null,z?s.jsxs("div",{className:"flex justify-between text-emerald-200",children:[s.jsxs("span",{children:["Rabat (",z.code," · -",z.discountPercent,"%)"]}),s.jsxs("span",{children:["-",Ie(Ht)]})]}
304):null,s.jsxs("div",{className:"flex justify-between font-heading text-xl font-bold text-cream",children:[s.jsx("span",{children:"Razem"}),s.jsx("span",{children:Ie(xn)})]})]}),s.jsxs("div",{className:"mt-4 rounded-xl border border-cream/10 bg-black/15 p-3",children:[s.jsx("p",{className:"mb-2 text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Kod promocyjny"}),z?s.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg bg-emerald-400/10 px-3 py-2 text-sm text-emerald-100",children:[s.jsxs("span",{children:[s.jsx("strong",{children:z.code})," · -",z.discountPercent,"%"]}),s.jsx("button",{type:"button",onClick:wt,className:"text-xs underline underline-offset-4 hover:text-white",children:"Usuń"})]}):s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:_,onChange:C=>U(C.target.value.toUpperCase()),placeholder:"np. MOSHI10",className:"shop-input flex-1",onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),lt())}}),s.jsx("button",{type:"button",onClick:()=>void lt(),disabled:Y||!_.trim(),className:"rounded-full bg-cream px-4 text-xs font-heading font-bold uppercase tracking-[0.14em] text-[hsl(var(--brand-navy))] transition hover:bg-cream/90 disabled:opacity-50",children:Y?"...":"Zastosuj"})]}),D?s.jsx("p",{className:"mt-2 text-xs text-red-200",children:D}):null]}),_e?s.jsxs("div",{className:"mt-5 space-y-3 border-t border-cream/10 pt-5",children:[s.jsx(Kg,{method:f,onMethodChange:Ii,postalCode:y,onPostalCodeChange:w,resolvedCity:De,deliveryZone:et,deliveryFeeCents:on,pickupLocation:k,onPickupLocationChange:_i,address:T,setAddress:P,slots:it,slotAt:j,setSlotAt:S,paymentMethod:b,setPaymentMethod:x,customer:N,setCustomer:E,notes:L,setNotes:K,acceptedTerms:we,setAcceptedTerms:Ce}),!fe&&s.jsxs("p",{className:"rounded-xl border border-amber-400/25 bg-amber-500/15 p-3 text-sm text-amber-100",children:["Przyjmowanie zamówień zakończone na dziś (do ",_g(),"). Zapraszamy jutro!"]}),M?s.jsx("p",{className:"rounded-xl bg-red-500/15 p-3 text-sm text-red-100",children:M}
304):null,s.jsx("button",{disabled:F||d.length===0||!fe,onClick:yo,className:"w-full rounded-full bg-cream px-6 py-4 text-sm font-heading font-bold uppercase tracking-[0.18em] text-[hsl(var(--brand-navy))] transition hover:bg-cream/90 disabled:cursor-not-allowed disabled:opacity-50","data-umami-event":"click-checkout-submit","data-umami-event-target":"shop","data-umami-event-method":f,"data-umami-event-payment":b,"data-umami-event-location":"mobile_drawer",...ye(),children:F?"Przekierowuję...":fe?b==="przelewy24"?"Zapłać online":"Złóż zamówienie":"Zamknięte"})]}):s.jsxs("button",{onClick:()=>B(!0),className:"mt-5 inline-flex w-full items-center justify-center gap-2 rounded-full bg-cream px-6 py-4 text-sm font-heading font-bold uppercase tracking-[0.18em] text-[hsl(var(--brand-navy))] transition hover:bg-cream/90","data-umami-event":"click-checkout-open","data-umami-event-target":"shop","data-umami-event-location":"mobile_drawer",...ye(),children:["Przejdź do zamówienia ",s.jsx(rg,{className:"h-4 w-4"})]})]})]}):null,Z?s.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 px-4 py-6 backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-label":Z.name,children:s.jsxs("div",{className:"relative grid max-h-[90vh] w-full max-w-3xl overflow-auto rounded-[2rem] border border-cream/15 bg-[hsl(var(--brand-navy))] p-5 shadow-2xl shadow-black/50 md:grid-cols-[280px_minmax(0,1fr)] md:gap-6 md:p-6",children:[s.jsx("button",{type:"button",onClick:()=>ve(null),className:"absolute right-4 top-4 z-10 flex h-10 w-10 items-center justify-center rounded-full border border-cream/15 bg-black/30 text-cream transition hover:bg-cream/10","aria-label":"Zamknij podgląd produktu",children:s.jsx(no,{className:"h-5 w-5"})}),s.jsx("div",{className:"flex min-h-64 items-center justify-center rounded-[1.5rem] bg-gradient-to-br from-cream/12 to-black/25 p-6 ring-1 ring-cream/10",children:Z.imageUrl?s.jsx("img",{src:Z.imageUrl,alt:Z.name,className:"max-h-72 w-full object-contain"}):s.jsx(to,{className:"h-16 w-16 text-cream/20"})}),s.jsxs("div",{className:"mt-5 flex flex-col md:mt-0",children:[s.jsx("p",{className:"text-[10px] font-heading font-bold uppercase tracking-[0.28em] text-cream/45",children:Z.categories.map(C=>_l(C.name)).filter(Boolean).join(" / ")||"Moshi Moshi"}),s.jsx("h2",{className:"mt-3 pr-10 font-heading text-3xl font-bold uppercase tracking-[0.08em] text-cream",children:Z.name}),s.jsx("p",{className:"mt-4 text-sm leading-relaxed text-cream/60",children:Z.description||"Pozycja z aktualnego menu Moshi Moshi Sushi."}),(Li=Z.addOns)!=null&&Li.length?s.jsxs("div",{className:"mt-5 rounded-2xl border border-cream/10 bg-black/15 p-4",children:[s.jsx("p",{className:"mb-3 text-[10px] font-heading font-bold uppercase tracking-[0.22em] text-cream/45",children:"Dodatki"}),s.jsx("div",{className:"grid gap-2",children:Z.addOns.map(C=>{const J=Ae.includes(C.id);return s.jsxs("label",{className:"flex cursor-pointer items-center justify-between gap-3 rounded-xl border border-cream/10 bg-black/10 px-3 py-2 text-sm text-cream/70 transition hover:border-cream/25 hover:text-cream",children:[s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[s.jsx("input",{type:"checkbox",checked:J,onChange:je=>{nt(Re=>je.target.checked?[...Re,C.id]:Re.filter(Ne=>Ne!==C.id))},className:"h-4 w-4 accent-[hsl(var(--cream))]"}),s.jsx("span",{className:"truncate",children:C.label})]}),s.jsx("span",{className:"whitespace-nowrap font-heading font-bold text-cream",children:Ie(C.priceCents)})]},C.id)})})]}):null,s.jsxs("div",{className:"mt-auto pt-6",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between rounded-2xl border border-cream/10 bg-black/15 px-4 py-3",children:[s.jsx("span",{className:"text-sm text-cream/45",children:"Cena końcowa"}),s.jsx("span",{className:"font-heading text-2xl font-bold text-cream",children:Ie(Z.priceCents+(Z.addOns||[]).filter(C=>Ae.includes(C.id)).reduce((C,J)=>C+J.priceCents,0))})]}),s.jsx("button",{type:"button",onClick:()=>{const C=(Z.addOns||[]).filter(J=>Ae.includes(J.id));vt(Z,C),window.setTimeout(()=>ve(null),550)},className:te("inline-flex w-full items-center justify-center gap-2 rounded-full px-6 py-4 text-sm font-heading font-bold uppercase tracking-[0.18em] transition",Ve!=null&&Ve.startsWith(`${Z.id}:`)?"scale-[1.02] bg-emerald-300 text-emerald-950":"bg-cream text-[hsl(var(--brand-navy))] hover:bg-cream/90"),"data-umami-event":"click-add-to-cart","data-umami-event-target":"shop","data-umami-event-product-id":String(Z.id),"data-umami-event-product-name":Z.name,"data-umami-event-source":"product_modal",...ye(),children:Ve!=null&&Ve.startsWith(`${Z.id}:`)?"Dodane +1":s.jsxs(s.Fragment,{children:[s.jsx(qr,{className:"h-4 w-4"})," Dodaj do koszyka"]})})]})]})]})}
304):null,s.jsx(Pn,{}),s.jsx("style",{children:`
305        .shop-input { width: 100%; border-radius: 0.9rem; border: 1px solid hsl(var(--cream) / 0.16); background: hsl(var(--brand-navy) / 0.72); color: hsl(var(--cream)); padding: 0.8rem 0.95rem; font-size: 0.875rem; outline: none; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
306        .shop-input::placeholder { color: hsl(var(--cream) / 0.38); }
307        .shop-input:focus { border-color: hsl(var(--cream) / 0.42); background: hsl(var(--brand-navy) / 0.92); box-shadow: 0 0 0 3px hsl(var(--cream) / 0.08); }
308        select.shop-input option { background: hsl(var(--brand-navy)); color: hsl(var(--cream)); }
309        .scrollbar-hide::-webkit-scrollbar { display: none; }
310        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
311        @media (max-width: 640px) {
312          html, body { overflow-x: hidden; }
313          .shop-mobile-safe, .shop-mobile-safe * { box-sizing: border-box; }
314          .shop-mobile-safe { max-width: 100vw; }
315          .shop-input { min-width: 0; max-width: 100%; }
316        }
317      `})]})},aR=({slots:e,slotAt:t,setSlotAt:n})=>{const r=e.find(x=>x.asap),a=m.useMemo(()=>e.filter(x=>!x.asap),[e]),o=m.useMemo(()=>{const x=new Map;for(const y of a){const[w]=y.value.split("_"),j=y.label.split(" · ")[0]??w,S=x.get(w)??{key:w,label:j,slots:[]};S.slots.push(y),x.set(w,S)}return Array.from(x.values())},[a]),i=a.find(x=>x.value===t)??null,l=!!r&&t===r.value,[c,u]=m.useState(!!i),[d,p]=m.useState(""),f=m.useRef(null),h=m.useRef(null);m.useEffect(()=>{if(!c)return;const x=y=>{const w=h.current;w&&(y.target instanceof Node&&w.contains(y.target)||u(!1))};return document.addEventListener("pointerdown",x),()=>document.removeEventListener("pointerdown",x)},[c]),m.useEffect(()=>{if(i){if(f.current===i.value)return;const[x]=i.value.split("_");p(x),f.current=i.value}else f.current=null},[i]),m.useEffect(()=>{!d&&o.length>0&&p(o[0].key)},[o,d]);const k=(()=>{if(!r)return"";const x=r.label.match(/\(([^)]+)\)/);return x?x[1].replace(/^≈\s*/,"≈ "):""})(),g=x=>x.label.split(" · ")[1]??x.label,b=o.find(x=>x.key===d)??o[0];return e.length===0?s.jsxs("div",{children:[s.jsx("p",{className:"mb-2 text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Termin realizacji"}),s.jsx("div",{className:"rounded-xl border border-cream/10 bg-black/10 px-4 py-3 text-sm text-cream/55",children:"Brak dostępnych terminów dla wybranego dnia."})]}):s.jsxs("div",{ref:h,children:[s.jsx("p",{className:"mb-2 text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Termin realizacji"}),s.jsxs("div",{className:"grid grid-cols-[1fr_auto] gap-2",children:[r?s.jsxs("button",{type:"button",onClick:()=>{n(r.value),u(!1)},className:te("flex items-center gap-3 rounded-xl border px-4 py-3 text-left transition",l?"border-cream bg-cream text-[hsl(var(--brand-navy))]":"border-cream/15 bg-black/10 text-cream/70 hover:border-cream/35 hover:text-cream"),children:[s.jsx("span",{className:te("flex h-5 w-5 shrink-0 items-center justify-center rounded-full border-2",l?"border-[hsl(var(--brand-navy))] bg-[hsl(var(--brand-navy))]":"border-cream/40"),children:l?s.jsx(M0,{className:"h-3.5 w-3.5 text-cream",strokeWidth:3}):null}),s.jsxs("span",{className:"flex-1 leading-tight",children:[s.jsx("span",{className:"block font-heading text-sm font-bold uppercase tracking-[0.1em]",children:"Jak najszybciej"}),k?s.jsx("span",{className:"block text-xs opacity-70",children:k}):null]})]}):s.jsx("div",{className:"rounded-xl border border-cream/10 bg-black/10 px-4 py-3 text-sm text-cream/55",children:"Dostępne tylko zaplanowane terminy"}),s.jsx("button",{type:"button",onClick:()=>u(x=>!x),"aria-label":"Zaplanuj na później","aria-pressed":c,className:te("flex h-full min-w-[3.25rem] items-center justify-center rounded-xl border px-4 transition",i||c?"border-cream bg-cream text-[hsl(var(--brand-navy))]":"border-cream/30 bg-black/15 text-cream/85 hover:border-cream/55 hover:text-cream"),title:"Zaplanuj na później",children:s.jsx(tz,{className:"h-5 w-5"})})]}),i?s.jsxs("p",{className:"mt-2 text-xs text-cream/70",children:["Zaplanowano: ",s.jsx("span",{className:"font-bold text-cream",children:i.label})]}):null,c&&o.length>0?s.jsx("div",{className:"mt-3 overflow-hidden rounded-2xl border border-cream/10 bg-black/25",children:s.jsxs("div",{className:"grid grid-cols-2 gap-px bg-cream/10",children:[s.jsx("div",{className:"max-h-72 overflow-y-auto bg-[hsl(var(--brand-navy))]",children:o.map(x=>{const y=x.key===d;return s.jsx("button",{type:"button",onClick:()=>p(x.key),className:te("block w-full px-4 py-3 text-left text-sm capitalize transition",y?"bg-cream font-bold text-[hsl(var(--brand-navy))]":"text-cream/70 hover:bg-cream/5 hover:text-cream"),children:x.label},x.key)})}),s.jsxs("div",{className:"max-h-72 overflow-y-auto bg-[hsl(var(--brand-navy))]",children:[((b==null?void 0:b.slots)??[]).map(x=>{const y=x.value===t;return s.jsx("button",{type:"button",onClick:()=>
317n(x.value),className:te("block w-full px-4 py-3 text-left text-sm tabular-nums transition",y?"bg-cream font-bold text-[hsl(var(--brand-navy))]":"text-cream/75 hover:bg-cream/5 hover:text-cream"),children:g(x)},x.value)}),b&&b.slots.length===0?s.jsx("p",{className:"px-4 py-3 text-sm text-cream/50",children:"Brak slotów na ten dzień."}):null]})]})}):null]})},Kg=({method:e,onMethodChange:t,postalCode:n,onPostalCodeChange:r,resolvedCity:a,deliveryZone:o,deliveryFeeCents:i,pickupLocation:l,onPickupLocationChange:c,address:u,setAddress:d,slots:p,slotAt:f,setSlotAt:h,paymentMethod:k,setPaymentMethod:g,customer:b,setCustomer:x,notes:y,setNotes:w,acceptedTerms:j,setAcceptedTerms:S,onHide:N})=>{const E=m.useId(),T=n.length>=5;return s.jsxs("div",{className:"space-y-4 border-t border-cream/10 pt-5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("p",{className:"text-[10px] font-heading font-bold uppercase tracking-[0.22em] text-cream/45",children:"Dane zamówienia"}),N?s.jsx("button",{type:"button",onClick:N,className:"text-xs font-heading font-bold uppercase tracking-[0.14em] text-cream/45 transition hover:text-cream",children:"Ukryj"}):null]}),e==="delivery"?s.jsxs(s.Fragment,{children:[s.jsx(_r,{label:"Kod pocztowy",children:s.jsx("input",{value:n,onChange:P=>r(_P(P.target.value)),placeholder:"np. 81-001",autoComplete:"postal-code",inputMode:"numeric",className:"shop-input"})}),T?o?s.jsxs("div",{className:"flex items-start gap-2 rounded-xl border border-emerald-400/25 bg-emerald-400/10 p-3 text-sm text-emerald-100",children:[s.jsx(Fa,{className:"mt-0.5 h-4 w-4 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-heading font-bold uppercase tracking-[0.12em]",children:a}),s.jsxs("p",{className:"text-emerald-100/80",children:["Dostawa ",Ie(i),o.freeDeliveryFromCents?` · darmowa od ${Ie(o.freeDeliveryFromCents)}`:""]})]})]}):s.jsxs("div",{className:"flex items-start gap-2 rounded-xl border border-red-400/30 bg-red-500/15 p-3 text-sm text-red-100",children:[s.jsx(Fa,{className:"mt-0.5 h-4 w-4 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-heading font-bold uppercase tracking-[0.12em]",children:"Nie dowozimy pod ten kod"}),s.jsxs("p",{className:"text-red-100/80",children:["Obsługujemy Sopot (81-7xx, 81-8xx), Gdynię (81-0xx do 81-6xx, 81-9xx) oraz Gdańsk (80-xxx)."," ",s.jsx("button",{type:"button",onClick:()=>t("pickup"),className:"underline underline-offset-4",children:"Wybierz odbiór osobisty"})]})]})]}):null,s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(_r,{label:"Ulica",children:s.jsx("input",{value:u.street,onChange:P=>d({...u,street:P.target.value}),placeholder:"Ulica",autoComplete:"address-line1",className:"shop-input"})}),s.jsx(_r,{label:"Nr domu",children:s.jsx("input",{value:u.buildingNumber,onChange:P=>d({...u,buildingNumber:P.target.value}),placeholder:"Nr",className:"shop-input"})}),s.jsx(_r,{label:"Nr lokalu",children:s.jsx("input",{value:u.apartmentNumber,onChange:P=>d({...u,apartmentNumber:P.target.value}),placeholder:"Opcj.",className:"shop-input"})}),s.jsxs("div",{className:"block min-w-0",children:[s.jsx("span",{className:"mb-2 block text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Miasto"}),s.jsx("div",{className:"flex items-center rounded-[0.9rem] border border-cream/10 bg-black/15 px-3 py-2 text-sm text-cream/80",children:a||"— po wpisaniu kodu"})]})]}),s.jsxs("button",{type:"button",onClick:()=>t("pickup"),className:"flex w-full items-center justify-center gap-2 rounded-xl border border-dashed border-cream/20 bg-black/10 px-3 py-2 text-xs font-heading font-bold uppercase tracking-[0.14em] text-cream/60 transition hover:border-cream/40 hover:text-cream",children:[s.jsx(fz,{className:"h-3.5 w-3.5"})," Chcę odebrać osobiście"]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"rounded-xl border border-cream/10 bg-black/15 p-3",children:[s.jsx("p",{className:"mb-2 text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Odbiór w lokalu"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:["sopot","gdynia"].map(P=>s.jsx("button",{type:"button",onClick:()=>c(P),className:te("rounded-lg border px-3 py-2 text-xs font-heading font-bold uppercase tracking-[0.12em] transition",l===P?"border-cream bg-cream text-[hsl(var(--brand-navy))]":"border-cream/15 bg-black/10 text-cream/70 hover:border-cream/30"),children:Mg[P].label},P))}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-cream/60",children:Mg[l].address})]}),s.jsxs("button",{type:"button",onClick:()=>t("delivery"),className:"flex w-full items-center justify-center gap-2 rounded-xl border border-dashed border-cream/20 bg-black/10 px-3 py-2 text-xs font-heading font-bold uppercase tracking-[0.14em] text-cream/60 transition hover:border-cream/40 hover:text-cream",children:[s.jsx(vc,{className:"h-3.5 w-3.5"})," Wolę dostawę"]})]}),s.jsx(aR,{slots:p,slotAt:f,setSlotAt:h}),s.jsx(_r,{label:"Imię i nazwisko",children:s.jsx("input",{value:b.name,onChange:P=>x({...b,name:P.target.value}),placeholder:"Jan Kowalski",autoComplete:"name",className:"shop-input"})}),s.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[s.jsx(_r,{label:"Email",children:s.jsx("input",{type:"email",value:b.email,onChange:P=>x({...b,email:P.target.value}),placeholder:"[email protected]",autoComplete:"email",className:"shop-input"})}),s.jsx(_r,{label:"Telefon",children:s.jsx("input",{type:"tel",value:b.phone,onChange:P=>x({...b,phone:P.target.value}),placeholder:"500 600 700",autoComplete:"tel",className:"shop-input"})})]}),s.jsx(_r,{label:"Uwagi (opcjonalnie)",children:s.jsx("textarea",{value:y,onChange:P=>w(P.target.value),placeholder:"np. bez wasabi",rows:2,className:"shop-input"})}),s.jsxs("div",{children:[s.jsx("p",{className:"mb-2 text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:"Płatność"}),s.jsx("div",{className:"grid gap-2",children:nb.map(P=>s.jsx("button",{type:"button",onClick:()=>g(P.value),className:te("rounded-xl border px-4 py-3 text-left text-sm font-heading font-bold transition",k===P.value?"border-cream bg-cream text-[hsl(var(--brand-navy))]":"border-cream/10 bg-black/10 text-cream/65 hover:border-cream/25"),children:P.label},P.value))})]}),s.jsxs("div",{className:"flex gap-3 rounded-xl border border-cream/10 bg-black/15 p-3 text-sm leading-relaxed text-cream/60",children:[s.jsx("input",{id:E,type:"checkbox",checked:j,onChange:P=>S(P.target.checked),className:"mt-1 h-5 w-5 flex-shrink-0 cursor-pointer rounded border-cream/25 bg-transparent accent-[hsl(var(--cream))]"}),s.jsxs("p",{children:[s.jsxs("label",{htmlFor:E,className:"cursor-pointer",children:["Akceptuję"," "]}),s.jsx(Ct,{to:"/regulamin",target:"_blank",rel:"noreferrer",className:"text-cream underline underline-offset-4",children:"regulamin"}),s.jsxs("label",{htmlFor:E,className:"cursor-pointer",children:[" ","oraz warunki dostawy i płatności."]})]})]})]})},_r=({label:e,children:t})=>s.jsxs("label",{className:"block min-w-0",children:[s.jsx("span",{className:"mb-2 block text-[10px] font-heading font-bold uppercase tracking-[0.18em] text-cream/45",children:e}),t]}),os=({children:e,onClick:t,danger:n=!1})=>s.jsx("button",{onClick:t,className:te("flex h-7 w-7 items-center justify-center rounded-lg bg-cream/10 transition hover:bg-cream/20",n?"text-red-200":"text-cream/75"),children:e}),sR=["**Konsument** – osoba fizyczna zawierająca ze Sprzedawcą umowę w ramach strony internetowej, której przedmiot nie jest związany bezpośrednio z jej działalnością gospodarczą lub zawodową.","**Klient** – każdy podmiot dokonujący zakupów za pośrednictwem strony WWW.","**Przedsiębiorca** – osoba fizyczna, osoba prawna i jednostka organizacyjna niebędąca osobą prawną, której odrębna ustawa przyznaje zdolność prawną, wykonująca we własnym imieniu działalność gospodarczą, która korzysta ze Sklepu.","**Platforma** – sklep internetowy prowadzony przez Sprzedawcę pod adresem internetowym www.moshimoshisushi.pl.","**Restauracja** – podmiot prowadzący działalność gospodarczą w zakresie gastronomii, w szczególności przygotowujący dania, napoje i podobne produkty. W niniejszym regulaminie jest to restauracja Moshi Moshi Sushi, która realizuje Zamówienie zawarte za pośrednictwem strony WWW.","**Umowa zawarta na odległość** – umowa zawarta z Klientem w ramach zorganizowanego systemu zawierania umów na odległość (w ramach platformy internetowej), bez jednoczesnej fizycznej obecności stron.","**Regulamin** – niniejszy regulamin platformy internetowej.","**Zamówienie** – oświadczenie woli Klienta składane za pomocą Formularza Zamówienia i zmierzające bezpośrednio do zawarcia Umowy Sprzedaży Produktu lub Produktów ze Sprzedawcą.","**Konto** – konto klienta na platformie internetowej, w którym gromadzone są dane podane przez Klienta oraz informacje o złożonych przez niego Zamówieniach.","**Formularz rejestracji** – formularz dostępny na platformie, umożliwiający utworzenie Konta.","**Formularz zamówienia** – interaktywny formularz dostępny na platformie umożliwiający złożenie Zamówienia, w szczególności poprzez dodanie Produktów do Koszyka oraz określenie warunków Umowy Sprzedaży.","**Koszyk** – element oprogramowania platformy, w którym widoczne są wybrane przez Klienta Produkty do zakupu.","**Produkt** – dostępna na platformie rzecz ruchoma / usługa będąca przedmiotem Umowy Sprzedaży między Klientem a Sprzedawcą.","**Umowa Sprzedaży** – umowa sprzedaży Produktu zawierana albo zawarta między Klientem a Sprzedawcą za pośrednictwem platformy internetowej."],ob=e=>[{no:"§ 1",title:"Postanowienia wstępne",items:[`Sklep internetowy Moshi Moshi Sushi, dostępny pod adresem internetowym www.moshimoshisushi.pl, prowadzony jest przez ${e.company} z siedzibą przy ${e.address}, wpisanego do Krajowego Rejestru Sądowego przez Sąd Rejonowy Gdańsk-Północ w Gdańsku, VIII Wydział Gospodarczy KRS pod numerem KRS ${e.krs}, o kapitale zakładowym ${e.capital}, NIP ${e.nip}, REGON ${e.regon}.`,"Niniejszy regulamin skierowany jest do Konsumentów i określa zasady oraz tryb zawierania z Konsumentem Umowy Sprzedaży na odległość za pośrednictwem strony internetowej.","Serwis dostępny pod adresem: www.moshimoshisushi.pl"]},{no:"§ 2",title:"Definicje",items:sR},{no:"§ 3",title:"Kontakt ze Sklepem",items:[`Adres Sprzedawcy: ${e.address}`,`Adres e-mail Sprzedawcy: ${e.email}`,`Numer telefonu Sprzedawcy: ${e.phone}`,`Numer rachunku bankowego Sprzedawcy: ${e.bank}`,"Klient może porozumiewać się ze Sprzedawcą za pomocą adresów i numerów telefonów podanych w niniejszym paragrafie.","Klient może porozumieć się telefonicznie ze Sprzedawcą w godzinach: niedziela – czwartek 12:00 – 22:00, piątek – sobota 12:00 – 23:00."]},{no:"§ 4",title:"Wymagania techniczne",items:["Do korzystania z platformy internetowej, w tym przeglądania asortymentu oraz składania zamówień na Produkty, niezbędne są:",["urządzenie końcowe z dostępem do sieci Internet i przeglądarką internetową,","aktywne konto poczty elektronicznej (e-mail),","włączona obsługa plików cookies."]]},{no:"§ 5",title:"Informacje ogólne",items:["Sprzedawca w najszerszym dopuszczalnym przez prawo zakresie nie ponosi odpowiedzialności za zakłócenia, w tym przerwy, w funkcjonowaniu platformy spowodowane siłą wyższą, niedozwolonym działaniem osób trzecich lub niekompatybilnością platformy z infrastrukturą techniczną Klienta.","Przeglądanie asortymentu platformy nie wymaga zakładania Konta. Składanie zamówień przez Klienta możliwe jest albo po założeniu Konta, albo przez podanie niezbędnych danych osobowych i adresowych umożliwiających realizację Zamówienia bez zakładania Konta.","Ceny podane w Sklepie są podane w polskich złotych i są cenami brutto (uwzględniają podatek VAT).","Na końcową kwotę do zapłaty przez Klienta składa się cena za Produkt oraz koszt dostawy, o której Klient jest informowany na platformie w trakcie składania Zamówienia."]},{no:"§ 6",title:"Zakładanie Konta w Sklepie",items:["Aby założyć Konto na Platformie internetowej, należy wypełnić Formularz rejestracji.","Założenie Konta na platformie internetowej jest darmowe.","Logowanie się na Konto odbywa się poprzez podanie loginu i hasła ustanowionych w Formularzu rejestracji.","Klient ma możliwość w każdej chwili, bez podania przyczyny i bez ponoszenia opłat, usunąć Konto poprzez wysłanie stosownego żądania do Sprzedawcy, w szczególności za pośrednictwem poczty elektronicznej lub pisemnie na adresy podane w § 3."]},{no:"§ 7",title:"Zasady składania Zamówienia",items:["W celu złożenia Zamówienia należy:",["zalogować się na platformie (opcjonalnie),","wybrać Produkt będący przedmiotem Zamówienia, a następnie kliknąć przycisk „Do koszyka","zalogować się lub skorzystać z możliwości złożenia Zamówienia bez rejestracji,","w przypadku zamówienia bez rejestracji – wypełnić Formularz zamówienia (dane odbiorcy, adres dostawy, sposób dostarczenia, dane do faktury),","kliknąć przycisk „Zamawiam i płacę","wybrać jeden z dostępnych sposobów płatności i opłacić zamówienie."],"Warunkiem realizacji Zamówienia jest złożenie zamówienia na kwotę minimum 50 zł."]},{no:"§ 8",title:"Oferowane metody dostawy oraz płatności",items:["W momencie zawarcia Umowy po stronie Konsumenta powstaje obowiązek płatności na rzecz Restauracji ceny wynikającej z Zamówienia. Konsument jest informowany o dostępnych sposobach zapłaty na Platformie podczas składania Zamówienia i musi dokonać wyboru jednego z nich przed kliknięciem przycisku „Zamawiam i płacę”.","Klient może skorzystać z następujących metod dostawy lub odbioru zamówionego Produktu:",["dostarczenie zamówienia pod wskazany adres,",`odbiór osobisty dostępny pod adresem: ${e.pickup}.`],"Klient może skorzystać z następujących metod płatności:",["płatność przy odbiorze,","płatności elektroniczne,","płatność kartą płatniczą."],"Szczegółowe informacje na temat metod dostawy oraz akceptowalnych metod płatności znajdują się na stronie Sklepu."]},{no:"§ 9",title:"Wykonanie umowy sprzedaży",items:["Umowa zawierana jest w momencie ukończenia składania Zamówienia poprzez kliknięcie przycisku „Zamawiam i płacę”. Konsument niezwłocznie otrzyma potwierdzenie jej zawarcia na podany przez siebie adres mailowy.","Umowa może być prawidłowo wykonana przez Restaurację wyłącznie pod warunkiem podania przez Konsumenta prawidłowych i pełnych danych kontaktowych. Konsument jest zobowiązany do natychmiastowego zgłoszenia wszelkich nieścisłości w danych.","W celu uzyskania informacji o statusie realizacji Umowy Konsument może kontaktować się bezpośrednio z Restauracją za pomocą danych kontaktowych pod
317anych na stronie oraz w potwierdzeniu Zamówienia.","Jeżeli Konsument zdecyduje się na realizację Umowy poprzez dostarczenie zamówionych produktów, winien być obecny pod wskazanym adresem dostawy.","Jeżeli Konsument zdecyduje się na samodzielny odbiór, winien zgłosić się o wskazanej godzinie do punktu odbioru zamówień Restauracji.",`W przypadku wyboru przez Klienta odbioru osobistego, Produkt będzie gotowy do odbioru pod adresem: ${e.pickup}.`,"Odbiór osobisty Produktu przez Klienta jest bezpłatny."]},{no:"§ 10",title:"Prawo odstąpienia od umowy",items:["Z uwagi na łatwo psujący się charakter oferowanych produktów, Konsument nie jest uprawniony do odstąpienia od Umowy po rozpoczęciu jej faktycznej realizacji (art. 38 pkt 4 ustawy z dnia 30 maja 2014 r. o prawach konsumenta). Odstąpienie przed rozpoczęciem faktycznej realizacji jest możliwe bez podania przyczyny poprzez kontakt telefoniczny z Restauracją.","Restauracja jest uprawniona do odstąpienia od Umowy, w przypadku:",["zaistnienia siły wyższej uniemożliwiającej realizację Umowy,","dezaktualizacji oferty, gdy Konsument nie zgodził się na alternatywę,","przekazania przez Konsumenta nieprawidłowego lub nieosiągalnego numeru telefonu lub adresu dostawy."],"W przypadku odstąpienia od Umowy traktuje się ją jako niezawartą. Restauracja dokona zwrotu płatności takim samym sposobem, jakiego użył Konsument.","W przypadku złożenia fałszywego Zamówienia lub niewykonania Umowy przez Konsumenta, Restauracja jest uprawniona do odmowy przyjęcia jakichkolwiek przyszłych Zamówień od takiego Konsumenta.","Restauracja jest uprawniona do odrzucania Zamówień, jeżeli zachodzi uzasadniona wątpliwość co do ich poprawności lub autentyczności. W przypadku odrzucenia opłaconego Zamówienia, Restauracja zwróci wpłaconą kwotę na rachunek, z którego nastąpiła płatność."]},{no:"§ 11",title:"Reklamacja i gwarancja",items:["Reklamacje Konsumentów dotyczące Oferty, Zamówienia lub realizacji Umowy winny być składane bezpośrednio do Restauracji.","W przypadku reklamacji dotyczącej Usług, reklamacja winna być przekazana Restauracji poprzez:",[`pocztę elektroniczną na adres: ${e.email},`,`kontakt telefoniczny: ${e.phone}.`],"Reklamacja zostanie rozpatrzona niezwłocznie, jednak nie później niż w terminie dwóch tygodni od dnia jej otrzymania. Restauracja potwierdzi otrzymanie reklamacji na podany podczas zgłoszenia adres mailowy."]},{no:"§ 12",title:"Pozasądowe sposoby rozpatrywania reklamacji i dochodzenia roszczeń",items:["Szczegółowe informacje o pozasądowych sposobach rozpatrywania reklamacji i dochodzenia roszczeń dostępne są w siedzibach oraz na stronach internetowych powiatowych (miejskich) rzeczników konsumentów, organizacji społecznych, Wojewódzkich Inspektoratów Inspekcji Handlowej oraz na stronach Urzędu Ochrony Konkurencji i Konsumentów (uokik.gov.pl).","Konsument posiada przykładowe możliwości skorzystania z pozasądowych sposobów rozpatrywania reklamacji:",["zwrócenie się do stałego polubownego sądu konsumenckiego z wnioskiem o rozstrzygnięcie sporu,","zwrócenie się do wojewódzkiego inspektora Inspekcji Handlowej z wnioskiem o wszczęcie postępowania mediacyjnego,","uzyskanie bezpłatnej pomocy powiatowego (miejskiego) rzecznika konsumentów lub organizacji społecznej zajmującej się ochroną konsumentów (m.in. Federacja Konsumentów, Stowarzyszenie Konsumentów Polskich)."]]},{no:"§ 13",title:"Dane osobowe w Sklepie internetowym",items:["Administratorem danych osobowych Klientów zbieranych za pośrednictwem Platformy internetowej jest Sprzedawca.","Dane osobowe Klientów zbierane są w celu realizacji Umowy Sprzedaży, a jeżeli Klient wyrazi na to zgodę – także w celu marketingowym.","Odbiorcami danych osobowych Klientów Platformy internetowej mogą być:",["w przypadku dostawy przesyłką kurierską – wybrany pośrednik realizujący przesyłki na zlecenie Administratora,","w przypadku płatności elektronicznych lub kartą płatniczą – wybrany podmiot obsługujący powyższe płatności."],"Klient ma prawo dostępu do treści swoich danych oraz ich poprawiania.","Podanie danych osobowych jest dobrowolne, aczkolwiek niepodanie danych niezbędnych do zawarcia Umowy Sprzedaży skutkuje brakiem możliwości jej zawarcia."]},{no:"§ 14",title:"Postanowienia końcowe",items:["Umowy zawierane poprzez Platformę internetową zawierane są w języku polskim.","Sprzedawca zastrzega sobie prawo do dokonywania zmian Regulaminu z ważnych przyczyn, takich jak: zmiany przepisów prawa, zmiany sposobów płatności i dostaw – w zakresie, w jakim te zmiany wpływają na realizację postanowień niniejszego Regulaminu. O każdej zmianie Sprzedawca poinformuje Klienta z co najmniej 7-dniowym wyprzedzeniem.","W sprawach nieuregulowanych w niniejszym Regulaminie zastosowanie mają powszechnie obowiązujące przepisy prawa polskiego, w szczególności: Kodeksu cywilnego, ustawy o świadczeniu usług drogą ele
317ktroniczną, ustawy o prawach konsumenta, ustawy o ochronie danych osobowych.","Klient ma prawo skorzystać z pozasądowych sposobów rozpatrywania reklamacji i dochodzenia roszczeń. W tym celu może złożyć skargę za pośrednictwem unijnej platformy internetowej ODR dostępnej pod adresem: http://ec.europa.eu/consumers/odr/."]}],oR={city:"Gdynia",company:"Moshi Moshi Sp. z o.o.",address:"ul. Antoniego Abrahama 52, 81-395 Gdynia",email:"[email protected]",phone:"58 620 11 11",krs:"0000773720",nip:"5862342209",regon:"382702275",bank:"41 1160 2202 0000 0003 7317 2161",paragraphs:ob({company:"Moshi Moshi Sp. z o.o.",address:"ul. Antoniego Abrahama 52, 81-395 Gdynia",email:"[email protected]",phone:"58 620 11 11",krs:"0000773720",capital:"100 000,00 zł",nip:"5862342209",regon:"382702275",bank:"41 1160 2202 0000 0003 7317 2161",pickup:"Antoniego Abrahama 52 (wejście od ul. Władysława IV), 81-395 Gdynia"})},iR={city:"Sopot",company:"S-Studio Sp. z o.o.",address:"ul. Bohaterów Monte Cassino 63/1, 81-767 Sopot",email:"[email protected]",phone:"785 300 800",krs:"0000288395",nip:"5862201704",regon:"220481377",bank:"57 1160 2202 0000 0000 9525 7852",paragraphs:ob({company:"S-Studio Sp. z o.o.",address:"ul. Bohaterów Monte Cassino 63/1, 81-767 Sopot",email:"[email protected]",phone:"785 300 800",krs:"0000288395",capital:"50 000,00 zł",nip:"5862201704",regon:"220481377",bank:"57 1160 2202 0000 0000 9525 7852",pickup:"ul. Bohaterów Monte Cassino 63/1, 81-767 Sopot"})},Wg=e=>e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>n.startsWith("**")&&n.endsWith("**")?s.jsx("strong",{className:"text-cream font-heading tracking-wide",children:n.slice(2,-2)},r):s.jsx("span",{children:n},r)),lR=({no:e,title:t,items:n})=>{let r=0;return s.jsxs("article",{className:"relative pl-6 md:pl-10 py-8 md:py-10 border-l border-cream/15",children:[s.jsx("div",{className:"absolute -left-[1px] top-8 md:top-10 w-px h-12 bg-gradient-to-b from-cream/60 to-transparent"}),s.jsxs("div",{className:"flex items-baseline gap-4 mb-4",children:[s.jsx("span",{className:"text-2xl md:text-3xl font-heading text-cream/90 tracking-wider",style:{fontFamily:"'Bebas Neue', sans-serif"},children:e}),s.jsx("h2",{className:"text-base md:text-lg font-heading font-bold tracking-[0.18em] uppercase text-cream",children:t})]}),s.jsx("ol",{className:"space-y-3 text-cream/75 leading-relaxed text-[14px] md:text-[15px] font-body",children:n.map((a,o)=>{if(Array.isArray(a))return s.jsx("li",{className:"ml-4 md:ml-6 mt-2",children:s.jsx("ul",{className:"space-y-2 list-none",children:a.map((l,c)=>s.jsxs("li",{className:"flex gap-3",children:[s.jsx("span",{className:"text-cream/40 mt-1 text-xs",children:"◆"}),s.jsx("span",{children:Wg(l)})]},c))})},o);r+=1;const i=r;return s.jsxs("li",{className:"flex gap-3 md:gap-4",children:[s.jsxs("span",{className:"flex-shrink-0 w-6 md:w-7 text-cream/50 font-heading text-sm tabular-nums pt-0.5",children:[i,"."]}),s.jsx("span",{className:"flex-1",children:Wg(a)})]},o)})})]})},cR=({data:e})=>s.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-12 md:mb-16 p-6 md:p-8 rounded-2xl bg-cream/5 border border-cream/10 backdrop-blur-sm",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-3 text-cream/80 text-sm",children:[s.jsx(Fa,{className:"w-4 h-4 mt-0.5 text-cream/50 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-cream font-heading text-xs tracking-[0.15em] uppercase mb-1",children:e.company}),s.jsx("div",{children:e.address})]})]}),s.jsxs("div",{className:"flex items-center gap-3 text-cream/80 text-sm",children:[s.jsx(D0,{className:"w-4 h-4 text-cream/50 flex-shrink-0"}),s.jsx("a",{href:`mailto:${e.email}`,className:"hover:text-cream transition-colors",children:e.email})]}),s.jsxs("div",{className:"flex items-center gap-3 text-cream/80 text-sm",children:[s.jsx($p,{className:"w-4 h-4 text-cream/50 flex-shrink-0"}),s.jsx("a",{href:`tel:${e.phone.replace(/\s/g,"")}`,className:"hover:text-cream transition-colors",children:e.phone})]})]}),s.jsxs("div",{className:"space-y-2 text-xs md:text-sm text-cream/60 font-body sm:border-l sm:border-cream/10 sm:pl-6",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-cream/40 tracking-widest uppercase text-[10px]",children:"KRS"}),s.jsx("div",{className:"text-cream/80 tabular-nums",children:e.krs})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-cream/40 tracking-widest uppercase text-[10px]",children:"NIP"}),s.jsx("div",{className:"text-cream/80 tabular-nums",children:e.nip})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-cream/40 tracking-widest uppercase text-[10px]",children:"REGON"}),s.jsx("div",{className:"text-cream/80 tabular-nums",children:e.regon})]})]})]}),uR=()=>{const[e,t]=m.useState("sopot"),n=m.useMemo(()=>e==="sopot"?iR:oR,[e]);return s.jsxs("div",{className:"min-h-screen flex flex-col",style:{backgroundColor:"hsl(var(--brand-navy))",color:"hsl(var(--cream))"},children:[s.jsx(Tn,{}),s.jsxs("section",{className:"relative pt-24 md:pt-28 pb-12 md:pb-16 px-4 overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 opacity-[0.04] pointer-events-none",children:s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 20% 30%, hsl(var(--cream)) 0%, transparent 40%), radial-gradient(circle at 80% 70%, hsl(var(--cream)) 0%, transparent 40%)"}})}),s.jsxs("div",{className:"max-w-4xl mx-auto text-center relative",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 mb-6 px-4 py-1.5 rounded-full border border-cream/20 text-cream/70 text-[10px] md:text-xs tracking-[0.25em] uppercase font-heading",children:[s.jsx(_0,{className:"w-3 h-3"}),s.jsx("span",{children:"Dokumenty prawne"})]}),s.jsx("h1",{className:"text-5xl md:text-7xl lg:text-8xl mb-4 leading-none",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(var(--cream))",letterSpacing:"0.02em"},children:"Regulamin"}),s.jsx("p",{className:"text-cream/60 text-sm md:text-base max-w-xl mx-auto font-body",children:"Zapoznaj się z regulaminem naszych oddziałów przed rozpoczęciem zamówienia."})]})]}),s.jsx("section",{className:"px-4 mb-10 md:mb-14",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsx("div",{className:"inline-flex p-1.5 rounded-full bg-cream/5 border border-cream/10 mx-auto w-full sm:w-auto 
317sm:mx-0 flex justify-center sm:justify-start",children:["sopot","gdynia"].map(r=>s.jsx("button",{onClick:()=>t(r),className:`px-6 md:px-10 py-2.5 md:py-3 rounded-full text-xs md:text-sm font-heading font-bold tracking-[0.2em] uppercase transition-all ${e===r?"bg-cream text-[hsl(var(--brand-navy))] shadow-lg":"text-cream/60 hover:text-cream"}`,children:r},r))})})}),s.jsx("section",{className:"px-4 pb-20 md:pb-32 flex-1",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx(cR,{data:n}),s.jsxs("div",{className:"mb-8 pb-8 border-b border-cream/10",children:[s.jsx("div",{className:"text-cream/40 text-[10px] tracking-[0.3em] uppercase mb-2",children:"Regulamin sklepu internetowego"}),s.jsxs("h2",{className:"text-3xl md:text-5xl",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.02em"},children:["Moshi Moshi Sushi ",n.city]})]}),s.jsx("div",{className:"space-y-2",children:n.paragraphs.map(r=>s.jsx(lR,{no:r.no,title:r.title,items:r.items},r.no))}),s.jsx("div",{className:"mt-16 md:mt-20 p-6 md:p-8 rounded-2xl bg-cream/5 border border-cream/10 text-center",children:s.jsxs("p",{className:"text-cream/60 text-xs md:text-sm font-body",children:["W razie pytań dotyczących regulaminu skontaktuj się z nami:"," ",s.jsx("a",{href:`mailto:${n.email}`,className:"text-cream hover:underline",children:n.email})]})})]})}),s.jsx(Pn,{})]})},dR=[{title:"Organizator akcji",body:"Organizatorem akcji jest Anro-Trade Spółka z ograniczoną odpowiedzialnością z siedzibą w Chwaszczynie, przy ul. Oliwskiej 58, 80-209 Chwaszczyno, wpisana do Rejestru Przedsiębiorców prowadzonego przy Sądzie Rejonowym Gdańsk – Północ w Gdańsku, Wydział VIII Gospodarczy Krajowego Rejestru Sądowego pod numerem KRS: 0001011527, NIP: 631673806, REGON: 368272220."},{title:"Przedmiot vouchera",body:"Voucher uprawnia do bezpłatnego użyczenia samochodu z napędem hybrydowym na okres weekendu (od piątku do poniedziałku rano) z wybranego salonu Grupy Walder."},{title:"Model samochodu",body:"Model samochodu zostanie przydzielony według dostępności – salon zastrzega sobie prawo wyboru konkretnego pojazdu spośród dostępnych w danym terminie, w danym salonie."},{title:"Rezerwacja terminu",body:"Termin odbioru samochodu musi zostać ustalony z wyprzedzeniem minimum 14 dni kalendarzowych, we współpracy z wybranym salonem Grupy Walder."},{title:"Warunki odbioru",body:"Warunkiem odbioru pojazdu jest podpisanie umowy użyczenia oraz okazanie ważnego prawa jazdy odpowiedniej kategorii (B) przez osobę, która otrzymała voucher."},{title:"Brak przeniesienia",body:"Z vouchera może skorzystać wyłącznie osoba, która go otrzymała – voucher nie podlega przeniesieniu na osoby trzecie."},{title:"Limit przebiegu",body:"Limit przebiegu w czasie użyczenia wynosi 100 km dziennie, co łącznie daje maksymalnie 300 km za cały weekend."},{title:"Termin ważności",body:"Voucher ważny jest przez 12 miesięcy od daty jego otrzymania. Po tym czasie traci ważność."},{title:"Realizacja",body:"Wszystkie szczegóły dotyczące realizacji vouchera ustalane są indywidualnie z wybranym salonem Grupy Walder."},{title:"Zmiany regulaminu",body:"Organizator zastrzega sobie prawo do zmiany niniejszego regulaminu w dowolnym momencie, przy czym zmiany nie wpływają na już uzgodnione i potwierdzone terminy realizacji."}],mR=()=>s.jsxs("div",{className:"min-h-screen flex flex-col",style:{backgroundColor:"hsl(var(--brand-navy))",color:"hsl(var(--cream))"},children:[s.jsx(Tn,{}),s.jsxs("section",{className:"relative pt-24 md:pt-28 pb-12 md:pb-16 px-4 overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 opacity-[0.04] pointer-events-none",children:s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 20% 30%, hsl(45, 78%, 52%) 0%, transparent 40%), radial-gradient(circle at 80% 70%, hsl(var(--cream)) 0%, transparent 40%)"}})}),s.jsxs("div",{className:"max-w-4xl mx-auto text-center relative",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 mb-6 px-4 py-1.5 rounded-full border border-cream/20 text-cream/70 text-[10px] md:text-xs tracking-[0.25em] uppercase font-heading",children:[s.jsx(_0,{className:"w-3 h-3"}),s.jsx("span",{children:"Dokument prawny"})]}),s.jsx("h1",{className:"text-5xl md:text-7xl lg:text-8xl mb-4 leading-none",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(var(--cream))",letterSpacing:"0.02em"},children:"Regulamin"}),s.jsx("p",{className:"text-2xl md:text-4xl mb-4",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(45, 78%, 62%)",letterSpacing:"0.12em"},children:"Voucher na weekend z hybrydą"}),s.jsxs("p",{className:"text-cream/60 text-sm md:text-base max-w-xl mx-auto font-body inline-flex items-center gap-2",children:[s.jsx(nz,{className:"w-4 h-4"}),'Akcja „Weekend z Lexusem" — Moshi Moshi Sushi × Grupa Walder']})]})]}),s.jsx("section",{className:"px-4 pb-20 md:pb-32 flex-1",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("div",{className:"mb-10 p-5 md:p-6 rounded-2xl border border-[hsl(45,78%,52%)]/30 bg-[hsl(45,78%,52%)]/5",children:s.jsxs("p",{className:"text-cream/80 text-sm md:text-base font-body leading-relaxed",children:['Poniższy regulamin określa zasady korzystania z vouchera „Weekend z hybrydą", który można wygrać podczas akcji koła fortuny w Moshi Moshi Sushi. Organizatorem akcji voucherowej jest ',s.jsx("strong",{className:"text-cream",children:"Anro-Trade Sp. z o.o."})]})}),s.jsx("ol",{className:"space-y-4",children:dR.map((e,t)=>s.jsxs("li",{className:"relative pl-6 md:pl-10 py-6 md:py-7 border-l border-cream/15",children:[s.jsx("div",{className:"absolute -left-[1px] top-6 md:top-7 w-px h-10 bg-gradient-to-b from-[hsl(45,78%,62%)] to-transparent"}),s.jsxs("div",{className:"flex items-baseline gap-4 mb-3",children:[s.jsxs("span",{className:"text-2xl md:text-3xl tracking-wider",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(45, 78%, 62%)"}
317,children:["§ ",t+1]}),s.jsx("h2",{className:"text-base md:text-lg font-heading font-bold tracking-[0.18em] uppercase text-cream",children:e.title})]}),s.jsx("p",{className:"text-cream/75 leading-relaxed text-[14px] md:text-[15px] font-body",children:e.body})]},t))}),s.jsx("div",{className:"mt-16 md:mt-20 p-6 md:p-8 rounded-2xl bg-cream/5 border border-cream/10 text-center",children:s.jsxs("p",{className:"text-cream/60 text-xs md:text-sm font-body",children:["W razie pytań dotyczących vouchera skontaktuj się z restauracją:"," ",s.jsx("a",{href:"mailto:[email protected]",className:"text-cream hover:underline",children:"[email protected]"})]})})]})}),s.jsx(Pn,{})]}),pR=[{cities:"Sopot (strefa bliska)",threshold:"150 zł",accent:"hsl(var(--cream))",note:"Dostawa 5 zł · darmowa od 150 zł"},{cities:"Sopot",threshold:"150 zł",accent:"hsl(var(--cream))",note:"Dostawa 10 zł · darmowa od 150 zł"},{cities:"Gdynia",threshold:"150 zł",accent:"hsl(var(--cream))",note:"Dostawa 10 zł · darmowa od 150 zł"},{cities:"Gdańsk",threshold:"150 zł",accent:"hsl(var(--cream))",note:"Dostawa 10 zł · darmowa od 150 zł"}],fR=[{icon:eo,title:"60 MINUT",desc:"Standardowy czas dostawy od momentu potwierdzenia zamówienia."},{icon:iz,title:"POGODA & RUCH",desc:"Złe warunki pogodowe oraz sytuacja na drogach mogą wydłużyć czas dostawy."},{icon:to,title:"NIEDZIELE & ŚWIĘTA",desc:"Czas dostawy może ulec zmianie ze względu na zwiększoną liczbę zamówień."}],hR=()=>s.jsxs("div",{className:"min-h-screen flex flex-col",style:{backgroundColor:"hsl(var(--brand-navy))",color:"hsl(var(--cream))"},children:[s.jsx(Tn,{}),s.jsxs("section",{className:"relative pt-24 md:pt-28 pb-16 md:pb-20 px-4 overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 opacity-[0.05] pointer-events-none",children:s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 25% 30%, hsl(var(--cream)) 0%, transparent 45%), radial-gradient(circle at 75% 70%, hsl(var(--cream)) 0%, transparent 45%)"}})}),s.jsxs("div",{className:"max-w-4xl mx-auto text-center relative",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 mb-6 px-4 py-1.5 rounded-full border border-cream/20 text-cream/70 text-[10px] md:text-xs tracking-[0.25em] uppercase font-heading",children:[s.jsx(vc,{className:"w-3 h-3"}),s.jsx("span",{children:"Warunki dostawy"})]}),s.jsx("h1",{className:"text-5xl md:text-7xl lg:text-8xl mb-4 leading-none",style:{fontFamily:"'Bebas Neue', sans-serif",color:"hsl(var(--cream))",letterSpacing:"0.02em"},children:"Dostawa"}),s.jsx("p",{className:"text-cream/65 text-sm md:text-base max-w-xl mx-auto font-body leading-relaxed",children:"Świeże sushi prosto pod Twoje drzwi. Sprawdź zasady dostawy i progi darmowego dowozu w Twoim mieście."})]})]}),s.jsx("section",{className:"px-4 pb-20 md:pb-28",children:s.jsxs("div",{className:"max-w-5xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-10 md:mb-14",children:[s.jsx("div",{className:"text-cream/40 text-[10px] tracking-[0.3em] uppercase mb-3",children:"Koszty dostawy"}),s.jsx("h2",{className:"text-3xl md:text-5xl",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.02em"},children:"Progi darmowego dowozu"})]}),s.jsx("div",{className:"grid md:grid-cols-2 gap-5 md:gap-6",children:pR.map(e=>s.jsxs("div",{className:"group relative p-8 md:p-10 rounded-2xl bg-cream/5 border border-cream/10 backdrop-blur-sm hover:border-cream/30 transition-all overflow-hidden",children:[s.jsx("div",{className:"absolute -top-12 -right-12 w-40 h-40 rounded-full opacity-[0.04] group-hover:opacity-[0.08] transition-opacity",style:{backgroundColor:e.accent}}),s.jsxs("div",{className:"flex items-center gap-2 text-cream/50 text-[10px] tracking-[0.3em] uppercase mb-3 relative",children:[s.jsx(Fa,{className:"w-3 h-3"}),s.jsx("span",{children:"Strefa"})]}),s.jsx("h3",{className:"text-2xl md:text-3xl mb-6 text-cream relative",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.05em"},children:e.cities}),s.jsxs("div",{className:"flex items-baseline gap-2 mb-3 relative",children:[s.jsx("span",{className:"text-cream/50 text-xs tracking-widest uppercase",children:"od"}),s.jsx("span",{className:"text-6xl md:text-7xl text-cream leading-none",style:{fontFamily:"'Bebas Neue', sans-serif"},children:e.threshold})]}),s.jsx("p",{className:"text-cream/65 text-sm font-body relative",children:e.note})]},e.cities))}),s.jsx("p",{className:"text-center text-cream/45 text-xs md:text-sm mt-8 font-body italic",children:"Dla zamówień poniżej progu koszt dostawy 10 zł jest doliczany do zamówienia."})]})}),s.jsx("section",{className:"px-4 pb-20 md:pb-28",children:s.jsxs("div",{className:"max-w-5xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-10 md:mb-14",children:[s.jsx("div",{className:"text-cream/40 text-[10px] tracking-[0.3em] uppercase mb-3",children:"Dobrze wiedzieć"}),s.jsx("h2",{className:"text-3xl md:text-5xl",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.02em"},children:"Warunki dostawy"})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-5 md:gap-6",children:fR.map(e=>s.jsxs("div",{className:"p-6 md:p-7 rounded-2xl bg-cream/[0.03] border border-cream/10 hover:bg-cream/[0.06] transition-colors",children:[s.jsx("div",{className:"w-11 h-11 mb-5 rounded-full bg-cream/10 flex items-center justify-center",children:s.jsx(e.icon,{className:"w-5 h-5 text-cream"})}),s.jsx("h3",{className:"text-cream font-heading font-bold tracking-[0.15em] uppercase text-sm mb-2",children:e.title}),s.jsx("p",{className:"text-cream/65 text-sm leading-relaxed font-body",children:e.desc})]},e.title))})]})}),s.jsx("section",{className:"px-4 pb-24 md:pb-32",children:s.jsxs("div",{className:"max-w-4xl mx-auto p-8 md:p-12 rounded-3xl bg-cream/5 border border-cream/10 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-5xl mb-4",style:{fontFamily:"'Bebas Neue', sans-serif",letterSpacing:"0.02em"},children:"Gotowy na zamówienie?"}),s.jsx("p",{className:"text-cream/65 text-sm md:text-base mb-8 max-w-md mx-auto font-body",children:"Złóż zamówienie online lub zadzwoń bezpośrednio do swojej restauracji."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center items-center",children:[s.jsxs(Ct,{to:"/zamow-online",className:"inline-flex items-center gap-2 px-8 py-3.5 rounded-full bg-cream text-[hsl(var(--brand-navy))] font-heading font-bold tracking-[0.2em] uppercase text-xs md:text-sm hover:brightness-95 transition-all","data-umami-event":"click-order","data-umami-event-target":"delivery-page",...ye(),children:[s.jsx(to,{className:"w-4 h-4"}),"Zamów online"]}),s.jsxs(Ct,{to:"/restauracje",className:"inline-flex items-center gap-2 px-8 py-3.5 rounded-full border border-cream/30 text-cream font-heading font-bold tracking-[0.2em] uppercase text-xs md:text-sm hover:bg-cream/10 transition-all","data-umami-event":"click-call","data-umami-event-target":"delivery-page",...ye(),children:[s.jsx($p,{className:"w-4 h-4"}),"Zadzwoń"]})]})]})}),s.jsx(Pn,{})]}),gR=Oi("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),gr=m.forwardRef(({className:e,variant:t,...n},r)=>s.jsx("div",{ref:r,role:"alert",className:te(gR({variant:t}),e),...n}));gr.displayName="Alert";const yR=m.forwardRef(({className:e,...t},n)=>s.jsx("h5",{ref:n,className:te("mb-1 font-medium leading-none tracking-tight",e),...t}));yR.displayName="AlertTitle";const yr=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:te("text-sm [&_p]:leading-relaxed",e),...t}));yr.displayName="AlertDescription";const xR=Oi("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Jn({className:e,variant:t,...n}){return s.jsx("div",{className:te(xR({variant:t}),e),...n})}const vR=Oi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ke=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},o)=>{const i=r?cE:"button";return s.jsx(i,{className:te(vR({variant:t,size:n,className:e})),ref:o,...a}
vendor: 4,632 bytes, line 317
317)});ke.displayName="Button";const ut=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:te("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ut.displayName="Card";const vn=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:te("flex flex-col space-y-1.5 p-6",e),...t}));vn.displayName="CardHeader";const wn=m.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:te("text-2xl font-semibold leading-none tracking-tight",e),...t}));wn.displayName="CardTitle";const bn=m.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:te("text-sm text-muted-foreground",e),...t}));bn.displayName="CardDescription";const Mn=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:te("p-6 pt-0",e),...t}));Mn.displayName="CardContent";const wR=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:te("flex items-center p-6 pt-0",e),...t}));wR.displayName="CardFooter";var rd="focusScope.autoFocusOnMount",ad="focusScope.autoFocusOnUnmount",Hg={bubbles:!1,cancelable:!0},bR="FocusScope",lf=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,c]=m.useState(null),u=Gn(a),d=Gn(o),p=m.useRef(null),f=He(t,g=>c(g)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let g=function(w){if(h.paused||!l)return;const j=w.target;l.contains(j)?p.current=j:Dr(p.current,{select:!0})},b=function(w){if(h.paused||!l)return;const j=w.relatedTarget;j!==null&&(l.contains(j)||Dr(p.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Dr(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const y=new MutationObserver(x);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),y.disconnect()}}},[r,l,h.paused]),m.useEffect(()=>{if(l){Gg.add(h);const g=document.activeElement;if(!l.contains(g)){const x=new CustomEvent(rd,Hg);l.addEventListener(rd,u),l.dispatchEvent(x),x.defaultPrevented||(kR(zR(ib(l)),{select:!0}),document.activeElement===g&&Dr(l))}return()=>{l.removeEventListener(rd,u),setTimeout(()=>{const x=new CustomEvent(ad,Hg);l.addEventListener(ad,d),l.dispatchEvent(x),x.defaultPrevented||Dr(g??document.body,{select:!0}),l.removeEventListener(ad,d),Gg.remove(h)},0)}}},[l,u,d,h]);const k=m.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(b&&x){const y=g.currentTarget,[w,j]=jR(y);w&&j?!g.shiftKey&&x===j?(g.preventDefault(),n&&Dr(w,{select:!0})):g.shiftKey&&x===w&&(g.preventDefault(),n&&Dr(j,{select:!0})):x===y&&g.preventDefault()}},[n,r,h.paused]);return s.jsx(Te.div,{tabIndex:-1,...i,ref:f,onKeyDown:k})});lf.displayName=bR;function kR(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Dr(r,{select:t}),document.activeElement!==n)return}function jR(e){const t=ib(e),n=Vg(t,e),r=Vg(t.reverse(),e);return[n,r]}function ib(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vg(e,t){for(const n of e)if(!SR(n,{upTo:t}))return n}function SR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function NR(e){return e instanceof HTMLInputElement&&"select"in e}function Dr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&NR(e)&&t&&e.select()}}var Gg=ER();function ER(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zg(e,t),e.unshift(t)},remove(t){var n;e=Zg(e,t),(n=e[0])==null||n.resume()}}}function Zg(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zR(e){return e.filter(t=>t.tagName!=="A")}var sd=0;function lb(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yg()),document.body.insertAdjacentElement("beforeend",e[1]??Yg()),sd++,()=>{sd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sd--}},[])}function Yg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,651 bytes, lines 317-332
317style.position="fixed",e.style.pointerEvents="none",e}var ar=function(){return ar=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ar.apply(this,arguments)};function cb(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function CR(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Ll="right-scroll-bar-position",Dl="width-before-scroll-bar",AR="with-scroll-bars-hidden",TR="--removed-body-scroll-bar-size";function od(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PR(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var RR=typeof window<"u"?m.useLayoutEffect:m.useEffect,Qg=new WeakMap;function OR(e,t){var n=PR(null,function(r){return e.forEach(function(a){return od(a,r)})});return RR(function(){var r=Qg.get(n);if(r){var a=new Set(r),o=new Set(e),i=n.current;a.forEach(function(l){o.has(l)||od(l,null)}),o.forEach(function(l){a.has(l)||od(l,i)})}Qg.set(n,e)},[e]),n}function MR(e){return e}function IR(e,t){t===void 0&&(t=MR);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(o),i=n}var c=function(){var d=i;i=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return a}function _R(e){e===void 0&&(e={});var t=IR(null);return t.options=ar({async:!0,ssr:!1},e),t}var ub=function(e){var t=e.sideCar,n=cb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,ar({},n))};ub.isSideCarExport=!0;function LR(e,t){return e.useMedium(t),ub}var db=_R(),id=function(){},lu=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:id,onWheelCapture:id,onTouchMoveCapture:id}),a=r[0],o=r[1],i=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,h=e.noRelative,k=e.noIsolation,g=e.inert,b=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,j=cb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,N=OR([n,t]),E=ar(ar({},j),a);return m.createElement(m.Fragment,null,d&&m.createElement(S,{sideCar:db,removeScrollBar:u,shards:p,noRelative:h,noIsolation:k,inert:g,setCallbacks:o,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?m.cloneElement(m.Children.only(l),ar(ar({},E),{ref:N})):m.createElement(y,ar({},E,{className:c,ref:N}),l))});lu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lu.classNames={fullWidth:Dl,zeroRight:Ll};var DR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DR();return t&&e.setAttribute("nonce",t),e}function UR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $R(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var BR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=FR())&&(UR(t,n),$R(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},KR=function(){var e=BR();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mb=function(){var e=KR(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},WR={left:0,top:0,right:0,gap:0},ld=function(e){return parseInt(e||"",10)||0},HR=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ld(n),ld(r),ld(a)]},VR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WR;var t=HR(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},GR=mb(),Ls="data-scroll-locked",ZR=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
318  .`.concat(AR,` {
319   overflow: hidden `).concat(r,`;
320   padding-right: `).concat(l,"px ").concat(r,`;
321  }
322  body[`).concat(Ls,`] {
323    overflow: hidden `).concat(r,`;
324    overscroll-behavior: contain;
325    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
326    padding-left: `.concat(a,`px;
327    padding-top: `).concat(o,`px;
328    padding-right: `).concat(i,`px;
329    margin-left:0;
330    margin-top:0;
331    margin-right: `).concat(l,"px ").concat(r,`;
332    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
332")].filter(Boolean).join(""),`
333  }
334  
335  .`).concat(Ll,` {
336    right: `).concat(l,"px ").concat(r,`;
337  }
338  
339  .`).concat(Dl,` {
340    margin-right: `).concat(l,"px ").concat(r,`;
341  }
342  
343  .`).concat(Ll," .").concat(Ll,` {
344    right: 0 `).concat(r,`;
345  }
346  
347  .`).concat(Dl," .").concat(Dl,` {
348    margin-right: 0 `).concat(r,`;
349  }
350  
351  body[`).concat(Ls,`] {
352    `).concat(TR,": ").concat(l,`px;
353  }
354`)},qg=function(){var e=parseInt(document.body.getAttribute(Ls)||"0",10);return isFinite(e)?e:0},YR=function(){m.useEffect(function(){return document.body.setAttribute(Ls,(qg()+1).toString()),function(){var e=qg()-1;e<=0?document.body.removeAttribute(Ls):document.body.setAttribute(Ls,e.toString())}},[])},QR=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;YR();var o=m.useMemo(function(){return VR(a)},[a]);return m.createElement(GR,{styles:ZR(o,!t,a,n?"":"!important")})},Tm=!1;if(typeof window<"u")try{var ml=Object.defineProperty({},"passive",{get:function(){return Tm=!0,!0}});window.addEventListener("test",ml,ml),window.removeEventListener("test",ml,ml)}catch{Tm=!1}var is=Tm?{passive:!1}:!1,qR=function(e){return e.tagName==="TEXTAREA"},pb=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qR(e)&&n[t]==="visible")},JR=function(e){return pb(e,"overflowY")},XR=function(e){return pb(e,"overflowX")},Jg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=fb(e,r);if(a){var o=hb(e,r),i=o[1],l=o[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},e4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},t4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fb=function(e,t){return e==="v"?JR(t):XR(t)},hb=function(e,t){return e==="v"?e4(t):t4(t)},n4=function(e,t){return e==="h"&&t==="rtl"?-1:1},r4=function(e,t,n,r,a){var o=n4(e,window.getComputedStyle(t).direction),i=o*r,l=n.target,c=t.contains(l),u=!1,d=i>0,p=0,f=0;do{if(!l)break;var h=hb(e,l),k=h[0],g=h[1],b=h[2],x=g-b-o*k;(k||x)&&fb(e,l)&&(p+=x,f+=k);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(p)<1||!a)||!d&&(Math.abs(f)<1||!a))&&(u=!0),u},pl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xg=function(e){return[e.deltaX,e.deltaY]},ey=function(e){return e&&"current"in e?e.current:e},a4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},s4=function(e){return`
355  .block-interactivity-`.concat(e,` {pointer-events: none;}
356  .allow-interactivity-`).concat(e,` {pointer-events: all;}
357`)},o4=0,ls=[];function i4(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),a=m.useState(o4++)[0],o=m.useState(mb)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=CR([e.lockRef.current],(e.shards||[]).map(ey),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var x=pl(g),y=n.current,w="deltaX"in g?g.deltaX:y[0]-x[0],j="deltaY"in g?g.deltaY:y[1]-x[1],S,N=g.target,E=Math.abs(w)>Math.abs(j)?"h":"v";if("touches"in g&&E==="h"&&N.type==="range")return!1;var T=Jg(E,N);if(!T)return!0;if(T?S=E:(S=E==="v"?"h":"v",T=Jg(E,N)),!T)return!1;if(!r.current&&"changedTouches"in g&&(w||j)&&(r.current=S),!S)return!0;var P=r.current||S;return r4(P,b,g,P==="h"?w:j,!0)},[]),c=m.useCallback(function(g){var b=g;if(!(!ls.length||ls[ls.length-1]!==o)){var x="deltaY"in b?Xg(b):pl(b),y=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&a4(S.delta,x)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}
vendor: 4,333 bytes, line 357
357if(!y){var w=(i.current.shards||[]).map(ey).filter(Boolean).filter(function(S){return S.contains(b.target)}),j=w.length>0?l(b,w[0]):!i.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=m.useCallback(function(g,b,x,y){var w={name:g,delta:b,target:x,should:y,shadowParent:l4(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(j){return j!==w})},1)},[]),d=m.useCallback(function(g){n.current=pl(g),r.current=void 0},[]),p=m.useCallback(function(g){u(g.type,Xg(g),g.target,l(g,e.lockRef.current))},[]),f=m.useCallback(function(g){u(g.type,pl(g),g.target,l(g,e.lockRef.current))},[]);m.useEffect(function(){return ls.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,is),document.addEventListener("touchmove",c,is),document.addEventListener("touchstart",d,is),function(){ls=ls.filter(function(g){return g!==o}),document.removeEventListener("wheel",c,is),document.removeEventListener("touchmove",c,is),document.removeEventListener("touchstart",d,is)}},[]);var h=e.removeScrollBar,k=e.inert;return m.createElement(m.Fragment,null,k?m.createElement(o,{styles:s4(a)}):null,h?m.createElement(QR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function l4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const c4=LR(db,i4);var cf=m.forwardRef(function(e,t){return m.createElement(lu,ar({},e,{ref:t,sideCar:c4}))});cf.classNames=lu.classNames;var u4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cs=new WeakMap,fl=new WeakMap,hl={},cd=0,gb=function(e){return e&&(e.host||gb(e.parentNode))},d4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=gb(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},m4=function(e,t,n,r){var a=d4(t,Array.isArray(e)?e:[e]);hl[n]||(hl[n]=new WeakMap);var o=hl[n],i=[],l=new Set,c=new Set(a),u=function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))};a.forEach(u);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(f){if(l.has(f))d(f);else try{var h=f.getAttribute(r),k=h!==null&&h!=="false",g=(cs.get(f)||0)+1,b=(o.get(f)||0)+1;cs.set(f,g),o.set(f,b),i.push(f),g===1&&k&&fl.set(f,!0),b===1&&f.setAttribute(n,"true"),k||f.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return d(t),l.clear(),cd++,function(){i.forEach(function(p){var f=cs.get(p)-1,h=o.get(p)-1;cs.set(p,f),o.set(p,h),f||(fl.has(p)||p.removeAttribute(r),fl.delete(p)),h||p.removeAttribute(n)}),cd--,cd||(cs=new WeakMap,cs=new WeakMap,fl=new WeakMap,hl={})}},yb=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=u4(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),m4(r,a,n,"aria-hidden")):function(){return null}},cu="Dialog",[xb,U3]=qa(cu),[p4,Qn]=xb(cu),vb=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=m.useRef(null),c=m.useRef(null),[u,d]=xi({prop:r,defaultProp:a??!1,onChange:o,caller:cu});return s.jsx(p4,{scope:t,triggerRef:l,contentRef:c,contentId:Is(),titleId:Is(),descriptionId:Is(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};vb.displayName=cu;var wb="DialogTrigger",f4=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Qn(wb,n),o=He(t,a.triggerRef);return s.jsx(Te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":mf(a.open),...r,ref:o,onClick:he(e.onClick,a.onOpenToggle)})});f4.displayName=wb;var uf="DialogPortal",[h4,bb]=xb(uf,{forceMount:void 0}),kb=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Qn(uf,t);return s.jsx(h4,{scope:t,forceMount:n,children:m.Children.map(r,i=>s.jsx(uo,{present:n||o.open,children:s.jsx(Qc,{asChild:!0,container:a,children:i})}))})};kb.displayName=uf;var Cc="DialogOverlay",jb=m.forwardRef((e,t)=>{const n=bb(Cc,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Qn(Cc,e.__scopeDialog);return o.modal?s.jsx(uo,{present:r||o.open,children:s.jsx(y4,{...a,ref:t})}):null});jb.displayName=Cc;var g4=Xs("DialogOverlay.RemoveScroll"),y4=m.forwardRef((e,t)=>
vendor: 4,628 bytes, lines 357-361
357{const{__scopeDialog:n,...r}=e,a=Qn(Cc,n);return s.jsx(cf,{as:g4,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(Te.div,{"data-state":mf(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ba="DialogContent",Sb=m.forwardRef((e,t)=>{const n=bb(Ba,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Qn(Ba,e.__scopeDialog);return s.jsx(uo,{present:r||o.open,children:o.modal?s.jsx(x4,{...a,ref:t}):s.jsx(v4,{...a,ref:t})})});Sb.displayName=Ba;var x4=m.forwardRef((e,t)=>{const n=Qn(Ba,e.__scopeDialog),r=m.useRef(null),a=He(t,n.contentRef,r);return m.useEffect(()=>{const o=r.current;if(o)return yb(o)},[]),s.jsx(Nb,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:he(e.onFocusOutside,o=>o.preventDefault())})}),v4=m.forwardRef((e,t)=>{const n=Qn(Ba,e.__scopeDialog),r=m.useRef(!1),a=m.useRef(!1);return s.jsx(Nb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),Nb=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=Qn(Ba,n),c=m.useRef(null),u=He(t,c);return lb(),s.jsxs(s.Fragment,{children:[s.jsx(lf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:s.jsx(Pi,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":mf(l.open),...i,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(w4,{titleId:l.titleId}),s.jsx(k4,{contentRef:c,descriptionId:l.descriptionId})]})]})}),df="DialogTitle",Eb=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Qn(df,n);return s.jsx(Te.h2,{id:a.titleId,...r,ref:t})});Eb.displayName=df;var zb="DialogDescription",Cb=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Qn(zb,n);return s.jsx(Te.p,{id:a.descriptionId,...r,ref:t})});Cb.displayName=zb;var Ab="DialogClose",Tb=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Qn(Ab,n);return s.jsx(Te.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>a.onOpenChange(!1))})});Tb.displayName=Ab;function mf(e){return e?"open":"closed"}var Pb="DialogTitleWarning",[$3,Rb]=iE(Pb,{contentName:Ba,titleName:df,docsSlug:"dialog"}),w4=({titleId:e})=>{const t=Rb(Pb),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
358
359If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
360
361For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},b4="DialogDescriptionWarning",k4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rb(b4).contentName}}.`;return m.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},j4=vb,S4=kb,Ob=jb,Mb=Sb,Ib=Eb,_b=Cb,N4=Tb;const ud=j4,E4=S4,Lb=m.forwardRef(({className:e,...t},n)=>s.jsx(Ob,{ref:n,className:te("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Lb.displayName=Ob.displayName;const Fl=m.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(E4,{children:[s.jsx(Lb,{}),s.jsxs(Mb,{ref:r,className:te("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
361nded-lg",e),...n,children:[t,s.jsxs(N4,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(no,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fl.displayName=Mb.displayName;const Ul=({className:e,...t})=>s.jsx("div",{className:te("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ul.displayName="DialogHeader";const $l=({className:e,...t})=>s.jsx("div",{className:te("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$l.displayName="DialogFooter";const Bl=m.forwardRef(({className:e,...t},n)=>s.jsx(Ib,{ref:n,className:te("text-lg font-semibold leading-none tracking-tight",e),...t}));Bl.displayName=Ib.displayName;const Kl=m.forwardRef(({className:e,...t},n)=>s.jsx(_b,{ref:n,className:te("text-sm text-muted-foreground",e),...t}));Kl.displayName=_b.displayName;const We=m.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:te("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));We.displayName="Input";var z4="Label",Db=m.forwardRef((e,t)=>s.jsx(Te.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Db.displayName=z4;var Fb=Db;const C4=Oi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Pm=m.forwardRef(({className:e,...t},n)=>s.jsx(Fb,{ref:n,className:te(C4(),e),...t}));Pm.displayName=Fb.displayName;function ty(e,[t,n]){return Math.min(n,Math.max(t,e))}var A4=m.createContext(void 0);function T4(e){const t=m.useContext(A4);return e||t||"ltr"}function Ub(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var P4=[" ","Enter","ArrowUp","ArrowDown"],R4=[" ","Enter"],Ka="Select",[uu,du,O4]=o0(Ka),[go,B3]=qa(Ka,[O4,nu]),mu=nu(),[M4,ga]=go(Ka),[I4,_4]=go(Ka),$b=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:p,disabled:f,required:h,form:k}=e,g=mu(t),[b,x]=m.useState(null),[y,w]=m.useState(null),[j,S]=m.useState(!1),N=T4(u),[E,T]=xi({prop:r,defaultProp:a??!1,onChange:o,caller:Ka}),[P,L]=xi({prop:i,defaultProp:l,onChange:c,caller:Ka}),K=m.useRef(null),F=b?k||!!b.closest("form"):!0,[ee,M]=m.useState(new Set),W=Array.from(ee).map(_=>_.props.value).join(";");return s.jsx(bA,{...g,children:s.jsxs(M4,{required:h,scope:t,trigger:b,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:j,onValueNodeHasChildrenChange:S,contentId:Is(),value:P,onValueChange:L,open:E,onOpenChange:T,dir:N,triggerPointerDownPosRef:K,disabled:f,children:[s.jsx(uu.Provider,{scope:t,children:s.jsx(I4,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback(_=>{M(U=>new Set(U).add(_))},[]),onNativeOptionRemove:m.useCallback(_=>{M(U=>{const z=new Set(U);return z.delete(_),z})},[]),children:n})}),F?s.jsxs(dk,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:p,value:P,onChange:_=>L(_.target.value),disabled:f,form:k,children:[P===void 0?s.jsx("option",{value:""}):null,Array.from(ee)]},W):null]})})};$b.displayName=Ka;var Bb="SelectTrigger",Kb=m.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=mu(n),i=ga(Bb,n),l=i.disabled||r,c=He(t,i.onTriggerChange),u=du(n),d=m.useRef("touch"),[p,f,h]=pk(g=>{const b=u().filter(w=>!w.disabled),x=b.find(w=>w.value===i.value),y=fk(b,g,x);y!==void 0&&i.onValueChange(y.value)}),k=g=>{l||(i.onOpenChange(!0),h()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return s.jsx(yw,{asChild:!0,...o,children:s.jsx(Te.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":mk(i.value)?"":void 0,...a,ref:c,onClick:he(a.onClick,g=>
vendor: 16,057 bytes, line 361
361{g.currentTarget.focus(),d.current!=="mouse"&&k(g)}),onPointerDown:he(a.onPointerDown,g=>{d.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(k(g),g.preventDefault())}),onKeyDown:he(a.onKeyDown,g=>{const b=p.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&f(g.key),!(b&&g.key===" ")&&P4.includes(g.key)&&(k(),g.preventDefault())})})})});Kb.displayName=Bb;var Wb="SelectValue",Hb=m.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...l}=e,c=ga(Wb,n),{onValueNodeHasChildrenChange:u}=c,d=o!==void 0,p=He(t,c.onValueNodeChange);return Tt(()=>{u(d)},[u,d]),s.jsx(Te.span,{...l,ref:p,style:{pointerEvents:"none"},children:mk(c.value)?s.jsx(s.Fragment,{children:i}):o})});Hb.displayName=Wb;var L4="SelectIcon",Vb=m.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return s.jsx(Te.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});Vb.displayName=L4;var D4="SelectPortal",Gb=e=>s.jsx(Qc,{asChild:!0,...e});Gb.displayName=D4;var Wa="SelectContent",Zb=m.forwardRef((e,t)=>{const n=ga(Wa,e.__scopeSelect),[r,a]=m.useState();if(Tt(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?Ga.createPortal(s.jsx(Yb,{scope:e.__scopeSelect,children:s.jsx(uu.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),o):null}return s.jsx(Qb,{...e,ref:t})});Zb.displayName=Wa;var _n=10,[Yb,ya]=go(Wa),F4="SelectContentImpl",U4=Xs("SelectContent.RemoveScroll"),Qb=m.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:f,collisionPadding:h,sticky:k,hideWhenDetached:g,avoidCollisions:b,...x}=e,y=ga(Wa,n),[w,j]=m.useState(null),[S,N]=m.useState(null),E=He(t,B=>j(B)),[T,P]=m.useState(null),[L,K]=m.useState(null),F=du(n),[ee,M]=m.useState(!1),W=m.useRef(!1);m.useEffect(()=>{if(w)return yb(w)},[w]),lb();const _=m.useCallback(B=>{const[we,...Ce]=F().map(V=>V.ref.current),[be]=Ce.slice(-1),oe=document.activeElement;for(const V of B)if(V===oe||(V==null||V.scrollIntoView({block:"nearest"}),V===we&&S&&(S.scrollTop=0),V===be&&S&&(S.scrollTop=S.scrollHeight),V==null||V.focus(),document.activeElement!==oe))return},[F,S]),U=m.useCallback(()=>_([T,w]),[_,T,w]);m.useEffect(()=>{ee&&U()},[ee,U]);const{onOpenChange:z,triggerPointerDownPosRef:R}=y;m.useEffect(()=>{if(w){let B={x:0,y:0};const we=be=>{var oe,V;B={x:Math.abs(Math.round(be.pageX)-(((oe=R.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(be.pageY)-(((V=R.current)==null?void 0:V.y)??0))}},Ce=be=>{B.x<=10&&B.y<=10?be.preventDefault():w.contains(be.target)||z(!1),document.removeEventListener("pointermove",we),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[w,z,R]),m.useEffect(()=>{const B=()=>z(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[z]);const[D,X]=pk(B=>{const we=F().filter(oe=>!oe.disabled),Ce=we.find(oe=>oe.ref.current===document.activeElement),be=fk(we,B,Ce);be&&setTimeout(()=>be.ref.current.focus())}),Y=m.useCallback((B,we,Ce)=>{const be=!W.current&&!Ce;(y.value!==void 0&&y.value===we||be)&&(P(B),be&&(W.current=!0))},[y.value]),ne=m.useCallback(()=>w==null?void 0:w.focus(),[w]),Z=m.useCallback((B,we,Ce)=>{const be=!W.current&&!Ce;(y.value!==void 0&&y.value===we||be)&&K(B)},[y.value]),ve=r==="popper"?Rm:qb,_e=ve===Rm?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:f,collisionPadding:h,sticky:k,hideWhenDetached:g,avoidCollisions:b}:{};return s.jsx(Yb,{scope:n,content:w,viewport:S,onViewportChange:N,itemRefCallback:Y,selectedItem:T,onItemLeave:ne,itemTextRefCallback:Z,focusSelectedItem:U,selectedItemText:L,position:r,isPositioned:ee,searchRef:D,children:s.jsx(cf,{as:U4,allowPinchZoom:!0,children:s.jsx(lf,{asChild:!0,trapped:y.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:he(a,B=>{var we;(we=y.trigger)==null||we.focus({preventScroll:!0}),B.preventDefault()}),children:s.jsx(Pi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:s.jsx(ve,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:B=>B.preventDefault(),...x,..._e,onPlaced:()=>M(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:he(x.onKeyDown,B=>{const we=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!we&&B.key.length===1&&X(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let be=F().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(B.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const oe=B.target,V=be.indexOf(oe);be=be.slice(V+1)}setTimeout(()=>_(be)),B.preventDefault()}})})})})})})});Qb.displayName=F4;var $4="SelectItemAlignedPosition",qb=m.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=ga(Wa,n),i=ya(Wa,n),[l,c]=m.useState(null),[u,d]=m.useState(null),p=He(t,E=>d(E)),f=du(n),h=m.useRef(!1),k=m.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=i,w=m.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&g&&b&&x){const E=o.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),P=o.valueNode.getBoundingClientRect(),L=x.getBoundingClientRect();if(o.dir!=="rtl"){const oe=L.left-T.left,V=P.left-oe,$e=E.left-V,ie=E.width+$e,Le=Math.max(ie,T.width),Ve=window.innerWidth-_n,Bt=ty(V,[_n,Math.max(_n,Ve-Le)]);l.style.minWidth=ie+"px",l.style.left=Bt+"px"}else{const oe=T.right-L.right,V=window.innerWidth-P.right-oe,$e=window.innerWidth-E.right-V,ie=E.width+$e,Le=Math.max(ie,T.width),Ve=window.innerWidth-_n,Bt=ty(V,[_n,Math.max(_n,Ve-Le)]);l.style.minWidth=ie+"px",l.style.right=Bt+"px"}const K=f(),F=window.innerHeight-_n*2,ee=g.scrollHeight,M=window.getComputedStyle(u),W=parseInt(M.borderTopWidth,10),_=parseInt(M.paddingTop,10),U=parseInt(M.borderBottomWidth,10),z=parseInt(M.paddingBottom,10),R=W+_+ee+z+U,D=Math.min(b.offsetHeight*5,R),X=window.getComputedStyle(g),Y=parseInt(X.paddingTop,10),ne=parseInt(X.paddingBottom,10),Z=E.top+E.height/2-_n,ve=F-Z,_e=b.offsetHeight/2,B=b.offsetTop+_e,we=W+_+B,Ce=R-we;if(we<=Z){const oe=K.length>0&&b===K[K.length-1].ref.current;l.style.bottom="0px";const V=u.clientHeight-g.offsetTop-g.offsetHeight,$e=Math.max(ve,_e+(oe?ne:0)+V+U),ie=we+$e;l.style.height=ie+"px"}else{const oe=K.length>0&&b===K[0].ref.current;l.style.top="0px";const $e=Math.max(Z,W+g.offsetTop+(oe?Y:0)+_e)+Ce;l.style.height=$e+"px",g.scrollTop=we-Z+g.offsetTop}l.style.margin=`${_n}px 0`,l.style.minHeight=D+"px",l.style.maxHeight=F+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[f,o.trigger,o.valueNode,l,u,g,b,x,o.dir,r]);Tt(()=>w(),[w]);const[j,S]=m.useState();Tt(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const N=m.useCallback(E=>{E&&k.current===!0&&(w(),y==null||y(),k.current=!1)},[w,y]);return s.jsx(K4,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:s.jsx(Te.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});qb.displayName=$4;var B4="SelectPopperPosition",Rm=m.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=_n,...o}=e,i=mu(n);return s.jsx(xw,{...i,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Rm.displayName=B4;var[K4,pf]=go(Wa,{}),Om="SelectViewport",Jb=m.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=ya(Om,n),i=pf(Om,n),l=He(t,o.onViewportChange),c=m.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx(uu.Slot,{scope:n,children:s.jsx(Te.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:he(a.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&p){const h=Math.abs(c.current-d.scrollTop);if(h>0){const k=window.innerHeight-_n*2,g=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),x=Math.max(g,b);if(x<k){const y=x+h,w=Math.min(k,y),j=y-w;p.style.height=w+"px",p.style.bottom==="0px"&&(d.scrollTop=j>0?j:0,p.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});Jb.displayName=Om;var Xb="SelectGroup",[W4,H4]=go(Xb),V4=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Is();return s.jsx(W4,{scope:n,id:a,children:s.jsx(Te.div,{role:"group","aria-labelledby":a,...r,ref:t})})});V4.displayName=Xb;var ek="SelectLabel",tk=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=H4(ek,n);return s.jsx(Te.div,{id:a.id,...r,ref:t})});tk.displayName=ek;var Ac="SelectItem",[G4,nk]=go(Ac),rk=m.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,l=ga(Ac,n),c=ya(Ac,n),u=l.value===r,[d,p]=m.useState(o??""),[f,h]=m.useState(!1),k=He(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,r,a)}),g=Is(),b=m.useRef("touch"),x=()=>{a||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(G4,{scope:n,value:r,disabled:a,textId:g,isSelected:u,onItemTextChange:m.useCallback(y=>{p(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:s.jsx(uu.ItemSlot,{scope:n,value:r,disabled:a,textValue:d,children:s.jsx(Te.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:k,onFocus:he(i.onFocus,()=>h(!0)),onBlur:he(i.onBlur,()=>h(!1)),onClick:he(i.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:he(i.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:he(i.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:he(i.onPointerMove,y=>{var w;b.current=y.pointerType,a?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(i.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:he(i.onKeyDown,y=>{var j;((j=c.searchRef)==null?void 0:j.current)!==""&&y.key===" "||(R4.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});rk.displayName=Ac;var Io="SelectItemText",ak=m.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=ga(Io,n),l=ya(Io,n),c=nk(Io,n),u=_4(Io,n),[d,p]=m.useState(null),f=He(t,x=>p(x),c.onItemTextChange,x=>{var y;return(y=l.itemTextRefCallback)==null?void 0:y.call(l,x,c.value,c.disabled)}),h=d==null?void 0:d.textContent,k=m.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return Tt(()=>(g(k),()=>b(k)),[g,b,k]),s.jsxs(s.Fragment,{children:[s.jsx(Te.span,{id:c.textId,...o,ref:f}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ga.createPortal(o.children,i.valueNode):null]})});ak.displayName=Io;var sk="SelectItemIndicator",ok=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return nk(sk,n).isSelected?s.jsx(Te.span,{"aria-hidden":!0,...r,ref:t}):null});ok.displayName=sk;var Mm="SelectScrollUpButton",ik=m.forwardRef((e,t)=>{const n=ya(Mm,e.__scopeSelect),r=pf(Mm,e.__scopeSelect),[a,o]=m.useState(!1),i=He(t,r.onScrollButtonChange);return Tt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;o(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?s.jsx(ck,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});ik.displayName=Mm;var Im="SelectScrollDownButton",lk=m.forwardRef((e,t)=>{const n=ya(Im,e.__scopeSelect),r=pf(Im,e.__scopeSelect),[a,o]=m.useState(!1),i=He(t,r.onScrollButtonChange);return Tt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;o(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),a?s.jsx(ck,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});lk.displayName=Im;var ck=m.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=ya("SelectScrollButton",n),i=m.useRef(null),l=du(n),c=m.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),Tt(()=>{var d;const u=l().find(p=>p.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),s.jsx(Te.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:he(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:he(a.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:he(a.onPointerLeave,()=>{c()})})}),Z4="SelectSeparator",uk=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(Te.div,{"aria-hidden":!0,...r,ref:t})});uk.displayName=Z4;var _m="SelectArrow",Y4=m.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mu(n),o=ga(_m,n),i=ya(_m,n);return o.open&&i.position==="popper"?s.jsx(vw,{...a,...r,ref:t}):null});Y4.displayName=_m;var Q4="SelectBubbleInput",dk=m.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=m.useRef(null),o=He(r,a),i=Ub(t);return m.useEffect(()=>{const l=a.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const p=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(p)}},[i,t]),s.jsx(Te.select,{...n,style:{...d0,...n.style},ref:o,defaultValue:t})});dk.displayName=Q4;function mk(e){return e===""||e===void 0}function pk(e){const t=Gn(e),n=m.useRef(""),r=m.useRef(0),a=m.useCallback(i=>{const l=n.current+i;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),o=m.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function fk(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=q4(e,Math.max(o,0));a.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}function q4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var J4=$b,hk=Kb,X4=Hb,e3=Vb,t3=Gb,gk=Zb,n3=Jb,yk=tk,xk=rk,r3=ak,a3=ok,vk=ik,wk=lk,bk=uk;const gl=J4,yl=X4,_o=m.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(hk,{ref:r,className:te("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
361ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(e3,{asChild:!0,children:s.jsx(xc,{className:"h-4 w-4 opacity-50"})})]}));_o.displayName=hk.displayName;const kk=m.forwardRef(({className:e,...t},n)=>s.jsx(vk,{ref:n,className:te("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(sz,{className:"h-4 w-4"})}));kk.displayName=vk.displayName;const jk=m.forwardRef(({className:e,...t},n)=>s.jsx(wk,{ref:n,className:te("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(xc,{className:"h-4 w-4"})}));jk.displayName=wk.displayName;const Lo=m.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>s.jsx(t3,{children:s.jsxs(gk,{ref:a,className:te("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx(kk,{}),s.jsx(n3,{className:te("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(jk,{})]})}));Lo.displayName=gk.displayName;const s3=m.forwardRef(({className:e,...t},n)=>s.jsx(yk,{ref:n,className:te("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));s3.displayName=yk.displayName;const ba=m.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(xk,{ref:r,className:te("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(a3,{children:s.jsx(M0,{className:"h-4 w-4"})})}),s.jsx(r3,{children:t})]}));ba.displayName=xk.displayName;const o3=m.forwardRef(({className:e,...t},n)=>s.jsx(bk,{ref:n,className:te("-mx-1 my-1 h-px bg-muted",e),...t}));o3.displayName=bk.displayName;var pu="Switch",[i3,K3]=qa(pu),[l3,c3]=i3(pu),Sk=m.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:i,disabled:l,value:c="on",onCheckedChange:u,form:d,...p}=e,[f,h]=m.useState(null),k=He(t,w=>h(w)),g=m.useRef(!1),b=f?d||!!f.closest("form"):!0,[x,y]=xi({prop:a,defaultProp:o??!1,onChange:u,caller:pu});return s.jsxs(l3,{scope:n,checked:x,disabled:l,children:[s.jsx(Te.button,{type:"button",role:"switch","aria-checked":x,"aria-required":i,"data-state":Ck(x),"data-disabled":l?"":void 0,disabled:l,value:c,...p,ref:k,onClick:he(e.onClick,w=>{y(j=>!j),b&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})}),b&&s.jsx(zk,{control:f,bubbles:!g.current,name:r,value:c,checked:x,required:i,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Sk.displayName=pu;var Nk="SwitchThumb",Ek=m.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=c3(Nk,n);return s.jsx(Te.span,{"data-state":Ck(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Ek.displayName=Nk;var u3="SwitchBubbleInput",zk=m.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{const i=m.useRef(null),l=He(i,o),c=Ub(n),u=iw(t);return m.useEffect(()=>{const d=i.current;if(!d)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==n&&h){const k=new Event("click",{bubbles:r});
361h.call(d,n),d.dispatchEvent(k)}},[c,n,r]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:l,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zk.displayName=u3;function Ck(e){return e?"checked":"unchecked"}var Ak=Sk,d3=Ek;const In=m.forwardRef(({className:e,...t},n)=>s.jsx(Ak,{className:te("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:s.jsx(d3,{className:te("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));In.displayName=Ak.displayName;const Do=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{className:"relative w-full overflow-auto",children:s.jsx("table",{ref:n,className:te("w-full caption-bottom text-sm",e),...t})}));Do.displayName="Table";const Fo=m.forwardRef(({className:e,...t},n)=>s.jsx("thead",{ref:n,className:te("[&_tr]:border-b",e),...t}));Fo.displayName="TableHeader";const Uo=m.forwardRef(({className:e,...t},n)=>s.jsx("tbody",{ref:n,className:te("[&_tr:last-child]:border-0",e),...t}));Uo.displayName="TableBody";const m3=m.forwardRef(({className:e,...t},n)=>s.jsx("tfoot",{ref:n,className:te("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));m3.displayName="TableFooter";const xr=m.forwardRef(({className:e,...t},n)=>s.jsx("tr",{ref:n,className:te("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));xr.displayName="TableRow";const Be=m.forwardRef(({className:e,...t},n)=>s.jsx("th",{ref:n,className:te("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Be.displayName="TableHead";const Ke=m.forwardRef(({className:e,...t},n)=>s.jsx("td",{ref:n,className:te("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ke.displayName="TableCell";const p3=m.forwardRef(({className:e,...t},n)=>s.jsx("caption",{ref:n,className:te("mt-4 text-sm text-muted-foreground",e),...t}));p3.displayName="TableCaption";const Lm=m.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:te("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
361ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Lm.displayName="Textarea";const dd=new Set(["new","payment_pending","paid","accepted","preparing","ready","out_for_delivery"]),f3={new:"Nowe",payment_pending:"Czeka na płatność",paid:"Nowe - opłacone",accepted:"Przyjęte",preparing:"W przygotowaniu",ready:"Gotowe do odbioru",out_for_delivery:"W dostawie",completed:"Zrealizowane",cancelled:"Anulowane",payment_failed:"Płatność nieudana"},ny={cash_on_pickup:"Gotówka",card_on_pickup:"Karta",przelewy24:"Przelewy24"},ry={pending:"Oczekuje na płatność online",paid:"Zapłacono",cash_on_pickup:"Płatność gotówką",card_on_pickup:"Płatność kartą",failed:"Płatność nieudana"},h3={pending:"border-orange-200 bg-orange-100 text-orange-900",paid:"border-emerald-200 bg-emerald-100 text-emerald-900",cash_on_pickup:"border-sky-200 bg-sky-100 text-sky-900",card_on_pickup:"border-indigo-200 bg-indigo-100 text-indigo-900",failed:"border-red-200 bg-red-100 text-red-900"},ay={delivery:"Dostawa",pickup:"Odbiór"},Wl={all:"Wszystkie lokale",sopot:"Sopot",gdynia:"Gdynia"},g3={current:"Aktualne",completed:"Zrealizowane",all:"Wszystkie"},y3=["Nd","Pn","Wt","Śr","Cz","Pt","Sb"];function sy(e){var t;return Array.isArray(e)?((t=e[0])==null?void 0:t.slug)||"":(e==null?void 0:e.slug)||""}function oy(e){var t,n;return Array.isArray(e)?((t=e[0])==null?void 0:t.name)||((n=e[0])==null?void 0:n.slug)||"":(e==null?void 0:e.name)||(e==null?void 0:e.slug)||""}function us(e){return((e||0)/100).toFixed(2)}function ds(e){return Math.round((Number.parseFloat(e.replace(",","."))||0)*100)}function x3(e){return e.payment_provider==="przelewy24"?e.payment_status:e.payment_provider}function iy(e){return e.payment_provider==="przelewy24"}function ly(e,t){return e==="new"&&t.payment_provider==="przelewy24"&&t.payment_status==="paid"?"Nowe - opłacone":e==="ready"&&t.fulfillment_method==="pickup"?"Gotowe do odbioru":e==="out_for_delivery"&&t.fulfillment_method==="delivery"?"W dostawie":f3[e]||e}function v3(e){if(e.payment_provider==="przelewy24"&&e.payment_status==="pending")return["payment_pending","cancelled"];const t=e.payment_provider==="przelewy24"&&e.payment_status==="paid"?"paid":"new",n=e.fulfillment_method==="delivery"?"out_for_delivery":"ready",r=[t,"accepted","preparing",n,"completed","cancelled"];return r.includes(e.status)?r:[e.status,...r]}const w3={new:"bg-amber-100 text-amber-900 border-amber-200",payment_pending:"bg-orange-100 text-orange-900 border-orange-200",paid:"bg-sky-100 text-sky-900 border-sky-200",accepted:"bg-blue-100 text-blue-900 border-blue-200",preparing:"bg-purple-100 text-purple-900 border-purple-200",ready:"bg-indigo-100 text-indigo-900 border-indigo-200",out_for_delivery:"bg-cyan-100 text-cyan-900 border-cyan-200",completed:"bg-emerald-100 text-emerald-900 border-emerald-200",cancelled:"bg-zinc-100 text-zinc-700 border-zinc-200",payment_failed:"bg-red-100 text-red-900 border-red-200"},b3={slug:"",name:"",description:"",image_url:"",image_path:null,price_cents:0,category_id:null,available_sopot:!0,available_gdynia:!0,active:!0,sort_order:1e3};async function k3(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>
361n(r.error),r.readAsDataURL(e)})}function md({value:e,onChange:t}){return s.jsx("div",{className:"flex rounded-lg border bg-background p-1",children:["all","sopot","gdynia"].map(n=>s.jsx(ke,{type:"button",size:"sm",variant:e===n?"default":"ghost",onClick:()=>t(n),className:"h-8",children:Wl[n]},n))})}const j3=()=>{const[e,t]=m.useState(null),[n,r]=m.useState(""),[a,o]=m.useState(""),[i,l]=m.useState(!1),[c,u]=m.useState("orders"),[d,p]=m.useState([]),[f,h]=m.useState(!1),[k,g]=m.useState(""),[b,x]=m.useState("all"),[y,w]=m.useState("current"),[j,S]=m.useState([]),[N,E]=m.useState([]),[T,P]=m.useState(!1),[L,K]=m.useState(""),[F,ee]=m.useState("all"),[M,W]=m.useState("all"),[_,U]=m.useState(null),[z,R]=m.useState(!1),[D,X]=m.useState(!1),[Y,ne]=m.useState([]),[Z,ve]=m.useState([]),[_e,B]=m.useState(!1),[we,Ce]=m.useState(""),[be,oe]=m.useState(null),[V,$e]=m.useState("all"),[ie,Le]=m.useState([]),[Ve,Bt]=m.useState(!1),[Kt,pt]=m.useState(""),[Ae,nt]=m.useState(null),[G,Q]=m.useState(!1),[ue,Pe]=m.useState([]),[de,Xe]=m.useState(!1),[me,ce]=m.useState([]),[De,et]=m.useState(!1),[Pt,gt]=m.useState(""),[re,rt]=m.useState(null),[Rt,on]=m.useState(!1),[le,Ze]=m.useState(null),[ln,Ja]=m.useState(!1),[Wt,Ht]=m.useState(!1),[xn,se]=m.useState(!1),[Se,fe]=m.useState(""),it=m.useRef(null);m.useEffect(()=>{if(!Se)return;const v=setTimeout(()=>fe(""),3e3);return()=>clearTimeout(v)},[Se]),m.useEffect(()=>{fetch("/api/admin/session").then(v=>v.json()).then(v=>t(!!(v!=null&&v.authed))).catch(()=>t(!1))},[]);const jt=m.useCallback(async()=>{h(!0),g("");try{const v=await fetch("/api/admin/orders"),A=await v.json();if(!v.ok)throw new Error((A==null?void 0:A.error)||"Błąd");p(A.orders||[])}catch(v){g(v instanceof Error?v.message:"Błąd")}finally{h(!1)}},[]),vt=m.useCallback(async()=>{P(!0),K("");try{const v=await fetch("/api/admin/products"),A=await v.json();if(!v.ok)throw new Error((A==null?void 0:A.error)||"Błąd");S(A.products||[]),E(A.categories||[])}catch(v){K(v instanceof Error?v.message:"Błąd")}finally{P(!1)}},[]),ft=m.useCallback(async()=>{B(!0),Ce("");try{const v=await fetch("/api/admin/settings"),A=await v.json();if(!v.ok)throw new Error((A==null?void 0:A.error)||"Błąd");ne(A.deliveryZones||[]),ve(A.timeSlotRules||[]);try{const H=await fetch("/api/admin/categories");if(H.ok){const ae=await H.json();E(ae.categories||[])}}catch{}}catch(v){Ce(v instanceof Error?v.message:"Błąd")}finally{B(!1)}},[]),lt=m.useCallback(async()=>{et(!0),gt("");try{const v=await fetch("/api/admin/promo-codes"),A=await v.json();if(!v.ok)throw new Error((A==null?void 0:A.error)||"Błąd");ce(A.promoCodes||[])}catch(v){gt(v instanceof Error?v.message:"Błąd")}finally{et(!1)}},[]),wt=m.useCallback(async()=>{Bt(!0),pt("");try{const v=await fetch("/api/admin/addons"),A=await v.json();if(!v.ok)throw new Error((A==null?void 0:A.error)||"Błąd");Le(A.addons||[])}catch(v){pt(v instanceof Error?v.message:"Błąd")}finally{Bt(!1)}},[]);m.useEffect(()=>{e&&c==="orders"&&jt(),e&&c==="products"&&vt(),e&&c==="addons"&&wt(),e&&c==="promos"&&lt(),e&&(c==="delivery"||c==="hours")&&ft()},[e,c,jt,vt,wt,lt,ft]);const Ii=async v=>{v==null||v.preventDefault(),l(!0),o("");try{const A=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:n})}),H=await A.json();if(!A.ok)throw new Error((H==null?void 0:H.error)||"Nie udało się zalogować");t(!0),r("")}catch(A){o(A instanceof Error?A.message:"Nie udało się zalogować")}finally{l(!1)}},_i=async()=>{await fetch("/api/admin/logout",{method:"POST"}),t(!1)},yo=async(v,A)=>{const H=d;p(Fe=>Fe.map(Ye=>Ye.id===v?{...Ye,status:A}:Ye));const ae=await fetch("/api/admin/orders",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:v,status:A})});if(!ae.ok){p(H);const Fe=await ae.json().catch(()=>({}));g((Fe==null?void 0:Fe.error)||"Nie udało się zaktualizować")}},dr=(v,A)=>{ne(H=>H.map(ae=>ae.id===v?{...ae,...A}:ae))},Li=async v=>{oe(v.id),Ce("");try{const A=await fetch("/api/admin/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"delivery_zone",zone:{id:v.id,name:v.name,delivery_fee_cents:Number(v.delivery_fee_cents)||0,free_delivery_from_cents:v.free_delivery_from_cents,min_order_cents:Number(v.min_order_cents)||0,packaging_fee_cents:Number(v.packaging_fee_cents)||0,active:v.active}})}),H=await A.json().catch(()=>({}));if(!A.ok)throw new Error((H==null?void 0:H.error)||"Nie udało się zapisać");fe("Zapisano ustawienia dostawy"),await ft()}catch(A){Ce(A instanceof Error?A.message:"Błąd zapisu")}finally{oe(null)}},C=()=>{U({id:null,name:"",slug:"",sort_order:N.length+1,active:!0,exclude_from_delivery:!1,packaging_fee_cents:0}),X(!0)},J=v=>{U({id:v.id,name:v.name,slug:v.slug,sort_order:v.sort_order??999,active:v.active,exclude_from_delivery:!!v.exclude_from_delivery,packaging_fee_cents:Number(v.packaging_fee_cents??0)}),X(!0)},je=async()=>
361{if(_){R(!0),K("");try{const v={name:_.name.trim(),slug:_.slug.trim()||void 0,sort_order:_.sort_order,active:_.active,exclude_from_delivery:_.exclude_from_delivery,packaging_fee_cents:Math.max(0,Number(_.packaging_fee_cents)||0)},A=await fetch("/api/admin/categories",{method:_.id?"PATCH":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.id?{id:_.id,...v}:v)}),H=await A.json().catch(()=>({}));if(!A.ok)throw new Error((H==null?void 0:H.error)||"Nie udało się zapisać");fe(_.id?"Zaktualizowano kategorię":"Dodano kategorię"),X(!1),U(null),await vt()}catch(v){K(v instanceof Error?v.message:"Błąd zapisu")}finally{R(!1)}}},Re=async v=>{if(confirm(`Usunąć kategorię „${v.name}”?`)){K("");try{const A=await fetch("/api/admin/categories",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:v.id})}),H=await A.json().catch(()=>({}));if(!A.ok)throw new Error((H==null?void 0:H.error)||"Nie udało się usunąć");fe("Usunięto kategorię"),await vt()}catch(A){K(A instanceof Error?A.message:"Błąd usuwania")}}},Ne=async(v,A)=>{E(H=>H.map(ae=>ae.id===v.id?{...ae,exclude_from_delivery:A}:ae));try{if(!(await fetch("/api/admin/categories",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:v.id,exclude_from_delivery:A})})).ok)throw new Error("Nie udało się zapisać kategorii");fe(A?`Wyłączono z dostawy: ${v.name}`:`Wliczane do dostawy: ${v.name}`)}catch(H){E(ae=>ae.map(Fe=>Fe.id===v.id?{...Fe,exclude_from_delivery:!A}:Fe)),Ce(H instanceof Error?H.message:"Błąd zapisu kategorii")}},Ot=(v,A)=>{ve(H=>H.map(ae=>ae.id===v?{...ae,...A}:ae))},Mt=async v=>{oe(v.id),Ce("");try{const A=await fetch("/api/admin/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"time_slot_rule",rule:{id:v.id,start_time:v.start_time.slice(0,5),end_time:v.end_time.slice(0,5),slot_frequency_minutes:Number(v.slot_frequency_minutes)||30,order_cutoff_minutes:Number(v.order_cutoff_minutes)||0,max_orders_per_slot:v.max_orders_per_slot?Number(v.max_orders_per_slot):null,active:v.active}})}),H=await A.json().catch(()=>({}));if(!A.ok)throw new Error((H==null?void 0:H.error)||"Nie udało się zapisać");fe("Zapisano godziny"),await ft()}catch(A){Ce(A instanceof Error?A.message:"Błąd zapisu")}finally{oe(null)}},Pk=()=>{Ja(!0),Ze({id:"",updated_at:"",source_id:null,...b3}),Pe([]),ie.length===0&&wt()},Rk=async v=>{Ja(!1),Ze({...v}),Pe([]),Xe(!0);try{ie.length===0&&await wt();const A=await fetch(`/api/admin/addons?product_id=${encodeURIComponent(v.id)}`),H=await A.json();A.ok&&Pe(H.productAddonIds||[])}finally{Xe(!1)}},Ok=v=>{Pe(A=>A.includes(v)?A.filter(H=>H!==v):[...A,v])},Mk=()=>{nt({label:"",price_cents:0,active:!0,sort_order:1e3})},Ik=v=>{nt({id:v.id,label:v.label,price_cents:v.price_cents,active:v.active,sort_order:v.sort_order})},_k=async()=>{if(!(!Ae||!Ae.label.trim())){Q(!0),pt("");try{const v=await fetch("/api/admin/addons",{method:Ae.id?"PATCH":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:Ae.id,label:Ae.label.trim(),price_cents:Math.max(0,Number(Ae.price_cents)||0),active:Ae.active,sort_order:Number(Ae.sort_order)||1e3})}),A=await v.json().catch(()=>({}));if(!v.ok)throw new Error((A==null?void 0:A.error)||"Nie udało się zapisać");fe(Ae.id?"Zapisano dodatek":"Dodano dodatek"),nt(null),await wt()}catch(v){pt(v instanceof Error?v.message:"Błąd")}finally{Q(!1)}}},Lk=()=>{rt({code:"",discount_percent:10,active:!0,valid_from:"",valid_until:"",max_uses:"",notes:""})},Dk=v=>{rt({id:v.id,code:v.code,discount_percent:v.discount_percent,active:v.active,valid_from:v.valid_from?v.valid_from.slice(0,16):"",valid_until:v.valid_until?v.valid_until.slice(0,16):"",max_uses:v.max_uses!=null?String(v.max_uses):"",notes:v.notes||""})},Fk=async()=>{if(!(!re||!re.code.trim())){on(!0),gt("");try{const v=Fe=>Fe?new Date(Fe).toISOString():null,A={code:re.code.trim().toUpperCase(),discount_percent:Math.min(100,Math.max(1,Number(re.discount_percent)||0)),active:re.active,valid_from:v(re.valid_from),valid_until:v(re.valid_until),max_uses:re.max_uses?Number(re.max_uses):null,notes:re.notes?re.notes.trim():null},H=await fetch("/api/admin/promo-codes",{method:re.id?"PATCH":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(re.id?{id:re.id,...A}:A)}),ae=await H.json().catch(()=>({}));if(!H.ok)throw new Error((ae==null?void 0:ae.error)||"Nie udało się zapisać");fe(re.id?"Zapisano kod promocyjny":"Dodano kod promocyjny"),rt(null),await lt()}catch(v){gt(v instanceof Error?v.message:"Błąd")}finally{on(!1)}}},Uk=async(v,A)=>{ce(ae=>ae.map(Fe=>Fe.id===v.id?{...Fe,active:A}:Fe));const H=await fetch("/api/admin/promo-codes",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:v.id,active:A})});if(!H.ok){ce(Fe=>Fe.map(Ye=>Ye.id===v.id?{...Ye,active:!A}:Ye));const ae=await H.json().catch(()=>({}));gt((ae==null?void 0:ae.error)||"Nie udało się zapisać")}},$k=async v=>{if(!window.confirm("Usunąć kod promocyjny?"))return;const A=await fetch(`/api/admin/promo-codes?id=${encodeURIComponent(v)}`,{method:"DELETE"});if(!A.ok){const H=await A.json().catch(()=>({}));gt((H==null?void 0:H.error)||"Nie udało się usunąć");return}await lt()},Bk=async v=>{if(!window.confirm("Usunąć dodatek? Zostanie odpięty od wszystkich pozycji."))return;const A=await fetch(`/api/admin/addons?id=${encodeURIComponent(v)}`,{method:"DELETE"});if(!A.ok){const H=await A.json().catch(()=>({}));pt((H==null?void 0:H.error)||"Nie udało się usunąć");return}await wt()},Kk=async()=>{var v;if(le){Ht(!0);try{const A={id:ln?void 0:le.id,slug:le.slug||void 0,name:le.name.trim(),description:le.description||"",image_url:le.image_url||"",image_path:le.image_path||null,price_cents:Number(le.price_cents)||0,category_id:le.category_id||null,available_sopot:le.available_sopot,available_gdynia:le.available_gdynia,active:le.active,sort_order:Number(le.sort_order)||1e3},H=await fetch("/api/admin/products",{method:ln?"POST":"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)}),ae=await H.json();if(!H.ok)throw new Error((ae==null?void 0:ae.error)||"Nie udało się zapisać");const Fe=((v=ae==null?void 0:ae.product)==null?void 0:v.id)||le.id;if(Fe){const Ye=await fetch("/api/admin/addons",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:Fe,addon_ids:ue})});if(!Ye.ok){const xo=await Ye.json().catch(()=>({}));throw new Error((xo==null?void 0:xo.error)||"Zapisano pozycję, ale nie udało się zapisać dodatków")}}fe(ln?"Dodano pozycję":"Zapisano zmiany"),Ze(null),Pe([]),await vt()}catch(A){K(A instanceof Error?A.message:"Błąd")}finally{Ht(!1)}}},Wk=async v=>{if(!window.confirm("Na pewno usunąć pozycję z menu?"))return;const A=await fetch(`/api/admin/products?id=${encodeURIComponent(v)}`,{method:"DELETE"});if(!A.ok){const H=await A.json().catch(()=>({}));K((H==null?void 0:H.error)||"Nie udało się usunąć");return}await vt(),fe("Usunięto pozycję")},Hk=async(v,A)=>{const H=j;S(Fe=>Fe.map(Ye=>Ye.id===v.id?{...Ye,...A}:Ye));const ae=await fetch("/api/admin/products",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:v.id,name:v.name,price_cents:v.price_cents,...A})});if(!ae.ok){S(H);const Fe=await ae.json().catch(()=>({}));K((Fe==null?void 0:Fe.error)||"Nie udało się zapisać")}},Vk=async v=>{if(le){se(!0),K("");try{const A=await k3(v),H=await fetch("/api/admin/upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:v.name,dataUrl:A})}),ae=await H.json();if(!H.ok)throw new Error((ae==null?void 0:ae.error)||"Nie udało się wgrać");Ze({...le,image_url:ae.url,image_path:ae.path})}catch(A){K(A instanceof Error?A.message:"Błąd")}finally{se(!1)}}},ff=m.useMemo(()=>{const v=d.filter(H=>{if(y==="all")return!0;const ae=H.status==="completed"||H.status==="cancelled";return y==="completed"?ae:!ae});if(b==="all")return v;const A=b==="sopot"?"SOPOT-":"GDYNIA-";return v.filter(H=>H.order_number.startsWith(A))},[d,y,b]),hf=m.useMemo(()=>[...ff].sort((v,A)=>{const H=dd.has(v.status)?0:1,ae=dd.has(A.status)?0:1;return H!==ae?H-ae:A.created_at.localeCompare(v.created_at)}),[ff]),fu=m.useMemo(()=>j.filter(v=>!(F!=="all"&&!(F==="sopot"?v.available_sopot:v.available_gdynia)||M!=="all"&&v.category_id!==M)),[j,F,M]),Gk=m.useMemo(()=>V==="all"?Y:Y.filter(v=>sy(v.moshimoshi_locations)===V),[Y,V]),Zk=m.useMemo(()=>V==="all"?Z:Z.filter(v=>sy(v.moshimoshi_locations)===V),[Z,V]);return e===null?s.jsx("main",{className:"grid min-h-screen place-items-center bg-background text-foreground",children:s.jsx(Dt,{className:"h-8 w-8 animate-spin text-primary"})}):e?s.jsx("main",{className:"min-h-screen bg-[linear-gradient(180deg,hsl(var(--cream)),hsl(var(--cream-dark)))] px-4 py-8 text-foreground md:px-8",children:s.jsxs("div",{className:"mx-auto max-w-7xl",children:[s.jsx(ut,{className:"mb-6 border-border/70 bg-card/95 shadow-sm",children:s.jsxs(vn,{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsx(bn,{children:"Moshi Moshi"}),s.jsx(wn,{className:"text-4xl md:text-5xl",children:"Panel admina"})]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:s.jsxs(ke,{onClick:_i,variant:"outline",children:[s.jsx(mz,{className:"h-4 w-4"})," Wyloguj"]})})]})}),Se?s.jsx(gr,{className:"mb-4 border-emerald-200 bg-emerald-50 text-emerald-900",children:s.jsx(yr,{children:Se})}
361):null,s.jsxs("div",{className:"grid gap-5 lg:grid-cols-[240px_minmax(0,1fr)]",children:[s.jsx("aside",{className:"lg:sticky lg:top-6 lg:self-start",children:s.jsx(ut,{children:s.jsx(Mn,{className:"grid gap-2 p-3",children:[{value:"orders",label:"Zamówienia",icon:ag},{value:"products",label:"Menu",icon:to},{value:"addons",label:"Dodatki",icon:qu},{value:"promos",label:"Kody promocyjne",icon:ig},{value:"delivery",label:"Dostawy",icon:vc},{value:"hours",label:"Godziny",icon:eo}].map(v=>{const A=v.icon;return s.jsxs(ke,{variant:c===v.value?"default":"ghost",className:"justify-start",onClick:()=>u(v.value),children:[s.jsx(A,{className:"h-4 w-4"}),v.label]},v.value)})})})}),s.jsxs("div",{className:"min-w-0",children:[c==="orders"?s.jsxs("section",{children:[s.jsx(ut,{className:"mb-4",children:s.jsxs(vn,{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"flex items-center gap-2 text-2xl",children:[s.jsx(ag,{className:"h-5 w-5"})," Zamówienia"]}),s.jsx(bn,{children:"Otwarte zamówienia są na górze. O północy stare niezrealizowane przechodzą automatycznie do zrealizowanych."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx("div",{className:"flex rounded-lg border bg-background p-1",children:["current","completed","all"].map(v=>s.jsx(ke,{size:"sm",variant:y===v?"default":"ghost",onClick:()=>w(v),className:"h-8",children:g3[v]},v))}),s.jsx(md,{value:b,onChange:x}),s.jsxs(ke,{onClick:()=>void jt(),variant:"outline",children:[s.jsx(ts,{className:"h-4 w-4"})," Odśwież"]})]})]})}),k?s.jsx(gr,{variant:"destructive",className:"mb-4",children:s.jsx(yr,{children:k})}):null,f?s.jsx(ut,{children:s.jsxs(Mn,{className:"flex items-center gap-2 p-5 text-muted-foreground",children:[s.jsx(Dt,{className:"h-4 w-4 animate-spin"})," Ładuję zamówienia..."]})}):null,s.jsxs("div",{className:"grid gap-4",children:[hf.map(v=>{var Fe;const A=dd.has(v.status),H=x3(v),ae=v3(v);return s.jsxs("article",{className:`rounded-xl border bg-card p-5 text-card-foreground shadow-sm transition ${A?"border-border":"border-border/60 opacity-75"}`,children:[s.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx("h2",{className:"font-heading text-xl font-bold tracking-[0.04em]",children:v.order_number}),s.jsx(Jn,{variant:"secondary",children:ay[v.fulfillment_method]||v.fulfillment_method}),s.jsx(Jn,{variant:"secondary",children:ny[v.payment_provider]||v.payment_provider}),iy(v)?s.jsx(Jn,{variant:"outline",className:h3[H]||"",children:ry[H]||H}):null,s.jsx(Jn,{variant:"outline",className:w3[v.status]||"",children:ly(v.status,v)})]}),s.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:[v.customer_name," · ",v.customer_phone," · ",v.customer_email]}),s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:v.fulfillment_method==="delivery"?`${v.street||""} ${v.building_number||""}${v.apartment_number?`/${v.apartment_number}`:""}, ${v.postal_code||""} ${v.city||""}`:"Odbiór osobisty"}),s.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Termin: ",Am(v.slot_at)," · Złożono:"," ",Am(v.created_at)]}),v.notes?s.jsxs("p",{className:"mt-2 rounded-md bg-muted p-3 text-sm text-muted-foreground",children:["Uwagi: ",v.notes]}):null]}),s.jsxs("div",{className:"flex flex-col gap-2 sm:min-w-[240px]",children:[s.jsx("strong",{className:"text-2xl text-foreground",children:Ie(v.total_cents)}),s.jsxs("div",{className:"rounded-lg border bg-muted/40 p-3 text-sm",children:[s.jsx("div",{className:"font-semibold text-foreground",children:ny[v.payment_provider]||v.payment_provider}),iy(v)?s.jsx("div",{className:"text-muted-foreground",children:ry[H]||H}):null]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs(ke,{onClick:()=>void yo(v.id,"completed"),disabled:v.status==="completed",className:"bg-emerald-700 text-white hover:bg-emerald-800",children:[s.jsx(oz,{className:"h-4 w-4"}),v.status==="completed"?"Zrealizowane":"Oznacz jako zrealizowane"]}),s.jsxs(gl,{value:v.status,onValueChange:Ye=>void yo(v.id,Ye),children:[s.jsx(_o,{children:s.jsx(yl,{})}),s.jsx(Lo,{children:ae.map(Ye=>s.jsx(ba,{value:Ye,children:ly(Ye,v)},Ye))})]})]})]})]}),s.jsxs("div",{className:"mt-4 border-t pt-4",children:[s.jsx("div",{className:"grid gap-2",children:(Fe=v.moshimoshi_order_items)==null?void 0:Fe.map((Ye,xo)=>s.jsxs("div",{className:"flex justify-between gap-4 text-sm text-muted-foreground",children:[s.jsxs("span",{children:[Ye.quantity," × ",Ye.product_name]}),s.jsx("span",{children:Ie(Ye.total_price_cents)})]},`${Ye.product_name}-${xo}`))}),s.jsxs("div",{className:"mt-3 flex justify-end gap-5 text-xs text-muted-foreground",children:[s.jsxs("span",{children:["Produkty: ",Ie(v.subtotal_cents)]}),s.jsxs("span",{children:["Dostawa: ",Ie(v.delivery_fee_cents)]})]})]})]},v.id)}),!f&&hf.length===0?s.jsx(ut,{children:s.jsx(Mn,{className:"p-5 text-muted-foreground",children:"Brak zamówień."})}):null]})]}):null,c==="products"?s.jsxs("section",{children:[s.jsx(ut,{className:"mb-4",children:s.jsxs(vn,{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"flex items-center gap-2 text-2xl",children:[s.jsx(to,{className:"h-5 w-5"})," Menu (",fu.length,"/",j.length,")"]}),s.jsx(bn,{children:"Edycja pozycji, zdjęć, cen, widoczności oraz dostępności w Sopocie i Gdyni."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs(gl,{value:M,onValueChange:v=>W(v),children:[s.jsx(_o,{className:"w-[220px]",children:s.jsx(yl,{placeholder:"Kategoria"})}),s.jsxs(Lo,{children:[s.jsx(ba,{value:"all",children:"Wszystkie kategorie"}),N.map(v=>s.jsxs(ba,{value:v.id,children:[v.name,v.exclude_from_delivery?" · bez dostawy":""]},v.id))]})]}),s.jsxs(ke,{onClick:C,variant:"outline",children:[s.jsx(qr,{className:"h-4 w-4"})," Kategoria"]}),s.jsxs(gl,{value:F,onValueChange:v=>ee(v),children:[s.jsx(_o,{className:"w-[180px] bg-background",children:s.jsx(yl,{})}
361),s.jsx(Lo,{children:Object.keys(Wl).map(v=>s.jsx(ba,{value:v,children:Wl[v]},v))})]}),s.jsxs(ke,{onClick:()=>void vt(),variant:"outline",children:[s.jsx(ts,{className:"h-4 w-4"})," Odśwież"]}),s.jsxs(ke,{onClick:Pk,children:[s.jsx(qr,{className:"h-4 w-4"})," Nowa pozycja"]})]})]})}),L?s.jsx(gr,{variant:"destructive",className:"mb-4",children:s.jsx(yr,{children:L})}):null,T?s.jsx(ut,{children:s.jsxs(Mn,{className:"flex items-center gap-2 p-5 text-muted-foreground",children:[s.jsx(Dt,{className:"h-4 w-4 animate-spin"})," Ładuję menu..."]})}):null,s.jsxs(ut,{className:"mb-4",children:[s.jsx(vn,{className:"flex flex-col gap-1 md:flex-row md:items-center md:justify-between",children:s.jsxs("div",{children:[s.jsxs(wn,{className:"text-lg",children:["Kategorie (",N.length,")"]}),s.jsx(bn,{children:"Zarządzaj kategoriami menu. Możesz je ukrywać lub wykluczać z kosztu dostawy."})]})}),s.jsx(Mn,{children:s.jsxs("div",{className:"flex flex-wrap gap-2",children:[N.map(v=>{const A=j.filter(H=>H.category_id===v.id).length;return s.jsxs("div",{className:`group flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm ${v.active?"bg-card":"bg-muted/40 opacity-70"}`,children:[s.jsx("button",{type:"button",className:"font-medium hover:underline",onClick:()=>W(v.id),children:v.name}),s.jsx("span",{className:"text-xs text-muted-foreground",children:A}),v.exclude_from_delivery?s.jsx(Jn,{variant:"outline",className:"text-[10px]",children:"bez dostawy"}):null,s.jsx(ke,{size:"sm",variant:"ghost",className:"h-6 px-2",onClick:()=>J(v),children:"Edytuj"}),s.jsx(ke,{size:"sm",variant:"ghost",className:"h-6 px-2 text-destructive",onClick:()=>void Re(v),children:s.jsx(Ss,{className:"h-3 w-3"})})]},v.id)}),N.length===0?s.jsx("span",{className:"text-sm text-muted-foreground",children:"Brak kategorii — dodaj pierwszą."}):null]})})]}),s.jsxs(ut,{className:"overflow-hidden",children:[s.jsxs(Do,{children:[s.jsx(Fo,{children:s.jsxs(xr,{children:[s.jsx(Be,{className:"w-[76px]",children:"Zdjęcie"}),s.jsx(Be,{children:"Pozycja"}),s.jsx(Be,{children:"Kategoria"}),s.jsx(Be,{children:"Cena"}),s.jsx(Be,{children:"Dostępność"}),s.jsx(Be,{children:"Status"}),s.jsx(Be,{className:"text-right",children:"Akcje"})]})}),s.jsx(Uo,{children:fu.map(v=>{const A=N.find(H=>H.id===v.category_id);return s.jsxs(xr,{className:v.active?"":"opacity-60",children:[s.jsx(Ke,{children:s.jsx("div",{className:"flex h-14 w-14 items-center justify-center overflow-hidden rounded-md border bg-muted",children:v.image_url?s.jsx("img",{src:v.image_url,alt:v.name,className:"h-full w-full object-cover"}):s.jsx(sg,{className:"h-5 w-5 text-muted-foreground"})})}),s.jsx(Ke,{children:s.jsxs("div",{className:"max-w-[320px]",children:[s.jsx("p",{className:"truncate font-medium",children:v.name}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:v.slug})]})}),s.jsx(Ke,{children:(A==null?void 0:A.name)||"—"}),s.jsx(Ke,{className:"font-medium",children:Ie(v.price_cents)}),s.jsx(Ke,{children:s.jsxs("div",{className:"flex flex-wrap gap-1",children:[s.jsx(Jn,{variant:v.available_sopot?"secondary":"outline",children:"Sopot"}),s.jsx(Jn,{variant:v.available_gdynia?"secondary":"outline",children:"Gdynia"})]})}),s.jsx(Ke,{children:s.jsx(Jn,{variant:v.active?"default":"outline",children:v.active?"Widoczna":"Ukryta"})}),s.jsx(Ke,{children:s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsxs(ke,{onClick:()=>void Hk(v,{active:!v.active}),variant:"outline",size:"sm",children:[v.active?s.jsx(lz,{className:"h-4 w-4"}):s.jsx(cz,{className:"h-4 w-4"}),v.active?"Ukryj":"Pokaż"]}),s.jsx(ke,{onClick:()=>Rk(v),size:"sm",children:"Edytuj"}),s.jsx(ke,{onClick:()=>void Wk(v.id),variant:"destructive",size:"sm",children:s.jsx(Ss,{className:"h-4 w-4"})})]})})]},v.id)})})]}),!T&&fu.length===0?s.jsx("div",{className:"p-5 text-muted-foreground",children:j.length===0?"Menu puste — dodaj pierwszą pozycję.":`Brak pozycji dla filtra: ${Wl[F]}.`}):null]})]}):null,c==="addons"?s.jsxs("section",{children:[s.jsx(ut,{className:"mb-4",children:s.jsxs(vn,{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"flex items-center gap-2 text-2xl",children:[s.jsx(qu,{className:"h-5 w-5"})," Dodatki (",ie.length,")"]}),s.jsx(bn,{children:"Biblioteka dodatków. Edytuj tutaj raz, używaj w wielu pozycjach menu."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs(ke,{onClick:()=>void wt(),variant:"outline",children:[s.jsx(ts,{className:"h-4 w-4"})," Odśwież"]}),s.jsxs(ke,{onClick:Mk,children:[s.jsx(qr,{className:"h-4 w-4"})," Nowy dodatek"]})]})]})}),Kt?s.jsx(gr,{variant:"destructive",className:"mb-4",children:s.jsx(yr,{children:Kt})}
361):null,s.jsxs(ut,{className:"overflow-hidden",children:[s.jsxs(Do,{children:[s.jsx(Fo,{children:s.jsxs(xr,{children:[s.jsx(Be,{children:"Nazwa"}),s.jsx(Be,{children:"Cena"}),s.jsx(Be,{children:"Kolejność"}),s.jsx(Be,{children:"Status"}),s.jsx(Be,{className:"text-right",children:"Akcje"})]})}),s.jsx(Uo,{children:ie.map(v=>s.jsxs(xr,{className:v.active?"":"opacity-60",children:[s.jsxs(Ke,{children:[s.jsx("div",{className:"font-medium",children:v.label}),s.jsx("div",{className:"text-xs text-muted-foreground",children:v.slug})]}),s.jsx(Ke,{children:Ie(v.price_cents)}),s.jsx(Ke,{children:v.sort_order}),s.jsx(Ke,{children:s.jsx(Jn,{variant:v.active?"default":"outline",children:v.active?"Aktywny":"Ukryty"})}),s.jsx(Ke,{children:s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(ke,{onClick:()=>Ik(v),size:"sm",children:"Edytuj"}),s.jsx(ke,{onClick:()=>void Bk(v.id),variant:"destructive",size:"sm",children:s.jsx(Ss,{className:"h-4 w-4"})})]})})]},v.id))})]}),!Ve&&ie.length===0?s.jsx("div",{className:"p-5 text-muted-foreground",children:"Brak dodatków — dodaj pierwszy."}):null]})]}):null,c==="promos"?s.jsxs("section",{children:[s.jsx(ut,{className:"mb-4",children:s.jsxs(vn,{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"flex items-center gap-2 text-2xl",children:[s.jsx(ig,{className:"h-5 w-5"})," Kody promocyjne (",me.length,")"]}),s.jsx(bn,{children:"Procentowy rabat liczony od wartości produktów (przed dostawą i opakowaniem)."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs(ke,{onClick:()=>void lt(),variant:"outline",children:[s.jsx(ts,{className:"h-4 w-4"})," Odśwież"]}),s.jsxs(ke,{onClick:Lk,children:[s.jsx(qr,{className:"h-4 w-4"})," Nowy kod"]})]})]})}),Pt?s.jsx(gr,{variant:"destructive",className:"mb-4",children:s.jsx(yr,{children:Pt})}):null,De?s.jsx(ut,{children:s.jsxs(Mn,{className:"flex items-center gap-2 p-5 text-muted-foreground",children:[s.jsx(Dt,{className:"h-4 w-4 animate-spin"})," Ładuję kody..."]})}):null,s.jsxs(ut,{className:"overflow-hidden",children:[s.jsxs(Do,{children:[s.jsx(Fo,{children:s.jsxs(xr,{children:[s.jsx(Be,{children:"Kod"}),s.jsx(Be,{children:"Rabat"}),s.jsx(Be,{children:"Ważność"}),s.jsx(Be,{children:"Wykorzystanie"}),s.jsx(Be,{children:"Status"}),s.jsx(Be,{className:"text-right",children:"Akcje"})]})}),s.jsx(Uo,{children:me.map(v=>s.jsxs(xr,{className:v.active?"":"opacity-60",children:[s.jsxs(Ke,{children:[s.jsx("div",{className:"font-medium",children:v.code}),v.notes?s.jsx("div",{className:"text-xs text-muted-foreground",children:v.notes}):null]}),s.jsxs(Ke,{className:"font-medium",children:["-",v.discount_percent,"%"]}),s.jsxs(Ke,{className:"text-sm text-muted-foreground",children:[v.valid_from?new Date(v.valid_from).toLocaleDateString("pl-PL"):"—"," → ",v.valid_until?new Date(v.valid_until).toLocaleDateString("pl-PL"):"bez końca"]}),s.jsxs(Ke,{className:"text-sm",children:[v.uses_count,v.max_uses!=null?` / ${v.max_uses}`:""]}),s.jsx(Ke,{children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(In,{checked:v.active,onCheckedChange:A=>void Uk(v,A)}),s.jsx(Jn,{variant:v.active?"default":"outline",children:v.active?"Aktywny":"Wyłączony"})]})}),s.jsx(Ke,{children:s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(ke,{onClick:()=>Dk(v),size:"sm",children:"Edytuj"}),s.jsx(ke,{onClick:()=>void $k(v.id),variant:"destructive",size:"sm",children:s.jsx(Ss,{className:"h-4 w-4"})})]})})]},v.id))})]}),!De&&me.length===0?s.jsx("div",{className:"p-5 text-muted-foreground",children:"Brak kodów — dodaj pierwszy."}):null]})]}):null,c==="delivery"?s.jsxs("section",{children:[s.jsx(ut,{className:"mb-4",children:s.jsxs(vn,{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"flex items-center gap-2 text-2xl",children:[s.jsx(vc,{className:"h-5 w-5"})," Dostawy"]}),s.jsx(bn,{children:"Opłaty, minima, darmowa dostawa i włączanie stref."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(md,{value:V,onChange:$e}),s.jsxs(ke,{onClick:()=>void ft(),variant:"outline",children:[s.jsx(ts,{className:"h-4 w-4"})," Odśwież"]})]})]})}),we?s.jsx(gr,{variant:"destructive",className:"mb-4",children:s.jsx(yr,{children:we})}):null,_e?s.jsx(ut,{children:s.jsxs(Mn,{className:"flex items-center gap-2 p-5 text-muted-foreground",children:[s.jsx(Dt,{className:"h-4 w-4 animate-spin"})," Ładuję ustawienia..."]})}
361):null,s.jsx("div",{className:"grid gap-4",children:Gk.map(v=>s.jsxs(ut,{children:[s.jsx(vn,{className:"pb-3",children:s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"text-xl",children:[oy(v.moshimoshi_locations)," · ",v.method==="delivery"?v.city||"Dostawa":"Odbiór"]}),s.jsx(bn,{children:v.method==="delivery"?"Strefa dostawy":"Odbiór osobisty"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Pm,{htmlFor:`zone-active-${v.id}`,className:"text-sm",children:"Aktywna"}),s.jsx(In,{id:`zone-active-${v.id}`,checked:v.active,onCheckedChange:A=>dr(v.id,{active:A})})]})]})}),s.jsxs(Mn,{className:"grid gap-3 md:grid-cols-4",children:[s.jsxs("label",{className:"grid gap-1 md:col-span-4",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Nazwa"}),s.jsx(We,{value:v.name,onChange:A=>dr(v.id,{name:A.target.value})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Koszt dostawy (zł)"}),s.jsx(We,{type:"number",step:"0.01",value:us(v.delivery_fee_cents),onChange:A=>dr(v.id,{delivery_fee_cents:ds(A.target.value)}),disabled:v.method!=="delivery"})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Darmowa od (zł)"}),s.jsx(We,{type:"number",step:"0.01",value:us(v.free_delivery_from_cents),onChange:A=>dr(v.id,{free_delivery_from_cents:ds(A.target.value)}),disabled:v.method!=="delivery"})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Minimum (zł)"}),s.jsx(We,{type:"number",step:"0.01",value:us(v.min_order_cents),onChange:A=>dr(v.id,{min_order_cents:ds(A.target.value)})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Opakowania na wynos (zł)"}),s.jsx(We,{type:"number",step:"0.01",value:us(v.packaging_fee_cents||0),onChange:A=>dr(v.id,{packaging_fee_cents:ds(A.target.value)})})]}),s.jsx("div",{className:"flex items-end",children:s.jsxs(ke,{onClick:()=>void Li(v),disabled:be===v.id,className:"w-full",children:[be===v.id?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(ns,{className:"h-4 w-4"}),"Zapisz"]})})]})]},v.id))}),s.jsxs(ut,{className:"mt-6",children:[s.jsxs(vn,{children:[s.jsx(wn,{className:"text-xl",children:"Kategorie wyłączone z dostawy"}),s.jsx(bn,{children:"Produkty z zaznaczonych kategorii nie wliczają się do kosztu dostawy ani opakowania (np. vouchery). Jeżeli w koszyku są wyłącznie te produkty, dostawa kosztuje 0 zł."})]}),s.jsx(Mn,{children:s.jsx("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:N.map(v=>s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border border-border bg-card/60 px-3 py-2",children:[s.jsxs("span",{className:"text-sm",children:[v.name,s.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:v.slug})]}),s.jsx("input",{type:"checkbox",className:"h-4 w-4",checked:!!v.exclude_from_delivery,onChange:A=>void Ne(v,A.target.checked)})]},v.id))})})]})]}):null,c==="hours"?s.jsxs("section",{children:[s.jsx(ut,{className:"mb-4",children:s.jsxs(vn,{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs(wn,{className:"flex items-center gap-2 text-2xl",children:[s.jsx(eo,{className:"h-5 w-5"})," Godziny"]}),s.jsx(bn,{children:"Godziny przyjmowania zamówień dla dostawy i odbioru."})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(md,{value:V,onChange:$e}),s.jsxs(ke,{onClick:()=>void ft(),variant:"outline",children:[s.jsx(ts,{className:"h-4 w-4"})," Odśwież"]})]})]})}),we?s.jsx(gr,{variant:"destructive",className:"mb-4",children:s.jsx(yr,{children:we})}):null,s.jsx(ut,{className:"overflow-hidden",children:s.jsxs(Do,{children:[s.jsx(Fo,{children:s.jsxs(xr,{children:[s.jsx(Be,{children:"Lokal"}),s.jsx(Be,{children:"Typ"}),s.jsx(Be,{children:"Dzień"}),s.jsx(Be,{children:"Od"}),s.jsx(Be,{children:"Do"}),s.jsx(Be,{children:"Slot"}),s.jsx(Be,{children:"Cutoff"}),s.jsx(Be,{children:"Status"}),s.jsx(Be,{className:"text-right",children:"Akcje"})]})}),s.jsx(Uo,{children:Zk.map(v=>s.jsxs(xr,{className:v.active?"":"opacity-60",children:[s.jsx(Ke,{children:oy(v.moshimoshi_locations)}),s.jsx(Ke,{children:ay[v.method]||v.method}),s.jsx(Ke,{children:y3[v.day_of_week]}),s.jsx(Ke,{children:s.jsx(We,{className:"w-24",type:"time",value:v.start_time.slice(0,5),onChange:A=>Ot(v.id,{start_time:A.target.value})})}),s.jsx(Ke,{children:s.jsx(We,{className:"w-24",type:"time",value:v.end_time.slice(0,5),onChange:A=>Ot(v.id,{end_time:A.target.value})})}),s.jsx(Ke,{children:s.jsx(We,{className:"w-20",type:"number",value:v.slot_frequency_minutes,onChange:A=>Ot(v.id,{slot_frequency_minutes:Number(A.target.value)||30})})}),s.jsx(Ke,{children:s.jsx(We,{className:"w-20",type:"number",value:v.order_cutoff_minutes,onChange:A=>Ot(v.id,{order_cutoff_minutes:Number(A.target.value)||0})})}),s.jsx(Ke,{children:s.jsx(In,{checked:v.active,onCheckedChange:A=>Ot(v.id,{active:A})})}),s.jsx(Ke,{className:"text-right",children:s.jsxs(ke,{size:"sm",onClick:()=>void Mt(v),disabled:be===v.id,children:[be===v.id?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(ns,{className:"h-4 w-4"}),"Zapisz"]})})]},v.id))})]})})]}):null]})]}),s.jsx(ud,{open:!!Ae,onOpenChange:v=>!v&&!G?nt(null):null,children:s.jsxs(Fl,{children:[s.jsxs(Ul,{children:[s.jsx(Bl,{children:Ae!=null&&Ae.id?"
361Edytuj dodatek":"Nowy dodatek"}),s.jsx(Kl,{children:"Dodatki z biblioteki możesz przypinać do dowolnej pozycji menu."})]}),Ae?s.jsxs("div",{className:"grid gap-3",children:[s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Nazwa"}),s.jsx(We,{value:Ae.label,onChange:v=>nt({...Ae,label:v.target.value}),placeholder:"np. Sos spicy mayo"})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Cena (zł)"}),s.jsx(We,{type:"number",step:"0.01",value:us(Ae.price_cents),onChange:v=>nt({...Ae,price_cents:ds(v.target.value)})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Kolejność (niższe = wyżej)"}),s.jsx(We,{type:"number",value:Ae.sort_order,onChange:v=>nt({...Ae,sort_order:Number(v.target.value)||1e3})})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsx("span",{className:"text-sm font-medium",children:"Aktywny"}),s.jsx(In,{checked:Ae.active,onCheckedChange:v=>nt({...Ae,active:v})})]})]}):null,s.jsxs($l,{children:[s.jsx(ke,{variant:"outline",onClick:()=>nt(null),disabled:G,children:"Anuluj"}),s.jsxs(ke,{onClick:()=>void _k(),disabled:G||!(Ae!=null&&Ae.label.trim()),children:[G?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(ns,{className:"h-4 w-4"}),"Zapisz"]})]})]})}),s.jsx(ud,{open:D,onOpenChange:v=>{!v&&!z&&(X(!1),U(null))},children:s.jsxs(Fl,{children:[s.jsxs(Ul,{children:[s.jsx(Bl,{children:_!=null&&_.id?"
361Edytuj kategorię":"Nowa kategoria"}),s.jsx(Kl,{children:"Kategorie porządkują menu i mogą być wykluczone z kosztu dostawy."})]}),_?s.jsxs("div",{className:"grid gap-3",children:[s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Nazwa"}),s.jsx(We,{value:_.name,onChange:v=>U({..._,name:v.target.value})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Slug (opcjonalnie)"}),s.jsx(We,{value:_.slug,placeholder:"auto z nazwy",onChange:v=>U({..._,slug:v.target.value})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Kolejność (niższe = wyżej)"}),s.jsx(We,{type:"number",value:_.sort_order,onChange:v=>U({..._,sort_order:Number(v.target.value)||999})})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsx("span",{className:"text-sm font-medium",children:"Aktywna (widoczna w sklepie)"}),s.jsx(In,{checked:_.active,onCheckedChange:v=>U({..._,active:v})})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium",children:"Wyklucz z kosztu dostawy"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Np. vouchery — nie wliczają się do dostawy ani opakowania."})]}),s.jsx(In,{checked:_.exclude_from_delivery,onCheckedChange:v=>U({..._,exclude_from_delivery:v})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Koszt opakowania na danie (zł)"}),s.jsx(We,{type:"number",step:"0.01",min:"0",value:us(_.packaging_fee_cents),onChange:v=>U({..._,packaging_fee_cents:ds(v.target.value)})}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Doliczane osobno do każdej sztuki w tej kategorii (np. 2,00 zł)."})]})]}):null,s.jsxs($l,{children:[s.jsx(ke,{variant:"outline",onClick:()=>{X(!1),U(null)},disabled:z,children:"Anuluj"}),s.jsxs(ke,{onClick:()=>void je(),disabled:z||!(_!=null&&_.name.trim()),children:[z?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(ns,{className:"h-4 w-4"}),"Zapisz"]})]})]})}),s.jsx(ud,{open:!!re,onOpenChange:v=>!v&&!Rt?rt(null):null,children:s.jsxs(Fl,{children:[s.jsxs(Ul,{children:[s.jsx(Bl,{children:re!=null&&re.i
361d?"Edytuj kod":"Nowy kod promocyjny"}),s.jsx(Kl,{children:"Rabat procentowy odejmowany od wartości produktów w koszyku."})]}),re?s.jsxs("div",{className:"grid gap-3",children:[s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Kod (bez spacji)"}),s.jsx(We,{value:re.code,onChange:v=>rt({...re,code:v.target.value.toUpperCase()}),placeholder:"np. MOSHI10"})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Rabat (%)"}),s.jsx(We,{type:"number",min:"1",max:"100",value:re.discount_percent,onChange:v=>rt({...re,discount_percent:Number(v.target.value)||0})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Ważny od"}),s.jsx(We,{type:"datetime-local",value:re.valid_from,onChange:v=>rt({...re,valid_from:v.target.value})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Ważny do"}),s.jsx(We,{type:"datetime-local",value:re.valid_until,onChange:v=>rt({...re,valid_until:v.target.value})})]})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Limit użyć (puste = bez limitu)"}),s.jsx(We,{type:"number",min:"1",value:re.max_uses,onChange:v=>rt({...re,max_uses:v.target.value})})]}),s.jsxs("label",{className:"grid gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Notatka (opcjonalnie)"}),s.jsx(Lm,{value:re.notes,onChange:v=>rt({...re,notes:v.target.value}),rows:2})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsx("span",{className:"text-sm font-medium",children:"Aktywny"}),s.jsx(In,{checked:re.active,onCheckedChange:v=>rt({...re,active:v})})]})]}):null,s.jsxs($l,{children:[s.jsx(ke,{variant:"outline",onClick:()=>rt(null),disabled:Rt,children:"Anuluj"}),s.jsxs(ke,{onClick:()=>void Fk(),disabled:Rt||!(re!=null&&re.code.trim()),children:[Rt?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(ns,{className:"h-4 w-4"}),"Zapisz"]})]})]})}),le?s.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/50 p-4 backdrop-blur-sm",onClick:()=>!Wt&&!xn?Ze(null):null,children:s.jsxs("div",{onClick:v=>v.stopPropagation(),className:"max-h-[92vh] w-full max-w-2xl overflow-auto rounded-lg border bg-background p-6 text-foreground shadow-2xl md:p-8",children:[s.jsxs("header",{className:"mb-5 flex items-center justify-between gap-4",children:[s.jsx("h3",{className:"font-heading text-2xl font-bold",children:ln?"Nowa pozycja":le.name||"Edycja"}),s.jsx(ke,{variant:"outline",size:"sm",onClick:()=>Ze(null),disabled:Wt||xn,children:"Zamknij"})]}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs("label",{className:"md:col-span-2",children:[s.jsx("span",{className:"mb-1 block text-xs font-medium text-muted-foreground",children:"Nazwa"}),s.jsx(We,{value:le.name,onChange:v=>Ze({...le,name:v.target.value})})]}),s.jsxs("label",{children:[s.jsx("span",{className:"mb-1 block text-xs font-medium text-muted-foreground",children:"Cena (zł)"}),s.jsx(We,{type:"number",step:"0.01",min:"0",value:le.price_cents/100,onChange:v=>Ze({...le,price_cents:Math.round(Number(v.target.value)*100)||0})})]}),s.jsxs("label",{children:[s.jsx("span",{className:"mb-1 block text-xs font-medium text-muted-foreground",children:"Kategoria"}),s.jsxs(gl,{value:le.category_id||"none",onValueChange:v=>Ze({...le,category_id:v==="none"?null:v}),children:[s.jsx(_o,{children:s.jsx(yl,{placeholder:"Wybierz kategorię"})}),s.jsxs(Lo,{children:[s.jsx(ba,{value:"none",children:"— brak —"}),N.map(v=>s.jsx(ba,{value:v.id,children:v.name},v.id))]})]})]}),s.jsxs("label",{className:"md:col-span-2",children:[s.jsx("span",{className:"mb-1 block text-xs font-medium text-muted-foreground",children:"Opis"}),s.jsx(Lm,{value:le.description||"",onChange:v=>Ze({...le,description:v.target.value}),rows:3})]}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsx("span",{className:"mb-2 block text-xs font-medium text-muted-foreground",children:"Zdjęcie"}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-24 w-24 flex-shrink-0 items-center justify-center overflow-hidden rounded-md border bg-muted",children:le.image_url?s.jsx("img",{src:le.image_url,alt:"",className:"h-full w-full object-cover"}):s.jsx(sg,{className:"h-8 w-8 text-muted-foreground"})}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("input",{type:"file",accept:"image/jpeg,image/png,image/webp,image/avif",ref:it,className:"hidden",onChange:v=>{var H;const A=(H=v.target.files)==null?void 0:H[0];A&&Vk(A),v.target.value=""}}),s.jsxs(ke,{type:"button",variant:"outline",onClick:()=>{var v;return(v=it.current)==null?void 0:v.click()},disabled:xn,children:[xn?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(yz,{className:"h-4 w-4"}),"Wgraj z dysku"]}),s.jsx(We,{value:le.image_url||"",onChange:v=>Ze({...le,image_url:v.target.value,image_path:null}),placeholder:"…albo wklej URL"})]})]})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsx("span",{className:"text-sm font-medium",children:"Widoczna w sklepie"}),s.jsx(In,{checked:le.active,onCheckedChange:v=>Ze({...le,active:v})})]}),s.jsxs("label",{children:[s.jsx("span",{className:"mb-1 block text-xs font-medium text-muted-foreground",children:"Kolejność (niższe = wyżej)"}),s.jsx(We,{type:"number",value:le.sort_order,onChange:v=>Ze({...le,sort_order:Number(v.target.value)||1e3})})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsx("span",{className:"text-sm font-medium",children:"Dostępna w Sopocie"}),s.jsx(In,{checked:le.available_sopot,onCheckedChange:v=>Ze({...le,available_sopot:v})})]}),s.jsxs("label",{className:"flex items-center justify-between gap-3 rounded-lg border bg-card p-3",children:[s.jsx("span",{className:"text-sm font-medium",children:"Dostępna w Gdyni"}),s.jsx(In,{checked:le.available_gdynia,onCheckedChange:v=>Ze({...le,available_gdynia:v})})]}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Dodatki"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Wybierz, które dodatki z biblioteki mają być dostępne dla tej pozycji."})]}),s.jsxs(ke,{type:"button",variant:"outline",size:"sm",onClick:()=>u("addons"),children:[s.jsx(qu,{className:"h-4 w-4"})," Zarządzaj biblioteką"]})]}),de?s.jsxs("div",{className:"flex items-center gap-2 rounded-md border bg-muted/30 p-3 text-sm text-muted-foreground",children:[s.jsx(Dt,{className:"h-4 w-4 animate-spin"})," Ładuję dodatki..."]}):ie.length===0?s.jsx("div",{className:"rounded-md border bg-muted/30 p-3 text-sm text-muted-foreground",children:"Brak dodatków w bibliotece. Dod
361aj je w zakładce „Dodatki”."}):s.jsx("div",{className:"grid max-h-64 gap-1 overflow-y-auto rounded-md border bg-card p-2",children:ie.map(v=>{const A=ue.includes(v.id);return s.jsxs("label",{className:"flex cursor-pointer items-center justify-between gap-3 rounded-md p-2 text-sm hover:bg-muted/60",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("input",{type:"checkbox",checked:A,onChange:()=>Ok(v.id),className:"h-4 w-4 accent-primary"}),s.jsx("span",{className:v.active?"":"text-muted-foreground line-through",children:v.label})]}),s.jsx("span",{className:"text-muted-foreground",children:Ie(v.price_cents)})]},v.id)})}),s.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["Wybranych: ",ue.length]})]})]}),s.jsxs("footer",{className:"mt-6 flex flex-wrap items-center justify-end gap-3",children:[s.jsx(ke,{variant:"outline",onClick:()=>Ze(null),disabled:Wt||xn,children:"Anuluj"}),s.jsxs(ke,{onClick:()=>void Kk(),disabled:Wt||xn||!le.name.trim(),children:[Wt?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):s.jsx(ns,{className:"h-4 w-4"}),ln?"Dodaj pozycję":"Zapisz"]})]})]})}):null]})}):s.jsx("main",{className:"min-h-screen bg-[linear-gradient(180deg,hsl(var(--cream)),hsl(var(--cream-dark)))] px-4 py-16 text-foreground",children:s.jsx("form",{onSubmit:Ii,className:"mx-auto max-w-md",children:s.jsxs(ut,{className:"border-border/70 bg-card shadow-xl",children:[s.jsxs(vn,{className:"space-y-4",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground",children:s.jsx(gz,{className:"h-6 w-6"})}),s.jsxs("div",{children:[s.jsx(bn,{children:"Moshi Moshi"}),s.jsx(wn,{className:"text-3xl",children:"Panel admina"})]})]}),s.jsxs(Mn,{className:"grid gap-4",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Pm,{htmlFor:"admin-password",children:"Hasło"}),s.jsx(We,{id:"admin-password",value:n,onChange:v=>r(v.target.value),placeholder:"Wpisz hasło do panelu",type:"password",autoFocus:!0})]}),s.jsxs(ke,{type:"submit",disabled:i||!n,className:"w-full",children:[i?s.jsx(Dt,{className:"h-4 w-4 animate-spin"}):null,i?"Loguję...":"Zaloguj"]}),a?s.jsx(gr,{variant:"destructive",children:s.jsx(yr,{children:a})}):null,s.jsx(ke,{asChild:!0,variant:"ghost",className:"w-full",children:s.jsx(Ct,{to:"/",children:"Wróć na stronę"})})]})]})})})},S3=()=>{const e=co();return m.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),s.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),s.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),s.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},cy=void 0;function Tk(){return typeof window<"u"&&typeof document<"u"}function N3(){if(!Tk()||!cy||window.fbq)return;const e=function n(...r){n.queue=n.queue||[],n.queue.push(r)};window.fbq=e,e.queue=[];const t=document.createElement("script");t.async=!0,t.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(t),window.fbq("init",cy)}function E3(e){var n,r;const t=((r=(n=window.crypto)==null?void 0:n.randomUUID)==null?void 0:r.call(n))??Math.random().toString(36).slice(2);return`site.${e}.${Date.now()}.${t}`}function z3(){if(!Tk()||typeof window.fbq!="function")return null;const e=E3("PageView");return window.fbq("track","PageView",{...ou(),page_path:window.location.pathname,page_url:`${window.location.origin}${window.location.pathname}`,event_id:e},{eventID:e}),e}function C3(){const e=co();return m.useEffect(()=>{z3()},[e.pathname,e.search]),null}const A3=new wS,T3=()=>s.jsx(kS,{client:A3,children:s.jsxs(FA,{children:[s.jsx(eC,{}),s.jsx(eE,{}),s.jsxs(vN,{children:[s.jsx(C3,{}),s.jsxs(mN,{children:[s.jsx(Vt,{path:"/",element:s.jsx(rP,{})}),s.jsx(Vt,{path:"/restauracje",element:s.jsx(lP,{})}),s.jsx(Vt,{path:"/menu",element:s.jsx(dP,{})}),s.jsx(Vt,{path:"/menu/sopot",element:s.jsx(fP,{})}),s.jsx(Vt,{path:"/lunche",element:s.jsx(hP,{})}),s.jsx(Vt,{path:"/menu/gdynia",element:s.jsx(xP,{})}),s.jsx(Vt,{path:"/rezerwacje",element:s.jsx(bP,{})}),s.jsx(Vt,{path:"/galeria",element:s.jsx(PP,{})}),s.jsx(Vt,{path:"/zamow-online",element:s.jsx(rR,{})}),s.jsx(Vt,{path:"/regulamin",element:s.jsx(uR,{})}),s.jsx(Vt,{path:"/regulamin-lexus",element:s.jsx(mR,{})}),s.jsx(Vt,{path:"/dostawa",element:s.jsx(hR,{})}),s.jsx(Vt,{path:"/admin",element:s.jsx(j3,{})}),s.jsx(Vt,{path:"*",element:s.jsx(S3,{})})]})]})]})});$A();const P3="9bb8ce10-bb93-41e8-9201-1cb877ab1215";function R3(e,t){if(document.querySelector("script[src='/stats/script.
361js']"))return;const n=document.createElement("script");n.defer=!0,n.src="/stats/script.js",n.dataset.websiteId=e,n.dataset.autoTrack="true",t&&(n.dataset.tag=t),document.head.appendChild(n);const r=document.createElement("script");r.defer=!0,r.src="/stats/recorder.js",r.dataset.websiteId=e,r.dataset.sampleRate="0.15",r.dataset.maskLevel="moderate",r.dataset.maxDuration="300000",document.head.appendChild(r)}const uy=ou().r;R3(P3,uy?`r-${uy}`:void 0);N3();Rv(document.getElementById("root")).render(s.jsx(Fv,{children:s.jsx(T3,{})}));

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.