PageSourceSearch

https://voipcharge-backup-h9o8xqi5.taskade.app/assets/main-26KOUET6.js

js voipcharge-backup-h9o8xqi5.taskade.app collected 2026-10-03 15:06:58 UTC 677,463 bytes, 295 lines download raw bytes

vendor: 4,671 bytes, line 1
1var tE=Object.create;var lm=Object.defineProperty;var rE=Object.getOwnPropertyDescriptor;var aE=Object.getOwnPropertyNames;var oE=Object.getPrototypeOf,nE=Object.prototype.hasOwnProperty;var iE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sE=(e,t)=>{for(var r in t)lm(e,r,{get:t[r],enumerable:!0})},lE=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of aE(t))!nE.call(e,o)&&o!==r&&lm(e,o,{get:()=>t[o],enumerable:!(a=rE(t,o))||a.enumerable});return e};var E=(e,t,r)=>(r=e!=null?tE(oE(e)):{},lE(t||!e||!e.__esModule?lm(r,"default",{value:e,enumerable:!0}):r,e));var Xx=Or(pe=>{"use strict";var Ds=Symbol.for("react.element"),uE=Symbol.for("react.portal"),dE=Symbol.for("react.fragment"),cE=Symbol.for("react.strict_mode"),fE=Symbol.for("react.profiler"),pE=Symbol.for("react.provider"),mE=Symbol.for("react.context"),gE=Symbol.for("react.forward_ref"),hE=Symbol.for("react.suspense"),vE=Symbol.for("react.memo"),xE=Symbol.for("react.lazy"),Bx=Symbol.iterator;function yE(e){return e===null||typeof e!="object"?null:(e=Bx&&e[Bx]||e["@@iterator"],typeof e=="function"?e:null)}var Ux={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zx=Object.assign,Hx={};function Zn(e,t,r){this.props=e,this.context=t,this.refs=Hx,this.updater=r||Ux}Zn.prototype.isReactComponent={};Zn.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")};Zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jx(){}jx.prototype=Zn.prototype;function dm(e,t,r){this.props=e,this.context=t,this.refs=Hx,this.updater=r||Ux}var cm=dm.prototype=new jx;cm.constructor=dm;zx(cm,Zn.prototype);cm.isPureReactComponent=!0;var _x=Array.isArray,qx=Object.prototype.hasOwnProperty,fm={current:null},$x={key:!0,ref:!0,__self:!0,__source:!0};function Wx(e,t,r){var a,o={},n=null,i=null;if(t!=null)for(a in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(n=""+t.key),t)qx.call(t,a)&&!$x.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)o[a]===void 0&&(o[a]=s[a]);return{$$typeof:Ds,type:e,key:n,ref:i,props:o,_owner:fm.current}}function wE(e,t){return{$$typeof:Ds,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ds}function bE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Vx=/\/+/g;function um(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bE(""+e.key):t.toString(36)}function wd(e,t,r,a,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(n){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ds:case uE:i=!0}}if(i)return i=e,o=o(i),e=a===""?"."+um(i,0):a,_x(o)?(r="",e!=null&&(r=e.replace(Vx,"$&/")+"/"),wd(o,t,r,"",function(u){return u})):o!=null&&(pm(o)&&(o=wE(o,r+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Vx,"$&/")+"/")+e)),t.push(o)),1;if(i=0,a=a===""?".":a+":",_x(e))for(var s=0;s<e.length;s++){n=e[s];var l=a+um(n,s);i+=wd(n,t,r,l,o)}else if(l=yE(e),typeof l=="function")for(e=l.call(e),s=0;!(n=e.next()).done;)n=n.value,l=a+um(n,s++),i+=wd(n,t,r,l,o);else if(n==="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 yd(e,t,r){if(e==null)return e;var a=[],o=0;return wd(e,a,"","",function(n){return t.call(r,n,o++)}),a}function SE(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Mt={current:null},bd={transition:null},CE={ReactCurrentDispatcher:Mt,ReactCurrentBatchConfig:bd,ReactCurrentOwner:fm};function Gx(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 8,253 bytes, line 1
1pe.Children={map:yd,forEach:function(e,t,r){yd(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return yd(e,function(){t++}),t},toArray:function(e){return yd(e,function(t){return t})||[]},only:function(e){if(!pm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pe.Component=Zn;pe.Fragment=dE;pe.Profiler=fE;pe.PureComponent=dm;pe.StrictMode=cE;pe.Suspense=hE;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CE;pe.act=Gx;pe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=zx({},e.props),o=e.key,n=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,i=fm.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)qx.call(t,l)&&!$x.hasOwnProperty(l)&&(a[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];a.children=s}return{$$typeof:Ds,type:e.type,key:o,ref:n,props:a,_owner:i}};pe.createContext=function(e){return e={$$typeof:mE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pE,_context:e},e.Consumer=e};pe.createElement=Wx;pe.createFactory=function(e){var t=Wx.bind(null,e);return t.type=e,t};pe.createRef=function(){return{current:null}};pe.forwardRef=function(e){return{$$typeof:gE,render:e}};pe.isValidElement=pm;pe.lazy=function(e){return{$$typeof:xE,_payload:{_status:-1,_result:e},_init:SE}};pe.memo=function(e,t){return{$$typeof:vE,type:e,compare:t===void 0?null:t}};pe.startTransition=function(e){var t=bd.transition;bd.transition={};try{e()}finally{bd.transition=t}};pe.unstable_act=Gx;pe.useCallback=function(e,t){return Mt.current.useCallback(e,t)};pe.useContext=function(e){return Mt.current.useContext(e)};pe.useDebugValue=function(){};pe.useDeferredValue=function(e){return Mt.current.useDeferredValue(e)};pe.useEffect=function(e,t){return Mt.current.useEffect(e,t)};pe.useId=function(){return Mt.current.useId()};pe.useImperativeHandle=function(e,t,r){return Mt.current.useImperativeHandle(e,t,r)};pe.useInsertionEffect=function(e,t){return Mt.current.useInsertionEffect(e,t)};pe.useLayoutEffect=function(e,t){return Mt.current.useLayoutEffect(e,t)};pe.useMemo=function(e,t){return Mt.current.useMemo(e,t)};pe.useReducer=function(e,t,r){return Mt.current.useReducer(e,t,r)};pe.useRef=function(e){return Mt.current.useRef(e)};pe.useState=function(e){return Mt.current.useState(e)};pe.useSyncExternalStore=function(e,t,r){return Mt.current.useSyncExternalStore(e,t,r)};pe.useTransition=function(){return Mt.current.useTransition()};pe.version="18.3.1"});var Y=Or((yU,Yx)=>{"use strict";Yx.exports=Xx()});var ny=Or(Ne=>{"use strict";function vm(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,o=e[a];if(0<Sd(o,t))e[a]=t,e[r]=o,r=a;else break e}}function Fr(e){return e.length===0?null:e[0]}function Ld(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var a=0,o=e.length,n=o>>>1;a<n;){var i=2*(a+1)-1,s=e[i],l=i+1,u=e[l];if(0>Sd(s,r))l<o&&0>Sd(u,s)?(e[a]=u,e[l]=r,a=l):(e[a]=s,e[i]=r,a=i);else if(l<o&&0>Sd(u,r))e[a]=u,e[l]=r,a=l;else break e}}return t}function Sd(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Kx=performance,Ne.unstable_now=function(){return Kx.now()}):(mm=Date,Qx=mm.now(),Ne.unstable_now=function(){return mm.now()-Qx});var Kx,mm,Qx,ta=[],eo=[],LE=1,xr=null,It=3,Id=!1,Qo=!1,As=!1,ey=typeof setTimeout=="function"?setTimeout:null,ty=typeof clearTimeout=="function"?clearTimeout:null,Jx=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xm(e){for(var t=Fr(eo);t!==null;){if(t.callback===null)Ld(eo);else if(t.startTime<=e)Ld(eo),t.sortIndex=t.expirationTime,vm(ta,t);else break;t=Fr(eo)}}function ym(e){if(As=!1,xm(e),!Qo)if(Fr(ta)!==null)Qo=!0,bm(wm);else{var t=Fr(eo);t!==null&&Sm(ym,t.startTime-e)}}function wm(e,t){Qo=!1,As&&(As=!1,ty(Ts),Ts=-1),Id=!0;var r=It;try{for(xm(t),xr=Fr(ta);xr!==null&&(!(xr.expirationTime>t)||e&&!oy());){var a=xr.callback;if(typeof a=="function"){xr.callback=null,It=xr.priorityLevel;var o=a(xr.expirationTime<=t);t=Ne.unstable_now(),typeof o=="function"?xr.callback=o:xr===Fr(ta)&&Ld(ta),xm(t)}else Ld(ta);xr=Fr(ta)}if(xr!==null)var n=!0;else{var i=Fr(eo);i!==null&&Sm(ym,i.startTime-t),n=!1}return n}finally{xr=null,It=r,Id=!1}}var kd=!1,Cd=null,Ts=-1,ry=5,ay=-1;function oy(){return!(Ne.unstable_now()-ay<ry)}function gm(){if(Cd!==null){var e=Ne.unstable_now();ay=e;var t=!0;try{t=Cd(!0,e)}finally{t?Rs():(kd=!1,Cd=null)}}else kd=!1}var Rs;typeof Jx=="function"?Rs=function(){Jx(gm)}:typeof MessageChannel<"u"?(hm=new MessageChannel,Zx=hm.port2,hm.port1.onmessage=gm,Rs=function(){Zx.postMessage(null)}):Rs=function(){ey(gm,0)};var hm,Zx;function bm(e){Cd=e,kd||(kd=!0,Rs())}function Sm(e,t){Ts=ey(function(){e(Ne.unstable_now())},t)}Ne.unstable_IdlePriority=5;Ne.unstable_ImmediatePriority=1;Ne.unstable_LowPriority=4;Ne.unstable_NormalPriority=3;Ne.unstable_Profiling=null;Ne.unstable_UserBlockingPriority=2;Ne.unstable_cancelCallback=function(e){e.callback=null};Ne.unstable_continueExecution=function(){Qo||Id||(Qo=!0,bm(wm))};Ne.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ry=0<e?Math.floor(1e3/e):5};Ne.unstable_getCurrentPriorityLevel=function(){return It};Ne.unstable_getFirstCallbackNode=function(){return Fr(ta)};Ne.unstable_next=function(e){switch(It){case 1:case 2:case 3:var t=3;break;default:t=It}var r=It;It=t;try{return e()}finally{It=r}};Ne.unstable_pauseExecution=function(){};Ne.unstable_requestPaint=function(){};Ne.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=It;It=e;try{return t()}finally{It=r}};Ne.unstable_scheduleCallback=function(e,t,r){var a=Ne.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?a+r:a):r=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:LE++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>a?(e.sortIndex=r,vm(eo,e),Fr(ta)===null&&e===Fr(eo)&&(As?(ty(Ts),Ts=-1):As=!0,Sm(ym,r-a))):(e.sortIndex=o,vm(ta,e),Qo||Id||(Qo=!0,bm(wm))),e};Ne.unstable_shouldYield=oy;Ne.unstable_wrapCallback=function(e){var t=It;return function(){var r=It;It=t;try{return e.apply(this,arguments)}finally{It=r}}}});var sy=Or((bU,iy)=>{"use strict";iy.exports=ny()});var c1=Or(lr=>{"use strict";var IE=Y(),ir=sy();function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 mw=new Set,tl={};function cn(e,t){wi(e,t),wi(e+"Capture",t)}function wi(e,t){for(tl[e]=t,e=0;e<t.length;e++)mw.add(t[e])}var Da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$m=Object.prototype.hasOwnProperty,kE=/^[: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]*$/,ly={},uy={};function NE(e){return $m.call(uy,e)?!0:$m.call(ly,e)?!1:kE.test(e)?uy[e]=!0:(ly[e]=!0,!1)}function EE(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function PE(e,t,r,a){if(t===null||typeof t>"u"||EE(e,t,r,a))return!0;
vendor: 5,366 bytes, lines 1-2
1if(a)return!1;if(r!==null)switch(r.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 Bt(e,t,r,a,o,n,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=i}var wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wt[e]=new Bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wt[t]=new Bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wt[e]=new Bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wt[e]=new Bt(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){wt[e]=new Bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wt[e]=new Bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wt[e]=new Bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wt[e]=new Bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wt[e]=new Bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bg=/[\-:]([a-z])/g;function _g(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(Bg,_g);wt[t]=new Bt(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(Bg,_g);wt[t]=new Bt(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(Bg,_g);wt[t]=new Bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wt[e]=new Bt(e,1,!1,e.toLowerCase(),null,!1,!1)});wt.xlinkHref=new Bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wt[e]=new Bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vg(e,t,r,a){var o=wt.hasOwnProperty(t)?wt[t]:null;(o!==null?o.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(PE(t,r,o,a)&&(r=null),a||o===null?NE(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,a=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var Ma=IE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nd=Symbol.for("react.element"),ri=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),Ug=Symbol.for("react.strict_mode"),Wm=Symbol.for("react.profiler"),gw=Symbol.for("react.provider"),hw=Symbol.for("react.context"),zg=Symbol.for("react.forward_ref"),Gm=Symbol.for("react.suspense"),Xm=Symbol.for("react.suspense_list"),Hg=Symbol.for("react.memo"),ro=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var vw=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var dy=Symbol.iterator;function Ms(e){return e===null||typeof e!="object"?null:(e=dy&&e[dy]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Object.assign,Cm;function Hs(e){if(Cm===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Cm=t&&t[1]||""}return`
2`+Cm+e}var Lm=!1;function Im(e,t){if(!e||Lm)return"";Lm=!0;var r=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 a=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){a=u}e.call(t.prototype)}else{try{throw Error()}catch(u){a=u}e()}}
vendor: 6,732 bytes, lines 2-5
2catch(u){if(u&&a&&typeof u.stack=="string"){for(var o=u.stack.split(`
3`),n=a.stack.split(`
4`),i=o.length-1,s=n.length-1;1<=i&&0<=s&&o[i]!==n[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==n[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==n[s]){var l=`
5`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Lm=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Hs(e):""}function DE(e){switch(e.tag){case 5:return Hs(e.type);case 16:return Hs("Lazy");case 13:return Hs("Suspense");case 19:return Hs("SuspenseList");case 0:case 2:case 15:return e=Im(e.type,!1),e;case 11:return e=Im(e.type.render,!1),e;case 1:return e=Im(e.type,!0),e;default:return""}}function Ym(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 ai:return"Fragment";case ri:return"Portal";case Wm:return"Profiler";case Ug:return"StrictMode";case Gm:return"Suspense";case Xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hw:return(e.displayName||"Context")+".Consumer";case gw:return(e._context.displayName||"Context")+".Provider";case zg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hg:return t=e.displayName||null,t!==null?t:Ym(e.type)||"Memo";case ro:t=e._payload,e=e._init;try{return Ym(e(t))}catch{}}return null}function RE(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 Ym(t);case 8:return t===Ug?"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 vo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AE(e){var t=xw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,n=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ed(e){e._valueTracker||(e._valueTracker=AE(e))}function yw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=xw(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function rc(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 Km(e,t){var r=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function cy(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=vo(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ww(e,t){t=t.checked,t!=null&&Vg(e,"checked",t,!1)}function Qm(e,t){ww(e,t);var r=vo(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Jm(e,t.type,vo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fy(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Jm(e,t,r){(t!=="number"||rc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var js=Array.isArray;function mi(e,t,r,a){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&a&&(e[r].defaultSelected=!0)}else{for(r=""+vo(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(B(91));return ze({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function py(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(B(92));if(js(r)){if(1<r.length)throw Error(B(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:vo(r)}}function bw(e,t){var r=vo(t.value),a=vo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function my(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Sw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Sw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pd,Cw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Pd=Pd||document.createElement("div"),Pd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rl(e,t){if(t){var r=e.firstChild;
vendor: 7,388 bytes, line 5
5if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ws={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},TE=["Webkit","ms","Moz","O"];Object.keys(Ws).forEach(function(e){TE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ws[t]=Ws[e]})});function Lw(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ws.hasOwnProperty(e)&&Ws[e]?(""+t).trim():t+"px"}function Iw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,o=Lw(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,o):e[r]=o}}var ME=ze({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 tg(e,t){if(t){if(ME[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function rg(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 ag=null;function jg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var og=null,gi=null,hi=null;function gy(e){if(e=wl(e)){if(typeof og!="function")throw Error(B(280));var t=e.stateNode;t&&(t=Dc(t),og(e.stateNode,e.type,t))}}function kw(e){gi?hi?hi.push(e):hi=[e]:gi=e}function Nw(){if(gi){var e=gi,t=hi;if(hi=gi=null,gy(e),t)for(e=0;e<t.length;e++)gy(t[e])}}function Ew(e,t){return e(t)}function Pw(){}var km=!1;function Dw(e,t,r){if(km)return e(t,r);km=!0;try{return Ew(e,t,r)}finally{km=!1,(gi!==null||hi!==null)&&(Pw(),Nw())}}function al(e,t){var r=e.stateNode;if(r===null)return null;var a=Dc(r);if(a===null)return null;r=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(B(231,t,typeof r));return r}var ng=!1;if(Da)try{ei={},Object.defineProperty(ei,"passive",{get:function(){ng=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{ng=!1}var ei;function OE(e,t,r,a,o,n,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var Gs=!1,ac=null,oc=!1,ig=null,FE={onError:function(e){Gs=!0,ac=e}};function BE(e,t,r,a,o,n,i,s,l){Gs=!1,ac=null,OE.apply(FE,arguments)}function _E(e,t,r,a,o,n,i,s,l){if(BE.apply(this,arguments),Gs){if(Gs){var u=ac;Gs=!1,ac=null}else throw Error(B(198));oc||(oc=!0,ig=u)}}function fn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Rw(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 hy(e){if(fn(e)!==e)throw Error(B(188))}function VE(e){var t=e.alternate;if(!t){if(t=fn(e),t===null)throw Error(B(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(o===null)break;var n=o.alternate;if(n===null){if(a=o.return,a!==null){r=a;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===r)return hy(o),e;if(n===a)return hy(o),t;n=n.sibling}throw Error(B(188))}if(r.return!==a.return)r=o,a=n;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,a=n;break}if(s===a){i=!0,a=o,r=n;break}s=s.sibling}if(!i){for(s=n.child;s;){if(s===r){i=!0,r=n,a=o;break}if(s===a){i=!0,a=n,r=o;break}s=s.sibling}if(!i)throw Error(B(189))}}if(r.alternate!==a)throw Error(B(190))}if(r.tag!==3)throw Error(B(188));return r.stateNode.current===r?e:t}function Aw(e){return e=VE(e),e!==null?Tw(e):null}function Tw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tw(e);if(t!==null)return t;e=e.sibling}return null}var Mw=ir.unstable_scheduleCallback,vy=ir.unstable_cancelCallback,UE=ir.unstable_shouldYield,zE=ir.unstable_requestPaint,Ke=ir.unstable_now,HE=ir.unstable_getCurrentPriorityLevel,qg=ir.unstable_ImmediatePriority,Ow=ir.unstable_UserBlockingPriority,nc=ir.unstable_NormalPriority,jE=ir.unstable_LowPriority,Fw=ir.unstable_IdlePriority,kc=null,na=null;function qE(e){if(na&&typeof na.onCommitFiberRoot=="function")try{na.onCommitFiberRoot(kc,e,void 0,(e.current.flags&128)===128)}catch{}}var zr=Math.clz32?Math.clz32:GE,$E=Math.log,WE=Math.LN2;function GE(e){return e>>>=0,e===0?32:31-($E(e)/WE|0)|0}var Dd=64,Rd=4194304;function qs(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 ic(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,o=e.suspendedLanes,n=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?a=qs(s):(n&=i,n!==0&&(a=qs(n)))}else i=r&~o,i!==0?a=qs(i):n!==0&&(a=qs(n));if(a===0)return 0;if(t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((a&4)!==0&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-zr(t),o=1<<r,a|=e[r],t&=~o;return a}function XE(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 YE(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var i=31-zr(n),s=1<<i,l=o[i];l===-1?((s&r)===0||(s&a)!==0)&&(o[i]=XE(s,t)):l<=t&&(e.expiredLanes|=s),n&=~s}}function sg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bw(){var e=Dd;return Dd<<=1,(Dd&4194240)===0&&(Dd=64),e}function Nm(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 8,466 bytes, line 5
5function xl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zr(t),e[t]=r}function KE(e,t){var r=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 a=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-zr(r),n=1<<o;t[o]=0,a[o]=-1,e[o]=-1,r&=~n}}function $g(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-zr(r),o=1<<a;o&t|e[a]&t&&(e[a]|=t),r&=~o}}var Le=0;function _w(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Vw,Wg,Uw,zw,Hw,lg=!1,Ad=[],lo=null,uo=null,co=null,ol=new Map,nl=new Map,oo=[],QE="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 xy(e,t){switch(e){case"focusin":case"focusout":lo=null;break;case"dragenter":case"dragleave":uo=null;break;case"mouseover":case"mouseout":co=null;break;case"pointerover":case"pointerout":ol.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(t.pointerId)}}function Os(e,t,r,a,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:n,targetContainers:[o]},t!==null&&(t=wl(t),t!==null&&Wg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function JE(e,t,r,a,o){switch(t){case"focusin":return lo=Os(lo,e,t,r,a,o),!0;case"dragenter":return uo=Os(uo,e,t,r,a,o),!0;case"mouseover":return co=Os(co,e,t,r,a,o),!0;case"pointerover":var n=o.pointerId;return ol.set(n,Os(ol.get(n)||null,e,t,r,a,o)),!0;case"gotpointercapture":return n=o.pointerId,nl.set(n,Os(nl.get(n)||null,e,t,r,a,o)),!0}return!1}function jw(e){var t=en(e.target);if(t!==null){var r=fn(t);if(r!==null){if(t=r.tag,t===13){if(t=Rw(r),t!==null){e.blockedOn=t,Hw(e.priority,function(){Uw(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ug(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);ag=a,r.target.dispatchEvent(a),ag=null}else return t=wl(r),t!==null&&Wg(t),e.blockedOn=r,!1;t.shift()}return!0}function yy(e,t,r){Wd(e)&&r.delete(t)}function ZE(){lg=!1,lo!==null&&Wd(lo)&&(lo=null),uo!==null&&Wd(uo)&&(uo=null),co!==null&&Wd(co)&&(co=null),ol.forEach(yy),nl.forEach(yy)}function Fs(e,t){e.blockedOn===t&&(e.blockedOn=null,lg||(lg=!0,ir.unstable_scheduleCallback(ir.unstable_NormalPriority,ZE)))}function il(e){function t(o){return Fs(o,e)}if(0<Ad.length){Fs(Ad[0],e);for(var r=1;r<Ad.length;r++){var a=Ad[r];a.blockedOn===e&&(a.blockedOn=null)}}for(lo!==null&&Fs(lo,e),uo!==null&&Fs(uo,e),co!==null&&Fs(co,e),ol.forEach(t),nl.forEach(t),r=0;r<oo.length;r++)a=oo[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<oo.length&&(r=oo[0],r.blockedOn===null);)jw(r),r.blockedOn===null&&oo.shift()}var vi=Ma.ReactCurrentBatchConfig,sc=!0;function eP(e,t,r,a){var o=Le,n=vi.transition;vi.transition=null;try{Le=1,Gg(e,t,r,a)}finally{Le=o,vi.transition=n}}function tP(e,t,r,a){var o=Le,n=vi.transition;vi.transition=null;try{Le=4,Gg(e,t,r,a)}finally{Le=o,vi.transition=n}}function Gg(e,t,r,a){if(sc){var o=ug(e,t,r,a);if(o===null)Mm(e,t,a,lc,r),xy(e,a);else if(JE(o,e,t,r,a))a.stopPropagation();else if(xy(e,a),t&4&&-1<QE.indexOf(e)){for(;o!==null;){var n=wl(o);if(n!==null&&Vw(n),n=ug(e,t,r,a),n===null&&Mm(e,t,a,lc,r),n===o)break;o=n}o!==null&&a.stopPropagation()}else Mm(e,t,a,null,r)}}var lc=null;function ug(e,t,r,a){if(lc=null,e=jg(a),e=en(e),e!==null)if(t=fn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Rw(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return lc=e,null}function qw(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(HE()){case qg:return 1;case Ow:return 4;case nc:case jE:return 16;case Fw:return 536870912;default:return 16}default:return 16}}var io=null,Xg=null,Gd=null;function $w(){if(Gd)return Gd;var e,t=Xg,r=t.length,a,o="value"in io?io.value:io.textContent,n=o.length;for(e=0;e<r&&t[e]===o[e];e++);var i=r-e;for(a=1;a<=i&&t[r-a]===o[n-a];a++);return Gd=o.slice(e,1<a?1-a:void 0)}function Xd(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 Td(){return!0}function wy(){return!1}function sr(e){function t(r,a,o,n,i){this._reactName=r,this._targetInst=o,this.type=a,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Td:wy,this.isPropagationStopped=wy,this}return ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Td)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Td)},persist:function(){},isPersistent:Td}),t}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yg=sr(Ni),yl=ze({},Ni,{view:0,detail:0}),rP=sr(yl),Em,Pm,Bs,Nc=ze({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kg,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!==Bs&&(Bs&&e.type==="mousemove"?(Em=e.screenX-Bs.screenX,Pm=e.screenY-Bs.screenY):Pm=Em=0,Bs=e),Em)},movementY:function(e){return"movementY"in e?e.movementY:Pm}}),by=sr(Nc),aP=ze({},Nc,{dataTransfer:0}),oP=sr(aP),nP=ze({},yl,{relatedTarget:0}),Dm=sr(nP),iP=ze({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),sP=sr(iP),lP=ze({},Ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uP=sr(lP),dP=ze({},Ni,{data:0}),Sy=sr(dP),cP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fP={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"},pP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pP[e])?!!t[e]:!1}function Kg(){return mP}var gP=ze({},yl,{key:function(e){if(e.key){var t=cP[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,016 bytes, line 5
5return e.type==="keypress"?(e=Xd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kg,charCode:function(e){return e.type==="keypress"?Xd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hP=sr(gP),vP=ze({},Nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cy=sr(vP),xP=ze({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kg}),yP=sr(xP),wP=ze({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),bP=sr(wP),SP=ze({},Nc,{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}),CP=sr(SP),LP=[9,13,27,32],Qg=Da&&"CompositionEvent"in window,Xs=null;Da&&"documentMode"in document&&(Xs=document.documentMode);var IP=Da&&"TextEvent"in window&&!Xs,Ww=Da&&(!Qg||Xs&&8<Xs&&11>=Xs),Ly=" ",Iy=!1;function Gw(e,t){switch(e){case"keyup":return LP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function kP(e,t){switch(e){case"compositionend":return Xw(t);case"keypress":return t.which!==32?null:(Iy=!0,Ly);case"textInput":return e=t.data,e===Ly&&Iy?null:e;default:return null}}function NP(e,t){if(oi)return e==="compositionend"||!Qg&&Gw(e,t)?(e=$w(),Gd=Xg=io=null,oi=!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 Ww&&t.locale!=="ko"?null:t.data;default:return null}}var EP={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 ky(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!EP[e.type]:t==="textarea"}function Yw(e,t,r,a){kw(a),t=uc(t,"onChange"),0<t.length&&(r=new Yg("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Ys=null,sl=null;function PP(e){ib(e,0)}function Ec(e){var t=si(e);if(yw(t))return e}function DP(e,t){if(e==="change")return t}var Kw=!1;Da&&(Da?(Od="oninput"in document,Od||(Rm=document.createElement("div"),Rm.setAttribute("oninput","return;"),Od=typeof Rm.oninput=="function"),Md=Od):Md=!1,Kw=Md&&(!document.documentMode||9<document.documentMode));var Md,Od,Rm;function Ny(){Ys&&(Ys.detachEvent("onpropertychange",Qw),sl=Ys=null)}function Qw(e){if(e.propertyName==="value"&&Ec(sl)){var t=[];Yw(t,sl,e,jg(e)),Dw(PP,t)}}function RP(e,t,r){e==="focusin"?(Ny(),Ys=t,sl=r,Ys.attachEvent("onpropertychange",Qw)):e==="focusout"&&Ny()}function AP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ec(sl)}function TP(e,t){if(e==="click")return Ec(t)}function MP(e,t){if(e==="input"||e==="change")return Ec(t)}function OP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jr=typeof Object.is=="function"?Object.is:OP;function ll(e,t){if(jr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var o=r[a];if(!$m.call(t,o)||!jr(e[o],t[o]))return!1}return!0}function Ey(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Py(e,t){var r=Ey(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ey(r)}}function Jw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zw(){for(var e=window,t=rc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=rc(e.document)}return t}function Jg(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 FP(e){var t=Zw(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Jw(r.ownerDocument.documentElement,r)){if(a!==null&&Jg(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,n=Math.min(a.start,o);a=a.end===void 0?n:Math.min(a.end,o),!e.extend&&n>a&&(o=a,a=n,n=o),o=Py(r,n);var i=Py(r,a);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>a?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var BP=Da&&"documentMode"in document&&11>=document.documentMode,ni=null,dg=null,Ks=null,cg=!1;function Dy(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cg||ni==null||ni!==rc(a)||(a=ni,"selectionStart"in a&&Jg(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focu
vendor: 4,514 bytes, line 5
5sNode:a.focusNode,focusOffset:a.focusOffset}),Ks&&ll(Ks,a)||(Ks=a,a=uc(dg,"onSelect"),0<a.length&&(t=new Yg("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=ni)))}function Fd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ii={animationend:Fd("Animation","AnimationEnd"),animationiteration:Fd("Animation","AnimationIteration"),animationstart:Fd("Animation","AnimationStart"),transitionend:Fd("Transition","TransitionEnd")},Am={},eb={};Da&&(eb=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function Pc(e){if(Am[e])return Am[e];if(!ii[e])return e;var t=ii[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in eb)return Am[e]=t[r];return e}var tb=Pc("animationend"),rb=Pc("animationiteration"),ab=Pc("animationstart"),ob=Pc("transitionend"),nb=new Map,Ry="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 yo(e,t){nb.set(e,t),cn(t,[e])}for(Bd=0;Bd<Ry.length;Bd++)_d=Ry[Bd],Ay=_d.toLowerCase(),Ty=_d[0].toUpperCase()+_d.slice(1),yo(Ay,"on"+Ty);var _d,Ay,Ty,Bd;yo(tb,"onAnimationEnd");yo(rb,"onAnimationIteration");yo(ab,"onAnimationStart");yo("dblclick","onDoubleClick");yo("focusin","onFocus");yo("focusout","onBlur");yo(ob,"onTransitionEnd");wi("onMouseEnter",["mouseout","mouseover"]);wi("onMouseLeave",["mouseout","mouseover"]);wi("onPointerEnter",["pointerout","pointerover"]);wi("onPointerLeave",["pointerout","pointerover"]);cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cn("onBeforeInput",["compositionend","keypress","textInput","paste"]);cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $s="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(" "),_P=new Set("cancel close invalid load scroll toggle".split(" ").concat($s));function My(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,_E(a,t,void 0,e),e.currentTarget=null}function ib(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],o=a.event;a=a.listeners;e:{var n=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==n&&o.isPropagationStopped())break e;My(o,s,u),n=l}else for(i=0;i<a.length;i++){if(s=a[i],l=s.instance,u=s.currentTarget,s=s.listener,l!==n&&o.isPropagationStopped())break e;My(o,s,u),n=l}}}if(oc)throw e=ig,oc=!1,ig=null,e}function De(e,t){var r=t[hg];r===void 0&&(r=t[hg]=new Set);var a=e+"__bubble";r.has(a)||(sb(t,e,2,!1),r.add(a))}function Tm(e,t,r){var a=0;t&&(a|=4),sb(r,e,a,t)}var Vd="_reactListening"+Math.random().toString(36).slice(2);function ul(e){if(!e[Vd]){e[Vd]=!0,mw.forEach(function(r){r!=="selectionchange"&&(_P.has(r)||Tm(r,!1,e),Tm(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vd]||(t[Vd]=!0,Tm("selectionchange",!1,t))}}function sb(e,t,r,a){switch(qw(t)){case 1:var o=eP;break;case 4:o=tP;break;default:o=Gg}r=o.bind(null,t,r,e),o=void 0,!ng||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Mm(e,t,r,a,o){var n=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;
vendor: 10,112 bytes, lines 5-6
5if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=a.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;s!==null;){if(i=en(s),i===null)return;if(l=i.tag,l===5||l===6){a=n=i;continue e}s=s.parentNode}}a=a.return}Dw(function(){var u=n,d=jg(r),c=[];e:{var f=nb.get(e);if(f!==void 0){var m=Yg,g=e;switch(e){case"keypress":if(Xd(r)===0)break e;case"keydown":case"keyup":m=hP;break;case"focusin":g="focus",m=Dm;break;case"focusout":g="blur",m=Dm;break;case"beforeblur":case"afterblur":m=Dm;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=by;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=oP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=yP;break;case tb:case rb:case ab:m=sP;break;case ob:m=bP;break;case"scroll":m=rP;break;case"wheel":m=CP;break;case"copy":case"cut":case"paste":m=uP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Cy}var x=(t&4)!==0,v=!x&&e==="scroll",p=x?f!==null?f+"Capture":null:f;x=[];for(var h=u,y;h!==null;){y=h;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,p!==null&&(w=al(h,p),w!=null&&x.push(dl(h,w,y)))),v)break;h=h.return}0<x.length&&(f=new m(f,g,null,r,d),c.push({event:f,listeners:x}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&r!==ag&&(g=r.relatedTarget||r.fromElement)&&(en(g)||g[Ra]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=u,g=g?en(g):null,g!==null&&(v=fn(g),g!==v||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(x=by,w="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=Cy,w="onPointerLeave",p="onPointerEnter",h="pointer"),v=m==null?f:si(m),y=g==null?f:si(g),f=new x(w,h+"leave",m,r,d),f.target=v,f.relatedTarget=y,w=null,en(d)===u&&(x=new x(p,h+"enter",g,r,d),x.target=y,x.relatedTarget=v,w=x),v=w,m&&g)t:{for(x=m,p=g,h=0,y=x;y;y=ti(y))h++;for(y=0,w=p;w;w=ti(w))y++;for(;0<h-y;)x=ti(x),h--;for(;0<y-h;)p=ti(p),y--;for(;h--;){if(x===p||p!==null&&x===p.alternate)break t;x=ti(x),p=ti(p)}x=null}else x=null;m!==null&&Oy(c,f,m,x,!1),g!==null&&v!==null&&Oy(c,v,g,x,!0)}}e:{if(f=u?si(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var S=DP;else if(ky(f))if(Kw)S=MP;else{S=AP;var L=RP}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=TP);if(S&&(S=S(e,u))){Yw(c,S,r,d);break e}L&&L(e,f,u),e==="focusout"&&(L=f._wrapperState)&&L.controlled&&f.type==="number"&&Jm(f,"number",f.value)}switch(L=u?si(u):window,e){case"focusin":(ky(L)||L.contentEditable==="true")&&(ni=L,dg=u,Ks=null);break;case"focusout":Ks=dg=ni=null;break;case"mousedown":cg=!0;break;case"contextmenu":case"mouseup":case"dragend":cg=!1,Dy(c,r,d);break;case"selectionchange":if(BP)break;case"keydown":case"keyup":Dy(c,r,d)}var k;if(Qg)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else oi?Gw(e,r)&&(N="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(N="onCompositionStart");N&&(Ww&&r.locale!=="ko"&&(oi||N!=="onCompositionStart"?N==="onCompositionEnd"&&oi&&(k=$w()):(io=d,Xg="value"in io?io.value:io.textContent,oi=!0)),L=uc(u,N),0<L.length&&(N=new Sy(N,e,null,r,d),c.push({event:N,listeners:L}),k?N.data=k:(k=Xw(r),k!==null&&(N.data=k)))),(k=IP?kP(e,r):NP(e,r))&&(u=uc(u,"onBeforeInput"),0<u.length&&(d=new Sy("onBeforeInput","beforeinput",null,r,d),c.push({event:d,listeners:u}),d.data=k))}ib(c,t)})}function dl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function uc(e,t){for(var r=t+"Capture",a=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=al(e,r),n!=null&&a.unshift(dl(e,n,o)),n=al(e,t),n!=null&&a.push(dl(e,n,o))),e=e.return}return a}function ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Oy(e,t,r,a,o){for(var n=t._reactName,i=[];r!==null&&r!==a;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===a)break;s.tag===5&&u!==null&&(s=u,o?(l=al(r,n),l!=null&&i.unshift(dl(r,l,s))):o||(l=al(r,n),l!=null&&i.push(dl(r,l,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var VP=/\r\n?/g,UP=/\u0000|\uFFFD/g;function Fy(e){return(typeof e=="string"?e:""+e).replace(VP,`
6`).replace(UP,"")}function Ud(e,t,r){if(t=Fy(t),Fy(e)!==t&&r)throw Error(B(425))}function dc(){}var fg=null,pg=null;function mg(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 gg=typeof setTimeout=="function"?setTimeout:void 0,zP=typeof clearTimeout=="function"?clearTimeout:void 0,By=typeof Promise=="function"?Promise:void 0,HP=typeof queueMicrotask=="function"?queueMicrotask:typeof By<"u"?function(e){return By.resolve(null).then(e).catch(jP)}:gg;function jP(e){setTimeout(function(){throw e})}function Om(e,t){var r=t,a=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(a===0){e.removeChild(o),il(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=o}while(r);il(t)}function fo(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 _y(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ei=Math.random().toString(36).slice(2),oa="__reactFiber$"+Ei,cl="__reactProps$"+Ei,Ra="__reactContainer$"+Ei,hg="__reactEvents$"+Ei,qP="__reactListeners$"+Ei,$P="__reactHandles$"+Ei;function en(e){var t=e[oa];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ra]||r[oa]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=_y(e);e!==null;){if(r=e[oa])return r;e=_y(e)}return t}e=r,r=e.parentNode}return null}function wl(e){return e=e[oa]||e[Ra],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function si(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(B(33))}function Dc(e){return e[cl]||null}var vg=[],li=-1;function wo(e){return{current:e}}function Re(e){0>li||(e.current=vg[li],vg[li]=null,li--)}function Ee(e,t){li++,vg[li]=e.current,e.current=t}var xo={},Pt=wo(xo),qt=wo(!1),nn=xo;function bi(e,t){var r=e.type.contextTypes;if(!r)return xo;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in r)o[n]=t[n];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $t(e){return e=e.childContextTypes,e!=null}function cc(){Re(qt),Re(Pt)}function Vy(e,t,r){if(Pt.current!==xo)throw Error(B(168));Ee(Pt,t),Ee(qt,r)}function lb(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var o in a)if(!(o in t))throw Error(B(108,RE(e)||"Unknown",o));return ze({},r,a)}function fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xo,nn=Pt.current,Ee(Pt,e),Ee(qt,qt.current),!0}function Uy(e,t,r){var a=e.stateNode;if(!a)throw Error(B(169));r?(e=lb(e,t,nn),a.__reactInternalMemoizedMergedChildContext=e,Re(qt),Re(Pt),Ee(Pt,e)):Re(qt),Ee(qt,r)}var ka=null,Rc=!1,Fm=!1;function ub(e){ka===null?ka=[e]:ka.push(e)}function WP(e){Rc=!0,ub(e)}function bo(){if(!Fm&&ka!==null){Fm=!0;var e=0,t=Le;try{var r=ka;for(Le=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}ka=null,Rc=!1}catch(o){throw ka!==null&&(ka=ka.slice(e+1)),Mw(qg,bo),o}finally{Le=t,Fm=!1}}return null}var ui=[],di=0,pc=null,mc=0,yr=[],wr=0,sn=null,Na=1,Ea="";function Jo(e,t){ui[di++]=mc,ui[di++]=pc,pc=e,mc=t}function db(e,t,r){yr[wr++]=Na,yr[wr++]=Ea,yr[wr++]=sn,sn=e;var a=Na;e=Ea;var o=32-zr(a)-1;a&=~(1<<o),r+=1;var n=32-zr(t)+o;if(30<n){var i=o-o%5;n=(a&(1<<i)-1).toString(32),a>>=i,o-=i,Na=1<<32-zr(t)+o|r<<o|a,Ea=n+e}else Na=1<<n|r<<o|a,Ea=e}function Zg(e){e.return!==null&&(Jo(e,1),db(e,1,0))}function eh(e){for(;e===pc;)pc=ui[--di],ui[di]=null,mc=ui[--di],ui[di]=null;for(;e===sn;)sn=yr[--wr],yr[wr]=null,Ea=yr[--wr],yr[wr]=null,Na=yr[--wr],yr[wr]=null}var nr=null,or=null,Oe=!1,Ur=null;function cb(e,t){var r=br(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function zy(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,nr=e,or=fo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nr=e,or=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=sn!==null?{id:Na,overflow:Ea}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=br(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,nr=e,or=null,!0):!1;default:return!1}}function xg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yg(e){if(Oe){var t=or;if(t){var r=t;if(!zy(e,t)){if(xg(e))throw Error(B(418));t=fo(r.nextSibling);var a=nr;t&&zy(e,t)?cb(a,r):(e.flags=e.flags&-4097|2,Oe=!1,nr=e)}}else{if(xg(e))throw Error(B(418));e.flags=e.flags&-4097|2,Oe=!1,nr=e}}}function Hy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nr=e}function zd(e){if(e!==nr)return!1;if(!Oe)return Hy(e),Oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mg(e.type,e.memoizedProps)),t&&(t=or)){if(xg(e))throw fb(),Error(B(418));for(;t;)cb(e,t),t=fo(t.nextSibling)}if(Hy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317)
vendor: 4,083 bytes, line 6
6);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){or=fo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}or=null}}else or=nr?fo(e.stateNode.nextSibling):null;return!0}function fb(){for(var e=or;e;)e=fo(e.nextSibling)}function Si(){or=nr=null,Oe=!1}function th(e){Ur===null?Ur=[e]:Ur.push(e)}var GP=Ma.ReactCurrentBatchConfig;function _s(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(B(309));var a=r.stateNode}if(!a)throw Error(B(147,e));var o=a,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(i){var s=o.refs;i===null?delete s[n]:s[n]=i},t._stringRef=n,t)}if(typeof e!="string")throw Error(B(284));if(!r._owner)throw Error(B(290,e))}return e}function Hd(e,t){throw e=Object.prototype.toString.call(t),Error(B(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jy(e){var t=e._init;return t(e._payload)}function pb(e){function t(p,h){if(e){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function r(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function a(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function o(p,h){return p=ho(p,h),p.index=0,p.sibling=null,p}function n(p,h,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=2,h):y):(p.flags|=2,h)):(p.flags|=1048576,h)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,h,y,w){return h===null||h.tag!==6?(h=jm(y,p.mode,w),h.return=p,h):(h=o(h,y),h.return=p,h)}function l(p,h,y,w){var S=y.type;return S===ai?d(p,h,y.props.children,w,y.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ro&&jy(S)===h.type)?(w=o(h,y.props),w.ref=_s(p,h,y),w.return=p,w):(w=tc(y.type,y.key,y.props,null,p.mode,w),w.ref=_s(p,h,y),w.return=p,w)}function u(p,h,y,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=qm(y,p.mode,w),h.return=p,h):(h=o(h,y.children||[]),h.return=p,h)}function d(p,h,y,w,S){return h===null||h.tag!==7?(h=on(y,p.mode,w,S),h.return=p,h):(h=o(h,y),h.return=p,h)}function c(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=jm(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Nd:return y=tc(h.type,h.key,h.props,null,p.mode,y),y.ref=_s(p,null,h),y.return=p,y;case ri:return h=qm(h,p.mode,y),h.return=p,h;case ro:var w=h._init;return c(p,w(h._payload),y)}if(js(h)||Ms(h))return h=on(h,p.mode,y,null),h.return=p,h;Hd(p,h)}return null}function f(p,h,y,w){var S=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:s(p,h,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Nd:return y.key===S?l(p,h,y,w):null;case ri:return y.key===S?u(p,h,y,w):null;case ro:return S=y._init,f(p,h,S(y._payload),w)}if(js(y)||Ms(y))return S!==null?null:d(p,h,y,w,null);Hd(p,y)}return null}function m(p,h,y,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(y)||null,s(h,p,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Nd:return p=p.get(w.key===null?y:w.key)||null,l(h,p,w,S);case ri:return p=p.get(w.key===null?y:w.key)||null,u(h,p,w,S);case ro:var L=w._init;return m(p,h,y,L(w._payload),S)}if(js(w)||Ms(w))return p=p.get(y)||null,d(h,p,w,S,null);Hd(h,w)}return null}function g(p,h,y,w){for(var S=null,L=null,k=h,N=h=0,q=null;k!==null&&N<y.length;N++){k.index>N?(q=k,k=null):q=k.sibling;var D=f(p,k,y[N],w);if(D===null){k===null&&(k=q);break}e&&k&&D.alternate===null&&t(p,k),h=n(D,h,N),L===null?S=D:L.sibling=D,L=D,k=q}if(N===y.length)return r(p,k),Oe&&Jo(p,N),S;if(k===null){for(;N<y.length;N++)k=c(p,y[N],w),k!==null&&(h=n(k,h,N),L===null?S=k:L.sibling=k,L=k);return Oe&&Jo(p,N),S}for(k=a(p,k);N<y.length;N++)q=m(k,p,N,y[N],w),q!==null&&(e&&q.alternate!==null&&k.delete(q.key===null?N:q.key),h=n(q,h,N),L===null?S=q:L.sibling=q,L=q);
vendor: 8,452 bytes, line 6
6return e&&k.forEach(function(ee){return t(p,ee)}),Oe&&Jo(p,N),S}function x(p,h,y,w){var S=Ms(y);if(typeof S!="function")throw Error(B(150));if(y=S.call(y),y==null)throw Error(B(151));for(var L=S=null,k=h,N=h=0,q=null,D=y.next();k!==null&&!D.done;N++,D=y.next()){k.index>N?(q=k,k=null):q=k.sibling;var ee=f(p,k,D.value,w);if(ee===null){k===null&&(k=q);break}e&&k&&ee.alternate===null&&t(p,k),h=n(ee,h,N),L===null?S=ee:L.sibling=ee,L=ee,k=q}if(D.done)return r(p,k),Oe&&Jo(p,N),S;if(k===null){for(;!D.done;N++,D=y.next())D=c(p,D.value,w),D!==null&&(h=n(D,h,N),L===null?S=D:L.sibling=D,L=D);return Oe&&Jo(p,N),S}for(k=a(p,k);!D.done;N++,D=y.next())D=m(k,p,N,D.value,w),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?N:D.key),h=n(D,h,N),L===null?S=D:L.sibling=D,L=D);return e&&k.forEach(function(O){return t(p,O)}),Oe&&Jo(p,N),S}function v(p,h,y,w){if(typeof y=="object"&&y!==null&&y.type===ai&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Nd:e:{for(var S=y.key,L=h;L!==null;){if(L.key===S){if(S=y.type,S===ai){if(L.tag===7){r(p,L.sibling),h=o(L,y.props.children),h.return=p,p=h;break e}}else if(L.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ro&&jy(S)===L.type){r(p,L.sibling),h=o(L,y.props),h.ref=_s(p,L,y),h.return=p,p=h;break e}r(p,L);break}else t(p,L);L=L.sibling}y.type===ai?(h=on(y.props.children,p.mode,w,y.key),h.return=p,p=h):(w=tc(y.type,y.key,y.props,null,p.mode,w),w.ref=_s(p,h,y),w.return=p,p=w)}return i(p);case ri:e:{for(L=y.key;h!==null;){if(h.key===L)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){r(p,h.sibling),h=o(h,y.children||[]),h.return=p,p=h;break e}else{r(p,h);break}else t(p,h);h=h.sibling}h=qm(y,p.mode,w),h.return=p,p=h}return i(p);case ro:return L=y._init,v(p,h,L(y._payload),w)}if(js(y))return g(p,h,y,w);if(Ms(y))return x(p,h,y,w);Hd(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(r(p,h.sibling),h=o(h,y),h.return=p,p=h):(r(p,h),h=jm(y,p.mode,w),h.return=p,p=h),i(p)):r(p,h)}return v}var Ci=pb(!0),mb=pb(!1),gc=wo(null),hc=null,ci=null,rh=null;function ah(){rh=ci=hc=null}function oh(e){var t=gc.current;Re(gc),e._currentValue=t}function wg(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function xi(e,t){hc=e,rh=ci=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(jt=!0),e.firstContext=null)}function Cr(e){var t=e._currentValue;if(rh!==e)if(e={context:e,memoizedValue:t,next:null},ci===null){if(hc===null)throw Error(B(308));ci=e,hc.dependencies={lanes:0,firstContext:e}}else ci=ci.next=e;return t}var tn=null;function nh(e){tn===null?tn=[e]:tn.push(e)}function gb(e,t,r,a){var o=t.interleaved;return o===null?(r.next=r,nh(t)):(r.next=o.next,o.next=r),t.interleaved=r,Aa(e,a)}function Aa(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ao=!1;function ih(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hb(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 Pa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function po(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(be&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,Aa(e,r)}return o=a.interleaved,o===null?(t.next=t,nh(a)):(t.next=o.next,o.next=t),a.interleaved=t,Aa(e,r)}function Yd(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,$g(e,r)}}function qy(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var o=null,n=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};n===null?o=n=i:n=n.next=i,r=r.next}while(r!==null);n===null?o=n=t:n=n.next=t}else o=n=t;r={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function vc(e,t,r,a){var o=e.updateQueue;ao=!1;var n=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,i===null?n=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(n!==null){var c=o.baseState;i=0,d=u=l=null,s=n;do{var f=s.lane,m=s.eventTime;if((a&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,x=s;switch(f=t,m=r,x.tag){case 1:if(g=x.payload,typeof g=="function"){c=g.call(m,c,f);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,f=typeof g=="function"?g.call(m,c,f):g,f==null)break e;c=ze({},c,f);break e;case 2:ao=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else m={eventTime:m,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=m,l=c):d=d.next=m,i|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);un|=i,e.lanes=i,e.memoizedState=c}}function $y(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(o!==null){if(a.callback=null,a=r,typeof o!="function")throw Error(B(191,o));o.call(a)}}}var bl={},ia=wo(bl),fl=wo(bl),pl=wo(bl);function rn(e){if(e===bl)throw Error(B(174));return e}function sh(e,t){switch(Ee(pl,t),Ee(fl,e),Ee(ia,bl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eg(t,e)}Re(ia),Ee(ia,t)}function Li(){Re(ia),Re(fl),Re(pl)}function vb(e){rn(pl.current);var t=rn(ia.current),r=eg(t,e.type);t!==r&&(Ee(fl,e),Ee(ia,r))}function lh(e){fl.current===e&&(Re(ia),Re(fl))}var Ve=wo(0);function xc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bm=[];function uh(){for(var e=0;e<Bm.length;e++)Bm[e]._workInProgressVersionPrimary=null;Bm.length=0}var Kd=Ma.ReactCurrentDispatcher,_m=Ma.ReactCurrentBatchConfig,ln=0,Ue=null,tt=null,dt=null,yc=!1,Qs=!1,ml=0,XP=0;function kt(){throw Error(B(321))}function dh(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!jr(e[r],t[r]))return!1;return!0}function ch(e,t,r,a,o,n){if(ln=n,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kd.current=e===null||e.memoizedState===null?JP:ZP,e=r(a,o),Qs){n=0;do{if(Qs=!1,ml=0,25<=n)throw Error(B(301));n+=1,dt=tt=null,t.updateQueue=null,Kd.current=eD,e=r(a,o)}while(Qs)}if(Kd.current=wc,t=tt!==null&&tt.next!==null,ln=0,dt=tt=Ue=null,yc=!1,t)throw Error(B(300));return e}function fh(){var e=ml!==0;return ml=0,e}function aa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Ue.memoizedState=dt=e:dt=dt.next=e,dt}function Lr(){if(tt===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=tt.next;var t=dt===null?Ue.memoizedState:dt.next;if(t!==null)dt=t,tt=e;else{if(e===null)throw Error(B(310));tt=e,e={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},dt===null?Ue.memoizedState=dt=e:dt=dt.next=e}return dt}function gl(e,t){return typeof t=="function"?t(e):t}function Vm(e){var t=Lr(),r=t.queue;if(r===null)throw Error(B(311));r.lastRenderedReducer=e;
vendor: 5,705 bytes, line 6
6var a=tt,o=a.baseQueue,n=r.pending;if(n!==null){if(o!==null){var i=o.next;o.next=n.next,n.next=i}a.baseQueue=o=n,r.pending=null}if(o!==null){n=o.next,a=a.baseState;var s=i=null,l=null,u=n;do{var d=u.lane;if((ln&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,i=a):l=l.next=c,Ue.lanes|=d,un|=d}u=u.next}while(u!==null&&u!==n);l===null?i=a:l.next=s,jr(a,t.memoizedState)||(jt=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=l,r.lastRenderedState=a}if(e=r.interleaved,e!==null){o=e;do n=o.lane,Ue.lanes|=n,un|=n,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Um(e){var t=Lr(),r=t.queue;if(r===null)throw Error(B(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,n=t.memoizedState;if(o!==null){r.pending=null;var i=o=o.next;do n=e(n,i.action),i=i.next;while(i!==o);jr(n,t.memoizedState)||(jt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),r.lastRenderedState=n}return[n,a]}function xb(){}function yb(e,t){var r=Ue,a=Lr(),o=t(),n=!jr(a.memoizedState,o);if(n&&(a.memoizedState=o,jt=!0),a=a.queue,ph(Sb.bind(null,r,a,e),[e]),a.getSnapshot!==t||n||dt!==null&&dt.memoizedState.tag&1){if(r.flags|=2048,hl(9,bb.bind(null,r,a,o,t),void 0,null),ct===null)throw Error(B(349));(ln&30)!==0||wb(r,t,o)}return o}function wb(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function bb(e,t,r,a){t.value=r,t.getSnapshot=a,Cb(t)&&Lb(e)}function Sb(e,t,r){return r(function(){Cb(t)&&Lb(e)})}function Cb(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jr(e,r)}catch{return!0}}function Lb(e){var t=Aa(e,1);t!==null&&Hr(t,e,1,-1)}function Wy(e){var t=aa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:e},t.queue=e,e=e.dispatch=QP.bind(null,Ue,e),[t.memoizedState,e]}function hl(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function Ib(){return Lr().memoizedState}function Qd(e,t,r,a){var o=aa();Ue.flags|=e,o.memoizedState=hl(1|t,r,void 0,a===void 0?null:a)}function Ac(e,t,r,a){var o=Lr();a=a===void 0?null:a;var n=void 0;if(tt!==null){var i=tt.memoizedState;if(n=i.destroy,a!==null&&dh(a,i.deps)){o.memoizedState=hl(t,r,n,a);return}}Ue.flags|=e,o.memoizedState=hl(1|t,r,n,a)}function Gy(e,t){return Qd(8390656,8,e,t)}function ph(e,t){return Ac(2048,8,e,t)}function kb(e,t){return Ac(4,2,e,t)}function Nb(e,t){return Ac(4,4,e,t)}function Eb(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 Pb(e,t,r){return r=r!=null?r.concat([e]):null,Ac(4,4,Eb.bind(null,t,e),r)}function mh(){}function Db(e,t){var r=Lr();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&dh(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function Rb(e,t){var r=Lr();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&dh(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function Ab(e,t,r){return(ln&21)===0?(e.baseState&&(e.baseState=!1,jt=!0),e.memoizedState=r):(jr(r,t)||(r=Bw(),Ue.lanes|=r,un|=r,e.baseState=!0),t)}function YP(e,t){var r=Le;Le=r!==0&&4>r?r:4,e(!0);var a=_m.transition;_m.transition={};try{e(!1),t()}finally{Le=r,_m.transition=a}}function Tb(){return Lr().memoizedState}function KP(e,t,r){var a=go(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},Mb(e))Ob(t,r);else if(r=gb(e,t,r,a),r!==null){var o=Ft();Hr(r,e,a,o),Fb(r,t,a)}}function QP(e,t,r){var a=go(e),o={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(Mb(e))Ob(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,s=n(i,r);if(o.hasEagerState=!0,o.eagerState=s,jr(s,i)){var l=t.interleaved;l===null?(o.next=o,nh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=gb(e,t,o,a),r!==null&&(o=Ft(),Hr(r,e,a,o),Fb(r,t,a))}}function Mb(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function Ob(e,t){Qs=yc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Fb(e,t,r){if((r&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,$g(e,r)}}var wc={readContext:Cr,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},JP={readContext:Cr,useCallback:function(e,t){return aa().memoizedState=[e,t===void 0?null:t],e},useContext:Cr,useEffect:Gy,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Qd(4194308,4,Eb.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qd(4,2,e,t)},useMemo:function(e,t){var r=aa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=aa();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=KP.bind(null,Ue,e),[a.memoizedState,e]}
vendor: 7,457 bytes, lines 6-8
6,useRef:function(e){var t=aa();return e={current:e},t.memoizedState=e},useState:Wy,useDebugValue:mh,useDeferredValue:function(e){return aa().memoizedState=e},useTransition:function(){var e=Wy(!1),t=e[0];return e=YP.bind(null,e[1]),aa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=Ue,o=aa();if(Oe){if(r===void 0)throw Error(B(407));r=r()}else{if(r=t(),ct===null)throw Error(B(349));(ln&30)!==0||wb(a,t,r)}o.memoizedState=r;var n={value:r,getSnapshot:t};return o.queue=n,Gy(Sb.bind(null,a,n,e),[e]),a.flags|=2048,hl(9,bb.bind(null,a,n,r,t),void 0,null),r},useId:function(){var e=aa(),t=ct.identifierPrefix;if(Oe){var r=Ea,a=Na;r=(a&~(1<<32-zr(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=ml++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=XP++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ZP={readContext:Cr,useCallback:Db,useContext:Cr,useEffect:ph,useImperativeHandle:Pb,useInsertionEffect:kb,useLayoutEffect:Nb,useMemo:Rb,useReducer:Vm,useRef:Ib,useState:function(){return Vm(gl)},useDebugValue:mh,useDeferredValue:function(e){var t=Lr();return Ab(t,tt.memoizedState,e)},useTransition:function(){var e=Vm(gl)[0],t=Lr().memoizedState;return[e,t]},useMutableSource:xb,useSyncExternalStore:yb,useId:Tb,unstable_isNewReconciler:!1},eD={readContext:Cr,useCallback:Db,useContext:Cr,useEffect:ph,useImperativeHandle:Pb,useInsertionEffect:kb,useLayoutEffect:Nb,useMemo:Rb,useReducer:Um,useRef:Ib,useState:function(){return Um(gl)},useDebugValue:mh,useDeferredValue:function(e){var t=Lr();return tt===null?t.memoizedState=e:Ab(t,tt.memoizedState,e)},useTransition:function(){var e=Um(gl)[0],t=Lr().memoizedState;return[e,t]},useMutableSource:xb,useSyncExternalStore:yb,useId:Tb,unstable_isNewReconciler:!1};function _r(e,t){if(e&&e.defaultProps){t=ze({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function bg(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:ze({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Tc={isMounted:function(e){return(e=e._reactInternals)?fn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=Ft(),o=go(e),n=Pa(a,o);n.payload=t,r!=null&&(n.callback=r),t=po(e,n,o),t!==null&&(Hr(t,e,o,a),Yd(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=Ft(),o=go(e),n=Pa(a,o);n.tag=1,n.payload=t,r!=null&&(n.callback=r),t=po(e,n,o),t!==null&&(Hr(t,e,o,a),Yd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ft(),a=go(e),o=Pa(r,a);o.tag=2,t!=null&&(o.callback=t),t=po(e,o,a),t!==null&&(Hr(t,e,a,r),Yd(t,e,a))}};function Xy(e,t,r,a,o,n,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,n,i):t.prototype&&t.prototype.isPureReactComponent?!ll(r,a)||!ll(o,n):!0}function Bb(e,t,r){var a=!1,o=xo,n=t.contextType;return typeof n=="object"&&n!==null?n=Cr(n):(o=$t(t)?nn:Pt.current,a=t.contextTypes,n=(a=a!=null)?bi(e,o):xo),t=new t(r,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Tc,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function Yy(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function Sg(e,t,r,a){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},ih(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Cr(n):(n=$t(t)?nn:Pt.current,o.context=bi(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(bg(e,t,n,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Tc.enqueueReplaceState(o,o.state,null),vc(e,r,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ii(e,t){try{var r="",a=t;do r+=DE(a),a=a.return;while(a);var o=r}catch(n){o=`
7Error generating stack: `+n.message+`
8`+n.stack}return{value:e,source:t,stack:o,digest:null}}function zm(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Cg(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var tD=typeof WeakMap=="function"?WeakMap:Map;function _b(e,t,r){r=Pa(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Sc||(Sc=!0,Tg=a),Cg(e,t)},r}function Vb(e,t,r){r=Pa(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=t.value;r.payload=function(){return a(o)},r.callback=function(){Cg(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(r.callback=function(){Cg(e,t),typeof a!="function"&&(mo===null?mo=new Set([this]):mo.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Ky(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new tD;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(r)||(o.add(r),e=gD.bind(null,e,t,r),t.then(e,e))}function Qy(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 Jy(e,t,r,a,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Pa(-1,1),t.tag=2,po(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var rD=Ma.ReactCurrentOwner,jt=!1;function Ot(e,t,r,a){t.child=e===null?mb(t,null,r,a):Ci(t,e.child,r,a)}function Zy(e,t,r,a,o){r=r.render;var n=t.ref;return xi(t,o),a=ch(e,t,r,a,n,o),r=fh(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ta(e,t,o)):(Oe&&r&&Zg(t),t.flags|=1,Ot(e,t,a,o),t.child)}function ew(e,t,r,a,o){if(e===null){var n=r.type;return typeof n=="function"&&!Sh(n)&&n.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=n,Ub(e,t,n,a,o)):(e=tc(r.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var i=n.memoizedProps;if(r=r.compare,r=r!==null?r:ll,r(i,a)&&e.ref===t.ref)return Ta(e,t,o)}return t.flags|=1,e=ho(n,a),e.ref=t.ref,e.return=t,t.child=e}function Ub(e,t,r,a,o){if(e!==null){var n=e.memoizedProps;if(ll(n,a)&&e.ref===t.ref)if(jt=!1,t.pendingProps=a=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(jt=!0);else return t.lanes=e.lanes,Ta(e,t,o)}return Lg(e,t,r,a,o)}function zb(e,t,r){var a=t.pendingProps,o=a.children,n=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(pi,ar),ar|=r;else{if((r&1073741824)===0)return e=n!==null?n.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(pi,ar),ar|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=n!==null?n.baseLanes:r,Ee(pi,ar),ar|=a}else n!==null?(a=n.baseLanes|r,t.memoizedState=null):a=r,Ee(pi,ar),ar|=a;return Ot(e,t,o,r),t.child}function Hb(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,127 bytes, line 8
8function Lg(e,t,r,a,o){var n=$t(r)?nn:Pt.current;return n=bi(t,n),xi(t,o),r=ch(e,t,r,a,n,o),a=fh(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ta(e,t,o)):(Oe&&a&&Zg(t),t.flags|=1,Ot(e,t,r,o),t.child)}function tw(e,t,r,a,o){if($t(r)){var n=!0;fc(t)}else n=!1;if(xi(t,o),t.stateNode===null)Jd(e,t),Bb(t,r,a),Sg(t,r,a,o),a=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=Cr(u):(u=$t(r)?nn:Pt.current,u=bi(t,u));var d=r.getDerivedStateFromProps,c=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==a||l!==u)&&Yy(t,i,a,u),ao=!1;var f=t.memoizedState;i.state=f,vc(t,a,i,o),l=t.memoizedState,s!==a||f!==l||qt.current||ao?(typeof d=="function"&&(bg(t,r,d,a),l=t.memoizedState),(s=ao||Xy(t,r,s,a,f,l,u))?(c||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=a,t.memoizedState=l),i.props=a,i.state=l,i.context=u,a=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,hb(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:_r(t.type,s),i.props=u,c=t.pendingProps,f=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=Cr(l):(l=$t(r)?nn:Pt.current,l=bi(t,l));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==c||f!==l)&&Yy(t,i,a,l),ao=!1,f=t.memoizedState,i.state=f,vc(t,a,i,o);var g=t.memoizedState;s!==c||f!==g||qt.current||ao?(typeof m=="function"&&(bg(t,r,m,a),g=t.memoizedState),(u=ao||Xy(t,r,u,a,f,g,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,g,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,g,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),i.props=a,i.state=g,i.context=l,a=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),a=!1)}return Ig(e,t,r,a,n,o)}function Ig(e,t,r,a,o,n){Hb(e,t);var i=(t.flags&128)!==0;if(!a&&!i)return o&&Uy(t,r,!1),Ta(e,t,n);a=t.stateNode,rD.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&i?(t.child=Ci(t,e.child,null,n),t.child=Ci(t,null,s,n)):Ot(e,t,s,n),t.memoizedState=a.state,o&&Uy(t,r,!0),t.child}function jb(e){var t=e.stateNode;t.pendingContext?Vy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vy(e,t.context,!1),sh(e,t.containerInfo)}function rw(e,t,r,a,o){return Si(),th(o),t.flags|=256,Ot(e,t,r,a),t.child}var kg={dehydrated:null,treeContext:null,retryLane:0};function Ng(e){return{baseLanes:e,cachePool:null,transitions:null}}function qb(e,t,r){var a=t.pendingProps,o=Ve.current,n=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ee(Ve,o&1),e===null)return yg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=a.children,e=a.fallback,n?(a=t.mode,n=t.child,i={mode:"hidden",children:i},(a&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=i):n=Fc(i,a,
vendor: 7,272 bytes, line 8
80,null),e=on(e,a,r,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Ng(r),t.memoizedState=kg,e):gh(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return aD(e,t,i,a,s,o,r);if(n){n=a.fallback,i=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:a.children};return(i&1)===0&&t.child!==o?(a=t.child,a.childLanes=0,a.pendingProps=l,t.deletions=null):(a=ho(o,l),a.subtreeFlags=o.subtreeFlags&14680064),s!==null?n=ho(s,n):(n=on(n,i,r,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,a=n,n=t.child,i=e.child.memoizedState,i=i===null?Ng(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},n.memoizedState=i,n.childLanes=e.childLanes&~r,t.memoizedState=kg,a}return n=e.child,e=n.sibling,a=ho(n,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function gh(e,t){return t=Fc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jd(e,t,r,a){return a!==null&&th(a),Ci(t,e.child,null,r),e=gh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function aD(e,t,r,a,o,n,i){if(r)return t.flags&256?(t.flags&=-257,a=zm(Error(B(422))),jd(e,t,i,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=a.fallback,o=t.mode,a=Fc({mode:"visible",children:a.children},o,0,null),n=on(n,o,i,null),n.flags|=2,a.return=t,n.return=t,a.sibling=n,t.child=a,(t.mode&1)!==0&&Ci(t,e.child,null,i),t.child.memoizedState=Ng(i),t.memoizedState=kg,n);if((t.mode&1)===0)return jd(e,t,i,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var s=a.dgst;return a=s,n=Error(B(419)),a=zm(n,a,void 0),jd(e,t,i,a)}if(s=(i&e.childLanes)!==0,jt||s){if(a=ct,a!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(a.suspendedLanes|i))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,Aa(e,o),Hr(a,e,o,-1))}return bh(),a=zm(Error(B(421))),jd(e,t,i,a)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=hD.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,or=fo(o.nextSibling),nr=t,Oe=!0,Ur=null,e!==null&&(yr[wr++]=Na,yr[wr++]=Ea,yr[wr++]=sn,Na=e.id,Ea=e.overflow,sn=t),t=gh(t,a.children),t.flags|=4096,t)}function aw(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),wg(e.return,t,r)}function Hm(e,t,r,a,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=r,n.tailMode=o)}function $b(e,t,r){var a=t.pendingProps,o=a.revealOrder,n=a.tail;if(Ot(e,t,a.children,r),a=Ve.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&aw(e,r,t);else if(e.tag===19)aw(e,r,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}a&=1}if(Ee(Ve,a),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&xc(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Hm(t,!1,o,r,n);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xc(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Hm(t,!0,r,null,n);break;case"together":Hm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jd(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ta(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),un|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(B(153));if(t.child!==null){for(e=t.child,r=ho(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ho(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function oD(e,t,r){switch(t.tag){case 3:jb(t),Si();break;case 5:vb(t);break;case 1:$t(t.type)&&fc(t);break;case 4:sh(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,o=t.memoizedProps.value;Ee(gc,a._currentValue),a._currentValue=o;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ee(Ve,Ve.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?qb(e,t,r):(Ee(Ve,Ve.current&1),e=Ta(e,t,r),e!==null?e.sibling:null);Ee(Ve,Ve.current&1);break;case 19:if(a=(r&t.childLanes)!==0,(e.flags&128)!==0){if(a)return $b(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ee(Ve,Ve.current),a)break;return null;case 22:case 23:return t.lanes=0,zb(e,t,r)}return Ta(e,t,r)}var Wb,Eg,Gb,Xb;Wb=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Eg=function(){};Gb=function(e,t,r,a){var o=e.memoizedProps;if(o!==a){e=t.stateNode,rn(ia.current);var n=null;switch(r){case"input":o=Km(e,o),a=Km(e,a),n=[];break;case"select":o=ze({},o,{value:void 0}),a=ze({},a,{value:void 0}),n=[];break;case"textarea":o=Zm(e,o),a=Zm(e,a),n=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=dc)}tg(r,a);var i;r=null;for(u in o)if(!a.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(tl.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in a){var l=a[u];if(s=o?.[u],a.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(n||(n=[]),n.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(tl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&De("scroll",e),n||s===l||(n=[])):(n=n||[]).push(u,l))}r&&(n=n||[]).push("style",r);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};Xb=function(e,t,r,a){r!==a&&(t.flags|=4)};function Vs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var o=e.child;o!==null;
vendor: 14,971 bytes, line 8
8)r|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function nD(e,t,r){var a=t.pendingProps;switch(eh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return $t(t.type)&&cc(),Nt(t),null;case 3:return a=t.stateNode,Li(),Re(qt),Re(Pt),uh(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(zd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ur!==null&&(Fg(Ur),Ur=null))),Eg(e,t),Nt(t),null;case 5:lh(t);var o=rn(pl.current);if(r=t.type,e!==null&&t.stateNode!=null)Gb(e,t,r,a,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(B(166));return Nt(t),null}if(e=rn(ia.current),zd(t)){a=t.stateNode,r=t.type;var n=t.memoizedProps;switch(a[oa]=t,a[cl]=n,e=(t.mode&1)!==0,r){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(o=0;o<$s.length;o++)De($s[o],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":cy(a,n),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!n.multiple},De("invalid",a);break;case"textarea":py(a,n),De("invalid",a)}tg(r,n),o=null;for(var i in n)if(n.hasOwnProperty(i)){var s=n[i];i==="children"?typeof s=="string"?a.textContent!==s&&(n.suppressHydrationWarning!==!0&&Ud(a.textContent,s,e),o=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(n.suppressHydrationWarning!==!0&&Ud(a.textContent,s,e),o=["children",""+s]):tl.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&De("scroll",a)}switch(r){case"input":Ed(a),fy(a,n,!0);break;case"textarea":Ed(a),my(a);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(a.onclick=dc)}a=o,t.updateQueue=a,a!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Sw(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=i.createElement(r,{is:a.is}):(e=i.createElement(r),r==="select"&&(i=e,a.multiple?i.multiple=!0:a.size&&(i.size=a.size))):e=i.createElementNS(e,r),e[oa]=t,e[cl]=a,Wb(e,t,!1,!1),t.stateNode=e;e:{switch(i=rg(r,a),r){case"dialog":De("cancel",e),De("close",e),o=a;break;case"iframe":case"object":case"embed":De("load",e),o=a;break;case"video":case"audio":for(o=0;o<$s.length;o++)De($s[o],e);o=a;break;case"source":De("error",e),o=a;break;case"img":case"image":case"link":De("error",e),De("load",e),o=a;break;case"details":De("toggle",e),o=a;break;case"input":cy(e,a),o=Km(e,a),De("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=ze({},a,{value:void 0}),De("invalid",e);break;case"textarea":py(e,a),o=Zm(e,a),De("invalid",e);break;default:o=a}tg(r,o),s=o;for(n in s)if(s.hasOwnProperty(n)){var l=s[n];n==="style"?Iw(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Cw(e,l)):n==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&rl(e,l):typeof l=="number"&&rl(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(tl.hasOwnProperty(n)?l!=null&&n==="onScroll"&&De("scroll",e):l!=null&&Vg(e,n,l,i))}switch(r){case"input":Ed(e),fy(e,a,!1);break;case"textarea":Ed(e),my(e);break;case"option":a.value!=null&&e.setAttribute("value",""+vo(a.value));break;case"select":e.multiple=!!a.multiple,n=a.value,n!=null?mi(e,!!a.multiple,n,!1):a.defaultValue!=null&&mi(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=dc)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Nt(t),null;case 6:if(e&&t.stateNode!=null)Xb(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(B(166));if(r=rn(pl.current),rn(ia.current),zd(t)){if(a=t.stateNode,r=t.memoizedProps,a[oa]=t,(n=a.nodeValue!==r)&&(e=nr,e!==null))switch(e.tag){case 3:Ud(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ud(a.nodeValue,r,(e.mode&1)!==0)}n&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[oa]=t,t.stateNode=a}return Nt(t),null;case 13:if(Re(Ve),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oe&&or!==null&&(t.mode&1)!==0&&(t.flags&128)===0)fb(),Si(),t.flags|=98560,n=!1;else if(n=zd(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(B(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(B(317));n[oa]=t}else Si(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nt(t),n=!1}else Ur!==null&&(Fg(Ur),Ur=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ve.current&1)!==0?rt===0&&(rt=3):bh())),t.updateQueue!==null&&(t.flags|=4),Nt(t),null);case 4:return Li(),Eg(e,t),e===null&&ul(t.stateNode.containerInfo),Nt(t),null;case 10:return oh(t.type._context),Nt(t),null;case 17:return $t(t.type)&&cc(),Nt(t),null;case 19:if(Re(Ve),n=t.memoizedState,n===null)return Nt(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Vs(n,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=xc(e),i!==null){for(t.flags|=128,Vs(n,!1),a=i.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)n=r,e=a,n.flags&=14680066,i=n.alternate,i===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,e=i.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ee(Ve,Ve.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ke()>ki&&(t.flags|=128,a=!0,Vs(n,!1),t.lanes=4194304)}else{if(!a)if(e=xc(i),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Vs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Oe)return Nt(t),null}else 2*Ke()-n.renderingStartTime>ki&&r!==1073741824&&(t.flags|=128,a=!0,Vs(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(r=n.last,r!==null?r.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Ke(),t.sibling=null,r=Ve.current,Ee(Ve,a?r&1|2:r&1),t):(Nt(t),null);case 22:case 23:return wh(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(ar&1073741824)!==0&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function iD(e,t){switch(eh(t),t.tag){case 1:return $t(t.type)&&cc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Li(),Re(qt),Re(Pt),uh(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return lh(t),null;case 13:if(Re(Ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));Si()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Ve),null;case 4:return Li(),null;case 10:return oh(t.type._context),null;case 22:case 23:return wh(),null;case 24:return null;default:return null}}var qd=!1,Et=!1,sD=typeof WeakSet=="function"?WeakSet:Set,K=null;function fi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){$e(e,t,a)}else r.current=null}function Pg(e,t,r){try{r()}catch(a){$e(e,t,a)}}var ow=!1;function lD(e,t){if(fg=sc,e=Zw(),Jg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var o=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{r.nodeType,n.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var m;c!==r||o!==0&&c.nodeType!==3||(s=i+o),c!==n||a!==0&&c.nodeType!==3||(l=i+a),c.nodeType===3&&(i+=c.nodeValue.length),(m=c.firstChild)!==null;)f=c,c=m;for(;;){if(c===e)break t;if(f===r&&++u===o&&(s=i),f===n&&++d===a&&(l=i),(m=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(pg={focusedElem:e,selectionRange:r},sc=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var g=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var x=g.memoizedProps,v=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:_r(t.type,x),v);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(w){$e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return g=ow,ow=!1,g}function Js(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&Pg(t,r,n)}o=o.next}while(o!==a)}}function Mc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function Dg(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Yb(e){var t=e.alternate;t!==null&&(e.alternate=null,Yb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oa],delete t[cl],delete t[hg],delete t[qP],delete t[$P])),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 Kb(e){return e.tag===5||e.tag===3||e.tag===4}function nw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kb(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 Rg(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=dc));else if(a!==4&&(e=e.child,e!==null))for(Rg(e,t,r),e=e.sibling;e!==null;)Rg(e,t,r),e=e.sibling}function Ag(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Ag(e,t,r),e=e.sibling;e!==null;)Ag(e,t,r),e=e.sibling}var xt=null,Vr=!1;function to(e,t,r){for(r=r.child;r!==null;)Qb(e,t,r),r=r.sibling}function Qb(e,t,r){if(na&&typeof na.onCommitFiberUnmount=="function")try{na.onCommitFiberUnmount(kc,r)}catch{}switch(r.tag){case 5:Et||fi(r,t);case 6:var a=xt,o=Vr;xt=null,to(e,t,r),xt=a,Vr=o,xt!==null&&(Vr?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Vr?(e=xt,r=r.stateNode,e.nodeType===8?Om(e.parentNode,r):e.nodeType===1&&Om(e,r),il(e)):Om(xt,r.stateNode));break;case 4:a=xt,o=Vr,xt=r.stateNode.containerInfo,Vr=!0,to(e,t,r),xt=a,Vr=o;break;case 0:case 11:case 14:case 15:if(!Et&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var n=o,i=n.destroy;n=n.tag,i!==void 0&&((n&2)!==0||(n&4)!==0)&&Pg(r,t,i),o=o.next}while(o!==a)}to(e,t,r);break;case 1:if(!Et&&(fi(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(s){$e(r,t,s)}to(e,t,r);break;case 21:to(e,t,r);break;case 22:r.mode&1?(Et=(a=Et)||r.memoizedState!==null,to(e,t,r),Et=a):to(e,t,r);break;default:to(e,t,r)}}function iw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new sD),t.forEach(function(a){var o=vD.bind(null,e,a);r.has(a)||(r.add(a),a.then(o,o))})}}function Br(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a];try{var n=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:xt=s.stateNode,Vr=!1;break e;case 3:xt=s.stateNode.containerInfo,Vr=!0;break e;case 4:xt=s.stateNode.containerInfo,Vr=!0;break e}s=s.return}if(xt===null)throw Error(B(160));Qb(n,i,o),xt=null,Vr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){$e(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Jb(t,e),t=t.sibling}function Jb(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Br(t,e),ra(e),a&4){try{Js(3,e,e.return),Mc(3,e)}catch(x){$e(e,e.return,x)}try{Js(5,e,e.return)}catch(x){$e(e,e.return,x)}}break;case 1:Br(t,e),ra(e),a&512&&r!==null&&fi(r,r.return);break;case 5:if(Br(t,e),ra(e),a&512&&r!==null&&fi(r,r.return),e.flags&32){var o=e.stateNode;try{rl(o,"")}catch(x){$e(e,e.return,x)}}if(a&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,i=r!==null?r.memoizedProps:n,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&n.type==="radio"&&n.name!=null&&ww(o,n),rg(s,i);var u=rg(s,n);for(i=0;i<l.length;i+=2){var d=l[i],c=l[i+1];d==="style"?Iw(o,c):d==="dangerouslySetInnerHTML"?Cw(o,c):d==="children"?rl(o,c):Vg(o,d,c,u)}switch(s){case"input":Qm(o,n);break;case"textarea":bw(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var m=n.value;m!=null?mi(o,!!n.multiple,m,!1):f!==!!n.multiple&&(n.defaultValue!=null?mi(o,!!n.multiple,n.defaultValue,!0):mi(o,!!n.multiple,n.multiple?[]:"",!1))}o[cl]=n}catch(x){$e(e,e.return,x)}}break;case 6:if(Br(t,e),ra(e),a&4){if(e.stateNode===null)throw Error(B(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(x){$e(e,e.return,x)}}break;case 3:if(Br(t,e),ra(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{il(t.containerInfo)}catch(x){$e(e,e.return,x)}break;case 4:Br(t,e),ra(e);break;case 13:Br(t,e),ra(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(xh=Ke())),a&4&&iw(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Et=(u=Et)||d,Br(t,e),Et=u):Br(t,e),ra(e),a&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!
vendor: 6,272 bytes, line 8
8d&&(e.mode&1)!==0)for(K=e,d=e.child;d!==null;){for(c=K=d;K!==null;){switch(f=K,m=f.child,f.tag){case 0:case 11:case 14:case 15:Js(4,f,f.return);break;case 1:fi(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){a=f,r=f.return;try{t=a,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(x){$e(a,r,x)}}break;case 5:fi(f,f.return);break;case 22:if(f.memoizedState!==null){lw(c);continue}}m!==null?(m.return=f,K=m):lw(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(s=c.stateNode,l=c.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Lw("display",i))}catch(x){$e(e,e.return,x)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(x){$e(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Br(t,e),ra(e),a&4&&iw(e);break;case 21:break;default:Br(t,e),ra(e)}}function ra(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Kb(r)){var a=r;break e}r=r.return}throw Error(B(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(rl(o,""),a.flags&=-33);var n=nw(e);Ag(e,n,o);break;case 3:case 4:var i=a.stateNode.containerInfo,s=nw(e);Rg(e,s,i);break;default:throw Error(B(161))}}catch(l){$e(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uD(e,t,r){K=e,Zb(e,t,r)}function Zb(e,t,r){for(var a=(e.mode&1)!==0;K!==null;){var o=K,n=o.child;if(o.tag===22&&a){var i=o.memoizedState!==null||qd;if(!i){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Et;s=qd;var u=Et;if(qd=i,(Et=l)&&!u)for(K=o;K!==null;)i=K,l=i.child,i.tag===22&&i.memoizedState!==null?uw(o):l!==null?(l.return=i,K=l):uw(o);for(;n!==null;)K=n,Zb(n,t,r),n=n.sibling;K=o,qd=s,Et=u}sw(e,t,r)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,K=n):sw(e,t,r)}}function sw(e){for(;K!==null;){var t=K;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Et||Mc(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!Et)if(r===null)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:_r(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&$y(t,n,a);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}$y(t,i,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.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 c=d.dehydrated;c!==null&&il(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(B(163))}Et||t.flags&512&&Dg(t)}catch(f){$e(t,t.return,f)}}if(t===e){K=null;break}if(r=t.sibling,r!==null){r.return=t.return,K=r;break}K=t.return}}function lw(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var r=t.sibling;if(r!==null){r.return=t.return,K=r;break}K=t.return}}function uw(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Mc(4,t)}catch(l){$e(t,r,l)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var o=t.return;try{a.componentDidMount()}catch(l){$e(t,o,l)}}var n=t.return;try{Dg(t)}catch(l){$e(t,n,l)}break;case 5:var i=t.return;try{Dg(t)}catch(l){$e(t,i,l)}}}catch(l){$e(t,t.return,l)}if(t===e){K=null;break}var s=t.sibling;if(s!==null){s.return=t.return,K=s;break}K=t.return}}var dD=Math.ceil,bc=Ma.ReactCurrentDispatcher,hh=Ma.ReactCurrentOwner,Sr=Ma.ReactCurrentBatchConfig,be=0,ct=null,Ze=null,yt=0,ar=0,pi=wo(0),rt=0,vl=null,un=0,Oc=0,vh=0,Zs=null,Ht=null,xh=0,ki=1/0,Ia=null,Sc=!1,Tg=null,mo=null,$d=!1,so=null,Cc=0,el=0,Mg=null,Zd=-1,ec=0;function Ft(){return(be&6)!==0?Ke():Zd!==-1?Zd:Zd=Ke()}function go(e){return(e.mode&1)===0?1:(be&2)!==0&&yt!==0?yt&-yt:GP.transition!==null?(ec===0&&(ec=Bw()),ec):(e=Le,e!==0||(e=window.event,e=e===void 0?16:qw(e.type)),e)}function Hr(e,t,r,a){if(50<el)throw el=0,Mg=null,Error(B(185));xl(e,r,a),((be&2)===0||e!==ct)&&(e===ct&&((be&2)===0&&(Oc|=r),rt===4&&no(e,yt)),Wt(e,a),r===1&&be===0&&(t.mode&1)===0&&(ki=Ke()+500,Rc&&bo()))}function Wt(e,t){var r=e.callbackNode;YE(e,t);var a=ic(e,e===ct?yt:0);if(a===0)r!==null&&vy(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&vy(r),t===1)e.tag===0?WP(dw.bind(null,e)):ub(dw.bind(null,e)),HP(function(){(be&6)===0&&bo()}),r=null;else{switch(_w(a)){case 1:r=qg;break;case 4:r=Ow;break;case 16:r=nc;break;case 536870912:r=Fw;break;default:r=nc}r=s1(r,e1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function e1(e,t){if(Zd=-1,ec=0,(be&6)!==0)throw Error(B(327));var r=e.callbackNode;if(yi()&&e.callbackNode!==r)return null;var a=ic(e,e===ct?yt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=Lc(e,a);else{t=a;var o=be;be|=2;var n=r1();(ct!==e||yt!==t)&&(Ia=null,ki=Ke()+500,an(e,t));do try{pD();break}catch(s){t1(e,s)}while(!0);ah(),bc.current=n,be=o,Ze!==null?t=0:(ct=null,yt=0,t=rt)}if(t!==0){if(t===2&&(o=sg(e),o!==0&&(a=o,t=Og(e,o))),t===1)throw r=vl,an(e,0),no(e,a),Wt(e,Ke()),r;if(t===6)no(e,a);else{if(o=e.current.alternate,(a&30)===0&&!cD(o)&&(t=Lc(e,a),t===2&&(n=sg(e),n!==0&&(a=n,t=Og(e,n))),t===1))throw r=vl,an(e,0),no(e,a),Wt(e,Ke()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(B(345));case 2:Zo(e,Ht,Ia);break;case 3:if(no(e,a),(a&130023424)===a&&(t=xh+500-Ke(),10<t)){if(ic(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){Ft(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gg(Zo.bind(null,e,Ht,Ia),t);break}Zo(e,Ht,Ia);break;case 4:if(no(e,a),(a&4194240)===a)break;for(t=e.eventTimes,o=-1;0<a;){var i=31-zr(a);n=1<<i,i=t[i],i>o&&(o=i),a&=~n}
vendor: 4,737 bytes, line 8
8if(a=o,a=Ke()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*dD(a/1960))-a,10<a){e.timeoutHandle=gg(Zo.bind(null,e,Ht,Ia),a);break}Zo(e,Ht,Ia);break;case 5:Zo(e,Ht,Ia);break;default:throw Error(B(329))}}}return Wt(e,Ke()),e.callbackNode===r?e1.bind(null,e):null}function Og(e,t){var r=Zs;return e.current.memoizedState.isDehydrated&&(an(e,t).flags|=256),e=Lc(e,t),e!==2&&(t=Ht,Ht=r,t!==null&&Fg(t)),e}function Fg(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function cD(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var o=r[a],n=o.getSnapshot;o=o.value;try{if(!jr(n(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 no(e,t){for(t&=~vh,t&=~Oc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-zr(t),a=1<<r;e[r]=-1,t&=~a}}function dw(e){if((be&6)!==0)throw Error(B(327));yi();var t=ic(e,0);if((t&1)===0)return Wt(e,Ke()),null;var r=Lc(e,t);if(e.tag!==0&&r===2){var a=sg(e);a!==0&&(t=a,r=Og(e,a))}if(r===1)throw r=vl,an(e,0),no(e,t),Wt(e,Ke()),r;if(r===6)throw Error(B(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zo(e,Ht,Ia),Wt(e,Ke()),null}function yh(e,t){var r=be;be|=1;try{return e(t)}finally{be=r,be===0&&(ki=Ke()+500,Rc&&bo())}}function dn(e){so!==null&&so.tag===0&&(be&6)===0&&yi();var t=be;be|=1;var r=Sr.transition,a=Le;try{if(Sr.transition=null,Le=1,e)return e()}finally{Le=a,Sr.transition=r,be=t,(be&6)===0&&bo()}}function wh(){ar=pi.current,Re(pi)}function an(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,zP(r)),Ze!==null)for(r=Ze.return;r!==null;){var a=r;switch(eh(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&cc();break;case 3:Li(),Re(qt),Re(Pt),uh();break;case 5:lh(a);break;case 4:Li();break;case 13:Re(Ve);break;case 19:Re(Ve);break;case 10:oh(a.type._context);break;case 22:case 23:wh()}r=r.return}if(ct=e,Ze=e=ho(e.current,null),yt=ar=t,rt=0,vl=null,vh=Oc=un=0,Ht=Zs=null,tn!==null){for(t=0;t<tn.length;t++)if(r=tn[t],a=r.interleaved,a!==null){r.interleaved=null;var o=a.next,n=r.pending;if(n!==null){var i=n.next;n.next=o,a.next=i}r.pending=a}tn=null}return e}function t1(e,t){do{var r=Ze;try{if(ah(),Kd.current=wc,yc){for(var a=Ue.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}yc=!1}if(ln=0,dt=tt=Ue=null,Qs=!1,ml=0,hh.current=null,r===null||r.return===null){rt=1,vl=t,Ze=null;break}e:{var n=e,i=r.return,s=r,l=t;if(t=yt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=s,c=d.tag;if((d.mode&1)===0&&(c===0||c===11||c===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 m=Qy(i);if(m!==null){m.flags&=-257,Jy(m,i,s,n,t),m.mode&1&&Ky(n,u,t),t=m,l=u;var g=t.updateQueue;if(g===null){var x=new Set;x.add(l),t.updateQueue=x}else g.add(l);break e}else{if((t&1)===0){Ky(n,u,t),bh();break e}l=Error(B(426))}}else if(Oe&&s.mode&1){var v=Qy(i);if(v!==null){(v.flags&65536)===0&&(v.flags|=256),Jy(v,i,s,n,t),th(Ii(l,s));break e}}n=l=Ii(l,s),rt!==4&&(rt=2),Zs===null?Zs=[n]:Zs.push(n),n=i;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var p=_b(n,l,t);qy(n,p);break e;case 1:s=l;var h=n.type,y=n.stateNode;if((n.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(mo===null||!mo.has(y)))){n.flags|=65536,t&=-t,n.lanes|=t;var w=Vb(n,s,t);qy(n,w);break e}}n=n.return}while(n!==null)}o1(r)}catch(S){t=S,Ze===r&&r!==null&&(Ze=r=r.return);continue}break}while(!0)}function r1(){var e=bc.current;return bc.current=wc,e===null?wc:e}function bh(){(rt===0||rt===3||rt===2)&&(rt=4),ct===null||(un&268435455)===0&&(Oc&268435455)===0||no(ct,yt)}function Lc(e,t){var r=be;be|=2;var a=r1();(ct!==e||yt!==t)&&(Ia=null,an(e,t));do try{fD();break}catch(o){t1(e,o)}while(!0);if(ah(),be=r,bc.current=a,Ze!==null)throw Error(B(261));return ct=null,yt=0,rt}function fD(){for(;Ze!==null;)a1(Ze)}function pD(){for(;Ze!==null&&!UE();)a1(Ze)}function a1(e){var t=i1(e.alternate,e,ar);e.memoizedProps=e.pendingProps,t===null?o1(e):Ze=t,hh.current=null}function o1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=nD(r,t,ar),r!==null){Ze=r;return}}else{if(r=iD(r,t),r!==null){r.flags&=32767,Ze=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,Ze=null;return}}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);rt===0&&(rt=5)}function Zo(e,t,r){var a=Le,o=Sr.transition;
vendor: 7,589 bytes, line 8
8try{Sr.transition=null,Le=1,mD(e,t,r,a)}finally{Sr.transition=o,Le=a}return null}function mD(e,t,r,a){do yi();while(so!==null);if((be&6)!==0)throw Error(B(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(B(177));e.callbackNode=null,e.callbackPriority=0;var n=r.lanes|r.childLanes;if(KE(e,n),e===ct&&(Ze=ct=null,yt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||$d||($d=!0,s1(nc,function(){return yi(),null})),n=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||n){n=Sr.transition,Sr.transition=null;var i=Le;Le=1;var s=be;be|=4,hh.current=null,lD(e,r),Jb(r,e),FP(pg),sc=!!fg,pg=fg=null,e.current=r,uD(r,e,o),zE(),be=s,Le=i,Sr.transition=n}else e.current=r;if($d&&($d=!1,so=e,Cc=o),n=e.pendingLanes,n===0&&(mo=null),qE(r.stateNode,a),Wt(e,Ke()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],a(o.value,{componentStack:o.stack,digest:o.digest});if(Sc)throw Sc=!1,e=Tg,Tg=null,e;return(Cc&1)!==0&&e.tag!==0&&yi(),n=e.pendingLanes,(n&1)!==0?e===Mg?el++:(el=0,Mg=e):el=0,bo(),null}function yi(){if(so!==null){var e=_w(Cc),t=Sr.transition,r=Le;try{if(Sr.transition=null,Le=16>e?16:e,so===null)var a=!1;else{if(e=so,so=null,Cc=0,(be&6)!==0)throw Error(B(331));var o=be;for(be|=4,K=e.current;K!==null;){var n=K,i=n.child;if((K.flags&16)!==0){var s=n.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(K=u;K!==null;){var d=K;switch(d.tag){case 0:case 11:case 15:Js(8,d,n)}var c=d.child;if(c!==null)c.return=d,K=c;else for(;K!==null;){d=K;var f=d.sibling,m=d.return;if(Yb(d),d===u){K=null;break}if(f!==null){f.return=m,K=f;break}K=m}}}var g=n.alternate;if(g!==null){var x=g.child;if(x!==null){g.child=null;do{var v=x.sibling;x.sibling=null,x=v}while(x!==null)}}K=n}}if((n.subtreeFlags&2064)!==0&&i!==null)i.return=n,K=i;else e:for(;K!==null;){if(n=K,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Js(9,n,n.return)}var p=n.sibling;if(p!==null){p.return=n.return,K=p;break e}K=n.return}}var h=e.current;for(K=h;K!==null;){i=K;var y=i.child;if((i.subtreeFlags&2064)!==0&&y!==null)y.return=i,K=y;else e:for(i=h;K!==null;){if(s=K,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:Mc(9,s)}}catch(S){$e(s,s.return,S)}if(s===i){K=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,K=w;break e}K=s.return}}if(be=o,bo(),na&&typeof na.onPostCommitFiberRoot=="function")try{na.onPostCommitFiberRoot(kc,e)}catch{}a=!0}return a}finally{Le=r,Sr.transition=t}}return!1}function cw(e,t,r){t=Ii(r,t),t=_b(e,t,1),e=po(e,t,1),t=Ft(),e!==null&&(xl(e,1,t),Wt(e,t))}function $e(e,t,r){if(e.tag===3)cw(e,e,r);else for(;t!==null;){if(t.tag===3){cw(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(mo===null||!mo.has(a))){e=Ii(r,e),e=Vb(t,e,1),t=po(t,e,1),e=Ft(),t!==null&&(xl(t,1,e),Wt(t,e));break}}t=t.return}}function gD(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=Ft(),e.pingedLanes|=e.suspendedLanes&r,ct===e&&(yt&r)===r&&(rt===4||rt===3&&(yt&130023424)===yt&&500>Ke()-xh?an(e,0):vh|=r),Wt(e,t)}function n1(e,t){t===0&&((e.mode&1)===0?t=1:(t=Rd,Rd<<=1,(Rd&130023424)===0&&(Rd=4194304)));var r=Ft();e=Aa(e,t),e!==null&&(xl(e,t,r),Wt(e,r))}function hD(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),n1(e,r)}function vD(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(B(314))}a!==null&&a.delete(t),n1(e,r)}var i1;i1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||qt.current)jt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return jt=!1,oD(e,t,r);jt=(e.flags&131072)!==0}else jt=!1,Oe&&(t.flags&1048576)!==0&&db(t,mc,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Jd(e,t),e=t.pendingProps;var o=bi(t,Pt.current);xi(t,r),o=ch(null,t,a,e,o,r);var n=fh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(a)?(n=!0,fc(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ih(t),o.updater=Tc,t.stateNode=o,o._reactInternals=t,Sg(t,a,e,r),t=Ig(null,t,a,!0,n,r)):(t.tag=0,Oe&&n&&Zg(t),Ot(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Jd(e,t),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=yD(a),e=_r(a,e),o){case 0:t=Lg(null,t,a,e,r);break e;case 1:t=tw(null,t,a,e,r);break e;case 11:t=Zy(null,t,a,e,r);break e;case 14:t=ew(null,t,a,_r(a.type,e),r);break e}throw Error(B(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:_r(a,o),Lg(e,t,a,o,r);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:_r(a,o),tw(e,t,a,o,r);case 3:e:{if(jb(t),e===null)throw Error(B(387));a=t.pendingProps,n=t.memoizedState,o=n.element,hb(e,t),vc(t,a,null,r);var i=t.memoizedState;if(a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=Ii(Error(B(423)),t),t=rw(e,t,a,r,o);break e}else if(a!==o){o=Ii(Error(B(424)),t),t=rw(e,t,a,r,o);break e}else for(or=fo(t.stateNode.containerInfo.firstChild),nr=t,Oe=!0,Ur=null,r=mb(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Si(),a===o){t=Ta(e,t,r);break e}Ot(e,t,a,r)}t=t.child}return t;case 5:return vb(t),e===null&&yg(t),a=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,i=o.children,mg(a,o)?i=null:n!==null&&mg(a,n)&&(t.flags|=32),Hb(e,t),Ot(e,t,i,r),t.child;case 6:return e===null&&yg(t),null;case 13:return qb(e,t,r);case 4:return sh(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ci(t,null,a,r):Ot(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:_r(a,o),Zy(e,t,a,o,r);case 7:return Ot(e,t,t.pendingProps,r),t.child;case 8:return Ot(e,t,t.pendingProps.children,r),t.child;case 12:return Ot(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,n=t.memoizedProps,i=o.value,Ee(gc,a._currentValue),a._currentValue=i,n!==null)if(jr(n.value,i)){if(n.children===o.children&&!qt.current){t=Ta(e,t,r);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var s=n.dependencies;if(s!==null){i=n.child;for(var l=s.firstContext;l!==null;){if(l.context===a){if(n.tag===1){l=Pa(-1,r&-r),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}n.lanes|=r,l=n.alternate,l!==null&&(l.lanes|=r),wg(n.return,r,t),s.lanes|=r;break}l=l.next}}else if(n.tag===10)i=n.type===t.type?null:n.child;else if(n.tag===18){if(i=n.return,i===null)throw Error(B(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),wg(i,r,t),i=n.sibling}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}Ot(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,xi(t,r),o=Cr(o),a=a(o),t.flags|=1,Ot(e,t,a,r),t.child;case 14:return a=t.type,o=_r(a,t.pendingProps),o=_r(a.type,o),ew(e,t,a,o,r);case 15:return Ub(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:_r(a,o),Jd(e,t),t.tag=1,$t(a)?(e=!0,fc(t)):e=!1,xi(t,r),Bb(t,a,o),Sg(t,a,o,r),Ig(null,t,a,!0,e,r);case 19:return $b(e,t,r);case 22:return zb(e,t,r)}throw Error(B(156,t.tag))};function s1(e,t){return Mw(e,t)}function xD(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,289 bytes, line 8
8ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(e,t,r,a){return new xD(e,t,r,a)}function Sh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yD(e){if(typeof e=="function")return Sh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zg)return 11;if(e===Hg)return 14}return 2}function ho(e,t){var r=e.alternate;return r===null?(r=br(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function tc(e,t,r,a,o,n){var i=2;if(a=e,typeof e=="function")Sh(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ai:return on(r.children,o,n,t);case Ug:i=8,o|=8;break;case Wm:return e=br(12,r,t,o|2),e.elementType=Wm,e.lanes=n,e;case Gm:return e=br(13,r,t,o),e.elementType=Gm,e.lanes=n,e;case Xm:return e=br(19,r,t,o),e.elementType=Xm,e.lanes=n,e;case vw:return Fc(r,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gw:i=10;break e;case hw:i=9;break e;case zg:i=11;break e;case Hg:i=14;break e;case ro:i=16,a=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=br(i,r,t,o),t.elementType=e,t.type=a,t.lanes=n,t}function on(e,t,r,a){return e=br(7,e,a,t),e.lanes=r,e}function Fc(e,t,r,a){return e=br(22,e,a,t),e.elementType=vw,e.lanes=r,e.stateNode={isHidden:!1},e}function jm(e,t,r){return e=br(6,e,null,t),e.lanes=r,e}function qm(e,t,r){return t=br(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wD(e,t,r,a,o){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=Nm(0),this.expirationTimes=Nm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nm(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ch(e,t,r,a,o,n,i,s,l){return e=new wD(e,t,r,s,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=br(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ih(n),e}function bD(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ri,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function l1(e){if(!e)return xo;e=e._reactInternals;e:{if(fn(e)!==e||e.tag!==1)throw Error(B(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(B(171))}if(e.tag===1){var r=e.type;if($t(r))return lb(e,r,t)}return t}function u1(e,t,r,a,o,n,i,s,l){return e=Ch(r,a,!0,e,o,n,i,s,l),e.context=l1(null),r=e.current,a=Ft(),o=go(r),n=Pa(a,o),n.callback=t??null,po(r,n,o),e.current.lanes=o,xl(e,o,a),Wt(e,a),e}function Bc(e,t,r,a){var o=t.current,n=Ft(),i=go(o);return r=l1(r),t.context===null?t.context=r:t.pendingContext=r,t=Pa(n,i),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=po(o,t,i),e!==null&&(Hr(e,o,i,n),Yd(e,o,i)),i}function Ic(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 fw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Lh(e,t){fw(e,t),(e=e.alternate)&&fw(e,t)}function SD(){return null}var d1=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ih(e){this._internalRoot=e}_c.prototype.render=Ih.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(B(409));Bc(e,t,null,null)};_c.prototype.unmount=Ih.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dn(function(){Bc(null,e,null,null)}),t[Ra]=null}};function _c(e){this._internalRoot=e}_c.prototype.unstable_scheduleHydration=function(e){if(e){var t=zw();e={blockedOn:null,target:e,priority:t};for(var r=0;r<oo.length&&t!==0&&t<oo[r].priority;r++);oo.splice(r,0,e),r===0&&jw(e)}};function kh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pw(){}function CD(e,t,r,a,o){if(o){if(typeof a=="function"){var n=a;a=function(){var u=Ic(i);n.call(u)}}var i=u1(t,a,e,0,null,!1,!1,"",pw);return e._reactRootContainer=i,e[Ra]=i.current,ul(e.nodeType===8?e.parentNode:e),dn(),i}for(;
vendor: 4,914 bytes, line 8
8o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var s=a;a=function(){var u=Ic(l);s.call(u)}}var l=Ch(e,0,!1,null,null,!1,!1,"",pw);return e._reactRootContainer=l,e[Ra]=l.current,ul(e.nodeType===8?e.parentNode:e),dn(function(){Bc(t,l,r,a)}),l}function Uc(e,t,r,a,o){var n=r._reactRootContainer;if(n){var i=n;if(typeof o=="function"){var s=o;o=function(){var l=Ic(i);s.call(l)}}Bc(t,i,e,o)}else i=CD(r,t,e,o,a);return Ic(i)}Vw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=qs(t.pendingLanes);r!==0&&($g(t,r|1),Wt(t,Ke()),(be&6)===0&&(ki=Ke()+500,bo()))}break;case 13:dn(function(){var a=Aa(e,1);if(a!==null){var o=Ft();Hr(a,e,1,o)}}),Lh(e,1)}};Wg=function(e){if(e.tag===13){var t=Aa(e,134217728);if(t!==null){var r=Ft();Hr(t,e,134217728,r)}Lh(e,134217728)}};Uw=function(e){if(e.tag===13){var t=go(e),r=Aa(e,t);if(r!==null){var a=Ft();Hr(r,e,t,a)}Lh(e,t)}};zw=function(){return Le};Hw=function(e,t){var r=Le;try{return Le=e,t()}finally{Le=r}};og=function(e,t,r){switch(t){case"input":if(Qm(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=Dc(a);if(!o)throw Error(B(90));yw(a),Qm(a,o)}}}break;case"textarea":bw(e,r);break;case"select":t=r.value,t!=null&&mi(e,!!r.multiple,t,!1)}};Ew=yh;Pw=dn;var LD={usingClientEntryPoint:!1,Events:[wl,si,Dc,kw,Nw,yh]},Us={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ID={bundleType:Us.bundleType,version:Us.version,rendererPackageName:Us.rendererPackageName,rendererConfig:Us.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Aw(e),e===null?null:e.stateNode},findFiberByHostInstance:Us.findFiberByHostInstance||SD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(zs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!zs.isDisabled&&zs.supportsFiber))try{kc=zs.inject(ID),na=zs}catch{}var zs;lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LD;lr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kh(t))throw Error(B(200));return bD(e,t,null,r)};lr.createRoot=function(e,t){if(!kh(e))throw Error(B(299));var r=!1,a="",o=d1;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ch(e,1,!1,null,null,r,!1,a,o),e[Ra]=t.current,ul(e.nodeType===8?e.parentNode:e),new Ih(t)};lr.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(B(188)):(e=Object.keys(e).join(","),Error(B(268,e)));return e=Aw(t),e=e===null?null:e.stateNode,e};lr.flushSync=function(e){return dn(e)};lr.hydrate=function(e,t,r){if(!Vc(t))throw Error(B(200));return Uc(null,e,t,!0,r)};lr.hydrateRoot=function(e,t,r){if(!kh(e))throw Error(B(405));var a=r!=null&&r.hydratedSources||null,o=!1,n="",i=d1;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(n=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=u1(t,null,e,1,r??null,o,!1,n,i),e[Ra]=t.current,ul(e),a)for(e=0;e<a.length;e++)r=a[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new _c(t)};lr.render=function(e,t,r){if(!Vc(t))throw Error(B(200));return Uc(null,e,t,!1,r)};lr.unmountComponentAtNode=function(e){if(!Vc(e))throw Error(B(40));return e._reactRootContainer?(dn(function(){Uc(null,null,e,!1,function(){e._reactRootContainer=null,e[Ra]=null})}),!0):!1};lr.unstable_batchedUpdates=yh;lr.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Vc(r))throw Error(B(200));if(e==null||e._reactInternals===void 0)throw Error(B(38));return Uc(e,t,r,!1,a)};lr.version="18.3.1-next-f1338f8080-20240426"});var zc=Or((CU,p1)=>{"use strict";function f1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f1)}catch(e){console.error(e)}}f1(),p1.exports=c1()});var g1=Or(Nh=>{"use strict";var m1=zc();Nh.createRoot=m1.createRoot,Nh.hydrateRoot=m1.hydrateRoot;var LU});var $1=Or(Kc=>{"use strict";var PA=Y(),DA=Symbol.for("react.element"),RA=Symbol.for("react.fragment"),AA=Object.prototype.hasOwnProperty,TA=PA.__SECRET_INT
8ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MA={key:!0,ref:!0,__self:!0,__source:!0};function q1(e,t,r){var a,o={},n=null,i=null;r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(i=t.ref);for(a in t)AA.call(t,a)&&!MA.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)o[a]===void 0&&(o[a]=t[a]);return{$$typeof:DA,type:e,key:n,ref:i,props:o,_owner:TA.current}}Kc.Fragment=RA;Kc.jsx=q1;Kc.jsxs=q1});var J=Or((D9,W1)=>{"use strict";W1.exports=$1()});var mS=Or(pS=>{"use strict";var Gl=Y();function s5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var l5=typeof Object.is=="function"?Object.is:s5,u5=Gl.useSyncExternalStore,d5=Gl.useRef,c5=Gl.useEffect,f5=Gl.useMemo,p5=Gl.useDebugValue;pS.useSyncExternalStoreWithSelector=function(e,t,r,a,o){var n=d5(null);if(n.current===null){var i={hasValue:!1,value:null};n.current=i}else i=n.current;n=f5(function(){function l(m){if(!u){if(u=!0,d=m,m=a(m),o!==void 0&&i.hasValue){var g=i.value;if(o(g,m))return c=g}return c=m}if(g=c,l5(d,m))return g;var x=a(m);return o!==void 0&&o(g,x)?(d=m,g):(d=m,c=x)}var u=!1,d,c,f=r===void 0?null:r;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,r,a,o]);var s=u5(e,n[0],n[1]);return c5(function(){i.hasValue=!0,i.value=s},[s]),p5(s),s}});var hS=Or((KH,gS)=>{"use strict";gS.exports=mS()});var JN=E(Y()),ZN=E(g1());var XN=E(Y());var Fe=E(Y()),mR=E(zc());var X=E(Y());function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sl.apply(this,arguments)}var qr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qr||(qr={}));var h1="popstate";function w1(e){e===void 0&&(e={});function t(a,o){let{pathname:n,search:i,hash:s}=a.location;return Ph("",{pathname:n,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(a,o){return typeof o=="string"?o:pn(o)}return ND(t,r,null,e)}function He(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function b1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kD(){return Math.random().toString(36).substr(2,8)}function v1(e,t){return{usr:e.state,key:e.key,idx:t}}function Ph(e,t,r,a){return r===void 0&&(r=null),Sl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Oa(t):t,{state:r,key:t&&t.key||a||kD()})}function pn(e){let{pathname:t="/",search:r="",hash:a=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Oa(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function ND(e,t,r,a){a===void 0&&(a={});let{window:o=document.defaultView,v5Compat:n=!1}=a,i=o.history,s=qr.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(Sl({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function c(){s=qr.Pop;let v=d(),p=v==null?null:v-u;u=v,l&&l({action:s,location:x.location,delta:p})}function f(v,p){s=qr.Push;let h=Ph(x.location,v,p);r&&r(h,v),u=d()+1;let y=v1(h,u),w=x.createHref(h);try{i.pushState(y,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(w)}n&&l&&l({action:s,location:x.location,delta:1})}function m(v,p){s=qr.Replace;let h=Ph(x.location,v,p);r&&r(h,v),u=d();let y=v1(h,u),w=x.createHref(h);i.replaceState(y,"",w),n&&l&&l({action:s,location:x.location,delta:0})}function g(v){let p=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof v=="string"?v:pn(v);return h=h.replace(/ $/,"%20"),He(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let x={get action(){return s},get location(){return e(o,i)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(h1,c),l=v,()=>{o.removeEventListener(h1,c),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let p=g(v);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:m,go(v){return i.go(v)}};return x}var x1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(x1||(x1={}));function Hc(e,t,r){return r===void 0&&(r="/"),ED(e,t,r,!1)}
vendor: 2,245 bytes, line 8
8function ED(e,t,r,a){let o=typeof t=="string"?Oa(t):t,n=Cl(o.pathname||"/",r);if(n==null)return null;let i=S1(e);PD(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=L1(n);s=_D(i[l],u,a)}return s}function S1(e,t,r,a){t===void 0&&(t=[]),r===void 0&&(r=[]),a===void 0&&(a="");let o=(n,i,s)=>{let l={relativePath:s===void 0?n.path||"":s,caseSensitive:n.caseSensitive===!0,childrenIndex:i,route:n};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(a.length));let u=sa([a,l.relativePath]),d=r.concat(l);n.children&&n.children.length>0&&(He(n.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),S1(n.children,t,d,u)),!(n.path==null&&!n.index)&&t.push({path:u,score:FD(u,n.index),routesMeta:d})};return e.forEach((n,i)=>{var s;if(n.path===""||!((s=n.path)!=null&&s.includes("?")))o(n,i);else for(let l of C1(n.path))o(n,i,l)}),t}function C1(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,o=r.endsWith("?"),n=r.replace(/\?$/,"");if(a.length===0)return o?[n,""]:[n];let i=C1(a.join("/")),s=[];return s.push(...i.map(l=>l===""?n:[n,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function PD(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:BD(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var DD=/^:[\w-]+$/,RD=3,AD=2,TD=1,MD=10,OD=-2,y1=e=>e==="*";function FD(e,t){let r=e.split("/"),a=r.length;return r.some(y1)&&(a+=OD),t&&(a+=AD),r.filter(o=>!y1(o)).reduce((o,n)=>o+(DD.test(n)?RD:n===""?TD:MD),a)}function BD(e,t){return e.length===t.length&&e.slice(0,-1).every((a,o)=>a===t[o])?e[e.length-1]-t[t.length-1]:0}function _D(e,t,r){r===void 0&&(r=!1);let{routesMeta:a}=e,o={},n="/",i=[];for(let s=0;s<a.length;++s){let l=a[s],u=s===a.length-1,d=n==="/"?t:t.slice(n.length)||"/",c=Pi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),f=l.route;if(!c&&u&&r&&!a[a.length-1].route.index&&(c=Pi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!c)return null;
8Object.assign(o,c.params),i.push({params:o,pathname:sa([n,c.pathname]),pathnameBase:HD(sa([n,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(n=sa([n,c.pathnameBase]))}return i}function Pi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=VD(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let n=o[0],i=n.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:a.reduce((u,d,c)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let x=s[c]||"";i=n.slice(0,n.length-x.length).replace(/(.)\/+$/,"$1")}let g=s[c];return m&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:n,pathnameBase:i,pattern:e}}function VD(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),b1(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 a=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(a.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),a]}function L1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return b1(!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 Cl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function Dh(e,t){t===void 0&&(t="/");let{pathname:r,search:a="",hash:o=""}=typeof e=="string"?Oa(e):e;return{pathname:r?r.startsWith("/")?r:UD(r,t):t,search:jD(a),hash:qD(o)}}function UD(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Eh(e,t,r,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(a)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function zD(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function jc(e,t){let r=zD(e);return t?r.map((a,o)=>o===r.length-1?a.pathname:a.pathnameBase):r.map(a=>a.pathnameBase)}function qc(e,t,r,a){a===void 0&&(a=!1);let o;typeof e=="string"?o=Oa(e):(o=Sl({},e),He(!o.pathname||!o.pathname.includes("?"),Eh("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),Eh("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),Eh("#","search","hash",o)));let n=e===""||o.pathname==="",i=n?"/":o.pathname,s;if(i==null)s=r;else{let c=t.length-1;if(!a&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),c-=1;o.pathname=f.join("/")}s=c>=0?t[c]:"/"}let l=Dh(o,s),u=i&&i!=="/"&&i.endsWith("/"),d=(n||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var sa=e=>e.join("/").replace(/\/\/+/g,"/"),HD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $c(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var I1=["post","put","patch","delete"],EU=new Set(I1),$D=["get",...I1],PU=new Set($D);var DU=Symbol("deferred");function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ll.apply(this,arguments)}var kl=X.createContext(null),Ah=X.createContext(null);var la=X.createContext(null),Nl=X.createContext(null),ua=X.createContext({outlet:null,matches:[],isDataRoute:!1}),E1=X.createContext(null);function Th(e,t){let{relative:r}=t===void 0?{}:t;mn()||He(!1);let{basename:a,navigator:o}=X.useContext(la),{hash:n,pathname:i,search:s}=Gc(e,{relative:r}),l=i;return a!=="/"&&(l=i==="/"?a:sa([a,i])),o.createHref({pathname:l,search:s,hash:n})}function mn(){return X.useContext(Nl)!=null}function gn(){return mn()||He(!1),X.useContext(Nl).location}function P1(e){X.useContext(la).static||X.useLayoutEffect(e)}function So(){let{isDataRoute:e}=X.useContext(ua);return e?sR():ZD()}function ZD(){mn()||He(!1);let e=X.useContext(kl),{basename:t,future:r,navigator:a}=X.useContext(la),{matches:o}=X.useContext(ua),{pathname:n}=gn(),i=JSON.stringify(jc(o,r.v7_relativeSplatPath)),s=X.useRef(!1);return P1(()=>{s.current=!0}),X.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){a.go(u);return}let c=qc(u,JSON.parse(i),n,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:sa([t,c.pathname])),(d.replace?a.replace:a.push)(c,d.state,d)},[t,a,i,n,e])}function Gc(e,t){let{relative:r}=t===void 0?{}:t,{future:a}=X.useContext(la),{matches:o}=X.useContext(ua),{pathname:n}=gn(),i=JSON.stringify(jc(o,a.v7_relativeSplatPath));return X.useMemo(()=>qc(e,JSON.parse(i),n,r==="path"),[e,i,n,r])}function D1(e,t){return R1(e,t)}function R1(e,t,r,a){mn()||He(!1);let{navigator:o}=X.useContext(la),{matches:n}=X.useContext(ua),i=n[n.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route,c=gn(),f;if(t){var m;let h=typeof t=="string"?Oa(t):t;u==="/"||(m=h.pathname)!=null&&m.startsWith(u)||He(!1),f=h}else f=c;let g=f.pathname||"/",x=g;if(u!=="/"){let h=u.replace(/^\//,"").split("/");x="/"+g.replace(/^\//,"").split("/").slice(h.length).join("/")}let v=Hc(e,{pathname:x}),p=aR(v&&v.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:sa([u,o.encodeLocation?o.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?u:sa([u,o.encodeLocation?o.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),n,r,a);return t&&p?X.createElement(Nl.Provider,{value:{location:Ll({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qr.Pop}},p):p}function eR(){let e=M1(),t=$c(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},n={padding:"2px 4px",backgroundColor:a};return X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application 
8Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},t),r?X.createElement("pre",{style:o},r):null,null)}var tR=X.createElement(eR,null),Rh=class extends X.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?X.createElement(ua.Provider,{value:this.props.routeContext},X.createElement(E1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function rR(e){let{routeContext:t,match:r,children:a}=e,o=X.useContext(kl);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),X.createElement(ua.Provider,{value:t},a)}function aR(e,t,r,a){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),a===void 0&&(a=null),e==null){var n;if(!r)return null;if(r.errors)e=r.matches;else if((n=a)!=null&&n.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let d=i.findIndex(c=>c.route.id&&s?.[c.route.id]!==void 0);d>=0||He(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(r&&a&&a.v7_partialHydration)for(let d=0;d<i.length;d++){let c=i[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:f,errors:m}=r,g=c.route.loader&&f[c.route.id]===void 0&&(!m||m[c.route.id]===void 0);if(c.route.lazy||g){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,c,f)=>{let m,g=!1,x=null,v=null;r&&(m=s&&c.route.id?s[c.route.id]:void 0,x=c.route.errorElement||tR,l&&(u<0&&f===0?(lR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):u===f&&(g=!0,v=c.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,f+1)),h=()=>{let y;return m?y=x:g?y=v:c.route.Component?y=X.createElement(c.route.Component,null):c.route.element?y=c.route.element:y=d,X.createElement(rR,{match:c,routeContext:{outlet:d,matches:p,isDataRoute:r!=null},children:y})};return r&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?X.createElement(Rh,{location:r.location,revalidation:r.revalidation,component:x,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var A1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A1||{}),Wc=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}(Wc||{});function oR(e){let t=X.useContext(kl);return t||He(!1),t}function nR(e){let t=X.useContext(Ah);return t||He(!1),t}function iR(e){let t=X.useContext(ua);return t||He(!1),t}function T1(e){let t=iR(e),r=t.matches[t.matches.length-1];return r.route.id||He(!1),r.route.id}function M1(){var e;let t=X.useContext(E1),r=nR(Wc.UseRouteError),a=T1(Wc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[a]}function sR(){let{router:e}=oR(A1.UseNavigateStable),t=T1(Wc.UseNavigateStable),r=X.useRef(!1);return P1(()=>{r.current=!0}),X.useCallback(function(o,n){n===void 0&&(n={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ll({fromRouteId:t},n)))},[e,t])}var k1={};function lR(e,t,r){!t&&!k1[e]&&(k1[e]=!0)}var Di=(e,t,r)=>(""+t+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."),void 0);function O1(e,t){e?.v7_startTransition===void 0&&Di("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&Di("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===void 0&&Di("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&Di("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===void 0&&Di("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&Di("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}var uR="startTransition",BU=X[uR];function Mh(e){let{to:t,replace:r,state:a,relative:o}=e;mn()||He(!1);let{future:n,static:i}=X.useContext(la),{matches:s}=X.useContext(ua),{pathname:l}=gn(),u=So(),d=qc(t,jc(s,n.v7_relativeSplatPath),l,o==="path"),c=JSON.stringify(d);return X.useEffect(()=>u(JSON.parse(c),{replace:r,state:a,relative:o}
8),[u,c,o,r,a]),null}function da(e){He(!1)}function Oh(e){let{basename:t="/",children:r=null,location:a,navigationType:o=qr.Pop,navigator:n,static:i=!1,future:s}=e;mn()&&He(!1);let l=t.replace(/^\/*/,"/"),u=X.useMemo(()=>({basename:l,navigator:n,static:i,future:Ll({v7_relativeSplatPath:!1},s)}),[l,s,n,i]);typeof a=="string"&&(a=Oa(a));let{pathname:d="/",search:c="",hash:f="",state:m=null,key:g="default"}=a,x=X.useMemo(()=>{let v=Cl(d,l);return v==null?null:{location:{pathname:v,search:c,hash:f,state:m,key:g},navigationType:o}},[l,d,c,f,m,g,o]);return x==null?null:X.createElement(la.Provider,{value:u},X.createElement(Nl.Provider,{children:r,value:x}))}function Fh(e){let{children:t,location:r}=e;return D1(Il(t),r)}var _U=new Promise(()=>{});function Il(e,t){t===void 0&&(t=[]);let r=[];return X.Children.forEach(e,(a,o)=>{if(!X.isValidElement(a))return;let n=[...t,o];if(a.type===X.Fragment){r.push.apply(r,Il(a.props.children,n));return}a.type!==da&&He(!1),!a.props.index||!a.props.children||He(!1);let i={id:a.props.id||n.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=Il(a.props.children,n)),r.push(i)}),r}function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Bh.apply(this,arguments)}function gR(e,t){if(e==null)return{};var r={},a=Object.keys(e),o,n;for(n=0;n<a.length;n++)o=a[n],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function hR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vR(e,t){return e.button===0&&(!t||t==="_self")&&!hR(e)}var xR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];var yR="6";try{window.__reactRouterVersion=yR}catch{}var wR="startTransition",F1=Fe[wR],bR="flushSync",d6=mR[bR],SR="useId",c6=Fe[SR];function V1(e){let{basename:t,children:r,future:a,window:o}=e,n=Fe.useRef();n.current==null&&(n.current=w1({window:o,v5Compat:!0}));let i=n.current,[s,l]=Fe.useState({action:i.action,location:i.location}),{v7_startTransition:u}=a||{},d=Fe.useCallback(c=>{u&&F1?F1(()=>l(c)):l(c)},[l,u]);return Fe.useLayoutEffect(()=>i.listen(d),[i,d]),Fe.useEffect(()=>O1(a),[a]),Fe.createElement(Oh,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:a})}var CR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_h=Fe.forwardRef(function(t,r){let{onClick:a,relative:o,reloadDocument:n,replace:i,state:s,target:l,to:u,preventScrollReset:d,viewTransition:c}=t,f=gR(t,xR),{basename:m}=Fe.useContext(la),g,x=!1;if(typeof u=="string"&&LR.test(u)&&(g=u,CR))try{let y=new URL(window.location.href),w=u.startsWith("//")?new URL(y.protocol+u):new URL(u),S=Cl(w.pathname,m);w.origin===y.origin&&S!=null?u=S+w.search+w.hash:x=!0}catch{}let v=Th(u,{relative:o}),p=IR(u,{replace:i,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:c});function h(y){a&&a(y),y.defaultPrevented||p(y)}return Fe.createElement("a",Bh({},f,{href:g||v,onClick:x||n?a:h,ref:r,target:l}))});var B1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(B1||(B1={}));var _1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_1||(_1={}));function IR(e,t){let{target:r,replace:a,state:o,preventScrollReset:n,relative:i,viewTransition:s}=t===void 0?{}:t,l=So(),u=gn(),d=Gc(e,{relative:i});return Fe.useCallback(c=>{if(vR(c,r)){c.preventDefault();let f=a!==void 0?a:pn(u)===pn(d);l(e,{replace:f,state:o,preventScrollReset:n,relative:i,viewTransition:s})}},[u,l,d,a,o,r,e,n,i,s])}var Xn=E(Y());var Ao=E(Y());var Yc=E(Y());var U1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kR=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase()),Vh=e=>{let t=kR(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xc=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim(),z1=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var El=E(Y());var H1={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"};var j1=(0,El.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:i,...s},l)=>(0,El.createElement)("svg",{ref:l,...H1,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Xc("lucide",o),...!n&&!z1(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,d])=>(0,El.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var A=(e,t)=>
8{let r=(0,Yc.forwardRef)(({className:a,...o},n)=>(0,Yc.createElement)(j1,{ref:n,iconNode:t,className:Xc(`lucide-${U1(Vh(e))}`,`lucide-${e}`,a),...o}));return r.displayName=Vh(e),r};var NR=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],hn=A("activity",NR);var ER=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Fa=A("arrow-left",ER);var PR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ca=A("arrow-right",PR);var DR=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Ba=A("building-2",DR);var RR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gt=A("check",RR);var AR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vn=A("chevron-down",AR);var TR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_t=A("chevron-right",TR);var MR=[["path",{d:"M10.88 21.94 15.46 14",key:"xkve6t"}],["path",{d:"M21.17 8H12",key:"19dcdn"}],["path",{d:"M3.95 6.06 8.54 14",key:"g8jz9m"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],Co=A("chromium",MR);var OR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Dt=A("circle-alert",OR);var FR=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Vt=A("circle-check-big",FR);var BR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ir=A("circle-check",BR);var _R=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bt=A("circle-question-mark",_R);var VR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],fa=A("circle-x",VR);var UR=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xn=A("clock",UR);var zR=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],pa=A("credit-card",zR);var HR=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],kr=A("crown",HR);var jR=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Pl=A("database",jR);var qR=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Dl=A("dollar-sign",qR);var $R=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ma=A("download",$R);var WR=[["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"}]],Rl=A("eye",WR);var GR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Al=A("globe",GR);var XR=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],ga=A("grip-vertical",XR);var YR=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Lo=A("house",YR);var KR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Xt=A("loader-circle",KR);var QR=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Tl=A("lock",QR);var JR=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ml=A("log-out",JR);var ZR=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ol=A("mail",ZR);var eA=[["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"}]],ur=A("map-pin",eA);var tA=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ha=A("message-square",tA);var rA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],yn=A("mic",rA);var aA=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Fl=A("navigation",aA);var oA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Yt=A("pen",oA);var nA=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
80 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Io=A("phone-call",nA);var iA=[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Bl=A("phone-incoming",iA);var sA=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],ko=A("phone-off",sA);var lA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],St=A("phone",lA);var uA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_a=A("plus",uA);var dA=[["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"}]],wn=A("refresh-cw",dA);var cA=[["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"}]],_l=A("save",cA);var fA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Vl=A("search",fA);var pA=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ul=A("settings",pA);var mA=[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]],zl=A("share",mA);var gA=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],bn=A("shield",gA);var hA=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Hl=A("smartphone",hA);var vA=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
8],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Va=A("sparkles",vA);var xA=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Sn=A("star",xA);var yA=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],$r=A("trash-2",yA);var wA=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Ua=A("trending-up",wA);var bA=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],at=A("triangle-alert",bA);var SA=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],jl=A("user-check",SA);var CA=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Wr=A("user",CA);var LA=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Kt=A("users",LA);var IA=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],ql=A("volume-2",IA);var kA=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],$l=A("wifi",kA);var NA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ot=A("x",NA);var EA=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Se=A("zap",EA);var Gr=E(Y());var Qc=E(Y());var V=E(J()),OA=({contacts:e,onUpdateContacts:t})=>{let[r,a]=(0,Qc.useState)(!1),[o,n]=(0,Qc.useState)(null),[i,s]=(0,Qc.useState)({name:"",phone:"",relationship:"",isPrimary:!1,notifyOnEmergency:!0,receiveLocationUpdates:!1}),l=()=>{a(!0),n(null),s({name:"",phone:"",relationship:"",isPrimary:e.length===0,notifyOnEmergency:!0,receiveLocationUpdates:!1})},u=p=>{a(!1),n(p.id),s(p)},d=()=>{if(!i.name||!i.phone){alert("Please fill in name and phone number");return}if(!/^[\d\s\-\+\(\)]+$/.test(i.phone)){alert("Please enter a valid phone number");return}if(o){let h=e.map(y=>y.id===o?{...i,id:o}:y);i.isPrimary&&h.forEach(y=>{y.id!==o&&(y.isPrimary=!1)}),t(h)}else{let h={id:Date.now().toString(),name:i.name,phone:i.phone,relationship:i.relationship||"Other",isPrimary:i.isPrimary||e.length===0,notifyOnEmergency:i.notifyOnEmergency!==!1,receiveLocationUpdates:i.receiveLocationUpdates||!1},y=i.isPrimary?e.map(w=>({...w,isPrimary:!1})):e;t([...y,h])}f()},c=p=>{if(confirm("Are you sure you want to delete this emergency contact?")){let h=e.filter(y=>y.id!==p);e.find(y=>y.id===p)?.isPrimary&&h.length>0&&(h[0].isPrimary=!0),t(h)}},f=()=>{a(!1),n(null),s({name:"",phone:"",relationship:"",isPrimary:!1,notifyOnEmergency:!0,receiveLocationUpdates:!1})},m=p=>{let h=e.map(y=>({...y,isPrimary:y.id===p}));t(h)},g=p=>{let h=e.map(y=>y.id===p?{...y,notifyOnEmergency:!y.notifyOnEmergency}:y);t(h)},x=p=>{let h=e.map(y=>y.id===p?{...y,receiveLocationUpdates:!y.receiveLocationUpdates}:y);t(h)},v=p=>{let h=p.replace(/\D/g,"");return h.length===10?`(${h.slice(0,3)}) ${h.slice(3,6)}-${h.slice(6)}`:p};return(0,V.jsxs)("div",{className:"space-y-4",children:[(0,V.jsxs)("div",{className:"flex items-center justify-between",children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("h4",{className:"text-sm font-medium text-gray-700",children:"Emergency Contacts"}),(0,V.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Contacts who will be notified during emergencie
8s"})]}),!r&&!o&&(0,V.jsxs)("button",{onClick:l,className:"flex items-center space-x-1 px-3 py-1.5 bg-green-500 hover:bg-green-600 text-white text-sm rounded-md transition-colors",children:[(0,V.jsx)(_a,{className:"w-4 h-4"}),(0,V.jsx)("span",{children:"Add"})]})]}),e.length===0&&!r&&(0,V.jsxs)("div",{className:"text-center py-8 bg-gray-50 rounded-lg border border-gray-200",children:[(0,V.jsx)(St,{className:"w-12 h-12 text-gray-400 mx-auto mb-2"}),(0,V.jsx)("p",{className:"text-sm text-gray-600 mb-1",children:"No emergency contacts added"}),(0,V.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:"Add contacts to notify in emergencies"}),(0,V.jsxs)("button",{onClick:l,className:"inline-flex items-center space-x-1 px-4 py-2 bg-green-500 hover:bg-green-600 text-white text-sm rounded-md transition-colors",children:[(0,V.jsx)(_a,{className:"w-4 h-4"}),(0,V.jsx)("span",{children:"Add Emergency Contact"})]})]}),e.map(p=>(0,V.jsx)("div",{className:`p-4 rounded-lg border ${p.isPrimary?"bg-green-50 border-green-200":"bg-white border-gray-200"}`,children:(0,V.jsxs)("div",{className:"flex items-start justify-between",children:[(0,V.jsxs)("div",{className:"flex-1",children:[(0,V.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,V.jsx)("h5",{className:"font-medium text-gray-900",children:p.name}),p.isPrimary&&(0,V.jsxs)("span",{className:"inline-flex items-center space-x-1 px-2 py-0.5 bg-green-100 text-green-700 text-xs rounded-full",children:[(0,V.jsx)("span",{className:"text-sm",children:"\u2B50"}),(0,V.jsx)("span",{children:"Primary"})]})]}),(0,V.jsxs)("div",{className:"space-y-1 text-sm text-gray-600",children:[(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)("span",{className:"text-sm",children:"\u{1F4DE}"}),(0,V.jsx)("a",{href:`tel:${p.phone}`,className:"hover:text-green-600",children:v(p.phone)})]}),p.relationship&&(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)("span",{className:"text-sm",children:"\u{1F464}"}),(0,V.jsx)("span",{children:p.relationship})]})]}),(0,V.jsxs)("div",{className:"mt-2 space-y-1",children:[(0,V.jsxs)("label",{className:"flex items-center space-x-2 text-xs text-gray-600 cursor-pointer",children:[(0,V.jsx)("input",{type:"checkbox",checked:p.notifyOnEmergency,onChange:()=>g(p.id),className:"rounded text-green-500 focus:ring-green-500"}),(0,V.jsx)("span",{children:"Notify on emergency"})]}),(0,V.jsxs)("label",{className:"flex items-center space-x-2 text-xs text-gray-600 cursor-pointer",children:[(0,V.jsx)("input",{type:"checkbox",checked:p.receiveLocationUpdates,onChange:()=>x(p.id),className:"rounded text-green-500 focus:ring-green-500"}),(0,V.jsx)("span",{children:"Receive trip location updates"})]}),!p.isPrimary&&(0,V.jsx)("button",{onClick:()=>m(p.id),className:"text-xs text-gray-500 hover:text-green-600",children:"Set as primary"})]})]}),(0,V.jsxs)("div",{className:"flex items-center space-x-2 ml-4",children:[(0,V.jsx)("button",{onClick:()=>u(p),className:"p-1.5 text-gray-400 hover:text-blue-600 hover:bg-blue-50 rounded transition-colors",children:(0,V.jsx)("span",{className:"text-lg",children:"\u270F\uFE0F"})}),(0,V.jsx)("button",{onClick:()=>c(p.id),className:"p-1.5 text-gray-400 hover:text-red-600 hover:bg-red-50 rounded transition-colors",children:(0,V.jsx)("span",{className:"text-lg",children:"\u{1F5D1}\uFE0F"})})]})]})},p.id)),(r||o)&&(0,V.jsxs)("div",{className:"p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,V.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,V.jsx)("h5",{className:"font-medium text-gray-900",children:o?"Edit Contact":"Add Emergency Contact"}),(0,V.jsx)("button",{onClick:f,className:"p-1 text-gray-400 hover:text-gray-600 rounded transition-colors",children:(0,V.jsx)("span",{className:"text-xl",children:"\u2715"})})]}),(0,V.jsxs)("div",{className:"space-y-3",children:[(0,V.jsxs)("div",{children:[(0,V.jsxs)("label",{className:"block text-xs text-gray-600 mb-1",children:["Name ",(0,V.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,V.jsx)("input",{type:"text",value:i.name||"",onChange:p=>s({...i,name:p.target.value}),placeholder:"John Doe",className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"})]}),(0,V.jsxs)("div",{children:[(0,V.jsxs)("label",{className:"block text-xs text-gray-600 mb-1",children:["Phone Number ",(0,V.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,V.jsx)("input",{type:"tel",value:i.phone||"",onChange:p=>s({...i,phone:p.target.value}),placeholder:"+1 (555) 123-4567",className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"})]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:"Relationship"}),(0,V.jsxs)("select",{value:i.relationship||"",onChange:p=>s({...i,relationship:p.target.value}),className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500",children:[(0,V.jsx)("option",{value:"",children:"Select relationship"}),(0,V.jsx)("option",{value:"Spouse",children:"Spouse"}),(0,V.jsx)("option",{value:"Parent",children:"Parent"}),(0,V.jsx)("option",{value:"Sibling",children:"Sibling"}),(0,V.jsx)("option",{value:"Child",children:"Child"}),(0,V.jsx)("option",{value:"Friend",children:"Friend"}),(0,V.jsx)("option",{value:"Colleague",children:"Colleague"}),(0,V.jsx)("option",{value:"Manager",children:"Manager"}),(0,V.jsx)("option",{value:"Emergency Service",children:"Emergency Service"}),(0,V.jsx)("option",{value:"Other",children:"Other"})]})]}),(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsxs)("label",{className:"flex items-center space-x-2 text-sm text-gray-700 cursor-pointer",children:[(0,V.jsx)("input",{type:"checkbox",checked:i.isPrimary||!1,onChange:p=>s({...i,isPrimary:p.target.checked}),className:"rounded text-green-500 focus:ring-green-500"}),(0,V.jsx)("span",{children:"Set as primary contact"})]}),(0,V.jsxs)("label",{className:"flex items-center space-x-2 text-sm text-gray-700 cursor-pointer",children:[(0,V.jsx)("input",{type:"checkbox",checked:i.notifyOnEmergency!==!1,onChange:p=>s({...i,notifyOnEmergency:p.target.checked}),className:"rounded text-green-500 focus:ring-green-500"}),(0,V.jsx)("span",{children:"Notify on emergency"})]}),(0,V.jsxs)("label",{className:"flex items-center space-x-2 text-sm text-gray-700 cursor-pointer",children:[(0,V.jsx)("input",{type:"checkbox",checked:i.receiveLocationUpdates||!1,onChange:p=>s({...i,receiveLocationUpdates:p.target.checked}),className:"rounded text-green-500 focus:ring-green-500"}),(0,V.jsx)("span",{children:"Receive trip location updates"})]})]}),(0,V.jsxs)("div",{className:"flex space-x-2 pt-2",children:[(0,V.jsxs)("button",{onClick:d,className:"flex-1 flex items-center justify-center space-x-2 px-4 py-2 bg-green-500 hover:bg-green-600 text-white text-sm rounded-md transition-colors",children:[(0,V.jsx)("span",{className:"text-lg",children:"\u{1F4BE}"}),(0,V.jsx)("span",{children:"Save Contact"})]}),(0,V.jsx)("button",{onClick:f,className:"px-4 py-2 bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm rounded-md transition-colors",children:"Cancel"})]})]})]}),e.length>0&&!r&&!o&&(0,V.jsx)("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg",children:(0,V.jsxs)("p",{className:"text-xs text-blue-800",children:[(0,V.jsx)("strong",{children:"Primary contact"}
8),' will be notified first during emergencies. Contacts with "Receive trip location updates" enabled will get automatic location updates during trips.']})})]})},G1=OA;var Uh=E(Y());var z=E(J()),FA=({currentTier:e,onUpgrade:t,onClose:r})=>{let[a,o]=(0,Uh.useState)(e),[n,i]=(0,Uh.useState)(!1),s=[{id:"Free",name:"Free",icon:Se,color:"green",price:"$0",period:"forever",description:"Perfect for getting started",features:["10 calls per month","Voice messaging","Emergency alerts","Basic trip tracking","Location sharing","SMS-based communication"],limitations:["Limited to 10 calls/month","No speech-to-text","Limited shortcuts","Standard support"]},{id:"Pro",name:"Pro",icon:kr,color:"blue",price:"$9.99",period:"per month",description:"For professional drivers",badge:"Popular",features:["Unlimited calls","Everything in Free","Speech-to-text transcription","Advanced trip tracking","Unlimited quick shortcuts","Priority support","ETA calculations","Custom notifications"],highlight:!0},{id:"Enterprise",name:"Enterprise",icon:Ba,color:"purple",price:"Custom",period:"pricing",description:"For fleets and companies",features:["Unlimited calls","Everything in Pro","Fleet management dashboard","Custom integrations","Dedicated account manager","Analytics & reporting","API access","White-label options","SLA guarantee"]}],l=s.find(x=>x.id===e),u=s.find(x=>x.id===a),d=s.findIndex(x=>x.id===a)>s.findIndex(x=>x.id===e),c=s.findIndex(x=>x.id===a)<s.findIndex(x=>x.id===e),f=a!==e,m=()=>{if(!f){r();return}i(!0),setTimeout(()=>{t(a),i(!1)},1500)},g=(x,v)=>({green:{border:v?"border-green-500":"border-gray-200 hover:border-green-300",bg:v?"bg-green-50":"bg-white",icon:"text-green-600",badge:"bg-green-100 text-green-700"},blue:{border:v?"border-blue-500":"border-gray-200 hover:border-blue-300",bg:v?"bg-blue-50":"bg-white",icon:"text-blue-600",badge:"bg-blue-100 text-blue-700"},purple:{border:v?"border-purple-500":"border-gray-200 hover:border-purple-300",bg:v?"bg-purple-50":"bg-white",icon:"text-purple-600",badge:"bg-purple-100 text-purple-700"}})[x];return(0,z.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-in fade-in duration-200",children:(0,z.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-4xl w-full max-h-[90vh] overflow-hidden animate-in slide-in-from-bottom-4 duration-300",children:[(0,z.jsxs)("div",{className:"bg-gradient-to-r from-green-500 via-blue-500 to-purple-500 text-white p-6",children:[(0,z.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(Va,{className:"w-6 h-6"}),(0,z.jsx)("h2",{className:"text-2xl font-bold",children:"Upgrade Your Plan"})]}),(0,z.jsx)("button",{onClick:r,className:"p-2 hover:bg-white/20 rounded-full transition-colors",children:(0,z.jsx)(ot,{className:"w-5 h-5"})})]}),(0,z.jsx)("p",{className:"text-white/90 text-sm",children:"Choose the plan that best fits your needs"})]}),(0,z.jsx)("div",{className:"px-6 py-4 bg-gray-50 border-b border-gray-200",children:(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,z.jsx)("div",{className:`w-10 h-10 rounded-full flex items-center justify-center ${l?.color==="green"?"bg-green-100":l?.color==="blue"?"bg-blue-100":"bg-purple-100"}`,children:l&&(0,z.jsx)(l.icon,{className:`w-5 h-5 ${l.color==="green"?"text-green-600":l.color==="blue"?"text-blue-600":"text-purple-600"}`})}),(0,z.jsxs)("div",{children:[(0,z.jsx)("p",{className:"text-xs text-gray-500",children:"Current Plan"}),(0,z.jsx)("p",{className:"font-semibold text-gray-900",children:e})]})]}),f&&(0,z.jsxs)("div",{className:"flex items-center space-x-2 text-sm",children:[(0,z.jsx)("span",{className:"text-gray-600",children:"Switching to"}),(0,z.jsx)(ca,{className:"w-4 h-4 text-gray-400"}),(0,z.jsx)("span",{className:`font-semibold ${d?"text-green-600":"text-orange-600"}`,children:a})]})]})}),(0,z.jsxs)("div",{className:"p-6 overflow-y-auto max-h-[calc(90vh-280px)]",children:[(0,z.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:s.map(x=>{let v=a===x.id,p=e===x.id,h=g(x.color,v);return(0,z.jsxs)("button",{onClick:()=>o(x.id),className:`relative p-5 rounded-xl border-2 transition-all duration-200 text-left ${h.border} ${h.bg} ${v?"shadow-lg scale-105":"hover:shadow-md"} ${x.highlight?"ring-2 ring-blue-200":""}`,children:[p&&(0,z.jsx)("div",{className:"absolute top-3 right-3",children:(0,z.jsx)("span",{className:"px-2 py-1 bg-gray-200 text-gray-700 text-xs rounded-full font-medium",children:"Current"})}),x.badge&&!p&&(0,z.jsx)("div",{className:"absolute top-3 right-3",children:(0,z.jsx)("span",{className:`px-2 py-1 ${h.badge} text-xs rounded-full font-medium`,children:x.badge})}),(0,z.jsxs)("div",{className:"mb-4",children:[(0,z.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[(0,z.jsx)(x.icon,{className:`w-6 h-6 ${h.icon}`}),(0,z.jsx)("h3",{className:"font-bold text-lg text-gray-900",children:x.name}),v&&!p&&(0,z.jsx)(Gt,{className:`w-5 h-5 ${h.icon}`})]}),(0,z.jsx)("p",{className:"text-xs text-gray-600 mb-3",children:x.description}),(0,z.jsxs)("div",{className:"flex items-baseline space-x-1",children:[(0,z.jsx)("span",{className:"text-2xl font-bold text-gray-900",children:x.price}),(0,z.jsxs)("span",{className:"text-sm text-gray-500",children:["/",x.period]})]})]}),(0,z.jsx)("div",{className:"space-y-2",children:x.features.map((y,w)=>(0,z.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,z.jsx)(Gt,{className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),(0,z.jsx)("span",{className:"text-xs text-gray-700",children:y})]},w))}),x.limitations&&(0,z.jsx)("div",{className:"mt-3 pt-3 border-t border-gray-200 space-y-1",children:x.limitations.map((y,w)=>(0,z.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,z.jsx)(ot,{className:"w-4 h-4 text-gray-400 flex-shrink-0 mt-0.5"}),(0,z.jsx)("span",{className:"text-xs text-gray-500",children:y})]},w))})]},x.id)})}),f&&d&&(0,z.jsxs)("div",{className:"mt-6 p-4 bg-gradient-to-r from-green-50 to-blue-50 border border-green-200 rounded-lg",children:[(0,z.jsxs)("h4",{className:"font-semibold text-gray-900 mb-2 flex items-center space-x-2",children:[(0,z.jsx)(Va,{className:"w-5 h-5 text-green-600"}),(0,z.jsxs)("span",{children:["What you'll get with ",a]})]}),(0,z.jsx)("ul",{className:"space-y-1 text-sm text-gray-700",children:u?.features.slice(0,4).map((x,v)=>(0,z.jsxs)("li",{className:"flex items-center space-x-2",children:[(0,z.jsx)(Gt,{className:"w-4 h-4 text-green-600"}),(0,z.jsx)("span",{children:x})]},v))})]}),f&&c&&(0,z.jsxs)("div",{className:"mt-6 p-4 bg-orange-50 border border-orange-200 rounded-lg",children:[(0,z.jsx)("h4",{className:"font-semibold text-orange-900 mb-2",children:"\u26A0\uFE0F Downgrade Notice"}),(0,z.jsxs)("p",{className:"text-sm text-orange-800",children:["You'll lose access to some features when downgrading to ",a,". Your data will be preserved, but premium features will be disabled."]})]})]}),(0,z.jsx)("div",{className:"p-6 bg-gray-50 border-t border-gray-200",children:(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsx)("div",{className:"text-sm text-gray-600",children:f?d?(0,z.jsx)("span",{children:"\u2728 Upgrade to unlock more features"}):(0,z.jsx)("span",{children:"Changes take effect immediately"}):(0,z.jsx)("span",{children:"Select a different plan to continue"})}),(0,z.jsxs)("div",{className:"flex space-x-3",children:[(0,z.jsx)("button",{onClick:r,className:"px-6 py-2.5 text-gray-700 hover:bg-gray-200 rounded-lg transition-colors font-medium",children:"Cancel"}),(0,z.jsx)("button",{onClick:m,disabled:!f||n,className:`px-6 py-2.5 rounded-lg font-medium transition-all flex items-center space-x-2 ${f&&!n?"bg-gradient-to-r from-green-500 to-blue-500 hover:from-green-600 hover:to-blue-600 text-white shadow-lg hover:shadow-xl":"bg-gray-300 text-gray-500 cursor-not-allowed"}`,children:n?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent roun
8ded-full animate-spin"}),(0,z.jsx)("span",{children:"Processing..."})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("span",{children:d?"Upgrade Now":c?"Confirm Downgrade":"Continue"}),(0,z.jsx)(ca,{className:"w-4 h-4"})]})})]})]})})]})})},X1=FA;var Ri=E(Y());var te=E(J()),BA=({onClose:e})=>{let[t,r]=(0,Ri.useState)(null),[a,o]=(0,Ri.useState)(!1),[n,i]=(0,Ri.useState)(!1);return(0,Ri.useEffect)(()=>{let l=/iPad|iPhone|iPod/.test(navigator.userAgent);o(l);let u=/Android/.test(navigator.userAgent);i(u);let d=c=>{c.preventDefault(),r(c)};return window.addEventListener("beforeinstallprompt",d),()=>{window.removeEventListener("beforeinstallprompt",d)}},[]),(0,te.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-end sm:items-center justify-center p-4 animate-in fade-in duration-200",children:(0,te.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-md w-full animate-in slide-in-from-bottom-4 duration-300",children:[(0,te.jsxs)("div",{className:"relative p-6 pb-4",children:[(0,te.jsx)("button",{onClick:e,className:"absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors",children:(0,te.jsx)(ot,{className:"w-5 h-5 text-gray-500"})}),(0,te.jsxs)("div",{className:"flex items-center space-x-3 mb-4",children:[(0,te.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-green-400 to-blue-500 rounded-xl flex items-center justify-center",children:(0,te.jsx)(ma,{className:"w-6 h-6 text-white"})}),(0,te.jsxs)("div",{children:[(0,te.jsx)("h3",{className:"text-xl font-bold text-gray-900",children:"Install ChargeVoix"}),(0,te.jsx)("p",{className:"text-sm text-gray-600",children:"Quick access from your home screen"})]})]})]}),(0,te.jsxs)("div",{className:"px-6 pb-6 space-y-4",children:[(0,te.jsxs)("div",{className:"bg-gradient-to-br from-green-50 to-blue-50 rounded-xl p-4 space-y-2",children:[(0,te.jsx)("p",{className:"text-sm font-semibold text-gray-900",children:"\u2728 Benefits:"}),(0,te.jsxs)("ul",{className:"space-y-1 text-sm text-gray-700",children:[(0,te.jsx)("li",{children:"\u26A1 Instant access from home screen"}),(0,te.jsx)("li",{children:"\u{1F4F1} Full-screen app experience"}),(0,te.jsx)("li",{children:"\u{1F514} Push notifications for alerts"}),(0,te.jsx)("li",{children:"\u2699\uFE0F Works offline (basic features)"})]})]}),a&&(0,te.jsx)("div",{className:"bg-blue-50 border-2 border-blue-200 rounded-xl p-4",children:(0,te.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,te.jsx)(zl,{className:"w-6 h-6 text-blue-600 flex-shrink-0 mt-0.5"}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)("p",{className:"font-semibold text-blue-900 text-sm",children:"iPhone/iPad Instructions:"}),(0,te.jsxs)("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[(0,te.jsxs)("li",{children:["Tap the ",(0,te.jsx)("strong",{children:"Share button"})," (\u2B06\uFE0F) below"]}),(0,te.jsxs)("li",{children:["Scroll and tap ",(0,te.jsx)("strong",{children:'"Add to Home Screen"'})]}),(0,te.jsxs)("li",{children:["Tap ",(0,te.jsx)("strong",{children:'"Add"'})," in the top right"]})]})]})]})}),n&&!t&&(0,te.jsx)("div",{className:"bg-green-50 border-2 border-green-200 rounded-xl p-4",children:(0,te.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,te.jsx)(Co,{className:"w-6 h-6 text-green-600 flex-shrink-0 mt-0.5"}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)("p",{className:"font-semibold text-green-900 text-sm",children:"Android Instructions:"}),(0,te.jsxs)("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[(0,te.jsxs)("li",{children:["Tap the ",(0,te.jsx)("strong",{children:"menu (\u22EE)"})," in the top right"]}),(0,te.jsxs)("li",{children:["Tap ",(0,te.jsx)("strong",{children:'"Add to Home screen"'})]}),(0,te.jsxs)("li",{children:["Tap ",(0,te.jsx)("strong",{children:'"Add"'})," to confirm"]})]})]})]})}),t&&(0,te.jsxs)("button",{onClick:async()=>{if(t){t.prompt();let{outcome:l}=await t.userChoice;console.log(`User response to install prompt: ${l}`),r(null),e()}},className:"w-full py-4 bg-gradient-to-r from-green-500 to-blue-600 text-white rounded-xl font-bold text-lg shadow-lg hover:shadow-xl transition-all hover:scale-105 active:scale-95 flex items-center justify-center space-x-2",children:[(0,te.jsx)(ma,{className:"w-6 h-6"}),(0,te.jsx)("span",{children:"Install Now"})]}),!a&&!n&&(0,te.jsx)("div",{className:"bg-gray-50 border-2 border-gray-200 rounded-xl p-4",children:(0,te.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,te.jsx)(Hl,{className:"w-6 h-6 text-gray-600 flex-shrink-0 mt-0.5"}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)("p",{className:"font-semibold text-gray-900 text-sm",children:"Desktop Browser:"}),(0,te.jsxs)("p",{className:"text-sm text-gray-700",children:["Look for an ",(0,te.jsx)("strong",{children:"install icon"}),` in your browser's address bar, or check your browser menu for "Install ChargeVoix" option.`]})]})]})}),(0,te.jsx)("button",{onClick:e,className:"w-full py-3 bg-gray-100 text-gray-700 rounded-xl font-semibold hover:bg-gray-200 transition-colors",children:"Maybe Later"})]})]})})},Jc=BA;var _A=async()=>new Promise(e=>{if(!navigator.geolocation){e({latitude:0,longitude:0,timestamp:Date.now(),error:"Geolocation not supported"});return}navigator.geolocation.getCurrentPosition(t=>{e({latitude:t.coords.latitude,longitude:t.coords.longitude,accuracy:t.coords.accuracy,timestamp:t.timestamp})},t=>{console.warn("High accuracy location failed, trying low accuracy:",t),navigator.geolocation.getCurrentPosition(r=>{e({latitude:r.coords.latitude,longitude:r.coords.longitude,accuracy:r.coords.accuracy,timestamp:r.timestamp,error:"Low accuracy location"})},r=>{console.error("All location attempts failed:",r),e({latitude:0,longitude:0,timestamp:Date.now(),error:UA(r.code)})},{timeout:1e4,enableHighAccuracy:!1,maximumAge:6e5})},{timeout:8e3,enableHighAccuracy:!0,maximumAge:3e5})});var VA=async(e,t)=>{try{let r=await fetch(`https://api.bigdatacloud.net/data/reverse-geocode
8-client?latitude=${e}&longitude=${t}&localityLanguage=en`);if(!r.ok)throw new Error("Geocoding service unavailable");let a=await r.json();return a.locality&&a.principalSubdivision?`${a.locality}, ${a.principalSubdivision}, ${a.countryName}`:a.city&&a.principalSubdivision?`${a.city}, ${a.principalSubdivision}, ${a.countryName}`:`${a.countryName||"Unknown location"}`}catch(r){return console.warn("Reverse geocoding failed:",r),"Address lookup failed"}},No=async()=>{let e=await _A();if(!e.error&&e.latitude!==0&&e.longitude!==0)try{let t=await VA(e.latitude,e.longitude);e.address=t}catch(t){console.warn("Address lookup failed:",t)}return e};var UA=e=>{switch(e){case 1:return"Location access denied";case 2:return"Location unavailable";case 3:return"Location timeout";default:return"Location error"}};var zh="+1234567890";var jh=async e=>{try{let t=HA(e);if(!t.valid)return console.error("SMS validation failed:",t.error),!1;let r=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),a=!1;return r?a=await zA(e):a=await Hh(e),a}catch(t){return console.error("SMS sending failed:",t),!1}},Hh=async e=>{try{let t=encodeURIComponent(e),r=`sms:${zh}?body=${t}`,o=/iPad|iPhone|iPod/.test(navigator.userAgent)?`sms:${zh}&body=${t}`:r;return window.location.href=o,!0}catch(t){return console.error("Failed to open SMS composer:",t),!1}},zA=async e=>{try{if("sms"in navigator){let t={to:zh,body:e};return await navigator.sms.send(t),!0}else return await Hh(e)}catch(t){return console.error("Mobile SMS sending failed:",t),await Hh(e)}};var Y1=(e,t,r,a,o)=>{let n=`\u{1F6A8} EMERGENCY ALERT \u{1F6A8}
9`;return n+=`Customer: ${e}
10`,n+=`ID: ${t}
11`,n+=`Tier: ${a}
12
13`,n+=`STATUS: EMERGENCY - IMMEDIATE ASSISTANCE REQUIRED
14
15`,r.error?n+=`Location: ${r.error}
16`:(n+=`Location: ${r.latitude.toFixed(6)},${r.longitude.toFixed(6)}
17`,r.address&&(n+=`Address: ${r.address}
18`),r.accuracy&&(n+=`Accuracy: \xB1${Math.round(r.accuracy)}m
19`),n+=`Map: https://maps.google.com/?q=${r.latitude},${r.longitude}
20`),n+=`
21Timestamp: ${new Date().toLocaleString()}`,o.length>0&&(n+=`
22
23Emergency Contacts:`,o.forEach((i,s)=>{n+=`
24${s+1}. ${i.name} (${i.relationship}): ${i.phone}${i.isPrimary?" [PRIMARY]":""}`})),n+=`
25
26This is an automated emergency alert. Please respond immediately.`,n};var HA=e=>!e||e.trim().length===0?{valid:!1,error:"Message cannot be empty"}:e.length>1600?{valid:!1,error:"Message too long (max 1600 characters)"}:{valid:!0};var qh=e=>({en:"English",es:"Espa\xF1ol",fr:"Fran\xE7ais",de:"Deutsch",it:"Italiano",pt:"Portugu\xEAs"})[e]||e;var K1=async()=>{try{if(localStorage.clear(),console.log("\u2713 localStorage cleared"),sessionStorage.clear(),console.log("\u2713 sessionStorage cleared"),"indexedDB"in window){let e=await indexedDB.databases();for(let t of e)t.name&&(indexedDB.deleteDatabase(t.name),console.log(`\u2713 IndexedDB "${t.name}" deleted`))}if("caches"in window){let e=await caches.keys();for(let t of e)await caches.delete(t),console.log(`\u2713 Cache "${t}" deleted`)}if("serviceWorker"in navigator){let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister(),console.log("\u2713 Service worker unregistered")}console.log("\u2705 All cache cleared successfully!"),window.location.reload()}catch(e){console.error("\u274C Error clearing cache:",e),alert("Error clearing cache. Please try manually clearing browser data.")}},$h=()=>{try{["truckcharge-settings","truckcharge-welcome-completed","truckcharge-active-trip","truckcharge-trip-history","truckcharge-sms-queue"].forEach(t=>{localStorage.removeItem(t),console.log(`\u2713 Removed ${t}`)}),sessionStorage.clear(),console.log("\u2713 Session storage cleared"),console.log("\u2705 App data cleared successfully!"),window.location.reload()}catch(e){console.error("\u274C Error clearing app data:",e),alert("Error clearing app data.")}};var Wh="voipcharge-onboarding-complete",Gh="voipcharge-settings",Q1=()=>{try{return localStorage.getItem(Wh)==="true"}catch(e){return console.error("Failed to check onboarding status:",e),!1}},J1=()=>{try{localStorage.setItem(Wh,"true")}catch(e){console.error("Failed to mark onboarding complete:",e)}},Xh=()=>{try{localStorage.removeItem(Wh),localStorage.removeItem(Gh),console.log("Onboarding reset successfully")}catch(e){console.error("Failed to reset onboarding:",e)}},jA=e=>({"en-US":"en","en-GB":"en","es-ES":"es","fr-FR":"fr","de-DE":"de","it-IT":"it","pt-BR":"pt"})[e]||e,Z1=()=>{try{let e=localStorage.getItem(Gh);if(!e)return null;let t=JSON.parse(e);if(t.language){let r=jA(t.language);r!==t.language&&(console.log(`Migrating language from ${t.language} to ${r}`),t.language=r,Zc(t))}return t}catch(e){return console.error("Failed to load settings:",e),null}},Zc=e=>{try{return localStorage.setItem(Gh,JSON.stringify(e)),!0}catch(t){return console.error("Failed to save settings:",t),!1}};typeof window<"u"&&(window.resetVoipChargeOnboarding=Xh);var Ai={appName:"ChargeVoix",callForHelp:"Call for Help",aiAssistantDescription:"Our AI assistant will answer your questions about charging stations",locationSharedAutomatically:"Location automatically shared during call",voiceCall:"Voice Call",talkDirectlyWithAI:"Talk directly with AI server",quickSMS:"Quick SMS",useShortcutsForQueries:"Use shortcuts for instant queries",serverWillAnswerQuestions:"Server will answer your questions",connecting:"Connecting...",singleClickWillAnswer:"Single click will answer",demoMode:"DEMO MODE",usingDemoCredentials:"Using demo credentials",updateYourProfile:"Update your profile",toPersonalizeExperience:"to personalize your experience",gettingLocation:"Getting location...",locationReady:"Location ready",locationUnavailable:"Location unavailable",callingServer:"Calling server...",serverWillAnswer:"The server will answer your questions about charging stations.",unableToInitiateCall:"Unable to initiate call.",errorInitiatingCall:"Error initiating call.",pleaseTryAgain:"Please try again.",quickAccess:"Quick Access",shortcuts:"shortcuts",smsShortcuts:"SMS shortcuts",openYourSMSApp:"open your SMS app",realTimeShortcuts:"Real-time shortcuts",connect
26ViaInternalWebhook:"connect via internal webhook (falls back to SMS if no response or offline)",rate:"Rate",help:"Help",complaint:"Complaint",callsUsed:"Calls Used",lowCallsRemaining:"LOW CALLS REMAINING",onlyCallsLeft:"Only",callsLeft:"calls left",upgradeNow:"Upgrade now",forUnlimitedCalls:"for unlimited calls",updateProfile:"Update profile",toPersonalize:"to personalize",subscriptionPlan:"Subscription Plan",emergencyContacts:"Emergency Contacts",contact:"contact",contacts:"contacts",language:"Language",helpAndTutorial:"Help & Tutorial",learnHowToUse:"Learn how to use the app",advanced:"Advanced",advancedSettings:"Advanced Settings",clearCacheAndData:"Clear cache & data",installApp:"Install App",offlineAccessFaster:"Offline access & faster performance",signOut:"Sign Out",resetAndShowWelcome:"Reset and show welcome screen",settings:"Settings",profile:"Profile",fileComplaint:"File a Complaint",getHelp:"Get Help",tapButtonToCall:"Tap the button below to call our AI assistant",needSomethingElse:"Need something else?",getHelpInstead:"Get Help Instead",fileComplaintInstead:"File a Complaint",frequentlyAskedQuestions:"Frequently Asked Questions",searchFAQ:"Search FAQ...",allCategories:"All Categories",questions:"questions",expandAll:"Expand All",collapseAll:"Collapse All",howToUseApp:"How to Use VoipCharge",makingVoiceCalls:"Making Voice Calls",makingVoiceCallsDesc:"Tap the green call button on the home screen. Our AI assistant will answer and help with your request. Your location is shared automatically for better service.",quickAccessShortcuts:"Quick Access Shortcuts",quickAccessShortcutsDesc:"Create shortcuts for common requests (find chargers, check balance, etc.). Tap a shortcut to send your request instantly via SMS or real-time webhook.",quickAccessShortcutsTip:"Tip: Long-press any shortcut for 3 seconds to edit or delete it.",realTimeVsSMS:"Real-Time vs SMS Mode",realTimeMode:"Real-Time (\u26A1)",realTimeModeDesc:"Instant webhook connection with AI response. Falls back to SMS if offline.",smsMode:"SMS Mode (\u{1F4AC})",smsModeDesc:"Opens your SMS app with pre-filled message to send manually.",emergencyButton:"Emergency Button",emergencyButtonDesc:'The red emergency button (bottom-right) sends your location and alert to emergency contacts. It has a 3-second countdown - tap "Cancel" if pressed by mistake.',settingsProfile:"Settings & Profile",settingsProfileDesc:"Tap the settings icon (top-right) to update your profile, manage emergency contacts, configure trip tracking, and upgrade your subscription.",privacySecurity:"Privacy & Security",dataProtection:"Data Protection",dataProtectionDesc:"Your personal information is encrypted and stored securely. We use industry-standard encryption (AES-256) for data at rest and TLS 1.3 for data in transit.",locationPrivacy:"Location Privacy",locationPrivacyDesc:"Location data is only collected when you initiate a call or enable trip tracking. Your location is:",locationPrivacyPoint1:"Shared only with support agents during active calls",locationPrivacyPoint2:"Not stored permanently on our servers",locationPrivacyPoint3:"Never sold or shared with third parties",whatWeCollect:"What We Collect",requiredInformation:"Required Information:",optionalInformation:"Optional Information:",yourPrivacyRights:"Your Privacy Rights",yourPrivacyRightsDesc:"You have complete control over your data:",privacyRightAccess:"Access: View all data we have about you",privacyRightDelete:"Delete: Request complete data deletion anytime",privacyRightExport:"Export: Download your data in portable format",privacyRightOptOut:"Opt-out: Disable location tracking anytime",thirdPartyServices:"Third-Party Services",thirdPartyServicesDesc:"We use trusted third-party services to provide our features:",questionsAboutPrivacy:"Questions About Privacy?",privacyContactDesc:"We're committed to transparency. Contact our privacy team:",privacyPolicyLastUpdated:"Privacy Policy Last Updated:",installApp:"Install App",installAppDesc:"Install for offline access and faster performance",name:"Name",customerId:"Customer ID",subscription:"Subscription",plan:"Plan",changePlan:"Change Plan",interfaceLanguage:"Interface Language",languageForInterface:"Language for the user interface",languageUpdated:"Language Updated!",nowUsing:"Now using",note:"Note",noteLanguageSelected:"The selected language will be used for the user interface translations.",quickStart:"Quick Start",tapCallButton:"Tap the call button to speak with our AI assistant about charging stations.",saveFavoriteLocations:"Save favorite locations as shortcuts for instant queries.",w
26arning:"Warning",actionsCannotBeUndone:"These actions cannot be undone.",clearAppData:"Clear App Data",resetSettingsToDefault:"Reset settings to default",clearAllCache:"Clear All Cache",removeAllCachedData:"Remove all cached data",clearAppDataDesc:"Resets your settings, shortcuts, and contacts. The app will reload with default settings.",clearAllCacheDesc:"Removes all cached data including service workers and browser storage. Use this if the app is not working properly.",settingsAutomaticallySaved:"Settings are automatically saved"},ef={en:Ai,es:{...Ai,callForHelp:"Llamar para Ayuda",aiAssistantDescription:"Nuestro asistente de IA responder\xE1 sus preguntas sobre estaciones de carga",locationSharedAutomatically:"Ubicaci\xF3n compartida autom\xE1ticamente durante la llamada",voiceCall:"Llamada de Voz",talkDirectlyWithAI:"Habla directamente con el servidor de IA",quickSMS:"SMS R\xE1pido",useShortcutsForQueries:"Usa atajos para consultas instant\xE1neas",serverWillAnswerQuestions:"El servidor responder\xE1 tus preguntas",connecting:"Conectando...",singleClickWillAnswer:"Un clic responder\xE1",demoMode:"MODO DEMO",usingDemoCredentials:"Usando credenciales de demostraci\xF3n",updateYourProfile:"Actualiza tu perfil",toPersonalizeExperience:"para personalizar tu experiencia",gettingLocation:"Obteniendo ubicaci\xF3n...",locationReady:"Ubicaci\xF3n lista",locationUnavailable:"Ubicaci\xF3n no disponible",callingServer:"Llamando al servidor...",serverWillAnswer:"El servidor responder\xE1 sus preguntas sobre estaciones de carga.",unableToInitiateCall:"No se puede iniciar la llamada.",errorInitiatingCall:"Error al iniciar la llamada.",pleaseTryAgain:"Por favor, int\xE9ntalo de nuevo.",quickAccess:"Acceso R\xE1pido",shortcuts:"atajos",smsShortcuts:"Atajos SMS",openYourSMSApp:"abren tu aplicaci\xF3n de SMS",realTimeShortcuts:"Atajos en tiempo real",connectViaInternalWebhook:"conectan v\xEDa webhook interno (vuelven a SMS si no hay respuesta o sin conexi\xF3n)",rate:"Calificar",help:"Ayuda",complaint:"Queja",callsUsed:"Llamadas Usadas",lowCallsRemaining:"POCAS LLAMADAS RESTANTES",onlyCallsLeft:"Solo",callsLeft:"llamadas restantes",upgradeNow:"Actualizar ahora",forUnlimitedCalls:"para llamadas ilimitadas",updateProfile:"Actualizar perfil",toPersonalize:"para personalizar",subscriptionPlan:"Plan de Suscripci\xF3n",emergencyContacts:"Contactos de Emergencia",contact:"contacto",contacts:"contactos",language:"Idioma",helpAndTutorial:"Ayuda y Tutorial",learnHowToUse:"Aprende a usar la aplicaci\xF3n",advanced:"Avanzado",advancedSettings:"Configuraci\xF3n Avanzada",clearCacheAndData:"Borrar cach\xE9 y datos",installApp:"Instalar Aplicaci\xF3n",offlineAccessFaster:"Acceso sin conexi\xF3n y rendimiento m\xE1s r\xE1pido",signOut:"Cerrar Sesi\xF3n",resetAndShowWelcome:"Restablecer y mostrar pantalla de bienvenida",settings:"Configuraci\xF3n",profile:"Perfil",fileComplaint:"Presentar una Queja",getHelp:"Obtener Ayuda",tapButtonToCall:"Toca el bot\xF3n de abajo para llamar a nuestro asistente de IA",needSomethingElse:"\xBFNecesitas algo m\xE1s?",getHelpInstead:"Obtener Ayuda en su lugar",fileComplaintInstead:"Presentar una Queja",frequentlyAskedQuestions:"Preguntas Frecuentes",searchFAQ:"Buscar FAQ...",allCategories:"Todas las Categor\xEDas",questions:"preguntas",expandAll:"Expandir Todo",collapseAll:"Contraer Todo",howToUseApp:"C\xF3mo Usar VoipCharge",makingVoiceCalls:"Realizar Llamadas de Voz",makingVoiceCallsDesc:"Toca el bot\xF3n verde de llamada en la pantalla principal. Nuestro asistente de IA responder\xE1 y ayudar\xE1 con tu solicitud. Tu ubicaci\xF3n se comparte autom\xE1ticamente para un mejor servicio.",quickAccessShortcuts:"Atajos de Acceso R\xE1pido",quickAccessShortcutsDesc:"Crea atajos para solicitudes comunes (encontrar cargadores, verificar saldo, etc.). Toca un atajo para enviar tu solicitud instant\xE1neamente v\xEDa SMS o webhook en tiempo real.",quickAccessShortcutsTip:"Consejo: Mant\xE9n presionado cualquier atajo durante 3 segundos para editar o eliminar.",realTimeVsSMS:"Modo Tiempo Real vs SMS",realTimeMode:"Tiempo Real (\u26A1)",realTimeModeDe
26sc:"Conexi\xF3n webhook instant\xE1nea con respuesta de IA. Vuelve a SMS si est\xE1 sin conexi\xF3n.",smsMode:"Modo SMS (\u{1F4AC})",smsModeDesc:"Abre tu aplicaci\xF3n de SMS con mensaje prellenado para enviar manualmente.",emergencyButton:"Bot\xF3n de Emergencia",emergencyButtonDesc:'El bot\xF3n rojo de emergencia (abajo a la derecha) env\xEDa tu ubicaci\xF3n y alerta a contactos de emergencia. Tiene una cuenta regresiva de 3 segundos - toca "Cancelar" si se presiona por error.',settingsProfile:"Configuraci\xF3n y Perfil",settingsProfileDesc:"Toca el \xEDcono de configuraci\xF3n (arriba a la derecha) para actualizar tu perfil, administrar contactos de emergencia, configurar seguimiento de viajes y actualizar tu suscripci\xF3n.",privacySecurity:"Privacidad y Seguridad",dataProtection:"Protecci\xF3n de Datos",dataProtectionDesc:"Tu informaci\xF3n personal est\xE1 encriptada y almacenada de forma segura. Usamos encriptaci\xF3n est\xE1ndar de la industria (AES-256) para datos en reposo y TLS 1.3 para datos en tr\xE1nsito.",locationPrivacy:"Privacidad de Ubicaci\xF3n",locationPrivacyDesc:"Los datos de ubicaci\xF3n solo se recopilan cuando inicias una llamada o habilitas el seguimiento de viajes. Tu ubicaci\xF3n:",locationPrivacyPoint1:"Se comparte solo con agentes de soporte durante llamadas activas",locationPrivacyPoint2:"No se almacena permanentemente en nuestros servidores",locationPrivacyPoint3:"Nunca se vende o comparte con terceros",whatWeCollect:"Qu\xE9 Recopilamos",requiredInformation:"Informaci\xF3n Requerida:",optionalInformation:"Informaci\xF3n Opcional:",yourPrivacyRights:"Tus Derechos de Privacidad",yourPrivacyRightsDesc:"Tienes control completo sobre tus datos:",privacyRightAccess:"Acceso: Ver todos los datos que tenemos sobre ti",privacyRightDelete:"Eliminar: Solicitar eliminaci\xF3n completa de datos en cualquier momento",privacyRightExport:"Exportar: Descargar tus datos en formato portable",privacyRightOptOut:"Optar por no participar: Desactivar seguimiento de ubicaci\xF3n en cualquier momento",thirdPartyServices:"Servicios de Terceros",thirdPartyServicesDesc:"Usamos servicios de terceros confiables para proporcionar nuestras funciones:",questionsAboutPrivacy:"\xBFPreguntas sobre Privacidad?",privacyContactDesc:"Estamos comprometidos con la transparencia. Contacta a nuestro equipo de privacidad:",privacyPolicyLastUpdated:"Pol\xEDtica de Privacidad Actualizada:",installApp:"Instalar Aplicaci\xF3n",installAppDesc:"Instalar para acceso sin conexi\xF3n y rendimiento m\xE1s r\xE1pido",name:"Nombre",customerId:"ID de Cliente",subscription:"Suscripci\xF3n",plan:"Plan",changePlan:"Cambiar Plan",interfaceLanguage:"Idioma de Interfaz",languageForInterface:"Idioma para la interfaz de usuario",languageUpdated:"\xA1Idioma Actualizado!",nowUsing:"Ahora usando",note:"Nota",noteLanguageSelected:"El idioma seleccionado se utilizar\xE1 para las traducciones de la interfaz de usuario.",quickStart:"Inicio R\xE1pido",tapCallButton:"Toca el bot\xF3n de llamada para hablar con nuestro asistente de IA sobre estaciones de carga.",saveFavoriteLocations:"Guarda ubicaciones favoritas como atajos para consultas instant\xE1neas.",warning:"Advertencia",actionsCannotBeUndone:"Estas acciones no se pueden deshacer.",clearAppData:"Borrar Datos de la Aplicaci\xF3n",resetSettingsToDefault:"Restablecer configuraci\xF3n predeterminada",clearAllCache:"Borrar Todo el Cach\xE9",removeAllCachedData:"Eliminar todos los datos en cach\xE9",clearAppDataDesc:"Restablece tu configuraci\xF3n, atajos y contactos. La aplicaci\xF3n se recargar\xE1 con la configuraci\xF3n predeterminada.",clearAllCacheDesc:"Elimina todos los datos en cach\xE9, incluidos los service workers y el almacenamiento del navegador. Usa esto si la aplicaci\xF3n no funciona correctamente.",settingsAutomaticallySaved:"La configuraci\xF3n se guarda autom\xE1ticamente"},fr:{...Ai,appName:"ChargeVoix",callForHelp:"Appeler pour Aide",aiAssistantDescription:"Notre assistant IA r\xE9pondra \xE0 vos questions sur les stations de recharge",locationSharedAutomatically:"Localisation partag\xE9e automatiquement pendant l'appel",voiceCall:"Appel Vocal",talkDirectlyWithAI:"Parlez directement avec le serveur IA",quickSMS:"SMS Rapide",useShortcutsForQueries:"Utilisez des raccourcis pour des requ\xEAtes instantan\xE9es",serverWillAnswerQuestions:"Le serveur r\xE9pondra \xE0 vos questions",connecting:"Connexion...",singleClickWillAnswer:"Un clic r\xE9pondra",demoMode:"MODE D\xC9MO",usingDemoCredentials:"Utilisation des identifiants de d\xE9monstration",updateYourProfile:"Mettez \xE0 jour votre profil",toPersonalizeExperience:"pour personnaliser votre exp\xE9rience",gettingLocation:"Obtention de la localisation...",locationReady:"Localisation pr\xEAte",locationUnavailable:"Localisation indisponible",callingServer:"Appel du serveur...",serverWillAnswer:"Le serveur r\xE9pondra \xE0 vos questions sur les stations de recharge.",unableToInitiateCall:"Impossible d'initier l'appel.",errorInitiatingCall:"Erreur lors de l'initiation de l'appel.",pleaseTryAgain:"Veuillez r\xE9essayer.",quickAccess:"Acc\xE8s Rapide",shortcuts:"raccourcis",smsShortcuts:"Raccourcis SMS",openYourSMSApp:"ouvrent votre application SMS",realTimeShortcuts:"Raccourcis en temps r\xE9el",connect
26ViaInternalWebhook:"connectent via webhook interne (reviennent au SMS si pas de r\xE9ponse ou hors ligne)",rate:"\xC9valuer",help:"Aide",complaint:"Plainte",callsUsed:"Appels Utilis\xE9s",lowCallsRemaining:"PEU D'APPELS RESTANTS",onlyCallsLeft:"Seulement",callsLeft:"appels restants",upgradeNow:"Mettre \xE0 niveau maintenant",forUnlimitedCalls:"pour des appels illimit\xE9s",updateProfile:"Mettre \xE0 jour le profil",toPersonalize:"pour personnaliser"},de:{...Ai,appName:"ChargeVoix",callForHelp:"Hilfe Anrufen",aiAssistantDescription:"Unser KI-Assistent beantwortet Ihre Fragen zu Ladestationen",locationSharedAutomatically:"Standort wird w\xE4hrend des Anrufs automatisch geteilt",voiceCall:"Sprachanruf",talkDirectlyWithAI:"Sprechen Sie direkt mit dem KI-Server",quickSMS:"Schnell-SMS",useShortcutsForQueries:"Verwenden Sie Verkn\xFCpfungen f\xFCr sofortige Anfragen",serverWillAnswerQuestions:"Server beantwortet Ihre Fragen",connecting:"Verbinden...",singleClickWillAnswer:"Ein Klick wird antworten",demoMode:"DEMO-MODUS",usingDemoCredentials:"Demo-Anmeldedaten werden verwendet",updateYourProfile:"Aktualisieren Sie Ihr Profil",toPersonalizeExperience:"um Ihre Erfahrung zu personalisieren",gettingLocation:"Standort wird abgerufen...",locationReady:"Standort bereit",locationUnavailable:"Standort nicht verf\xFCgbar",callingServer:"Server wird angerufen...",serverWillAnswer:"Der Server beantwortet Ihre Fragen zu Ladestationen.",unableToInitiateCall:"Anruf kann nicht initiiert werden.",errorInitiatingCall:"Fehler beim Initiieren des Anrufs.",pleaseTryAgain:"Bitte versuchen Sie es erneut.",quickAccess:"Schnellzugriff",shortcuts:"Verkn\xFCpfungen",smsShortcuts:"SMS-Verkn\xFCpfungen",openYourSMSApp:"\xF6ffnen Ihre SMS-App",realTimeShortcuts:"Echtzeit-Verkn\xFCpfungen",connectViaInternalWebhook:"verbinden \xFCber internen Webhook (f\xE4llt auf SMS zur\xFCck, wenn keine Antwort oder offline)",rate:"Bewerten",help:"Hilfe",complaint:"Beschwerde",callsUsed:"Anrufe Verwendet",lowCallsRemaining:"WENIGE ANRUFE \xDCBRIG",onlyCallsLeft:"Nur",callsLeft:"Anrufe \xFCbrig",upgradeNow:"Jetzt upgraden",forUnlimitedCalls:"f\xFCr unbegrenzte Anrufe",updateProfile:"Profil aktualisieren",toPersonalize:"zum Personalisieren"},it:{...Ai,appName:"ChargeVoix",callForHelp:"Chiama per Aiuto",aiAssistantDescription:"Il nostro assistente AI risponder\xE0 alle tue domande sulle stazioni di ricarica",locationSharedAutomatically:"Posizione condivisa automaticamente durante la chiamata",voiceCall:"Chiamata Vocale",talkDirectlyWithAI:"Parla direttamente con il server AI",quickSMS:"SMS Rapido",useShortcutsForQueries:"Usa scorciatoie per query istantanee",serverWillAnswerQuestions:"Il server risponder\xE0 alle tue domande",connecting:"Connessione...",singleClickWillAnswer:"Un clic risponder\xE0",demoMode:"MODALIT\xC0 DEMO",usingDemoCredentials:"Utilizzo credenziali demo",updateYourProfile:"Aggiorna il tuo profilo",toPersonalizeExperience:"per personalizzare la tua esperienza",gettingLocation:"Ottenimento posizione...",locationReady:"Posizione pronta",locationUnavailable:"Posizione non disponibile",callingServer:"Chiamata al server...",serverWillAnswer:"Il server risponder\xE0 alle tue domande sulle stazioni di ricarica.",unableToInitiateCall:"Impossibile avviare la chiamata.",errorInitiatingCall:"Errore nell'avvio della chiamata.",pleaseTryAgain:"Riprova.",quickAccess:"Accesso Rapido",shortcuts:"scorciatoie",smsShortcuts:"Scorciatoie SMS",openYourSMSApp:"aprono la tua app SMS",realTimeShortcuts:"Scorciatoie in tempo reale",connectViaInternalWebhook:"connettono tramite webhook interno (tornano a SMS se nessuna risposta o offline)",rate:"Valuta",help:"Aiuto",complaint:"Reclamo",callsUsed:"Chiamate Utilizzate",lowCallsRemaining:"POCHE CHIAMATE RIMANENTI",onlyCallsLeft:"Solo",callsLeft:"chiamate rimaste",upgradeNow:"Aggiorna ora",forUnlimitedCalls:"per chiamate illimitate",updateProfile:"Aggiorna profilo",toPersonalize:"per personalizzare"},pt:{...Ai,appName:"ChargeVoix",callForHelp:"Ligar para Ajuda",aiAssistantDescription:"Nosso assistente de IA responder\xE1 suas perguntas sobre esta\xE7\xF5es de carregamento",locationSharedAutomatically:"Localiza\xE7\xE3o compartilhada automaticamente durante a chamada",voiceCall:"Chamada de Voz",talkDirectlyWithAI:"Fale diretamente com o servidor de IA",quickSMS:"SMS R\xE1pido",useShortcutsForQueries:"Use atalhos para consultas instant\xE2neas",serverWillAnswerQuestions:"O servidor responder\xE1 suas perguntas",connecting:"Conectando...",singleClickWillAnswer:"Um clique responder\xE1",demoMode:"MODO DEMO",usingDemoCredentials:"Usando credenciais de demonstra\xE7\xE3o",updateYourProfile:"Atualize seu perfil",toPersonalizeExperience:"para personalizar sua experi\xEAncia",gettingLocation:"Obtendo localiza\xE7\xE3o...",locationReady:"Localiza\xE7\xE3o pronta",locationUnavailable:"Localiza\xE7\xE3o indispon\xEDvel",callingServer:"Chamando servidor...",serverWillAnswer:"O servidor responder\xE1 suas perguntas sobre esta\xE7\xF5es de carregamento.",unableToInitiateCall:"N\xE3o foi poss\xEDvel iniciar a chamada.",errorInitiatingCall:"Erro ao iniciar a chamada.",pleaseTryAgain:"Por favor, tente novamente.",quickAccess:"Acesso R\xE1pido",shortcuts:"atalhos",smsShortcuts:"Atalhos SMS",openYourSMSApp:"abrem seu aplicativo de SMS",realTimeShortcuts:"Atalhos em tempo real",connect
26ViaInternalWebhook:"conectam via webhook interno (voltam para SMS se sem resposta ou offline)",rate:"Avaliar",help:"Ajuda",complaint:"Reclama\xE7\xE3o",callsUsed:"Chamadas Usadas",lowCallsRemaining:"POUCAS CHAMADAS RESTANTES",onlyCallsLeft:"Apenas",callsLeft:"chamadas restantes",upgradeNow:"Atualizar agora",forUnlimitedCalls:"para chamadas ilimitadas",updateProfile:"Atualizar perfil",toPersonalize:"para personalizar"}};function qA(e){try{let r=ef[e];return r||(console.warn(`Translation not found for language: ${e}, falling back to en`),ef.en)}catch(t){return console.error("Error getting translations:",t),ef.en}}function Qt(e){try{return qA(e)}catch(t){return console.error("Error in useTranslation:",t),ef.en}}var $A=["en","es","fr","de","it","pt"],Wl="en";function eS(e){return $A.includes(e)}function WA(e){return e?eS(e)?e:(console.warn(`Invalid language: ${e}, falling back to:`,Wl),Wl):(console.warn("No language provided, using default:",Wl),Wl)}function tS(e,t,r){try{let a=WA(e);console.log("Language change:",{requested:e,validated:a,isValid:eS(e)}),t(a)}catch(a){console.error("Language change error:",a),r?r(a):t(Wl)}}var I=E(J()),GA=({settings:e,onUpdateSettings:t,onClose:r})=>{let a=(0,Gr.useRef)(null),[o,n]=(0,Gr.useState)("main"),[i,s]=(0,Gr.useState)(!1),[l,u]=(0,Gr.useState)(!1),[d,c]=(0,Gr.useState)(!1),f=Gr.default.useMemo(()=>{try{return Qt(e.language||"en")}catch(D){return console.error("Error loading translations:",D),Qt("en")}},[e.language]);(0,Gr.useEffect)(()=>{let D=ee=>{a.current&&!a.current.contains(ee.target)&&r()};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[r]);let m=D=>{tS(D,ee=>{t({language:ee}),console.log("Language updated successfully to:",ee),u(!0),setTimeout(()=>{u(!1)},2e3)},ee=>{console.error("Language change failed:",ee),alert("Error changing language. Reverting to English."),t({language:"en"})})},g=D=>{t({subscriptionTier:D}),s(!1),setTimeout(()=>{alert(`Successfully ${e.subscriptionTier==="Free"&&D!=="Free"?"upgraded":e.subscriptionTier!=="Free"&&D==="Free"?"downgraded":"switched"} to ${D} plan!`)},100)},x=()=>{confirm("Clear all app data? This will reset the app to default settings and reload the page.")&&$h()},v=()=>{confirm("Clear all cache including browser data? This will completely reset the app and reload the page.")&&K1()},p=()=>{confirm("Sign out and reset the app? You will need to complete the welcome setup again.")&&(Xh(),$h())},h=D=>{switch(D){case"Free":return"text-green-600 bg-green-100";case"Pro":return"text-blue-600 bg-blue-100";case"Enterprise":return"text-purple-600 bg-purple-100";default:return"text-gray-600 bg-gray-100"}},y=D=>{switch(D){case"Free":return Se;case"Pro":return kr;case"Enterprise":return Kt;default:return Se}},w=()=>{let D=y(e.subscriptionTier);return(0,I.jsxs)("div",{className:"space-y-2",children:[(0,I.jsxs)("button",{onClick:()=>n("profile"),className:"w-full flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors text-left",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-green-400 to-blue-500 rounded-full flex items-center justify-center",children:(0,I.jsx)(Wr,{className:"w-5 h-5 text-white"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:e.customerName}),(0,I.jsx)("div",{className:"text-xs text-gray-500",children:e.customerId})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400"})]}),(0,I.jsxs)("a",{href:"/subscribe",className:"w-full flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors text-left group",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:`w-10 h-10 rounded-full flex items-center justify-center ${e.subscriptionTier==="Free"?"bg-green-100":e.subscriptionTier==="Pro"?"bg-blue-100":"bg-purple-100"}`,children:(0,I.jsx)(pa,{className:`w-5 h-5 ${e.subscriptionTier==="Free"?"text-green-600":e.subscriptionTier==="Pro"?"text-blue-600":"text-purple-600"}`})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.subscriptionPlan}),(0,I.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,I.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${h(e.subscriptionTier)}`,children:e.subscriptionTier}),e.subscriptionTier==="Free"&&(0,I.jsx)("span",{className:"text-xs text-blue-600 group-hover:underline",children:f.upgradeNow})]})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400 group-hover:text-blue-600 transition-colors"})]}),(0,I.jsxs)("button",{onClick:()=>n("contacts"),className:"w-full flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors text-left",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center",children:(0,I.jsx)(Kt,{className:"w-5 h-5 text-red-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.emergencyContacts}),(0,I.jsxs)("div",{className:"text-xs text-gray-500",children:[e.emergencyContacts?.length||0," ",e.emergencyContacts?.length!==1?f.contacts:f.contact]})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400"})]}),(0,I.jsxs)("button",{onClick:()=>n("language"),className:"w-full flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors text-left",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center",children:(0,I.jsx)(Al,{className:"w-5 h-5 text-purple-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.language}),(0,I.jsx)("div",{className:"flex items-center space-x-1",children:(0,I.jsx)("span",{className:"text-xs text-gray-500",children:qh(e.language)})})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400"})]}),(0,I.jsxs)("button",{onClick:()=>n("help"),className:"w-full flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors text-left",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-amber-100 rounded-full flex items-center justify-center",children:(0,I.jsx)(bt,{className:"w-5 h-5 text-amber-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.helpAndTutorial}),(0,I.jsx)("div",{className:"text-xs text-gray-500",children:f.learnHowToUse})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400"})]}),(0,I.jsxs)("button",{onClick:()=>n("advanced"),className:"w-full flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg transition-colors text-left",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center",children:(0,I.jsx)($r,{className:"w-5 h-5 text-gray-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.advanced}),(0,I.jsx)("div",{className:"text-xs text-gray-500",children:f.clearCacheAndData})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400"})]}),(0,I.jsxs)("button",{onClick:()=>c(!0),className:"w-full flex items-center justify-between p-3 hover:bg-blue-50 rounded-lg transition-colors text-left group",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-blue-400 to-purple-500 rounded-full flex items-center justify-center group-hover:shadow-lg transition-all",children:(0,I.jsx)(ma,{className:"w-5 h-5 text-white"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.installApp}),(0,I.jsx)("div",{className:"text-xs text-gray-500",children:f.offlineAccessFaster})]})]}),(0,I.jsx)(_t,{className:"w-5 h-5 text-gray-400 group-hover:text-blue-600 transition-colors"})]}),(0,I.jsx)("div",{className:"border-t border-gray-200 my-2"}),(0,I.jsx)("button",{onClick:p,className:"w-full flex items-center justify-between p-3 hover:bg-red-50 rounded-lg transition-colors text-left group",children:(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center group-hover:bg-red-200 transition-colors",children:(0,I.jsx)(Ml,{className:"w-5 h-5 text-red-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-red-600",children:f.signOut}),(0,I.jsx)("div",{className:"text-xs text-red-500",children:f.resetAndShowWelcome})]})]})})]})},S=()=>(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsx)("div",{className:"p-4 bg-amber-50 border border-amber-200 rounded-lg",children:(0,I.jsxs)("p",{className:"text-sm text-amber-800 mb-2",children:["\u26A0\uFE0F ",(0,I.jsxs)("strong",{children:[f.warning,":"]}
26)," ",f.actionsCannotBeUndone]})}),(0,I.jsxs)("div",{className:"space-y-3",children:[(0,I.jsx)("button",{onClick:x,className:"w-full flex items-center justify-between p-4 bg-white border-2 border-orange-200 hover:border-orange-300 rounded-lg transition-colors text-left",children:(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center",children:(0,I.jsx)($r,{className:"w-5 h-5 text-orange-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.clearAppData}),(0,I.jsx)("div",{className:"text-xs text-gray-500",children:f.resetSettingsToDefault})]})]})}),(0,I.jsx)("button",{onClick:v,className:"w-full flex items-center justify-between p-4 bg-white border-2 border-red-200 hover:border-red-300 rounded-lg transition-colors text-left",children:(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center",children:(0,I.jsx)($r,{className:"w-5 h-5 text-red-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"font-medium text-gray-900",children:f.clearAllCache}),(0,I.jsx)("div",{className:"text-xs text-gray-500",children:f.removeAllCachedData})]})]})})]}),(0,I.jsxs)("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,I.jsxs)("p",{className:"text-xs text-blue-800",children:[(0,I.jsxs)("strong",{children:[f.clearAppData,":"]})," ",f.clearAppDataDesc]}),(0,I.jsxs)("p",{className:"text-xs text-blue-800 mt-2",children:[(0,I.jsxs)("strong",{children:[f.clearAllCache,":"]})," ",f.clearAllCacheDesc]})]})]}),L=()=>(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:f.name}),(0,I.jsx)("input",{type:"text",value:e.customerName,onChange:D=>t({customerName:D.target.value}),className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:f.customerId}),(0,I.jsx)("input",{type:"text",value:e.customerId,onChange:D=>t({customerId:D.target.value}),className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500"})]}),(0,I.jsxs)("div",{className:"p-3 bg-gray-50 rounded-lg",children:[(0,I.jsx)("div",{className:"text-xs font-medium text-gray-600 mb-1",children:f.subscription}),(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsxs)("span",{className:`text-sm font-semibold px-2 py-1 rounded ${h(e.subscriptionTier)}`,children:[e.subscriptionTier," ",f.plan]}),(0,I.jsx)("button",{onClick:()=>s(!0),className:"text-xs text-blue-600 hover:text-blue-700 font-medium",children:f.changePlan})]})]})]}),k=()=>{let D=[{code:"en",name:"English"},{code:"es",name:"Espa\xF1ol"},{code:"fr",name:"Fran\xE7ais"},{code:"de",name:"Deutsch"},{code:"it",name:"Italiano"},{code:"pt",name:"Portugu\xEAs"}];return(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:f.interfaceLanguage}),(0,I.jsx)("select",{value:e.language,onChange:ee=>m(ee.target.value),className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500",children:D.map(ee=>(0,I.jsx)("option",{value:ee.code,children:ee.name},ee.code))}),(0,I.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:f.languageForInterface})]}),l&&(0,I.jsx)("div",{className:"p-4 bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-300 rounded-lg shadow-lg animate-in zoom-in duration-300",children:(0,I.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)("div",{className:"w-12 h-12 bg-green-500 rounded-full flex items-center justify-center animate-bounce",children:(0,I.jsx)(Vt,{className:"w-7 h-7 text-white"})})}),(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsxs)("p",{className:"text-sm font-bold text-green-900 mb-1",children:["\u2728 ",f.languageUpdated]}),(0,I.jsxs)("p",{className:"text-xs text-green-800",children:[f.nowUsing," ",(0,I.jsx)("span",{className:"font-semibold",children:qh(e.language)})]})]})]})}),(0,I.jsx)("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg",children:(0,I.jsxs)("p",{className:"text-xs text-blue-800",children:[(0,I.jsxs)("strong",{children:[f.note,":"]}
26)," ",f.noteLanguageSelected]})})]})},N=()=>(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsxs)("div",{className:"p-4 bg-gradient-to-br from-green-50 to-blue-50 rounded-lg border border-green-200",children:[(0,I.jsxs)("h4",{className:"font-semibold text-gray-900 mb-2 flex items-center space-x-2",children:[(0,I.jsx)("span",{className:"w-6 h-6 bg-green-500 text-white rounded-full flex items-center justify-center text-xs",children:"1"}),(0,I.jsx)("span",{children:f.quickStart})]}),(0,I.jsx)("p",{className:"text-sm text-gray-700 leading-relaxed",children:f.tapCallButton})]}),(0,I.jsx)("div",{className:"p-3 bg-white border border-gray-200 rounded-lg",children:(0,I.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,I.jsx)("div",{className:"w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0",children:(0,I.jsx)(Se,{className:"w-4 h-4 text-green-600"})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-1",children:f.quickAccess}),(0,I.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed",children:f.saveFavoriteLocations})]})]})})]});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",onClick:r}),(0,I.jsxs)("div",{ref:a,className:"absolute top-16 right-4 w-80 max-w-[calc(100vw-2rem)] bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden animate-in slide-in-from-top-2 duration-300",children:[(0,I.jsx)("div",{className:"bg-gradient-to-r from-green-500 to-blue-500 text-white p-4",children:(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsxs)("div",{className:"flex items-center space-x-2",children:[o!=="main"&&(0,I.jsx)("button",{onClick:()=>n("main"),className:"p-1 hover:bg-white/20 rounded-full transition-colors mr-1",children:(0,I.jsx)(_t,{className:"w-5 h-5 rotate-180"})}),(0,I.jsx)("h3",{className:"font-semibold text-lg",children:(()=>{switch(o){case"profile":return f.profile;case"contacts":return f.emergencyContacts;case"language":return f.language;case"help":return f.helpAndTutorial;case"advanced":return f.advancedSettings;default:return f.settings}})()})]}),(0,I.jsx)("button",{onClick:r,className:"p-1 hover:bg-white/20 rounded-full transition-colors",children:(0,I.jsx)(ot,{className:"w-5 h-5"})})]})}),(0,I.jsxs)("div",{className:"p-4 max-h-[70vh] overflow-y-auto",children:[o==="main"&&w(),o==="profile"&&L(),o==="language"&&k(),o==="help"&&N(),o==="advanced"&&S(),o==="contacts"&&(0,I.jsx)(G1,{contacts:e.emergencyContacts||[],onUpdateContacts:D=>t({emergencyContacts:D})})]}),(0,I.jsx)("div",{className:"p-3 bg-gray-50 border-t border-gray-200",children:(0,I.jsx)("p",{className:"text-xs text-gray-500 text-center",children:f.settingsAutomaticallySaved})})]}),i&&(0,I.jsx)(X1,{currentTier:e.subscriptionTier,onUpgrade:g,onClose:()=>s(!1)}),d&&(0,I.jsx)(Jc,{onClose:()=>c(!1)})]})},rS=GA;var rf=E(Y());var tf=E(Y());var T=E(J()),XA=["\u26A1","\u{1F50C}","\u{1F3E0}","\u{1F3E2}","\u{1F3ED}","\u2B50","\u{1F4CD}","\u{1F3AF}","\u{1F69B}","\u26FD","\u{1F50B}","\u{1F49A}","\u{1F499}","\u2764\uFE0F","\u{1F7E2}","\u{1F535}","\u{1F7E1}"],YA=[{name:"Green",value:"#10b981"},{name:"Blue",value:"#3b82f6"},{name:"Purple",value:"#8b5cf6"},{name:"Red",value:"#ef4444"},{name:"Orange",value:"#f97316"},{name:"Yellow",value:"#eab308"},{name:"Pink",value:"#ec4899"},{name:"Teal",value:"#14b8a6"}],Cn=6,KA=({shortcuts:e,contacts:t,onUpdateShortcuts:r})=>{let[a,o]=(0,tf.useState)(!1),[n,i]=(0,tf.useState)(null),[s,l]=(0,tf.useState)({name:"",type:"charging_station",icon:"\u26A1",color:"#10b981",location:void 0,contactId:void 0,metadata:{useAutomation:!1}}),u=()=>{if(e.length>=Cn){alert(`Maximum ${Cn} shortcuts allowed. Please delete one to add more.`);return}o(!0),i(null),l({name:"",type:"charging_station",icon:"\u26A1",color:"#10b981",location:void 0,contactId:void 0,metadata:{useAutomation:!1}})},d=p=>{o(!1),i(p.id),l(p)},c=async()=>{if(!s.name?.trim()){alert("Please enter a name");return}if(s.type==="contact"&&!s.contactId){alert("Please select a contact");return}if(s.type!=="contact"&&!s.location)try{let p=await new Promise((h,y)=>{navigator.geolocation.getCurrentPosition(h,y)});s.location={latitude:p.coords.latitude,longitude:p.coords.longitude}}catch{alert("Unable to get location. Please enable location services.");return}if(n){let p=e.map(h=>h.id===n?{...s,id:n,usageCount:h.usageCount}
26:h);r(p)}else{if(e.length>=Cn){alert(`Maximum ${Cn} shortcuts allowed. Please delete one to add more.`);return}let p={id:Date.now().toString(),name:s.name,type:s.type,icon:s.icon,color:s.color,location:s.location,contactId:s.contactId,metadata:s.metadata,createdAt:Date.now(),usageCount:0};r([...e,p])}m()},f=p=>{confirm("Are you sure you want to delete this shortcut?")&&r(e.filter(h=>h.id!==p))},m=()=>{o(!1),i(null),l({name:"",type:"charging_station",icon:"\u26A1",color:"#10b981",location:void 0,contactId:void 0,metadata:{useAutomation:!1}})},g=p=>p==="charging_station"?(0,T.jsx)(Se,{className:"w-4 h-4"}):p==="location"?(0,T.jsx)(ur,{className:"w-4 h-4"}):p==="contact"?(0,T.jsx)(Wr,{className:"w-4 h-4"}):(0,T.jsx)(Se,{className:"w-4 h-4"}),x=p=>{switch(p){case"charging_station":return"Charging Station";case"location":return"Location";case"contact":return"Contact"}},v=e.length>=Cn;return(0,T.jsxs)("div",{className:"space-y-4",children:[(0,T.jsxs)("div",{className:"flex items-center justify-between",children:[(0,T.jsxs)("div",{children:[(0,T.jsx)("h4",{className:"text-sm font-medium text-gray-700",children:"Quick Access Shortcuts"}),(0,T.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:["One-tap shortcuts on home screen (max ",Cn,")"]})]}),!a&&!n&&!v&&(0,T.jsxs)("button",{onClick:u,className:"flex items-center space-x-1 px-3 py-1.5 bg-green-500 hover:bg-green-600 text-white text-sm rounded-md transition-colors",children:[(0,T.jsx)(_a,{className:"w-4 h-4"}),(0,T.jsx)("span",{children:"Add"})]})]}),e.length===0&&!a&&(0,T.jsxs)("div",{className:"text-center py-8 bg-gray-50 rounded-lg border border-gray-200",children:[(0,T.jsx)(Sn,{className:"w-12 h-12 text-gray-400 mx-auto mb-2"}),(0,T.jsx)("p",{className:"text-sm text-gray-600 mb-1",children:"No shortcuts added"}),(0,T.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:"Add favorite locations for quick access"}),(0,T.jsxs)("button",{onClick:u,className:"inline-flex items-center space-x-1 px-4 py-2 bg-green-500 hover:bg-green-600 text-white text-sm rounded-md transition-colors",children:[(0,T.jsx)(_a,{className:"w-4 h-4"}),(0,T.jsx)("span",{children:"Add Shortcut"})]})]}),(0,T.jsx)("div",{className:"grid grid-cols-2 gap-3",children:e.map(p=>{let h=p.metadata?.useAutomation===!0;return(0,T.jsxs)("div",{className:"relative p-3 rounded-lg border-2 transition-all hover:shadow-md",style:{borderColor:p.color,backgroundColor:`${p.color}10`},children:[(0,T.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,T.jsxs)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center text-xl relative",style:{backgroundColor:p.color},children:[p.icon,h&&(0,T.jsx)("div",{className:"absolute -top-1 -right-1 w-4 h-4 bg-purple-500 rounded-full flex items-center justify-center",children:(0,T.jsx)(Se,{className:"w-2.5 h-2.5 text-white"})})]}),(0,T.jsxs)("div",{className:"flex space-x-1",children:[(0,T.jsx)("button",{onClick:()=>d(p),className:"p-1 text-gray-400 hover:text-blue-600 rounded transition-colors",children:(0,T.jsx)(Yt,{className:"w-3 h-3"})}),(0,T.jsx)("button",{onClick:()=>f(p.id),className:"p-1 text-gray-400 hover:text-red-600 rounded transition-colors",children:(0,T.jsx)($r,{className:"w-3 h-3"})})]})]}),(0,T.jsx)("h5",{className:"font-medium text-gray-900 text-sm mb-1 truncate",children:p.name}),(0,T.jsxs)("div",{className:"flex items-center space-x-1 text-xs text-gray-600 mb-1",children:[g(p.type),(0,T.jsx)("span",{children:x(p.type)})]}),h&&(0,T.jsxs)("div",{className:"flex items-center space-x-1 text-xs text-purple-600 mb-1",children:[(0,T.jsx)(Se,{className:"w-3 h-3"}),(0,T.jsx)("span",{children:"Real-time"})]}),p.usageCount>0&&(0,T.jsxs)("div",{className:"mt-2 text-xs text-gray-500",children:["Used ",p.usageCount," time",p.usageCount!==1?"s":""]})]},p.id)})}),(a||n)&&(0,T.jsxs)("div",{className:"p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,T.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,T.jsx)("h5",{className:"font-medium text-gray-900",children:n?"Edit Shortcut":"Add Shortcut"}),(0,T.jsx)("button",{onClick:m,className:"p-1 text-gray-400 hover:text-gray-600 rounded transition-colors",children:(0,T.jsx)(ot,{className:"w-4 h-4"})})]}),(0,T.jsxs)("div",{className:"space-y-3",children:[(0,T.jsxs)("div",{children:[(0,T.jsxs)("label",{className:"block text-xs text-gray-600 mb-1",children:["Name ",(0,T.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,T.jsx)("input",{type:"text",value:s.name||"",onChange:p=>l({...s,name:p.target.value}),placeholder:"e.g., Tesla Supercharger Downtown",className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:"Type"}
26),(0,T.jsxs)("select",{value:s.type,onChange:p=>l({...s,type:p.target.value}),className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500",children:[(0,T.jsx)("option",{value:"charging_station",children:"Charging Station"}),(0,T.jsx)("option",{value:"location",children:"Location"}),(0,T.jsx)("option",{value:"contact",children:"Contact"})]})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-2",children:"Execution Mode"}),(0,T.jsxs)("div",{className:"space-y-2",children:[(0,T.jsxs)("label",{className:"flex items-start space-x-2 p-2 border border-gray-300 rounded-md cursor-pointer hover:bg-gray-50",children:[(0,T.jsx)("input",{type:"radio",name:"executionMode",checked:!s.metadata?.useAutomation,onChange:()=>l({...s,metadata:{...s.metadata,useAutomation:!1}}),className:"mt-0.5"}),(0,T.jsxs)("div",{className:"flex-1",children:[(0,T.jsxs)("div",{className:"flex items-center space-x-1 text-sm font-medium text-gray-900",children:[(0,T.jsx)(MessageSquare,{className:"w-4 h-4"}),(0,T.jsx)("span",{children:"SMS"})]}),(0,T.jsx)("p",{className:"text-xs text-gray-600 mt-0.5",children:"Send SMS with location data to server"})]})]}),(0,T.jsxs)("label",{className:"flex items-start space-x-2 p-2 border border-purple-300 rounded-md cursor-pointer hover:bg-purple-50",children:[(0,T.jsx)("input",{type:"radio",name:"executionMode",checked:s.metadata?.useAutomation===!0,onChange:()=>l({...s,metadata:{...s.metadata,useAutomation:!0}}),className:"mt-0.5"}),(0,T.jsxs)("div",{className:"flex-1",children:[(0,T.jsxs)("div",{className:"flex items-center space-x-1 text-sm font-medium text-gray-900",children:[(0,T.jsx)(Se,{className:"w-4 h-4 text-purple-600"}),(0,T.jsx)("span",{children:"Real-time"})]}),(0,T.jsx)("p",{className:"text-xs text-gray-600 mt-0.5",children:"Connect via Internet (falls back to SMS if offline)"})]})]})]})]}),s.type==="contact"&&(0,T.jsxs)("div",{children:[(0,T.jsxs)("label",{className:"block text-xs text-gray-600 mb-1",children:["Select Contact ",(0,T.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,T.jsxs)("select",{value:s.contactId||"",onChange:p=>l({...s,contactId:p.target.value}),className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500",children:[(0,T.jsx)("option",{value:"",children:"Select a contact"}),t.map(p=>(0,T.jsxs)("option",{value:p.id,children:[p.name," (",p.relationship,")"]},p.id))]})]}),s.type==="charging_station"&&(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:"Station ID (Optional)"}),(0,T.jsx)("input",{type:"text",value:s.metadata?.stationId||"",onChange:p=>l({...s,metadata:{...s.metadata,stationId:p.target.value}}),placeholder:"e.g., TSLA-001",className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"})]}),s.type==="charging_station"&&(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:"Charger Power (Optional)"}),(0,T.jsx)("input",{type:"text",value:s.metadata?.chargerPower||"",onChange:p=>l({...s,metadata:{...s.metadata,chargerPower:p.target.value}}),placeholder:"e.g., 22kW",className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-2",children:"Icon"}),(0,T.jsx)("div",{className:"grid grid-cols-9 gap-2",children:XA.map(p=>(0,T.jsx)("button",{type:"button",onClick:()=>l({...s,icon:p}),className:`w-8 h-8 rounded-md flex items-center justify-center text-lg transition-all ${s.icon===p?"bg-green-500 scale-110":"bg-white hover:bg-gray-100"}`,children:p},p))})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-2",children:"Color"}),(0,T.jsx)("div",{className:"grid grid-cols-4 gap-2",children:YA.map(p=>(0,T.jsx)("button",{type:"button",onClick:()=>l({...s,color:p.value}),className:`px-3 py-2 rounded-md text-xs font-medium transition-all ${s.color===p.value?"ring-2 ring-offset-2 ring-gray-400 scale-105":"hover:scale-105"}`,style:{backgroundColor:p.value,color:"white"},children:p.name},p.value))})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)("label",{className:"block text-xs text-gray-600 mb-1",children:"Notes (Optional)"}),(0,T.jsx)("textarea",{value:s.metadata?.notes||"",onChange:p=>l({...s,metadata:{...s.metadata,notes:p.target.value}}),placeholder:"Add any notes...",rows:2,className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"})]}),s.type!=="contact"&&(0,T.jsx)("div",{className:"p-3 bg-blue-100 border border-blue-200 rounded-md",children:(0,T.jsx)("p",{className:"text-xs text-blue-800",children:"\u{1F4CD} Current location will be saved when you create this shortcut"})}),s.metadata?.useAutomation&&(0,T.jsx)("div",{className:"p-3 bg-purple-100 border border-purple-200 rounded-md",children:(0,T.jsx)("p",{className:"text-xs text-purple-800",children:"\u26A1 This shortcut will c
26onnect via Internet in real-time. If the connection fails or no internet is available, it will automatically fall back to SMS."})}),(0,T.jsxs)("div",{className:"flex space-x-2 pt-2",children:[(0,T.jsxs)("button",{onClick:c,className:"flex-1 flex items-center justify-center space-x-2 px-4 py-2 bg-green-500 hover:bg-green-600 text-white text-sm rounded-md transition-colors",children:[(0,T.jsx)(_l,{className:"w-4 h-4"}),(0,T.jsx)("span",{children:"Save Shortcut"})]}),(0,T.jsx)("button",{onClick:m,className:"px-4 py-2 bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm rounded-md transition-colors",children:"Cancel"})]})]})]}),e.length>0&&!a&&!n&&(0,T.jsx)("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg",children:(0,T.jsx)("p",{className:"text-xs text-blue-800",children:"\u{1F4A1} Shortcuts can use SMS or connect via Internet in real-time with automatic SMS fallback"})}),v&&!a&&!n&&(0,T.jsx)("div",{className:"p-3 bg-amber-50 border border-amber-200 rounded-lg",children:(0,T.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,T.jsx)(AlertCircle,{className:"w-4 h-4 text-amber-600 flex-shrink-0 mt-0.5"}),(0,T.jsxs)("p",{className:"text-xs text-amber-800",children:[(0,T.jsxs)("strong",{children:["Maximum ",Cn," shortcuts reached."]})," Delete one to add more."]})]})})]})},aS=KA;var nt=E(J()),QA=({shortcuts:e,onUpdateShortcuts:t,onClose:r})=>{let a=(0,rf.useRef)(null);return(0,rf.useEffect)(()=>{let o=n=>{a.current&&!a.current.contains(n.target)&&r()};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[r]),(0,nt.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center p-4 z-50 animate-in fade-in duration-200",children:(0,nt.jsxs)("div",{ref:a,className:"bg-white rounded-2xl shadow-2xl w-full max-w-md max-h-[85vh] overflow-hidden flex flex-col animate-in zoom-in-95 slide-in-from-bottom-4 duration-300",children:[(0,nt.jsxs)("div",{className:"bg-gradient-to-r from-yellow-400 to-orange-500 p-6 flex items-center justify-between",children:[(0,nt.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nt.jsx)("div",{className:"w-12 h-12 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center",children:(0,nt.jsx)("span",{className:"text-3xl text-white",children:"\u26A1"})}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("h2",{className:"text-xl font-bold text-white",children:"Quick Access"}),(0,nt.jsx)("p",{className:"text-sm text-white/90",children:"Manage your shortcuts"})]})]}),(0,nt.jsx)("button",{onClick:r,className:"p-2 hover:bg-white/20 rounded-full transition-colors",children:(0,nt.jsx)(ot,{className:"w-6 h-6 text-white"})})]}),(0,nt.jsx)("div",{className:"flex-1 overflow-y-auto p-6",children:(0,nt.jsx)(aS,{shortcuts:e,onUpdateShortcuts:t})}),(0,nt.jsx)("div",{className:"p-4 bg-gray-50 border-t border-gray-200",children:(0,nt.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-600",children:[(0,nt.jsxs)("span",{children:[e.length," shortcut",e.length!==1?"s":""]}),(0,nt.jsx)("span",{children:"Max 6 shortcuts"})]})})]})})},oS=QA;var Ti=E(Y());var Pe=E(J()),JA=({onNavigate:e,language:t})=>{let[r,a]=(0,Ti.useState)(!1),o=Ti.default.useMemo(()=>{try{return Qt(t||"en")}catch(s){return console.error("Error loading translations:",s),Qt("en")}},[t]);(0,Ti.useEffect)(()=>{if(!localStorage.getItem("hasSeenHelpPulse")){let l=setTimeout(()=>{a(!0),setTimeout(()=>{a(!1),localStorage.setItem("hasSeenHelpPulse","true")},5e3)},1e3);return()=>clearTimeout(l)}},[]);let n=()=>{a(!1),localStorage.setItem("hasSeenHelpPulse","true"),e("help")};return(0,Pe.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-gradient-to-t from-white via-white/98 to-white/95 backdrop-blur-md border-t border-gray-200/80 shadow-[0_-4px_20px_rgba(0,0,0,0.08)] z-30",children:(0,Pe.jsx)("div",{className:"max-w-md mx-auto px-4 py-3",children:(0,Pe.jsxs)("div",{className:"flex justify-around items-center",children:[(0,Pe.jsxs)("button",{onClick:()=>{alert("\u2B50 Thank you for your feedback! Rating feature coming soon.")},className:"group flex flex-col items-center space-y-1 px-3 py-2 rounded-xl hover:bg-gradient-to-br hover:from-yellow-50 hover:to-amber-50 active:scale-95 transition-all duration-200 min-w-[80px]",children:[(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("div",{className:"absolute inset-0 bg-yellow-400/20 rounded-full blur-md opacity-0 group-hover:opacity-100 transition-opacity"}),(0,Pe.jsx)(Sn,{className:"w-6 h-6 text-yellow-500 relative group-hover:scale-110 group-active:animate-bounce transition-transform duration-200",strokeWidth:2})]}),(0,Pe.jsx)("span",{className:"text-xs text-gray-700 font-medium group-hover:text-yellow-700 transition-colors",children:o.rate})]}),(0,Pe.jsxs)("button",{onClick:n,className:"group relative flex flex-col items-center space-y-1 px-3 py-2 rounded-xl hover:bg-gradient-to-br hover:from-blue-50 hover:to-cyan-50 active:scale-95 transition-all duration-200 min-w-[80px]",children:[r&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-14 h-14 bg-blue-400/30 rounded-full animate-ping"}),(0,Pe.jsx)("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-12 h-12 bg-blue-400 rounded-full animate-ping opacity-75"}),(0,Pe.jsx)("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-10 h-10 bg-blue-300 rounded-full animate-pulse opacity-50"})]}),(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("div",{className:"absolute inset-0 bg-blue-400/20 rounded-full blur-md opacity-0 group-hover:opacity-100 transition-opacity"}),(0,Pe.jsx)(bt,{className:`w-6 h-6 text-blue-500 relative z-10 group-hover:scale-110 transition-transform duration-200 ${r?"animate-bounce":""}`,strokeWidth:2})]}),(0,Pe.jsx)("span",{className:"text-xs text-gray-700 font-medium relative z-10 group-hover:text-blue-700 transition-colors",children:o.help})]}),(0,Pe.jsxs)("button",{onClick:()=>e("complaint"),className:"group flex flex-col items-center space-y-1 px-3 py-2 rounded-xl hover:bg-gradient-to-br hover:from-red-50 hover:to-pink-50 active:scale-95 transition-all duration-200 min-w-[80px]",children:[(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("div",{className:"absolute inset-0 bg-red-400/20 rounded-full blur-md opacity-0 group-hover:opacity-100 transition-opacity"}),(0,Pe.jsx)(at,{className:"w-6 h-6 text-red-500 relative group-hover:scale-110 group-active:animate-bounce transition-transform duration-200",strokeWidth:2})]}),(0,Pe.jsx)("span",{className:"text-xs text-gray-700 font-medium group-hover:text-red-700 transition-colors",children:o.complaint})]})]})})})},nS=JA;var Mi=E(Y());var ye=E(J()),ZA=({onInitiateCall:e,isProcessing:t,label:r="One Press to Call",sublabel:a,singleClickText:o="Single click will answer"})=>{let[n,i]=(0,Mi.useState)(!1),[s,l]=(0,Mi.useState)("webrtc"),[u,d]=(0,Mi.useState)(navigator.onLine);return(0,Mi.useEffect)(()=>{let m=()=>{d(!0),l("webrtc")},g=()=>{d(!1),l("phone")};return window.addEventListener("online",m),window.addEventListener("offline",g),()=>{window.removeEventListener("online",m),window.removeEventListener("offline",g)}},[]),(0,ye.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,ye.jsxs)("div",{className:"relative",children:[!t&&(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)("div",{className:"absolute inset-0 rounded-full bg-green-400/30 blur-xl animate-pulse"}),(0,ye.jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-green-400 animate-ping opacity-75"}),(0,ye.jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-green-300 animate-pulse"}),(0,ye.jsx)("div",{className:"absolute inset-2 rounded-full bg-green-500/20 blur-md animate-pulse"})]}),(0,ye.jsx)("button",{onClick:async()=>{t||(i(!0),await e(s),setTimeout(()=>{i(!1)},1e3))},disabled:t,className:`relative w-32 h-32 rounded-full flex items-center justify-center transition-all duration-300 ${t?"bg-gray-400 cursor-not-allowed":n?"bg-gradient-to-br from-green-600 via-green-500 to-green-800 scale-95 shadow-[0_0_40px_rgba(34,197,94,0.6)]":"bg-gradient-to-br from-green-400 via-green-500 to-green-600 hover:from-green-500 hover:via-green-400 hover:to-green-700 hover:scale-110 hover:shadow-[0_0_50px_rgba(34,197,94,0.8)] active:scale-95"} shadow-2xl`,children:t?(0,ye.jsx)("div",{className:"w-16 h-16 border-4 border-white border-t-transparent roun
26ded-full animate-spin"}):(0,ye.jsx)(St,{className:`w-16 h-16 text-white transition-transform duration-300 ${n?"rotate-12 scale-90":"rotate-0 scale-100"}`,strokeWidth:2.5})}),!t&&(0,ye.jsx)("button",{onClick:()=>{u&&l(m=>m==="webrtc"?"phone":"webrtc")},disabled:!u,className:`absolute -bottom-3 left-1/2 -translate-x-1/2 z-10 flex items-center space-x-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-300 shadow-lg ${u?s==="webrtc"?"bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 hover:shadow-xl":"bg-gradient-to-r from-purple-500 to-purple-600 text-white hover:from-purple-600 hover:to-purple-700 hover:shadow-xl":"bg-gray-300 text-gray-500 cursor-not-allowed"}`,title:u?`Switch to ${s==="webrtc"?"Phone":"WebRTC"} call`:"No internet - Phone call mode only",children:s==="webrtc"?(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)($l,{className:"w-3.5 h-3.5"}),(0,ye.jsx)("span",{children:"WebRTC"})]}):(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(Io,{className:"w-3.5 h-3.5"}),(0,ye.jsx)("span",{children:"Phone"})]})})]}),(0,ye.jsxs)("div",{className:"text-center",children:[(0,ye.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:t?"Connecting...":r}),a&&!t&&(0,ye.jsx)("p",{className:"text-sm text-gray-600 mt-1",children:a})]}),!t&&(0,ye.jsxs)("div",{className:"relative mt-2",children:[(0,ye.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-green-400/20 to-emerald-400/20 rounded-full blur-sm"}),(0,ye.jsxs)("div",{className:"relative flex items-center space-x-2 px-4 py-2 bg-gradient-to-r from-green-50 to-emerald-50 border border-green-200 rounded-full shadow-sm",children:[(0,ye.jsx)("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),(0,ye.jsx)("span",{className:"text-xs text-green-700 font-medium",children:o})]})]}),!t&&!u&&(0,ye.jsxs)("div",{className:"flex items-center space-x-2 px-3 py-1.5 bg-yellow-50 border border-yellow-200 rounded-full shadow-sm",children:[(0,ye.jsx)("div",{className:"w-2 h-2 bg-yellow-500 rounded-full animate-pulse"}),(0,ye.jsx)("span",{className:"text-xs text-yellow-700 font-medium",children:"No internet - Phone mode active"})]})]})},af=ZA;var Eo=E(Y());var EH=E(Y());var Ln=E(J()),e5=({countdown:e})=>(0,Ln.jsxs)("div",{className:"flex flex-col items-center mb-6",children:[(0,Ln.jsxs)("div",{className:"w-24 h-24 rounded-full bg-red-100 flex items-center justify-center mb-4 relative",children:[(0,Ln.jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-red-600 animate-ping opacity-75"}),(0,Ln.jsx)("span",{className:"text-4xl font-bold text-red-600 z-10",children:e})]}),(0,Ln.jsxs)("p",{className:"text-center text-gray-700 font-medium",children:["Sending emergency alert in ",e," second",e!==1?"s":"","..."]})]}),iS=e5;var RH=E(Y());var he=E(J()),t5=({hasEmergencyContacts:e,emergencyContacts:t})=>(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mb-4",children:[(0,he.jsxs)("h4",{className:"font-semibold text-red-800 mb-2 flex items-center space-x-2",children:[(0,he.jsx)(at,{className:"w-4 h-4"}),(0,he.jsx)("span",{children:"Emergency Alert Will Include:"})]}),(0,he.jsxs)("ul",{className:"space-y-2 text-sm text-red-700",children:[(0,he.jsxs)("li",{className:"flex items-start space-x-2",children:[(0,he.jsx)(ur,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,he.jsx)("span",{children:"Your current GPS location and address"})]}),(0,he.jsxs)("li",{className:"flex items-start space-x-2",children:[(0,he.jsx)(St,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,he.jsx)("span",{children:"Your customer ID and contact information"})]}),(0,he.jsxs)("li",{className:"flex items-start space-x-2",children:[(0,he.jsx)(xn,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,he.jsx)("span",{children:"Timestamp of emergency alert"})]}),e&&(0,he.jsxs)("li",{className:"flex items-start space-x-2",children:[(0,he.jsx)(Kt,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,he.jsxs)("span",{children:["Notify ",t.length," emergency contact",t.length>
261?"s":""]})]})]})]}),e&&(0,he.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-4",children:[(0,he.jsxs)("h4",{className:"font-semibold text-blue-800 mb-2 flex items-center space-x-2",children:[(0,he.jsx)(Kt,{className:"w-4 h-4"}),(0,he.jsx)("span",{children:"Will Notify:"})]}),(0,he.jsx)("ul",{className:"space-y-1 text-sm text-blue-700",children:t.map((r,a)=>(0,he.jsxs)("li",{className:"flex items-center space-x-2",children:[(0,he.jsxs)("span",{className:"font-medium",children:[a+1,"."]}),(0,he.jsx)("span",{children:r.name}),(0,he.jsxs)("span",{className:"text-blue-600",children:["(",r.relationship,")"]}),r.isPrimary&&(0,he.jsx)("span",{className:"text-xs bg-blue-200 px-1.5 py-0.5 rounded",children:"PRIMARY"})]},r.id))})]}),!e&&(0,he.jsx)("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-3 mb-4",children:(0,he.jsx)("p",{className:"text-xs text-yellow-800 text-center",children:"\u2139\uFE0F No emergency contacts configured. Only service will be notified. Add contacts in Settings."})}),(0,he.jsx)("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-3 mb-4",children:(0,he.jsx)("p",{className:"text-xs text-yellow-800 text-center",children:"\u26A0\uFE0F Only use this button in genuine emergencies. False alarms may result in service suspension."})})]}),sS=t5;var OH=E(Y());var Qe=E(J()),r5=({status:e,statusMessage:t})=>e==="sending"?(0,Qe.jsxs)("div",{className:"flex flex-col items-center py-8",children:[(0,Qe.jsx)("div",{className:"w-16 h-16 border-4 border-red-600 border-t-transparent rounded-full animate-spin mb-4"}),(0,Qe.jsx)("p",{className:"text-center text-gray-700 font-medium mb-2",children:"Sending Emergency Alert..."}),(0,Qe.jsx)("p",{className:"text-center text-sm text-gray-500",children:t})]}):e==="success"?(0,Qe.jsxs)("div",{className:"flex flex-col items-center py-8",children:[(0,Qe.jsx)("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Qe.jsx)(Vt,{className:"w-10 h-10 text-green-600"})}),(0,Qe.jsx)("p",{className:"text-center text-gray-700 font-medium mb-2",children:"Emergency Alert Sent!"}),(0,Qe.jsx)("p",{className:"text-center text-sm text-gray-600 mb-4",children:t}),(0,Qe.jsx)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4 w-full",children:(0,Qe.jsx)("p",{className:"text-sm text-green-800 text-center",children:"Emergency services have been notified of your location. Stay safe and wait for assistance."})})]}):e==="error"?(0,Qe.jsxs)("div",{className:"flex flex-col items-center py-8",children:[(0,Qe.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mb-4",children:(0,Qe.jsx)(at,{className:"w-10 h-10 text-red-600"})}),(0,Qe.jsx)("p",{className:"text-center text-gray-700 font-medium mb-2",children:"Alert Failed"}),(0,Qe.jsx)("p",{className:"text-center text-sm text-gray-600 mb-4",children:t}),(0,Qe.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 w-full mb-4",children:[(0,Qe.jsx)("p",{className:"text-sm text-red-800 text-center font-medium mb-2",children:"Please call emergency services immediately:"}),(0,Qe.jsx)("a",{href:"tel:911",className:"block w-full py-3 bg-red-600 hover:bg-red-700 text-white rounded-lg font-bold text-center transition-colors",children:"\u{1F4DE} Call 911"})]})]}):null,lS=r5;var Ie=E(J()),a5=({settings:e})=>{let[t,r]=(0,Eo.useState)(!1),[a,o]=(0,Eo.useState)(3),[n,i]=(0,Eo.useState)(!1),[s,l]=(0,Eo.useState)("idle"),[u,d]=(0,Eo.useState)("");(0,Eo.useEffect)(()=>{let v;return t&&a>0&&!n?v=setTimeout(()=>{o(a-1)},1e3):t&&a===0&&!n&&m(),()=>{v&&clearTimeout(v)}},[t,a,n]);let c=()=>{r(!0),o(3),l("idle")},f=()=>{r(!1),o(3),l("idle"),d("")},m=async()=>{i(!0),l("sending"),d("Getting location and sending emergency alert...");try{let v=await No(),p=e.emergencyContacts?.filter(w=>w.notifyOnEmergency)||[],h=Y1(e.customerName,e.customerId,v,e.subscriptionTier,p),y=await jh(h);if(p.length>0){let w=`\u{1F6A8} EMERGENCY ALERT from ${e.customerName}
27
28`,S=v.error?`Location: ${v.error}`:`Location: ${v.latitude.toFixed(6)},${v.longitude.toFixed(6)}
29${v.address?`Address: ${v.address}
30`:""}Map: https://maps.google.com/?q=${v.latitude},${v.longitude}`,L=w+S+`
31
32Time: ${new Date().toLocaleString()}
33
34This person has triggered an emergency alert. Please check on them immediately.`;for(let k of p)try{console.log(`Sending emergency alert to ${k.name} at ${k.phone}`)}catch(N){console.error(`Failed to notify ${k.name}:`,N)}}if(y){l("success");let w=p.length>0?` ${p.length} emergency contact${p.length>1?"s":""} notified.`:"";d(`\u2705 Emergency alert sent successfully!${w} Help is on the way.`),setTimeout(()=>{f()},5e3)}else l("error"),d("\u26A0\uFE0F Failed to send emergency alert. Please call emergency services directly.")}catch(v){console.error("Emergency send error:",v),l("error"),d("\u26A0\uFE0F Error sending emergency alert. Please call emergency services directly.")}finally{i(!1)}},g=e.emergencyContacts?.filter(v=>v.notifyOnEmergency)||[],x=g.length>0;return(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsxs)("div",{className:"fixed bottom-24 right-4 z-40",children:[(0,Ie.jsx)("div",{className:"absolute inset-0 bg-red-500/40 rounded-full blur-xl animate-pulse"}),(0,Ie.jsx)("div",{className:"absolute inset-0 bg-red-600/30 rounded-full blur-lg animate-ping"}),(0,Ie.jsx)("button",{onClick:c,className:"relative w-16 h-16 bg-gradient-to-br from-red-500 via-red-600 to-red-700 hover:from-red-600 hover:via-red-700 hover:to-red-800 text-white rounded-full shadow-[0_0_30px_rgba(239,68,68,0.6)] hover:shadow-[0_0_50px_rgba(239,68,68,0.9)] flex items-center justify-center transition-all duration-200 hover:scale-110 hover:animate-[shake_0.5s_ease-in-out] active:scale-95 animate-pulse","aria-label":"Emergency Alert",children:(0,Ie.jsx)(at,{className:"w-8 h-8 text-white drop-shadow-lg",strokeWidth:2.5})})]}),t&&(0,Ie.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/70 backdrop-blur-sm",children:(0,Ie.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl max-w-md w-full overflow-hidden animate-in slide-in-from-bottom-4 duration-300",children:[(0,Ie.jsx)("div",{className:"bg-gradient-to-r from-red-600 to-red-700 text-white p-4",children:(0,Ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ie.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ie.jsx)(at,{className:"w-6 h-6 animate-pulse",strokeWidth:2.5}),(0,Ie.jsx)("h3",{className:"font-bold text-lg",children:"EMERGENCY ALERT"})]}),s==="idle"&&(0,Ie.jsx)("button",{onClick:f,className:"p-1 hover:bg-white/20 rounded-full transition-colors",children:(0,Ie.jsx)("span",{className:"text-xl",children:"\u2715"})})]})}),(0,Ie.jsxs)("div",{className:"p-6",children:[s==="idle"&&(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(iS,{countdown:a}),(0,Ie.jsx)(sS,{hasEmergencyContacts:x,emergencyContacts:g}),(0,Ie.jsx)("button",{onClick:f,className:"w-full py-3 bg-gray-200 hover:bg-gray-300 text-gray-700 rounded-lg font-medium transition-colors",children:"Cancel Emergency Alert"})]}),(0,Ie.jsx)(lS,{status:s,statusMessage:u}),s==="error"&&(0,Ie.jsx)("button",{onClick:f,className:"w-full py-2 bg-gray-200 hover:bg-gray-300 text-gray-700 rounded-lg font-medium transition-colors",children:"Close"})]})]})})]})},of=a5;var va=E(Y());var W=E(Y()),uu=E(zc());function Ut(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var o5=typeof Symbol=="function"&&Symbol.observable||"@@observable",uS=o5,Yh=()=>Math.random().toString(36).substring(7).split("").join("."),n5={INIT:`@@redux/INIT${Yh()}`,REPLACE:`@@redux/REPLACE${Yh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yh()}`},dS=n5;function i5(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Kh(e,t,r){if(typeof e!="function")throw new Error(Ut(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ut(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ut(1));return r(Kh)(e,t)}let a=e,o=t,n=new Map,i=n,s=0,l=!1;
34function u(){i===n&&(i=new Map,n.forEach((v,p)=>{i.set(p,v)}))}function d(){if(l)throw new Error(Ut(3));return o}function c(v){if(typeof v!="function")throw new Error(Ut(4));if(l)throw new Error(Ut(5));let p=!0;u();let h=s++;return i.set(h,v),function(){if(p){if(l)throw new Error(Ut(6));p=!1,u(),i.delete(h),n=null}}}function f(v){if(!i5(v))throw new Error(Ut(7));if(typeof v.type>"u")throw new Error(Ut(8));if(typeof v.type!="string")throw new Error(Ut(17));if(l)throw new Error(Ut(9));try{l=!0,o=a(o,v)}finally{l=!1}return(n=i).forEach(h=>{h()}),v}function m(v){if(typeof v!="function")throw new Error(Ut(10));a=v,f({type:dS.REPLACE})}function g(){let v=c;return{subscribe(p){if(typeof p!="object"||p===null)throw new Error(Ut(11));function h(){let w=p;w.next&&w.next(d())}return h(),{unsubscribe:v(h)}},[uS](){return this}}}return f({type:dS.INIT}),{dispatch:f,subscribe:c,getState:d,replaceReducer:m,[uS]:g}}function cS(e,t){return function(...r){return t(e.apply(this,r))}}function Qh(e,t){if(typeof e=="function")return cS(e,t);if(typeof e!="object"||e===null)throw new Error(Ut(16));let r={};for(let a in e){let o=e[a];typeof o=="function"&&(r[a]=cS(o,t))}return r}function Jh(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function fS(...e){return t=>(r,a)=>{let o=t(r,a),n=()=>{throw new Error(Ut(15))},i={getState:o.getState,dispatch:(l,...u)=>n(l,...u)},s=e.map(l=>l(i));return n=Jh(...s)(o.dispatch),{...o,dispatch:n}}}var le=E(Y(),1),lT=E(hS(),1),m5=le.version.startsWith("19"),g5=Symbol.for(m5?"react.transitional.element":"react.element"),h5=Symbol.for("react.portal"),v5=Symbol.for("react.fragment"),x5=Symbol.for("react.strict_mode"),y5=Symbol.for("react.profiler"),w5=Symbol.for("react.consumer"),b5=Symbol.for("react.context"),CS=Symbol.for("react.forward_ref"),S5=Symbol.for("react.suspense"),C5=Symbol.for("react.suspense_list"),r0=Symbol.for("react.memo"),L5=Symbol.for("react.lazy");var I5=CS,k5=r0;function N5(e){if(typeof e=="object"&&e!==null){let{$$typeof:t}=e;switch(t){case g5:switch(e=e.type,e){case v5:case y5:case x5:case S5:case C5:return e;default:switch(e=e&&e.$$typeof,e){case b5:case CS:case L5:case r0:return e;case w5:return e;default:return t}}case h5:return t}}}function E5(e){return N5(e)===r0}function P5(e,t,r,a,{areStatesEqual:o,areOwnPropsEqual:n,areStatePropsEqual:i}){let s=!1,l,u,d,c,f;function m(h,y){return l=h,u=y,d=e(l,u),c=t(a,u),f=r(d,c,u),s=!0,f}function g(){return d=e(l,u),t.dependsOnOwnProps&&(c=t(a,u)),f=r(d,c,u),f}function x(){return e.dependsOnOwnProps&&(d=e(l,u)),t.dependsOnOwnProps&&(c=t(a,u)),f=r(d,c,u),f}function v(){let h=e(l,u),y=!i(h,d);return d=h,y&&(f=r(d,c,u)),f}function p(h,y){let w=!n(y,u),S=!o(h,l,y,u);return l=h,u=y,w&&S?g():w?x():S?v():f}return function(y,w){return s?p(y,w):m(y,w)}}function D5(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:a,...o}){let n=t(e,o),i=r(e,o),s=a(e,o);return P5(n,i,s,e,o)}function R5(e,t){let r={};for(let a in e){let o=e[a];typeof o=="function"&&(r[a]=(...n)=>t(o(...n)))}return r}function e0(e){return function(r){let a=e(r);function o(){return a}return o.dependsOnOwnProps=!1,o}}function vS(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function LS(e,t){return function(a,{displayName:o}){let n=function(s,l){return n.dependsOnOwnProps?n.mapToProps(s,l):n.mapToProps(s,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(s,l){n.mapToProps=e,n.dependsOnOwnProps=vS(e);let u=n(s,l);return typeof u=="function"&&(n.mapToProps=u,n.dependsOnOwnProps=vS(u),u=n(s,l)),u},n}}function a0(e,t){return(r,a)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${a.wrappedComponentName}.`)}}function A5(e){return e&&typeof e=="object"?e0(t=>R5(e,t)):e?typeof e=="function"?LS(e,"mapDispatchToProps"):a0(e,"mapDispatchToProps"):e0(t=>({dispatch:t}))}function T5(e){return e?typeof e=="function"?LS(e,"mapStateToProps"):a0(e,"mapStateToProps"):e0(()=>({}))}function M5(e,t,r){return{...r,...e,...t}}function O5(e){return function(r,{displayName:a,areMergedPropsEqual:o}){let n=!1,i;return function(l,u,d){let c=e(l,u,d);return n?o(c,i)||(i=c):(n=!0,i=c),i}}}function F5(e){return e?typeof e=="function"?O5(e):a0(e,"mergeProps"):()=>M5}function B5(e){e()}function _5(){let e=null,t=null;return{clear(){e=null,t=null},notify(){B5(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var xS={notify(){},get:()=>[]};function IS(e,t){let r,a=xS,o=0,n=!1;function i(x){d();let v=a.subscribe(x),p=!1;return()=>{p||(p=!0,v(),c())}}function s(){a.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return n}function d(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),a=_5())}function c(){o--,r&&o===0&&(r(),r=void 0,a.clear(),a=xS)}function f(){n||(n=!0,d())}function m(){n&&(n=!1,c())}let g={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:f,tryUnsubscribe:m,getListeners:()=>a};return g}var V5=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U5=V5(),z5=()=>typeof navigator<"u"&&navigator.product==="ReactNative",H5=z5(),j5=()=>U5||H5?le.useLayoutEffect:le.useEffect,nf=j5();function yS(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Zh(e,t){if(yS(e,t))return!0;
vendor: 4,692 bytes, lines 34-38
34if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!yS(e[r[o]],t[r[o]]))return!1;return!0}var q5={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$5={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},W5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G5={[I5]:W5,[k5]:kS};function wS(e){return E5(e)?kS:G5[e.$$typeof]||q5}var X5=Object.defineProperty,Y5=Object.getOwnPropertyNames,bS=Object.getOwnPropertySymbols,K5=Object.getOwnPropertyDescriptor,Q5=Object.getPrototypeOf,SS=Object.prototype;function t0(e,t){if(typeof t!="string"){if(SS){let n=Q5(t);n&&n!==SS&&t0(e,n)}let r=Y5(t);bS&&(r=r.concat(bS(t)));let a=wS(e),o=wS(t);for(let n=0;n<r.length;++n){let i=r[n];if(!$5[i]&&!(o&&o[i])&&!(a&&a[i])){let s=K5(t,i);try{X5(e,i,s)}catch{}}}}return e}var J5=Symbol.for("react-redux-context"),Z5=typeof globalThis<"u"?globalThis:{};function eT(){if(!le.createContext)return{};let e=Z5[J5]??=new Map,t=e.get(le.createContext);return t||(t=le.createContext(null),e.set(le.createContext,t)),t}var NS=eT(),tT=[null,null];function rT(e,t,r){nf(()=>e(...t),r)}function aT(e,t,r,a,o,n){e.current=a,r.current=!1,o.current&&(o.current=null,n())}function oT(e,t,r,a,o,n,i,s,l,u,d){if(!e)return()=>{};let c=!1,f=null,m=()=>{if(c||!s.current)return;let x=t.getState(),v,p;try{v=a(x,o.current)}catch(h){p=h,f=h}p||(f=null),v===n.current?i.current||u():(n.current=v,l.current=v,i.current=!0,d())};return r.onStateChange=m,r.trySubscribe(),m(),()=>{if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}function nT(e,t){return e===t}function iT(e,t,r,{pure:a,areStatesEqual:o=nT,areOwnPropsEqual:n=Zh,areStatePropsEqual:i=Zh,areMergedPropsEqual:s=Zh,forwardRef:l=!1,context:u=NS}={}){let d=u,c=T5(e),f=A5(t),m=F5(r),g=!!e;return v=>{let p=v.displayName||v.name||"Component",h=`Connect(${p})`,y={shouldHandleStateChanges:g,displayName:h,wrappedComponentName:p,WrappedComponent:v,initMapStateToProps:c,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:n,areMergedPropsEqual:s};function w(k){let[N,q,D]=le.useMemo(()=>{let{reactReduxForwardedRef:vr,...Jn}=k;return[k.context,vr,Jn]},[k]),ee=le.useMemo(()=>{let vr=d;return N?.Consumer,vr},[N,d]),O=le.useContext(ee),ne=!!k.store&&!!k.store.getState&&!!k.store.dispatch,ae=!!O&&!!O.store,M=ne?k.store:O.store,G=ae?O.getServerState:M.getState,U=le.useMemo(()=>D5(M.dispatch,y),[M]),[j,ue]=le.useMemo(()=>{if(!g)return tT;let vr=IS(M,ne?void 0:O.subscription),Jn=vr.notifyNestedSubs.bind(vr);return[vr,Jn]},[M,ne,O]),me=le.useMemo(()=>ne?O:{...O,subscription:j},[ne,O,j]),ge=le.useRef(void 0),_e=le.useRef(D),ea=le.useRef(void 0),Ko=le.useRef(!1),Qn=le.useRef(!1),im=le.useRef(void 0);nf(()=>(Qn.current=!0,()=>{Qn.current=!1}),[]);let Fx=le.useMemo(()=>()=>ea.current&&D===_e.current?ea.current:U(M.getState(),D),[M,D]),eE=le.useMemo(()=>Jn=>j?oT(g,M,j,U,_e,ge,Ko,Qn,ea,ue,Jn):()=>{},[j]);rT(aT,[_e,ge,Ko,D,ea,ue]);let xd;try{xd=le.useSyncExternalStore(eE,Fx,G?()=>U(G(),D):Fx)}catch(vr){throw im.current&&(vr.message+=`
35The error may be correlated with this previous error:
36${im.current.stack}
37
38`),vr}nf(()=>{im.current=void 0,ea.current=void 0,ge.current=xd});let sm=le.useMemo(()=>le.createElement(v,{...xd,ref:q}),[q,v,xd]);return le.useMemo(()=>g?le.createElement(ee.Provider,{value:me},sm):sm,[ee,sm,me])}let L=le.memo(w);if(L.WrappedComponent=v,L.displayName=w.displayName=h,l){let N=le.forwardRef(function(D,ee){return le.createElement(L,{...D,reactReduxForwardedRef:ee})});return N.displayName=h,N.WrappedComponent=v,t0(N,v)}return t0(L,v)}}var o0=iT;function sT(e){let{children:t,context:r,serverState:a,store:o}=e,n=le.useMemo(()=>{let l=IS(o);return{store:o,subscription:l,getServerState:a?()=>a:void 0}},[o,a]),i=le.useMemo(()=>o.getState(),[o]);return nf(()=>{let{subscription:l}=n;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[n,i]),le.createElement((r||NS).Provider,{value:n},t)}var ES=sT;var uT=!0,n0="Invariant failed";function PS(e,t){if(!e){if(uT)throw new Error(n0);var r=typeof t=="function"?t():t,a=r?"".concat(n0,": ").concat(r):n0;throw new Error(a)}}var Er=function(t){var r=t.top,a=t.right,o=t.bottom,n=t.left,i=a-n,s=o-r,l={top:r,right:a,bottom:o,left
38:n,width:i,height:s,x:n,y:r,center:{x:(a+n)/2,y:(o+r)/2}};return l},sf=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},DS=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},dT=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},i0={top:0,right:0,bottom:0,left:0},lf=function(t){var r=t.borderBox,a=t.margin,o=a===void 0?i0:a,n=t.border,i=n===void 0?i0:n,s=t.padding,l=s===void 0?i0:s,u=Er(sf(r,o)),d=Er(DS(r,i)),c=Er(DS(d,l));return{marginBox:u,borderBox:Er(r),paddingBox:d,contentBox:c,margin:o,border:i,padding:l}},Nr=function(t){var r=t.slice(0,-2),a=t.slice(-2);if(a!=="px")return 0;var o=Number(r);return isNaN(o)&&PS(!1),o},cT=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Xl=function(t,r){var a=t.borderBox,o=t.border,n=t.margin,i=t.padding,s=dT(a,r);return lf({borderBox:s,border:o,margin:n,padding:i})},Yl=function(t,r){return r===void 0&&(r=cT()),Xl(t,r)},s0=function(t,r){var a={top:Nr(r.marginTop),right:Nr(r.marginRight),bottom:Nr(r.marginBottom),left:Nr(r.marginLeft)},o={top:Nr(r.paddingTop),right:Nr(r.paddingRight),bottom:Nr(r.paddingBottom),left:Nr(r.paddingLeft)},n={top:Nr(r.borderTopWidth),right:Nr(r.borderRightWidth),bottom:Nr(r.borderBottomWidth),left:Nr(r.borderLeftWidth)};return lf({borderBox:t,margin:a,padding:o,border:n})},l0=function(t){var r=t.getBoundingClientRect(),a=window.getComputedStyle(t);return s0(r,a)};var fT=function(t){var r=[],a=null,o=function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];r=s,!a&&(a=requestAnimationFrame(function(){a=null,t.apply(void 0,r)}))};return o.cancel=function(){a&&(cancelAnimationFrame(a),a=null)},o},Oi=fT;function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Kl.apply(null,arguments)}var pT=!0,mT=/[ \t]{2,}/g,gT=/^[ \t]*/gm,RS=e=>e.replace(mT," ").replace(gT,"").trim(),hT=e=>RS(`
39  %c@hello-pangea/dnd
40
41  %c${RS(e)}
42
43  %c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
44`),vT=e=>[hT(e),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"],xT="__@hello-pangea/dnd-disable-dev-warnings";function nC(e,t){pT||typeof window<"u"&&window[xT]||console[e](...vT(t))}var l7=nC.bind(null,"warn"),yT=nC.bind(null,"error");function Po(){}function wT(e,t){return{...e,...t}}function Pr(e,t,r){let a=t.map(o=>{let n=wT(r,o.options);return e.addEventListener(o.eventName,o.fn,n),function(){e.removeEventListener(o.eventName,o.fn,n)}});return function(){a.forEach(n=>{n()})}}var bT=!0,AS="Invariant failed",Nn=class extends Error{};Nn.prototype.toString=function(){return this.message};function F(e,t){throw bT?new Nn(AS):new Nn(`${AS}: ${t||""}`)}var y0=class extends W.default.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=Po,this.onWindowError=r=>{let a=this.getCallbacks();a.isDragging()&&a.tryAbort(),r.error instanceof Nn&&r.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=r=>{this.callbacks=r}}componentDidMount(){this.unbind=Pr(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof Nn){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}},ST=`
45  Press space bar to start a drag.
46  When dragging you can use the arrow keys to move the item around and escape to cancel.
47  Some screen readers may require you to be in focus mode or to use your pass through key
48`,pf=e=>e+1,CT=e=>`
49  You have lifted an item in position ${pf(e.source.index)}
50`,iC=(e,t)=>{let r=e.droppableId===t.droppableId,a=pf(e.index),o=pf(t.index);return r?`
51      You have moved the item from position ${a}
52      to position ${o}
53    `:`
54    You have moved the item from position ${a}
55    in list ${e.droppableId}
56    to list ${t.droppableId}
57    in position ${o}
58  `},sC=(e,t,r)=>t.droppableId===r.droppableId?`
59      The item ${e}
60      has been combined with ${r.draggableId}`:`
61      The item ${e}
62      in list ${t.droppableId}
63      has been combined with ${r.draggableId}
64      in list ${r.droppableId}
65    `,LT=e=>{let t=e.destination;if(t)return iC(e.source,t);let r=e.combine;return r?sC(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},TS=e=>`
66  The item has returned to its starting position
67  of ${pf(e.index)}
68`,IT=e=>{if(e.reason==="CANCEL")return`
69      Movement cancelled.
70      ${TS(e.source)}
71    `;let t=e.destination,r=e.combine;return t?`
72      You have dropped the item.
73      ${iC(e.source,t)}
74    `:r?`
75      You have dropped the item.
76      ${sC(e.draggableId,e.source,r)}
77    `:`
78    The item has been dropped while not over a drop area.
79    ${TS(e.source)}
80  `},ff={dragHandleUsageInstructions:ST,onDragStart:CT,onDragUpdate:LT,onDragEnd:IT};function kT(e,t){return!!(e===t||Number.isNaN(e)&&Number.isNaN(t))}function lC(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!kT(e[r],t[r]))return!1;return!0}function we(e,t){let r=(0,W.useState)(()=>({inputs:t,result:e()}))[0],a=(0,W.useRef)(!0),o=(0,W.useRef)(r),i=a.current||!!(t&&o.current.inputs&&lC(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,W.useEffect)(()=>{a.current=!1,o.current=i},[i]),i.result}function Z(e,t){return we(()=>e,t)}var pt={x:0,y:0},Ct=(e,t)=>
vendor: 8,390 bytes, line 80
80({x:e.x+t.x,y:e.y+t.y}),dr=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Do=(e,t)=>e.x===t.x&&e.y===t.y,Vi=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),En=(e,t,r=0)=>e==="x"?{x:t,y:r}:{x:r,y:t},ru=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),MS=(e,t)=>Math.min(...t.map(r=>ru(e,r))),uC=e=>t=>({x:e(t.x),y:e(t.y)}),NT=(e,t)=>{let r=Er({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r},du=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),OS=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],ET={top:0,right:0,bottom:0,left:0},PT=(e,t)=>t?du(e,t.scroll.diff.displacement):e,DT=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,RT=(e,t)=>t&&t.shouldClipSubject?NT(t.pageMarginBox,e):Er(e),Fi=({page:e,withPlaceholder:t,axis:r,frame:a})=>{let o=PT(e.marginBox,a),n=DT(o,r,t),i=RT(n,a);return{page:e,withPlaceholder:t,active:i}},N0=(e,t)=>{e.frame||F();let r=e.frame,a=dr(t,r.scroll.initial),o=Vi(a),n={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:a,displacement:o},max:r.scroll.max}},i=Fi({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:n});return{...e,frame:n,subject:i}};function ft(e,t=lC){let r=null;function a(...o){if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;let n=e.apply(this,o);return r={lastResult:n,lastArgs:o,lastThis:this},n}return a.clear=function(){r=null},a}var dC=ft(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),cC=ft(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),hf=ft(e=>Object.values(e)),AT=ft(e=>Object.values(e)),Ui=ft((e,t)=>AT(t).filter(a=>e===a.descriptor.droppableId).sort((a,o)=>a.descriptor.index-o.descriptor.index));function E0(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function vf(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var xf=ft((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),TT=({isMovingForward:e,draggable:t,destination:r,insideDestination:a,previousImpact:o})=>{if(!r.isCombineEnabled||!E0(o))return null;function i(m){let g={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...o,at:g}}let s=o.displaced.all,l=s.length?s[0]:null;if(e)return l?i(l):null;let u=xf(t,a);if(!l){if(!u.length)return null;let m=u[u.length-1];return i(m.descriptor.id)}let d=u.findIndex(m=>m.descriptor.id===l);d===-1&&F();let c=d-1;if(c<0)return null;let f=u[c];return i(f.descriptor.id)},zi=(e,t)=>e.descriptor.droppableId===t.descriptor.id,fC={point:pt,value:0},au={invisible:{},visible:{},all:[]},MT={displaced:au,displacedBy:fC,at:null},Dr=(e,t)=>r=>e<=r&&r<=t,pC=e=>{let t=Dr(e.top,e.bottom),r=Dr(e.left,e.right);return a=>{if(t(a.top)&&t(a.bottom)&&r(a.left)&&r(a.right))return!0;let n=t(a.top)||t(a.bottom),i=r(a.left)||r(a.right);if(n&&i)return!0;let l=a.top<e.top&&a.bottom>e.bottom,u=a.left<e.left&&a.right>e.right;return l&&u?!0:l&&i||u&&n}},OT=e=>{let t=Dr(e.top,e.bottom),r=Dr(e.left,e.right);return a=>t(a.top)&&t(a.bottom)&&r(a.left)&&r(a.right)},P0={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mC={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},FT=e=>t=>{let r=Dr(t.top,t.bottom),a=Dr(t.left,t.right);return o=>e===P0?r(o.top)&&r(o.bottom):a(o.left)&&a(o.right)},BT=(e,t)=>{let r=t.frame?t.frame.scroll.diff.displacement:pt;return du(e,r)},_T=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,VT=(e,t,r)=>r(t)(e),D0=({target:e,destination:t,viewport:r,withDroppableDisplacement:a,isVisibleThroughFrameFn:o})=>{let n=a?BT(e,t):e;return _T(n,t,o)&&VT(n,r,o)},UT=e=>D0({...e,isVisibleThroughFrameFn:pC}),gC=e=>D0({...e,isVisibleThroughFrameFn:OT}),zT=e=>D0({...e,isVisibleThroughFrameFn:FT(e.destination.axis)}),HT=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;let{invisible:a,visible:o}=t;if(a[e])return!1;let n=o[e];return n?n.shouldAnimate:!0};function jT(e,t){let r=e.page.marginBox,a={top:t.point.y,right:0,bottom:0,left:t.point.x};return Er(sf(r,a))}function ou({afterDragging:e,destination:t,displacedBy:r,viewport:a,forceShouldAnimate:o,last:n}){return e.reduce(function(s,l){let u=jT(l,r),d=l.descriptor.id;if(s.all.push(d),!UT({target:u,destination:t,viewport:a,withDroppableDisplacement:!0}))return s.invisible[l.descriptor.id]=!0,s;let f=HT(d,n,o),m={draggableId:d,shouldAnimate:f};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function qT(e,t){if(!e.length)return 0;let r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function FS({insideDestination:e,inHomeList:t,displacedBy:r,destination:a}){let o=qT(e,{inHomeList:t});return{displaced:au,displacedBy:r,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:o}}}}function mf({draggable:e,insideDestination:t,destination:r,viewport:a,displacedBy:o,last:n,index:i,forceShouldAnimate:s}){let l=zi(e,r);if(i==null)return FS({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});let u=t.find(g=>g.descriptor.index===i);if(!u)return FS({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});let d=xf(e,t),c=t.indexOf(u),f=d.slice(c);return{displaced:ou({afterDragging:f,destination:r,displacedBy:o,last:n,viewport:a.frame,forceShouldAnimate:s}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:i}}}}function Ro(e,t){return!!t.effected[e]}var $T=({isMovingForward:e,destination:t,draggables:r,combine:a,afterCritical:o})=>{if(!t.isCombineEnabled)return null;let n=a.draggableId,s=r[n].descriptor.index;return Ro(n,o)?e?s:s-1:e?s+1:s},WT=({isMovingForward:e,isInHomeList:t,insideDestination:r,location:a})=>{if(!r.length)return null;let o=a.index,n=e?o+1:o-1,i=r[0].descriptor.index,s=r[r.length-1].descriptor.index,l=t?s:s+1;return n<i||n>l?null:n},GT=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:a,destination:o,insideDestination:n,previousImpact:i,viewport:s,afterCritical:l})=>{let u=i.at;if(u||F(),u.type==="REORDER"){let c=WT({isMovingForward:e,isInHomeList:t,location:u.destination,insideDestination:n});return c==null?null:mf({draggable:r,insideDestination:n,destination:o,viewport:s,last:i.displaced,displacedBy:i.displacedBy,index:c})}let d=$T({isMovingForward:e,destination:o,displaced:i.displaced,draggables:a,combine:u.combine,afterCritical:l});return d==null?null:mf({draggable:r,insideDestination:n,destination:o,viewport:s,last:i.displaced,displacedBy:i.displacedBy,index:d})},XT=({displaced:e,afterCritical:t,combineWith:r,displacedBy:a})=>{let o=!!(e.visible[r]||e.invisible[r]);return Ro(r,t)?o?pt:Vi(a.point):o?a.point:pt},YT=({afterCritical:e,impact:t,draggables:r})=>{let a=vf(t);a||F();let o=a.draggableId,n=r[o].page.borderBox.center,i=XT({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Ct(n,i)},hC=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,KT=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,R0=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,BS=({axis:e,moveRelativeTo:t,isMoving:r})=>En(e.line,t.marginBox[e.end]+hC(e,r),R0(e,t.marginBox,r)),_S=({axis:e,moveRelativeTo:t,isMoving:r})=>En(e.line,t.marginBox[e.start]-KT(e,r),R0(e,t.marginBox,r)),QT=({axis:e,moveInto:t,isMoving:r})=>En(e.line,t.contentBox[e.start]+hC(e,r),R0(e,t.contentBox,r)),JT=({impact:e,draggable:t,draggables:r,droppable:a,afterCritical:o})=>{let n=Ui(a.descriptor.id,r),i=t.page,s=a.axis;if(!n.length)return QT({axis:s,moveInto:a.page,isMoving:i});let{displaced:l,displacedBy:u}=e,d=l.all[0];if(d){let f=r[d];if(Ro(d,o))return _S({axis:s,moveRelativeTo:f.page,isMoving:i});let m=Xl(f.page,u.point);return _S({axis:s,moveRelativeTo:m,isMoving:i})}let c=n[n.length-1];if(c.descriptor.id===t.descriptor.id)return i.borderBox.center;if(Ro(c.descriptor.id,o)){let f=Xl(c.page,Vi(o.displacedBy.point));return BS({axis:s,moveRelativeTo:f,isMoving:i})}return BS({axis:s,moveRelativeTo:c.page,isMoving:i})},w0=(e,t)=>{let r=e.frame;return r?Ct(t,r.scroll.diff.displacement):t},ZT=({impact:e,draggable:t,droppable:r,draggables:a,afterCritical:o})=>{let n=t.page.borderBox.center,i=e.at;return!r||!i?n:i.type==="REORDER"?JT({impact:e,draggable:t,draggables:a,droppable:r,afterCritical:o}
80):YT({impact:e,draggables:a,afterCritical:o})},yf=e=>{let t=ZT(e),r=e.droppable;return r?w0(r,t):t},vC=(e,t)=>{let r=dr(t,e.scroll.initial),a=Vi(r);return{frame:Er({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:a}}}};function VS(e,t){return e.map(r=>t[r])}function eM(e,t){for(let r=0;r<t.length;r++){let a=t[r].visible[e];if(a)return a}return null}var tM=({impact:e,viewport:t,destination:r,draggables:a,maxScrollChange:o})=>{let n=vC(t,Ct(t.scroll.current,o)),i=r.frame?N0(r,Ct(r.frame.scroll.current,o)):r,s=e.displaced,l=ou({afterDragging:VS(s.all,a),destination:r,displacedBy:e.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),u=ou({afterDragging:VS(s.all,a),destination:i,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),d={},c={},f=[s,l,u];return s.all.forEach(g=>{let x=eM(g,f);if(x){c[g]=x;return}d[g]=!0}),{...e,displaced:{all:s.all,invisible:d,visible:c}}},rM=(e,t)=>Ct(e.scroll.diff.displacement,t),A0=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{let a=rM(r,e),o=dr(a,t.page.borderBox.center);return Ct(t.client.borderBox.center,o)},xC=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:
vendor: 5,512 bytes, line 80
80a,withDroppableDisplacement:o,onlyOnMainAxis:n=!1})=>{let i=dr(r,e.page.borderBox.center),l={target:du(e.page.borderBox,i),destination:t,withDroppableDisplacement:o,viewport:a};return n?zT(l):gC(l)},aM=({isMovingForward:e,draggable:t,destination:r,draggables:a,previousImpact:o,viewport:n,previousPageBorderBoxCenter:i,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;let u=Ui(r.descriptor.id,a),d=zi(t,r),c=TT({isMovingForward:e,draggable:t,destination:r,insideDestination:u,previousImpact:o})||GT({isMovingForward:e,isInHomeList:d,draggable:t,draggables:a,destination:r,insideDestination:u,previousImpact:o,viewport:n,afterCritical:l});if(!c)return null;let f=yf({impact:c,draggable:t,droppable:r,draggables:a,afterCritical:l});if(xC({draggable:t,destination:r,newPageBorderBoxCenter:f,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:A0({pageBorderBoxCenter:f,draggable:t,viewport:n}),impact:c,scrollJumpRequest:null};let g=dr(f,i),x=tM({impact:c,viewport:n,destination:r,draggables:a,maxScrollChange:g});return{clientSelection:s,impact:x,scrollJumpRequest:g}},zt=e=>{let t=e.subject.active;return t||F(),t},oM=({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:a,viewport:o})=>{let n=r.subject.active;if(!n)return null;let i=r.axis,s=Dr(n[i.start],n[i.end]),l=hf(a).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>pC(o.frame)(zt(d))).filter(d=>{let c=zt(d);return e?n[i.crossAxisEnd]<c[i.crossAxisEnd]:c[i.crossAxisStart]<n[i.crossAxisStart]}).filter(d=>{let c=zt(d),f=Dr(c[i.start],c[i.end]);return s(c[i.start])||s(c[i.end])||f(n[i.start])||f(n[i.end])}).sort((d,c)=>{let f=zt(d)[i.crossAxisStart],m=zt(c)[i.crossAxisStart];return e?f-m:m-f}).filter((d,c,f)=>zt(d)[i.crossAxisStart]===zt(f[0])[i.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];let u=l.filter(d=>Dr(zt(d)[i.start],zt(d)[i.end])(t[i.line]));return u.length===1?u[0]:u.length>1?u.sort((d,c)=>zt(d)[i.start]-zt(c)[i.start])[0]:l.sort((d,c)=>{let f=MS(t,OS(zt(d))),m=MS(t,OS(zt(c)));return f!==m?f-m:zt(d)[i.start]-zt(c)[i.start]})[0]},US=(e,t)=>{let r=e.page.borderBox.center;return Ro(e.descriptor.id,t)?dr(r,t.displacedBy.point):r},nM=(e,t)=>{let r=e.page.borderBox;return Ro(e.descriptor.id,t)?du(r,Vi(t.displacedBy.point)):r},iM=({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:a,afterCritical:o})=>a.filter(i=>gC({target:nM(i,o),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((i,s)=>{let l=ru(e,w0(r,US(i,o))),u=ru(e,w0(r,US(s,o)));return l<u?-1:u<l?1:i.descriptor.index-s.descriptor.index})[0]||null,cu=ft(function(t,r){let a=r[t.line];return{value:a,point:En(t.line,a)}}),sM=(e,t,r)=>{let a=e.axis;if(e.descriptor.mode==="virtual")return En(a.line,t[a.line]);let o=e.subject.page.contentBox[a.size],l=Ui(e.descriptor.id,r).reduce((u,d)=>u+d.client.marginBox[a.size],0)+t[a.line]-o;return l<=0?null:En(a.line,l)},yC=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),wC=(e,t,r)=>{let a=e.frame;zi(t,e)&&F(),e.subject.withPlaceholder&&F();let o=cu(e.axis,t.displaceBy).point,n=sM(e,o,r),i={placeholderSize:o,increasedBy:n,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!a){let d=Fi({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:d}}let s=n?Ct(a.scroll.max,n):a.scroll.max,l=yC(a,s),u=Fi({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:l});return{...e,subject:u,frame:l}},lM=e=>{let t=e.subject.withPlaceholder;t||F();let r=e.frame;if(!r){let i=Fi({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:i}}let a=t.oldFrameMaxScroll;a||F();let o=yC(r,a),n=Fi({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:n,frame:o}},uM=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:a,draggables:o,destination:n,viewport:i,afterCritical:s})=>{if(!t){if(r.length)return null;let c={displaced:au,displacedBy:fC,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:0}}},f=yf({impact:c,draggable:a,droppable:n,draggables:o,afterCritical:s}),m=zi(a,n)?n:wC(n,a,o);return xC({draggable:a,destination:m,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}let l=e[n.axis.line]<=t.page.borderBox.center[n.axis.line],u=(()=>{let c=t.descriptor.index;return t.descriptor.id===a.descriptor.id||l?c:c+1})(),d=cu(n.axis,a.displaceBy);return mf({draggable:a,insideDestination:r,destination:n,viewport:i,displacedBy:d,last:au,index:u})},dM=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:a,draggables:o,droppables:n,viewport:i,afterCritical:s})=>{let l=oM({isMovingForward:e,pageBorderBoxCenter:t,source:a,droppables:n,viewport:i});if(!l)return null;let u=Ui(l.descriptor.id,o),d=iM({pageBorderBoxCenter:t,viewport:i,destination:l,insideDestination:u,afterCritical:s}),c=uM({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:i,afterCritical:s});if(!c)return null;let f=yf({impact:c,draggable:r,droppable:l,draggables:o,afterCritical:s});return{clientSelection:A0({pageBorderBoxCenter:f,draggable:r,viewport:i}),impact:c,scrollJumpRequest:null}},cr=e=>{let t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},cM=(e,t)=>{let r=cr(e);return r?t[r]:null},fM=({state:e,type:t})=>{let r=cM(e.impact,e.dimensions.droppables),a=!!r,o=e.dimensions.droppables[e.critical.droppable.
80id],n=r||o,i=n.axis.direction,s=i==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||i==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(s&&!a)return null;let l=t==="MOVE_DOWN"||t==="MOVE_RIGHT",u=e.dimensions.draggables[e.critical.draggable.id],d=e.current.page.borderBoxCenter,{draggables:c,droppables:f}=e.dimensions;return s?aM({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:u,destination:n,draggables:c,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):dM({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:u,isOver:n,draggables:c,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function kn(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function bC(e){let t=Dr(e.top,e.bottom),r=Dr(e.left,e.right);return function(o){return t(o.y)&&r(o.x)}}function pM(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function mM({pageBorderBox:e,draggable:t,candidates:r}){let a=t.page.borderBox.center,o=r.map(n=>{let i=n.axis,s=En(n.axis.line,e.center[i.line],n.page.borderBox.center[i.crossAxisLine]);
80return{id:n.descriptor.id,distance:ru(a,s)}}).sort((n,i)=>i.distance-n.distance);return o[0]?o[0].id:null}function gM({pageBorderBox:e,draggable:t,droppables:r}){let a=hf(r).filter(o=>{if(!o.isEnabled)return!1;let n=o.subject.active;if(!n||!pM(e,n))return!1;if(bC(n)(e.center))return!0;let i=o.axis,s=n.center[i.crossAxisLine],l=e[i.crossAxisStart],u=e[i.crossAxisEnd],d=Dr(n[i.crossAxisStart],n[i.crossAxisEnd]),c=d(l),f=d(u);return!c&&!f?!0:c?l<s:u>s});return a.length?a.length===1?a[0].descriptor.id:mM({pageBorderBox:e,draggable:t,candidates:a}):null}var SC=(e,t)=>Er(du(e,t)),hM=(e,t)=>{let r=e.frame;return r?SC(t,r.scroll.diff.value):t};function CC({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function vM({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var xM=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:a,last:o,viewport:n,afterCritical:i})=>{let s=r.axis,l=cu(r.axis,t.displaceBy),u=l.value,d=e[s.start],c=e[s.end],m=xf(t,a).find(x=>{let v=x.descriptor.id,p=x.page.borderBox.center[s.line],h=Ro(v,i),y=CC({displaced:o,id:v});return h?y?c<=p:d<p-u:y?c<=p+u:d<p})||null,g=vM({draggable:t,closest:m,inHomeList:zi(t,r)});return mf({draggable:t,insideDestination:a,destination:r,viewport:n,last:o,displacedBy:l,index:g})},yM=4,wM=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:a,insideDestination:o,afterCritical:n})=>{if(!a.isCombineEnabled)return null;let i=a.axis,s=cu(a.axis,e.displaceBy),l=s.value,u=t[i.start],d=t[i.end],f=xf(e,o).find(g=>{let x=g.descriptor.id,v=g.page.borderBox,h=v[i.size]/yM,y=Ro(x,n),w=CC({displaced:r.displaced,id:x});return y?w?d>v[i.start]+h&&d<v[i.end]-h:u>v[i.start]-l+h&&u<v[i.end]-l-h:w?d>v[i.start]+l+h&&d<v[i.end]+l-h:u>v[i.start]+h&&u<v[i.end]-h});return f?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:a.descriptor.id}}}:null},LC=({pageOffset:e,draggable:t,draggables:r,droppables:a,previousImpact:o,viewport:n,afterCritical:i})=>{let s=SC(t.page.borderBox,e),l=gM({pageBorderBox:s,draggable:t,droppables:a});if(!l)return MT;let u=a[l],d=Ui(u.descriptor.id,r),c=hM(u,s);return wM({pageBorderBoxWithDroppableScroll:c,draggable:t,previousImpact:o,destination:u,insideDestination:d,afterCritical:i})||xM({pageBorderBoxWithDroppableScroll:c,draggable:t,destination:u,insideDestination:d,last:o.displaced,viewport:n,afterCritical:i})},T0=(e,t)=>({...e,[t.descriptor.id]:t}),bM=({previousImpact:e,impact:t,droppables:r})=>{let a=cr(e),o=cr(t);if(!a||a===o)return r;let n=r[a];if(!n.subject.withPlaceholder)return r;let i=lM(n);return T0(r,i)},SM=({draggable:e,draggables:t,droppables:r,previousImpact:a,impact:o})=>{let n=bM({previousImpact:a,impact:o,droppables:r}),i=cr(o);if(!i)return n;let s=r[i];if(zi(e,s)||s.subject.withPlaceholder)return n;let l=wC(s,e,t);return T0(n,l)},eu=({state:e,clientSelection:t,dimensions:r,viewport:a,impact:o,scrollJumpRequest:n})=>{let i=a||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,u=dr(l,e.initial.client.selection),d={offset:u,selection:l,borderBoxCenter:Ct(e.initial.client.borderBoxCenter,u)},c={selection:Ct(d.selection,i.scroll.current),borderBoxCenter:Ct(d.borderBoxCenter,i.scroll.current),offset:Ct(d.offset,i.scroll.diff.value)},f={client:d,page:c};if(e.phase==="COLLECTING")return{...e,dimensions:s,viewport:i,current:f};let m=s.draggables[e.critical.draggable.id],g=o||LC({pageOffset:c.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),x=SM({draggable:m,impact:g,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:x},impact:g,viewport:i,scrollJumpRequest:n||null,forceShouldAnimate:n?!1:null}};function CM(e,t){return e.map(r=>t[r])}var IC=({impact:e,viewport:t,draggables:r,destination:a,forceShouldAnimate:o})=>{let n=e.displaced,i=CM(n.all,r),s=ou({afterDragging:i,destination:a,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:n});return{...e,displaced:s}},kC=({impact:e,draggable:t,droppable:r,draggables:a,viewport:o,afterCritical:n})=>{let i=yf({impact:e,draggable:t,draggables:a,droppable:r,afterCritical:n});return A0({pageBorderBoxCenter:i,draggable:t,viewport:o})},NC=({state:e,dimensions:t,viewport:r})=>{e.movementMode!=="SNAP"&&F();let a=e.impact,o=r||e.viewport,n=t||e.dimensions,{draggables:i,droppables:s}
80=n,l=i[e.critical.draggable.id],u=cr(a);u||F();let d=s[u],c=IC({impact:a,viewport:o,destination:d,draggables:i}),f=kC({impact:c,draggable:l,droppable:d,draggables:i,viewport:o,afterCritical:e.afterCritical});return eu({impact:c,clientSelection:f,state:e,dimensions:n,viewport:o})},LM=e=>({index:e.index,droppableId:e.droppableId}),EC=({draggable:e,home:t,draggables:r,viewport:a})=>{let o=cu(t.axis,e.displaceBy),n=Ui(t.descriptor.id,r),i=n.indexOf(e);i===-1&&F();let s=n.slice(i+1),l=s.reduce((f,m)=>(f[m.descriptor.id]=!0,f),{}),u={inVirtualList:t.descriptor.mode==="virtual",displacedBy:o,effected:l};return{impact:{displaced:ou({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:a.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:LM(e.descriptor)}},afterCritical:u}},IM=(e,t)=>({draggables:e.draggables,droppables:T0(e.droppables,t)}),fu=e=>{},pu=e=>{},kM=({draggable:e,offset:t,initialWindowScroll:r})=>{let a=Xl(e.client,t),o=Yl(a,r);return{...e,placeholder:{...e.placeholder,client:a},client:a,page:o}},NM=e=>{let t=e.frame;return t||F(),t},EM=({additions:e,updatedDroppables:t,viewport:r})=>{let a=r.scroll.diff.value;return e.map(o=>{let n=o.descriptor.droppableId,i=t[n],l=NM(i).scroll.diff.value,u=Ct(a,l);return kM({draggable:o,offset:u,initialWindowScroll:r.scroll.initial})})},PM=({state:e,published:t})=>{fu();let r=t.modified.map(p=>{let h=e.dimensions.droppables[p.droppableId];return N0(h,p.scroll)}),a={...e.dimensions.droppables,...dC(r)},o=cC(EM({additions:t.additions,updatedDroppables:a,viewport:e.viewport})),n={...e.dimensions.draggables,...o};t.removals.forEach(p=>{delete n[p]});let i={droppables:a,draggables:n},s=cr(e.impact),l=s?i.droppables[s]:null,u=i.draggables[e.critical.draggable.id],d=i.droppables[e.critical.droppable.id],{impact:c,afterCritical:f}=EC({draggable:u,home:d,draggables:n,viewport:e.viewport}),m=l&&l.isCombineEnabled?e.impact:c,g=LC({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:m,viewport:e.viewport,afterCritical:f});pu();let x={...e,phase:"DRAGGING",impact:g,onLiftImpact:c,dimensions:i,afterCritical:f,forceShouldAnimate:!1};return e.phase==="COLLECTING"?x:{...x,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}},b0=e=>e.movementMode==="SNAP",u0=(e,t,r)=>{let a=IM(e.dimensions,t);return!b0(e)||r?eu({state:e,dimensions:a}):NC({state:e,dimensions:a})};function d0(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}var zS={phase:"IDLE",completed:null,shouldFlush:!1},DM=(e=zS,t)=>{if(t.type==="FLUSH")return{...zS,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&F();let{critical:r,clientSelection:a,viewport:o,dimensions:n,movementMode:i}=t.payload,s=n.draggables[r.draggable.id],l=n.droppables[r.droppable.id],u={selection:a,borderBoxCenter:s.client.borderBox.center,offset:pt},d={client:u,page:{selection:Ct(u.selection,o.scroll.initial),borderBoxCenter:Ct(u.selection,o.scroll.initial),offset:Ct(u.selection,o.scroll.diff.value)}},c=hf(n.droppables).every(x=>!x.isFixedOnPage),{impact:f,afterCritical:m}=EC({draggable:s,home:l,draggables:n.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:i,dimensions:n,initial:d,current:d,isWindowScrollAllowed:c,impact:f,afterCritical:m,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&F(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||F(),PM({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;kn(e)||F();let{client:r}=t.payload;return Do(r,e.current.client.selection)?e:eu({state:e,clientSelection:r,impact:b0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return d0(e);kn(e)||F();let{id:r,newScroll:a}=t.payload,o=e.dimensions.droppables[r];if(!o)return e;let n=N0(o,a);return u0(e,n,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;kn(e)||F();let{id:r,isEnabled:a}=t.payload,o=e.dimensions.droppables[r];o||F(),o.isEnabled===a&&F();let n={...o,isEnabled:a};return u0(e,n,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;kn(e)||F();
vendor: 4,166 bytes, line 80
80let{id:r,isCombineEnabled:a}=t.payload,o=e.dimensions.droppables[r];o||F(),o.isCombineEnabled===a&&F();let n={...o,isCombineEnabled:a};return u0(e,n,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;kn(e)||F(),e.isWindowScrollAllowed||F();let r=t.payload.newScroll;if(Do(e.viewport.scroll.current,r))return d0(e);let a=vC(e.viewport,r);return b0(e)?NC({state:e,viewport:a}):eu({state:e,viewport:a})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!kn(e))return e;let r=t.payload.maxScroll;if(Do(r,e.viewport.scroll.max))return e;let a={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:a}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&F();let r=fM({state:e,type:t.type});return r?eu({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){let r=t.payload.reason;return e.phase!=="COLLECTING"&&F(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){let{completed:r,dropDuration:a,newHomeClientOffset:o}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||F(),{phase:"DROP_ANIMATING",completed:r,dropDuration:a,newHomeClientOffset:o,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){let{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};function Ce(e,t){return e instanceof Object&&"type"in e&&e.type===t}var RM=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),AM=e=>({type:"LIFT",payload:e}),TM=e=>({type:"INITIAL_PUBLISH",payload:e}),MM=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),OM=()=>({type:"COLLECTION_STARTING",payload:null}),FM=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),BM=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),_M=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),PC=e=>({type:"MOVE",payload:e}),VM=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),UM=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),zM=()=>({type:"MOVE_UP",payload:null}),HM=()=>({type:"MOVE_DOWN",payload:null}),jM=()=>({type:"MOVE_RIGHT",payload:null}),qM=()=>({type:"MOVE_LEFT",payload:null}),M0=()=>({type:"FLUSH",payload:null}),$M=e=>({type:"DROP_ANIMATE",payload:e}),O0=e=>({type:"DROP_COMPLETE",payload:e}),DC=e=>({type:"DROP",payload:e}),WM=e=>({type:"DROP_PENDING",payload:e}),RC=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var GM=e=>({getState:t,dispatch:r})=>a=>o=>{if(!Ce(o,"LIFT")){a(o);return}let{id:n,clientSelection:i,movementMode:s}=o.payload,l=t();l.phase==="DROP_ANIMATING"&&r(O0({completed:l.completed})),t().phase!=="IDLE"&&F(),r(M0()),r(RM({draggableId:n,movementMode:s}));let d={draggableId:n,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:c,dimensions:f,viewport:m}=e.startPublishing(d);r(TM({critical:c,dimensions:f,clientSelection:i,movementMode:s,viewport:m}))},XM=e=>()=>t=>r=>{Ce(r,"INITIAL_PUBLISH")&&e.dragging(),Ce(r,"DROP_ANIMATE")&&e.dropping(r.payload.completed.result.reason),(Ce(r,"FLUSH")||Ce(r,"DROP_COMPLETE"))&&e.resting(),t(r)},F0={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},nu={opacity:{drop:0,combining:.7},scale:{drop:.75}},AC={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},In=`${AC.outOfTheWay}s ${F0.outOfTheWay}`,tu={fluid:`opacity ${In}`,snap:`transform ${In}, opacity ${In}`,drop:e=>{let t=`${e}s ${F0.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${In}`,placeholder:`height ${In}, width ${In}, margin ${In}`},HS=e=>Do(e,pt)?void 0:`translate(${e.x}px, ${e.y}px)`,S0={moveTo:HS,drop:(e,t)=>{let r=HS(e);if(r)return t?`${r} scale(${nu.scale.drop})`:r}},{minDropTime:C0,maxDropTime:TC}=AC,YM=TC-C0,jS=1500,KM=.6,QM=({current:e,destination:t,reason:r})=>{let a=ru(e,t);if(a<=0)return C0;if(a>=jS)return TC;let o=a/jS,n=C0+YM*o,i=r==="CANCEL"?n*KM:n;return Number(i.toFixed(2))},JM=({impact:e,draggable:t,dimensions:r,viewport:a,afterCritical:o})=>{let{draggables:n,droppables:i}=r,s=cr(e),l=s?i[s]:null,u=i[t.descriptor.droppableId],d=kC({impact:e,draggable:t,draggables:n,afterCritical:
80o,droppable:l||u,viewport:a});return dr(d,t.client.borderBox.center)},ZM=({draggables:e,reason:t,lastImpact:r,home:a,viewport:o,onLiftImpact:n})=>!r.at||t!=="DROP"?{impact:IC({draggables:e,impact:n,destination:a,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:au},didDropInsideDroppable:!0},eO=({getState:e,dispatch:t})=>r=>a=>{if(!Ce(a,"DROP")){r(a);return}let o=e(),n=a.payload.reason;if(o.phase==="COLLECTING"){t(WM({reason:n}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&F(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||F();let s=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],{impact:d,didDropInsideDroppable:c}=ZM({reason:n,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=c?E0(d):null,m=c?vf(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},x={draggableId:u.descriptor.id,type:u.descriptor.type,source:g,reason:n,mode:o.movementMode,destination:f,combine:m},v=JM({impact:d,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),p={critical:o.critical,afterCritical:o.afterCritical,result:x,impact:d};if(!(!Do(o.current.client.offset,v)||!!x.combine)){t(O0({completed:p}));return}let y=QM({current:o.current.client.offset,destination:v,reason:n});t($M({newHomeClientOffset:v,dropDuration:y,completed:p}))},MC=()=>({x:window.pageXOffset,y:window.pageYOffset});function tO(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function rO({onWindowScroll:e}){function t(){e(MC())}let r=Oi(t),a=tO(r),o=Po;function n(){return o!==Po}function i(){n()&&F(),o=Pr(window,[a])}function s(){n()||F(),r.cancel(),o(),o=Po}return{start:i,stop:s,isActive:n}}var aO=e=>Ce(e,"DROP_COMPLETE")||Ce(e,"DROP_ANIMATE")||Ce(e,"FLUSH"),oO=e=>{let t=rO({onWindowScroll:r=>{e.dispatch(VM({newScroll:r}))}});return r=>a=>{!t.isActive()&&Ce(a,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&aO(a)&&t.stop(),r(a)}},nO=e=>{let t=!1,r=!1,a=setTimeout(()=>{r=!0}),o=n=>{t||r||(t=!0,e(n),clearTimeout(a))};return o.wasCalled=()=>t,o},iO=()=>{let e=[],t=o=>{let n=e.findIndex(s=>s.timerId===o);n===-1&&F();let[i]=e.splice(n,1);i.callback()};return{add:o=>{let n=setTimeout(()=>t(n)),i={timerId:n,callback:o};e.push(i)},flush:()=>
80{if(!e.length)return;let o=[...e];e.length=0,o.forEach(n=>{clearTimeout(n.timerId),n.callback()})}}},sO=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,lO=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,uO=(e,t)=>{if(e===t)return!0;let r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,a=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&a},Ql=(e,t)=>{fu(),t(),pu()},uf=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function c0(e,t,r,a){if(!e){r(a(t));return}let o=nO(r);e(t,{announce:o}),o.wasCalled()||r(a(t))}var dO=(e,t)=>{let r=iO(),a=null,o=(c,f)=>{a&&F(),Ql("onBeforeCapture",()=>{let m=e().onBeforeCapture;m&&m({draggableId:c,mode:f})})},n=(c,f)=>{a&&F(),Ql("onBeforeDragStart",()=>{let m=e().onBeforeDragStart;m&&m(uf(c,f))})},i=(c,f)=>{a&&F();let m=uf(c,f);a={mode:f,lastCritical:c,lastLocation:m.source,lastCombine:null},r.add(()=>{Ql("onDragStart",()=>c0(e().onDragStart,m,t,ff.onDragStart))})},s=(c,f)=>{let m=E0(f),g=vf(f);a||F();let x=!uO(c,a.lastCritical);x&&(a.lastCritical=c);let v=!sO(a.lastLocation,m);v&&(a.lastLocation=m);let p=!lO(a.lastCombine,g);if(p&&(a.lastCombine=g),!x&&!v&&!p)return;let h={...uf(c,a.mode),combine:g,destination:m};r.add(()=>{Ql("onDragUpdate",()=>c0(e().onDragUpdate,h,t,ff.onDragUpdate))})},l=()=>{a||F(),r.flush()},u=c=>{a||F(),a=null,Ql("onDragEnd",()=>c0(e().onDragEnd,c,t,ff.onDragEnd))};return{beforeCapture:o,beforeStart:n,start:i,update:s,flush:l,drop:u,abort:()=>{if(!a)return;let c={...uf(a.lastCritical,a.mode),combine:null,destination:null,reason:"CANCEL"};u(c)}}},cO=(e,t)=>{let r=dO(e,t);return a=>o=>n=>{if(Ce(n,"BEFORE_INITIAL_CAPTURE")){r.beforeCapture(n.payload.draggableId,n.payload.movementMode);return}if(Ce(n,"INITIAL_PUBLISH")){let s=n.payload.critical;r.beforeStart(s,n.payload.movementMode),o(n),r.start(s,n.payload.movementMode);return}if(Ce(n,"DROP_COMPLETE")){let s=n.payload.completed.result;r.flush(),o(n),r.drop(s);return}if(o(n),Ce(n,"FLUSH")){r.abort();return}let i=a.getState();i.phase==="DRAGGING"&&r.update(i.critical,i.impact)}},fO=e=>t=>r=>{if(!Ce(r,"DROP_ANIMATION_FINISHED")){t(r);return}let a=e.getState();a.phase!=="DROP_ANIMATING"&&F(),e.dispatch(O0({completed:a.completed}))},pO=e=>{let t=null,r=null;function a(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return o=>n=>{if((Ce(n,"FLUSH")||Ce(n,"DROP_COMPLETE")||Ce(n,"DROP_ANIMATION_FINISHED"))&&a(),o(n),!Ce(n,"DROP_ANIMATE"))return;let i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(RC())}};r=requestAnimationFrame(()=>{r=null,t=Pr(window,[i])})}},mO=e=>()=>t=>r=>{(Ce(r,"DROP_COMPLETE")||Ce(r,"FLUSH")||Ce(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)},gO=e=>{let t=!1;return()=>r=>a=>{if(Ce(a,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(a.payload.critical.draggable.id),r(a),e.tryRestoreFocusRecorded();return}if(r(a),!!t){if(Ce(a,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(Ce(a,"DROP_COMPLETE")){t=!1;let o=a.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}},hO=e=>Ce(e,"DROP_COMPLETE")||Ce(e,"DROP_ANIMATE")||Ce(e,"FLUSH"),vO=e=>t=>r=>a=>{if(hO(a)){e.stop(),r(a);return}if(Ce(a,"INITIAL_PUBLISH")){r(a);let o=t.getState();o.phase!=="DRAGGING"&&F(),e.start(o);return}r(a),e.scroll(t.getState())},xO=e=>t=>r=>{if(t(r),!Ce(r,"PUBLISH_WHILE_DRAGGING"))return;let a=e.getState();a.phase==="DROP_PENDING"&&(a.isWaiting||e.dispatch(DC({reason:a.reason})))},yO=Jh,wO=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:a,announce:o,autoScroller:n})=>Kh(DM,yO(fS(XM(r),mO(e),GM(e),eO,fO,pO,xO,vO(n),oO,gO(t),cO(a,o)))),f0=()=>({additions:{},removals:{},modified:{}});function bO({registry:e,callbacks:t}){let r=f0(),a=null,o=()=>{a||(t.collectionStarting(),a=requestAnimationFrame(()=>{a=null,fu();let{additions:l,removals:u,modified:d}=r,c=Object.keys(l).map(g=>e.draggable.getById(g).getDimension(pt)).sort((g,x)=>g.descriptor.index-x.descriptor.index),f=Object.keys(d).map(g=>{let v=e.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),m={additions:c,removals:Object.keys(u),modified:f};r=f0(),pu(),t.publish(m)}))};return{add:l=>{let u=l.descriptor.id;r.additions[u]=l,r.modified[l.descriptor.droppableId]=!0,r.removals[u]&&delete r.removals[u],o()},remove:l=>{let u=l.descriptor;r.removals[u.id]=!0,r.modified[u.droppableId]=!0,r.additions[u.id]&&delete r.additions[u.id],o()},stop:()=>{a&&(cancelAnimationFrame(a),a=null,r=f0())}}}var OC=({scrollHeight:e,scrollWidth:t,height:r,width:a})=>{let o=dr({x:t,y:e},{x:a,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},FC=()=>{let e=document.documentElement;return e||F(),e},BC=()=>{let e=FC();return OC({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},SO=()=>{let e=MC(),t=BC(),r=e.y,a=e.x,o=FC(),n=o.clientWidth,i=o.clientHeight,s=a+n,l=r+i;return{frame:Er({top:r,left:a,right:s,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:pt,displacement:pt}}}},CO=({critical:e,scrollOptions:t,registry:r})=>{fu();let a=SO(),o=a.scroll.current,n=e.droppable,i=r.droppable.getAllByType(n.type).map(d=>d.callbacks.getDimensionAndWatchScroll(o,t)),s=r.draggable.getAllByType(e.draggable.type).map(d=>d.getDimension(o)),l={draggables:cC(s),droppables:dC(i)};
80return pu(),{dimensions:l,critical:e,viewport:a}};function qS(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var LO=(e,t)=>{let r=null,a=bO({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=(f,m)=>{e.droppable.exists(f)||F(),r&&t.updateDroppableIsEnabled({id:f,isEnabled:m})},n=(f,m)=>{r&&(e.droppable.exists(f)||F(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:m}))},i=(f,m)=>{r&&(e.droppable.exists(f)||F(),t.updateDroppableScroll({id:f,newScroll:m}))},s=(f,m)=>{r&&e.droppable.getById(f).callbacks.scroll(m)},l=()=>{if(!r)return;a.stop();let f=r.critical.droppable;e.droppable.getAllByType(f.type).forEach(m=>m.callbacks.dragStopped()),r.unsubscribe(),r=null},u=f=>{r||F();let m=r.critical.draggable;f.type==="ADDITION"&&qS(e,m,f.value)&&a.add(f.value),f.type==="REMOVAL"&&qS(e,m,f.value)&&a.remove(f.value)};return{updateDroppableIsEnabled:o,updateDroppableIsCombineEnabled:n,scrollDroppable:s,updateDroppableScroll:i,startPublishing:f=>{r&&F();let m=e.draggable.getById(f.draggableId),g=e.droppable.getById(m.descriptor.droppableId),x={draggable:m.descriptor,droppable:g.descriptor},v=e.subscribe(u);return r={critical:x,unsubscribe:v},CO({critical:x,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:l}},_C=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",IO=e=>{window.scrollBy(e.x,e.y)},kO=ft(e=>hf(e).filter(t=>!(!t.isEnabled||!t.frame))),NO=(e,t)=>
vendor: 5,080 bytes, line 80
80kO(t).find(a=>(a.frame||F(),bC(a.frame.pageMarginBox)(e)))||null,EO=({center:e,destination:t,droppables:r})=>{if(t){let o=r[t];return o.frame?o:null}return NO(e,r)},iu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1},PO=(e,t,r=()=>iu)=>{let a=r(),o=e[t.size]*a.startFromPercentage,n=e[t.size]*a.maxScrollAtPercentage;return{startScrollingFrom:o,maxScrollValueAt:n}},VC=({startOfRange:e,endOfRange:t,current:r})=>{let a=t-e;return a===0?0:(r-e)/a},B0=1,DO=(e,t,r=()=>iu)=>{let a=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return a.maxPixelScroll;if(e===t.startScrollingFrom)return B0;let n=1-VC({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=a.maxPixelScroll*a.ease(n);return Math.ceil(i)},RO=(e,t,r)=>{let a=r(),o=a.durationDampening.accelerateAt,n=a.durationDampening.stopDampeningAt,i=t,s=n,u=Date.now()-i;if(u>=n)return e;if(u<o)return B0;let d=VC({startOfRange:o,endOfRange:s,current:u}),c=e*a.ease(d);return Math.ceil(c)},$S=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:a,getAutoScrollerOptions:o})=>{let n=DO(e,t,o);return n===0?0:a?Math.max(RO(n,r,o),B0):n},WS=({container:e,distanceToEdges:t,dragStartTime:r,axis:a,shouldUseTimeDampening:o,getAutoScrollerOptions:n})=>{let i=PO(e,a,n);return t[a.end]<t[a.start]?$S({distanceToEdge:t[a.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:n}):-1*$S({distanceToEdge:t[a.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:n})},AO=({container:e,subject:t,proposedScroll:r})=>{let a=t.height>e.height,o=t.width>e.width;return!o&&!a?r:o&&a?null:{x:o?0:r.x,y:a?0:r.y}},TO=uC(e=>e===0?0:e),UC=({dragStartTime:e,container:t,subject:r,center:a,shouldUseTimeDampening:o,getAutoScrollerOptions:n})=>{let i={top:a.y-t.top,right:t.right-a.x,bottom:t.bottom-a.y,left:a.x-t.left},s=WS({container:t,distanceToEdges:i,dragStartTime:e,axis:P0,shouldUseTimeDampening:o,getAutoScrollerOptions:n}),l=WS({container:t,distanceToEdges:i,dragStartTime:e,axis:mC,shouldUseTimeDampening:o,getAutoScrollerOptions:n}),u=TO({x:l,y:s});if(Do(u,pt))return null;let d=AO({container:t,subject:r,proposedScroll:u});return d?Do(d,pt)?null:d:null},MO=uC(e=>e===0?0:e>0?1:-1),_0=(()=>{let e=(t,r)=>t<0?t:t>r?t-r:0;return({current:t,max:r,change:a})=>{let o=Ct(t,a),n={x:e(o.x,r.x),y:e(o.y,r.y)};return Do(n,pt)?null:n}})(),zC=({max:e,current:t,change:r})=>{let a={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=MO(r),n=_0({max:a,current:t,change:o});return!n||o.x!==0&&n.x===0||o.y!==0&&n.y===0},V0=(e,t)=>zC({current:e.scroll.current,max:e.scroll.max,change:t}),OO=(e,t)=>{if(!V0(e,t))return null;let r=e.scroll.max,a=e.scroll.current;return _0({current:a,max:r,change:t})},U0=(e,t)=>{let r=e.frame;return r?zC({current:r.scroll.current,max:r.scroll.max,change:t}):!1},FO=(e,t)=>{let r=e.frame;return!r||!U0(e,t)?null:_0({current:r.scroll.current,max:r.scroll.max,change:t})},BO=({viewport:e,subject:t,center:r,dragStartTime:a,shouldUseTimeDampening:o,getAutoScrollerOptions:n})=>{let i=UC({dragStartTime:a,container:e.frame,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:n});return i&&V0(e,i)?i:null},_O=({droppable:e,subject:t,center:r,dragStartTime:a,shouldUseTimeDampening:o,getAutoScrollerOptions:n})=>{let i=e.frame;if(!i)return null;let s=UC({dragStartTime:a,container:i.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:n});return s&&U0(e,s)?s:null},GS=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:a,scrollDroppable:o,getAutoScrollerOptions:n})=>{let i=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){let c=e.viewport,f=BO({dragStartTime:t,viewport:c,subject:l,center:i,shouldUseTimeDampening:r,getAutoScrollerOptions:n});if(f){a(f);return}}let u=EO({center:i,destination:cr(e.impact),droppables:e.dimensions.droppables});if(!u)return;let d=_O({dragStartTime:t,droppable:u,subject:l,center:i,shouldUseTimeDampening:r,getAutoScrollerOptions:n});d&&o(u.descriptor.id,d)},VO=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>iu})=>{let a=Oi(e),o=Oi(t),n=null,i=u=>{n||F();let{shouldUseTimeDampening:d,dragStartTime:c}=n;GS({state:u,scrollWindow:a,scrollDroppable:o,dragStartTime:c,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:u=>{fu(),n&&F();let d=Date.now(),c=!1,f=()=>{c=!0};GS({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:f,scrollDroppable:f,getAutoScrollerOptions:r}),n={dragStartTime:d,shouldUseTimeDampening:c},pu(),c&&i(u)},stop:()=>{n&&(a.cancel(),o.cancel(),n=null)},scroll:i}},UO=({move:e,scrollDroppable:t,scrollWindow:r})=>{let a=(s,l)=>{let u=Ct(s.current.client.selection,l);e({client:u})},o=(s,l)=>{if(!U0(s,l))return l;let u=FO(s,l);if(!u)return t(s.descriptor.id,l),null;let d=dr(l,u);return t(s.descriptor.id,d),dr(l,d)},n=(s,l,u)=>{if(!s||!V0(l,u))return u;let d=OO(l,u);if(!d)return r(u),null;
80let c=dr(u,d);return r(c),dr(u,c)};return s=>{let l=s.scrollJumpRequest;if(!l)return;let u=cr(s.impact);u||F();let d=o(s.dimensions.droppables[u],l);if(!d)return;let c=s.viewport,f=n(s.isWindowScrollAllowed,c,d);f&&a(s,f)}},zO=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:a})=>{let o=VO({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:a}),n=UO({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(a().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){o.scroll(l);return}l.scrollJumpRequest&&n(l)}},start:o.start,stop:o.stop}},Bi="data-rfd",_i=(()=>{let e=`${Bi}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),L0=(()=>{let e=`${Bi}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),HO=(()=>{let e=`${Bi}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),XS={contextId:`${Bi}-scroll-container-context-id`},jO=e=>t=>`[${t}="${e}"]`,Jl=(e,t)=>e.map(r=>{let a=r.styles[t];return a?`${r.selector} { ${a} }`:""}).join(" "),qO="pointer-events: none;",$O=e=>{let t=jO(e),r=(()=>{let s=`
81      cursor: -webkit-grab;
82      cursor: grab;
83    `;return{selector:t(_i.contextId),styles:{always:`
84          -webkit-touch-callout: none;
85          -webkit-tap-highlight-color: rgba(0,0,0,0);
86          touch-action: manipulation;
87        `,resting:s,dragging:qO,dropAnimating:s}}})(),a=(()=>{let s=`
88      transition: ${tu.outOfTheWay};
89    `;return{selector:t(L0.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}})(),o={selector:t(HO.contextId),styles:{always:"overflow-anchor: none;"}},i=[a,r,o,{selector:"body",styles:{dragging:`
90        cursor: grabbing;
91        cursor: -webkit-grabbing;
92        user-select: none;
93        -webkit-user-select: none;
94        -moz-user-select: none;
95        -ms-user-select: none;
96        overflow-anchor: none;
97      `}}];return{always:Jl(i,"always"),resting:Jl(i,"resting"),dragging:Jl(i,"dragging"),dropAnimating:Jl(i,"dropAnimating"),userCancel:Jl(i,"userCancel")}},fr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?W.useLayoutEffect:W.useEffect,p0=()=>{let e=document.querySelector("head");return e||F(),e},YS=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function WO(e,t){let r=we(()=>$O(e),[e]),a=(0,W.useRef)(null),o=(0,W.useRef)(null),n=Z(ft(c=>{let f=o.current;f||F(),f.textContent=c}),[]),i=Z(c=>{let f=a.current;f||F(),f.textContent=c},[]);fr(()=>{!a.current&&!o.current||F();let c=YS(t),f=YS(t);return a.current=c,o.current=f,c.setAttribute(`${Bi}-always`,e),f.setAttribute(`${Bi}-dynamic`,e),p0().appendChild(c),p0().appendChild(f),i(r.always),n(r.resting),()=>{let m=g=>{let x=g.current;x||F(),p0().removeChild(x),g.current=null};m(a),m(o)}},[t,i,n,r.always,r.resting,e]);let s=Z(()=>n(r.dragging),[n,r.dragging]),l=Z(c=>{if(c==="DROP"){n(r.dropAnimating);return}n(r.userCancel)},[n,r.dropAnimating,r.userCancel]),u=Z(()=>{o.current&&n(r.resting)},[n,r.resting]);return we(()=>({dragging:s,dropping:l,resting:u}),[s,l,u])}function HC(e,t){return Array.from(e.querySelectorAll(t))}var jC=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function mu(e){return e instanceof jC(e).HTMLElement}function qC(e,t){let r=`[${_i.contextId}="${e}"]`,a=HC(document,r);if(!a.length)return null;let o=a.find(n=>n.getAttribute(_i.draggableId)===t);return!o||!mu(o)?null:o}function GO(e){let t=(0,W.useRef)({}),r=(0,W.useRef)(null),a=(0,W.useRef)(null),o=(0,W.useRef)(!1),n=Z(function(f,m){let g={id:f,focus:m};return t.current[f]=g,function(){let v=t.current;v[f]!==g&&delete v[f]}},[]),i=Z(function(f){let m=qC(e,f);m&&m!==document.activeElement&&m.focus()},[e]),s=Z(function(f,m){r.current===f&&(r.current=m)},[]),l=Z(function(){a.current||o.current&&(a.current=requestAnimationFrame(()=>{a.current=null;let f=r.current;f&&i(f)}))},[i]),u=Z(function(f){r.current=null;let m=document.activeElement;m&&m.getAttribute(_i.draggableId)===f&&(r.current=f)},[]);return fr(()=>(o.current=!0,function(){o.current=!1;let f=a.current;f&&cancelAnimationFrame(f)}),[]),we(()=>({register:n,tryRecordFocus:u,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[n,u,l,s])}function XO(){let e={draggables:{},droppables:{}},t=[];function r(c){return t.push(c),function(){let m=t.indexOf(c);m!==-1&&t.splice(m,1)}}function a(c){t.length&&t.forEach(f=>f(c))}function o(c){return e.draggables[c]||null}function n(c){let f=o(c);return f||F(),f}let i={register:c=>{e.draggables[c.descriptor.id]=c,a({type:"ADDITION",value:c})},update:(c,f)=>{let m=e.draggables[f.descriptor.id];m&&m.uniqueId===c.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[c.descriptor.id]=c)},unregister:c=>{let f=c.descriptor.id,m=o(f);m&&c.uniqueId===m.uniqueId&&(delete e.draggables[f],e.droppables[c.descriptor.droppableId]&&a({type:"REMOVAL",value:c}))},getById:n,findById:o,exists:c=>!!o(c),getAllByType:c=>Object.values(e.draggables).filter(f=>f.descriptor.type===c)};function s(c){return e.droppables[c]||null}function l(c){let f=s(c);return f||F(),f}let u={register:c=>{e.droppables[c.descriptor.id]=c},unregister:c=>{let f=s(c.descriptor.id);f&&c.uniqueId===f.uniqueId&&delete e.droppables[c.descriptor.id]},getById:l,findById:s,exists:c=>!!s(c),getAllByType:c=>Object.values(e.droppables).filter(f=>f.descriptor.type===c)};function d(){e.draggables={},e.droppables={},t.length=0}return{draggable:i,droppable:u,subscribe:r,clean:d}}function YO(){let e=we(XO,[]);return(0,W.useEffect)(()=>function(){e.clean()},[e]),e}var z0=W.default.createContext(null),su=()=>{let e=document.body;return e||F(),e},KO={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},QO=e=>`rfd-announcement-${e}`;function JO(e){let t=we(()=>QO(e),[e]),r=(0,W.useRef)(null);return(0,W.useEffect)(function(){let n=document.createElement("div");return r.current=n,n.id=t,n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true"),Kl(n.style,KO),su().appendChild(n),function(){setTimeout(function(){let l=su();l.contains(n)&&l.removeChild(n),n===r.current&&(r.current=null)})}},[t]),Z(o=>{let n=r.current;if(n){n.textContent=o;return}},[])}var ZO={separator:"::"};function H0(e,t=ZO){let r=W.default.useId();return we(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}function e4({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function t4({contextId:e,text:t}){let r=H0("hidden-text",{separator:"-"}),a=we(()=>e4({contextId:e,uniqueId:r}),[r,e]);return(0,W.useEffect)(function(){let n=document.createElement("div");return n.id=a,n.textContent=t,n.style.display="none",su().appendChild(n),function(){let s=su();s.contains(n)&&s.removeChild(n)}},[a,t]),a}var wf=W.default.createContext(null),r4={react:"^18.0.0 || ^19.0.0"},a4=/(\d+)\.(\d+)\.(\d+)/,KS=e=>{let t=a4.exec(e);t==null&&F();let r=Number(t[1]),a=Number(t[2]),o=Number(t[3]);return{major:r,minor:a,patch:o,raw:e}},o4=(e,t)=>
97t.major>e.major?!0:t.major<e.major?!1:t.minor>e.minor?!0:t.minor<e.minor?!1:t.patch>=e.patch,n4=(e,t)=>{let r=KS(e),a=KS(t);o4(r,a)};var i4=e=>{let t=e.doctype;t&&(t.name.toLowerCase(),t.publicId)};function gu(e,t){}function s4(){gu(()=>{n4(r4.react,W.default.version),i4(document)},[])}function j0(e){let t=(0,W.useRef)(e);return(0,W.useEffect)(()=>{t.current=e}),t}function l4(){let e=null;function t(){return!!e}function r(i){return i===e}function a(i){e&&F();let s={abandon:i};return e=s,s}function o(){e||F(),e=null}function n(){e&&(e.abandon(),o())}return{isClaimed:t,isActive:r,claim:a,release:o,tryAbandon:n}}function lu(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}var u4=9,d4=13,q0=27,$C=32,c4=33,f4=34,p4=35,m4=36,g4=37,h4=38,v4=39,x4=40,y4={[d4]:!0,[u4]:!0},WC=e=>{y4[e.keyCode]&&e.preventDefault()},bf=(()=>{let e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(a=>`on${a}`in document)||e})(),GC=0,QS=5;function w4(e,t){return Math.abs(t.x-e.x)>=QS||Math.abs(t.y-e.y)>=QS}var JS={type:"IDLE"};function b4({cancel:e,completed:t,getPhase:r,setPhase:a}){return[{eventName:"mousemove",fn:o=>{let{button:n,clientX:i,clientY:s}=o;if(n!==GC)return;let l={x:i,y:s},u=r();if(u.type==="DRAGGING"){o.preventDefault(),u.actions.move(l);return}u.type!=="PENDING"&&F();let d=u.point;if(!w4(d,l))return;o.preventDefault();let c=u.actions.fluidLift(l);a({type:"DRAGGING",actions:c})}},{eventName:"mouseup",fn:o=>{let n=r();if(n.type!=="DRAGGING"){e();return}o.preventDefault(),n.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:o=>{r().type==="DRAGGING"&&o.preventDefault(),e()}},{eventName:"keydown",fn:o=>{if(r().type==="PENDING"){e();return}if(o.keyCode===q0){o.preventDefault(),e();return}WC(o)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:o=>{let n=r();if(n.type==="IDLE"&&F(),n.actions.shouldRespectForcePress()){e();return}o.preventDefault()}},{eventName:bf,fn:e}]}function S4(e){let t=(0,W.useRef)(JS),r=(0,W.useRef)(Po),a=we(()=>({eventName:"mousedown",fn:function(c){if(c.defaultPrevented||c.button!==GC||c.ctrlKey||c.metaKey||c.shiftKey||c.altKey)return;let f=e.findClosestDraggableId(c);if(!f)return;let m=e.tryGetLock(f,i,{sourceEvent:c});if(!m)return;c.preventDefault();let g={x:c.clientX,y:c.clientY};r.current(),u(m,g)}}),[e]),o=we(()=>({eventName:"webkitmouseforcewillbegin",fn:d=>{if(d.defaultPrevented)return;let c=e.findClosestDraggableId(d);if(!c)return;let f=e.findOptionsForDraggable(c);f&&(f.shouldRespectForcePress||e.canGetLock(c)&&d.preventDefault())}}),[e]),n=Z(function(){let c={passive:!1,capture:!0};r.current=Pr(window,[o,a],c)},[o,a]),i=Z(()=>{t.current.type!=="IDLE"&&(t.current=JS,r.current(),n())},[n]),s=Z(()=>{let d=t.current;i(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[i]),l=Z(function(){let c={capture:!0,passive:!1},f=b4({cancel:s,completed:i,getPhase:()=>t.current,setPhase:m=>{t.current=m}});r.current=Pr(window,f,c)},[s,i]),u=Z(function(c,f){t.current.type!=="IDLE"&&F(),t.current={type:"PENDING",point:f,actions:c},l()},[l]);fr(function(){return n(),function(){r.current()}},[n])}function C4(){}var L4={[f4]:!0,[c4]:!0,[m4]:!0,[p4]:!0};function I4(e,t){function r(){t(),e.cancel()}function a(){t(),e.drop()}return[{eventName:"keydown",fn:o=>{if(o.keyCode===q0){o.preventDefault(),r();return}if(o.keyCode===$C){o.preventDefault(),a();return}if(o.keyCode===x4){o.preventDefault(),e.moveDown();return}if(o.keyCode===h4){o.preventDefault(),e.moveUp();return}if(o.keyCode===v4){o.preventDefault(),e.moveRight();return}if(o.keyCode===g4){o.preventDefault(),e.moveLeft();return}if(L4[o.keyCode]){o.preventDefault();return}WC(o)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:bf,fn:r}]}function k4(e){let t=(0,W.useRef)(C4),r=we(()=>({eventName:"keydown",fn:function(n){if(n.defaultPrevented||n.keyCode!==$C)return;let i=e.findClosestDraggableId(n);if(!i)return;let s=e.tryGetLock(i,d,{sourceEvent:n});if(!s)return;n.preventDefault();let l=!0,u=s.snapLift();t.current();function d(){l||F(),l=!1,t.current(),a()}t.current=Pr(window,I4(u,d),{capture:!0,passive:!1})}}),[e]),a=Z(function(){let n={passive:!1,capture:!0};t.current=Pr(window,[r],n)},[r]);fr(function(){return a(),function(){t.current()}},[a])}var m0={type:"IDLE"},N4=120,E4=.15;function P4({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(t().type!=="DRAGGING"){e();return}r.keyCode===q0&&r.preventDefault(),e()}},{eventName:bf,fn:e}]}function D4({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:a=>
vendor: 4,796 bytes, line 97
97{let o=r();if(o.type!=="DRAGGING"){e();return}o.hasMoved=!0;let{clientX:n,clientY:i}=a.touches[0],s={x:n,y:i};a.preventDefault(),o.actions.move(s)}},{eventName:"touchend",fn:a=>{let o=r();if(o.type!=="DRAGGING"){e();return}a.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:a=>{if(r().type!=="DRAGGING"){e();return}a.preventDefault(),e()}},{eventName:"touchforcechange",fn:a=>{let o=r();o.type==="IDLE"&&F();let n=a.touches[0];if(!n||!(n.force>=E4))return;let s=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){s&&e();return}if(s){if(o.hasMoved){a.preventDefault();return}e();return}a.preventDefault()}},{eventName:bf,fn:e}]}function R4(e){let t=(0,W.useRef)(m0),r=(0,W.useRef)(Po),a=Z(function(){return t.current},[]),o=Z(function(m){t.current=m},[]),n=we(()=>({eventName:"touchstart",fn:function(m){if(m.defaultPrevented)return;let g=e.findClosestDraggableId(m);if(!g)return;let x=e.tryGetLock(g,s,{sourceEvent:m});if(!x)return;let v=m.touches[0],{clientX:p,clientY:h}=v,y={x:p,y:h};r.current(),c(x,y)}}),[e]),i=Z(function(){let m={capture:!0,passive:!1};r.current=Pr(window,[n],m)},[n]),s=Z(()=>{let f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),o(m0),r.current(),i())},[i,o]),l=Z(()=>{let f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),u=Z(function(){let m={capture:!0,passive:!1},g={cancel:l,completed:s,getPhase:a},x=Pr(window,D4(g),m),v=Pr(window,P4(g),m);r.current=function(){x(),v()}},[l,a,s]),d=Z(function(){let m=a();m.type!=="PENDING"&&F();let g=m.actions.fluidLift(m.point);o({type:"DRAGGING",actions:g,hasMoved:!1})},[a,o]),c=Z(function(m,g){a().type!=="IDLE"&&F();let x=setTimeout(d,N4);o({type:"PENDING",point:g,actions:m,longPressTimerId:x}),u()},[u,a,o,d]);fr(function(){return i(),function(){r.current();let g=a();g.type==="PENDING"&&(clearTimeout(g.longPressTimerId),o(m0))}},[a,i,o]),fr(function(){return Pr(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}function A4(e){}var T4=["input","button","textarea","select","option","optgroup","video","audio"];function XC(e,t){if(t==null)return!1;if(T4.includes(t.tagName.toLowerCase()))return!0;let a=t.getAttribute("contenteditable");return a==="true"||a===""?!0:t===e?!1:XC(e,t.parentElement)}function M4(e,t){let r=t.target;return mu(r)?XC(e,r):!1}var O4=e=>Er(e.getBoundingClientRect()).center;function F4(e){return e instanceof jC(e).Element}var B4=(()=>{let e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(a=>a in Element.prototype)||e})();function YC(e,t){return e==null?null:e[B4](t)?e:YC(e.parentElement,t)}function _4(e,t){return e.closest?e.closest(t):YC(e,t)}function V4(e){return`[${_i.contextId}="${e}"]`}function U4(e,t){let r=t.target;if(!F4(r))return null;let a=V4(e),o=_4(r,a);return!o||!mu(o)?null:o}function z4(e,t){let r=U4(e,t);return r?r.getAttribute(_i.draggableId):null}function H4(e,t){let r=`[${L0.contextId}="${e}"]`,o=HC(document,r).find(n=>n.getAttribute(L0.id)===t);return!o||!mu(o)?null:o}function j4(e){e.preventDefault()}function df({expected:e,phase:t,isLockActive:r,shouldWarn:a}){return!(!r()||e!==t)}function KC({lockAPI:e,store:t,registry:r,draggableId:a}){if(e.isClaimed())return!1;let o=r.draggable.findById(a);return!(!o||!o.options.isEnabled||!_C(t.getState(),a))}function q4({lockAPI:e,contextId:t,store:r,registry:a,draggableId:o,forceSensorStop:n,sourceEvent:i}){if(!KC({lockAPI:e,store:r,registry:a,draggableId:o}))return null;let l=a.draggable.getById(o),u=H4(t,l.descriptor.id);if(!u||i&&!l.options.canDragInteractiveElements&&M4(u,i))return null;let d=e.claim(n||Po),c="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function m(){return e.isActive(d)}function g(S,L){df({expected:S,phase:c,isLockActive:m,shouldWarn:!0})&&r.dispatch(L())}let x=g.bind(null,"DRAGGING");function v(S){function L(){e.release(),c="COMPLETED"}c!=="PRE_DRAG"&&(L(),F()),r.dispatch(AM(S.liftActionArgs)),c="DRAGGING";function k(N,q={shouldBlockNextClick:!1}){if(S.cleanup(),q.shouldBlockNextClick){let D=Pr(window,[{eventName:"click",fn:j4,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(D)}L(),r.dispatch(DC({reason:N}))}return{isActive:()=>df({expected:"DRAGGING",phase:c,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:f,drop:N=>k("DROP",N),cancel:N=>k("CANCEL",N),...S.actions}}function p(S){let L=Oi(N=>{x(()=>PC({client:N}))});return{...v({liftActionArgs:{id:o,clientSelection:S,movementMode:"FLUID"},cleanup:()=>L.cancel(),actions:{move:L}}),move:L}}function h(){let S={moveUp:()=>x(zM),moveRight:()=>x(jM),moveDown:()=>x(HM),moveLeft:()=>x(qM)};return v({liftActionArgs:{id:o,clientSelection:O4(u),movementMode:"SNAP"}
97,cleanup:Po,actions:S})}function y(){df({expected:"PRE_DRAG",phase:c,isLockActive:m,shouldWarn:!0})&&e.release()}return{isActive:()=>df({expected:"PRE_DRAG",phase:c,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:p,snapLift:h,abort:y}}var $4=[S4,k4,R4];function W4({contextId:e,store:t,registry:r,customSensors:a,enableDefaultSensors:o}){let n=[...o?$4:[],...a||[]],i=(0,W.useState)(()=>l4())[0],s=Z(function(v,p){lu(v)&&!lu(p)&&i.tryAbandon()},[i]);fr(function(){let v=t.getState();return t.subscribe(()=>{let h=t.getState();s(v,h),v=h})},[i,t,s]),fr(()=>i.tryAbandon,[i.tryAbandon]);let l=Z(x=>KC({lockAPI:i,registry:r,store:t,draggableId:x}),[i,r,t]),u=Z((x,v,p)=>q4({lockAPI:i,registry:r,contextId:e,store:t,draggableId:x,forceSensorStop:v||null,sourceEvent:p&&p.sourceEvent?p.sourceEvent:null}),[e,i,r,t]),d=Z(x=>z4(e,x),[e]),c=Z(x=>{let v=r.draggable.findById(x);return v?v.options:null},[r.draggable]),f=Z(function(){i.isClaimed()&&(i.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(M0()))},[i,t]),m=Z(()=>i.isClaimed(),[i]),g=we(()=>({canGetLock:l,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:c,tryReleaseLock:f,isLockClaimed:m}),[l,u,d,c,f,m]);A4(n);for(let x=0;x<n.length;x++)n[x](g)}var G4=e=>({onBeforeCapture:t=>{(0,uu.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),X4=e=>({...iu,...e.autoScrollerOptions,durationDampening:{...iu.durationDampening,...e.autoScrollerOptions}});function Zl(e){return e.current||F(),e.current}function Y4(e){let{contextId:t,setCallbacks:r,sensors:a,nonce:o,dragHandleUsageInstructions:n}=e,i=(0,W.useRef)(null);s4();let s=j0(e),l=Z(()=>G4(s.current),[s]),u=Z(()=>X4(s.current),[s]),d=JO(t),c=t4({contextId:t,text:n}),f=WO(t,o),m=Z(D=>{Zl(i).dispatch(D)},[]),g=we(()=>Qh({publishWhileDragging:MM,updateDroppableScroll:FM,updateDroppableIsEnabled:BM,updateDroppableIsCombineEnabled:_M,collectionStarting:OM},m),[m]),x=YO(),v=we(()=>LO(x,g),[x,g]),p=we(()=>zO({scrollWindow:IO,scrollDroppable:v.scrollDroppable,getAutoScrollerOptions:u,...Qh({move:PC},m)}),[v.scrollDroppable,m,u]),h=GO(t),y=we(()=>wO({announce:d,autoScroller:p,dimensionMarshal:v,focusMarshal:h,getResponders:l,styleMarshal:f}),[d,p,v,h,l,f]);i.current=y;let w=Z(()=>{let D=Zl(i);D.getState().phase!=="IDLE"&&D.dispatch(M0())},[]),S=Z(()=>{let D=Zl(i).getState();return D.phase==="DROP_ANIMATING"?!0:D.phase==="IDLE"?!1:D.isDragging},[]),L=we(()=>({isDragging:S,tryAbort:w}),[S,w]);r(L);let k=Z(D=>_C(Zl(i).getState(),D),[]),N=Z(()=>kn(Zl(i).getState()),[]),q=we(()=>({marshal:v,focus:h,contextId:t,canLift:k,isMovementAllowed:N,dragHandleUsageInstructionsId:c,registry:x}),[t,v,c,h,k,N,x]);return W4({contextId:t,store:y,registry:x,customSensors:a||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),(0,W.useEffect)(()=>w,[w]),W.default.createElement(wf.Provider,{value:q},W.default.createElement(ES,{context:z0,store:y},e.children))}function K4(){return W.default.useId()}function QC(e){let t=K4(),r=e.dragHandleUsageInstructions||ff.dragHandleUsageInstructions;return W.default.createElement(y0,null,a=>W.default.createElement(Y4,{nonce:e.nonce,contextId:t,setCallbacks:a,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}var ZS={dragging:5e3,dropAnimating:4500},Q4=(e,t)=>t?tu.drop(t.duration):e?tu.snap:tu.fluid,J4=(e,t)=>{if(e)return t?nu.opacity.drop:nu.opacity.combining},Z4=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function eF(e){let r=e.dimension.client,{offset:a,combineWith:o,dropping:n}=e,i=!!o,s=Z4(e),l=!!n,u=l?S0.drop(a,i):S0.moveTo(a);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Q4(s,n),transform:u,opacity:J4(i,l),zIndex:l?ZS.dropAnimating:ZS.dragging,pointerEvents:"none"}}function tF(e){return{transform:S0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function rF(e){return e.type==="DRAGGING"?eF(e):tF(e)}function aF(e,t,r=pt){let a=window.getComputedStyle(t),o=t.getBoundingClientRect(),n=s0(o,a),i=Yl(n,r),s={client:n,tagName:t.tagName.toLowerCase(),display:a.display},l={x:n.marginBox.width,y:n.marginBox.height};return{descriptor:e,placeholder:s,displaceBy:l,client:n,page:i}}function oF(e){let t=H0("draggable"),{descriptor:r,registry:a,getDraggableRef:o,canDragInteractiveElements:n,shouldRespectForcePress:i,isEnabled:s}=e,l=we(()=>({canDragInteractiveElements:n,shouldRespectForcePress:i,isEnabled:s}),[n,s,i]),u=Z(m=>{let g=o();return g||F(),aF(r,g,m)},[r,o]),d=we(()=>({uniqueId:t,descriptor:r,options:l,getDimension:u}),[r,u,l,t]),c=(0,W.useRef)(d),f=(0,W.useRef)(!0);fr(()=>(a.draggable.register(c.current),()=>a.draggable.unregister(c.current)),[a.draggable]),fr(()=>{if(f.current){f.current=!1;return}let m=c.current;c.current=d,a.draggable.update(d,m)},[d,a.draggable])}var $0=W.default.createContext(null);function JC(e){e&&mu(e)||F()}function nF(e,t,r){gu(()=>{function a(n){return`Draggable[id: ${n}]: `}let o=e.draggableId;o||F(!1),typeof o!="string"&&F(!1),Number.isInteger(e.index)||F(!1),e.mapped.type!=="DRAGGING"&&(JC(r()),e.isEnabled&&(qC(t,o)||F(!1)))})}function iF(e){}function gf(e){let t=(0,W.useContext)(e);return t||F(),t}function sF(e){e.preventDefault()}var lF=e=>{let t=(0,W.useRef)(null),r=Z((L=null)=>{t.current=L},[]),a=Z(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:n,registry:i}=gf(wf),{type:s,droppableId:l}=gf($0),u=we(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:d,draggableId:c,isEnabled:f,shouldRespectForcePress:m,canDragInteractiveElements:g,isClone:x,mapped:v,dropAnimationFinished:p}=e;if(nF(e,o,a),iF(x),!x){let L=we(()=>({descriptor:u,registry:i,getDraggableRef:a,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:f}),[u,i,a,g,m,f]);oF(L)}let h=we(()=>f?{tabIndex:0,role:"button","aria-describedby":n,"data-rfd-drag-handle-draggable-id":c,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:sF}:null,[o,n,c,f]),y=Z(L=>{v.type==="DRAGGING"&&v.dropping&&L.propertyName==="transform"&&(0,uu.flushSync)(p)},[p,v]),w=we(()=>{let L=rF(v),k=v.type==="DRAGGING"&&v.dropping?y:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":c,style:L,onTransitionEnd:k},dragHandleProps:h}},[o,h,c,v,y,r]),S=we(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return W.default.createElement(W.default.Fragment,null,d(w,v.snapshot,S))},ZC=(e,t)=>e===t,eL=e=>{let{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null},uF=e=>e.combine?e.combine.draggableId:null,dF=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function cF(){let e=ft((o,n)=>({x:o,y:n})),t=ft((o,n,i=null,s=null,l=null)=>({isDragging:!0,isClone:n,isDropAnimating:!!l,dropAnimation:l,mode:o,draggingOver:i,combineWith:s,combineTargetFor:null})),r=ft((o,n,i,s,l=null,u=null,d=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:u,mode:n,offset:o,dimension:i,forceShouldAnimate:d,snapshot:t(n,s,l,u,null)}}));return(o,n)=>{if(lu(o)){if(o.critical.draggable.id!==n.draggableId)return null;let i=o.current.client.offset,s=o.dimensions.draggables[n.draggableId],l=cr(o.impact),u=dF(o.impact),d=o.forceShouldAnimate;return r(e(i.x,i.y),o.movementMode,s,n.isClone,l,u,d)}if(o.phase==="DROP_ANIMATING"){let i=o.completed;if(i.result.draggableId!==n.draggableId)return null;let s=n.isClone,l=o.dimensions.draggables[n.draggableId],u=i.result,d=u.mode,c=eL(u),f=uF(u),g={duration:o.dropDuration,curve:F0.drop,moveTo:o.newHomeClientOffset,opacity:f?nu.opacity.drop:null,
97scale:f?nu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:l,dropping:g,draggingOver:c,combineWith:f,mode:d,forceShouldAnimate:null,snapshot:t(d,s,c,f,g)}}}return null}}function tL(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var fF={mapped:{type:"SECONDARY",offset:pt,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:tL(null)}};function pF(){let e=ft((i,s)=>({x:i,y:s})),t=ft(tL),r=ft((i,s=null,l)=>({mapped:{type:"SECONDARY",offset:i,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:t(s)}})),a=i=>i?r(pt,i,!0):null,o=(i,s,l,u)=>{let d=l.displaced.visible[i],c=!!(u.inVirtualList&&u.effected[i]),f=vf(l),m=f&&f.draggableId===i?s:null;if(!d){if(!c)return a(m);if(l.displaced.invisible[i])return null;let v=Vi(u.displacedBy.point),p=e(v.x,v.y);return r(p,m,!0)}if(c)return a(m);let g=l.displacedBy.point,x=e(g.x,g.y);return r(x,m,d.shouldAnimate)};return(i,s)=>{if(lu(i))return i.critical.draggable.id===s.draggableId?null:o(s.draggableId,i.critical.draggable.id,i.impact,i.afterCritical);if(i.phase==="DROP_ANIMATING"){let l=i.completed;return l.result.draggableId===s.draggableId?null:o(s.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}var mF=()=>{let e=cF(),t=pF();return(a,o)=>e(a,o)||t(a,o)||fF},gF={dropAnimationFinished:RC},hF=o0(mF,gF,null,{context:z0,areStatePropsEqual:ZC})(lF);function rL(e){return gf($0).isUsingCloneFor===e.draggableId&&!e.isClone?null:W.default.createElement(hF,e)}function aL(e){let t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,a=!!e.shouldRespectForcePress;return W.default.createElement(rL,Kl({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:a}))}var W0=e=>t=>e===t,vF=W0("scroll"),xF=W0("auto"),yF=W0("visible"),eC=(e,t)=>t(e.overflowX)||t(e.overflowY),wF=(e,t)=>t(e.overflowX)&&t(e.overflowY),oL=e=>{let t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return eC(r,vF)||eC(r,xF)},bF=()=>!1,nL=e=>e==null?null:e===document.body?bF()?e:null:e===document.documentElement?null:oL(e)?e:nL(e.parentElement);var I0=e=>({x:e.scrollLeft,y:e.scrollTop}),iL=e=>e?window.getComputedStyle(e).position==="fixed"?!0:iL(e.parentElement):!1,SF=e=>{let t=nL(e),r=iL(e);return{closestScrollable:t,isFixedOnPage:r}},CF=({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:a,direction:o,client:n,page:i,closest:s})=>{let l=(()=>{if(!s)return null;let{scrollSize:f,client:m}=s,g=OC({scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:f,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:pt,displacement:pt}}}})(),u=o==="vertical"?P0:mC,d=Fi({page:i,withPlaceholder:null,axis:u,frame:l});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:a,axis:u,isEnabled:t,client:n,page:i,frame:l,subject:d}},LF=(e,t)=>{let r=l0(e);if(!t||e!==t)return r;let a=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,n=a+t.scrollHeight,i=o+t.scrollWidth,l=sf({top:a,right:i,bottom:n,left:o},r.border);return lf({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})},IF=({ref:e,descriptor:t,env:r,windowScroll:a,direction:o,isDropDisabled:n,isCombineEnabled:i,shouldClipSubject:s})=>{let l=r.closestScrollable,u=LF(e,l),d=Yl(u,a),c=(()=>{if(!l)return null;let m=l0(l),g={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:m,page:Yl(m,a),scroll:I0(l),scrollSize:g,shouldClipSubject:s}})();return CF({descriptor:t,isEnabled:!n,isCombineEnabled:i,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:c})},kF={passive:!1},NF={passive:!0},tC=e=>e.shouldPublishImmediately?kF:NF,cf=e=>e&&e.env.closestScrollable||null;function EF(e){let t=(0,W.useRef)(null),r=gf(wf),a=H0("droppable"),{registry:o,marshal:n}=r,i=j0(e),s=we(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=(0,W.useRef)(s),u=we(()=>ft((w,S)=>{t.current||F();let L={x:w,y:S};n.updateDroppableScroll(s.id,L)}),[s.id,n]),d=Z(()=>{let w=t.current;return!w||!w.env.closestScrollable?pt:I0(w.env.closestScrollable)},[]),c=Z(()=>{let w=d();u(w.x,w.y)},[d,u]),f=we(()=>Oi(c),[c]),m=Z(()=>{let w=t.current,S=cf(w);if(w&&S||F(),w.scrollOptions.shouldPublishImmediately){c();return}f()},[f,c]),g=Z((w,S)=>{t.current&&F();let L=i.current,k=L.getDroppableRef();k||F();let N=SF(k),q={ref:k,descriptor:s,env:N,scrollOptions:S};t.current=q;let D=IF({ref:k,descriptor:s,env:N,windowScroll:w,direction:L.direction,isDropDisabled:L.isDropDisabled,isCombine
97Enabled:L.isCombineEnabled,shouldClipSubject:!L.ignoreContainerClipping}),ee=N.closestScrollable;return ee&&(ee.setAttribute(XS.contextId,r.contextId),ee.addEventListener("scroll",m,tC(q.scrollOptions))),D},[r.contextId,s,m,i]),x=Z(()=>{let w=t.current,S=cf(w);return w&&S||F(),I0(S)},[]),v=Z(()=>{let w=t.current;w||F();let S=cf(w);t.current=null,S&&(f.cancel(),S.removeAttribute(XS.contextId),S.removeEventListener("scroll",m,tC(w.scrollOptions)))},[m,f]),p=Z(w=>{let S=t.current;S||F();let L=cf(S);L||F(),L.scrollTop+=w.y,L.scrollLeft+=w.x},[]),h=we(()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:x,dragStopped:v,scroll:p}),[v,g,x,p]),y=we(()=>({uniqueId:a,descriptor:s,callbacks:h}),[h,s,a]);fr(()=>(l.current=y.descriptor,o.droppable.register(y),()=>{t.current&&v(),o.droppable.unregister(y)}),[h,s,v,y,n,o.droppable]),fr(()=>{t.current&&n.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,n]),fr(()=>{t.current&&n.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,n])}function g0(){}var rC={width:0,height:0,margin:ET},PF=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||r==="close"?rC:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},DF=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{let a=PF({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?tu.placeholder:null}},RF=e=>{let t=(0,W.useRef)(null),r=Z(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:a,onTransitionEnd:o,onClose:n,contextId:i}=e,[s,l]=(0,W.useState)(e.animate==="open");(0,W.useEffect)(()=>s?a!=="open"?(r(),l(!1),g0):t.current?g0:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):g0,[a,s,r]);let u=Z(c=>{c.propertyName==="height"&&(o(),a==="close"&&n())},[a,n,o]),d=DF({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return W.default.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":i,onTransitionEnd:u,ref:e.innerRef})},AF=W.default.memo(RF);function h0(e){return typeof e=="boolean"}function v0(e,t){t.forEach(r=>r(e))}var TF=[function({props:t}){t.droppableId||F(),typeof t.droppableId!="string"&&F()},function({props:t}){h0(t.isDropDisabled)||F(),h0(t.isCombineEnabled)||F(),h0(t.ignoreContainerClipping)||F()},function({getDroppableRef:t}){JC(t())}],MF=[function({props:t,getPlaceholderRef:r}){!t.placeholder||r()}],OF=[function({props:t}){t.renderClone||F()},function({getPlaceholderRef:t}){t()&&F()}];function FF(e){gu(()=>{v0(e,TF),e.props.mode==="standard"&&v0(e,MF),e.props.mode==="virtual"&&v0(e,OF)})}var k0=class extends W.default.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;let t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}},BF=e=>{let t=(0,W.useContext)(wf);t||F();let{contextId:r,isMovementAllowed:a}=t,o=(0,W.useRef)(null),n=(0,W.useRef)(null),{children:i,droppableId:s,type:l,mode:u,direction:d,ignoreContainerClipping:c,isDropDisabled:f,isCombineEnabled:m,snapshot:g,useClone:x,updateViewportMaxScroll:v,getContainerForClone:p}=e,h=Z(()=>o.current,[]),y=Z((O=null)=>{o.current=O},[]),w=Z(()=>n.current,[]),S=Z((O=null)=>{n.current=O},[]);FF({props:e,getDroppableRef:h,getPlaceholderRef:w});let L=Z(()=>{a()&&v({maxScroll:BC()})},[a,v]);EF({droppableId:s,type:l,mode:u,direction:d,isDropDisabled:f,isCombine
97Enabled:m,ignoreContainerClipping:c,getDroppableRef:h});let k=we(()=>W.default.createElement(k0,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:O,data:ne,animate:ae})=>W.default.createElement(AF,{placeholder:ne,onClose:O,innerRef:S,animate:ae,contextId:r,onTransitionEnd:L})),[r,L,e.placeholder,e.shouldAnimatePlaceholder,S]),N=we(()=>({innerRef:y,placeholder:k,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}}),[r,s,k,y]),q=x?x.dragging.draggableId:null,D=we(()=>({droppableId:s,type:l,isUsingCloneFor:q}),[s,q,l]);function ee(){if(!x)return null;let{dragging:O,render:ne}=x,ae=W.default.createElement(rL,{draggableId:O.draggableId,index:O.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(M,G)=>ne(M,G,O));return uu.default.createPortal(ae,p())}return W.default.createElement($0.Provider,{value:D},i(N,g),ee())};function _F(){return document.body||F(),document.body}var aC={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:_F},sL=e=>{let t={...e},r;for(r in aC)e[r]===void 0&&(t={...t,[r]:aC[r]});return t},x0=(e,t)=>e===t.droppable.type,oC=(e,t)=>t.draggables[e.draggable.id],VF=()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=ft(n=>({draggableId:n.id,type:n.type,source:{index:n.index,droppableId:n.droppableId}})),a=ft((n,i,s,l,u,d)=>{let c=u.descriptor.id;if(u.descriptor.droppableId===n){let g=d?{render:d,dragging:r(u.descriptor)}:null,x={isDraggingOver:s,draggingOverWith:s?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:x,useClone:g}}if(!i)return t;if(!l)return e;let m={isDraggingOver:s,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:m,useClone:null}});return(n,i)=>{let s=sL(i),l=s.droppableId,u=s.type,d=!s.isDropDisabled,c=s.renderClone;if(lu(n)){let f=n.critical;if(!x0(u,f))return t;let m=oC(f,n.dimensions),g=cr(n.impact)===l;return a(l,d,g,g,m,c)}if(n.phase==="DROP_ANIMATING"){let f=n.completed;if(!x0(u,f.critical))return t;let m=oC(f.critical,n.dimensions);return a(l,d,eL(f.result)===l,cr(f.impact)===l,m,c)}if(n.phase==="IDLE"&&n.completed&&!n.shouldFlush){let f=n.completed;if(!x0(u,f.critical))return t;let m=cr(f.impact)===l,g=!!(f.impact.at&&f.impact.at.type==="COMBINE"),x=f.critical.droppable.id===l;return m?g?e:t:x?e:t}return t}},UF={updateViewportMaxScroll:UM},lL=o0(VF,UF,(e,t,r)=>({...sL(r),...e,...t}),{context:z0,areStatePropsEqual:ZC})(BF);var H=E(J()),Sf=6,uL="https://www.taskade.com/webhooks/flow/01K7GY3R79V1RPRBJKS3BXJRQ2/run",zF=({shortcuts:e,customerName:t,customerId:r,language:a,onUpdateShortcuts:o})=>{let[n,i]=(0,va.useState)(null),[s,l]=(0,va.useState)(null),[u,d]=(0,va.useState)(""),[c,f]=(0,va.useState)(null),[m,g]=(0,va.useState)(null),[x,v]=(0,va.useState)(!1),p=(0,va.useRef)(null),h=(0,va.useRef)(!1),y=Qt(a),w=M=>{if(v(!1),!M.destination)return;let G=M.source.index,U=M.destination.index;if(G===U)return;let j=Array.from(e),[ue]=j.splice(G,1);j.splice(U,0,ue),o(j),navigator.vibrate&&navigator.vibrate(30)},S=()=>{v(!0),p.current&&(clearTimeout(p.current),p.current=null),h.current=!1,navigator.vibrate&&navigator.vibrate(50)},L=Array.isArray(e)?e.slice(0,Sf):[];if(L.length===0)return null;let k=async(M,G)=>{try{let U={language:a||"en-US",latitude:G.latitude,longitude:G.longitude,minPower:M.metadata?.chargerPower?parseInt(M.metadata.chargerPower):50,userName:t,shortcutId:M.id,shortcutName:M.name,shortcutType:M.type,customerId:r,savedLocation:M.location?{latitude:M.location.latitude,longitude:M.location.longitude,address:M.location.address}:null,currentLocation:{latitude:G.latitude,longitude:G.longitude,address:G.address,accuracy:G.accuracy},metadata:M.metadata||{},timestamp:new Date().toISOString()};console.log("Sending to Taskade webhook:",uL,U);let j=new AbortController,ue=setTimeout(()=>j.abort(),1e4),me=await fetch(uL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(U),signal:j.signal});if(clearTimeout(ue),me.ok){let ge=await me.json();return console.log("Taskade webhook success:",ge),!0}else{console.error("Taskade webhook failed with status:",me.status);let ge=await me.text();return console.error("Error response:",ge),!1}}catch(U){return console.error("Taskade webhook error:",U),!1}},N=async(M,G)=>{let U="+1234567890",j=`SHORTCUT: ${M.name}\\n`;j+=`Customer: ${t}\\n`,j+=`ID: ${r}\\n\\n`,M.location&&(j+="SAVED LOCATION:\\n",j+=`Coordinates: ${M.location.latitude.toFixed(6)}, ${M.location.longitude.toFixed(6)}\\n`,M.location.address&&(j+=`Address: ${M.location.address}\\n`),j+=`Map: https://maps.google.com/?q=${M.location.latitude},${M.location.longitude}\\n\\n`),j+="CURRENT LOCATION:\\n",j+=`Coordinates: ${G.latitude.toFixed(6)}, ${G.longitude.toFixed(6)}\\n`,G.address&&(j+=`Address: ${G.address}\\n`),j+=`Map: https://maps.google.com/?q=${G.latitude},${G.longitude}\\n\\n`,M.metadata?.stationId&&(j+=`Station ID: ${M.metadata.stationId}\\n`),M.metadata?.chargerPower&&(j+=`Charger Power: ${M.metadata.chargerPower}\\n`),M.metadata?.notes&&(j+=`Notes: ${M.metadata.notes}
97\\n`),j+=`\\nTimestamp: ${new Date().toLocaleString()}`;let ue=encodeURIComponent(j),ge=/iPad|iPhone|iPod/.test(navigator.userAgent)?`sms:${U}&body=${ue}`:`sms:${U}?body=${ue}`;console.log("Opening SMS with body:",j),window.location.href=ge},q=M=>{x||(h.current=!0,p.current=setTimeout(()=>{h.current&&!x&&(f(M),navigator.vibrate&&navigator.vibrate(50))},3e3))},D=()=>{p.current&&(clearTimeout(p.current),p.current=null),h.current=!1},ee=M=>{g(M),f(null)},O=M=>{if(confirm("Are you sure you want to delete this shortcut?")){let G=e.filter(U=>U.id!==M);o(G),f(null)}},ne=M=>{let G=e.map(U=>U.id===M.id?M:U);o(G),g(null)},ae=async M=>{if(!c&&!x){i(M.id),l(null),d("");try{d(y.gettingLocation);let G=await No();if(G.error){alert("Unable to get current location. Please enable location services."),i(null);return}if(M.metadata?.useAutomation===!0)if(d(y.connecting),await k(M,G)){d("\u2713 Sent via webhook"),l(M.id),i(null);let ue=e.map(me=>me.id===M.id?{...me,usageCount:me.usageCount+1}:me);o(ue),setTimeout(()=>{l(null),d("")},3e3)}else{d("Webhook failed, using SMS..."),await N(M,G);let ue=e.map(me=>me.id===M.id?{...me,usageCount:me.usageCount+1}:me);o(ue),l(M.id),i(null),d("\u2713 Sent via SMS (fallback)"),setTimeout(()=>{l(null),d("")},3e3)}else{d("Opening SMS..."),await N(M,G);let j=e.map(ue=>ue.id===M.id?{...ue,usageCount:ue.usageCount+1}:ue);o(j),l(M.id),i(null),d("\u2713 SMS ready"),setTimeout(()=>{l(null),d("")},3e3)}}catch(G){console.error("Error handling shortcut:",G),alert("Failed to process request. Please try again."),i(null),d("")}}};return(0,H.jsxs)("div",{className:"space-y-3",children:[(0,H.jsx)("div",{className:"flex items-center justify-end",children:(0,H.jsxs)("span",{className:"text-xs text-gray-500",children:[L.length,"/",Sf," ",y.shortcuts]})}),(0,H.jsx)(QC,{onDragEnd:w,onDragStart:S,children:(0,H.jsx)(lL,{droppableId:"shortcuts",children:(M,G)=>(0,H.jsxs)("div",{ref:M.innerRef,...M.droppableProps,className:`grid grid-cols-3 gap-2 transition-colors ${G.isDraggingOver?"bg-blue-50/50 rounded-lg p-1":""}`,children:[L.map((U,j)=>{let ue=U.metadata?.useAutomation===!0,me=c===U.id;return(0,H.jsx)(aL,{draggableId:U.id,index:j,children:(ge,_e)=>(0,H.jsxs)("div",{ref:ge.innerRef,...ge.draggableProps,className:"relative group",children:[(0,H.jsxs)("div",{className:"relative",children:[(0,H.jsx)("div",{className:"absolute -inset-0.5 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300 blur-sm",style:{backgroundColor:`${U.color}40`}}),(0,H.jsxs)("button",{onClick:ea=>{_e.isDragging||ae(U)},onMouseDown:()=>!_e.isDragging&&q(U.id),onMouseUp:D,onMouseLeave:D,onTouchStart:()=>!_e.isDragging&&q(U.id),onTouchEnd:D,onTouchCancel:D,disabled:n!==null||me,className:`relative w-full p-3 rounded-xl backdrop-blur-sm transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${_e.isDragging?"scale-105 shadow-2xl rotate-2 z-50":"hover:scale-105 hover:-translate-y-1 hover:shadow-xl active:scale-95"}`,style:{backgroundColor:_e.isDragging?`${U.color}30`:`${U.color}15`,borderWidth:"2px",borderStyle:_e.isDragging?"dashed":"solid",borderColor:U.color,boxShadow:_e.isDragging?`0 20px 40px ${U.color}40`:`0 4px 12px ${U.color}20`},children:[(0,H.jsx)("div",{...ge.dragHandleProps,className:`absolute top-2 left-2 p-1.5 rounded-md transition-all cursor-grab active:cursor-grabbing z-10 ${_e.isDragging?"bg-blue-500 shadow-lg scale-110":"bg-white/80 shadow-sm hover:bg-blue-50 hover:scale-105"}`,children:(0,H.jsx)(ga,{className:`w-4 h-4 transition-colors ${_e.isDragging?"text-white":"text-blue-600 hover:text-blue-700"}`})}),n===U.id&&(0,H.jsxs)("div",{className:"absolute inset-0 bg-white/90 rounded-lg flex flex-col items-center justify-center z-10 space-y-1",children:[(0,H.jsx)(Xt,{className:"w-5 h-5 text-gray-600 animate-spin"}),u&&(0,H.jsx)("span",{className:"text-xs text-gray-600 text-center px-1",children:u})]}),s===U.id&&(0,H.jsxs)("div",{className:"absolute inset-0 bg-green-500/90 rounded-lg flex flex-col items-center justify-center space-y-1 z-10",children:[(0,H.jsx)(Vt,{className:"w-5 h-5 text-white"}),ue&&!u.includes("SMS")?(0,H.jsx)(Se,{className:"w-4 h-4 text-white"}):(0,H.jsx)(ha,{className:"w-4 h-4 text-white"}),u&&(0,H.jsx)("span",{className:"text-xs text-white text-center px-1",children:u})]}),ue&&(0,H.jsx)("div",{className:"absolute top-1 right-1 w-5 h-5 bg-purple-500 rounded-full flex items-center justify-center z-5",children:(0,H.jsx)(Se,{className:"w-3 h-3 text-white"})}),(0,H.jsxs)("div",{className:"relative w-10 h-10 mx-auto mb-2",children:[(0,H.jsx)("div",{className:"absolute inset-0 rounded-full blur-md opacity-50",style:{backgroundColor:U.color}}),(0,H.jsx)("div",{className:"relative w-10 h-10 rounded-full flex items-center justify-center text-xl shadow-lg group-hover:scale-110 transition-transform duration-300",style:{background:`linear-gradient(135deg, ${U.color} 0%, ${U.color}dd 100%)`,boxShadow:`0 4px 12px ${U.color}60`},children:U.icon})]}),(0,H.jsx)("p",{className:"text-xs font-medium text-gray-900 text-center truncate",children:U.name})]})]}),me&&!_e.isDragging&&(0,H.jsxs)("div",{className:"absolute inset-0 z-50 flex items-center justify-center",children:[(0,H.jsx)("div",{className:"absolute inset-0 bg-black/50 rounded-lg",onClick:()=>f(null)}),(0,H.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl p-2 space-y-1 animate-in zoom-in-95 duration-200",children:[(0,H.jsxs)("button",{onClick:()=>ee(U),className:"flex items-center space-x-2 w-full px-3 py-2 text-left text-sm font-medium text-gray-700 hover:bg-blue-50 rounded-lg transition-colors",children:[(0,H.jsx)(Yt,{className:"w-4 h-4 text-blue-600"}),(0,H.jsx)("span",{children:"Edit"})]}),(0,H.jsxs)("button",{onClick:()=>O(U.id),className:"flex items-center space-x-2 w-full px-3 py-2 text-left text-sm font-medium text-red-600 hover:bg-red-50 rounded-lg transition-colors",children:[(0,H.jsx)($r,{className:"w-4 h-4"}),(0,H.jsx)("span",{children:"Delete"})]}),(0,H.jsxs)("button",{onClick:()=>f(null),className:"flex items-center space-x-2 w-full px-3 py-2 text-left text-sm font-medium text-gray-500 hover:bg-gray-50 rounded-lg transition-colors",children:[(0,H.jsx)(ot,{className:"w-4 h-4"}),(0,H.jsx)("span",{children:"Cancel"})]})]})]})]})},U.id)}),M.placeholder]})})}),s&&u&&(0,H.jsx)("div",{className:`p-3 rounded-lg animate-in slide-in-from-bottom-2 ${u.includes("SMS")?"bg-blue-50 border border-blue-200":"bg-green-50 border border-green-200"}`,children:(0,H.jsx)("p",{className:`text-sm text-center font-medium ${u.includes("SMS")?"text-blue-800":"text-green-800"}`,children:u})}),e.length>=Sf&&(0,H.jsx)("div",{className:"p-2 bg-amber-50 border border-amber-200 rounded-lg",children:(0,H.jsxs)("p",{className:"text-xs text-amber-800 text-center",children:["\u26A0\uFE0F Maximum ",Sf," ",y.shortcuts," reached"]})}),m&&(0,H.jsx)("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center p-4 z-50 animate-in fade-in duration-200",children:(0,H.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-md max-h-[90vh] overflow-hidden animate-in zoom-in-95 duration-200",children:[(0,H.jsx)("div",{className:"bg-gradient-to-r from-blue-500 to-purple-600 p-6",children:(0,H.jsxs)("div",{className:"flex items-center justify-between",children:[(0,H.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,H.jsx)("div",{className:"w-12 h-12 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center",children:(0,H.jsx)(Yt,{className:"w-6 h-6 text-white"})}),(0,H.jsxs)("div",{children:[(0,H.jsx)("h2",{className:"text-xl font-bold text-white",children:"Edit Shortcut"}),(0,H.jsx)("p",{className:"text-sm text-white/80",children:"Update shortcut details"})]})]}),(0,H.jsx)("button",{onClick:()=>g(null),className:"p-2 hover:bg-white/20 rounded-full transition-colors",children:(0,H.jsx)(ot,{className:"w-5 h-5 text-white"})})]})}),(0,H.jsxs)("div",{className:"p-6 space-y-4 overflow-y-auto max-h-[calc(90vh-200
97px)]",children:[(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Shortcut Name"}),(0,H.jsx)("input",{type:"text",value:m.name,onChange:M=>g({...m,name:M.target.value}),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Enter shortcut name"})]}),(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Icon (Emoji)"}),(0,H.jsx)("input",{type:"text",value:m.icon,onChange:M=>g({...m,icon:M.target.value}),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent text-2xl text-center",placeholder:"\u{1F50C}",maxLength:2})]}),(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Color"}),(0,H.jsx)("div",{className:"grid grid-cols-6 gap-2",children:["#22c55e","#3b82f6","#8b5cf6","#f59e0b","#ef4444","#ec4899"].map(M=>(0,H.jsx)("button",{onClick:()=>g({...m,color:M}),className:`w-full aspect-square rounded-lg transition-all ${m.color===M?"ring-4 ring-offset-2 ring-blue-500 scale-110":"hover:scale-105"}`,style:{backgroundColor:M}},M))})]}),m.metadata&&(0,H.jsxs)("div",{children:[(0,H.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Notes"}),(0,H.jsx)("textarea",{value:m.metadata.notes||"",onChange:M=>g({...m,metadata:{...m.metadata,notes:M.target.value}}),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",rows:3,placeholder:"Add notes about this shortcut..."})]})]}),(0,H.jsxs)("div",{className:"p-6 bg-gray-50 border-t border-gray-200 flex space-x-3",children:[(0,H.jsx)("button",{onClick:()=>g(null),className:"flex-1 px-4 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 transition-colors",children:"Cancel"}),(0,H.jsx)("button",{onClick:()=>ne(m),className:"flex-1 px-4 py-3 bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-lg font-semibold hover:shadow-lg transition-all hover:scale-105 active:scale-95",children:"Save Changes"})]})]})})]})},dL=zF;var y7=E(Y()),We=E(J()),HF=({className:e="",size:t=40})=>(0,We.jsxs)("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,We.jsxs)("defs",{children:[(0,We.jsxs)("linearGradient",{id:"waveGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,We.jsx)("stop",{offset:"0%",stopColor:"#10b981"}),(0,We.jsx)("stop",{offset:"50%",stopColor:"#3b82f6"}),(0,We.jsx)("stop",{offset:"100%",stopColor:"#6366f1"})]}),(0,We.jsxs)("linearGradient",{id:"plugGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,We.jsx)("stop",{offset:"0%",stopColor:"#3b82f6"}),(0,We.jsx)("stop",{offset:"100%",stopColor:"#6366f1"})]})]}),(0,We.jsx)("path",{d:"M 10 50 Q 15 35, 20 50 T 30 50 Q 35 35, 40 50",stroke:"url(#waveGradient)",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",children:(0,We.jsx)("animate",{attributeName:"d",values:`M 10 50 Q 15 35, 20 50 T 30 50 Q 35 35, 40 50;
98                  M 10 50 Q 15 65, 20 50 T 30 50 Q 35 65, 40 50;
99                  M 10 50 Q 15 35, 20 50 T 30 50 Q 35 35, 40 50`,dur:"2s",repeatCount:"indefinite"})}),(0,We.jsx)("rect",{x:"55",y:"35",width:"35",height:"30",rx:"6",fill:"url(#plugGradient)",stroke:"#1e40af",strokeWidth:"2"}),(0,We.jsx)("rect",{x:"62",y:"25",width:"6",height:"12",rx:"2",fill:"#1e40af"}),(0,We.jsx)("rect",{x:"77",y:"25",width:"6",height:"12",rx:"2",fill:"#1e40af"}),(0,We.jsx)("path",{d:"M 72.5 42 L 69 50 L 73 50 L 70 58 L 78 50 L 74 50 L 77.5 42 Z",fill:"#fbbf24",children:(0,We.jsx)("animate",{attributeName:"opacity",values:"1;0.6;1",dur:"1.5s",repeatCount:"indefinite"})}),(0,We.jsx)("line",{x1:"40",y1:"50",x2:"55",y2:"50",stroke:"url(#waveGradient)",strokeWidth:"3",strokeLinecap:"round"}),(0,We.jsxs)("circle",{cx:"47.5",cy:"50",r:"3",fill:"#3b82f6",opacity:"0.6",children:[(0,We.jsx)("animate",{attributeName:"r",values:"3;5;
993",dur:"1.5s",repeatCount:"indefinite"}),(0,We.jsx)("animate",{attributeName:"opacity",values:"0.6;1;0.6",dur:"1.5s",repeatCount:"indefinite"})]})]}),cL=HF;var G0=()=>!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia&&window.RTCPeerConnection),jF=async()=>{try{return(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(t=>t.stop()),!0}catch(e){return console.error("Microphone permission denied:",e),!1}},fL=async e=>{try{return G0()?await jF()?(console.log("Initiating Jambonz WebRTC call with options:",e),{success:!0}):{success:!1,error:"Microphone permission required for calls"}:{success:!1,error:"WebRTC not supported in this browser"}}catch(t){return console.error("Error initiating Jambonz call:",t),{success:!1,error:t instanceof Error?t.message:"Failed to initiate WebRTC call"}}};var Cf=async(e,t,r,a,o="webrtc")=>{try{return o==="webrtc"&&G0()?(console.log("Initiating WebRTC call via Jambonz..."),await fL({customerName:e,customerId:t,callType:r,location:a})):(console.log("Initiating traditional phone call..."),await qF())}catch(n){return console.error("Error initiating call:",n),{success:!1,error:"Failed to initiate call"}}},qF=async()=>{try{let t="tel:+33123456789";return window.location.href=t,{success:!0}}catch(e){return console.error("Error initiating traditional call:",e),{success:!1,error:"Failed to initiate phone call"}}};var $F={Free:10,Pro:1/0,Enterprise:1/0},Lf=e=>$F[e],Hi=e=>{let t=Lf(e.subscriptionTier);return(e.callUsage?.totalCalls||0)>=t},pL=e=>{let t=Lf(e.subscriptionTier),r=e.callUsage?.totalCalls||0;return t===1/0?1/0:Math.max(0,t-r)},mL=e=>{let t=e.callUsage?.totalCalls||0;return{...e,callUsage:{totalCalls:t+1,lastCallDate:Date.now(),monthlyResetDate:e.callUsage?.monthlyResetDate||Date.now()}}},hu=e=>{let t=Lf(e.subscriptionTier),r=e.callUsage?.totalCalls||0;return t===1/0?0:Math.min(100,r/t*100)},X0=e=>hu(e)>=80&&e.subscriptionTier==="Free",gL=e=>{let t=Lf(e.subscriptionTier),r=e.callUsage?.totalCalls||0;return t===1/0?"Unlimited":`${r} / ${t}`};var _=E(J()),WF=({settings:e,onUpdateSettings:t,onNavigate:r})=>{let[a,o]=(0,Ao.useState)(!1),[n,i]=(0,Ao.useState)(!1),[s,l]=(0,Ao.useState)(!1),[u,d]=(0,Ao.useState)(null),[c,f]=(0,Ao.useState)(null),m=Ao.default.useMemo(()=>{try{return Qt(e.language||"en")}catch(v){return console.error("Error loading translations:",v),Qt("en")}},[e.language]),g=e.customerName==="Demo User"&&e.customerId==="DEMO-001",x=async(v="webrtc")=>{if(Hi(e)){f({type:"error",message:"\u{1F6AB} Call limit reached! You've used all 10 free calls. Please upgrade to continue."}),setTimeout(()=>{f(null),i(!0)},3e3);return}o(!0),d("getting");try{let p=await No();d(p.error?"error":"success");let h=await Cf(e.customerName,e.customerId,"general",p.error?void 0:{latitude:p.latitude,longitude:p.longitude,address:p.address},v);if(h.success){let y=mL(e);t(y),f({type:"success",message:`\u{1F4DE} ${m.callingServer} ${m.serverWillAnswer}`})}else f({type:"error",message:h.error||`\u26A0\uFE0F ${m.unableToInitiateCall} ${m.pleaseTryAgain}`})}catch(p){console.error("Error initiating call:",p),f({type:"error",message:`\u26A0\uFE0F ${m.errorInitiatingCall} ${m.pleaseTryAgain}`})}finally{o(!1),setTimeout(()=>{d(null),f(null)},5e3)}};return(0,_.jsxs)("div",{className:"min-h-screen flex flex-col relative overflow-hidden",children:[(0,_.jsxs)("div",{className:"absolute inset-0 bg-gradient-to-br from-green-50 via-blue-50 to-green-100",children:[(0,_.jsxs)("div",{className:"absolute inset-0 opacity-30",children:[(0,_.jsx)("div",{className:"absolute top-10 left-10 w-32 h-32 bg-green-200 rounded-full blur-xl"}),(0,_.jsx)("div",{className:"absolute top-32 right-16 w-24 h-24 bg-blue-200 rounded-full blur-lg"}),(0,_.jsx)("div",{className:"absolute bottom-32 left-20 w-40 h-40 bg-green-100 rounded-full blur-2xl"}),(0,_.jsx)("div",{className:"absolute bottom-16 right-12 w-28 h-28 bg-blue-100 rounded-full blur-xl"}),(0,_.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-gradient-to-r from-green-100 to-blue-100 rounded-full blur-3xl op
99acity-50"})]}),(0,_.jsx)("div",{className:"absolute inset-0 opacity-10",children:(0,_.jsx)("div",{className:"w-full h-full",style:{backgroundImage:`
100              linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
101              linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px)
102            `,backgroundSize:"20px 20px"}})})]}),(0,_.jsxs)("div",{className:"flex justify-between items-center p-4 relative z-20",children:[(0,_.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_.jsx)("div",{className:"flex items-center justify-center",children:(0,_.jsx)(cL,{size:80})}),(0,_.jsx)("h1",{className:"text-2xl font-bold text-gray-800",children:"ChargeVoix"})]}),(0,_.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_.jsxs)("button",{onClick:()=>l(!s),className:"p-3 rounded-full bg-gradient-to-br from-yellow-400 to-orange-500 shadow-xl hover:shadow-2xl transition-all hover:scale-110 active:scale-95 relative group",children:[(0,_.jsx)(Se,{className:"w-6 h-6 text-white"}),e.quickAccessShortcuts&&e.quickAccessShortcuts.length>0&&(0,_.jsx)("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 text-white text-xs font-bold rounded-full flex items-center justify-center border-2 border-white",children:e.quickAccessShortcuts.length})]}),(0,_.jsx)("button",{onClick:()=>i(!n),className:"p-3 rounded-full bg-white shadow-xl hover:bg-gray-50 transition-all hover:scale-110 active:scale-95",children:(0,_.jsx)(Ul,{className:"w-6 h-6 text-gray-700"})})]})]}),Hi(e)&&(0,_.jsx)("div",{className:"relative z-20 mx-4 mb-2 animate-in slide-in-from-top-2 duration-300",children:(0,_.jsx)("div",{className:"bg-gradient-to-r from-red-50 to-pink-50 border-2 border-red-400 rounded-lg p-4 shadow-lg",children:(0,_.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,_.jsx)("div",{className:"flex-shrink-0",children:(0,_.jsx)(Dt,{className:"w-6 h-6 text-red-600 animate-pulse"})}),(0,_.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_.jsx)("div",{className:"flex items-center space-x-2 mb-2",children:(0,_.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-bold bg-red-200 text-red-900",children:"CALL LIMIT REACHED"})}),(0,_.jsx)("p",{className:"text-sm text-red-800 font-medium mb-2",children:"You've used all 10 free calls this month."}),(0,_.jsxs)("button",{onClick:()=>i(!0),className:"inline-flex items-center space-x-2 px-4 py-2 bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-lg font-semibold text-sm hover:shadow-lg transition-all hover:scale-105 active:scale-95",children:[(0,_.jsx)(Ua,{className:"w-4 h-4"}),(0,_.jsx)("span",{children:"Upgrade to Pro"})]})]})]})})}),!Hi(e)&&X0(e)&&(0,_.jsx)("div",{className:"relative z-20 mx-4 mb-2 animate-in slide-in-from-top-2 duration-300",children:(0,_.jsx)("div",{className:"bg-gradient-to-r from-orange-50 to-yellow-50 border-2 border-orange-300 rounded-lg p-3 shadow-md",children:(0,_.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,_.jsx)("div",{className:"flex-shrink-0",children:(0,_.jsx)(Dt,{className:"w-5 h-5 text-orange-600"})}),(0,_.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_.jsx)("div",{className:"flex items-center space-x-2 mb-1",children:(0,_.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold bg-orange-200 text-orange-800",children:m.lowCallsRemaining})}),(0,_.jsxs)("p",{className:"text-xs text-orange-700 leading-relaxed",children:[m.onlyCallsLeft," ",pL(e)," ",m.callsLeft,".",(0,_.jsx)("button",{onClick:()=>i(!0),className:"ml-1 text-orange-800 hover:text-orange-900 underline font-medium",children:m.upgradeNow})," ",m.forUnlimitedCalls,"."]})]})]})})}),g&&!Hi(e)&&!X0(e)&&(0,_.jsx)("div",{className:"relative z-20 mx-4 mb-2 animate-in slide-in-from-top-2 duration-300",children:(0,_.jsx)("div",{className:"bg-gradient-to-r from-amber-50 to-orange-50 border-2 border-amber-300 rounded-lg p-3 shadow-md",children:(0,_.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,_.jsx)("div",{className:"flex-shrink-0",children:(0,_.jsx)(Dt,{className:"w-5 h-5 text-amber-600 animate-pulse"})}),(0,_.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_.jsx)("div",{className:"flex items-center space-x-2 mb-1",children:(0,_.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold bg-amber-200 text-amber-800",children:m.demoMode})}),(0,_.jsxs)("p",{className:"text-xs text-amber-700 leading-relaxed",children:[m.usingDemoCredentials,".",(0,_.jsx)("button",{onClick:()=>i(!0),className:"ml-1 text-amber-800 hover:text-amber-900 underline font-medium",children:m.updateProfile})," ",m.toPersonalize,"."]})]})]})})}),e.subscriptionTier==="Free"&&!Hi(e)&&(0,_.jsx)("div",{className:"relative z-20 mx-4 mb-2 animate-in slide-in-from-top-2 duration-300",children:(0,_.jsx)("div",{className:"bg-white/80 backdrop-blur-sm border border-gray-200 rounded-lg p-3 shadow-sm",children:(0,_.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_.jsx)(St,{className:"w-4 h-4 text-gray-600"}),(0,_.jsx)("span",{className:"text-sm font-medium text-gray-700",children:m.callsUsed})]}),(0,_.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,_.jsx)("span",{className:"text-sm font-bold text-gray-900",children:gL(e)}),(0,_.jsx)("div",{className:"w-24 h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,_.jsx)("div",{className:`h-full transition-all duration-500 ${hu(e)>=80?"bg-gradient-to-r from-red-500 to-pink-500":hu(e)>=50?"bg-gradient-to-r from-orange-400 to-yellow-400":"bg-gradient-to-r from-green-400 to-blue-500"}`,style:{width:`${hu(e)}%`}})})]})]})})}),n&&(0,_.jsx)("div",{className:"absolute top-0 left-0 right-0 bottom-0 z-50",children:(0,_.jsx)(rS,{settings:e,onUpdateSettings:t,onClose:()=>i(!1)})}),s&&(0,_.jsx)("div",{className:"absolute top-0 left-0 right-0 bottom-0 z-50",children:(0,_.jsx)(oS,{shortcuts:e.quickAccessShortcuts||[],onUpdateShortcuts:v=>t({quickAccessShortcuts:v}),onClose:()=>l(!1)})}),(0,_.jsxs)("div",{className:`flex-1 flex flex-col items-center justify-center px-4 pb-20 relative transition-all duration-300 ${n?"z-10 opacity-30 pointer-events-none":"z-10"}`,children:[c&&(0,_.jsx)("div",{className:`mb-8 p-4 rounded-lg shadow-lg max-w-sm w-full text-center backdrop-blur-sm ${c.type==="success"?"bg-green-100/90 text-green-800 border border-green-200":"bg-red-100/90 text-red-800 border border-red-200"}`,children:c.message}),u&&(0,_.jsxs)("div",{className:`mb-4 p-3 rounded-lg shadow-md max-w-sm w-full text-center backdrop-blur-sm flex items-center justify-center space-x-2 ${u==="getting"?"bg-blue-100/90 text-blue-800 border border-blue-200":u==="success"?"bg-green-100/90 text-green-800 border border-green-200":"bg-yellow-100/90 text-yellow-800 border border-yellow-200"}`,children:[(0,_.jsx)(ur,{className:`w-4 h-4 ${u==="getting"?"animate-pulse":""}`}),(0,_.jsxs)("span",{className:"text-sm",children:[u==="getting"&&m.gettingLocation,u==="success"&&m.locationReady,u==="error"&&m.locationUnavailable]})]}),e.quickAccessShortcuts&&e.quickAccessShortcuts.length>0&&(0,_.jsx)("div",{className:"mb-6 w-full max-w-sm",children:(0,_.jsx)(dL,{shortcuts:e.quickAccessShortcuts,customerName:e.customerName,customerId:e.customerId,language:e.language,onUpdateShortcuts:v=>t({quickAccessShortcuts:v})})}),(0,_.jsx)(af,{onInitiateCall:x,isProcessing:a,label:a?m.connecting:m.callForHelp,singleClickText:m.singleClickWillAnswer}),(0,_.jsx)("div",{className:"mt-3 text-center max-w-sm",children:(0,_.jsxs)("div",{className:"flex items-center justify-center space-x-1 text-xs text-gray-500",children:[(0,_.jsx)(ur,{className:"w-3 h-3"}),(0,_.jsx)("span",{children:m.locationSharedAutomatically})]})}),(0,_.jsxs)("div",{className:"mt-8 grid grid-cols-2 gap-3 max-w-sm w-full",children:[(0,_.jsxs)("div",{className:"p-3 bg-white/80 backdrop-blur-sm rounded-lg border border-gray-200",children:[(0,_.jsxs)("p",{className:"text-xs font-semibold text-gray-700 mb-1",children:["\u{1F4DE} ",m.voiceCall]}),(0,_.jsx)("p",{className:"text-xs text-gray-600",children:m.talkDirectlyWithAI})]}),(0,_.jsxs)("div",{className:"p-3 bg-white/80 backdrop-blur-sm rounded-lg border border-gray-200",children:[(0,_.jsxs)("p",{className:"text-xs font-semibold text-gray-700 mb-1",children:["\u{1F4AC} ",m.quickSMS]}),(0,_.jsx)("p",{className:"text-xs text-gray-600",children:m.useShortcutsForQueries})]})]})]}),(0,_.jsx)("div",{className:`relative transition-all duration-300 ${n?"z-10 opacity-30 pointer-events-none":"z-10"}`,children:(0,_.jsx)(nS,{onNavigate:r,language:e.language})}),(0,_.jsx)(of,{settings:e})]})},hL=WF;var Mr=E(Y());var Bk=E(Y());var Gu=E(J(),1),ba=E(Y(),1);var vL=E(Y(),1),ji=(0,vL.createContext)({});var xL=E(Y(),1);function qi(e){let t=(0,xL.useRef)(null);return t.current===null&&(t.current=e()),t.current}var If=E(Y(),1);var $i=typeof window<"u";var kf=$i?If.useLayoutEffect:If.useEffect;var Dv=E(J(),1),N2=E(Y(),1),$u=E(Y(),1);var yL=E(Y(),1),To=(0,yL.createContext)(null);var I2=E(J(),1);function Pn(e,t){e.indexOf(t)===-1&&e.push(t)}function Dn(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var mt=(e,t,r)=>r>t?t:r<e?e:r;var za=()=>{},Rr=()=>{};var Rt={};var vu=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xu(e){return typeof e=="object"&&e!==null}var yu=e=>/^0[^.\s]+$/u.test(e);function Rn(e){let t;return()=>(t===void 0&&(t=e()),t)}var je=e=>e;var GF=(e,t)=>r=>
102t(e(r)),Xr=(...e)=>e.reduce(GF);var xa=(e,t,r)=>{let a=t-e;return a===0?1:(r-e)/a};var Ha=class{constructor(){this.subscriptions=[]}add(t){return Pn(this.subscriptions,t),()=>Dn(this.subscriptions,t)}notify(t,r,a){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,a);else for(let n=0;n<o;n++){let i=this.subscriptions[n];i&&i(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var it=e=>e*1e3,st=e=>e/1e3;function wu(e,t){return t?e*(1e3/t):0}var wL=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,XF=1e-7,YF=12;function KF(e,t,r,a,o){let n,i,s=0;do i=t+(r-t)/2,n=wL(i,a,o)-e,n>0?r=i:t=i;while(Math.abs(n)>XF&&++s<YF);return i}function Mo(e,t,r,a){if(e===t&&r===a)return je;let o=n=>KF(n,0,1,e,r);return n=>n===0||n===1?n:wL(o(n),t,a)}var Nf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Ef=e=>t=>1-e(1-t);var Pf=Mo(.33,1.53,.69,.99),Wi=Ef(Pf),bu=Nf(Wi);var Su=e=>(e*=2)<1?.5*Wi(e):.5*(2-Math.pow(2,-10*(e-1)));var Cu=e=>1-Math.sin(Math.acos(e)),Lu=Ef(Cu),Iu=Nf(Cu);var Y0=Mo(.42,0,1,1),K0=Mo(0,0,.58,1),ku=Mo(.42,0,.58,1);var Q0=e=>Array.isArray(e)&&typeof e[0]!="number";var Nu=e=>Array.isArray(e)&&typeof e[0]=="number";var bL={linear:je,easeIn:Y0,easeInOut:ku,easeOut:K0,circIn:Cu,circInOut:Iu,circOut:Lu,backIn:Wi,backInOut:bu,backOut:Pf,anticipate:Su},QF=e=>typeof e=="string",Df=e=>{if(Nu(e)){Rr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,a,o]=e;return Mo(t,r,a,o)}else if(QF(e))return Rr(bL[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),bL[e];return e};var Eu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Jt={value:null,addProjectionMetrics:null};function SL(e,t){let r=new Set,a=new Set,o=!1,n=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(c){i.has(c)&&(d.schedule(c),e()),l++,c(s)}let d={schedule:(c,f=!1,m=!1)=>{let x=m&&o?r:a;return f&&i.add(c),x.has(c)||x.add(c),c},cancel:c=>{a.delete(c),i.delete(c)},process:c=>{if(s=c,o){n=!0;return}o=!0,[r,a]=[a,r],r.forEach(u),t&&Jt.value&&Jt.value.frameloop[t].push(l),l=0,r.clear(),o=!1,n&&(n=!1,d.process(c))}};return d}var JF=40;function Rf(e,t){let r=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},n=()=>r=!0,i=Eu.reduce((y,w)=>(y[w]=SL(n,t?w:void 0),y),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:d,update:c,preRender:f,render:m,postRender:g}=i,x=()=>{let y=Rt.useManualTiming?o.timestamp:performance.now();r=!1,Rt.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(y-o.timestamp,JF),1)),o.timestamp=y,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),d.process(o),c.process(o),f.process(o),m.process(o),g.process(o),o.isProcessing=!1,r&&t&&(a=!1,e(x))},v=()=>{r=!0,a=!0,o.isProcessing||e(x)};return{schedule:Eu.reduce((y,w)=>{let S=i[w];return y[w]=(L,k=!1,N=!1)=>(r||v(),S.schedule(L,k,N)),y},{}),cancel:y=>{for(let w=0;w<Eu.length;w++)i[Eu[w]].cancel(y)},state:o,steps:i}}var{schedule:fe,cancel:Zt,state:Ge,steps:Pu}=Rf(typeof requestAnimationFrame<"u"?requestAnimationFrame:je,!0);var Af;function ZF(){Af=void 0}var Xe={now:()=>(Af===void 0&&Xe.set(Ge.isProcessing||Rt.useManualTiming?Ge.timestamp:performance.now()),Af),set:e=>{Af=e,queueMicrotask(ZF)}};var Yr={layout:0,mainThread:0,waapi:0};var CL=e=>t=>typeof t=="string"&&t.startsWith(e),An=CL("--"),e3=CL("var(--"),Tn=e=>e3(e)?t3.test(e.split("/*")[0].trim()):!1,t3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var ya={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ja={...ya,transform:e=>mt(0,1,e)},Du={...ya,default:1};var Oo=e=>Math.round(e*1e5)/1e5;var Gi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function LL(e){return e==null}var IL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Xi=(e,t)=>r=>!!(typeof r=="string"&&IL.test(r)&&r.startsWith(e)||t&&!LL(r)&&Object.prototype.hasOwnProperty.call(r,t)),Tf=(e,t,r)=>a=>{if(typeof a!="string")return a;let[o,n,i,s]=a.match(Gi);return{[e]:parseFloat(o),[t]:parseFloat(n),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var r3=e=>mt(0,255,e),J0={...ya,transform:e=>Math.round(r3(e))},wa={test:Xi("rgb","red"),parse:Tf("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+J0.transform(e)+", "+J0.transform(t)+", "+J0.transform(r)+", "+Oo(ja.transform(a))+")"};function a3(e){let t="",r="",a="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,a+=a,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alph
102a:o?parseInt(o,16)/255:1}}var Ru={test:Xi("#"),parse:a3,transform:wa.transform};var Au=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kr=Au("deg"),At=Au("%"),re=Au("px"),Z0=Au("vh"),ev=Au("vw"),Mf={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)};var Fo={test:Xi("hsl","hue"),parse:Tf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+At.transform(Oo(t))+", "+At.transform(Oo(r))+", "+Oo(ja.transform(a))+")"};var Be={test:e=>wa.test(e)||Ru.test(e)||Fo.test(e),parse:e=>wa.test(e)?wa.parse(e):Fo.test(e)?Fo.parse(e):Ru.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wa.transform(e):Fo.transform(e),getAnimatableNone:e=>{let t=Be.parse(e);return t.alpha=0,Be.transform(t)}};var kL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o3(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gi)?.length||0)+(e.match(kL)?.length||0)>0}var EL="number",PL="color",n3="var",i3="var(",NL="${}",s3=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Bo(e){let t=e.toString(),r=[],a={color:[],number:[],var:[]},o=[],n=0,s=t.replace(s3,l=>(Be.test(l)?(a.color.push(n),o.push(PL),r.push(Be.parse(l))):l.startsWith(i3)?(a.var.push(n),o.push(n3),r.push(l)):(a.number.push(n),o.push(EL),r.push(parseFloat(l))),++n,NL)).split(NL);return{values:r,split:s,indexes:a,types:o}}function DL(e){return Bo(e).values}function RL(e){let{split:t,types:r}=Bo(e),a=t.length;return o=>{let n="";for(let i=0;i<a;i++)if(n+=t[i],o[i]!==void 0){let s=r[i];s===EL?n+=Oo(o[i]):s===PL?n+=Be.transform(o[i]):n+=o[i]}return n}}var l3=e=>typeof e=="number"?0:Be.test(e)?Be.getAnimatableNone(e):e;function u3(e){let t=DL(e);return RL(e)(t.map(l3))}var Tt={test:o3,parse:DL,createTransformer:RL,getAnimatableNone:u3};function tv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function AL({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let o=0,n=0,i=0;if(!t)o=n=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=tv(l,s,e+1/3),n=tv(l,s,e),i=tv(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(n*255),blue:Math.round(i*255),alpha:a}}function Yi(e,t){return r=>r>0?t:e}var ve=(e,t,r)=>e+(t-e)*r;var rv=(e,t,r)=>{let a=e*e,o=r*(t*t-a)+a;return o<0?0:Math.sqrt(o)},d3=[Ru,wa,Fo],c3=e=>d3.find(t=>t.test(e));function TL(e){let t=c3(e);if(za(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===Fo&&(r=AL(r)),r}var av=(e,t)=>{let r=TL(e),a=TL(t);if(!r||!a)return Yi(e,t);let o={...r};return n=>(o.red=rv(r.red,a.red,n),o.green=rv(r.green,a.green,n),o.blue=rv(r.blue,a.blue,n),o.alpha=ve(r.alpha,a.alpha,n),wa.transform(o))};var Of=new Set(["none","hidden"]);function ML(e,t){return Of.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function f3(e,t){return r=>ve(e,t,r)}function Ff(e){return typeof e=="number"?f3:typeof e=="string"?Tn(e)?Yi:Be.test(e)?av:g3:Array.isArray(e)?OL:typeof e=="object"?Be.test(e)?av:p3:Yi}function OL(e,t){let r=[...e],a=r.length,o=e.map((n,i)=>Ff(n)(n,t[i]));return n=>{for(let i=0;i<a;i++)r[i]=o[i](n);return r}}function p3(e,t){let r={...e,...t},a={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(a[o]=Ff(e[o])(e[o],t[o]));return o=>{for(let n in a)r[n]=a[n](o);return r}}function m3(e,t){let r=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let n=t.types[o],i=e.indexes[n][a[n]],s=e.values[i]??0;r[o]=s,a[n]++}return r}var g3=(e,t)=>{let r=Tt.createTransformer(t),a=Bo(e),o=Bo(t);return a.indexes.var.length===o.indexes.var.length&&a.indexes.color.length===o.indexes.color.length&&a.indexes.number.length>=o.indexes.number.length?Of.has(e)&&!o.values.length||Of.has(t)&&!a.values.length?ML(e,t):Xr(OL(m3(a,o),o.values),r):(za(!0,`Complex values '${e}' and '${t}
102' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Yi(e,t))};function Bf(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ve(e,t,r):Ff(e)(e,t)}var FL=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>fe.update(t,r),stop:()=>Zt(t),now:()=>Ge.isProcessing?Ge.timestamp:Xe.now()}};var _f=(e,t,r=10)=>{let a="",o=Math.max(Math.round(t/r),2);for(let n=0;n<o;n++)a+=Math.round(e(n/(o-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};function Ki(e){let t=0,r=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=r,a=e.next(t);return t>=2e4?1/0:t}function BL(e,t=100,r){let a=r({...e,keyframes:[0,t]}),o=Math.min(Ki(a),2e4);return{type:"keyframes",ease:n=>a.next(o*n).value/t,duration:st(o)}}var h3=5;function Vf(e,t,r){let a=Math.max(t-h3,0);return wu(r-e(a),t-a)}var Ae={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var nv=.001;function _L({duration:e=Ae.duration,bounce:t=Ae.bounce,velocity:r=Ae.velocity,mass:a=Ae.mass}){let o,n;za(e<=it(Ae.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=mt(Ae.minDamping,Ae.maxDamping,i),e=mt(Ae.minDuration,Ae.maxDuration,st(e)),i<1?(o=u=>{let d=u*i,c=d*e,f=d-r,m=Uf(u,i),g=Math.exp(-c);return nv-f/m*g},n=u=>{let c=u*i*e,f=c*r+r,m=Math.pow(i,2)*Math.pow(u,2)*e,g=Math.exp(-c),x=Uf(Math.pow(u,2),i);return(-o(u)+nv>0?-1:1)*((f-m)*g)/x}):(o=u=>{let d=Math.exp(-u*e),c=(u-r)*e+1;return-nv+d*c},n=u=>{let d=Math.exp(-u*e),c=(r-u)*(e*e);return d*c});let s=5/e,l=x3(o,n,s);if(e=it(e),isNaN(l))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:e};{let u=Math.pow(l,2)*a;return{stiffness:u,damping:i*2*Math.sqrt(a*u),duration:e}}}var v3=12;function x3(e,t,r){let a=r;for(let o=1;o<v3;o++)a=a-e(a)/t(a);return a}function Uf(e,t){return e*Math.sqrt(1-t*t)}var y3=["duration","bounce"],w3=["stiffness","damping","mass"];function VL(e,t){return t.some(r=>e[r]!==void 0)}function b3(e){let t={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...e};if(!VL(e,w3)&&VL(e,y3))if(e.visualDuration){let r=e.visualDuration,a=2*Math.PI/(r*1.2),o=a*a,n=2*mt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ae.mass,stiffness:o,damping:n}}else{let r=_L(e);t={...t,...r,mass:Ae.mass},t.isResolvedFromDuration=!0}return t}function Qi(e=Ae.visualDuration,t=Ae.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:o}=r,n=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:n},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:m}=b3({...r,velocity:-st(r.velocity||0)}),g=f||0,x=u/(2*Math.sqrt(l*d)),v=i-n,p=st(Math.sqrt(l/d)),h=Math.abs(v)<5;a||(a=h?Ae.restSpeed.granular:Ae.restSpeed.default),o||(o=h?Ae.restDelta.granular:Ae.restDelta.default);let y;if(x<1){let S=Uf(p,x);y=L=>{let k=Math.exp(-x*p*L);return i-k*((g+x*p*v)/S*Math.sin(S*L)+v*Math.cos(S*L))}}else if(x===1)y=S=>i-Math.exp(-p*S)*(v+(g+p*v)*S);else{let S=p*Math.sqrt(x*x-1);y=L=>{let k=Math.exp(-x*p*L),N=Math.min(S*L,300);return i-k*((g+x*p*v)*Math.sinh(N)+S*v*Math.cosh(N))/S}}let w={calculatedDuration:m&&c||null,next:S=>{let L=y(S);if(m)s.done=S>=c;else{let k=S===0?g:0;x<1&&(k=S===0?it(g):Vf(y,S,L));let N=Math.abs(k)<=a,q=Math.abs(i-L)<=o;s.done=N&&q}return s.value=s.done?i:L,s},toString:()=>{let S=Math.min(Ki(w),2e4),L=_f(k=>w.next(S*k).value,S,30);return S+"ms "+L},toTransition:()=>{}};return w}Qi.applyToOptions=e=>{let t=BL(e,100,Qi);return e.ease=t.ease,e.duration=it(t.duration),e.type="keyframes",e};function Tu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:n=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:d}){let c=e[0],f={done:!1,value:c},m=N=>s!==void 0&&N<s||l!==void 0&&N>l,g=N=>s===void 0?l:l===void 0||Math.abs(s-N)<Math.abs(l-N)?s:l,x=r*t,v=c+x,p=i===void 0?v:i(v);p!==v&&(x=p-c);let h=N=>-x*Math.exp(-N/a),y=N=>p+h(N),w=N=>
102{let q=h(N),D=y(N);f.done=Math.abs(q)<=u,f.value=f.done?p:D},S,L,k=N=>{m(f.value)&&(S=N,L=Qi({keyframes:[f.value,g(f.value)],velocity:Vf(y,N,f.value),damping:o,stiffness:n,restDelta:u,restSpeed:d}))};return k(0),{calculatedDuration:null,next:N=>{let q=!1;return!L&&S===void 0&&(q=!0,w(N),k(N)),S!==void 0&&N>=S?L.next(N-S):(!q&&w(N),f)}}}function S3(e,t,r){let a=[],o=r||Rt.mix||Bf,n=e.length-1;for(let i=0;i<n;i++){let s=o(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||je:t;s=Xr(l,s)}a.push(s)}return a}function UL(e,t,{clamp:r=!0,ease:a,mixer:o}={}){let n=e.length;if(Rr(n===t.length,"Both input and output ranges must be the same length","range-length"),n===1)return()=>t[0];if(n===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=S3(t,a,o),l=s.length,u=d=>{if(i&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);let f=xa(e[c],e[c+1],d);return s[c](f)};return r?d=>u(mt(e[0],e[n-1],d)):u}function zL(e,t){let r=e[e.length-1];for(let a=1;a<=t;a++){let o=xa(0,t,a);e.push(ve(r,1,o))}}function HL(e){let t=[0];return zL(t,e.length-1),t}function jL(e,t){return e.map(r=>r*t)}function C3(e,t){return e.map(()=>t||ku).splice(0,e.length-1)}function Mn({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){let o=Q0(a)?a.map(Df):Df(a),n={done:!1,value:t[0]},i=jL(r&&r.length===t.length?r:HL(t),e),s=UL(i,t,{ease:Array.isArray(o)?o:C3(t,o)});return{calculatedDuration:e,next:l=>(n.value=s(l),n.done=l>=e,n)}}var L3=e=>e!==null;function Ji(e,{repeat:t,repeatType:r="loop"},a,o=1){let n=e.filter(L3),s=o<0||t&&r!=="loop"&&t%2===1?0:n.length-1;return!s||a===void 0?n[s]:a}var I3={decay:Tu,inertia:Tu,tween:Mn,keyframes:Mn,spring:Qi};function zf(e){typeof e.type=="string"&&(e.type=I3[e.type])}var _o=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}};var k3=e=>e/100,qa=class extends _o{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==Xe.now()&&this.tick(Xe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},Yr.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;zf(t);let{type:r=Mn,repeat:a=0,repeatDelay:o=0,repeatType:n,velocity:i=0}=t,{keyframes:s}=t,l=r||Mn;l!==Mn&&typeof s[0]!="number"&&(this.mixKeyframes=Xr(k3,Bf(s[0],s[1])),s=[0,100]);let u=l({...t,keyframes:s});n==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Ki(u));let{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(a+1)-o,this.generator=u}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:a,totalDuration:o,mixKeyframes:n,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:u=0,keyframes:d,repeat:c,repeatType:f,repeatDelay:m,type:g,onUpdate:x,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?p<0:p>o;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let y=this.currentTime,w=a;if(c){let N=Math.min(this.currentTime,o)/s,q=Math.floor(N),D=N%1;!D&&N>=1&&(D=1),D===1&&q--,q=Math.min(q,c+1),!!(q%2)&&(f==="reverse"?(D=1-D,m&&(D-=m/s)):f==="mirror"&&(w=i)),y=mt(0,1,D)*s}let S=h?{done:!1,value:d[0]}:w.next(y);n&&(S.value=n(S.value));let{done:L}=S;!h&&l!==null&&(L=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);let k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return k&&g!==Tu&&(S.value=Ji(d,this.options,v,this.speed)),x&&x(S.value),k&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return st(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+st(t)}get time(){return st(this.currentTime)}set time(t){t=it(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xe.now());let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=st(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=FL,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();let a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Yr.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function qL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var On=e=>e*180/Math.PI,iv=e=>{let t=On(Math.atan2(e[1],e[0]));return sv(t)},N3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:iv,rotateZ:iv,skewX:e=>On(Math.atan(e[1])),skewY:e=>On(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},sv=e=>(e=e%360,e<0&&(e+=360),e),$L=iv,WL=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),GL=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),E3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WL,scaleY:GL,scale:e=>(WL(e)+GL(e))/2,rotateX:e=>sv(On(Math.atan2(e[6],e[5]))),rotateY:e=>sv(On(Math.atan2(-e[2],e[0]))),rotateZ:$L,rotate:$L,skewX:e=>On(Math.atan(e[4])),skewY:e=>On(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Mu(e){return e.includes("scale")?1:0}function Ou(e,t){if(!e||e==="none")return Mu(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,o;if(r)a=E3,o=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=N3,o=s}if(!o)return Mu(t);let n=a[t],i=o[1].split(",").map(P3);return typeof n=="function"?n(i):i[n]}var lv=(e,t)=>
102{let{transform:r="none"}=getComputedStyle(e);return Ou(r,t)};function P3(e){return parseFloat(e.trim())}var Qr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pr=new Set(Qr);var uv=e=>e===ya||e===re,D3=new Set(["x","y","z"]),R3=Qr.filter(e=>!D3.has(e));function XL(e){let t=[];return R3.forEach(r=>{let a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}var Vo={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ou(t,"x"),y:(e,{transform:t})=>Ou(t,"y")};Vo.translateX=Vo.x;Vo.translateY=Vo.y;var Fn=new Set,dv=!1,cv=!1,fv=!1;function YL(){if(cv){let e=Array.from(Fn).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{let o=XL(a);o.length&&(r.set(a,o),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let o=r.get(a);o&&o.forEach(([n,i])=>{a.getValue(n)?.set(i)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}cv=!1,dv=!1,Fn.forEach(e=>e.complete(fv)),Fn.clear()}function KL(){Fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cv=!0)})}function pv(){fv=!0,KL(),YL(),fv=!1}var $a=class{constructor(t,r,a,o,n,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=o,this.element=n,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Fn.add(this),dv||(dv=!0,fe.read(KL),fe.resolveKeyframes(YL))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:a,motionValue:o}=this;if(t[0]===null){let n=o?.get(),i=t[t.length-1];if(n!==void 0)t[0]=n;else if(a&&r){let s=a.readValue(r,i);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=i),o&&n===void 0&&o.set(t[0])}qL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Fn.delete(this)}cancel(){this.state==="scheduled"&&(Fn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var QL=e=>e.startsWith("--");function JL(e,t,r){QL(t)?e.style.setProperty(t,r):e.style[t]=r}var ZL=Rn(()=>window.ScrollTimeline!==void 0);var e2={};function t2(e,t){let r=Rn(e);return()=>e2[t]??r()}var Hf=t2(()=>{try{document.createElement("div").animate({opacity:0}
102,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Bn=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`;var mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bn([0,.65,.55,1]),circOut:Bn([.55,0,1,.45]),backIn:Bn([.31,.01,.66,-.59]),backOut:Bn([.33,1.53,.69,.99])};function gv(e,t){if(e)return typeof e=="function"?Hf()?_f(e,t):"ease-out":Nu(e)?Bn(e):Array.isArray(e)?e.map(r=>gv(r,t)||mv.easeOut):mv[e]}function r2(e,t,r,{delay:a=0,duration:o=300,repeat:n=0,repeatType:i="loop",ease:s="easeOut",times:l}={},u=void 0){let d={[t]:r};l&&(d.offset=l);let c=gv(s,o);Array.isArray(c)&&(d.easing=c),Jt.value&&Yr.waapi++;let f={delay:a,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:n+1,direction:i==="reverse"?"alternate":"normal"};u&&(f.pseudoElement=u);let m=e.animate(d,f);return Jt.value&&m.finished.finally(()=>{Yr.waapi--}),m}function jf(e){return typeof e=="function"&&"applyToOptions"in e}function a2({type:e,...t}){return jf(e)&&Hf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var qf=class extends _o{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:r,name:a,keyframes:o,pseudoElement:n,allowFlatten:i=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!n,this.allowFlatten=i,this.options=t,Rr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=a2(t);this.animation=r2(r,a,o,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let d=Ji(o,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(d):JL(r,a,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return st(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+st(t)}get time(){return st(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=it(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ZL()?(this.animation.timeline=t,je):r(this)}};var o2={anticipate:Su,backInOut:bu,circInOut:Iu};function A3(e){return e in o2}function n2(e){typeof e.ease=="string"&&A3(e.ease)&&(e.ease=o2[e.ease])}var i2=10,$f=class extends qf{constructor(t){n2(t),zf(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:a,onComplete:o,element:n,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new qa({...i,autoplay:!1}),l=it(this.finishedTime??this.time);r.setWithVelocity(s.sample(l-i2).value,s.sample(l).value,i2),s.stop()}};var hv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function T3(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function s2(e,t,r,a){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let n=e[e.length-1],i=hv(o,t),s=hv(n,t);return za(i===s,`You are trying to animate ${t} from "${o}" to "${n}". "${i?n:o}" is not an animatable value.`,"value-not-animatable"),!i||!s?!1:T3(e)||(r==="spring"||jf(r))&&a}function Zi(e){e.duration=0,e.type="keyframes"}var M3=new Set(["opacity","clipPath","filter","transform"]),O3=Rn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function l2(e){let{motionValue:t,name:r,repeatDelay:a,repeatType:
102o,damping:n,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return O3()&&r&&M3.has(r)&&(r!=="transform"||!u)&&!l&&!a&&o!=="mirror"&&n!==0&&i!=="inertia"}var F3=40,Fu=class extends _o{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:i="loop",keyframes:s,name:l,motionValue:u,element:d,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xe.now();let f={autoplay:t,delay:r,type:a,repeat:o,repeatDelay:n,repeatType:i,name:l,motionValue:u,element:d,...c},m=d?.KeyframeResolver||$a;this.keyframeResolver=new m(s,(g,x,v)=>this.onKeyframesResolved(g,x,f,!v),l,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,a,o){this.keyframeResolver=void 0;let{name:n,type:i,velocity:s,delay:l,isHandoff:u,onUpdate:d}=a;this.resolvedAt=Xe.now(),s2(t,n,i,s)||((Rt.instantAnimations||!l)&&d?.(Ji(t,a,r)),t[0]=t[t.length-1],Zi(a),a.repeat=0);let f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>F3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},m=!u&&l2(f)?new $f({...f,element:f.motionValue.owner.current}):new qa(f);m.finished.then(()=>this.notifyFinished()).catch(je),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),pv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var B3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _3(e){let t=B3.exec(e);if(!t)return[,];let[,r,a,o]=t;return[`--${r??a}`,o]}var V3=4;function vv(e,t,r=1){Rr(r<=V3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,o]=_3(e);
102if(!a)return;let n=window.getComputedStyle(t).getPropertyValue(a);if(n){let i=n.trim();return vu(i)?parseFloat(i):i}return Tn(o)?vv(o,t,r+1):o}function _n(e,t){return e?.[t]??e?.default??e}var Bu=new Set(["width","height","top","left","right","bottom",...Qr]);var u2={test:e=>e==="auto",parse:e=>e};var Wf=e=>t=>t.test(e);var xv=[ya,re,At,Kr,ev,Z0,u2],yv=e=>xv.find(Wf(e));function d2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yu(e):!0}var U3=new Set(["brightness","contrast","saturate","opacity"]);function z3(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=r.match(Gi)||[];if(!a)return e;let o=r.replace(a,""),n=U3.has(t)?1:0;return a!==r&&(n*=100),t+"("+n+o+")"}var H3=/\b([a-z-]*)\(.*?\)/gu,_u={...Tt,getAnimatableNone:e=>{let t=e.match(H3);return t?t.map(z3).join(" "):e}};var wv={...ya,transform:Math.round};var c2={rotate:Kr,rotateX:Kr,rotateY:Kr,rotateZ:Kr,scale:Du,scaleX:Du,scaleY:Du,scaleZ:Du,skew:Kr,skewX:Kr,skewY:Kr,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:ja,originX:Mf,originY:Mf,originZ:re};var Vn={borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,backgroundPositionX:re,backgroundPositionY:re,...c2,zIndex:wv,fillOpacity:ja,strokeOpacity:ja,numOctaves:wv};var f2={...Vn,color:Be,backgroundColor:Be,outlineColor:Be,fill:Be,stroke:Be,borderColor:Be,borderTopColor:Be,borderRightColor:Be,borderBottomColor:Be,borderLeftColor:Be,filter:_u,WebkitFilter:_u},Vu=e=>f2[e];function Uu(e,t){let r=Vu(e);return r!==_u&&(r=Tt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var j3=new Set(["auto","none","0"]);function p2(e,t,r){let a=0,o;for(;a<e.length&&!o;){let n=e[a];typeof n=="string"&&!j3.has(n)&&Bo(n).values.length&&(o=e[a]),a++}if(o&&r)for(let n of t)e[n]=Uu(r,o)}var zu=class extends $a{constructor(t,r,a,o,n){super(t,r,a,o,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Tn(u))){let d=vv(u,r.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Bu.has(a)||t.length!==2)return;let[o,n]=t,i=yv(o),s=yv(n);if(i!==s)if(uv(i)&&uv(s))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Vo[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,a=[];for(let o=0;o<t.length;o++)(t[o]===null||d2(t[o]))&&a.push(o);a.length&&p2(t,a,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Vo[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let o=r[r.length-1];o!==void 0&&t.getValue(a,o).jump(o,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);let n=a.length-1,i=a[n];a[n]=Vo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
102h(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function m2(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let o=r?.[e]??a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}var Hu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ju(e){return xu(e)&&"offsetHeight"in e}var g2=30,q3=e=>!isNaN(parseFloat(e)),bv={current:void 0},Gf=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let o=Xe.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Xe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=q3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Ha);let a=this.events[t].add(r);return t==="change"?()=>{a(),fe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return bv.current&&bv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Xe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>g2)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,g2);return wu(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ar(e,t){return new Gf(e,t)}var{schedule:Un,cancel:$3}=Rf(queueMicrotask,!1);var Tr={x:!1,y:!1};function Xf(){return Tr.x||Tr.y}function Sv(e){return e==="x"||e==="y"?Tr[e]?null:(Tr[e]=!0,()=>{Tr[e]=!1}):Tr.x||Tr.y?null:(Tr.x=Tr.y=!0,()=>{Tr.x=Tr.y=!1})}function Yf(e,t){let r=m2(e),a=new AbortController,o={passive:!0,...t,signal:a.signal};return[r,o,()=>a.abort()]}function h2(e){return!(e.pointerType==="touch"||Xf())}function Cv(e,t,r={}){let[a,o,n]=Yf(e,r),i=s=>{if(!h2(s))return;let{target:l}=s,u=t(l,s);if(typeof u!="function"||!l)return;let d=c=>{h2(c)&&(u(c),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return a.forEach(s=>{s.addEventListener("pointerenter",i,o)}),n}var Lv=(e,t)=>t?e===t?!0:Lv(e,t.parentElement):!1;var zn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var W3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v2(e){return W3.has(e.tagName)||e.tabIndex!==-1}var es=new WeakSet;function x2(e){return t=>{t.key==="Enter"&&e(t)}}function Iv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var y2=(e,t)=>{let r=e.currentTarget;if(!r)return;let a=x2(()=>{if(es.has(r))return;Iv(r,"down");let o=x2(()=>{Iv(r,"up")}),n=()=>Iv(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",n,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function w2(e){return zn(e)&&!Xf()}function kv(e,t,r={}){let[a,o,n]=Yf(e,r),i=s=>{let l=s.currentTarget;if(!w2(s))return;es.add(l);let u=t(l,s),d=(m,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),es.has(l)&&es.delete(l),w2(m)&&typeof u=="function"&&u(m,{success:g})},c=m=>{d(m,l===window||l===document||r.useGlobalTarget||Lv(l,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",f,o)};return a.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,o),ju(s)&&(s.addEventListener("focus",u=>y2(u,o)),!v2(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),n}function qu(e){return xu(e)&&"ownerSVGElement"in e}function Nv(e){return qu(e)&&e.tagName==="svg"}var ke=e=>!!(e&&e.getVelocity);var G3=[...xv,Be,Tt],Ev=e=>G3.find(Wf(e));var Kf=E(Y(),1),Wa=E(Y(),1);var b2=E(Y(),1),ts=(0,b2.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var C2=E(Y(),1);function S2(e,t){if(typeof e=="function")return e(t);
102e!=null&&(e.current=t)}function X3(...e){return t=>{let r=!1,a=e.map(o=>{let n=S2(o,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let o=0;o<a.length;o++){let n=a[o];typeof n=="function"?n():S2(e[o],null)}}}}function L2(...e){return C2.useCallback(X3(...e),e)}var Pv=class extends Kf.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let a=r.offsetParent,o=ju(a)&&a.offsetWidth||0,n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft,n.right=o-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}};function k2({children:e,isPresent:t,anchorX:r,root:a}){let o=(0,Wa.useId)(),n=(0,Wa.useRef)(null),i=(0,Wa.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,Wa.useContext)(ts),l=L2(n,e?.ref);return(0,Wa.useInsertionEffect)(()=>{let{width:u,height:d,top:c,left:f,right:m}=i.current;if(t||!n.current||!u||!d)return;let g=r==="left"?`left: ${f}`:`right: ${m}`;n.current.dataset.motionPopId=o;let x=document.createElement("style");s&&(x.nonce=s);let v=a??document.head;return v.appendChild(x),x.sheet&&x.sheet.insertRule(`
103          [data-motion-pop-id="${o}"] {
104            position: absolute !important;
105            width: ${u}px !important;
106            height: ${d}px !important;
107            ${g}px !important;
108            top: ${c}px !important;
109          }
110        `),()=>{v.contains(x)&&v.removeChild(x)}},[t]),(0,I2.jsx)(Pv,{isPresent:t,childRef:n,sizeRef:i,children:Kf.cloneElement(e,{ref:l})})}var E2=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:o,presenceAffectsLayout:n,mode:i,anchorX:s,root:l})=>{let u=qi(Y3),d=(0,$u.useId)(),c=!0,f=(0,$u.useMemo)(()=>(c=!1,{id:d,initial:t,isPresent:r,custom:o,onExitComplete:m=>{u.set(m,!0);for(let g of u.values())if(!g)return;a&&a()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[r,u,a]);return n&&c&&(f={...f}),(0,$u.useMemo)(()=>{u.forEach((m,g)=>u.set(g,!1))},[r]),N2.useEffect(()=>{!r&&!u.size&&a&&a()},[r]),i==="popLayout"&&(e=(0,Dv.jsx)(k2,{isPresent:r,anchorX:s,root:l,children:e})),(0,Dv.jsx)(To.Provider,{value:f,children:e})};function Y3(){return new Map}var Uo=E(Y(),1);function Qf(e=!0){let t=(0,Uo.useContext)(To);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:a,register:o}=t,n=(0,Uo.useId)();(0,Uo.useEffect)(()=>{if(e)return o(n)},[e]);let i=(0,Uo.useCallback)(()=>e&&a&&a(n),[n,a,e]);return!r&&a?[!1,i]:[!0]}var Jf=E(Y(),1),Wu=e=>e.key||"";function Rv(e){let t=[];return Jf.Children.forEach(e,r=>{(0,Jf.isValidElement)(r)&&t.push(r)}),t}var Xu=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:n="sync",propagate:i=!1,anchorX:s="left",root:l})=>{let[u,d]=Qf(i),c=(0,ba.useMemo)(()=>Rv(e),[e]),f=i&&!u?[]:c.map(Wu),m=(0,ba.useRef)(!0),g=(0,ba.useRef)(c),x=qi(()=>new Map),[v,p]=(0,ba.useState)(c),[h,y]=(0,ba.useState)(c);kf(()=>{m.current=!1,g.current=c;for(let L=0;L<h.length;L++){let k=Wu(h[L]);f.includes(k)?x.delete(k):x.get(k)!==!0&&x.set(k,!1)}},[h,f.length,f.join("-")]);let w=[];if(c!==v){let L=[...c];for(let k=0;k<h.length;k++){let N=h[k],q=Wu(N);f.includes(q)||(L.splice(k,0,N),w.push(N))}return n==="wait"&&w.length&&(L=w),y(Rv(L)),p(c),null}let{forceRender:S}=(0,ba.useContext)(ji);return(0,Gu.jsx)(Gu.Fragment,{children:h.map(L=>{let k=Wu(L),N=i&&!u?!1:c===h||f.includes(k),q=()=>{if(x.has(k))x.set(k,!0);else return;let D=!0;x.forEach(ee=>{ee||(D=!1)}),D&&(S?.(),y(g.current),i&&d?.(),a&&a())};return(0,Gu.jsx)(E2,{isPresent:N,initial:!m.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:n,root:l,onExitComplete:N?void 0:q,anchorX:s,children:L},k)})})};var P2=E(Y(),1),Zf=(0,P2.createContext)({strict:!1});var D2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ga={};for(let e in D2)Ga[e]={isEnabled:t=>D2[e].some(r=>!!t[r])};function R2(e){for(let t in e)Ga[t]={...Ga[t],...e[t]}}var K3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||K3.has(e)}var A2=e=>!Yu(e);function Q3(e){typeof e=="function"&&(A2=t=>t.startsWith("on")?!Yu(t):e(t))}try{Q3(iE("@emotion/is-prop-valid").default)}catch{}function T2(e,t,r){let a={};for(let o in e)o==="values"&&typeof e.values=="object"||(A2(o)||r===!0&&Yu(o)||!t&&!Yu(o)||e.draggable&&o.startsWith("onDrag"))&&(a[o]=e[o]);return a}var cp=E(J(),1);var ds=E(Y(),1);var M2=E(Y(),1),zo=(0,M2.createContext)({});var rp=E(Y(),1);function Ho(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xa(e){return typeof e=="string"||Array.isArray(e)}var ep=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ku=["initial",...ep];function Hn(e){return Ho(e.animate)||Ku.some(t=>Xa(e[t]))}function tp(e){return!!(Hn(e)||e.variants)}function O2(e,t){if(Hn(e)){let{initial:r,animate:a}=e;return{initial:r===!1||Xa(r)?r:void 0,animate:Xa(a)?a:void 0}}return e.inherit!==!1?t:{}}function B2(e){let{initial:t,animate:r}=O2(e,(0,rp.useContext)(zo));return(0,rp.useMemo)(()=>({initial:t,animate:r}),[F2(t),F2(r)])}function F2(e){return Array.isArray(e)?e.join(" "):e}var ns=E(Y(),1);var U2=E(Y(),1);var jn={};function _2(e){for(let t in e)jn[t]=e[t],An(t)&&(jn[t].isCSSVariable=!0)}function ap(e,{layout:t,layoutId:r}){return pr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!jn[e]||e==="opacity")}var J3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z3=Qr.length;function V2(e,t,r){let a="",o=!0;for(let n=0;n<Z3;n++){let i=Qr[n],s=e[i];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(i.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||r){let u=Hu(s,Vn[i]);if(!l){o=!1;let d=J3[i]||i;a+=`${d}(${u}) `}r&&(t[i]=u)}}return a=a.trim(),r?a=r(t,o?"":a):o&&(a="none"),a}function rs(e,t,r){let{style:a,vars:o,transformOrigin:n}=e,i=!1,s=!1;for(let l in t){let u=t[l];if(pr.has(l)){i=!0;continue}else if(An(l)){o[l]=u;continue}
110else{let d=Hu(u,Vn[l]);l.startsWith("origin")?(s=!0,n[l]=d):a[l]=d}}if(t.transform||(i||r?a.transform=V2(t,e.transform,r):a.transform&&(a.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:d=0}=n;a.transformOrigin=`${l} ${u} ${d}`}}var as=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Av(e,t,r){for(let a in t)!ke(t[a])&&!ap(a,r)&&(e[a]=t[a])}function eB({transformTemplate:e},t){return(0,U2.useMemo)(()=>{let r=as();return rs(r,t,e),Object.assign({},r.vars,r.style)},[t])}function tB(e,t){let r=e.style||{},a={};return Av(a,r,e),Object.assign(a,eB(e,t)),a}function z2(e,t){let r={},a=tB(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}var j2=E(Y(),1);var rB={offset:"stroke-dashoffset",array:"stroke-dasharray"},aB={offset:"strokeDashoffset",array:"strokeDasharray"};function H2(e,t,r=1,a=0,o=!0){e.pathLength=1;let n=o?rB:aB;e[n.offset]=re.transform(-a);let i=re.transform(t),s=re.transform(r);e[n.array]=`${i} ${s}`}function op(e,{attrX:t,attrY:r,attrScale:a,pathLength:o,pathSpacing:n=1,pathOffset:i=0,...s},l,u,d){if(rs(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:f}=e;c.transform&&(f.transform=c.transform,delete c.transform),(f.transform||c.transformOrigin)&&(f.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),r!==void 0&&(c.y=r),a!==void 0&&(c.scale=a),o!==void 0&&H2(c,o,n,i,!1)}var np=()=>({...as(),attrs:{}});var ip=e=>typeof e=="string"&&e.toLowerCase()==="svg";function q2(e,t,r,a){let o=(0,j2.useMemo)(()=>{let n=np();return op(n,t,ip(a),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let n={};Av(n,e.style,e),o.style={...n,...o.style}}return o}var $2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function os(e){return typeof e!="string"||e.includes("-")?!1:!!($2.indexOf(e)>-1||/[A-Z]/u.test(e))}function W2(e,t,r,{latestValues:a},o,n=!1){let s=(os(e)?q2:z2)(t,a,o,e),l=T2(t,typeof e=="string",n),u=e!==ns.Fragment?{...l,...s,ref:r}:{},{children:d}=t,c=(0,ns.useMemo)(()=>ke(d)?d.get():d,[d]);return(0,ns.createElement)(e,{...u,children:c})}var Tv=E(Y(),1);function G2(e){let t=[{},{}];return e?.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function is(e,t,r,a){if(typeof t=="function"){let[o,n]=G2(a);t=t(r!==void 0?r:e.custom,o,n)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,n]=G2(a);t=t(r!==void 0?r:e.custom,o,n)}return t}function ss(e){return ke(e)?e.get():e}function oB({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,o){return{latestValues:nB(r,a,o,e),renderState:t()}}function nB(e,t,r,a){let o={},n=a(e,{});for(let f in n)o[f]=ss(n[f]);let{initial:i,animate:s}=e,l=Hn(e),u=tp(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let d=r?r.initial===!1:!1;d=d||i===!1;let c=d?s:i;if(c&&typeof c!="boolean"&&!Ho(c)){let f=Array.isArray(c)?c:[c];for(let m=0;m<f.length;m++){let g=is(e,f[m]);if(g){let{transitionEnd:x,transition:v,...p}=g;for(let h in p){let y=p[h];if(Array.isArray(y)){let w=d?y.length-1:0;y=y[w]}y!==null&&(o[h]=y)}for(let h in x)o[h]=x[h]}}}return o}var sp=e=>(t,r)=>{let a=(0,Tv.useContext)(zo),o=(0,Tv.useContext)(To),n=()=>oB(e,t,a,o);return r?n():qi(n)};function ls(e,t,r){let{style:a}=e,o={};for(let n in a)(ke(a[n])||t.style&&ke(t.style[n])||ap(n,e)||r?.getValue(n)?.liveStyle!==void 0)&&(o[n]=a[n]);return o}var X2=sp({scrapeMotionValuesFromProps:ls,createRenderState:as});function lp(e,t,r){let a=ls(e,t,r);for(let o in e)if(ke(e[o])||ke(t[o])){let n=Qr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;a[n]=e[o]}return a}var Y2=sp({scrapeMotionValuesFromProps:lp,createRenderState:np});var K2=Symbol.for("motionComponentSymbol");var Q2=E(Y(),1);function Ya(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function J2(e,t,r){return(0,Q2.useCallback)(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),r&&(typeof r=="function"?r(a
110):Ya(r)&&(r.current=a))},[t])}var er=E(Y(),1);var us=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var iB="framerAppearId",up="data-"+us(iB);var Z2=E(Y(),1),dp=(0,Z2.createContext)({});function eI(e,t,r,a,o){let{visualElement:n}=(0,er.useContext)(zo),i=(0,er.useContext)(Zf),s=(0,er.useContext)(To),l=(0,er.useContext)(ts).reducedMotion,u=(0,er.useRef)(null);a=a||i.renderer,!u.current&&a&&(u.current=a(e,{visualState:t,parent:n,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));let d=u.current,c=(0,er.useContext)(dp);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&sB(u.current,r,o,c);let f=(0,er.useRef)(!1);(0,er.useInsertionEffect)(()=>{d&&f.current&&d.update(r,s)});let m=r[up],g=(0,er.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return kf(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,er.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),d.enteringChildren=void 0)}),d}function sB(e,t,r,a){let{layoutId:o,layout:n,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:tI(e.parent)),e.projection.setOptions({layoutId:o,layout:n,alwaysMeasureLayout:!!i||s&&Ya(s),visualElement:e,animationType:typeof n=="string"?n:"both",initialPromotionConfig:a,crossfade:d,layoutScroll:l,layoutRoot:u})}function tI(e){if(e)return e.options.allowProjection!==!1?e.projection:tI(e.parent)}function fp(e,{forwardMotionProps:t=!1}={},r,a){r&&R2(r);let o=os(e)?Y2:X2;function n(s,l){let u,d={...(0,ds.useContext)(ts),...s,layoutId:lB(s)},{isStatic:c}=d,f=B2(s),m=o(s,c);if(!c&&$i){uB(d,r);let g=dB(d);u=g.MeasureLayout,f.visualElement=eI(e,m,d,a,g.ProjectionNode)}return(0,cp.jsxs)(zo.Provider,{value:f,children:[u&&f.visualElement?(0,cp.jsx)(u,{visualElement:f.visualElement,...d}):null,W2(e,s,J2(m,f.visualElement,l),m,c,t)]})}n.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let i=(0,ds.forwardRef)(n);return i[K2]=e,i}function lB({layoutId:e}){let t=(0,ds.useContext)(ji).id;return t&&e!==void 0?t+"-"+e:e}function uB(e,t){let r=(0,ds.useContext)(Zf).strict}function dB(e){let{drag:t,layout:r}=Ga;if(!t&&!r)return{};let a={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function rI(e,t){if(typeof Proxy>"u")return fp;let r=new Map,a=(n,i)=>fp(n,i,e,t),o=(n,i)=>a(n,i);return new Proxy(o,{get:(n,i)=>i==="create"?a:(r.has(i)||r.set(i,fp(i,void 0,e,t)),r.get(i))})}var yI=E(Y(),1);function pp({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function aI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oI(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function Mv(e){return e===void 0||e===1}function mp({scale:e,scaleX:t,scaleY:r}){return!Mv(e)||!Mv(t)||!Mv(r)}function Ka(e){return mp(e)||Ov(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ov(e){return nI(e.x)||nI(e.y)}function nI(e){return e&&e!=="0%"}function Qu(e,t,r){let a=e-r,o=t*a;return r+o}function iI(e,t,r,a,o){return o!==void 0&&(e=Qu(e,o,a)),Qu(e,r,a)+t}function Fv(e,t=0,r=1,a,o){e.min=iI(e.min,t,r,a,o),e.max=iI(e.max,t,r,a,o)}function Bv(e,{x:t,y:r}){Fv(e.x,t.translate,t.scale,t.originPoint),Fv(e.y,r.translate,r.scale,r.originPoint)}var sI=.999999999999,lI=1.0000000000001;function dI(e,t,r,a=!1){let o=r.length;if(!o)return;t.x=t.y=1;let n,i;for(let s=0;s<o;s++){n=r[s],i=n.projectionDelta;let{visualElement:l}=n.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&n.options.layoutScroll&&n.scroll&&n!==n.root&&qn(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Bv(e,i)),a&&Ka(n.latestValues)&&qn(e,n.latestValues))}t.x<lI&&t.x>sI&&(t.x=1),t.y<lI&&t.y>sI&&(t.y=1)}function jo(e,t){e.min=e.min+t,e.max=e.max+t}function uI(e,t,r,a,o=.5){let n=ve(e.min,e.max,o);Fv(e,t,r,n,a)}function qn(e,t){uI(e.x,t.x,t.scaleX,t.scale,t.originX),uI(e.y,t.y,t.scaleY,t.scale,t.originY)}
110function _v(e,t){return pp(oI(e.getBoundingClientRect(),t))}function cI(e,t,r){let a=_v(e,r),{scroll:o}=t;return o&&(jo(a.x,o.offset.x),jo(a.y,o.offset.y)),a}var fI=()=>({translate:0,scale:1,origin:0,originPoint:0}),$n=()=>({x:fI(),y:fI()}),pI=()=>({min:0,max:0}),Te=()=>({x:pI(),y:pI()});var Ju={current:null},gp={current:!1};function mI(){if(gp.current=!0,!!$i)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ju.current=e.matches;e.addEventListener("change",t),t()}else Ju.current=!1}var gI=new WeakMap;function hI(e,t,r){for(let a in t){let o=t[a],n=r[a];if(ke(o))e.addValue(a,o);else if(ke(n))e.addValue(a,Ar(o,{owner:e}));else if(n!==o)if(e.hasValue(a)){let i=e.getValue(a);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{let i=e.getStaticValue(a);e.addValue(a,Ar(i!==void 0?i:o,{owner:e}))}}for(let a in r)t[a]===void 0&&e.removeValue(a);return t}var vI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],hp=class{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:o,blockInitialAnimation:n,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$a,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let f=Xe.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,fe.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!n,this.isControllingVariants=Hn(r),this.isVariantNode=tp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...c}=this.scrapeMotionValuesFromProps(r,{},this);for(let f in c){let m=c[f];l[f]!==void 0&&ke(m)&&m.set(l[f])}}mount(t){this.current=t,gI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,a)=>this.bindToMotionValue(a,r)),gp.current||mI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ju.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zt(this.notifyUpdate),Zt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let a=pr.has(t);a&&this.onBindTransform&&this.onBindTransform();let o=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&fe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),n;window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),n&&n(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ga){let r=Ga[t];if(!r)continue;let{isEnabled:a,Feature:o}=r;if(!this.features[t]&&o&&a(this.props)&&(this.features[t]=new o(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;
110for(let a=0;a<vI.length;a++){let o=vI[a];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let n="on"+o,i=t[n];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=hI(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let a=this.values.get(t);r!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&r!==void 0&&(a=Ar(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(vu(a)||yu(a))?a=parseFloat(a):!Ev(a)&&Tt.test(r)&&(a=Uu(t,r)),this.setBaseTarget(t,ke(a)?a.get():a)),ke(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,a;if(typeof r=="string"||typeof r=="object"){let n=is(this.props,r,this.presenceContext?.custom);n&&(a=n[t])}if(r&&a!==void 0)return a;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ke(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Ha),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Un.render(this.render)}};var cs=class extends hp{constructor(){super(...arguments),this.KeyframeResolver=zu}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ke(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};function vp(e,{style:t,vars:r},a,o){let n=e.style,i;for(i in t)n[i]=t[i];o?.applyProjectionStyles(n,a);for(i in r)n.setProperty(i,r[i])}function cB(e){return window.getComputedStyle(e)}var xp=class extends cs{constructor(){super(...arguments),this.type="html",this.renderInstance=vp}readValueFromInstance(t,r){if(pr.has(r))return this.projection?.isProjecting?Mu(r):lv(t,r);{let a=cB(t),o=(An(r)?a.getPropertyValue(r):a[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return _v(t,r)}build(t,r,a){rs(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return ls(t,r,a)}};var yp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function xI(e,t,r,a){vp(e,t,void 0,a);for(let o in t.attrs)e.setAttribute(yp.has(o)?o:us(o),t.attrs[o])}var wp=class extends cs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(pr.has(r)){let a=Vu(r);return a&&a.default||0}return r=yp.has(r)?r:us(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return lp(t,r,a)}build(t,r,a){op(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,o){xI(t,r,a,o)}mount(t){this.isSVGTag=ip(t.tagName),super.mount(t)}};var wI=(e,t)=>os(e)?new wp(t):new xp(t,{allowProjection:e!==yI.Fragment});function Sa(e,t,r){let a=e.getProps();return is(a,t,r!==void 0?r:a.custom,e)}var Zu=e=>Array.isArray(e);function fB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ar(r))}function pB(e){return Zu(e)?e[e.length-1]||0:e}function bI(e,t){let r=Sa(e,t),{transitionEnd:a={},transition:o={},...n}=r||{};n={...n,...a};for(let i in n){let s=pB(n[i]);fB(e,i,s)}}function SI(e){return!!(ke(e)&&e.add)}function ed(e,t){let r=e.getValue("willChange");if(SI(r))return r.add(t);if(!r&&Rt.WillChange){let a=new Rt.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function bp(e){return e.props[up]}var mB=e=>e!==null;function CI(e,{repeat:t,repeatType:r="loop"},a){let o=e.filter(mB),n=t&&r!=="loop"&&t%2===1?0:o.length-1;return!n||a===void 0?o[n]:a}var gB={type:"spring",stiffness:500,damping:25,restSpeed:10},hB=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vB={type:"keyframes",duration:.8},xB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LI=(e,{keyframes:t})=>t.length>2?vB:pr.has(e)?e.startsWith("scale")?hB(t[1]):gB:xB;function II({when:e,delay:t,delayChildren:r,staggerChildren:a,staggerDirection:o,repeat:n,repeatType:i,repeatDelay:s,from:l,elapsed:u,...d}){return!!Object.keys(d).length}var fs=(e,t,r,a={},o,n)=>i=>{let s=_n(a,e)||{},l=s.delay||a.delay||0,{elapsed:u=0}=a;u=u-it(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>
110{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:n?void 0:o};II(s)||Object.assign(d,LI(e,d)),d.duration&&(d.duration=it(d.duration)),d.repeatDelay&&(d.repeatDelay=it(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Zi(d),d.delay===0&&(c=!0)),(Rt.instantAnimations||Rt.skipAnimations)&&(c=!0,Zi(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,c&&!n&&t.get()!==void 0){let f=CI(d.keyframes,s);if(f!==void 0){fe.update(()=>{d.onUpdate(f),d.onComplete()});return}}return s.isSync?new qa(d):new Fu(d)};function yB({protectedKeys:e,needsAnimating:t},r){let a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function Sp(e,t,{delay:r=0,transitionOverride:a,type:o}={}){let{transition:n=e.getDefaultTransition(),transitionEnd:i,...s}=t;a&&(n=a);let l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(let d in s){let c=e.getValue(d,e.latestValues[d]??null),f=s[d];if(f===void 0||u&&yB(u,d))continue;let m={delay:r,..._n(n||{},d)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(f)&&f===g&&!m.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){let p=bp(e);if(p){let h=window.MotionHandoffAnimation(p,d,fe);h!==null&&(m.startTime=h,x=!0)}}ed(e,d),c.start(fs(d,c,f,e.shouldReduceMotion&&Bu.has(d)?{type:!1}:m,e,x));let v=c.animation;v&&l.push(v)}return i&&Promise.all(l).then(()=>{fe.update(()=>{i&&bI(e,i)})}),l}function Cp(e,t,r,a=0,o=1){let n=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,s=(i-1)*a;return typeof r=="function"?r(n,i):o===1?n*a:s-n*a}function Lp(e,t,r={}){let a=Sa(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(o=r.transitionOverride);let n=a?()=>Promise.all(Sp(e,a,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:d,staggerDirection:c}=o;return wB(e,t,l,u,d,c,r)}:()=>Promise.resolve(),{when:s}=o;if(s){let[l,u]=s==="beforeChildren"?[n,i]:[i,n];return l().then(()=>u())}else return Promise.all([n(),i(r.delay)])}function wB(e,t,r=0,a=0,o=0,n=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(Lp(l,t,{...i,delay:r+(typeof a=="function"?0:a)+Cp(e.variantChildren,l,a,o,n)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function kI(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let o=t.map(n=>Lp(e,n,r));a=Promise.all(o)}else if(typeof t=="string")a=Lp(e,t,r);else{let o=typeof t=="function"?Sa(e,t,r.custom):t;a=Promise.all(Sp(e,o,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}function Vv(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}var bB=Ku.length;function Uv(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?Uv(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<bB;r++){let a=Ku[r],o=e.props[a];(Xa(o)||o===!1)&&(t[a]=o)}return t}var SB=[...ep].reverse(),CB=ep.length;function LB(e){return t=>Promise.all(t.map(({animation:r,options:a})=>kI(e,r,a)))}function EI(e){let t=LB(e),r=NI(),a=!0,o=l=>(u,d)=>{let c=Sa(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(c){let{transition:f,transitionEnd:m,...g}=c;u={...u,...g,...m}}return u};function n(l){t=l(e)}function i(l){let{props:u}=e,d=Uv(e.parent)||{},c=[],f=new Set,m={},g=1/0;for(let v=0;v<CB;v++){let p=SB[v],h=r[p],y=u[p]!==void 0?u[p]:d[p],w=Xa(y),S=p===l?h.isActive:null;S===!1&&(g=v);let L=y===d[p]&&y!==u[p]&&w;if(L&&a&&e.manuallyAnimateOnMount&&(L=!1),h.protectedKeys={...m},!h.isActive&&S===null||!y&&!h.prevProp||Ho(y)||typeof y=="boolean")continue;let k=IB(h.prevProp,y),N=k||p===l&&h.isActive&&!L&&w||v>g&&w,q=!1,D=Array.isArray(y)?y:[y],ee=D.reduce(o(p),{});S===!1&&(ee={});let{prevResolvedValues:O={}}=h,ne={...O,...ee},ae=U=>{N=!0,f.has(U)&&(q=!0,f.delete(U)),h.needsAnimating[U]=!0;let j=e.getValue(U);j&&(j.liveStyle=!1)};for(let U in ne){let j=ee[U],ue=O[U];if(m.hasOwnProperty(U))continue;let me=!1;Zu(j)&&Zu(ue)?me=!Vv(j,ue):me=j!==ue,me?j!=null?ae(U):f.add(U):j!==void 0&&f.has(U)?ae(U):h.protectedKeys[U]=!0}h.prevProp=y,h.prevResolvedValues=ee,h.isActive&&(m={...m,...ee}),a&&e.blockInitialAnimation&&(N=!1);let M=L&&k;N&&(!M||q)&&c.push(...D.map(U=>{let j={type:p};if(typeof U=="string"&&a&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:ue}
110=e,me=Sa(ue,U);if(ue.enteringChildren&&me){let{delayChildren:ge}=me.transition||{};j.delay=Cp(ue.enteringChildren,e,ge)}}return{animation:U,options:j}}))}if(f.size){let v={};if(typeof u.initial!="boolean"){let p=Sa(e,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(v.transition=p.transition)}f.forEach(p=>{let h=e.getBaseTarget(p),y=e.getValue(p);y&&(y.liveStyle=!0),v[p]=h??null}),c.push({animation:v})}let x=!!c.length;return a&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,x?t(c):Promise.resolve()}function s(l,u){if(r[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(l,u)),r[l].isActive=u;let d=i(l);for(let c in r)r[c].protectedKeys={};return d}return{animateChanges:i,setActive:s,setAnimateFunction:n,getState:()=>r,reset:()=>{r=NI(),a=!0}}}function IB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vv(t,e):!1}function Wn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function NI(){return{animate:Wn(!0),whileInView:Wn(),whileHover:Wn(),whileTap:Wn(),whileDrag:Wn(),whileFocus:Wn(),exit:Wn()}}var gt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Ip=class extends gt{constructor(t){super(t),t.animationState||(t.animationState=EI(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Ho(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var kB=0,kp=class extends gt{constructor(){super(...arguments),this.id=kB++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;let o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){let{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var PI={animation:{Feature:Ip},exit:{Feature:kp}};function Qa(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}function Ja(e){return{point:{x:e.pageX,y:e.pageY}}}var DI=e=>t=>zn(t)&&e(t,Ja(t));function qo(e,t,r,a){return Qa(e,t,DI(r),a)}var MI=1e-4,NB=1-MI,EB=1+MI,OI=.01,PB=0-OI,DB=0+OI;function lt(e){return e.max-e.min}function FI(e,t,r){return Math.abs(e-t)<=r}function RI(e,t,r,a=.5){e.origin=a,e.originPoint=ve(t.min,t.max,e.origin),e.scale=lt(r)/lt(t),e.translate=ve(r.min,r.max,e.origin)-e.originPoint,(e.scale>=NB&&e.scale<=EB||isNaN(e.scale))&&(e.scale=1),(e.translate>=PB&&e.translate<=DB||isNaN(e.translate))&&(e.translate=0)}function ps(e,t,r,a){RI(e.x,t.x,r.x,a?a.originX:void 0),RI(e.y,t.y,r.y,a?a.originY:void 0)}function AI(e,t,r){e.min=r.min+t.min,e.max=e.min+lt(t)}function BI(e,t,r){AI(e.x,t.x,r.x),AI(e.y,t.y,r.y)}function TI(e,t,r){e.min=t.min-r.min,e.max=e.min+lt(t)}function ms(e,t,r){TI(e.x,t.x,r.x),TI(e.y,t.y,r.y)}function tr(e){return[e("x"),e("y")]}var Np=({current:e})=>e?e.ownerDocument.defaultView:null;var _I=(e,t)=>Math.abs(e-t);function VI(e,t){let r=_I(e.x,t.x),a=_I(e.y,t.y);return Math.sqrt(r**2+a**2)}var gs=class{constructor(t,r,{transformPagePoint:a,contextWindow:o=window,dragSnapToOrigin:n=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=Hv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=VI(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;let{point:x}=f,{timestamp:v}=Ge;this.history.push({...x,timestamp:v});let{onStart:p,onMove:h}=this.handlers;m||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=zv(m,this.transformPagePoint),fe.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();let{onEnd:g,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let p=Hv(f.type==="pointercancel"?this.lastMoveEventInfo:zv(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,p),x&&x(f,p)},!zn(t))return;this.dragSnapToOrigin=n,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=i,this.contextWindow=o||window;let s=Ja(t),l=zv(s,this.transformPagePoint),{point:u}=l,{timestamp:d}=Ge;this.history=[{...u,timestamp:d}];let{onSessionStart:c}=r;c&&c(t,Hv(l,this.history)),this.removeListeners=Xr(qo(this.contextWindow,"pointermove",this.handlePointerMove),qo(this.contextWindow,"pointerup",this.handlePointerUp),qo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zt(this.updatePoint)}};function zv(e,t){return t?{point:t(e.point)}:e}function UI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hv({point:e},t){return{point:e,delta:UI(e,zI(t)),offset:UI(e,RB(t)),velocity:AB(t,.1)}}function RB(e){return e[0]}function zI(e){return e[e.length-1]}function AB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null,o=zI(e);for(;r>=0&&(a=e[r],!(o.timestamp-a.timestamp>it(t)));)r--;if(!a)return{x:0,y:0};let n=st(o.timestamp-a.timestamp);if(n===0)return{x:0,y:0};let i={x:(o.x-a.x)/n,y:(o.y-a.y)/n}
vendor: 14,660 bytes, line 110
110;return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function WI(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?ve(t,e,a.min):Math.max(e,t):r!==void 0&&e>r&&(e=a?ve(r,e,a.max):Math.min(e,r)),e}function HI(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function GI(e,{top:t,left:r,bottom:a,right:o}){return{x:HI(e.x,r,o),y:HI(e.y,t,a)}}function jI(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,a]=[a,r]),{min:r,max:a}}function XI(e,t){return{x:jI(e.x,t.x),y:jI(e.y,t.y)}}function YI(e,t){let r=.5,a=lt(e),o=lt(t);return o>a?r=xa(t.min,t.max-a,e.min):a>o&&(r=xa(e.min,e.max-o,t.min)),mt(0,1,r)}function KI(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Ep=.35;function QI(e=Ep){return e===!1?e=0:e===!0&&(e=Ep),{x:qI(e,"left","right"),y:qI(e,"top","bottom")}}function qI(e,t,r){return{min:$I(e,t),max:$I(e,r)}}function $I(e,t){return typeof e=="number"?e:e[t]||0}var TB=new WeakMap,Dp=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let n=c=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ja(c).point)},i=(c,f)=>{let{drag:m,dragPropagation:g,onDragStart:x}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Sv(m),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tr(p=>{let h=this.getAxisMotionValue(p).get()||0;if(At.test(h)){let{projection:y}=this.visualElement;if(y&&y.layout){let w=y.layout.layoutBox[p];w&&(h=lt(w)*(parseFloat(h)/100))}}this.originPoint[p]=h}),x&&fe.postRender(()=>x(c,f)),ed(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,f)=>{this.latestPointerEvent=c,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:p}=f;if(g&&this.currentDirection===null){this.currentDirection=MB(p),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>{this.latestPointerEvent=c,this.latestPanInfo=f,this.stop(c,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>tr(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new gs(t,{onSessionStart:n,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:a,contextWindow:Np(this.visualElement)})}stop(t,r){let a=t||this.latestPointerEvent,o=r||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!o||!a)return;let{velocity:i}=o;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&fe.postRender(()=>s(a,o))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,a){let{drag:o}=this.getProps();if(!a||!Pp(t,o,this.currentDirection))return;let n=this.getAxisMotionValue(t),i=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(i=WI(i,this.constraints[t],this.elastic[t])),n.set(i)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Ya(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=GI(a.layoutBox,t):this.constraints=!1,this.elastic=QI(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&tr(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=KI(a.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ya(t))return!1;let a=t.current;Rr(a!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let n=cI(a,o.root,this.visualElement.getTransformPagePoint()),i=XI(o.layout.layoutBox,n);if(r){let s=r(aI(i));this.hasMutatedConstraints=!!s,s&&(i=pp(s))}return i}startAnimation(t){let{drag:r,dragMomentum:a,dragElastic:o,dragTransition:n,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=tr(d=>{if(!Pp(d,r,this.currentDirection))return;let c=l&&l[d]||{};i&&(c={min:0,max:0});let f=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:a?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...n,...c};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){let a=this.getAxisMotionValue(t);return ed(this.visualElement,t),a.start(fs(t,a,0,r,this.visualElement,!1))}stopAnimation(){tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),o=a[r];return o||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){tr(r=>{let{drag:a}=this.getProps();if(!Pp(r,a,this.currentDirection))return;let{projection:o}=this.visualElement,n=this.getAxisMotionValue(r);if(o&&o.layout){let{min:i,max:s}=o.layout.layoutBox[r];n.set(t[r]-ve(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!Ya(r)||!a||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};tr(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();o[i]=YI({min:l,max:l},this.constraints[i])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),tr(i=>{if(!Pp(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];s.set(ve(l,u,o[i]))})}addListeners(){if(!this.visualElement.current)return;TB.set(this.visualElement,this);let t=this.visualElement.current,r=qo(t,"pointerdown",l=>{let{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),a=()=>{let{dragConstraints:l}=this.getProps();Ya(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,n=o.addEventListener("measure",a);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),fe.read(a);let i=Qa(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(tr(d=>{let c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),r(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:i=Ep,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:o,dragConstraints:n,dragElastic:i,dragMomentum:s}}};function Pp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function MB(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Rp=class extends gt{constructor(t){super(t),this.removeGroupControls=je,this.removeListeners=je,this.controls=new Dp(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||je}unmount(){this.removeGroupControls(),this.removeListeners()}};var JI=e=>(t,r)=>{e&&fe.postRender(()=>e(t,r))},Ap=class extends gt{constructor(){super(...arguments),this.removePointerDownListener=je}onPointerDown(t){this.session=new gs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Np(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:o}=this.node.getProps();return{onSessionStart:JI(t),onStart:JI(r),onMove:a,onEnd:(n,i)=>{delete this.session,o&&fe.postRender(()=>o(n,i))}}}mount(){this.removePointerDownListener=qo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var tk=E(J(),1);var td=E(Y(),1);var hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ZI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var vs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(re.test(e))e=parseFloat(e);else return e;let r=ZI(e,t.target.x),a=ZI(e,t.target.y);return`${r}% ${a}%`}};var ek={correct:(e,{treeScale:t,projectionDelta:r})=>{let a=e,o=Tt.parse(e);if(o.length>5)return a;let n=Tt.createTransformer(e),i=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+i]/=s,o[1+i]/=l;let u=ve(s,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=u),typeof o[3+i]=="number"&&(o[3+i]/=u),n(o)}};var jv=!1,qv=class extends td.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:o}=this.props,{projection:n}=t;_2(OB),n&&(r.group&&r.group.add(n),a&&a.register&&o&&a.register(n),jv&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:a,drag:o,isPresent:n}=this.props,{projection:i}=a;return i&&(i.isPresent=n,jv=!0,o||t.layoutDependency!==r||r===void 0||t.isPresent!==n?i.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?i.promote():i.relegate()||fe.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Un.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:o}=t;jv=!0,o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),a&&a.deregister&&a.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Tp(e){let[t,r]=Qf(),a=(0,td.useContext)(ji);return(0,tk.jsx)(qv,{...e,layoutGroup:a,switchLayoutGroup:(0,td.useContext)(dp),isPresent:t,safeToRemove:r})}var OB={borderRadius:{...vs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vs,borderTopRightRadius:vs,borderBottomLeftRadius:vs,borderBottomRightRadius:vs,boxShadow:ek};function rk(e,t,r){let a=ke(e)?e:Ar(e);return a.start(fs("",a,t,r)),a.animation}var ak=(e,t)=>e.depth-t.depth;var Mp=class{constructor(){this.children=[],this.isDirty=!1}add(t){Pn(this.children,t),this.isDirty=!0}remove(t){Dn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ak),this.isDirty=!1,this.children.forEach(t)}};function ok(e,t){let r=Xe.now(),a=({timestamp:o})=>{let n=o-r;n>=t&&(Zt(a),e(n-t))};return fe.setup(a,!0),()=>Zt(a)}var lk=["TopLeft","TopRight","BottomLeft","BottomRight"],FB=lk.length,nk=e=>typeof e=="string"?parseFloat(e):e,ik=e=>typeof e=="number"||re.test(e);function uk(e,t,r,a,o,n){o?(e.opacity=ve(0,r.opacity??1,BB(a)),e.opacityExit=ve(t.opacity??1,0,_B(a))):n&&(e.opacity=ve(t.opacity??1,r.opacity??1,a));for(let i=0;i<FB;i++){let s=`border${lk[i]}Radius`,l=sk(t,s),u=sk(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ik(l)===ik(u)?(e[s]=Math.max(ve(nk(l),nk(u),a),0),(At.test(u)||At.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=ve(t.rotate||0,r.rotate||0,a))}function sk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var BB=dk(0,.5,Lu),_B=dk(.5,.95,je);function dk(e,t,r){return a=>a<e?0:a>t?1:r(xa(e,t,a))}function ck(e,t){e.min=t.min,e.max=t.max}function mr(e,t){ck(e.x,t.x),ck(e.y,t.y)}function $v(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function fk(e,t,r,a,o){return e-=t,e=Qu(e,1/r,a),o!==void 0&&(e=Qu(e,1/o,a)),e}function VB(e,t=0,r=1,a=.5,o,n=e,i=e){if(At.test(t)&&(t=parseFloat(t),t=ve(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=ve(n.min,n.max,a);e===n&&(s-=t),e.min=fk(e.min,t,r,s,o),e.max=fk(e.max,t,r,s,o)}function pk(e,t,[r,a,o],n,i){VB(e,t[r],t[a],t[o],t.scale,n,i)}var UB=["x","scaleX","originX"],zB=["y","scaleY","originY"];function Wv(e,t,r,a){pk(e.x,t,UB,r?r.x:void 0,a?a.x:void 0),pk(e.y,t,zB,r?r.y:void 0,a?a.y:void 0)}function mk(e){return e.translate===0&&e.scale===1}function Gv(e){return mk(e.x)&&mk(e.y)}function gk(e,t){return e.min===t.min&&e.max===t.max}function vk(e,t){return gk(e.x,t.x)&&gk(e.y,t.y)}function hk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Xv(e,t){return hk(e.x,t.x)&&hk(e.y,t.y)}function Yv(e){return lt(e.x)/lt(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Op=class{constructor(){this.members=[]}add(t){Pn(this.members,t),t.scheduleRender()}remove(t){if(Dn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(o=>t===o);if(r===0)return!1;let a;for(let o=r;o>=0;o--){let n=this.members[o];if(n.isPresent!==!1){a=n;break}}return a?(this.promote(a),!0):!1}promote(t,r){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,r&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}
110=t.options;o===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:a}=t;r.onExitComplete&&r.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function xk(e,t,r){let a="",o=e.x.translate/t.x,n=e.y.translate/t.y,i=r?.z||0;if((o||n||i)&&(a=`translate3d(${o}px, ${n}px, ${i}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:m,skewY:g}=r;u&&(a=`perspective(${u}px) ${a}`),d&&(a+=`rotate(${d}deg) `),c&&(a+=`rotateX(${c}deg) `),f&&(a+=`rotateY(${f}deg) `),m&&(a+=`skewX(${m}deg) `),g&&(a+=`skewY(${g}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(a+=`scale(${s}, ${l})`),a||"none"}var Gn={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Qv=["","X","Y","Z"],HB=1e3,jB=0;function Jv(e,t,r,a){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),a&&(a[e]=0))}function Nk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=bp(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:o,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",fe,!(o||n))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&Nk(a)}function Fp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:o}){return class{constructor(i={},s=t?.()){this.id=jB++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jt.value&&(Gn.nodes=Gn.calculatedTargetDeltas=Gn.calculatedProjections=0),this.nodes.forEach(WB),this.nodes.forEach(KB),this.nodes.forEach(QB),this.nodes.forEach(GB),Jt.addProjectionMetrics&&Jt.addProjectionMetrics(Gn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mp)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Ha),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=qu(i)&&!Nv(i),this.instance=i;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let d,c=0,f=()=>this.root.updateBlockedByResize=!1;fe.read(()=>{c=window.innerWidth}),e(i,()=>{let m=window.innerWidth;m!==c&&(c=m,this.root.updateBlockedByResize=!0,d&&d(),d=ok(f,250),hs.hasAnimatedSinceResize&&(hs.hasAnimatedSinceResize=!1,this.nodes.forEach(bk)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:c,hasRelativeLayoutChanged:f,layout:m})=>
110{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||u.getDefaultTransition()||r_,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),p=!this.targetLayout||!Xv(this.targetLayout,m),h=!c&&f;if(this.options.layoutRoot||this.resumeFrom||h||c&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={..._n(g,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,h)}else c||bk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(JB),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yk);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(wk);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(YB),this.nodes.forEach(qB),this.nodes.forEach($B)):this.nodes.forEach(wk),this.clearAllSnapshots();let s=Xe.now();Ge.delta=mt(0,1e3/60,s-Ge.timestamp),Ge.timestamp=s,Ge.isProcessing=!0,Pu.update.process(Ge),Pu.preRender.process(Ge),Pu.render.process(Ge),Ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Un.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(XB),this.sharedNodes.forEach(ZB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!lt(this.snapshot.measuredBox.x)&&!lt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Gv(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(s||Ka(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),a_(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return Te();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(o_))){let{scroll:u}=this.root;u&&(jo(s.x,u.offset.x),jo(s.y,u.offset.y))}return s}removeElementScroll(i){let s=Te();if(mr(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:d,options:c}=u;u!==this.root&&d&&c.layoutScroll&&(d.wasRoot&&mr(s,i),jo(s.x,d.offset.x),jo(s.y,d.offset.y))}return s}applyTransform(i,s=!1){let l=Te();mr(l,i);for(let u=0;u<this.path.length;u++){let d=this.path[u];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&qn(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Ka(d.latestValues)&&qn(l,d.latestValues)}return Ka(this.latestValues)&&qn(l,this.latestValues),l}removeTransform(i){let s=Te();mr(s,i);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Ka(u.latestValues))continue;mp(u.latestValues)&&u.updateSnapshot();let d=Te(),c=u.measurePageBox();mr(d,c),Wv(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Ka(this.latestValues)&&Wv(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
vendor: 6,957 bytes, line 110
110haredProjectionDirty);let l=!!this.resumingFrom||this!==s;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:c}=this.options;if(!(!this.layout||!(d||c))){if(this.resolvedRelativeTargetAt=Ge.timestamp,!this.targetDelta&&!this.relativeTarget){let f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),ms(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),mr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Te(),this.targetWithTransforms=Te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mr(this.target,this.layout.layoutBox),Bv(this.target,this.targetDelta)):mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),ms(this.relativeTargetOrigin,this.target,f.target),mr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jt.value&&Gn.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mp(this.parent.latestValues)||Ov(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ge.timestamp&&(l=!1),l)return;let{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;mr(this.layoutCorrected,this.layout.layoutBox);let c=this.treeScale.x,f=this.treeScale.y;dI(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Te());let{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($v(this.prevProjectionDelta.x,this.projectionDelta.x),$v(this.prevProjectionDelta.y,this.projectionDelta.y)),ps(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==f||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Jt.value&&Gn.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$n(),this.projectionDelta=$n(),this.projectionDeltaWithTransform=$n()}setAnimationOrigin(i,s=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=$n();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let f=Te(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,x=m!==g,v=this.getStack(),p=!v||v.members.length<=1,h=!!(x&&!p&&this.options.crossfade===!0&&!this.path.some(t_));this.animationProgress=0;let y;this.mixTargetDelta=w=>{let S=w/1e3;Sk(c.x,i.x,S),Sk(c.y,i.y,S),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ms(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),e_(this.relativeTarget,this.relativeTargetOrigin,f,S),y&&vk(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Te()),mr(y,this.relativeTarget)),x&&(this.animationValues=d,uk(d,u,this.latestValues,S,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Zt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fe.update(()=>{hs.hasAnimatedSinceResize=!0,Yr.layout++,this.motionValue||(this.motionValue=Ar(0)),this.currentAnimation=rk(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{Yr.layout--},onComplete:()=>{Yr.layout--,i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(HB),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:u,latestValues:d}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&Ek(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Te();let c=lt(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;let f=lt(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}mr(s,l),qn(s,d),ps(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Op),this.sharedNodes.get(i).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;
110return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&Jv("z",i,u,this.animationValues);for(let d=0;d<Qv.length;d++)Jv(`rotate${Qv[d]}`,i,u,this.animationValues),Jv(`skew${Qv[d]}`,i,u,this.animationValues);i.render();for(let d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=ss(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=ss(s?.pointerEvents)||""),this.hasProjected&&!Ka(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let c=xk(this.projectionDeltaWithTransform,this.treeScale,d);l&&(c=l(d,c)),i.transform=c;let{x:f,y:m}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let g in jn){if(d[g]===void 0)continue;let{correct:x,applyTo:v,isCSSVariable:p}=jn[g],h=c==="none"?d[g]:x(d[g],u);if(v){let y=v.length;for(let w=0;w<y;w++)i[v[w]]=h}else p?this.options.visualElement.renderState.vars[g]=h:i[g]=h}this.options.layoutId&&(i.pointerEvents=u===this?ss(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(yk),this.root.sharedNodes.clear()}}}function qB(e){e.updateLayout()}function $B(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:a}=e.layout,{animationType:o}=e.options,n=t.source!==e.layout.source;o==="size"?tr(d=>{let c=n?t.measuredBox[d]:t.layoutBox[d],f=lt(c);c.min=r[d].min,c.max=c.min+f}):Ek(o,t.layoutBox,r)&&tr(d=>{let c=n?t.measuredBox[d]:t.layoutBox[d],f=lt(r[d]);c.max=c.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});let i=$n();ps(i,r,t.layoutBox);let s=$n();n?ps(s,e.applyTransform(a,!0),t.measuredBox):ps(s,r,t.layoutBox);let l=!Gv(i),u=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:c,layout:f}=d;if(c&&f){let m=Te();ms(m,t.layoutBox,c.layoutBox);let g=Te();ms(g,r,f.layoutBox),Xv(m,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function WB(e){Jt.value&&Gn.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function GB(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function XB(e){e.clearSnapshot()}function yk(e){e.clearMeasurements()}function wk(e){e.isLayoutDirty=!1}function YB(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KB(e){e.resolveTargetDelta()}function QB(e){e.calcProjection()}
vendor: 4,909 bytes, line 110
110function JB(e){e.resetSkewAndRotation()}function ZB(e){e.removeLeadSnapshot()}function Sk(e,t,r){e.translate=ve(t.translate,0,r),e.scale=ve(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ck(e,t,r,a){e.min=ve(t.min,r.min,a),e.max=ve(t.max,r.max,a)}function e_(e,t,r,a){Ck(e.x,t.x,r.x,a),Ck(e.y,t.y,r.y,a)}function t_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var r_={duration:.45,ease:[.4,0,.1,1]},Lk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ik=Lk("applewebkit/")&&!Lk("chrome/")?Math.round:je;function kk(e){e.min=Ik(e.min),e.max=Ik(e.max)}function a_(e){kk(e.x),kk(e.y)}function Ek(e,t,r){return e==="position"||e==="preserve-aspect"&&!FI(Yv(t),Yv(r),.2)}function o_(e){return e!==e.root&&e.scroll?.wasRoot}var Pk=Fp({attachResizeListener:(e,t)=>Qa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Zv={current:void 0},Bp=Fp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zv.current){let e=new Pk({});e.mount(window),e.setOptions({layoutScroll:!0}),Zv.current=e}return Zv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Dk={pan:{Feature:Ap},drag:{Feature:Rp,ProjectionNode:Bp,MeasureLayout:Tp}};function Rk(e,t,r){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");let o="onHover"+r,n=a[o];n&&fe.postRender(()=>n(t,Ja(t)))}var _p=class extends gt{mount(){let{current:t}=this.node;t&&(this.unmount=Cv(t,(r,a)=>(Rk(this.node,a,"Start"),o=>Rk(this.node,o,"End"))))}unmount(){}};var Vp=class extends gt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xr(Qa(this.node.current,"focus",()=>this.onFocus()),Qa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Ak(e,t,r){let{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");let o="onTap"+(r==="End"?"":r),n=a[o];n&&fe.postRender(()=>n(t,Ja(t)))}var Up=class extends gt{mount(){let{current:t}=this.node;t&&(this.unmount=kv(t,(r,a)=>(Ak(this.node,a,"Start"),(o,{success:n})=>Ak(this.node,o,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var tx=new WeakMap,ex=new WeakMap,n_=e=>{let t=tx.get(e.target);t&&t(e)},i_=e=>{e.forEach(n_)};function s_({root:e,...t}){let r=e||document;ex.has(r)||ex.set(r,{});let a=ex.get(r),o=JSON.stringify(t);return a[o]||(a[o]=new IntersectionObserver(i_,{root:e,...t})),a[o]}function Tk(e,t,r){let a=s_(t);return tx.set(e,r),a.observe(e),()=>{tx.delete(e),a.unobserve(e)}}var l_={some:0,all:1},zp=class extends gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:o="some",once:n}=t,i={root:r?r.current:void 0,rootMargin:a,threshold:typeof o=="number"?o:l_[o]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return Tk(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(u_(t,r))&&this.startObserver()}unmount(){}};function u_({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var Mk={inView:{Feature:zp},tap:{Feature:Up},focus:{Feature:Vp},hover:{Feature:_p}};var Ok={layout:{ProjectionNode:Bp,MeasureLayout:Tp}};var Fk={...PI,...Mk,...Dk,...Ok};var ht=rI(Fk,wI);var Q=E(J()),d_=({language:e="en-US"})=>{let[t,r]=(0,Bk.useState)(!1),a={"en-US":{buttonText:"How to use shortcuts",sections:[{icon:Se,title:"Activate Shortcut",action:"Tap",description:"Tap anywhere on the shortcut button to instantly activate it.",example:'Tap "Find Station" to search for nearby charging stations'},{icon:ga,title:"Reorder Shortcuts",action:"Drag",description:"Click and drag the \u22EE\u22EE icon (top-left corner) to move shortcuts.",steps:["Find the \u22EE\u22EE icon in the top-left corner","Click on the icon (not the button!)","Hold and drag to new position","Release to drop"],tip:"Only the grip icon (\u22EE\u22EE) is draggable, not the entire button!"}
110,{icon:Yt,title:"Edit or Delete",action:"Hold",description:"Press and hold the shortcut button for 3 seconds to open the edit menu.",steps:["Press and hold anywhere on the button","Wait for 3 seconds","Edit menu appears",'Choose "Edit" or "Delete"'],tip:"Don't move while holding, or it will trigger a drag instead!"}],quickRef:{title:"Quick Reference",items:[{action:"Activate",how:"Tap button",time:"Instant"},{action:"Reorder",how:"Drag \u22EE\u22EE icon",time:"Anytime"},{action:"Edit",how:"Hold button",time:"3 seconds"}]}},"de-DE":{buttonText:"Wie man Verkn\xFCpfungen verwendet",sections:[{icon:Se,title:"Verkn\xFCpfung aktivieren",action:"Tippen",description:"Tippen Sie auf die Verkn\xFCpfungsschaltfl\xE4che, um sie sofort zu aktivieren.",example:'Tippen Sie auf "Station finden", um nach Ladestationen in der N\xE4he zu suchen'},{icon:ga,title:"Verkn\xFCpfungen neu anordnen",action:"Ziehen",description:"Klicken und ziehen Sie das \u22EE\u22EE Symbol (obere linke Ecke), um Verkn\xFCpfungen zu verschieben.",steps:["Finden Sie das \u22EE\u22EE Symbol in der oberen linken Ecke","Klicken Sie auf das Symbol (nicht auf die Schaltfl\xE4che!)","Halten und ziehen Sie zur neuen Position","Loslassen zum Ablegen"],tip:"Nur das Griffsymbol (\u22EE\u22EE) ist ziehbar, nicht die gesamte Schaltfl\xE4che!"},{icon:Yt,title:"Bearbeiten oder L\xF6schen",action:"Halten",description:"Dr\xFCcken und halten Sie die Verkn\xFCpfungsschaltfl\xE4che 3 Sekunden lang, um das Bearbeitungsmen\xFC zu \xF6ffnen.",steps:["Dr\xFCcken und halten Sie die Schaltfl\xE4che","Warten Sie 3 Sekunden","Bearbeitungsmen\xFC erscheint",'W\xE4hlen Sie "Bearbeiten" oder "L\xF6schen"'],tip:"Bewegen Sie sich nicht w\xE4hrend des Haltens, sonst wird ein Ziehen ausgel\xF6st!"}],quickRef:{title:"Schnellreferenz",items:[{action:"Aktivieren",how:"Schaltfl\xE4che tippen",time:"Sofort"},{action:"Neu anordnen",how:"\u22EE\u22EE Symbol ziehen",time:"Jederzeit"},{action:"Bearbeiten",how:"Schaltfl\xE4che halten",time:"3 Sekunden"}]}}},o=a[e]||a["en-US"];return(0,Q.jsxs)("div",{className:"mt-3",children:[(0,Q.jsxs)("button",{onClick:()=>r(!t),className:"w-full flex items-center justify-between p-3 bg-gradient-to-r from-blue-50 to-purple-50 hover:from-blue-100 hover:to-purple-100 border border-blue-200 rounded-lg transition-all duration-200 group",children:[(0,Q.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Q.jsx)(bt,{className:"w-4 h-4 text-blue-600 group-hover:text-blue-700"}),(0,Q.jsx)("span",{className:"text-sm font-medium text-blue-900",children:o.buttonText})]}),(0,Q.jsx)(ht.div,{animate:{rotate:t?180:0},transition:{duration:.2},children:(0,Q.jsx)(vn,{className:"w-4 h-4 text-blue-600"})})]}),(0,Q.jsx)(Xu,{children:t&&(0,Q.jsx)(ht.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:(0,Q.jsxs)("div",{className:"mt-3 space-y-4 p-4 bg-white border border-gray-200 rounded-lg shadow-sm",children:[o.sections.map((n,i)=>{let s=n.icon;return(0,Q.jsxs)(ht.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:i*.1},className:"pb-4 border-b border-gray-100 last:border-b-0 last:pb-0",children:[(0,Q.jsxs)("div",{className:"flex items-start space-x-3 mb-2",children:[(0,Q.jsx)("div",{className:"flex-shrink-0 w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center shadow-md",children:(0,Q.jsx)(s,{className:"w-5 h-5 text-white"})}),(0,Q.jsxs)("div",{className:"flex-1",children:[(0,Q.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,Q.jsx)("h4",{className:"text-sm font-semibold text-gray-900",children:n.title}),(0,Q.jsx)("span",{className:"px-2 py-0.5 bg-blue-100 text-blue-700 text-xs font-medium rounded",children:n.action})]}),(0,Q.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed",children:n.description})]})]}),n.steps&&(0,Q.jsx)("div",{className:"ml-13 mt-2 space-y-1",children:n.steps.map((l,u)=>(0,Q.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,Q.jsx)("span",{className:"flex-shrink-0 w-5 h-5 bg-blue-100 text-blue-700 text-xs font-semibold rounded-full flex items-center justify-center mt-0.5",children:u+1}),(0,Q.jsx)("p",{className:"text-xs text-gray-700 leading-relaxed",children:l})]},u))}),n.example&&(0,Q.jsx)("div",{className:"ml-13 mt-2 p-2 bg-blue-50 border border-blue-100 rounded-md",children:(0,Q.jsxs)("p",{className:"text-xs text-blue-800",children:[(0,Q.jsx)("span",{className:"font-semibold",children:"Example:"})," ",n.example]})}),n.tip&&(0,Q.jsxs)("div",{className:"ml-13 mt-2 flex items-start space-x-2 p-2 bg-amber-50 border border-amber-200 rounded-md",children:[(0,Q.jsx)("span",{className:"text-xs",children:"\u{1F4A1}"}),(0,Q.jsx)("p",{className:"text-xs text-amber-900 font-medium",children:n.tip})]})]},i)}),(0,Q.jsxs)(ht.div,{initial:{y:20,opacity:0}
110,animate:{y:0,opacity:1},transition:{delay:.3},className:"pt-4 border-t border-gray-200",children:[(0,Q.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-3",children:o.quickRef.title}),(0,Q.jsx)("div",{className:"overflow-hidden rounded-lg border border-gray-200",children:(0,Q.jsxs)("table",{className:"w-full text-xs",children:[(0,Q.jsx)("thead",{children:(0,Q.jsxs)("tr",{className:"bg-gradient-to-r from-blue-50 to-purple-50",children:[(0,Q.jsx)("th",{className:"px-3 py-2 text-left font-semibold text-gray-700",children:"Action"}),(0,Q.jsx)("th",{className:"px-3 py-2 text-left font-semibold text-gray-700",children:"How To"}),(0,Q.jsx)("th",{className:"px-3 py-2 text-left font-semibold text-gray-700",children:"Time"})]})}),(0,Q.jsx)("tbody",{children:o.quickRef.items.map((n,i)=>(0,Q.jsxs)("tr",{className:`${i%2===0?"bg-white":"bg-gray-50"} hover:bg-blue-50 transition-colors`,children:[(0,Q.jsx)("td",{className:"px-3 py-2 font-medium text-gray-900",children:n.action}),(0,Q.jsx)("td",{className:"px-3 py-2 text-gray-700",children:n.how}),(0,Q.jsx)("td",{className:"px-3 py-2 text-gray-600",children:n.time})]},i))})]})})]}),(0,Q.jsxs)(ht.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.4},className:"pt-4 border-t border-gray-200",children:[(0,Q.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Visual Guide"}),(0,Q.jsxs)("div",{className:"p-4 bg-gradient-to-br from-gray-50 to-gray-100 rounded-lg border border-gray-200",children:[(0,Q.jsx)("div",{className:"flex items-center justify-center",children:(0,Q.jsxs)("div",{className:"relative w-32 h-32 bg-white rounded-lg shadow-md border-2 border-gray-300 p-3",children:[(0,Q.jsx)("div",{className:"absolute top-2 left-2 p-1.5 bg-white shadow-sm rounded-md border border-blue-200",children:(0,Q.jsx)(ga,{className:"w-4 h-4 text-blue-600"})}),(0,Q.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,Q.jsx)(Se,{className:"w-12 h-12 text-blue-500"})}),(0,Q.jsx)("div",{className:"absolute bottom-2 left-2 right-2 text-center",children:(0,Q.jsx)("p",{className:"text-xs font-medium text-gray-700",children:"Station"})})]})}),(0,Q.jsxs)("div",{className:"mt-3 space-y-1 text-xs text-center text-gray-600",children:[(0,Q.jsxs)("p",{children:[(0,Q.jsxs)("span",{className:"inline-flex items-center",children:[(0,Q.jsx)(ga,{className:"w-3 h-3 mr-1 text-blue-600"}),(0,Q.jsx)("span",{className:"font-semibold text-blue-700",children:"Drag this icon"})]})," ","to reorder"]}),(0,Q.jsxs)("p",{children:[(0,Q.jsx)("span",{className:"font-semibold",children:"Tap button"})," to activate"]}),(0,Q.jsxs)("p",{children:[(0,Q.jsx)("span",{className:"font-semibold",children:"Hold 3 sec"})," to edit"]})]})]})]})]})})})]})},_k=d_;var b=E(J()),rx=[{category:"Filing Complaints",icon:"\u{1F4DD}",color:"red",questions:[{q:"How do I file a complaint?",a:"Tap the green call button above to connect with our AI assistant. Explain your issue clearly and we'll help resolve it immediately.",keywords:["file","submit","complaint","how to","start"]},{q:"What types of complaints can I file?",a:"Service issues, billing problems, charger malfunctions, app errors, customer service concerns, or any other ChargeVoix-related problems.",keywords:["types","categories","what","issues","problems"]}]},{category:"Process & Timeline",icon:"\u23F1\uFE0F",color:"blue",questions:[{q:"What happens after I call?",a:"Our AI assistant will listen to your complaint, document it with a unique ID, and either resolve it instantly or escalate to a human agent if needed.",keywords:["process","after","next","happens","workflow"]},{q:"How long does resolution take?",a:"Most complaints are resolved during the call (5-10 min). Complex issues may take 24-48 hours. You'll receive status updates via SMS.",keywords:["time","duration","how long","wait","resolution"]}]},{category:"Tracking & Follow-up",icon:"\u{1F50D}",color:"green",questions:[{q:"Can I track my complaint status?",a:"Yes! After filing, you'll receive a complaint ID via SMS. Use it to check status anytime by calling our help line or checking your SMS history.",keywords:["track","status","follow up","check","monitor"]},{q:"What if I'm not satisfied with the resolution?",a:"You can request escalation to a supervisor during the call, or call back anytime to speak with a senior agent. We're committed to your satisfaction.",keywords:["unsatisfied","escalate","supervisor","not happy","dissatisfied"]}]},{category:"Billing & Costs",icon:"\u{1F4B0}",color:"purple",questions:[{q:"Is there a cost to file complaints?",a:"No! Filing complaints is completely free for all ChargeVoix users. We want to hear from you and improve our service.",keywords:["cost","free","price","charge","fee"]},{q:"Will I get a refund for my complaint?",a:"Refunds are evaluated case-by-case. If your complaint involves billing errors or service failures, you may be eligible for a refund or credit.",keywords:["refund","money back","credit","compensation"]}]}],c_=({settings:e,type:t,onNavigate:r})=>{let[a,o]=(0,Mr.useState)(!1),[n,i]=(0,Mr.useState)(null),[s,l]=(0,Mr.useState)(null),[u,d]=(0,Mr.useState)(""),[c,f]=(0,Mr.useState)(null),[m,g]=(0,Mr.useState)(new Set),[x,v]=(0,Mr.useState)(!1),p=Mr.default.useMemo(()=>{try{return Qt(e.language||"en")}catch(O){return console.error("Error loading translations:",O),Qt("en")}},[e.language]),h=t==="complaint",y=h?p.fileComplaint:p.getHelp,w=h?"\u26A0\uFE0F":"\u{1F4AC}",S=h?"Call our server to file a complaint. Our AI assistant will listen and help resolve your issue.":"Call our server for help. Our AI assistant will answer your questions and provide assistance.",L=(0,Mr.useMemo)(()=>!u&&!c?rx:rx.map(O=>({...O,questions:O.questions.filter(ne=>{let ae=!u||ne.q.toLowerCase().includes(u.toLowerCase())||ne.a.toLowerCase().includes(u.toLowerCase())||ne.keywords.some(G=>G.toLowerCase().includes(u.toLowerCase())),M=!c||O.category===c;return ae&&M})})).filter(O=>O.questions.length>0),[u,c]),k=O=>{console.log("Toggling question:",O),g(ne=>{let ae=new Set(ne);return ae.has(O)?(console.log("Collapsing:",O),ae.delete(O)):(console.log("Expanding:",O),ae.add(O)),console.log("New expanded set:",Array.from(ae)),ae})},N=()=>{let O=new Set;
110L.forEach(ne=>{ne.questions.forEach((ae,M)=>{O.add(`${ne.category}-${M}`)})}),g(O)},q=()=>{g(new Set)},D=L.length>0&&L.every((O,ne)=>O.questions.every((ae,M)=>m.has(`${O.category}-${M}`))),ee=async(O="webrtc")=>{o(!0),i("getting");try{let ne=await No();i(ne.error?"error":"success");let ae=await Cf(e.customerName,e.customerId,h?"complaint":"help",ne.error?void 0:{latitude:ne.latitude,longitude:ne.longitude,address:ne.address},O);ae.success?(l({type:"success",message:`\u{1F4DE} Calling server for ${h?"complaint":"help"}... Please wait.`}),setTimeout(()=>{r("home")},3e3)):l({type:"error",message:ae.error||"\u26A0\uFE0F Unable to initiate call. Please try again."})}catch(ne){console.error("Error initiating call:",ne),l({type:"error",message:"\u26A0\uFE0F Error initiating call. Please try again."})}finally{o(!1),setTimeout(()=>{i(null),l(null)},5e3)}};return(0,b.jsxs)("div",{className:"min-h-screen flex flex-col bg-gradient-to-br from-green-50 via-blue-50 to-green-100",children:[(0,b.jsx)("div",{className:"bg-white/90 backdrop-blur-sm shadow-sm border-b border-gray-200 p-4",children:(0,b.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,b.jsx)("button",{onClick:()=>r("home"),className:"p-2 hover:bg-gray-100 rounded-full transition-colors",children:(0,b.jsx)("span",{className:"text-xl text-gray-600",children:"\u2190"})}),(0,b.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,b.jsx)("span",{className:"text-2xl",children:w}),(0,b.jsx)("h1",{className:"text-xl font-bold text-gray-800",children:y})]})]})}),(0,b.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center px-4 py-8",children:[s&&(0,b.jsx)("div",{className:`mb-8 p-4 rounded-lg shadow-lg max-w-sm w-full text-center backdrop-blur-sm ${s.type==="success"?"bg-green-100/90 text-green-800 border border-green-200":"bg-red-100/90 text-red-800 border border-red-200"}`,children:s.message}),n&&(0,b.jsxs)("div",{className:`mb-4 p-3 rounded-lg shadow-md max-w-sm w-full text-center backdrop-blur-sm flex items-center justify-center space-x-2 ${n==="getting"?"bg-blue-100/90 text-blue-800 border border-blue-200":n==="success"?"bg-green-100/90 text-green-800 border border-green-200":"bg-yellow-100/90 text-yellow-800 border border-yellow-200"}`,children:[(0,b.jsx)("span",{className:`text-lg ${n==="getting"?"animate-pulse":""}`,children:"\u{1F4CD}"}),(0,b.jsxs)("span",{className:"text-sm",children:[n==="getting"&&p.gettingLocation,n==="success"&&p.locationReady,n==="error"&&p.locationUnavailable]})]}),(0,b.jsxs)("div",{className:"text-center mb-8 max-w-md",children:[(0,b.jsx)("p",{className:"text-gray-600 text-lg mb-4",children:S}),(0,b.jsx)("p",{className:"text-gray-500 text-sm mb-3",children:p.tapButtonToCall}),(0,b.jsx)("div",{className:"space-y-1",children:(0,b.jsxs)("div",{className:"flex items-center justify-center space-x-1 text-xs text-gray-500",children:[(0,b.jsx)(ur,{className:"w-3 h-3"}),(0,b.jsx)("span",{children:p.locationSharedAutomatically})]})})]}),(0,b.jsx)(af,{onInitiateCall:ee,isProcessing:a,label:h?p.fileComplaint:p.callForHelp}),(0,b.jsxs)("div",{className:"mt-12 text-center",children:[(0,b.jsx)("p",{className:"text-gray-500 text-sm mb-4",children:p.needSomethingElse}),(0,b.jsx)("div",{className:"space-y-2",children:(0,b.jsx)("button",{onClick:()=>r(h?"help":"complaint"),className:`px-6 py-2 rounded-lg text-sm font-medium transition-colors ${h?"bg-blue-100 text-blue-700 hover:bg-blue-200":"bg-red-100 text-red-700 hover:bg-red-200"}`,children:h?p.getHelpInstead:p.fileComplaintInstead})})]}),(0,b.jsxs)("div",{className:"mt-8 max-w-md w-full px-4 pb-20",children:[h?(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,b.jsxs)("h3",{className:"text-sm font-bold text-gray-800 flex items-center space-x-2",children:[(0,b.jsx)("span",{className:"text-lg",children:"\u2753"}),(0,b.jsx)("span",{children:p.frequentlyAskedQuestions})]}),(0,b.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,b.jsxs)("span",{className:"text-xs text-gray-500",children:[L.reduce((O,ne)=>O+ne.questions.length,0)," ",p.questions]}),L.length>0&&(0,b.jsx)("button",{onClick:D?q:N,className:"text-xs font-medium text-blue-600 hover:text-blue-700 hover:underline transition-colors",children:D?p.collapseAll:p.expandAll})]})]}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(Vl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,b.jsx)("input",{type:"text",placeholder:p.searchFAQ,value:u,onChange:O=>d(O.target.value),className:"w-full pl-10 pr-10 py-2.5 bg-white/80 backdrop-blur-sm border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all"}),u&&(0,b.jsx)("button",{onClick:()=>d(""),className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 hover:bg-gray-100 rounded-full transition-colors",children:(0,b.jsx)(ot,{className:"w-3.5 h-3.5 text-gray-400"})})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{onClick:()=>f(null),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-all ${c?"bg-white/80 text-gray-600 border border-gray-300 hover:border-blue-400":"bg-gradient-to-r from-blue-500 to-blue-600 text-white shadow-md"}`,children:"All"}),rx.map(O=>{let ne={red:"bg-gradient-to-r from-red-500 to-red-600",blue:"bg-gradient-to-r from-blue-500 to-blue-600",green:"bg-gradient-to-r from-green-500 to-green-600",purple:"bg-gradient-to-r from-purple-500 to-purple-600"},ae=ne[O.color]||ne.blue;return(0,b.jsxs)("button",{onClick:()=>f(O.category),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-all flex items-center space-x-1 ${c===O.category?`${ae} text-white shadow-md`:"bg-white/80 text-gray-600 border border-gray-300 hover:border-blue-400"}`,children:[(0,b.jsx)("span",{children:O.icon}),(0,b.jsx)("span",{children:O.category})]},O.category)})]}),L.length===0?(0,b.jsxs)("div",{className:"text-center py-8",children:[(0,b.jsxs)("p",{className:"text-gray-500 text-sm",children:['No questions foun
110d matching "',u,'"']}),(0,b.jsx)("button",{onClick:()=>{d(""),f(null)},className:"mt-2 text-blue-600 text-xs font-medium hover:underline",children:"Clear filters"})]}):(0,b.jsx)("div",{className:"space-y-4",children:L.map(O=>(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[(0,b.jsx)("span",{className:"text-base",children:O.icon}),(0,b.jsx)("h4",{className:"text-xs font-bold text-gray-700",children:O.category}),(0,b.jsxs)("span",{className:"text-xs text-gray-400",children:["(",O.questions.length,")"]})]}),O.questions.map((ne,ae)=>{let M={red:{border:"border-red-200",text:"text-red-700",bg:"bg-red-50/80"},blue:{border:"border-blue-200",text:"text-blue-700",bg:"bg-blue-50/80"},green:{border:"border-green-200",text:"text-green-700",bg:"bg-green-50/80"},purple:{border:"border-purple-200",text:"text-purple-700",bg:"bg-purple-50/80"}},G=M[O.color]||M.blue,U=`${O.category}-${ae}`,j=m.has(U);return(0,b.jsxs)("button",{onClick:()=>k(U),className:`w-full text-left p-4 backdrop-blur-sm border ${G.border} rounded-lg shadow-sm hover:shadow-md transition-all ${j?G.bg:"bg-white/80"}`,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsx)("h5",{className:`text-xs font-semibold ${G.text} flex-1 pr-2`,children:ne.q}),(0,b.jsx)(vn,{className:`w-4 h-4 ${G.text} transition-transform flex-shrink-0 ${j?"rotate-180":""}`})]}),j&&(0,b.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed mt-3 pt-3 border-t border-gray-200",children:ne.a})]},ae)})]},O.category))})]}):(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("h3",{className:"text-sm font-bold text-gray-800 mb-3 flex items-center space-x-2",children:[(0,b.jsx)("span",{className:"text-lg",children:"\u{1F4D6}"}),(0,b.jsx)("span",{children:"How to Use VoipCharge"})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-green-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-green-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)("span",{children:"\u{1F4DE}"}),(0,b.jsx)("span",{children:"Making Voice Calls"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600",children:"Tap the green call button on the home screen. Our AI assistant will answer and help with your request. Your location is shared automatically for better service."})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-blue-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-blue-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(ha,{className:"w-3 h-3"}),(0,b.jsx)("span",{children:"Quick Access Shortcuts"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600 mb-2",children:"Create shortcuts for common requests (find chargers, check balance, etc.). Tap a shortcut to send your request instantly via SMS or real-time webhook."}),(0,b.jsx)("p",{className:"text-xs text-gray-500 italic",children:"Tip: Long-press any shortcut for 3 seconds to edit or delete it."})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-purple-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-purple-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(Se,{className:"w-3 h-3"}),(0,b.jsx)("span",{children:"Real-Time vs SMS Mode"})]}),(0,b.jsxs)("p",{className:"text-xs text-gray-600",children:[(0,b.jsx)("span",{className:"font-medium",children:"Real-Time (\u26A1):"})," Instant webhook connection with AI response. Falls back to SMS if offline.",(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),(0,b.jsx)("span",{className:"font-medium",children:"SMS Mode (\u{1F4AC}):"})," Opens your SMS app with pre-filled message to send manually."]})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-red-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-red-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)("span",{children:"\u{1F6A8}"}),(0,b.jsx)("span",{children:"Emergency Button"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600",children:'The red emergency button (bottom-right) sends your location and alert to emergency contacts. It has a 3-second countdown - tap "Cancel" if pressed by mistake.'})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-gray-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-gray-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)("span",{children:"\u2699\uFE0F"}),(0,b.jsx)("span",{children:"Settings & Profile"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600",children:"Tap the settings icon (top-right) to update your profile, manage emergency contacts, configure trip tracking, and upgrade your subscription."})]}),(0,b.jsx)(_k,{language:e.language})]}),(0,b.jsxs)("div",{className:"mt-8 pt-6 border-t border-gray-200",children:[(0,b.jsxs)("h3",{className:"text-sm font-bold text-gray-800 mb
110-4 flex items-center space-x-2",children:[(0,b.jsx)(bn,{className:"w-5 h-5 text-green-600"}),(0,b.jsx)("span",{children:"Privacy & Security"})]}),(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-green-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-green-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(Tl,{className:"w-3.5 h-3.5"}),(0,b.jsx)("span",{children:"Data Protection"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed",children:"Your personal information is encrypted and stored securely. We use industry-standard encryption (AES-256) for data at rest and TLS 1.3 for data in transit."})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-blue-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-blue-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(ur,{className:"w-3.5 h-3.5"}),(0,b.jsx)("span",{children:"Location Privacy"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed mb-2",children:"Location data is only collected when you initiate a call or enable trip tracking. Your location is:"}),(0,b.jsxs)("ul",{className:"text-xs text-gray-600 space-y-1 ml-4",children:[(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-green-600 mt-0.5",children:"\u2713"}),(0,b.jsx)("span",{children:"Shared only with support agents during active calls"})]}),(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-green-600 mt-0.5",children:"\u2713"}),(0,b.jsx)("span",{children:"Not stored permanently on our servers"})]}),(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-green-600 mt-0.5",children:"\u2713"}),(0,b.jsx)("span",{children:"Never sold or shared with third parties"})]})]})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-purple-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-purple-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(Pl,{className:"w-3.5 h-3.5"}),(0,b.jsx)("span",{children:"What We Collect"})]}),(0,b.jsxs)("div",{className:"text-xs text-gray-600 space-y-2",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"font-medium text-gray-700 mb-1",children:"Required Information:"}),(0,b.jsxs)("ul",{className:"space-y-1 ml-4",children:[(0,b.jsx)("li",{children:"\u2022 Name and Customer ID (for account identification)"}),(0,b.jsx)("li",{children:"\u2022 Phone number (for voice calls and SMS)"}),(0,b.jsx)("li",{children:"\u2022 Location data (only during active calls/trips)"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"font-medium text-gray-700 mb-1",children:"Optional Information:"}),(0,b.jsxs)("ul",{className:"space-y-1 ml-4",children:[(0,b.jsx)("li",{children:"\u2022 Emergency contacts (stored locally on your device)"}),(0,b.jsx)("li",{children:"\u2022 Quick access shortcuts (stored locally)"}),(0,b.jsx)("li",{children:"\u2022 Language preferences (stored locally)"})]})]})]})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-indigo-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-indigo-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(jl,{className:"w-3.5 h-3.5"}),(0,b.jsx)("span",{children:"Your Privacy Rights"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed mb-2",children:"You have complete control over your data:"}),(0,b.jsxs)("ul",{className:"text-xs text-gray-600 space-y-1 ml-4",children:[(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-indigo-600 mt-0.5",children:"\u2192"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("strong",{children:"Access:"})," View all data we have about you"]})]}),(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-indigo-600 mt-0.5",children:"\u2192"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("strong",{children:"Delete:"})," Request complete data deletion anytime"]})]}),(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-indigo-600 mt-0.5",children:"\u2192"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("strong",{children:"Export:"})," Download your data in portable format"]})]}),(0,b.jsxs)("li",{className:"flex items-start space-x-1",children:[(0,b.jsx)("span",{className:"text-indigo-600 mt-0.5",children:"\u2192"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("strong",{children:"Opt-out
110:"})," Disable location tracking anytime"]})]})]})]}),(0,b.jsxs)("div",{className:"p-4 bg-white/80 backdrop-blur-sm border border-amber-200 rounded-lg shadow-sm",children:[(0,b.jsxs)("h4",{className:"text-xs font-semibold text-amber-700 mb-2 flex items-center space-x-1",children:[(0,b.jsx)(Rl,{className:"w-3.5 h-3.5"}),(0,b.jsx)("span",{children:"Third-Party Services"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed mb-2",children:"We use trusted third-party services to provide our features:"}),(0,b.jsxs)("ul",{className:"text-xs text-gray-600 space-y-1 ml-4",children:[(0,b.jsxs)("li",{children:["\u2022 ",(0,b.jsx)("strong",{children:"Stripe:"})," Secure payment processing (PCI-DSS compliant)"]}),(0,b.jsxs)("li",{children:["\u2022 ",(0,b.jsx)("strong",{children:"Taskade:"})," Data storage and automation backend"]}),(0,b.jsxs)("li",{children:["\u2022 ",(0,b.jsx)("strong",{children:"WebRTC:"})," Encrypted voice communication"]})]}),(0,b.jsx)("p",{className:"text-xs text-gray-500 italic mt-2",children:"All third-party services are GDPR and CCPA compliant."})]}),(0,b.jsxs)("div",{className:"p-4 bg-gradient-to-br from-gray-50 to-gray-100 border border-gray-300 rounded-lg",children:[(0,b.jsx)("h4",{className:"text-xs font-semibold text-gray-800 mb-2",children:"Questions About Privacy?"}),(0,b.jsx)("p",{className:"text-xs text-gray-600 leading-relaxed mb-2",children:"We're committed to transparency. Contact our privacy team:"}),(0,b.jsxs)("div",{className:"text-xs text-gray-700 space-y-1",children:[(0,b.jsxs)("p",{children:["\u{1F4E7} Email: ",(0,b.jsx)("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:underline",children:"[email protected]"})]}),(0,b.jsx)("p",{children:"\u{1F4DE} Phone: Call our support line and ask for privacy team"})]})]}),(0,b.jsx)("div",{className:"text-center pt-2",children:(0,b.jsxs)("p",{className:"text-xs text-gray-400",children:["Privacy Policy Last Updated: ",new Date().toLocaleDateString("en-US",{month:"long",year:"numeric"})]})})]})]}),(0,b.jsxs)("div",{className:"mt-8 pt-6 border-t border-gray-200",children:[(0,b.jsxs)("button",{onClick:()=>v(!0),className:"w-full flex items-center justify-center space-x-3 p-4 bg-gradient-to-br from-blue-400 to-purple-500 hover:from-blue-500 hover:to-purple-600 text-white rounded-xl shadow-lg hover:shadow-xl transition-all hover:scale-105 active:scale-95",children:[(0,b.jsx)(ma,{className:"w-5 h-5"}),(0,b.jsx)("span",{className:"font-semibold",children:"Install App"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-500 text-center mt-2",children:"Install for offline access and faster performance"})]})]})]}),(0,b.jsx)(of,{settings:e}),x&&(0,b.jsx)(Jc,{onClose:()=>v(!1)})]})},ax=c_;var Lt=E(Y());var P=E(J()),f_=({onComplete:e})=>{let[t,r]=(0,Lt.useState)(0),[a,o]=(0,Lt.useState)(""),[n,i]=(0,Lt.useState)(""),[s,l]=(0,Lt.useState)("Free"),[u,d]=(0,Lt.useState)(!1),[c,f]=(0,Lt.useState)("forward"),[m,g]=(0,Lt.useState)(0),[x,v]=(0,Lt.useState)(!1),[p,h]=(0,Lt.useState)(!0),y=Lt.default.useRef(null),w=Lt.default.useRef(null);(0,Lt.useEffect)(()=>{let ae=t*20,M=800,G=Date.now(),U=m,j=()=>{let ue=Date.now()-G,me=Math.min(ue/M,1),ge=1-Math.pow(1-me,3),_e=U+(ae-U)*ge;g(_e),me<1&&requestAnimationFrame(j)};requestAnimationFrame(j)},[t]),(0,Lt.useEffect)(()=>{let M=setTimeout(()=>{if(y.current){let{scrollHeight:G,clientHeight:U}=y.current,j=G>U;v(j),y.current.scrollTop=0}},100);return()=>clearTimeout(M)},[t]);let S=ae=>{let M=ae.currentTarget,{scrollTop:G,scrollHeight:U,clientHeight:j}=M,ue=U-G-j<50;(G>20||ue)&&v(!1)},L=()=>{y.current&&(y.current.scrollTo({top:y.current.scrollHeight,behavior:"smooth"}),v(!1))};(0,Lt.useEffect)(()=>{let ae=new IntersectionObserver(M=>{M.forEach(G=>{h(G.isIntersecting)})},{threshold:.5});return w.current&&ae.observe(w.current),()=>{w.current&&ae.unobserve(w.current)}},[]);let k=[{title:"Welcome to ChargeVoix",content:(0,P.jsxs)("div",{className:"space-y-4 text-center",children:[(0,P.jsx)("div",{className:"w-24 h-24 mx-auto bg-gradient-to-br from-green-400 to-blue-500 rounded-full flex items-center justify-center animate-in zoom-in duration-500 shadow-lg",children:(0,P.jsx)(St,{className:"w-12 h-12 text-white"})}),(0,P.jsx)("h2",{className:"text-2xl font-bold text-gray-900 animate-in fade-in slide-in-from-bottom-4 duration-500 delay-100",children:"Welcome to ChargeVoix"}),(0,P.jsx)("p",{className:"text-gray-600 leading-relaxed animate-in fade-in slide-in-from-bottom-4 duration-500 delay-200",children:"Get help at charging stations with voice commands, emergency alerts, and trip tracking - all with seamless connectivity."}),(0,P.jsxs)("div",{className:"grid grid-cols-2 gap-3 pt-4",children:[(0,P.jsxs)("div",{className:"p-3 bg-green-50 rounded-lg animate-in fade-in slide-in-from-left duration-500 delay-300 hover:scale-105 transition-transform",children:[(0,P.jsx)(yn,{className:"w-6 h-6 text-green-600 mx-auto mb-1"}),(0,P.jsx)("p",{className:"text-xs text-gray-700 font-medium",children:"Voice Control"})]}),(0,P.jsxs)("div",{className:"p-3 bg-red-50 rounded-lg animate-in fade-in slide-in-from-right duration-500 delay-300 hover:scale-105 transition-transform",children:[(0,P.jsx)(at,{className:"w-6 h-6 text-red-600 mx-auto mb-1"}),(0,P.jsx)("p",{className:"text-xs text-gray-700 font-medium",children:"Emergency SOS"})]}),(0,P.jsxs)("div",{className:"p-3 bg-blue-50 rounded-lg animate-in fade-in slide-in-from-left duration-500 delay-400 hover:scale-105 transition-transform",children:[(0,P.jsx)(Fl,{className:"w-6 h-6 text-blue-600 mx-auto mb-1"}),(0,P.jsx)("p",{className:"text-xs text-gray-700 font-medium",children:"Trip Tracking"})]}),(0,P.jsxs)("div",{className:"p-3 bg-purple-50 rounded-lg animate-in fade-in slide-in-from-right duration-500 delay-400 hover:scale-105 transition-transform",children:[(0,P.jsx)(Kt,{className:"w-6 h-6 text-purple-600 mx-auto mb-1"}),(0,P.jsx)("p",{className:"text-xs text-gray-700 font-medium",children:"Stay Connected"})]})]})]})}
110,{title:"Choose Your Plan",content:(0,P.jsxs)("div",{className:"space-y-4",children:[(0,P.jsx)("div",{className:"w-20 h-20 mx-auto bg-gradient-to-br from-purple-400 to-pink-500 rounded-full flex items-center justify-center animate-in zoom-in duration-500 shadow-lg",children:(0,P.jsx)(kr,{className:"w-10 h-10 text-white"})}),(0,P.jsx)("h3",{className:"text-xl font-bold text-gray-900 text-center animate-in fade-in slide-in-from-bottom-4 duration-500 delay-100",children:"Choose Your Plan"}),(0,P.jsx)("p",{className:"text-sm text-gray-600 text-center animate-in fade-in slide-in-from-bottom-4 duration-500 delay-200",children:"Start with Free and upgrade anytime"}),(0,P.jsxs)("div",{className:"space-y-3",children:[(0,P.jsxs)("button",{onClick:()=>l("Free"),className:`w-full p-4 rounded-lg border-2 transition-all duration-200 text-left animate-in fade-in slide-in-from-left duration-500 delay-300 ${s==="Free"?"border-green-500 bg-green-50 shadow-lg scale-105":"border-gray-200 bg-white hover:border-green-300 hover:shadow-md"}`,children:[(0,P.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,P.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,P.jsx)(Se,{className:"w-5 h-5 text-green-600"}),(0,P.jsx)("h4",{className:"font-bold text-gray-900",children:"Free"})]}),s==="Free"&&(0,P.jsx)(Gt,{className:"w-5 h-5 text-green-600"})]}),(0,P.jsx)("p",{className:"text-xs text-gray-600 mb-2",children:"Perfect for getting started"}),(0,P.jsxs)("ul",{className:"space-y-1 text-xs text-gray-700",children:[(0,P.jsx)("li",{children:"\u2713 10 calls per month"}),(0,P.jsx)("li",{children:"\u2713 Voice messaging"}),(0,P.jsx)("li",{children:"\u2713 Emergency alerts"}),(0,P.jsx)("li",{children:"\u2713 Basic trip tracking"}),(0,P.jsx)("li",{children:"\u2713 Location sharing"})]})]}),(0,P.jsxs)("button",{onClick:()=>l("Pro"),className:`w-full p-4 rounded-lg border-2 transition-all duration-200 text-left animate-in fade-in slide-in-from-left duration-500 delay-400 ${s==="Pro"?"border-blue-500 bg-blue-50 shadow-lg scale-105":"border-gray-200 bg-white hover:border-blue-300 hover:shadow-md"}`,children:[(0,P.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,P.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,P.jsx)(kr,{className:"w-5 h-5 text-blue-600"}),(0,P.jsx)("h4",{className:"font-bold text-gray-900",children:"Pro"}),(0,P.jsx)("span",{className:"px-2 py-0.5 bg-blue-100 text-blue-700 text-xs rounded-full font-medium",children:"Popular"})]}),s==="Pro"&&(0,P.jsx)(Gt,{className:"w-5 h-5 text-blue-600"})]}),(0,P.jsx)("p",{className:"text-xs text-gray-600 mb-2",children:"For professional drivers"}),(0,P.jsxs)("ul",{className:"space-y-1 text-xs text-gray-700",children:[(0,P.jsxs)("li",{children:["\u2713 ",(0,P.jsx)("span",{className:"font-semibold",children:"Unlimited calls"})]}),(0,P.jsx)("li",{children:"\u2713 Everything in Free"}),(0,P.jsxs)("li",{children:["\u2713 ",(0,P.jsx)("span",{className:"font-semibold",children:"Speech-to-text"})]}),(0,P.jsx)("li",{children:"\u2713 Advanced trip tracking"}),(0,P.jsx)("li",{children:"\u2713 Quick access shortcuts"}),(0,P.jsx)("li",{children:"\u2713 Priority support"})]})]}),(0,P.jsxs)("button",{onClick:()=>l("Enterprise"),className:`w-full p-4 rounded-lg border-2 transition-all duration-200 text-left animate-in fade-in slide-in-from-left duration-500 delay-500 ${s==="Enterprise"?"border-purple-500 bg-purple-50 shadow-lg scale-105":"border-gray-200 bg-white hover:border-purple-300 hover:shadow-md"}`,children:[(0,P.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,P.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,P.jsx)(Ba,{className:"w-5 h-5 text-purple-600"}),(0,P.jsx)("h4",{className:"font-bold text-gray-900",children:"Enterprise"})]}),s==="Enterprise"&&(0,P.jsx)(Gt,{className:"w-5 h-5 text-purple-600"})]}),(0,P.jsx)("p",{className:"text-xs text-gray-600 mb-2",children:"For fleets and companies"}),(0,P.jsxs)("ul",{className:"space-y-1 text-xs text-gray-700",children:[(0,P.jsxs)("li",{children:["\u2713 ",(0,P.jsx)("span",{className:"font-semibold",children:"Unlimited calls"})]}),(0,P.jsx)("li",{children:"\u2713 Everything in Pro"}),(0,P.jsx)("li",{children:"\u2713 Fleet management"}),(0,P.jsx)("li",{children:"\u2713 Custom integrations"}),(0,P.jsx)("li",{children:"\u2713 Dedicated support"}),(0,P.jsx)("li",{children:"\u2713 Analytics dashboard"})]})]})]})]})},{title:"Setup Your Profile",content:(0,P.jsxs)("div",{className:"space-y-4",children:[(0,P.jsx)("div",{className:"w-20 h-20 mx-auto bg-gradient-to-br from-green-400 to-blue-500 rounded-full flex items-center justify-center animate-in zoom-in duration-500 shadow-lg",children:(0,P.jsx)(Gt,{className:"w-10 h-10 text-white"})}),(0,P.jsx)("h3",{className:"text-xl font-bold text-gray-900 text-center animate-in fade-in slide-in-from-bottom-4 duration-500 delay-100",children:"Almost Ready!"}),(0,P.jsx)("p",{className:"text-sm text-gray-600 text-center animate-in fade-in slide-in-from-bottom-4 duration-500 delay-200",children:"Enter your details to personalize your experience"}),(0,P.jsxs)("div",{className:"space-y-3",children:[(0,P.jsxs)("div",{className:"animate-in fade-in slide-in-from-left duration-500 delay-300",children:[(0,P.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Your Name"}),(0,P.jsx)("input",{type:"text",value:a,onChange:ae=>o(ae.target.value),placeholder:"e.g., John Smith",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent text-base transition-all hover:border-gray-400"})]}),(0,P.jsxs)("div",{className:"animate-in fade-in slide-in-from-right duration-500 delay-400",children:[(0,P.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Customer ID"}),(0,P.jsx)("input",{type:"text",value:n,onChange:ae=>i(ae.target.value),placeholder:"e.g., TC001",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent text-base transition-all hover:border-gray-400"}),(0,P.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Your unique identifier for the service"})]}),(0,P.jsx)("div",{className:"p-3 bg-gradient-to-r from-green-50 to-blue-50 border border-green-200 rounded-lg animate-in fade-in slide-in-from-bottom-4 duration-500 delay-500",children:(0,P.jsxs)("div",{className:"flex items-center justify-between",children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("p",{className:"text-xs text-gray-600",children:"Selected Plan"}),(0,P.jsx)("p",{className:"text-sm font-bold text-gray-900",children:s})]}),(0,P.jsx)("button",{onClick:()=>r(1),className:"text-xs text-blue-600 hover:text-blue-700 font-medium",children:"Change"})]})})]}),(0,P.jsx)("div",{className:"p-3 bg-blue-50 border border-blue-200 rounded-lg animate-in fade-in slide-in-from-bottom-4 duration-500 delay-600",children:(0,P.jsx)("p",{className:"text-xs text-blue-800 text-center",children:"You can change these settings anytime in the app"})})]})}],N=k[t],q=t===k.length-1,D=!q||a.trim()!==""&&n.trim()!=="",ee=()=>{q?D&&e({name:a.trim(),customerId:n.trim(),subscriptionTier:s}):(f("forward"),d(!0),setTimeout(()=>{r(t+1),d(!1)},300))},O=()=>{f("backward"),d(!0),setTimeout(()=>{r(t-1),d(!1)},300)},ne=()=>
110{e({name:"Demo User",customerId:"DEMO-001",subscriptionTier:"Free"})};return(0,P.jsxs)("div",{className:"fixed inset-0 z-50 overflow-hidden",children:[(0,P.jsxs)("div",{className:"absolute inset-0 transition-all duration-1000 ease-out",style:{background:`linear-gradient(135deg, 
111            hsl(${140+m}, 70%, 85%) 0%, 
112            hsl(${200+m}, 70%, 85%) 50%, 
113            hsl(${140+m}, 70%, 90%) 100%)`,transform:`scale(${1+m*.001})`},children:[(0,P.jsx)("div",{className:"absolute top-0 left-0 w-96 h-96 rounded-full opacity-30 blur-3xl transition-all duration-1000",style:{background:`radial-gradient(circle, 
114              hsl(${140+m*2}, 80%, 70%) 0%, 
115              transparent 70%)`,transform:`translate(${-50+m}%, ${-50+m*.5}%)`}}),(0,P.jsx)("div",{className:"absolute bottom-0 right-0 w-96 h-96 rounded-full opacity-30 blur-3xl transition-all duration-1000",style:{background:`radial-gradient(circle, 
116              hsl(${200+m*2}, 80%, 70%) 0%, 
117              transparent 70%)`,transform:`translate(${50-m}%, ${50-m*.5}%)`}}),(0,P.jsx)("div",{className:"absolute top-1/2 left-1/2 w-96 h-96 rounded-full opacity-20 blur-3xl transition-all duration-1000",style:{background:`radial-gradient(circle, 
118              hsl(${170+m*1.5}, 80%, 75%) 0%, 
119              transparent 70%)`,transform:`translate(-50%, -50%) scale(${1+m*.01})`}})]}),(0,P.jsx)("div",{className:"relative z-10 flex items-center justify-center min-h-screen p-4 py-8",children:(0,P.jsxs)("div",{className:"w-full max-w-md bg-white/95 backdrop-blur-sm rounded-2xl shadow-2xl overflow-hidden flex flex-col max-h-[90vh]",children:[(0,P.jsx)("div",{className:"h-1 bg-gray-200 flex-shrink-0",children:(0,P.jsx)("div",{className:"h-full bg-gradient-to-r from-green-500 to-blue-500 transition-all duration-500 ease-out",style:{width:`${(t+1)/k.length*100}%`}})}),(0,P.jsx)("div",{className:"p-6 flex-shrink-0",children:(0,P.jsx)("div",{className:"flex justify-center space-x-2 mb-6",children:k.map((ae,M)=>(0,P.jsx)("div",{className:`h-2 rounded-full transition-all duration-500 ease-out ${M===t?"w-8 bg-gradient-to-r from-green-500 to-blue-500 scale-110":M<t?"w-2 bg-green-500":"w-2 bg-gray-300"}`},M))})}),(0,P.jsxs)("div",{ref:y,onScroll:S,className:"px-6 pb-6 overflow-y-auto flex-1 scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent hover:scrollbar-thumb-gray-400 relative",children:[(0,P.jsx)("div",{className:`transition-all duration-300 ease-out ${u?c==="forward"?"opacity-0 -translate-x-8":"opacity-0 translate-x-8":"opacity-100 translate-x-0"}`,children:N.content}),x&&(0,P.jsxs)("div",{className:"sticky bottom-0 left-0 right-0 pointer-events-none animate-in fade-in duration-500",children:[(0,P.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-white/95 via-white/60 to-transparent"}),(0,P.jsx)("div",{className:"absolute bottom-6 left-1/2 transform -translate-x-1/2 pointer-events-auto",children:(0,P.jsxs)("button",{onClick:L,className:"flex flex-col items-center space-y-1 px-5 py-3 bg-gradient-to-r from-green-500 to-blue-500 text-white rounded-full shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 animate-bounce",children:[(0,P.jsx)("span",{className:"text-xs font-semibold",children:"Scroll for more"}),(0,P.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})})]}),!p&&!x&&(0,P.jsx)("div",{className:"fixed bottom-8 left-1/2 transform -translate-x-1/2 z-50 animate-in fade-in slide-in-from-bottom-4 duration-500",children:(0,P.jsxs)("button",{onClick:L,className:"flex items-center space-x-2 px-6 py-3 bg-gradient-to-r from-green-500 to-blue-500 text-white rounded-full shadow-2xl hover:shadow-3xl transition-all duration-300 hover:scale-110 active:scale-95",children:[(0,P.jsx)("span",{className:"text-sm font-semibold",children:"Scroll to see Next"}),(0,P.jsx)(_t,{className:"w-5 h-5"})]})})]}),(0,P.jsxs)("div",{ref:w,className:`p-6 bg-white/80 backdrop-blur-sm border-t border-gray-200 flex-shrink-0 transition-all duration-500 ${p?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:[(0,P.jsxs)("div",{className:"flex space-x-3",children:[t>0&&(0,P.jsx)("button",{onClick:O,className:"px-4 py-3 text-gray-700 hover:bg-gray-200 rounded-lg transition-all duration-200 font-medium hover:scale-105 active:scale-95",children:"Back"}),t===0&&(0,P.jsx)("button",{onClick:ne,className:"px-4 py-3 text-gray-600 hover:bg-gray-200 rounded-lg transition-all duration-200 text-sm hover:scale-105 active:scale-95",children:"Skip"}),(0,P.jsxs)("button",{onClick:ee,disabled:!D,className:`flex-1 flex items-center justify-center space-x-2 px-6 py-3 rounded-lg font-medium transition-all duration-300 ${D?"bg-gradient-to-r from-green-500 to-blue-500 hover:from-green-600 hover:to-blue-600 text-white shadow-lg hover:shadow-xl hover:scale-105 active:scale-95":"bg-gray-300 text-gray-500 cursor-not-allowed"}`,children:[(0,P.jsx)("span",{children:q?"Get Started":"Next"}),(0,P.jsx)(_t,{className:"w-5 h-5"})]})]}),(0,P.jsxs)("p",{className:"text-xs text-gray-500 text-center mt-3",children:["Step ",t+1," of ",k.length]})]})]})})]})},Vk=f_;var gr=E(J()),p_=()=>
119{let[e,t]=(0,Xn.useState)("home"),[r,a]=(0,Xn.useState)(!0),[o,n]=(0,Xn.useState)(!1),[i,s]=(0,Xn.useState)({customerName:"Demo User",customerId:"DEMO-001",subscriptionTier:"Free",sttProvider:"whisper",voiceGender:"male",language:"en",emergencyContacts:[],tripTracking:{enabled:!1,updateInterval:15,notifyContacts:[],autoStart:!1,includeSpeed:!1,includeBattery:!1,includeETA:!1},quickAccessShortcuts:[],callUsage:{totalCalls:0,lastCallDate:void 0,monthlyResetDate:Date.now()}});(0,Xn.useEffect)(()=>{(()=>{try{let f=Q1(),m=Z1();if(!f||!m){n(!0),a(!1);return}m&&s(g=>({...g,...m,quickAccessShortcuts:Array.isArray(m.quickAccessShortcuts)?m.quickAccessShortcuts:[],callUsage:m.callUsage||{totalCalls:0,lastCallDate:void 0,monthlyResetDate:Date.now()}}))}catch(f){console.error("Failed to load settings:",f)}finally{a(!1)}})()},[]);let l=c=>{let f={...i,customerName:c.name,customerId:c.customerId,subscriptionTier:c.subscriptionTier};s(f),Zc(f),J1(),n(!1)},u=c=>{try{s(f=>{let m={...f,...c};if(c.language){if(!["en","es","fr","de","it","pt"].includes(c.language))return console.warn(`Invalid language: ${c.language}, keeping previous language`),f;console.log(`\u2705 Language updated successfully: ${f.language} \u2192 ${c.language}`)}return Zc(m)?console.log("\u2705 Settings saved to localStorage"):console.error("\u274C Failed to save settings to localStorage"),m})}catch(f){console.error("Error updating settings:",f)}},d=c=>{t(c)};return r?(0,gr.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50",children:(0,gr.jsxs)("div",{className:"text-center",children:[(0,gr.jsx)("div",{className:"w-16 h-16 border-4 border-green-500 border-t-transparent rounded-full animate-spin mx-auto mb-4"}),(0,gr.jsx)("p",{className:"text-gray-600",children:"Loading..."})]})}):o?(0,gr.jsx)(Vk,{onComplete:l}):(0,gr.jsxs)(gr.Fragment,{children:[e==="home"&&(0,gr.jsx)(hL,{settings:i,onUpdateSettings:u,onNavigate:d},`home-${i.language}`),e==="help"&&(0,gr.jsx)(ax,{settings:i,type:"help",onNavigate:d},`help-${i.language}`),e==="complaint"&&(0,gr.jsx)(ax,{settings:i,type:"complaint",onNavigate:d},`complaint-${i.language}`)]})},Uk=p_;var ks=E(Y());function rd(e,t){return function(){return e.apply(t,arguments)}}var{toString:m_}=Object.prototype,{getPrototypeOf:nx}=Object,{iterator:jp,toStringTag:Hk}=Symbol,qp=(e=>t=>{let r=m_.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Jr=e=>(e=e.toLowerCase(),t=>qp(t)===e),$p=e=>t=>typeof t===e,{isArray:ys}=Array,xs=$p("undefined");function ad(e){return e!==null&&!xs(e)&&e.constructor!==null&&!xs(e.constructor)&&rr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var jk=Jr("ArrayBuffer");function g_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jk(e.buffer),t}var h_=$p("string"),rr=$p("function"),qk=$p("number"),od=e=>e!==null&&typeof e=="object",v_=e=>e===!0||e===!1,Hp=e=>{if(qp(e)!=="object")return!1;let t=nx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Hk in e)&&!(jp in e)},x_=e=>{if(!od(e)||ad(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},y_=Jr("Date"),w_=Jr("File"),b_=Jr("Blob"),S_=Jr("FileList"),C_=e=>od(e)&&rr(e.pipe),L_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rr(e.append)&&((t=qp(e))==="formdata"||t==="object"&&rr(e.toString)&&e.toString()==="[object FormData]"))},I_=Jr("URLSearchParams"),[k_,N_,E_,P_]=["ReadableStream","Request","Response","Headers"].map(Jr),D_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nd(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),ys(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else{if(ad(e))return;let n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length,s;for(a=0;a<i;a++)s=n[a],t.call(null,e[s],s,e)}}function $k(e,t){if(ad(e))return null;t=t.toLowerCase();let r=Object.keys(e),a=r.length,o;for(;a-- >0;)if(o=r[a],t===o.toLowerCase())return o;return null}var Yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wk=e=>!xs(e)&&e!==Yn;function ox(){let{caseless:e,skipUndefined:t}=Wk(this)&&this||{},r={},a=(o,n)=>{let i=e&&$k(r,n)||n;Hp(r[i])&&Hp(o)?r[i]=ox(r[i],o):Hp(o)?r[i]=ox({},o):ys(o)?r[i]=o.slice():(!t||!xs(o))&&(r[i]=o)};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&nd(arguments[o],a);return r}var R_=(e,t,r,{allOwnKeys:a}={})=>(nd(t,(o,n)=>{r&&rr(o)?e[n]=rd(o,r):e[n]=o},{allOwnKeys:a}),e),A_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),T_=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},M_=(e,t,r,a)=>{let o,n,i,s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),n=o.length;n-- >0;)i=o[n],(!a||a(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&nx(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},O_=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let a=e.indexOf(t,r);return a!==-1&&a===r}
vendor: 5,578 bytes, line 119
119,F_=e=>{if(!e)return null;if(ys(e))return e;let t=e.length;if(!qk(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},B_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&nx(Uint8Array)),__=(e,t)=>{let a=(e&&e[jp]).call(e),o;for(;(o=a.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},V_=(e,t)=>{let r,a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},U_=Jr("HTMLFormElement"),z_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,o){return a.toUpperCase()+o}),zk=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),H_=Jr("RegExp"),Gk=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),a={};nd(r,(o,n)=>{let i;(i=t(o,n,e))!==!1&&(a[n]=i||o)}),Object.defineProperties(e,a)},j_=e=>{Gk(e,(t,r)=>{if(rr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let a=e[r];if(rr(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},q_=(e,t)=>{let r={},a=o=>{o.forEach(n=>{r[n]=!0})};return ys(e)?a(e):a(String(e).split(t)),r},$_=()=>{},W_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function G_(e){return!!(e&&rr(e.append)&&e[Hk]==="FormData"&&e[jp])}var X_=e=>{let t=new Array(10),r=(a,o)=>{if(od(a)){if(t.indexOf(a)>=0)return;if(ad(a))return a;if(!("toJSON"in a)){t[o]=a;let n=ys(a)?[]:{};return nd(a,(i,s)=>{let l=r(i,o+1);!xs(l)&&(n[s]=l)}),t[o]=void 0,n}}return a};return r(e,0)},Y_=Jr("AsyncFunction"),K_=e=>e&&(od(e)||rr(e))&&rr(e.then)&&rr(e.catch),Xk=((e,t)=>e?setImmediate:t?((r,a)=>(Yn.addEventListener("message",({source:o,data:n})=>{o===Yn&&n===r&&a.length&&a.shift()()},!1),o=>{a.push(o),Yn.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",rr(Yn.postMessage)),Q_=typeof queueMicrotask<"u"?queueMicrotask.bind(Yn):typeof process<"u"&&process.nextTick||Xk,J_=e=>e!=null&&rr(e[jp]),C={isArray:ys,isArrayBuffer:jk,isBuffer:ad,isFormData:L_,isArrayBufferView:g_,isString:h_,isNumber:qk,isBoolean:v_,isObject:od,isPlainObject:Hp,isEmptyObject:x_,isReadableStream:k_,isRequest:N_,isResponse:E_,isHeaders:P_,isUndefined:xs,isDate:y_,isFile:w_,isBlob:b_,isRegExp:H_,isFunction:rr,isStream:C_,isURLSearchParams:I_,isTypedArray:B_,isFileList:S_,forEach:nd,merge:ox,extend:R_,trim:D_,stripBOM:A_,inherits:T_,toFlatObject:M_,kindOf:qp,kindOfTest:Jr,endsWith:O_,toArray:F_,forEachEntry:__,matchAll:V_,isHTMLForm:U_,hasOwnProperty:zk,hasOwnProp:zk,reduceDescriptors:Gk,freezeMethods:j_,toObjectSet:q_,toCamelCase:z_,noop:$_,toFiniteNumber:W_,findKey:$k,global:Yn,isContextDefined:Wk,isSpecCompliantForm:G_,toJSONObject:X_,isAsyncFn:Y_,isThenable:K_,setImmediate:Xk,asap:Q_,isIterable:J_};function ws(e,t,r,a,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),o&&(this.response=o,this.status=o.status?o.status:null)}C.inherits(ws,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:C.toJSONObject(this.config),code:this.code,status:this.status}}});var Yk=ws.prototype,Kk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kk[e]={value:e}});Object.defineProperties(ws,Kk);Object.defineProperty(Yk,"isAxiosError",{value:!0});ws.from=(e,t,r,a,o,n)=>{let i=Object.create(Yk);C.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");let s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ws.call(i,s,l,r,a,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",n&&Object.assign(i,n),i};var se=ws;var Wp=null;function ix(e){return C.isPlainObject(e)||C.isArray(e)}function Jk(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function Qk(e,t,r){return e?e.concat(t).map(function(o,n){return o=Jk(o),!r&&n?"["+o+"]":o}).join(r?".":""):t}function Z_(e){return C.isArray(e)&&!e.some(ix)}var eV=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function tV(e,t,r){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new(Wp||FormData),r=C.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,v){return!C.isUndefined(v[x])});let a=r.metaTokens,o=r.visitor||d,n=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(t);if(!C.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(C.isDate(g))return g.toISOString();if(C.isBoolean(g))return g.toString();if(!l&&C.isBlob(g))throw new se("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(g)||C.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,x,v){let p=g;if(g&&!v&&typeof g=="object"){if(C.endsWith(x,"{}"))x=a?x:x.slice(0,-2),g=JSON.stringify(g);else if(C.isArray(g)&&Z_(g)||(C.isFileList(g)||C.endsWith(x,"[]"))&&(p=C.toArray(g)))return x=Jk(x),p.forEach(function(y,w){!(C.isUndefined(y)||y===null)&&t.append(i===!0?Qk([x],w,n):i===null?x:x+"[]",u(y))}),!1}return ix(g)?!0:(t.append(Qk(v,x,n),u(g)),!1)}let c=[],f=Object.assign(eV,{defaultVisitor:d,convertValue:u,isVisitable:ix});function m(g,x){if(!C.isUndefined(g)){if(c.indexOf(g)!==-1)throw Error("Circular reference detected in "+x.join("."));
vendor: 2,993 bytes, line 119
119c.push(g),C.forEach(g,function(p,h){(!(C.isUndefined(p)||p===null)&&o.call(t,p,C.isString(h)?h.trim():h,x,f))===!0&&m(p,x?x.concat(h):[h])}),c.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return m(e),t}var $o=tV;function Zk(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function eN(e,t){this._pairs=[],e&&$o(e,this,t)}var tN=eN.prototype;tN.append=function(t,r){this._pairs.push([t,r])};tN.toString=function(t){let r=t?function(a){return t.call(this,a,Zk)}:Zk;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var Gp=eN;function rV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function id(e,t,r){if(!t)return e;let a=r&&r.encode||rV;C.isFunction(r)&&(r={serialize:r});let o=r&&r.serialize,n;if(o?n=o(t,r):n=C.isURLSearchParams(t)?t.toString():new Gp(t,r).toString(a),n){let i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}var sx=class{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){C.forEach(this.handlers,function(a){a!==null&&t(a)})}},lx=sx;var Xp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var rN=typeof URLSearchParams<"u"?URLSearchParams:Gp;var aN=typeof FormData<"u"?FormData:null;var oN=typeof Blob<"u"?Blob:null;var nN={isBrowser:!0,classes:{URLSearchParams:rN,FormData:aN,Blob:oN},protocols:["http","https","file","blob","url","data"]};var cx={};sE(cx,{hasBrowserEnv:()=>dx,hasStandardBrowserEnv:()=>aV,hasStandardBrowserWebWorkerEnv:()=>oV,navigator:()=>ux,origin:()=>nV});var dx=typeof window<"u"&&typeof document<"u",ux=typeof navigator=="object"&&navigator||void 0,aV=dx&&(!ux||["ReactNative","NativeScript","NS"].indexOf(ux.product)<0),oV=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nV=dx&&window.location.href||"http://localhost";var qe={...cx,...nN};function fx(e,t){return $o(e,new qe.classes.URLSearchParams,{visitor:function(r,a,o,n){return qe.isNode&&C.isBuffer(r)?(this.append(a,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}function iV(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sV(e){let t={},r=Object.keys(e),a,o=r.length,n;for(a=0;a<o;a++)n=r[a],t[n]=e[n];return t}function lV(e){function t(r,a,o,n){let i=r[n++];if(i==="__proto__")return!0;let s=Number.isFinite(+i),l=n>=r.length;return i=!i&&C.isArray(o)?o.length:i,l?(C.hasOwnProp(o,i)?o[i]=[o[i],a]:o[i]=a,!s):((!o[i]||!C.isObject(o[i]))&&(o[i]=[]),t(r,a,o[i],n)&&C.isArray(o[i])&&(o[i]=sV(o[i])),!s)}if(C.isFormData(e)&&C.isFunction(e.entries)){let r={};
vendor: 4,495 bytes, lines 119-120
119return C.forEachEntry(e,(a,o)=>{t(iV(a),o,r,0)}),r}return null}var Yp=lV;function uV(e,t,r){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}var px={transitional:Xp,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let a=r.getContentType()||"",o=a.indexOf("application/json")>-1,n=C.isObject(t);if(n&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return o?JSON.stringify(Yp(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t)||C.isReadableStream(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(n){if(a.indexOf("application/x-www-form-urlencoded")>-1)return fx(t,this.formSerializer).toString();if((s=C.isFileList(t))||a.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return $o(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return n||o?(r.setContentType("application/json",!1),uV(t)):t}],transformResponse:[function(t){let r=this.transitional||px.transitional,a=r&&r.forcedJSONParsing,o=this.responseType==="json";if(C.isResponse(t)||C.isReadableStream(t))return t;if(t&&C.isString(t)&&(a&&!this.responseType||o)){let i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{px.headers[e]={}});var bs=px;var dV=C.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iN=e=>{let t={},r,a,o;return e&&e.split(`
120`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),a=i.substring(o+1).trim(),!(!r||t[r]&&dV[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t};var sN=Symbol("internals");function sd(e){return e&&String(e).trim().toLowerCase()}function Kp(e){return e===!1||e==null?e:C.isArray(e)?e.map(Kp):String(e)}function cV(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}var fV=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mx(e,t,r,a,o){if(C.isFunction(a))return a.call(this,t,r);if(o&&(t=r),!!C.isString(t)){if(C.isString(a))return t.indexOf(a)!==-1;if(C.isRegExp(a))return a.test(t)}}function pV(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function mV(e,t){let r=C.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(o,n,i){return this[a].call(this,t,o,n,i)},configurable:!0})})}var Ss=class{constructor(t){t&&this.set(t)}set(t,r,a){let o=this;function n(s,l,u){let d=sd(l);if(!d)throw new Error("header name must be a non-empty string");let c=C.findKey(o,d);(!c||o[c]===void 0||u===!0||u===void 0&&o[c]!==!1)&&(o[c||l]=Kp(s))}let i=(s,l)=>C.forEach(s,(u,d)=>n(u,d,l));if(C.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(C.isString(t)&&(t=t.trim())&&!fV(t))i(iN(t),r);else if(C.isObject(t)&&C.isIterable(t)){let s={},l,u;for(let d of t){if(!C.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(l=s[u])?C.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}i(s,r)}else t!=null&&n(r,t,a);return this}get(t,r){if(t=sd(t),t){let a=C.findKey(this,t);if(a){let o=this[a];if(!r)return o;if(r===!0)return cV(o);if(C.isFunction(r))return r.call(this,o,a);if(C.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=sd(t),t){let a=C.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||mx(this,this[a],a,r)))}return!1}delete(t,r){let a=this,o=!1;function n(i){if(i=sd(i),i){let s=C.findKey(a,i);s&&(!r||mx(a,a[s],s,r))&&(delete a[s],o=!0)}}return C.isArray(t)?t.forEach(n):n(t),o}clear(t){let r=Object.keys(this),a=r.length,o=!1;for(;a--;){let n=r[a];(!t||mx(this,this[n],n,t,!0))&&(delete this[n],o=!0)}return o}normalize(t){let r=this,a={};
vendor: 4,667 bytes, lines 120-121
120return C.forEach(this,(o,n)=>{let i=C.findKey(a,n);if(i){r[i]=Kp(o),delete r[n];return}let s=t?pV(n):String(n).trim();s!==n&&delete r[n],r[s]=Kp(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return C.forEach(this,(a,o)=>{a!=null&&a!==!1&&(r[o]=t&&C.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
121`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let a=new this(t);return r.forEach(o=>a.set(o)),a}static accessor(t){let a=(this[sN]=this[sN]={accessors:{}}).accessors,o=this.prototype;function n(i){let s=sd(i);a[s]||(mV(o,i),a[s]=!0)}return C.isArray(t)?t.forEach(n):n(t),this}};Ss.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(Ss.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});C.freezeMethods(Ss);var ut=Ss;function ld(e,t){let r=this||bs,a=t||r,o=ut.from(a.headers),n=a.data;return C.forEach(e,function(s){n=s.call(r,n,o.normalize(),t?t.status:void 0)}),o.normalize(),n}function ud(e){return!!(e&&e.__CANCEL__)}function lN(e,t,r){se.call(this,e??"canceled",se.ERR_CANCELED,t,r),this.name="CanceledError"}C.inherits(lN,se,{__CANCEL__:!0});var Ca=lN;function dd(e,t,r){let a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function gx(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gV(e,t){e=e||10;let r=new Array(e),a=new Array(e),o=0,n=0,i;return t=t!==void 0?t:1e3,function(l){let u=Date.now(),d=a[n];i||(i=u),r[o]=l,a[o]=u;let c=n,f=0;for(;c!==o;)f+=r[c++],c=c%e;if(o=(o+1)%e,o===n&&(n=(n+1)%e),u-i<t)return;let m=d&&u-d;return m?Math.round(f*1e3/m):void 0}}var uN=gV;function hV(e,t){let r=0,a=1e3/t,o,n,i=(u,d=Date.now())=>{r=d,o=null,n&&(clearTimeout(n),n=null),e(...u)};return[(...u)=>{let d=Date.now(),c=d-r;c>=a?i(u,d):(o=u,n||(n=setTimeout(()=>{n=null,i(o)},a-c)))},()=>o&&i(o)]}var dN=hV;var Cs=(e,t,r=3)=>{let a=0,o=uN(50,250);return dN(n=>{let i=n.loaded,s=n.lengthComputable?n.total:void 0,l=i-a,u=o(l),d=i<=s;a=i;let c={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-i)/u:void 0,event:n,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},hx=(e,t)=>{let r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},vx=e=>(...t)=>C.asap(()=>e(...t));var cN=qe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,qe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(qe.origin),qe.navigator&&/(msie|trident)/i.test(qe.navigator.userAgent)):()=>!0;var fN=qe.hasStandardBrowserEnv?{write(e,t,r,a,o,n){let i=[e+"="+encodeURIComponent(t)];C.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),C.isString(a)&&i.push("path="+a),C.isString(o)&&i.push("domain="+o),n===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function xx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cd(e,t,r){let a=!xx(t);return e&&(a||r==!1)?yx(e,t):t}var pN=e=>e instanceof ut?{...e}:e;function Zr(e,t){t=t||{};let r={};function a(u,d,c,f){return C.isPlainObject(u)&&C.isPlainObject(d)?C.merge.call({caseless:f},u,d):C.isPlainObject(d)?C.merge({},d):C.isArray(d)?d.slice():d}function o(u,d,c,f){if(C.isUndefined(d)){if(!C.isUndefined(u))return a(void 0,u,c,f)}else return a(u,d,c,f)}function n(u,d){if(!C.isUndefined(d))return a(void 0,d)}function i(u,d){if(C.isUndefined(d)){if(!C.isUndefined(u))return a(void 0,u)}else return a(void 0,d)}function s(u,d,c){if(c in t)return a(u,d);if(c in e)return a(void 0,u)}let l={url:n,method:n,data:n,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,d,c)=>o(pN(u),pN(d),c,!0)};
vendor: 10,351 bytes, lines 121-124
121return C.forEach(Object.keys({...e,...t}),function(d){let c=l[d]||o,f=c(e[d],t[d],d);C.isUndefined(f)&&c!==s||(r[d]=f)}),r}var Qp=e=>{let t=Zr({},e),{data:r,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:n,headers:i,auth:s}=t;if(t.headers=i=ut.from(i),t.url=id(cd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),C.isFormData(r)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(C.isFunction(r.getHeaders)){let l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([d,c])=>{u.includes(d.toLowerCase())&&i.set(d,c)})}}if(qe.hasStandardBrowserEnv&&(a&&C.isFunction(a)&&(a=a(t)),a||a!==!1&&cN(t.url))){let l=o&&n&&fN.read(n);l&&i.set(o,l)}return t};var vV=typeof XMLHttpRequest<"u",mN=vV&&function(e){return new Promise(function(r,a){let o=Qp(e),n=o.data,i=ut.from(o.headers).normalize(),{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,d,c,f,m,g;function x(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function p(){if(!v)return;let y=ut.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};dd(function(k){r(k),x()},function(k){a(k),x()},S),v=null}"onloadend"in v?v.onloadend=p:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(p)},v.onabort=function(){v&&(a(new se("Request aborted",se.ECONNABORTED,e,v)),v=null)},v.onerror=function(w){let S=w&&w.message?w.message:"Network Error",L=new se(S,se.ERR_NETWORK,e,v);L.event=w||null,a(L),v=null},v.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",S=o.transitional||Xp;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),a(new se(w,S.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,v)),v=null},n===void 0&&i.setContentType(null),"setRequestHeader"in v&&C.forEach(i.toJSON(),function(w,S){v.setRequestHeader(S,w)}),C.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),u&&([f,g]=Cs(u,!0),v.addEventListener("progress",f)),l&&v.upload&&([c,m]=Cs(l),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(d=y=>{v&&(a(!y||y.type?new Ca(null,e,v):y),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));let h=gx(o.url);if(h&&qe.protocols.indexOf(h)===-1){a(new se("Unsupported protocol "+h+":",se.ERR_BAD_REQUEST,e));return}v.send(n||null)})};var xV=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,o,n=function(u){if(!o){o=!0,s();let d=u instanceof Error?u:this.reason;a.abort(d instanceof se?d:new Ca(d instanceof Error?d.message:d))}},i=t&&setTimeout(()=>{i=null,n(new se(`timeout ${t} of ms exceeded`,se.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(n):u.removeEventListener("abort",n)}),e=null)};e.forEach(u=>u.addEventListener("abort",n));let{signal:l}=a;return l.unsubscribe=()=>C.asap(s),l}},gN=xV;var yV=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,o;for(;a<r;)o=a+t,yield e.slice(a,o),a=o},wV=async function*(e,t){for await(let r of bV(e))yield*yV(r,t)},bV=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},wx=(e,t,r,a)=>{let o=wV(e,t),n=0,i,s=l=>{i||(i=!0,a&&a(l))};return new ReadableStream({async pull(l){try{let{done:u,value:d}=await o.next();if(u){s(),l.close();return}let c=d.byteLength;if(r){let f=n+=c;r(f)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})};var hN=64*1024,{isFunction:Jp}=C,SV=(({Request:e,Response:t})=>({Request:e,Response:t}))(C.global),{ReadableStream:vN,TextEncoder:xN}=C.global,yN=(e,...t)=>{try{return!!e(...t)}catch{return!1}},CV=e=>{e=C.merge.call({skipUndefined:!0},SV,e);let{fetch:t,Request:r,Response:a}=e,o=t?Jp(t):typeof fetch=="function",n=Jp(r),i=Jp(a);if(!o)return!1;let s=o&&Jp(vN),l=o&&(typeof xN=="function"?(g=>x=>g.encode(x))(new xN):async g=>new Uint8Array(await new r(g).arrayBuffer())),u=n&&s&&yN(()=>{let g=!1,x=new r(qe.origin,{body:new vN,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!x}),d=i&&s&&yN(()=>C.isReadableStream(new a("").body)),c={stream:d&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!c[g]&&(c[g]=(x,v)=>{let p=x&&x[g];if(p)return p.call(x);throw new se(`Response type '${g}' is not supported`,se.ERR_NOT_SUPPORT,v)})});let f=async g=>{if(g==null)return 0;if(C.isBlob(g))return g.size;if(C.isSpecCompliantForm(g))return(await new r(qe.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(C.isArrayBufferView(g)||C.isArrayBuffer(g))return g.byteLength;if(C.isURLSearchParams(g)&&(g=g+""),C.isString(g))return(await l(g)).byteLength},m=async(g,x)=>{let v=C.toFiniteNumber(g.getContentLength());return v??f(x)};return async g=>{let{url:x,method:v,data:p,signal:h,cancelToken:y,timeout:w,onDownloadProgress:S,onUploadProgress:L,responseType:k,headers:N,withCredentials:q="same-origin",fetchOptions:D}=Qp(g),ee=t||fetch;k=k?(k+"").toLowerCase():"text";let O=gN([h,y&&y.toAbortSignal()],w),ne=null,ae=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),M;try{if(L&&u&&v!=="get"&&v!=="head"&&(M=await m(N,p))!==0){let ge=new r(x,{method:"POST",body:p,duplex:"half"}),_e;if(C.isFormData(p)&&(_e=ge.headers.get("content-type"))&&N.setContentType(_e),ge.body){let[ea,Ko]=hx(M,Cs(vx(L)));p=wx(ge.body,hN,ea,Ko)}}C.isString(q)||(q=q?"include":"omit");let G=n&&"credentials"in r.prototype,U={...D,signal:O,method:v.toUpperCase(),headers:N.normalize().toJSON(),body:p,duplex:"half",credentials:G?q:void 0};ne=n&&new r(x,U);let j=await(n?ee(ne,D):ee(x,U)),ue=d&&(k==="stream"||k==="response");if(d&&(S||ue&&ae)){let ge={};["status","statusText","headers"].forEach(Qn=>{ge[Qn]=j[Qn]});let _e=C.toFiniteNumber(j.headers.get("content-length")),[ea,Ko]=S&&hx(_e,Cs(vx(S),!0))||[];j=new a(wx(j.body,hN,ea,()=>{Ko&&Ko(),ae&&ae()}),ge)}k=k||"text";let me=await c[C.findKey(c,k)||"text"](j,g);return!ue&&ae&&ae(),await new Promise((ge,_e)=>{dd(ge,_e,{data:me,headers:ut.from(j.headers),status:j.status,statusText:j.statusText,config:g,request:ne})})}catch(G){throw ae&&ae(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,g,ne),{cause:G.cause||G}):se.from(G,G&&G.code,g,ne)}}},LV=new Map,bx=e=>{let t=e?e.env:{},{fetch:r,Request:a,Response:o}=t,n=[a,o,r],i=n.length,s=i,l,u,d=LV;for(;s--;)l=n[s],u=d.get(l),u===void 0&&d.set(l,u=s?new Map:CV(t)),d=u;return u},bie=bx();var Sx={http:Wp,xhr:mN,fetch:{get:bx}};C.forEach(Sx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var wN=e=>`- ${e}`,kV=e=>C.isFunction(e)||e===null||e===!1,Zp={getAdapter:(e,t)=>{e=C.isArray(e)?e:[e];let{length:r}=e,a,o,n={};for(let i=0;i<r;i++){a=e[i];let s;if(o=a,!kV(a)&&(o=Sx[(s=String(a)).toLowerCase()],o===void 0))throw new se(`Unknown adapter '${s}'`);if(o&&(C.isFunction(o)||(o=o.get(t))))break;n[s||"#"+i]=o}if(!o){let i=Object.entries(n).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),s=r?i.length>1?`since :
122`+i.map(wN).join(`
123`):" "+wN(i[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:Sx};function Cx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ca(null,e)}function em(e){return Cx(e),e.headers=ut.from(e.headers),e.data=ld.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||bs.adapter,e)(e).then(function(a){return Cx(e),a.data=ld.call(e,e.transformResponse,a),a.headers=ut.from(a.headers),a},function(a){return ud(a)||(Cx(e),a&&a.response&&(a.response.data=ld.call(e,e.transformResponse,a.response),a.response.headers=ut.from(a.response.headers))),Promise.reject(a)})}var tm="1.12.2";var rm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rm[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var bN={};rm.transitional=function(t,r,a){function o(n,i){return"[Axios v"+tm+"] Transitional option '"+n+"'"+i+(a?". "+a:"")}return(n,i,s)=>{if(t===!1)throw new se(o(i," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!bN[i]&&(bN[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(n,i,s):!0}};rm.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function NV(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);let a=Object.keys(e),o=a.length;for(;o-- >0;){let n=a[o],i=t[n];if(i){let s=e[n],l=s===void 0||i(s,n,e);if(l!==!0)throw new se("option "+n+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+n,se.ERR_BAD_OPTION)}}var fd={assertOptions:NV,validators:rm};var La=fd.validators,Ls=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lx,response:new lx}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;let n=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?n&&!String(a.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(a.stack+=`
124`+n):a.stack=n}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Zr(this.defaults,r);let{transitional:a,paramsSerializer:o,headers:n}=r;a!==void 0&&fd.assertOptions(a,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean)}
vendor: 2,989 bytes, line 124
124,!1),o!=null&&(C.isFunction(o)?r.paramsSerializer={serialize:o}:fd.assertOptions(o,{encode:La.function,serialize:La.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),fd.assertOptions(r,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=n&&C.merge(n.common,n[r.method]);n&&C.forEach(["delete","get","head","post","put","patch","common"],g=>{delete n[g]}),r.headers=ut.concat(i,n);let s=[],l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});let u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let d,c=0,f;if(!l){let g=[em.bind(this),void 0];for(g.unshift(...s),g.push(...u),f=g.length,d=Promise.resolve(r);c<f;)d=d.then(g[c++],g[c++]);return d}f=s.length;let m=r;for(;c<f;){let g=s[c++],x=s[c++];try{m=g(m)}catch(v){x.call(this,v);break}}try{d=em.call(this,m)}catch(g){return Promise.reject(g)}for(c=0,f=u.length;c<f;)d=d.then(u[c++],u[c++]);return d}getUri(t){t=Zr(this.defaults,t);let r=cd(t.baseURL,t.url,t.allowAbsoluteUrls);return id(r,t.params,t.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(t){Ls.prototype[t]=function(r,a){return this.request(Zr(a||{},{method:t,url:r,data:(a||{}).data}))}});C.forEach(["post","put","patch"],function(t){function r(a){return function(n,i,s){return this.request(Zr(s||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ls.prototype[t]=r(),Ls.prototype[t+"Form"]=r(!0)});var pd=Ls;var Lx=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});let a=this;this.promise.then(o=>{if(!a._listeners)return;let n=a._listeners.length;for(;n-- >0;)a._listeners[n](o);a._listeners=null}),this.promise.then=o=>{let n,i=new Promise(s=>{a.subscribe(s),n=s}).then(o);return i.cancel=function(){a.unsubscribe(n)},i},t(function(n,i,s){a.reason||(a.reason=new Ca(n,i,s),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},SN=Lx;function Ix(e){return function(r){return e.apply(null,r)}}function kx(e){return C.isObject(e)&&e.isAxiosError===!0}var Nx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
124alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nx).forEach(([e,t])=>{Nx[t]=e});var CN=Nx;function LN(e){let t=new pd(e),r=rd(pd.prototype.request,t);return C.extend(r,pd.prototype,t,{allOwnKeys:!0}),C.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return LN(Zr(e,o))},r}var et=LN(bs);et.Axios=pd;et.CanceledError=Ca;et.CancelToken=SN;et.isCancel=ud;et.VERSION=tm;et.toFormData=$o;et.AxiosError=se;et.Cancel=et.CanceledError;et.all=function(t){return Promise.all(t)};et.spread=Ix;et.isAxiosError=kx;et.mergeConfig=Zr;et.AxiosHeaders=ut;et.formToJSON=e=>Yp(C.isHTMLForm(e)?new FormData(e):e);et.getAdapter=Zp.getAdapter;et.HttpStatusCode=CN;et.default=et;var Kn=et;var{Axios:xse,AxiosError:yse,CanceledError:wse,isCancel:bse,CancelToken:Sse,VERSION:Cse,all:Lse,Cancel:Ise,isAxiosError:kse,spread:Nse,toFormData:Ese,AxiosHeaders:Pse,HttpStatusCode:Dse,formToJSON:Rse,getAdapter:Ase,mergeConfig:Tse}=Kn;var vt=Kn.create({baseURL:"/api/taskade",timeout:1e4,headers:{"Content-Type":"application/json"}});vt.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):e.request?console.error("Network Error:",e.message):console.error("Error:",e.message),Promise.reject(e)));var Is={getCustomers:()=>vt.get("/projects/j7oicRwzVPrccoZk/nodes"),createCustomer:e=>vt.post("/projects/j7oicRwzVPrccoZk/nodes",e),updateCustomer:(e,t)=>vt.patch(`/projects/j7oicRwzVPrccoZk/nodes/${e}`,t),getSubscriptions:()=>vt.get("/projects/HAmF3Z4hJHVRqHUK/nodes"),createSubscription:e=>vt.post("/projects/HAmF3Z4hJHVRqHUK/nodes",e),updateSubscription:(e,t)=>vt.patch(`/projects/HAmF3Z4hJHVRqHUK/nodes/${e}`,t),getPayments:()=>vt.get("/projects/VXp4YkQJsPa4aBr3/nodes"),createPayment:e=>vt.post("/projects/VXp4YkQJsPa4aBr3/nodes",e),updatePayment:(e,t)=>vt.patch(`/projects/VXp4YkQJsPa4aBr3/nodes/${e}`,t),getPlans:()=>vt.get("/projects/krKd2geZtEKSaQm8/nodes"),createPlan:e=>vt.post("/projects/krKd2geZtEKSaQm8/nodes",e),updatePlan:(e,t)=>vt.patch(`/projects/krKd2geZtEKSaQm8/nodes/${e}`,t),getProducts:()=>vt.get("/projects/ePpHhKpG6Xjzs8tC/nodes"),createProduct:e=>vt.post("/projects/ePpHhKpG6Xjzs8tC/nodes",e),updateProduct:(e,t)=>vt.patch(`/projects/ePpHhKpG6Xjzs8tC/nodes/${e}`,t),getConfig:()=>vt.get("/projects/FxAPkEfCPfCqbi62/nodes"),updateConfig:(e,t)=>vt.patch(`/projects/FxAPkEfCPfCqbi62/nodes/${e}`,t)};var md=(e,t="An error occurred")=>Kn.isAxiosError(e)?{success:!1,message:e.response?.data?.message||e.message||t}:{success:!1,message:t};var de=E(J()),EV=()=>{let[e,t]=(0,ks.useState)({totalCustomers:0,activeSubscriptions:0,monthlyRevenue:0,recentPayments:0}),[r,a]=(0,ks.useState)(!0),[o,n]=(0,ks.useState)(null);(0,ks.useEffect)(()=>{i()},[]);let i=async()=>{try{n(null);let[l,u,d]=await Promise.all([Is.getCustomerData(),Is.getActiveSubscriptions(),Is.getPaymentHistory()]),c=l.data.payload?.nodes||[],f=u.data.payload?.nodes||[],m=d.data.payload?.nodes||[],g=f.filter(p=>p.fieldValues["/attributes/@stat1"]==="active"),x=g.reduce((p,h)=>p+(h.fieldValues["/attributes/@amnt2"]||0),0),v=m.filter(p=>{let h=new Date(p.fieldValues["/attributes/@date1"]),y=new Date;return y.setDate(y.getDate()-30),h>=y}).length;t({totalCustomers:c.length,activeSubscriptions:g.length,monthlyRevenue:x,recentPayments:v})}catch(l){let u=md(l,"Failed to load dashboard data");n(u.message),console.error("Failed to load dashboard data:",l)}finally{a(!1)}},s=[{title:"Total Customers",value:e.totalCustomers,icon:Kt,color:"blue",bgColor:"bg-blue-100",textColor:"text-blue-600"},{title:"Active Subscriptions",value:e.activeSubscriptions,icon:pa,color:"green",bgColor:"bg-green-100",textColor:"text-green-600"},{title:"Monthly Revenue",value:`$${e.monthlyRevenue.toFixed(2)}`,icon:Dl,color:"purple",bgColor:"bg-purple-100",textColor:"text-purple-600"},{title:"Recent Payments",value:e.recentPayments,icon:Ua,color:"indigo",bgColor:"bg-indigo-100",textColor:"text-indigo-600"}];return r?(0,de.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50",children:(0,de.jsxs)("div",{className:"text-center",children:[(0,de.jsx)("div",{className:"w-16 h-16 border-4 border-blue-500 border-t-transparent roun
124ded-full animate-spin mx-auto mb-4"}),(0,de.jsx)("p",{className:"text-gray-600",children:"Loading dashboard..."})]})}):(0,de.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 p-8",children:(0,de.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,de.jsxs)("div",{className:"mb-8 flex items-center justify-between",children:[(0,de.jsxs)("div",{children:[(0,de.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Billing Dashboard"}),(0,de.jsx)("p",{className:"text-gray-600",children:"Manage subscriptions and payments"})]}),(0,de.jsxs)(_h,{to:"/",className:"flex items-center space-x-2 px-4 py-2 bg-white rounded-lg border-2 border-gray-200 hover:border-blue-500 transition-all",children:[(0,de.jsx)(Lo,{className:"w-5 h-5 text-gray-600"}),(0,de.jsx)("span",{className:"text-gray-700",children:"Home"})]})]}),o&&(0,de.jsxs)("div",{className:"mb-6 bg-red-50 border-2 border-red-200 rounded-xl p-4 flex items-start space-x-3",children:[(0,de.jsx)(Dt,{className:"w-6 h-6 text-red-600 flex-shrink-0 mt-0.5"}),(0,de.jsxs)("div",{className:"flex-1",children:[(0,de.jsx)("h3",{className:"font-semibold text-red-900 mb-1",children:"Error Loading Data"}),(0,de.jsx)("p",{className:"text-red-700 text-sm",children:o}),(0,de.jsx)("button",{onClick:i,className:"mt-3 text-sm font-medium text-red-600 hover:text-red-700 underline",children:"Try Again"})]})]}),(0,de.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:s.map((l,u)=>{let d=l.icon;return(0,de.jsxs)("div",{className:"bg-white rounded-xl border-2 border-gray-200 p-6 hover:shadow-lg transition-all",children:[(0,de.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,de.jsx)("div",{className:`w-12 h-12 rounded-full ${l.bgColor} flex items-center justify-center`,children:(0,de.jsx)(d,{className:`w-6 h-6 ${l.textColor}`})})}),(0,de.jsx)("h3",{className:"text-gray-600 text-sm font-medium mb-1",children:l.title}),(0,de.jsx)("p",{className:"text-3xl font-bold text-gray-900",children:l.value})]},u)})}),(0,de.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,de.jsxs)(_h,{to:"/subscribe",className:"bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl p-8 text-white hover:shadow-2xl transition-all group",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,de.jsx)(pa,{className:"w-12 h-12"}),(0,de.jsx)(ca,{className:"w-6 h-6 group-hover:translate-x-2 transition-transform"})]}),(0,de.jsx)("h3",{className:"text-2xl font-bold mb-2",children:"Subscribe to a Plan"}),(0,de.jsx)("p",{className:"text-blue-100",children:"Choose from our flexible subscription options"})]}),(0,de.jsxs)("div",{className:"bg-gradient-to-br from-purple-500 to-pink-600 rounded-xl p-8 text-white hover:shadow-2xl transition-all",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,de.jsx)(Kt,{className:"w-12 h-12"}),(0,de.jsx)("span",{className:"text-sm bg-white/20 px-3 py-1 rounded-full",children:"Coming Soon"})]}),(0,de.jsx)("h3",{className:"text-2xl font-bold mb-2",children:"Manage Customers"}),(0,de.jsx)("p",{className:"text-purple-100",children:"View and manage customer accounts"})]})]})]})})},IN=EV;var Wo=E(Y());var am=E(Y());var $=E(J()),PV=({planName:e,planAmount:t,planInterval:r,stripePriceId:a,userEmail:o,onBack:n,onSubmit:i})=>{let[s,l]=(0,am.useState)({fullName:"",email:o,phoneNumber:""}),[u,d]=(0,am.useState)({}),[c,f]=(0,am.useState)(!1),m=v=>/^\+?[1-9]\d{1,14}$/.test(v.replace(/[\s-]/g,"")),g=()=>{let v={};return s.fullName.trim()||(v.fullName="Full name is required"),s.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email)||(v.email="Invalid email format"):v.email="Email is required",s.phoneNumber.trim()?m(s.phoneNumber)||(v.phoneNumber="Invalid phone number format"):v.phoneNumber="Phone number is required",d(v),Object.keys(v).length===0};return(0,$.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,$.jsxs)("div",{className:"mb-8",children:[(0,$.jsxs)("button",{onClick:n,className:"flex items-center space-x-2 text-gray-600 hover:text-gray-900 mb-4 transition-colors",children:[(0,$.jsx)(Fa,{className:"w-5 h-5"}),(0,$.jsx)("span",{children:"Back to plans"})]}),(0,$.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Complete Your Subscription"}),(0,$.jsxs)("p",{className:"text-gray-600",children:["Enter your details to continue with ",e]})]}),(0,$.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,$.jsx)("div",{className:"lg:col-span-2",children:(0,$.jsxs)("form",{onSubmit:async v=>{if(v.preventDefault(),!!g()){f(!0);try{await i({fullName:s.fullName,email:s.email,phoneNumber:s.phoneNumber,stripePriceId:a,planName:e,amount:t})}catch(p){console.error("Checkout error:",p)}finally{f(!1)}}},className:"bg-white rounded-xl border-2 border-gray-200 p-6 space-y-6",children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("label",{htmlFor:"fullName",className:"block text-sm font-medium text-gray-700 mb-2",children:"Full Name *"}),(0,$.jsxs)("div",{className:"relative",children:[(0,$.jsx)(Wr,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,$.jsx)("input",{type:"text",id:"fullName",value:s.fullName,onChange:v=>l({...s,fullName:v.target.value}),className:`w-full pl-10 pr-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all ${u.fullName?"border-red-500":"border-gray-300"}`,placeholder:"John Doe"})]}),u.fullName&&(0,$.jsx)("p",{className:"mt-1 text-sm text-red-600",children:u.fullName})]}),(0,$.jsxs)("div",{children:[(0,$.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Address *"}),(0,$.jsxs)("div",{className:"relative",children:[(0,$.jsx)(Ol,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,$.jsx)("input",{type:"email",id:"email",value:s.email,onChange:v=>l({...s,email:v.target.value}),className:`w-full pl-10 pr-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all ${u.email?"border-red-500":"border-gray-300"}`,placeholder:"[email protected]"})]}),u.email&&(0,$.jsx)("p",{className:"mt-1 text-sm text-red-600",children:u.email})]}),(0,$.jsxs)("div",{children:[(0,$.jsx)("label",{htmlFor:"phoneNumber",className:"block text-sm font-medium text-gray-700 mb-2",children:"Phone Number *"}),(0,$.jsxs)("div",{className:"relative",children:[(0,$.jsx)(St,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),(0,$.jsx)("input",{type:"tel",id:"phoneNumber",value:s.phoneNumber,onChange:v=>l({...s,phoneNumber:v.target.value}),className:`w-full pl-10 pr-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all ${u.phoneNumber?"border-red-500":"border-gray-300"}`,placeholder:"+1 (555) 123-4567"})]}),u.phoneNumber&&(0,$.jsx)("p",{className:"mt-1 text-sm text-red-600",children:u.phoneNumber}),(0,$.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"We'll send a verification code to this number"})]}),(0,$.jsxs)("div",{className:"flex items-start space-x-3 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,$.jsx)(bn,{className:"w-5 h-5 text-blue-600 flex-shrink-0 mt-0.5"}),(0,$.jsxs)("div",{className:"text-sm text-blue-800",children:[(0,$.jsx)("p",{className:"font-medium mb-1",children:"Secure Payment"}),(0,$.jsx)("p",{children:"Your payment information is encrypted and secure. We use Stripe for payment processing."})]})]}
124),(0,$.jsx)("button",{type:"submit",disabled:c,className:"w-full py-4 bg-gradient-to-r from-blue-500 to-indigo-600 text-white font-medium rounded-lg hover:from-blue-600 hover:to-indigo-700 transition-all shadow-lg hover:shadow-xl disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center space-x-2",children:c?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Xt,{className:"w-5 h-5 animate-spin"}),(0,$.jsx)("span",{children:"Processing..."})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(pa,{className:"w-5 h-5"}),(0,$.jsx)("span",{children:"Continue to Payment"})]})})]})}),(0,$.jsx)("div",{className:"lg:col-span-1",children:(0,$.jsxs)("div",{className:"bg-white rounded-xl border-2 border-gray-200 p-6 sticky top-4",children:[(0,$.jsx)("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Order Summary"}),(0,$.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("p",{className:"text-sm text-gray-600",children:"Plan"}),(0,$.jsx)("p",{className:"text-lg font-semibold text-gray-900",children:e})]}),(0,$.jsxs)("div",{className:"border-t border-gray-200 pt-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,$.jsx)("span",{className:"text-gray-600",children:"Subtotal"}),(0,$.jsxs)("span",{className:"font-medium text-gray-900",children:["$",t.toFixed(2)]})]}),(0,$.jsxs)("div",{className:"flex justify-between items-center text-sm text-gray-500",children:[(0,$.jsx)("span",{children:"Billing"}),(0,$.jsx)("span",{children:r==="yearly"?"Yearly":"Monthly"})]})]}),(0,$.jsxs)("div",{className:"border-t border-gray-200 pt-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center",children:[(0,$.jsx)("span",{className:"text-lg font-bold text-gray-900",children:"Total"}),(0,$.jsxs)("span",{className:"text-2xl font-bold text-gray-900",children:["$",t.toFixed(2)]})]}),(0,$.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:["Billed ",r==="yearly"?"annually":"monthly"]})]})]}),(0,$.jsxs)("div",{className:"space-y-2 text-xs text-gray-600",children:[(0,$.jsx)("p",{children:"\u2713 Cancel anytime"}),(0,$.jsx)("p",{children:"\u2713 Secure payment processing"}),(0,$.jsx)("p",{children:"\u2713 Instant access after payment"}),(0,$.jsx)("p",{children:"\u2713 24/7 customer support"})]})]})})]})]})},kN=PV;var DV="FxAPkEfCPfCqbi62",gd=null,NN=0,RV=5*60*1e3,AV=async()=>{let e=Date.now();if(gd&&e-NN<RV)return gd;try{let t=await Kn.get(`/api/taskade/projects/${DV}/nodes`);if(t.data.ok&&t.data.payload.nodes){let r={};return t.data.payload.nodes.forEach(a=>{let o=a.fieldValues["/attributes/@key"],n=a.fieldValues["/attributes/@value"];o&&n&&(r[o]=n)}),gd=r,NN=e,r}throw new Error("Failed to fetch configuration")}catch(t){if(console.error("Error fetching environment config:",t),gd)return console.warn("Using expired cache due to fetch error"),gd;throw t}},TV=async e=>{try{return(await AV())[e]||null}catch(t){return console.error(`Error getting config value for ${e}:`,t),null}},EN=async e=>{let r={free:"STRIPE_PAYMENT_LINK_FREE",pro:"STRIPE_PAYMENT_LINK_PRO",custom:"STRIPE_PAYMENT_LINK_CUSTOM"}[e];return r?await TV(r):(console.error(`Invalid plan: ${e}`),null)};var xe=E(J());var MV=()=>{let[e,t]=(0,Wo.useState)(null),[r,a]=(0,Wo.useState)([]),[o,n]=(0,Wo.useState)(!0),[i,s]=(0,Wo.useState)(null),[l,u]=(0,Wo.useState)("[email protected]");(0,Wo.useEffect)(()=>{d()},[]);let d=async()=>{try{s(null);let g=new Date().getTime(),x=await Is.getPlans();if(x.data.ok&&x.data.payload.nodes){let v=x.data.payload.nodes.filter(p=>p.fieldValues["/attributes/@actv1"]==="active").map(p=>({id:p.id,name:p.fieldValues["/attributes/@plan1"]||"Unknown Plan",price:p.fieldValues["/attributes/@amnt1"]||0,interval:p.fieldValues["/attributes/@intv1"]==="yearly"?"yearly":"monthly",stripePriceId:p.fieldValues["/attributes/@pric1"]||"",features:(p.fieldValues["/attributes/@feat1"]||"").split(`
125`).filter(Boolean),icon:(p.fieldValues["/attributes/@plan1"]||"").includes("Starter")?Se:(p.fieldValues["/attributes/@plan1"]||"").includes("Premium")?kr:Ba,color:(p.fieldValues["/attributes/@plan1"]||"").includes("Starter")?"blue":(p.fieldValues["/attributes/@plan1"]||"").includes("Premium")?"purple":"indigo",bgClass:(p.fieldValues["/attributes/@plan1"]||"").includes("Starter")?"bg-blue-100":(p.fieldValues["/attributes/@plan1"]||"").includes("Premium")?"bg-purple-100":"bg-indigo-100",textClass:(p.fieldValues["/attributes/@plan1"]||"").includes("Starter")?"text-blue-600":(p.fieldValues["/attributes/@plan1"]||"").includes("Premium")?"text-purple-600":"text-indigo-600",buttonClass:(p.fieldValues["/attributes/@plan1"]||"").includes("Starter")?"bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700":(p.fieldValues["/attributes/@plan1"]||"").includes("Premium")?"bg-gradient-to-r from-purple-500 to-purple-600 hover:from-purple-600 hover:to-purple-700":"bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700"}));a(v)}}catch(g){let x=md(g,"Failed to load subscription plans");s(x.message),console.error("Failed to load plans:",g)}finally{n(!1)}},c=g=>{t(g)},f=()=>{t(null)},m=async g=>{try{let x="pro";g.planName.toLowerCase().includes("free")?x="free":(g.planName.toLowerCase().includes("custom")||g.planName.toLowerCase().includes("enterprise"))&&(x="custom");let v=await EN(x);if(!v||v==="N/A"){alert(`\u26A0\uFE0F This plan does not require payment or is not configured yet!
126
127For Free plan: No payment needed
128For paid plans: Please configure Payment Links in Environment Configuration project`);return}if(v.includes("PASTE_YOUR_")){alert(`\u26A0\uFE0F Payment link not configured yet!
129
130Please:
1311. Go to Stripe Dashboard (https://dashboard.stripe.com/test/payment-links)
1322. Create a Payment Link for this plan
1333. Copy the Payment Link URL
1344. Update the Environment Configuration project with the URL`);return}let p=new URL(v);p.searchParams.append("prefilled_email",g.email),p.searchParams.append("client_reference_id",g.email),window.location.href=p.toString()}catch(x){let v=md(x,"Failed to create checkout session");alert(v.message),console.error("Checkout failed:",x)}};return o?(0,xe.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50",children:(0,xe.jsx)(Xt,{className:"w-8 h-8 animate-spin text-blue-600"})}):i?(0,xe.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 p-4",children:(0,xe.jsxs)("div",{className:"max-w-md w-full bg-white rounded-2xl shadow-xl p-8 text-center",children:[(0,xe.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,xe.jsx)(Dt,{className:"w-8 h-8 text-red-600"})}),(0,xe.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Unable to Load Plans"}),(0,xe.jsx)("p",{className:"text-gray-600 mb-6",children:i}),(0,xe.jsx)("button",{onClick:()=>{s(null),n(!0),d()},className:"w-full bg-gradient-to-r from-blue-500 to-indigo-600 text-white py-3 px-6 rounded-lg font-semibold hover:from-blue-600 hover:to-indigo-700 transition-all shadow-lg hover:shadow-xl",children:"Try Again"})]})}):e?(0,xe.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 py-12 px-4",children:(0,xe.jsx)(kN,{planName:e.n
134ame,planAmount:e.price,planInterval:e.interval,stripePriceId:e.stripePriceId,userEmail:l,onBack:f,onSubmit:m})}):(0,xe.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 py-12 px-4",children:(0,xe.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,xe.jsxs)("div",{className:"text-center mb-12",children:[(0,xe.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Choose Your Plan"}),(0,xe.jsx)("p",{className:"text-xl text-gray-600",children:"Select the perfect plan for your needs"})]}),(0,xe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:r.map(g=>{let x=g.icon;return(0,xe.jsxs)("div",{className:"bg-white rounded-2xl border-2 border-gray-200 hover:border-blue-500 transition-all shadow-lg hover:shadow-xl p-8 flex flex-col",children:[(0,xe.jsx)("div",{className:`w-16 h-16 rounded-full ${g.bgClass} flex items-center justify-center mb-6`,children:(0,xe.jsx)(x,{className:`w-8 h-8 ${g.textClass}`})}),(0,xe.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:g.name}),(0,xe.jsxs)("div",{className:"mb-6",children:[(0,xe.jsxs)("span",{className:"text-4xl font-bold text-gray-900",children:["$",g.price]}),(0,xe.jsxs)("span",{className:"text-gray-600",children:["/",g.interval==="yearly"?"year":"month"]})]}),(0,xe.jsx)("ul",{className:"space-y-3 mb-8 flex-grow",children:g.features.map((v,p)=>(0,xe.jsxs)("li",{className:"flex items-start space-x-3",children:[(0,xe.jsx)(Gt,{className:"w-5 h-5 text-green-600 flex-shrink-0 mt-0.5"}),(0,xe.jsx)("span",{className:"text-gray-700",children:v})]},p))}),(0,xe.jsx)("button",{onClick:()=>c(g),className:`w-full py-3 px-6 rounded-lg font-semibold transition-all ${g.buttonClass} text-white shadow-lg hover:shadow-xl`,children:"Continue"})]},g.id)})}),(0,xe.jsx)("div",{className:"text-center mt-12",children:(0,xe.jsxs)("a",{href:"/",className:"inline-flex items-center space-x-2 text-gray-600 hover:text-gray-900 transition-colors",children:[(0,xe.jsx)(Fa,{className:"w-5 h-5"}),(0,xe.jsx)("span",{children:"Back to Dashboard"})]})})]})})},PN=MV;var om=E(Y());var ie=E(J()),OV=()=>{let e=So(),[t,r]=(0,om.useState)(5);return(0,om.useEffect)(()=>{let a=setInterval(()=>{r(o=>o<=1?(clearInterval(a),e("/"),0):o-1)},1e3);return()=>clearInterval(a)},[e]),(0,ie.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-green-50 via-emerald-50 to-teal-50 flex items-center justify-center p-4",children:(0,ie.jsxs)("div",{className:"max-w-2xl w-full",children:[(0,ie.jsxs)("div",{className:"bg-white rounded-3xl shadow-2xl p-8 md:p-12 text-center",children:[(0,ie.jsxs)("div",{className:"relative inline-block mb-6",children:[(0,ie.jsx)("div",{className:"absolute inset-0 bg-green-400 rounded-full blur-2xl opacity-30 animate-pulse"}),(0,ie.jsx)("div",{className:"relative w-24 h-24 bg-gradient-to-br from-green-400 to-emerald-500 rounded-full flex items-center justify-center mx-auto",children:(0,ie.jsx)(Vt,{className:"w-12 h-12 text-white",strokeWidth:2.5})})]}),(0,ie.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-4",children:"Payment Successful! \u{1F389}"}),(0,ie.jsx)("p",{className:"text-xl text-gray-600 mb-8",children:"Thank you for subscribing! Your payment has been processed successfully."}),(0,ie.jsx)("div",{className:"bg-gradient-to-br from-green-50 to-emerald-50 rounded-2xl p-6 mb-8 border border-green-200",children:(0,ie.jsxs)("div",{className:"space-y-3 text-left",children:[(0,ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ie.jsx)("span",{className:"text-gray-600",children:"Status"}),(0,ie.jsxs)("span",{className:"font-semibold text-green-600 flex items-center",children:[(0,ie.jsx)(Vt,{className:"w-4 h-4 mr-2"}),"Confirmed"]})]}),(0,ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ie.jsx)("span",{className:"text-gray-600",children:"Subscription"}),(0,ie.jsx)("span",{className:"font-semibold text-gray-900",children:"Active"})]}),(0,ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ie.jsx)("span",{className:"text-gray-600",children:"Access"}),(0,ie.jsx)("span",{className:"font-semibold text-gray-900",children:"Immediate"})]})]})}),(0,ie.jsxs)("div",{className:"bg-blue-50 rounded-2xl p-6 mb-8 text-left border border-blue-200",children:[(0,ie.jsxs)("h3",{className:"font-bold text-gray-900 mb-3 flex items-center",children:[(0,ie.jsx)("span",{className:"w-6 h-6 bg-blue-500 text-white rounded-full flex items-center justify-center text-sm mr-2",children:"\u2713"}),"What's Next?"]}),(0,ie.jsxs)("ul",{className:"space-y-2 text-gray-700",children:[(0,ie.jsxs)("li",{className:"flex items-start",children:[(0,ie.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,ie.jsx)("span",{children:"A confirmation email has been sent to your inbox"})]}),(0,ie.jsxs)("li",{className:"flex items-start",children:[(0,ie.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,ie.jsx)("span",{children:"Your subscription is now active and ready to use"})]}),(0,ie.jsxs)("li",{className:"flex items-start",children:[(0,ie.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,ie.jsx)("span",{children:"Access all premium features from your dashboard"})]})]})]}),(0,ie.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(0,ie.jsxs)("button",{onClick:()=>e("/"),className:"flex items-center justify-center space-x-2 bg-gradient-to-r from-blue-500 to-indigo-600 text-white px-8 py-4 rounded-xl font-semibold hover:from-blue-600 hover:to-indigo-700 transition-all shadow-lg hover:shadow-xl",children:[(0,ie.jsx)("span",{children:"Go to Dashboard"}),(0,ie.jsx)(ca,{className:"w-5 h-5"})]}),(0,ie.jsx)("button",{onClick:()=>e("/billing"),className:"flex items-center justify-center space-x-2 bg-white text-gray-700 px-8 py-4 rounded-xl font-semibold hover:bg-gray-50 transition-all border-2 border-gray-200 hover:border-gray-300",children:(0,ie.jsx)("span",{children:"View Billing"})})]}),(0,ie.jsxs)("div",{className:"mt-8 flex items-center justify-center space-x-2 text-gray-500",children:[(0,ie.jsx)(Xt,{className:"w-4 h-4 animate-spin"}),(0,ie.jsxs)("span",{className:"text-sm",children:["Redirecting to dashboard in ",t," seconds..."]})]})]}),(0,ie.jsx)("div",{className:"text-center mt-6",children:(0,ie.jsxs)("p",{className:"text-gray-600",children:["Need help?"," ",(0,ie.jsx)("a",{href:"/support",className:"text-blue-600 hover:text-blue-700 font-semibold",children:"Contact Support"})]})})]})})},DN=OV;var sle=E(Y());var oe=E(J()),FV=()=>{let e=So();return(0,oe.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-orange-50 via-amber-50 to-yellow-50 flex items-center justify-center p-4",children:(0,oe.jsxs)("div",{className:"max-w-2xl w-full",children:[(0,oe.jsxs)("div",{className:"bg-white rounded-3xl shadow-2xl p-8 md:p-12 text-center",children:[(0,oe.jsxs)("div",{className:"relative inline-block mb-6",children:[(0,oe.jsx)("div",{className:"absolute inset-0 bg-orange-400 rounded-full blur-2xl opacity-20"}),(0,oe.jsx)("div",{className:"relative w-24 h-24 bg-gradient-to-br from-orange-400 to-amber-500 rounded-full flex items-center justify-center mx-auto",children:(0,oe.jsx)(fa,{className:"w-12 h-12 text-white",strokeWidth:2.5})})]}),(0,oe.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-4",children:"Checkout Cancelled"}),(0,oe.jsx)("p",{className:"text-xl text-gray-600 mb-8",children:"No worries! Your payment was not processed and you haven't been charged."}),(0,oe.jsxs)("div",{className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-6 mb-8 border border-blue-200 text-left",children:[(0,oe.jsxs)("h3",{className:"font-bold text-gray-900 mb-3 flex items-center",children:[(0,oe.jsx)(bt,{className:"w-5 h-5 mr-2 text-blue-600"}),"What Happened?"]}),(0,oe.jsx)("p",{className:"text-gray-700 mb-4",children:"You cancelled the checkout process before completing your payment. This is completely normal and happens for various reasons:"}),(0,oe.jsxs)("ul",{className:"space-y-2 text-gray-700",children:[(0,oe.jsxs)("li",{className:"flex items-start",children:[(0,oe.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,oe.jsx)("span",{children:"Changed your mind about the plan"})]}),(0,oe.jsxs)("li",{className:"flex items-start",children:[(0,oe.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,oe.jsx)("span",{children:"Want to review features before subscribing"})]}),(0,oe.jsxs)("li",{className:"flex items-start",children:[(0,oe.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,oe.jsx)("span",{children:"Need to check with your team first"})]}),(0,oe.jsxs)("li",{className:"flex items-start",children:[(0,oe.jsx)("span",{className:"text-blue-500 mr-2",children:"\u2022"}),(0,oe.jsx)("span",{children:"Encountered a technical issue"})]})]})]}),(0,oe.jsx)("div",{className:"bg-green-50 rounded-2xl p-6 mb-8 border border-green-200",children:(0,oe.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,oe.jsx)("div",{className:"w-6 h-6 bg-green-500 text-white rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:"\u2713"}),(0,oe.jsxs)("div",{className:"text-left",children:[(0,oe.jsx)("h4",{className:"font-semibold text-gray-900 mb-1",children:"No Charges Applied"}),(0,oe.jsx)("p",{className:"text-gray-700 text-sm",children:"Your payment method was not charged. You can try again anytime or explore our free features."})]})]})}),(0,oe.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-6",children:[(0,oe.jsxs)("button",{onClick:()=>e("/subscription"),className:"flex items-center justify-center space-x-2 bg-gradient-to-r from-blue-500 to-indigo-600 text-white px-8 py-4 rounded-xl font-semibold hover:from-blue-600 hover:to-indigo-700 transition-all shadow-lg hover:shadow-xl",children:[(0,oe.jsx)(wn,{className:"w-5 h-5"}),(0,oe.jsx)("span",{children:"Try Again"})]}),(0,oe.jsxs)("button",{onClick:()=>e("/"),className:"flex items-center justify-center space-x-2 bg-white text-gray-700 px-8 py-4 rounded-xl font-semibold hover:bg-gray-50 transition-all border-2 border-gray-200 hover:border-gray-300",children:[(0,oe.jsx)(Fa,{className:"w-5 h-5"}),(0,oe.jsx)("span",{children:"Back to Dashboard"})]})]}),(0,oe.jsxs)("div",{className:"border-t border-gray-200 pt-6",children:[(0,oe.jsx)("p",{className:"text-gray-600 mb-4",children:"Not ready to subscribe yet?"}),(0,oe.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center text-sm",children:[(0,oe.jsx)("a",{href:"/features",className:"text-blue-600 hover:text-blue-700 font-semibold hover:underline",children:"Explore Features"}),(0,oe.jsx)("span",{className:"hidden sm:inline text-gray-400",children:"\u2022"}),(0,oe.jsx)("a",{href:"/pricing",className:"text-blue-600 hover:text-blue-700 font-semibold hover:underline",children:"Compare Plans"}),(0,oe.jsx)("span",{className:"hidden sm:inline text-gray-400",children:"\u2022"}),(0,oe.jsx)("a",{href:"/contact",className:"text-blue-600 hover:text-blue-700 font-semibold hover:underline",children:"Contact Sales"})]})]})]}),(0,oe.jsx)("div",{className:"text-center mt-6",children:(0,oe.jsxs)("p",{className:"text-gray-600",children:["Have questions?"," ",(0,oe.jsx)("a",{href:"/support",className:"text-blue-600 hover:text-blue-700 font-semibold",children:"We're here to help"})]})})]})})},RN=FV;var Yo=E(Y());function AN(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;
vendor: 5,288 bytes, line 134
134t++)e[t]&&(r=AN(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function TN(){for(var e,t,r=0,a="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=AN(e))&&(a&&(a+=" "),a+=t);return a}var Dx="-",BV=e=>{let t=VV(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split(Dx);return s[0]===""&&s.length!==1&&s.shift(),FN(s,t)||_V(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},FN=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),o=a?FN(e.slice(1),a):void 0;if(o)return o;if(t.validators.length===0)return;let n=e.join(Dx);return t.validators.find(({validator:i})=>i(n))?.classGroupId},MN=/^\[(.+)\]$/,_V=e=>{if(MN.test(e)){let t=MN.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},VV=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return zV(Object.entries(e.classGroups),r).forEach(([n,i])=>{Px(i,a,n,t)}),a},Px=(e,t,r,a)=>{e.forEach(o=>{if(typeof o=="string"){let n=o===""?t:ON(t,o);n.classGroupId=r;return}if(typeof o=="function"){if(UV(o)){Px(o(a),t,r,a);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([n,i])=>{Px(i,ON(t,n),r,a)})})},ON=(e,t)=>{let r=e;return t.split(Dx).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},UV=e=>e.isThemeGetter,zV=(e,t)=>t?e.map(([r,a])=>{let o=a.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,o]}):e,HV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,o=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=a.get(n))!==void 0)return o(n,i),i},set(n,i){r.has(n)?r.set(n,i):o(n,i)}}},BN="!",jV=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,o=t[0],n=t.length,i=s=>{let l=[],u=0,d=0,c;for(let v=0;v<s.length;v++){let p=s[v];if(u===0){if(p===o&&(a||s.slice(v,v+n)===t)){l.push(s.slice(d,v)),d=v+n;continue}if(p==="/"){c=v;continue}}p==="["?u++:p==="]"&&u--}let f=l.length===0?s:s.substring(d),m=f.startsWith(BN),g=m?f.substring(1):f,x=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:x}};return r?s=>r({className:s,parseClassName:i}):i},qV=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},$V=e=>({cache:HV(e.cacheSize),parseClassName:jV(e),...BV(e)}),WV=/\s+/,GV=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o}=t,n=[],i=e.trim().split(WV),s="";for(let l=i.length-1;l>=0;l-=1){let u=i[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:m}=r(u),g=!!m,x=a(g?f.substring(0,m):f);if(!x){if(!g){s=u+(s.length>0?" "+s:s);continue}if(x=a(f),!x){s=u+(s.length>0?" "+s:s);continue}g=!1}let v=qV(d).join(":"),p=c?v+BN:v,h=p+x;if(n.includes(h))continue;n.push(h);let y=o(x,g);for(let w=0;w<y.length;++w){let S=y[w];n.push(p+S)}s=u+(s.length>0?" "+s:s)}return s};function XV(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_N(t))&&(a&&(a+=" "),a+=r);return a}var _N=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=_N(e[a]))&&(r&&(r+=" "),r+=t);return r};function YV(e,...t){let r,a,o,n=i;function i(l){let u=t.reduce((d,c)=>c(d),e());return r=$V(u),a=r.cache.get,o=r.cache.set,n=s,s(l)}function s(l){let u=a(l);if(u)return u;let d=GV(l,r);return o(l,d),d}return function(){return n(XV.apply(null,arguments))}}var Me=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},VN=/^\[(?:([a-z-]+):)?(.+)\]$/i,KV=/^\d+\/\d+$/,QV=new Set(["px","full","screen"]),JV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZV=/\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$/,eU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Za=e=>Ns(e)||QV.has(e)||KV.test(e),Go=e=>Es(e,"length",dU),Ns=e=>!!e&&!Number.isNaN(Number(e)),Ex=e=>Es(e,"number",Ns),hd=e=>!!e&&Number.isInteger(Number(e)),aU=e=>e.endsWith("%")&&Ns(e.slice(0,-1)),ce=e=>VN.test(e),Xo=e=>JV.test(e),oU=new Set(["length","size","percentage"]),nU=e=>Es(e,oU,UN),iU=e=>Es(e,"position",UN),sU=new Set(["image","url"]),lU=e=>Es(e,sU,fU),uU=e=>Es(e,"",cU),vd=()=>!0,Es=(e,t,r)=>{let a=VN.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},dU=e=>ZV.test(e)&&!eU.test(e),UN=()=>!1,cU=e=>tU.test(e),fU=e=>rU.test(e);var pU=()=>{let e=Me("colors"),t=Me("spacing"),r=Me("blur"),a=Me("brightness"),o=Me("borderColor"),n=Me("borderRadius"),i=Me("borderSpacing"),s=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),c=Me("invert"),f=Me("gap"),m=Me("gradientColorStops"),g=Me("gradientColorStopPositions"),x=Me("inset"),v=Me("margin"),p=Me("opacity"),h=Me("padding"),y=Me("saturate"),w=Me("scale"),S=Me("sepia"),L=Me("skew"),k=Me("space"),N=Me("translate"),q=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",ce,t],O=()=>
vendor: 11,950 bytes, line 134
134[ce,t],ne=()=>["",Za,Go],ae=()=>["auto",Ns,ce],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["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"],j=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",ce],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[Ns,ce];return{cacheSize:500,separator:":",theme:{colors:[vd],spacing:[Za,Go],blur:["none","",Xo,ce],brightness:ge(),borderColor:[e],borderRadius:["none","","full",Xo,ce],borderSpacing:O(),borderWidth:ne(),contrast:ge(),grayscale:ue(),hueRotate:ge(),invert:ue(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[aU,Go],inset:ee(),margin:ee(),opacity:ge(),padding:O(),saturate:ge(),scale:ge(),sepia:ue(),skew:ge(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Xo]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:[...M(),ce]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hd,ce]}],basis:[{basis:ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",hd,ce]}],"grid-cols":[{"grid-cols":[vd]}],"col-start-end":[{col:["auto",{span:["full",hd,ce]},ce]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[vd]}],"row-start-end":[{row:["auto",{span:[hd,ce]},ce]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[Xo]},Xo]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xo,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ex]}],"font-family":[{font:[vd]}],"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",ce]}],"line-clamp":[{"line-clamp":["none",Ns,Ex]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Za,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Za,Go]}],"underline-offset":[{"underline-offset":["auto",Za,ce]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],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",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),iU]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nU]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lU]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:G()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[Za,ce]}],"outline-w":[{outline:[Za,Go]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Za,Go]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xo,uU]}],"shadow-color":[{shadow:[vd]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xo,ce]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"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",ce]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[hd,ce]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
134],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Za,Go,Ex]}],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"]}}};var zN=YV(pU);function Ps(...e){return zN(TN(e))}var R=E(J());function Rx(){let[e,t]=(0,Yo.useState)([]),[r,a]=(0,Yo.useState)({total_calls:0,active_calls:0,ended_calls:0}),[o,n]=(0,Yo.useState)(null),[i,s]=(0,Yo.useState)(!0),[l,u]=(0,Yo.useState)("http://localhost:8000");(0,Yo.useEffect)(()=>{d();let g=setInterval(d,3e3);return()=>clearInterval(g)},[l]);let d=async()=>{try{let[g,x]=await Promise.all([fetch(`${l}/api/voice/calls`),fetch(`${l}/api/voice/stats`)]);if(g.ok&&x.ok){let v=await g.json(),p=await x.json();t(v.calls||[]),a(p)}}catch(g){console.error("Error fetching data:",g)}finally{s(!1)}},c=async g=>{try{await fetch(`${l}/api/voice/calls/${g}/hangup`,{method:"POST"}),d()}catch(x){console.error("Error hanging up call:",x)}},f=g=>{let x=new Date(g),p=Math.floor((new Date().getTime()-x.getTime())/1e3),h=Math.floor(p/60),y=p%60;return`${h}:${y.toString().padStart(2,"0")}`},m=g=>{let v=g.replace(/\D/g,"").match(/^(\d{1})(\d{3})(\d{3})(\d{4})$/);return v?`+${v[1]} (${v[2]}) ${v[3]}-${v[4]}`:g};return(0,R.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950",children:[(0,R.jsx)("div",{className:"border-b border-white/10 bg-black/20 backdrop-blur-xl",children:(0,R.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-6",children:(0,R.jsxs)("div",{className:"flex items-center justify-between",children:[(0,R.jsxs)("div",{className:"flex items-center gap-4",children:[(0,R.jsx)("div",{className:"p-3 rounded-2xl bg-gradient-to-br from-cyan-500/20 to-blue-500/20 border border-cyan-500/30",children:(0,R.jsx)(St,{className:"w-6 h-6 text-cyan-400"})}),(0,R.jsxs)("div",{children:[(0,R.jsx)("h1",{className:"text-2xl font-bold text-white",children:"Voice Calls"}),(0,R.jsx)("p",{className:"text-sm text-slate-400",children:"Monitor AI voice interactions"})]})]}),(0,R.jsxs)("div",{className:"flex items-center gap-3",children:[(0,R.jsx)("input",{type:"text",value:l,onCh
134ange:g=>u(g.target.value),placeholder:"Backend URL",className:"px-4 py-2 rounded-xl bg-white/5 border border-white/10 text-white text-sm focus:outline-none focus:border-cyan-500/50"}),(0,R.jsxs)("div",{className:Ps("flex items-center gap-2 px-3 py-2 rounded-xl text-sm",i?"bg-amber-500/10 text-amber-400":"bg-emerald-500/10 text-emerald-400"),children:[(0,R.jsx)(hn,{className:"w-4 h-4"}),i?"Connecting...":"Connected"]})]})]})})}),(0,R.jsxs)("div",{className:"max-w-7xl mx-auto px-6 py-8",children:[(0,R.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[(0,R.jsxs)(ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"p-6 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 backdrop-blur-xl",children:[(0,R.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,R.jsx)("div",{className:"p-3 rounded-xl bg-cyan-500/10",children:(0,R.jsx)(Io,{className:"w-5 h-5 text-cyan-400"})}),(0,R.jsx)(Ua,{className:"w-5 h-5 text-emerald-400"})]}),(0,R.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:r.total_calls}),(0,R.jsx)("div",{className:"text-sm text-slate-400",children:"Total Calls"})]}),(0,R.jsxs)(ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"p-6 rounded-2xl bg-gradient-to-br from-emerald-500/10 to-emerald-500/5 border border-emerald-500/20 backdrop-blur-xl",children:[(0,R.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,R.jsx)("div",{className:"p-3 rounded-xl bg-emerald-500/20",children:(0,R.jsx)(hn,{className:"w-5 h-5 text-emerald-400"})}),(0,R.jsx)("div",{className:"flex items-center gap-1",children:(0,R.jsx)("div",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"})})]}),(0,R.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:r.active_calls}),(0,R.jsx)("div",{className:"text-sm text-slate-400",children:"Active Now"})]}),(0,R.jsxs)(ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"p-6 rounded-2xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 backdrop-blur-xl",children:[(0,R.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,R.jsx)("div",{className:"p-3 rounded-xl bg-slate-500/10",children:(0,R.jsx)(ko,{className:"w-5 h-5 text-slate-400"})}),(0,R.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})]}),(0,R.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:r.ended_calls}),(0,R.jsx)("div",{className:"text-sm text-slate-400",children:"Completed"})]})]}),(0,R.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,R.jsxs)("div",{children:[(0,R.jsxs)("h2",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,R.jsx)(hn,{className:"w-5 h-5 text-emerald-400"}),"Active Calls"]}),(0,R.jsx)("div",{className:"space-y-3",children:(0,R.jsx)(Xu,{mode:"popLayout",children:e.filter(g=>g.status==="active").length===0?(0,R.jsxs)(ht.div,{initial:{opacity:0}
134,animate:{opacity:1},exit:{opacity:0},className:"p-8 rounded-2xl bg-white/5 border border-white/10 text-center",children:[(0,R.jsx)(ko,{className:"w-12 h-12 text-slate-600 mx-auto mb-3"}),(0,R.jsx)("p",{className:"text-slate-400",children:"No active calls"})]}):e.filter(g=>g.status==="active").map(g=>(0,R.jsxs)(ht.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},onClick:()=>n(g),className:"p-4 rounded-2xl bg-gradient-to-br from-emerald-500/10 to-emerald-500/5 border border-emerald-500/20 backdrop-blur-xl cursor-pointer hover:border-emerald-500/40 transition-all",children:[(0,R.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,R.jsxs)("div",{className:"flex items-center gap-3",children:[(0,R.jsx)("div",{className:"p-2 rounded-xl bg-emerald-500/20",children:(0,R.jsx)(Bl,{className:"w-4 h-4 text-emerald-400"})}),(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:"text-white font-medium",children:m(g.from_number)}),(0,R.jsx)("div",{className:"text-xs text-slate-400",children:m(g.to_number)})]})]}),(0,R.jsx)("button",{onClick:x=>{x.stopPropagation(),c(g.call_control_id)},className:"p-2 rounded-xl bg-red-500/10 hover:bg-red-500/20 border border-red-500/20 hover:border-red-500/40 transition-all",children:(0,R.jsx)(ko,{className:"w-4 h-4 text-red-400"})})]}),(0,R.jsxs)("div",{className:"flex items-center gap-4 text-sm",children:[(0,R.jsxs)("div",{className:"flex items-center gap-1.5 text-slate-400",children:[(0,R.jsx)(xn,{className:"w-4 h-4"}),f(g.started_at)]}),(0,R.jsxs)("div",{className:"flex items-center gap-1.5 text-slate-400",children:[(0,R.jsx)(ha,{className:"w-4 h-4"}),g.conversation_history.length," messages"]})]}),(0,R.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,R.jsx)("div",{className:"flex-1 h-1 bg-white/10 rounded-full overflow-hidden",children:(0,R.jsx)(ht.div,{className:"h-full bg-gradient-to-r from-emerald-500 to-cyan-500",initial:{width:0},animate:{width:"100%"},transition:{duration:2,repeat:1/0}})}),(0,R.jsx)(yn,{className:"w-4 h-4 text-emerald-400 animate-pulse"})]})]},g.call_control_id))})})]}),(0,R.jsxs)("div",{children:[(0,R.jsxs)("h2",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,R.jsx)(ha,{className:"w-5 h-5 text-cyan-400"}),o?"Conversation":"Recent Calls"]}),o?(0,R.jsxs)(ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"p-6 rounded-2xl bg-white/5 border border-white/10 backdrop-blur-xl",children:[(0,R.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:"text-white font-medium mb-1",children:m(o.from_number)}),(0,R.jsxs)("div",{className:"text-sm text-slate-400",children:["Started ",new Date(o.started_at).toLocaleTimeString()]})]}),(0,R.jsx)("button",{onClick:()=>n(null),className:"p-2 rounded-xl bg-white/5 hover:bg-white/10 transition-all",children:(0,R.jsx)(fa,{className:"w-5 h-5 text-slate-400"})})]}),(0,R.jsx)("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:o.conversation_history.map((g,x)=>(0,R.jsxs)(ht.div,{initial:{opacity:0,x:g.role==="user"?-20:20},animate:{opacity:1,x:0},transition:{delay:x*.1},className:Ps("flex gap-3",g.role==="assistant"&&"flex-row-reverse"),children:[(0,R.jsx)("div",{className:Ps("p-2 rounded-xl",g.role==="user"?"bg-cyan-500/10":"bg-purple-500/10"),children:g.role==="user"?(0,R.jsx)(Wr,{className:"w-4 h-4 text-cyan-400"}):(0,R.jsx)(ql,{className:"w-4 h-4 text-purple-400"})}),(0,R.jsxs)("div",{className:"flex-1",children:[(0,R.jsx)("div",{className:Ps("p-3 rounded-2xl text-sm",g.role==="user"?"bg-cyan-500/10 text-cyan-100":"bg-purple-500/10 text-purple-100"),children:g.content}),(0,R.jsx)("div",{className:"text-xs text-slate-500 mt-1",children:new Date(g.timestamp).toLocaleTimeString()})]})]},x))})]}):(0,R.jsx)("div",{className:"space-y-3",children:e.slice(0,5).map(g=>(0,R.jsx)(ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},onClick:()=>n(g),className:"p-4 rounded-2xl bg-white/5 border border-white/10 backdrop-blur-xl cursor-pointer hover:border-white/20 transition-all",children:(0,R.jsxs)("div",{className:"flex items-center justify-between",children:[(0,R.jsxs)("div",{className:"flex items-center gap-3",children:[(0,R.jsx)("div",{className:Ps("p-2 rounded-xl",g.status==="active"?"bg-emerald-500/20":"bg-slate-500/20"),children:g.status==="active"?(0,R.jsx)(Io,{
134className:"w-4 h-4 text-emerald-400"}):(0,R.jsx)(ko,{className:"w-4 h-4 text-slate-400"})}),(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:"text-white text-sm font-medium",children:m(g.from_number)}),(0,R.jsx)("div",{className:"text-xs text-slate-400",children:new Date(g.started_at).toLocaleString()})]})]}),(0,R.jsxs)("div",{className:"text-xs text-slate-400",children:[g.conversation_history.length," msgs"]})]})},g.call_control_id))})]})]}),e.length===0&&!i&&(0,R.jsx)(ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mt-8 p-8 rounded-2xl bg-gradient-to-br from-cyan-500/10 to-blue-500/10 border border-cyan-500/20 backdrop-blur-xl",children:(0,R.jsxs)("div",{className:"flex items-start gap-4",children:[(0,R.jsx)("div",{className:"p-3 rounded-xl bg-cyan-500/20",children:(0,R.jsx)(Dt,{className:"w-6 h-6 text-cyan-400"})}),(0,R.jsxs)("div",{className:"flex-1",children:[(0,R.jsx)("h3",{className:"text-lg font-semibold text-white mb-2",children:"Setup Voice Integration"}),(0,R.jsx)("p",{className:"text-slate-400 mb-4",children:"To start receiving calls, you need to set up the FastAPI backend and configure Telnyx."}),(0,R.jsxs)("div",{className:"space-y-2 text-sm text-slate-300",children:[(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(Ir,{className:"w-4 h-4 text-emerald-400"}),"Deploy FastAPI backend (see docs/fastapi-backend/)"]}),(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(Ir,{className:"w-4 h-4 text-emerald-400"}),"Create Telnyx account and purchase phone number"]}),(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(Ir,{className:"w-4 h-4 text-emerald-400"}),"Configure webhook URL in Telnyx dashboard"]}),(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(Ir,{className:"w-4 h-4 text-emerald-400"}),"Update backend URL above to your deployed endpoint"]})]})]})]})})]})]})}var HN=E(Y()),Ye=E(J()),Ax=class extends HN.Component{state={hasError:!1,error:null,errorInfo:null};static getDerivedStateFromError(t){return{hasError:!0,error:t,errorInfo:null}}componentDidCatch(t,r){console.error("Error caught by ErrorDiagnostic:",t,r),this.setState({error:t,errorInfo:r})}render(){return this.state.hasError?(0,Ye.jsx)("div",{className:"min-h-screen bg-red-50 p-4",children:(0,Ye.jsx)("div",{className:"max-w-2xl mx-auto",children:(0,Ye.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6",children:[(0,Ye.jsx)("h1",{className:"text-2xl font-bold text-red-600 mb-4",children:"\u{1F41B} Error Detected"}),(0,Ye.jsxs)("div",{className:"mb-4",children:[(0,Ye.jsx)("h2",{className:"font-semibold text-gray-900 mb-2",children:"Error Message:"}),(0,Ye.jsx)("pre",{className:"bg-red-100 p-3 rounded text-sm overflow-auto",children:this.state.error?.toString()})]}),this.state.error?.stack&&(0,Ye.jsxs)("div",{className:"mb-4",children:[(0,Ye.jsx)("h2",{className:"font-semibold text-gray-900 mb-2",children:"Stack Trace:"}),(0,Ye.jsx)("pre",{className:"bg-gray-100 p-3 rounded text-xs overflow-auto max-h-64",children:this.state.error.stack})]}),this.state.errorInfo&&(0,Ye.jsxs)("div",{className:"mb-4",children:[(0,Ye.jsx)("h2",{className:"font-semibold text-gray-900 mb-2",children:"Component Stack:"}),(0,Ye.jsx)("pre",{className:"bg-gray-100 p-3 rounded text-xs overflow-auto max-h-64",children:this.state.errorInfo.componentStack})]}),(0,Ye.jsx)("button",{onClick:()=>window.location.reload(),className:"w-full bg-red-600 hover:bg-red-700 text-white font-semibold py-3 px-4 rounded-lg transition-colors",children:"Reload App"}),(0,Ye.jsxs)("div",{className:"mt-4 p-4 bg-yellow-50 border border-yellow-200 rounded-lg",children:[(0,Ye.jsxs)("p",{className:"text-sm text-yellow-800",children:[(0,Ye.jsx)("strong",{children:"Tip:"})," If this error persists, try clearing your browser cache:"]}),(0,Ye.jsxs)("ul",{className:"text-xs text-yellow-700 mt-2 space-y-1 list-disc list-inside",children:[(0,Ye.jsx)("li",{children:"iOS Safari: Settings \u2192 Safari \u2192 Clear History and Website Data"}),(0,Ye.jsx)("li",{children:"Android Chrome: Menu \u2192 Settings \u2192 Privacy \u2192 Clear browsing data"})]})]})]})})}):this.props.children}},jN=Ax;var qN=E(Y());var Tx=e=>{let t=document.createElement("canvas");t.width=e,t.height=e;let r=t.getContext("2d");if(!r)return"";r.fillStyle="#10b981",r.fillRect(0,0,e,e);let a=e/2,o=e/2,n=e/120;return r.fillStyle="#ffffff",r.strokeStyle="#ffffff",r.lineWidth=3*n,r.lineCap="round",r.lineJoin="round",r.fillRect(a-20*n,o-25*n,40*n,50*n),r.fillStyle="#10b981",r.beginPath(),r.moveTo(a+5*n,o-15*n),r.lineTo(a-8*n,o+2*n),r.lineTo(a-2*n,o+2*n),r.lineTo(a-5*n,o+15*n),r.lineTo(a+8*n,o-2*n),r.lineTo(a+2*n,o-2*n),r.closePath(),r.fill(),r.strokeStyle="#ffffff",r.lineWidth=4*n,r.beginPath(),r.moveTo(a,o+25*n),r.lineTo(a,o+35*n),r.stroke(),r.fillStyle="#ffffff",r.fillRect(a-8*n,o+35*n,16*n,8*n),t.toDataURL("image/png")};var mU=()=>((0,qN.useEffect)(()=>{let e=Tx(192),t=Tx(512),r=document.querySelector('link[rel="manifest"]');if(r){let n={name:"ChargeVoix - AI Voice Assistant for EV Charging",short_name:"ChargeVoix",description:"Voice-powered AI assistant for EV charging stations, emergency alerts, and trip tracking",start_url:"/",display:"standalone",background_color:"#ffffff",theme_color:"#10b981",orientation:"portrait",icons:[{src:e,sizes:"192x192",type:"image/png",purpose:"any maskable"},{src:t,sizes:"512x512",type:"image/png",purpose:"any maskable"}],categories:["utilities","productivity","travel"],shortcuts:[{name:"Emergency Call",short_name:"Emergency",de
134scription:"Quick access to emergency assistance",url:"/?action=emergency",icons:[{src:e,sizes:"192x192",type:"image/png"}]},{name:"File Complaint",short_name:"Complaint",description:"File a complaint quickly",url:"/?action=complaint",icons:[{src:e,sizes:"192x192",type:"image/png"}]}]},i=new Blob([JSON.stringify(n)],{type:"application/json"}),s=URL.createObjectURL(i);r.href=s}let a=document.querySelector('link[rel="apple-touch-icon"]');a||(a=document.createElement("link"),a.rel="apple-touch-icon",document.head.appendChild(a)),a.href=e;let o=document.querySelector('link[rel="icon"]');o||(o=document.createElement("link"),o.rel="icon",document.head.appendChild(o)),o.href=e},[]),null),$N=mU;var Mx="40.0.0",WN="app_version",GN=()=>{let e=localStorage.getItem(WN);e!==Mx&&(console.log(`Version changed from ${e} to ${Mx}. Clearing cache...`),"caches"in window&&caches.keys().then(t=>{t.forEach(r=>{console.log(`Deleting cache: ${r}`),caches.delete(r)})}),"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(t=>{t.forEach(r=>{console.log("Unregistering service worker"),r.unregister()})}),localStorage.setItem(WN,Mx),window.location.reload())};var Je=E(J());function gU(){return(0,XN.useEffect)(()=>{document.title="ChargeVoix - AI Voice Assistant for EV Charging";let e=document.createElement("meta");e.name="theme-color",e.content="#10b981",document.head.appendChild(e);let t=document.createElement("meta");t.name="apple-mobile-web-app-capable",t.content="yes",document.head.appendChild(t);let r=document.createElement("meta");r.name="apple-mobile-web-app-title",r.content="ChargeVoix",document.head.appendChild(r);let a=document.createElement("link");a.rel="manifest",a.href="/manifest.json",document.head.appendChild(a),GN(),"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(o=>{console.log("Service Worker registered:",o)}).catch(o=>{console.log("Service Worker registration failed:",o)})},[]),(0,Je.jsxs)(jN,{children:[(0,Je.jsx)($N,{}),(0,Je.jsx)(V1,{children:(0,Je.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 dark:from-slate-950 dark:via-slate-900 dark:to-indigo-950",children:(0,Je.jsxs)(Fh,{children:[(0,Je.jsx)(da,{path:"/",element:(0,Je.jsx)(Uk,{})}),(0,Je.jsx)(da,{path:"/billing",element:(0,Je.jsx)(IN,{})}),(0,Je.jsx)(da,{path:"/subscribe",element:(0,Je.jsx)(PN,{})}),(0,Je.jsx)(da,{path:"/success",element:(0,Je.jsx)(DN,{})}),(0,Je.jsx)(da,{path:"/cancel",element:(0,Je.jsx)(RN,{})}),(0,Je.jsx)(da,{path:"/voice",element:(0,Je.jsx)(Rx,{})}),(0,Je.jsx)(da,{path:"*",element:(0,Je.jsx)(Mh,{to:"/",replace:!0})})]})})})]})}var YN=gU;var KN=E(Y());var hr=E(J()),Ox=class extends KN.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Uncaught error:",t,r)}handleReset=()=>{this.setState({hasError:!1,error:null}),window.location.reload()};render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,hr.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 flex items-center justify-center p-4",children:(0,hr.jsxs)("div",{className:"max-w-md w-full bg-white rounded-2xl shadow-xl p-8 text-center",children:[(0,hr.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,hr.jsx)(at,{className:"w-8 h-8 text-red-600"})}),(0,hr.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Something went wrong"}),(0,hr.jsx)("p",{className:"text-gray-600 mb-6",children:"We encountered an unexpected error. Please try refreshing the page."}),this.state.error&&(0,hr.jsx)("div",{className:"bg-gray-50 rounded-lg p-4 mb-6 text-left",children:(0,hr.jsx)("p",{className:"text-sm text-gray-700 font-mono break-all",children:this.state.error.message})}),(0,hr.jsxs)("button",{onClick:this.handleReset,className:"w-full flex items-center justify-center space-x-2 bg-gradient-to-r from-blue-500 to-indigo-600 text-white py-3 px-6 rounded-lg font-semibold hover:from-blue-600 hover:to-indigo-700 transition-all shadow-lg hover:shadow-xl",children:[(0,hr.jsx)(wn,{className:"w-5 h-5"}),(0,hr.jsx)("span",{children:"Refresh Page"})]})]})}):this.props.children}},QN=Ox;var nm=E(J());(0,ZN.createRoot)(document.getElementById("root")).render((0,nm.jsx)(JN.StrictMode,{children:(0,nm.jsx)(QN,{children:(0,nm.jsx)(YN,{})})}));
135/*! Bundled license information:
136
137react/cjs/react.production.min.js:
138  (**
139   * @license React
140   * react.production.min.js
141   *
142   * Copyright (c) Facebook, Inc. and its affiliates.
143   *
144   * This source code is licensed under the MIT license found in the
145   * LICENSE file in the root directory of this source tree.
146   *)
147
148scheduler/cjs/scheduler.production.min.js:
149  (**
150   * @license React
151   * scheduler.production.min.js
152   *
153   * Copyright (c) Facebook, Inc. and its affiliates.
154   *
155   * This source code is licensed under the MIT license found in the
156   * LICENSE file in the root directory of this source tree.
157   *)
158
159react-dom/cjs/react-dom.production.min.js:
160  (**
161   * @license React
162   * react-dom.production.min.js
163   *
164   * Copyright (c) Facebook, Inc. and its affiliates.
165   *
166   * This source code is licensed under the MIT license found in the
167   * LICENSE file in the root directory of this source tree.
168   *)
169
170react/cjs/react-jsx-runtime.production.min.js:
171  (**
172   * @license React
173   * react-jsx-runtime.production.min.js
174   *
175   * Copyright (c) Facebook, Inc. and its affiliates.
176   *
177   * This source code is licensed under the MIT license found in the
178   * LICENSE file in the root directory of this source tree.
179   *)
180
181use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
182  (**
183   * @license React
184   * use-sync-external-store-with-selector.production.js
185   *
186   * Copyright (c) Meta Platforms, Inc. and affiliates.
187   *
188   * This source code is licensed under the MIT license found in the
189   * LICENSE file in the root directory of this source tree.
190   *)
191
192@remix-run/router/dist/router.js:
193  (**
194   * @remix-run/router v1.23.0
195   *
196   * Copyright (c) Remix Software Inc.
197   *
198   * This source code is licensed under the MIT license found in the
199   * LICENSE.md file in the root directory of this source tree.
200   *
201   * @license MIT
202   *)
203
204react-router/dist/index.js:
205  (**
206   * React Router v6.30.1
207   *
208   * Copyright (c) Remix Software Inc.
209   *
210   * This source code is licensed under the MIT license found in the
211   * LICENSE.md file in the root directory of this source tree.
212   *
213   * @license MIT
214   *)
215
216react-router-dom/dist/index.js:
217  (**
218   * React Router DOM v6.30.1
219   *
220   * Copyright (c) Remix Software Inc.
221   *
222   * This source code is licensed under the MIT license found in the
223   * LICENSE.md file in the root directory of this source tree.
224   *
225   * @license MIT
226   *)
227
228lucide-react/dist/esm/shared/src/utils.js:
229lucide-react/dist/esm/defaultAttributes.js:
230lucide-react/dist/esm/Icon.js:
231lucide-react/dist/esm/createLucideIcon.js:
232lucide-react/dist/esm/icons/activity.js:
233lucide-react/dist/esm/icons/arrow-left.js:
234lucide-react/dist/esm/icons/arrow-right.js:
235lucide-react/dist/esm/icons/building-2.js:
236lucide-react/dist/esm/icons/check.js:
237lucide-react/dist/esm/icons/chevron-down.js:
238lucide-react/dist/esm/icons/chevron-right.js:
239lucide-react/dist/esm/icons/chromium.js:
240lucide-react/dist/esm/icons/circle-alert.js:
241lucide-react/dist/esm/icons/circle-check-big.js:
242lucide-react/dist/esm/icons/circle-check.js:
243lucide-react/dist/esm/icons/circle-question-mark.js:
244lucide-react/dist/esm/icons/circle-x.js:
245lucide-react/dist/esm/icons/clock.js:
246lucide-react/dist/esm/icons/credit-card.js:
247lucide-react/dist/esm/icons/crown.js:
248lucide-react/dist/esm/icons/database.js:
249lucide-react/dist/esm/icons/dollar-sign.js:
250lucide-react/dist/esm/icons/download.js:
251lucide-react/dist/esm/icons/eye.js:
252lucide-react/dist/esm/icons/globe.js:
253lucide-react/dist/esm/icons/grip-vertical.js:
254lucide-react/dist/esm/icons/house.js:
255lucide-react/dist/esm/icons/loader-circle.js:
256lucide-react/dist/esm/icons/lock.js:
257lucide-react/dist/esm/icons/log-out.js:
258lucide-react/dist/esm/icons/mail.js:
259lucide-react/dist/esm/icons/map-pin.js:
260lucide-react/dist/esm/icons/message-square.js:
261lucide-react/dist/esm/icons/mic.js:
262lucide-react/dist/esm/icons/navigation.js:
263lucide-react/dist/esm/icons/pen.js:
264lucide-react/dist/esm/icons/phone-call.js:
265lucide-react/dist/esm/icons/phone-incoming.js:
266lucide-react/dist/esm/icons/phone-off.js:
267lucide-react/dist/esm/icons/phone.js:
268lucide-react/dist/esm/icons/plus.js:
269lucide-react/dist/esm/icons/refresh-cw.js:
270lucide-react/dist/esm/icons/save.js:
271lucide-react/dist/esm/icons/search.js:
272lucide-react/dist/esm/icons/settings.js:
273lucide-react/dist/esm/icons/share.js:
274lucide-react/dist/esm/icons/shield.js:
275lucide-react/dist/esm/icons/smartphone.js:
276lucide-react/dist/esm/icons/sparkles.js:
277lucide-react/dist/esm/icons/star.js:
278lucide-react/dist/esm/icons/trash-2.js:
279lucide-react/dist/esm/icons/trending-up.js:
280lucide-react/dist/esm/icons/triangle-alert.js:
281lucide-react/dist/esm/icons/user-check.js:
282lucide-react/dist/esm/icons/user.js:
283lucide-react/dist/esm/icons/users.js:
284lucide-react/dist/esm/icons/volume-2.js:
285lucide-react/dist/esm/icons/wifi.js:
286lucide-react/dist/esm/icons/x.js:
287lucide-react/dist/esm/icons/zap.js:
288lucide-react/dist/esm/lucide-react.js:
289  (**
290   * @license lucide-react v0.542.0 - ISC
291   *
292   * This source code is licensed under the ISC license.
293   * See the LICENSE file in the root directory of this source tree.
294   *)
295*/

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.